1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libfpx 1.3.1-10.
4#
5# Report bugs to <http://www.imagemagick.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do 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='libfpx'
592PACKAGE_TARNAME='libfpx'
593PACKAGE_VERSION='1.3.1-10'
594PACKAGE_STRING='libfpx 1.3.1-10'
595PACKAGE_BUGREPORT='http://www.imagemagick.org'
596PACKAGE_URL=''
597
598ac_unique_file="fpx/buffdesc.h"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639CXXCPP
640am__fastdepCXX_FALSE
641am__fastdepCXX_TRUE
642CXXDEPMODE
643ac_ct_CXX
644CXXFLAGS
645CXX
646LIBTOOL_DEPS
647LT_SYS_LIBRARY_PATH
648OTOOL64
649OTOOL
650LIPO
651NMEDIT
652DSYMUTIL
653MANIFEST_TOOL
654RANLIB
655ac_ct_AR
656AR
657DLLTOOL
658OBJDUMP
659NM
660ac_ct_DUMPBIN
661DUMPBIN
662LIBTOOL
663LN_S
664LD
665FGREP
666EGREP
667GREP
668SED
669CPP
670am__fastdepCC_FALSE
671am__fastdepCC_TRUE
672CCDEPMODE
673am__nodep
674AMDEPBACKSLASH
675AMDEP_FALSE
676AMDEP_TRUE
677am__quote
678am__include
679DEPDIR
680OBJEXT
681EXEEXT
682ac_ct_CC
683CPPFLAGS
684LDFLAGS
685CFLAGS
686CC
687LIBSTDCLDFLAGS
688MAINT
689MAINTAINER_MODE_FALSE
690MAINTAINER_MODE_TRUE
691AM_BACKSLASH
692AM_DEFAULT_VERBOSITY
693AM_DEFAULT_V
694AM_V
695am__untar
696am__tar
697AMTAR
698am__leading_dot
699SET_MAKE
700AWK
701mkdir_p
702MKDIR_P
703INSTALL_STRIP_PROGRAM
704STRIP
705install_sh
706MAKEINFO
707AUTOHEADER
708AUTOMAKE
709AUTOCONF
710ACLOCAL
711VERSION
712PACKAGE
713CYGPATH_W
714am__isrc
715INSTALL_DATA
716INSTALL_SCRIPT
717INSTALL_PROGRAM
718target_os
719target_vendor
720target_cpu
721target
722host_os
723host_vendor
724host_cpu
725host
726build_os
727build_vendor
728build_cpu
729build
730PATCH_VERSION
731MICRO_VERSION
732MINOR_VERSION
733MAJOR_VERSION
734target_alias
735host_alias
736build_alias
737LIBS
738ECHO_T
739ECHO_N
740ECHO_C
741DEFS
742mandir
743localedir
744libdir
745psdir
746pdfdir
747dvidir
748htmldir
749infodir
750docdir
751oldincludedir
752includedir
753localstatedir
754sharedstatedir
755sysconfdir
756datadir
757datarootdir
758libexecdir
759sbindir
760bindir
761program_transform_name
762prefix
763exec_prefix
764PACKAGE_URL
765PACKAGE_BUGREPORT
766PACKAGE_STRING
767PACKAGE_VERSION
768PACKAGE_TARNAME
769PACKAGE_NAME
770PATH_SEPARATOR
771SHELL'
772ac_subst_files=''
773ac_user_opts='
774enable_option_checking
775enable_silent_rules
776enable_maintainer_mode
777with_libstdc
778enable_dependency_tracking
779with_gnu_ld
780enable_shared
781enable_static
782with_pic
783enable_fast_install
784with_aix_soname
785with_sysroot
786enable_libtool_lock
787'
788      ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
794LIBS
795CPPFLAGS
796CPP
797LT_SYS_LIBRARY_PATH
798CXX
799CXXFLAGS
800CCC
801CXXCPP'
802
803
804# Initialize some variables set by options.
805ac_init_help=
806ac_init_version=false
807ac_unrecognized_opts=
808ac_unrecognized_sep=
809# The variables have the same names as the options, with
810# dashes changed to underlines.
811cache_file=/dev/null
812exec_prefix=NONE
813no_create=
814no_recursion=
815prefix=NONE
816program_prefix=NONE
817program_suffix=NONE
818program_transform_name=s,x,x,
819silent=
820site=
821srcdir=
822verbose=
823x_includes=NONE
824x_libraries=NONE
825
826# Installation directory options.
827# These are left unexpanded so users can "make install exec_prefix=/foo"
828# and all the variables that are supposed to be based on exec_prefix
829# by default will actually change.
830# Use braces instead of parens because sh, perl, etc. also accept them.
831# (The list follows the same order as the GNU Coding Standards.)
832bindir='${exec_prefix}/bin'
833sbindir='${exec_prefix}/sbin'
834libexecdir='${exec_prefix}/libexec'
835datarootdir='${prefix}/share'
836datadir='${datarootdir}'
837sysconfdir='${prefix}/etc'
838sharedstatedir='${prefix}/com'
839localstatedir='${prefix}/var'
840includedir='${prefix}/include'
841oldincludedir='/usr/include'
842docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843infodir='${datarootdir}/info'
844htmldir='${docdir}'
845dvidir='${docdir}'
846pdfdir='${docdir}'
847psdir='${docdir}'
848libdir='${exec_prefix}/lib'
849localedir='${datarootdir}/locale'
850mandir='${datarootdir}/man'
851
852ac_prev=
853ac_dashdash=
854for ac_option
855do
856  # If the previous option needs an argument, assign it.
857  if test -n "$ac_prev"; then
858    eval $ac_prev=\$ac_option
859    ac_prev=
860    continue
861  fi
862
863  case $ac_option in
864  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865  *=)   ac_optarg= ;;
866  *)    ac_optarg=yes ;;
867  esac
868
869  # Accept the important Cygnus configure options, so we can diagnose typos.
870
871  case $ac_dashdash$ac_option in
872  --)
873    ac_dashdash=yes ;;
874
875  -bindir | --bindir | --bindi | --bind | --bin | --bi)
876    ac_prev=bindir ;;
877  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878    bindir=$ac_optarg ;;
879
880  -build | --build | --buil | --bui | --bu)
881    ac_prev=build_alias ;;
882  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883    build_alias=$ac_optarg ;;
884
885  -cache-file | --cache-file | --cache-fil | --cache-fi \
886  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887    ac_prev=cache_file ;;
888  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890    cache_file=$ac_optarg ;;
891
892  --config-cache | -C)
893    cache_file=config.cache ;;
894
895  -datadir | --datadir | --datadi | --datad)
896    ac_prev=datadir ;;
897  -datadir=* | --datadir=* | --datadi=* | --datad=*)
898    datadir=$ac_optarg ;;
899
900  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901  | --dataroo | --dataro | --datar)
902    ac_prev=datarootdir ;;
903  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905    datarootdir=$ac_optarg ;;
906
907  -disable-* | --disable-*)
908    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909    # Reject names that are not valid shell variable names.
910    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911      as_fn_error $? "invalid feature name: $ac_useropt"
912    ac_useropt_orig=$ac_useropt
913    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914    case $ac_user_opts in
915      *"
916"enable_$ac_useropt"
917"*) ;;
918      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919	 ac_unrecognized_sep=', ';;
920    esac
921    eval enable_$ac_useropt=no ;;
922
923  -docdir | --docdir | --docdi | --doc | --do)
924    ac_prev=docdir ;;
925  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926    docdir=$ac_optarg ;;
927
928  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929    ac_prev=dvidir ;;
930  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931    dvidir=$ac_optarg ;;
932
933  -enable-* | --enable-*)
934    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935    # Reject names that are not valid shell variable names.
936    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937      as_fn_error $? "invalid feature name: $ac_useropt"
938    ac_useropt_orig=$ac_useropt
939    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940    case $ac_user_opts in
941      *"
942"enable_$ac_useropt"
943"*) ;;
944      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945	 ac_unrecognized_sep=', ';;
946    esac
947    eval enable_$ac_useropt=\$ac_optarg ;;
948
949  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951  | --exec | --exe | --ex)
952    ac_prev=exec_prefix ;;
953  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955  | --exec=* | --exe=* | --ex=*)
956    exec_prefix=$ac_optarg ;;
957
958  -gas | --gas | --ga | --g)
959    # Obsolete; use --with-gas.
960    with_gas=yes ;;
961
962  -help | --help | --hel | --he | -h)
963    ac_init_help=long ;;
964  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965    ac_init_help=recursive ;;
966  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967    ac_init_help=short ;;
968
969  -host | --host | --hos | --ho)
970    ac_prev=host_alias ;;
971  -host=* | --host=* | --hos=* | --ho=*)
972    host_alias=$ac_optarg ;;
973
974  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975    ac_prev=htmldir ;;
976  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977  | --ht=*)
978    htmldir=$ac_optarg ;;
979
980  -includedir | --includedir | --includedi | --included | --include \
981  | --includ | --inclu | --incl | --inc)
982    ac_prev=includedir ;;
983  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984  | --includ=* | --inclu=* | --incl=* | --inc=*)
985    includedir=$ac_optarg ;;
986
987  -infodir | --infodir | --infodi | --infod | --info | --inf)
988    ac_prev=infodir ;;
989  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990    infodir=$ac_optarg ;;
991
992  -libdir | --libdir | --libdi | --libd)
993    ac_prev=libdir ;;
994  -libdir=* | --libdir=* | --libdi=* | --libd=*)
995    libdir=$ac_optarg ;;
996
997  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998  | --libexe | --libex | --libe)
999    ac_prev=libexecdir ;;
1000  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001  | --libexe=* | --libex=* | --libe=*)
1002    libexecdir=$ac_optarg ;;
1003
1004  -localedir | --localedir | --localedi | --localed | --locale)
1005    ac_prev=localedir ;;
1006  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007    localedir=$ac_optarg ;;
1008
1009  -localstatedir | --localstatedir | --localstatedi | --localstated \
1010  | --localstate | --localstat | --localsta | --localst | --locals)
1011    ac_prev=localstatedir ;;
1012  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014    localstatedir=$ac_optarg ;;
1015
1016  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017    ac_prev=mandir ;;
1018  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019    mandir=$ac_optarg ;;
1020
1021  -nfp | --nfp | --nf)
1022    # Obsolete; use --without-fp.
1023    with_fp=no ;;
1024
1025  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026  | --no-cr | --no-c | -n)
1027    no_create=yes ;;
1028
1029  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031    no_recursion=yes ;;
1032
1033  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035  | --oldin | --oldi | --old | --ol | --o)
1036    ac_prev=oldincludedir ;;
1037  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040    oldincludedir=$ac_optarg ;;
1041
1042  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043    ac_prev=prefix ;;
1044  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045    prefix=$ac_optarg ;;
1046
1047  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048  | --program-pre | --program-pr | --program-p)
1049    ac_prev=program_prefix ;;
1050  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052    program_prefix=$ac_optarg ;;
1053
1054  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055  | --program-suf | --program-su | --program-s)
1056    ac_prev=program_suffix ;;
1057  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059    program_suffix=$ac_optarg ;;
1060
1061  -program-transform-name | --program-transform-name \
1062  | --program-transform-nam | --program-transform-na \
1063  | --program-transform-n | --program-transform- \
1064  | --program-transform | --program-transfor \
1065  | --program-transfo | --program-transf \
1066  | --program-trans | --program-tran \
1067  | --progr-tra | --program-tr | --program-t)
1068    ac_prev=program_transform_name ;;
1069  -program-transform-name=* | --program-transform-name=* \
1070  | --program-transform-nam=* | --program-transform-na=* \
1071  | --program-transform-n=* | --program-transform-=* \
1072  | --program-transform=* | --program-transfor=* \
1073  | --program-transfo=* | --program-transf=* \
1074  | --program-trans=* | --program-tran=* \
1075  | --progr-tra=* | --program-tr=* | --program-t=*)
1076    program_transform_name=$ac_optarg ;;
1077
1078  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079    ac_prev=pdfdir ;;
1080  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081    pdfdir=$ac_optarg ;;
1082
1083  -psdir | --psdir | --psdi | --psd | --ps)
1084    ac_prev=psdir ;;
1085  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086    psdir=$ac_optarg ;;
1087
1088  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089  | -silent | --silent | --silen | --sile | --sil)
1090    silent=yes ;;
1091
1092  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093    ac_prev=sbindir ;;
1094  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095  | --sbi=* | --sb=*)
1096    sbindir=$ac_optarg ;;
1097
1098  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100  | --sharedst | --shareds | --shared | --share | --shar \
1101  | --sha | --sh)
1102    ac_prev=sharedstatedir ;;
1103  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106  | --sha=* | --sh=*)
1107    sharedstatedir=$ac_optarg ;;
1108
1109  -site | --site | --sit)
1110    ac_prev=site ;;
1111  -site=* | --site=* | --sit=*)
1112    site=$ac_optarg ;;
1113
1114  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115    ac_prev=srcdir ;;
1116  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117    srcdir=$ac_optarg ;;
1118
1119  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120  | --syscon | --sysco | --sysc | --sys | --sy)
1121    ac_prev=sysconfdir ;;
1122  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124    sysconfdir=$ac_optarg ;;
1125
1126  -target | --target | --targe | --targ | --tar | --ta | --t)
1127    ac_prev=target_alias ;;
1128  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129    target_alias=$ac_optarg ;;
1130
1131  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132    verbose=yes ;;
1133
1134  -version | --version | --versio | --versi | --vers | -V)
1135    ac_init_version=: ;;
1136
1137  -with-* | --with-*)
1138    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139    # Reject names that are not valid shell variable names.
1140    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141      as_fn_error $? "invalid package name: $ac_useropt"
1142    ac_useropt_orig=$ac_useropt
1143    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144    case $ac_user_opts in
1145      *"
1146"with_$ac_useropt"
1147"*) ;;
1148      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149	 ac_unrecognized_sep=', ';;
1150    esac
1151    eval with_$ac_useropt=\$ac_optarg ;;
1152
1153  -without-* | --without-*)
1154    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155    # Reject names that are not valid shell variable names.
1156    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157      as_fn_error $? "invalid package name: $ac_useropt"
1158    ac_useropt_orig=$ac_useropt
1159    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160    case $ac_user_opts in
1161      *"
1162"with_$ac_useropt"
1163"*) ;;
1164      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165	 ac_unrecognized_sep=', ';;
1166    esac
1167    eval with_$ac_useropt=no ;;
1168
1169  --x)
1170    # Obsolete; use --with-x.
1171    with_x=yes ;;
1172
1173  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174  | --x-incl | --x-inc | --x-in | --x-i)
1175    ac_prev=x_includes ;;
1176  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178    x_includes=$ac_optarg ;;
1179
1180  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182    ac_prev=x_libraries ;;
1183  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185    x_libraries=$ac_optarg ;;
1186
1187  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1188Try \`$0 --help' for more information"
1189    ;;
1190
1191  *=*)
1192    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193    # Reject names that are not valid shell variable names.
1194    case $ac_envvar in #(
1195      '' | [0-9]* | *[!_$as_cr_alnum]* )
1196      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1197    esac
1198    eval $ac_envvar=\$ac_optarg
1199    export $ac_envvar ;;
1200
1201  *)
1202    # FIXME: should be removed in autoconf 3.0.
1203    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207    ;;
1208
1209  esac
1210done
1211
1212if test -n "$ac_prev"; then
1213  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214  as_fn_error $? "missing argument to $ac_option"
1215fi
1216
1217if test -n "$ac_unrecognized_opts"; then
1218  case $enable_option_checking in
1219    no) ;;
1220    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1221    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222  esac
1223fi
1224
1225# Check all directory arguments for consistency.
1226for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227		datadir sysconfdir sharedstatedir localstatedir includedir \
1228		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229		libdir localedir mandir
1230do
1231  eval ac_val=\$$ac_var
1232  # Remove trailing slashes.
1233  case $ac_val in
1234    */ )
1235      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236      eval $ac_var=\$ac_val;;
1237  esac
1238  # Be sure to have absolute directory names.
1239  case $ac_val in
1240    [\\/$]* | ?:[\\/]* )  continue;;
1241    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242  esac
1243  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1244done
1245
1246# There might be people who depend on the old broken behavior: `$host'
1247# used to hold the argument of --host etc.
1248# FIXME: To remove some day.
1249build=$build_alias
1250host=$host_alias
1251target=$target_alias
1252
1253# FIXME: To remove some day.
1254if test "x$host_alias" != x; then
1255  if test "x$build_alias" = x; then
1256    cross_compiling=maybe
1257  elif test "x$build_alias" != "x$host_alias"; then
1258    cross_compiling=yes
1259  fi
1260fi
1261
1262ac_tool_prefix=
1263test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264
1265test "$silent" = yes && exec 6>/dev/null
1266
1267
1268ac_pwd=`pwd` && test -n "$ac_pwd" &&
1269ac_ls_di=`ls -di .` &&
1270ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1271  as_fn_error $? "working directory cannot be determined"
1272test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273  as_fn_error $? "pwd does not report name of working directory"
1274
1275
1276# Find the source files, if location was not specified.
1277if test -z "$srcdir"; then
1278  ac_srcdir_defaulted=yes
1279  # Try the directory containing this script, then the parent directory.
1280  ac_confdir=`$as_dirname -- "$as_myself" ||
1281$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282	 X"$as_myself" : 'X\(//\)[^/]' \| \
1283	 X"$as_myself" : 'X\(//\)$' \| \
1284	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1285$as_echo X"$as_myself" |
1286    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287	    s//\1/
1288	    q
1289	  }
1290	  /^X\(\/\/\)[^/].*/{
1291	    s//\1/
1292	    q
1293	  }
1294	  /^X\(\/\/\)$/{
1295	    s//\1/
1296	    q
1297	  }
1298	  /^X\(\/\).*/{
1299	    s//\1/
1300	    q
1301	  }
1302	  s/.*/./; q'`
1303  srcdir=$ac_confdir
1304  if test ! -r "$srcdir/$ac_unique_file"; then
1305    srcdir=..
1306  fi
1307else
1308  ac_srcdir_defaulted=no
1309fi
1310if test ! -r "$srcdir/$ac_unique_file"; then
1311  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1312  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1313fi
1314ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1315ac_abs_confdir=`(
1316	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1317	pwd)`
1318# When building in place, set srcdir=.
1319if test "$ac_abs_confdir" = "$ac_pwd"; then
1320  srcdir=.
1321fi
1322# Remove unnecessary trailing slashes from srcdir.
1323# Double slashes in file names in object file debugging info
1324# mess up M-x gdb in Emacs.
1325case $srcdir in
1326*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327esac
1328for ac_var in $ac_precious_vars; do
1329  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1330  eval ac_env_${ac_var}_value=\$${ac_var}
1331  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1332  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333done
1334
1335#
1336# Report the --help message.
1337#
1338if test "$ac_init_help" = "long"; then
1339  # Omit some internal or obsolete options to make the list less imposing.
1340  # This message is too long to be a string in the A/UX 3.1 sh.
1341  cat <<_ACEOF
1342\`configure' configures libfpx 1.3.1-10 to adapt to many kinds of systems.
1343
1344Usage: $0 [OPTION]... [VAR=VALUE]...
1345
1346To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347VAR=VALUE.  See below for descriptions of some of the useful variables.
1348
1349Defaults for the options are specified in brackets.
1350
1351Configuration:
1352  -h, --help              display this help and exit
1353      --help=short        display options specific to this package
1354      --help=recursive    display the short help of all the included packages
1355  -V, --version           display version information and exit
1356  -q, --quiet, --silent   do not print \`checking ...' messages
1357      --cache-file=FILE   cache test results in FILE [disabled]
1358  -C, --config-cache      alias for \`--cache-file=config.cache'
1359  -n, --no-create         do not create output files
1360      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1361
1362Installation directories:
1363  --prefix=PREFIX         install architecture-independent files in PREFIX
1364                          [$ac_default_prefix]
1365  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1366                          [PREFIX]
1367
1368By default, \`make install' will install all the files in
1369\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1370an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1371for instance \`--prefix=\$HOME'.
1372
1373For better control, use the options below.
1374
1375Fine tuning of the installation directories:
1376  --bindir=DIR            user executables [EPREFIX/bin]
1377  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1378  --libexecdir=DIR        program executables [EPREFIX/libexec]
1379  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1380  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1381  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1382  --libdir=DIR            object code libraries [EPREFIX/lib]
1383  --includedir=DIR        C header files [PREFIX/include]
1384  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1385  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1386  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1387  --infodir=DIR           info documentation [DATAROOTDIR/info]
1388  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1389  --mandir=DIR            man documentation [DATAROOTDIR/man]
1390  --docdir=DIR            documentation root [DATAROOTDIR/doc/libfpx]
1391  --htmldir=DIR           html documentation [DOCDIR]
1392  --dvidir=DIR            dvi documentation [DOCDIR]
1393  --pdfdir=DIR            pdf documentation [DOCDIR]
1394  --psdir=DIR             ps documentation [DOCDIR]
1395_ACEOF
1396
1397  cat <<\_ACEOF
1398
1399Program names:
1400  --program-prefix=PREFIX            prepend PREFIX to installed program names
1401  --program-suffix=SUFFIX            append SUFFIX to installed program names
1402  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1403
1404System types:
1405  --build=BUILD     configure for building on BUILD [guessed]
1406  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1407  --target=TARGET   configure for building compilers for TARGET [HOST]
1408_ACEOF
1409fi
1410
1411if test -n "$ac_init_help"; then
1412  case $ac_init_help in
1413     short | recursive ) echo "Configuration of libfpx 1.3.1-10:";;
1414   esac
1415  cat <<\_ACEOF
1416
1417Optional Features:
1418  --disable-option-checking  ignore unrecognized --enable/--with options
1419  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1420  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1421  --enable-silent-rules   less verbose build output (undo: "make V=1")
1422  --disable-silent-rules  verbose build output (undo: "make V=0")
1423  --enable-maintainer-mode
1424                          enable make rules and dependencies not useful (and
1425                          sometimes confusing) to the casual installer
1426  --enable-dependency-tracking
1427                          do not reject slow dependency extractors
1428  --disable-dependency-tracking
1429                          speeds up one-time build
1430  --enable-shared[=PKGS]  build shared libraries [default=yes]
1431  --enable-static[=PKGS]  build static libraries [default=yes]
1432  --enable-fast-install[=PKGS]
1433                          optimize for fast installation [default=yes]
1434  --disable-libtool-lock  avoid locking (might break parallel builds)
1435
1436Optional Packages:
1437  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1438  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1439  --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++)
1440  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1441  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1442                          both]
1443  --with-aix-soname=aix|svr4|both
1444                          shared library versioning (aka "SONAME") variant to
1445                          provide on AIX, [default=aix].
1446  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1447                          compiler's sysroot if not specified).
1448
1449Some influential environment variables:
1450  CC          C compiler command
1451  CFLAGS      C compiler flags
1452  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1453              nonstandard directory <lib dir>
1454  LIBS        libraries to pass to the linker, e.g. -l<library>
1455  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456              you have headers in a nonstandard directory <include dir>
1457  CPP         C preprocessor
1458  LT_SYS_LIBRARY_PATH
1459              User-defined run-time library search path.
1460  CXX         C++ compiler command
1461  CXXFLAGS    C++ compiler flags
1462  CXXCPP      C++ preprocessor
1463
1464Use these variables to override the choices made by `configure' or to help
1465it to find libraries and programs with nonstandard names/locations.
1466
1467Report bugs to <http://www.imagemagick.org>.
1468_ACEOF
1469ac_status=$?
1470fi
1471
1472if test "$ac_init_help" = "recursive"; then
1473  # If there are subdirs, report their specific --help.
1474  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475    test -d "$ac_dir" ||
1476      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477      continue
1478    ac_builddir=.
1479
1480case "$ac_dir" in
1481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482*)
1483  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484  # A ".." for each directory in $ac_dir_suffix.
1485  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486  case $ac_top_builddir_sub in
1487  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489  esac ;;
1490esac
1491ac_abs_top_builddir=$ac_pwd
1492ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493# for backward compatibility:
1494ac_top_builddir=$ac_top_build_prefix
1495
1496case $srcdir in
1497  .)  # We are building in place.
1498    ac_srcdir=.
1499    ac_top_srcdir=$ac_top_builddir_sub
1500    ac_abs_top_srcdir=$ac_pwd ;;
1501  [\\/]* | ?:[\\/]* )  # Absolute name.
1502    ac_srcdir=$srcdir$ac_dir_suffix;
1503    ac_top_srcdir=$srcdir
1504    ac_abs_top_srcdir=$srcdir ;;
1505  *) # Relative name.
1506    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507    ac_top_srcdir=$ac_top_build_prefix$srcdir
1508    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509esac
1510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512    cd "$ac_dir" || { ac_status=$?; continue; }
1513    # Check for guested configure.
1514    if test -f "$ac_srcdir/configure.gnu"; then
1515      echo &&
1516      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517    elif test -f "$ac_srcdir/configure"; then
1518      echo &&
1519      $SHELL "$ac_srcdir/configure" --help=recursive
1520    else
1521      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522    fi || ac_status=$?
1523    cd "$ac_pwd" || { ac_status=$?; break; }
1524  done
1525fi
1526
1527test -n "$ac_init_help" && exit $ac_status
1528if $ac_init_version; then
1529  cat <<\_ACEOF
1530libfpx configure 1.3.1-10
1531generated by GNU Autoconf 2.69
1532
1533Copyright (C) 2012 Free Software Foundation, Inc.
1534This configure script is free software; the Free Software Foundation
1535gives unlimited permission to copy, distribute and modify it.
1536_ACEOF
1537  exit
1538fi
1539
1540## ------------------------ ##
1541## Autoconf initialization. ##
1542## ------------------------ ##
1543
1544# ac_fn_c_try_compile LINENO
1545# --------------------------
1546# Try to compile conftest.$ac_ext, and return whether this succeeded.
1547ac_fn_c_try_compile ()
1548{
1549  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550  rm -f conftest.$ac_objext
1551  if { { ac_try="$ac_compile"
1552case "(($ac_try" in
1553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554  *) ac_try_echo=$ac_try;;
1555esac
1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557$as_echo "$ac_try_echo"; } >&5
1558  (eval "$ac_compile") 2>conftest.err
1559  ac_status=$?
1560  if test -s conftest.err; then
1561    grep -v '^ *+' conftest.err >conftest.er1
1562    cat conftest.er1 >&5
1563    mv -f conftest.er1 conftest.err
1564  fi
1565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566  test $ac_status = 0; } && {
1567	 test -z "$ac_c_werror_flag" ||
1568	 test ! -s conftest.err
1569       } && test -s conftest.$ac_objext; then :
1570  ac_retval=0
1571else
1572  $as_echo "$as_me: failed program was:" >&5
1573sed 's/^/| /' conftest.$ac_ext >&5
1574
1575	ac_retval=1
1576fi
1577  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578  as_fn_set_status $ac_retval
1579
1580} # ac_fn_c_try_compile
1581
1582# ac_fn_c_try_cpp LINENO
1583# ----------------------
1584# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1585ac_fn_c_try_cpp ()
1586{
1587  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588  if { { ac_try="$ac_cpp conftest.$ac_ext"
1589case "(($ac_try" in
1590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591  *) ac_try_echo=$ac_try;;
1592esac
1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594$as_echo "$ac_try_echo"; } >&5
1595  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1596  ac_status=$?
1597  if test -s conftest.err; then
1598    grep -v '^ *+' conftest.err >conftest.er1
1599    cat conftest.er1 >&5
1600    mv -f conftest.er1 conftest.err
1601  fi
1602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603  test $ac_status = 0; } > conftest.i && {
1604	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1605	 test ! -s conftest.err
1606       }; then :
1607  ac_retval=0
1608else
1609  $as_echo "$as_me: failed program was:" >&5
1610sed 's/^/| /' conftest.$ac_ext >&5
1611
1612    ac_retval=1
1613fi
1614  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615  as_fn_set_status $ac_retval
1616
1617} # ac_fn_c_try_cpp
1618
1619# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1620# -------------------------------------------------------
1621# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1622# the include files in INCLUDES and setting the cache variable VAR
1623# accordingly.
1624ac_fn_c_check_header_mongrel ()
1625{
1626  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627  if eval \${$3+:} false; then :
1628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1629$as_echo_n "checking for $2... " >&6; }
1630if eval \${$3+:} false; then :
1631  $as_echo_n "(cached) " >&6
1632fi
1633eval ac_res=\$$3
1634	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635$as_echo "$ac_res" >&6; }
1636else
1637  # Is the header compilable?
1638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1639$as_echo_n "checking $2 usability... " >&6; }
1640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641/* end confdefs.h.  */
1642$4
1643#include <$2>
1644_ACEOF
1645if ac_fn_c_try_compile "$LINENO"; then :
1646  ac_header_compiler=yes
1647else
1648  ac_header_compiler=no
1649fi
1650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1652$as_echo "$ac_header_compiler" >&6; }
1653
1654# Is the header present?
1655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1656$as_echo_n "checking $2 presence... " >&6; }
1657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658/* end confdefs.h.  */
1659#include <$2>
1660_ACEOF
1661if ac_fn_c_try_cpp "$LINENO"; then :
1662  ac_header_preproc=yes
1663else
1664  ac_header_preproc=no
1665fi
1666rm -f conftest.err conftest.i conftest.$ac_ext
1667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1668$as_echo "$ac_header_preproc" >&6; }
1669
1670# So?  What about this header?
1671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1672  yes:no: )
1673    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1674$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1675    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1676$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1677    ;;
1678  no:yes:* )
1679    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1680$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1681    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1682$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1683    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1684$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1685    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1686$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1687    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1688$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1689( $as_echo "## ----------------------------------------- ##
1690## Report this to http://www.imagemagick.org ##
1691## ----------------------------------------- ##"
1692     ) | sed "s/^/$as_me: WARNING:     /" >&2
1693    ;;
1694esac
1695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696$as_echo_n "checking for $2... " >&6; }
1697if eval \${$3+:} false; then :
1698  $as_echo_n "(cached) " >&6
1699else
1700  eval "$3=\$ac_header_compiler"
1701fi
1702eval ac_res=\$$3
1703	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704$as_echo "$ac_res" >&6; }
1705fi
1706  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707
1708} # ac_fn_c_check_header_mongrel
1709
1710# ac_fn_c_try_run LINENO
1711# ----------------------
1712# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1713# that executables *can* be run.
1714ac_fn_c_try_run ()
1715{
1716  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717  if { { ac_try="$ac_link"
1718case "(($ac_try" in
1719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720  *) ac_try_echo=$ac_try;;
1721esac
1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723$as_echo "$ac_try_echo"; } >&5
1724  (eval "$ac_link") 2>&5
1725  ac_status=$?
1726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1728  { { case "(($ac_try" in
1729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730  *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734  (eval "$ac_try") 2>&5
1735  ac_status=$?
1736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737  test $ac_status = 0; }; }; then :
1738  ac_retval=0
1739else
1740  $as_echo "$as_me: program exited with status $ac_status" >&5
1741       $as_echo "$as_me: failed program was:" >&5
1742sed 's/^/| /' conftest.$ac_ext >&5
1743
1744       ac_retval=$ac_status
1745fi
1746  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748  as_fn_set_status $ac_retval
1749
1750} # ac_fn_c_try_run
1751
1752# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1753# -------------------------------------------------------
1754# Tests whether HEADER exists and can be compiled using the include files in
1755# INCLUDES, setting the cache variable VAR accordingly.
1756ac_fn_c_check_header_compile ()
1757{
1758  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760$as_echo_n "checking for $2... " >&6; }
1761if eval \${$3+:} false; then :
1762  $as_echo_n "(cached) " >&6
1763else
1764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765/* end confdefs.h.  */
1766$4
1767#include <$2>
1768_ACEOF
1769if ac_fn_c_try_compile "$LINENO"; then :
1770  eval "$3=yes"
1771else
1772  eval "$3=no"
1773fi
1774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775fi
1776eval ac_res=\$$3
1777	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778$as_echo "$ac_res" >&6; }
1779  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781} # ac_fn_c_check_header_compile
1782
1783# ac_fn_c_try_link LINENO
1784# -----------------------
1785# Try to link conftest.$ac_ext, and return whether this succeeded.
1786ac_fn_c_try_link ()
1787{
1788  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789  rm -f conftest.$ac_objext conftest$ac_exeext
1790  if { { ac_try="$ac_link"
1791case "(($ac_try" in
1792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793  *) ac_try_echo=$ac_try;;
1794esac
1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796$as_echo "$ac_try_echo"; } >&5
1797  (eval "$ac_link") 2>conftest.err
1798  ac_status=$?
1799  if test -s conftest.err; then
1800    grep -v '^ *+' conftest.err >conftest.er1
1801    cat conftest.er1 >&5
1802    mv -f conftest.er1 conftest.err
1803  fi
1804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805  test $ac_status = 0; } && {
1806	 test -z "$ac_c_werror_flag" ||
1807	 test ! -s conftest.err
1808       } && test -s conftest$ac_exeext && {
1809	 test "$cross_compiling" = yes ||
1810	 test -x conftest$ac_exeext
1811       }; then :
1812  ac_retval=0
1813else
1814  $as_echo "$as_me: failed program was:" >&5
1815sed 's/^/| /' conftest.$ac_ext >&5
1816
1817	ac_retval=1
1818fi
1819  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1820  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1821  # interfere with the next link command; also delete a directory that is
1822  # left behind by Apple's compiler.  We do this before executing the actions.
1823  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825  as_fn_set_status $ac_retval
1826
1827} # ac_fn_c_try_link
1828
1829# ac_fn_c_check_func LINENO FUNC VAR
1830# ----------------------------------
1831# Tests whether FUNC exists, setting the cache variable VAR accordingly
1832ac_fn_c_check_func ()
1833{
1834  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836$as_echo_n "checking for $2... " >&6; }
1837if eval \${$3+:} false; then :
1838  $as_echo_n "(cached) " >&6
1839else
1840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841/* end confdefs.h.  */
1842/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1843   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1844#define $2 innocuous_$2
1845
1846/* System header to define __stub macros and hopefully few prototypes,
1847    which can conflict with char $2 (); below.
1848    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1849    <limits.h> exists even on freestanding compilers.  */
1850
1851#ifdef __STDC__
1852# include <limits.h>
1853#else
1854# include <assert.h>
1855#endif
1856
1857#undef $2
1858
1859/* Override any GCC internal prototype to avoid an error.
1860   Use char because int might match the return type of a GCC
1861   builtin and then its argument prototype would still apply.  */
1862#ifdef __cplusplus
1863extern "C"
1864#endif
1865char $2 ();
1866/* The GNU C library defines this for functions which it implements
1867    to always fail with ENOSYS.  Some functions are actually named
1868    something starting with __ and the normal name is an alias.  */
1869#if defined __stub_$2 || defined __stub___$2
1870choke me
1871#endif
1872
1873int
1874main ()
1875{
1876return $2 ();
1877  ;
1878  return 0;
1879}
1880_ACEOF
1881if ac_fn_c_try_link "$LINENO"; then :
1882  eval "$3=yes"
1883else
1884  eval "$3=no"
1885fi
1886rm -f core conftest.err conftest.$ac_objext \
1887    conftest$ac_exeext conftest.$ac_ext
1888fi
1889eval ac_res=\$$3
1890	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891$as_echo "$ac_res" >&6; }
1892  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893
1894} # ac_fn_c_check_func
1895
1896# ac_fn_cxx_try_compile LINENO
1897# ----------------------------
1898# Try to compile conftest.$ac_ext, and return whether this succeeded.
1899ac_fn_cxx_try_compile ()
1900{
1901  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902  rm -f conftest.$ac_objext
1903  if { { ac_try="$ac_compile"
1904case "(($ac_try" in
1905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906  *) ac_try_echo=$ac_try;;
1907esac
1908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909$as_echo "$ac_try_echo"; } >&5
1910  (eval "$ac_compile") 2>conftest.err
1911  ac_status=$?
1912  if test -s conftest.err; then
1913    grep -v '^ *+' conftest.err >conftest.er1
1914    cat conftest.er1 >&5
1915    mv -f conftest.er1 conftest.err
1916  fi
1917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918  test $ac_status = 0; } && {
1919	 test -z "$ac_cxx_werror_flag" ||
1920	 test ! -s conftest.err
1921       } && test -s conftest.$ac_objext; then :
1922  ac_retval=0
1923else
1924  $as_echo "$as_me: failed program was:" >&5
1925sed 's/^/| /' conftest.$ac_ext >&5
1926
1927	ac_retval=1
1928fi
1929  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930  as_fn_set_status $ac_retval
1931
1932} # ac_fn_cxx_try_compile
1933
1934# ac_fn_cxx_try_cpp LINENO
1935# ------------------------
1936# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1937ac_fn_cxx_try_cpp ()
1938{
1939  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940  if { { ac_try="$ac_cpp conftest.$ac_ext"
1941case "(($ac_try" in
1942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943  *) ac_try_echo=$ac_try;;
1944esac
1945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946$as_echo "$ac_try_echo"; } >&5
1947  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1948  ac_status=$?
1949  if test -s conftest.err; then
1950    grep -v '^ *+' conftest.err >conftest.er1
1951    cat conftest.er1 >&5
1952    mv -f conftest.er1 conftest.err
1953  fi
1954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955  test $ac_status = 0; } > conftest.i && {
1956	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1957	 test ! -s conftest.err
1958       }; then :
1959  ac_retval=0
1960else
1961  $as_echo "$as_me: failed program was:" >&5
1962sed 's/^/| /' conftest.$ac_ext >&5
1963
1964    ac_retval=1
1965fi
1966  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967  as_fn_set_status $ac_retval
1968
1969} # ac_fn_cxx_try_cpp
1970
1971# ac_fn_cxx_try_link LINENO
1972# -------------------------
1973# Try to link conftest.$ac_ext, and return whether this succeeded.
1974ac_fn_cxx_try_link ()
1975{
1976  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977  rm -f conftest.$ac_objext conftest$ac_exeext
1978  if { { ac_try="$ac_link"
1979case "(($ac_try" in
1980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981  *) ac_try_echo=$ac_try;;
1982esac
1983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984$as_echo "$ac_try_echo"; } >&5
1985  (eval "$ac_link") 2>conftest.err
1986  ac_status=$?
1987  if test -s conftest.err; then
1988    grep -v '^ *+' conftest.err >conftest.er1
1989    cat conftest.er1 >&5
1990    mv -f conftest.er1 conftest.err
1991  fi
1992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993  test $ac_status = 0; } && {
1994	 test -z "$ac_cxx_werror_flag" ||
1995	 test ! -s conftest.err
1996       } && test -s conftest$ac_exeext && {
1997	 test "$cross_compiling" = yes ||
1998	 test -x conftest$ac_exeext
1999       }; then :
2000  ac_retval=0
2001else
2002  $as_echo "$as_me: failed program was:" >&5
2003sed 's/^/| /' conftest.$ac_ext >&5
2004
2005	ac_retval=1
2006fi
2007  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2008  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2009  # interfere with the next link command; also delete a directory that is
2010  # left behind by Apple's compiler.  We do this before executing the actions.
2011  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2012  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013  as_fn_set_status $ac_retval
2014
2015} # ac_fn_cxx_try_link
2016cat >config.log <<_ACEOF
2017This file contains any messages produced by compilers while
2018running configure, to aid debugging if configure makes a mistake.
2019
2020It was created by libfpx $as_me 1.3.1-10, which was
2021generated by GNU Autoconf 2.69.  Invocation command line was
2022
2023  $ $0 $@
2024
2025_ACEOF
2026exec 5>>config.log
2027{
2028cat <<_ASUNAME
2029## --------- ##
2030## Platform. ##
2031## --------- ##
2032
2033hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2034uname -m = `(uname -m) 2>/dev/null || echo unknown`
2035uname -r = `(uname -r) 2>/dev/null || echo unknown`
2036uname -s = `(uname -s) 2>/dev/null || echo unknown`
2037uname -v = `(uname -v) 2>/dev/null || echo unknown`
2038
2039/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2040/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2041
2042/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2043/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2044/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2045/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2046/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2047/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2048/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2049
2050_ASUNAME
2051
2052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053for as_dir in $PATH
2054do
2055  IFS=$as_save_IFS
2056  test -z "$as_dir" && as_dir=.
2057    $as_echo "PATH: $as_dir"
2058  done
2059IFS=$as_save_IFS
2060
2061} >&5
2062
2063cat >&5 <<_ACEOF
2064
2065
2066## ----------- ##
2067## Core tests. ##
2068## ----------- ##
2069
2070_ACEOF
2071
2072
2073# Keep a trace of the command line.
2074# Strip out --no-create and --no-recursion so they do not pile up.
2075# Strip out --silent because we don't want to record it for future runs.
2076# Also quote any args containing shell meta-characters.
2077# Make two passes to allow for proper duplicate-argument suppression.
2078ac_configure_args=
2079ac_configure_args0=
2080ac_configure_args1=
2081ac_must_keep_next=false
2082for ac_pass in 1 2
2083do
2084  for ac_arg
2085  do
2086    case $ac_arg in
2087    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2088    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2089    | -silent | --silent | --silen | --sile | --sil)
2090      continue ;;
2091    *\'*)
2092      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2093    esac
2094    case $ac_pass in
2095    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2096    2)
2097      as_fn_append ac_configure_args1 " '$ac_arg'"
2098      if test $ac_must_keep_next = true; then
2099	ac_must_keep_next=false # Got value, back to normal.
2100      else
2101	case $ac_arg in
2102	  *=* | --config-cache | -C | -disable-* | --disable-* \
2103	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2104	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2105	  | -with-* | --with-* | -without-* | --without-* | --x)
2106	    case "$ac_configure_args0 " in
2107	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2108	    esac
2109	    ;;
2110	  -* ) ac_must_keep_next=true ;;
2111	esac
2112      fi
2113      as_fn_append ac_configure_args " '$ac_arg'"
2114      ;;
2115    esac
2116  done
2117done
2118{ ac_configure_args0=; unset ac_configure_args0;}
2119{ ac_configure_args1=; unset ac_configure_args1;}
2120
2121# When interrupted or exit'd, cleanup temporary files, and complete
2122# config.log.  We remove comments because anyway the quotes in there
2123# would cause problems or look ugly.
2124# WARNING: Use '\'' to represent an apostrophe within the trap.
2125# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2126trap 'exit_status=$?
2127  # Save into config.log some information that might help in debugging.
2128  {
2129    echo
2130
2131    $as_echo "## ---------------- ##
2132## Cache variables. ##
2133## ---------------- ##"
2134    echo
2135    # The following way of writing the cache mishandles newlines in values,
2136(
2137  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2138    eval ac_val=\$$ac_var
2139    case $ac_val in #(
2140    *${as_nl}*)
2141      case $ac_var in #(
2142      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2143$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2144      esac
2145      case $ac_var in #(
2146      _ | IFS | as_nl) ;; #(
2147      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2148      *) { eval $ac_var=; unset $ac_var;} ;;
2149      esac ;;
2150    esac
2151  done
2152  (set) 2>&1 |
2153    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2154    *${as_nl}ac_space=\ *)
2155      sed -n \
2156	"s/'\''/'\''\\\\'\'''\''/g;
2157	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2158      ;; #(
2159    *)
2160      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2161      ;;
2162    esac |
2163    sort
2164)
2165    echo
2166
2167    $as_echo "## ----------------- ##
2168## Output variables. ##
2169## ----------------- ##"
2170    echo
2171    for ac_var in $ac_subst_vars
2172    do
2173      eval ac_val=\$$ac_var
2174      case $ac_val in
2175      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2176      esac
2177      $as_echo "$ac_var='\''$ac_val'\''"
2178    done | sort
2179    echo
2180
2181    if test -n "$ac_subst_files"; then
2182      $as_echo "## ------------------- ##
2183## File substitutions. ##
2184## ------------------- ##"
2185      echo
2186      for ac_var in $ac_subst_files
2187      do
2188	eval ac_val=\$$ac_var
2189	case $ac_val in
2190	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2191	esac
2192	$as_echo "$ac_var='\''$ac_val'\''"
2193      done | sort
2194      echo
2195    fi
2196
2197    if test -s confdefs.h; then
2198      $as_echo "## ----------- ##
2199## confdefs.h. ##
2200## ----------- ##"
2201      echo
2202      cat confdefs.h
2203      echo
2204    fi
2205    test "$ac_signal" != 0 &&
2206      $as_echo "$as_me: caught signal $ac_signal"
2207    $as_echo "$as_me: exit $exit_status"
2208  } >&5
2209  rm -f core *.core core.conftest.* &&
2210    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2211    exit $exit_status
2212' 0
2213for ac_signal in 1 2 13 15; do
2214  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2215done
2216ac_signal=0
2217
2218# confdefs.h avoids OS command line length limits that DEFS can exceed.
2219rm -f -r conftest* confdefs.h
2220
2221$as_echo "/* confdefs.h */" > confdefs.h
2222
2223# Predefined preprocessor variables.
2224
2225cat >>confdefs.h <<_ACEOF
2226#define PACKAGE_NAME "$PACKAGE_NAME"
2227_ACEOF
2228
2229cat >>confdefs.h <<_ACEOF
2230#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2231_ACEOF
2232
2233cat >>confdefs.h <<_ACEOF
2234#define PACKAGE_VERSION "$PACKAGE_VERSION"
2235_ACEOF
2236
2237cat >>confdefs.h <<_ACEOF
2238#define PACKAGE_STRING "$PACKAGE_STRING"
2239_ACEOF
2240
2241cat >>confdefs.h <<_ACEOF
2242#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2243_ACEOF
2244
2245cat >>confdefs.h <<_ACEOF
2246#define PACKAGE_URL "$PACKAGE_URL"
2247_ACEOF
2248
2249
2250# Let the site file select an alternate cache file if it wants to.
2251# Prefer an explicitly selected file to automatically selected ones.
2252ac_site_file1=NONE
2253ac_site_file2=NONE
2254if test -n "$CONFIG_SITE"; then
2255  # We do not want a PATH search for config.site.
2256  case $CONFIG_SITE in #((
2257    -*)  ac_site_file1=./$CONFIG_SITE;;
2258    */*) ac_site_file1=$CONFIG_SITE;;
2259    *)   ac_site_file1=./$CONFIG_SITE;;
2260  esac
2261elif test "x$prefix" != xNONE; then
2262  ac_site_file1=$prefix/share/config.site
2263  ac_site_file2=$prefix/etc/config.site
2264else
2265  ac_site_file1=$ac_default_prefix/share/config.site
2266  ac_site_file2=$ac_default_prefix/etc/config.site
2267fi
2268for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2269do
2270  test "x$ac_site_file" = xNONE && continue
2271  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2272    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2273$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2274    sed 's/^/| /' "$ac_site_file" >&5
2275    . "$ac_site_file" \
2276      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2278as_fn_error $? "failed to load site script $ac_site_file
2279See \`config.log' for more details" "$LINENO" 5; }
2280  fi
2281done
2282
2283if test -r "$cache_file"; then
2284  # Some versions of bash will fail to source /dev/null (special files
2285  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2286  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2287    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2288$as_echo "$as_me: loading cache $cache_file" >&6;}
2289    case $cache_file in
2290      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2291      *)                      . "./$cache_file";;
2292    esac
2293  fi
2294else
2295  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2296$as_echo "$as_me: creating cache $cache_file" >&6;}
2297  >$cache_file
2298fi
2299
2300# Check that the precious variables saved in the cache have kept the same
2301# value.
2302ac_cache_corrupted=false
2303for ac_var in $ac_precious_vars; do
2304  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2305  eval ac_new_set=\$ac_env_${ac_var}_set
2306  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2307  eval ac_new_val=\$ac_env_${ac_var}_value
2308  case $ac_old_set,$ac_new_set in
2309    set,)
2310      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2311$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2312      ac_cache_corrupted=: ;;
2313    ,set)
2314      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2315$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2316      ac_cache_corrupted=: ;;
2317    ,);;
2318    *)
2319      if test "x$ac_old_val" != "x$ac_new_val"; then
2320	# differences in whitespace do not lead to failure.
2321	ac_old_val_w=`echo x $ac_old_val`
2322	ac_new_val_w=`echo x $ac_new_val`
2323	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2324	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2325$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2326	  ac_cache_corrupted=:
2327	else
2328	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2329$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2330	  eval $ac_var=\$ac_old_val
2331	fi
2332	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2333$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2334	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2335$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2336      fi;;
2337  esac
2338  # Pass precious variables to config.status.
2339  if test "$ac_new_set" = set; then
2340    case $ac_new_val in
2341    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2342    *) ac_arg=$ac_var=$ac_new_val ;;
2343    esac
2344    case " $ac_configure_args " in
2345      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2346      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2347    esac
2348  fi
2349done
2350if $ac_cache_corrupted; then
2351  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2353  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2354$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2355  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2356fi
2357## -------------------- ##
2358## Main body of script. ##
2359## -------------------- ##
2360
2361ac_ext=c
2362ac_cpp='$CPP $CPPFLAGS'
2363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2365ac_compiler_gnu=$ac_cv_c_compiler_gnu
2366
2367
2368
2369ac_aux_dir=
2370for ac_dir in config "$srcdir"/config; do
2371  if test -f "$ac_dir/install-sh"; then
2372    ac_aux_dir=$ac_dir
2373    ac_install_sh="$ac_aux_dir/install-sh -c"
2374    break
2375  elif test -f "$ac_dir/install.sh"; then
2376    ac_aux_dir=$ac_dir
2377    ac_install_sh="$ac_aux_dir/install.sh -c"
2378    break
2379  elif test -f "$ac_dir/shtool"; then
2380    ac_aux_dir=$ac_dir
2381    ac_install_sh="$ac_aux_dir/shtool install -c"
2382    break
2383  fi
2384done
2385if test -z "$ac_aux_dir"; then
2386  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2387fi
2388
2389# These three variables are undocumented and unsupported,
2390# and are intended to be withdrawn in a future Autoconf release.
2391# They can cause serious problems if a builder's source tree is in a directory
2392# whose full name contains unusual characters.
2393ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2394ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2395ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2396
2397
2398
2399ac_config_headers="$ac_config_headers fpxlib-config.h"
2400
2401ac_config_files="$ac_config_files Makefile basics/Makefile fpx/Makefile jpeg/Makefile ole/Makefile ri_image/Makefile oless/Makefile"
2402
2403
2404# Set version
2405MAJOR_VERSION=1
2406MINOR_VERSION=3
2407MICRO_VERSION=1
2408PATCH_VERSION=10
2409echo "configuring Digital Imaging Group FlashPIX ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
2410
2411# Ensure that make can run correctly
2412# Make sure we can run config.sub.
2413$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2414  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2415
2416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2417$as_echo_n "checking build system type... " >&6; }
2418if ${ac_cv_build+:} false; then :
2419  $as_echo_n "(cached) " >&6
2420else
2421  ac_build_alias=$build_alias
2422test "x$ac_build_alias" = x &&
2423  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2424test "x$ac_build_alias" = x &&
2425  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2426ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2427  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2428
2429fi
2430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2431$as_echo "$ac_cv_build" >&6; }
2432case $ac_cv_build in
2433*-*-*) ;;
2434*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2435esac
2436build=$ac_cv_build
2437ac_save_IFS=$IFS; IFS='-'
2438set x $ac_cv_build
2439shift
2440build_cpu=$1
2441build_vendor=$2
2442shift; shift
2443# Remember, the first character of IFS is used to create $*,
2444# except with old shells:
2445build_os=$*
2446IFS=$ac_save_IFS
2447case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2448
2449
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2451$as_echo_n "checking host system type... " >&6; }
2452if ${ac_cv_host+:} false; then :
2453  $as_echo_n "(cached) " >&6
2454else
2455  if test "x$host_alias" = x; then
2456  ac_cv_host=$ac_cv_build
2457else
2458  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2459    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2460fi
2461
2462fi
2463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2464$as_echo "$ac_cv_host" >&6; }
2465case $ac_cv_host in
2466*-*-*) ;;
2467*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2468esac
2469host=$ac_cv_host
2470ac_save_IFS=$IFS; IFS='-'
2471set x $ac_cv_host
2472shift
2473host_cpu=$1
2474host_vendor=$2
2475shift; shift
2476# Remember, the first character of IFS is used to create $*,
2477# except with old shells:
2478host_os=$*
2479IFS=$ac_save_IFS
2480case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2481
2482
2483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2484$as_echo_n "checking target system type... " >&6; }
2485if ${ac_cv_target+:} false; then :
2486  $as_echo_n "(cached) " >&6
2487else
2488  if test "x$target_alias" = x; then
2489  ac_cv_target=$ac_cv_host
2490else
2491  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2492    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2493fi
2494
2495fi
2496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2497$as_echo "$ac_cv_target" >&6; }
2498case $ac_cv_target in
2499*-*-*) ;;
2500*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2501esac
2502target=$ac_cv_target
2503ac_save_IFS=$IFS; IFS='-'
2504set x $ac_cv_target
2505shift
2506target_cpu=$1
2507target_vendor=$2
2508shift; shift
2509# Remember, the first character of IFS is used to create $*,
2510# except with old shells:
2511target_os=$*
2512IFS=$ac_save_IFS
2513case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2514
2515
2516# The aliases save the names the user supplied, while $host etc.
2517# will get canonicalized.
2518test -n "$target_alias" &&
2519  test "$program_prefix$program_suffix$program_transform_name" = \
2520    NONENONEs,x,x, &&
2521  program_prefix=${target_alias}-
2522
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2524$as_echo_n "checking whether build environment is sane... " >&6; }
2525# Reject unsafe characters in $srcdir or the absolute working directory
2526# name.  Accept space and tab only in the latter.
2527am_lf='
2528'
2529case `pwd` in
2530  *[\\\"\#\$\&\'\`$am_lf]*)
2531    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2532esac
2533case $srcdir in
2534  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2535    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2536esac
2537
2538# Do 'set' in a subshell so we don't clobber the current shell's
2539# arguments.  Must try -L first in case configure is actually a
2540# symlink; some systems play weird games with the mod time of symlinks
2541# (eg FreeBSD returns the mod time of the symlink's containing
2542# directory).
2543if (
2544   am_has_slept=no
2545   for am_try in 1 2; do
2546     echo "timestamp, slept: $am_has_slept" > conftest.file
2547     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2548     if test "$*" = "X"; then
2549	# -L didn't work.
2550	set X `ls -t "$srcdir/configure" conftest.file`
2551     fi
2552     if test "$*" != "X $srcdir/configure conftest.file" \
2553	&& test "$*" != "X conftest.file $srcdir/configure"; then
2554
2555	# If neither matched, then we have a broken ls.  This can happen
2556	# if, for instance, CONFIG_SHELL is bash and it inherits a
2557	# broken ls alias from the environment.  This has actually
2558	# happened.  Such a system could not be considered "sane".
2559	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2560  alias in your environment" "$LINENO" 5
2561     fi
2562     if test "$2" = conftest.file || test $am_try -eq 2; then
2563       break
2564     fi
2565     # Just in case.
2566     sleep 1
2567     am_has_slept=yes
2568   done
2569   test "$2" = conftest.file
2570   )
2571then
2572   # Ok.
2573   :
2574else
2575   as_fn_error $? "newly created file is older than distributed files!
2576Check your system clock" "$LINENO" 5
2577fi
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2579$as_echo "yes" >&6; }
2580# If we didn't sleep, we still need to ensure time stamps of config.status and
2581# generated files are strictly newer.
2582am_sleep_pid=
2583if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2584  ( sleep 1 ) &
2585  am_sleep_pid=$!
2586fi
2587
2588rm -f conftest.file
2589
2590
2591am__api_version='1.15'
2592
2593# Find a good install program.  We prefer a C program (faster),
2594# so one script is as good as another.  But avoid the broken or
2595# incompatible versions:
2596# SysV /etc/install, /usr/sbin/install
2597# SunOS /usr/etc/install
2598# IRIX /sbin/install
2599# AIX /bin/install
2600# AmigaOS /C/install, which installs bootblocks on floppy discs
2601# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2602# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2603# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2604# OS/2's system install, which has a completely different semantic
2605# ./install, which can be erroneously created by make from ./install.sh.
2606# Reject install programs that cannot install multiple files.
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2608$as_echo_n "checking for a BSD-compatible install... " >&6; }
2609if test -z "$INSTALL"; then
2610if ${ac_cv_path_install+:} false; then :
2611  $as_echo_n "(cached) " >&6
2612else
2613  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614for as_dir in $PATH
2615do
2616  IFS=$as_save_IFS
2617  test -z "$as_dir" && as_dir=.
2618    # Account for people who put trailing slashes in PATH elements.
2619case $as_dir/ in #((
2620  ./ | .// | /[cC]/* | \
2621  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2622  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2623  /usr/ucb/* ) ;;
2624  *)
2625    # OSF1 and SCO ODT 3.0 have their own names for install.
2626    # Don't use installbsd from OSF since it installs stuff as root
2627    # by default.
2628    for ac_prog in ginstall scoinst install; do
2629      for ac_exec_ext in '' $ac_executable_extensions; do
2630	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2631	  if test $ac_prog = install &&
2632	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2633	    # AIX install.  It has an incompatible calling convention.
2634	    :
2635	  elif test $ac_prog = install &&
2636	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2637	    # program-specific install script used by HP pwplus--don't use.
2638	    :
2639	  else
2640	    rm -rf conftest.one conftest.two conftest.dir
2641	    echo one > conftest.one
2642	    echo two > conftest.two
2643	    mkdir conftest.dir
2644	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2645	      test -s conftest.one && test -s conftest.two &&
2646	      test -s conftest.dir/conftest.one &&
2647	      test -s conftest.dir/conftest.two
2648	    then
2649	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2650	      break 3
2651	    fi
2652	  fi
2653	fi
2654      done
2655    done
2656    ;;
2657esac
2658
2659  done
2660IFS=$as_save_IFS
2661
2662rm -rf conftest.one conftest.two conftest.dir
2663
2664fi
2665  if test "${ac_cv_path_install+set}" = set; then
2666    INSTALL=$ac_cv_path_install
2667  else
2668    # As a last resort, use the slow shell script.  Don't cache a
2669    # value for INSTALL within a source directory, because that will
2670    # break other packages using the cache if that directory is
2671    # removed, or if the value is a relative name.
2672    INSTALL=$ac_install_sh
2673  fi
2674fi
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2676$as_echo "$INSTALL" >&6; }
2677
2678# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2679# It thinks the first close brace ends the variable substitution.
2680test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2681
2682test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2683
2684test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2685
2686test "$program_prefix" != NONE &&
2687  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2688# Use a double $ so make ignores it.
2689test "$program_suffix" != NONE &&
2690  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2691# Double any \ or $.
2692# By default was `s,x,x', remove it if useless.
2693ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2694program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2695
2696# Expand $ac_aux_dir to an absolute path.
2697am_aux_dir=`cd "$ac_aux_dir" && pwd`
2698
2699if test x"${MISSING+set}" != xset; then
2700  case $am_aux_dir in
2701  *\ * | *\	*)
2702    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2703  *)
2704    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2705  esac
2706fi
2707# Use eval to expand $SHELL
2708if eval "$MISSING --is-lightweight"; then
2709  am_missing_run="$MISSING "
2710else
2711  am_missing_run=
2712  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2713$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2714fi
2715
2716if test x"${install_sh+set}" != xset; then
2717  case $am_aux_dir in
2718  *\ * | *\	*)
2719    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2720  *)
2721    install_sh="\${SHELL} $am_aux_dir/install-sh"
2722  esac
2723fi
2724
2725# Installed binaries are usually stripped using 'strip' when the user
2726# run "make install-strip".  However 'strip' might not be the right
2727# tool to use in cross-compilation environments, therefore Automake
2728# will honor the 'STRIP' environment variable to overrule this program.
2729if test "$cross_compiling" != no; then
2730  if test -n "$ac_tool_prefix"; then
2731  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2732set dummy ${ac_tool_prefix}strip; ac_word=$2
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734$as_echo_n "checking for $ac_word... " >&6; }
2735if ${ac_cv_prog_STRIP+:} false; then :
2736  $as_echo_n "(cached) " >&6
2737else
2738  if test -n "$STRIP"; then
2739  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2740else
2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742for as_dir in $PATH
2743do
2744  IFS=$as_save_IFS
2745  test -z "$as_dir" && as_dir=.
2746    for ac_exec_ext in '' $ac_executable_extensions; do
2747  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750    break 2
2751  fi
2752done
2753  done
2754IFS=$as_save_IFS
2755
2756fi
2757fi
2758STRIP=$ac_cv_prog_STRIP
2759if test -n "$STRIP"; then
2760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2761$as_echo "$STRIP" >&6; }
2762else
2763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764$as_echo "no" >&6; }
2765fi
2766
2767
2768fi
2769if test -z "$ac_cv_prog_STRIP"; then
2770  ac_ct_STRIP=$STRIP
2771  # Extract the first word of "strip", so it can be a program name with args.
2772set dummy strip; ac_word=$2
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774$as_echo_n "checking for $ac_word... " >&6; }
2775if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2776  $as_echo_n "(cached) " >&6
2777else
2778  if test -n "$ac_ct_STRIP"; then
2779  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2780else
2781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782for as_dir in $PATH
2783do
2784  IFS=$as_save_IFS
2785  test -z "$as_dir" && as_dir=.
2786    for ac_exec_ext in '' $ac_executable_extensions; do
2787  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788    ac_cv_prog_ac_ct_STRIP="strip"
2789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790    break 2
2791  fi
2792done
2793  done
2794IFS=$as_save_IFS
2795
2796fi
2797fi
2798ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2799if test -n "$ac_ct_STRIP"; then
2800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2801$as_echo "$ac_ct_STRIP" >&6; }
2802else
2803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804$as_echo "no" >&6; }
2805fi
2806
2807  if test "x$ac_ct_STRIP" = x; then
2808    STRIP=":"
2809  else
2810    case $cross_compiling:$ac_tool_warned in
2811yes:)
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2814ac_tool_warned=yes ;;
2815esac
2816    STRIP=$ac_ct_STRIP
2817  fi
2818else
2819  STRIP="$ac_cv_prog_STRIP"
2820fi
2821
2822fi
2823INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2824
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2826$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2827if test -z "$MKDIR_P"; then
2828  if ${ac_cv_path_mkdir+:} false; then :
2829  $as_echo_n "(cached) " >&6
2830else
2831  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2833do
2834  IFS=$as_save_IFS
2835  test -z "$as_dir" && as_dir=.
2836    for ac_prog in mkdir gmkdir; do
2837	 for ac_exec_ext in '' $ac_executable_extensions; do
2838	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2839	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2840	     'mkdir (GNU coreutils) '* | \
2841	     'mkdir (coreutils) '* | \
2842	     'mkdir (fileutils) '4.1*)
2843	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2844	       break 3;;
2845	   esac
2846	 done
2847       done
2848  done
2849IFS=$as_save_IFS
2850
2851fi
2852
2853  test -d ./--version && rmdir ./--version
2854  if test "${ac_cv_path_mkdir+set}" = set; then
2855    MKDIR_P="$ac_cv_path_mkdir -p"
2856  else
2857    # As a last resort, use the slow shell script.  Don't cache a
2858    # value for MKDIR_P within a source directory, because that will
2859    # break other packages using the cache if that directory is
2860    # removed, or if the value is a relative name.
2861    MKDIR_P="$ac_install_sh -d"
2862  fi
2863fi
2864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2865$as_echo "$MKDIR_P" >&6; }
2866
2867for ac_prog in gawk mawk nawk awk
2868do
2869  # Extract the first word of "$ac_prog", so it can be a program name with args.
2870set dummy $ac_prog; ac_word=$2
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872$as_echo_n "checking for $ac_word... " >&6; }
2873if ${ac_cv_prog_AWK+:} false; then :
2874  $as_echo_n "(cached) " >&6
2875else
2876  if test -n "$AWK"; then
2877  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2878else
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882  IFS=$as_save_IFS
2883  test -z "$as_dir" && as_dir=.
2884    for ac_exec_ext in '' $ac_executable_extensions; do
2885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886    ac_cv_prog_AWK="$ac_prog"
2887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888    break 2
2889  fi
2890done
2891  done
2892IFS=$as_save_IFS
2893
2894fi
2895fi
2896AWK=$ac_cv_prog_AWK
2897if test -n "$AWK"; then
2898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2899$as_echo "$AWK" >&6; }
2900else
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902$as_echo "no" >&6; }
2903fi
2904
2905
2906  test -n "$AWK" && break
2907done
2908
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2910$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2911set x ${MAKE-make}
2912ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2913if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2914  $as_echo_n "(cached) " >&6
2915else
2916  cat >conftest.make <<\_ACEOF
2917SHELL = /bin/sh
2918all:
2919	@echo '@@@%%%=$(MAKE)=@@@%%%'
2920_ACEOF
2921# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2922case `${MAKE-make} -f conftest.make 2>/dev/null` in
2923  *@@@%%%=?*=@@@%%%*)
2924    eval ac_cv_prog_make_${ac_make}_set=yes;;
2925  *)
2926    eval ac_cv_prog_make_${ac_make}_set=no;;
2927esac
2928rm -f conftest.make
2929fi
2930if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2932$as_echo "yes" >&6; }
2933  SET_MAKE=
2934else
2935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936$as_echo "no" >&6; }
2937  SET_MAKE="MAKE=${MAKE-make}"
2938fi
2939
2940rm -rf .tst 2>/dev/null
2941mkdir .tst 2>/dev/null
2942if test -d .tst; then
2943  am__leading_dot=.
2944else
2945  am__leading_dot=_
2946fi
2947rmdir .tst 2>/dev/null
2948
2949# Check whether --enable-silent-rules was given.
2950if test "${enable_silent_rules+set}" = set; then :
2951  enableval=$enable_silent_rules;
2952fi
2953
2954case $enable_silent_rules in # (((
2955  yes) AM_DEFAULT_VERBOSITY=0;;
2956   no) AM_DEFAULT_VERBOSITY=1;;
2957    *) AM_DEFAULT_VERBOSITY=1;;
2958esac
2959am_make=${MAKE-make}
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2961$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2962if ${am_cv_make_support_nested_variables+:} false; then :
2963  $as_echo_n "(cached) " >&6
2964else
2965  if $as_echo 'TRUE=$(BAR$(V))
2966BAR0=false
2967BAR1=true
2968V=1
2969am__doit:
2970	@$(TRUE)
2971.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2972  am_cv_make_support_nested_variables=yes
2973else
2974  am_cv_make_support_nested_variables=no
2975fi
2976fi
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2978$as_echo "$am_cv_make_support_nested_variables" >&6; }
2979if test $am_cv_make_support_nested_variables = yes; then
2980    AM_V='$(V)'
2981  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2982else
2983  AM_V=$AM_DEFAULT_VERBOSITY
2984  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2985fi
2986AM_BACKSLASH='\'
2987
2988if test "`cd $srcdir && pwd`" != "`pwd`"; then
2989  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2990  # is not polluted with repeated "-I."
2991  am__isrc=' -I$(srcdir)'
2992  # test to see if srcdir already configured
2993  if test -f $srcdir/config.status; then
2994    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2995  fi
2996fi
2997
2998# test whether we have cygpath
2999if test -z "$CYGPATH_W"; then
3000  if (cygpath --version) >/dev/null 2>/dev/null; then
3001    CYGPATH_W='cygpath -w'
3002  else
3003    CYGPATH_W=echo
3004  fi
3005fi
3006
3007
3008# Define the identity of the package.
3009 PACKAGE='libfpx'
3010 VERSION='1.3.1-10'
3011
3012
3013cat >>confdefs.h <<_ACEOF
3014#define PACKAGE "$PACKAGE"
3015_ACEOF
3016
3017
3018cat >>confdefs.h <<_ACEOF
3019#define VERSION "$VERSION"
3020_ACEOF
3021
3022# Some tools Automake needs.
3023
3024ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3025
3026
3027AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3028
3029
3030AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3031
3032
3033AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3034
3035
3036MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3037
3038# For better backward compatibility.  To be removed once Automake 1.9.x
3039# dies out for good.  For more background, see:
3040# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3041# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3042mkdir_p='$(MKDIR_P)'
3043
3044# We need awk for the "check" target (and possibly the TAP driver).  The
3045# system "awk" is bad on some platforms.
3046# Always define AMTAR for backward compatibility.  Yes, it's still used
3047# in the wild :-(  We should find a proper way to deprecate it ...
3048AMTAR='$${TAR-tar}'
3049
3050
3051# We'll loop over all known methods to create a tar archive until one works.
3052_am_tools='gnutar plaintar pax cpio none'
3053
3054# The POSIX 1988 'ustar' format is defined with fixed-size fields.
3055      # There is notably a 21 bits limit for the UID and the GID.  In fact,
3056      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3057      # and bug#13588).
3058      am_max_uid=2097151 # 2^21 - 1
3059      am_max_gid=$am_max_uid
3060      # The $UID and $GID variables are not portable, so we need to resort
3061      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3062      # below are definitely unexpected, so allow the users to see them
3063      # (that is, avoid stderr redirection).
3064      am_uid=`id -u || echo unknown`
3065      am_gid=`id -g || echo unknown`
3066      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3067$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3068      if test $am_uid -le $am_max_uid; then
3069         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3070$as_echo "yes" >&6; }
3071      else
3072         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073$as_echo "no" >&6; }
3074         _am_tools=none
3075      fi
3076      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3077$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3078      if test $am_gid -le $am_max_gid; then
3079         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3080$as_echo "yes" >&6; }
3081      else
3082        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083$as_echo "no" >&6; }
3084        _am_tools=none
3085      fi
3086
3087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3088$as_echo_n "checking how to create a ustar tar archive... " >&6; }
3089
3090  # Go ahead even if we have the value already cached.  We do so because we
3091  # need to set the values for the 'am__tar' and 'am__untar' variables.
3092  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3093
3094  for _am_tool in $_am_tools; do
3095    case $_am_tool in
3096    gnutar)
3097      for _am_tar in tar gnutar gtar; do
3098        { echo "$as_me:$LINENO: $_am_tar --version" >&5
3099   ($_am_tar --version) >&5 2>&5
3100   ac_status=$?
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); } && break
3103      done
3104      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3105      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3106      am__untar="$_am_tar -xf -"
3107      ;;
3108    plaintar)
3109      # Must skip GNU tar: if it does not support --format= it doesn't create
3110      # ustar tarball either.
3111      (tar --version) >/dev/null 2>&1 && continue
3112      am__tar='tar chf - "$$tardir"'
3113      am__tar_='tar chf - "$tardir"'
3114      am__untar='tar xf -'
3115      ;;
3116    pax)
3117      am__tar='pax -L -x ustar -w "$$tardir"'
3118      am__tar_='pax -L -x ustar -w "$tardir"'
3119      am__untar='pax -r'
3120      ;;
3121    cpio)
3122      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3123      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3124      am__untar='cpio -i -H ustar -d'
3125      ;;
3126    none)
3127      am__tar=false
3128      am__tar_=false
3129      am__untar=false
3130      ;;
3131    esac
3132
3133    # If the value was cached, stop now.  We just wanted to have am__tar
3134    # and am__untar set.
3135    test -n "${am_cv_prog_tar_ustar}" && break
3136
3137    # tar/untar a dummy directory, and stop if the command works.
3138    rm -rf conftest.dir
3139    mkdir conftest.dir
3140    echo GrepMe > conftest.dir/file
3141    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3142   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3143   ac_status=$?
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); }
3146    rm -rf conftest.dir
3147    if test -s conftest.tar; then
3148      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3149   ($am__untar <conftest.tar) >&5 2>&5
3150   ac_status=$?
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); }
3153      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3154   (cat conftest.dir/file) >&5 2>&5
3155   ac_status=$?
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); }
3158      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3159    fi
3160  done
3161  rm -rf conftest.dir
3162
3163  if ${am_cv_prog_tar_ustar+:} false; then :
3164  $as_echo_n "(cached) " >&6
3165else
3166  am_cv_prog_tar_ustar=$_am_tool
3167fi
3168
3169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3170$as_echo "$am_cv_prog_tar_ustar" >&6; }
3171
3172
3173
3174
3175
3176
3177# POSIX will say in a future version that running "rm -f" with no argument
3178# is OK; and we want to be able to make that assumption in our Makefile
3179# recipes.  So use an aggressive probe to check that the usage we want is
3180# actually supported "in the wild" to an acceptable degree.
3181# See automake bug#10828.
3182# To make any issue more visible, cause the running configure to be aborted
3183# by default if the 'rm' program in use doesn't match our expectations; the
3184# user can still override this though.
3185if rm -f && rm -fr && rm -rf; then : OK; else
3186  cat >&2 <<'END'
3187Oops!
3188
3189Your 'rm' program seems unable to run without file operands specified
3190on the command line, even when the '-f' option is present.  This is contrary
3191to the behaviour of most rm programs out there, and not conforming with
3192the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3193
3194Please tell bug-automake@gnu.org about your system, including the value
3195of your $PATH and any error possibly output before this message.  This
3196can help us improve future automake versions.
3197
3198END
3199  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3200    echo 'Configuration will proceed anyway, since you have set the' >&2
3201    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3202    echo >&2
3203  else
3204    cat >&2 <<'END'
3205Aborting the configuration process, to ensure you take notice of the issue.
3206
3207You can download and install GNU coreutils to get an 'rm' implementation
3208that behaves properly: <http://www.gnu.org/software/coreutils/>.
3209
3210If you want to complete the configuration process using your problematic
3211'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3212to "yes", and re-run configure.
3213
3214END
3215    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3216  fi
3217fi
3218
3219
3220# Add configure option --enable-maintainer-mode which enables dependency
3221# checking and generation useful to package maintainers.  This is made an
3222# option to avoid confusing end users.
3223
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3225$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3226    # Check whether --enable-maintainer-mode was given.
3227if test "${enable_maintainer_mode+set}" = set; then :
3228  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3229else
3230  USE_MAINTAINER_MODE=no
3231fi
3232
3233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3234$as_echo "$USE_MAINTAINER_MODE" >&6; }
3235   if test $USE_MAINTAINER_MODE = yes; then
3236  MAINTAINER_MODE_TRUE=
3237  MAINTAINER_MODE_FALSE='#'
3238else
3239  MAINTAINER_MODE_TRUE='#'
3240  MAINTAINER_MODE_FALSE=
3241fi
3242
3243  MAINT=$MAINTAINER_MODE_TRUE
3244
3245
3246
3247#
3248# Specify path to shared libstdc++ if not in normal location
3249#
3250
3251# Check whether --with-libstdc was given.
3252if test "${with_libstdc+set}" = set; then :
3253  withval=$with_libstdc; if test "$withval" != no -a "$withval" != yes; then
3254    if test -d "$withval"; then
3255      LIBSTDCLDFLAGS="-L$withval"
3256    fi
3257  fi
3258fi
3259
3260
3261
3262CPPFLAGS="-D_UNIX $CPPFLAGS"
3263
3264# Check for programs
3265ac_ext=c
3266ac_cpp='$CPP $CPPFLAGS'
3267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270if test -n "$ac_tool_prefix"; then
3271  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3272set dummy ${ac_tool_prefix}gcc; ac_word=$2
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274$as_echo_n "checking for $ac_word... " >&6; }
3275if ${ac_cv_prog_CC+:} false; then :
3276  $as_echo_n "(cached) " >&6
3277else
3278  if test -n "$CC"; then
3279  ac_cv_prog_CC="$CC" # Let the user override the test.
3280else
3281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282for as_dir in $PATH
3283do
3284  IFS=$as_save_IFS
3285  test -z "$as_dir" && as_dir=.
3286    for ac_exec_ext in '' $ac_executable_extensions; do
3287  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290    break 2
3291  fi
3292done
3293  done
3294IFS=$as_save_IFS
3295
3296fi
3297fi
3298CC=$ac_cv_prog_CC
3299if test -n "$CC"; then
3300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301$as_echo "$CC" >&6; }
3302else
3303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304$as_echo "no" >&6; }
3305fi
3306
3307
3308fi
3309if test -z "$ac_cv_prog_CC"; then
3310  ac_ct_CC=$CC
3311  # Extract the first word of "gcc", so it can be a program name with args.
3312set dummy gcc; ac_word=$2
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314$as_echo_n "checking for $ac_word... " >&6; }
3315if ${ac_cv_prog_ac_ct_CC+:} false; then :
3316  $as_echo_n "(cached) " >&6
3317else
3318  if test -n "$ac_ct_CC"; then
3319  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3320else
3321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322for as_dir in $PATH
3323do
3324  IFS=$as_save_IFS
3325  test -z "$as_dir" && as_dir=.
3326    for ac_exec_ext in '' $ac_executable_extensions; do
3327  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328    ac_cv_prog_ac_ct_CC="gcc"
3329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330    break 2
3331  fi
3332done
3333  done
3334IFS=$as_save_IFS
3335
3336fi
3337fi
3338ac_ct_CC=$ac_cv_prog_ac_ct_CC
3339if test -n "$ac_ct_CC"; then
3340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3341$as_echo "$ac_ct_CC" >&6; }
3342else
3343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344$as_echo "no" >&6; }
3345fi
3346
3347  if test "x$ac_ct_CC" = x; then
3348    CC=""
3349  else
3350    case $cross_compiling:$ac_tool_warned in
3351yes:)
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3354ac_tool_warned=yes ;;
3355esac
3356    CC=$ac_ct_CC
3357  fi
3358else
3359  CC="$ac_cv_prog_CC"
3360fi
3361
3362if test -z "$CC"; then
3363          if test -n "$ac_tool_prefix"; then
3364    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3365set dummy ${ac_tool_prefix}cc; ac_word=$2
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367$as_echo_n "checking for $ac_word... " >&6; }
3368if ${ac_cv_prog_CC+:} false; then :
3369  $as_echo_n "(cached) " >&6
3370else
3371  if test -n "$CC"; then
3372  ac_cv_prog_CC="$CC" # Let the user override the test.
3373else
3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375for as_dir in $PATH
3376do
3377  IFS=$as_save_IFS
3378  test -z "$as_dir" && as_dir=.
3379    for ac_exec_ext in '' $ac_executable_extensions; do
3380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381    ac_cv_prog_CC="${ac_tool_prefix}cc"
3382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383    break 2
3384  fi
3385done
3386  done
3387IFS=$as_save_IFS
3388
3389fi
3390fi
3391CC=$ac_cv_prog_CC
3392if test -n "$CC"; then
3393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394$as_echo "$CC" >&6; }
3395else
3396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397$as_echo "no" >&6; }
3398fi
3399
3400
3401  fi
3402fi
3403if test -z "$CC"; then
3404  # Extract the first word of "cc", so it can be a program name with args.
3405set dummy cc; ac_word=$2
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407$as_echo_n "checking for $ac_word... " >&6; }
3408if ${ac_cv_prog_CC+:} false; then :
3409  $as_echo_n "(cached) " >&6
3410else
3411  if test -n "$CC"; then
3412  ac_cv_prog_CC="$CC" # Let the user override the test.
3413else
3414  ac_prog_rejected=no
3415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416for as_dir in $PATH
3417do
3418  IFS=$as_save_IFS
3419  test -z "$as_dir" && as_dir=.
3420    for ac_exec_ext in '' $ac_executable_extensions; do
3421  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3423       ac_prog_rejected=yes
3424       continue
3425     fi
3426    ac_cv_prog_CC="cc"
3427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3428    break 2
3429  fi
3430done
3431  done
3432IFS=$as_save_IFS
3433
3434if test $ac_prog_rejected = yes; then
3435  # We found a bogon in the path, so make sure we never use it.
3436  set dummy $ac_cv_prog_CC
3437  shift
3438  if test $# != 0; then
3439    # We chose a different compiler from the bogus one.
3440    # However, it has the same basename, so the bogon will be chosen
3441    # first if we set CC to just the basename; use the full file name.
3442    shift
3443    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3444  fi
3445fi
3446fi
3447fi
3448CC=$ac_cv_prog_CC
3449if test -n "$CC"; then
3450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3451$as_echo "$CC" >&6; }
3452else
3453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454$as_echo "no" >&6; }
3455fi
3456
3457
3458fi
3459if test -z "$CC"; then
3460  if test -n "$ac_tool_prefix"; then
3461  for ac_prog in cl.exe
3462  do
3463    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3464set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466$as_echo_n "checking for $ac_word... " >&6; }
3467if ${ac_cv_prog_CC+:} false; then :
3468  $as_echo_n "(cached) " >&6
3469else
3470  if test -n "$CC"; then
3471  ac_cv_prog_CC="$CC" # Let the user override the test.
3472else
3473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474for as_dir in $PATH
3475do
3476  IFS=$as_save_IFS
3477  test -z "$as_dir" && as_dir=.
3478    for ac_exec_ext in '' $ac_executable_extensions; do
3479  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482    break 2
3483  fi
3484done
3485  done
3486IFS=$as_save_IFS
3487
3488fi
3489fi
3490CC=$ac_cv_prog_CC
3491if test -n "$CC"; then
3492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3493$as_echo "$CC" >&6; }
3494else
3495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496$as_echo "no" >&6; }
3497fi
3498
3499
3500    test -n "$CC" && break
3501  done
3502fi
3503if test -z "$CC"; then
3504  ac_ct_CC=$CC
3505  for ac_prog in cl.exe
3506do
3507  # Extract the first word of "$ac_prog", so it can be a program name with args.
3508set dummy $ac_prog; ac_word=$2
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510$as_echo_n "checking for $ac_word... " >&6; }
3511if ${ac_cv_prog_ac_ct_CC+:} false; then :
3512  $as_echo_n "(cached) " >&6
3513else
3514  if test -n "$ac_ct_CC"; then
3515  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3516else
3517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518for as_dir in $PATH
3519do
3520  IFS=$as_save_IFS
3521  test -z "$as_dir" && as_dir=.
3522    for ac_exec_ext in '' $ac_executable_extensions; do
3523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524    ac_cv_prog_ac_ct_CC="$ac_prog"
3525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526    break 2
3527  fi
3528done
3529  done
3530IFS=$as_save_IFS
3531
3532fi
3533fi
3534ac_ct_CC=$ac_cv_prog_ac_ct_CC
3535if test -n "$ac_ct_CC"; then
3536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3537$as_echo "$ac_ct_CC" >&6; }
3538else
3539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540$as_echo "no" >&6; }
3541fi
3542
3543
3544  test -n "$ac_ct_CC" && break
3545done
3546
3547  if test "x$ac_ct_CC" = x; then
3548    CC=""
3549  else
3550    case $cross_compiling:$ac_tool_warned in
3551yes:)
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3554ac_tool_warned=yes ;;
3555esac
3556    CC=$ac_ct_CC
3557  fi
3558fi
3559
3560fi
3561
3562
3563test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565as_fn_error $? "no acceptable C compiler found in \$PATH
3566See \`config.log' for more details" "$LINENO" 5; }
3567
3568# Provide some information about the compiler.
3569$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3570set X $ac_compile
3571ac_compiler=$2
3572for ac_option in --version -v -V -qversion; do
3573  { { ac_try="$ac_compiler $ac_option >&5"
3574case "(($ac_try" in
3575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576  *) ac_try_echo=$ac_try;;
3577esac
3578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579$as_echo "$ac_try_echo"; } >&5
3580  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3581  ac_status=$?
3582  if test -s conftest.err; then
3583    sed '10a\
3584... rest of stderr output deleted ...
3585         10q' conftest.err >conftest.er1
3586    cat conftest.er1 >&5
3587  fi
3588  rm -f conftest.er1 conftest.err
3589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590  test $ac_status = 0; }
3591done
3592
3593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594/* end confdefs.h.  */
3595
3596int
3597main ()
3598{
3599
3600  ;
3601  return 0;
3602}
3603_ACEOF
3604ac_clean_files_save=$ac_clean_files
3605ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3606# Try to create an executable without -o first, disregard a.out.
3607# It will help us diagnose broken compilers, and finding out an intuition
3608# of exeext.
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3610$as_echo_n "checking whether the C compiler works... " >&6; }
3611ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3612
3613# The possible output files:
3614ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3615
3616ac_rmfiles=
3617for ac_file in $ac_files
3618do
3619  case $ac_file in
3620    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3621    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3622  esac
3623done
3624rm -f $ac_rmfiles
3625
3626if { { ac_try="$ac_link_default"
3627case "(($ac_try" in
3628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629  *) ac_try_echo=$ac_try;;
3630esac
3631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632$as_echo "$ac_try_echo"; } >&5
3633  (eval "$ac_link_default") 2>&5
3634  ac_status=$?
3635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636  test $ac_status = 0; }; then :
3637  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3638# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3639# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3640# so that the user can short-circuit this test for compilers unknown to
3641# Autoconf.
3642for ac_file in $ac_files ''
3643do
3644  test -f "$ac_file" || continue
3645  case $ac_file in
3646    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3647	;;
3648    [ab].out )
3649	# We found the default executable, but exeext='' is most
3650	# certainly right.
3651	break;;
3652    *.* )
3653	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3654	then :; else
3655	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3656	fi
3657	# We set ac_cv_exeext here because the later test for it is not
3658	# safe: cross compilers may not add the suffix if given an `-o'
3659	# argument, so we may need to know it at that point already.
3660	# Even if this section looks crufty: it has the advantage of
3661	# actually working.
3662	break;;
3663    * )
3664	break;;
3665  esac
3666done
3667test "$ac_cv_exeext" = no && ac_cv_exeext=
3668
3669else
3670  ac_file=''
3671fi
3672if test -z "$ac_file"; then :
3673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674$as_echo "no" >&6; }
3675$as_echo "$as_me: failed program was:" >&5
3676sed 's/^/| /' conftest.$ac_ext >&5
3677
3678{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3680as_fn_error 77 "C compiler cannot create executables
3681See \`config.log' for more details" "$LINENO" 5; }
3682else
3683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3684$as_echo "yes" >&6; }
3685fi
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3687$as_echo_n "checking for C compiler default output file name... " >&6; }
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3689$as_echo "$ac_file" >&6; }
3690ac_exeext=$ac_cv_exeext
3691
3692rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3693ac_clean_files=$ac_clean_files_save
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3695$as_echo_n "checking for suffix of executables... " >&6; }
3696if { { ac_try="$ac_link"
3697case "(($ac_try" in
3698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699  *) ac_try_echo=$ac_try;;
3700esac
3701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702$as_echo "$ac_try_echo"; } >&5
3703  (eval "$ac_link") 2>&5
3704  ac_status=$?
3705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706  test $ac_status = 0; }; then :
3707  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3708# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3709# work properly (i.e., refer to `conftest.exe'), while it won't with
3710# `rm'.
3711for ac_file in conftest.exe conftest conftest.*; do
3712  test -f "$ac_file" || continue
3713  case $ac_file in
3714    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3715    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3716	  break;;
3717    * ) break;;
3718  esac
3719done
3720else
3721  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3724See \`config.log' for more details" "$LINENO" 5; }
3725fi
3726rm -f conftest conftest$ac_cv_exeext
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3728$as_echo "$ac_cv_exeext" >&6; }
3729
3730rm -f conftest.$ac_ext
3731EXEEXT=$ac_cv_exeext
3732ac_exeext=$EXEEXT
3733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734/* end confdefs.h.  */
3735#include <stdio.h>
3736int
3737main ()
3738{
3739FILE *f = fopen ("conftest.out", "w");
3740 return ferror (f) || fclose (f) != 0;
3741
3742  ;
3743  return 0;
3744}
3745_ACEOF
3746ac_clean_files="$ac_clean_files conftest.out"
3747# Check that the compiler produces executables we can run.  If not, either
3748# the compiler is broken, or we cross compile.
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3750$as_echo_n "checking whether we are cross compiling... " >&6; }
3751if test "$cross_compiling" != yes; then
3752  { { ac_try="$ac_link"
3753case "(($ac_try" in
3754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755  *) ac_try_echo=$ac_try;;
3756esac
3757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758$as_echo "$ac_try_echo"; } >&5
3759  (eval "$ac_link") 2>&5
3760  ac_status=$?
3761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762  test $ac_status = 0; }
3763  if { ac_try='./conftest$ac_cv_exeext'
3764  { { case "(($ac_try" in
3765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766  *) ac_try_echo=$ac_try;;
3767esac
3768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769$as_echo "$ac_try_echo"; } >&5
3770  (eval "$ac_try") 2>&5
3771  ac_status=$?
3772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773  test $ac_status = 0; }; }; then
3774    cross_compiling=no
3775  else
3776    if test "$cross_compiling" = maybe; then
3777	cross_compiling=yes
3778    else
3779	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3781as_fn_error $? "cannot run C compiled programs.
3782If you meant to cross compile, use \`--host'.
3783See \`config.log' for more details" "$LINENO" 5; }
3784    fi
3785  fi
3786fi
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3788$as_echo "$cross_compiling" >&6; }
3789
3790rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3791ac_clean_files=$ac_clean_files_save
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3793$as_echo_n "checking for suffix of object files... " >&6; }
3794if ${ac_cv_objext+:} false; then :
3795  $as_echo_n "(cached) " >&6
3796else
3797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798/* end confdefs.h.  */
3799
3800int
3801main ()
3802{
3803
3804  ;
3805  return 0;
3806}
3807_ACEOF
3808rm -f conftest.o conftest.obj
3809if { { ac_try="$ac_compile"
3810case "(($ac_try" in
3811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812  *) ac_try_echo=$ac_try;;
3813esac
3814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815$as_echo "$ac_try_echo"; } >&5
3816  (eval "$ac_compile") 2>&5
3817  ac_status=$?
3818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819  test $ac_status = 0; }; then :
3820  for ac_file in conftest.o conftest.obj conftest.*; do
3821  test -f "$ac_file" || continue;
3822  case $ac_file in
3823    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3824    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3825       break;;
3826  esac
3827done
3828else
3829  $as_echo "$as_me: failed program was:" >&5
3830sed 's/^/| /' conftest.$ac_ext >&5
3831
3832{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834as_fn_error $? "cannot compute suffix of object files: cannot compile
3835See \`config.log' for more details" "$LINENO" 5; }
3836fi
3837rm -f conftest.$ac_cv_objext conftest.$ac_ext
3838fi
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3840$as_echo "$ac_cv_objext" >&6; }
3841OBJEXT=$ac_cv_objext
3842ac_objext=$OBJEXT
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3844$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3845if ${ac_cv_c_compiler_gnu+:} false; then :
3846  $as_echo_n "(cached) " >&6
3847else
3848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849/* end confdefs.h.  */
3850
3851int
3852main ()
3853{
3854#ifndef __GNUC__
3855       choke me
3856#endif
3857
3858  ;
3859  return 0;
3860}
3861_ACEOF
3862if ac_fn_c_try_compile "$LINENO"; then :
3863  ac_compiler_gnu=yes
3864else
3865  ac_compiler_gnu=no
3866fi
3867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868ac_cv_c_compiler_gnu=$ac_compiler_gnu
3869
3870fi
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3872$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3873if test $ac_compiler_gnu = yes; then
3874  GCC=yes
3875else
3876  GCC=
3877fi
3878ac_test_CFLAGS=${CFLAGS+set}
3879ac_save_CFLAGS=$CFLAGS
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3881$as_echo_n "checking whether $CC accepts -g... " >&6; }
3882if ${ac_cv_prog_cc_g+:} false; then :
3883  $as_echo_n "(cached) " >&6
3884else
3885  ac_save_c_werror_flag=$ac_c_werror_flag
3886   ac_c_werror_flag=yes
3887   ac_cv_prog_cc_g=no
3888   CFLAGS="-g"
3889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890/* end confdefs.h.  */
3891
3892int
3893main ()
3894{
3895
3896  ;
3897  return 0;
3898}
3899_ACEOF
3900if ac_fn_c_try_compile "$LINENO"; then :
3901  ac_cv_prog_cc_g=yes
3902else
3903  CFLAGS=""
3904      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905/* end confdefs.h.  */
3906
3907int
3908main ()
3909{
3910
3911  ;
3912  return 0;
3913}
3914_ACEOF
3915if ac_fn_c_try_compile "$LINENO"; then :
3916
3917else
3918  ac_c_werror_flag=$ac_save_c_werror_flag
3919	 CFLAGS="-g"
3920	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921/* end confdefs.h.  */
3922
3923int
3924main ()
3925{
3926
3927  ;
3928  return 0;
3929}
3930_ACEOF
3931if ac_fn_c_try_compile "$LINENO"; then :
3932  ac_cv_prog_cc_g=yes
3933fi
3934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935fi
3936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937fi
3938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939   ac_c_werror_flag=$ac_save_c_werror_flag
3940fi
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3942$as_echo "$ac_cv_prog_cc_g" >&6; }
3943if test "$ac_test_CFLAGS" = set; then
3944  CFLAGS=$ac_save_CFLAGS
3945elif test $ac_cv_prog_cc_g = yes; then
3946  if test "$GCC" = yes; then
3947    CFLAGS="-g -O2"
3948  else
3949    CFLAGS="-g"
3950  fi
3951else
3952  if test "$GCC" = yes; then
3953    CFLAGS="-O2"
3954  else
3955    CFLAGS=
3956  fi
3957fi
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3959$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3960if ${ac_cv_prog_cc_c89+:} false; then :
3961  $as_echo_n "(cached) " >&6
3962else
3963  ac_cv_prog_cc_c89=no
3964ac_save_CC=$CC
3965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966/* end confdefs.h.  */
3967#include <stdarg.h>
3968#include <stdio.h>
3969struct stat;
3970/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3971struct buf { int x; };
3972FILE * (*rcsopen) (struct buf *, struct stat *, int);
3973static char *e (p, i)
3974     char **p;
3975     int i;
3976{
3977  return p[i];
3978}
3979static char *f (char * (*g) (char **, int), char **p, ...)
3980{
3981  char *s;
3982  va_list v;
3983  va_start (v,p);
3984  s = g (p, va_arg (v,int));
3985  va_end (v);
3986  return s;
3987}
3988
3989/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3990   function prototypes and stuff, but not '\xHH' hex character constants.
3991   These don't provoke an error unfortunately, instead are silently treated
3992   as 'x'.  The following induces an error, until -std is added to get
3993   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3994   array size at least.  It's necessary to write '\x00'==0 to get something
3995   that's true only with -std.  */
3996int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3997
3998/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3999   inside strings and character constants.  */
4000#define FOO(x) 'x'
4001int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4002
4003int test (int i, double x);
4004struct s1 {int (*f) (int a);};
4005struct s2 {int (*f) (double a);};
4006int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4007int argc;
4008char **argv;
4009int
4010main ()
4011{
4012return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4013  ;
4014  return 0;
4015}
4016_ACEOF
4017for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4018	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4019do
4020  CC="$ac_save_CC $ac_arg"
4021  if ac_fn_c_try_compile "$LINENO"; then :
4022  ac_cv_prog_cc_c89=$ac_arg
4023fi
4024rm -f core conftest.err conftest.$ac_objext
4025  test "x$ac_cv_prog_cc_c89" != "xno" && break
4026done
4027rm -f conftest.$ac_ext
4028CC=$ac_save_CC
4029
4030fi
4031# AC_CACHE_VAL
4032case "x$ac_cv_prog_cc_c89" in
4033  x)
4034    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4035$as_echo "none needed" >&6; } ;;
4036  xno)
4037    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4038$as_echo "unsupported" >&6; } ;;
4039  *)
4040    CC="$CC $ac_cv_prog_cc_c89"
4041    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4042$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4043esac
4044if test "x$ac_cv_prog_cc_c89" != xno; then :
4045
4046fi
4047
4048ac_ext=c
4049ac_cpp='$CPP $CPPFLAGS'
4050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053
4054ac_ext=c
4055ac_cpp='$CPP $CPPFLAGS'
4056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058ac_compiler_gnu=$ac_cv_c_compiler_gnu
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4060$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4061if ${am_cv_prog_cc_c_o+:} false; then :
4062  $as_echo_n "(cached) " >&6
4063else
4064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065/* end confdefs.h.  */
4066
4067int
4068main ()
4069{
4070
4071  ;
4072  return 0;
4073}
4074_ACEOF
4075  # Make sure it works both with $CC and with simple cc.
4076  # Following AC_PROG_CC_C_O, we do the test twice because some
4077  # compilers refuse to overwrite an existing .o file with -o,
4078  # though they will create one.
4079  am_cv_prog_cc_c_o=yes
4080  for am_i in 1 2; do
4081    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4082   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4083   ac_status=$?
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); } \
4086         && test -f conftest2.$ac_objext; then
4087      : OK
4088    else
4089      am_cv_prog_cc_c_o=no
4090      break
4091    fi
4092  done
4093  rm -f core conftest*
4094  unset am_i
4095fi
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4097$as_echo "$am_cv_prog_cc_c_o" >&6; }
4098if test "$am_cv_prog_cc_c_o" != yes; then
4099   # Losing compiler, so override with the script.
4100   # FIXME: It is wrong to rewrite CC.
4101   # But if we don't then we get into trouble of one sort or another.
4102   # A longer-term fix would be to have automake use am__CC in this case,
4103   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4104   CC="$am_aux_dir/compile $CC"
4105fi
4106ac_ext=c
4107ac_cpp='$CPP $CPPFLAGS'
4108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111
4112DEPDIR="${am__leading_dot}deps"
4113
4114ac_config_commands="$ac_config_commands depfiles"
4115
4116
4117am_make=${MAKE-make}
4118cat > confinc << 'END'
4119am__doit:
4120	@echo this is the am__doit target
4121.PHONY: am__doit
4122END
4123# If we don't find an include directive, just comment out the code.
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4125$as_echo_n "checking for style of include used by $am_make... " >&6; }
4126am__include="#"
4127am__quote=
4128_am_result=none
4129# First try GNU make style include.
4130echo "include confinc" > confmf
4131# Ignore all kinds of additional output from 'make'.
4132case `$am_make -s -f confmf 2> /dev/null` in #(
4133*the\ am__doit\ target*)
4134  am__include=include
4135  am__quote=
4136  _am_result=GNU
4137  ;;
4138esac
4139# Now try BSD make style include.
4140if test "$am__include" = "#"; then
4141   echo '.include "confinc"' > confmf
4142   case `$am_make -s -f confmf 2> /dev/null` in #(
4143   *the\ am__doit\ target*)
4144     am__include=.include
4145     am__quote="\""
4146     _am_result=BSD
4147     ;;
4148   esac
4149fi
4150
4151
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4153$as_echo "$_am_result" >&6; }
4154rm -f confinc confmf
4155
4156# Check whether --enable-dependency-tracking was given.
4157if test "${enable_dependency_tracking+set}" = set; then :
4158  enableval=$enable_dependency_tracking;
4159fi
4160
4161if test "x$enable_dependency_tracking" != xno; then
4162  am_depcomp="$ac_aux_dir/depcomp"
4163  AMDEPBACKSLASH='\'
4164  am__nodep='_no'
4165fi
4166 if test "x$enable_dependency_tracking" != xno; then
4167  AMDEP_TRUE=
4168  AMDEP_FALSE='#'
4169else
4170  AMDEP_TRUE='#'
4171  AMDEP_FALSE=
4172fi
4173
4174
4175
4176depcc="$CC"   am_compiler_list=
4177
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4179$as_echo_n "checking dependency style of $depcc... " >&6; }
4180if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4181  $as_echo_n "(cached) " >&6
4182else
4183  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4184  # We make a subdir and do the tests there.  Otherwise we can end up
4185  # making bogus files that we don't know about and never remove.  For
4186  # instance it was reported that on HP-UX the gcc test will end up
4187  # making a dummy file named 'D' -- because '-MD' means "put the output
4188  # in D".
4189  rm -rf conftest.dir
4190  mkdir conftest.dir
4191  # Copy depcomp to subdir because otherwise we won't find it if we're
4192  # using a relative directory.
4193  cp "$am_depcomp" conftest.dir
4194  cd conftest.dir
4195  # We will build objects and dependencies in a subdirectory because
4196  # it helps to detect inapplicable dependency modes.  For instance
4197  # both Tru64's cc and ICC support -MD to output dependencies as a
4198  # side effect of compilation, but ICC will put the dependencies in
4199  # the current directory while Tru64 will put them in the object
4200  # directory.
4201  mkdir sub
4202
4203  am_cv_CC_dependencies_compiler_type=none
4204  if test "$am_compiler_list" = ""; then
4205     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4206  fi
4207  am__universal=false
4208  case " $depcc " in #(
4209     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4210     esac
4211
4212  for depmode in $am_compiler_list; do
4213    # Setup a source with many dependencies, because some compilers
4214    # like to wrap large dependency lists on column 80 (with \), and
4215    # we should not choose a depcomp mode which is confused by this.
4216    #
4217    # We need to recreate these files for each test, as the compiler may
4218    # overwrite some of them when testing with obscure command lines.
4219    # This happens at least with the AIX C compiler.
4220    : > sub/conftest.c
4221    for i in 1 2 3 4 5 6; do
4222      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4223      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4224      # Solaris 10 /bin/sh.
4225      echo '/* dummy */' > sub/conftst$i.h
4226    done
4227    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4228
4229    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4230    # mode.  It turns out that the SunPro C++ compiler does not properly
4231    # handle '-M -o', and we need to detect this.  Also, some Intel
4232    # versions had trouble with output in subdirs.
4233    am__obj=sub/conftest.${OBJEXT-o}
4234    am__minus_obj="-o $am__obj"
4235    case $depmode in
4236    gcc)
4237      # This depmode causes a compiler race in universal mode.
4238      test "$am__universal" = false || continue
4239      ;;
4240    nosideeffect)
4241      # After this tag, mechanisms are not by side-effect, so they'll
4242      # only be used when explicitly requested.
4243      if test "x$enable_dependency_tracking" = xyes; then
4244	continue
4245      else
4246	break
4247      fi
4248      ;;
4249    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4250      # This compiler won't grok '-c -o', but also, the minuso test has
4251      # not run yet.  These depmodes are late enough in the game, and
4252      # so weak that their functioning should not be impacted.
4253      am__obj=conftest.${OBJEXT-o}
4254      am__minus_obj=
4255      ;;
4256    none) break ;;
4257    esac
4258    if depmode=$depmode \
4259       source=sub/conftest.c object=$am__obj \
4260       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4261       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4262         >/dev/null 2>conftest.err &&
4263       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4264       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4265       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4266       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4267      # icc doesn't choke on unknown options, it will just issue warnings
4268      # or remarks (even with -Werror).  So we grep stderr for any message
4269      # that says an option was ignored or not supported.
4270      # When given -MP, icc 7.0 and 7.1 complain thusly:
4271      #   icc: Command line warning: ignoring option '-M'; no argument required
4272      # The diagnosis changed in icc 8.0:
4273      #   icc: Command line remark: option '-MP' not supported
4274      if (grep 'ignoring option' conftest.err ||
4275          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4276        am_cv_CC_dependencies_compiler_type=$depmode
4277        break
4278      fi
4279    fi
4280  done
4281
4282  cd ..
4283  rm -rf conftest.dir
4284else
4285  am_cv_CC_dependencies_compiler_type=none
4286fi
4287
4288fi
4289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4290$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4291CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4292
4293 if
4294  test "x$enable_dependency_tracking" != xno \
4295  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4296  am__fastdepCC_TRUE=
4297  am__fastdepCC_FALSE='#'
4298else
4299  am__fastdepCC_TRUE='#'
4300  am__fastdepCC_FALSE=
4301fi
4302
4303
4304   case $ac_cv_prog_cc_stdc in #(
4305  no) :
4306    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4307  *) :
4308    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4309$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4310if ${ac_cv_prog_cc_c99+:} false; then :
4311  $as_echo_n "(cached) " >&6
4312else
4313  ac_cv_prog_cc_c99=no
4314ac_save_CC=$CC
4315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316/* end confdefs.h.  */
4317#include <stdarg.h>
4318#include <stdbool.h>
4319#include <stdlib.h>
4320#include <wchar.h>
4321#include <stdio.h>
4322
4323// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4324#define debug(...) fprintf (stderr, __VA_ARGS__)
4325#define showlist(...) puts (#__VA_ARGS__)
4326#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4327static void
4328test_varargs_macros (void)
4329{
4330  int x = 1234;
4331  int y = 5678;
4332  debug ("Flag");
4333  debug ("X = %d\n", x);
4334  showlist (The first, second, and third items.);
4335  report (x>y, "x is %d but y is %d", x, y);
4336}
4337
4338// Check long long types.
4339#define BIG64 18446744073709551615ull
4340#define BIG32 4294967295ul
4341#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4342#if !BIG_OK
4343  your preprocessor is broken;
4344#endif
4345#if BIG_OK
4346#else
4347  your preprocessor is broken;
4348#endif
4349static long long int bignum = -9223372036854775807LL;
4350static unsigned long long int ubignum = BIG64;
4351
4352struct incomplete_array
4353{
4354  int datasize;
4355  double data[];
4356};
4357
4358struct named_init {
4359  int number;
4360  const wchar_t *name;
4361  double average;
4362};
4363
4364typedef const char *ccp;
4365
4366static inline int
4367test_restrict (ccp restrict text)
4368{
4369  // See if C++-style comments work.
4370  // Iterate through items via the restricted pointer.
4371  // Also check for declarations in for loops.
4372  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4373    continue;
4374  return 0;
4375}
4376
4377// Check varargs and va_copy.
4378static void
4379test_varargs (const char *format, ...)
4380{
4381  va_list args;
4382  va_start (args, format);
4383  va_list args_copy;
4384  va_copy (args_copy, args);
4385
4386  const char *str;
4387  int number;
4388  float fnumber;
4389
4390  while (*format)
4391    {
4392      switch (*format++)
4393	{
4394	case 's': // string
4395	  str = va_arg (args_copy, const char *);
4396	  break;
4397	case 'd': // int
4398	  number = va_arg (args_copy, int);
4399	  break;
4400	case 'f': // float
4401	  fnumber = va_arg (args_copy, double);
4402	  break;
4403	default:
4404	  break;
4405	}
4406    }
4407  va_end (args_copy);
4408  va_end (args);
4409}
4410
4411int
4412main ()
4413{
4414
4415  // Check bool.
4416  _Bool success = false;
4417
4418  // Check restrict.
4419  if (test_restrict ("String literal") == 0)
4420    success = true;
4421  char *restrict newvar = "Another string";
4422
4423  // Check varargs.
4424  test_varargs ("s, d' f .", "string", 65, 34.234);
4425  test_varargs_macros ();
4426
4427  // Check flexible array members.
4428  struct incomplete_array *ia =
4429    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4430  ia->datasize = 10;
4431  for (int i = 0; i < ia->datasize; ++i)
4432    ia->data[i] = i * 1.234;
4433
4434  // Check named initializers.
4435  struct named_init ni = {
4436    .number = 34,
4437    .name = L"Test wide string",
4438    .average = 543.34343,
4439  };
4440
4441  ni.number = 58;
4442
4443  int dynamic_array[ni.number];
4444  dynamic_array[ni.number - 1] = 543;
4445
4446  // work around unused variable warnings
4447  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4448	  || dynamic_array[ni.number - 1] != 543);
4449
4450  ;
4451  return 0;
4452}
4453_ACEOF
4454for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4455do
4456  CC="$ac_save_CC $ac_arg"
4457  if ac_fn_c_try_compile "$LINENO"; then :
4458  ac_cv_prog_cc_c99=$ac_arg
4459fi
4460rm -f core conftest.err conftest.$ac_objext
4461  test "x$ac_cv_prog_cc_c99" != "xno" && break
4462done
4463rm -f conftest.$ac_ext
4464CC=$ac_save_CC
4465
4466fi
4467# AC_CACHE_VAL
4468case "x$ac_cv_prog_cc_c99" in
4469  x)
4470    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4471$as_echo "none needed" >&6; } ;;
4472  xno)
4473    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4474$as_echo "unsupported" >&6; } ;;
4475  *)
4476    CC="$CC $ac_cv_prog_cc_c99"
4477    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4478$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4479esac
4480if test "x$ac_cv_prog_cc_c99" != xno; then :
4481  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4482else
4483  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4484$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4485if ${ac_cv_prog_cc_c89+:} false; then :
4486  $as_echo_n "(cached) " >&6
4487else
4488  ac_cv_prog_cc_c89=no
4489ac_save_CC=$CC
4490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491/* end confdefs.h.  */
4492#include <stdarg.h>
4493#include <stdio.h>
4494struct stat;
4495/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4496struct buf { int x; };
4497FILE * (*rcsopen) (struct buf *, struct stat *, int);
4498static char *e (p, i)
4499     char **p;
4500     int i;
4501{
4502  return p[i];
4503}
4504static char *f (char * (*g) (char **, int), char **p, ...)
4505{
4506  char *s;
4507  va_list v;
4508  va_start (v,p);
4509  s = g (p, va_arg (v,int));
4510  va_end (v);
4511  return s;
4512}
4513
4514/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4515   function prototypes and stuff, but not '\xHH' hex character constants.
4516   These don't provoke an error unfortunately, instead are silently treated
4517   as 'x'.  The following induces an error, until -std is added to get
4518   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4519   array size at least.  It's necessary to write '\x00'==0 to get something
4520   that's true only with -std.  */
4521int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4522
4523/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4524   inside strings and character constants.  */
4525#define FOO(x) 'x'
4526int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4527
4528int test (int i, double x);
4529struct s1 {int (*f) (int a);};
4530struct s2 {int (*f) (double a);};
4531int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4532int argc;
4533char **argv;
4534int
4535main ()
4536{
4537return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4538  ;
4539  return 0;
4540}
4541_ACEOF
4542for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4543	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4544do
4545  CC="$ac_save_CC $ac_arg"
4546  if ac_fn_c_try_compile "$LINENO"; then :
4547  ac_cv_prog_cc_c89=$ac_arg
4548fi
4549rm -f core conftest.err conftest.$ac_objext
4550  test "x$ac_cv_prog_cc_c89" != "xno" && break
4551done
4552rm -f conftest.$ac_ext
4553CC=$ac_save_CC
4554
4555fi
4556# AC_CACHE_VAL
4557case "x$ac_cv_prog_cc_c89" in
4558  x)
4559    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4560$as_echo "none needed" >&6; } ;;
4561  xno)
4562    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4563$as_echo "unsupported" >&6; } ;;
4564  *)
4565    CC="$CC $ac_cv_prog_cc_c89"
4566    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4567$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4568esac
4569if test "x$ac_cv_prog_cc_c89" != xno; then :
4570  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4571else
4572  ac_cv_prog_cc_stdc=no
4573fi
4574
4575fi
4576 ;;
4577esac
4578  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4579$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4580  if ${ac_cv_prog_cc_stdc+:} false; then :
4581  $as_echo_n "(cached) " >&6
4582fi
4583
4584  case $ac_cv_prog_cc_stdc in #(
4585  no) :
4586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4587$as_echo "unsupported" >&6; } ;; #(
4588  '') :
4589    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4590$as_echo "none needed" >&6; } ;; #(
4591  *) :
4592    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4593$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4594esac
4595
4596ac_ext=c
4597ac_cpp='$CPP $CPPFLAGS'
4598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600ac_compiler_gnu=$ac_cv_c_compiler_gnu
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4602$as_echo_n "checking how to run the C preprocessor... " >&6; }
4603# On Suns, sometimes $CPP names a directory.
4604if test -n "$CPP" && test -d "$CPP"; then
4605  CPP=
4606fi
4607if test -z "$CPP"; then
4608  if ${ac_cv_prog_CPP+:} false; then :
4609  $as_echo_n "(cached) " >&6
4610else
4611      # Double quotes because CPP needs to be expanded
4612    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4613    do
4614      ac_preproc_ok=false
4615for ac_c_preproc_warn_flag in '' yes
4616do
4617  # Use a header file that comes with gcc, so configuring glibc
4618  # with a fresh cross-compiler works.
4619  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4620  # <limits.h> exists even on freestanding compilers.
4621  # On the NeXT, cc -E runs the code through the compiler's parser,
4622  # not just through cpp. "Syntax error" is here to catch this case.
4623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624/* end confdefs.h.  */
4625#ifdef __STDC__
4626# include <limits.h>
4627#else
4628# include <assert.h>
4629#endif
4630		     Syntax error
4631_ACEOF
4632if ac_fn_c_try_cpp "$LINENO"; then :
4633
4634else
4635  # Broken: fails on valid input.
4636continue
4637fi
4638rm -f conftest.err conftest.i conftest.$ac_ext
4639
4640  # OK, works on sane cases.  Now check whether nonexistent headers
4641  # can be detected and how.
4642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643/* end confdefs.h.  */
4644#include <ac_nonexistent.h>
4645_ACEOF
4646if ac_fn_c_try_cpp "$LINENO"; then :
4647  # Broken: success on invalid input.
4648continue
4649else
4650  # Passes both tests.
4651ac_preproc_ok=:
4652break
4653fi
4654rm -f conftest.err conftest.i conftest.$ac_ext
4655
4656done
4657# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4658rm -f conftest.i conftest.err conftest.$ac_ext
4659if $ac_preproc_ok; then :
4660  break
4661fi
4662
4663    done
4664    ac_cv_prog_CPP=$CPP
4665
4666fi
4667  CPP=$ac_cv_prog_CPP
4668else
4669  ac_cv_prog_CPP=$CPP
4670fi
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4672$as_echo "$CPP" >&6; }
4673ac_preproc_ok=false
4674for ac_c_preproc_warn_flag in '' yes
4675do
4676  # Use a header file that comes with gcc, so configuring glibc
4677  # with a fresh cross-compiler works.
4678  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4679  # <limits.h> exists even on freestanding compilers.
4680  # On the NeXT, cc -E runs the code through the compiler's parser,
4681  # not just through cpp. "Syntax error" is here to catch this case.
4682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683/* end confdefs.h.  */
4684#ifdef __STDC__
4685# include <limits.h>
4686#else
4687# include <assert.h>
4688#endif
4689		     Syntax error
4690_ACEOF
4691if ac_fn_c_try_cpp "$LINENO"; then :
4692
4693else
4694  # Broken: fails on valid input.
4695continue
4696fi
4697rm -f conftest.err conftest.i conftest.$ac_ext
4698
4699  # OK, works on sane cases.  Now check whether nonexistent headers
4700  # can be detected and how.
4701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702/* end confdefs.h.  */
4703#include <ac_nonexistent.h>
4704_ACEOF
4705if ac_fn_c_try_cpp "$LINENO"; then :
4706  # Broken: success on invalid input.
4707continue
4708else
4709  # Passes both tests.
4710ac_preproc_ok=:
4711break
4712fi
4713rm -f conftest.err conftest.i conftest.$ac_ext
4714
4715done
4716# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4717rm -f conftest.i conftest.err conftest.$ac_ext
4718if $ac_preproc_ok; then :
4719
4720else
4721  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4723as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4724See \`config.log' for more details" "$LINENO" 5; }
4725fi
4726
4727ac_ext=c
4728ac_cpp='$CPP $CPPFLAGS'
4729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4731ac_compiler_gnu=$ac_cv_c_compiler_gnu
4732
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4734$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4735if ${ac_cv_path_SED+:} false; then :
4736  $as_echo_n "(cached) " >&6
4737else
4738            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4739     for ac_i in 1 2 3 4 5 6 7; do
4740       ac_script="$ac_script$as_nl$ac_script"
4741     done
4742     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4743     { ac_script=; unset ac_script;}
4744     if test -z "$SED"; then
4745  ac_path_SED_found=false
4746  # Loop through the user's path and test for each of PROGNAME-LIST
4747  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748for as_dir in $PATH
4749do
4750  IFS=$as_save_IFS
4751  test -z "$as_dir" && as_dir=.
4752    for ac_prog in sed gsed; do
4753    for ac_exec_ext in '' $ac_executable_extensions; do
4754      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4755      as_fn_executable_p "$ac_path_SED" || continue
4756# Check for GNU ac_path_SED and select it if it is found.
4757  # Check for GNU $ac_path_SED
4758case `"$ac_path_SED" --version 2>&1` in
4759*GNU*)
4760  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4761*)
4762  ac_count=0
4763  $as_echo_n 0123456789 >"conftest.in"
4764  while :
4765  do
4766    cat "conftest.in" "conftest.in" >"conftest.tmp"
4767    mv "conftest.tmp" "conftest.in"
4768    cp "conftest.in" "conftest.nl"
4769    $as_echo '' >> "conftest.nl"
4770    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4771    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4772    as_fn_arith $ac_count + 1 && ac_count=$as_val
4773    if test $ac_count -gt ${ac_path_SED_max-0}; then
4774      # Best one so far, save it but keep looking for a better one
4775      ac_cv_path_SED="$ac_path_SED"
4776      ac_path_SED_max=$ac_count
4777    fi
4778    # 10*(2^10) chars as input seems more than enough
4779    test $ac_count -gt 10 && break
4780  done
4781  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4782esac
4783
4784      $ac_path_SED_found && break 3
4785    done
4786  done
4787  done
4788IFS=$as_save_IFS
4789  if test -z "$ac_cv_path_SED"; then
4790    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4791  fi
4792else
4793  ac_cv_path_SED=$SED
4794fi
4795
4796fi
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4798$as_echo "$ac_cv_path_SED" >&6; }
4799 SED="$ac_cv_path_SED"
4800  rm -f conftest.sed
4801
4802test -z "$SED" && SED=sed
4803Xsed="$SED -e 1s/^X//"
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4816$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4817if ${ac_cv_path_GREP+:} false; then :
4818  $as_echo_n "(cached) " >&6
4819else
4820  if test -z "$GREP"; then
4821  ac_path_GREP_found=false
4822  # Loop through the user's path and test for each of PROGNAME-LIST
4823  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4825do
4826  IFS=$as_save_IFS
4827  test -z "$as_dir" && as_dir=.
4828    for ac_prog in grep ggrep; do
4829    for ac_exec_ext in '' $ac_executable_extensions; do
4830      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4831      as_fn_executable_p "$ac_path_GREP" || continue
4832# Check for GNU ac_path_GREP and select it if it is found.
4833  # Check for GNU $ac_path_GREP
4834case `"$ac_path_GREP" --version 2>&1` in
4835*GNU*)
4836  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4837*)
4838  ac_count=0
4839  $as_echo_n 0123456789 >"conftest.in"
4840  while :
4841  do
4842    cat "conftest.in" "conftest.in" >"conftest.tmp"
4843    mv "conftest.tmp" "conftest.in"
4844    cp "conftest.in" "conftest.nl"
4845    $as_echo 'GREP' >> "conftest.nl"
4846    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4847    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4848    as_fn_arith $ac_count + 1 && ac_count=$as_val
4849    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4850      # Best one so far, save it but keep looking for a better one
4851      ac_cv_path_GREP="$ac_path_GREP"
4852      ac_path_GREP_max=$ac_count
4853    fi
4854    # 10*(2^10) chars as input seems more than enough
4855    test $ac_count -gt 10 && break
4856  done
4857  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4858esac
4859
4860      $ac_path_GREP_found && break 3
4861    done
4862  done
4863  done
4864IFS=$as_save_IFS
4865  if test -z "$ac_cv_path_GREP"; then
4866    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4867  fi
4868else
4869  ac_cv_path_GREP=$GREP
4870fi
4871
4872fi
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4874$as_echo "$ac_cv_path_GREP" >&6; }
4875 GREP="$ac_cv_path_GREP"
4876
4877
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4879$as_echo_n "checking for egrep... " >&6; }
4880if ${ac_cv_path_EGREP+:} false; then :
4881  $as_echo_n "(cached) " >&6
4882else
4883  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4884   then ac_cv_path_EGREP="$GREP -E"
4885   else
4886     if test -z "$EGREP"; then
4887  ac_path_EGREP_found=false
4888  # Loop through the user's path and test for each of PROGNAME-LIST
4889  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4891do
4892  IFS=$as_save_IFS
4893  test -z "$as_dir" && as_dir=.
4894    for ac_prog in egrep; do
4895    for ac_exec_ext in '' $ac_executable_extensions; do
4896      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4897      as_fn_executable_p "$ac_path_EGREP" || continue
4898# Check for GNU ac_path_EGREP and select it if it is found.
4899  # Check for GNU $ac_path_EGREP
4900case `"$ac_path_EGREP" --version 2>&1` in
4901*GNU*)
4902  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4903*)
4904  ac_count=0
4905  $as_echo_n 0123456789 >"conftest.in"
4906  while :
4907  do
4908    cat "conftest.in" "conftest.in" >"conftest.tmp"
4909    mv "conftest.tmp" "conftest.in"
4910    cp "conftest.in" "conftest.nl"
4911    $as_echo 'EGREP' >> "conftest.nl"
4912    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4913    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4914    as_fn_arith $ac_count + 1 && ac_count=$as_val
4915    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4916      # Best one so far, save it but keep looking for a better one
4917      ac_cv_path_EGREP="$ac_path_EGREP"
4918      ac_path_EGREP_max=$ac_count
4919    fi
4920    # 10*(2^10) chars as input seems more than enough
4921    test $ac_count -gt 10 && break
4922  done
4923  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4924esac
4925
4926      $ac_path_EGREP_found && break 3
4927    done
4928  done
4929  done
4930IFS=$as_save_IFS
4931  if test -z "$ac_cv_path_EGREP"; then
4932    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4933  fi
4934else
4935  ac_cv_path_EGREP=$EGREP
4936fi
4937
4938   fi
4939fi
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4941$as_echo "$ac_cv_path_EGREP" >&6; }
4942 EGREP="$ac_cv_path_EGREP"
4943
4944
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4946$as_echo_n "checking for fgrep... " >&6; }
4947if ${ac_cv_path_FGREP+:} false; then :
4948  $as_echo_n "(cached) " >&6
4949else
4950  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4951   then ac_cv_path_FGREP="$GREP -F"
4952   else
4953     if test -z "$FGREP"; then
4954  ac_path_FGREP_found=false
4955  # Loop through the user's path and test for each of PROGNAME-LIST
4956  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4958do
4959  IFS=$as_save_IFS
4960  test -z "$as_dir" && as_dir=.
4961    for ac_prog in fgrep; do
4962    for ac_exec_ext in '' $ac_executable_extensions; do
4963      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4964      as_fn_executable_p "$ac_path_FGREP" || continue
4965# Check for GNU ac_path_FGREP and select it if it is found.
4966  # Check for GNU $ac_path_FGREP
4967case `"$ac_path_FGREP" --version 2>&1` in
4968*GNU*)
4969  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4970*)
4971  ac_count=0
4972  $as_echo_n 0123456789 >"conftest.in"
4973  while :
4974  do
4975    cat "conftest.in" "conftest.in" >"conftest.tmp"
4976    mv "conftest.tmp" "conftest.in"
4977    cp "conftest.in" "conftest.nl"
4978    $as_echo 'FGREP' >> "conftest.nl"
4979    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4980    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4981    as_fn_arith $ac_count + 1 && ac_count=$as_val
4982    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4983      # Best one so far, save it but keep looking for a better one
4984      ac_cv_path_FGREP="$ac_path_FGREP"
4985      ac_path_FGREP_max=$ac_count
4986    fi
4987    # 10*(2^10) chars as input seems more than enough
4988    test $ac_count -gt 10 && break
4989  done
4990  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4991esac
4992
4993      $ac_path_FGREP_found && break 3
4994    done
4995  done
4996  done
4997IFS=$as_save_IFS
4998  if test -z "$ac_cv_path_FGREP"; then
4999    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5000  fi
5001else
5002  ac_cv_path_FGREP=$FGREP
5003fi
5004
5005   fi
5006fi
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5008$as_echo "$ac_cv_path_FGREP" >&6; }
5009 FGREP="$ac_cv_path_FGREP"
5010
5011
5012test -z "$GREP" && GREP=grep
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5031ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5032ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5033
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5035$as_echo_n "checking how to print strings... " >&6; }
5036# Test print first, because it will be a builtin if present.
5037if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5038   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5039  ECHO='print -r --'
5040elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5041  ECHO='printf %s\n'
5042else
5043  # Use this function as a fallback that always works.
5044  func_fallback_echo ()
5045  {
5046    eval 'cat <<_LTECHO_EOF
5047$1
5048_LTECHO_EOF'
5049  }
5050  ECHO='func_fallback_echo'
5051fi
5052
5053# func_echo_all arg...
5054# Invoke $ECHO with all args, space-separated.
5055func_echo_all ()
5056{
5057    $ECHO ""
5058}
5059
5060case $ECHO in
5061  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5062$as_echo "printf" >&6; } ;;
5063  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5064$as_echo "print -r" >&6; } ;;
5065  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5066$as_echo "cat" >&6; } ;;
5067esac
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084# Check whether --with-gnu-ld was given.
5085if test "${with_gnu_ld+set}" = set; then :
5086  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5087else
5088  with_gnu_ld=no
5089fi
5090
5091ac_prog=ld
5092if test yes = "$GCC"; then
5093  # Check if gcc -print-prog-name=ld gives a path.
5094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5095$as_echo_n "checking for ld used by $CC... " >&6; }
5096  case $host in
5097  *-*-mingw*)
5098    # gcc leaves a trailing carriage return, which upsets mingw
5099    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5100  *)
5101    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5102  esac
5103  case $ac_prog in
5104    # Accept absolute paths.
5105    [\\/]* | ?:[\\/]*)
5106      re_direlt='/[^/][^/]*/\.\./'
5107      # Canonicalize the pathname of ld
5108      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5109      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5110	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5111      done
5112      test -z "$LD" && LD=$ac_prog
5113      ;;
5114  "")
5115    # If it fails, then pretend we aren't using GCC.
5116    ac_prog=ld
5117    ;;
5118  *)
5119    # If it is relative, then search for the first ld in PATH.
5120    with_gnu_ld=unknown
5121    ;;
5122  esac
5123elif test yes = "$with_gnu_ld"; then
5124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5125$as_echo_n "checking for GNU ld... " >&6; }
5126else
5127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5128$as_echo_n "checking for non-GNU ld... " >&6; }
5129fi
5130if ${lt_cv_path_LD+:} false; then :
5131  $as_echo_n "(cached) " >&6
5132else
5133  if test -z "$LD"; then
5134  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5135  for ac_dir in $PATH; do
5136    IFS=$lt_save_ifs
5137    test -z "$ac_dir" && ac_dir=.
5138    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5139      lt_cv_path_LD=$ac_dir/$ac_prog
5140      # Check to see if the program is GNU ld.  I'd rather use --version,
5141      # but apparently some variants of GNU ld only accept -v.
5142      # Break only if it was the GNU/non-GNU ld that we prefer.
5143      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5144      *GNU* | *'with BFD'*)
5145	test no != "$with_gnu_ld" && break
5146	;;
5147      *)
5148	test yes != "$with_gnu_ld" && break
5149	;;
5150      esac
5151    fi
5152  done
5153  IFS=$lt_save_ifs
5154else
5155  lt_cv_path_LD=$LD # Let the user override the test with a path.
5156fi
5157fi
5158
5159LD=$lt_cv_path_LD
5160if test -n "$LD"; then
5161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5162$as_echo "$LD" >&6; }
5163else
5164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165$as_echo "no" >&6; }
5166fi
5167test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5169$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5170if ${lt_cv_prog_gnu_ld+:} false; then :
5171  $as_echo_n "(cached) " >&6
5172else
5173  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5174case `$LD -v 2>&1 </dev/null` in
5175*GNU* | *'with BFD'*)
5176  lt_cv_prog_gnu_ld=yes
5177  ;;
5178*)
5179  lt_cv_prog_gnu_ld=no
5180  ;;
5181esac
5182fi
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5184$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5185with_gnu_ld=$lt_cv_prog_gnu_ld
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5199$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5200set x ${MAKE-make}
5201ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5202if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5203  $as_echo_n "(cached) " >&6
5204else
5205  cat >conftest.make <<\_ACEOF
5206SHELL = /bin/sh
5207all:
5208	@echo '@@@%%%=$(MAKE)=@@@%%%'
5209_ACEOF
5210# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5211case `${MAKE-make} -f conftest.make 2>/dev/null` in
5212  *@@@%%%=?*=@@@%%%*)
5213    eval ac_cv_prog_make_${ac_make}_set=yes;;
5214  *)
5215    eval ac_cv_prog_make_${ac_make}_set=no;;
5216esac
5217rm -f conftest.make
5218fi
5219if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5221$as_echo "yes" >&6; }
5222  SET_MAKE=
5223else
5224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225$as_echo "no" >&6; }
5226  SET_MAKE="MAKE=${MAKE-make}"
5227fi
5228
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5230$as_echo_n "checking whether ln -s works... " >&6; }
5231LN_S=$as_ln_s
5232if test "$LN_S" = "ln -s"; then
5233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5234$as_echo "yes" >&6; }
5235else
5236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5237$as_echo "no, using $LN_S" >&6; }
5238fi
5239
5240
5241#
5242# Enable OS features.
5243#
5244
5245
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5247$as_echo_n "checking for ANSI C header files... " >&6; }
5248if ${ac_cv_header_stdc+:} false; then :
5249  $as_echo_n "(cached) " >&6
5250else
5251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252/* end confdefs.h.  */
5253#include <stdlib.h>
5254#include <stdarg.h>
5255#include <string.h>
5256#include <float.h>
5257
5258int
5259main ()
5260{
5261
5262  ;
5263  return 0;
5264}
5265_ACEOF
5266if ac_fn_c_try_compile "$LINENO"; then :
5267  ac_cv_header_stdc=yes
5268else
5269  ac_cv_header_stdc=no
5270fi
5271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5272
5273if test $ac_cv_header_stdc = yes; then
5274  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276/* end confdefs.h.  */
5277#include <string.h>
5278
5279_ACEOF
5280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5281  $EGREP "memchr" >/dev/null 2>&1; then :
5282
5283else
5284  ac_cv_header_stdc=no
5285fi
5286rm -f conftest*
5287
5288fi
5289
5290if test $ac_cv_header_stdc = yes; then
5291  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293/* end confdefs.h.  */
5294#include <stdlib.h>
5295
5296_ACEOF
5297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5298  $EGREP "free" >/dev/null 2>&1; then :
5299
5300else
5301  ac_cv_header_stdc=no
5302fi
5303rm -f conftest*
5304
5305fi
5306
5307if test $ac_cv_header_stdc = yes; then
5308  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5309  if test "$cross_compiling" = yes; then :
5310  :
5311else
5312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313/* end confdefs.h.  */
5314#include <ctype.h>
5315#include <stdlib.h>
5316#if ((' ' & 0x0FF) == 0x020)
5317# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5318# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5319#else
5320# define ISLOWER(c) \
5321		   (('a' <= (c) && (c) <= 'i') \
5322		     || ('j' <= (c) && (c) <= 'r') \
5323		     || ('s' <= (c) && (c) <= 'z'))
5324# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5325#endif
5326
5327#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5328int
5329main ()
5330{
5331  int i;
5332  for (i = 0; i < 256; i++)
5333    if (XOR (islower (i), ISLOWER (i))
5334	|| toupper (i) != TOUPPER (i))
5335      return 2;
5336  return 0;
5337}
5338_ACEOF
5339if ac_fn_c_try_run "$LINENO"; then :
5340
5341else
5342  ac_cv_header_stdc=no
5343fi
5344rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5345  conftest.$ac_objext conftest.beam conftest.$ac_ext
5346fi
5347
5348fi
5349fi
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5351$as_echo "$ac_cv_header_stdc" >&6; }
5352if test $ac_cv_header_stdc = yes; then
5353
5354$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5355
5356fi
5357
5358# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5359for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5360		  inttypes.h stdint.h unistd.h
5361do :
5362  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5363ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5364"
5365if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5366  cat >>confdefs.h <<_ACEOF
5367#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5368_ACEOF
5369
5370fi
5371
5372done
5373
5374
5375
5376  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5377if test "x$ac_cv_header_minix_config_h" = xyes; then :
5378  MINIX=yes
5379else
5380  MINIX=
5381fi
5382
5383
5384  if test "$MINIX" = yes; then
5385
5386$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5387
5388
5389$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5390
5391
5392$as_echo "#define _MINIX 1" >>confdefs.h
5393
5394  fi
5395
5396
5397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5398$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5399if ${ac_cv_safe_to_define___extensions__+:} false; then :
5400  $as_echo_n "(cached) " >&6
5401else
5402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403/* end confdefs.h.  */
5404
5405#         define __EXTENSIONS__ 1
5406          $ac_includes_default
5407int
5408main ()
5409{
5410
5411  ;
5412  return 0;
5413}
5414_ACEOF
5415if ac_fn_c_try_compile "$LINENO"; then :
5416  ac_cv_safe_to_define___extensions__=yes
5417else
5418  ac_cv_safe_to_define___extensions__=no
5419fi
5420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421fi
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5423$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5424  test $ac_cv_safe_to_define___extensions__ = yes &&
5425    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5426
5427  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5428
5429  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5430
5431  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5432
5433  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5434
5435
5436
5437
5438#
5439# Tests for Windows
5440#
5441
5442
5443
5444# Checks for typedefs, structures, and compiler characteristics.
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5446$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5447if ${ac_cv_c_const+:} false; then :
5448  $as_echo_n "(cached) " >&6
5449else
5450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h.  */
5452
5453int
5454main ()
5455{
5456
5457#ifndef __cplusplus
5458  /* Ultrix mips cc rejects this sort of thing.  */
5459  typedef int charset[2];
5460  const charset cs = { 0, 0 };
5461  /* SunOS 4.1.1 cc rejects this.  */
5462  char const *const *pcpcc;
5463  char **ppc;
5464  /* NEC SVR4.0.2 mips cc rejects this.  */
5465  struct point {int x, y;};
5466  static struct point const zero = {0,0};
5467  /* AIX XL C 1.02.0.0 rejects this.
5468     It does not let you subtract one const X* pointer from another in
5469     an arm of an if-expression whose if-part is not a constant
5470     expression */
5471  const char *g = "string";
5472  pcpcc = &g + (g ? g-g : 0);
5473  /* HPUX 7.0 cc rejects these. */
5474  ++pcpcc;
5475  ppc = (char**) pcpcc;
5476  pcpcc = (char const *const *) ppc;
5477  { /* SCO 3.2v4 cc rejects this sort of thing.  */
5478    char tx;
5479    char *t = &tx;
5480    char const *s = 0 ? (char *) 0 : (char const *) 0;
5481
5482    *t++ = 0;
5483    if (s) return 0;
5484  }
5485  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5486    int x[] = {25, 17};
5487    const int *foo = &x[0];
5488    ++foo;
5489  }
5490  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5491    typedef const int *iptr;
5492    iptr p = 0;
5493    ++p;
5494  }
5495  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5496       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5497    struct s { int j; const int *ap[3]; } bx;
5498    struct s *b = &bx; b->j = 5;
5499  }
5500  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5501    const int foo = 10;
5502    if (!foo) return 0;
5503  }
5504  return !cs[0] && !zero.x;
5505#endif
5506
5507  ;
5508  return 0;
5509}
5510_ACEOF
5511if ac_fn_c_try_compile "$LINENO"; then :
5512  ac_cv_c_const=yes
5513else
5514  ac_cv_c_const=no
5515fi
5516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5517fi
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5519$as_echo "$ac_cv_c_const" >&6; }
5520if test $ac_cv_c_const = no; then
5521
5522$as_echo "#define const /**/" >>confdefs.h
5523
5524fi
5525
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5527$as_echo_n "checking for inline... " >&6; }
5528if ${ac_cv_c_inline+:} false; then :
5529  $as_echo_n "(cached) " >&6
5530else
5531  ac_cv_c_inline=no
5532for ac_kw in inline __inline__ __inline; do
5533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534/* end confdefs.h.  */
5535#ifndef __cplusplus
5536typedef int foo_t;
5537static $ac_kw foo_t static_foo () {return 0; }
5538$ac_kw foo_t foo () {return 0; }
5539#endif
5540
5541_ACEOF
5542if ac_fn_c_try_compile "$LINENO"; then :
5543  ac_cv_c_inline=$ac_kw
5544fi
5545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546  test "$ac_cv_c_inline" != no && break
5547done
5548
5549fi
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5551$as_echo "$ac_cv_c_inline" >&6; }
5552
5553case $ac_cv_c_inline in
5554  inline | yes) ;;
5555  *)
5556    case $ac_cv_c_inline in
5557      no) ac_val=;;
5558      *) ac_val=$ac_cv_c_inline;;
5559    esac
5560    cat >>confdefs.h <<_ACEOF
5561#ifndef __cplusplus
5562#define inline $ac_val
5563#endif
5564_ACEOF
5565    ;;
5566esac
5567
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5569$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5570if ${ac_cv_c_bigendian+:} false; then :
5571  $as_echo_n "(cached) " >&6
5572else
5573  ac_cv_c_bigendian=unknown
5574    # See if we're dealing with a universal compiler.
5575    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576/* end confdefs.h.  */
5577#ifndef __APPLE_CC__
5578	       not a universal capable compiler
5579	     #endif
5580	     typedef int dummy;
5581
5582_ACEOF
5583if ac_fn_c_try_compile "$LINENO"; then :
5584
5585	# Check for potential -arch flags.  It is not universal unless
5586	# there are at least two -arch flags with different values.
5587	ac_arch=
5588	ac_prev=
5589	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5590	 if test -n "$ac_prev"; then
5591	   case $ac_word in
5592	     i?86 | x86_64 | ppc | ppc64)
5593	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5594		 ac_arch=$ac_word
5595	       else
5596		 ac_cv_c_bigendian=universal
5597		 break
5598	       fi
5599	       ;;
5600	   esac
5601	   ac_prev=
5602	 elif test "x$ac_word" = "x-arch"; then
5603	   ac_prev=arch
5604	 fi
5605       done
5606fi
5607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608    if test $ac_cv_c_bigendian = unknown; then
5609      # See if sys/param.h defines the BYTE_ORDER macro.
5610      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611/* end confdefs.h.  */
5612#include <sys/types.h>
5613	     #include <sys/param.h>
5614
5615int
5616main ()
5617{
5618#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5619		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5620		     && LITTLE_ENDIAN)
5621	      bogus endian macros
5622	     #endif
5623
5624  ;
5625  return 0;
5626}
5627_ACEOF
5628if ac_fn_c_try_compile "$LINENO"; then :
5629  # It does; now see whether it defined to BIG_ENDIAN or not.
5630	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631/* end confdefs.h.  */
5632#include <sys/types.h>
5633		#include <sys/param.h>
5634
5635int
5636main ()
5637{
5638#if BYTE_ORDER != BIG_ENDIAN
5639		 not big endian
5640		#endif
5641
5642  ;
5643  return 0;
5644}
5645_ACEOF
5646if ac_fn_c_try_compile "$LINENO"; then :
5647  ac_cv_c_bigendian=yes
5648else
5649  ac_cv_c_bigendian=no
5650fi
5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652fi
5653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5654    fi
5655    if test $ac_cv_c_bigendian = unknown; then
5656      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5657      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658/* end confdefs.h.  */
5659#include <limits.h>
5660
5661int
5662main ()
5663{
5664#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5665	      bogus endian macros
5666	     #endif
5667
5668  ;
5669  return 0;
5670}
5671_ACEOF
5672if ac_fn_c_try_compile "$LINENO"; then :
5673  # It does; now see whether it defined to _BIG_ENDIAN or not.
5674	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675/* end confdefs.h.  */
5676#include <limits.h>
5677
5678int
5679main ()
5680{
5681#ifndef _BIG_ENDIAN
5682		 not big endian
5683		#endif
5684
5685  ;
5686  return 0;
5687}
5688_ACEOF
5689if ac_fn_c_try_compile "$LINENO"; then :
5690  ac_cv_c_bigendian=yes
5691else
5692  ac_cv_c_bigendian=no
5693fi
5694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695fi
5696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697    fi
5698    if test $ac_cv_c_bigendian = unknown; then
5699      # Compile a test program.
5700      if test "$cross_compiling" = yes; then :
5701  # Try to guess by grepping values from an object file.
5702	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703/* end confdefs.h.  */
5704short int ascii_mm[] =
5705		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5706		short int ascii_ii[] =
5707		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5708		int use_ascii (int i) {
5709		  return ascii_mm[i] + ascii_ii[i];
5710		}
5711		short int ebcdic_ii[] =
5712		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5713		short int ebcdic_mm[] =
5714		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5715		int use_ebcdic (int i) {
5716		  return ebcdic_mm[i] + ebcdic_ii[i];
5717		}
5718		extern int foo;
5719
5720int
5721main ()
5722{
5723return use_ascii (foo) == use_ebcdic (foo);
5724  ;
5725  return 0;
5726}
5727_ACEOF
5728if ac_fn_c_try_compile "$LINENO"; then :
5729  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5730	      ac_cv_c_bigendian=yes
5731	    fi
5732	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5733	      if test "$ac_cv_c_bigendian" = unknown; then
5734		ac_cv_c_bigendian=no
5735	      else
5736		# finding both strings is unlikely to happen, but who knows?
5737		ac_cv_c_bigendian=unknown
5738	      fi
5739	    fi
5740fi
5741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742else
5743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744/* end confdefs.h.  */
5745$ac_includes_default
5746int
5747main ()
5748{
5749
5750	     /* Are we little or big endian?  From Harbison&Steele.  */
5751	     union
5752	     {
5753	       long int l;
5754	       char c[sizeof (long int)];
5755	     } u;
5756	     u.l = 1;
5757	     return u.c[sizeof (long int) - 1] == 1;
5758
5759  ;
5760  return 0;
5761}
5762_ACEOF
5763if ac_fn_c_try_run "$LINENO"; then :
5764  ac_cv_c_bigendian=no
5765else
5766  ac_cv_c_bigendian=yes
5767fi
5768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5769  conftest.$ac_objext conftest.beam conftest.$ac_ext
5770fi
5771
5772    fi
5773fi
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5775$as_echo "$ac_cv_c_bigendian" >&6; }
5776 case $ac_cv_c_bigendian in #(
5777   yes)
5778     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5779;; #(
5780   no)
5781      ;; #(
5782   universal)
5783
5784$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5785
5786     ;; #(
5787   *)
5788     as_fn_error $? "unknown endianness
5789 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5790 esac
5791
5792
5793for ac_header in wchar.h sys/statfs.h sys/statvfs.h sys/time.h
5794do :
5795  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5796ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5797if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5798  cat >>confdefs.h <<_ACEOF
5799#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5800_ACEOF
5801
5802fi
5803
5804done
5805
5806
5807# <sys/mount.h> depends on <sys/param.h>
5808for ac_header in sys/param.h
5809do :
5810  ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5811if test "x$ac_cv_header_sys_param_h" = xyes; then :
5812  cat >>confdefs.h <<_ACEOF
5813#define HAVE_SYS_PARAM_H 1
5814_ACEOF
5815
5816fi
5817
5818done
5819
5820for ac_header in sys/mount.h
5821do :
5822  ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#if HAVE_SYS_PARAM_H
5823# include <sys/param.h>
5824# endif
5825"
5826if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5827  cat >>confdefs.h <<_ACEOF
5828#define HAVE_SYS_MOUNT_H 1
5829_ACEOF
5830
5831fi
5832
5833done
5834
5835
5836#
5837# Configure libtool
5838#
5839# Check whether --enable-shared was given.
5840if test "${enable_shared+set}" = set; then :
5841  enableval=$enable_shared; p=${PACKAGE-default}
5842    case $enableval in
5843    yes) enable_shared=yes ;;
5844    no) enable_shared=no ;;
5845    *)
5846      enable_shared=no
5847      # Look at the argument we got.  We use all the common list separators.
5848      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
5849      for pkg in $enableval; do
5850	IFS=$lt_save_ifs
5851	if test "X$pkg" = "X$p"; then
5852	  enable_shared=yes
5853	fi
5854      done
5855      IFS=$lt_save_ifs
5856      ;;
5857    esac
5858else
5859  enable_shared=yes
5860fi
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870# Check whether --enable-static was given.
5871if test "${enable_static+set}" = set; then :
5872  enableval=$enable_static; p=${PACKAGE-default}
5873    case $enableval in
5874    yes) enable_static=yes ;;
5875    no) enable_static=no ;;
5876    *)
5877     enable_static=no
5878      # Look at the argument we got.  We use all the common list separators.
5879      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
5880      for pkg in $enableval; do
5881	IFS=$lt_save_ifs
5882	if test "X$pkg" = "X$p"; then
5883	  enable_static=yes
5884	fi
5885      done
5886      IFS=$lt_save_ifs
5887      ;;
5888    esac
5889else
5890  enable_static=yes
5891fi
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901case `pwd` in
5902  *\ * | *\	*)
5903    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5904$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5905esac
5906
5907
5908
5909macro_version='2.4.6'
5910macro_revision='2.4.6'
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924ltmain=$ac_aux_dir/ltmain.sh
5925
5926# Backslashify metacharacters that are still active within
5927# double-quoted strings.
5928sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5929
5930# Same as above, but do not quote variable references.
5931double_quote_subst='s/\(["`\\]\)/\\\1/g'
5932
5933# Sed substitution to delay expansion of an escaped shell variable in a
5934# double_quote_subst'ed string.
5935delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5936
5937# Sed substitution to delay expansion of an escaped single quote.
5938delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5939
5940# Sed substitution to avoid accidental globbing in evaled expressions
5941no_glob_subst='s/\*/\\\*/g'
5942
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5944$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5945if ${lt_cv_path_NM+:} false; then :
5946  $as_echo_n "(cached) " >&6
5947else
5948  if test -n "$NM"; then
5949  # Let the user override the test.
5950  lt_cv_path_NM=$NM
5951else
5952  lt_nm_to_check=${ac_tool_prefix}nm
5953  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5954    lt_nm_to_check="$lt_nm_to_check nm"
5955  fi
5956  for lt_tmp_nm in $lt_nm_to_check; do
5957    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5958    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5959      IFS=$lt_save_ifs
5960      test -z "$ac_dir" && ac_dir=.
5961      tmp_nm=$ac_dir/$lt_tmp_nm
5962      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5963	# Check to see if the nm accepts a BSD-compat flag.
5964	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5965	#   nm: unknown option "B" ignored
5966	# Tru64's nm complains that /dev/null is an invalid object file
5967	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5968	case $build_os in
5969	mingw*) lt_bad_file=conftest.nm/nofile ;;
5970	*) lt_bad_file=/dev/null ;;
5971	esac
5972	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5973	*$lt_bad_file* | *'Invalid file or object type'*)
5974	  lt_cv_path_NM="$tmp_nm -B"
5975	  break 2
5976	  ;;
5977	*)
5978	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5979	  */dev/null*)
5980	    lt_cv_path_NM="$tmp_nm -p"
5981	    break 2
5982	    ;;
5983	  *)
5984	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5985	    continue # so that we can try to find one that supports BSD flags
5986	    ;;
5987	  esac
5988	  ;;
5989	esac
5990      fi
5991    done
5992    IFS=$lt_save_ifs
5993  done
5994  : ${lt_cv_path_NM=no}
5995fi
5996fi
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5998$as_echo "$lt_cv_path_NM" >&6; }
5999if test no != "$lt_cv_path_NM"; then
6000  NM=$lt_cv_path_NM
6001else
6002  # Didn't find any BSD compatible name lister, look for dumpbin.
6003  if test -n "$DUMPBIN"; then :
6004    # Let the user override the test.
6005  else
6006    if test -n "$ac_tool_prefix"; then
6007  for ac_prog in dumpbin "link -dump"
6008  do
6009    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6010set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012$as_echo_n "checking for $ac_word... " >&6; }
6013if ${ac_cv_prog_DUMPBIN+:} false; then :
6014  $as_echo_n "(cached) " >&6
6015else
6016  if test -n "$DUMPBIN"; then
6017  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6018else
6019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020for as_dir in $PATH
6021do
6022  IFS=$as_save_IFS
6023  test -z "$as_dir" && as_dir=.
6024    for ac_exec_ext in '' $ac_executable_extensions; do
6025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6026    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028    break 2
6029  fi
6030done
6031  done
6032IFS=$as_save_IFS
6033
6034fi
6035fi
6036DUMPBIN=$ac_cv_prog_DUMPBIN
6037if test -n "$DUMPBIN"; then
6038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6039$as_echo "$DUMPBIN" >&6; }
6040else
6041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042$as_echo "no" >&6; }
6043fi
6044
6045
6046    test -n "$DUMPBIN" && break
6047  done
6048fi
6049if test -z "$DUMPBIN"; then
6050  ac_ct_DUMPBIN=$DUMPBIN
6051  for ac_prog in dumpbin "link -dump"
6052do
6053  # Extract the first word of "$ac_prog", so it can be a program name with args.
6054set dummy $ac_prog; ac_word=$2
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056$as_echo_n "checking for $ac_word... " >&6; }
6057if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6058  $as_echo_n "(cached) " >&6
6059else
6060  if test -n "$ac_ct_DUMPBIN"; then
6061  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6062else
6063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064for as_dir in $PATH
6065do
6066  IFS=$as_save_IFS
6067  test -z "$as_dir" && as_dir=.
6068    for ac_exec_ext in '' $ac_executable_extensions; do
6069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072    break 2
6073  fi
6074done
6075  done
6076IFS=$as_save_IFS
6077
6078fi
6079fi
6080ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6081if test -n "$ac_ct_DUMPBIN"; then
6082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6083$as_echo "$ac_ct_DUMPBIN" >&6; }
6084else
6085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086$as_echo "no" >&6; }
6087fi
6088
6089
6090  test -n "$ac_ct_DUMPBIN" && break
6091done
6092
6093  if test "x$ac_ct_DUMPBIN" = x; then
6094    DUMPBIN=":"
6095  else
6096    case $cross_compiling:$ac_tool_warned in
6097yes:)
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6100ac_tool_warned=yes ;;
6101esac
6102    DUMPBIN=$ac_ct_DUMPBIN
6103  fi
6104fi
6105
6106    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6107    *COFF*)
6108      DUMPBIN="$DUMPBIN -symbols -headers"
6109      ;;
6110    *)
6111      DUMPBIN=:
6112      ;;
6113    esac
6114  fi
6115
6116  if test : != "$DUMPBIN"; then
6117    NM=$DUMPBIN
6118  fi
6119fi
6120test -z "$NM" && NM=nm
6121
6122
6123
6124
6125
6126
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6128$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6129if ${lt_cv_nm_interface+:} false; then :
6130  $as_echo_n "(cached) " >&6
6131else
6132  lt_cv_nm_interface="BSD nm"
6133  echo "int some_variable = 0;" > conftest.$ac_ext
6134  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6135  (eval "$ac_compile" 2>conftest.err)
6136  cat conftest.err >&5
6137  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6138  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6139  cat conftest.err >&5
6140  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6141  cat conftest.out >&5
6142  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6143    lt_cv_nm_interface="MS dumpbin"
6144  fi
6145  rm -f conftest*
6146fi
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6148$as_echo "$lt_cv_nm_interface" >&6; }
6149
6150# find the maximum length of command line arguments
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6152$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6153if ${lt_cv_sys_max_cmd_len+:} false; then :
6154  $as_echo_n "(cached) " >&6
6155else
6156    i=0
6157  teststring=ABCD
6158
6159  case $build_os in
6160  msdosdjgpp*)
6161    # On DJGPP, this test can blow up pretty badly due to problems in libc
6162    # (any single argument exceeding 2000 bytes causes a buffer overrun
6163    # during glob expansion).  Even if it were fixed, the result of this
6164    # check would be larger than it should be.
6165    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6166    ;;
6167
6168  gnu*)
6169    # Under GNU Hurd, this test is not required because there is
6170    # no limit to the length of command line arguments.
6171    # Libtool will interpret -1 as no limit whatsoever
6172    lt_cv_sys_max_cmd_len=-1;
6173    ;;
6174
6175  cygwin* | mingw* | cegcc*)
6176    # On Win9x/ME, this test blows up -- it succeeds, but takes
6177    # about 5 minutes as the teststring grows exponentially.
6178    # Worse, since 9x/ME are not pre-emptively multitasking,
6179    # you end up with a "frozen" computer, even though with patience
6180    # the test eventually succeeds (with a max line length of 256k).
6181    # Instead, let's just punt: use the minimum linelength reported by
6182    # all of the supported platforms: 8192 (on NT/2K/XP).
6183    lt_cv_sys_max_cmd_len=8192;
6184    ;;
6185
6186  mint*)
6187    # On MiNT this can take a long time and run out of memory.
6188    lt_cv_sys_max_cmd_len=8192;
6189    ;;
6190
6191  amigaos*)
6192    # On AmigaOS with pdksh, this test takes hours, literally.
6193    # So we just punt and use a minimum line length of 8192.
6194    lt_cv_sys_max_cmd_len=8192;
6195    ;;
6196
6197  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6198    # This has been around since 386BSD, at least.  Likely further.
6199    if test -x /sbin/sysctl; then
6200      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6201    elif test -x /usr/sbin/sysctl; then
6202      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6203    else
6204      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6205    fi
6206    # And add a safety zone
6207    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6208    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6209    ;;
6210
6211  interix*)
6212    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6213    lt_cv_sys_max_cmd_len=196608
6214    ;;
6215
6216  os2*)
6217    # The test takes a long time on OS/2.
6218    lt_cv_sys_max_cmd_len=8192
6219    ;;
6220
6221  osf*)
6222    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6223    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6224    # nice to cause kernel panics so lets avoid the loop below.
6225    # First set a reasonable default.
6226    lt_cv_sys_max_cmd_len=16384
6227    #
6228    if test -x /sbin/sysconfig; then
6229      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6230        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6231      esac
6232    fi
6233    ;;
6234  sco3.2v5*)
6235    lt_cv_sys_max_cmd_len=102400
6236    ;;
6237  sysv5* | sco5v6* | sysv4.2uw2*)
6238    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6239    if test -n "$kargmax"; then
6240      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6241    else
6242      lt_cv_sys_max_cmd_len=32768
6243    fi
6244    ;;
6245  *)
6246    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6247    if test -n "$lt_cv_sys_max_cmd_len" && \
6248       test undefined != "$lt_cv_sys_max_cmd_len"; then
6249      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6250      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6251    else
6252      # Make teststring a little bigger before we do anything with it.
6253      # a 1K string should be a reasonable start.
6254      for i in 1 2 3 4 5 6 7 8; do
6255        teststring=$teststring$teststring
6256      done
6257      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6258      # If test is not a shell built-in, we'll probably end up computing a
6259      # maximum length that is only half of the actual maximum length, but
6260      # we can't tell.
6261      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6262	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6263	      test 17 != "$i" # 1/2 MB should be enough
6264      do
6265        i=`expr $i + 1`
6266        teststring=$teststring$teststring
6267      done
6268      # Only check the string length outside the loop.
6269      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6270      teststring=
6271      # Add a significant safety factor because C++ compilers can tack on
6272      # massive amounts of additional arguments before passing them to the
6273      # linker.  It appears as though 1/2 is a usable value.
6274      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6275    fi
6276    ;;
6277  esac
6278
6279fi
6280
6281if test -n "$lt_cv_sys_max_cmd_len"; then
6282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6283$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6284else
6285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6286$as_echo "none" >&6; }
6287fi
6288max_cmd_len=$lt_cv_sys_max_cmd_len
6289
6290
6291
6292
6293
6294
6295: ${CP="cp -f"}
6296: ${MV="mv -f"}
6297: ${RM="rm -f"}
6298
6299if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6300  lt_unset=unset
6301else
6302  lt_unset=false
6303fi
6304
6305
6306
6307
6308
6309# test EBCDIC or ASCII
6310case `echo X|tr X '\101'` in
6311 A) # ASCII based system
6312    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6313  lt_SP2NL='tr \040 \012'
6314  lt_NL2SP='tr \015\012 \040\040'
6315  ;;
6316 *) # EBCDIC based system
6317  lt_SP2NL='tr \100 \n'
6318  lt_NL2SP='tr \r\n \100\100'
6319  ;;
6320esac
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6331$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6332if ${lt_cv_to_host_file_cmd+:} false; then :
6333  $as_echo_n "(cached) " >&6
6334else
6335  case $host in
6336  *-*-mingw* )
6337    case $build in
6338      *-*-mingw* ) # actually msys
6339        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6340        ;;
6341      *-*-cygwin* )
6342        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6343        ;;
6344      * ) # otherwise, assume *nix
6345        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6346        ;;
6347    esac
6348    ;;
6349  *-*-cygwin* )
6350    case $build in
6351      *-*-mingw* ) # actually msys
6352        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6353        ;;
6354      *-*-cygwin* )
6355        lt_cv_to_host_file_cmd=func_convert_file_noop
6356        ;;
6357      * ) # otherwise, assume *nix
6358        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6359        ;;
6360    esac
6361    ;;
6362  * ) # unhandled hosts (and "normal" native builds)
6363    lt_cv_to_host_file_cmd=func_convert_file_noop
6364    ;;
6365esac
6366
6367fi
6368
6369to_host_file_cmd=$lt_cv_to_host_file_cmd
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6371$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6372
6373
6374
6375
6376
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6378$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6379if ${lt_cv_to_tool_file_cmd+:} false; then :
6380  $as_echo_n "(cached) " >&6
6381else
6382  #assume ordinary cross tools, or native build.
6383lt_cv_to_tool_file_cmd=func_convert_file_noop
6384case $host in
6385  *-*-mingw* )
6386    case $build in
6387      *-*-mingw* ) # actually msys
6388        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6389        ;;
6390    esac
6391    ;;
6392esac
6393
6394fi
6395
6396to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6398$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6399
6400
6401
6402
6403
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6405$as_echo_n "checking for $LD option to reload object files... " >&6; }
6406if ${lt_cv_ld_reload_flag+:} false; then :
6407  $as_echo_n "(cached) " >&6
6408else
6409  lt_cv_ld_reload_flag='-r'
6410fi
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6412$as_echo "$lt_cv_ld_reload_flag" >&6; }
6413reload_flag=$lt_cv_ld_reload_flag
6414case $reload_flag in
6415"" | " "*) ;;
6416*) reload_flag=" $reload_flag" ;;
6417esac
6418reload_cmds='$LD$reload_flag -o $output$reload_objs'
6419case $host_os in
6420  cygwin* | mingw* | pw32* | cegcc*)
6421    if test yes != "$GCC"; then
6422      reload_cmds=false
6423    fi
6424    ;;
6425  darwin*)
6426    if test yes = "$GCC"; then
6427      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6428    else
6429      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6430    fi
6431    ;;
6432esac
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442if test -n "$ac_tool_prefix"; then
6443  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6444set dummy ${ac_tool_prefix}objdump; ac_word=$2
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446$as_echo_n "checking for $ac_word... " >&6; }
6447if ${ac_cv_prog_OBJDUMP+:} false; then :
6448  $as_echo_n "(cached) " >&6
6449else
6450  if test -n "$OBJDUMP"; then
6451  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6452else
6453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454for as_dir in $PATH
6455do
6456  IFS=$as_save_IFS
6457  test -z "$as_dir" && as_dir=.
6458    for ac_exec_ext in '' $ac_executable_extensions; do
6459  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6460    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462    break 2
6463  fi
6464done
6465  done
6466IFS=$as_save_IFS
6467
6468fi
6469fi
6470OBJDUMP=$ac_cv_prog_OBJDUMP
6471if test -n "$OBJDUMP"; then
6472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6473$as_echo "$OBJDUMP" >&6; }
6474else
6475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476$as_echo "no" >&6; }
6477fi
6478
6479
6480fi
6481if test -z "$ac_cv_prog_OBJDUMP"; then
6482  ac_ct_OBJDUMP=$OBJDUMP
6483  # Extract the first word of "objdump", so it can be a program name with args.
6484set dummy objdump; ac_word=$2
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486$as_echo_n "checking for $ac_word... " >&6; }
6487if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6488  $as_echo_n "(cached) " >&6
6489else
6490  if test -n "$ac_ct_OBJDUMP"; then
6491  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6492else
6493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494for as_dir in $PATH
6495do
6496  IFS=$as_save_IFS
6497  test -z "$as_dir" && as_dir=.
6498    for ac_exec_ext in '' $ac_executable_extensions; do
6499  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502    break 2
6503  fi
6504done
6505  done
6506IFS=$as_save_IFS
6507
6508fi
6509fi
6510ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6511if test -n "$ac_ct_OBJDUMP"; then
6512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6513$as_echo "$ac_ct_OBJDUMP" >&6; }
6514else
6515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516$as_echo "no" >&6; }
6517fi
6518
6519  if test "x$ac_ct_OBJDUMP" = x; then
6520    OBJDUMP="false"
6521  else
6522    case $cross_compiling:$ac_tool_warned in
6523yes:)
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526ac_tool_warned=yes ;;
6527esac
6528    OBJDUMP=$ac_ct_OBJDUMP
6529  fi
6530else
6531  OBJDUMP="$ac_cv_prog_OBJDUMP"
6532fi
6533
6534test -z "$OBJDUMP" && OBJDUMP=objdump
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6545$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6546if ${lt_cv_deplibs_check_method+:} false; then :
6547  $as_echo_n "(cached) " >&6
6548else
6549  lt_cv_file_magic_cmd='$MAGIC_CMD'
6550lt_cv_file_magic_test_file=
6551lt_cv_deplibs_check_method='unknown'
6552# Need to set the preceding variable on all platforms that support
6553# interlibrary dependencies.
6554# 'none' -- dependencies not supported.
6555# 'unknown' -- same as none, but documents that we really don't know.
6556# 'pass_all' -- all dependencies passed with no checks.
6557# 'test_compile' -- check by making test program.
6558# 'file_magic [[regex]]' -- check by looking for files in library path
6559# that responds to the $file_magic_cmd with a given extended regex.
6560# If you have 'file' or equivalent on your system and you're not sure
6561# whether 'pass_all' will *always* work, you probably want this one.
6562
6563case $host_os in
6564aix[4-9]*)
6565  lt_cv_deplibs_check_method=pass_all
6566  ;;
6567
6568beos*)
6569  lt_cv_deplibs_check_method=pass_all
6570  ;;
6571
6572bsdi[45]*)
6573  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6574  lt_cv_file_magic_cmd='/usr/bin/file -L'
6575  lt_cv_file_magic_test_file=/shlib/libc.so
6576  ;;
6577
6578cygwin*)
6579  # func_win32_libid is a shell function defined in ltmain.sh
6580  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6581  lt_cv_file_magic_cmd='func_win32_libid'
6582  ;;
6583
6584mingw* | pw32*)
6585  # Base MSYS/MinGW do not provide the 'file' command needed by
6586  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6587  # unless we find 'file', for example because we are cross-compiling.
6588  if ( file / ) >/dev/null 2>&1; then
6589    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6590    lt_cv_file_magic_cmd='func_win32_libid'
6591  else
6592    # Keep this pattern in sync with the one in func_win32_libid.
6593    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6594    lt_cv_file_magic_cmd='$OBJDUMP -f'
6595  fi
6596  ;;
6597
6598cegcc*)
6599  # use the weaker test based on 'objdump'. See mingw*.
6600  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6601  lt_cv_file_magic_cmd='$OBJDUMP -f'
6602  ;;
6603
6604darwin* | rhapsody*)
6605  lt_cv_deplibs_check_method=pass_all
6606  ;;
6607
6608freebsd* | dragonfly*)
6609  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6610    case $host_cpu in
6611    i*86 )
6612      # Not sure whether the presence of OpenBSD here was a mistake.
6613      # Let's accept both of them until this is cleared up.
6614      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6615      lt_cv_file_magic_cmd=/usr/bin/file
6616      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6617      ;;
6618    esac
6619  else
6620    lt_cv_deplibs_check_method=pass_all
6621  fi
6622  ;;
6623
6624haiku*)
6625  lt_cv_deplibs_check_method=pass_all
6626  ;;
6627
6628hpux10.20* | hpux11*)
6629  lt_cv_file_magic_cmd=/usr/bin/file
6630  case $host_cpu in
6631  ia64*)
6632    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6633    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6634    ;;
6635  hppa*64*)
6636    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]'
6637    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6638    ;;
6639  *)
6640    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6641    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6642    ;;
6643  esac
6644  ;;
6645
6646interix[3-9]*)
6647  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6648  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6649  ;;
6650
6651irix5* | irix6* | nonstopux*)
6652  case $LD in
6653  *-32|*"-32 ") libmagic=32-bit;;
6654  *-n32|*"-n32 ") libmagic=N32;;
6655  *-64|*"-64 ") libmagic=64-bit;;
6656  *) libmagic=never-match;;
6657  esac
6658  lt_cv_deplibs_check_method=pass_all
6659  ;;
6660
6661# This must be glibc/ELF.
6662linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6663  lt_cv_deplibs_check_method=pass_all
6664  ;;
6665
6666netbsd*)
6667  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6668    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6669  else
6670    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6671  fi
6672  ;;
6673
6674newos6*)
6675  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6676  lt_cv_file_magic_cmd=/usr/bin/file
6677  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6678  ;;
6679
6680*nto* | *qnx*)
6681  lt_cv_deplibs_check_method=pass_all
6682  ;;
6683
6684openbsd* | bitrig*)
6685  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6686    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6687  else
6688    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6689  fi
6690  ;;
6691
6692osf3* | osf4* | osf5*)
6693  lt_cv_deplibs_check_method=pass_all
6694  ;;
6695
6696rdos*)
6697  lt_cv_deplibs_check_method=pass_all
6698  ;;
6699
6700solaris*)
6701  lt_cv_deplibs_check_method=pass_all
6702  ;;
6703
6704sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6705  lt_cv_deplibs_check_method=pass_all
6706  ;;
6707
6708sysv4 | sysv4.3*)
6709  case $host_vendor in
6710  motorola)
6711    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]'
6712    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6713    ;;
6714  ncr)
6715    lt_cv_deplibs_check_method=pass_all
6716    ;;
6717  sequent)
6718    lt_cv_file_magic_cmd='/bin/file'
6719    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6720    ;;
6721  sni)
6722    lt_cv_file_magic_cmd='/bin/file'
6723    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6724    lt_cv_file_magic_test_file=/lib/libc.so
6725    ;;
6726  siemens)
6727    lt_cv_deplibs_check_method=pass_all
6728    ;;
6729  pc)
6730    lt_cv_deplibs_check_method=pass_all
6731    ;;
6732  esac
6733  ;;
6734
6735tpf*)
6736  lt_cv_deplibs_check_method=pass_all
6737  ;;
6738os2*)
6739  lt_cv_deplibs_check_method=pass_all
6740  ;;
6741esac
6742
6743fi
6744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6745$as_echo "$lt_cv_deplibs_check_method" >&6; }
6746
6747file_magic_glob=
6748want_nocaseglob=no
6749if test "$build" = "$host"; then
6750  case $host_os in
6751  mingw* | pw32*)
6752    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6753      want_nocaseglob=yes
6754    else
6755      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6756    fi
6757    ;;
6758  esac
6759fi
6760
6761file_magic_cmd=$lt_cv_file_magic_cmd
6762deplibs_check_method=$lt_cv_deplibs_check_method
6763test -z "$deplibs_check_method" && deplibs_check_method=unknown
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786if test -n "$ac_tool_prefix"; then
6787  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6788set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790$as_echo_n "checking for $ac_word... " >&6; }
6791if ${ac_cv_prog_DLLTOOL+:} false; then :
6792  $as_echo_n "(cached) " >&6
6793else
6794  if test -n "$DLLTOOL"; then
6795  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6796else
6797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798for as_dir in $PATH
6799do
6800  IFS=$as_save_IFS
6801  test -z "$as_dir" && as_dir=.
6802    for ac_exec_ext in '' $ac_executable_extensions; do
6803  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6804    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806    break 2
6807  fi
6808done
6809  done
6810IFS=$as_save_IFS
6811
6812fi
6813fi
6814DLLTOOL=$ac_cv_prog_DLLTOOL
6815if test -n "$DLLTOOL"; then
6816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6817$as_echo "$DLLTOOL" >&6; }
6818else
6819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820$as_echo "no" >&6; }
6821fi
6822
6823
6824fi
6825if test -z "$ac_cv_prog_DLLTOOL"; then
6826  ac_ct_DLLTOOL=$DLLTOOL
6827  # Extract the first word of "dlltool", so it can be a program name with args.
6828set dummy dlltool; ac_word=$2
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830$as_echo_n "checking for $ac_word... " >&6; }
6831if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6832  $as_echo_n "(cached) " >&6
6833else
6834  if test -n "$ac_ct_DLLTOOL"; then
6835  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6836else
6837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838for as_dir in $PATH
6839do
6840  IFS=$as_save_IFS
6841  test -z "$as_dir" && as_dir=.
6842    for ac_exec_ext in '' $ac_executable_extensions; do
6843  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6844    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6845    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846    break 2
6847  fi
6848done
6849  done
6850IFS=$as_save_IFS
6851
6852fi
6853fi
6854ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6855if test -n "$ac_ct_DLLTOOL"; then
6856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6857$as_echo "$ac_ct_DLLTOOL" >&6; }
6858else
6859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860$as_echo "no" >&6; }
6861fi
6862
6863  if test "x$ac_ct_DLLTOOL" = x; then
6864    DLLTOOL="false"
6865  else
6866    case $cross_compiling:$ac_tool_warned in
6867yes:)
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870ac_tool_warned=yes ;;
6871esac
6872    DLLTOOL=$ac_ct_DLLTOOL
6873  fi
6874else
6875  DLLTOOL="$ac_cv_prog_DLLTOOL"
6876fi
6877
6878test -z "$DLLTOOL" && DLLTOOL=dlltool
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6890$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6891if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6892  $as_echo_n "(cached) " >&6
6893else
6894  lt_cv_sharedlib_from_linklib_cmd='unknown'
6895
6896case $host_os in
6897cygwin* | mingw* | pw32* | cegcc*)
6898  # two different shell functions defined in ltmain.sh;
6899  # decide which one to use based on capabilities of $DLLTOOL
6900  case `$DLLTOOL --help 2>&1` in
6901  *--identify-strict*)
6902    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6903    ;;
6904  *)
6905    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6906    ;;
6907  esac
6908  ;;
6909*)
6910  # fallback: assume linklib IS sharedlib
6911  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6912  ;;
6913esac
6914
6915fi
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6917$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6918sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6919test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6920
6921
6922
6923
6924
6925
6926
6927if test -n "$ac_tool_prefix"; then
6928  for ac_prog in ar
6929  do
6930    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6931set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933$as_echo_n "checking for $ac_word... " >&6; }
6934if ${ac_cv_prog_AR+:} false; then :
6935  $as_echo_n "(cached) " >&6
6936else
6937  if test -n "$AR"; then
6938  ac_cv_prog_AR="$AR" # Let the user override the test.
6939else
6940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941for as_dir in $PATH
6942do
6943  IFS=$as_save_IFS
6944  test -z "$as_dir" && as_dir=.
6945    for ac_exec_ext in '' $ac_executable_extensions; do
6946  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6947    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6949    break 2
6950  fi
6951done
6952  done
6953IFS=$as_save_IFS
6954
6955fi
6956fi
6957AR=$ac_cv_prog_AR
6958if test -n "$AR"; then
6959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6960$as_echo "$AR" >&6; }
6961else
6962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963$as_echo "no" >&6; }
6964fi
6965
6966
6967    test -n "$AR" && break
6968  done
6969fi
6970if test -z "$AR"; then
6971  ac_ct_AR=$AR
6972  for ac_prog in ar
6973do
6974  # Extract the first word of "$ac_prog", so it can be a program name with args.
6975set dummy $ac_prog; ac_word=$2
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977$as_echo_n "checking for $ac_word... " >&6; }
6978if ${ac_cv_prog_ac_ct_AR+:} false; then :
6979  $as_echo_n "(cached) " >&6
6980else
6981  if test -n "$ac_ct_AR"; then
6982  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6983else
6984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985for as_dir in $PATH
6986do
6987  IFS=$as_save_IFS
6988  test -z "$as_dir" && as_dir=.
6989    for ac_exec_ext in '' $ac_executable_extensions; do
6990  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6991    ac_cv_prog_ac_ct_AR="$ac_prog"
6992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993    break 2
6994  fi
6995done
6996  done
6997IFS=$as_save_IFS
6998
6999fi
7000fi
7001ac_ct_AR=$ac_cv_prog_ac_ct_AR
7002if test -n "$ac_ct_AR"; then
7003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7004$as_echo "$ac_ct_AR" >&6; }
7005else
7006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007$as_echo "no" >&6; }
7008fi
7009
7010
7011  test -n "$ac_ct_AR" && break
7012done
7013
7014  if test "x$ac_ct_AR" = x; then
7015    AR="false"
7016  else
7017    case $cross_compiling:$ac_tool_warned in
7018yes:)
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7021ac_tool_warned=yes ;;
7022esac
7023    AR=$ac_ct_AR
7024  fi
7025fi
7026
7027: ${AR=ar}
7028: ${AR_FLAGS=cru}
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7041$as_echo_n "checking for archiver @FILE support... " >&6; }
7042if ${lt_cv_ar_at_file+:} false; then :
7043  $as_echo_n "(cached) " >&6
7044else
7045  lt_cv_ar_at_file=no
7046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047/* end confdefs.h.  */
7048
7049int
7050main ()
7051{
7052
7053  ;
7054  return 0;
7055}
7056_ACEOF
7057if ac_fn_c_try_compile "$LINENO"; then :
7058  echo conftest.$ac_objext > conftest.lst
7059      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7060      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7061  (eval $lt_ar_try) 2>&5
7062  ac_status=$?
7063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7064  test $ac_status = 0; }
7065      if test 0 -eq "$ac_status"; then
7066	# Ensure the archiver fails upon bogus file names.
7067	rm -f conftest.$ac_objext libconftest.a
7068	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7069  (eval $lt_ar_try) 2>&5
7070  ac_status=$?
7071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7072  test $ac_status = 0; }
7073	if test 0 -ne "$ac_status"; then
7074          lt_cv_ar_at_file=@
7075        fi
7076      fi
7077      rm -f conftest.* libconftest.a
7078
7079fi
7080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7081
7082fi
7083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7084$as_echo "$lt_cv_ar_at_file" >&6; }
7085
7086if test no = "$lt_cv_ar_at_file"; then
7087  archiver_list_spec=
7088else
7089  archiver_list_spec=$lt_cv_ar_at_file
7090fi
7091
7092
7093
7094
7095
7096
7097
7098if test -n "$ac_tool_prefix"; then
7099  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7100set dummy ${ac_tool_prefix}strip; ac_word=$2
7101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102$as_echo_n "checking for $ac_word... " >&6; }
7103if ${ac_cv_prog_STRIP+:} false; then :
7104  $as_echo_n "(cached) " >&6
7105else
7106  if test -n "$STRIP"; then
7107  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7108else
7109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110for as_dir in $PATH
7111do
7112  IFS=$as_save_IFS
7113  test -z "$as_dir" && as_dir=.
7114    for ac_exec_ext in '' $ac_executable_extensions; do
7115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7116    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7118    break 2
7119  fi
7120done
7121  done
7122IFS=$as_save_IFS
7123
7124fi
7125fi
7126STRIP=$ac_cv_prog_STRIP
7127if test -n "$STRIP"; then
7128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7129$as_echo "$STRIP" >&6; }
7130else
7131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132$as_echo "no" >&6; }
7133fi
7134
7135
7136fi
7137if test -z "$ac_cv_prog_STRIP"; then
7138  ac_ct_STRIP=$STRIP
7139  # Extract the first word of "strip", so it can be a program name with args.
7140set dummy strip; ac_word=$2
7141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142$as_echo_n "checking for $ac_word... " >&6; }
7143if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7144  $as_echo_n "(cached) " >&6
7145else
7146  if test -n "$ac_ct_STRIP"; then
7147  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7148else
7149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150for as_dir in $PATH
7151do
7152  IFS=$as_save_IFS
7153  test -z "$as_dir" && as_dir=.
7154    for ac_exec_ext in '' $ac_executable_extensions; do
7155  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156    ac_cv_prog_ac_ct_STRIP="strip"
7157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158    break 2
7159  fi
7160done
7161  done
7162IFS=$as_save_IFS
7163
7164fi
7165fi
7166ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7167if test -n "$ac_ct_STRIP"; then
7168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7169$as_echo "$ac_ct_STRIP" >&6; }
7170else
7171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172$as_echo "no" >&6; }
7173fi
7174
7175  if test "x$ac_ct_STRIP" = x; then
7176    STRIP=":"
7177  else
7178    case $cross_compiling:$ac_tool_warned in
7179yes:)
7180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7182ac_tool_warned=yes ;;
7183esac
7184    STRIP=$ac_ct_STRIP
7185  fi
7186else
7187  STRIP="$ac_cv_prog_STRIP"
7188fi
7189
7190test -z "$STRIP" && STRIP=:
7191
7192
7193
7194
7195
7196
7197if test -n "$ac_tool_prefix"; then
7198  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7199set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201$as_echo_n "checking for $ac_word... " >&6; }
7202if ${ac_cv_prog_RANLIB+:} false; then :
7203  $as_echo_n "(cached) " >&6
7204else
7205  if test -n "$RANLIB"; then
7206  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7207else
7208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209for as_dir in $PATH
7210do
7211  IFS=$as_save_IFS
7212  test -z "$as_dir" && as_dir=.
7213    for ac_exec_ext in '' $ac_executable_extensions; do
7214  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7217    break 2
7218  fi
7219done
7220  done
7221IFS=$as_save_IFS
7222
7223fi
7224fi
7225RANLIB=$ac_cv_prog_RANLIB
7226if test -n "$RANLIB"; then
7227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7228$as_echo "$RANLIB" >&6; }
7229else
7230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231$as_echo "no" >&6; }
7232fi
7233
7234
7235fi
7236if test -z "$ac_cv_prog_RANLIB"; then
7237  ac_ct_RANLIB=$RANLIB
7238  # Extract the first word of "ranlib", so it can be a program name with args.
7239set dummy ranlib; ac_word=$2
7240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241$as_echo_n "checking for $ac_word... " >&6; }
7242if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7243  $as_echo_n "(cached) " >&6
7244else
7245  if test -n "$ac_ct_RANLIB"; then
7246  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7247else
7248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249for as_dir in $PATH
7250do
7251  IFS=$as_save_IFS
7252  test -z "$as_dir" && as_dir=.
7253    for ac_exec_ext in '' $ac_executable_extensions; do
7254  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255    ac_cv_prog_ac_ct_RANLIB="ranlib"
7256    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257    break 2
7258  fi
7259done
7260  done
7261IFS=$as_save_IFS
7262
7263fi
7264fi
7265ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7266if test -n "$ac_ct_RANLIB"; then
7267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7268$as_echo "$ac_ct_RANLIB" >&6; }
7269else
7270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271$as_echo "no" >&6; }
7272fi
7273
7274  if test "x$ac_ct_RANLIB" = x; then
7275    RANLIB=":"
7276  else
7277    case $cross_compiling:$ac_tool_warned in
7278yes:)
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7281ac_tool_warned=yes ;;
7282esac
7283    RANLIB=$ac_ct_RANLIB
7284  fi
7285else
7286  RANLIB="$ac_cv_prog_RANLIB"
7287fi
7288
7289test -z "$RANLIB" && RANLIB=:
7290
7291
7292
7293
7294
7295
7296# Determine commands to create old-style static archives.
7297old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7298old_postinstall_cmds='chmod 644 $oldlib'
7299old_postuninstall_cmds=
7300
7301if test -n "$RANLIB"; then
7302  case $host_os in
7303  bitrig* | openbsd*)
7304    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7305    ;;
7306  *)
7307    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7308    ;;
7309  esac
7310  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7311fi
7312
7313case $host_os in
7314  darwin*)
7315    lock_old_archive_extraction=yes ;;
7316  *)
7317    lock_old_archive_extraction=no ;;
7318esac
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358# If no C compiler was specified, use CC.
7359LTCC=${LTCC-"$CC"}
7360
7361# If no C compiler flags were specified, use CFLAGS.
7362LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7363
7364# Allow CC to be a program name with arguments.
7365compiler=$CC
7366
7367
7368# Check for command to grab the raw symbol name followed by C symbol from nm.
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7370$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7371if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7372  $as_echo_n "(cached) " >&6
7373else
7374
7375# These are sane defaults that work on at least a few old systems.
7376# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7377
7378# Character class describing NM global symbol codes.
7379symcode='[BCDEGRST]'
7380
7381# Regexp to match symbols that can be accessed directly from C.
7382sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7383
7384# Define system-specific variables.
7385case $host_os in
7386aix*)
7387  symcode='[BCDT]'
7388  ;;
7389cygwin* | mingw* | pw32* | cegcc*)
7390  symcode='[ABCDGISTW]'
7391  ;;
7392hpux*)
7393  if test ia64 = "$host_cpu"; then
7394    symcode='[ABCDEGRST]'
7395  fi
7396  ;;
7397irix* | nonstopux*)
7398  symcode='[BCDEGRST]'
7399  ;;
7400osf*)
7401  symcode='[BCDEGQRST]'
7402  ;;
7403solaris*)
7404  symcode='[BDRT]'
7405  ;;
7406sco3.2v5*)
7407  symcode='[DT]'
7408  ;;
7409sysv4.2uw2*)
7410  symcode='[DT]'
7411  ;;
7412sysv5* | sco5v6* | unixware* | OpenUNIX*)
7413  symcode='[ABDT]'
7414  ;;
7415sysv4)
7416  symcode='[DFNSTU]'
7417  ;;
7418esac
7419
7420# If we're using GNU nm, then use its standard symbol codes.
7421case `$NM -V 2>&1` in
7422*GNU* | *'with BFD'*)
7423  symcode='[ABCDGIRSTW]' ;;
7424esac
7425
7426if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7427  # Gets list of data symbols to import.
7428  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7429  # Adjust the below global symbol transforms to fixup imported variables.
7430  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7431  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7432  lt_c_name_lib_hook="\
7433  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7434  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7435else
7436  # Disable hooks by default.
7437  lt_cv_sys_global_symbol_to_import=
7438  lt_cdecl_hook=
7439  lt_c_name_hook=
7440  lt_c_name_lib_hook=
7441fi
7442
7443# Transform an extracted symbol line into a proper C declaration.
7444# Some systems (esp. on ia64) link data and code symbols differently,
7445# so use this general approach.
7446lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7447$lt_cdecl_hook\
7448" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7449" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7450
7451# Transform an extracted symbol line into symbol name and symbol address
7452lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7453$lt_c_name_hook\
7454" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7455" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7456
7457# Transform an extracted symbol line into symbol name with lib prefix and
7458# symbol address.
7459lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7460$lt_c_name_lib_hook\
7461" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7462" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7463" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7464
7465# Handle CRLF in mingw tool chain
7466opt_cr=
7467case $build_os in
7468mingw*)
7469  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7470  ;;
7471esac
7472
7473# Try without a prefix underscore, then with it.
7474for ac_symprfx in "" "_"; do
7475
7476  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7477  symxfrm="\\1 $ac_symprfx\\2 \\2"
7478
7479  # Write the raw and C identifiers.
7480  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7481    # Fake it for dumpbin and say T for any non-static function,
7482    # D for any global variable and I for any imported variable.
7483    # Also find C++ and __fastcall symbols from MSVC++,
7484    # which start with @ or ?.
7485    lt_cv_sys_global_symbol_pipe="$AWK '"\
7486"     {last_section=section; section=\$ 3};"\
7487"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7488"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7489"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7490"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7491"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7492"     \$ 0!~/External *\|/{next};"\
7493"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7494"     {if(hide[section]) next};"\
7495"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7496"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7497"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7498"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7499"     ' prfx=^$ac_symprfx"
7500  else
7501    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7502  fi
7503  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7504
7505  # Check to see that the pipe works correctly.
7506  pipe_works=no
7507
7508  rm -f conftest*
7509  cat > conftest.$ac_ext <<_LT_EOF
7510#ifdef __cplusplus
7511extern "C" {
7512#endif
7513char nm_test_var;
7514void nm_test_func(void);
7515void nm_test_func(void){}
7516#ifdef __cplusplus
7517}
7518#endif
7519int main(){nm_test_var='a';nm_test_func();return(0);}
7520_LT_EOF
7521
7522  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7523  (eval $ac_compile) 2>&5
7524  ac_status=$?
7525  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7526  test $ac_status = 0; }; then
7527    # Now try to grab the symbols.
7528    nlist=conftest.nm
7529    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7530  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7531  ac_status=$?
7532  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7533  test $ac_status = 0; } && test -s "$nlist"; then
7534      # Try sorting and uniquifying the output.
7535      if sort "$nlist" | uniq > "$nlist"T; then
7536	mv -f "$nlist"T "$nlist"
7537      else
7538	rm -f "$nlist"T
7539      fi
7540
7541      # Make sure that we snagged all the symbols we need.
7542      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7543	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7544	  cat <<_LT_EOF > conftest.$ac_ext
7545/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7546#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7547/* DATA imports from DLLs on WIN32 can't be const, because runtime
7548   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7549# define LT_DLSYM_CONST
7550#elif defined __osf__
7551/* This system does not cope well with relocations in const data.  */
7552# define LT_DLSYM_CONST
7553#else
7554# define LT_DLSYM_CONST const
7555#endif
7556
7557#ifdef __cplusplus
7558extern "C" {
7559#endif
7560
7561_LT_EOF
7562	  # Now generate the symbol file.
7563	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7564
7565	  cat <<_LT_EOF >> conftest.$ac_ext
7566
7567/* The mapping between symbol names and symbols.  */
7568LT_DLSYM_CONST struct {
7569  const char *name;
7570  void       *address;
7571}
7572lt__PROGRAM__LTX_preloaded_symbols[] =
7573{
7574  { "@PROGRAM@", (void *) 0 },
7575_LT_EOF
7576	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7577	  cat <<\_LT_EOF >> conftest.$ac_ext
7578  {0, (void *) 0}
7579};
7580
7581/* This works around a problem in FreeBSD linker */
7582#ifdef FREEBSD_WORKAROUND
7583static const void *lt_preloaded_setup() {
7584  return lt__PROGRAM__LTX_preloaded_symbols;
7585}
7586#endif
7587
7588#ifdef __cplusplus
7589}
7590#endif
7591_LT_EOF
7592	  # Now try linking the two files.
7593	  mv conftest.$ac_objext conftstm.$ac_objext
7594	  lt_globsym_save_LIBS=$LIBS
7595	  lt_globsym_save_CFLAGS=$CFLAGS
7596	  LIBS=conftstm.$ac_objext
7597	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7598	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7599  (eval $ac_link) 2>&5
7600  ac_status=$?
7601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7602  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7603	    pipe_works=yes
7604	  fi
7605	  LIBS=$lt_globsym_save_LIBS
7606	  CFLAGS=$lt_globsym_save_CFLAGS
7607	else
7608	  echo "cannot find nm_test_func in $nlist" >&5
7609	fi
7610      else
7611	echo "cannot find nm_test_var in $nlist" >&5
7612      fi
7613    else
7614      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7615    fi
7616  else
7617    echo "$progname: failed program was:" >&5
7618    cat conftest.$ac_ext >&5
7619  fi
7620  rm -rf conftest* conftst*
7621
7622  # Do not use the global_symbol_pipe unless it works.
7623  if test yes = "$pipe_works"; then
7624    break
7625  else
7626    lt_cv_sys_global_symbol_pipe=
7627  fi
7628done
7629
7630fi
7631
7632if test -z "$lt_cv_sys_global_symbol_pipe"; then
7633  lt_cv_sys_global_symbol_to_cdecl=
7634fi
7635if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7637$as_echo "failed" >&6; }
7638else
7639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7640$as_echo "ok" >&6; }
7641fi
7642
7643# Response file support.
7644if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7645  nm_file_list_spec='@'
7646elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7647  nm_file_list_spec='@'
7648fi
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7687$as_echo_n "checking for sysroot... " >&6; }
7688
7689# Check whether --with-sysroot was given.
7690if test "${with_sysroot+set}" = set; then :
7691  withval=$with_sysroot;
7692else
7693  with_sysroot=no
7694fi
7695
7696
7697lt_sysroot=
7698case $with_sysroot in #(
7699 yes)
7700   if test yes = "$GCC"; then
7701     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7702   fi
7703   ;; #(
7704 /*)
7705   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7706   ;; #(
7707 no|'')
7708   ;; #(
7709 *)
7710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7711$as_echo "$with_sysroot" >&6; }
7712   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7713   ;;
7714esac
7715
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7717$as_echo "${lt_sysroot:-no}" >&6; }
7718
7719
7720
7721
7722
7723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7724$as_echo_n "checking for a working dd... " >&6; }
7725if ${ac_cv_path_lt_DD+:} false; then :
7726  $as_echo_n "(cached) " >&6
7727else
7728  printf 0123456789abcdef0123456789abcdef >conftest.i
7729cat conftest.i conftest.i >conftest2.i
7730: ${lt_DD:=$DD}
7731if test -z "$lt_DD"; then
7732  ac_path_lt_DD_found=false
7733  # Loop through the user's path and test for each of PROGNAME-LIST
7734  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735for as_dir in $PATH
7736do
7737  IFS=$as_save_IFS
7738  test -z "$as_dir" && as_dir=.
7739    for ac_prog in dd; do
7740    for ac_exec_ext in '' $ac_executable_extensions; do
7741      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7742      as_fn_executable_p "$ac_path_lt_DD" || continue
7743if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7744  cmp -s conftest.i conftest.out \
7745  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7746fi
7747      $ac_path_lt_DD_found && break 3
7748    done
7749  done
7750  done
7751IFS=$as_save_IFS
7752  if test -z "$ac_cv_path_lt_DD"; then
7753    :
7754  fi
7755else
7756  ac_cv_path_lt_DD=$lt_DD
7757fi
7758
7759rm -f conftest.i conftest2.i conftest.out
7760fi
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7762$as_echo "$ac_cv_path_lt_DD" >&6; }
7763
7764
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7766$as_echo_n "checking how to truncate binary pipes... " >&6; }
7767if ${lt_cv_truncate_bin+:} false; then :
7768  $as_echo_n "(cached) " >&6
7769else
7770  printf 0123456789abcdef0123456789abcdef >conftest.i
7771cat conftest.i conftest.i >conftest2.i
7772lt_cv_truncate_bin=
7773if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7774  cmp -s conftest.i conftest.out \
7775  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7776fi
7777rm -f conftest.i conftest2.i conftest.out
7778test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7779fi
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7781$as_echo "$lt_cv_truncate_bin" >&6; }
7782
7783
7784
7785
7786
7787
7788
7789# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7790func_cc_basename ()
7791{
7792    for cc_temp in $*""; do
7793      case $cc_temp in
7794        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7795        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7796        \-*) ;;
7797        *) break;;
7798      esac
7799    done
7800    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7801}
7802
7803# Check whether --enable-libtool-lock was given.
7804if test "${enable_libtool_lock+set}" = set; then :
7805  enableval=$enable_libtool_lock;
7806fi
7807
7808test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7809
7810# Some flags need to be propagated to the compiler or linker for good
7811# libtool support.
7812case $host in
7813ia64-*-hpux*)
7814  # Find out what ABI is being produced by ac_compile, and set mode
7815  # options accordingly.
7816  echo 'int i;' > conftest.$ac_ext
7817  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7818  (eval $ac_compile) 2>&5
7819  ac_status=$?
7820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7821  test $ac_status = 0; }; then
7822    case `/usr/bin/file conftest.$ac_objext` in
7823      *ELF-32*)
7824	HPUX_IA64_MODE=32
7825	;;
7826      *ELF-64*)
7827	HPUX_IA64_MODE=64
7828	;;
7829    esac
7830  fi
7831  rm -rf conftest*
7832  ;;
7833*-*-irix6*)
7834  # Find out what ABI is being produced by ac_compile, and set linker
7835  # options accordingly.
7836  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7837  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7838  (eval $ac_compile) 2>&5
7839  ac_status=$?
7840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7841  test $ac_status = 0; }; then
7842    if test yes = "$lt_cv_prog_gnu_ld"; then
7843      case `/usr/bin/file conftest.$ac_objext` in
7844	*32-bit*)
7845	  LD="${LD-ld} -melf32bsmip"
7846	  ;;
7847	*N32*)
7848	  LD="${LD-ld} -melf32bmipn32"
7849	  ;;
7850	*64-bit*)
7851	  LD="${LD-ld} -melf64bmip"
7852	;;
7853      esac
7854    else
7855      case `/usr/bin/file conftest.$ac_objext` in
7856	*32-bit*)
7857	  LD="${LD-ld} -32"
7858	  ;;
7859	*N32*)
7860	  LD="${LD-ld} -n32"
7861	  ;;
7862	*64-bit*)
7863	  LD="${LD-ld} -64"
7864	  ;;
7865      esac
7866    fi
7867  fi
7868  rm -rf conftest*
7869  ;;
7870
7871mips64*-*linux*)
7872  # Find out what ABI is being produced by ac_compile, and set linker
7873  # options accordingly.
7874  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7875  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7876  (eval $ac_compile) 2>&5
7877  ac_status=$?
7878  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7879  test $ac_status = 0; }; then
7880    emul=elf
7881    case `/usr/bin/file conftest.$ac_objext` in
7882      *32-bit*)
7883	emul="${emul}32"
7884	;;
7885      *64-bit*)
7886	emul="${emul}64"
7887	;;
7888    esac
7889    case `/usr/bin/file conftest.$ac_objext` in
7890      *MSB*)
7891	emul="${emul}btsmip"
7892	;;
7893      *LSB*)
7894	emul="${emul}ltsmip"
7895	;;
7896    esac
7897    case `/usr/bin/file conftest.$ac_objext` in
7898      *N32*)
7899	emul="${emul}n32"
7900	;;
7901    esac
7902    LD="${LD-ld} -m $emul"
7903  fi
7904  rm -rf conftest*
7905  ;;
7906
7907x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7908s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7909  # Find out what ABI is being produced by ac_compile, and set linker
7910  # options accordingly.  Note that the listed cases only cover the
7911  # situations where additional linker options are needed (such as when
7912  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7913  # vice versa); the common cases where no linker options are needed do
7914  # not appear in the list.
7915  echo 'int i;' > conftest.$ac_ext
7916  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7917  (eval $ac_compile) 2>&5
7918  ac_status=$?
7919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7920  test $ac_status = 0; }; then
7921    case `/usr/bin/file conftest.o` in
7922      *32-bit*)
7923	case $host in
7924	  x86_64-*kfreebsd*-gnu)
7925	    LD="${LD-ld} -m elf_i386_fbsd"
7926	    ;;
7927	  x86_64-*linux*)
7928	    case `/usr/bin/file conftest.o` in
7929	      *x86-64*)
7930		LD="${LD-ld} -m elf32_x86_64"
7931		;;
7932	      *)
7933		LD="${LD-ld} -m elf_i386"
7934		;;
7935	    esac
7936	    ;;
7937	  powerpc64le-*linux*)
7938	    LD="${LD-ld} -m elf32lppclinux"
7939	    ;;
7940	  powerpc64-*linux*)
7941	    LD="${LD-ld} -m elf32ppclinux"
7942	    ;;
7943	  s390x-*linux*)
7944	    LD="${LD-ld} -m elf_s390"
7945	    ;;
7946	  sparc64-*linux*)
7947	    LD="${LD-ld} -m elf32_sparc"
7948	    ;;
7949	esac
7950	;;
7951      *64-bit*)
7952	case $host in
7953	  x86_64-*kfreebsd*-gnu)
7954	    LD="${LD-ld} -m elf_x86_64_fbsd"
7955	    ;;
7956	  x86_64-*linux*)
7957	    LD="${LD-ld} -m elf_x86_64"
7958	    ;;
7959	  powerpcle-*linux*)
7960	    LD="${LD-ld} -m elf64lppc"
7961	    ;;
7962	  powerpc-*linux*)
7963	    LD="${LD-ld} -m elf64ppc"
7964	    ;;
7965	  s390*-*linux*|s390*-*tpf*)
7966	    LD="${LD-ld} -m elf64_s390"
7967	    ;;
7968	  sparc*-*linux*)
7969	    LD="${LD-ld} -m elf64_sparc"
7970	    ;;
7971	esac
7972	;;
7973    esac
7974  fi
7975  rm -rf conftest*
7976  ;;
7977
7978*-*-sco3.2v5*)
7979  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7980  SAVE_CFLAGS=$CFLAGS
7981  CFLAGS="$CFLAGS -belf"
7982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7983$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7984if ${lt_cv_cc_needs_belf+:} false; then :
7985  $as_echo_n "(cached) " >&6
7986else
7987  ac_ext=c
7988ac_cpp='$CPP $CPPFLAGS'
7989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7991ac_compiler_gnu=$ac_cv_c_compiler_gnu
7992
7993     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994/* end confdefs.h.  */
7995
7996int
7997main ()
7998{
7999
8000  ;
8001  return 0;
8002}
8003_ACEOF
8004if ac_fn_c_try_link "$LINENO"; then :
8005  lt_cv_cc_needs_belf=yes
8006else
8007  lt_cv_cc_needs_belf=no
8008fi
8009rm -f core conftest.err conftest.$ac_objext \
8010    conftest$ac_exeext conftest.$ac_ext
8011     ac_ext=c
8012ac_cpp='$CPP $CPPFLAGS'
8013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8015ac_compiler_gnu=$ac_cv_c_compiler_gnu
8016
8017fi
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8019$as_echo "$lt_cv_cc_needs_belf" >&6; }
8020  if test yes != "$lt_cv_cc_needs_belf"; then
8021    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8022    CFLAGS=$SAVE_CFLAGS
8023  fi
8024  ;;
8025*-*solaris*)
8026  # Find out what ABI is being produced by ac_compile, and set linker
8027  # options accordingly.
8028  echo 'int i;' > conftest.$ac_ext
8029  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8030  (eval $ac_compile) 2>&5
8031  ac_status=$?
8032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8033  test $ac_status = 0; }; then
8034    case `/usr/bin/file conftest.o` in
8035    *64-bit*)
8036      case $lt_cv_prog_gnu_ld in
8037      yes*)
8038        case $host in
8039        i?86-*-solaris*|x86_64-*-solaris*)
8040          LD="${LD-ld} -m elf_x86_64"
8041          ;;
8042        sparc*-*-solaris*)
8043          LD="${LD-ld} -m elf64_sparc"
8044          ;;
8045        esac
8046        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8047        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8048          LD=${LD-ld}_sol2
8049        fi
8050        ;;
8051      *)
8052	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8053	  LD="${LD-ld} -64"
8054	fi
8055	;;
8056      esac
8057      ;;
8058    esac
8059  fi
8060  rm -rf conftest*
8061  ;;
8062esac
8063
8064need_locks=$enable_libtool_lock
8065
8066if test -n "$ac_tool_prefix"; then
8067  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8068set dummy ${ac_tool_prefix}mt; ac_word=$2
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070$as_echo_n "checking for $ac_word... " >&6; }
8071if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8072  $as_echo_n "(cached) " >&6
8073else
8074  if test -n "$MANIFEST_TOOL"; then
8075  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8076else
8077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078for as_dir in $PATH
8079do
8080  IFS=$as_save_IFS
8081  test -z "$as_dir" && as_dir=.
8082    for ac_exec_ext in '' $ac_executable_extensions; do
8083  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8084    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086    break 2
8087  fi
8088done
8089  done
8090IFS=$as_save_IFS
8091
8092fi
8093fi
8094MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8095if test -n "$MANIFEST_TOOL"; then
8096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8097$as_echo "$MANIFEST_TOOL" >&6; }
8098else
8099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100$as_echo "no" >&6; }
8101fi
8102
8103
8104fi
8105if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8106  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8107  # Extract the first word of "mt", so it can be a program name with args.
8108set dummy mt; ac_word=$2
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110$as_echo_n "checking for $ac_word... " >&6; }
8111if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8112  $as_echo_n "(cached) " >&6
8113else
8114  if test -n "$ac_ct_MANIFEST_TOOL"; then
8115  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8116else
8117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118for as_dir in $PATH
8119do
8120  IFS=$as_save_IFS
8121  test -z "$as_dir" && as_dir=.
8122    for ac_exec_ext in '' $ac_executable_extensions; do
8123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126    break 2
8127  fi
8128done
8129  done
8130IFS=$as_save_IFS
8131
8132fi
8133fi
8134ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8135if test -n "$ac_ct_MANIFEST_TOOL"; then
8136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8137$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8138else
8139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140$as_echo "no" >&6; }
8141fi
8142
8143  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8144    MANIFEST_TOOL=":"
8145  else
8146    case $cross_compiling:$ac_tool_warned in
8147yes:)
8148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8150ac_tool_warned=yes ;;
8151esac
8152    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8153  fi
8154else
8155  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8156fi
8157
8158test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8160$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8161if ${lt_cv_path_mainfest_tool+:} false; then :
8162  $as_echo_n "(cached) " >&6
8163else
8164  lt_cv_path_mainfest_tool=no
8165  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8166  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8167  cat conftest.err >&5
8168  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8169    lt_cv_path_mainfest_tool=yes
8170  fi
8171  rm -f conftest*
8172fi
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8174$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8175if test yes != "$lt_cv_path_mainfest_tool"; then
8176  MANIFEST_TOOL=:
8177fi
8178
8179
8180
8181
8182
8183
8184  case $host_os in
8185    rhapsody* | darwin*)
8186    if test -n "$ac_tool_prefix"; then
8187  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8188set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190$as_echo_n "checking for $ac_word... " >&6; }
8191if ${ac_cv_prog_DSYMUTIL+:} false; then :
8192  $as_echo_n "(cached) " >&6
8193else
8194  if test -n "$DSYMUTIL"; then
8195  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8196else
8197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198for as_dir in $PATH
8199do
8200  IFS=$as_save_IFS
8201  test -z "$as_dir" && as_dir=.
8202    for ac_exec_ext in '' $ac_executable_extensions; do
8203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8204    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8206    break 2
8207  fi
8208done
8209  done
8210IFS=$as_save_IFS
8211
8212fi
8213fi
8214DSYMUTIL=$ac_cv_prog_DSYMUTIL
8215if test -n "$DSYMUTIL"; then
8216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8217$as_echo "$DSYMUTIL" >&6; }
8218else
8219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220$as_echo "no" >&6; }
8221fi
8222
8223
8224fi
8225if test -z "$ac_cv_prog_DSYMUTIL"; then
8226  ac_ct_DSYMUTIL=$DSYMUTIL
8227  # Extract the first word of "dsymutil", so it can be a program name with args.
8228set dummy dsymutil; ac_word=$2
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230$as_echo_n "checking for $ac_word... " >&6; }
8231if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8232  $as_echo_n "(cached) " >&6
8233else
8234  if test -n "$ac_ct_DSYMUTIL"; then
8235  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8236else
8237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238for as_dir in $PATH
8239do
8240  IFS=$as_save_IFS
8241  test -z "$as_dir" && as_dir=.
8242    for ac_exec_ext in '' $ac_executable_extensions; do
8243  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8244    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8246    break 2
8247  fi
8248done
8249  done
8250IFS=$as_save_IFS
8251
8252fi
8253fi
8254ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8255if test -n "$ac_ct_DSYMUTIL"; then
8256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8257$as_echo "$ac_ct_DSYMUTIL" >&6; }
8258else
8259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260$as_echo "no" >&6; }
8261fi
8262
8263  if test "x$ac_ct_DSYMUTIL" = x; then
8264    DSYMUTIL=":"
8265  else
8266    case $cross_compiling:$ac_tool_warned in
8267yes:)
8268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8270ac_tool_warned=yes ;;
8271esac
8272    DSYMUTIL=$ac_ct_DSYMUTIL
8273  fi
8274else
8275  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8276fi
8277
8278    if test -n "$ac_tool_prefix"; then
8279  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8280set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8282$as_echo_n "checking for $ac_word... " >&6; }
8283if ${ac_cv_prog_NMEDIT+:} false; then :
8284  $as_echo_n "(cached) " >&6
8285else
8286  if test -n "$NMEDIT"; then
8287  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8288else
8289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290for as_dir in $PATH
8291do
8292  IFS=$as_save_IFS
8293  test -z "$as_dir" && as_dir=.
8294    for ac_exec_ext in '' $ac_executable_extensions; do
8295  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8296    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8297    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8298    break 2
8299  fi
8300done
8301  done
8302IFS=$as_save_IFS
8303
8304fi
8305fi
8306NMEDIT=$ac_cv_prog_NMEDIT
8307if test -n "$NMEDIT"; then
8308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8309$as_echo "$NMEDIT" >&6; }
8310else
8311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8312$as_echo "no" >&6; }
8313fi
8314
8315
8316fi
8317if test -z "$ac_cv_prog_NMEDIT"; then
8318  ac_ct_NMEDIT=$NMEDIT
8319  # Extract the first word of "nmedit", so it can be a program name with args.
8320set dummy nmedit; ac_word=$2
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322$as_echo_n "checking for $ac_word... " >&6; }
8323if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8324  $as_echo_n "(cached) " >&6
8325else
8326  if test -n "$ac_ct_NMEDIT"; then
8327  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8328else
8329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330for as_dir in $PATH
8331do
8332  IFS=$as_save_IFS
8333  test -z "$as_dir" && as_dir=.
8334    for ac_exec_ext in '' $ac_executable_extensions; do
8335  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8336    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8337    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8338    break 2
8339  fi
8340done
8341  done
8342IFS=$as_save_IFS
8343
8344fi
8345fi
8346ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8347if test -n "$ac_ct_NMEDIT"; then
8348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8349$as_echo "$ac_ct_NMEDIT" >&6; }
8350else
8351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352$as_echo "no" >&6; }
8353fi
8354
8355  if test "x$ac_ct_NMEDIT" = x; then
8356    NMEDIT=":"
8357  else
8358    case $cross_compiling:$ac_tool_warned in
8359yes:)
8360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8362ac_tool_warned=yes ;;
8363esac
8364    NMEDIT=$ac_ct_NMEDIT
8365  fi
8366else
8367  NMEDIT="$ac_cv_prog_NMEDIT"
8368fi
8369
8370    if test -n "$ac_tool_prefix"; then
8371  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8372set dummy ${ac_tool_prefix}lipo; ac_word=$2
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8374$as_echo_n "checking for $ac_word... " >&6; }
8375if ${ac_cv_prog_LIPO+:} false; then :
8376  $as_echo_n "(cached) " >&6
8377else
8378  if test -n "$LIPO"; then
8379  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8380else
8381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382for as_dir in $PATH
8383do
8384  IFS=$as_save_IFS
8385  test -z "$as_dir" && as_dir=.
8386    for ac_exec_ext in '' $ac_executable_extensions; do
8387  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8388    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8390    break 2
8391  fi
8392done
8393  done
8394IFS=$as_save_IFS
8395
8396fi
8397fi
8398LIPO=$ac_cv_prog_LIPO
8399if test -n "$LIPO"; then
8400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8401$as_echo "$LIPO" >&6; }
8402else
8403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404$as_echo "no" >&6; }
8405fi
8406
8407
8408fi
8409if test -z "$ac_cv_prog_LIPO"; then
8410  ac_ct_LIPO=$LIPO
8411  # Extract the first word of "lipo", so it can be a program name with args.
8412set dummy lipo; ac_word=$2
8413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414$as_echo_n "checking for $ac_word... " >&6; }
8415if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8416  $as_echo_n "(cached) " >&6
8417else
8418  if test -n "$ac_ct_LIPO"; then
8419  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8420else
8421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422for as_dir in $PATH
8423do
8424  IFS=$as_save_IFS
8425  test -z "$as_dir" && as_dir=.
8426    for ac_exec_ext in '' $ac_executable_extensions; do
8427  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8428    ac_cv_prog_ac_ct_LIPO="lipo"
8429    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8430    break 2
8431  fi
8432done
8433  done
8434IFS=$as_save_IFS
8435
8436fi
8437fi
8438ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8439if test -n "$ac_ct_LIPO"; then
8440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8441$as_echo "$ac_ct_LIPO" >&6; }
8442else
8443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444$as_echo "no" >&6; }
8445fi
8446
8447  if test "x$ac_ct_LIPO" = x; then
8448    LIPO=":"
8449  else
8450    case $cross_compiling:$ac_tool_warned in
8451yes:)
8452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8454ac_tool_warned=yes ;;
8455esac
8456    LIPO=$ac_ct_LIPO
8457  fi
8458else
8459  LIPO="$ac_cv_prog_LIPO"
8460fi
8461
8462    if test -n "$ac_tool_prefix"; then
8463  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8464set dummy ${ac_tool_prefix}otool; ac_word=$2
8465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8466$as_echo_n "checking for $ac_word... " >&6; }
8467if ${ac_cv_prog_OTOOL+:} false; then :
8468  $as_echo_n "(cached) " >&6
8469else
8470  if test -n "$OTOOL"; then
8471  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8472else
8473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474for as_dir in $PATH
8475do
8476  IFS=$as_save_IFS
8477  test -z "$as_dir" && as_dir=.
8478    for ac_exec_ext in '' $ac_executable_extensions; do
8479  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8480    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8482    break 2
8483  fi
8484done
8485  done
8486IFS=$as_save_IFS
8487
8488fi
8489fi
8490OTOOL=$ac_cv_prog_OTOOL
8491if test -n "$OTOOL"; then
8492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8493$as_echo "$OTOOL" >&6; }
8494else
8495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8496$as_echo "no" >&6; }
8497fi
8498
8499
8500fi
8501if test -z "$ac_cv_prog_OTOOL"; then
8502  ac_ct_OTOOL=$OTOOL
8503  # Extract the first word of "otool", so it can be a program name with args.
8504set dummy otool; ac_word=$2
8505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8506$as_echo_n "checking for $ac_word... " >&6; }
8507if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8508  $as_echo_n "(cached) " >&6
8509else
8510  if test -n "$ac_ct_OTOOL"; then
8511  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8512else
8513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514for as_dir in $PATH
8515do
8516  IFS=$as_save_IFS
8517  test -z "$as_dir" && as_dir=.
8518    for ac_exec_ext in '' $ac_executable_extensions; do
8519  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8520    ac_cv_prog_ac_ct_OTOOL="otool"
8521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8522    break 2
8523  fi
8524done
8525  done
8526IFS=$as_save_IFS
8527
8528fi
8529fi
8530ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8531if test -n "$ac_ct_OTOOL"; then
8532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8533$as_echo "$ac_ct_OTOOL" >&6; }
8534else
8535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536$as_echo "no" >&6; }
8537fi
8538
8539  if test "x$ac_ct_OTOOL" = x; then
8540    OTOOL=":"
8541  else
8542    case $cross_compiling:$ac_tool_warned in
8543yes:)
8544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8546ac_tool_warned=yes ;;
8547esac
8548    OTOOL=$ac_ct_OTOOL
8549  fi
8550else
8551  OTOOL="$ac_cv_prog_OTOOL"
8552fi
8553
8554    if test -n "$ac_tool_prefix"; then
8555  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8556set dummy ${ac_tool_prefix}otool64; ac_word=$2
8557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558$as_echo_n "checking for $ac_word... " >&6; }
8559if ${ac_cv_prog_OTOOL64+:} false; then :
8560  $as_echo_n "(cached) " >&6
8561else
8562  if test -n "$OTOOL64"; then
8563  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8564else
8565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566for as_dir in $PATH
8567do
8568  IFS=$as_save_IFS
8569  test -z "$as_dir" && as_dir=.
8570    for ac_exec_ext in '' $ac_executable_extensions; do
8571  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8572    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8574    break 2
8575  fi
8576done
8577  done
8578IFS=$as_save_IFS
8579
8580fi
8581fi
8582OTOOL64=$ac_cv_prog_OTOOL64
8583if test -n "$OTOOL64"; then
8584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8585$as_echo "$OTOOL64" >&6; }
8586else
8587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588$as_echo "no" >&6; }
8589fi
8590
8591
8592fi
8593if test -z "$ac_cv_prog_OTOOL64"; then
8594  ac_ct_OTOOL64=$OTOOL64
8595  # Extract the first word of "otool64", so it can be a program name with args.
8596set dummy otool64; ac_word=$2
8597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598$as_echo_n "checking for $ac_word... " >&6; }
8599if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8600  $as_echo_n "(cached) " >&6
8601else
8602  if test -n "$ac_ct_OTOOL64"; then
8603  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8604else
8605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606for as_dir in $PATH
8607do
8608  IFS=$as_save_IFS
8609  test -z "$as_dir" && as_dir=.
8610    for ac_exec_ext in '' $ac_executable_extensions; do
8611  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8612    ac_cv_prog_ac_ct_OTOOL64="otool64"
8613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8614    break 2
8615  fi
8616done
8617  done
8618IFS=$as_save_IFS
8619
8620fi
8621fi
8622ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8623if test -n "$ac_ct_OTOOL64"; then
8624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8625$as_echo "$ac_ct_OTOOL64" >&6; }
8626else
8627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628$as_echo "no" >&6; }
8629fi
8630
8631  if test "x$ac_ct_OTOOL64" = x; then
8632    OTOOL64=":"
8633  else
8634    case $cross_compiling:$ac_tool_warned in
8635yes:)
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8638ac_tool_warned=yes ;;
8639esac
8640    OTOOL64=$ac_ct_OTOOL64
8641  fi
8642else
8643  OTOOL64="$ac_cv_prog_OTOOL64"
8644fi
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8673$as_echo_n "checking for -single_module linker flag... " >&6; }
8674if ${lt_cv_apple_cc_single_mod+:} false; then :
8675  $as_echo_n "(cached) " >&6
8676else
8677  lt_cv_apple_cc_single_mod=no
8678      if test -z "$LT_MULTI_MODULE"; then
8679	# By default we will add the -single_module flag. You can override
8680	# by either setting the environment variable LT_MULTI_MODULE
8681	# non-empty at configure time, or by adding -multi_module to the
8682	# link flags.
8683	rm -rf libconftest.dylib*
8684	echo "int foo(void){return 1;}" > conftest.c
8685	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8686-dynamiclib -Wl,-single_module conftest.c" >&5
8687	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8688	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8689        _lt_result=$?
8690	# If there is a non-empty error log, and "single_module"
8691	# appears in it, assume the flag caused a linker warning
8692        if test -s conftest.err && $GREP single_module conftest.err; then
8693	  cat conftest.err >&5
8694	# Otherwise, if the output was created with a 0 exit code from
8695	# the compiler, it worked.
8696	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8697	  lt_cv_apple_cc_single_mod=yes
8698	else
8699	  cat conftest.err >&5
8700	fi
8701	rm -rf libconftest.dylib*
8702	rm -f conftest.*
8703      fi
8704fi
8705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8706$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8707
8708    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8709$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8710if ${lt_cv_ld_exported_symbols_list+:} false; then :
8711  $as_echo_n "(cached) " >&6
8712else
8713  lt_cv_ld_exported_symbols_list=no
8714      save_LDFLAGS=$LDFLAGS
8715      echo "_main" > conftest.sym
8716      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8717      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718/* end confdefs.h.  */
8719
8720int
8721main ()
8722{
8723
8724  ;
8725  return 0;
8726}
8727_ACEOF
8728if ac_fn_c_try_link "$LINENO"; then :
8729  lt_cv_ld_exported_symbols_list=yes
8730else
8731  lt_cv_ld_exported_symbols_list=no
8732fi
8733rm -f core conftest.err conftest.$ac_objext \
8734    conftest$ac_exeext conftest.$ac_ext
8735	LDFLAGS=$save_LDFLAGS
8736
8737fi
8738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8739$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8740
8741    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8742$as_echo_n "checking for -force_load linker flag... " >&6; }
8743if ${lt_cv_ld_force_load+:} false; then :
8744  $as_echo_n "(cached) " >&6
8745else
8746  lt_cv_ld_force_load=no
8747      cat > conftest.c << _LT_EOF
8748int forced_loaded() { return 2;}
8749_LT_EOF
8750      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8751      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8752      echo "$AR cru libconftest.a conftest.o" >&5
8753      $AR cru libconftest.a conftest.o 2>&5
8754      echo "$RANLIB libconftest.a" >&5
8755      $RANLIB libconftest.a 2>&5
8756      cat > conftest.c << _LT_EOF
8757int main() { return 0;}
8758_LT_EOF
8759      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8760      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8761      _lt_result=$?
8762      if test -s conftest.err && $GREP force_load conftest.err; then
8763	cat conftest.err >&5
8764      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8765	lt_cv_ld_force_load=yes
8766      else
8767	cat conftest.err >&5
8768      fi
8769        rm -f conftest.err libconftest.a conftest conftest.c
8770        rm -rf conftest.dSYM
8771
8772fi
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8774$as_echo "$lt_cv_ld_force_load" >&6; }
8775    case $host_os in
8776    rhapsody* | darwin1.[012])
8777      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8778    darwin1.*)
8779      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8780    darwin*) # darwin 5.x on
8781      # if running on 10.5 or later, the deployment target defaults
8782      # to the OS version, if on x86, and 10.4, the deployment
8783      # target defaults to 10.4. Don't you love it?
8784      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8785	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8786	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8787	10.[012][,.]*)
8788	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8789	10.*)
8790	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8791      esac
8792    ;;
8793  esac
8794    if test yes = "$lt_cv_apple_cc_single_mod"; then
8795      _lt_dar_single_mod='$single_module'
8796    fi
8797    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8798      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8799    else
8800      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8801    fi
8802    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8803      _lt_dsymutil='~$DSYMUTIL $lib || :'
8804    else
8805      _lt_dsymutil=
8806    fi
8807    ;;
8808  esac
8809
8810# func_munge_path_list VARIABLE PATH
8811# -----------------------------------
8812# VARIABLE is name of variable containing _space_ separated list of
8813# directories to be munged by the contents of PATH, which is string
8814# having a format:
8815# "DIR[:DIR]:"
8816#       string "DIR[ DIR]" will be prepended to VARIABLE
8817# ":DIR[:DIR]"
8818#       string "DIR[ DIR]" will be appended to VARIABLE
8819# "DIRP[:DIRP]::[DIRA:]DIRA"
8820#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8821#       "DIRA[ DIRA]" will be appended to VARIABLE
8822# "DIR[:DIR]"
8823#       VARIABLE will be replaced by "DIR[ DIR]"
8824func_munge_path_list ()
8825{
8826    case x$2 in
8827    x)
8828        ;;
8829    *:)
8830        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8831        ;;
8832    x:*)
8833        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8834        ;;
8835    *::*)
8836        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8837        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8838        ;;
8839    *)
8840        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8841        ;;
8842    esac
8843}
8844
8845for ac_header in dlfcn.h
8846do :
8847  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8848"
8849if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8850  cat >>confdefs.h <<_ACEOF
8851#define HAVE_DLFCN_H 1
8852_ACEOF
8853
8854fi
8855
8856done
8857
8858
8859
8860
8861
8862# Set options
8863
8864
8865
8866        enable_dlopen=no
8867
8868
8869  enable_win32_dll=no
8870
8871
8872
8873
8874
8875# Check whether --with-pic was given.
8876if test "${with_pic+set}" = set; then :
8877  withval=$with_pic; lt_p=${PACKAGE-default}
8878    case $withval in
8879    yes|no) pic_mode=$withval ;;
8880    *)
8881      pic_mode=default
8882      # Look at the argument we got.  We use all the common list separators.
8883      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8884      for lt_pkg in $withval; do
8885	IFS=$lt_save_ifs
8886	if test "X$lt_pkg" = "X$lt_p"; then
8887	  pic_mode=yes
8888	fi
8889      done
8890      IFS=$lt_save_ifs
8891      ;;
8892    esac
8893else
8894  pic_mode=default
8895fi
8896
8897
8898
8899
8900
8901
8902
8903
8904  # Check whether --enable-fast-install was given.
8905if test "${enable_fast_install+set}" = set; then :
8906  enableval=$enable_fast_install; p=${PACKAGE-default}
8907    case $enableval in
8908    yes) enable_fast_install=yes ;;
8909    no) enable_fast_install=no ;;
8910    *)
8911      enable_fast_install=no
8912      # Look at the argument we got.  We use all the common list separators.
8913      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8914      for pkg in $enableval; do
8915	IFS=$lt_save_ifs
8916	if test "X$pkg" = "X$p"; then
8917	  enable_fast_install=yes
8918	fi
8919      done
8920      IFS=$lt_save_ifs
8921      ;;
8922    esac
8923else
8924  enable_fast_install=yes
8925fi
8926
8927
8928
8929
8930
8931
8932
8933
8934  shared_archive_member_spec=
8935case $host,$enable_shared in
8936power*-*-aix[5-9]*,yes)
8937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8938$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8939
8940# Check whether --with-aix-soname was given.
8941if test "${with_aix_soname+set}" = set; then :
8942  withval=$with_aix_soname; case $withval in
8943    aix|svr4|both)
8944      ;;
8945    *)
8946      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8947      ;;
8948    esac
8949    lt_cv_with_aix_soname=$with_aix_soname
8950else
8951  if ${lt_cv_with_aix_soname+:} false; then :
8952  $as_echo_n "(cached) " >&6
8953else
8954  lt_cv_with_aix_soname=aix
8955fi
8956
8957    with_aix_soname=$lt_cv_with_aix_soname
8958fi
8959
8960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8961$as_echo "$with_aix_soname" >&6; }
8962  if test aix != "$with_aix_soname"; then
8963    # For the AIX way of multilib, we name the shared archive member
8964    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8965    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8966    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8967    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8968    if test 64 = "${OBJECT_MODE-32}"; then
8969      shared_archive_member_spec=shr_64
8970    else
8971      shared_archive_member_spec=shr
8972    fi
8973  fi
8974  ;;
8975*)
8976  with_aix_soname=aix
8977  ;;
8978esac
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989# This can be used to rebuild libtool when needed
8990LIBTOOL_DEPS=$ltmain
8991
8992# Always use our own libtool.
8993LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024test -z "$LN_S" && LN_S="ln -s"
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039if test -n "${ZSH_VERSION+set}"; then
9040   setopt NO_GLOB_SUBST
9041fi
9042
9043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9044$as_echo_n "checking for objdir... " >&6; }
9045if ${lt_cv_objdir+:} false; then :
9046  $as_echo_n "(cached) " >&6
9047else
9048  rm -f .libs 2>/dev/null
9049mkdir .libs 2>/dev/null
9050if test -d .libs; then
9051  lt_cv_objdir=.libs
9052else
9053  # MS-DOS does not allow filenames that begin with a dot.
9054  lt_cv_objdir=_libs
9055fi
9056rmdir .libs 2>/dev/null
9057fi
9058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9059$as_echo "$lt_cv_objdir" >&6; }
9060objdir=$lt_cv_objdir
9061
9062
9063
9064
9065
9066cat >>confdefs.h <<_ACEOF
9067#define LT_OBJDIR "$lt_cv_objdir/"
9068_ACEOF
9069
9070
9071
9072
9073case $host_os in
9074aix3*)
9075  # AIX sometimes has problems with the GCC collect2 program.  For some
9076  # reason, if we set the COLLECT_NAMES environment variable, the problems
9077  # vanish in a puff of smoke.
9078  if test set != "${COLLECT_NAMES+set}"; then
9079    COLLECT_NAMES=
9080    export COLLECT_NAMES
9081  fi
9082  ;;
9083esac
9084
9085# Global variables:
9086ofile=libtool
9087can_build_shared=yes
9088
9089# All known linkers require a '.a' archive for static linking (except MSVC,
9090# which needs '.lib').
9091libext=a
9092
9093with_gnu_ld=$lt_cv_prog_gnu_ld
9094
9095old_CC=$CC
9096old_CFLAGS=$CFLAGS
9097
9098# Set sane defaults for various variables
9099test -z "$CC" && CC=cc
9100test -z "$LTCC" && LTCC=$CC
9101test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9102test -z "$LD" && LD=ld
9103test -z "$ac_objext" && ac_objext=o
9104
9105func_cc_basename $compiler
9106cc_basename=$func_cc_basename_result
9107
9108
9109# Only perform the check for file, if the check method requires it
9110test -z "$MAGIC_CMD" && MAGIC_CMD=file
9111case $deplibs_check_method in
9112file_magic*)
9113  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9114    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9115$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9116if ${lt_cv_path_MAGIC_CMD+:} false; then :
9117  $as_echo_n "(cached) " >&6
9118else
9119  case $MAGIC_CMD in
9120[\\/*] |  ?:[\\/]*)
9121  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9122  ;;
9123*)
9124  lt_save_MAGIC_CMD=$MAGIC_CMD
9125  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9126  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9127  for ac_dir in $ac_dummy; do
9128    IFS=$lt_save_ifs
9129    test -z "$ac_dir" && ac_dir=.
9130    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9131      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9132      if test -n "$file_magic_test_file"; then
9133	case $deplibs_check_method in
9134	"file_magic "*)
9135	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9136	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9137	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9138	    $EGREP "$file_magic_regex" > /dev/null; then
9139	    :
9140	  else
9141	    cat <<_LT_EOF 1>&2
9142
9143*** Warning: the command libtool uses to detect shared libraries,
9144*** $file_magic_cmd, produces output that libtool cannot recognize.
9145*** The result is that libtool may fail to recognize shared libraries
9146*** as such.  This will affect the creation of libtool libraries that
9147*** depend on shared libraries, but programs linked with such libtool
9148*** libraries will work regardless of this problem.  Nevertheless, you
9149*** may want to report the problem to your system manager and/or to
9150*** bug-libtool@gnu.org
9151
9152_LT_EOF
9153	  fi ;;
9154	esac
9155      fi
9156      break
9157    fi
9158  done
9159  IFS=$lt_save_ifs
9160  MAGIC_CMD=$lt_save_MAGIC_CMD
9161  ;;
9162esac
9163fi
9164
9165MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9166if test -n "$MAGIC_CMD"; then
9167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9168$as_echo "$MAGIC_CMD" >&6; }
9169else
9170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9171$as_echo "no" >&6; }
9172fi
9173
9174
9175
9176
9177
9178if test -z "$lt_cv_path_MAGIC_CMD"; then
9179  if test -n "$ac_tool_prefix"; then
9180    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9181$as_echo_n "checking for file... " >&6; }
9182if ${lt_cv_path_MAGIC_CMD+:} false; then :
9183  $as_echo_n "(cached) " >&6
9184else
9185  case $MAGIC_CMD in
9186[\\/*] |  ?:[\\/]*)
9187  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9188  ;;
9189*)
9190  lt_save_MAGIC_CMD=$MAGIC_CMD
9191  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9192  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9193  for ac_dir in $ac_dummy; do
9194    IFS=$lt_save_ifs
9195    test -z "$ac_dir" && ac_dir=.
9196    if test -f "$ac_dir/file"; then
9197      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9198      if test -n "$file_magic_test_file"; then
9199	case $deplibs_check_method in
9200	"file_magic "*)
9201	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9202	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9203	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9204	    $EGREP "$file_magic_regex" > /dev/null; then
9205	    :
9206	  else
9207	    cat <<_LT_EOF 1>&2
9208
9209*** Warning: the command libtool uses to detect shared libraries,
9210*** $file_magic_cmd, produces output that libtool cannot recognize.
9211*** The result is that libtool may fail to recognize shared libraries
9212*** as such.  This will affect the creation of libtool libraries that
9213*** depend on shared libraries, but programs linked with such libtool
9214*** libraries will work regardless of this problem.  Nevertheless, you
9215*** may want to report the problem to your system manager and/or to
9216*** bug-libtool@gnu.org
9217
9218_LT_EOF
9219	  fi ;;
9220	esac
9221      fi
9222      break
9223    fi
9224  done
9225  IFS=$lt_save_ifs
9226  MAGIC_CMD=$lt_save_MAGIC_CMD
9227  ;;
9228esac
9229fi
9230
9231MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9232if test -n "$MAGIC_CMD"; then
9233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9234$as_echo "$MAGIC_CMD" >&6; }
9235else
9236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9237$as_echo "no" >&6; }
9238fi
9239
9240
9241  else
9242    MAGIC_CMD=:
9243  fi
9244fi
9245
9246  fi
9247  ;;
9248esac
9249
9250# Use C for the default configuration in the libtool script
9251
9252lt_save_CC=$CC
9253ac_ext=c
9254ac_cpp='$CPP $CPPFLAGS'
9255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9257ac_compiler_gnu=$ac_cv_c_compiler_gnu
9258
9259
9260# Source file extension for C test sources.
9261ac_ext=c
9262
9263# Object file extension for compiled C test sources.
9264objext=o
9265objext=$objext
9266
9267# Code to be used in simple compile tests
9268lt_simple_compile_test_code="int some_variable = 0;"
9269
9270# Code to be used in simple link tests
9271lt_simple_link_test_code='int main(){return(0);}'
9272
9273
9274
9275
9276
9277
9278
9279# If no C compiler was specified, use CC.
9280LTCC=${LTCC-"$CC"}
9281
9282# If no C compiler flags were specified, use CFLAGS.
9283LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9284
9285# Allow CC to be a program name with arguments.
9286compiler=$CC
9287
9288# Save the default compiler, since it gets overwritten when the other
9289# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9290compiler_DEFAULT=$CC
9291
9292# save warnings/boilerplate of simple test code
9293ac_outfile=conftest.$ac_objext
9294echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9295eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9296_lt_compiler_boilerplate=`cat conftest.err`
9297$RM conftest*
9298
9299ac_outfile=conftest.$ac_objext
9300echo "$lt_simple_link_test_code" >conftest.$ac_ext
9301eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9302_lt_linker_boilerplate=`cat conftest.err`
9303$RM -r conftest*
9304
9305
9306## CAVEAT EMPTOR:
9307## There is no encapsulation within the following macros, do not change
9308## the running order or otherwise move them around unless you know exactly
9309## what you are doing...
9310if test -n "$compiler"; then
9311
9312lt_prog_compiler_no_builtin_flag=
9313
9314if test yes = "$GCC"; then
9315  case $cc_basename in
9316  nvcc*)
9317    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9318  *)
9319    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9320  esac
9321
9322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9323$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9324if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9325  $as_echo_n "(cached) " >&6
9326else
9327  lt_cv_prog_compiler_rtti_exceptions=no
9328   ac_outfile=conftest.$ac_objext
9329   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9330   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9331   # Insert the option either (1) after the last *FLAGS variable, or
9332   # (2) before a word containing "conftest.", or (3) at the end.
9333   # Note that $ac_compile itself does not contain backslashes and begins
9334   # with a dollar sign (not a hyphen), so the echo should work correctly.
9335   # The option is referenced via a variable to avoid confusing sed.
9336   lt_compile=`echo "$ac_compile" | $SED \
9337   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9338   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9339   -e 's:$: $lt_compiler_flag:'`
9340   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9341   (eval "$lt_compile" 2>conftest.err)
9342   ac_status=$?
9343   cat conftest.err >&5
9344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345   if (exit $ac_status) && test -s "$ac_outfile"; then
9346     # The compiler can only warn and ignore the option if not recognized
9347     # So say no if there are warnings other than the usual output.
9348     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9349     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9350     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9351       lt_cv_prog_compiler_rtti_exceptions=yes
9352     fi
9353   fi
9354   $RM conftest*
9355
9356fi
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9358$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9359
9360if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9361    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9362else
9363    :
9364fi
9365
9366fi
9367
9368
9369
9370
9371
9372
9373  lt_prog_compiler_wl=
9374lt_prog_compiler_pic=
9375lt_prog_compiler_static=
9376
9377
9378  if test yes = "$GCC"; then
9379    lt_prog_compiler_wl='-Wl,'
9380    lt_prog_compiler_static='-static'
9381
9382    case $host_os in
9383      aix*)
9384      # All AIX code is PIC.
9385      if test ia64 = "$host_cpu"; then
9386	# AIX 5 now supports IA64 processor
9387	lt_prog_compiler_static='-Bstatic'
9388      fi
9389      lt_prog_compiler_pic='-fPIC'
9390      ;;
9391
9392    amigaos*)
9393      case $host_cpu in
9394      powerpc)
9395            # see comment about AmigaOS4 .so support
9396            lt_prog_compiler_pic='-fPIC'
9397        ;;
9398      m68k)
9399            # FIXME: we need at least 68020 code to build shared libraries, but
9400            # adding the '-m68020' flag to GCC prevents building anything better,
9401            # like '-m68040'.
9402            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9403        ;;
9404      esac
9405      ;;
9406
9407    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9408      # PIC is the default for these OSes.
9409      ;;
9410
9411    mingw* | cygwin* | pw32* | os2* | cegcc*)
9412      # This hack is so that the source file can tell whether it is being
9413      # built for inclusion in a dll (and should export symbols for example).
9414      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9415      # (--disable-auto-import) libraries
9416      lt_prog_compiler_pic='-DDLL_EXPORT'
9417      case $host_os in
9418      os2*)
9419	lt_prog_compiler_static='$wl-static'
9420	;;
9421      esac
9422      ;;
9423
9424    darwin* | rhapsody*)
9425      # PIC is the default on this platform
9426      # Common symbols not allowed in MH_DYLIB files
9427      lt_prog_compiler_pic='-fno-common'
9428      ;;
9429
9430    haiku*)
9431      # PIC is the default for Haiku.
9432      # The "-static" flag exists, but is broken.
9433      lt_prog_compiler_static=
9434      ;;
9435
9436    hpux*)
9437      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9438      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9439      # sets the default TLS model and affects inlining.
9440      case $host_cpu in
9441      hppa*64*)
9442	# +Z the default
9443	;;
9444      *)
9445	lt_prog_compiler_pic='-fPIC'
9446	;;
9447      esac
9448      ;;
9449
9450    interix[3-9]*)
9451      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9452      # Instead, we relocate shared libraries at runtime.
9453      ;;
9454
9455    msdosdjgpp*)
9456      # Just because we use GCC doesn't mean we suddenly get shared libraries
9457      # on systems that don't support them.
9458      lt_prog_compiler_can_build_shared=no
9459      enable_shared=no
9460      ;;
9461
9462    *nto* | *qnx*)
9463      # QNX uses GNU C++, but need to define -shared option too, otherwise
9464      # it will coredump.
9465      lt_prog_compiler_pic='-fPIC -shared'
9466      ;;
9467
9468    sysv4*MP*)
9469      if test -d /usr/nec; then
9470	lt_prog_compiler_pic=-Kconform_pic
9471      fi
9472      ;;
9473
9474    *)
9475      lt_prog_compiler_pic='-fPIC'
9476      ;;
9477    esac
9478
9479    case $cc_basename in
9480    nvcc*) # Cuda Compiler Driver 2.2
9481      lt_prog_compiler_wl='-Xlinker '
9482      if test -n "$lt_prog_compiler_pic"; then
9483        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9484      fi
9485      ;;
9486    esac
9487  else
9488    # PORTME Check for flag to pass linker flags through the system compiler.
9489    case $host_os in
9490    aix*)
9491      lt_prog_compiler_wl='-Wl,'
9492      if test ia64 = "$host_cpu"; then
9493	# AIX 5 now supports IA64 processor
9494	lt_prog_compiler_static='-Bstatic'
9495      else
9496	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9497      fi
9498      ;;
9499
9500    darwin* | rhapsody*)
9501      # PIC is the default on this platform
9502      # Common symbols not allowed in MH_DYLIB files
9503      lt_prog_compiler_pic='-fno-common'
9504      case $cc_basename in
9505      nagfor*)
9506        # NAG Fortran compiler
9507        lt_prog_compiler_wl='-Wl,-Wl,,'
9508        lt_prog_compiler_pic='-PIC'
9509        lt_prog_compiler_static='-Bstatic'
9510        ;;
9511      esac
9512      ;;
9513
9514    mingw* | cygwin* | pw32* | os2* | cegcc*)
9515      # This hack is so that the source file can tell whether it is being
9516      # built for inclusion in a dll (and should export symbols for example).
9517      lt_prog_compiler_pic='-DDLL_EXPORT'
9518      case $host_os in
9519      os2*)
9520	lt_prog_compiler_static='$wl-static'
9521	;;
9522      esac
9523      ;;
9524
9525    hpux9* | hpux10* | hpux11*)
9526      lt_prog_compiler_wl='-Wl,'
9527      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9528      # not for PA HP-UX.
9529      case $host_cpu in
9530      hppa*64*|ia64*)
9531	# +Z the default
9532	;;
9533      *)
9534	lt_prog_compiler_pic='+Z'
9535	;;
9536      esac
9537      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9538      lt_prog_compiler_static='$wl-a ${wl}archive'
9539      ;;
9540
9541    irix5* | irix6* | nonstopux*)
9542      lt_prog_compiler_wl='-Wl,'
9543      # PIC (with -KPIC) is the default.
9544      lt_prog_compiler_static='-non_shared'
9545      ;;
9546
9547    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9548      case $cc_basename in
9549      # old Intel for x86_64, which still supported -KPIC.
9550      ecc*)
9551	lt_prog_compiler_wl='-Wl,'
9552	lt_prog_compiler_pic='-KPIC'
9553	lt_prog_compiler_static='-static'
9554        ;;
9555      # icc used to be incompatible with GCC.
9556      # ICC 10 doesn't accept -KPIC any more.
9557      icc* | ifort*)
9558	lt_prog_compiler_wl='-Wl,'
9559	lt_prog_compiler_pic='-fPIC'
9560	lt_prog_compiler_static='-static'
9561        ;;
9562      # Lahey Fortran 8.1.
9563      lf95*)
9564	lt_prog_compiler_wl='-Wl,'
9565	lt_prog_compiler_pic='--shared'
9566	lt_prog_compiler_static='--static'
9567	;;
9568      nagfor*)
9569	# NAG Fortran compiler
9570	lt_prog_compiler_wl='-Wl,-Wl,,'
9571	lt_prog_compiler_pic='-PIC'
9572	lt_prog_compiler_static='-Bstatic'
9573	;;
9574      tcc*)
9575	# Fabrice Bellard et al's Tiny C Compiler
9576	lt_prog_compiler_wl='-Wl,'
9577	lt_prog_compiler_pic='-fPIC'
9578	lt_prog_compiler_static='-static'
9579	;;
9580      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9581        # Portland Group compilers (*not* the Pentium gcc compiler,
9582	# which looks to be a dead project)
9583	lt_prog_compiler_wl='-Wl,'
9584	lt_prog_compiler_pic='-fpic'
9585	lt_prog_compiler_static='-Bstatic'
9586        ;;
9587      ccc*)
9588        lt_prog_compiler_wl='-Wl,'
9589        # All Alpha code is PIC.
9590        lt_prog_compiler_static='-non_shared'
9591        ;;
9592      xl* | bgxl* | bgf* | mpixl*)
9593	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9594	lt_prog_compiler_wl='-Wl,'
9595	lt_prog_compiler_pic='-qpic'
9596	lt_prog_compiler_static='-qstaticlink'
9597	;;
9598      *)
9599	case `$CC -V 2>&1 | sed 5q` in
9600	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9601	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9602	  lt_prog_compiler_pic='-KPIC'
9603	  lt_prog_compiler_static='-Bstatic'
9604	  lt_prog_compiler_wl=''
9605	  ;;
9606	*Sun\ F* | *Sun*Fortran*)
9607	  lt_prog_compiler_pic='-KPIC'
9608	  lt_prog_compiler_static='-Bstatic'
9609	  lt_prog_compiler_wl='-Qoption ld '
9610	  ;;
9611	*Sun\ C*)
9612	  # Sun C 5.9
9613	  lt_prog_compiler_pic='-KPIC'
9614	  lt_prog_compiler_static='-Bstatic'
9615	  lt_prog_compiler_wl='-Wl,'
9616	  ;;
9617        *Intel*\ [CF]*Compiler*)
9618	  lt_prog_compiler_wl='-Wl,'
9619	  lt_prog_compiler_pic='-fPIC'
9620	  lt_prog_compiler_static='-static'
9621	  ;;
9622	*Portland\ Group*)
9623	  lt_prog_compiler_wl='-Wl,'
9624	  lt_prog_compiler_pic='-fpic'
9625	  lt_prog_compiler_static='-Bstatic'
9626	  ;;
9627	esac
9628	;;
9629      esac
9630      ;;
9631
9632    newsos6)
9633      lt_prog_compiler_pic='-KPIC'
9634      lt_prog_compiler_static='-Bstatic'
9635      ;;
9636
9637    *nto* | *qnx*)
9638      # QNX uses GNU C++, but need to define -shared option too, otherwise
9639      # it will coredump.
9640      lt_prog_compiler_pic='-fPIC -shared'
9641      ;;
9642
9643    osf3* | osf4* | osf5*)
9644      lt_prog_compiler_wl='-Wl,'
9645      # All OSF/1 code is PIC.
9646      lt_prog_compiler_static='-non_shared'
9647      ;;
9648
9649    rdos*)
9650      lt_prog_compiler_static='-non_shared'
9651      ;;
9652
9653    solaris*)
9654      lt_prog_compiler_pic='-KPIC'
9655      lt_prog_compiler_static='-Bstatic'
9656      case $cc_basename in
9657      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9658	lt_prog_compiler_wl='-Qoption ld ';;
9659      *)
9660	lt_prog_compiler_wl='-Wl,';;
9661      esac
9662      ;;
9663
9664    sunos4*)
9665      lt_prog_compiler_wl='-Qoption ld '
9666      lt_prog_compiler_pic='-PIC'
9667      lt_prog_compiler_static='-Bstatic'
9668      ;;
9669
9670    sysv4 | sysv4.2uw2* | sysv4.3*)
9671      lt_prog_compiler_wl='-Wl,'
9672      lt_prog_compiler_pic='-KPIC'
9673      lt_prog_compiler_static='-Bstatic'
9674      ;;
9675
9676    sysv4*MP*)
9677      if test -d /usr/nec; then
9678	lt_prog_compiler_pic='-Kconform_pic'
9679	lt_prog_compiler_static='-Bstatic'
9680      fi
9681      ;;
9682
9683    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9684      lt_prog_compiler_wl='-Wl,'
9685      lt_prog_compiler_pic='-KPIC'
9686      lt_prog_compiler_static='-Bstatic'
9687      ;;
9688
9689    unicos*)
9690      lt_prog_compiler_wl='-Wl,'
9691      lt_prog_compiler_can_build_shared=no
9692      ;;
9693
9694    uts4*)
9695      lt_prog_compiler_pic='-pic'
9696      lt_prog_compiler_static='-Bstatic'
9697      ;;
9698
9699    *)
9700      lt_prog_compiler_can_build_shared=no
9701      ;;
9702    esac
9703  fi
9704
9705case $host_os in
9706  # For platforms that do not support PIC, -DPIC is meaningless:
9707  *djgpp*)
9708    lt_prog_compiler_pic=
9709    ;;
9710  *)
9711    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9712    ;;
9713esac
9714
9715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9716$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9717if ${lt_cv_prog_compiler_pic+:} false; then :
9718  $as_echo_n "(cached) " >&6
9719else
9720  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9721fi
9722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9723$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9724lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9725
9726#
9727# Check to make sure the PIC flag actually works.
9728#
9729if test -n "$lt_prog_compiler_pic"; then
9730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9731$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9732if ${lt_cv_prog_compiler_pic_works+:} false; then :
9733  $as_echo_n "(cached) " >&6
9734else
9735  lt_cv_prog_compiler_pic_works=no
9736   ac_outfile=conftest.$ac_objext
9737   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9738   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9739   # Insert the option either (1) after the last *FLAGS variable, or
9740   # (2) before a word containing "conftest.", or (3) at the end.
9741   # Note that $ac_compile itself does not contain backslashes and begins
9742   # with a dollar sign (not a hyphen), so the echo should work correctly.
9743   # The option is referenced via a variable to avoid confusing sed.
9744   lt_compile=`echo "$ac_compile" | $SED \
9745   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9746   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9747   -e 's:$: $lt_compiler_flag:'`
9748   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9749   (eval "$lt_compile" 2>conftest.err)
9750   ac_status=$?
9751   cat conftest.err >&5
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   if (exit $ac_status) && test -s "$ac_outfile"; then
9754     # The compiler can only warn and ignore the option if not recognized
9755     # So say no if there are warnings other than the usual output.
9756     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9757     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9758     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9759       lt_cv_prog_compiler_pic_works=yes
9760     fi
9761   fi
9762   $RM conftest*
9763
9764fi
9765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9766$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9767
9768if test yes = "$lt_cv_prog_compiler_pic_works"; then
9769    case $lt_prog_compiler_pic in
9770     "" | " "*) ;;
9771     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9772     esac
9773else
9774    lt_prog_compiler_pic=
9775     lt_prog_compiler_can_build_shared=no
9776fi
9777
9778fi
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790#
9791# Check to make sure the static flag actually works.
9792#
9793wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9795$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9796if ${lt_cv_prog_compiler_static_works+:} false; then :
9797  $as_echo_n "(cached) " >&6
9798else
9799  lt_cv_prog_compiler_static_works=no
9800   save_LDFLAGS=$LDFLAGS
9801   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9802   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9803   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9804     # The linker can only warn and ignore the option if not recognized
9805     # So say no if there are warnings
9806     if test -s conftest.err; then
9807       # Append any errors to the config.log.
9808       cat conftest.err 1>&5
9809       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9810       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9811       if diff conftest.exp conftest.er2 >/dev/null; then
9812         lt_cv_prog_compiler_static_works=yes
9813       fi
9814     else
9815       lt_cv_prog_compiler_static_works=yes
9816     fi
9817   fi
9818   $RM -r conftest*
9819   LDFLAGS=$save_LDFLAGS
9820
9821fi
9822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9823$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9824
9825if test yes = "$lt_cv_prog_compiler_static_works"; then
9826    :
9827else
9828    lt_prog_compiler_static=
9829fi
9830
9831
9832
9833
9834
9835
9836
9837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9838$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9839if ${lt_cv_prog_compiler_c_o+:} false; then :
9840  $as_echo_n "(cached) " >&6
9841else
9842  lt_cv_prog_compiler_c_o=no
9843   $RM -r conftest 2>/dev/null
9844   mkdir conftest
9845   cd conftest
9846   mkdir out
9847   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9848
9849   lt_compiler_flag="-o out/conftest2.$ac_objext"
9850   # Insert the option either (1) after the last *FLAGS variable, or
9851   # (2) before a word containing "conftest.", or (3) at the end.
9852   # Note that $ac_compile itself does not contain backslashes and begins
9853   # with a dollar sign (not a hyphen), so the echo should work correctly.
9854   lt_compile=`echo "$ac_compile" | $SED \
9855   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9856   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9857   -e 's:$: $lt_compiler_flag:'`
9858   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9859   (eval "$lt_compile" 2>out/conftest.err)
9860   ac_status=$?
9861   cat out/conftest.err >&5
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9864   then
9865     # The compiler can only warn and ignore the option if not recognized
9866     # So say no if there are warnings
9867     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9868     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9869     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9870       lt_cv_prog_compiler_c_o=yes
9871     fi
9872   fi
9873   chmod u+w . 2>&5
9874   $RM conftest*
9875   # SGI C++ compiler will create directory out/ii_files/ for
9876   # template instantiation
9877   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9878   $RM out/* && rmdir out
9879   cd ..
9880   $RM -r conftest
9881   $RM conftest*
9882
9883fi
9884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9885$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9886
9887
9888
9889
9890
9891
9892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9893$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9894if ${lt_cv_prog_compiler_c_o+:} false; then :
9895  $as_echo_n "(cached) " >&6
9896else
9897  lt_cv_prog_compiler_c_o=no
9898   $RM -r conftest 2>/dev/null
9899   mkdir conftest
9900   cd conftest
9901   mkdir out
9902   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9903
9904   lt_compiler_flag="-o out/conftest2.$ac_objext"
9905   # Insert the option either (1) after the last *FLAGS variable, or
9906   # (2) before a word containing "conftest.", or (3) at the end.
9907   # Note that $ac_compile itself does not contain backslashes and begins
9908   # with a dollar sign (not a hyphen), so the echo should work correctly.
9909   lt_compile=`echo "$ac_compile" | $SED \
9910   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9911   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9912   -e 's:$: $lt_compiler_flag:'`
9913   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9914   (eval "$lt_compile" 2>out/conftest.err)
9915   ac_status=$?
9916   cat out/conftest.err >&5
9917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9919   then
9920     # The compiler can only warn and ignore the option if not recognized
9921     # So say no if there are warnings
9922     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9923     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9924     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9925       lt_cv_prog_compiler_c_o=yes
9926     fi
9927   fi
9928   chmod u+w . 2>&5
9929   $RM conftest*
9930   # SGI C++ compiler will create directory out/ii_files/ for
9931   # template instantiation
9932   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9933   $RM out/* && rmdir out
9934   cd ..
9935   $RM -r conftest
9936   $RM conftest*
9937
9938fi
9939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9940$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9941
9942
9943
9944
9945hard_links=nottested
9946if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9947  # do not overwrite the value of need_locks provided by the user
9948  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9949$as_echo_n "checking if we can lock with hard links... " >&6; }
9950  hard_links=yes
9951  $RM conftest*
9952  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9953  touch conftest.a
9954  ln conftest.a conftest.b 2>&5 || hard_links=no
9955  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9957$as_echo "$hard_links" >&6; }
9958  if test no = "$hard_links"; then
9959    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9960$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9961    need_locks=warn
9962  fi
9963else
9964  need_locks=no
9965fi
9966
9967
9968
9969
9970
9971
9972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9973$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9974
9975  runpath_var=
9976  allow_undefined_flag=
9977  always_export_symbols=no
9978  archive_cmds=
9979  archive_expsym_cmds=
9980  compiler_needs_object=no
9981  enable_shared_with_static_runtimes=no
9982  export_dynamic_flag_spec=
9983  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9984  hardcode_automatic=no
9985  hardcode_direct=no
9986  hardcode_direct_absolute=no
9987  hardcode_libdir_flag_spec=
9988  hardcode_libdir_separator=
9989  hardcode_minus_L=no
9990  hardcode_shlibpath_var=unsupported
9991  inherit_rpath=no
9992  link_all_deplibs=unknown
9993  module_cmds=
9994  module_expsym_cmds=
9995  old_archive_from_new_cmds=
9996  old_archive_from_expsyms_cmds=
9997  thread_safe_flag_spec=
9998  whole_archive_flag_spec=
9999  # include_expsyms should be a list of space-separated symbols to be *always*
10000  # included in the symbol list
10001  include_expsyms=
10002  # exclude_expsyms can be an extended regexp of symbols to exclude
10003  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10004  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10005  # as well as any symbol that contains 'd'.
10006  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10007  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10008  # platforms (ab)use it in PIC code, but their linkers get confused if
10009  # the symbol is explicitly referenced.  Since portable code cannot
10010  # rely on this symbol name, it's probably fine to never include it in
10011  # preloaded symbol tables.
10012  # Exclude shared library initialization/finalization symbols.
10013  extract_expsyms_cmds=
10014
10015  case $host_os in
10016  cygwin* | mingw* | pw32* | cegcc*)
10017    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10018    # When not using gcc, we currently assume that we are using
10019    # Microsoft Visual C++.
10020    if test yes != "$GCC"; then
10021      with_gnu_ld=no
10022    fi
10023    ;;
10024  interix*)
10025    # we just hope/assume this is gcc and not c89 (= MSVC++)
10026    with_gnu_ld=yes
10027    ;;
10028  openbsd* | bitrig*)
10029    with_gnu_ld=no
10030    ;;
10031  esac
10032
10033  ld_shlibs=yes
10034
10035  # On some targets, GNU ld is compatible enough with the native linker
10036  # that we're better off using the native interface for both.
10037  lt_use_gnu_ld_interface=no
10038  if test yes = "$with_gnu_ld"; then
10039    case $host_os in
10040      aix*)
10041	# The AIX port of GNU ld has always aspired to compatibility
10042	# with the native linker.  However, as the warning in the GNU ld
10043	# block says, versions before 2.19.5* couldn't really create working
10044	# shared libraries, regardless of the interface used.
10045	case `$LD -v 2>&1` in
10046	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10047	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10048	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10049	  *)
10050	    lt_use_gnu_ld_interface=yes
10051	    ;;
10052	esac
10053	;;
10054      *)
10055	lt_use_gnu_ld_interface=yes
10056	;;
10057    esac
10058  fi
10059
10060  if test yes = "$lt_use_gnu_ld_interface"; then
10061    # If archive_cmds runs LD, not CC, wlarc should be empty
10062    wlarc='$wl'
10063
10064    # Set some defaults for GNU ld with shared library support. These
10065    # are reset later if shared libraries are not supported. Putting them
10066    # here allows them to be overridden if necessary.
10067    runpath_var=LD_RUN_PATH
10068    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10069    export_dynamic_flag_spec='$wl--export-dynamic'
10070    # ancient GNU ld didn't support --whole-archive et. al.
10071    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10072      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10073    else
10074      whole_archive_flag_spec=
10075    fi
10076    supports_anon_versioning=no
10077    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10078      *GNU\ gold*) supports_anon_versioning=yes ;;
10079      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10080      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10081      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10082      *\ 2.11.*) ;; # other 2.11 versions
10083      *) supports_anon_versioning=yes ;;
10084    esac
10085
10086    # See if GNU ld supports shared libraries.
10087    case $host_os in
10088    aix[3-9]*)
10089      # On AIX/PPC, the GNU linker is very broken
10090      if test ia64 != "$host_cpu"; then
10091	ld_shlibs=no
10092	cat <<_LT_EOF 1>&2
10093
10094*** Warning: the GNU linker, at least up to release 2.19, is reported
10095*** to be unable to reliably create shared libraries on AIX.
10096*** Therefore, libtool is disabling shared libraries support.  If you
10097*** really care for shared libraries, you may want to install binutils
10098*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10099*** You will then need to restart the configuration process.
10100
10101_LT_EOF
10102      fi
10103      ;;
10104
10105    amigaos*)
10106      case $host_cpu in
10107      powerpc)
10108            # see comment about AmigaOS4 .so support
10109            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10110            archive_expsym_cmds=''
10111        ;;
10112      m68k)
10113            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)'
10114            hardcode_libdir_flag_spec='-L$libdir'
10115            hardcode_minus_L=yes
10116        ;;
10117      esac
10118      ;;
10119
10120    beos*)
10121      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10122	allow_undefined_flag=unsupported
10123	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10124	# support --undefined.  This deserves some investigation.  FIXME
10125	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10126      else
10127	ld_shlibs=no
10128      fi
10129      ;;
10130
10131    cygwin* | mingw* | pw32* | cegcc*)
10132      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10133      # as there is no search path for DLLs.
10134      hardcode_libdir_flag_spec='-L$libdir'
10135      export_dynamic_flag_spec='$wl--export-all-symbols'
10136      allow_undefined_flag=unsupported
10137      always_export_symbols=no
10138      enable_shared_with_static_runtimes=yes
10139      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'
10140      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10141
10142      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10143        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10144	# If the export-symbols file already is a .def file, use it as
10145	# is; otherwise, prepend EXPORTS...
10146	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10147          cp $export_symbols $output_objdir/$soname.def;
10148        else
10149          echo EXPORTS > $output_objdir/$soname.def;
10150          cat $export_symbols >> $output_objdir/$soname.def;
10151        fi~
10152        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10153      else
10154	ld_shlibs=no
10155      fi
10156      ;;
10157
10158    haiku*)
10159      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10160      link_all_deplibs=yes
10161      ;;
10162
10163    os2*)
10164      hardcode_libdir_flag_spec='-L$libdir'
10165      hardcode_minus_L=yes
10166      allow_undefined_flag=unsupported
10167      shrext_cmds=.dll
10168      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10169	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10170	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10171	$ECHO EXPORTS >> $output_objdir/$libname.def~
10172	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10173	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10174	emximp -o $lib $output_objdir/$libname.def'
10175      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10176	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10177	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10178	$ECHO EXPORTS >> $output_objdir/$libname.def~
10179	prefix_cmds="$SED"~
10180	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10181	  prefix_cmds="$prefix_cmds -e 1d";
10182	fi~
10183	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10184	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10185	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10186	emximp -o $lib $output_objdir/$libname.def'
10187      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10188      enable_shared_with_static_runtimes=yes
10189      ;;
10190
10191    interix[3-9]*)
10192      hardcode_direct=no
10193      hardcode_shlibpath_var=no
10194      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10195      export_dynamic_flag_spec='$wl-E'
10196      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10197      # Instead, shared libraries are loaded at an image base (0x10000000 by
10198      # default) and relocated if they conflict, which is a slow very memory
10199      # consuming and fragmenting process.  To avoid this, we pick a random,
10200      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10201      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10202      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10203      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'
10204      ;;
10205
10206    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10207      tmp_diet=no
10208      if test linux-dietlibc = "$host_os"; then
10209	case $cc_basename in
10210	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10211	esac
10212      fi
10213      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10214	 && test no = "$tmp_diet"
10215      then
10216	tmp_addflag=' $pic_flag'
10217	tmp_sharedflag='-shared'
10218	case $cc_basename,$host_cpu in
10219        pgcc*)				# Portland Group C compiler
10220	  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'
10221	  tmp_addflag=' $pic_flag'
10222	  ;;
10223	pgf77* | pgf90* | pgf95* | pgfortran*)
10224					# Portland Group f77 and f90 compilers
10225	  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'
10226	  tmp_addflag=' $pic_flag -Mnomain' ;;
10227	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10228	  tmp_addflag=' -i_dynamic' ;;
10229	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10230	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10231	ifc* | ifort*)			# Intel Fortran compiler
10232	  tmp_addflag=' -nofor_main' ;;
10233	lf95*)				# Lahey Fortran 8.1
10234	  whole_archive_flag_spec=
10235	  tmp_sharedflag='--shared' ;;
10236        nagfor*)                        # NAGFOR 5.3
10237          tmp_sharedflag='-Wl,-shared' ;;
10238	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10239	  tmp_sharedflag='-qmkshrobj'
10240	  tmp_addflag= ;;
10241	nvcc*)	# Cuda Compiler Driver 2.2
10242	  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'
10243	  compiler_needs_object=yes
10244	  ;;
10245	esac
10246	case `$CC -V 2>&1 | sed 5q` in
10247	*Sun\ C*)			# Sun C 5.9
10248	  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'
10249	  compiler_needs_object=yes
10250	  tmp_sharedflag='-G' ;;
10251	*Sun\ F*)			# Sun Fortran 8.3
10252	  tmp_sharedflag='-G' ;;
10253	esac
10254	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10255
10256        if test yes = "$supports_anon_versioning"; then
10257          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10258            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10259            echo "local: *; };" >> $output_objdir/$libname.ver~
10260            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10261        fi
10262
10263	case $cc_basename in
10264	tcc*)
10265	  export_dynamic_flag_spec='-rdynamic'
10266	  ;;
10267	xlf* | bgf* | bgxlf* | mpixlf*)
10268	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10269	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10270	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10271	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10272	  if test yes = "$supports_anon_versioning"; then
10273	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10274              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10275              echo "local: *; };" >> $output_objdir/$libname.ver~
10276              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10277	  fi
10278	  ;;
10279	esac
10280      else
10281        ld_shlibs=no
10282      fi
10283      ;;
10284
10285    netbsd*)
10286      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10287	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10288	wlarc=
10289      else
10290	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10291	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10292      fi
10293      ;;
10294
10295    solaris*)
10296      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10297	ld_shlibs=no
10298	cat <<_LT_EOF 1>&2
10299
10300*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10301*** create shared libraries on Solaris systems.  Therefore, libtool
10302*** is disabling shared libraries support.  We urge you to upgrade GNU
10303*** binutils to release 2.9.1 or newer.  Another option is to modify
10304*** your PATH or compiler configuration so that the native linker is
10305*** used, and then restart.
10306
10307_LT_EOF
10308      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10309	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10310	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10311      else
10312	ld_shlibs=no
10313      fi
10314      ;;
10315
10316    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10317      case `$LD -v 2>&1` in
10318        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10319	ld_shlibs=no
10320	cat <<_LT_EOF 1>&2
10321
10322*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10323*** reliably create shared libraries on SCO systems.  Therefore, libtool
10324*** is disabling shared libraries support.  We urge you to upgrade GNU
10325*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10326*** your PATH or compiler configuration so that the native linker is
10327*** used, and then restart.
10328
10329_LT_EOF
10330	;;
10331	*)
10332	  # For security reasons, it is highly recommended that you always
10333	  # use absolute paths for naming shared libraries, and exclude the
10334	  # DT_RUNPATH tag from executables and libraries.  But doing so
10335	  # requires that you compile everything twice, which is a pain.
10336	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10337	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10338	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10339	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10340	  else
10341	    ld_shlibs=no
10342	  fi
10343	;;
10344      esac
10345      ;;
10346
10347    sunos4*)
10348      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10349      wlarc=
10350      hardcode_direct=yes
10351      hardcode_shlibpath_var=no
10352      ;;
10353
10354    *)
10355      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10356	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10357	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10358      else
10359	ld_shlibs=no
10360      fi
10361      ;;
10362    esac
10363
10364    if test no = "$ld_shlibs"; then
10365      runpath_var=
10366      hardcode_libdir_flag_spec=
10367      export_dynamic_flag_spec=
10368      whole_archive_flag_spec=
10369    fi
10370  else
10371    # PORTME fill in a description of your system's linker (not GNU ld)
10372    case $host_os in
10373    aix3*)
10374      allow_undefined_flag=unsupported
10375      always_export_symbols=yes
10376      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'
10377      # Note: this linker hardcodes the directories in LIBPATH if there
10378      # are no directories specified by -L.
10379      hardcode_minus_L=yes
10380      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10381	# Neither direct hardcoding nor static linking is supported with a
10382	# broken collect2.
10383	hardcode_direct=unsupported
10384      fi
10385      ;;
10386
10387    aix[4-9]*)
10388      if test ia64 = "$host_cpu"; then
10389	# On IA64, the linker does run time linking by default, so we don't
10390	# have to do anything special.
10391	aix_use_runtimelinking=no
10392	exp_sym_flag='-Bexport'
10393	no_entry_flag=
10394      else
10395	# If we're using GNU nm, then we don't want the "-C" option.
10396	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10397	# Without the "-l" option, or with the "-B" option, AIX nm treats
10398	# weak defined symbols like other global defined symbols, whereas
10399	# GNU nm marks them as "W".
10400	# While the 'weak' keyword is ignored in the Export File, we need
10401	# it in the Import File for the 'aix-soname' feature, so we have
10402	# to replace the "-B" option with "-P" for AIX nm.
10403	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10404	  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'
10405	else
10406	  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'
10407	fi
10408	aix_use_runtimelinking=no
10409
10410	# Test if we are trying to use run time linking or normal
10411	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10412	# have runtime linking enabled, and use it for executables.
10413	# For shared libraries, we enable/disable runtime linking
10414	# depending on the kind of the shared library created -
10415	# when "with_aix_soname,aix_use_runtimelinking" is:
10416	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10417	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10418	#            lib.a           static archive
10419	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10420	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10421	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10422	#            lib.a(lib.so.V) shared, rtl:no
10423	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10424	#            lib.a           static archive
10425	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10426	  for ld_flag in $LDFLAGS; do
10427	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10428	    aix_use_runtimelinking=yes
10429	    break
10430	  fi
10431	  done
10432	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10433	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10434	    # so we don't have lib.a shared libs to link our executables.
10435	    # We have to force runtime linking in this case.
10436	    aix_use_runtimelinking=yes
10437	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10438	  fi
10439	  ;;
10440	esac
10441
10442	exp_sym_flag='-bexport'
10443	no_entry_flag='-bnoentry'
10444      fi
10445
10446      # When large executables or shared objects are built, AIX ld can
10447      # have problems creating the table of contents.  If linking a library
10448      # or program results in "error TOC overflow" add -mminimal-toc to
10449      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10450      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10451
10452      archive_cmds=''
10453      hardcode_direct=yes
10454      hardcode_direct_absolute=yes
10455      hardcode_libdir_separator=':'
10456      link_all_deplibs=yes
10457      file_list_spec='$wl-f,'
10458      case $with_aix_soname,$aix_use_runtimelinking in
10459      aix,*) ;; # traditional, no import file
10460      svr4,* | *,yes) # use import file
10461	# The Import File defines what to hardcode.
10462	hardcode_direct=no
10463	hardcode_direct_absolute=no
10464	;;
10465      esac
10466
10467      if test yes = "$GCC"; then
10468	case $host_os in aix4.[012]|aix4.[012].*)
10469	# We only want to do this on AIX 4.2 and lower, the check
10470	# below for broken collect2 doesn't work under 4.3+
10471	  collect2name=`$CC -print-prog-name=collect2`
10472	  if test -f "$collect2name" &&
10473	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10474	  then
10475	  # We have reworked collect2
10476	  :
10477	  else
10478	  # We have old collect2
10479	  hardcode_direct=unsupported
10480	  # It fails to find uninstalled libraries when the uninstalled
10481	  # path is not listed in the libpath.  Setting hardcode_minus_L
10482	  # to unsupported forces relinking
10483	  hardcode_minus_L=yes
10484	  hardcode_libdir_flag_spec='-L$libdir'
10485	  hardcode_libdir_separator=
10486	  fi
10487	  ;;
10488	esac
10489	shared_flag='-shared'
10490	if test yes = "$aix_use_runtimelinking"; then
10491	  shared_flag="$shared_flag "'$wl-G'
10492	fi
10493	# Need to ensure runtime linking is disabled for the traditional
10494	# shared library, or the linker may eventually find shared libraries
10495	# /with/ Import File - we do not want to mix them.
10496	shared_flag_aix='-shared'
10497	shared_flag_svr4='-shared $wl-G'
10498      else
10499	# not using gcc
10500	if test ia64 = "$host_cpu"; then
10501	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10502	# chokes on -Wl,-G. The following line is correct:
10503	  shared_flag='-G'
10504	else
10505	  if test yes = "$aix_use_runtimelinking"; then
10506	    shared_flag='$wl-G'
10507	  else
10508	    shared_flag='$wl-bM:SRE'
10509	  fi
10510	  shared_flag_aix='$wl-bM:SRE'
10511	  shared_flag_svr4='$wl-G'
10512	fi
10513      fi
10514
10515      export_dynamic_flag_spec='$wl-bexpall'
10516      # It seems that -bexpall does not export symbols beginning with
10517      # underscore (_), so it is better to generate a list of symbols to export.
10518      always_export_symbols=yes
10519      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10520	# Warning - without using the other runtime loading flags (-brtl),
10521	# -berok will link without error, but may produce a broken library.
10522	allow_undefined_flag='-berok'
10523        # Determine the default libpath from the value encoded in an
10524        # empty executable.
10525        if test set = "${lt_cv_aix_libpath+set}"; then
10526  aix_libpath=$lt_cv_aix_libpath
10527else
10528  if ${lt_cv_aix_libpath_+:} false; then :
10529  $as_echo_n "(cached) " >&6
10530else
10531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532/* end confdefs.h.  */
10533
10534int
10535main ()
10536{
10537
10538  ;
10539  return 0;
10540}
10541_ACEOF
10542if ac_fn_c_try_link "$LINENO"; then :
10543
10544  lt_aix_libpath_sed='
10545      /Import File Strings/,/^$/ {
10546	  /^0/ {
10547	      s/^0  *\([^ ]*\) *$/\1/
10548	      p
10549	  }
10550      }'
10551  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10552  # Check for a 64-bit object if we didn't find anything.
10553  if test -z "$lt_cv_aix_libpath_"; then
10554    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10555  fi
10556fi
10557rm -f core conftest.err conftest.$ac_objext \
10558    conftest$ac_exeext conftest.$ac_ext
10559  if test -z "$lt_cv_aix_libpath_"; then
10560    lt_cv_aix_libpath_=/usr/lib:/lib
10561  fi
10562
10563fi
10564
10565  aix_libpath=$lt_cv_aix_libpath_
10566fi
10567
10568        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10569        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
10570      else
10571	if test ia64 = "$host_cpu"; then
10572	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10573	  allow_undefined_flag="-z nodefs"
10574	  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"
10575	else
10576	 # Determine the default libpath from the value encoded in an
10577	 # empty executable.
10578	 if test set = "${lt_cv_aix_libpath+set}"; then
10579  aix_libpath=$lt_cv_aix_libpath
10580else
10581  if ${lt_cv_aix_libpath_+:} false; then :
10582  $as_echo_n "(cached) " >&6
10583else
10584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585/* end confdefs.h.  */
10586
10587int
10588main ()
10589{
10590
10591  ;
10592  return 0;
10593}
10594_ACEOF
10595if ac_fn_c_try_link "$LINENO"; then :
10596
10597  lt_aix_libpath_sed='
10598      /Import File Strings/,/^$/ {
10599	  /^0/ {
10600	      s/^0  *\([^ ]*\) *$/\1/
10601	      p
10602	  }
10603      }'
10604  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10605  # Check for a 64-bit object if we didn't find anything.
10606  if test -z "$lt_cv_aix_libpath_"; then
10607    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10608  fi
10609fi
10610rm -f core conftest.err conftest.$ac_objext \
10611    conftest$ac_exeext conftest.$ac_ext
10612  if test -z "$lt_cv_aix_libpath_"; then
10613    lt_cv_aix_libpath_=/usr/lib:/lib
10614  fi
10615
10616fi
10617
10618  aix_libpath=$lt_cv_aix_libpath_
10619fi
10620
10621	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10622	  # Warning - without using the other run time loading flags,
10623	  # -berok will link without error, but may produce a broken library.
10624	  no_undefined_flag=' $wl-bernotok'
10625	  allow_undefined_flag=' $wl-berok'
10626	  if test yes = "$with_gnu_ld"; then
10627	    # We only use this code for GNU lds that support --whole-archive.
10628	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10629	  else
10630	    # Exported symbols can be pulled into shared objects from archives
10631	    whole_archive_flag_spec='$convenience'
10632	  fi
10633	  archive_cmds_need_lc=yes
10634	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10635	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10636	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10637	  if test svr4 != "$with_aix_soname"; then
10638	    # This is similar to how AIX traditionally builds its shared libraries.
10639	    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'
10640	  fi
10641	  if test aix != "$with_aix_soname"; then
10642	    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'
10643	  else
10644	    # used by -dlpreopen to get the symbols
10645	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10646	  fi
10647	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10648	fi
10649      fi
10650      ;;
10651
10652    amigaos*)
10653      case $host_cpu in
10654      powerpc)
10655            # see comment about AmigaOS4 .so support
10656            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10657            archive_expsym_cmds=''
10658        ;;
10659      m68k)
10660            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)'
10661            hardcode_libdir_flag_spec='-L$libdir'
10662            hardcode_minus_L=yes
10663        ;;
10664      esac
10665      ;;
10666
10667    bsdi[45]*)
10668      export_dynamic_flag_spec=-rdynamic
10669      ;;
10670
10671    cygwin* | mingw* | pw32* | cegcc*)
10672      # When not using gcc, we currently assume that we are using
10673      # Microsoft Visual C++.
10674      # hardcode_libdir_flag_spec is actually meaningless, as there is
10675      # no search path for DLLs.
10676      case $cc_basename in
10677      cl*)
10678	# Native MSVC
10679	hardcode_libdir_flag_spec=' '
10680	allow_undefined_flag=unsupported
10681	always_export_symbols=yes
10682	file_list_spec='@'
10683	# Tell ltmain to make .lib files, not .a files.
10684	libext=lib
10685	# Tell ltmain to make .dll files, not .so files.
10686	shrext_cmds=.dll
10687	# FIXME: Setting linknames here is a bad hack.
10688	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10689	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10690            cp "$export_symbols" "$output_objdir/$soname.def";
10691            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10692          else
10693            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10694          fi~
10695          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10696          linknames='
10697	# The linker will not automatically build a static lib if we build a DLL.
10698	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10699	enable_shared_with_static_runtimes=yes
10700	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10701	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10702	# Don't use ranlib
10703	old_postinstall_cmds='chmod 644 $oldlib'
10704	postlink_cmds='lt_outputfile="@OUTPUT@"~
10705          lt_tool_outputfile="@TOOL_OUTPUT@"~
10706          case $lt_outputfile in
10707            *.exe|*.EXE) ;;
10708            *)
10709              lt_outputfile=$lt_outputfile.exe
10710              lt_tool_outputfile=$lt_tool_outputfile.exe
10711              ;;
10712          esac~
10713          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10714            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10715            $RM "$lt_outputfile.manifest";
10716          fi'
10717	;;
10718      *)
10719	# Assume MSVC wrapper
10720	hardcode_libdir_flag_spec=' '
10721	allow_undefined_flag=unsupported
10722	# Tell ltmain to make .lib files, not .a files.
10723	libext=lib
10724	# Tell ltmain to make .dll files, not .so files.
10725	shrext_cmds=.dll
10726	# FIXME: Setting linknames here is a bad hack.
10727	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10728	# The linker will automatically build a .lib file if we build a DLL.
10729	old_archive_from_new_cmds='true'
10730	# FIXME: Should let the user specify the lib program.
10731	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10732	enable_shared_with_static_runtimes=yes
10733	;;
10734      esac
10735      ;;
10736
10737    darwin* | rhapsody*)
10738
10739
10740  archive_cmds_need_lc=no
10741  hardcode_direct=no
10742  hardcode_automatic=yes
10743  hardcode_shlibpath_var=unsupported
10744  if test yes = "$lt_cv_ld_force_load"; then
10745    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\"`'
10746
10747  else
10748    whole_archive_flag_spec=''
10749  fi
10750  link_all_deplibs=yes
10751  allow_undefined_flag=$_lt_dar_allow_undefined
10752  case $cc_basename in
10753     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10754     *) _lt_dar_can_shared=$GCC ;;
10755  esac
10756  if test yes = "$_lt_dar_can_shared"; then
10757    output_verbose_link_cmd=func_echo_all
10758    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10759    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10760    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"
10761    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"
10762
10763  else
10764  ld_shlibs=no
10765  fi
10766
10767      ;;
10768
10769    dgux*)
10770      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10771      hardcode_libdir_flag_spec='-L$libdir'
10772      hardcode_shlibpath_var=no
10773      ;;
10774
10775    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10776    # support.  Future versions do this automatically, but an explicit c++rt0.o
10777    # does not break anything, and helps significantly (at the cost of a little
10778    # extra space).
10779    freebsd2.2*)
10780      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10781      hardcode_libdir_flag_spec='-R$libdir'
10782      hardcode_direct=yes
10783      hardcode_shlibpath_var=no
10784      ;;
10785
10786    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10787    freebsd2.*)
10788      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10789      hardcode_direct=yes
10790      hardcode_minus_L=yes
10791      hardcode_shlibpath_var=no
10792      ;;
10793
10794    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10795    freebsd* | dragonfly*)
10796      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10797      hardcode_libdir_flag_spec='-R$libdir'
10798      hardcode_direct=yes
10799      hardcode_shlibpath_var=no
10800      ;;
10801
10802    hpux9*)
10803      if test yes = "$GCC"; then
10804	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'
10805      else
10806	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'
10807      fi
10808      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10809      hardcode_libdir_separator=:
10810      hardcode_direct=yes
10811
10812      # hardcode_minus_L: Not really in the search PATH,
10813      # but as the default location of the library.
10814      hardcode_minus_L=yes
10815      export_dynamic_flag_spec='$wl-E'
10816      ;;
10817
10818    hpux10*)
10819      if test yes,no = "$GCC,$with_gnu_ld"; then
10820	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10821      else
10822	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10823      fi
10824      if test no = "$with_gnu_ld"; then
10825	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10826	hardcode_libdir_separator=:
10827	hardcode_direct=yes
10828	hardcode_direct_absolute=yes
10829	export_dynamic_flag_spec='$wl-E'
10830	# hardcode_minus_L: Not really in the search PATH,
10831	# but as the default location of the library.
10832	hardcode_minus_L=yes
10833      fi
10834      ;;
10835
10836    hpux11*)
10837      if test yes,no = "$GCC,$with_gnu_ld"; then
10838	case $host_cpu in
10839	hppa*64*)
10840	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10841	  ;;
10842	ia64*)
10843	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10844	  ;;
10845	*)
10846	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10847	  ;;
10848	esac
10849      else
10850	case $host_cpu in
10851	hppa*64*)
10852	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10853	  ;;
10854	ia64*)
10855	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10856	  ;;
10857	*)
10858
10859	  # Older versions of the 11.00 compiler do not understand -b yet
10860	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10861	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10862$as_echo_n "checking if $CC understands -b... " >&6; }
10863if ${lt_cv_prog_compiler__b+:} false; then :
10864  $as_echo_n "(cached) " >&6
10865else
10866  lt_cv_prog_compiler__b=no
10867   save_LDFLAGS=$LDFLAGS
10868   LDFLAGS="$LDFLAGS -b"
10869   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10870   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10871     # The linker can only warn and ignore the option if not recognized
10872     # So say no if there are warnings
10873     if test -s conftest.err; then
10874       # Append any errors to the config.log.
10875       cat conftest.err 1>&5
10876       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10877       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10878       if diff conftest.exp conftest.er2 >/dev/null; then
10879         lt_cv_prog_compiler__b=yes
10880       fi
10881     else
10882       lt_cv_prog_compiler__b=yes
10883     fi
10884   fi
10885   $RM -r conftest*
10886   LDFLAGS=$save_LDFLAGS
10887
10888fi
10889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10890$as_echo "$lt_cv_prog_compiler__b" >&6; }
10891
10892if test yes = "$lt_cv_prog_compiler__b"; then
10893    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10894else
10895    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10896fi
10897
10898	  ;;
10899	esac
10900      fi
10901      if test no = "$with_gnu_ld"; then
10902	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10903	hardcode_libdir_separator=:
10904
10905	case $host_cpu in
10906	hppa*64*|ia64*)
10907	  hardcode_direct=no
10908	  hardcode_shlibpath_var=no
10909	  ;;
10910	*)
10911	  hardcode_direct=yes
10912	  hardcode_direct_absolute=yes
10913	  export_dynamic_flag_spec='$wl-E'
10914
10915	  # hardcode_minus_L: Not really in the search PATH,
10916	  # but as the default location of the library.
10917	  hardcode_minus_L=yes
10918	  ;;
10919	esac
10920      fi
10921      ;;
10922
10923    irix5* | irix6* | nonstopux*)
10924      if test yes = "$GCC"; then
10925	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'
10926	# Try to use the -exported_symbol ld option, if it does not
10927	# work, assume that -exports_file does not work either and
10928	# implicitly export all symbols.
10929	# This should be the same for all languages, so no per-tag cache variable.
10930	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10931$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10932if ${lt_cv_irix_exported_symbol+:} false; then :
10933  $as_echo_n "(cached) " >&6
10934else
10935  save_LDFLAGS=$LDFLAGS
10936	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10937	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10938/* end confdefs.h.  */
10939int foo (void) { return 0; }
10940_ACEOF
10941if ac_fn_c_try_link "$LINENO"; then :
10942  lt_cv_irix_exported_symbol=yes
10943else
10944  lt_cv_irix_exported_symbol=no
10945fi
10946rm -f core conftest.err conftest.$ac_objext \
10947    conftest$ac_exeext conftest.$ac_ext
10948           LDFLAGS=$save_LDFLAGS
10949fi
10950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10951$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10952	if test yes = "$lt_cv_irix_exported_symbol"; then
10953          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'
10954	fi
10955      else
10956	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'
10957	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'
10958      fi
10959      archive_cmds_need_lc='no'
10960      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10961      hardcode_libdir_separator=:
10962      inherit_rpath=yes
10963      link_all_deplibs=yes
10964      ;;
10965
10966    linux*)
10967      case $cc_basename in
10968      tcc*)
10969	# Fabrice Bellard et al's Tiny C Compiler
10970	ld_shlibs=yes
10971	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10972	;;
10973      esac
10974      ;;
10975
10976    netbsd*)
10977      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10978	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10979      else
10980	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10981      fi
10982      hardcode_libdir_flag_spec='-R$libdir'
10983      hardcode_direct=yes
10984      hardcode_shlibpath_var=no
10985      ;;
10986
10987    newsos6)
10988      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10989      hardcode_direct=yes
10990      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10991      hardcode_libdir_separator=:
10992      hardcode_shlibpath_var=no
10993      ;;
10994
10995    *nto* | *qnx*)
10996      ;;
10997
10998    openbsd* | bitrig*)
10999      if test -f /usr/libexec/ld.so; then
11000	hardcode_direct=yes
11001	hardcode_shlibpath_var=no
11002	hardcode_direct_absolute=yes
11003	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11004	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11005	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11006	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11007	  export_dynamic_flag_spec='$wl-E'
11008	else
11009	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11010	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11011	fi
11012      else
11013	ld_shlibs=no
11014      fi
11015      ;;
11016
11017    os2*)
11018      hardcode_libdir_flag_spec='-L$libdir'
11019      hardcode_minus_L=yes
11020      allow_undefined_flag=unsupported
11021      shrext_cmds=.dll
11022      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11023	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11024	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11025	$ECHO EXPORTS >> $output_objdir/$libname.def~
11026	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11027	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11028	emximp -o $lib $output_objdir/$libname.def'
11029      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11030	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11031	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11032	$ECHO EXPORTS >> $output_objdir/$libname.def~
11033	prefix_cmds="$SED"~
11034	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11035	  prefix_cmds="$prefix_cmds -e 1d";
11036	fi~
11037	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11038	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11039	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11040	emximp -o $lib $output_objdir/$libname.def'
11041      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11042      enable_shared_with_static_runtimes=yes
11043      ;;
11044
11045    osf3*)
11046      if test yes = "$GCC"; then
11047	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11048	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'
11049      else
11050	allow_undefined_flag=' -expect_unresolved \*'
11051	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'
11052      fi
11053      archive_cmds_need_lc='no'
11054      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11055      hardcode_libdir_separator=:
11056      ;;
11057
11058    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11059      if test yes = "$GCC"; then
11060	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11061	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'
11062	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11063      else
11064	allow_undefined_flag=' -expect_unresolved \*'
11065	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'
11066	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~
11067          $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'
11068
11069	# Both c and cxx compiler support -rpath directly
11070	hardcode_libdir_flag_spec='-rpath $libdir'
11071      fi
11072      archive_cmds_need_lc='no'
11073      hardcode_libdir_separator=:
11074      ;;
11075
11076    solaris*)
11077      no_undefined_flag=' -z defs'
11078      if test yes = "$GCC"; then
11079	wlarc='$wl'
11080	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11081	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11082          $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'
11083      else
11084	case `$CC -V 2>&1` in
11085	*"Compilers 5.0"*)
11086	  wlarc=''
11087	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11088	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11089            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11090	  ;;
11091	*)
11092	  wlarc='$wl'
11093	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11094	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11095            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11096	  ;;
11097	esac
11098      fi
11099      hardcode_libdir_flag_spec='-R$libdir'
11100      hardcode_shlibpath_var=no
11101      case $host_os in
11102      solaris2.[0-5] | solaris2.[0-5].*) ;;
11103      *)
11104	# The compiler driver will combine and reorder linker options,
11105	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11106	# but is careful enough not to reorder.
11107	# Supported since Solaris 2.6 (maybe 2.5.1?)
11108	if test yes = "$GCC"; then
11109	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11110	else
11111	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11112	fi
11113	;;
11114      esac
11115      link_all_deplibs=yes
11116      ;;
11117
11118    sunos4*)
11119      if test sequent = "$host_vendor"; then
11120	# Use $CC to link under sequent, because it throws in some extra .o
11121	# files that make .init and .fini sections work.
11122	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11123      else
11124	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11125      fi
11126      hardcode_libdir_flag_spec='-L$libdir'
11127      hardcode_direct=yes
11128      hardcode_minus_L=yes
11129      hardcode_shlibpath_var=no
11130      ;;
11131
11132    sysv4)
11133      case $host_vendor in
11134	sni)
11135	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11136	  hardcode_direct=yes # is this really true???
11137	;;
11138	siemens)
11139	  ## LD is ld it makes a PLAMLIB
11140	  ## CC just makes a GrossModule.
11141	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11142	  reload_cmds='$CC -r -o $output$reload_objs'
11143	  hardcode_direct=no
11144        ;;
11145	motorola)
11146	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11147	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11148	;;
11149      esac
11150      runpath_var='LD_RUN_PATH'
11151      hardcode_shlibpath_var=no
11152      ;;
11153
11154    sysv4.3*)
11155      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11156      hardcode_shlibpath_var=no
11157      export_dynamic_flag_spec='-Bexport'
11158      ;;
11159
11160    sysv4*MP*)
11161      if test -d /usr/nec; then
11162	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11163	hardcode_shlibpath_var=no
11164	runpath_var=LD_RUN_PATH
11165	hardcode_runpath_var=yes
11166	ld_shlibs=yes
11167      fi
11168      ;;
11169
11170    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11171      no_undefined_flag='$wl-z,text'
11172      archive_cmds_need_lc=no
11173      hardcode_shlibpath_var=no
11174      runpath_var='LD_RUN_PATH'
11175
11176      if test yes = "$GCC"; then
11177	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11178	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11179      else
11180	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11181	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11182      fi
11183      ;;
11184
11185    sysv5* | sco3.2v5* | sco5v6*)
11186      # Note: We CANNOT use -z defs as we might desire, because we do not
11187      # link with -lc, and that would cause any symbols used from libc to
11188      # always be unresolved, which means just about no library would
11189      # ever link correctly.  If we're not using GNU ld we use -z text
11190      # though, which does catch some bad symbols but isn't as heavy-handed
11191      # as -z defs.
11192      no_undefined_flag='$wl-z,text'
11193      allow_undefined_flag='$wl-z,nodefs'
11194      archive_cmds_need_lc=no
11195      hardcode_shlibpath_var=no
11196      hardcode_libdir_flag_spec='$wl-R,$libdir'
11197      hardcode_libdir_separator=':'
11198      link_all_deplibs=yes
11199      export_dynamic_flag_spec='$wl-Bexport'
11200      runpath_var='LD_RUN_PATH'
11201
11202      if test yes = "$GCC"; then
11203	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11204	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11205      else
11206	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11207	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11208      fi
11209      ;;
11210
11211    uts4*)
11212      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11213      hardcode_libdir_flag_spec='-L$libdir'
11214      hardcode_shlibpath_var=no
11215      ;;
11216
11217    *)
11218      ld_shlibs=no
11219      ;;
11220    esac
11221
11222    if test sni = "$host_vendor"; then
11223      case $host in
11224      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11225	export_dynamic_flag_spec='$wl-Blargedynsym'
11226	;;
11227      esac
11228    fi
11229  fi
11230
11231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11232$as_echo "$ld_shlibs" >&6; }
11233test no = "$ld_shlibs" && can_build_shared=no
11234
11235with_gnu_ld=$with_gnu_ld
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251#
11252# Do we need to explicitly link libc?
11253#
11254case "x$archive_cmds_need_lc" in
11255x|xyes)
11256  # Assume -lc should be added
11257  archive_cmds_need_lc=yes
11258
11259  if test yes,yes = "$GCC,$enable_shared"; then
11260    case $archive_cmds in
11261    *'~'*)
11262      # FIXME: we may have to deal with multi-command sequences.
11263      ;;
11264    '$CC '*)
11265      # Test whether the compiler implicitly links with -lc since on some
11266      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11267      # to ld, don't add -lc before -lgcc.
11268      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11269$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11270if ${lt_cv_archive_cmds_need_lc+:} false; then :
11271  $as_echo_n "(cached) " >&6
11272else
11273  $RM conftest*
11274	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11275
11276	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11277  (eval $ac_compile) 2>&5
11278  ac_status=$?
11279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11280  test $ac_status = 0; } 2>conftest.err; then
11281	  soname=conftest
11282	  lib=conftest
11283	  libobjs=conftest.$ac_objext
11284	  deplibs=
11285	  wl=$lt_prog_compiler_wl
11286	  pic_flag=$lt_prog_compiler_pic
11287	  compiler_flags=-v
11288	  linker_flags=-v
11289	  verstring=
11290	  output_objdir=.
11291	  libname=conftest
11292	  lt_save_allow_undefined_flag=$allow_undefined_flag
11293	  allow_undefined_flag=
11294	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11295  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11296  ac_status=$?
11297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11298  test $ac_status = 0; }
11299	  then
11300	    lt_cv_archive_cmds_need_lc=no
11301	  else
11302	    lt_cv_archive_cmds_need_lc=yes
11303	  fi
11304	  allow_undefined_flag=$lt_save_allow_undefined_flag
11305	else
11306	  cat conftest.err 1>&5
11307	fi
11308	$RM conftest*
11309
11310fi
11311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11312$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11313      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11314      ;;
11315    esac
11316  fi
11317  ;;
11318esac
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11472$as_echo_n "checking dynamic linker characteristics... " >&6; }
11473
11474if test yes = "$GCC"; then
11475  case $host_os in
11476    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11477    *) lt_awk_arg='/^libraries:/' ;;
11478  esac
11479  case $host_os in
11480    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11481    *) lt_sed_strip_eq='s|=/|/|g' ;;
11482  esac
11483  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11484  case $lt_search_path_spec in
11485  *\;*)
11486    # if the path contains ";" then we assume it to be the separator
11487    # otherwise default to the standard path separator (i.e. ":") - it is
11488    # assumed that no part of a normal pathname contains ";" but that should
11489    # okay in the real world where ";" in dirpaths is itself problematic.
11490    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11491    ;;
11492  *)
11493    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11494    ;;
11495  esac
11496  # Ok, now we have the path, separated by spaces, we can step through it
11497  # and add multilib dir if necessary...
11498  lt_tmp_lt_search_path_spec=
11499  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11500  # ...but if some path component already ends with the multilib dir we assume
11501  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11502  case "$lt_multi_os_dir; $lt_search_path_spec " in
11503  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11504    lt_multi_os_dir=
11505    ;;
11506  esac
11507  for lt_sys_path in $lt_search_path_spec; do
11508    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11509      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11510    elif test -n "$lt_multi_os_dir"; then
11511      test -d "$lt_sys_path" && \
11512	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11513    fi
11514  done
11515  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11516BEGIN {RS = " "; FS = "/|\n";} {
11517  lt_foo = "";
11518  lt_count = 0;
11519  for (lt_i = NF; lt_i > 0; lt_i--) {
11520    if ($lt_i != "" && $lt_i != ".") {
11521      if ($lt_i == "..") {
11522        lt_count++;
11523      } else {
11524        if (lt_count == 0) {
11525          lt_foo = "/" $lt_i lt_foo;
11526        } else {
11527          lt_count--;
11528        }
11529      }
11530    }
11531  }
11532  if (lt_foo != "") { lt_freq[lt_foo]++; }
11533  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11534}'`
11535  # AWK program above erroneously prepends '/' to C:/dos/paths
11536  # for these hosts.
11537  case $host_os in
11538    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11539      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11540  esac
11541  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11542else
11543  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11544fi
11545library_names_spec=
11546libname_spec='lib$name'
11547soname_spec=
11548shrext_cmds=.so
11549postinstall_cmds=
11550postuninstall_cmds=
11551finish_cmds=
11552finish_eval=
11553shlibpath_var=
11554shlibpath_overrides_runpath=unknown
11555version_type=none
11556dynamic_linker="$host_os ld.so"
11557sys_lib_dlsearch_path_spec="/lib /usr/lib"
11558need_lib_prefix=unknown
11559hardcode_into_libs=no
11560
11561# when you set need_version to no, make sure it does not cause -set_version
11562# flags to be left without arguments
11563need_version=unknown
11564
11565
11566
11567case $host_os in
11568aix3*)
11569  version_type=linux # correct to gnu/linux during the next big refactor
11570  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11571  shlibpath_var=LIBPATH
11572
11573  # AIX 3 has no versioning support, so we append a major version to the name.
11574  soname_spec='$libname$release$shared_ext$major'
11575  ;;
11576
11577aix[4-9]*)
11578  version_type=linux # correct to gnu/linux during the next big refactor
11579  need_lib_prefix=no
11580  need_version=no
11581  hardcode_into_libs=yes
11582  if test ia64 = "$host_cpu"; then
11583    # AIX 5 supports IA64
11584    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11585    shlibpath_var=LD_LIBRARY_PATH
11586  else
11587    # With GCC up to 2.95.x, collect2 would create an import file
11588    # for dependence libraries.  The import file would start with
11589    # the line '#! .'.  This would cause the generated library to
11590    # depend on '.', always an invalid library.  This was fixed in
11591    # development snapshots of GCC prior to 3.0.
11592    case $host_os in
11593      aix4 | aix4.[01] | aix4.[01].*)
11594      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11595	   echo ' yes '
11596	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11597	:
11598      else
11599	can_build_shared=no
11600      fi
11601      ;;
11602    esac
11603    # Using Import Files as archive members, it is possible to support
11604    # filename-based versioning of shared library archives on AIX. While
11605    # this would work for both with and without runtime linking, it will
11606    # prevent static linking of such archives. So we do filename-based
11607    # shared library versioning with .so extension only, which is used
11608    # when both runtime linking and shared linking is enabled.
11609    # Unfortunately, runtime linking may impact performance, so we do
11610    # not want this to be the default eventually. Also, we use the
11611    # versioned .so libs for executables only if there is the -brtl
11612    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11613    # To allow for filename-based versioning support, we need to create
11614    # libNAME.so.V as an archive file, containing:
11615    # *) an Import File, referring to the versioned filename of the
11616    #    archive as well as the shared archive member, telling the
11617    #    bitwidth (32 or 64) of that shared object, and providing the
11618    #    list of exported symbols of that shared object, eventually
11619    #    decorated with the 'weak' keyword
11620    # *) the shared object with the F_LOADONLY flag set, to really avoid
11621    #    it being seen by the linker.
11622    # At run time we better use the real file rather than another symlink,
11623    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11624
11625    case $with_aix_soname,$aix_use_runtimelinking in
11626    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11627    # soname into executable. Probably we can add versioning support to
11628    # collect2, so additional links can be useful in future.
11629    aix,yes) # traditional libtool
11630      dynamic_linker='AIX unversionable lib.so'
11631      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11632      # instead of lib<name>.a to let people know that these are not
11633      # typical AIX shared libraries.
11634      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11635      ;;
11636    aix,no) # traditional AIX only
11637      dynamic_linker='AIX lib.a(lib.so.V)'
11638      # We preserve .a as extension for shared libraries through AIX4.2
11639      # and later when we are not doing run time linking.
11640      library_names_spec='$libname$release.a $libname.a'
11641      soname_spec='$libname$release$shared_ext$major'
11642      ;;
11643    svr4,*) # full svr4 only
11644      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11645      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11646      # We do not specify a path in Import Files, so LIBPATH fires.
11647      shlibpath_overrides_runpath=yes
11648      ;;
11649    *,yes) # both, prefer svr4
11650      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11651      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11652      # unpreferred sharedlib libNAME.a needs extra handling
11653      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"'
11654      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"'
11655      # We do not specify a path in Import Files, so LIBPATH fires.
11656      shlibpath_overrides_runpath=yes
11657      ;;
11658    *,no) # both, prefer aix
11659      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11660      library_names_spec='$libname$release.a $libname.a'
11661      soname_spec='$libname$release$shared_ext$major'
11662      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11663      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)'
11664      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"'
11665      ;;
11666    esac
11667    shlibpath_var=LIBPATH
11668  fi
11669  ;;
11670
11671amigaos*)
11672  case $host_cpu in
11673  powerpc)
11674    # Since July 2007 AmigaOS4 officially supports .so libraries.
11675    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11676    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11677    ;;
11678  m68k)
11679    library_names_spec='$libname.ixlibrary $libname.a'
11680    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11681    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'
11682    ;;
11683  esac
11684  ;;
11685
11686beos*)
11687  library_names_spec='$libname$shared_ext'
11688  dynamic_linker="$host_os ld.so"
11689  shlibpath_var=LIBRARY_PATH
11690  ;;
11691
11692bsdi[45]*)
11693  version_type=linux # correct to gnu/linux during the next big refactor
11694  need_version=no
11695  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11696  soname_spec='$libname$release$shared_ext$major'
11697  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11698  shlibpath_var=LD_LIBRARY_PATH
11699  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11700  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11701  # the default ld.so.conf also contains /usr/contrib/lib and
11702  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11703  # libtool to hard-code these into programs
11704  ;;
11705
11706cygwin* | mingw* | pw32* | cegcc*)
11707  version_type=windows
11708  shrext_cmds=.dll
11709  need_version=no
11710  need_lib_prefix=no
11711
11712  case $GCC,$cc_basename in
11713  yes,*)
11714    # gcc
11715    library_names_spec='$libname.dll.a'
11716    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11717    postinstall_cmds='base_file=`basename \$file`~
11718      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11719      dldir=$destdir/`dirname \$dlpath`~
11720      test -d \$dldir || mkdir -p \$dldir~
11721      $install_prog $dir/$dlname \$dldir/$dlname~
11722      chmod a+x \$dldir/$dlname~
11723      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11724        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11725      fi'
11726    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11727      dlpath=$dir/\$dldll~
11728       $RM \$dlpath'
11729    shlibpath_overrides_runpath=yes
11730
11731    case $host_os in
11732    cygwin*)
11733      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11734      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11735
11736      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11737      ;;
11738    mingw* | cegcc*)
11739      # MinGW DLLs use traditional 'lib' prefix
11740      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11741      ;;
11742    pw32*)
11743      # pw32 DLLs use 'pw' prefix rather than 'lib'
11744      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11745      ;;
11746    esac
11747    dynamic_linker='Win32 ld.exe'
11748    ;;
11749
11750  *,cl*)
11751    # Native MSVC
11752    libname_spec='$name'
11753    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11754    library_names_spec='$libname.dll.lib'
11755
11756    case $build_os in
11757    mingw*)
11758      sys_lib_search_path_spec=
11759      lt_save_ifs=$IFS
11760      IFS=';'
11761      for lt_path in $LIB
11762      do
11763        IFS=$lt_save_ifs
11764        # Let DOS variable expansion print the short 8.3 style file name.
11765        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11766        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11767      done
11768      IFS=$lt_save_ifs
11769      # Convert to MSYS style.
11770      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11771      ;;
11772    cygwin*)
11773      # Convert to unix form, then to dos form, then back to unix form
11774      # but this time dos style (no spaces!) so that the unix form looks
11775      # like /cygdrive/c/PROGRA~1:/cygdr...
11776      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11777      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11778      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11779      ;;
11780    *)
11781      sys_lib_search_path_spec=$LIB
11782      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11783        # It is most probably a Windows format PATH.
11784        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11785      else
11786        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11787      fi
11788      # FIXME: find the short name or the path components, as spaces are
11789      # common. (e.g. "Program Files" -> "PROGRA~1")
11790      ;;
11791    esac
11792
11793    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11794    postinstall_cmds='base_file=`basename \$file`~
11795      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11796      dldir=$destdir/`dirname \$dlpath`~
11797      test -d \$dldir || mkdir -p \$dldir~
11798      $install_prog $dir/$dlname \$dldir/$dlname'
11799    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11800      dlpath=$dir/\$dldll~
11801       $RM \$dlpath'
11802    shlibpath_overrides_runpath=yes
11803    dynamic_linker='Win32 link.exe'
11804    ;;
11805
11806  *)
11807    # Assume MSVC wrapper
11808    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11809    dynamic_linker='Win32 ld.exe'
11810    ;;
11811  esac
11812  # FIXME: first we should search . and the directory the executable is in
11813  shlibpath_var=PATH
11814  ;;
11815
11816darwin* | rhapsody*)
11817  dynamic_linker="$host_os dyld"
11818  version_type=darwin
11819  need_lib_prefix=no
11820  need_version=no
11821  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11822  soname_spec='$libname$release$major$shared_ext'
11823  shlibpath_overrides_runpath=yes
11824  shlibpath_var=DYLD_LIBRARY_PATH
11825  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11826
11827  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11828  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11829  ;;
11830
11831dgux*)
11832  version_type=linux # correct to gnu/linux during the next big refactor
11833  need_lib_prefix=no
11834  need_version=no
11835  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11836  soname_spec='$libname$release$shared_ext$major'
11837  shlibpath_var=LD_LIBRARY_PATH
11838  ;;
11839
11840freebsd* | dragonfly*)
11841  # DragonFly does not have aout.  When/if they implement a new
11842  # versioning mechanism, adjust this.
11843  if test -x /usr/bin/objformat; then
11844    objformat=`/usr/bin/objformat`
11845  else
11846    case $host_os in
11847    freebsd[23].*) objformat=aout ;;
11848    *) objformat=elf ;;
11849    esac
11850  fi
11851  version_type=freebsd-$objformat
11852  case $version_type in
11853    freebsd-elf*)
11854      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11855      soname_spec='$libname$release$shared_ext$major'
11856      need_version=no
11857      need_lib_prefix=no
11858      ;;
11859    freebsd-*)
11860      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11861      need_version=yes
11862      ;;
11863  esac
11864  shlibpath_var=LD_LIBRARY_PATH
11865  case $host_os in
11866  freebsd2.*)
11867    shlibpath_overrides_runpath=yes
11868    ;;
11869  freebsd3.[01]* | freebsdelf3.[01]*)
11870    shlibpath_overrides_runpath=yes
11871    hardcode_into_libs=yes
11872    ;;
11873  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11874  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11875    shlibpath_overrides_runpath=no
11876    hardcode_into_libs=yes
11877    ;;
11878  *) # from 4.6 on, and DragonFly
11879    shlibpath_overrides_runpath=yes
11880    hardcode_into_libs=yes
11881    ;;
11882  esac
11883  ;;
11884
11885haiku*)
11886  version_type=linux # correct to gnu/linux during the next big refactor
11887  need_lib_prefix=no
11888  need_version=no
11889  dynamic_linker="$host_os runtime_loader"
11890  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11891  soname_spec='$libname$release$shared_ext$major'
11892  shlibpath_var=LIBRARY_PATH
11893  shlibpath_overrides_runpath=no
11894  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11895  hardcode_into_libs=yes
11896  ;;
11897
11898hpux9* | hpux10* | hpux11*)
11899  # Give a soname corresponding to the major version so that dld.sl refuses to
11900  # link against other versions.
11901  version_type=sunos
11902  need_lib_prefix=no
11903  need_version=no
11904  case $host_cpu in
11905  ia64*)
11906    shrext_cmds='.so'
11907    hardcode_into_libs=yes
11908    dynamic_linker="$host_os dld.so"
11909    shlibpath_var=LD_LIBRARY_PATH
11910    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11911    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11912    soname_spec='$libname$release$shared_ext$major'
11913    if test 32 = "$HPUX_IA64_MODE"; then
11914      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11915      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11916    else
11917      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11918      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11919    fi
11920    ;;
11921  hppa*64*)
11922    shrext_cmds='.sl'
11923    hardcode_into_libs=yes
11924    dynamic_linker="$host_os dld.sl"
11925    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11926    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11927    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11928    soname_spec='$libname$release$shared_ext$major'
11929    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11930    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11931    ;;
11932  *)
11933    shrext_cmds='.sl'
11934    dynamic_linker="$host_os dld.sl"
11935    shlibpath_var=SHLIB_PATH
11936    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11937    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11938    soname_spec='$libname$release$shared_ext$major'
11939    ;;
11940  esac
11941  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11942  postinstall_cmds='chmod 555 $lib'
11943  # or fails outright, so override atomically:
11944  install_override_mode=555
11945  ;;
11946
11947interix[3-9]*)
11948  version_type=linux # correct to gnu/linux during the next big refactor
11949  need_lib_prefix=no
11950  need_version=no
11951  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11952  soname_spec='$libname$release$shared_ext$major'
11953  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11954  shlibpath_var=LD_LIBRARY_PATH
11955  shlibpath_overrides_runpath=no
11956  hardcode_into_libs=yes
11957  ;;
11958
11959irix5* | irix6* | nonstopux*)
11960  case $host_os in
11961    nonstopux*) version_type=nonstopux ;;
11962    *)
11963	if test yes = "$lt_cv_prog_gnu_ld"; then
11964		version_type=linux # correct to gnu/linux during the next big refactor
11965	else
11966		version_type=irix
11967	fi ;;
11968  esac
11969  need_lib_prefix=no
11970  need_version=no
11971  soname_spec='$libname$release$shared_ext$major'
11972  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11973  case $host_os in
11974  irix5* | nonstopux*)
11975    libsuff= shlibsuff=
11976    ;;
11977  *)
11978    case $LD in # libtool.m4 will add one of these switches to LD
11979    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11980      libsuff= shlibsuff= libmagic=32-bit;;
11981    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11982      libsuff=32 shlibsuff=N32 libmagic=N32;;
11983    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11984      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11985    *) libsuff= shlibsuff= libmagic=never-match;;
11986    esac
11987    ;;
11988  esac
11989  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11990  shlibpath_overrides_runpath=no
11991  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11992  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11993  hardcode_into_libs=yes
11994  ;;
11995
11996# No shared lib support for Linux oldld, aout, or coff.
11997linux*oldld* | linux*aout* | linux*coff*)
11998  dynamic_linker=no
11999  ;;
12000
12001linux*android*)
12002  version_type=none # Android doesn't support versioned libraries.
12003  need_lib_prefix=no
12004  need_version=no
12005  library_names_spec='$libname$release$shared_ext'
12006  soname_spec='$libname$release$shared_ext'
12007  finish_cmds=
12008  shlibpath_var=LD_LIBRARY_PATH
12009  shlibpath_overrides_runpath=yes
12010
12011  # This implies no fast_install, which is unacceptable.
12012  # Some rework will be needed to allow for fast_install
12013  # before this can be enabled.
12014  hardcode_into_libs=yes
12015
12016  dynamic_linker='Android linker'
12017  # Don't embed -rpath directories since the linker doesn't support them.
12018  hardcode_libdir_flag_spec='-L$libdir'
12019  ;;
12020
12021# This must be glibc/ELF.
12022linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12023  version_type=linux # correct to gnu/linux during the next big refactor
12024  need_lib_prefix=no
12025  need_version=no
12026  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12027  soname_spec='$libname$release$shared_ext$major'
12028  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12029  shlibpath_var=LD_LIBRARY_PATH
12030  shlibpath_overrides_runpath=no
12031
12032  # Some binutils ld are patched to set DT_RUNPATH
12033  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12034  $as_echo_n "(cached) " >&6
12035else
12036  lt_cv_shlibpath_overrides_runpath=no
12037    save_LDFLAGS=$LDFLAGS
12038    save_libdir=$libdir
12039    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12040	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12041    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042/* end confdefs.h.  */
12043
12044int
12045main ()
12046{
12047
12048  ;
12049  return 0;
12050}
12051_ACEOF
12052if ac_fn_c_try_link "$LINENO"; then :
12053  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12054  lt_cv_shlibpath_overrides_runpath=yes
12055fi
12056fi
12057rm -f core conftest.err conftest.$ac_objext \
12058    conftest$ac_exeext conftest.$ac_ext
12059    LDFLAGS=$save_LDFLAGS
12060    libdir=$save_libdir
12061
12062fi
12063
12064  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12065
12066  # This implies no fast_install, which is unacceptable.
12067  # Some rework will be needed to allow for fast_install
12068  # before this can be enabled.
12069  hardcode_into_libs=yes
12070
12071  # Add ABI-specific directories to the system library path.
12072  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12073
12074  # Ideally, we could use ldconfig to report *all* directores which are
12075  # searched for libraries, however this is still not possible.  Aside from not
12076  # being certain /sbin/ldconfig is available, command
12077  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12078  # even though it is searched at run-time.  Try to do the best guess by
12079  # appending ld.so.conf contents (and includes) to the search path.
12080  if test -f /etc/ld.so.conf; then
12081    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' ' '`
12082    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12083  fi
12084
12085  # We used to test for /lib/ld.so.1 and disable shared libraries on
12086  # powerpc, because MkLinux only supported shared libraries with the
12087  # GNU dynamic linker.  Since this was broken with cross compilers,
12088  # most powerpc-linux boxes support dynamic linking these days and
12089  # people can always --disable-shared, the test was removed, and we
12090  # assume the GNU/Linux dynamic linker is in use.
12091  dynamic_linker='GNU/Linux ld.so'
12092  ;;
12093
12094netbsd*)
12095  version_type=sunos
12096  need_lib_prefix=no
12097  need_version=no
12098  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12099    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12100    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12101    dynamic_linker='NetBSD (a.out) ld.so'
12102  else
12103    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12104    soname_spec='$libname$release$shared_ext$major'
12105    dynamic_linker='NetBSD ld.elf_so'
12106  fi
12107  shlibpath_var=LD_LIBRARY_PATH
12108  shlibpath_overrides_runpath=yes
12109  hardcode_into_libs=yes
12110  ;;
12111
12112newsos6)
12113  version_type=linux # correct to gnu/linux during the next big refactor
12114  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12115  shlibpath_var=LD_LIBRARY_PATH
12116  shlibpath_overrides_runpath=yes
12117  ;;
12118
12119*nto* | *qnx*)
12120  version_type=qnx
12121  need_lib_prefix=no
12122  need_version=no
12123  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12124  soname_spec='$libname$release$shared_ext$major'
12125  shlibpath_var=LD_LIBRARY_PATH
12126  shlibpath_overrides_runpath=no
12127  hardcode_into_libs=yes
12128  dynamic_linker='ldqnx.so'
12129  ;;
12130
12131openbsd* | bitrig*)
12132  version_type=sunos
12133  sys_lib_dlsearch_path_spec=/usr/lib
12134  need_lib_prefix=no
12135  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12136    need_version=no
12137  else
12138    need_version=yes
12139  fi
12140  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12141  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12142  shlibpath_var=LD_LIBRARY_PATH
12143  shlibpath_overrides_runpath=yes
12144  ;;
12145
12146os2*)
12147  libname_spec='$name'
12148  version_type=windows
12149  shrext_cmds=.dll
12150  need_version=no
12151  need_lib_prefix=no
12152  # OS/2 can only load a DLL with a base name of 8 characters or less.
12153  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12154    v=$($ECHO $release$versuffix | tr -d .-);
12155    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12156    $ECHO $n$v`$shared_ext'
12157  library_names_spec='${libname}_dll.$libext'
12158  dynamic_linker='OS/2 ld.exe'
12159  shlibpath_var=BEGINLIBPATH
12160  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12161  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12162  postinstall_cmds='base_file=`basename \$file`~
12163    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12164    dldir=$destdir/`dirname \$dlpath`~
12165    test -d \$dldir || mkdir -p \$dldir~
12166    $install_prog $dir/$dlname \$dldir/$dlname~
12167    chmod a+x \$dldir/$dlname~
12168    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12169      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12170    fi'
12171  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12172    dlpath=$dir/\$dldll~
12173    $RM \$dlpath'
12174  ;;
12175
12176osf3* | osf4* | osf5*)
12177  version_type=osf
12178  need_lib_prefix=no
12179  need_version=no
12180  soname_spec='$libname$release$shared_ext$major'
12181  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12182  shlibpath_var=LD_LIBRARY_PATH
12183  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12184  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12185  ;;
12186
12187rdos*)
12188  dynamic_linker=no
12189  ;;
12190
12191solaris*)
12192  version_type=linux # correct to gnu/linux during the next big refactor
12193  need_lib_prefix=no
12194  need_version=no
12195  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12196  soname_spec='$libname$release$shared_ext$major'
12197  shlibpath_var=LD_LIBRARY_PATH
12198  shlibpath_overrides_runpath=yes
12199  hardcode_into_libs=yes
12200  # ldd complains unless libraries are executable
12201  postinstall_cmds='chmod +x $lib'
12202  ;;
12203
12204sunos4*)
12205  version_type=sunos
12206  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12207  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12208  shlibpath_var=LD_LIBRARY_PATH
12209  shlibpath_overrides_runpath=yes
12210  if test yes = "$with_gnu_ld"; then
12211    need_lib_prefix=no
12212  fi
12213  need_version=yes
12214  ;;
12215
12216sysv4 | sysv4.3*)
12217  version_type=linux # correct to gnu/linux during the next big refactor
12218  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12219  soname_spec='$libname$release$shared_ext$major'
12220  shlibpath_var=LD_LIBRARY_PATH
12221  case $host_vendor in
12222    sni)
12223      shlibpath_overrides_runpath=no
12224      need_lib_prefix=no
12225      runpath_var=LD_RUN_PATH
12226      ;;
12227    siemens)
12228      need_lib_prefix=no
12229      ;;
12230    motorola)
12231      need_lib_prefix=no
12232      need_version=no
12233      shlibpath_overrides_runpath=no
12234      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12235      ;;
12236  esac
12237  ;;
12238
12239sysv4*MP*)
12240  if test -d /usr/nec; then
12241    version_type=linux # correct to gnu/linux during the next big refactor
12242    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12243    soname_spec='$libname$shared_ext.$major'
12244    shlibpath_var=LD_LIBRARY_PATH
12245  fi
12246  ;;
12247
12248sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12249  version_type=sco
12250  need_lib_prefix=no
12251  need_version=no
12252  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12253  soname_spec='$libname$release$shared_ext$major'
12254  shlibpath_var=LD_LIBRARY_PATH
12255  shlibpath_overrides_runpath=yes
12256  hardcode_into_libs=yes
12257  if test yes = "$with_gnu_ld"; then
12258    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12259  else
12260    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12261    case $host_os in
12262      sco3.2v5*)
12263        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12264	;;
12265    esac
12266  fi
12267  sys_lib_dlsearch_path_spec='/usr/lib'
12268  ;;
12269
12270tpf*)
12271  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12272  version_type=linux # correct to gnu/linux during the next big refactor
12273  need_lib_prefix=no
12274  need_version=no
12275  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12276  shlibpath_var=LD_LIBRARY_PATH
12277  shlibpath_overrides_runpath=no
12278  hardcode_into_libs=yes
12279  ;;
12280
12281uts4*)
12282  version_type=linux # correct to gnu/linux during the next big refactor
12283  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12284  soname_spec='$libname$release$shared_ext$major'
12285  shlibpath_var=LD_LIBRARY_PATH
12286  ;;
12287
12288*)
12289  dynamic_linker=no
12290  ;;
12291esac
12292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12293$as_echo "$dynamic_linker" >&6; }
12294test no = "$dynamic_linker" && can_build_shared=no
12295
12296variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12297if test yes = "$GCC"; then
12298  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12299fi
12300
12301if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12302  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12303fi
12304
12305if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12306  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12307fi
12308
12309# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12310configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12311
12312# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12313func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12314
12315# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12316configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12415$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12416hardcode_action=
12417if test -n "$hardcode_libdir_flag_spec" ||
12418   test -n "$runpath_var" ||
12419   test yes = "$hardcode_automatic"; then
12420
12421  # We can hardcode non-existent directories.
12422  if test no != "$hardcode_direct" &&
12423     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12424     # have to relink, otherwise we might link with an installed library
12425     # when we should be linking with a yet-to-be-installed one
12426     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12427     test no != "$hardcode_minus_L"; then
12428    # Linking always hardcodes the temporary library directory.
12429    hardcode_action=relink
12430  else
12431    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12432    hardcode_action=immediate
12433  fi
12434else
12435  # We cannot hardcode anything, or else we can only hardcode existing
12436  # directories.
12437  hardcode_action=unsupported
12438fi
12439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12440$as_echo "$hardcode_action" >&6; }
12441
12442if test relink = "$hardcode_action" ||
12443   test yes = "$inherit_rpath"; then
12444  # Fast installation is not supported
12445  enable_fast_install=no
12446elif test yes = "$shlibpath_overrides_runpath" ||
12447     test no = "$enable_shared"; then
12448  # Fast installation is not necessary
12449  enable_fast_install=needless
12450fi
12451
12452
12453
12454
12455
12456
12457  if test yes != "$enable_dlopen"; then
12458  enable_dlopen=unknown
12459  enable_dlopen_self=unknown
12460  enable_dlopen_self_static=unknown
12461else
12462  lt_cv_dlopen=no
12463  lt_cv_dlopen_libs=
12464
12465  case $host_os in
12466  beos*)
12467    lt_cv_dlopen=load_add_on
12468    lt_cv_dlopen_libs=
12469    lt_cv_dlopen_self=yes
12470    ;;
12471
12472  mingw* | pw32* | cegcc*)
12473    lt_cv_dlopen=LoadLibrary
12474    lt_cv_dlopen_libs=
12475    ;;
12476
12477  cygwin*)
12478    lt_cv_dlopen=dlopen
12479    lt_cv_dlopen_libs=
12480    ;;
12481
12482  darwin*)
12483    # if libdl is installed we need to link against it
12484    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12485$as_echo_n "checking for dlopen in -ldl... " >&6; }
12486if ${ac_cv_lib_dl_dlopen+:} false; then :
12487  $as_echo_n "(cached) " >&6
12488else
12489  ac_check_lib_save_LIBS=$LIBS
12490LIBS="-ldl  $LIBS"
12491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492/* end confdefs.h.  */
12493
12494/* Override any GCC internal prototype to avoid an error.
12495   Use char because int might match the return type of a GCC
12496   builtin and then its argument prototype would still apply.  */
12497#ifdef __cplusplus
12498extern "C"
12499#endif
12500char dlopen ();
12501int
12502main ()
12503{
12504return dlopen ();
12505  ;
12506  return 0;
12507}
12508_ACEOF
12509if ac_fn_c_try_link "$LINENO"; then :
12510  ac_cv_lib_dl_dlopen=yes
12511else
12512  ac_cv_lib_dl_dlopen=no
12513fi
12514rm -f core conftest.err conftest.$ac_objext \
12515    conftest$ac_exeext conftest.$ac_ext
12516LIBS=$ac_check_lib_save_LIBS
12517fi
12518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12519$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12520if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12521  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12522else
12523
12524    lt_cv_dlopen=dyld
12525    lt_cv_dlopen_libs=
12526    lt_cv_dlopen_self=yes
12527
12528fi
12529
12530    ;;
12531
12532  tpf*)
12533    # Don't try to run any link tests for TPF.  We know it's impossible
12534    # because TPF is a cross-compiler, and we know how we open DSOs.
12535    lt_cv_dlopen=dlopen
12536    lt_cv_dlopen_libs=
12537    lt_cv_dlopen_self=no
12538    ;;
12539
12540  *)
12541    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12542if test "x$ac_cv_func_shl_load" = xyes; then :
12543  lt_cv_dlopen=shl_load
12544else
12545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12546$as_echo_n "checking for shl_load in -ldld... " >&6; }
12547if ${ac_cv_lib_dld_shl_load+:} false; then :
12548  $as_echo_n "(cached) " >&6
12549else
12550  ac_check_lib_save_LIBS=$LIBS
12551LIBS="-ldld  $LIBS"
12552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553/* end confdefs.h.  */
12554
12555/* Override any GCC internal prototype to avoid an error.
12556   Use char because int might match the return type of a GCC
12557   builtin and then its argument prototype would still apply.  */
12558#ifdef __cplusplus
12559extern "C"
12560#endif
12561char shl_load ();
12562int
12563main ()
12564{
12565return shl_load ();
12566  ;
12567  return 0;
12568}
12569_ACEOF
12570if ac_fn_c_try_link "$LINENO"; then :
12571  ac_cv_lib_dld_shl_load=yes
12572else
12573  ac_cv_lib_dld_shl_load=no
12574fi
12575rm -f core conftest.err conftest.$ac_objext \
12576    conftest$ac_exeext conftest.$ac_ext
12577LIBS=$ac_check_lib_save_LIBS
12578fi
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12580$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12581if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12582  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12583else
12584  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12585if test "x$ac_cv_func_dlopen" = xyes; then :
12586  lt_cv_dlopen=dlopen
12587else
12588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12589$as_echo_n "checking for dlopen in -ldl... " >&6; }
12590if ${ac_cv_lib_dl_dlopen+:} false; then :
12591  $as_echo_n "(cached) " >&6
12592else
12593  ac_check_lib_save_LIBS=$LIBS
12594LIBS="-ldl  $LIBS"
12595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596/* end confdefs.h.  */
12597
12598/* Override any GCC internal prototype to avoid an error.
12599   Use char because int might match the return type of a GCC
12600   builtin and then its argument prototype would still apply.  */
12601#ifdef __cplusplus
12602extern "C"
12603#endif
12604char dlopen ();
12605int
12606main ()
12607{
12608return dlopen ();
12609  ;
12610  return 0;
12611}
12612_ACEOF
12613if ac_fn_c_try_link "$LINENO"; then :
12614  ac_cv_lib_dl_dlopen=yes
12615else
12616  ac_cv_lib_dl_dlopen=no
12617fi
12618rm -f core conftest.err conftest.$ac_objext \
12619    conftest$ac_exeext conftest.$ac_ext
12620LIBS=$ac_check_lib_save_LIBS
12621fi
12622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12623$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12624if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12625  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12626else
12627  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12628$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12629if ${ac_cv_lib_svld_dlopen+:} false; then :
12630  $as_echo_n "(cached) " >&6
12631else
12632  ac_check_lib_save_LIBS=$LIBS
12633LIBS="-lsvld  $LIBS"
12634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635/* end confdefs.h.  */
12636
12637/* Override any GCC internal prototype to avoid an error.
12638   Use char because int might match the return type of a GCC
12639   builtin and then its argument prototype would still apply.  */
12640#ifdef __cplusplus
12641extern "C"
12642#endif
12643char dlopen ();
12644int
12645main ()
12646{
12647return dlopen ();
12648  ;
12649  return 0;
12650}
12651_ACEOF
12652if ac_fn_c_try_link "$LINENO"; then :
12653  ac_cv_lib_svld_dlopen=yes
12654else
12655  ac_cv_lib_svld_dlopen=no
12656fi
12657rm -f core conftest.err conftest.$ac_objext \
12658    conftest$ac_exeext conftest.$ac_ext
12659LIBS=$ac_check_lib_save_LIBS
12660fi
12661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12662$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12663if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12664  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12665else
12666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12667$as_echo_n "checking for dld_link in -ldld... " >&6; }
12668if ${ac_cv_lib_dld_dld_link+:} false; then :
12669  $as_echo_n "(cached) " >&6
12670else
12671  ac_check_lib_save_LIBS=$LIBS
12672LIBS="-ldld  $LIBS"
12673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674/* end confdefs.h.  */
12675
12676/* Override any GCC internal prototype to avoid an error.
12677   Use char because int might match the return type of a GCC
12678   builtin and then its argument prototype would still apply.  */
12679#ifdef __cplusplus
12680extern "C"
12681#endif
12682char dld_link ();
12683int
12684main ()
12685{
12686return dld_link ();
12687  ;
12688  return 0;
12689}
12690_ACEOF
12691if ac_fn_c_try_link "$LINENO"; then :
12692  ac_cv_lib_dld_dld_link=yes
12693else
12694  ac_cv_lib_dld_dld_link=no
12695fi
12696rm -f core conftest.err conftest.$ac_objext \
12697    conftest$ac_exeext conftest.$ac_ext
12698LIBS=$ac_check_lib_save_LIBS
12699fi
12700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12701$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12702if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12703  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12704fi
12705
12706
12707fi
12708
12709
12710fi
12711
12712
12713fi
12714
12715
12716fi
12717
12718
12719fi
12720
12721    ;;
12722  esac
12723
12724  if test no = "$lt_cv_dlopen"; then
12725    enable_dlopen=no
12726  else
12727    enable_dlopen=yes
12728  fi
12729
12730  case $lt_cv_dlopen in
12731  dlopen)
12732    save_CPPFLAGS=$CPPFLAGS
12733    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12734
12735    save_LDFLAGS=$LDFLAGS
12736    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12737
12738    save_LIBS=$LIBS
12739    LIBS="$lt_cv_dlopen_libs $LIBS"
12740
12741    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12742$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12743if ${lt_cv_dlopen_self+:} false; then :
12744  $as_echo_n "(cached) " >&6
12745else
12746  	  if test yes = "$cross_compiling"; then :
12747  lt_cv_dlopen_self=cross
12748else
12749  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12750  lt_status=$lt_dlunknown
12751  cat > conftest.$ac_ext <<_LT_EOF
12752#line $LINENO "configure"
12753#include "confdefs.h"
12754
12755#if HAVE_DLFCN_H
12756#include <dlfcn.h>
12757#endif
12758
12759#include <stdio.h>
12760
12761#ifdef RTLD_GLOBAL
12762#  define LT_DLGLOBAL		RTLD_GLOBAL
12763#else
12764#  ifdef DL_GLOBAL
12765#    define LT_DLGLOBAL		DL_GLOBAL
12766#  else
12767#    define LT_DLGLOBAL		0
12768#  endif
12769#endif
12770
12771/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12772   find out it does not work in some platform. */
12773#ifndef LT_DLLAZY_OR_NOW
12774#  ifdef RTLD_LAZY
12775#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12776#  else
12777#    ifdef DL_LAZY
12778#      define LT_DLLAZY_OR_NOW		DL_LAZY
12779#    else
12780#      ifdef RTLD_NOW
12781#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12782#      else
12783#        ifdef DL_NOW
12784#          define LT_DLLAZY_OR_NOW	DL_NOW
12785#        else
12786#          define LT_DLLAZY_OR_NOW	0
12787#        endif
12788#      endif
12789#    endif
12790#  endif
12791#endif
12792
12793/* When -fvisibility=hidden is used, assume the code has been annotated
12794   correspondingly for the symbols needed.  */
12795#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12796int fnord () __attribute__((visibility("default")));
12797#endif
12798
12799int fnord () { return 42; }
12800int main ()
12801{
12802  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12803  int status = $lt_dlunknown;
12804
12805  if (self)
12806    {
12807      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12808      else
12809        {
12810	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12811          else puts (dlerror ());
12812	}
12813      /* dlclose (self); */
12814    }
12815  else
12816    puts (dlerror ());
12817
12818  return status;
12819}
12820_LT_EOF
12821  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12822  (eval $ac_link) 2>&5
12823  ac_status=$?
12824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12825  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12826    (./conftest; exit; ) >&5 2>/dev/null
12827    lt_status=$?
12828    case x$lt_status in
12829      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12830      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12831      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12832    esac
12833  else :
12834    # compilation failed
12835    lt_cv_dlopen_self=no
12836  fi
12837fi
12838rm -fr conftest*
12839
12840
12841fi
12842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12843$as_echo "$lt_cv_dlopen_self" >&6; }
12844
12845    if test yes = "$lt_cv_dlopen_self"; then
12846      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12847      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12848$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12849if ${lt_cv_dlopen_self_static+:} false; then :
12850  $as_echo_n "(cached) " >&6
12851else
12852  	  if test yes = "$cross_compiling"; then :
12853  lt_cv_dlopen_self_static=cross
12854else
12855  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12856  lt_status=$lt_dlunknown
12857  cat > conftest.$ac_ext <<_LT_EOF
12858#line $LINENO "configure"
12859#include "confdefs.h"
12860
12861#if HAVE_DLFCN_H
12862#include <dlfcn.h>
12863#endif
12864
12865#include <stdio.h>
12866
12867#ifdef RTLD_GLOBAL
12868#  define LT_DLGLOBAL		RTLD_GLOBAL
12869#else
12870#  ifdef DL_GLOBAL
12871#    define LT_DLGLOBAL		DL_GLOBAL
12872#  else
12873#    define LT_DLGLOBAL		0
12874#  endif
12875#endif
12876
12877/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12878   find out it does not work in some platform. */
12879#ifndef LT_DLLAZY_OR_NOW
12880#  ifdef RTLD_LAZY
12881#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12882#  else
12883#    ifdef DL_LAZY
12884#      define LT_DLLAZY_OR_NOW		DL_LAZY
12885#    else
12886#      ifdef RTLD_NOW
12887#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12888#      else
12889#        ifdef DL_NOW
12890#          define LT_DLLAZY_OR_NOW	DL_NOW
12891#        else
12892#          define LT_DLLAZY_OR_NOW	0
12893#        endif
12894#      endif
12895#    endif
12896#  endif
12897#endif
12898
12899/* When -fvisibility=hidden is used, assume the code has been annotated
12900   correspondingly for the symbols needed.  */
12901#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12902int fnord () __attribute__((visibility("default")));
12903#endif
12904
12905int fnord () { return 42; }
12906int main ()
12907{
12908  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12909  int status = $lt_dlunknown;
12910
12911  if (self)
12912    {
12913      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12914      else
12915        {
12916	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12917          else puts (dlerror ());
12918	}
12919      /* dlclose (self); */
12920    }
12921  else
12922    puts (dlerror ());
12923
12924  return status;
12925}
12926_LT_EOF
12927  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12928  (eval $ac_link) 2>&5
12929  ac_status=$?
12930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12931  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12932    (./conftest; exit; ) >&5 2>/dev/null
12933    lt_status=$?
12934    case x$lt_status in
12935      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12936      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12937      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12938    esac
12939  else :
12940    # compilation failed
12941    lt_cv_dlopen_self_static=no
12942  fi
12943fi
12944rm -fr conftest*
12945
12946
12947fi
12948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12949$as_echo "$lt_cv_dlopen_self_static" >&6; }
12950    fi
12951
12952    CPPFLAGS=$save_CPPFLAGS
12953    LDFLAGS=$save_LDFLAGS
12954    LIBS=$save_LIBS
12955    ;;
12956  esac
12957
12958  case $lt_cv_dlopen_self in
12959  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12960  *) enable_dlopen_self=unknown ;;
12961  esac
12962
12963  case $lt_cv_dlopen_self_static in
12964  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12965  *) enable_dlopen_self_static=unknown ;;
12966  esac
12967fi
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985striplib=
12986old_striplib=
12987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12988$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12989if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12990  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12991  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12993$as_echo "yes" >&6; }
12994else
12995# FIXME - insert some real tests, host_os isn't really good enough
12996  case $host_os in
12997  darwin*)
12998    if test -n "$STRIP"; then
12999      striplib="$STRIP -x"
13000      old_striplib="$STRIP -S"
13001      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13002$as_echo "yes" >&6; }
13003    else
13004      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13005$as_echo "no" >&6; }
13006    fi
13007    ;;
13008  *)
13009    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13010$as_echo "no" >&6; }
13011    ;;
13012  esac
13013fi
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026  # Report what library types will actually be built
13027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13028$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13030$as_echo "$can_build_shared" >&6; }
13031
13032  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13033$as_echo_n "checking whether to build shared libraries... " >&6; }
13034  test no = "$can_build_shared" && enable_shared=no
13035
13036  # On AIX, shared libraries and static libraries use the same namespace, and
13037  # are all built from PIC.
13038  case $host_os in
13039  aix3*)
13040    test yes = "$enable_shared" && enable_static=no
13041    if test -n "$RANLIB"; then
13042      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13043      postinstall_cmds='$RANLIB $lib'
13044    fi
13045    ;;
13046
13047  aix[4-9]*)
13048    if test ia64 != "$host_cpu"; then
13049      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13050      yes,aix,yes) ;;			# shared object as lib.so file only
13051      yes,svr4,*) ;;			# shared object as lib.so archive member only
13052      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13053      esac
13054    fi
13055    ;;
13056  esac
13057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13058$as_echo "$enable_shared" >&6; }
13059
13060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13061$as_echo_n "checking whether to build static libraries... " >&6; }
13062  # Make sure either enable_shared or enable_static is yes.
13063  test yes = "$enable_shared" || enable_static=yes
13064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13065$as_echo "$enable_static" >&6; }
13066
13067
13068
13069
13070fi
13071ac_ext=c
13072ac_cpp='$CPP $CPPFLAGS'
13073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13075ac_compiler_gnu=$ac_cv_c_compiler_gnu
13076
13077CC=$lt_save_CC
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093        ac_config_commands="$ac_config_commands libtool"
13094
13095
13096
13097
13098# Only expand once:
13099
13100
13101
13102
13103ac_ext=cpp
13104ac_cpp='$CXXCPP $CPPFLAGS'
13105ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13106ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13107ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13108
13109ac_ext=cpp
13110ac_cpp='$CXXCPP $CPPFLAGS'
13111ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13112ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13113ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13114if test -z "$CXX"; then
13115  if test -n "$CCC"; then
13116    CXX=$CCC
13117  else
13118    if test -n "$ac_tool_prefix"; then
13119  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13120  do
13121    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13122set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13124$as_echo_n "checking for $ac_word... " >&6; }
13125if ${ac_cv_prog_CXX+:} false; then :
13126  $as_echo_n "(cached) " >&6
13127else
13128  if test -n "$CXX"; then
13129  ac_cv_prog_CXX="$CXX" # Let the user override the test.
13130else
13131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132for as_dir in $PATH
13133do
13134  IFS=$as_save_IFS
13135  test -z "$as_dir" && as_dir=.
13136    for ac_exec_ext in '' $ac_executable_extensions; do
13137  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13138    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13140    break 2
13141  fi
13142done
13143  done
13144IFS=$as_save_IFS
13145
13146fi
13147fi
13148CXX=$ac_cv_prog_CXX
13149if test -n "$CXX"; then
13150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13151$as_echo "$CXX" >&6; }
13152else
13153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154$as_echo "no" >&6; }
13155fi
13156
13157
13158    test -n "$CXX" && break
13159  done
13160fi
13161if test -z "$CXX"; then
13162  ac_ct_CXX=$CXX
13163  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13164do
13165  # Extract the first word of "$ac_prog", so it can be a program name with args.
13166set dummy $ac_prog; ac_word=$2
13167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13168$as_echo_n "checking for $ac_word... " >&6; }
13169if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13170  $as_echo_n "(cached) " >&6
13171else
13172  if test -n "$ac_ct_CXX"; then
13173  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13174else
13175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13176for as_dir in $PATH
13177do
13178  IFS=$as_save_IFS
13179  test -z "$as_dir" && as_dir=.
13180    for ac_exec_ext in '' $ac_executable_extensions; do
13181  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13182    ac_cv_prog_ac_ct_CXX="$ac_prog"
13183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13184    break 2
13185  fi
13186done
13187  done
13188IFS=$as_save_IFS
13189
13190fi
13191fi
13192ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13193if test -n "$ac_ct_CXX"; then
13194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13195$as_echo "$ac_ct_CXX" >&6; }
13196else
13197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13198$as_echo "no" >&6; }
13199fi
13200
13201
13202  test -n "$ac_ct_CXX" && break
13203done
13204
13205  if test "x$ac_ct_CXX" = x; then
13206    CXX="g++"
13207  else
13208    case $cross_compiling:$ac_tool_warned in
13209yes:)
13210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13212ac_tool_warned=yes ;;
13213esac
13214    CXX=$ac_ct_CXX
13215  fi
13216fi
13217
13218  fi
13219fi
13220# Provide some information about the compiler.
13221$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13222set X $ac_compile
13223ac_compiler=$2
13224for ac_option in --version -v -V -qversion; do
13225  { { ac_try="$ac_compiler $ac_option >&5"
13226case "(($ac_try" in
13227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228  *) ac_try_echo=$ac_try;;
13229esac
13230eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13231$as_echo "$ac_try_echo"; } >&5
13232  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13233  ac_status=$?
13234  if test -s conftest.err; then
13235    sed '10a\
13236... rest of stderr output deleted ...
13237         10q' conftest.err >conftest.er1
13238    cat conftest.er1 >&5
13239  fi
13240  rm -f conftest.er1 conftest.err
13241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13242  test $ac_status = 0; }
13243done
13244
13245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13246$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13247if ${ac_cv_cxx_compiler_gnu+:} false; then :
13248  $as_echo_n "(cached) " >&6
13249else
13250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251/* end confdefs.h.  */
13252
13253int
13254main ()
13255{
13256#ifndef __GNUC__
13257       choke me
13258#endif
13259
13260  ;
13261  return 0;
13262}
13263_ACEOF
13264if ac_fn_cxx_try_compile "$LINENO"; then :
13265  ac_compiler_gnu=yes
13266else
13267  ac_compiler_gnu=no
13268fi
13269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13270ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13271
13272fi
13273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13274$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13275if test $ac_compiler_gnu = yes; then
13276  GXX=yes
13277else
13278  GXX=
13279fi
13280ac_test_CXXFLAGS=${CXXFLAGS+set}
13281ac_save_CXXFLAGS=$CXXFLAGS
13282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13283$as_echo_n "checking whether $CXX accepts -g... " >&6; }
13284if ${ac_cv_prog_cxx_g+:} false; then :
13285  $as_echo_n "(cached) " >&6
13286else
13287  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13288   ac_cxx_werror_flag=yes
13289   ac_cv_prog_cxx_g=no
13290   CXXFLAGS="-g"
13291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292/* end confdefs.h.  */
13293
13294int
13295main ()
13296{
13297
13298  ;
13299  return 0;
13300}
13301_ACEOF
13302if ac_fn_cxx_try_compile "$LINENO"; then :
13303  ac_cv_prog_cxx_g=yes
13304else
13305  CXXFLAGS=""
13306      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13307/* end confdefs.h.  */
13308
13309int
13310main ()
13311{
13312
13313  ;
13314  return 0;
13315}
13316_ACEOF
13317if ac_fn_cxx_try_compile "$LINENO"; then :
13318
13319else
13320  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13321	 CXXFLAGS="-g"
13322	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323/* end confdefs.h.  */
13324
13325int
13326main ()
13327{
13328
13329  ;
13330  return 0;
13331}
13332_ACEOF
13333if ac_fn_cxx_try_compile "$LINENO"; then :
13334  ac_cv_prog_cxx_g=yes
13335fi
13336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13337fi
13338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13339fi
13340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13341   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13342fi
13343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13344$as_echo "$ac_cv_prog_cxx_g" >&6; }
13345if test "$ac_test_CXXFLAGS" = set; then
13346  CXXFLAGS=$ac_save_CXXFLAGS
13347elif test $ac_cv_prog_cxx_g = yes; then
13348  if test "$GXX" = yes; then
13349    CXXFLAGS="-g -O2"
13350  else
13351    CXXFLAGS="-g"
13352  fi
13353else
13354  if test "$GXX" = yes; then
13355    CXXFLAGS="-O2"
13356  else
13357    CXXFLAGS=
13358  fi
13359fi
13360ac_ext=cpp
13361ac_cpp='$CXXCPP $CPPFLAGS'
13362ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13363ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13364ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13365
13366depcc="$CXX"  am_compiler_list=
13367
13368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13369$as_echo_n "checking dependency style of $depcc... " >&6; }
13370if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13371  $as_echo_n "(cached) " >&6
13372else
13373  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13374  # We make a subdir and do the tests there.  Otherwise we can end up
13375  # making bogus files that we don't know about and never remove.  For
13376  # instance it was reported that on HP-UX the gcc test will end up
13377  # making a dummy file named 'D' -- because '-MD' means "put the output
13378  # in D".
13379  rm -rf conftest.dir
13380  mkdir conftest.dir
13381  # Copy depcomp to subdir because otherwise we won't find it if we're
13382  # using a relative directory.
13383  cp "$am_depcomp" conftest.dir
13384  cd conftest.dir
13385  # We will build objects and dependencies in a subdirectory because
13386  # it helps to detect inapplicable dependency modes.  For instance
13387  # both Tru64's cc and ICC support -MD to output dependencies as a
13388  # side effect of compilation, but ICC will put the dependencies in
13389  # the current directory while Tru64 will put them in the object
13390  # directory.
13391  mkdir sub
13392
13393  am_cv_CXX_dependencies_compiler_type=none
13394  if test "$am_compiler_list" = ""; then
13395     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13396  fi
13397  am__universal=false
13398  case " $depcc " in #(
13399     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13400     esac
13401
13402  for depmode in $am_compiler_list; do
13403    # Setup a source with many dependencies, because some compilers
13404    # like to wrap large dependency lists on column 80 (with \), and
13405    # we should not choose a depcomp mode which is confused by this.
13406    #
13407    # We need to recreate these files for each test, as the compiler may
13408    # overwrite some of them when testing with obscure command lines.
13409    # This happens at least with the AIX C compiler.
13410    : > sub/conftest.c
13411    for i in 1 2 3 4 5 6; do
13412      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13413      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13414      # Solaris 10 /bin/sh.
13415      echo '/* dummy */' > sub/conftst$i.h
13416    done
13417    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13418
13419    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13420    # mode.  It turns out that the SunPro C++ compiler does not properly
13421    # handle '-M -o', and we need to detect this.  Also, some Intel
13422    # versions had trouble with output in subdirs.
13423    am__obj=sub/conftest.${OBJEXT-o}
13424    am__minus_obj="-o $am__obj"
13425    case $depmode in
13426    gcc)
13427      # This depmode causes a compiler race in universal mode.
13428      test "$am__universal" = false || continue
13429      ;;
13430    nosideeffect)
13431      # After this tag, mechanisms are not by side-effect, so they'll
13432      # only be used when explicitly requested.
13433      if test "x$enable_dependency_tracking" = xyes; then
13434	continue
13435      else
13436	break
13437      fi
13438      ;;
13439    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13440      # This compiler won't grok '-c -o', but also, the minuso test has
13441      # not run yet.  These depmodes are late enough in the game, and
13442      # so weak that their functioning should not be impacted.
13443      am__obj=conftest.${OBJEXT-o}
13444      am__minus_obj=
13445      ;;
13446    none) break ;;
13447    esac
13448    if depmode=$depmode \
13449       source=sub/conftest.c object=$am__obj \
13450       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13451       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13452         >/dev/null 2>conftest.err &&
13453       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13454       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13455       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13456       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13457      # icc doesn't choke on unknown options, it will just issue warnings
13458      # or remarks (even with -Werror).  So we grep stderr for any message
13459      # that says an option was ignored or not supported.
13460      # When given -MP, icc 7.0 and 7.1 complain thusly:
13461      #   icc: Command line warning: ignoring option '-M'; no argument required
13462      # The diagnosis changed in icc 8.0:
13463      #   icc: Command line remark: option '-MP' not supported
13464      if (grep 'ignoring option' conftest.err ||
13465          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13466        am_cv_CXX_dependencies_compiler_type=$depmode
13467        break
13468      fi
13469    fi
13470  done
13471
13472  cd ..
13473  rm -rf conftest.dir
13474else
13475  am_cv_CXX_dependencies_compiler_type=none
13476fi
13477
13478fi
13479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13480$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13481CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13482
13483 if
13484  test "x$enable_dependency_tracking" != xno \
13485  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13486  am__fastdepCXX_TRUE=
13487  am__fastdepCXX_FALSE='#'
13488else
13489  am__fastdepCXX_TRUE='#'
13490  am__fastdepCXX_FALSE=
13491fi
13492
13493
13494
13495
13496func_stripname_cnf ()
13497{
13498  case $2 in
13499  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13500  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13501  esac
13502} # func_stripname_cnf
13503
13504      if test -n "$CXX" && ( test no != "$CXX" &&
13505    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13506    (test g++ != "$CXX"))); then
13507  ac_ext=cpp
13508ac_cpp='$CXXCPP $CPPFLAGS'
13509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13513$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13514if test -z "$CXXCPP"; then
13515  if ${ac_cv_prog_CXXCPP+:} false; then :
13516  $as_echo_n "(cached) " >&6
13517else
13518      # Double quotes because CXXCPP needs to be expanded
13519    for CXXCPP in "$CXX -E" "/lib/cpp"
13520    do
13521      ac_preproc_ok=false
13522for ac_cxx_preproc_warn_flag in '' yes
13523do
13524  # Use a header file that comes with gcc, so configuring glibc
13525  # with a fresh cross-compiler works.
13526  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13527  # <limits.h> exists even on freestanding compilers.
13528  # On the NeXT, cc -E runs the code through the compiler's parser,
13529  # not just through cpp. "Syntax error" is here to catch this case.
13530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531/* end confdefs.h.  */
13532#ifdef __STDC__
13533# include <limits.h>
13534#else
13535# include <assert.h>
13536#endif
13537		     Syntax error
13538_ACEOF
13539if ac_fn_cxx_try_cpp "$LINENO"; then :
13540
13541else
13542  # Broken: fails on valid input.
13543continue
13544fi
13545rm -f conftest.err conftest.i conftest.$ac_ext
13546
13547  # OK, works on sane cases.  Now check whether nonexistent headers
13548  # can be detected and how.
13549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550/* end confdefs.h.  */
13551#include <ac_nonexistent.h>
13552_ACEOF
13553if ac_fn_cxx_try_cpp "$LINENO"; then :
13554  # Broken: success on invalid input.
13555continue
13556else
13557  # Passes both tests.
13558ac_preproc_ok=:
13559break
13560fi
13561rm -f conftest.err conftest.i conftest.$ac_ext
13562
13563done
13564# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13565rm -f conftest.i conftest.err conftest.$ac_ext
13566if $ac_preproc_ok; then :
13567  break
13568fi
13569
13570    done
13571    ac_cv_prog_CXXCPP=$CXXCPP
13572
13573fi
13574  CXXCPP=$ac_cv_prog_CXXCPP
13575else
13576  ac_cv_prog_CXXCPP=$CXXCPP
13577fi
13578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13579$as_echo "$CXXCPP" >&6; }
13580ac_preproc_ok=false
13581for ac_cxx_preproc_warn_flag in '' yes
13582do
13583  # Use a header file that comes with gcc, so configuring glibc
13584  # with a fresh cross-compiler works.
13585  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13586  # <limits.h> exists even on freestanding compilers.
13587  # On the NeXT, cc -E runs the code through the compiler's parser,
13588  # not just through cpp. "Syntax error" is here to catch this case.
13589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590/* end confdefs.h.  */
13591#ifdef __STDC__
13592# include <limits.h>
13593#else
13594# include <assert.h>
13595#endif
13596		     Syntax error
13597_ACEOF
13598if ac_fn_cxx_try_cpp "$LINENO"; then :
13599
13600else
13601  # Broken: fails on valid input.
13602continue
13603fi
13604rm -f conftest.err conftest.i conftest.$ac_ext
13605
13606  # OK, works on sane cases.  Now check whether nonexistent headers
13607  # can be detected and how.
13608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609/* end confdefs.h.  */
13610#include <ac_nonexistent.h>
13611_ACEOF
13612if ac_fn_cxx_try_cpp "$LINENO"; then :
13613  # Broken: success on invalid input.
13614continue
13615else
13616  # Passes both tests.
13617ac_preproc_ok=:
13618break
13619fi
13620rm -f conftest.err conftest.i conftest.$ac_ext
13621
13622done
13623# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13624rm -f conftest.i conftest.err conftest.$ac_ext
13625if $ac_preproc_ok; then :
13626
13627else
13628  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13630as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13631See \`config.log' for more details" "$LINENO" 5; }
13632fi
13633
13634ac_ext=cpp
13635ac_cpp='$CXXCPP $CPPFLAGS'
13636ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13637ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13638ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13639
13640else
13641  _lt_caught_CXX_error=yes
13642fi
13643
13644ac_ext=cpp
13645ac_cpp='$CXXCPP $CPPFLAGS'
13646ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13647ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13648ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13649
13650archive_cmds_need_lc_CXX=no
13651allow_undefined_flag_CXX=
13652always_export_symbols_CXX=no
13653archive_expsym_cmds_CXX=
13654compiler_needs_object_CXX=no
13655export_dynamic_flag_spec_CXX=
13656hardcode_direct_CXX=no
13657hardcode_direct_absolute_CXX=no
13658hardcode_libdir_flag_spec_CXX=
13659hardcode_libdir_separator_CXX=
13660hardcode_minus_L_CXX=no
13661hardcode_shlibpath_var_CXX=unsupported
13662hardcode_automatic_CXX=no
13663inherit_rpath_CXX=no
13664module_cmds_CXX=
13665module_expsym_cmds_CXX=
13666link_all_deplibs_CXX=unknown
13667old_archive_cmds_CXX=$old_archive_cmds
13668reload_flag_CXX=$reload_flag
13669reload_cmds_CXX=$reload_cmds
13670no_undefined_flag_CXX=
13671whole_archive_flag_spec_CXX=
13672enable_shared_with_static_runtimes_CXX=no
13673
13674# Source file extension for C++ test sources.
13675ac_ext=cpp
13676
13677# Object file extension for compiled C++ test sources.
13678objext=o
13679objext_CXX=$objext
13680
13681# No sense in running all these tests if we already determined that
13682# the CXX compiler isn't working.  Some variables (like enable_shared)
13683# are currently assumed to apply to all compilers on this platform,
13684# and will be corrupted by setting them based on a non-working compiler.
13685if test yes != "$_lt_caught_CXX_error"; then
13686  # Code to be used in simple compile tests
13687  lt_simple_compile_test_code="int some_variable = 0;"
13688
13689  # Code to be used in simple link tests
13690  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13691
13692  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13693
13694
13695
13696
13697
13698
13699# If no C compiler was specified, use CC.
13700LTCC=${LTCC-"$CC"}
13701
13702# If no C compiler flags were specified, use CFLAGS.
13703LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13704
13705# Allow CC to be a program name with arguments.
13706compiler=$CC
13707
13708
13709  # save warnings/boilerplate of simple test code
13710  ac_outfile=conftest.$ac_objext
13711echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13712eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13713_lt_compiler_boilerplate=`cat conftest.err`
13714$RM conftest*
13715
13716  ac_outfile=conftest.$ac_objext
13717echo "$lt_simple_link_test_code" >conftest.$ac_ext
13718eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13719_lt_linker_boilerplate=`cat conftest.err`
13720$RM -r conftest*
13721
13722
13723  # Allow CC to be a program name with arguments.
13724  lt_save_CC=$CC
13725  lt_save_CFLAGS=$CFLAGS
13726  lt_save_LD=$LD
13727  lt_save_GCC=$GCC
13728  GCC=$GXX
13729  lt_save_with_gnu_ld=$with_gnu_ld
13730  lt_save_path_LD=$lt_cv_path_LD
13731  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13732    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13733  else
13734    $as_unset lt_cv_prog_gnu_ld
13735  fi
13736  if test -n "${lt_cv_path_LDCXX+set}"; then
13737    lt_cv_path_LD=$lt_cv_path_LDCXX
13738  else
13739    $as_unset lt_cv_path_LD
13740  fi
13741  test -z "${LDCXX+set}" || LD=$LDCXX
13742  CC=${CXX-"c++"}
13743  CFLAGS=$CXXFLAGS
13744  compiler=$CC
13745  compiler_CXX=$CC
13746  func_cc_basename $compiler
13747cc_basename=$func_cc_basename_result
13748
13749
13750  if test -n "$compiler"; then
13751    # We don't want -fno-exception when compiling C++ code, so set the
13752    # no_builtin_flag separately
13753    if test yes = "$GXX"; then
13754      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13755    else
13756      lt_prog_compiler_no_builtin_flag_CXX=
13757    fi
13758
13759    if test yes = "$GXX"; then
13760      # Set up default GNU C++ configuration
13761
13762
13763
13764# Check whether --with-gnu-ld was given.
13765if test "${with_gnu_ld+set}" = set; then :
13766  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13767else
13768  with_gnu_ld=no
13769fi
13770
13771ac_prog=ld
13772if test yes = "$GCC"; then
13773  # Check if gcc -print-prog-name=ld gives a path.
13774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13775$as_echo_n "checking for ld used by $CC... " >&6; }
13776  case $host in
13777  *-*-mingw*)
13778    # gcc leaves a trailing carriage return, which upsets mingw
13779    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13780  *)
13781    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13782  esac
13783  case $ac_prog in
13784    # Accept absolute paths.
13785    [\\/]* | ?:[\\/]*)
13786      re_direlt='/[^/][^/]*/\.\./'
13787      # Canonicalize the pathname of ld
13788      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13789      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13790	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13791      done
13792      test -z "$LD" && LD=$ac_prog
13793      ;;
13794  "")
13795    # If it fails, then pretend we aren't using GCC.
13796    ac_prog=ld
13797    ;;
13798  *)
13799    # If it is relative, then search for the first ld in PATH.
13800    with_gnu_ld=unknown
13801    ;;
13802  esac
13803elif test yes = "$with_gnu_ld"; then
13804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13805$as_echo_n "checking for GNU ld... " >&6; }
13806else
13807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13808$as_echo_n "checking for non-GNU ld... " >&6; }
13809fi
13810if ${lt_cv_path_LD+:} false; then :
13811  $as_echo_n "(cached) " >&6
13812else
13813  if test -z "$LD"; then
13814  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13815  for ac_dir in $PATH; do
13816    IFS=$lt_save_ifs
13817    test -z "$ac_dir" && ac_dir=.
13818    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13819      lt_cv_path_LD=$ac_dir/$ac_prog
13820      # Check to see if the program is GNU ld.  I'd rather use --version,
13821      # but apparently some variants of GNU ld only accept -v.
13822      # Break only if it was the GNU/non-GNU ld that we prefer.
13823      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13824      *GNU* | *'with BFD'*)
13825	test no != "$with_gnu_ld" && break
13826	;;
13827      *)
13828	test yes != "$with_gnu_ld" && break
13829	;;
13830      esac
13831    fi
13832  done
13833  IFS=$lt_save_ifs
13834else
13835  lt_cv_path_LD=$LD # Let the user override the test with a path.
13836fi
13837fi
13838
13839LD=$lt_cv_path_LD
13840if test -n "$LD"; then
13841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13842$as_echo "$LD" >&6; }
13843else
13844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13845$as_echo "no" >&6; }
13846fi
13847test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13849$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13850if ${lt_cv_prog_gnu_ld+:} false; then :
13851  $as_echo_n "(cached) " >&6
13852else
13853  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13854case `$LD -v 2>&1 </dev/null` in
13855*GNU* | *'with BFD'*)
13856  lt_cv_prog_gnu_ld=yes
13857  ;;
13858*)
13859  lt_cv_prog_gnu_ld=no
13860  ;;
13861esac
13862fi
13863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13864$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13865with_gnu_ld=$lt_cv_prog_gnu_ld
13866
13867
13868
13869
13870
13871
13872
13873      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13874      # archiving commands below assume that GNU ld is being used.
13875      if test yes = "$with_gnu_ld"; then
13876        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13877        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'
13878
13879        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13880        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13881
13882        # If archive_cmds runs LD, not CC, wlarc should be empty
13883        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13884        #     investigate it a little bit more. (MM)
13885        wlarc='$wl'
13886
13887        # ancient GNU ld didn't support --whole-archive et. al.
13888        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13889	  $GREP 'no-whole-archive' > /dev/null; then
13890          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13891        else
13892          whole_archive_flag_spec_CXX=
13893        fi
13894      else
13895        with_gnu_ld=no
13896        wlarc=
13897
13898        # A generic and very simple default shared library creation
13899        # command for GNU C++ for the case where it uses the native
13900        # linker, instead of GNU ld.  If possible, this setting should
13901        # overridden to take advantage of the native linker features on
13902        # the platform it is being used on.
13903        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13904      fi
13905
13906      # Commands to make compiler produce verbose output that lists
13907      # what "hidden" libraries, object files and flags are used when
13908      # linking a shared library.
13909      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13910
13911    else
13912      GXX=no
13913      with_gnu_ld=no
13914      wlarc=
13915    fi
13916
13917    # PORTME: fill in a description of your system's C++ link characteristics
13918    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13919$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13920    ld_shlibs_CXX=yes
13921    case $host_os in
13922      aix3*)
13923        # FIXME: insert proper C++ library support
13924        ld_shlibs_CXX=no
13925        ;;
13926      aix[4-9]*)
13927        if test ia64 = "$host_cpu"; then
13928          # On IA64, the linker does run time linking by default, so we don't
13929          # have to do anything special.
13930          aix_use_runtimelinking=no
13931          exp_sym_flag='-Bexport'
13932          no_entry_flag=
13933        else
13934          aix_use_runtimelinking=no
13935
13936          # Test if we are trying to use run time linking or normal
13937          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13938          # have runtime linking enabled, and use it for executables.
13939          # For shared libraries, we enable/disable runtime linking
13940          # depending on the kind of the shared library created -
13941          # when "with_aix_soname,aix_use_runtimelinking" is:
13942          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13943          # "aix,yes"  lib.so          shared, rtl:yes, for executables
13944          #            lib.a           static archive
13945          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13946          #            lib.a(lib.so.V) shared, rtl:no,  for executables
13947          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13948          #            lib.a(lib.so.V) shared, rtl:no
13949          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13950          #            lib.a           static archive
13951          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13952	    for ld_flag in $LDFLAGS; do
13953	      case $ld_flag in
13954	      *-brtl*)
13955	        aix_use_runtimelinking=yes
13956	        break
13957	        ;;
13958	      esac
13959	    done
13960	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13961	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
13962	      # so we don't have lib.a shared libs to link our executables.
13963	      # We have to force runtime linking in this case.
13964	      aix_use_runtimelinking=yes
13965	      LDFLAGS="$LDFLAGS -Wl,-brtl"
13966	    fi
13967	    ;;
13968          esac
13969
13970          exp_sym_flag='-bexport'
13971          no_entry_flag='-bnoentry'
13972        fi
13973
13974        # When large executables or shared objects are built, AIX ld can
13975        # have problems creating the table of contents.  If linking a library
13976        # or program results in "error TOC overflow" add -mminimal-toc to
13977        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13978        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13979
13980        archive_cmds_CXX=''
13981        hardcode_direct_CXX=yes
13982        hardcode_direct_absolute_CXX=yes
13983        hardcode_libdir_separator_CXX=':'
13984        link_all_deplibs_CXX=yes
13985        file_list_spec_CXX='$wl-f,'
13986        case $with_aix_soname,$aix_use_runtimelinking in
13987        aix,*) ;;	# no import file
13988        svr4,* | *,yes) # use import file
13989          # The Import File defines what to hardcode.
13990          hardcode_direct_CXX=no
13991          hardcode_direct_absolute_CXX=no
13992          ;;
13993        esac
13994
13995        if test yes = "$GXX"; then
13996          case $host_os in aix4.[012]|aix4.[012].*)
13997          # We only want to do this on AIX 4.2 and lower, the check
13998          # below for broken collect2 doesn't work under 4.3+
13999	  collect2name=`$CC -print-prog-name=collect2`
14000	  if test -f "$collect2name" &&
14001	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14002	  then
14003	    # We have reworked collect2
14004	    :
14005	  else
14006	    # We have old collect2
14007	    hardcode_direct_CXX=unsupported
14008	    # It fails to find uninstalled libraries when the uninstalled
14009	    # path is not listed in the libpath.  Setting hardcode_minus_L
14010	    # to unsupported forces relinking
14011	    hardcode_minus_L_CXX=yes
14012	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14013	    hardcode_libdir_separator_CXX=
14014	  fi
14015          esac
14016          shared_flag='-shared'
14017	  if test yes = "$aix_use_runtimelinking"; then
14018	    shared_flag=$shared_flag' $wl-G'
14019	  fi
14020	  # Need to ensure runtime linking is disabled for the traditional
14021	  # shared library, or the linker may eventually find shared libraries
14022	  # /with/ Import File - we do not want to mix them.
14023	  shared_flag_aix='-shared'
14024	  shared_flag_svr4='-shared $wl-G'
14025        else
14026          # not using gcc
14027          if test ia64 = "$host_cpu"; then
14028	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14029	  # chokes on -Wl,-G. The following line is correct:
14030	  shared_flag='-G'
14031          else
14032	    if test yes = "$aix_use_runtimelinking"; then
14033	      shared_flag='$wl-G'
14034	    else
14035	      shared_flag='$wl-bM:SRE'
14036	    fi
14037	    shared_flag_aix='$wl-bM:SRE'
14038	    shared_flag_svr4='$wl-G'
14039          fi
14040        fi
14041
14042        export_dynamic_flag_spec_CXX='$wl-bexpall'
14043        # It seems that -bexpall does not export symbols beginning with
14044        # underscore (_), so it is better to generate a list of symbols to
14045	# export.
14046        always_export_symbols_CXX=yes
14047	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14048          # Warning - without using the other runtime loading flags (-brtl),
14049          # -berok will link without error, but may produce a broken library.
14050          # The "-G" linker flag allows undefined symbols.
14051          no_undefined_flag_CXX='-bernotok'
14052          # Determine the default libpath from the value encoded in an empty
14053          # executable.
14054          if test set = "${lt_cv_aix_libpath+set}"; then
14055  aix_libpath=$lt_cv_aix_libpath
14056else
14057  if ${lt_cv_aix_libpath__CXX+:} false; then :
14058  $as_echo_n "(cached) " >&6
14059else
14060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061/* end confdefs.h.  */
14062
14063int
14064main ()
14065{
14066
14067  ;
14068  return 0;
14069}
14070_ACEOF
14071if ac_fn_cxx_try_link "$LINENO"; then :
14072
14073  lt_aix_libpath_sed='
14074      /Import File Strings/,/^$/ {
14075	  /^0/ {
14076	      s/^0  *\([^ ]*\) *$/\1/
14077	      p
14078	  }
14079      }'
14080  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14081  # Check for a 64-bit object if we didn't find anything.
14082  if test -z "$lt_cv_aix_libpath__CXX"; then
14083    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14084  fi
14085fi
14086rm -f core conftest.err conftest.$ac_objext \
14087    conftest$ac_exeext conftest.$ac_ext
14088  if test -z "$lt_cv_aix_libpath__CXX"; then
14089    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14090  fi
14091
14092fi
14093
14094  aix_libpath=$lt_cv_aix_libpath__CXX
14095fi
14096
14097          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14098
14099          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
14100        else
14101          if test ia64 = "$host_cpu"; then
14102	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14103	    allow_undefined_flag_CXX="-z nodefs"
14104	    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"
14105          else
14106	    # Determine the default libpath from the value encoded in an
14107	    # empty executable.
14108	    if test set = "${lt_cv_aix_libpath+set}"; then
14109  aix_libpath=$lt_cv_aix_libpath
14110else
14111  if ${lt_cv_aix_libpath__CXX+:} false; then :
14112  $as_echo_n "(cached) " >&6
14113else
14114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115/* end confdefs.h.  */
14116
14117int
14118main ()
14119{
14120
14121  ;
14122  return 0;
14123}
14124_ACEOF
14125if ac_fn_cxx_try_link "$LINENO"; then :
14126
14127  lt_aix_libpath_sed='
14128      /Import File Strings/,/^$/ {
14129	  /^0/ {
14130	      s/^0  *\([^ ]*\) *$/\1/
14131	      p
14132	  }
14133      }'
14134  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14135  # Check for a 64-bit object if we didn't find anything.
14136  if test -z "$lt_cv_aix_libpath__CXX"; then
14137    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14138  fi
14139fi
14140rm -f core conftest.err conftest.$ac_objext \
14141    conftest$ac_exeext conftest.$ac_ext
14142  if test -z "$lt_cv_aix_libpath__CXX"; then
14143    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14144  fi
14145
14146fi
14147
14148  aix_libpath=$lt_cv_aix_libpath__CXX
14149fi
14150
14151	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14152	    # Warning - without using the other run time loading flags,
14153	    # -berok will link without error, but may produce a broken library.
14154	    no_undefined_flag_CXX=' $wl-bernotok'
14155	    allow_undefined_flag_CXX=' $wl-berok'
14156	    if test yes = "$with_gnu_ld"; then
14157	      # We only use this code for GNU lds that support --whole-archive.
14158	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14159	    else
14160	      # Exported symbols can be pulled into shared objects from archives
14161	      whole_archive_flag_spec_CXX='$convenience'
14162	    fi
14163	    archive_cmds_need_lc_CXX=yes
14164	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14165	    # -brtl affects multiple linker settings, -berok does not and is overridden later
14166	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14167	    if test svr4 != "$with_aix_soname"; then
14168	      # This is similar to how AIX traditionally builds its shared
14169	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14170	      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'
14171	    fi
14172	    if test aix != "$with_aix_soname"; then
14173	      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'
14174	    else
14175	      # used by -dlpreopen to get the symbols
14176	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14177	    fi
14178	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14179          fi
14180        fi
14181        ;;
14182
14183      beos*)
14184	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14185	  allow_undefined_flag_CXX=unsupported
14186	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14187	  # support --undefined.  This deserves some investigation.  FIXME
14188	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14189	else
14190	  ld_shlibs_CXX=no
14191	fi
14192	;;
14193
14194      chorus*)
14195        case $cc_basename in
14196          *)
14197	  # FIXME: insert proper C++ library support
14198	  ld_shlibs_CXX=no
14199	  ;;
14200        esac
14201        ;;
14202
14203      cygwin* | mingw* | pw32* | cegcc*)
14204	case $GXX,$cc_basename in
14205	,cl* | no,cl*)
14206	  # Native MSVC
14207	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14208	  # no search path for DLLs.
14209	  hardcode_libdir_flag_spec_CXX=' '
14210	  allow_undefined_flag_CXX=unsupported
14211	  always_export_symbols_CXX=yes
14212	  file_list_spec_CXX='@'
14213	  # Tell ltmain to make .lib files, not .a files.
14214	  libext=lib
14215	  # Tell ltmain to make .dll files, not .so files.
14216	  shrext_cmds=.dll
14217	  # FIXME: Setting linknames here is a bad hack.
14218	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14219	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14220              cp "$export_symbols" "$output_objdir/$soname.def";
14221              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14222            else
14223              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14224            fi~
14225            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14226            linknames='
14227	  # The linker will not automatically build a static lib if we build a DLL.
14228	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14229	  enable_shared_with_static_runtimes_CXX=yes
14230	  # Don't use ranlib
14231	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14232	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14233            lt_tool_outputfile="@TOOL_OUTPUT@"~
14234            case $lt_outputfile in
14235              *.exe|*.EXE) ;;
14236              *)
14237                lt_outputfile=$lt_outputfile.exe
14238                lt_tool_outputfile=$lt_tool_outputfile.exe
14239                ;;
14240            esac~
14241            func_to_tool_file "$lt_outputfile"~
14242            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14243              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14244              $RM "$lt_outputfile.manifest";
14245            fi'
14246	  ;;
14247	*)
14248	  # g++
14249	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14250	  # as there is no search path for DLLs.
14251	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14252	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14253	  allow_undefined_flag_CXX=unsupported
14254	  always_export_symbols_CXX=no
14255	  enable_shared_with_static_runtimes_CXX=yes
14256
14257	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14258	    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'
14259	    # If the export-symbols file already is a .def file, use it as
14260	    # is; otherwise, prepend EXPORTS...
14261	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14262              cp $export_symbols $output_objdir/$soname.def;
14263            else
14264              echo EXPORTS > $output_objdir/$soname.def;
14265              cat $export_symbols >> $output_objdir/$soname.def;
14266            fi~
14267            $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'
14268	  else
14269	    ld_shlibs_CXX=no
14270	  fi
14271	  ;;
14272	esac
14273	;;
14274      darwin* | rhapsody*)
14275
14276
14277  archive_cmds_need_lc_CXX=no
14278  hardcode_direct_CXX=no
14279  hardcode_automatic_CXX=yes
14280  hardcode_shlibpath_var_CXX=unsupported
14281  if test yes = "$lt_cv_ld_force_load"; then
14282    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\"`'
14283
14284  else
14285    whole_archive_flag_spec_CXX=''
14286  fi
14287  link_all_deplibs_CXX=yes
14288  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14289  case $cc_basename in
14290     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14291     *) _lt_dar_can_shared=$GCC ;;
14292  esac
14293  if test yes = "$_lt_dar_can_shared"; then
14294    output_verbose_link_cmd=func_echo_all
14295    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"
14296    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14297    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"
14298    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"
14299       if test yes != "$lt_cv_apple_cc_single_mod"; then
14300      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"
14301      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"
14302    fi
14303
14304  else
14305  ld_shlibs_CXX=no
14306  fi
14307
14308	;;
14309
14310      os2*)
14311	hardcode_libdir_flag_spec_CXX='-L$libdir'
14312	hardcode_minus_L_CXX=yes
14313	allow_undefined_flag_CXX=unsupported
14314	shrext_cmds=.dll
14315	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14316	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14317	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14318	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14319	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14320	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14321	  emximp -o $lib $output_objdir/$libname.def'
14322	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14323	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14324	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14325	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14326	  prefix_cmds="$SED"~
14327	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14328	    prefix_cmds="$prefix_cmds -e 1d";
14329	  fi~
14330	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14331	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14332	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14333	  emximp -o $lib $output_objdir/$libname.def'
14334	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14335	enable_shared_with_static_runtimes_CXX=yes
14336	;;
14337
14338      dgux*)
14339        case $cc_basename in
14340          ec++*)
14341	    # FIXME: insert proper C++ library support
14342	    ld_shlibs_CXX=no
14343	    ;;
14344          ghcx*)
14345	    # Green Hills C++ Compiler
14346	    # FIXME: insert proper C++ library support
14347	    ld_shlibs_CXX=no
14348	    ;;
14349          *)
14350	    # FIXME: insert proper C++ library support
14351	    ld_shlibs_CXX=no
14352	    ;;
14353        esac
14354        ;;
14355
14356      freebsd2.*)
14357        # C++ shared libraries reported to be fairly broken before
14358	# switch to ELF
14359        ld_shlibs_CXX=no
14360        ;;
14361
14362      freebsd-elf*)
14363        archive_cmds_need_lc_CXX=no
14364        ;;
14365
14366      freebsd* | dragonfly*)
14367        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14368        # conventions
14369        ld_shlibs_CXX=yes
14370        ;;
14371
14372      haiku*)
14373        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14374        link_all_deplibs_CXX=yes
14375        ;;
14376
14377      hpux9*)
14378        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14379        hardcode_libdir_separator_CXX=:
14380        export_dynamic_flag_spec_CXX='$wl-E'
14381        hardcode_direct_CXX=yes
14382        hardcode_minus_L_CXX=yes # Not in the search PATH,
14383				             # but as the default
14384				             # location of the library.
14385
14386        case $cc_basename in
14387          CC*)
14388            # FIXME: insert proper C++ library support
14389            ld_shlibs_CXX=no
14390            ;;
14391          aCC*)
14392            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'
14393            # Commands to make compiler produce verbose output that lists
14394            # what "hidden" libraries, object files and flags are used when
14395            # linking a shared library.
14396            #
14397            # There doesn't appear to be a way to prevent this compiler from
14398            # explicitly linking system object files so we need to strip them
14399            # from the output so that they don't get included in the library
14400            # dependencies.
14401            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"'
14402            ;;
14403          *)
14404            if test yes = "$GXX"; then
14405              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'
14406            else
14407              # FIXME: insert proper C++ library support
14408              ld_shlibs_CXX=no
14409            fi
14410            ;;
14411        esac
14412        ;;
14413
14414      hpux10*|hpux11*)
14415        if test no = "$with_gnu_ld"; then
14416	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14417	  hardcode_libdir_separator_CXX=:
14418
14419          case $host_cpu in
14420            hppa*64*|ia64*)
14421              ;;
14422            *)
14423	      export_dynamic_flag_spec_CXX='$wl-E'
14424              ;;
14425          esac
14426        fi
14427        case $host_cpu in
14428          hppa*64*|ia64*)
14429            hardcode_direct_CXX=no
14430            hardcode_shlibpath_var_CXX=no
14431            ;;
14432          *)
14433            hardcode_direct_CXX=yes
14434            hardcode_direct_absolute_CXX=yes
14435            hardcode_minus_L_CXX=yes # Not in the search PATH,
14436					         # but as the default
14437					         # location of the library.
14438            ;;
14439        esac
14440
14441        case $cc_basename in
14442          CC*)
14443	    # FIXME: insert proper C++ library support
14444	    ld_shlibs_CXX=no
14445	    ;;
14446          aCC*)
14447	    case $host_cpu in
14448	      hppa*64*)
14449	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14450	        ;;
14451	      ia64*)
14452	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14453	        ;;
14454	      *)
14455	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14456	        ;;
14457	    esac
14458	    # Commands to make compiler produce verbose output that lists
14459	    # what "hidden" libraries, object files and flags are used when
14460	    # linking a shared library.
14461	    #
14462	    # There doesn't appear to be a way to prevent this compiler from
14463	    # explicitly linking system object files so we need to strip them
14464	    # from the output so that they don't get included in the library
14465	    # dependencies.
14466	    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"'
14467	    ;;
14468          *)
14469	    if test yes = "$GXX"; then
14470	      if test no = "$with_gnu_ld"; then
14471	        case $host_cpu in
14472	          hppa*64*)
14473	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14474	            ;;
14475	          ia64*)
14476	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14477	            ;;
14478	          *)
14479	            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'
14480	            ;;
14481	        esac
14482	      fi
14483	    else
14484	      # FIXME: insert proper C++ library support
14485	      ld_shlibs_CXX=no
14486	    fi
14487	    ;;
14488        esac
14489        ;;
14490
14491      interix[3-9]*)
14492	hardcode_direct_CXX=no
14493	hardcode_shlibpath_var_CXX=no
14494	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14495	export_dynamic_flag_spec_CXX='$wl-E'
14496	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14497	# Instead, shared libraries are loaded at an image base (0x10000000 by
14498	# default) and relocated if they conflict, which is a slow very memory
14499	# consuming and fragmenting process.  To avoid this, we pick a random,
14500	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14501	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14502	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'
14503	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'
14504	;;
14505      irix5* | irix6*)
14506        case $cc_basename in
14507          CC*)
14508	    # SGI C++
14509	    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'
14510
14511	    # Archives containing C++ object files must be created using
14512	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14513	    # necessary to make sure instantiated templates are included
14514	    # in the archive.
14515	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14516	    ;;
14517          *)
14518	    if test yes = "$GXX"; then
14519	      if test no = "$with_gnu_ld"; then
14520	        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'
14521	      else
14522	        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'
14523	      fi
14524	    fi
14525	    link_all_deplibs_CXX=yes
14526	    ;;
14527        esac
14528        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14529        hardcode_libdir_separator_CXX=:
14530        inherit_rpath_CXX=yes
14531        ;;
14532
14533      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14534        case $cc_basename in
14535          KCC*)
14536	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14537
14538	    # KCC will only create a shared library if the output file
14539	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14540	    # to its proper name (with version) after linking.
14541	    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'
14542	    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'
14543	    # Commands to make compiler produce verbose output that lists
14544	    # what "hidden" libraries, object files and flags are used when
14545	    # linking a shared library.
14546	    #
14547	    # There doesn't appear to be a way to prevent this compiler from
14548	    # explicitly linking system object files so we need to strip them
14549	    # from the output so that they don't get included in the library
14550	    # dependencies.
14551	    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"'
14552
14553	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14554	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14555
14556	    # Archives containing C++ object files must be created using
14557	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14558	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14559	    ;;
14560	  icpc* | ecpc* )
14561	    # Intel C++
14562	    with_gnu_ld=yes
14563	    # version 8.0 and above of icpc choke on multiply defined symbols
14564	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14565	    # earlier do not add the objects themselves.
14566	    case `$CC -V 2>&1` in
14567	      *"Version 7."*)
14568	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14569		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'
14570		;;
14571	      *)  # Version 8.0 or newer
14572	        tmp_idyn=
14573	        case $host_cpu in
14574		  ia64*) tmp_idyn=' -i_dynamic';;
14575		esac
14576	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14577		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'
14578		;;
14579	    esac
14580	    archive_cmds_need_lc_CXX=no
14581	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14582	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14583	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14584	    ;;
14585          pgCC* | pgcpp*)
14586            # Portland Group C++ compiler
14587	    case `$CC -V` in
14588	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14589	      prelink_cmds_CXX='tpldir=Template.dir~
14590               rm -rf $tpldir~
14591               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14592               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14593	      old_archive_cmds_CXX='tpldir=Template.dir~
14594                rm -rf $tpldir~
14595                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14596                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14597                $RANLIB $oldlib'
14598	      archive_cmds_CXX='tpldir=Template.dir~
14599                rm -rf $tpldir~
14600                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14601                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14602	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14603                rm -rf $tpldir~
14604                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14605                $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'
14606	      ;;
14607	    *) # Version 6 and above use weak symbols
14608	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14609	      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'
14610	      ;;
14611	    esac
14612
14613	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14614	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14615	    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'
14616            ;;
14617	  cxx*)
14618	    # Compaq C++
14619	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14620	    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'
14621
14622	    runpath_var=LD_RUN_PATH
14623	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14624	    hardcode_libdir_separator_CXX=:
14625
14626	    # Commands to make compiler produce verbose output that lists
14627	    # what "hidden" libraries, object files and flags are used when
14628	    # linking a shared library.
14629	    #
14630	    # There doesn't appear to be a way to prevent this compiler from
14631	    # explicitly linking system object files so we need to strip them
14632	    # from the output so that they don't get included in the library
14633	    # dependencies.
14634	    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'
14635	    ;;
14636	  xl* | mpixl* | bgxl*)
14637	    # IBM XL 8.0 on PPC, with GNU ld
14638	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14639	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14640	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14641	    if test yes = "$supports_anon_versioning"; then
14642	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14643                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14644                echo "local: *; };" >> $output_objdir/$libname.ver~
14645                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14646	    fi
14647	    ;;
14648	  *)
14649	    case `$CC -V 2>&1 | sed 5q` in
14650	    *Sun\ C*)
14651	      # Sun C++ 5.9
14652	      no_undefined_flag_CXX=' -zdefs'
14653	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14654	      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'
14655	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14656	      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'
14657	      compiler_needs_object_CXX=yes
14658
14659	      # Not sure whether something based on
14660	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14661	      # would be better.
14662	      output_verbose_link_cmd='func_echo_all'
14663
14664	      # Archives containing C++ object files must be created using
14665	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14666	      # necessary to make sure instantiated templates are included
14667	      # in the archive.
14668	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14669	      ;;
14670	    esac
14671	    ;;
14672	esac
14673	;;
14674
14675      lynxos*)
14676        # FIXME: insert proper C++ library support
14677	ld_shlibs_CXX=no
14678	;;
14679
14680      m88k*)
14681        # FIXME: insert proper C++ library support
14682        ld_shlibs_CXX=no
14683	;;
14684
14685      mvs*)
14686        case $cc_basename in
14687          cxx*)
14688	    # FIXME: insert proper C++ library support
14689	    ld_shlibs_CXX=no
14690	    ;;
14691	  *)
14692	    # FIXME: insert proper C++ library support
14693	    ld_shlibs_CXX=no
14694	    ;;
14695	esac
14696	;;
14697
14698      netbsd*)
14699        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14700	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14701	  wlarc=
14702	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14703	  hardcode_direct_CXX=yes
14704	  hardcode_shlibpath_var_CXX=no
14705	fi
14706	# Workaround some broken pre-1.5 toolchains
14707	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14708	;;
14709
14710      *nto* | *qnx*)
14711        ld_shlibs_CXX=yes
14712	;;
14713
14714      openbsd* | bitrig*)
14715	if test -f /usr/libexec/ld.so; then
14716	  hardcode_direct_CXX=yes
14717	  hardcode_shlibpath_var_CXX=no
14718	  hardcode_direct_absolute_CXX=yes
14719	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14720	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14721	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14722	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14723	    export_dynamic_flag_spec_CXX='$wl-E'
14724	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14725	  fi
14726	  output_verbose_link_cmd=func_echo_all
14727	else
14728	  ld_shlibs_CXX=no
14729	fi
14730	;;
14731
14732      osf3* | osf4* | osf5*)
14733        case $cc_basename in
14734          KCC*)
14735	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14736
14737	    # KCC will only create a shared library if the output file
14738	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14739	    # to its proper name (with version) after linking.
14740	    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'
14741
14742	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14743	    hardcode_libdir_separator_CXX=:
14744
14745	    # Archives containing C++ object files must be created using
14746	    # the KAI C++ compiler.
14747	    case $host in
14748	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14749	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14750	    esac
14751	    ;;
14752          RCC*)
14753	    # Rational C++ 2.4.1
14754	    # FIXME: insert proper C++ library support
14755	    ld_shlibs_CXX=no
14756	    ;;
14757          cxx*)
14758	    case $host in
14759	      osf3*)
14760	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14761	        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'
14762	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14763		;;
14764	      *)
14765	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14766	        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'
14767	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14768                  echo "-hidden">> $lib.exp~
14769                  $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~
14770                  $RM $lib.exp'
14771	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14772		;;
14773	    esac
14774
14775	    hardcode_libdir_separator_CXX=:
14776
14777	    # Commands to make compiler produce verbose output that lists
14778	    # what "hidden" libraries, object files and flags are used when
14779	    # linking a shared library.
14780	    #
14781	    # There doesn't appear to be a way to prevent this compiler from
14782	    # explicitly linking system object files so we need to strip them
14783	    # from the output so that they don't get included in the library
14784	    # dependencies.
14785	    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"'
14786	    ;;
14787	  *)
14788	    if test yes,no = "$GXX,$with_gnu_ld"; then
14789	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14790	      case $host in
14791	        osf3*)
14792	          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'
14793		  ;;
14794	        *)
14795	          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'
14796		  ;;
14797	      esac
14798
14799	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14800	      hardcode_libdir_separator_CXX=:
14801
14802	      # Commands to make compiler produce verbose output that lists
14803	      # what "hidden" libraries, object files and flags are used when
14804	      # linking a shared library.
14805	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14806
14807	    else
14808	      # FIXME: insert proper C++ library support
14809	      ld_shlibs_CXX=no
14810	    fi
14811	    ;;
14812        esac
14813        ;;
14814
14815      psos*)
14816        # FIXME: insert proper C++ library support
14817        ld_shlibs_CXX=no
14818        ;;
14819
14820      sunos4*)
14821        case $cc_basename in
14822          CC*)
14823	    # Sun C++ 4.x
14824	    # FIXME: insert proper C++ library support
14825	    ld_shlibs_CXX=no
14826	    ;;
14827          lcc*)
14828	    # Lucid
14829	    # FIXME: insert proper C++ library support
14830	    ld_shlibs_CXX=no
14831	    ;;
14832          *)
14833	    # FIXME: insert proper C++ library support
14834	    ld_shlibs_CXX=no
14835	    ;;
14836        esac
14837        ;;
14838
14839      solaris*)
14840        case $cc_basename in
14841          CC* | sunCC*)
14842	    # Sun C++ 4.2, 5.x and Centerline C++
14843            archive_cmds_need_lc_CXX=yes
14844	    no_undefined_flag_CXX=' -zdefs'
14845	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14846	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14847              $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'
14848
14849	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14850	    hardcode_shlibpath_var_CXX=no
14851	    case $host_os in
14852	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14853	      *)
14854		# The compiler driver will combine and reorder linker options,
14855		# but understands '-z linker_flag'.
14856	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14857		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14858	        ;;
14859	    esac
14860	    link_all_deplibs_CXX=yes
14861
14862	    output_verbose_link_cmd='func_echo_all'
14863
14864	    # Archives containing C++ object files must be created using
14865	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14866	    # necessary to make sure instantiated templates are included
14867	    # in the archive.
14868	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14869	    ;;
14870          gcx*)
14871	    # Green Hills C++ Compiler
14872	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14873
14874	    # The C++ compiler must be used to create the archive.
14875	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14876	    ;;
14877          *)
14878	    # GNU C++ compiler with Solaris linker
14879	    if test yes,no = "$GXX,$with_gnu_ld"; then
14880	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14881	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14882	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14883	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14884                  $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'
14885
14886	        # Commands to make compiler produce verbose output that lists
14887	        # what "hidden" libraries, object files and flags are used when
14888	        # linking a shared library.
14889	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14890	      else
14891	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14892	        # platform.
14893	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14894	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14895                  $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'
14896
14897	        # Commands to make compiler produce verbose output that lists
14898	        # what "hidden" libraries, object files and flags are used when
14899	        # linking a shared library.
14900	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14901	      fi
14902
14903	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14904	      case $host_os in
14905		solaris2.[0-5] | solaris2.[0-5].*) ;;
14906		*)
14907		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14908		  ;;
14909	      esac
14910	    fi
14911	    ;;
14912        esac
14913        ;;
14914
14915    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14916      no_undefined_flag_CXX='$wl-z,text'
14917      archive_cmds_need_lc_CXX=no
14918      hardcode_shlibpath_var_CXX=no
14919      runpath_var='LD_RUN_PATH'
14920
14921      case $cc_basename in
14922        CC*)
14923	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14924	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14925	  ;;
14926	*)
14927	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14928	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14929	  ;;
14930      esac
14931      ;;
14932
14933      sysv5* | sco3.2v5* | sco5v6*)
14934	# Note: We CANNOT use -z defs as we might desire, because we do not
14935	# link with -lc, and that would cause any symbols used from libc to
14936	# always be unresolved, which means just about no library would
14937	# ever link correctly.  If we're not using GNU ld we use -z text
14938	# though, which does catch some bad symbols but isn't as heavy-handed
14939	# as -z defs.
14940	no_undefined_flag_CXX='$wl-z,text'
14941	allow_undefined_flag_CXX='$wl-z,nodefs'
14942	archive_cmds_need_lc_CXX=no
14943	hardcode_shlibpath_var_CXX=no
14944	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14945	hardcode_libdir_separator_CXX=':'
14946	link_all_deplibs_CXX=yes
14947	export_dynamic_flag_spec_CXX='$wl-Bexport'
14948	runpath_var='LD_RUN_PATH'
14949
14950	case $cc_basename in
14951          CC*)
14952	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14953	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14954	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14955              '"$old_archive_cmds_CXX"
14956	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14957              '"$reload_cmds_CXX"
14958	    ;;
14959	  *)
14960	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14961	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14962	    ;;
14963	esac
14964      ;;
14965
14966      tandem*)
14967        case $cc_basename in
14968          NCC*)
14969	    # NonStop-UX NCC 3.20
14970	    # FIXME: insert proper C++ library support
14971	    ld_shlibs_CXX=no
14972	    ;;
14973          *)
14974	    # FIXME: insert proper C++ library support
14975	    ld_shlibs_CXX=no
14976	    ;;
14977        esac
14978        ;;
14979
14980      vxworks*)
14981        # FIXME: insert proper C++ library support
14982        ld_shlibs_CXX=no
14983        ;;
14984
14985      *)
14986        # FIXME: insert proper C++ library support
14987        ld_shlibs_CXX=no
14988        ;;
14989    esac
14990
14991    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14992$as_echo "$ld_shlibs_CXX" >&6; }
14993    test no = "$ld_shlibs_CXX" && can_build_shared=no
14994
14995    GCC_CXX=$GXX
14996    LD_CXX=$LD
14997
14998    ## CAVEAT EMPTOR:
14999    ## There is no encapsulation within the following macros, do not change
15000    ## the running order or otherwise move them around unless you know exactly
15001    ## what you are doing...
15002    # Dependencies to place before and after the object being linked:
15003predep_objects_CXX=
15004postdep_objects_CXX=
15005predeps_CXX=
15006postdeps_CXX=
15007compiler_lib_search_path_CXX=
15008
15009cat > conftest.$ac_ext <<_LT_EOF
15010class Foo
15011{
15012public:
15013  Foo (void) { a = 0; }
15014private:
15015  int a;
15016};
15017_LT_EOF
15018
15019
15020_lt_libdeps_save_CFLAGS=$CFLAGS
15021case "$CC $CFLAGS " in #(
15022*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15023*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15024*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15025esac
15026
15027if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15028  (eval $ac_compile) 2>&5
15029  ac_status=$?
15030  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15031  test $ac_status = 0; }; then
15032  # Parse the compiler output and extract the necessary
15033  # objects, libraries and library flags.
15034
15035  # Sentinel used to keep track of whether or not we are before
15036  # the conftest object file.
15037  pre_test_object_deps_done=no
15038
15039  for p in `eval "$output_verbose_link_cmd"`; do
15040    case $prev$p in
15041
15042    -L* | -R* | -l*)
15043       # Some compilers place space between "-{L,R}" and the path.
15044       # Remove the space.
15045       if test x-L = "$p" ||
15046          test x-R = "$p"; then
15047	 prev=$p
15048	 continue
15049       fi
15050
15051       # Expand the sysroot to ease extracting the directories later.
15052       if test -z "$prev"; then
15053         case $p in
15054         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15055         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15056         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15057         esac
15058       fi
15059       case $p in
15060       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15061       esac
15062       if test no = "$pre_test_object_deps_done"; then
15063	 case $prev in
15064	 -L | -R)
15065	   # Internal compiler library paths should come after those
15066	   # provided the user.  The postdeps already come after the
15067	   # user supplied libs so there is no need to process them.
15068	   if test -z "$compiler_lib_search_path_CXX"; then
15069	     compiler_lib_search_path_CXX=$prev$p
15070	   else
15071	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15072	   fi
15073	   ;;
15074	 # The "-l" case would never come before the object being
15075	 # linked, so don't bother handling this case.
15076	 esac
15077       else
15078	 if test -z "$postdeps_CXX"; then
15079	   postdeps_CXX=$prev$p
15080	 else
15081	   postdeps_CXX="${postdeps_CXX} $prev$p"
15082	 fi
15083       fi
15084       prev=
15085       ;;
15086
15087    *.lto.$objext) ;; # Ignore GCC LTO objects
15088    *.$objext)
15089       # This assumes that the test object file only shows up
15090       # once in the compiler output.
15091       if test "$p" = "conftest.$objext"; then
15092	 pre_test_object_deps_done=yes
15093	 continue
15094       fi
15095
15096       if test no = "$pre_test_object_deps_done"; then
15097	 if test -z "$predep_objects_CXX"; then
15098	   predep_objects_CXX=$p
15099	 else
15100	   predep_objects_CXX="$predep_objects_CXX $p"
15101	 fi
15102       else
15103	 if test -z "$postdep_objects_CXX"; then
15104	   postdep_objects_CXX=$p
15105	 else
15106	   postdep_objects_CXX="$postdep_objects_CXX $p"
15107	 fi
15108       fi
15109       ;;
15110
15111    *) ;; # Ignore the rest.
15112
15113    esac
15114  done
15115
15116  # Clean up.
15117  rm -f a.out a.exe
15118else
15119  echo "libtool.m4: error: problem compiling CXX test program"
15120fi
15121
15122$RM -f confest.$objext
15123CFLAGS=$_lt_libdeps_save_CFLAGS
15124
15125# PORTME: override above test on systems where it is broken
15126case $host_os in
15127interix[3-9]*)
15128  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15129  # hack all around it, let's just trust "g++" to DTRT.
15130  predep_objects_CXX=
15131  postdep_objects_CXX=
15132  postdeps_CXX=
15133  ;;
15134esac
15135
15136
15137case " $postdeps_CXX " in
15138*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15139esac
15140 compiler_lib_search_dirs_CXX=
15141if test -n "${compiler_lib_search_path_CXX}"; then
15142 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15143fi
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175    lt_prog_compiler_wl_CXX=
15176lt_prog_compiler_pic_CXX=
15177lt_prog_compiler_static_CXX=
15178
15179
15180  # C++ specific cases for pic, static, wl, etc.
15181  if test yes = "$GXX"; then
15182    lt_prog_compiler_wl_CXX='-Wl,'
15183    lt_prog_compiler_static_CXX='-static'
15184
15185    case $host_os in
15186    aix*)
15187      # All AIX code is PIC.
15188      if test ia64 = "$host_cpu"; then
15189	# AIX 5 now supports IA64 processor
15190	lt_prog_compiler_static_CXX='-Bstatic'
15191      fi
15192      lt_prog_compiler_pic_CXX='-fPIC'
15193      ;;
15194
15195    amigaos*)
15196      case $host_cpu in
15197      powerpc)
15198            # see comment about AmigaOS4 .so support
15199            lt_prog_compiler_pic_CXX='-fPIC'
15200        ;;
15201      m68k)
15202            # FIXME: we need at least 68020 code to build shared libraries, but
15203            # adding the '-m68020' flag to GCC prevents building anything better,
15204            # like '-m68040'.
15205            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15206        ;;
15207      esac
15208      ;;
15209
15210    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15211      # PIC is the default for these OSes.
15212      ;;
15213    mingw* | cygwin* | os2* | pw32* | cegcc*)
15214      # This hack is so that the source file can tell whether it is being
15215      # built for inclusion in a dll (and should export symbols for example).
15216      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15217      # (--disable-auto-import) libraries
15218      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15219      case $host_os in
15220      os2*)
15221	lt_prog_compiler_static_CXX='$wl-static'
15222	;;
15223      esac
15224      ;;
15225    darwin* | rhapsody*)
15226      # PIC is the default on this platform
15227      # Common symbols not allowed in MH_DYLIB files
15228      lt_prog_compiler_pic_CXX='-fno-common'
15229      ;;
15230    *djgpp*)
15231      # DJGPP does not support shared libraries at all
15232      lt_prog_compiler_pic_CXX=
15233      ;;
15234    haiku*)
15235      # PIC is the default for Haiku.
15236      # The "-static" flag exists, but is broken.
15237      lt_prog_compiler_static_CXX=
15238      ;;
15239    interix[3-9]*)
15240      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15241      # Instead, we relocate shared libraries at runtime.
15242      ;;
15243    sysv4*MP*)
15244      if test -d /usr/nec; then
15245	lt_prog_compiler_pic_CXX=-Kconform_pic
15246      fi
15247      ;;
15248    hpux*)
15249      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15250      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15251      # sets the default TLS model and affects inlining.
15252      case $host_cpu in
15253      hppa*64*)
15254	;;
15255      *)
15256	lt_prog_compiler_pic_CXX='-fPIC'
15257	;;
15258      esac
15259      ;;
15260    *qnx* | *nto*)
15261      # QNX uses GNU C++, but need to define -shared option too, otherwise
15262      # it will coredump.
15263      lt_prog_compiler_pic_CXX='-fPIC -shared'
15264      ;;
15265    *)
15266      lt_prog_compiler_pic_CXX='-fPIC'
15267      ;;
15268    esac
15269  else
15270    case $host_os in
15271      aix[4-9]*)
15272	# All AIX code is PIC.
15273	if test ia64 = "$host_cpu"; then
15274	  # AIX 5 now supports IA64 processor
15275	  lt_prog_compiler_static_CXX='-Bstatic'
15276	else
15277	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15278	fi
15279	;;
15280      chorus*)
15281	case $cc_basename in
15282	cxch68*)
15283	  # Green Hills C++ Compiler
15284	  # _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"
15285	  ;;
15286	esac
15287	;;
15288      mingw* | cygwin* | os2* | pw32* | cegcc*)
15289	# This hack is so that the source file can tell whether it is being
15290	# built for inclusion in a dll (and should export symbols for example).
15291	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15292	;;
15293      dgux*)
15294	case $cc_basename in
15295	  ec++*)
15296	    lt_prog_compiler_pic_CXX='-KPIC'
15297	    ;;
15298	  ghcx*)
15299	    # Green Hills C++ Compiler
15300	    lt_prog_compiler_pic_CXX='-pic'
15301	    ;;
15302	  *)
15303	    ;;
15304	esac
15305	;;
15306      freebsd* | dragonfly*)
15307	# FreeBSD uses GNU C++
15308	;;
15309      hpux9* | hpux10* | hpux11*)
15310	case $cc_basename in
15311	  CC*)
15312	    lt_prog_compiler_wl_CXX='-Wl,'
15313	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15314	    if test ia64 != "$host_cpu"; then
15315	      lt_prog_compiler_pic_CXX='+Z'
15316	    fi
15317	    ;;
15318	  aCC*)
15319	    lt_prog_compiler_wl_CXX='-Wl,'
15320	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15321	    case $host_cpu in
15322	    hppa*64*|ia64*)
15323	      # +Z the default
15324	      ;;
15325	    *)
15326	      lt_prog_compiler_pic_CXX='+Z'
15327	      ;;
15328	    esac
15329	    ;;
15330	  *)
15331	    ;;
15332	esac
15333	;;
15334      interix*)
15335	# This is c89, which is MS Visual C++ (no shared libs)
15336	# Anyone wants to do a port?
15337	;;
15338      irix5* | irix6* | nonstopux*)
15339	case $cc_basename in
15340	  CC*)
15341	    lt_prog_compiler_wl_CXX='-Wl,'
15342	    lt_prog_compiler_static_CXX='-non_shared'
15343	    # CC pic flag -KPIC is the default.
15344	    ;;
15345	  *)
15346	    ;;
15347	esac
15348	;;
15349      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15350	case $cc_basename in
15351	  KCC*)
15352	    # KAI C++ Compiler
15353	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15354	    lt_prog_compiler_pic_CXX='-fPIC'
15355	    ;;
15356	  ecpc* )
15357	    # old Intel C++ for x86_64, which still supported -KPIC.
15358	    lt_prog_compiler_wl_CXX='-Wl,'
15359	    lt_prog_compiler_pic_CXX='-KPIC'
15360	    lt_prog_compiler_static_CXX='-static'
15361	    ;;
15362	  icpc* )
15363	    # Intel C++, used to be incompatible with GCC.
15364	    # ICC 10 doesn't accept -KPIC any more.
15365	    lt_prog_compiler_wl_CXX='-Wl,'
15366	    lt_prog_compiler_pic_CXX='-fPIC'
15367	    lt_prog_compiler_static_CXX='-static'
15368	    ;;
15369	  pgCC* | pgcpp*)
15370	    # Portland Group C++ compiler
15371	    lt_prog_compiler_wl_CXX='-Wl,'
15372	    lt_prog_compiler_pic_CXX='-fpic'
15373	    lt_prog_compiler_static_CXX='-Bstatic'
15374	    ;;
15375	  cxx*)
15376	    # Compaq C++
15377	    # Make sure the PIC flag is empty.  It appears that all Alpha
15378	    # Linux and Compaq Tru64 Unix objects are PIC.
15379	    lt_prog_compiler_pic_CXX=
15380	    lt_prog_compiler_static_CXX='-non_shared'
15381	    ;;
15382	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15383	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15384	    lt_prog_compiler_wl_CXX='-Wl,'
15385	    lt_prog_compiler_pic_CXX='-qpic'
15386	    lt_prog_compiler_static_CXX='-qstaticlink'
15387	    ;;
15388	  *)
15389	    case `$CC -V 2>&1 | sed 5q` in
15390	    *Sun\ C*)
15391	      # Sun C++ 5.9
15392	      lt_prog_compiler_pic_CXX='-KPIC'
15393	      lt_prog_compiler_static_CXX='-Bstatic'
15394	      lt_prog_compiler_wl_CXX='-Qoption ld '
15395	      ;;
15396	    esac
15397	    ;;
15398	esac
15399	;;
15400      lynxos*)
15401	;;
15402      m88k*)
15403	;;
15404      mvs*)
15405	case $cc_basename in
15406	  cxx*)
15407	    lt_prog_compiler_pic_CXX='-W c,exportall'
15408	    ;;
15409	  *)
15410	    ;;
15411	esac
15412	;;
15413      netbsd*)
15414	;;
15415      *qnx* | *nto*)
15416        # QNX uses GNU C++, but need to define -shared option too, otherwise
15417        # it will coredump.
15418        lt_prog_compiler_pic_CXX='-fPIC -shared'
15419        ;;
15420      osf3* | osf4* | osf5*)
15421	case $cc_basename in
15422	  KCC*)
15423	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15424	    ;;
15425	  RCC*)
15426	    # Rational C++ 2.4.1
15427	    lt_prog_compiler_pic_CXX='-pic'
15428	    ;;
15429	  cxx*)
15430	    # Digital/Compaq C++
15431	    lt_prog_compiler_wl_CXX='-Wl,'
15432	    # Make sure the PIC flag is empty.  It appears that all Alpha
15433	    # Linux and Compaq Tru64 Unix objects are PIC.
15434	    lt_prog_compiler_pic_CXX=
15435	    lt_prog_compiler_static_CXX='-non_shared'
15436	    ;;
15437	  *)
15438	    ;;
15439	esac
15440	;;
15441      psos*)
15442	;;
15443      solaris*)
15444	case $cc_basename in
15445	  CC* | sunCC*)
15446	    # Sun C++ 4.2, 5.x and Centerline C++
15447	    lt_prog_compiler_pic_CXX='-KPIC'
15448	    lt_prog_compiler_static_CXX='-Bstatic'
15449	    lt_prog_compiler_wl_CXX='-Qoption ld '
15450	    ;;
15451	  gcx*)
15452	    # Green Hills C++ Compiler
15453	    lt_prog_compiler_pic_CXX='-PIC'
15454	    ;;
15455	  *)
15456	    ;;
15457	esac
15458	;;
15459      sunos4*)
15460	case $cc_basename in
15461	  CC*)
15462	    # Sun C++ 4.x
15463	    lt_prog_compiler_pic_CXX='-pic'
15464	    lt_prog_compiler_static_CXX='-Bstatic'
15465	    ;;
15466	  lcc*)
15467	    # Lucid
15468	    lt_prog_compiler_pic_CXX='-pic'
15469	    ;;
15470	  *)
15471	    ;;
15472	esac
15473	;;
15474      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15475	case $cc_basename in
15476	  CC*)
15477	    lt_prog_compiler_wl_CXX='-Wl,'
15478	    lt_prog_compiler_pic_CXX='-KPIC'
15479	    lt_prog_compiler_static_CXX='-Bstatic'
15480	    ;;
15481	esac
15482	;;
15483      tandem*)
15484	case $cc_basename in
15485	  NCC*)
15486	    # NonStop-UX NCC 3.20
15487	    lt_prog_compiler_pic_CXX='-KPIC'
15488	    ;;
15489	  *)
15490	    ;;
15491	esac
15492	;;
15493      vxworks*)
15494	;;
15495      *)
15496	lt_prog_compiler_can_build_shared_CXX=no
15497	;;
15498    esac
15499  fi
15500
15501case $host_os in
15502  # For platforms that do not support PIC, -DPIC is meaningless:
15503  *djgpp*)
15504    lt_prog_compiler_pic_CXX=
15505    ;;
15506  *)
15507    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15508    ;;
15509esac
15510
15511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15512$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15513if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15514  $as_echo_n "(cached) " >&6
15515else
15516  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15517fi
15518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15519$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15520lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15521
15522#
15523# Check to make sure the PIC flag actually works.
15524#
15525if test -n "$lt_prog_compiler_pic_CXX"; then
15526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15527$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15528if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15529  $as_echo_n "(cached) " >&6
15530else
15531  lt_cv_prog_compiler_pic_works_CXX=no
15532   ac_outfile=conftest.$ac_objext
15533   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15534   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15535   # Insert the option either (1) after the last *FLAGS variable, or
15536   # (2) before a word containing "conftest.", or (3) at the end.
15537   # Note that $ac_compile itself does not contain backslashes and begins
15538   # with a dollar sign (not a hyphen), so the echo should work correctly.
15539   # The option is referenced via a variable to avoid confusing sed.
15540   lt_compile=`echo "$ac_compile" | $SED \
15541   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15542   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15543   -e 's:$: $lt_compiler_flag:'`
15544   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15545   (eval "$lt_compile" 2>conftest.err)
15546   ac_status=$?
15547   cat conftest.err >&5
15548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549   if (exit $ac_status) && test -s "$ac_outfile"; then
15550     # The compiler can only warn and ignore the option if not recognized
15551     # So say no if there are warnings other than the usual output.
15552     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15553     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15554     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15555       lt_cv_prog_compiler_pic_works_CXX=yes
15556     fi
15557   fi
15558   $RM conftest*
15559
15560fi
15561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15562$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15563
15564if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15565    case $lt_prog_compiler_pic_CXX in
15566     "" | " "*) ;;
15567     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15568     esac
15569else
15570    lt_prog_compiler_pic_CXX=
15571     lt_prog_compiler_can_build_shared_CXX=no
15572fi
15573
15574fi
15575
15576
15577
15578
15579
15580#
15581# Check to make sure the static flag actually works.
15582#
15583wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15585$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15586if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15587  $as_echo_n "(cached) " >&6
15588else
15589  lt_cv_prog_compiler_static_works_CXX=no
15590   save_LDFLAGS=$LDFLAGS
15591   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15592   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15593   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15594     # The linker can only warn and ignore the option if not recognized
15595     # So say no if there are warnings
15596     if test -s conftest.err; then
15597       # Append any errors to the config.log.
15598       cat conftest.err 1>&5
15599       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15600       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15601       if diff conftest.exp conftest.er2 >/dev/null; then
15602         lt_cv_prog_compiler_static_works_CXX=yes
15603       fi
15604     else
15605       lt_cv_prog_compiler_static_works_CXX=yes
15606     fi
15607   fi
15608   $RM -r conftest*
15609   LDFLAGS=$save_LDFLAGS
15610
15611fi
15612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15613$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15614
15615if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15616    :
15617else
15618    lt_prog_compiler_static_CXX=
15619fi
15620
15621
15622
15623
15624    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15625$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15626if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15627  $as_echo_n "(cached) " >&6
15628else
15629  lt_cv_prog_compiler_c_o_CXX=no
15630   $RM -r conftest 2>/dev/null
15631   mkdir conftest
15632   cd conftest
15633   mkdir out
15634   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15635
15636   lt_compiler_flag="-o out/conftest2.$ac_objext"
15637   # Insert the option either (1) after the last *FLAGS variable, or
15638   # (2) before a word containing "conftest.", or (3) at the end.
15639   # Note that $ac_compile itself does not contain backslashes and begins
15640   # with a dollar sign (not a hyphen), so the echo should work correctly.
15641   lt_compile=`echo "$ac_compile" | $SED \
15642   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15643   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15644   -e 's:$: $lt_compiler_flag:'`
15645   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15646   (eval "$lt_compile" 2>out/conftest.err)
15647   ac_status=$?
15648   cat out/conftest.err >&5
15649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15651   then
15652     # The compiler can only warn and ignore the option if not recognized
15653     # So say no if there are warnings
15654     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15655     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15656     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15657       lt_cv_prog_compiler_c_o_CXX=yes
15658     fi
15659   fi
15660   chmod u+w . 2>&5
15661   $RM conftest*
15662   # SGI C++ compiler will create directory out/ii_files/ for
15663   # template instantiation
15664   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15665   $RM out/* && rmdir out
15666   cd ..
15667   $RM -r conftest
15668   $RM conftest*
15669
15670fi
15671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15672$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15673
15674
15675
15676    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15677$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15678if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15679  $as_echo_n "(cached) " >&6
15680else
15681  lt_cv_prog_compiler_c_o_CXX=no
15682   $RM -r conftest 2>/dev/null
15683   mkdir conftest
15684   cd conftest
15685   mkdir out
15686   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15687
15688   lt_compiler_flag="-o out/conftest2.$ac_objext"
15689   # Insert the option either (1) after the last *FLAGS variable, or
15690   # (2) before a word containing "conftest.", or (3) at the end.
15691   # Note that $ac_compile itself does not contain backslashes and begins
15692   # with a dollar sign (not a hyphen), so the echo should work correctly.
15693   lt_compile=`echo "$ac_compile" | $SED \
15694   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15695   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15696   -e 's:$: $lt_compiler_flag:'`
15697   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15698   (eval "$lt_compile" 2>out/conftest.err)
15699   ac_status=$?
15700   cat out/conftest.err >&5
15701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15703   then
15704     # The compiler can only warn and ignore the option if not recognized
15705     # So say no if there are warnings
15706     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15707     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15708     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15709       lt_cv_prog_compiler_c_o_CXX=yes
15710     fi
15711   fi
15712   chmod u+w . 2>&5
15713   $RM conftest*
15714   # SGI C++ compiler will create directory out/ii_files/ for
15715   # template instantiation
15716   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15717   $RM out/* && rmdir out
15718   cd ..
15719   $RM -r conftest
15720   $RM conftest*
15721
15722fi
15723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15724$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15725
15726
15727
15728
15729hard_links=nottested
15730if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15731  # do not overwrite the value of need_locks provided by the user
15732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15733$as_echo_n "checking if we can lock with hard links... " >&6; }
15734  hard_links=yes
15735  $RM conftest*
15736  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15737  touch conftest.a
15738  ln conftest.a conftest.b 2>&5 || hard_links=no
15739  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15741$as_echo "$hard_links" >&6; }
15742  if test no = "$hard_links"; then
15743    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15744$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15745    need_locks=warn
15746  fi
15747else
15748  need_locks=no
15749fi
15750
15751
15752
15753    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15754$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15755
15756  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15757  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15758  case $host_os in
15759  aix[4-9]*)
15760    # If we're using GNU nm, then we don't want the "-C" option.
15761    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15762    # Without the "-l" option, or with the "-B" option, AIX nm treats
15763    # weak defined symbols like other global defined symbols, whereas
15764    # GNU nm marks them as "W".
15765    # While the 'weak' keyword is ignored in the Export File, we need
15766    # it in the Import File for the 'aix-soname' feature, so we have
15767    # to replace the "-B" option with "-P" for AIX nm.
15768    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15769      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'
15770    else
15771      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'
15772    fi
15773    ;;
15774  pw32*)
15775    export_symbols_cmds_CXX=$ltdll_cmds
15776    ;;
15777  cygwin* | mingw* | cegcc*)
15778    case $cc_basename in
15779    cl*)
15780      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15781      ;;
15782    *)
15783      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'
15784      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15785      ;;
15786    esac
15787    ;;
15788  *)
15789    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15790    ;;
15791  esac
15792
15793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15794$as_echo "$ld_shlibs_CXX" >&6; }
15795test no = "$ld_shlibs_CXX" && can_build_shared=no
15796
15797with_gnu_ld_CXX=$with_gnu_ld
15798
15799
15800
15801
15802
15803
15804#
15805# Do we need to explicitly link libc?
15806#
15807case "x$archive_cmds_need_lc_CXX" in
15808x|xyes)
15809  # Assume -lc should be added
15810  archive_cmds_need_lc_CXX=yes
15811
15812  if test yes,yes = "$GCC,$enable_shared"; then
15813    case $archive_cmds_CXX in
15814    *'~'*)
15815      # FIXME: we may have to deal with multi-command sequences.
15816      ;;
15817    '$CC '*)
15818      # Test whether the compiler implicitly links with -lc since on some
15819      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15820      # to ld, don't add -lc before -lgcc.
15821      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15822$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15823if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15824  $as_echo_n "(cached) " >&6
15825else
15826  $RM conftest*
15827	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15828
15829	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15830  (eval $ac_compile) 2>&5
15831  ac_status=$?
15832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15833  test $ac_status = 0; } 2>conftest.err; then
15834	  soname=conftest
15835	  lib=conftest
15836	  libobjs=conftest.$ac_objext
15837	  deplibs=
15838	  wl=$lt_prog_compiler_wl_CXX
15839	  pic_flag=$lt_prog_compiler_pic_CXX
15840	  compiler_flags=-v
15841	  linker_flags=-v
15842	  verstring=
15843	  output_objdir=.
15844	  libname=conftest
15845	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15846	  allow_undefined_flag_CXX=
15847	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15848  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15849  ac_status=$?
15850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15851  test $ac_status = 0; }
15852	  then
15853	    lt_cv_archive_cmds_need_lc_CXX=no
15854	  else
15855	    lt_cv_archive_cmds_need_lc_CXX=yes
15856	  fi
15857	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15858	else
15859	  cat conftest.err 1>&5
15860	fi
15861	$RM conftest*
15862
15863fi
15864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15865$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15866      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15867      ;;
15868    esac
15869  fi
15870  ;;
15871esac
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15935$as_echo_n "checking dynamic linker characteristics... " >&6; }
15936
15937library_names_spec=
15938libname_spec='lib$name'
15939soname_spec=
15940shrext_cmds=.so
15941postinstall_cmds=
15942postuninstall_cmds=
15943finish_cmds=
15944finish_eval=
15945shlibpath_var=
15946shlibpath_overrides_runpath=unknown
15947version_type=none
15948dynamic_linker="$host_os ld.so"
15949sys_lib_dlsearch_path_spec="/lib /usr/lib"
15950need_lib_prefix=unknown
15951hardcode_into_libs=no
15952
15953# when you set need_version to no, make sure it does not cause -set_version
15954# flags to be left without arguments
15955need_version=unknown
15956
15957
15958
15959case $host_os in
15960aix3*)
15961  version_type=linux # correct to gnu/linux during the next big refactor
15962  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15963  shlibpath_var=LIBPATH
15964
15965  # AIX 3 has no versioning support, so we append a major version to the name.
15966  soname_spec='$libname$release$shared_ext$major'
15967  ;;
15968
15969aix[4-9]*)
15970  version_type=linux # correct to gnu/linux during the next big refactor
15971  need_lib_prefix=no
15972  need_version=no
15973  hardcode_into_libs=yes
15974  if test ia64 = "$host_cpu"; then
15975    # AIX 5 supports IA64
15976    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15977    shlibpath_var=LD_LIBRARY_PATH
15978  else
15979    # With GCC up to 2.95.x, collect2 would create an import file
15980    # for dependence libraries.  The import file would start with
15981    # the line '#! .'.  This would cause the generated library to
15982    # depend on '.', always an invalid library.  This was fixed in
15983    # development snapshots of GCC prior to 3.0.
15984    case $host_os in
15985      aix4 | aix4.[01] | aix4.[01].*)
15986      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15987	   echo ' yes '
15988	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15989	:
15990      else
15991	can_build_shared=no
15992      fi
15993      ;;
15994    esac
15995    # Using Import Files as archive members, it is possible to support
15996    # filename-based versioning of shared library archives on AIX. While
15997    # this would work for both with and without runtime linking, it will
15998    # prevent static linking of such archives. So we do filename-based
15999    # shared library versioning with .so extension only, which is used
16000    # when both runtime linking and shared linking is enabled.
16001    # Unfortunately, runtime linking may impact performance, so we do
16002    # not want this to be the default eventually. Also, we use the
16003    # versioned .so libs for executables only if there is the -brtl
16004    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16005    # To allow for filename-based versioning support, we need to create
16006    # libNAME.so.V as an archive file, containing:
16007    # *) an Import File, referring to the versioned filename of the
16008    #    archive as well as the shared archive member, telling the
16009    #    bitwidth (32 or 64) of that shared object, and providing the
16010    #    list of exported symbols of that shared object, eventually
16011    #    decorated with the 'weak' keyword
16012    # *) the shared object with the F_LOADONLY flag set, to really avoid
16013    #    it being seen by the linker.
16014    # At run time we better use the real file rather than another symlink,
16015    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16016
16017    case $with_aix_soname,$aix_use_runtimelinking in
16018    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16019    # soname into executable. Probably we can add versioning support to
16020    # collect2, so additional links can be useful in future.
16021    aix,yes) # traditional libtool
16022      dynamic_linker='AIX unversionable lib.so'
16023      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16024      # instead of lib<name>.a to let people know that these are not
16025      # typical AIX shared libraries.
16026      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16027      ;;
16028    aix,no) # traditional AIX only
16029      dynamic_linker='AIX lib.a(lib.so.V)'
16030      # We preserve .a as extension for shared libraries through AIX4.2
16031      # and later when we are not doing run time linking.
16032      library_names_spec='$libname$release.a $libname.a'
16033      soname_spec='$libname$release$shared_ext$major'
16034      ;;
16035    svr4,*) # full svr4 only
16036      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16037      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16038      # We do not specify a path in Import Files, so LIBPATH fires.
16039      shlibpath_overrides_runpath=yes
16040      ;;
16041    *,yes) # both, prefer svr4
16042      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16043      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16044      # unpreferred sharedlib libNAME.a needs extra handling
16045      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"'
16046      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"'
16047      # We do not specify a path in Import Files, so LIBPATH fires.
16048      shlibpath_overrides_runpath=yes
16049      ;;
16050    *,no) # both, prefer aix
16051      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16052      library_names_spec='$libname$release.a $libname.a'
16053      soname_spec='$libname$release$shared_ext$major'
16054      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16055      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)'
16056      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"'
16057      ;;
16058    esac
16059    shlibpath_var=LIBPATH
16060  fi
16061  ;;
16062
16063amigaos*)
16064  case $host_cpu in
16065  powerpc)
16066    # Since July 2007 AmigaOS4 officially supports .so libraries.
16067    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16068    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16069    ;;
16070  m68k)
16071    library_names_spec='$libname.ixlibrary $libname.a'
16072    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16073    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'
16074    ;;
16075  esac
16076  ;;
16077
16078beos*)
16079  library_names_spec='$libname$shared_ext'
16080  dynamic_linker="$host_os ld.so"
16081  shlibpath_var=LIBRARY_PATH
16082  ;;
16083
16084bsdi[45]*)
16085  version_type=linux # correct to gnu/linux during the next big refactor
16086  need_version=no
16087  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16088  soname_spec='$libname$release$shared_ext$major'
16089  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16090  shlibpath_var=LD_LIBRARY_PATH
16091  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16092  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16093  # the default ld.so.conf also contains /usr/contrib/lib and
16094  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16095  # libtool to hard-code these into programs
16096  ;;
16097
16098cygwin* | mingw* | pw32* | cegcc*)
16099  version_type=windows
16100  shrext_cmds=.dll
16101  need_version=no
16102  need_lib_prefix=no
16103
16104  case $GCC,$cc_basename in
16105  yes,*)
16106    # gcc
16107    library_names_spec='$libname.dll.a'
16108    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16109    postinstall_cmds='base_file=`basename \$file`~
16110      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16111      dldir=$destdir/`dirname \$dlpath`~
16112      test -d \$dldir || mkdir -p \$dldir~
16113      $install_prog $dir/$dlname \$dldir/$dlname~
16114      chmod a+x \$dldir/$dlname~
16115      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16116        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16117      fi'
16118    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16119      dlpath=$dir/\$dldll~
16120       $RM \$dlpath'
16121    shlibpath_overrides_runpath=yes
16122
16123    case $host_os in
16124    cygwin*)
16125      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16126      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16127
16128      ;;
16129    mingw* | cegcc*)
16130      # MinGW DLLs use traditional 'lib' prefix
16131      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16132      ;;
16133    pw32*)
16134      # pw32 DLLs use 'pw' prefix rather than 'lib'
16135      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16136      ;;
16137    esac
16138    dynamic_linker='Win32 ld.exe'
16139    ;;
16140
16141  *,cl*)
16142    # Native MSVC
16143    libname_spec='$name'
16144    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16145    library_names_spec='$libname.dll.lib'
16146
16147    case $build_os in
16148    mingw*)
16149      sys_lib_search_path_spec=
16150      lt_save_ifs=$IFS
16151      IFS=';'
16152      for lt_path in $LIB
16153      do
16154        IFS=$lt_save_ifs
16155        # Let DOS variable expansion print the short 8.3 style file name.
16156        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16157        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16158      done
16159      IFS=$lt_save_ifs
16160      # Convert to MSYS style.
16161      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16162      ;;
16163    cygwin*)
16164      # Convert to unix form, then to dos form, then back to unix form
16165      # but this time dos style (no spaces!) so that the unix form looks
16166      # like /cygdrive/c/PROGRA~1:/cygdr...
16167      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16168      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16169      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16170      ;;
16171    *)
16172      sys_lib_search_path_spec=$LIB
16173      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16174        # It is most probably a Windows format PATH.
16175        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16176      else
16177        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16178      fi
16179      # FIXME: find the short name or the path components, as spaces are
16180      # common. (e.g. "Program Files" -> "PROGRA~1")
16181      ;;
16182    esac
16183
16184    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16185    postinstall_cmds='base_file=`basename \$file`~
16186      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16187      dldir=$destdir/`dirname \$dlpath`~
16188      test -d \$dldir || mkdir -p \$dldir~
16189      $install_prog $dir/$dlname \$dldir/$dlname'
16190    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16191      dlpath=$dir/\$dldll~
16192       $RM \$dlpath'
16193    shlibpath_overrides_runpath=yes
16194    dynamic_linker='Win32 link.exe'
16195    ;;
16196
16197  *)
16198    # Assume MSVC wrapper
16199    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16200    dynamic_linker='Win32 ld.exe'
16201    ;;
16202  esac
16203  # FIXME: first we should search . and the directory the executable is in
16204  shlibpath_var=PATH
16205  ;;
16206
16207darwin* | rhapsody*)
16208  dynamic_linker="$host_os dyld"
16209  version_type=darwin
16210  need_lib_prefix=no
16211  need_version=no
16212  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16213  soname_spec='$libname$release$major$shared_ext'
16214  shlibpath_overrides_runpath=yes
16215  shlibpath_var=DYLD_LIBRARY_PATH
16216  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16217
16218  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16219  ;;
16220
16221dgux*)
16222  version_type=linux # correct to gnu/linux during the next big refactor
16223  need_lib_prefix=no
16224  need_version=no
16225  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16226  soname_spec='$libname$release$shared_ext$major'
16227  shlibpath_var=LD_LIBRARY_PATH
16228  ;;
16229
16230freebsd* | dragonfly*)
16231  # DragonFly does not have aout.  When/if they implement a new
16232  # versioning mechanism, adjust this.
16233  if test -x /usr/bin/objformat; then
16234    objformat=`/usr/bin/objformat`
16235  else
16236    case $host_os in
16237    freebsd[23].*) objformat=aout ;;
16238    *) objformat=elf ;;
16239    esac
16240  fi
16241  version_type=freebsd-$objformat
16242  case $version_type in
16243    freebsd-elf*)
16244      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16245      soname_spec='$libname$release$shared_ext$major'
16246      need_version=no
16247      need_lib_prefix=no
16248      ;;
16249    freebsd-*)
16250      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16251      need_version=yes
16252      ;;
16253  esac
16254  shlibpath_var=LD_LIBRARY_PATH
16255  case $host_os in
16256  freebsd2.*)
16257    shlibpath_overrides_runpath=yes
16258    ;;
16259  freebsd3.[01]* | freebsdelf3.[01]*)
16260    shlibpath_overrides_runpath=yes
16261    hardcode_into_libs=yes
16262    ;;
16263  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16264  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16265    shlibpath_overrides_runpath=no
16266    hardcode_into_libs=yes
16267    ;;
16268  *) # from 4.6 on, and DragonFly
16269    shlibpath_overrides_runpath=yes
16270    hardcode_into_libs=yes
16271    ;;
16272  esac
16273  ;;
16274
16275haiku*)
16276  version_type=linux # correct to gnu/linux during the next big refactor
16277  need_lib_prefix=no
16278  need_version=no
16279  dynamic_linker="$host_os runtime_loader"
16280  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16281  soname_spec='$libname$release$shared_ext$major'
16282  shlibpath_var=LIBRARY_PATH
16283  shlibpath_overrides_runpath=no
16284  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16285  hardcode_into_libs=yes
16286  ;;
16287
16288hpux9* | hpux10* | hpux11*)
16289  # Give a soname corresponding to the major version so that dld.sl refuses to
16290  # link against other versions.
16291  version_type=sunos
16292  need_lib_prefix=no
16293  need_version=no
16294  case $host_cpu in
16295  ia64*)
16296    shrext_cmds='.so'
16297    hardcode_into_libs=yes
16298    dynamic_linker="$host_os dld.so"
16299    shlibpath_var=LD_LIBRARY_PATH
16300    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16301    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16302    soname_spec='$libname$release$shared_ext$major'
16303    if test 32 = "$HPUX_IA64_MODE"; then
16304      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16305      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16306    else
16307      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16308      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16309    fi
16310    ;;
16311  hppa*64*)
16312    shrext_cmds='.sl'
16313    hardcode_into_libs=yes
16314    dynamic_linker="$host_os dld.sl"
16315    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16316    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16317    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16318    soname_spec='$libname$release$shared_ext$major'
16319    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16320    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16321    ;;
16322  *)
16323    shrext_cmds='.sl'
16324    dynamic_linker="$host_os dld.sl"
16325    shlibpath_var=SHLIB_PATH
16326    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16327    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16328    soname_spec='$libname$release$shared_ext$major'
16329    ;;
16330  esac
16331  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16332  postinstall_cmds='chmod 555 $lib'
16333  # or fails outright, so override atomically:
16334  install_override_mode=555
16335  ;;
16336
16337interix[3-9]*)
16338  version_type=linux # correct to gnu/linux during the next big refactor
16339  need_lib_prefix=no
16340  need_version=no
16341  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16342  soname_spec='$libname$release$shared_ext$major'
16343  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16344  shlibpath_var=LD_LIBRARY_PATH
16345  shlibpath_overrides_runpath=no
16346  hardcode_into_libs=yes
16347  ;;
16348
16349irix5* | irix6* | nonstopux*)
16350  case $host_os in
16351    nonstopux*) version_type=nonstopux ;;
16352    *)
16353	if test yes = "$lt_cv_prog_gnu_ld"; then
16354		version_type=linux # correct to gnu/linux during the next big refactor
16355	else
16356		version_type=irix
16357	fi ;;
16358  esac
16359  need_lib_prefix=no
16360  need_version=no
16361  soname_spec='$libname$release$shared_ext$major'
16362  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16363  case $host_os in
16364  irix5* | nonstopux*)
16365    libsuff= shlibsuff=
16366    ;;
16367  *)
16368    case $LD in # libtool.m4 will add one of these switches to LD
16369    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16370      libsuff= shlibsuff= libmagic=32-bit;;
16371    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16372      libsuff=32 shlibsuff=N32 libmagic=N32;;
16373    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16374      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16375    *) libsuff= shlibsuff= libmagic=never-match;;
16376    esac
16377    ;;
16378  esac
16379  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16380  shlibpath_overrides_runpath=no
16381  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16382  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16383  hardcode_into_libs=yes
16384  ;;
16385
16386# No shared lib support for Linux oldld, aout, or coff.
16387linux*oldld* | linux*aout* | linux*coff*)
16388  dynamic_linker=no
16389  ;;
16390
16391linux*android*)
16392  version_type=none # Android doesn't support versioned libraries.
16393  need_lib_prefix=no
16394  need_version=no
16395  library_names_spec='$libname$release$shared_ext'
16396  soname_spec='$libname$release$shared_ext'
16397  finish_cmds=
16398  shlibpath_var=LD_LIBRARY_PATH
16399  shlibpath_overrides_runpath=yes
16400
16401  # This implies no fast_install, which is unacceptable.
16402  # Some rework will be needed to allow for fast_install
16403  # before this can be enabled.
16404  hardcode_into_libs=yes
16405
16406  dynamic_linker='Android linker'
16407  # Don't embed -rpath directories since the linker doesn't support them.
16408  hardcode_libdir_flag_spec_CXX='-L$libdir'
16409  ;;
16410
16411# This must be glibc/ELF.
16412linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16413  version_type=linux # correct to gnu/linux during the next big refactor
16414  need_lib_prefix=no
16415  need_version=no
16416  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16417  soname_spec='$libname$release$shared_ext$major'
16418  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16419  shlibpath_var=LD_LIBRARY_PATH
16420  shlibpath_overrides_runpath=no
16421
16422  # Some binutils ld are patched to set DT_RUNPATH
16423  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16424  $as_echo_n "(cached) " >&6
16425else
16426  lt_cv_shlibpath_overrides_runpath=no
16427    save_LDFLAGS=$LDFLAGS
16428    save_libdir=$libdir
16429    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16430	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16431    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432/* end confdefs.h.  */
16433
16434int
16435main ()
16436{
16437
16438  ;
16439  return 0;
16440}
16441_ACEOF
16442if ac_fn_cxx_try_link "$LINENO"; then :
16443  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16444  lt_cv_shlibpath_overrides_runpath=yes
16445fi
16446fi
16447rm -f core conftest.err conftest.$ac_objext \
16448    conftest$ac_exeext conftest.$ac_ext
16449    LDFLAGS=$save_LDFLAGS
16450    libdir=$save_libdir
16451
16452fi
16453
16454  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16455
16456  # This implies no fast_install, which is unacceptable.
16457  # Some rework will be needed to allow for fast_install
16458  # before this can be enabled.
16459  hardcode_into_libs=yes
16460
16461  # Add ABI-specific directories to the system library path.
16462  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16463
16464  # Ideally, we could use ldconfig to report *all* directores which are
16465  # searched for libraries, however this is still not possible.  Aside from not
16466  # being certain /sbin/ldconfig is available, command
16467  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16468  # even though it is searched at run-time.  Try to do the best guess by
16469  # appending ld.so.conf contents (and includes) to the search path.
16470  if test -f /etc/ld.so.conf; then
16471    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' ' '`
16472    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16473  fi
16474
16475  # We used to test for /lib/ld.so.1 and disable shared libraries on
16476  # powerpc, because MkLinux only supported shared libraries with the
16477  # GNU dynamic linker.  Since this was broken with cross compilers,
16478  # most powerpc-linux boxes support dynamic linking these days and
16479  # people can always --disable-shared, the test was removed, and we
16480  # assume the GNU/Linux dynamic linker is in use.
16481  dynamic_linker='GNU/Linux ld.so'
16482  ;;
16483
16484netbsd*)
16485  version_type=sunos
16486  need_lib_prefix=no
16487  need_version=no
16488  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16489    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16490    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16491    dynamic_linker='NetBSD (a.out) ld.so'
16492  else
16493    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16494    soname_spec='$libname$release$shared_ext$major'
16495    dynamic_linker='NetBSD ld.elf_so'
16496  fi
16497  shlibpath_var=LD_LIBRARY_PATH
16498  shlibpath_overrides_runpath=yes
16499  hardcode_into_libs=yes
16500  ;;
16501
16502newsos6)
16503  version_type=linux # correct to gnu/linux during the next big refactor
16504  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16505  shlibpath_var=LD_LIBRARY_PATH
16506  shlibpath_overrides_runpath=yes
16507  ;;
16508
16509*nto* | *qnx*)
16510  version_type=qnx
16511  need_lib_prefix=no
16512  need_version=no
16513  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16514  soname_spec='$libname$release$shared_ext$major'
16515  shlibpath_var=LD_LIBRARY_PATH
16516  shlibpath_overrides_runpath=no
16517  hardcode_into_libs=yes
16518  dynamic_linker='ldqnx.so'
16519  ;;
16520
16521openbsd* | bitrig*)
16522  version_type=sunos
16523  sys_lib_dlsearch_path_spec=/usr/lib
16524  need_lib_prefix=no
16525  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16526    need_version=no
16527  else
16528    need_version=yes
16529  fi
16530  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16531  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16532  shlibpath_var=LD_LIBRARY_PATH
16533  shlibpath_overrides_runpath=yes
16534  ;;
16535
16536os2*)
16537  libname_spec='$name'
16538  version_type=windows
16539  shrext_cmds=.dll
16540  need_version=no
16541  need_lib_prefix=no
16542  # OS/2 can only load a DLL with a base name of 8 characters or less.
16543  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16544    v=$($ECHO $release$versuffix | tr -d .-);
16545    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16546    $ECHO $n$v`$shared_ext'
16547  library_names_spec='${libname}_dll.$libext'
16548  dynamic_linker='OS/2 ld.exe'
16549  shlibpath_var=BEGINLIBPATH
16550  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16551  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16552  postinstall_cmds='base_file=`basename \$file`~
16553    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16554    dldir=$destdir/`dirname \$dlpath`~
16555    test -d \$dldir || mkdir -p \$dldir~
16556    $install_prog $dir/$dlname \$dldir/$dlname~
16557    chmod a+x \$dldir/$dlname~
16558    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16559      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16560    fi'
16561  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16562    dlpath=$dir/\$dldll~
16563    $RM \$dlpath'
16564  ;;
16565
16566osf3* | osf4* | osf5*)
16567  version_type=osf
16568  need_lib_prefix=no
16569  need_version=no
16570  soname_spec='$libname$release$shared_ext$major'
16571  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16572  shlibpath_var=LD_LIBRARY_PATH
16573  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16574  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16575  ;;
16576
16577rdos*)
16578  dynamic_linker=no
16579  ;;
16580
16581solaris*)
16582  version_type=linux # correct to gnu/linux during the next big refactor
16583  need_lib_prefix=no
16584  need_version=no
16585  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16586  soname_spec='$libname$release$shared_ext$major'
16587  shlibpath_var=LD_LIBRARY_PATH
16588  shlibpath_overrides_runpath=yes
16589  hardcode_into_libs=yes
16590  # ldd complains unless libraries are executable
16591  postinstall_cmds='chmod +x $lib'
16592  ;;
16593
16594sunos4*)
16595  version_type=sunos
16596  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16597  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16598  shlibpath_var=LD_LIBRARY_PATH
16599  shlibpath_overrides_runpath=yes
16600  if test yes = "$with_gnu_ld"; then
16601    need_lib_prefix=no
16602  fi
16603  need_version=yes
16604  ;;
16605
16606sysv4 | sysv4.3*)
16607  version_type=linux # correct to gnu/linux during the next big refactor
16608  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16609  soname_spec='$libname$release$shared_ext$major'
16610  shlibpath_var=LD_LIBRARY_PATH
16611  case $host_vendor in
16612    sni)
16613      shlibpath_overrides_runpath=no
16614      need_lib_prefix=no
16615      runpath_var=LD_RUN_PATH
16616      ;;
16617    siemens)
16618      need_lib_prefix=no
16619      ;;
16620    motorola)
16621      need_lib_prefix=no
16622      need_version=no
16623      shlibpath_overrides_runpath=no
16624      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16625      ;;
16626  esac
16627  ;;
16628
16629sysv4*MP*)
16630  if test -d /usr/nec; then
16631    version_type=linux # correct to gnu/linux during the next big refactor
16632    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16633    soname_spec='$libname$shared_ext.$major'
16634    shlibpath_var=LD_LIBRARY_PATH
16635  fi
16636  ;;
16637
16638sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16639  version_type=sco
16640  need_lib_prefix=no
16641  need_version=no
16642  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16643  soname_spec='$libname$release$shared_ext$major'
16644  shlibpath_var=LD_LIBRARY_PATH
16645  shlibpath_overrides_runpath=yes
16646  hardcode_into_libs=yes
16647  if test yes = "$with_gnu_ld"; then
16648    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16649  else
16650    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16651    case $host_os in
16652      sco3.2v5*)
16653        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16654	;;
16655    esac
16656  fi
16657  sys_lib_dlsearch_path_spec='/usr/lib'
16658  ;;
16659
16660tpf*)
16661  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16662  version_type=linux # correct to gnu/linux during the next big refactor
16663  need_lib_prefix=no
16664  need_version=no
16665  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16666  shlibpath_var=LD_LIBRARY_PATH
16667  shlibpath_overrides_runpath=no
16668  hardcode_into_libs=yes
16669  ;;
16670
16671uts4*)
16672  version_type=linux # correct to gnu/linux during the next big refactor
16673  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16674  soname_spec='$libname$release$shared_ext$major'
16675  shlibpath_var=LD_LIBRARY_PATH
16676  ;;
16677
16678*)
16679  dynamic_linker=no
16680  ;;
16681esac
16682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16683$as_echo "$dynamic_linker" >&6; }
16684test no = "$dynamic_linker" && can_build_shared=no
16685
16686variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16687if test yes = "$GCC"; then
16688  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16689fi
16690
16691if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16692  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16693fi
16694
16695if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16696  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16697fi
16698
16699# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16700configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16701
16702# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16703func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16704
16705# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16706configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16748$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16749hardcode_action_CXX=
16750if test -n "$hardcode_libdir_flag_spec_CXX" ||
16751   test -n "$runpath_var_CXX" ||
16752   test yes = "$hardcode_automatic_CXX"; then
16753
16754  # We can hardcode non-existent directories.
16755  if test no != "$hardcode_direct_CXX" &&
16756     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16757     # have to relink, otherwise we might link with an installed library
16758     # when we should be linking with a yet-to-be-installed one
16759     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16760     test no != "$hardcode_minus_L_CXX"; then
16761    # Linking always hardcodes the temporary library directory.
16762    hardcode_action_CXX=relink
16763  else
16764    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16765    hardcode_action_CXX=immediate
16766  fi
16767else
16768  # We cannot hardcode anything, or else we can only hardcode existing
16769  # directories.
16770  hardcode_action_CXX=unsupported
16771fi
16772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16773$as_echo "$hardcode_action_CXX" >&6; }
16774
16775if test relink = "$hardcode_action_CXX" ||
16776   test yes = "$inherit_rpath_CXX"; then
16777  # Fast installation is not supported
16778  enable_fast_install=no
16779elif test yes = "$shlibpath_overrides_runpath" ||
16780     test no = "$enable_shared"; then
16781  # Fast installation is not necessary
16782  enable_fast_install=needless
16783fi
16784
16785
16786
16787
16788
16789
16790
16791  fi # test -n "$compiler"
16792
16793  CC=$lt_save_CC
16794  CFLAGS=$lt_save_CFLAGS
16795  LDCXX=$LD
16796  LD=$lt_save_LD
16797  GCC=$lt_save_GCC
16798  with_gnu_ld=$lt_save_with_gnu_ld
16799  lt_cv_path_LDCXX=$lt_cv_path_LD
16800  lt_cv_path_LD=$lt_save_path_LD
16801  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16802  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16803fi # test yes != "$_lt_caught_CXX_error"
16804
16805ac_ext=cpp
16806ac_cpp='$CXXCPP $CPPFLAGS'
16807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16810
16811
16812
16813cat >confcache <<\_ACEOF
16814# This file is a shell script that caches the results of configure
16815# tests run on this system so they can be shared between configure
16816# scripts and configure runs, see configure's option --config-cache.
16817# It is not useful on other systems.  If it contains results you don't
16818# want to keep, you may remove or edit it.
16819#
16820# config.status only pays attention to the cache file if you give it
16821# the --recheck option to rerun configure.
16822#
16823# `ac_cv_env_foo' variables (set or unset) will be overridden when
16824# loading this file, other *unset* `ac_cv_foo' will be assigned the
16825# following values.
16826
16827_ACEOF
16828
16829# The following way of writing the cache mishandles newlines in values,
16830# but we know of no workaround that is simple, portable, and efficient.
16831# So, we kill variables containing newlines.
16832# Ultrix sh set writes to stderr and can't be redirected directly,
16833# and sets the high bit in the cache file unless we assign to the vars.
16834(
16835  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16836    eval ac_val=\$$ac_var
16837    case $ac_val in #(
16838    *${as_nl}*)
16839      case $ac_var in #(
16840      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16841$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16842      esac
16843      case $ac_var in #(
16844      _ | IFS | as_nl) ;; #(
16845      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16846      *) { eval $ac_var=; unset $ac_var;} ;;
16847      esac ;;
16848    esac
16849  done
16850
16851  (set) 2>&1 |
16852    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16853    *${as_nl}ac_space=\ *)
16854      # `set' does not quote correctly, so add quotes: double-quote
16855      # substitution turns \\\\ into \\, and sed turns \\ into \.
16856      sed -n \
16857	"s/'/'\\\\''/g;
16858	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16859      ;; #(
16860    *)
16861      # `set' quotes correctly as required by POSIX, so do not add quotes.
16862      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16863      ;;
16864    esac |
16865    sort
16866) |
16867  sed '
16868     /^ac_cv_env_/b end
16869     t clear
16870     :clear
16871     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16872     t end
16873     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16874     :end' >>confcache
16875if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16876  if test -w "$cache_file"; then
16877    if test "x$cache_file" != "x/dev/null"; then
16878      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16879$as_echo "$as_me: updating cache $cache_file" >&6;}
16880      if test ! -f "$cache_file" || test -h "$cache_file"; then
16881	cat confcache >"$cache_file"
16882      else
16883        case $cache_file in #(
16884        */* | ?:*)
16885	  mv -f confcache "$cache_file"$$ &&
16886	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16887        *)
16888	  mv -f confcache "$cache_file" ;;
16889	esac
16890      fi
16891    fi
16892  else
16893    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16894$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16895  fi
16896fi
16897rm -f confcache
16898
16899test "x$prefix" = xNONE && prefix=$ac_default_prefix
16900# Let make expand exec_prefix.
16901test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16902
16903DEFS=-DHAVE_CONFIG_H
16904
16905ac_libobjs=
16906ac_ltlibobjs=
16907U=
16908for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16909  # 1. Remove the extension, and $U if already installed.
16910  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16911  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16912  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16913  #    will be set to the directory where LIBOBJS objects are built.
16914  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16915  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16916done
16917LIBOBJS=$ac_libobjs
16918
16919LTLIBOBJS=$ac_ltlibobjs
16920
16921
16922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16923$as_echo_n "checking that generated files are newer than configure... " >&6; }
16924   if test -n "$am_sleep_pid"; then
16925     # Hide warnings about reused PIDs.
16926     wait $am_sleep_pid 2>/dev/null
16927   fi
16928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16929$as_echo "done" >&6; }
16930 if test -n "$EXEEXT"; then
16931  am__EXEEXT_TRUE=
16932  am__EXEEXT_FALSE='#'
16933else
16934  am__EXEEXT_TRUE='#'
16935  am__EXEEXT_FALSE=
16936fi
16937
16938if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16939  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16940Usually this means the macro was only invoked conditionally." "$LINENO" 5
16941fi
16942if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16943  as_fn_error $? "conditional \"AMDEP\" was never defined.
16944Usually this means the macro was only invoked conditionally." "$LINENO" 5
16945fi
16946if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16947  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16948Usually this means the macro was only invoked conditionally." "$LINENO" 5
16949fi
16950
16951if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16952  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16953Usually this means the macro was only invoked conditionally." "$LINENO" 5
16954fi
16955
16956: "${CONFIG_STATUS=./config.status}"
16957ac_write_fail=0
16958ac_clean_files_save=$ac_clean_files
16959ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16960{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16961$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16962as_write_fail=0
16963cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16964#! $SHELL
16965# Generated by $as_me.
16966# Run this file to recreate the current configuration.
16967# Compiler output produced by configure, useful for debugging
16968# configure, is in config.log if it exists.
16969
16970debug=false
16971ac_cs_recheck=false
16972ac_cs_silent=false
16973
16974SHELL=\${CONFIG_SHELL-$SHELL}
16975export SHELL
16976_ASEOF
16977cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16978## -------------------- ##
16979## M4sh Initialization. ##
16980## -------------------- ##
16981
16982# Be more Bourne compatible
16983DUALCASE=1; export DUALCASE # for MKS sh
16984if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16985  emulate sh
16986  NULLCMD=:
16987  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16988  # is contrary to our usage.  Disable this feature.
16989  alias -g '${1+"$@"}'='"$@"'
16990  setopt NO_GLOB_SUBST
16991else
16992  case `(set -o) 2>/dev/null` in #(
16993  *posix*) :
16994    set -o posix ;; #(
16995  *) :
16996     ;;
16997esac
16998fi
16999
17000
17001as_nl='
17002'
17003export as_nl
17004# Printing a long string crashes Solaris 7 /usr/bin/printf.
17005as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17006as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17007as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17008# Prefer a ksh shell builtin over an external printf program on Solaris,
17009# but without wasting forks for bash or zsh.
17010if test -z "$BASH_VERSION$ZSH_VERSION" \
17011    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17012  as_echo='print -r --'
17013  as_echo_n='print -rn --'
17014elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17015  as_echo='printf %s\n'
17016  as_echo_n='printf %s'
17017else
17018  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17019    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17020    as_echo_n='/usr/ucb/echo -n'
17021  else
17022    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17023    as_echo_n_body='eval
17024      arg=$1;
17025      case $arg in #(
17026      *"$as_nl"*)
17027	expr "X$arg" : "X\\(.*\\)$as_nl";
17028	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17029      esac;
17030      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17031    '
17032    export as_echo_n_body
17033    as_echo_n='sh -c $as_echo_n_body as_echo'
17034  fi
17035  export as_echo_body
17036  as_echo='sh -c $as_echo_body as_echo'
17037fi
17038
17039# The user is always right.
17040if test "${PATH_SEPARATOR+set}" != set; then
17041  PATH_SEPARATOR=:
17042  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17043    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17044      PATH_SEPARATOR=';'
17045  }
17046fi
17047
17048
17049# IFS
17050# We need space, tab and new line, in precisely that order.  Quoting is
17051# there to prevent editors from complaining about space-tab.
17052# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17053# splitting by setting IFS to empty value.)
17054IFS=" ""	$as_nl"
17055
17056# Find who we are.  Look in the path if we contain no directory separator.
17057as_myself=
17058case $0 in #((
17059  *[\\/]* ) as_myself=$0 ;;
17060  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17061for as_dir in $PATH
17062do
17063  IFS=$as_save_IFS
17064  test -z "$as_dir" && as_dir=.
17065    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17066  done
17067IFS=$as_save_IFS
17068
17069     ;;
17070esac
17071# We did not find ourselves, most probably we were run as `sh COMMAND'
17072# in which case we are not to be found in the path.
17073if test "x$as_myself" = x; then
17074  as_myself=$0
17075fi
17076if test ! -f "$as_myself"; then
17077  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17078  exit 1
17079fi
17080
17081# Unset variables that we do not need and which cause bugs (e.g. in
17082# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17083# suppresses any "Segmentation fault" message there.  '((' could
17084# trigger a bug in pdksh 5.2.14.
17085for as_var in BASH_ENV ENV MAIL MAILPATH
17086do eval test x\${$as_var+set} = xset \
17087  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17088done
17089PS1='$ '
17090PS2='> '
17091PS4='+ '
17092
17093# NLS nuisances.
17094LC_ALL=C
17095export LC_ALL
17096LANGUAGE=C
17097export LANGUAGE
17098
17099# CDPATH.
17100(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17101
17102
17103# as_fn_error STATUS ERROR [LINENO LOG_FD]
17104# ----------------------------------------
17105# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17106# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17107# script with STATUS, using 1 if that was 0.
17108as_fn_error ()
17109{
17110  as_status=$1; test $as_status -eq 0 && as_status=1
17111  if test "$4"; then
17112    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17113    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17114  fi
17115  $as_echo "$as_me: error: $2" >&2
17116  as_fn_exit $as_status
17117} # as_fn_error
17118
17119
17120# as_fn_set_status STATUS
17121# -----------------------
17122# Set $? to STATUS, without forking.
17123as_fn_set_status ()
17124{
17125  return $1
17126} # as_fn_set_status
17127
17128# as_fn_exit STATUS
17129# -----------------
17130# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17131as_fn_exit ()
17132{
17133  set +e
17134  as_fn_set_status $1
17135  exit $1
17136} # as_fn_exit
17137
17138# as_fn_unset VAR
17139# ---------------
17140# Portably unset VAR.
17141as_fn_unset ()
17142{
17143  { eval $1=; unset $1;}
17144}
17145as_unset=as_fn_unset
17146# as_fn_append VAR VALUE
17147# ----------------------
17148# Append the text in VALUE to the end of the definition contained in VAR. Take
17149# advantage of any shell optimizations that allow amortized linear growth over
17150# repeated appends, instead of the typical quadratic growth present in naive
17151# implementations.
17152if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17153  eval 'as_fn_append ()
17154  {
17155    eval $1+=\$2
17156  }'
17157else
17158  as_fn_append ()
17159  {
17160    eval $1=\$$1\$2
17161  }
17162fi # as_fn_append
17163
17164# as_fn_arith ARG...
17165# ------------------
17166# Perform arithmetic evaluation on the ARGs, and store the result in the
17167# global $as_val. Take advantage of shells that can avoid forks. The arguments
17168# must be portable across $(()) and expr.
17169if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17170  eval 'as_fn_arith ()
17171  {
17172    as_val=$(( $* ))
17173  }'
17174else
17175  as_fn_arith ()
17176  {
17177    as_val=`expr "$@" || test $? -eq 1`
17178  }
17179fi # as_fn_arith
17180
17181
17182if expr a : '\(a\)' >/dev/null 2>&1 &&
17183   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17184  as_expr=expr
17185else
17186  as_expr=false
17187fi
17188
17189if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17190  as_basename=basename
17191else
17192  as_basename=false
17193fi
17194
17195if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17196  as_dirname=dirname
17197else
17198  as_dirname=false
17199fi
17200
17201as_me=`$as_basename -- "$0" ||
17202$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17203	 X"$0" : 'X\(//\)$' \| \
17204	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17205$as_echo X/"$0" |
17206    sed '/^.*\/\([^/][^/]*\)\/*$/{
17207	    s//\1/
17208	    q
17209	  }
17210	  /^X\/\(\/\/\)$/{
17211	    s//\1/
17212	    q
17213	  }
17214	  /^X\/\(\/\).*/{
17215	    s//\1/
17216	    q
17217	  }
17218	  s/.*/./; q'`
17219
17220# Avoid depending upon Character Ranges.
17221as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17222as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17223as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17224as_cr_digits='0123456789'
17225as_cr_alnum=$as_cr_Letters$as_cr_digits
17226
17227ECHO_C= ECHO_N= ECHO_T=
17228case `echo -n x` in #(((((
17229-n*)
17230  case `echo 'xy\c'` in
17231  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17232  xy)  ECHO_C='\c';;
17233  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17234       ECHO_T='	';;
17235  esac;;
17236*)
17237  ECHO_N='-n';;
17238esac
17239
17240rm -f conf$$ conf$$.exe conf$$.file
17241if test -d conf$$.dir; then
17242  rm -f conf$$.dir/conf$$.file
17243else
17244  rm -f conf$$.dir
17245  mkdir conf$$.dir 2>/dev/null
17246fi
17247if (echo >conf$$.file) 2>/dev/null; then
17248  if ln -s conf$$.file conf$$ 2>/dev/null; then
17249    as_ln_s='ln -s'
17250    # ... but there are two gotchas:
17251    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17252    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17253    # In both cases, we have to default to `cp -pR'.
17254    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17255      as_ln_s='cp -pR'
17256  elif ln conf$$.file conf$$ 2>/dev/null; then
17257    as_ln_s=ln
17258  else
17259    as_ln_s='cp -pR'
17260  fi
17261else
17262  as_ln_s='cp -pR'
17263fi
17264rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17265rmdir conf$$.dir 2>/dev/null
17266
17267
17268# as_fn_mkdir_p
17269# -------------
17270# Create "$as_dir" as a directory, including parents if necessary.
17271as_fn_mkdir_p ()
17272{
17273
17274  case $as_dir in #(
17275  -*) as_dir=./$as_dir;;
17276  esac
17277  test -d "$as_dir" || eval $as_mkdir_p || {
17278    as_dirs=
17279    while :; do
17280      case $as_dir in #(
17281      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17282      *) as_qdir=$as_dir;;
17283      esac
17284      as_dirs="'$as_qdir' $as_dirs"
17285      as_dir=`$as_dirname -- "$as_dir" ||
17286$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17287	 X"$as_dir" : 'X\(//\)[^/]' \| \
17288	 X"$as_dir" : 'X\(//\)$' \| \
17289	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17290$as_echo X"$as_dir" |
17291    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17292	    s//\1/
17293	    q
17294	  }
17295	  /^X\(\/\/\)[^/].*/{
17296	    s//\1/
17297	    q
17298	  }
17299	  /^X\(\/\/\)$/{
17300	    s//\1/
17301	    q
17302	  }
17303	  /^X\(\/\).*/{
17304	    s//\1/
17305	    q
17306	  }
17307	  s/.*/./; q'`
17308      test -d "$as_dir" && break
17309    done
17310    test -z "$as_dirs" || eval "mkdir $as_dirs"
17311  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17312
17313
17314} # as_fn_mkdir_p
17315if mkdir -p . 2>/dev/null; then
17316  as_mkdir_p='mkdir -p "$as_dir"'
17317else
17318  test -d ./-p && rmdir ./-p
17319  as_mkdir_p=false
17320fi
17321
17322
17323# as_fn_executable_p FILE
17324# -----------------------
17325# Test if FILE is an executable regular file.
17326as_fn_executable_p ()
17327{
17328  test -f "$1" && test -x "$1"
17329} # as_fn_executable_p
17330as_test_x='test -x'
17331as_executable_p=as_fn_executable_p
17332
17333# Sed expression to map a string onto a valid CPP name.
17334as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17335
17336# Sed expression to map a string onto a valid variable name.
17337as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17338
17339
17340exec 6>&1
17341## ----------------------------------- ##
17342## Main body of $CONFIG_STATUS script. ##
17343## ----------------------------------- ##
17344_ASEOF
17345test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17346
17347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17348# Save the log message, to keep $0 and so on meaningful, and to
17349# report actual input values of CONFIG_FILES etc. instead of their
17350# values after options handling.
17351ac_log="
17352This file was extended by libfpx $as_me 1.3.1-10, which was
17353generated by GNU Autoconf 2.69.  Invocation command line was
17354
17355  CONFIG_FILES    = $CONFIG_FILES
17356  CONFIG_HEADERS  = $CONFIG_HEADERS
17357  CONFIG_LINKS    = $CONFIG_LINKS
17358  CONFIG_COMMANDS = $CONFIG_COMMANDS
17359  $ $0 $@
17360
17361on `(hostname || uname -n) 2>/dev/null | sed 1q`
17362"
17363
17364_ACEOF
17365
17366case $ac_config_files in *"
17367"*) set x $ac_config_files; shift; ac_config_files=$*;;
17368esac
17369
17370case $ac_config_headers in *"
17371"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17372esac
17373
17374
17375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17376# Files that config.status was made for.
17377config_files="$ac_config_files"
17378config_headers="$ac_config_headers"
17379config_commands="$ac_config_commands"
17380
17381_ACEOF
17382
17383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17384ac_cs_usage="\
17385\`$as_me' instantiates files and other configuration actions
17386from templates according to the current configuration.  Unless the files
17387and actions are specified as TAGs, all are instantiated by default.
17388
17389Usage: $0 [OPTION]... [TAG]...
17390
17391  -h, --help       print this help, then exit
17392  -V, --version    print version number and configuration settings, then exit
17393      --config     print configuration, then exit
17394  -q, --quiet, --silent
17395                   do not print progress messages
17396  -d, --debug      don't remove temporary files
17397      --recheck    update $as_me by reconfiguring in the same conditions
17398      --file=FILE[:TEMPLATE]
17399                   instantiate the configuration file FILE
17400      --header=FILE[:TEMPLATE]
17401                   instantiate the configuration header FILE
17402
17403Configuration files:
17404$config_files
17405
17406Configuration headers:
17407$config_headers
17408
17409Configuration commands:
17410$config_commands
17411
17412Report bugs to <http://www.imagemagick.org>."
17413
17414_ACEOF
17415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17416ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17417ac_cs_version="\\
17418libfpx config.status 1.3.1-10
17419configured by $0, generated by GNU Autoconf 2.69,
17420  with options \\"\$ac_cs_config\\"
17421
17422Copyright (C) 2012 Free Software Foundation, Inc.
17423This config.status script is free software; the Free Software Foundation
17424gives unlimited permission to copy, distribute and modify it."
17425
17426ac_pwd='$ac_pwd'
17427srcdir='$srcdir'
17428INSTALL='$INSTALL'
17429MKDIR_P='$MKDIR_P'
17430AWK='$AWK'
17431test -n "\$AWK" || AWK=awk
17432_ACEOF
17433
17434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17435# The default lists apply if the user does not specify any file.
17436ac_need_defaults=:
17437while test $# != 0
17438do
17439  case $1 in
17440  --*=?*)
17441    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17442    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17443    ac_shift=:
17444    ;;
17445  --*=)
17446    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17447    ac_optarg=
17448    ac_shift=:
17449    ;;
17450  *)
17451    ac_option=$1
17452    ac_optarg=$2
17453    ac_shift=shift
17454    ;;
17455  esac
17456
17457  case $ac_option in
17458  # Handling of the options.
17459  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17460    ac_cs_recheck=: ;;
17461  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17462    $as_echo "$ac_cs_version"; exit ;;
17463  --config | --confi | --conf | --con | --co | --c )
17464    $as_echo "$ac_cs_config"; exit ;;
17465  --debug | --debu | --deb | --de | --d | -d )
17466    debug=: ;;
17467  --file | --fil | --fi | --f )
17468    $ac_shift
17469    case $ac_optarg in
17470    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17471    '') as_fn_error $? "missing file argument" ;;
17472    esac
17473    as_fn_append CONFIG_FILES " '$ac_optarg'"
17474    ac_need_defaults=false;;
17475  --header | --heade | --head | --hea )
17476    $ac_shift
17477    case $ac_optarg in
17478    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17479    esac
17480    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17481    ac_need_defaults=false;;
17482  --he | --h)
17483    # Conflict between --help and --header
17484    as_fn_error $? "ambiguous option: \`$1'
17485Try \`$0 --help' for more information.";;
17486  --help | --hel | -h )
17487    $as_echo "$ac_cs_usage"; exit ;;
17488  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17489  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17490    ac_cs_silent=: ;;
17491
17492  # This is an error.
17493  -*) as_fn_error $? "unrecognized option: \`$1'
17494Try \`$0 --help' for more information." ;;
17495
17496  *) as_fn_append ac_config_targets " $1"
17497     ac_need_defaults=false ;;
17498
17499  esac
17500  shift
17501done
17502
17503ac_configure_extra_args=
17504
17505if $ac_cs_silent; then
17506  exec 6>/dev/null
17507  ac_configure_extra_args="$ac_configure_extra_args --silent"
17508fi
17509
17510_ACEOF
17511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17512if \$ac_cs_recheck; then
17513  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17514  shift
17515  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17516  CONFIG_SHELL='$SHELL'
17517  export CONFIG_SHELL
17518  exec "\$@"
17519fi
17520
17521_ACEOF
17522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17523exec 5>>config.log
17524{
17525  echo
17526  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17527## Running $as_me. ##
17528_ASBOX
17529  $as_echo "$ac_log"
17530} >&5
17531
17532_ACEOF
17533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17534#
17535# INIT-COMMANDS
17536#
17537AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17538
17539
17540# The HP-UX ksh and POSIX shell print the target directory to stdout
17541# if CDPATH is set.
17542(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17543
17544sed_quote_subst='$sed_quote_subst'
17545double_quote_subst='$double_quote_subst'
17546delay_variable_subst='$delay_variable_subst'
17547SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17548Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17549GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17550EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17551FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17552SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17553ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17554LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17555enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17556enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17557macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17558macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17559pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17560enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17561shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17562PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17563host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17564host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17565host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17566build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17567build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17568build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17569NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17570LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17571max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17572ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17573exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17574lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17575lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17576lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17577lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17578lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17579reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17580reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17581OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17582deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17583file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17584file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17585want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17586DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17587sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17588AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17589AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17590archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17591STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17592RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17593old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17594old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17595old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17596lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17597CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17598CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17599compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17600GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17601lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17602lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17603lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17604lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17605lt_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"`'
17606lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17607nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17608lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17609lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17610objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17611MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17612lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17613lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17614lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17615lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17616lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17617need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17618MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17619DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17620NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17621LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17622OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17623OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17624libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17625shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17626extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17627archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17628enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17629export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17630whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17631compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17632old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17633old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17634archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17635archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17636module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17637module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17638with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17639allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17640no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17641hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17642hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17643hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17644hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17645hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17646hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17647hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17648inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17649link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17650always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17651export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17652exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17653include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17654prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17655postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17656file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17657variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17658need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17659need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17660version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17661runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17662shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17663shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17664libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17665library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17666soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17667install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17668postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17669postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17670finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17671finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17672hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17673sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17674configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17675configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17676hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17677enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17678enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17679enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17680old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17681striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17682compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17683predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17684postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17685predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17686postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17687compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17688LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17689reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17690reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17691old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17692compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17693GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17694lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17695lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17696lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17697lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17698lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17699archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17700enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17701export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17702whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17703compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17704old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17705old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17706archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17707archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17708module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17709module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17710with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17711allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17712no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17713hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17714hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17715hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17716hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17717hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17718hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17719hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17720inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17721link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17722always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17723export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17724exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17725include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17726prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17727postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17728file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17729hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17730compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17731predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17732postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17733predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17734postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17735compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17736
17737LTCC='$LTCC'
17738LTCFLAGS='$LTCFLAGS'
17739compiler='$compiler_DEFAULT'
17740
17741# A function that is used when there is no print builtin or printf.
17742func_fallback_echo ()
17743{
17744  eval 'cat <<_LTECHO_EOF
17745\$1
17746_LTECHO_EOF'
17747}
17748
17749# Quote evaled strings.
17750for var in SED \
17751GREP \
17752EGREP \
17753FGREP \
17754SHELL \
17755ECHO \
17756LD \
17757PATH_SEPARATOR \
17758NM \
17759LN_S \
17760lt_SP2NL \
17761lt_NL2SP \
17762reload_flag \
17763OBJDUMP \
17764deplibs_check_method \
17765file_magic_cmd \
17766file_magic_glob \
17767want_nocaseglob \
17768DLLTOOL \
17769sharedlib_from_linklib_cmd \
17770AR \
17771AR_FLAGS \
17772archiver_list_spec \
17773STRIP \
17774RANLIB \
17775CC \
17776CFLAGS \
17777compiler \
17778lt_cv_sys_global_symbol_pipe \
17779lt_cv_sys_global_symbol_to_cdecl \
17780lt_cv_sys_global_symbol_to_import \
17781lt_cv_sys_global_symbol_to_c_name_address \
17782lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17783lt_cv_nm_interface \
17784nm_file_list_spec \
17785lt_cv_truncate_bin \
17786lt_prog_compiler_no_builtin_flag \
17787lt_prog_compiler_pic \
17788lt_prog_compiler_wl \
17789lt_prog_compiler_static \
17790lt_cv_prog_compiler_c_o \
17791need_locks \
17792MANIFEST_TOOL \
17793DSYMUTIL \
17794NMEDIT \
17795LIPO \
17796OTOOL \
17797OTOOL64 \
17798shrext_cmds \
17799export_dynamic_flag_spec \
17800whole_archive_flag_spec \
17801compiler_needs_object \
17802with_gnu_ld \
17803allow_undefined_flag \
17804no_undefined_flag \
17805hardcode_libdir_flag_spec \
17806hardcode_libdir_separator \
17807exclude_expsyms \
17808include_expsyms \
17809file_list_spec \
17810variables_saved_for_relink \
17811libname_spec \
17812library_names_spec \
17813soname_spec \
17814install_override_mode \
17815finish_eval \
17816old_striplib \
17817striplib \
17818compiler_lib_search_dirs \
17819predep_objects \
17820postdep_objects \
17821predeps \
17822postdeps \
17823compiler_lib_search_path \
17824LD_CXX \
17825reload_flag_CXX \
17826compiler_CXX \
17827lt_prog_compiler_no_builtin_flag_CXX \
17828lt_prog_compiler_pic_CXX \
17829lt_prog_compiler_wl_CXX \
17830lt_prog_compiler_static_CXX \
17831lt_cv_prog_compiler_c_o_CXX \
17832export_dynamic_flag_spec_CXX \
17833whole_archive_flag_spec_CXX \
17834compiler_needs_object_CXX \
17835with_gnu_ld_CXX \
17836allow_undefined_flag_CXX \
17837no_undefined_flag_CXX \
17838hardcode_libdir_flag_spec_CXX \
17839hardcode_libdir_separator_CXX \
17840exclude_expsyms_CXX \
17841include_expsyms_CXX \
17842file_list_spec_CXX \
17843compiler_lib_search_dirs_CXX \
17844predep_objects_CXX \
17845postdep_objects_CXX \
17846predeps_CXX \
17847postdeps_CXX \
17848compiler_lib_search_path_CXX; do
17849    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17850    *[\\\\\\\`\\"\\\$]*)
17851      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17852      ;;
17853    *)
17854      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17855      ;;
17856    esac
17857done
17858
17859# Double-quote double-evaled strings.
17860for var in reload_cmds \
17861old_postinstall_cmds \
17862old_postuninstall_cmds \
17863old_archive_cmds \
17864extract_expsyms_cmds \
17865old_archive_from_new_cmds \
17866old_archive_from_expsyms_cmds \
17867archive_cmds \
17868archive_expsym_cmds \
17869module_cmds \
17870module_expsym_cmds \
17871export_symbols_cmds \
17872prelink_cmds \
17873postlink_cmds \
17874postinstall_cmds \
17875postuninstall_cmds \
17876finish_cmds \
17877sys_lib_search_path_spec \
17878configure_time_dlsearch_path \
17879configure_time_lt_sys_library_path \
17880reload_cmds_CXX \
17881old_archive_cmds_CXX \
17882old_archive_from_new_cmds_CXX \
17883old_archive_from_expsyms_cmds_CXX \
17884archive_cmds_CXX \
17885archive_expsym_cmds_CXX \
17886module_cmds_CXX \
17887module_expsym_cmds_CXX \
17888export_symbols_cmds_CXX \
17889prelink_cmds_CXX \
17890postlink_cmds_CXX; do
17891    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17892    *[\\\\\\\`\\"\\\$]*)
17893      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17894      ;;
17895    *)
17896      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17897      ;;
17898    esac
17899done
17900
17901ac_aux_dir='$ac_aux_dir'
17902
17903# See if we are running on zsh, and set the options that allow our
17904# commands through without removal of \ escapes INIT.
17905if test -n "\${ZSH_VERSION+set}"; then
17906   setopt NO_GLOB_SUBST
17907fi
17908
17909
17910    PACKAGE='$PACKAGE'
17911    VERSION='$VERSION'
17912    RM='$RM'
17913    ofile='$ofile'
17914
17915
17916
17917
17918
17919
17920_ACEOF
17921
17922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17923
17924# Handling of arguments.
17925for ac_config_target in $ac_config_targets
17926do
17927  case $ac_config_target in
17928    "fpxlib-config.h") CONFIG_HEADERS="$CONFIG_HEADERS fpxlib-config.h" ;;
17929    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17930    "basics/Makefile") CONFIG_FILES="$CONFIG_FILES basics/Makefile" ;;
17931    "fpx/Makefile") CONFIG_FILES="$CONFIG_FILES fpx/Makefile" ;;
17932    "jpeg/Makefile") CONFIG_FILES="$CONFIG_FILES jpeg/Makefile" ;;
17933    "ole/Makefile") CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
17934    "ri_image/Makefile") CONFIG_FILES="$CONFIG_FILES ri_image/Makefile" ;;
17935    "oless/Makefile") CONFIG_FILES="$CONFIG_FILES oless/Makefile" ;;
17936    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17937    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17938
17939  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17940  esac
17941done
17942
17943
17944# If the user did not use the arguments to specify the items to instantiate,
17945# then the envvar interface is used.  Set only those that are not.
17946# We use the long form for the default assignment because of an extremely
17947# bizarre bug on SunOS 4.1.3.
17948if $ac_need_defaults; then
17949  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17950  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17951  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17952fi
17953
17954# Have a temporary directory for convenience.  Make it in the build tree
17955# simply because there is no reason against having it here, and in addition,
17956# creating and moving files from /tmp can sometimes cause problems.
17957# Hook for its removal unless debugging.
17958# Note that there is a small window in which the directory will not be cleaned:
17959# after its creation but before its name has been assigned to `$tmp'.
17960$debug ||
17961{
17962  tmp= ac_tmp=
17963  trap 'exit_status=$?
17964  : "${ac_tmp:=$tmp}"
17965  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17966' 0
17967  trap 'as_fn_exit 1' 1 2 13 15
17968}
17969# Create a (secure) tmp directory for tmp files.
17970
17971{
17972  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17973  test -d "$tmp"
17974}  ||
17975{
17976  tmp=./conf$$-$RANDOM
17977  (umask 077 && mkdir "$tmp")
17978} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17979ac_tmp=$tmp
17980
17981# Set up the scripts for CONFIG_FILES section.
17982# No need to generate them if there are no CONFIG_FILES.
17983# This happens for instance with `./config.status config.h'.
17984if test -n "$CONFIG_FILES"; then
17985
17986
17987ac_cr=`echo X | tr X '\015'`
17988# On cygwin, bash can eat \r inside `` if the user requested igncr.
17989# But we know of no other shell where ac_cr would be empty at this
17990# point, so we can use a bashism as a fallback.
17991if test "x$ac_cr" = x; then
17992  eval ac_cr=\$\'\\r\'
17993fi
17994ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17995if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17996  ac_cs_awk_cr='\\r'
17997else
17998  ac_cs_awk_cr=$ac_cr
17999fi
18000
18001echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18002_ACEOF
18003
18004
18005{
18006  echo "cat >conf$$subs.awk <<_ACEOF" &&
18007  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18008  echo "_ACEOF"
18009} >conf$$subs.sh ||
18010  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18011ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18012ac_delim='%!_!# '
18013for ac_last_try in false false false false false :; do
18014  . ./conf$$subs.sh ||
18015    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18016
18017  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18018  if test $ac_delim_n = $ac_delim_num; then
18019    break
18020  elif $ac_last_try; then
18021    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18022  else
18023    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18024  fi
18025done
18026rm -f conf$$subs.sh
18027
18028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18029cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18030_ACEOF
18031sed -n '
18032h
18033s/^/S["/; s/!.*/"]=/
18034p
18035g
18036s/^[^!]*!//
18037:repl
18038t repl
18039s/'"$ac_delim"'$//
18040t delim
18041:nl
18042h
18043s/\(.\{148\}\)..*/\1/
18044t more1
18045s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18046p
18047n
18048b repl
18049:more1
18050s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18051p
18052g
18053s/.\{148\}//
18054t nl
18055:delim
18056h
18057s/\(.\{148\}\)..*/\1/
18058t more2
18059s/["\\]/\\&/g; s/^/"/; s/$/"/
18060p
18061b
18062:more2
18063s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18064p
18065g
18066s/.\{148\}//
18067t delim
18068' <conf$$subs.awk | sed '
18069/^[^""]/{
18070  N
18071  s/\n//
18072}
18073' >>$CONFIG_STATUS || ac_write_fail=1
18074rm -f conf$$subs.awk
18075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18076_ACAWK
18077cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18078  for (key in S) S_is_set[key] = 1
18079  FS = ""
18080
18081}
18082{
18083  line = $ 0
18084  nfields = split(line, field, "@")
18085  substed = 0
18086  len = length(field[1])
18087  for (i = 2; i < nfields; i++) {
18088    key = field[i]
18089    keylen = length(key)
18090    if (S_is_set[key]) {
18091      value = S[key]
18092      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18093      len += length(value) + length(field[++i])
18094      substed = 1
18095    } else
18096      len += 1 + keylen
18097  }
18098
18099  print line
18100}
18101
18102_ACAWK
18103_ACEOF
18104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18105if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18106  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18107else
18108  cat
18109fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18110  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18111_ACEOF
18112
18113# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18114# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18115# trailing colons and then remove the whole line if VPATH becomes empty
18116# (actually we leave an empty line to preserve line numbers).
18117if test "x$srcdir" = x.; then
18118  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18119h
18120s///
18121s/^/:/
18122s/[	 ]*$/:/
18123s/:\$(srcdir):/:/g
18124s/:\${srcdir}:/:/g
18125s/:@srcdir@:/:/g
18126s/^:*//
18127s/:*$//
18128x
18129s/\(=[	 ]*\).*/\1/
18130G
18131s/\n//
18132s/^[^=]*=[	 ]*$//
18133}'
18134fi
18135
18136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18137fi # test -n "$CONFIG_FILES"
18138
18139# Set up the scripts for CONFIG_HEADERS section.
18140# No need to generate them if there are no CONFIG_HEADERS.
18141# This happens for instance with `./config.status Makefile'.
18142if test -n "$CONFIG_HEADERS"; then
18143cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18144BEGIN {
18145_ACEOF
18146
18147# Transform confdefs.h into an awk script `defines.awk', embedded as
18148# here-document in config.status, that substitutes the proper values into
18149# config.h.in to produce config.h.
18150
18151# Create a delimiter string that does not exist in confdefs.h, to ease
18152# handling of long lines.
18153ac_delim='%!_!# '
18154for ac_last_try in false false :; do
18155  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18156  if test -z "$ac_tt"; then
18157    break
18158  elif $ac_last_try; then
18159    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18160  else
18161    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18162  fi
18163done
18164
18165# For the awk script, D is an array of macro values keyed by name,
18166# likewise P contains macro parameters if any.  Preserve backslash
18167# newline sequences.
18168
18169ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18170sed -n '
18171s/.\{148\}/&'"$ac_delim"'/g
18172t rset
18173:rset
18174s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18175t def
18176d
18177:def
18178s/\\$//
18179t bsnl
18180s/["\\]/\\&/g
18181s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18182D["\1"]=" \3"/p
18183s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18184d
18185:bsnl
18186s/["\\]/\\&/g
18187s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18188D["\1"]=" \3\\\\\\n"\\/p
18189t cont
18190s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18191t cont
18192d
18193:cont
18194n
18195s/.\{148\}/&'"$ac_delim"'/g
18196t clear
18197:clear
18198s/\\$//
18199t bsnlc
18200s/["\\]/\\&/g; s/^/"/; s/$/"/p
18201d
18202:bsnlc
18203s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18204b cont
18205' <confdefs.h | sed '
18206s/'"$ac_delim"'/"\\\
18207"/g' >>$CONFIG_STATUS || ac_write_fail=1
18208
18209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18210  for (key in D) D_is_set[key] = 1
18211  FS = ""
18212}
18213/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18214  line = \$ 0
18215  split(line, arg, " ")
18216  if (arg[1] == "#") {
18217    defundef = arg[2]
18218    mac1 = arg[3]
18219  } else {
18220    defundef = substr(arg[1], 2)
18221    mac1 = arg[2]
18222  }
18223  split(mac1, mac2, "(") #)
18224  macro = mac2[1]
18225  prefix = substr(line, 1, index(line, defundef) - 1)
18226  if (D_is_set[macro]) {
18227    # Preserve the white space surrounding the "#".
18228    print prefix "define", macro P[macro] D[macro]
18229    next
18230  } else {
18231    # Replace #undef with comments.  This is necessary, for example,
18232    # in the case of _POSIX_SOURCE, which is predefined and required
18233    # on some systems where configure will not decide to define it.
18234    if (defundef == "undef") {
18235      print "/*", prefix defundef, macro, "*/"
18236      next
18237    }
18238  }
18239}
18240{ print }
18241_ACAWK
18242_ACEOF
18243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18244  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18245fi # test -n "$CONFIG_HEADERS"
18246
18247
18248eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18249shift
18250for ac_tag
18251do
18252  case $ac_tag in
18253  :[FHLC]) ac_mode=$ac_tag; continue;;
18254  esac
18255  case $ac_mode$ac_tag in
18256  :[FHL]*:*);;
18257  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18258  :[FH]-) ac_tag=-:-;;
18259  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18260  esac
18261  ac_save_IFS=$IFS
18262  IFS=:
18263  set x $ac_tag
18264  IFS=$ac_save_IFS
18265  shift
18266  ac_file=$1
18267  shift
18268
18269  case $ac_mode in
18270  :L) ac_source=$1;;
18271  :[FH])
18272    ac_file_inputs=
18273    for ac_f
18274    do
18275      case $ac_f in
18276      -) ac_f="$ac_tmp/stdin";;
18277      *) # Look for the file first in the build tree, then in the source tree
18278	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18279	 # because $ac_f cannot contain `:'.
18280	 test -f "$ac_f" ||
18281	   case $ac_f in
18282	   [\\/$]*) false;;
18283	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18284	   esac ||
18285	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18286      esac
18287      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18288      as_fn_append ac_file_inputs " '$ac_f'"
18289    done
18290
18291    # Let's still pretend it is `configure' which instantiates (i.e., don't
18292    # use $as_me), people would be surprised to read:
18293    #    /* config.h.  Generated by config.status.  */
18294    configure_input='Generated from '`
18295	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18296	`' by configure.'
18297    if test x"$ac_file" != x-; then
18298      configure_input="$ac_file.  $configure_input"
18299      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18300$as_echo "$as_me: creating $ac_file" >&6;}
18301    fi
18302    # Neutralize special characters interpreted by sed in replacement strings.
18303    case $configure_input in #(
18304    *\&* | *\|* | *\\* )
18305       ac_sed_conf_input=`$as_echo "$configure_input" |
18306       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18307    *) ac_sed_conf_input=$configure_input;;
18308    esac
18309
18310    case $ac_tag in
18311    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18312      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18313    esac
18314    ;;
18315  esac
18316
18317  ac_dir=`$as_dirname -- "$ac_file" ||
18318$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18319	 X"$ac_file" : 'X\(//\)[^/]' \| \
18320	 X"$ac_file" : 'X\(//\)$' \| \
18321	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18322$as_echo X"$ac_file" |
18323    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18324	    s//\1/
18325	    q
18326	  }
18327	  /^X\(\/\/\)[^/].*/{
18328	    s//\1/
18329	    q
18330	  }
18331	  /^X\(\/\/\)$/{
18332	    s//\1/
18333	    q
18334	  }
18335	  /^X\(\/\).*/{
18336	    s//\1/
18337	    q
18338	  }
18339	  s/.*/./; q'`
18340  as_dir="$ac_dir"; as_fn_mkdir_p
18341  ac_builddir=.
18342
18343case "$ac_dir" in
18344.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18345*)
18346  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18347  # A ".." for each directory in $ac_dir_suffix.
18348  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18349  case $ac_top_builddir_sub in
18350  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18351  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18352  esac ;;
18353esac
18354ac_abs_top_builddir=$ac_pwd
18355ac_abs_builddir=$ac_pwd$ac_dir_suffix
18356# for backward compatibility:
18357ac_top_builddir=$ac_top_build_prefix
18358
18359case $srcdir in
18360  .)  # We are building in place.
18361    ac_srcdir=.
18362    ac_top_srcdir=$ac_top_builddir_sub
18363    ac_abs_top_srcdir=$ac_pwd ;;
18364  [\\/]* | ?:[\\/]* )  # Absolute name.
18365    ac_srcdir=$srcdir$ac_dir_suffix;
18366    ac_top_srcdir=$srcdir
18367    ac_abs_top_srcdir=$srcdir ;;
18368  *) # Relative name.
18369    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18370    ac_top_srcdir=$ac_top_build_prefix$srcdir
18371    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18372esac
18373ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18374
18375
18376  case $ac_mode in
18377  :F)
18378  #
18379  # CONFIG_FILE
18380  #
18381
18382  case $INSTALL in
18383  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18384  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18385  esac
18386  ac_MKDIR_P=$MKDIR_P
18387  case $MKDIR_P in
18388  [\\/$]* | ?:[\\/]* ) ;;
18389  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18390  esac
18391_ACEOF
18392
18393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18394# If the template does not know about datarootdir, expand it.
18395# FIXME: This hack should be removed a few years after 2.60.
18396ac_datarootdir_hack=; ac_datarootdir_seen=
18397ac_sed_dataroot='
18398/datarootdir/ {
18399  p
18400  q
18401}
18402/@datadir@/p
18403/@docdir@/p
18404/@infodir@/p
18405/@localedir@/p
18406/@mandir@/p'
18407case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18408*datarootdir*) ac_datarootdir_seen=yes;;
18409*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18410  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18411$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18412_ACEOF
18413cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18414  ac_datarootdir_hack='
18415  s&@datadir@&$datadir&g
18416  s&@docdir@&$docdir&g
18417  s&@infodir@&$infodir&g
18418  s&@localedir@&$localedir&g
18419  s&@mandir@&$mandir&g
18420  s&\\\${datarootdir}&$datarootdir&g' ;;
18421esac
18422_ACEOF
18423
18424# Neutralize VPATH when `$srcdir' = `.'.
18425# Shell code in configure.ac might set extrasub.
18426# FIXME: do we really want to maintain this feature?
18427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18428ac_sed_extra="$ac_vpsub
18429$extrasub
18430_ACEOF
18431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18432:t
18433/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18434s|@configure_input@|$ac_sed_conf_input|;t t
18435s&@top_builddir@&$ac_top_builddir_sub&;t t
18436s&@top_build_prefix@&$ac_top_build_prefix&;t t
18437s&@srcdir@&$ac_srcdir&;t t
18438s&@abs_srcdir@&$ac_abs_srcdir&;t t
18439s&@top_srcdir@&$ac_top_srcdir&;t t
18440s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18441s&@builddir@&$ac_builddir&;t t
18442s&@abs_builddir@&$ac_abs_builddir&;t t
18443s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18444s&@INSTALL@&$ac_INSTALL&;t t
18445s&@MKDIR_P@&$ac_MKDIR_P&;t t
18446$ac_datarootdir_hack
18447"
18448eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18449  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18450
18451test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18452  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18453  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18454      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18455  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18456which seems to be undefined.  Please make sure it is defined" >&5
18457$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18458which seems to be undefined.  Please make sure it is defined" >&2;}
18459
18460  rm -f "$ac_tmp/stdin"
18461  case $ac_file in
18462  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18463  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18464  esac \
18465  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18466 ;;
18467  :H)
18468  #
18469  # CONFIG_HEADER
18470  #
18471  if test x"$ac_file" != x-; then
18472    {
18473      $as_echo "/* $configure_input  */" \
18474      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18475    } >"$ac_tmp/config.h" \
18476      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18477    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18478      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18479$as_echo "$as_me: $ac_file is unchanged" >&6;}
18480    else
18481      rm -f "$ac_file"
18482      mv "$ac_tmp/config.h" "$ac_file" \
18483	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18484    fi
18485  else
18486    $as_echo "/* $configure_input  */" \
18487      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18488      || as_fn_error $? "could not create -" "$LINENO" 5
18489  fi
18490# Compute "$ac_file"'s index in $config_headers.
18491_am_arg="$ac_file"
18492_am_stamp_count=1
18493for _am_header in $config_headers :; do
18494  case $_am_header in
18495    $_am_arg | $_am_arg:* )
18496      break ;;
18497    * )
18498      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18499  esac
18500done
18501echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18502$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18503	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18504	 X"$_am_arg" : 'X\(//\)$' \| \
18505	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18506$as_echo X"$_am_arg" |
18507    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18508	    s//\1/
18509	    q
18510	  }
18511	  /^X\(\/\/\)[^/].*/{
18512	    s//\1/
18513	    q
18514	  }
18515	  /^X\(\/\/\)$/{
18516	    s//\1/
18517	    q
18518	  }
18519	  /^X\(\/\).*/{
18520	    s//\1/
18521	    q
18522	  }
18523	  s/.*/./; q'`/stamp-h$_am_stamp_count
18524 ;;
18525
18526  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18527$as_echo "$as_me: executing $ac_file commands" >&6;}
18528 ;;
18529  esac
18530
18531
18532  case $ac_file$ac_mode in
18533    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18534  # Older Autoconf quotes --file arguments for eval, but not when files
18535  # are listed without --file.  Let's play safe and only enable the eval
18536  # if we detect the quoting.
18537  case $CONFIG_FILES in
18538  *\'*) eval set x "$CONFIG_FILES" ;;
18539  *)   set x $CONFIG_FILES ;;
18540  esac
18541  shift
18542  for mf
18543  do
18544    # Strip MF so we end up with the name of the file.
18545    mf=`echo "$mf" | sed -e 's/:.*$//'`
18546    # Check whether this is an Automake generated Makefile or not.
18547    # We used to match only the files named 'Makefile.in', but
18548    # some people rename them; so instead we look at the file content.
18549    # Grep'ing the first line is not enough: some people post-process
18550    # each Makefile.in and add a new line on top of each file to say so.
18551    # Grep'ing the whole file is not good either: AIX grep has a line
18552    # limit of 2048, but all sed's we know have understand at least 4000.
18553    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18554      dirpart=`$as_dirname -- "$mf" ||
18555$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18556	 X"$mf" : 'X\(//\)[^/]' \| \
18557	 X"$mf" : 'X\(//\)$' \| \
18558	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18559$as_echo X"$mf" |
18560    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18561	    s//\1/
18562	    q
18563	  }
18564	  /^X\(\/\/\)[^/].*/{
18565	    s//\1/
18566	    q
18567	  }
18568	  /^X\(\/\/\)$/{
18569	    s//\1/
18570	    q
18571	  }
18572	  /^X\(\/\).*/{
18573	    s//\1/
18574	    q
18575	  }
18576	  s/.*/./; q'`
18577    else
18578      continue
18579    fi
18580    # Extract the definition of DEPDIR, am__include, and am__quote
18581    # from the Makefile without running 'make'.
18582    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18583    test -z "$DEPDIR" && continue
18584    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18585    test -z "$am__include" && continue
18586    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18587    # Find all dependency output files, they are included files with
18588    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18589    # simplest approach to changing $(DEPDIR) to its actual value in the
18590    # expansion.
18591    for file in `sed -n "
18592      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18593	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18594      # Make sure the directory exists.
18595      test -f "$dirpart/$file" && continue
18596      fdir=`$as_dirname -- "$file" ||
18597$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18598	 X"$file" : 'X\(//\)[^/]' \| \
18599	 X"$file" : 'X\(//\)$' \| \
18600	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18601$as_echo X"$file" |
18602    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18603	    s//\1/
18604	    q
18605	  }
18606	  /^X\(\/\/\)[^/].*/{
18607	    s//\1/
18608	    q
18609	  }
18610	  /^X\(\/\/\)$/{
18611	    s//\1/
18612	    q
18613	  }
18614	  /^X\(\/\).*/{
18615	    s//\1/
18616	    q
18617	  }
18618	  s/.*/./; q'`
18619      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18620      # echo "creating $dirpart/$file"
18621      echo '# dummy' > "$dirpart/$file"
18622    done
18623  done
18624}
18625 ;;
18626    "libtool":C)
18627
18628    # See if we are running on zsh, and set the options that allow our
18629    # commands through without removal of \ escapes.
18630    if test -n "${ZSH_VERSION+set}"; then
18631      setopt NO_GLOB_SUBST
18632    fi
18633
18634    cfgfile=${ofile}T
18635    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18636    $RM "$cfgfile"
18637
18638    cat <<_LT_EOF >> "$cfgfile"
18639#! $SHELL
18640# Generated automatically by $as_me ($PACKAGE) $VERSION
18641# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18642# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18643
18644# Provide generalized library-building support services.
18645# Written by Gordon Matzigkeit, 1996
18646
18647# Copyright (C) 2014 Free Software Foundation, Inc.
18648# This is free software; see the source for copying conditions.  There is NO
18649# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18650
18651# GNU Libtool is free software; you can redistribute it and/or modify
18652# it under the terms of the GNU General Public License as published by
18653# the Free Software Foundation; either version 2 of of the License, or
18654# (at your option) any later version.
18655#
18656# As a special exception to the GNU General Public License, if you
18657# distribute this file as part of a program or library that is built
18658# using GNU Libtool, you may include this file under the  same
18659# distribution terms that you use for the rest of that program.
18660#
18661# GNU Libtool is distributed in the hope that it will be useful, but
18662# WITHOUT ANY WARRANTY; without even the implied warranty of
18663# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18664# GNU General Public License for more details.
18665#
18666# You should have received a copy of the GNU General Public License
18667# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18668
18669
18670# The names of the tagged configurations supported by this script.
18671available_tags='CXX '
18672
18673# Configured defaults for sys_lib_dlsearch_path munging.
18674: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18675
18676# ### BEGIN LIBTOOL CONFIG
18677
18678# A sed program that does not truncate output.
18679SED=$lt_SED
18680
18681# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18682Xsed="\$SED -e 1s/^X//"
18683
18684# A grep program that handles long lines.
18685GREP=$lt_GREP
18686
18687# An ERE matcher.
18688EGREP=$lt_EGREP
18689
18690# A literal string matcher.
18691FGREP=$lt_FGREP
18692
18693# Shell to use when invoking shell scripts.
18694SHELL=$lt_SHELL
18695
18696# An echo program that protects backslashes.
18697ECHO=$lt_ECHO
18698
18699# Whether or not to build shared libraries.
18700build_libtool_libs=$enable_shared
18701
18702# Whether or not to build static libraries.
18703build_old_libs=$enable_static
18704
18705# Which release of libtool.m4 was used?
18706macro_version=$macro_version
18707macro_revision=$macro_revision
18708
18709# What type of objects to build.
18710pic_mode=$pic_mode
18711
18712# Whether or not to optimize for fast installation.
18713fast_install=$enable_fast_install
18714
18715# Shared archive member basename,for filename based shared library versioning on AIX.
18716shared_archive_member_spec=$shared_archive_member_spec
18717
18718# The PATH separator for the build system.
18719PATH_SEPARATOR=$lt_PATH_SEPARATOR
18720
18721# The host system.
18722host_alias=$host_alias
18723host=$host
18724host_os=$host_os
18725
18726# The build system.
18727build_alias=$build_alias
18728build=$build
18729build_os=$build_os
18730
18731# A BSD- or MS-compatible name lister.
18732NM=$lt_NM
18733
18734# Whether we need soft or hard links.
18735LN_S=$lt_LN_S
18736
18737# What is the maximum length of a command?
18738max_cmd_len=$max_cmd_len
18739
18740# Object file suffix (normally "o").
18741objext=$ac_objext
18742
18743# Executable file suffix (normally "").
18744exeext=$exeext
18745
18746# whether the shell understands "unset".
18747lt_unset=$lt_unset
18748
18749# turn spaces into newlines.
18750SP2NL=$lt_lt_SP2NL
18751
18752# turn newlines into spaces.
18753NL2SP=$lt_lt_NL2SP
18754
18755# convert \$build file names to \$host format.
18756to_host_file_cmd=$lt_cv_to_host_file_cmd
18757
18758# convert \$build files to toolchain format.
18759to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18760
18761# An object symbol dumper.
18762OBJDUMP=$lt_OBJDUMP
18763
18764# Method to check whether dependent libraries are shared objects.
18765deplibs_check_method=$lt_deplibs_check_method
18766
18767# Command to use when deplibs_check_method = "file_magic".
18768file_magic_cmd=$lt_file_magic_cmd
18769
18770# How to find potential files when deplibs_check_method = "file_magic".
18771file_magic_glob=$lt_file_magic_glob
18772
18773# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18774want_nocaseglob=$lt_want_nocaseglob
18775
18776# DLL creation program.
18777DLLTOOL=$lt_DLLTOOL
18778
18779# Command to associate shared and link libraries.
18780sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18781
18782# The archiver.
18783AR=$lt_AR
18784
18785# Flags to create an archive.
18786AR_FLAGS=$lt_AR_FLAGS
18787
18788# How to feed a file listing to the archiver.
18789archiver_list_spec=$lt_archiver_list_spec
18790
18791# A symbol stripping program.
18792STRIP=$lt_STRIP
18793
18794# Commands used to install an old-style archive.
18795RANLIB=$lt_RANLIB
18796old_postinstall_cmds=$lt_old_postinstall_cmds
18797old_postuninstall_cmds=$lt_old_postuninstall_cmds
18798
18799# Whether to use a lock for old archive extraction.
18800lock_old_archive_extraction=$lock_old_archive_extraction
18801
18802# A C compiler.
18803LTCC=$lt_CC
18804
18805# LTCC compiler flags.
18806LTCFLAGS=$lt_CFLAGS
18807
18808# Take the output of nm and produce a listing of raw symbols and C names.
18809global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18810
18811# Transform the output of nm in a proper C declaration.
18812global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18813
18814# Transform the output of nm into a list of symbols to manually relocate.
18815global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18816
18817# Transform the output of nm in a C name address pair.
18818global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18819
18820# Transform the output of nm in a C name address pair when lib prefix is needed.
18821global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18822
18823# The name lister interface.
18824nm_interface=$lt_lt_cv_nm_interface
18825
18826# Specify filename containing input files for \$NM.
18827nm_file_list_spec=$lt_nm_file_list_spec
18828
18829# The root where to search for dependent libraries,and where our libraries should be installed.
18830lt_sysroot=$lt_sysroot
18831
18832# Command to truncate a binary pipe.
18833lt_truncate_bin=$lt_lt_cv_truncate_bin
18834
18835# The name of the directory that contains temporary libtool files.
18836objdir=$objdir
18837
18838# Used to examine libraries when file_magic_cmd begins with "file".
18839MAGIC_CMD=$MAGIC_CMD
18840
18841# Must we lock files when doing compilation?
18842need_locks=$lt_need_locks
18843
18844# Manifest tool.
18845MANIFEST_TOOL=$lt_MANIFEST_TOOL
18846
18847# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18848DSYMUTIL=$lt_DSYMUTIL
18849
18850# Tool to change global to local symbols on Mac OS X.
18851NMEDIT=$lt_NMEDIT
18852
18853# Tool to manipulate fat objects and archives on Mac OS X.
18854LIPO=$lt_LIPO
18855
18856# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18857OTOOL=$lt_OTOOL
18858
18859# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18860OTOOL64=$lt_OTOOL64
18861
18862# Old archive suffix (normally "a").
18863libext=$libext
18864
18865# Shared library suffix (normally ".so").
18866shrext_cmds=$lt_shrext_cmds
18867
18868# The commands to extract the exported symbol list from a shared archive.
18869extract_expsyms_cmds=$lt_extract_expsyms_cmds
18870
18871# Variables whose values should be saved in libtool wrapper scripts and
18872# restored at link time.
18873variables_saved_for_relink=$lt_variables_saved_for_relink
18874
18875# Do we need the "lib" prefix for modules?
18876need_lib_prefix=$need_lib_prefix
18877
18878# Do we need a version for libraries?
18879need_version=$need_version
18880
18881# Library versioning type.
18882version_type=$version_type
18883
18884# Shared library runtime path variable.
18885runpath_var=$runpath_var
18886
18887# Shared library path variable.
18888shlibpath_var=$shlibpath_var
18889
18890# Is shlibpath searched before the hard-coded library search path?
18891shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18892
18893# Format of library name prefix.
18894libname_spec=$lt_libname_spec
18895
18896# List of archive names.  First name is the real one, the rest are links.
18897# The last name is the one that the linker finds with -lNAME
18898library_names_spec=$lt_library_names_spec
18899
18900# The coded name of the library, if different from the real name.
18901soname_spec=$lt_soname_spec
18902
18903# Permission mode override for installation of shared libraries.
18904install_override_mode=$lt_install_override_mode
18905
18906# Command to use after installation of a shared archive.
18907postinstall_cmds=$lt_postinstall_cmds
18908
18909# Command to use after uninstallation of a shared archive.
18910postuninstall_cmds=$lt_postuninstall_cmds
18911
18912# Commands used to finish a libtool library installation in a directory.
18913finish_cmds=$lt_finish_cmds
18914
18915# As "finish_cmds", except a single script fragment to be evaled but
18916# not shown.
18917finish_eval=$lt_finish_eval
18918
18919# Whether we should hardcode library paths into libraries.
18920hardcode_into_libs=$hardcode_into_libs
18921
18922# Compile-time system search path for libraries.
18923sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18924
18925# Detected run-time system search path for libraries.
18926sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18927
18928# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18929configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18930
18931# Whether dlopen is supported.
18932dlopen_support=$enable_dlopen
18933
18934# Whether dlopen of programs is supported.
18935dlopen_self=$enable_dlopen_self
18936
18937# Whether dlopen of statically linked programs is supported.
18938dlopen_self_static=$enable_dlopen_self_static
18939
18940# Commands to strip libraries.
18941old_striplib=$lt_old_striplib
18942striplib=$lt_striplib
18943
18944
18945# The linker used to build libraries.
18946LD=$lt_LD
18947
18948# How to create reloadable object files.
18949reload_flag=$lt_reload_flag
18950reload_cmds=$lt_reload_cmds
18951
18952# Commands used to build an old-style archive.
18953old_archive_cmds=$lt_old_archive_cmds
18954
18955# A language specific compiler.
18956CC=$lt_compiler
18957
18958# Is the compiler the GNU compiler?
18959with_gcc=$GCC
18960
18961# Compiler flag to turn off builtin functions.
18962no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18963
18964# Additional compiler flags for building library objects.
18965pic_flag=$lt_lt_prog_compiler_pic
18966
18967# How to pass a linker flag through the compiler.
18968wl=$lt_lt_prog_compiler_wl
18969
18970# Compiler flag to prevent dynamic linking.
18971link_static_flag=$lt_lt_prog_compiler_static
18972
18973# Does compiler simultaneously support -c and -o options?
18974compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18975
18976# Whether or not to add -lc for building shared libraries.
18977build_libtool_need_lc=$archive_cmds_need_lc
18978
18979# Whether or not to disallow shared libs when runtime libs are static.
18980allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18981
18982# Compiler flag to allow reflexive dlopens.
18983export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18984
18985# Compiler flag to generate shared objects directly from archives.
18986whole_archive_flag_spec=$lt_whole_archive_flag_spec
18987
18988# Whether the compiler copes with passing no objects directly.
18989compiler_needs_object=$lt_compiler_needs_object
18990
18991# Create an old-style archive from a shared archive.
18992old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18993
18994# Create a temporary old-style archive to link instead of a shared archive.
18995old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18996
18997# Commands used to build a shared archive.
18998archive_cmds=$lt_archive_cmds
18999archive_expsym_cmds=$lt_archive_expsym_cmds
19000
19001# Commands used to build a loadable module if different from building
19002# a shared archive.
19003module_cmds=$lt_module_cmds
19004module_expsym_cmds=$lt_module_expsym_cmds
19005
19006# Whether we are building with GNU ld or not.
19007with_gnu_ld=$lt_with_gnu_ld
19008
19009# Flag that allows shared libraries with undefined symbols to be built.
19010allow_undefined_flag=$lt_allow_undefined_flag
19011
19012# Flag that enforces no undefined symbols.
19013no_undefined_flag=$lt_no_undefined_flag
19014
19015# Flag to hardcode \$libdir into a binary during linking.
19016# This must work even if \$libdir does not exist
19017hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19018
19019# Whether we need a single "-rpath" flag with a separated argument.
19020hardcode_libdir_separator=$lt_hardcode_libdir_separator
19021
19022# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19023# DIR into the resulting binary.
19024hardcode_direct=$hardcode_direct
19025
19026# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19027# DIR into the resulting binary and the resulting library dependency is
19028# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19029# library is relocated.
19030hardcode_direct_absolute=$hardcode_direct_absolute
19031
19032# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19033# into the resulting binary.
19034hardcode_minus_L=$hardcode_minus_L
19035
19036# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19037# into the resulting binary.
19038hardcode_shlibpath_var=$hardcode_shlibpath_var
19039
19040# Set to "yes" if building a shared library automatically hardcodes DIR
19041# into the library and all subsequent libraries and executables linked
19042# against it.
19043hardcode_automatic=$hardcode_automatic
19044
19045# Set to yes if linker adds runtime paths of dependent libraries
19046# to runtime path list.
19047inherit_rpath=$inherit_rpath
19048
19049# Whether libtool must link a program against all its dependency libraries.
19050link_all_deplibs=$link_all_deplibs
19051
19052# Set to "yes" if exported symbols are required.
19053always_export_symbols=$always_export_symbols
19054
19055# The commands to list exported symbols.
19056export_symbols_cmds=$lt_export_symbols_cmds
19057
19058# Symbols that should not be listed in the preloaded symbols.
19059exclude_expsyms=$lt_exclude_expsyms
19060
19061# Symbols that must always be exported.
19062include_expsyms=$lt_include_expsyms
19063
19064# Commands necessary for linking programs (against libraries) with templates.
19065prelink_cmds=$lt_prelink_cmds
19066
19067# Commands necessary for finishing linking programs.
19068postlink_cmds=$lt_postlink_cmds
19069
19070# Specify filename containing input files.
19071file_list_spec=$lt_file_list_spec
19072
19073# How to hardcode a shared library path into an executable.
19074hardcode_action=$hardcode_action
19075
19076# The directories searched by this compiler when creating a shared library.
19077compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19078
19079# Dependencies to place before and after the objects being linked to
19080# create a shared library.
19081predep_objects=$lt_predep_objects
19082postdep_objects=$lt_postdep_objects
19083predeps=$lt_predeps
19084postdeps=$lt_postdeps
19085
19086# The library search path used internally by the compiler when linking
19087# a shared library.
19088compiler_lib_search_path=$lt_compiler_lib_search_path
19089
19090# ### END LIBTOOL CONFIG
19091
19092_LT_EOF
19093
19094    cat <<'_LT_EOF' >> "$cfgfile"
19095
19096# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19097
19098# func_munge_path_list VARIABLE PATH
19099# -----------------------------------
19100# VARIABLE is name of variable containing _space_ separated list of
19101# directories to be munged by the contents of PATH, which is string
19102# having a format:
19103# "DIR[:DIR]:"
19104#       string "DIR[ DIR]" will be prepended to VARIABLE
19105# ":DIR[:DIR]"
19106#       string "DIR[ DIR]" will be appended to VARIABLE
19107# "DIRP[:DIRP]::[DIRA:]DIRA"
19108#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19109#       "DIRA[ DIRA]" will be appended to VARIABLE
19110# "DIR[:DIR]"
19111#       VARIABLE will be replaced by "DIR[ DIR]"
19112func_munge_path_list ()
19113{
19114    case x$2 in
19115    x)
19116        ;;
19117    *:)
19118        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19119        ;;
19120    x:*)
19121        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19122        ;;
19123    *::*)
19124        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19125        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19126        ;;
19127    *)
19128        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19129        ;;
19130    esac
19131}
19132
19133
19134# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19135func_cc_basename ()
19136{
19137    for cc_temp in $*""; do
19138      case $cc_temp in
19139        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19140        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19141        \-*) ;;
19142        *) break;;
19143      esac
19144    done
19145    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19146}
19147
19148
19149# ### END FUNCTIONS SHARED WITH CONFIGURE
19150
19151_LT_EOF
19152
19153  case $host_os in
19154  aix3*)
19155    cat <<\_LT_EOF >> "$cfgfile"
19156# AIX sometimes has problems with the GCC collect2 program.  For some
19157# reason, if we set the COLLECT_NAMES environment variable, the problems
19158# vanish in a puff of smoke.
19159if test set != "${COLLECT_NAMES+set}"; then
19160  COLLECT_NAMES=
19161  export COLLECT_NAMES
19162fi
19163_LT_EOF
19164    ;;
19165  esac
19166
19167
19168ltmain=$ac_aux_dir/ltmain.sh
19169
19170
19171  # We use sed instead of cat because bash on DJGPP gets confused if
19172  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19173  # text mode, it properly converts lines to CR/LF.  This bash problem
19174  # is reportedly fixed, but why not run on old versions too?
19175  sed '$q' "$ltmain" >> "$cfgfile" \
19176     || (rm -f "$cfgfile"; exit 1)
19177
19178   mv -f "$cfgfile" "$ofile" ||
19179    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19180  chmod +x "$ofile"
19181
19182
19183    cat <<_LT_EOF >> "$ofile"
19184
19185# ### BEGIN LIBTOOL TAG CONFIG: CXX
19186
19187# The linker used to build libraries.
19188LD=$lt_LD_CXX
19189
19190# How to create reloadable object files.
19191reload_flag=$lt_reload_flag_CXX
19192reload_cmds=$lt_reload_cmds_CXX
19193
19194# Commands used to build an old-style archive.
19195old_archive_cmds=$lt_old_archive_cmds_CXX
19196
19197# A language specific compiler.
19198CC=$lt_compiler_CXX
19199
19200# Is the compiler the GNU compiler?
19201with_gcc=$GCC_CXX
19202
19203# Compiler flag to turn off builtin functions.
19204no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19205
19206# Additional compiler flags for building library objects.
19207pic_flag=$lt_lt_prog_compiler_pic_CXX
19208
19209# How to pass a linker flag through the compiler.
19210wl=$lt_lt_prog_compiler_wl_CXX
19211
19212# Compiler flag to prevent dynamic linking.
19213link_static_flag=$lt_lt_prog_compiler_static_CXX
19214
19215# Does compiler simultaneously support -c and -o options?
19216compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19217
19218# Whether or not to add -lc for building shared libraries.
19219build_libtool_need_lc=$archive_cmds_need_lc_CXX
19220
19221# Whether or not to disallow shared libs when runtime libs are static.
19222allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19223
19224# Compiler flag to allow reflexive dlopens.
19225export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19226
19227# Compiler flag to generate shared objects directly from archives.
19228whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19229
19230# Whether the compiler copes with passing no objects directly.
19231compiler_needs_object=$lt_compiler_needs_object_CXX
19232
19233# Create an old-style archive from a shared archive.
19234old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19235
19236# Create a temporary old-style archive to link instead of a shared archive.
19237old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19238
19239# Commands used to build a shared archive.
19240archive_cmds=$lt_archive_cmds_CXX
19241archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19242
19243# Commands used to build a loadable module if different from building
19244# a shared archive.
19245module_cmds=$lt_module_cmds_CXX
19246module_expsym_cmds=$lt_module_expsym_cmds_CXX
19247
19248# Whether we are building with GNU ld or not.
19249with_gnu_ld=$lt_with_gnu_ld_CXX
19250
19251# Flag that allows shared libraries with undefined symbols to be built.
19252allow_undefined_flag=$lt_allow_undefined_flag_CXX
19253
19254# Flag that enforces no undefined symbols.
19255no_undefined_flag=$lt_no_undefined_flag_CXX
19256
19257# Flag to hardcode \$libdir into a binary during linking.
19258# This must work even if \$libdir does not exist
19259hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19260
19261# Whether we need a single "-rpath" flag with a separated argument.
19262hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19263
19264# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19265# DIR into the resulting binary.
19266hardcode_direct=$hardcode_direct_CXX
19267
19268# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19269# DIR into the resulting binary and the resulting library dependency is
19270# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19271# library is relocated.
19272hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19273
19274# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19275# into the resulting binary.
19276hardcode_minus_L=$hardcode_minus_L_CXX
19277
19278# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19279# into the resulting binary.
19280hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19281
19282# Set to "yes" if building a shared library automatically hardcodes DIR
19283# into the library and all subsequent libraries and executables linked
19284# against it.
19285hardcode_automatic=$hardcode_automatic_CXX
19286
19287# Set to yes if linker adds runtime paths of dependent libraries
19288# to runtime path list.
19289inherit_rpath=$inherit_rpath_CXX
19290
19291# Whether libtool must link a program against all its dependency libraries.
19292link_all_deplibs=$link_all_deplibs_CXX
19293
19294# Set to "yes" if exported symbols are required.
19295always_export_symbols=$always_export_symbols_CXX
19296
19297# The commands to list exported symbols.
19298export_symbols_cmds=$lt_export_symbols_cmds_CXX
19299
19300# Symbols that should not be listed in the preloaded symbols.
19301exclude_expsyms=$lt_exclude_expsyms_CXX
19302
19303# Symbols that must always be exported.
19304include_expsyms=$lt_include_expsyms_CXX
19305
19306# Commands necessary for linking programs (against libraries) with templates.
19307prelink_cmds=$lt_prelink_cmds_CXX
19308
19309# Commands necessary for finishing linking programs.
19310postlink_cmds=$lt_postlink_cmds_CXX
19311
19312# Specify filename containing input files.
19313file_list_spec=$lt_file_list_spec_CXX
19314
19315# How to hardcode a shared library path into an executable.
19316hardcode_action=$hardcode_action_CXX
19317
19318# The directories searched by this compiler when creating a shared library.
19319compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19320
19321# Dependencies to place before and after the objects being linked to
19322# create a shared library.
19323predep_objects=$lt_predep_objects_CXX
19324postdep_objects=$lt_postdep_objects_CXX
19325predeps=$lt_predeps_CXX
19326postdeps=$lt_postdeps_CXX
19327
19328# The library search path used internally by the compiler when linking
19329# a shared library.
19330compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19331
19332# ### END LIBTOOL TAG CONFIG: CXX
19333_LT_EOF
19334
19335 ;;
19336
19337  esac
19338done # for ac_tag
19339
19340
19341as_fn_exit 0
19342_ACEOF
19343ac_clean_files=$ac_clean_files_save
19344
19345test $ac_write_fail = 0 ||
19346  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19347
19348
19349# configure is writing to config.log, and then calls config.status.
19350# config.status does its own redirection, appending to config.log.
19351# Unfortunately, on DOS this fails, as config.log is still kept open
19352# by configure, so config.status won't be able to write to it; its
19353# output is simply discarded.  So we exec the FD to /dev/null,
19354# effectively closing config.log, so it can be properly (re)opened and
19355# appended to by config.status.  When coming back to configure, we
19356# need to make the FD available again.
19357if test "$no_create" != yes; then
19358  ac_cs_success=:
19359  ac_config_status_args=
19360  test "$silent" = yes &&
19361    ac_config_status_args="$ac_config_status_args --quiet"
19362  exec 5>/dev/null
19363  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19364  exec 5>>config.log
19365  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19366  # would make configure fail if this is the last instruction.
19367  $ac_cs_success || as_fn_exit 1
19368fi
19369if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19370  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19371$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19372fi
19373
19374