1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.70 for ncmpcpp 0.9.2.
4#
5#
6# Copyright (C) 1992-1996, 1998-2017, 2020 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17as_nop=:
18if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19then :
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 $as_nop
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36
37# Reset variables that may have inherited troublesome values from
38# the environment.
39
40# IFS needs to be set, to space, tab, and newline, in precisely that order.
41# (If _AS_PATH_WALK were called with IFS unset, it would have the
42# side effect of setting IFS to empty, thus disabling word splitting.)
43# Quoting is to prevent editors from complaining about space-tab.
44as_nl='
45'
46export as_nl
47IFS=" ""	$as_nl"
48
49PS1='$ '
50PS2='> '
51PS4='+ '
52
53# Ensure predictable behavior from utilities with locale-dependent output.
54LC_ALL=C
55export LC_ALL
56LANGUAGE=C
57export LANGUAGE
58
59# We cannot yet rely on "unset" to work, but we need these variables
60# to be unset--not just set to an empty or harmless value--now, to
61# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
62# also avoids known problems related to "unset" and subshell syntax
63# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
64for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
65do eval test \${$as_var+y} \
66  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
67done
68
69# Ensure that fds 0, 1, and 2 are open.
70if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
71if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
72if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
73
74# The user is always right.
75if ${PATH_SEPARATOR+false} :; 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# Find who we are.  Look in the path if we contain no directory separator.
85as_myself=
86case $0 in #((
87  *[\\/]* ) as_myself=$0 ;;
88  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
89for as_dir in $PATH
90do
91  IFS=$as_save_IFS
92  case $as_dir in #(((
93    '') as_dir=./ ;;
94    */) ;;
95    *) as_dir=$as_dir/ ;;
96  esac
97    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
98  done
99IFS=$as_save_IFS
100
101     ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
112
113
114# Use a proper internal environment variable to ensure we don't fall
115  # into an infinite loop, continuously re-executing ourselves.
116  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
117    _as_can_reexec=no; export _as_can_reexec;
118    # We cannot yet assume a decent shell, so we have to provide a
119# neutralization value for shells without unset; and this also
120# works around shells that cannot unset nonexistent variables.
121# Preserve -v and -x to the replacement shell.
122BASH_ENV=/dev/null
123ENV=/dev/null
124(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
125case $- in # ((((
126  *v*x* | *x*v* ) as_opts=-vx ;;
127  *v* ) as_opts=-v ;;
128  *x* ) as_opts=-x ;;
129  * ) as_opts= ;;
130esac
131exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
132# Admittedly, this is quite paranoid, since all the known shells bail
133# out after a failed `exec'.
134printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
135exit 255
136  fi
137  # We don't want this to propagate to other subprocesses.
138          { _as_can_reexec=; unset _as_can_reexec;}
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="as_nop=:
141if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142then :
143  emulate sh
144  NULLCMD=:
145  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146  # is contrary to our usage.  Disable this feature.
147  alias -g '\${1+\"\$@\"}'='\"\$@\"'
148  setopt NO_GLOB_SUBST
149else \$as_nop
150  case \`(set -o) 2>/dev/null\` in #(
151  *posix*) :
152    set -o posix ;; #(
153  *) :
154     ;;
155esac
156fi
157"
158  as_required="as_fn_return () { (exit \$1); }
159as_fn_success () { as_fn_return 0; }
160as_fn_failure () { as_fn_return 1; }
161as_fn_ret_success () { return 0; }
162as_fn_ret_failure () { return 1; }
163
164exitcode=0
165as_fn_success || { exitcode=1; echo as_fn_success failed.; }
166as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169if ( set x; as_fn_ret_success y && test x = \"\$1\" )
170then :
171
172else \$as_nop
173  exitcode=1; echo positional parameters were not saved.
174fi
175test x\$exitcode = x0 || exit 1
176blah=\$(echo \$(echo blah))
177test x\"\$blah\" = xblah || exit 1
178test -x / || exit 1"
179  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
180  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
181  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
182  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
183
184  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
185    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
186    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
187    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188    PATH=/empty FPATH=/empty; export PATH FPATH
189    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
190      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
191test \$(( 1 + 1 )) = 2 || exit 1"
192  if (eval "$as_required") 2>/dev/null
193then :
194  as_have_required=yes
195else $as_nop
196  as_have_required=no
197fi
198  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
199then :
200
201else $as_nop
202  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
203as_found=false
204for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
205do
206  IFS=$as_save_IFS
207  case $as_dir in #(((
208    '') as_dir=./ ;;
209    */) ;;
210    *) as_dir=$as_dir/ ;;
211  esac
212  as_found=:
213  case $as_dir in #(
214	 /*)
215	   for as_base in sh bash ksh sh5; do
216	     # Try only shells that exist, to save several forks.
217	     as_shell=$as_dir$as_base
218	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
219		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
220then :
221  CONFIG_SHELL=$as_shell as_have_required=yes
222		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
223then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231IFS=$as_save_IFS
232if $as_found
233then :
234
235else $as_nop
236  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
237	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
238then :
239  CONFIG_SHELL=$SHELL as_have_required=yes
240fi
241fi
242
243
244      if test "x$CONFIG_SHELL" != x
245then :
246  export CONFIG_SHELL
247             # We cannot yet assume a decent shell, so we have to provide a
248# neutralization value for shells without unset; and this also
249# works around shells that cannot unset nonexistent variables.
250# Preserve -v and -x to the replacement shell.
251BASH_ENV=/dev/null
252ENV=/dev/null
253(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
254case $- in # ((((
255  *v*x* | *x*v* ) as_opts=-vx ;;
256  *v* ) as_opts=-v ;;
257  *x* ) as_opts=-x ;;
258  * ) as_opts= ;;
259esac
260exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
261# Admittedly, this is quite paranoid, since all the known shells bail
262# out after a failed `exec'.
263printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
264exit 255
265fi
266
267    if test x$as_have_required = xno
268then :
269  printf "%s\n" "$0: This script requires a shell more modern than all"
270  printf "%s\n" "$0: the shells that I found on your system."
271  if test ${ZSH_VERSION+y} ; then
272    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302
303# as_fn_set_status STATUS
304# -----------------------
305# Set $? to STATUS, without forking.
306as_fn_set_status ()
307{
308  return $1
309} # as_fn_set_status
310
311# as_fn_exit STATUS
312# -----------------
313# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314as_fn_exit ()
315{
316  set +e
317  as_fn_set_status $1
318  exit $1
319} # as_fn_exit
320# as_fn_nop
321# ---------
322# Do nothing but, unlike ":", preserve the value of $?.
323as_fn_nop ()
324{
325  return $?
326}
327as_nop=as_fn_nop
328
329# as_fn_mkdir_p
330# -------------
331# Create "$as_dir" as a directory, including parents if necessary.
332as_fn_mkdir_p ()
333{
334
335  case $as_dir in #(
336  -*) as_dir=./$as_dir;;
337  esac
338  test -d "$as_dir" || eval $as_mkdir_p || {
339    as_dirs=
340    while :; do
341      case $as_dir in #(
342      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343      *) as_qdir=$as_dir;;
344      esac
345      as_dirs="'$as_qdir' $as_dirs"
346      as_dir=`$as_dirname -- "$as_dir" ||
347$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348	 X"$as_dir" : 'X\(//\)[^/]' \| \
349	 X"$as_dir" : 'X\(//\)$' \| \
350	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351printf "%s\n" X"$as_dir" |
352    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353	    s//\1/
354	    q
355	  }
356	  /^X\(\/\/\)[^/].*/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\/\)$/{
361	    s//\1/
362	    q
363	  }
364	  /^X\(\/\).*/{
365	    s//\1/
366	    q
367	  }
368	  s/.*/./; q'`
369      test -d "$as_dir" && break
370    done
371    test -z "$as_dirs" || eval "mkdir $as_dirs"
372  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375} # as_fn_mkdir_p
376
377# as_fn_executable_p FILE
378# -----------------------
379# Test if FILE is an executable regular file.
380as_fn_executable_p ()
381{
382  test -f "$1" && test -x "$1"
383} # as_fn_executable_p
384# as_fn_append VAR VALUE
385# ----------------------
386# Append the text in VALUE to the end of the definition contained in VAR. Take
387# advantage of any shell optimizations that allow amortized linear growth over
388# repeated appends, instead of the typical quadratic growth present in naive
389# implementations.
390if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391then :
392  eval 'as_fn_append ()
393  {
394    eval $1+=\$2
395  }'
396else $as_nop
397  as_fn_append ()
398  {
399    eval $1=\$$1\$2
400  }
401fi # as_fn_append
402
403# as_fn_arith ARG...
404# ------------------
405# Perform arithmetic evaluation on the ARGs, and store the result in the
406# global $as_val. Take advantage of shells that can avoid forks. The arguments
407# must be portable across $(()) and expr.
408if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
409then :
410  eval 'as_fn_arith ()
411  {
412    as_val=$(( $* ))
413  }'
414else $as_nop
415  as_fn_arith ()
416  {
417    as_val=`expr "$@" || test $? -eq 1`
418  }
419fi # as_fn_arith
420
421# as_fn_nop
422# ---------
423# Do nothing but, unlike ":", preserve the value of $?.
424as_fn_nop ()
425{
426  return $?
427}
428as_nop=as_fn_nop
429
430# as_fn_error STATUS ERROR [LINENO LOG_FD]
431# ----------------------------------------
432# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
433# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
434# script with STATUS, using 1 if that was 0.
435as_fn_error ()
436{
437  as_status=$1; test $as_status -eq 0 && as_status=1
438  if test "$4"; then
439    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
440    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
441  fi
442  printf "%s\n" "$as_me: error: $2" >&2
443  as_fn_exit $as_status
444} # as_fn_error
445
446if expr a : '\(a\)' >/dev/null 2>&1 &&
447   test "X`expr 00001 : '.*\(...\)'`" = X001; then
448  as_expr=expr
449else
450  as_expr=false
451fi
452
453if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
454  as_basename=basename
455else
456  as_basename=false
457fi
458
459if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
460  as_dirname=dirname
461else
462  as_dirname=false
463fi
464
465as_me=`$as_basename -- "$0" ||
466$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
467	 X"$0" : 'X\(//\)$' \| \
468	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
469printf "%s\n" X/"$0" |
470    sed '/^.*\/\([^/][^/]*\)\/*$/{
471	    s//\1/
472	    q
473	  }
474	  /^X\/\(\/\/\)$/{
475	    s//\1/
476	    q
477	  }
478	  /^X\/\(\/\).*/{
479	    s//\1/
480	    q
481	  }
482	  s/.*/./; q'`
483
484# Avoid depending upon Character Ranges.
485as_cr_letters='abcdefghijklmnopqrstuvwxyz'
486as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
487as_cr_Letters=$as_cr_letters$as_cr_LETTERS
488as_cr_digits='0123456789'
489as_cr_alnum=$as_cr_Letters$as_cr_digits
490
491
492  as_lineno_1=$LINENO as_lineno_1a=$LINENO
493  as_lineno_2=$LINENO as_lineno_2a=$LINENO
494  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
495  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
496  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
497  sed -n '
498    p
499    /[$]LINENO/=
500  ' <$as_myself |
501    sed '
502      s/[$]LINENO.*/&-/
503      t lineno
504      b
505      :lineno
506      N
507      :loop
508      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
509      t loop
510      s/-\n.*//
511    ' >$as_me.lineno &&
512  chmod +x "$as_me.lineno" ||
513    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
514
515  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
516  # already done that, so ensure we don't try to do so again and fall
517  # in an infinite loop.  This has already happened in practice.
518  _as_can_reexec=no; export _as_can_reexec
519  # Don't try to exec as it changes $[0], causing all sort of problems
520  # (the dirname of $[0] is not the place where we might find the
521  # original and so on.  Autoconf is especially sensitive to this).
522  . "./$as_me.lineno"
523  # Exit status is that of the last command.
524  exit
525}
526
527
528# Determine whether it's possible to make 'echo' print without a newline.
529# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
530# for compatibility with existing Makefiles.
531ECHO_C= ECHO_N= ECHO_T=
532case `echo -n x` in #(((((
533-n*)
534  case `echo 'xy\c'` in
535  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
536  xy)  ECHO_C='\c';;
537  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
538       ECHO_T='	';;
539  esac;;
540*)
541  ECHO_N='-n';;
542esac
543
544# For backward compatibility with old third-party macros, we provide
545# the shell variables $as_echo and $as_echo_n.  New code should use
546# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
547as_echo='printf %s\n'
548as_echo_n='printf %s'
549
550
551rm -f conf$$ conf$$.exe conf$$.file
552if test -d conf$$.dir; then
553  rm -f conf$$.dir/conf$$.file
554else
555  rm -f conf$$.dir
556  mkdir conf$$.dir 2>/dev/null
557fi
558if (echo >conf$$.file) 2>/dev/null; then
559  if ln -s conf$$.file conf$$ 2>/dev/null; then
560    as_ln_s='ln -s'
561    # ... but there are two gotchas:
562    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
563    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
564    # In both cases, we have to default to `cp -pR'.
565    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
566      as_ln_s='cp -pR'
567  elif ln conf$$.file conf$$ 2>/dev/null; then
568    as_ln_s=ln
569  else
570    as_ln_s='cp -pR'
571  fi
572else
573  as_ln_s='cp -pR'
574fi
575rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
576rmdir conf$$.dir 2>/dev/null
577
578if mkdir -p . 2>/dev/null; then
579  as_mkdir_p='mkdir -p "$as_dir"'
580else
581  test -d ./-p && rmdir ./-p
582  as_mkdir_p=false
583fi
584
585as_test_x='test -x'
586as_executable_p=as_fn_executable_p
587
588# Sed expression to map a string onto a valid CPP name.
589as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
590
591# Sed expression to map a string onto a valid variable name.
592as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
593
594SHELL=${CONFIG_SHELL-/bin/sh}
595
596
597test -n "$DJDIR" || exec 7<&0 </dev/null
598exec 6>&1
599
600# Name of the host.
601# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
602# so uname gets run too.
603ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
604
605#
606# Initializations.
607#
608ac_default_prefix=/usr/local
609ac_clean_files=
610ac_config_libobj_dir=.
611LIBOBJS=
612cross_compiling=no
613subdirs=
614MFLAGS=
615MAKEFLAGS=
616
617# Identity of this package.
618PACKAGE_NAME='ncmpcpp'
619PACKAGE_TARNAME='ncmpcpp'
620PACKAGE_VERSION='0.9.2'
621PACKAGE_STRING='ncmpcpp 0.9.2'
622PACKAGE_BUGREPORT=''
623PACKAGE_URL=''
624
625ac_unique_file="configure.ac"
626# Factoring default headers for most tests.
627ac_includes_default="\
628#include <stddef.h>
629#ifdef HAVE_STDIO_H
630# include <stdio.h>
631#endif
632#ifdef HAVE_STDLIB_H
633# include <stdlib.h>
634#endif
635#ifdef HAVE_STRING_H
636# include <string.h>
637#endif
638#ifdef HAVE_INTTYPES_H
639# include <inttypes.h>
640#endif
641#ifdef HAVE_STDINT_H
642# include <stdint.h>
643#endif
644#ifdef HAVE_STRINGS_H
645# include <strings.h>
646#endif
647#ifdef HAVE_SYS_TYPES_H
648# include <sys/types.h>
649#endif
650#ifdef HAVE_SYS_STAT_H
651# include <sys/stat.h>
652#endif
653#ifdef HAVE_UNISTD_H
654# include <unistd.h>
655#endif"
656
657ac_header_c_list=
658ac_subst_vars='am__EXEEXT_FALSE
659am__EXEEXT_TRUE
660LTLIBOBJS
661LIBOBJS
662TAGLIB_CONFIG
663libcurl_LIBS
664libcurl_CFLAGS
665fftw3_LIBS
666fftw3_CFLAGS
667ncursesw_LIBS
668ncursesw_CFLAGS
669libmpdclient_LIBS
670libmpdclient_CFLAGS
671ICU_LIBS
672ICU_CFLAGS
673PKG_CONFIG_LIBDIR
674PKG_CONFIG_PATH
675PKG_CONFIG
676BOOST_THREAD_LIBS
677BOOST_THREAD_LDPATH
678BOOST_THREAD_LDFLAGS
679BOOST_REGEX_LIBS
680BOOST_REGEX_LDPATH
681BOOST_REGEX_LDFLAGS
682BOOST_PROGRAM_OPTIONS_LIBS
683BOOST_PROGRAM_OPTIONS_LDPATH
684BOOST_PROGRAM_OPTIONS_LDFLAGS
685BOOST_LOCALE_LIBS
686BOOST_LOCALE_LDPATH
687BOOST_LOCALE_LDFLAGS
688BOOST_FILESYSTEM_LIBS
689BOOST_FILESYSTEM_LDPATH
690BOOST_FILESYSTEM_LDFLAGS
691BOOST_SYSTEM_LIBS
692BOOST_SYSTEM_LDPATH
693BOOST_SYSTEM_LDFLAGS
694BOOST_DATE_TIME_LIBS
695BOOST_LDPATH
696BOOST_DATE_TIME_LDPATH
697BOOST_DATE_TIME_LDFLAGS
698BOOST_CPPFLAGS
699DISTCHECK_CONFIGURE_FLAGS
700BOOST_ROOT
701CXXCPP
702LT_SYS_LIBRARY_PATH
703OTOOL64
704OTOOL
705LIPO
706NMEDIT
707DSYMUTIL
708MANIFEST_TOOL
709RANLIB
710ac_ct_AR
711AR
712DLLTOOL
713OBJDUMP
714LN_S
715NM
716ac_ct_DUMPBIN
717DUMPBIN
718LD
719FGREP
720EGREP
721GREP
722SED
723am__fastdepCC_FALSE
724am__fastdepCC_TRUE
725CCDEPMODE
726ac_ct_CC
727CFLAGS
728CC
729host_os
730host_vendor
731host_cpu
732host
733build_os
734build_vendor
735build_cpu
736build
737LIBTOOL
738am__fastdepCXX_FALSE
739am__fastdepCXX_TRUE
740CXXDEPMODE
741am__nodep
742AMDEPBACKSLASH
743AMDEP_FALSE
744AMDEP_TRUE
745am__include
746DEPDIR
747OBJEXT
748EXEEXT
749ac_ct_CXX
750CPPFLAGS
751LDFLAGS
752CXXFLAGS
753CXX
754AM_BACKSLASH
755AM_DEFAULT_VERBOSITY
756AM_DEFAULT_V
757AM_V
758am__untar
759am__tar
760AMTAR
761am__leading_dot
762SET_MAKE
763AWK
764mkdir_p
765MKDIR_P
766INSTALL_STRIP_PROGRAM
767STRIP
768install_sh
769MAKEINFO
770AUTOHEADER
771AUTOMAKE
772AUTOCONF
773ACLOCAL
774VERSION
775PACKAGE
776CYGPATH_W
777am__isrc
778INSTALL_DATA
779INSTALL_SCRIPT
780INSTALL_PROGRAM
781target_alias
782host_alias
783build_alias
784LIBS
785ECHO_T
786ECHO_N
787ECHO_C
788DEFS
789mandir
790localedir
791libdir
792psdir
793pdfdir
794dvidir
795htmldir
796infodir
797docdir
798oldincludedir
799includedir
800runstatedir
801localstatedir
802sharedstatedir
803sysconfdir
804datadir
805datarootdir
806libexecdir
807sbindir
808bindir
809program_transform_name
810prefix
811exec_prefix
812PACKAGE_URL
813PACKAGE_BUGREPORT
814PACKAGE_STRING
815PACKAGE_VERSION
816PACKAGE_TARNAME
817PACKAGE_NAME
818PATH_SEPARATOR
819SHELL
820am__quote'
821ac_subst_files=''
822ac_user_opts='
823enable_option_checking
824enable_silent_rules
825enable_dependency_tracking
826enable_shared
827enable_static
828with_pic
829enable_fast_install
830with_aix_soname
831with_gnu_ld
832with_sysroot
833enable_libtool_lock
834enable_outputs
835enable_visualizer
836enable_clock
837with_fftw
838with_taglib
839with_lto
840with_boost
841enable_static_boost
842'
843      ac_precious_vars='build_alias
844host_alias
845target_alias
846CXX
847CXXFLAGS
848LDFLAGS
849LIBS
850CPPFLAGS
851CCC
852CC
853CFLAGS
854LT_SYS_LIBRARY_PATH
855CXXCPP
856BOOST_ROOT
857PKG_CONFIG
858PKG_CONFIG_PATH
859PKG_CONFIG_LIBDIR
860ICU_CFLAGS
861ICU_LIBS
862libmpdclient_CFLAGS
863libmpdclient_LIBS
864ncursesw_CFLAGS
865ncursesw_LIBS
866fftw3_CFLAGS
867fftw3_LIBS
868libcurl_CFLAGS
869libcurl_LIBS'
870
871
872# Initialize some variables set by options.
873ac_init_help=
874ac_init_version=false
875ac_unrecognized_opts=
876ac_unrecognized_sep=
877# The variables have the same names as the options, with
878# dashes changed to underlines.
879cache_file=/dev/null
880exec_prefix=NONE
881no_create=
882no_recursion=
883prefix=NONE
884program_prefix=NONE
885program_suffix=NONE
886program_transform_name=s,x,x,
887silent=
888site=
889srcdir=
890verbose=
891x_includes=NONE
892x_libraries=NONE
893
894# Installation directory options.
895# These are left unexpanded so users can "make install exec_prefix=/foo"
896# and all the variables that are supposed to be based on exec_prefix
897# by default will actually change.
898# Use braces instead of parens because sh, perl, etc. also accept them.
899# (The list follows the same order as the GNU Coding Standards.)
900bindir='${exec_prefix}/bin'
901sbindir='${exec_prefix}/sbin'
902libexecdir='${exec_prefix}/libexec'
903datarootdir='${prefix}/share'
904datadir='${datarootdir}'
905sysconfdir='${prefix}/etc'
906sharedstatedir='${prefix}/com'
907localstatedir='${prefix}/var'
908runstatedir='${localstatedir}/run'
909includedir='${prefix}/include'
910oldincludedir='/usr/include'
911docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
912infodir='${datarootdir}/info'
913htmldir='${docdir}'
914dvidir='${docdir}'
915pdfdir='${docdir}'
916psdir='${docdir}'
917libdir='${exec_prefix}/lib'
918localedir='${datarootdir}/locale'
919mandir='${datarootdir}/man'
920
921ac_prev=
922ac_dashdash=
923for ac_option
924do
925  # If the previous option needs an argument, assign it.
926  if test -n "$ac_prev"; then
927    eval $ac_prev=\$ac_option
928    ac_prev=
929    continue
930  fi
931
932  case $ac_option in
933  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934  *=)   ac_optarg= ;;
935  *)    ac_optarg=yes ;;
936  esac
937
938  case $ac_dashdash$ac_option in
939  --)
940    ac_dashdash=yes ;;
941
942  -bindir | --bindir | --bindi | --bind | --bin | --bi)
943    ac_prev=bindir ;;
944  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
945    bindir=$ac_optarg ;;
946
947  -build | --build | --buil | --bui | --bu)
948    ac_prev=build_alias ;;
949  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
950    build_alias=$ac_optarg ;;
951
952  -cache-file | --cache-file | --cache-fil | --cache-fi \
953  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
954    ac_prev=cache_file ;;
955  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
956  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
957    cache_file=$ac_optarg ;;
958
959  --config-cache | -C)
960    cache_file=config.cache ;;
961
962  -datadir | --datadir | --datadi | --datad)
963    ac_prev=datadir ;;
964  -datadir=* | --datadir=* | --datadi=* | --datad=*)
965    datadir=$ac_optarg ;;
966
967  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
968  | --dataroo | --dataro | --datar)
969    ac_prev=datarootdir ;;
970  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
971  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
972    datarootdir=$ac_optarg ;;
973
974  -disable-* | --disable-*)
975    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
976    # Reject names that are not valid shell variable names.
977    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978      as_fn_error $? "invalid feature name: \`$ac_useropt'"
979    ac_useropt_orig=$ac_useropt
980    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
981    case $ac_user_opts in
982      *"
983"enable_$ac_useropt"
984"*) ;;
985      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
986	 ac_unrecognized_sep=', ';;
987    esac
988    eval enable_$ac_useropt=no ;;
989
990  -docdir | --docdir | --docdi | --doc | --do)
991    ac_prev=docdir ;;
992  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
993    docdir=$ac_optarg ;;
994
995  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
996    ac_prev=dvidir ;;
997  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
998    dvidir=$ac_optarg ;;
999
1000  -enable-* | --enable-*)
1001    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1002    # Reject names that are not valid shell variable names.
1003    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1005    ac_useropt_orig=$ac_useropt
1006    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1007    case $ac_user_opts in
1008      *"
1009"enable_$ac_useropt"
1010"*) ;;
1011      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1012	 ac_unrecognized_sep=', ';;
1013    esac
1014    eval enable_$ac_useropt=\$ac_optarg ;;
1015
1016  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1017  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1018  | --exec | --exe | --ex)
1019    ac_prev=exec_prefix ;;
1020  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1021  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1022  | --exec=* | --exe=* | --ex=*)
1023    exec_prefix=$ac_optarg ;;
1024
1025  -gas | --gas | --ga | --g)
1026    # Obsolete; use --with-gas.
1027    with_gas=yes ;;
1028
1029  -help | --help | --hel | --he | -h)
1030    ac_init_help=long ;;
1031  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1032    ac_init_help=recursive ;;
1033  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1034    ac_init_help=short ;;
1035
1036  -host | --host | --hos | --ho)
1037    ac_prev=host_alias ;;
1038  -host=* | --host=* | --hos=* | --ho=*)
1039    host_alias=$ac_optarg ;;
1040
1041  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1042    ac_prev=htmldir ;;
1043  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1044  | --ht=*)
1045    htmldir=$ac_optarg ;;
1046
1047  -includedir | --includedir | --includedi | --included | --include \
1048  | --includ | --inclu | --incl | --inc)
1049    ac_prev=includedir ;;
1050  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1051  | --includ=* | --inclu=* | --incl=* | --inc=*)
1052    includedir=$ac_optarg ;;
1053
1054  -infodir | --infodir | --infodi | --infod | --info | --inf)
1055    ac_prev=infodir ;;
1056  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1057    infodir=$ac_optarg ;;
1058
1059  -libdir | --libdir | --libdi | --libd)
1060    ac_prev=libdir ;;
1061  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1062    libdir=$ac_optarg ;;
1063
1064  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1065  | --libexe | --libex | --libe)
1066    ac_prev=libexecdir ;;
1067  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1068  | --libexe=* | --libex=* | --libe=*)
1069    libexecdir=$ac_optarg ;;
1070
1071  -localedir | --localedir | --localedi | --localed | --locale)
1072    ac_prev=localedir ;;
1073  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1074    localedir=$ac_optarg ;;
1075
1076  -localstatedir | --localstatedir | --localstatedi | --localstated \
1077  | --localstate | --localstat | --localsta | --localst | --locals)
1078    ac_prev=localstatedir ;;
1079  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1080  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1081    localstatedir=$ac_optarg ;;
1082
1083  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1084    ac_prev=mandir ;;
1085  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1086    mandir=$ac_optarg ;;
1087
1088  -nfp | --nfp | --nf)
1089    # Obsolete; use --without-fp.
1090    with_fp=no ;;
1091
1092  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1093  | --no-cr | --no-c | -n)
1094    no_create=yes ;;
1095
1096  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1097  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1098    no_recursion=yes ;;
1099
1100  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1101  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1102  | --oldin | --oldi | --old | --ol | --o)
1103    ac_prev=oldincludedir ;;
1104  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1105  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1106  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1107    oldincludedir=$ac_optarg ;;
1108
1109  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1110    ac_prev=prefix ;;
1111  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1112    prefix=$ac_optarg ;;
1113
1114  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1115  | --program-pre | --program-pr | --program-p)
1116    ac_prev=program_prefix ;;
1117  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1118  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1119    program_prefix=$ac_optarg ;;
1120
1121  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1122  | --program-suf | --program-su | --program-s)
1123    ac_prev=program_suffix ;;
1124  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1125  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1126    program_suffix=$ac_optarg ;;
1127
1128  -program-transform-name | --program-transform-name \
1129  | --program-transform-nam | --program-transform-na \
1130  | --program-transform-n | --program-transform- \
1131  | --program-transform | --program-transfor \
1132  | --program-transfo | --program-transf \
1133  | --program-trans | --program-tran \
1134  | --progr-tra | --program-tr | --program-t)
1135    ac_prev=program_transform_name ;;
1136  -program-transform-name=* | --program-transform-name=* \
1137  | --program-transform-nam=* | --program-transform-na=* \
1138  | --program-transform-n=* | --program-transform-=* \
1139  | --program-transform=* | --program-transfor=* \
1140  | --program-transfo=* | --program-transf=* \
1141  | --program-trans=* | --program-tran=* \
1142  | --progr-tra=* | --program-tr=* | --program-t=*)
1143    program_transform_name=$ac_optarg ;;
1144
1145  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1146    ac_prev=pdfdir ;;
1147  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1148    pdfdir=$ac_optarg ;;
1149
1150  -psdir | --psdir | --psdi | --psd | --ps)
1151    ac_prev=psdir ;;
1152  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1153    psdir=$ac_optarg ;;
1154
1155  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1156  | -silent | --silent | --silen | --sile | --sil)
1157    silent=yes ;;
1158
1159  -runstatedir | --runstatedir | --runstatedi | --runstated \
1160  | --runstate | --runstat | --runsta | --runst | --runs \
1161  | --run | --ru | --r)
1162    ac_prev=runstatedir ;;
1163  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1164  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1165  | --run=* | --ru=* | --r=*)
1166    runstatedir=$ac_optarg ;;
1167
1168  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169    ac_prev=sbindir ;;
1170  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171  | --sbi=* | --sb=*)
1172    sbindir=$ac_optarg ;;
1173
1174  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176  | --sharedst | --shareds | --shared | --share | --shar \
1177  | --sha | --sh)
1178    ac_prev=sharedstatedir ;;
1179  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182  | --sha=* | --sh=*)
1183    sharedstatedir=$ac_optarg ;;
1184
1185  -site | --site | --sit)
1186    ac_prev=site ;;
1187  -site=* | --site=* | --sit=*)
1188    site=$ac_optarg ;;
1189
1190  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191    ac_prev=srcdir ;;
1192  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193    srcdir=$ac_optarg ;;
1194
1195  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196  | --syscon | --sysco | --sysc | --sys | --sy)
1197    ac_prev=sysconfdir ;;
1198  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200    sysconfdir=$ac_optarg ;;
1201
1202  -target | --target | --targe | --targ | --tar | --ta | --t)
1203    ac_prev=target_alias ;;
1204  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205    target_alias=$ac_optarg ;;
1206
1207  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208    verbose=yes ;;
1209
1210  -version | --version | --versio | --versi | --vers | -V)
1211    ac_init_version=: ;;
1212
1213  -with-* | --with-*)
1214    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215    # Reject names that are not valid shell variable names.
1216    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217      as_fn_error $? "invalid package name: \`$ac_useropt'"
1218    ac_useropt_orig=$ac_useropt
1219    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1220    case $ac_user_opts in
1221      *"
1222"with_$ac_useropt"
1223"*) ;;
1224      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225	 ac_unrecognized_sep=', ';;
1226    esac
1227    eval with_$ac_useropt=\$ac_optarg ;;
1228
1229  -without-* | --without-*)
1230    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231    # Reject names that are not valid shell variable names.
1232    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233      as_fn_error $? "invalid package name: \`$ac_useropt'"
1234    ac_useropt_orig=$ac_useropt
1235    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1236    case $ac_user_opts in
1237      *"
1238"with_$ac_useropt"
1239"*) ;;
1240      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241	 ac_unrecognized_sep=', ';;
1242    esac
1243    eval with_$ac_useropt=no ;;
1244
1245  --x)
1246    # Obsolete; use --with-x.
1247    with_x=yes ;;
1248
1249  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250  | --x-incl | --x-inc | --x-in | --x-i)
1251    ac_prev=x_includes ;;
1252  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254    x_includes=$ac_optarg ;;
1255
1256  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258    ac_prev=x_libraries ;;
1259  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261    x_libraries=$ac_optarg ;;
1262
1263  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1264Try \`$0 --help' for more information"
1265    ;;
1266
1267  *=*)
1268    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269    # Reject names that are not valid shell variable names.
1270    case $ac_envvar in #(
1271      '' | [0-9]* | *[!_$as_cr_alnum]* )
1272      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1273    esac
1274    eval $ac_envvar=\$ac_optarg
1275    export $ac_envvar ;;
1276
1277  *)
1278    # FIXME: should be removed in autoconf 3.0.
1279    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1280    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1282    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1283    ;;
1284
1285  esac
1286done
1287
1288if test -n "$ac_prev"; then
1289  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290  as_fn_error $? "missing argument to $ac_option"
1291fi
1292
1293if test -n "$ac_unrecognized_opts"; then
1294  case $enable_option_checking in
1295    no) ;;
1296    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1297    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298  esac
1299fi
1300
1301# Check all directory arguments for consistency.
1302for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303		datadir sysconfdir sharedstatedir localstatedir includedir \
1304		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305		libdir localedir mandir runstatedir
1306do
1307  eval ac_val=\$$ac_var
1308  # Remove trailing slashes.
1309  case $ac_val in
1310    */ )
1311      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312      eval $ac_var=\$ac_val;;
1313  esac
1314  # Be sure to have absolute directory names.
1315  case $ac_val in
1316    [\\/$]* | ?:[\\/]* )  continue;;
1317    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1318  esac
1319  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1320done
1321
1322# There might be people who depend on the old broken behavior: `$host'
1323# used to hold the argument of --host etc.
1324# FIXME: To remove some day.
1325build=$build_alias
1326host=$host_alias
1327target=$target_alias
1328
1329# FIXME: To remove some day.
1330if test "x$host_alias" != x; then
1331  if test "x$build_alias" = x; then
1332    cross_compiling=maybe
1333  elif test "x$build_alias" != "x$host_alias"; then
1334    cross_compiling=yes
1335  fi
1336fi
1337
1338ac_tool_prefix=
1339test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
1341test "$silent" = yes && exec 6>/dev/null
1342
1343
1344ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345ac_ls_di=`ls -di .` &&
1346ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347  as_fn_error $? "working directory cannot be determined"
1348test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349  as_fn_error $? "pwd does not report name of working directory"
1350
1351
1352# Find the source files, if location was not specified.
1353if test -z "$srcdir"; then
1354  ac_srcdir_defaulted=yes
1355  # Try the directory containing this script, then the parent directory.
1356  ac_confdir=`$as_dirname -- "$as_myself" ||
1357$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358	 X"$as_myself" : 'X\(//\)[^/]' \| \
1359	 X"$as_myself" : 'X\(//\)$' \| \
1360	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361printf "%s\n" X"$as_myself" |
1362    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363	    s//\1/
1364	    q
1365	  }
1366	  /^X\(\/\/\)[^/].*/{
1367	    s//\1/
1368	    q
1369	  }
1370	  /^X\(\/\/\)$/{
1371	    s//\1/
1372	    q
1373	  }
1374	  /^X\(\/\).*/{
1375	    s//\1/
1376	    q
1377	  }
1378	  s/.*/./; q'`
1379  srcdir=$ac_confdir
1380  if test ! -r "$srcdir/$ac_unique_file"; then
1381    srcdir=..
1382  fi
1383else
1384  ac_srcdir_defaulted=no
1385fi
1386if test ! -r "$srcdir/$ac_unique_file"; then
1387  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1389fi
1390ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391ac_abs_confdir=`(
1392	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1393	pwd)`
1394# When building in place, set srcdir=.
1395if test "$ac_abs_confdir" = "$ac_pwd"; then
1396  srcdir=.
1397fi
1398# Remove unnecessary trailing slashes from srcdir.
1399# Double slashes in file names in object file debugging info
1400# mess up M-x gdb in Emacs.
1401case $srcdir in
1402*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403esac
1404for ac_var in $ac_precious_vars; do
1405  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406  eval ac_env_${ac_var}_value=\$${ac_var}
1407  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409done
1410
1411#
1412# Report the --help message.
1413#
1414if test "$ac_init_help" = "long"; then
1415  # Omit some internal or obsolete options to make the list less imposing.
1416  # This message is too long to be a string in the A/UX 3.1 sh.
1417  cat <<_ACEOF
1418\`configure' configures ncmpcpp 0.9.2 to adapt to many kinds of systems.
1419
1420Usage: $0 [OPTION]... [VAR=VALUE]...
1421
1422To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423VAR=VALUE.  See below for descriptions of some of the useful variables.
1424
1425Defaults for the options are specified in brackets.
1426
1427Configuration:
1428  -h, --help              display this help and exit
1429      --help=short        display options specific to this package
1430      --help=recursive    display the short help of all the included packages
1431  -V, --version           display version information and exit
1432  -q, --quiet, --silent   do not print \`checking ...' messages
1433      --cache-file=FILE   cache test results in FILE [disabled]
1434  -C, --config-cache      alias for \`--cache-file=config.cache'
1435  -n, --no-create         do not create output files
1436      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1437
1438Installation directories:
1439  --prefix=PREFIX         install architecture-independent files in PREFIX
1440                          [$ac_default_prefix]
1441  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1442                          [PREFIX]
1443
1444By default, \`make install' will install all the files in
1445\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1446an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447for instance \`--prefix=\$HOME'.
1448
1449For better control, use the options below.
1450
1451Fine tuning of the installation directories:
1452  --bindir=DIR            user executables [EPREFIX/bin]
1453  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1454  --libexecdir=DIR        program executables [EPREFIX/libexec]
1455  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1456  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1457  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1458  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1459  --libdir=DIR            object code libraries [EPREFIX/lib]
1460  --includedir=DIR        C header files [PREFIX/include]
1461  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1462  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1463  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1464  --infodir=DIR           info documentation [DATAROOTDIR/info]
1465  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1466  --mandir=DIR            man documentation [DATAROOTDIR/man]
1467  --docdir=DIR            documentation root [DATAROOTDIR/doc/ncmpcpp]
1468  --htmldir=DIR           html documentation [DOCDIR]
1469  --dvidir=DIR            dvi documentation [DOCDIR]
1470  --pdfdir=DIR            pdf documentation [DOCDIR]
1471  --psdir=DIR             ps documentation [DOCDIR]
1472_ACEOF
1473
1474  cat <<\_ACEOF
1475
1476Program names:
1477  --program-prefix=PREFIX            prepend PREFIX to installed program names
1478  --program-suffix=SUFFIX            append SUFFIX to installed program names
1479  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1480
1481System types:
1482  --build=BUILD     configure for building on BUILD [guessed]
1483  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1484_ACEOF
1485fi
1486
1487if test -n "$ac_init_help"; then
1488  case $ac_init_help in
1489     short | recursive ) echo "Configuration of ncmpcpp 0.9.2:";;
1490   esac
1491  cat <<\_ACEOF
1492
1493Optional Features:
1494  --disable-option-checking  ignore unrecognized --enable/--with options
1495  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1496  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1497  --enable-silent-rules   less verbose build output (undo: "make V=1")
1498  --disable-silent-rules  verbose build output (undo: "make V=0")
1499  --enable-dependency-tracking
1500                          do not reject slow dependency extractors
1501  --disable-dependency-tracking
1502                          speeds up one-time build
1503  --enable-shared[=PKGS]  build shared libraries [default=yes]
1504  --enable-static[=PKGS]  build static libraries [default=yes]
1505  --enable-fast-install[=PKGS]
1506                          optimize for fast installation [default=yes]
1507  --disable-libtool-lock  avoid locking (might break parallel builds)
1508  --enable-outputs        Enable outputs screen [default=no]
1509  --enable-visualizer     Enable music visualizer screen [default=no]
1510  --enable-clock          Enable clock screen [default=no]
1511  --enable-static-boost   Prefer the static boost libraries over the shared
1512                          ones [no]
1513
1514Optional Packages:
1515  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1516  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1517  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1518                          both]
1519  --with-aix-soname=aix|svr4|both
1520                          shared library versioning (aka "SONAME") variant to
1521                          provide on AIX, [default=aix].
1522  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1523  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1524                          compiler's sysroot if not specified).
1525  --with-fftw             Enable fftw support (required for frequency spectrum
1526                          vizualization) [default=auto]
1527  --with-taglib           Enable tag editor [default=auto]
1528  --with-lto              Enable LTO (link time optimization) [default=yes]
1529  --with-boost=DIR        prefix of Boost 1.60 [guess]
1530
1531Some influential environment variables:
1532  CXX         C++ compiler command
1533  CXXFLAGS    C++ compiler flags
1534  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1535              nonstandard directory <lib dir>
1536  LIBS        libraries to pass to the linker, e.g. -l<library>
1537  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538              you have headers in a nonstandard directory <include dir>
1539  CC          C compiler command
1540  CFLAGS      C compiler flags
1541  LT_SYS_LIBRARY_PATH
1542              User-defined run-time library search path.
1543  CXXCPP      C++ preprocessor
1544  BOOST_ROOT  Location of Boost installation
1545  PKG_CONFIG  path to pkg-config utility
1546  PKG_CONFIG_PATH
1547              directories to add to pkg-config's search path
1548  PKG_CONFIG_LIBDIR
1549              path overriding pkg-config's built-in search path
1550  ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
1551  ICU_LIBS    linker flags for ICU, overriding pkg-config
1552  libmpdclient_CFLAGS
1553              C compiler flags for libmpdclient, overriding pkg-config
1554  libmpdclient_LIBS
1555              linker flags for libmpdclient, overriding pkg-config
1556  ncursesw_CFLAGS
1557              C compiler flags for ncursesw, overriding pkg-config
1558  ncursesw_LIBS
1559              linker flags for ncursesw, overriding pkg-config
1560  fftw3_CFLAGS
1561              C compiler flags for fftw3, overriding pkg-config
1562  fftw3_LIBS  linker flags for fftw3, overriding pkg-config
1563  libcurl_CFLAGS
1564              C compiler flags for libcurl, overriding pkg-config
1565  libcurl_LIBS
1566              linker flags for libcurl, overriding pkg-config
1567
1568Use these variables to override the choices made by `configure' or to help
1569it to find libraries and programs with nonstandard names/locations.
1570
1571Report bugs to the package provider.
1572_ACEOF
1573ac_status=$?
1574fi
1575
1576if test "$ac_init_help" = "recursive"; then
1577  # If there are subdirs, report their specific --help.
1578  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579    test -d "$ac_dir" ||
1580      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581      continue
1582    ac_builddir=.
1583
1584case "$ac_dir" in
1585.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586*)
1587  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1588  # A ".." for each directory in $ac_dir_suffix.
1589  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1590  case $ac_top_builddir_sub in
1591  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593  esac ;;
1594esac
1595ac_abs_top_builddir=$ac_pwd
1596ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597# for backward compatibility:
1598ac_top_builddir=$ac_top_build_prefix
1599
1600case $srcdir in
1601  .)  # We are building in place.
1602    ac_srcdir=.
1603    ac_top_srcdir=$ac_top_builddir_sub
1604    ac_abs_top_srcdir=$ac_pwd ;;
1605  [\\/]* | ?:[\\/]* )  # Absolute name.
1606    ac_srcdir=$srcdir$ac_dir_suffix;
1607    ac_top_srcdir=$srcdir
1608    ac_abs_top_srcdir=$srcdir ;;
1609  *) # Relative name.
1610    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611    ac_top_srcdir=$ac_top_build_prefix$srcdir
1612    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1613esac
1614ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1615
1616    cd "$ac_dir" || { ac_status=$?; continue; }
1617    # Check for configure.gnu first; this name is used for a wrapper for
1618    # Metaconfig's "Configure" on case-insensitive file systems.
1619    if test -f "$ac_srcdir/configure.gnu"; then
1620      echo &&
1621      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622    elif test -f "$ac_srcdir/configure"; then
1623      echo &&
1624      $SHELL "$ac_srcdir/configure" --help=recursive
1625    else
1626      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627    fi || ac_status=$?
1628    cd "$ac_pwd" || { ac_status=$?; break; }
1629  done
1630fi
1631
1632test -n "$ac_init_help" && exit $ac_status
1633if $ac_init_version; then
1634  cat <<\_ACEOF
1635ncmpcpp configure 0.9.2
1636generated by GNU Autoconf 2.70
1637
1638Copyright (C) 2020 Free Software Foundation, Inc.
1639This configure script is free software; the Free Software Foundation
1640gives unlimited permission to copy, distribute and modify it.
1641_ACEOF
1642  exit
1643fi
1644
1645## ------------------------ ##
1646## Autoconf initialization. ##
1647## ------------------------ ##
1648
1649# ac_fn_cxx_try_compile LINENO
1650# ----------------------------
1651# Try to compile conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_cxx_try_compile ()
1653{
1654  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655  rm -f conftest.$ac_objext conftest.beam
1656  if { { ac_try="$ac_compile"
1657case "(($ac_try" in
1658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659  *) ac_try_echo=$ac_try;;
1660esac
1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662printf "%s\n" "$ac_try_echo"; } >&5
1663  (eval "$ac_compile") 2>conftest.err
1664  ac_status=$?
1665  if test -s conftest.err; then
1666    grep -v '^ *+' conftest.err >conftest.er1
1667    cat conftest.er1 >&5
1668    mv -f conftest.er1 conftest.err
1669  fi
1670  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671  test $ac_status = 0; } && {
1672	 test -z "$ac_cxx_werror_flag" ||
1673	 test ! -s conftest.err
1674       } && test -s conftest.$ac_objext
1675then :
1676  ac_retval=0
1677else $as_nop
1678  printf "%s\n" "$as_me: failed program was:" >&5
1679sed 's/^/| /' conftest.$ac_ext >&5
1680
1681	ac_retval=1
1682fi
1683  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684  as_fn_set_status $ac_retval
1685
1686} # ac_fn_cxx_try_compile
1687
1688# ac_fn_c_try_compile LINENO
1689# --------------------------
1690# Try to compile conftest.$ac_ext, and return whether this succeeded.
1691ac_fn_c_try_compile ()
1692{
1693  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694  rm -f conftest.$ac_objext conftest.beam
1695  if { { ac_try="$ac_compile"
1696case "(($ac_try" in
1697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698  *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701printf "%s\n" "$ac_try_echo"; } >&5
1702  (eval "$ac_compile") 2>conftest.err
1703  ac_status=$?
1704  if test -s conftest.err; then
1705    grep -v '^ *+' conftest.err >conftest.er1
1706    cat conftest.er1 >&5
1707    mv -f conftest.er1 conftest.err
1708  fi
1709  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710  test $ac_status = 0; } && {
1711	 test -z "$ac_c_werror_flag" ||
1712	 test ! -s conftest.err
1713       } && test -s conftest.$ac_objext
1714then :
1715  ac_retval=0
1716else $as_nop
1717  printf "%s\n" "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720	ac_retval=1
1721fi
1722  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723  as_fn_set_status $ac_retval
1724
1725} # ac_fn_c_try_compile
1726
1727# ac_fn_c_try_link LINENO
1728# -----------------------
1729# Try to link conftest.$ac_ext, and return whether this succeeded.
1730ac_fn_c_try_link ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1734  if { { ac_try="$ac_link"
1735case "(($ac_try" in
1736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737  *) ac_try_echo=$ac_try;;
1738esac
1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740printf "%s\n" "$ac_try_echo"; } >&5
1741  (eval "$ac_link") 2>conftest.err
1742  ac_status=$?
1743  if test -s conftest.err; then
1744    grep -v '^ *+' conftest.err >conftest.er1
1745    cat conftest.er1 >&5
1746    mv -f conftest.er1 conftest.err
1747  fi
1748  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749  test $ac_status = 0; } && {
1750	 test -z "$ac_c_werror_flag" ||
1751	 test ! -s conftest.err
1752       } && test -s conftest$ac_exeext && {
1753	 test "$cross_compiling" = yes ||
1754	 test -x conftest$ac_exeext
1755       }
1756then :
1757  ac_retval=0
1758else $as_nop
1759  printf "%s\n" "$as_me: failed program was:" >&5
1760sed 's/^/| /' conftest.$ac_ext >&5
1761
1762	ac_retval=1
1763fi
1764  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1765  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1766  # interfere with the next link command; also delete a directory that is
1767  # left behind by Apple's compiler.  We do this before executing the actions.
1768  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770  as_fn_set_status $ac_retval
1771
1772} # ac_fn_c_try_link
1773
1774# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1775# -------------------------------------------------------
1776# Tests whether HEADER exists and can be compiled using the include files in
1777# INCLUDES, setting the cache variable VAR accordingly.
1778ac_fn_c_check_header_compile ()
1779{
1780  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782printf %s "checking for $2... " >&6; }
1783if eval test \${$3+y}
1784then :
1785  printf %s "(cached) " >&6
1786else $as_nop
1787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788/* end confdefs.h.  */
1789$4
1790#include <$2>
1791_ACEOF
1792if ac_fn_c_try_compile "$LINENO"
1793then :
1794  eval "$3=yes"
1795else $as_nop
1796  eval "$3=no"
1797fi
1798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1799fi
1800eval ac_res=\$$3
1801	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802printf "%s\n" "$ac_res" >&6; }
1803  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804
1805} # ac_fn_c_check_header_compile
1806
1807# ac_fn_c_check_func LINENO FUNC VAR
1808# ----------------------------------
1809# Tests whether FUNC exists, setting the cache variable VAR accordingly
1810ac_fn_c_check_func ()
1811{
1812  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814printf %s "checking for $2... " >&6; }
1815if eval test \${$3+y}
1816then :
1817  printf %s "(cached) " >&6
1818else $as_nop
1819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820/* end confdefs.h.  */
1821/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1822   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1823#define $2 innocuous_$2
1824
1825/* System header to define __stub macros and hopefully few prototypes,
1826   which can conflict with char $2 (); below.  */
1827
1828#include <limits.h>
1829#undef $2
1830
1831/* Override any GCC internal prototype to avoid an error.
1832   Use char because int might match the return type of a GCC
1833   builtin and then its argument prototype would still apply.  */
1834#ifdef __cplusplus
1835extern "C"
1836#endif
1837char $2 ();
1838/* The GNU C library defines this for functions which it implements
1839    to always fail with ENOSYS.  Some functions are actually named
1840    something starting with __ and the normal name is an alias.  */
1841#if defined __stub_$2 || defined __stub___$2
1842choke me
1843#endif
1844
1845int
1846main (void)
1847{
1848return $2 ();
1849  ;
1850  return 0;
1851}
1852_ACEOF
1853if ac_fn_c_try_link "$LINENO"
1854then :
1855  eval "$3=yes"
1856else $as_nop
1857  eval "$3=no"
1858fi
1859rm -f core conftest.err conftest.$ac_objext conftest.beam \
1860    conftest$ac_exeext conftest.$ac_ext
1861fi
1862eval ac_res=\$$3
1863	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864printf "%s\n" "$ac_res" >&6; }
1865  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866
1867} # ac_fn_c_check_func
1868
1869# ac_fn_cxx_try_cpp LINENO
1870# ------------------------
1871# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1872ac_fn_cxx_try_cpp ()
1873{
1874  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875  if { { ac_try="$ac_cpp conftest.$ac_ext"
1876case "(($ac_try" in
1877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878  *) ac_try_echo=$ac_try;;
1879esac
1880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881printf "%s\n" "$ac_try_echo"; } >&5
1882  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1883  ac_status=$?
1884  if test -s conftest.err; then
1885    grep -v '^ *+' conftest.err >conftest.er1
1886    cat conftest.er1 >&5
1887    mv -f conftest.er1 conftest.err
1888  fi
1889  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890  test $ac_status = 0; } > conftest.i && {
1891	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1892	 test ! -s conftest.err
1893       }
1894then :
1895  ac_retval=0
1896else $as_nop
1897  printf "%s\n" "$as_me: failed program was:" >&5
1898sed 's/^/| /' conftest.$ac_ext >&5
1899
1900    ac_retval=1
1901fi
1902  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903  as_fn_set_status $ac_retval
1904
1905} # ac_fn_cxx_try_cpp
1906
1907# ac_fn_cxx_try_link LINENO
1908# -------------------------
1909# Try to link conftest.$ac_ext, and return whether this succeeded.
1910ac_fn_cxx_try_link ()
1911{
1912  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1914  if { { ac_try="$ac_link"
1915case "(($ac_try" in
1916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917  *) ac_try_echo=$ac_try;;
1918esac
1919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920printf "%s\n" "$ac_try_echo"; } >&5
1921  (eval "$ac_link") 2>conftest.err
1922  ac_status=$?
1923  if test -s conftest.err; then
1924    grep -v '^ *+' conftest.err >conftest.er1
1925    cat conftest.er1 >&5
1926    mv -f conftest.er1 conftest.err
1927  fi
1928  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929  test $ac_status = 0; } && {
1930	 test -z "$ac_cxx_werror_flag" ||
1931	 test ! -s conftest.err
1932       } && test -s conftest$ac_exeext && {
1933	 test "$cross_compiling" = yes ||
1934	 test -x conftest$ac_exeext
1935       }
1936then :
1937  ac_retval=0
1938else $as_nop
1939  printf "%s\n" "$as_me: failed program was:" >&5
1940sed 's/^/| /' conftest.$ac_ext >&5
1941
1942	ac_retval=1
1943fi
1944  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1945  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1946  # interfere with the next link command; also delete a directory that is
1947  # left behind by Apple's compiler.  We do this before executing the actions.
1948  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1949  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950  as_fn_set_status $ac_retval
1951
1952} # ac_fn_cxx_try_link
1953
1954# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1955# ---------------------------------------------------------
1956# Tests whether HEADER exists and can be compiled using the include files in
1957# INCLUDES, setting the cache variable VAR accordingly.
1958ac_fn_cxx_check_header_compile ()
1959{
1960  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962printf %s "checking for $2... " >&6; }
1963if eval test \${$3+y}
1964then :
1965  printf %s "(cached) " >&6
1966else $as_nop
1967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968/* end confdefs.h.  */
1969$4
1970#include <$2>
1971_ACEOF
1972if ac_fn_cxx_try_compile "$LINENO"
1973then :
1974  eval "$3=yes"
1975else $as_nop
1976  eval "$3=no"
1977fi
1978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1979fi
1980eval ac_res=\$$3
1981	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982printf "%s\n" "$ac_res" >&6; }
1983  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985} # ac_fn_cxx_check_header_compile
1986ac_configure_args_raw=
1987for ac_arg
1988do
1989  case $ac_arg in
1990  *\'*)
1991    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1992  esac
1993  as_fn_append ac_configure_args_raw " '$ac_arg'"
1994done
1995
1996case $ac_configure_args_raw in
1997  *$as_nl*)
1998    ac_safe_unquote= ;;
1999  *)
2000    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2001    ac_unsafe_a="$ac_unsafe_z#~"
2002    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2003    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2004esac
2005
2006cat >config.log <<_ACEOF
2007This file contains any messages produced by compilers while
2008running configure, to aid debugging if configure makes a mistake.
2009
2010It was created by ncmpcpp $as_me 0.9.2, which was
2011generated by GNU Autoconf 2.70.  Invocation command line was
2012
2013  $ $0$ac_configure_args_raw
2014
2015_ACEOF
2016exec 5>>config.log
2017{
2018cat <<_ASUNAME
2019## --------- ##
2020## Platform. ##
2021## --------- ##
2022
2023hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2024uname -m = `(uname -m) 2>/dev/null || echo unknown`
2025uname -r = `(uname -r) 2>/dev/null || echo unknown`
2026uname -s = `(uname -s) 2>/dev/null || echo unknown`
2027uname -v = `(uname -v) 2>/dev/null || echo unknown`
2028
2029/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2030/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2031
2032/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2033/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2034/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2035/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2036/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2037/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2038/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2039
2040_ASUNAME
2041
2042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043for as_dir in $PATH
2044do
2045  IFS=$as_save_IFS
2046  case $as_dir in #(((
2047    '') as_dir=./ ;;
2048    */) ;;
2049    *) as_dir=$as_dir/ ;;
2050  esac
2051    printf "%s\n" "PATH: $as_dir"
2052  done
2053IFS=$as_save_IFS
2054
2055} >&5
2056
2057cat >&5 <<_ACEOF
2058
2059
2060## ----------- ##
2061## Core tests. ##
2062## ----------- ##
2063
2064_ACEOF
2065
2066
2067# Keep a trace of the command line.
2068# Strip out --no-create and --no-recursion so they do not pile up.
2069# Strip out --silent because we don't want to record it for future runs.
2070# Also quote any args containing shell meta-characters.
2071# Make two passes to allow for proper duplicate-argument suppression.
2072ac_configure_args=
2073ac_configure_args0=
2074ac_configure_args1=
2075ac_must_keep_next=false
2076for ac_pass in 1 2
2077do
2078  for ac_arg
2079  do
2080    case $ac_arg in
2081    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2082    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2083    | -silent | --silent | --silen | --sile | --sil)
2084      continue ;;
2085    *\'*)
2086      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2087    esac
2088    case $ac_pass in
2089    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2090    2)
2091      as_fn_append ac_configure_args1 " '$ac_arg'"
2092      if test $ac_must_keep_next = true; then
2093	ac_must_keep_next=false # Got value, back to normal.
2094      else
2095	case $ac_arg in
2096	  *=* | --config-cache | -C | -disable-* | --disable-* \
2097	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2098	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2099	  | -with-* | --with-* | -without-* | --without-* | --x)
2100	    case "$ac_configure_args0 " in
2101	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2102	    esac
2103	    ;;
2104	  -* ) ac_must_keep_next=true ;;
2105	esac
2106      fi
2107      as_fn_append ac_configure_args " '$ac_arg'"
2108      ;;
2109    esac
2110  done
2111done
2112{ ac_configure_args0=; unset ac_configure_args0;}
2113{ ac_configure_args1=; unset ac_configure_args1;}
2114
2115# When interrupted or exit'd, cleanup temporary files, and complete
2116# config.log.  We remove comments because anyway the quotes in there
2117# would cause problems or look ugly.
2118# WARNING: Use '\'' to represent an apostrophe within the trap.
2119# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2120trap 'exit_status=$?
2121  # Sanitize IFS.
2122  IFS=" ""	$as_nl"
2123  # Save into config.log some information that might help in debugging.
2124  {
2125    echo
2126
2127    printf "%s\n" "## ---------------- ##
2128## Cache variables. ##
2129## ---------------- ##"
2130    echo
2131    # The following way of writing the cache mishandles newlines in values,
2132(
2133  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2134    eval ac_val=\$$ac_var
2135    case $ac_val in #(
2136    *${as_nl}*)
2137      case $ac_var in #(
2138      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2139printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2140      esac
2141      case $ac_var in #(
2142      _ | IFS | as_nl) ;; #(
2143      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2144      *) { eval $ac_var=; unset $ac_var;} ;;
2145      esac ;;
2146    esac
2147  done
2148  (set) 2>&1 |
2149    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2150    *${as_nl}ac_space=\ *)
2151      sed -n \
2152	"s/'\''/'\''\\\\'\'''\''/g;
2153	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2154      ;; #(
2155    *)
2156      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2157      ;;
2158    esac |
2159    sort
2160)
2161    echo
2162
2163    printf "%s\n" "## ----------------- ##
2164## Output variables. ##
2165## ----------------- ##"
2166    echo
2167    for ac_var in $ac_subst_vars
2168    do
2169      eval ac_val=\$$ac_var
2170      case $ac_val in
2171      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172      esac
2173      printf "%s\n" "$ac_var='\''$ac_val'\''"
2174    done | sort
2175    echo
2176
2177    if test -n "$ac_subst_files"; then
2178      printf "%s\n" "## ------------------- ##
2179## File substitutions. ##
2180## ------------------- ##"
2181      echo
2182      for ac_var in $ac_subst_files
2183      do
2184	eval ac_val=\$$ac_var
2185	case $ac_val in
2186	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2187	esac
2188	printf "%s\n" "$ac_var='\''$ac_val'\''"
2189      done | sort
2190      echo
2191    fi
2192
2193    if test -s confdefs.h; then
2194      printf "%s\n" "## ----------- ##
2195## confdefs.h. ##
2196## ----------- ##"
2197      echo
2198      cat confdefs.h
2199      echo
2200    fi
2201    test "$ac_signal" != 0 &&
2202      printf "%s\n" "$as_me: caught signal $ac_signal"
2203    printf "%s\n" "$as_me: exit $exit_status"
2204  } >&5
2205  rm -f core *.core core.conftest.* &&
2206    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2207    exit $exit_status
2208' 0
2209for ac_signal in 1 2 13 15; do
2210  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2211done
2212ac_signal=0
2213
2214# confdefs.h avoids OS command line length limits that DEFS can exceed.
2215rm -f -r conftest* confdefs.h
2216
2217printf "%s\n" "/* confdefs.h */" > confdefs.h
2218
2219# Predefined preprocessor variables.
2220
2221printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2222
2223printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2224
2225printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2226
2227printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2228
2229printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2230
2231printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2232
2233
2234# Let the site file select an alternate cache file if it wants to.
2235# Prefer an explicitly selected file to automatically selected ones.
2236if test -n "$CONFIG_SITE"; then
2237  ac_site_files="$CONFIG_SITE"
2238elif test "x$prefix" != xNONE; then
2239  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2240else
2241  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2242fi
2243
2244for ac_site_file in $ac_site_files
2245do
2246  case $ac_site_file in #(
2247  */*) :
2248     ;; #(
2249  *) :
2250    ac_site_file=./$ac_site_file ;;
2251esac
2252  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2253    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2254printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2255    sed 's/^/| /' "$ac_site_file" >&5
2256    . "$ac_site_file" \
2257      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2258printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2259as_fn_error $? "failed to load site script $ac_site_file
2260See \`config.log' for more details" "$LINENO" 5; }
2261  fi
2262done
2263
2264if test -r "$cache_file"; then
2265  # Some versions of bash will fail to source /dev/null (special files
2266  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2267  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2268    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2269printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2270    case $cache_file in
2271      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2272      *)                      . "./$cache_file";;
2273    esac
2274  fi
2275else
2276  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2277printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2278  >$cache_file
2279fi
2280
2281# Test code for whether the C++ compiler supports C++98 (global declarations)
2282ac_cxx_conftest_cxx98_globals='
2283// Does the compiler advertise C++98 conformance?
2284#if !defined __cplusplus || __cplusplus < 199711L
2285# error "Compiler does not advertise C++98 conformance"
2286#endif
2287
2288// These inclusions are to reject old compilers that
2289// lack the unsuffixed header files.
2290#include <cstdlib>
2291#include <exception>
2292
2293// <cassert> and <cstring> are *not* freestanding headers in C++98.
2294extern void assert (int);
2295namespace std {
2296  extern int strcmp (const char *, const char *);
2297}
2298
2299// Namespaces, exceptions, and templates were all added after "C++ 2.0".
2300using std::exception;
2301using std::strcmp;
2302
2303namespace {
2304
2305void test_exception_syntax()
2306{
2307  try {
2308    throw "test";
2309  } catch (const char *s) {
2310    // Extra parentheses suppress a warning when building autoconf itself,
2311    // due to lint rules shared with more typical C programs.
2312    assert (!(strcmp) (s, "test"));
2313  }
2314}
2315
2316template <typename T> struct test_template
2317{
2318  T const val;
2319  explicit test_template(T t) : val(t) {}
2320  template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2321};
2322
2323} // anonymous namespace
2324'
2325
2326# Test code for whether the C++ compiler supports C++98 (body of main)
2327ac_cxx_conftest_cxx98_main='
2328  assert (argc);
2329  assert (! argv[0]);
2330{
2331  test_exception_syntax ();
2332  test_template<double> tt (2.0);
2333  assert (tt.add (4) == 6.0);
2334  assert (true && !false);
2335}
2336'
2337
2338# Test code for whether the C++ compiler supports C++11 (global declarations)
2339ac_cxx_conftest_cxx11_globals='
2340// Does the compiler advertise C++ 2011 conformance?
2341#if !defined __cplusplus || __cplusplus < 201103L
2342# error "Compiler does not advertise C++11 conformance"
2343#endif
2344
2345namespace cxx11test
2346{
2347  constexpr int get_val() { return 20; }
2348
2349  struct testinit
2350  {
2351    int i;
2352    double d;
2353  };
2354
2355  class delegate
2356  {
2357  public:
2358    delegate(int n) : n(n) {}
2359    delegate(): delegate(2354) {}
2360
2361    virtual int getval() { return this->n; };
2362  protected:
2363    int n;
2364  };
2365
2366  class overridden : public delegate
2367  {
2368  public:
2369    overridden(int n): delegate(n) {}
2370    virtual int getval() override final { return this->n * 2; }
2371  };
2372
2373  class nocopy
2374  {
2375  public:
2376    nocopy(int i): i(i) {}
2377    nocopy() = default;
2378    nocopy(const nocopy&) = delete;
2379    nocopy & operator=(const nocopy&) = delete;
2380  private:
2381    int i;
2382  };
2383
2384  // for testing lambda expressions
2385  template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2386  {
2387    return f(v);
2388  }
2389
2390  // for testing variadic templates and trailing return types
2391  template <typename V> auto sum(V first) -> V
2392  {
2393    return first;
2394  }
2395  template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2396  {
2397    return first + sum(rest...);
2398  }
2399}
2400'
2401
2402# Test code for whether the C++ compiler supports C++11 (body of main)
2403ac_cxx_conftest_cxx11_main='
2404{
2405  // Test auto and decltype
2406  auto a1 = 6538;
2407  auto a2 = 48573953.4;
2408  auto a3 = "String literal";
2409
2410  int total = 0;
2411  for (auto i = a3; *i; ++i) { total += *i; }
2412
2413  decltype(a2) a4 = 34895.034;
2414}
2415{
2416  // Test constexpr
2417  short sa[cxx11test::get_val()] = { 0 };
2418}
2419{
2420  // Test initializer lists
2421  cxx11test::testinit il = { 4323, 435234.23544 };
2422}
2423{
2424  // Test range-based for
2425  int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2426                 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2427  for (auto &x : array) { x += 23; }
2428}
2429{
2430  // Test lambda expressions
2431  using cxx11test::eval;
2432  assert (eval ([](int x) { return x*2; }, 21) == 42);
2433  double d = 2.0;
2434  assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2435  assert (d == 5.0);
2436  assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2437  assert (d == 5.0);
2438}
2439{
2440  // Test use of variadic templates
2441  using cxx11test::sum;
2442  auto a = sum(1);
2443  auto b = sum(1, 2);
2444  auto c = sum(1.0, 2.0, 3.0);
2445}
2446{
2447  // Test constructor delegation
2448  cxx11test::delegate d1;
2449  cxx11test::delegate d2();
2450  cxx11test::delegate d3(45);
2451}
2452{
2453  // Test override and final
2454  cxx11test::overridden o1(55464);
2455}
2456{
2457  // Test nullptr
2458  char *c = nullptr;
2459}
2460{
2461  // Test template brackets
2462  test_template<::test_template<int>> v(test_template<int>(12));
2463}
2464{
2465  // Unicode literals
2466  char const *utf8 = u8"UTF-8 string \u2500";
2467  char16_t const *utf16 = u"UTF-8 string \u2500";
2468  char32_t const *utf32 = U"UTF-32 string \u2500";
2469}
2470'
2471
2472# Test code for whether the C compiler supports C++11 (complete).
2473ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2474${ac_cxx_conftest_cxx11_globals}
2475
2476int
2477main (int argc, char **argv)
2478{
2479  int ok = 0;
2480  ${ac_cxx_conftest_cxx98_main}
2481  ${ac_cxx_conftest_cxx11_main}
2482  return ok;
2483}
2484"
2485
2486# Test code for whether the C compiler supports C++98 (complete).
2487ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2488int
2489main (int argc, char **argv)
2490{
2491  int ok = 0;
2492  ${ac_cxx_conftest_cxx98_main}
2493  return ok;
2494}
2495"
2496
2497# Test code for whether the C compiler supports C89 (global declarations)
2498ac_c_conftest_c89_globals='
2499/* Does the compiler advertise C89 conformance?
2500   Do not test the value of __STDC__, because some compilers set it to 0
2501   while being otherwise adequately conformant. */
2502#if !defined __STDC__
2503# error "Compiler does not advertise C89 conformance"
2504#endif
2505
2506#include <stddef.h>
2507#include <stdarg.h>
2508struct stat;
2509/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2510struct buf { int x; };
2511struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2512static char *e (p, i)
2513     char **p;
2514     int i;
2515{
2516  return p[i];
2517}
2518static char *f (char * (*g) (char **, int), char **p, ...)
2519{
2520  char *s;
2521  va_list v;
2522  va_start (v,p);
2523  s = g (p, va_arg (v,int));
2524  va_end (v);
2525  return s;
2526}
2527
2528/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2529   function prototypes and stuff, but not \xHH hex character constants.
2530   These do not provoke an error unfortunately, instead are silently treated
2531   as an "x".  The following induces an error, until -std is added to get
2532   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2533   array size at least.  It is necessary to write \x00 == 0 to get something
2534   that is true only with -std.  */
2535int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2536
2537/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2538   inside strings and character constants.  */
2539#define FOO(x) '\''x'\''
2540int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2541
2542int test (int i, double x);
2543struct s1 {int (*f) (int a);};
2544struct s2 {int (*f) (double a);};
2545int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2546               int, int);'
2547
2548# Test code for whether the C compiler supports C89 (body of main).
2549ac_c_conftest_c89_main='
2550ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2551'
2552
2553# Test code for whether the C compiler supports C99 (global declarations)
2554ac_c_conftest_c99_globals='
2555// Does the compiler advertise C99 conformance?
2556#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2557# error "Compiler does not advertise C99 conformance"
2558#endif
2559
2560#include <stdbool.h>
2561extern int puts (const char *);
2562extern int printf (const char *, ...);
2563extern int dprintf (int, const char *, ...);
2564extern void *malloc (size_t);
2565
2566// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2567// dprintf is used instead of fprintf to avoid needing to declare
2568// FILE and stderr.
2569#define debug(...) dprintf (2, __VA_ARGS__)
2570#define showlist(...) puts (#__VA_ARGS__)
2571#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2572static void
2573test_varargs_macros (void)
2574{
2575  int x = 1234;
2576  int y = 5678;
2577  debug ("Flag");
2578  debug ("X = %d\n", x);
2579  showlist (The first, second, and third items.);
2580  report (x>y, "x is %d but y is %d", x, y);
2581}
2582
2583// Check long long types.
2584#define BIG64 18446744073709551615ull
2585#define BIG32 4294967295ul
2586#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2587#if !BIG_OK
2588  #error "your preprocessor is broken"
2589#endif
2590#if BIG_OK
2591#else
2592  #error "your preprocessor is broken"
2593#endif
2594static long long int bignum = -9223372036854775807LL;
2595static unsigned long long int ubignum = BIG64;
2596
2597struct incomplete_array
2598{
2599  int datasize;
2600  double data[];
2601};
2602
2603struct named_init {
2604  int number;
2605  const wchar_t *name;
2606  double average;
2607};
2608
2609typedef const char *ccp;
2610
2611static inline int
2612test_restrict (ccp restrict text)
2613{
2614  // See if C++-style comments work.
2615  // Iterate through items via the restricted pointer.
2616  // Also check for declarations in for loops.
2617  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2618    continue;
2619  return 0;
2620}
2621
2622// Check varargs and va_copy.
2623static bool
2624test_varargs (const char *format, ...)
2625{
2626  va_list args;
2627  va_start (args, format);
2628  va_list args_copy;
2629  va_copy (args_copy, args);
2630
2631  const char *str = "";
2632  int number = 0;
2633  float fnumber = 0;
2634
2635  while (*format)
2636    {
2637      switch (*format++)
2638	{
2639	case '\''s'\'': // string
2640	  str = va_arg (args_copy, const char *);
2641	  break;
2642	case '\''d'\'': // int
2643	  number = va_arg (args_copy, int);
2644	  break;
2645	case '\''f'\'': // float
2646	  fnumber = va_arg (args_copy, double);
2647	  break;
2648	default:
2649	  break;
2650	}
2651    }
2652  va_end (args_copy);
2653  va_end (args);
2654
2655  return *str && number && fnumber;
2656}
2657'
2658
2659# Test code for whether the C compiler supports C99 (body of main).
2660ac_c_conftest_c99_main='
2661  // Check bool.
2662  _Bool success = false;
2663  success |= (argc != 0);
2664
2665  // Check restrict.
2666  if (test_restrict ("String literal") == 0)
2667    success = true;
2668  char *restrict newvar = "Another string";
2669
2670  // Check varargs.
2671  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2672  test_varargs_macros ();
2673
2674  // Check flexible array members.
2675  struct incomplete_array *ia =
2676    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2677  ia->datasize = 10;
2678  for (int i = 0; i < ia->datasize; ++i)
2679    ia->data[i] = i * 1.234;
2680
2681  // Check named initializers.
2682  struct named_init ni = {
2683    .number = 34,
2684    .name = L"Test wide string",
2685    .average = 543.34343,
2686  };
2687
2688  ni.number = 58;
2689
2690  int dynamic_array[ni.number];
2691  dynamic_array[0] = argv[0][0];
2692  dynamic_array[ni.number - 1] = 543;
2693
2694  // work around unused variable warnings
2695  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2696	 || dynamic_array[ni.number - 1] != 543);
2697'
2698
2699# Test code for whether the C compiler supports C11 (global declarations)
2700ac_c_conftest_c11_globals='
2701// Does the compiler advertise C11 conformance?
2702#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2703# error "Compiler does not advertise C11 conformance"
2704#endif
2705
2706// Check _Alignas.
2707char _Alignas (double) aligned_as_double;
2708char _Alignas (0) no_special_alignment;
2709extern char aligned_as_int;
2710char _Alignas (0) _Alignas (int) aligned_as_int;
2711
2712// Check _Alignof.
2713enum
2714{
2715  int_alignment = _Alignof (int),
2716  int_array_alignment = _Alignof (int[100]),
2717  char_alignment = _Alignof (char)
2718};
2719_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2720
2721// Check _Noreturn.
2722int _Noreturn does_not_return (void) { for (;;) continue; }
2723
2724// Check _Static_assert.
2725struct test_static_assert
2726{
2727  int x;
2728  _Static_assert (sizeof (int) <= sizeof (long int),
2729                  "_Static_assert does not work in struct");
2730  long int y;
2731};
2732
2733// Check UTF-8 literals.
2734#define u8 syntax error!
2735char const utf8_literal[] = u8"happens to be ASCII" "another string";
2736
2737// Check duplicate typedefs.
2738typedef long *long_ptr;
2739typedef long int *long_ptr;
2740typedef long_ptr long_ptr;
2741
2742// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2743struct anonymous
2744{
2745  union {
2746    struct { int i; int j; };
2747    struct { int k; long int l; } w;
2748  };
2749  int m;
2750} v1;
2751'
2752
2753# Test code for whether the C compiler supports C11 (body of main).
2754ac_c_conftest_c11_main='
2755  _Static_assert ((offsetof (struct anonymous, i)
2756		   == offsetof (struct anonymous, w.k)),
2757		  "Anonymous union alignment botch");
2758  v1.i = 2;
2759  v1.w.k = 5;
2760  ok |= v1.i != 5;
2761'
2762
2763# Test code for whether the C compiler supports C11 (complete).
2764ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2765${ac_c_conftest_c99_globals}
2766${ac_c_conftest_c11_globals}
2767
2768int
2769main (int argc, char **argv)
2770{
2771  int ok = 0;
2772  ${ac_c_conftest_c89_main}
2773  ${ac_c_conftest_c99_main}
2774  ${ac_c_conftest_c11_main}
2775  return ok;
2776}
2777"
2778
2779# Test code for whether the C compiler supports C99 (complete).
2780ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2781${ac_c_conftest_c99_globals}
2782
2783int
2784main (int argc, char **argv)
2785{
2786  int ok = 0;
2787  ${ac_c_conftest_c89_main}
2788  ${ac_c_conftest_c99_main}
2789  return ok;
2790}
2791"
2792
2793# Test code for whether the C compiler supports C89 (complete).
2794ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2795
2796int
2797main (int argc, char **argv)
2798{
2799  int ok = 0;
2800  ${ac_c_conftest_c89_main}
2801  return ok;
2802}
2803"
2804
2805as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2806as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2807as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2808as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2809as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2810as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2811as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2812as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2813as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2814
2815# Auxiliary files required by this configure script.
2816ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2817
2818# Locations in which to look for auxiliary files.
2819ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2820
2821# Search for a directory containing all of the required auxiliary files,
2822# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2823# If we don't find one directory that contains all the files we need,
2824# we report the set of missing files from the *first* directory in
2825# $ac_aux_dir_candidates and give up.
2826ac_missing_aux_files=""
2827ac_first_candidate=:
2828printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830as_found=false
2831for as_dir in $ac_aux_dir_candidates
2832do
2833  IFS=$as_save_IFS
2834  case $as_dir in #(((
2835    '') as_dir=./ ;;
2836    */) ;;
2837    *) as_dir=$as_dir/ ;;
2838  esac
2839  as_found=:
2840
2841  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2842  ac_aux_dir_found=yes
2843  ac_install_sh=
2844  for ac_aux in $ac_aux_files
2845  do
2846    # As a special case, if "install-sh" is required, that requirement
2847    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2848    # and $ac_install_sh is set appropriately for whichever one is found.
2849    if test x"$ac_aux" = x"install-sh"
2850    then
2851      if test -f "${as_dir}install-sh"; then
2852        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2853        ac_install_sh="${as_dir}install-sh -c"
2854      elif test -f "${as_dir}install.sh"; then
2855        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2856        ac_install_sh="${as_dir}install.sh -c"
2857      elif test -f "${as_dir}shtool"; then
2858        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2859        ac_install_sh="${as_dir}shtool install -c"
2860      else
2861        ac_aux_dir_found=no
2862        if $ac_first_candidate; then
2863          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2864        else
2865          break
2866        fi
2867      fi
2868    else
2869      if test -f "${as_dir}${ac_aux}"; then
2870        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2871      else
2872        ac_aux_dir_found=no
2873        if $ac_first_candidate; then
2874          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2875        else
2876          break
2877        fi
2878      fi
2879    fi
2880  done
2881  if test "$ac_aux_dir_found" = yes; then
2882    ac_aux_dir="$as_dir"
2883    break
2884  fi
2885  ac_first_candidate=false
2886
2887  as_found=false
2888done
2889IFS=$as_save_IFS
2890if $as_found
2891then :
2892
2893else $as_nop
2894  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2895fi
2896
2897
2898# These three variables are undocumented and unsupported,
2899# and are intended to be withdrawn in a future Autoconf release.
2900# They can cause serious problems if a builder's source tree is in a directory
2901# whose full name contains unusual characters.
2902if test -f "${ac_aux_dir}config.guess"; then
2903  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2904fi
2905if test -f "${ac_aux_dir}config.sub"; then
2906  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2907fi
2908if test -f "$ac_aux_dir/configure"; then
2909  ac_configure="$SHELL ${ac_aux_dir}configure"
2910fi
2911
2912# Check that the precious variables saved in the cache have kept the same
2913# value.
2914ac_cache_corrupted=false
2915for ac_var in $ac_precious_vars; do
2916  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2917  eval ac_new_set=\$ac_env_${ac_var}_set
2918  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2919  eval ac_new_val=\$ac_env_${ac_var}_value
2920  case $ac_old_set,$ac_new_set in
2921    set,)
2922      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2923printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2924      ac_cache_corrupted=: ;;
2925    ,set)
2926      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2927printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2928      ac_cache_corrupted=: ;;
2929    ,);;
2930    *)
2931      if test "x$ac_old_val" != "x$ac_new_val"; then
2932	# differences in whitespace do not lead to failure.
2933	ac_old_val_w=`echo x $ac_old_val`
2934	ac_new_val_w=`echo x $ac_new_val`
2935	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2936	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2937printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2938	  ac_cache_corrupted=:
2939	else
2940	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2941printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2942	  eval $ac_var=\$ac_old_val
2943	fi
2944	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2945printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2946	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2947printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2948      fi;;
2949  esac
2950  # Pass precious variables to config.status.
2951  if test "$ac_new_set" = set; then
2952    case $ac_new_val in
2953    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2954    *) ac_arg=$ac_var=$ac_new_val ;;
2955    esac
2956    case " $ac_configure_args " in
2957      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2958      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2959    esac
2960  fi
2961done
2962if $ac_cache_corrupted; then
2963  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2964printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2966printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2967  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2968	    and start over" "$LINENO" 5
2969fi
2970## -------------------- ##
2971## Main body of script. ##
2972## -------------------- ##
2973
2974ac_ext=c
2975ac_cpp='$CPP $CPPFLAGS'
2976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978ac_compiler_gnu=$ac_cv_c_compiler_gnu
2979
2980
2981
2982ac_config_headers="$ac_config_headers config.h"
2983
2984am__api_version='1.16'
2985
2986
2987
2988  # Find a good install program.  We prefer a C program (faster),
2989# so one script is as good as another.  But avoid the broken or
2990# incompatible versions:
2991# SysV /etc/install, /usr/sbin/install
2992# SunOS /usr/etc/install
2993# IRIX /sbin/install
2994# AIX /bin/install
2995# AmigaOS /C/install, which installs bootblocks on floppy discs
2996# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2997# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2998# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2999# OS/2's system install, which has a completely different semantic
3000# ./install, which can be erroneously created by make from ./install.sh.
3001# Reject install programs that cannot install multiple files.
3002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3003printf %s "checking for a BSD-compatible install... " >&6; }
3004if test -z "$INSTALL"; then
3005if test ${ac_cv_path_install+y}
3006then :
3007  printf %s "(cached) " >&6
3008else $as_nop
3009  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010for as_dir in $PATH
3011do
3012  IFS=$as_save_IFS
3013  case $as_dir in #(((
3014    '') as_dir=./ ;;
3015    */) ;;
3016    *) as_dir=$as_dir/ ;;
3017  esac
3018    # Account for fact that we put trailing slashes in our PATH walk.
3019case $as_dir in #((
3020  ./ | /[cC]/* | \
3021  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3022  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3023  /usr/ucb/* ) ;;
3024  *)
3025    # OSF1 and SCO ODT 3.0 have their own names for install.
3026    # Don't use installbsd from OSF since it installs stuff as root
3027    # by default.
3028    for ac_prog in ginstall scoinst install; do
3029      for ac_exec_ext in '' $ac_executable_extensions; do
3030	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3031	  if test $ac_prog = install &&
3032	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3033	    # AIX install.  It has an incompatible calling convention.
3034	    :
3035	  elif test $ac_prog = install &&
3036	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3037	    # program-specific install script used by HP pwplus--don't use.
3038	    :
3039	  else
3040	    rm -rf conftest.one conftest.two conftest.dir
3041	    echo one > conftest.one
3042	    echo two > conftest.two
3043	    mkdir conftest.dir
3044	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3045	      test -s conftest.one && test -s conftest.two &&
3046	      test -s conftest.dir/conftest.one &&
3047	      test -s conftest.dir/conftest.two
3048	    then
3049	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3050	      break 3
3051	    fi
3052	  fi
3053	fi
3054      done
3055    done
3056    ;;
3057esac
3058
3059  done
3060IFS=$as_save_IFS
3061
3062rm -rf conftest.one conftest.two conftest.dir
3063
3064fi
3065  if test ${ac_cv_path_install+y}; then
3066    INSTALL=$ac_cv_path_install
3067  else
3068    # As a last resort, use the slow shell script.  Don't cache a
3069    # value for INSTALL within a source directory, because that will
3070    # break other packages using the cache if that directory is
3071    # removed, or if the value is a relative name.
3072    INSTALL=$ac_install_sh
3073  fi
3074fi
3075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3076printf "%s\n" "$INSTALL" >&6; }
3077
3078# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3079# It thinks the first close brace ends the variable substitution.
3080test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3081
3082test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3083
3084test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3085
3086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3087printf %s "checking whether build environment is sane... " >&6; }
3088# Reject unsafe characters in $srcdir or the absolute working directory
3089# name.  Accept space and tab only in the latter.
3090am_lf='
3091'
3092case `pwd` in
3093  *[\\\"\#\$\&\'\`$am_lf]*)
3094    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3095esac
3096case $srcdir in
3097  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3098    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3099esac
3100
3101# Do 'set' in a subshell so we don't clobber the current shell's
3102# arguments.  Must try -L first in case configure is actually a
3103# symlink; some systems play weird games with the mod time of symlinks
3104# (eg FreeBSD returns the mod time of the symlink's containing
3105# directory).
3106if (
3107   am_has_slept=no
3108   for am_try in 1 2; do
3109     echo "timestamp, slept: $am_has_slept" > conftest.file
3110     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3111     if test "$*" = "X"; then
3112	# -L didn't work.
3113	set X `ls -t "$srcdir/configure" conftest.file`
3114     fi
3115     if test "$*" != "X $srcdir/configure conftest.file" \
3116	&& test "$*" != "X conftest.file $srcdir/configure"; then
3117
3118	# If neither matched, then we have a broken ls.  This can happen
3119	# if, for instance, CONFIG_SHELL is bash and it inherits a
3120	# broken ls alias from the environment.  This has actually
3121	# happened.  Such a system could not be considered "sane".
3122	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3123  alias in your environment" "$LINENO" 5
3124     fi
3125     if test "$2" = conftest.file || test $am_try -eq 2; then
3126       break
3127     fi
3128     # Just in case.
3129     sleep 1
3130     am_has_slept=yes
3131   done
3132   test "$2" = conftest.file
3133   )
3134then
3135   # Ok.
3136   :
3137else
3138   as_fn_error $? "newly created file is older than distributed files!
3139Check your system clock" "$LINENO" 5
3140fi
3141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3142printf "%s\n" "yes" >&6; }
3143# If we didn't sleep, we still need to ensure time stamps of config.status and
3144# generated files are strictly newer.
3145am_sleep_pid=
3146if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3147  ( sleep 1 ) &
3148  am_sleep_pid=$!
3149fi
3150
3151rm -f conftest.file
3152
3153test "$program_prefix" != NONE &&
3154  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3155# Use a double $ so make ignores it.
3156test "$program_suffix" != NONE &&
3157  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3158# Double any \ or $.
3159# By default was `s,x,x', remove it if useless.
3160ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3161program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3162
3163
3164# Expand $ac_aux_dir to an absolute path.
3165am_aux_dir=`cd "$ac_aux_dir" && pwd`
3166
3167
3168  if test x"${MISSING+set}" != xset; then
3169  case $am_aux_dir in
3170  *\ * | *\	*)
3171    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3172  *)
3173    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3174  esac
3175fi
3176# Use eval to expand $SHELL
3177if eval "$MISSING --is-lightweight"; then
3178  am_missing_run="$MISSING "
3179else
3180  am_missing_run=
3181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3182printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3183fi
3184
3185if test x"${install_sh+set}" != xset; then
3186  case $am_aux_dir in
3187  *\ * | *\	*)
3188    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3189  *)
3190    install_sh="\${SHELL} $am_aux_dir/install-sh"
3191  esac
3192fi
3193
3194# Installed binaries are usually stripped using 'strip' when the user
3195# run "make install-strip".  However 'strip' might not be the right
3196# tool to use in cross-compilation environments, therefore Automake
3197# will honor the 'STRIP' environment variable to overrule this program.
3198if test "$cross_compiling" != no; then
3199  if test -n "$ac_tool_prefix"; then
3200  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3201set dummy ${ac_tool_prefix}strip; ac_word=$2
3202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203printf %s "checking for $ac_word... " >&6; }
3204if test ${ac_cv_prog_STRIP+y}
3205then :
3206  printf %s "(cached) " >&6
3207else $as_nop
3208  if test -n "$STRIP"; then
3209  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3210else
3211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212for as_dir in $PATH
3213do
3214  IFS=$as_save_IFS
3215  case $as_dir in #(((
3216    '') as_dir=./ ;;
3217    */) ;;
3218    *) as_dir=$as_dir/ ;;
3219  esac
3220    for ac_exec_ext in '' $ac_executable_extensions; do
3221  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3222    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3223    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3224    break 2
3225  fi
3226done
3227  done
3228IFS=$as_save_IFS
3229
3230fi
3231fi
3232STRIP=$ac_cv_prog_STRIP
3233if test -n "$STRIP"; then
3234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3235printf "%s\n" "$STRIP" >&6; }
3236else
3237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238printf "%s\n" "no" >&6; }
3239fi
3240
3241
3242fi
3243if test -z "$ac_cv_prog_STRIP"; then
3244  ac_ct_STRIP=$STRIP
3245  # Extract the first word of "strip", so it can be a program name with args.
3246set dummy strip; ac_word=$2
3247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248printf %s "checking for $ac_word... " >&6; }
3249if test ${ac_cv_prog_ac_ct_STRIP+y}
3250then :
3251  printf %s "(cached) " >&6
3252else $as_nop
3253  if test -n "$ac_ct_STRIP"; then
3254  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3255else
3256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257for as_dir in $PATH
3258do
3259  IFS=$as_save_IFS
3260  case $as_dir in #(((
3261    '') as_dir=./ ;;
3262    */) ;;
3263    *) as_dir=$as_dir/ ;;
3264  esac
3265    for ac_exec_ext in '' $ac_executable_extensions; do
3266  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3267    ac_cv_prog_ac_ct_STRIP="strip"
3268    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3269    break 2
3270  fi
3271done
3272  done
3273IFS=$as_save_IFS
3274
3275fi
3276fi
3277ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3278if test -n "$ac_ct_STRIP"; then
3279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3280printf "%s\n" "$ac_ct_STRIP" >&6; }
3281else
3282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283printf "%s\n" "no" >&6; }
3284fi
3285
3286  if test "x$ac_ct_STRIP" = x; then
3287    STRIP=":"
3288  else
3289    case $cross_compiling:$ac_tool_warned in
3290yes:)
3291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3292printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3293ac_tool_warned=yes ;;
3294esac
3295    STRIP=$ac_ct_STRIP
3296  fi
3297else
3298  STRIP="$ac_cv_prog_STRIP"
3299fi
3300
3301fi
3302INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3303
3304
3305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3306printf %s "checking for a race-free mkdir -p... " >&6; }
3307if test -z "$MKDIR_P"; then
3308  if test ${ac_cv_path_mkdir+y}
3309then :
3310  printf %s "(cached) " >&6
3311else $as_nop
3312  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3314do
3315  IFS=$as_save_IFS
3316  case $as_dir in #(((
3317    '') as_dir=./ ;;
3318    */) ;;
3319    *) as_dir=$as_dir/ ;;
3320  esac
3321    for ac_prog in mkdir gmkdir; do
3322	 for ac_exec_ext in '' $ac_executable_extensions; do
3323	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3324	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3325	     'mkdir ('*'coreutils) '* | \
3326	     'BusyBox '* | \
3327	     'mkdir (fileutils) '4.1*)
3328	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3329	       break 3;;
3330	   esac
3331	 done
3332       done
3333  done
3334IFS=$as_save_IFS
3335
3336fi
3337
3338  test -d ./--version && rmdir ./--version
3339  if test ${ac_cv_path_mkdir+y}; then
3340    MKDIR_P="$ac_cv_path_mkdir -p"
3341  else
3342    # As a last resort, use the slow shell script.  Don't cache a
3343    # value for MKDIR_P within a source directory, because that will
3344    # break other packages using the cache if that directory is
3345    # removed, or if the value is a relative name.
3346    MKDIR_P="$ac_install_sh -d"
3347  fi
3348fi
3349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3350printf "%s\n" "$MKDIR_P" >&6; }
3351
3352for ac_prog in gawk mawk nawk awk
3353do
3354  # Extract the first word of "$ac_prog", so it can be a program name with args.
3355set dummy $ac_prog; ac_word=$2
3356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3357printf %s "checking for $ac_word... " >&6; }
3358if test ${ac_cv_prog_AWK+y}
3359then :
3360  printf %s "(cached) " >&6
3361else $as_nop
3362  if test -n "$AWK"; then
3363  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3364else
3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366for as_dir in $PATH
3367do
3368  IFS=$as_save_IFS
3369  case $as_dir in #(((
3370    '') as_dir=./ ;;
3371    */) ;;
3372    *) as_dir=$as_dir/ ;;
3373  esac
3374    for ac_exec_ext in '' $ac_executable_extensions; do
3375  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3376    ac_cv_prog_AWK="$ac_prog"
3377    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3378    break 2
3379  fi
3380done
3381  done
3382IFS=$as_save_IFS
3383
3384fi
3385fi
3386AWK=$ac_cv_prog_AWK
3387if test -n "$AWK"; then
3388  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3389printf "%s\n" "$AWK" >&6; }
3390else
3391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392printf "%s\n" "no" >&6; }
3393fi
3394
3395
3396  test -n "$AWK" && break
3397done
3398
3399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3400printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3401set x ${MAKE-make}
3402ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3403if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3404then :
3405  printf %s "(cached) " >&6
3406else $as_nop
3407  cat >conftest.make <<\_ACEOF
3408SHELL = /bin/sh
3409all:
3410	@echo '@@@%%%=$(MAKE)=@@@%%%'
3411_ACEOF
3412# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3413case `${MAKE-make} -f conftest.make 2>/dev/null` in
3414  *@@@%%%=?*=@@@%%%*)
3415    eval ac_cv_prog_make_${ac_make}_set=yes;;
3416  *)
3417    eval ac_cv_prog_make_${ac_make}_set=no;;
3418esac
3419rm -f conftest.make
3420fi
3421if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3423printf "%s\n" "yes" >&6; }
3424  SET_MAKE=
3425else
3426  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427printf "%s\n" "no" >&6; }
3428  SET_MAKE="MAKE=${MAKE-make}"
3429fi
3430
3431rm -rf .tst 2>/dev/null
3432mkdir .tst 2>/dev/null
3433if test -d .tst; then
3434  am__leading_dot=.
3435else
3436  am__leading_dot=_
3437fi
3438rmdir .tst 2>/dev/null
3439
3440# Check whether --enable-silent-rules was given.
3441if test ${enable_silent_rules+y}
3442then :
3443  enableval=$enable_silent_rules;
3444fi
3445
3446case $enable_silent_rules in # (((
3447  yes) AM_DEFAULT_VERBOSITY=0;;
3448   no) AM_DEFAULT_VERBOSITY=1;;
3449    *) AM_DEFAULT_VERBOSITY=1;;
3450esac
3451am_make=${MAKE-make}
3452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3453printf %s "checking whether $am_make supports nested variables... " >&6; }
3454if test ${am_cv_make_support_nested_variables+y}
3455then :
3456  printf %s "(cached) " >&6
3457else $as_nop
3458  if printf "%s\n" 'TRUE=$(BAR$(V))
3459BAR0=false
3460BAR1=true
3461V=1
3462am__doit:
3463	@$(TRUE)
3464.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3465  am_cv_make_support_nested_variables=yes
3466else
3467  am_cv_make_support_nested_variables=no
3468fi
3469fi
3470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3471printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3472if test $am_cv_make_support_nested_variables = yes; then
3473    AM_V='$(V)'
3474  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3475else
3476  AM_V=$AM_DEFAULT_VERBOSITY
3477  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3478fi
3479AM_BACKSLASH='\'
3480
3481if test "`cd $srcdir && pwd`" != "`pwd`"; then
3482  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3483  # is not polluted with repeated "-I."
3484  am__isrc=' -I$(srcdir)'
3485  # test to see if srcdir already configured
3486  if test -f $srcdir/config.status; then
3487    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3488  fi
3489fi
3490
3491# test whether we have cygpath
3492if test -z "$CYGPATH_W"; then
3493  if (cygpath --version) >/dev/null 2>/dev/null; then
3494    CYGPATH_W='cygpath -w'
3495  else
3496    CYGPATH_W=echo
3497  fi
3498fi
3499
3500
3501# Define the identity of the package.
3502 PACKAGE='ncmpcpp'
3503 VERSION='0.9.2'
3504
3505
3506printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3507
3508
3509printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3510
3511# Some tools Automake needs.
3512
3513ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3514
3515
3516AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3517
3518
3519AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3520
3521
3522AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3523
3524
3525MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3526
3527# For better backward compatibility.  To be removed once Automake 1.9.x
3528# dies out for good.  For more background, see:
3529# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3530# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3531mkdir_p='$(MKDIR_P)'
3532
3533# We need awk for the "check" target (and possibly the TAP driver).  The
3534# system "awk" is bad on some platforms.
3535# Always define AMTAR for backward compatibility.  Yes, it's still used
3536# in the wild :-(  We should find a proper way to deprecate it ...
3537AMTAR='$${TAR-tar}'
3538
3539
3540# We'll loop over all known methods to create a tar archive until one works.
3541_am_tools='gnutar  pax cpio none'
3542
3543am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3544
3545
3546
3547
3548
3549
3550# POSIX will say in a future version that running "rm -f" with no argument
3551# is OK; and we want to be able to make that assumption in our Makefile
3552# recipes.  So use an aggressive probe to check that the usage we want is
3553# actually supported "in the wild" to an acceptable degree.
3554# See automake bug#10828.
3555# To make any issue more visible, cause the running configure to be aborted
3556# by default if the 'rm' program in use doesn't match our expectations; the
3557# user can still override this though.
3558if rm -f && rm -fr && rm -rf; then : OK; else
3559  cat >&2 <<'END'
3560Oops!
3561
3562Your 'rm' program seems unable to run without file operands specified
3563on the command line, even when the '-f' option is present.  This is contrary
3564to the behaviour of most rm programs out there, and not conforming with
3565the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3566
3567Please tell bug-automake@gnu.org about your system, including the value
3568of your $PATH and any error possibly output before this message.  This
3569can help us improve future automake versions.
3570
3571END
3572  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3573    echo 'Configuration will proceed anyway, since you have set the' >&2
3574    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3575    echo >&2
3576  else
3577    cat >&2 <<'END'
3578Aborting the configuration process, to ensure you take notice of the issue.
3579
3580You can download and install GNU coreutils to get an 'rm' implementation
3581that behaves properly: <https://www.gnu.org/software/coreutils/>.
3582
3583If you want to complete the configuration process using your problematic
3584'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3585to "yes", and re-run configure.
3586
3587END
3588    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3589  fi
3590fi
3591
3592
3593
3594
3595
3596
3597ac_ext=cpp
3598ac_cpp='$CXXCPP $CPPFLAGS'
3599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3602
3603
3604
3605
3606
3607
3608
3609ac_ext=cpp
3610ac_cpp='$CXXCPP $CPPFLAGS'
3611ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3614if test -z "$CXX"; then
3615  if test -n "$CCC"; then
3616    CXX=$CCC
3617  else
3618    if test -n "$ac_tool_prefix"; then
3619  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3620  do
3621    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3622set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624printf %s "checking for $ac_word... " >&6; }
3625if test ${ac_cv_prog_CXX+y}
3626then :
3627  printf %s "(cached) " >&6
3628else $as_nop
3629  if test -n "$CXX"; then
3630  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3631else
3632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633for as_dir in $PATH
3634do
3635  IFS=$as_save_IFS
3636  case $as_dir in #(((
3637    '') as_dir=./ ;;
3638    */) ;;
3639    *) as_dir=$as_dir/ ;;
3640  esac
3641    for ac_exec_ext in '' $ac_executable_extensions; do
3642  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3643    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3644    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3645    break 2
3646  fi
3647done
3648  done
3649IFS=$as_save_IFS
3650
3651fi
3652fi
3653CXX=$ac_cv_prog_CXX
3654if test -n "$CXX"; then
3655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3656printf "%s\n" "$CXX" >&6; }
3657else
3658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659printf "%s\n" "no" >&6; }
3660fi
3661
3662
3663    test -n "$CXX" && break
3664  done
3665fi
3666if test -z "$CXX"; then
3667  ac_ct_CXX=$CXX
3668  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3669do
3670  # Extract the first word of "$ac_prog", so it can be a program name with args.
3671set dummy $ac_prog; ac_word=$2
3672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673printf %s "checking for $ac_word... " >&6; }
3674if test ${ac_cv_prog_ac_ct_CXX+y}
3675then :
3676  printf %s "(cached) " >&6
3677else $as_nop
3678  if test -n "$ac_ct_CXX"; then
3679  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3680else
3681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682for as_dir in $PATH
3683do
3684  IFS=$as_save_IFS
3685  case $as_dir in #(((
3686    '') as_dir=./ ;;
3687    */) ;;
3688    *) as_dir=$as_dir/ ;;
3689  esac
3690    for ac_exec_ext in '' $ac_executable_extensions; do
3691  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3692    ac_cv_prog_ac_ct_CXX="$ac_prog"
3693    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3694    break 2
3695  fi
3696done
3697  done
3698IFS=$as_save_IFS
3699
3700fi
3701fi
3702ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3703if test -n "$ac_ct_CXX"; then
3704  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3705printf "%s\n" "$ac_ct_CXX" >&6; }
3706else
3707  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708printf "%s\n" "no" >&6; }
3709fi
3710
3711
3712  test -n "$ac_ct_CXX" && break
3713done
3714
3715  if test "x$ac_ct_CXX" = x; then
3716    CXX="g++"
3717  else
3718    case $cross_compiling:$ac_tool_warned in
3719yes:)
3720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3721printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3722ac_tool_warned=yes ;;
3723esac
3724    CXX=$ac_ct_CXX
3725  fi
3726fi
3727
3728  fi
3729fi
3730# Provide some information about the compiler.
3731printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3732set X $ac_compile
3733ac_compiler=$2
3734for ac_option in --version -v -V -qversion; do
3735  { { ac_try="$ac_compiler $ac_option >&5"
3736case "(($ac_try" in
3737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738  *) ac_try_echo=$ac_try;;
3739esac
3740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741printf "%s\n" "$ac_try_echo"; } >&5
3742  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3743  ac_status=$?
3744  if test -s conftest.err; then
3745    sed '10a\
3746... rest of stderr output deleted ...
3747         10q' conftest.err >conftest.er1
3748    cat conftest.er1 >&5
3749  fi
3750  rm -f conftest.er1 conftest.err
3751  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3752  test $ac_status = 0; }
3753done
3754
3755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756/* end confdefs.h.  */
3757
3758int
3759main (void)
3760{
3761
3762  ;
3763  return 0;
3764}
3765_ACEOF
3766ac_clean_files_save=$ac_clean_files
3767ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3768# Try to create an executable without -o first, disregard a.out.
3769# It will help us diagnose broken compilers, and finding out an intuition
3770# of exeext.
3771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3772printf %s "checking whether the C++ compiler works... " >&6; }
3773ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3774
3775# The possible output files:
3776ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3777
3778ac_rmfiles=
3779for ac_file in $ac_files
3780do
3781  case $ac_file in
3782    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3783    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3784  esac
3785done
3786rm -f $ac_rmfiles
3787
3788if { { ac_try="$ac_link_default"
3789case "(($ac_try" in
3790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791  *) ac_try_echo=$ac_try;;
3792esac
3793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794printf "%s\n" "$ac_try_echo"; } >&5
3795  (eval "$ac_link_default") 2>&5
3796  ac_status=$?
3797  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798  test $ac_status = 0; }
3799then :
3800  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3801# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3802# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3803# so that the user can short-circuit this test for compilers unknown to
3804# Autoconf.
3805for ac_file in $ac_files ''
3806do
3807  test -f "$ac_file" || continue
3808  case $ac_file in
3809    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3810	;;
3811    [ab].out )
3812	# We found the default executable, but exeext='' is most
3813	# certainly right.
3814	break;;
3815    *.* )
3816	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3817	then :; else
3818	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3819	fi
3820	# We set ac_cv_exeext here because the later test for it is not
3821	# safe: cross compilers may not add the suffix if given an `-o'
3822	# argument, so we may need to know it at that point already.
3823	# Even if this section looks crufty: it has the advantage of
3824	# actually working.
3825	break;;
3826    * )
3827	break;;
3828  esac
3829done
3830test "$ac_cv_exeext" = no && ac_cv_exeext=
3831
3832else $as_nop
3833  ac_file=''
3834fi
3835if test -z "$ac_file"
3836then :
3837  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838printf "%s\n" "no" >&6; }
3839printf "%s\n" "$as_me: failed program was:" >&5
3840sed 's/^/| /' conftest.$ac_ext >&5
3841
3842{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3843printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3844as_fn_error 77 "C++ compiler cannot create executables
3845See \`config.log' for more details" "$LINENO" 5; }
3846else $as_nop
3847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3848printf "%s\n" "yes" >&6; }
3849fi
3850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3851printf %s "checking for C++ compiler default output file name... " >&6; }
3852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3853printf "%s\n" "$ac_file" >&6; }
3854ac_exeext=$ac_cv_exeext
3855
3856rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3857ac_clean_files=$ac_clean_files_save
3858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3859printf %s "checking for suffix of executables... " >&6; }
3860if { { ac_try="$ac_link"
3861case "(($ac_try" in
3862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863  *) ac_try_echo=$ac_try;;
3864esac
3865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3866printf "%s\n" "$ac_try_echo"; } >&5
3867  (eval "$ac_link") 2>&5
3868  ac_status=$?
3869  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870  test $ac_status = 0; }
3871then :
3872  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3873# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3874# work properly (i.e., refer to `conftest.exe'), while it won't with
3875# `rm'.
3876for ac_file in conftest.exe conftest conftest.*; do
3877  test -f "$ac_file" || continue
3878  case $ac_file in
3879    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3880    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3881	  break;;
3882    * ) break;;
3883  esac
3884done
3885else $as_nop
3886  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3888as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3889See \`config.log' for more details" "$LINENO" 5; }
3890fi
3891rm -f conftest conftest$ac_cv_exeext
3892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3893printf "%s\n" "$ac_cv_exeext" >&6; }
3894
3895rm -f conftest.$ac_ext
3896EXEEXT=$ac_cv_exeext
3897ac_exeext=$EXEEXT
3898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899/* end confdefs.h.  */
3900#include <stdio.h>
3901int
3902main (void)
3903{
3904FILE *f = fopen ("conftest.out", "w");
3905 return ferror (f) || fclose (f) != 0;
3906
3907  ;
3908  return 0;
3909}
3910_ACEOF
3911ac_clean_files="$ac_clean_files conftest.out"
3912# Check that the compiler produces executables we can run.  If not, either
3913# the compiler is broken, or we cross compile.
3914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3915printf %s "checking whether we are cross compiling... " >&6; }
3916if test "$cross_compiling" != yes; then
3917  { { ac_try="$ac_link"
3918case "(($ac_try" in
3919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920  *) ac_try_echo=$ac_try;;
3921esac
3922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923printf "%s\n" "$ac_try_echo"; } >&5
3924  (eval "$ac_link") 2>&5
3925  ac_status=$?
3926  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927  test $ac_status = 0; }
3928  if { ac_try='./conftest$ac_cv_exeext'
3929  { { case "(($ac_try" in
3930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931  *) ac_try_echo=$ac_try;;
3932esac
3933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934printf "%s\n" "$ac_try_echo"; } >&5
3935  (eval "$ac_try") 2>&5
3936  ac_status=$?
3937  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3938  test $ac_status = 0; }; }; then
3939    cross_compiling=no
3940  else
3941    if test "$cross_compiling" = maybe; then
3942	cross_compiling=yes
3943    else
3944	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3946as_fn_error 77 "cannot run C++ compiled programs.
3947If you meant to cross compile, use \`--host'.
3948See \`config.log' for more details" "$LINENO" 5; }
3949    fi
3950  fi
3951fi
3952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3953printf "%s\n" "$cross_compiling" >&6; }
3954
3955rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3956ac_clean_files=$ac_clean_files_save
3957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3958printf %s "checking for suffix of object files... " >&6; }
3959if test ${ac_cv_objext+y}
3960then :
3961  printf %s "(cached) " >&6
3962else $as_nop
3963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964/* end confdefs.h.  */
3965
3966int
3967main (void)
3968{
3969
3970  ;
3971  return 0;
3972}
3973_ACEOF
3974rm -f conftest.o conftest.obj
3975if { { ac_try="$ac_compile"
3976case "(($ac_try" in
3977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978  *) ac_try_echo=$ac_try;;
3979esac
3980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3981printf "%s\n" "$ac_try_echo"; } >&5
3982  (eval "$ac_compile") 2>&5
3983  ac_status=$?
3984  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3985  test $ac_status = 0; }
3986then :
3987  for ac_file in conftest.o conftest.obj conftest.*; do
3988  test -f "$ac_file" || continue;
3989  case $ac_file in
3990    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3991    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3992       break;;
3993  esac
3994done
3995else $as_nop
3996  printf "%s\n" "$as_me: failed program was:" >&5
3997sed 's/^/| /' conftest.$ac_ext >&5
3998
3999{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4001as_fn_error $? "cannot compute suffix of object files: cannot compile
4002See \`config.log' for more details" "$LINENO" 5; }
4003fi
4004rm -f conftest.$ac_cv_objext conftest.$ac_ext
4005fi
4006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4007printf "%s\n" "$ac_cv_objext" >&6; }
4008OBJEXT=$ac_cv_objext
4009ac_objext=$OBJEXT
4010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4011printf %s "checking whether the compiler supports GNU C++... " >&6; }
4012if test ${ac_cv_cxx_compiler_gnu+y}
4013then :
4014  printf %s "(cached) " >&6
4015else $as_nop
4016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017/* end confdefs.h.  */
4018
4019int
4020main (void)
4021{
4022#ifndef __GNUC__
4023       choke me
4024#endif
4025
4026  ;
4027  return 0;
4028}
4029_ACEOF
4030if ac_fn_cxx_try_compile "$LINENO"
4031then :
4032  ac_compiler_gnu=yes
4033else $as_nop
4034  ac_compiler_gnu=no
4035fi
4036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4037ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4038
4039fi
4040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4041printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4043
4044if test $ac_compiler_gnu = yes; then
4045  GXX=yes
4046else
4047  GXX=
4048fi
4049ac_test_CXXFLAGS=${CXXFLAGS+y}
4050ac_save_CXXFLAGS=$CXXFLAGS
4051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4052printf %s "checking whether $CXX accepts -g... " >&6; }
4053if test ${ac_cv_prog_cxx_g+y}
4054then :
4055  printf %s "(cached) " >&6
4056else $as_nop
4057  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4058   ac_cxx_werror_flag=yes
4059   ac_cv_prog_cxx_g=no
4060   CXXFLAGS="-g"
4061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062/* end confdefs.h.  */
4063
4064int
4065main (void)
4066{
4067
4068  ;
4069  return 0;
4070}
4071_ACEOF
4072if ac_fn_cxx_try_compile "$LINENO"
4073then :
4074  ac_cv_prog_cxx_g=yes
4075else $as_nop
4076  CXXFLAGS=""
4077      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078/* end confdefs.h.  */
4079
4080int
4081main (void)
4082{
4083
4084  ;
4085  return 0;
4086}
4087_ACEOF
4088if ac_fn_cxx_try_compile "$LINENO"
4089then :
4090
4091else $as_nop
4092  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4093	 CXXFLAGS="-g"
4094	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095/* end confdefs.h.  */
4096
4097int
4098main (void)
4099{
4100
4101  ;
4102  return 0;
4103}
4104_ACEOF
4105if ac_fn_cxx_try_compile "$LINENO"
4106then :
4107  ac_cv_prog_cxx_g=yes
4108fi
4109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4110fi
4111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4112fi
4113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4114   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4115fi
4116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4117printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4118if test $ac_test_CXXFLAGS; then
4119  CXXFLAGS=$ac_save_CXXFLAGS
4120elif test $ac_cv_prog_cxx_g = yes; then
4121  if test "$GXX" = yes; then
4122    CXXFLAGS="-g -O2"
4123  else
4124    CXXFLAGS="-g"
4125  fi
4126else
4127  if test "$GXX" = yes; then
4128    CXXFLAGS="-O2"
4129  else
4130    CXXFLAGS=
4131  fi
4132fi
4133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4134printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4135if test ${ac_cv_prog_cxx_cxx11+y}
4136then :
4137  printf %s "(cached) " >&6
4138else $as_nop
4139  ac_cv_prog_cxx_cxx11=no
4140ac_save_CXX=$CXX
4141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142/* end confdefs.h.  */
4143$ac_cxx_conftest_cxx11_program
4144_ACEOF
4145for ac_arg in '' -std=gnu++11 -std=c++11 -std=gnu++0x -std=c++0x -qlanglvl=extended0x -AA
4146do
4147  CXX="$ac_save_CXX $ac_arg"
4148  if ac_fn_cxx_try_compile "$LINENO"
4149then :
4150  ac_cv_prog_cxx_cxx11=$ac_arg
4151fi
4152rm -f core conftest.err conftest.$ac_objext conftest.beam
4153  test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4154done
4155rm -f conftest.$ac_ext
4156CXX=$ac_save_CXX
4157
4158fi
4159# AC_CACHE_VAL
4160ac_prog_cxx_stdcxx_options=
4161case "x$ac_cv_prog_cxx_cxx11" in #(
4162  x) :
4163    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4164printf "%s\n" "none needed" >&6; } ;; #(
4165  xno) :
4166    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4167printf "%s\n" "unsupported" >&6; } ;; #(
4168  *) :
4169    ac_prog_cxx_stdcxx_options=" $ac_cv_prog_cxx_cxx11"
4170    CXX=$CXX$ac_prog_cxx_stdcxx_options
4171    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4172printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } ;;
4173esac
4174if test "x$ac_cv_prog_cxx_cxx11" != xno
4175then :
4176  ac_prog_cxx_stdcxx=cxx11
4177		    ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4178		    ac_cv_prog_cxx_cxx98=$ac_cv_prog_cxx_cxx11
4179else $as_nop
4180  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4181printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4182if test ${ac_cv_prog_cxx_cxx98+y}
4183then :
4184  printf %s "(cached) " >&6
4185else $as_nop
4186  ac_cv_prog_cxx_cxx98=no
4187ac_save_CXX=$CXX
4188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189/* end confdefs.h.  */
4190$ac_cxx_conftest_cxx98_program
4191_ACEOF
4192for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4193do
4194  CXX="$ac_save_CXX $ac_arg"
4195  if ac_fn_cxx_try_compile "$LINENO"
4196then :
4197  ac_cv_prog_cxx_cxx98=$ac_arg
4198fi
4199rm -f core conftest.err conftest.$ac_objext conftest.beam
4200  test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4201done
4202rm -f conftest.$ac_ext
4203CXX=$ac_save_CXX
4204
4205fi
4206# AC_CACHE_VAL
4207ac_prog_cxx_stdcxx_options=
4208case "x$ac_cv_prog_cxx_cxx98" in #(
4209  x) :
4210    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4211printf "%s\n" "none needed" >&6; } ;; #(
4212  xno) :
4213    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4214printf "%s\n" "unsupported" >&6; } ;; #(
4215  *) :
4216    ac_prog_cxx_stdcxx_options=" $ac_cv_prog_cxx_cxx98"
4217    CXX=$CXX$ac_prog_cxx_stdcxx_options
4218    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4219printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } ;;
4220esac
4221if test "x$ac_cv_prog_cxx_cxx98" != xno
4222then :
4223  ac_prog_cxx_stdcxx=cxx98
4224		        ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4225else $as_nop
4226  ac_prog_cxx_stdcxx=no
4227		        ac_cv_prog_cxx_stdcxx=no
4228fi
4229
4230fi
4231
4232ac_ext=cpp
4233ac_cpp='$CXXCPP $CPPFLAGS'
4234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4237DEPDIR="${am__leading_dot}deps"
4238
4239ac_config_commands="$ac_config_commands depfiles"
4240
4241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4242printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4243cat > confinc.mk << 'END'
4244am__doit:
4245	@echo this is the am__doit target >confinc.out
4246.PHONY: am__doit
4247END
4248am__include="#"
4249am__quote=
4250# BSD make does it like this.
4251echo '.include "confinc.mk" # ignored' > confmf.BSD
4252# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4253echo 'include confinc.mk # ignored' > confmf.GNU
4254_am_result=no
4255for s in GNU BSD; do
4256  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4257   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4258   ac_status=$?
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); }
4261  case $?:`cat confinc.out 2>/dev/null` in #(
4262  '0:this is the am__doit target') :
4263    case $s in #(
4264  BSD) :
4265    am__include='.include' am__quote='"' ;; #(
4266  *) :
4267    am__include='include' am__quote='' ;;
4268esac ;; #(
4269  *) :
4270     ;;
4271esac
4272  if test "$am__include" != "#"; then
4273    _am_result="yes ($s style)"
4274    break
4275  fi
4276done
4277rm -f confinc.* confmf.*
4278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4279printf "%s\n" "${_am_result}" >&6; }
4280
4281# Check whether --enable-dependency-tracking was given.
4282if test ${enable_dependency_tracking+y}
4283then :
4284  enableval=$enable_dependency_tracking;
4285fi
4286
4287if test "x$enable_dependency_tracking" != xno; then
4288  am_depcomp="$ac_aux_dir/depcomp"
4289  AMDEPBACKSLASH='\'
4290  am__nodep='_no'
4291fi
4292 if test "x$enable_dependency_tracking" != xno; then
4293  AMDEP_TRUE=
4294  AMDEP_FALSE='#'
4295else
4296  AMDEP_TRUE='#'
4297  AMDEP_FALSE=
4298fi
4299
4300
4301
4302depcc="$CXX"  am_compiler_list=
4303
4304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4305printf %s "checking dependency style of $depcc... " >&6; }
4306if test ${am_cv_CXX_dependencies_compiler_type+y}
4307then :
4308  printf %s "(cached) " >&6
4309else $as_nop
4310  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4311  # We make a subdir and do the tests there.  Otherwise we can end up
4312  # making bogus files that we don't know about and never remove.  For
4313  # instance it was reported that on HP-UX the gcc test will end up
4314  # making a dummy file named 'D' -- because '-MD' means "put the output
4315  # in D".
4316  rm -rf conftest.dir
4317  mkdir conftest.dir
4318  # Copy depcomp to subdir because otherwise we won't find it if we're
4319  # using a relative directory.
4320  cp "$am_depcomp" conftest.dir
4321  cd conftest.dir
4322  # We will build objects and dependencies in a subdirectory because
4323  # it helps to detect inapplicable dependency modes.  For instance
4324  # both Tru64's cc and ICC support -MD to output dependencies as a
4325  # side effect of compilation, but ICC will put the dependencies in
4326  # the current directory while Tru64 will put them in the object
4327  # directory.
4328  mkdir sub
4329
4330  am_cv_CXX_dependencies_compiler_type=none
4331  if test "$am_compiler_list" = ""; then
4332     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4333  fi
4334  am__universal=false
4335  case " $depcc " in #(
4336     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4337     esac
4338
4339  for depmode in $am_compiler_list; do
4340    # Setup a source with many dependencies, because some compilers
4341    # like to wrap large dependency lists on column 80 (with \), and
4342    # we should not choose a depcomp mode which is confused by this.
4343    #
4344    # We need to recreate these files for each test, as the compiler may
4345    # overwrite some of them when testing with obscure command lines.
4346    # This happens at least with the AIX C compiler.
4347    : > sub/conftest.c
4348    for i in 1 2 3 4 5 6; do
4349      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4350      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4351      # Solaris 10 /bin/sh.
4352      echo '/* dummy */' > sub/conftst$i.h
4353    done
4354    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4355
4356    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4357    # mode.  It turns out that the SunPro C++ compiler does not properly
4358    # handle '-M -o', and we need to detect this.  Also, some Intel
4359    # versions had trouble with output in subdirs.
4360    am__obj=sub/conftest.${OBJEXT-o}
4361    am__minus_obj="-o $am__obj"
4362    case $depmode in
4363    gcc)
4364      # This depmode causes a compiler race in universal mode.
4365      test "$am__universal" = false || continue
4366      ;;
4367    nosideeffect)
4368      # After this tag, mechanisms are not by side-effect, so they'll
4369      # only be used when explicitly requested.
4370      if test "x$enable_dependency_tracking" = xyes; then
4371	continue
4372      else
4373	break
4374      fi
4375      ;;
4376    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4377      # This compiler won't grok '-c -o', but also, the minuso test has
4378      # not run yet.  These depmodes are late enough in the game, and
4379      # so weak that their functioning should not be impacted.
4380      am__obj=conftest.${OBJEXT-o}
4381      am__minus_obj=
4382      ;;
4383    none) break ;;
4384    esac
4385    if depmode=$depmode \
4386       source=sub/conftest.c object=$am__obj \
4387       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4388       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4389         >/dev/null 2>conftest.err &&
4390       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4391       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4392       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4393       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4394      # icc doesn't choke on unknown options, it will just issue warnings
4395      # or remarks (even with -Werror).  So we grep stderr for any message
4396      # that says an option was ignored or not supported.
4397      # When given -MP, icc 7.0 and 7.1 complain thusly:
4398      #   icc: Command line warning: ignoring option '-M'; no argument required
4399      # The diagnosis changed in icc 8.0:
4400      #   icc: Command line remark: option '-MP' not supported
4401      if (grep 'ignoring option' conftest.err ||
4402          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4403        am_cv_CXX_dependencies_compiler_type=$depmode
4404        break
4405      fi
4406    fi
4407  done
4408
4409  cd ..
4410  rm -rf conftest.dir
4411else
4412  am_cv_CXX_dependencies_compiler_type=none
4413fi
4414
4415fi
4416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4417printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
4418CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4419
4420 if
4421  test "x$enable_dependency_tracking" != xno \
4422  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4423  am__fastdepCXX_TRUE=
4424  am__fastdepCXX_FALSE='#'
4425else
4426  am__fastdepCXX_TRUE='#'
4427  am__fastdepCXX_FALSE=
4428fi
4429
4430
4431case `pwd` in
4432  *\ * | *\	*)
4433    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4434printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4435esac
4436
4437
4438
4439macro_version='2.4.6.42-b88ce-dirty'
4440macro_revision='2.4.6.42'
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455ltmain=$ac_aux_dir/ltmain.sh
4456
4457
4458
4459  # Make sure we can run config.sub.
4460$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4461  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4462
4463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4464printf %s "checking build system type... " >&6; }
4465if test ${ac_cv_build+y}
4466then :
4467  printf %s "(cached) " >&6
4468else $as_nop
4469  ac_build_alias=$build_alias
4470test "x$ac_build_alias" = x &&
4471  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4472test "x$ac_build_alias" = x &&
4473  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4474ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4475  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4476
4477fi
4478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4479printf "%s\n" "$ac_cv_build" >&6; }
4480case $ac_cv_build in
4481*-*-*) ;;
4482*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4483esac
4484build=$ac_cv_build
4485ac_save_IFS=$IFS; IFS='-'
4486set x $ac_cv_build
4487shift
4488build_cpu=$1
4489build_vendor=$2
4490shift; shift
4491# Remember, the first character of IFS is used to create $*,
4492# except with old shells:
4493build_os=$*
4494IFS=$ac_save_IFS
4495case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4496
4497
4498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4499printf %s "checking host system type... " >&6; }
4500if test ${ac_cv_host+y}
4501then :
4502  printf %s "(cached) " >&6
4503else $as_nop
4504  if test "x$host_alias" = x; then
4505  ac_cv_host=$ac_cv_build
4506else
4507  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4508    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4509fi
4510
4511fi
4512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4513printf "%s\n" "$ac_cv_host" >&6; }
4514case $ac_cv_host in
4515*-*-*) ;;
4516*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4517esac
4518host=$ac_cv_host
4519ac_save_IFS=$IFS; IFS='-'
4520set x $ac_cv_host
4521shift
4522host_cpu=$1
4523host_vendor=$2
4524shift; shift
4525# Remember, the first character of IFS is used to create $*,
4526# except with old shells:
4527host_os=$*
4528IFS=$ac_save_IFS
4529case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4530
4531
4532# Backslashify metacharacters that are still active within
4533# double-quoted strings.
4534sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4535
4536# Same as above, but do not quote variable references.
4537double_quote_subst='s/\(["`\\]\)/\\\1/g'
4538
4539# Sed substitution to delay expansion of an escaped shell variable in a
4540# double_quote_subst'ed string.
4541delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4542
4543# Sed substitution to delay expansion of an escaped single quote.
4544delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4545
4546# Sed substitution to avoid accidental globbing in evaled expressions
4547no_glob_subst='s/\*/\\\*/g'
4548
4549ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4550ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4551ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4552
4553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4554printf %s "checking how to print strings... " >&6; }
4555# Test print first, because it will be a builtin if present.
4556if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4557   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4558  ECHO='print -r --'
4559elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4560  ECHO='printf %s\n'
4561else
4562  # Use this function as a fallback that always works.
4563  func_fallback_echo ()
4564  {
4565    eval 'cat <<_LTECHO_EOF
4566$1
4567_LTECHO_EOF'
4568  }
4569  ECHO='func_fallback_echo'
4570fi
4571
4572# func_echo_all arg...
4573# Invoke $ECHO with all args, space-separated.
4574func_echo_all ()
4575{
4576    $ECHO ""
4577}
4578
4579case $ECHO in
4580  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4581printf "%s\n" "printf" >&6; } ;;
4582  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4583printf "%s\n" "print -r" >&6; } ;;
4584  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4585printf "%s\n" "cat" >&6; } ;;
4586esac
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610ac_ext=c
4611ac_cpp='$CPP $CPPFLAGS'
4612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4614ac_compiler_gnu=$ac_cv_c_compiler_gnu
4615if test -n "$ac_tool_prefix"; then
4616  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4617set dummy ${ac_tool_prefix}gcc; ac_word=$2
4618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619printf %s "checking for $ac_word... " >&6; }
4620if test ${ac_cv_prog_CC+y}
4621then :
4622  printf %s "(cached) " >&6
4623else $as_nop
4624  if test -n "$CC"; then
4625  ac_cv_prog_CC="$CC" # Let the user override the test.
4626else
4627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628for as_dir in $PATH
4629do
4630  IFS=$as_save_IFS
4631  case $as_dir in #(((
4632    '') as_dir=./ ;;
4633    */) ;;
4634    *) as_dir=$as_dir/ ;;
4635  esac
4636    for ac_exec_ext in '' $ac_executable_extensions; do
4637  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4638    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4639    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4640    break 2
4641  fi
4642done
4643  done
4644IFS=$as_save_IFS
4645
4646fi
4647fi
4648CC=$ac_cv_prog_CC
4649if test -n "$CC"; then
4650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4651printf "%s\n" "$CC" >&6; }
4652else
4653  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654printf "%s\n" "no" >&6; }
4655fi
4656
4657
4658fi
4659if test -z "$ac_cv_prog_CC"; then
4660  ac_ct_CC=$CC
4661  # Extract the first word of "gcc", so it can be a program name with args.
4662set dummy gcc; ac_word=$2
4663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664printf %s "checking for $ac_word... " >&6; }
4665if test ${ac_cv_prog_ac_ct_CC+y}
4666then :
4667  printf %s "(cached) " >&6
4668else $as_nop
4669  if test -n "$ac_ct_CC"; then
4670  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4671else
4672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673for as_dir in $PATH
4674do
4675  IFS=$as_save_IFS
4676  case $as_dir in #(((
4677    '') as_dir=./ ;;
4678    */) ;;
4679    *) as_dir=$as_dir/ ;;
4680  esac
4681    for ac_exec_ext in '' $ac_executable_extensions; do
4682  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4683    ac_cv_prog_ac_ct_CC="gcc"
4684    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4685    break 2
4686  fi
4687done
4688  done
4689IFS=$as_save_IFS
4690
4691fi
4692fi
4693ac_ct_CC=$ac_cv_prog_ac_ct_CC
4694if test -n "$ac_ct_CC"; then
4695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4696printf "%s\n" "$ac_ct_CC" >&6; }
4697else
4698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4699printf "%s\n" "no" >&6; }
4700fi
4701
4702  if test "x$ac_ct_CC" = x; then
4703    CC=""
4704  else
4705    case $cross_compiling:$ac_tool_warned in
4706yes:)
4707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4708printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4709ac_tool_warned=yes ;;
4710esac
4711    CC=$ac_ct_CC
4712  fi
4713else
4714  CC="$ac_cv_prog_CC"
4715fi
4716
4717if test -z "$CC"; then
4718          if test -n "$ac_tool_prefix"; then
4719    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4720set dummy ${ac_tool_prefix}cc; ac_word=$2
4721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722printf %s "checking for $ac_word... " >&6; }
4723if test ${ac_cv_prog_CC+y}
4724then :
4725  printf %s "(cached) " >&6
4726else $as_nop
4727  if test -n "$CC"; then
4728  ac_cv_prog_CC="$CC" # Let the user override the test.
4729else
4730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731for as_dir in $PATH
4732do
4733  IFS=$as_save_IFS
4734  case $as_dir in #(((
4735    '') as_dir=./ ;;
4736    */) ;;
4737    *) as_dir=$as_dir/ ;;
4738  esac
4739    for ac_exec_ext in '' $ac_executable_extensions; do
4740  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4741    ac_cv_prog_CC="${ac_tool_prefix}cc"
4742    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4743    break 2
4744  fi
4745done
4746  done
4747IFS=$as_save_IFS
4748
4749fi
4750fi
4751CC=$ac_cv_prog_CC
4752if test -n "$CC"; then
4753  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4754printf "%s\n" "$CC" >&6; }
4755else
4756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757printf "%s\n" "no" >&6; }
4758fi
4759
4760
4761  fi
4762fi
4763if test -z "$CC"; then
4764  # Extract the first word of "cc", so it can be a program name with args.
4765set dummy cc; ac_word=$2
4766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767printf %s "checking for $ac_word... " >&6; }
4768if test ${ac_cv_prog_CC+y}
4769then :
4770  printf %s "(cached) " >&6
4771else $as_nop
4772  if test -n "$CC"; then
4773  ac_cv_prog_CC="$CC" # Let the user override the test.
4774else
4775  ac_prog_rejected=no
4776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777for as_dir in $PATH
4778do
4779  IFS=$as_save_IFS
4780  case $as_dir in #(((
4781    '') as_dir=./ ;;
4782    */) ;;
4783    *) as_dir=$as_dir/ ;;
4784  esac
4785    for ac_exec_ext in '' $ac_executable_extensions; do
4786  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4787    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4788       ac_prog_rejected=yes
4789       continue
4790     fi
4791    ac_cv_prog_CC="cc"
4792    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4793    break 2
4794  fi
4795done
4796  done
4797IFS=$as_save_IFS
4798
4799if test $ac_prog_rejected = yes; then
4800  # We found a bogon in the path, so make sure we never use it.
4801  set dummy $ac_cv_prog_CC
4802  shift
4803  if test $# != 0; then
4804    # We chose a different compiler from the bogus one.
4805    # However, it has the same basename, so the bogon will be chosen
4806    # first if we set CC to just the basename; use the full file name.
4807    shift
4808    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4809  fi
4810fi
4811fi
4812fi
4813CC=$ac_cv_prog_CC
4814if test -n "$CC"; then
4815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4816printf "%s\n" "$CC" >&6; }
4817else
4818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819printf "%s\n" "no" >&6; }
4820fi
4821
4822
4823fi
4824if test -z "$CC"; then
4825  if test -n "$ac_tool_prefix"; then
4826  for ac_prog in cl.exe
4827  do
4828    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4829set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831printf %s "checking for $ac_word... " >&6; }
4832if test ${ac_cv_prog_CC+y}
4833then :
4834  printf %s "(cached) " >&6
4835else $as_nop
4836  if test -n "$CC"; then
4837  ac_cv_prog_CC="$CC" # Let the user override the test.
4838else
4839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840for as_dir in $PATH
4841do
4842  IFS=$as_save_IFS
4843  case $as_dir in #(((
4844    '') as_dir=./ ;;
4845    */) ;;
4846    *) as_dir=$as_dir/ ;;
4847  esac
4848    for ac_exec_ext in '' $ac_executable_extensions; do
4849  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4850    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4851    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4852    break 2
4853  fi
4854done
4855  done
4856IFS=$as_save_IFS
4857
4858fi
4859fi
4860CC=$ac_cv_prog_CC
4861if test -n "$CC"; then
4862  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4863printf "%s\n" "$CC" >&6; }
4864else
4865  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866printf "%s\n" "no" >&6; }
4867fi
4868
4869
4870    test -n "$CC" && break
4871  done
4872fi
4873if test -z "$CC"; then
4874  ac_ct_CC=$CC
4875  for ac_prog in cl.exe
4876do
4877  # Extract the first word of "$ac_prog", so it can be a program name with args.
4878set dummy $ac_prog; ac_word=$2
4879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880printf %s "checking for $ac_word... " >&6; }
4881if test ${ac_cv_prog_ac_ct_CC+y}
4882then :
4883  printf %s "(cached) " >&6
4884else $as_nop
4885  if test -n "$ac_ct_CC"; then
4886  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4887else
4888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889for as_dir in $PATH
4890do
4891  IFS=$as_save_IFS
4892  case $as_dir in #(((
4893    '') as_dir=./ ;;
4894    */) ;;
4895    *) as_dir=$as_dir/ ;;
4896  esac
4897    for ac_exec_ext in '' $ac_executable_extensions; do
4898  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4899    ac_cv_prog_ac_ct_CC="$ac_prog"
4900    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4901    break 2
4902  fi
4903done
4904  done
4905IFS=$as_save_IFS
4906
4907fi
4908fi
4909ac_ct_CC=$ac_cv_prog_ac_ct_CC
4910if test -n "$ac_ct_CC"; then
4911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4912printf "%s\n" "$ac_ct_CC" >&6; }
4913else
4914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915printf "%s\n" "no" >&6; }
4916fi
4917
4918
4919  test -n "$ac_ct_CC" && break
4920done
4921
4922  if test "x$ac_ct_CC" = x; then
4923    CC=""
4924  else
4925    case $cross_compiling:$ac_tool_warned in
4926yes:)
4927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4928printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4929ac_tool_warned=yes ;;
4930esac
4931    CC=$ac_ct_CC
4932  fi
4933fi
4934
4935fi
4936if test -z "$CC"; then
4937  if test -n "$ac_tool_prefix"; then
4938  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4939set dummy ${ac_tool_prefix}clang; ac_word=$2
4940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941printf %s "checking for $ac_word... " >&6; }
4942if test ${ac_cv_prog_CC+y}
4943then :
4944  printf %s "(cached) " >&6
4945else $as_nop
4946  if test -n "$CC"; then
4947  ac_cv_prog_CC="$CC" # Let the user override the test.
4948else
4949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950for as_dir in $PATH
4951do
4952  IFS=$as_save_IFS
4953  case $as_dir in #(((
4954    '') as_dir=./ ;;
4955    */) ;;
4956    *) as_dir=$as_dir/ ;;
4957  esac
4958    for ac_exec_ext in '' $ac_executable_extensions; do
4959  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4960    ac_cv_prog_CC="${ac_tool_prefix}clang"
4961    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4962    break 2
4963  fi
4964done
4965  done
4966IFS=$as_save_IFS
4967
4968fi
4969fi
4970CC=$ac_cv_prog_CC
4971if test -n "$CC"; then
4972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4973printf "%s\n" "$CC" >&6; }
4974else
4975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976printf "%s\n" "no" >&6; }
4977fi
4978
4979
4980fi
4981if test -z "$ac_cv_prog_CC"; then
4982  ac_ct_CC=$CC
4983  # Extract the first word of "clang", so it can be a program name with args.
4984set dummy clang; ac_word=$2
4985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986printf %s "checking for $ac_word... " >&6; }
4987if test ${ac_cv_prog_ac_ct_CC+y}
4988then :
4989  printf %s "(cached) " >&6
4990else $as_nop
4991  if test -n "$ac_ct_CC"; then
4992  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4993else
4994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995for as_dir in $PATH
4996do
4997  IFS=$as_save_IFS
4998  case $as_dir in #(((
4999    '') as_dir=./ ;;
5000    */) ;;
5001    *) as_dir=$as_dir/ ;;
5002  esac
5003    for ac_exec_ext in '' $ac_executable_extensions; do
5004  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5005    ac_cv_prog_ac_ct_CC="clang"
5006    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5007    break 2
5008  fi
5009done
5010  done
5011IFS=$as_save_IFS
5012
5013fi
5014fi
5015ac_ct_CC=$ac_cv_prog_ac_ct_CC
5016if test -n "$ac_ct_CC"; then
5017  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5018printf "%s\n" "$ac_ct_CC" >&6; }
5019else
5020  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021printf "%s\n" "no" >&6; }
5022fi
5023
5024  if test "x$ac_ct_CC" = x; then
5025    CC=""
5026  else
5027    case $cross_compiling:$ac_tool_warned in
5028yes:)
5029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5030printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5031ac_tool_warned=yes ;;
5032esac
5033    CC=$ac_ct_CC
5034  fi
5035else
5036  CC="$ac_cv_prog_CC"
5037fi
5038
5039fi
5040
5041
5042test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5043printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5044as_fn_error $? "no acceptable C compiler found in \$PATH
5045See \`config.log' for more details" "$LINENO" 5; }
5046
5047# Provide some information about the compiler.
5048printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5049set X $ac_compile
5050ac_compiler=$2
5051for ac_option in --version -v -V -qversion -version; do
5052  { { ac_try="$ac_compiler $ac_option >&5"
5053case "(($ac_try" in
5054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055  *) ac_try_echo=$ac_try;;
5056esac
5057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5058printf "%s\n" "$ac_try_echo"; } >&5
5059  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5060  ac_status=$?
5061  if test -s conftest.err; then
5062    sed '10a\
5063... rest of stderr output deleted ...
5064         10q' conftest.err >conftest.er1
5065    cat conftest.er1 >&5
5066  fi
5067  rm -f conftest.er1 conftest.err
5068  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5069  test $ac_status = 0; }
5070done
5071
5072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5073printf %s "checking whether the compiler supports GNU C... " >&6; }
5074if test ${ac_cv_c_compiler_gnu+y}
5075then :
5076  printf %s "(cached) " >&6
5077else $as_nop
5078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079/* end confdefs.h.  */
5080
5081int
5082main (void)
5083{
5084#ifndef __GNUC__
5085       choke me
5086#endif
5087
5088  ;
5089  return 0;
5090}
5091_ACEOF
5092if ac_fn_c_try_compile "$LINENO"
5093then :
5094  ac_compiler_gnu=yes
5095else $as_nop
5096  ac_compiler_gnu=no
5097fi
5098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5099ac_cv_c_compiler_gnu=$ac_compiler_gnu
5100
5101fi
5102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5103printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5104ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105
5106if test $ac_compiler_gnu = yes; then
5107  GCC=yes
5108else
5109  GCC=
5110fi
5111ac_test_CFLAGS=${CFLAGS+y}
5112ac_save_CFLAGS=$CFLAGS
5113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5114printf %s "checking whether $CC accepts -g... " >&6; }
5115if test ${ac_cv_prog_cc_g+y}
5116then :
5117  printf %s "(cached) " >&6
5118else $as_nop
5119  ac_save_c_werror_flag=$ac_c_werror_flag
5120   ac_c_werror_flag=yes
5121   ac_cv_prog_cc_g=no
5122   CFLAGS="-g"
5123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124/* end confdefs.h.  */
5125
5126int
5127main (void)
5128{
5129
5130  ;
5131  return 0;
5132}
5133_ACEOF
5134if ac_fn_c_try_compile "$LINENO"
5135then :
5136  ac_cv_prog_cc_g=yes
5137else $as_nop
5138  CFLAGS=""
5139      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140/* end confdefs.h.  */
5141
5142int
5143main (void)
5144{
5145
5146  ;
5147  return 0;
5148}
5149_ACEOF
5150if ac_fn_c_try_compile "$LINENO"
5151then :
5152
5153else $as_nop
5154  ac_c_werror_flag=$ac_save_c_werror_flag
5155	 CFLAGS="-g"
5156	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157/* end confdefs.h.  */
5158
5159int
5160main (void)
5161{
5162
5163  ;
5164  return 0;
5165}
5166_ACEOF
5167if ac_fn_c_try_compile "$LINENO"
5168then :
5169  ac_cv_prog_cc_g=yes
5170fi
5171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5172fi
5173rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5174fi
5175rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5176   ac_c_werror_flag=$ac_save_c_werror_flag
5177fi
5178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5179printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5180if test $ac_test_CFLAGS; then
5181  CFLAGS=$ac_save_CFLAGS
5182elif test $ac_cv_prog_cc_g = yes; then
5183  if test "$GCC" = yes; then
5184    CFLAGS="-g -O2"
5185  else
5186    CFLAGS="-g"
5187  fi
5188else
5189  if test "$GCC" = yes; then
5190    CFLAGS="-O2"
5191  else
5192    CFLAGS=
5193  fi
5194fi
5195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5196printf %s "checking for $CC option to enable C11 features... " >&6; }
5197if test ${ac_cv_prog_cc_c11+y}
5198then :
5199  printf %s "(cached) " >&6
5200else $as_nop
5201  ac_cv_prog_cc_c11=no
5202ac_save_CC=$CC
5203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204/* end confdefs.h.  */
5205$ac_c_conftest_c11_program
5206_ACEOF
5207for ac_arg in '' -std=gnu11
5208do
5209  CC="$ac_save_CC $ac_arg"
5210  if ac_fn_c_try_compile "$LINENO"
5211then :
5212  ac_cv_prog_cc_c11=$ac_arg
5213fi
5214rm -f core conftest.err conftest.$ac_objext conftest.beam
5215  test "x$ac_cv_prog_cc_c11" != "xno" && break
5216done
5217rm -f conftest.$ac_ext
5218CC=$ac_save_CC
5219
5220fi
5221# AC_CACHE_VAL
5222ac_prog_cc_stdc_options=
5223case "x$ac_cv_prog_cc_c11" in #(
5224  x) :
5225    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5226printf "%s\n" "none needed" >&6; } ;; #(
5227  xno) :
5228    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5229printf "%s\n" "unsupported" >&6; } ;; #(
5230  *) :
5231    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
5232    CC="$CC$ac_prog_cc_stdc_options"
5233    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5234printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } ;;
5235esac
5236if test "x$ac_cv_prog_cc_c11" != xno
5237then :
5238  ac_prog_cc_stdc=c11
5239		 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5240else $as_nop
5241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5242printf %s "checking for $CC option to enable C99 features... " >&6; }
5243if test ${ac_cv_prog_cc_c99+y}
5244then :
5245  printf %s "(cached) " >&6
5246else $as_nop
5247  ac_cv_prog_cc_c99=no
5248ac_save_CC=$CC
5249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250/* end confdefs.h.  */
5251$ac_c_conftest_c89_program
5252_ACEOF
5253for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
5254do
5255  CC="$ac_save_CC $ac_arg"
5256  if ac_fn_c_try_compile "$LINENO"
5257then :
5258  ac_cv_prog_cc_c99=$ac_arg
5259fi
5260rm -f core conftest.err conftest.$ac_objext conftest.beam
5261  test "x$ac_cv_prog_cc_c99" != "xno" && break
5262done
5263rm -f conftest.$ac_ext
5264CC=$ac_save_CC
5265
5266fi
5267# AC_CACHE_VAL
5268ac_prog_cc_stdc_options=
5269case "x$ac_cv_prog_cc_c99" in #(
5270  x) :
5271    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5272printf "%s\n" "none needed" >&6; } ;; #(
5273  xno) :
5274    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5275printf "%s\n" "unsupported" >&6; } ;; #(
5276  *) :
5277    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
5278    CC="$CC$ac_prog_cc_stdc_options"
5279    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5280printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } ;;
5281esac
5282if test "x$ac_cv_prog_cc_c99" != xno
5283then :
5284  ac_prog_cc_stdc=c99
5285		    ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5286else $as_nop
5287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5288printf %s "checking for $CC option to enable C89 features... " >&6; }
5289if test ${ac_cv_prog_cc_c89+y}
5290then :
5291  printf %s "(cached) " >&6
5292else $as_nop
5293  ac_cv_prog_cc_c89=no
5294ac_save_CC=$CC
5295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296/* end confdefs.h.  */
5297$ac_c_conftest_c89_program
5298_ACEOF
5299for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5300	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5301do
5302  CC="$ac_save_CC $ac_arg"
5303  if ac_fn_c_try_compile "$LINENO"
5304then :
5305  ac_cv_prog_cc_c89=$ac_arg
5306fi
5307rm -f core conftest.err conftest.$ac_objext conftest.beam
5308  test "x$ac_cv_prog_cc_c89" != "xno" && break
5309done
5310rm -f conftest.$ac_ext
5311CC=$ac_save_CC
5312
5313fi
5314# AC_CACHE_VAL
5315ac_prog_cc_stdc_options=
5316case "x$ac_cv_prog_cc_c89" in #(
5317  x) :
5318    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5319printf "%s\n" "none needed" >&6; } ;; #(
5320  xno) :
5321    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5322printf "%s\n" "unsupported" >&6; } ;; #(
5323  *) :
5324    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
5325    CC="$CC$ac_prog_cc_stdc_options"
5326    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5327printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } ;;
5328esac
5329if test "x$ac_cv_prog_cc_c89" != xno
5330then :
5331  ac_prog_cc_stdc=c89
5332		       ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5333else $as_nop
5334  ac_prog_cc_stdc=no
5335		       ac_cv_prog_cc_stdc=no
5336fi
5337
5338fi
5339
5340fi
5341
5342ac_ext=cpp
5343ac_cpp='$CXXCPP $CPPFLAGS'
5344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5347
5348
5349  ac_ext=c
5350ac_cpp='$CPP $CPPFLAGS'
5351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5353ac_compiler_gnu=$ac_cv_c_compiler_gnu
5354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5355printf %s "checking whether $CC understands -c and -o together... " >&6; }
5356if test ${am_cv_prog_cc_c_o+y}
5357then :
5358  printf %s "(cached) " >&6
5359else $as_nop
5360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361/* end confdefs.h.  */
5362
5363int
5364main (void)
5365{
5366
5367  ;
5368  return 0;
5369}
5370_ACEOF
5371  # Make sure it works both with $CC and with simple cc.
5372  # Following AC_PROG_CC_C_O, we do the test twice because some
5373  # compilers refuse to overwrite an existing .o file with -o,
5374  # though they will create one.
5375  am_cv_prog_cc_c_o=yes
5376  for am_i in 1 2; do
5377    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5378   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5379   ac_status=$?
5380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381   (exit $ac_status); } \
5382         && test -f conftest2.$ac_objext; then
5383      : OK
5384    else
5385      am_cv_prog_cc_c_o=no
5386      break
5387    fi
5388  done
5389  rm -f core conftest*
5390  unset am_i
5391fi
5392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5393printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5394if test "$am_cv_prog_cc_c_o" != yes; then
5395   # Losing compiler, so override with the script.
5396   # FIXME: It is wrong to rewrite CC.
5397   # But if we don't then we get into trouble of one sort or another.
5398   # A longer-term fix would be to have automake use am__CC in this case,
5399   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5400   CC="$am_aux_dir/compile $CC"
5401fi
5402ac_ext=cpp
5403ac_cpp='$CXXCPP $CPPFLAGS'
5404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5407
5408
5409depcc="$CC"   am_compiler_list=
5410
5411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5412printf %s "checking dependency style of $depcc... " >&6; }
5413if test ${am_cv_CC_dependencies_compiler_type+y}
5414then :
5415  printf %s "(cached) " >&6
5416else $as_nop
5417  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5418  # We make a subdir and do the tests there.  Otherwise we can end up
5419  # making bogus files that we don't know about and never remove.  For
5420  # instance it was reported that on HP-UX the gcc test will end up
5421  # making a dummy file named 'D' -- because '-MD' means "put the output
5422  # in D".
5423  rm -rf conftest.dir
5424  mkdir conftest.dir
5425  # Copy depcomp to subdir because otherwise we won't find it if we're
5426  # using a relative directory.
5427  cp "$am_depcomp" conftest.dir
5428  cd conftest.dir
5429  # We will build objects and dependencies in a subdirectory because
5430  # it helps to detect inapplicable dependency modes.  For instance
5431  # both Tru64's cc and ICC support -MD to output dependencies as a
5432  # side effect of compilation, but ICC will put the dependencies in
5433  # the current directory while Tru64 will put them in the object
5434  # directory.
5435  mkdir sub
5436
5437  am_cv_CC_dependencies_compiler_type=none
5438  if test "$am_compiler_list" = ""; then
5439     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5440  fi
5441  am__universal=false
5442  case " $depcc " in #(
5443     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5444     esac
5445
5446  for depmode in $am_compiler_list; do
5447    # Setup a source with many dependencies, because some compilers
5448    # like to wrap large dependency lists on column 80 (with \), and
5449    # we should not choose a depcomp mode which is confused by this.
5450    #
5451    # We need to recreate these files for each test, as the compiler may
5452    # overwrite some of them when testing with obscure command lines.
5453    # This happens at least with the AIX C compiler.
5454    : > sub/conftest.c
5455    for i in 1 2 3 4 5 6; do
5456      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5457      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5458      # Solaris 10 /bin/sh.
5459      echo '/* dummy */' > sub/conftst$i.h
5460    done
5461    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5462
5463    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5464    # mode.  It turns out that the SunPro C++ compiler does not properly
5465    # handle '-M -o', and we need to detect this.  Also, some Intel
5466    # versions had trouble with output in subdirs.
5467    am__obj=sub/conftest.${OBJEXT-o}
5468    am__minus_obj="-o $am__obj"
5469    case $depmode in
5470    gcc)
5471      # This depmode causes a compiler race in universal mode.
5472      test "$am__universal" = false || continue
5473      ;;
5474    nosideeffect)
5475      # After this tag, mechanisms are not by side-effect, so they'll
5476      # only be used when explicitly requested.
5477      if test "x$enable_dependency_tracking" = xyes; then
5478	continue
5479      else
5480	break
5481      fi
5482      ;;
5483    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5484      # This compiler won't grok '-c -o', but also, the minuso test has
5485      # not run yet.  These depmodes are late enough in the game, and
5486      # so weak that their functioning should not be impacted.
5487      am__obj=conftest.${OBJEXT-o}
5488      am__minus_obj=
5489      ;;
5490    none) break ;;
5491    esac
5492    if depmode=$depmode \
5493       source=sub/conftest.c object=$am__obj \
5494       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5495       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5496         >/dev/null 2>conftest.err &&
5497       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5498       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5499       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5500       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5501      # icc doesn't choke on unknown options, it will just issue warnings
5502      # or remarks (even with -Werror).  So we grep stderr for any message
5503      # that says an option was ignored or not supported.
5504      # When given -MP, icc 7.0 and 7.1 complain thusly:
5505      #   icc: Command line warning: ignoring option '-M'; no argument required
5506      # The diagnosis changed in icc 8.0:
5507      #   icc: Command line remark: option '-MP' not supported
5508      if (grep 'ignoring option' conftest.err ||
5509          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5510        am_cv_CC_dependencies_compiler_type=$depmode
5511        break
5512      fi
5513    fi
5514  done
5515
5516  cd ..
5517  rm -rf conftest.dir
5518else
5519  am_cv_CC_dependencies_compiler_type=none
5520fi
5521
5522fi
5523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5524printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5525CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5526
5527 if
5528  test "x$enable_dependency_tracking" != xno \
5529  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5530  am__fastdepCC_TRUE=
5531  am__fastdepCC_FALSE='#'
5532else
5533  am__fastdepCC_TRUE='#'
5534  am__fastdepCC_FALSE=
5535fi
5536
5537
5538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5539printf %s "checking for a sed that does not truncate output... " >&6; }
5540if test ${ac_cv_path_SED+y}
5541then :
5542  printf %s "(cached) " >&6
5543else $as_nop
5544            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5545     for ac_i in 1 2 3 4 5 6 7; do
5546       ac_script="$ac_script$as_nl$ac_script"
5547     done
5548     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5549     { ac_script=; unset ac_script;}
5550     if test -z "$SED"; then
5551  ac_path_SED_found=false
5552  # Loop through the user's path and test for each of PROGNAME-LIST
5553  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554for as_dir in $PATH
5555do
5556  IFS=$as_save_IFS
5557  case $as_dir in #(((
5558    '') as_dir=./ ;;
5559    */) ;;
5560    *) as_dir=$as_dir/ ;;
5561  esac
5562    for ac_prog in sed gsed
5563   do
5564    for ac_exec_ext in '' $ac_executable_extensions; do
5565      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5566      as_fn_executable_p "$ac_path_SED" || continue
5567# Check for GNU ac_path_SED and select it if it is found.
5568  # Check for GNU $ac_path_SED
5569case `"$ac_path_SED" --version 2>&1` in
5570*GNU*)
5571  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5572*)
5573  ac_count=0
5574  printf %s 0123456789 >"conftest.in"
5575  while :
5576  do
5577    cat "conftest.in" "conftest.in" >"conftest.tmp"
5578    mv "conftest.tmp" "conftest.in"
5579    cp "conftest.in" "conftest.nl"
5580    printf "%s\n" '' >> "conftest.nl"
5581    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5582    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5583    as_fn_arith $ac_count + 1 && ac_count=$as_val
5584    if test $ac_count -gt ${ac_path_SED_max-0}; then
5585      # Best one so far, save it but keep looking for a better one
5586      ac_cv_path_SED="$ac_path_SED"
5587      ac_path_SED_max=$ac_count
5588    fi
5589    # 10*(2^10) chars as input seems more than enough
5590    test $ac_count -gt 10 && break
5591  done
5592  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5593esac
5594
5595      $ac_path_SED_found && break 3
5596    done
5597  done
5598  done
5599IFS=$as_save_IFS
5600  if test -z "$ac_cv_path_SED"; then
5601    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5602  fi
5603else
5604  ac_cv_path_SED=$SED
5605fi
5606
5607fi
5608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5609printf "%s\n" "$ac_cv_path_SED" >&6; }
5610 SED="$ac_cv_path_SED"
5611  rm -f conftest.sed
5612
5613test -z "$SED" && SED=sed
5614Xsed="$SED -e 1s/^X//"
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5627printf %s "checking for grep that handles long lines and -e... " >&6; }
5628if test ${ac_cv_path_GREP+y}
5629then :
5630  printf %s "(cached) " >&6
5631else $as_nop
5632  if test -z "$GREP"; then
5633  ac_path_GREP_found=false
5634  # Loop through the user's path and test for each of PROGNAME-LIST
5635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5637do
5638  IFS=$as_save_IFS
5639  case $as_dir in #(((
5640    '') as_dir=./ ;;
5641    */) ;;
5642    *) as_dir=$as_dir/ ;;
5643  esac
5644    for ac_prog in grep ggrep
5645   do
5646    for ac_exec_ext in '' $ac_executable_extensions; do
5647      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5648      as_fn_executable_p "$ac_path_GREP" || continue
5649# Check for GNU ac_path_GREP and select it if it is found.
5650  # Check for GNU $ac_path_GREP
5651case `"$ac_path_GREP" --version 2>&1` in
5652*GNU*)
5653  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5654*)
5655  ac_count=0
5656  printf %s 0123456789 >"conftest.in"
5657  while :
5658  do
5659    cat "conftest.in" "conftest.in" >"conftest.tmp"
5660    mv "conftest.tmp" "conftest.in"
5661    cp "conftest.in" "conftest.nl"
5662    printf "%s\n" 'GREP' >> "conftest.nl"
5663    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5664    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5665    as_fn_arith $ac_count + 1 && ac_count=$as_val
5666    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5667      # Best one so far, save it but keep looking for a better one
5668      ac_cv_path_GREP="$ac_path_GREP"
5669      ac_path_GREP_max=$ac_count
5670    fi
5671    # 10*(2^10) chars as input seems more than enough
5672    test $ac_count -gt 10 && break
5673  done
5674  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5675esac
5676
5677      $ac_path_GREP_found && break 3
5678    done
5679  done
5680  done
5681IFS=$as_save_IFS
5682  if test -z "$ac_cv_path_GREP"; then
5683    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5684  fi
5685else
5686  ac_cv_path_GREP=$GREP
5687fi
5688
5689fi
5690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5691printf "%s\n" "$ac_cv_path_GREP" >&6; }
5692 GREP="$ac_cv_path_GREP"
5693
5694
5695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5696printf %s "checking for egrep... " >&6; }
5697if test ${ac_cv_path_EGREP+y}
5698then :
5699  printf %s "(cached) " >&6
5700else $as_nop
5701  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5702   then ac_cv_path_EGREP="$GREP -E"
5703   else
5704     if test -z "$EGREP"; then
5705  ac_path_EGREP_found=false
5706  # Loop through the user's path and test for each of PROGNAME-LIST
5707  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5709do
5710  IFS=$as_save_IFS
5711  case $as_dir in #(((
5712    '') as_dir=./ ;;
5713    */) ;;
5714    *) as_dir=$as_dir/ ;;
5715  esac
5716    for ac_prog in egrep
5717   do
5718    for ac_exec_ext in '' $ac_executable_extensions; do
5719      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5720      as_fn_executable_p "$ac_path_EGREP" || continue
5721# Check for GNU ac_path_EGREP and select it if it is found.
5722  # Check for GNU $ac_path_EGREP
5723case `"$ac_path_EGREP" --version 2>&1` in
5724*GNU*)
5725  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5726*)
5727  ac_count=0
5728  printf %s 0123456789 >"conftest.in"
5729  while :
5730  do
5731    cat "conftest.in" "conftest.in" >"conftest.tmp"
5732    mv "conftest.tmp" "conftest.in"
5733    cp "conftest.in" "conftest.nl"
5734    printf "%s\n" 'EGREP' >> "conftest.nl"
5735    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5736    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5737    as_fn_arith $ac_count + 1 && ac_count=$as_val
5738    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5739      # Best one so far, save it but keep looking for a better one
5740      ac_cv_path_EGREP="$ac_path_EGREP"
5741      ac_path_EGREP_max=$ac_count
5742    fi
5743    # 10*(2^10) chars as input seems more than enough
5744    test $ac_count -gt 10 && break
5745  done
5746  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5747esac
5748
5749      $ac_path_EGREP_found && break 3
5750    done
5751  done
5752  done
5753IFS=$as_save_IFS
5754  if test -z "$ac_cv_path_EGREP"; then
5755    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5756  fi
5757else
5758  ac_cv_path_EGREP=$EGREP
5759fi
5760
5761   fi
5762fi
5763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5764printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5765 EGREP="$ac_cv_path_EGREP"
5766
5767
5768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5769printf %s "checking for fgrep... " >&6; }
5770if test ${ac_cv_path_FGREP+y}
5771then :
5772  printf %s "(cached) " >&6
5773else $as_nop
5774  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5775   then ac_cv_path_FGREP="$GREP -F"
5776   else
5777     if test -z "$FGREP"; then
5778  ac_path_FGREP_found=false
5779  # Loop through the user's path and test for each of PROGNAME-LIST
5780  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5782do
5783  IFS=$as_save_IFS
5784  case $as_dir in #(((
5785    '') as_dir=./ ;;
5786    */) ;;
5787    *) as_dir=$as_dir/ ;;
5788  esac
5789    for ac_prog in fgrep
5790   do
5791    for ac_exec_ext in '' $ac_executable_extensions; do
5792      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5793      as_fn_executable_p "$ac_path_FGREP" || continue
5794# Check for GNU ac_path_FGREP and select it if it is found.
5795  # Check for GNU $ac_path_FGREP
5796case `"$ac_path_FGREP" --version 2>&1` in
5797*GNU*)
5798  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5799*)
5800  ac_count=0
5801  printf %s 0123456789 >"conftest.in"
5802  while :
5803  do
5804    cat "conftest.in" "conftest.in" >"conftest.tmp"
5805    mv "conftest.tmp" "conftest.in"
5806    cp "conftest.in" "conftest.nl"
5807    printf "%s\n" 'FGREP' >> "conftest.nl"
5808    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5809    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5810    as_fn_arith $ac_count + 1 && ac_count=$as_val
5811    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5812      # Best one so far, save it but keep looking for a better one
5813      ac_cv_path_FGREP="$ac_path_FGREP"
5814      ac_path_FGREP_max=$ac_count
5815    fi
5816    # 10*(2^10) chars as input seems more than enough
5817    test $ac_count -gt 10 && break
5818  done
5819  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5820esac
5821
5822      $ac_path_FGREP_found && break 3
5823    done
5824  done
5825  done
5826IFS=$as_save_IFS
5827  if test -z "$ac_cv_path_FGREP"; then
5828    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5829  fi
5830else
5831  ac_cv_path_FGREP=$FGREP
5832fi
5833
5834   fi
5835fi
5836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5837printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5838 FGREP="$ac_cv_path_FGREP"
5839
5840
5841test -z "$GREP" && GREP=grep
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861# Check whether --with-gnu-ld was given.
5862if test ${with_gnu_ld+y}
5863then :
5864  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5865else $as_nop
5866  with_gnu_ld=no
5867fi
5868
5869ac_prog=ld
5870if test yes = "$GCC"; then
5871  # Check if gcc -print-prog-name=ld gives a path.
5872  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5873printf %s "checking for ld used by $CC... " >&6; }
5874  case $host in
5875  *-*-mingw*)
5876    # gcc leaves a trailing carriage return, which upsets mingw
5877    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5878  *)
5879    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5880  esac
5881  case $ac_prog in
5882    # Accept absolute paths.
5883    [\\/]* | ?:[\\/]*)
5884      re_direlt='/[^/][^/]*/\.\./'
5885      # Canonicalize the pathname of ld
5886      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5887      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5888	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5889      done
5890      test -z "$LD" && LD=$ac_prog
5891      ;;
5892  "")
5893    # If it fails, then pretend we aren't using GCC.
5894    ac_prog=ld
5895    ;;
5896  *)
5897    # If it is relative, then search for the first ld in PATH.
5898    with_gnu_ld=unknown
5899    ;;
5900  esac
5901elif test yes = "$with_gnu_ld"; then
5902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5903printf %s "checking for GNU ld... " >&6; }
5904else
5905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5906printf %s "checking for non-GNU ld... " >&6; }
5907fi
5908if test ${lt_cv_path_LD+y}
5909then :
5910  printf %s "(cached) " >&6
5911else $as_nop
5912  if test -z "$LD"; then
5913  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5914  for ac_dir in $PATH; do
5915    IFS=$lt_save_ifs
5916    test -z "$ac_dir" && ac_dir=.
5917    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5918      lt_cv_path_LD=$ac_dir/$ac_prog
5919      # Check to see if the program is GNU ld.  I'd rather use --version,
5920      # but apparently some variants of GNU ld only accept -v.
5921      # Break only if it was the GNU/non-GNU ld that we prefer.
5922      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5923      *GNU* | *'with BFD'*)
5924	test no != "$with_gnu_ld" && break
5925	;;
5926      *)
5927	test yes != "$with_gnu_ld" && break
5928	;;
5929      esac
5930    fi
5931  done
5932  IFS=$lt_save_ifs
5933else
5934  lt_cv_path_LD=$LD # Let the user override the test with a path.
5935fi
5936fi
5937
5938LD=$lt_cv_path_LD
5939if test -n "$LD"; then
5940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5941printf "%s\n" "$LD" >&6; }
5942else
5943  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944printf "%s\n" "no" >&6; }
5945fi
5946test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5948printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5949if test ${lt_cv_prog_gnu_ld+y}
5950then :
5951  printf %s "(cached) " >&6
5952else $as_nop
5953  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5954case `$LD -v 2>&1 </dev/null` in
5955*GNU* | *'with BFD'*)
5956  lt_cv_prog_gnu_ld=yes
5957  ;;
5958*)
5959  lt_cv_prog_gnu_ld=no
5960  ;;
5961esac
5962fi
5963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5964printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5965with_gnu_ld=$lt_cv_prog_gnu_ld
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5976printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5977if test ${lt_cv_path_NM+y}
5978then :
5979  printf %s "(cached) " >&6
5980else $as_nop
5981  if test -n "$NM"; then
5982  # Let the user override the test.
5983  lt_cv_path_NM=$NM
5984else
5985  lt_nm_to_check=${ac_tool_prefix}nm
5986  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5987    lt_nm_to_check="$lt_nm_to_check nm"
5988  fi
5989  for lt_tmp_nm in $lt_nm_to_check; do
5990    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5991    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5992      IFS=$lt_save_ifs
5993      test -z "$ac_dir" && ac_dir=.
5994      tmp_nm=$ac_dir/$lt_tmp_nm
5995      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5996	# Check to see if the nm accepts a BSD-compat flag.
5997	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5998	#   nm: unknown option "B" ignored
5999	# Tru64's nm complains that /dev/null is an invalid object file
6000	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6001	case $build_os in
6002	mingw*) lt_bad_file=conftest.nm/nofile ;;
6003	*) lt_bad_file=/dev/null ;;
6004	esac
6005	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6006	*$lt_bad_file* | *'Invalid file or object type'*)
6007	  lt_cv_path_NM="$tmp_nm -B"
6008	  break 2
6009	  ;;
6010	*)
6011	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6012	  */dev/null*)
6013	    lt_cv_path_NM="$tmp_nm -p"
6014	    break 2
6015	    ;;
6016	  *)
6017	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6018	    continue # so that we can try to find one that supports BSD flags
6019	    ;;
6020	  esac
6021	  ;;
6022	esac
6023      fi
6024    done
6025    IFS=$lt_save_ifs
6026  done
6027  : ${lt_cv_path_NM=no}
6028fi
6029fi
6030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6031printf "%s\n" "$lt_cv_path_NM" >&6; }
6032if test no != "$lt_cv_path_NM"; then
6033  NM=$lt_cv_path_NM
6034else
6035  # Didn't find any BSD compatible name lister, look for dumpbin.
6036  if test -n "$DUMPBIN"; then :
6037    # Let the user override the test.
6038  else
6039    if test -n "$ac_tool_prefix"; then
6040  for ac_prog in dumpbin "link -dump"
6041  do
6042    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6043set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045printf %s "checking for $ac_word... " >&6; }
6046if test ${ac_cv_prog_DUMPBIN+y}
6047then :
6048  printf %s "(cached) " >&6
6049else $as_nop
6050  if test -n "$DUMPBIN"; then
6051  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6052else
6053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054for as_dir in $PATH
6055do
6056  IFS=$as_save_IFS
6057  case $as_dir in #(((
6058    '') as_dir=./ ;;
6059    */) ;;
6060    *) as_dir=$as_dir/ ;;
6061  esac
6062    for ac_exec_ext in '' $ac_executable_extensions; do
6063  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6064    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6065    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6066    break 2
6067  fi
6068done
6069  done
6070IFS=$as_save_IFS
6071
6072fi
6073fi
6074DUMPBIN=$ac_cv_prog_DUMPBIN
6075if test -n "$DUMPBIN"; then
6076  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6077printf "%s\n" "$DUMPBIN" >&6; }
6078else
6079  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080printf "%s\n" "no" >&6; }
6081fi
6082
6083
6084    test -n "$DUMPBIN" && break
6085  done
6086fi
6087if test -z "$DUMPBIN"; then
6088  ac_ct_DUMPBIN=$DUMPBIN
6089  for ac_prog in dumpbin "link -dump"
6090do
6091  # Extract the first word of "$ac_prog", so it can be a program name with args.
6092set dummy $ac_prog; ac_word=$2
6093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094printf %s "checking for $ac_word... " >&6; }
6095if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6096then :
6097  printf %s "(cached) " >&6
6098else $as_nop
6099  if test -n "$ac_ct_DUMPBIN"; then
6100  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6101else
6102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103for as_dir in $PATH
6104do
6105  IFS=$as_save_IFS
6106  case $as_dir in #(((
6107    '') as_dir=./ ;;
6108    */) ;;
6109    *) as_dir=$as_dir/ ;;
6110  esac
6111    for ac_exec_ext in '' $ac_executable_extensions; do
6112  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6113    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6114    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6115    break 2
6116  fi
6117done
6118  done
6119IFS=$as_save_IFS
6120
6121fi
6122fi
6123ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6124if test -n "$ac_ct_DUMPBIN"; then
6125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6126printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6127else
6128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129printf "%s\n" "no" >&6; }
6130fi
6131
6132
6133  test -n "$ac_ct_DUMPBIN" && break
6134done
6135
6136  if test "x$ac_ct_DUMPBIN" = x; then
6137    DUMPBIN=":"
6138  else
6139    case $cross_compiling:$ac_tool_warned in
6140yes:)
6141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6142printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6143ac_tool_warned=yes ;;
6144esac
6145    DUMPBIN=$ac_ct_DUMPBIN
6146  fi
6147fi
6148
6149    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6150    *COFF*)
6151      DUMPBIN="$DUMPBIN -symbols -headers"
6152      ;;
6153    *)
6154      DUMPBIN=:
6155      ;;
6156    esac
6157  fi
6158
6159  if test : != "$DUMPBIN"; then
6160    NM=$DUMPBIN
6161  fi
6162fi
6163test -z "$NM" && NM=nm
6164
6165
6166
6167
6168
6169
6170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6171printf %s "checking the name lister ($NM) interface... " >&6; }
6172if test ${lt_cv_nm_interface+y}
6173then :
6174  printf %s "(cached) " >&6
6175else $as_nop
6176  lt_cv_nm_interface="BSD nm"
6177  echo "int some_variable = 0;" > conftest.$ac_ext
6178  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6179  (eval "$ac_compile" 2>conftest.err)
6180  cat conftest.err >&5
6181  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6182  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6183  cat conftest.err >&5
6184  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6185  cat conftest.out >&5
6186  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6187    lt_cv_nm_interface="MS dumpbin"
6188  fi
6189  rm -f conftest*
6190fi
6191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6192printf "%s\n" "$lt_cv_nm_interface" >&6; }
6193
6194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6195printf %s "checking whether ln -s works... " >&6; }
6196LN_S=$as_ln_s
6197if test "$LN_S" = "ln -s"; then
6198  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6199printf "%s\n" "yes" >&6; }
6200else
6201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6202printf "%s\n" "no, using $LN_S" >&6; }
6203fi
6204
6205# find the maximum length of command line arguments
6206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6207printf %s "checking the maximum length of command line arguments... " >&6; }
6208if test ${lt_cv_sys_max_cmd_len+y}
6209then :
6210  printf %s "(cached) " >&6
6211else $as_nop
6212    i=0
6213  teststring=ABCD
6214
6215  case $build_os in
6216  msdosdjgpp*)
6217    # On DJGPP, this test can blow up pretty badly due to problems in libc
6218    # (any single argument exceeding 2000 bytes causes a buffer overrun
6219    # during glob expansion).  Even if it were fixed, the result of this
6220    # check would be larger than it should be.
6221    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6222    ;;
6223
6224  gnu*)
6225    # Under GNU Hurd, this test is not required because there is
6226    # no limit to the length of command line arguments.
6227    # Libtool will interpret -1 as no limit whatsoever
6228    lt_cv_sys_max_cmd_len=-1;
6229    ;;
6230
6231  cygwin* | mingw* | cegcc*)
6232    # On Win9x/ME, this test blows up -- it succeeds, but takes
6233    # about 5 minutes as the teststring grows exponentially.
6234    # Worse, since 9x/ME are not pre-emptively multitasking,
6235    # you end up with a "frozen" computer, even though with patience
6236    # the test eventually succeeds (with a max line length of 256k).
6237    # Instead, let's just punt: use the minimum linelength reported by
6238    # all of the supported platforms: 8192 (on NT/2K/XP).
6239    lt_cv_sys_max_cmd_len=8192;
6240    ;;
6241
6242  mint*)
6243    # On MiNT this can take a long time and run out of memory.
6244    lt_cv_sys_max_cmd_len=8192;
6245    ;;
6246
6247  amigaos*)
6248    # On AmigaOS with pdksh, this test takes hours, literally.
6249    # So we just punt and use a minimum line length of 8192.
6250    lt_cv_sys_max_cmd_len=8192;
6251    ;;
6252
6253  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6254    # This has been around since 386BSD, at least.  Likely further.
6255    if test -x /sbin/sysctl; then
6256      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6257    elif test -x /usr/sbin/sysctl; then
6258      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6259    else
6260      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6261    fi
6262    # And add a safety zone
6263    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6264    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6265    ;;
6266
6267  interix*)
6268    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6269    lt_cv_sys_max_cmd_len=196608
6270    ;;
6271
6272  os2*)
6273    # The test takes a long time on OS/2.
6274    lt_cv_sys_max_cmd_len=8192
6275    ;;
6276
6277  osf*)
6278    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6279    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6280    # nice to cause kernel panics so lets avoid the loop below.
6281    # First set a reasonable default.
6282    lt_cv_sys_max_cmd_len=16384
6283    #
6284    if test -x /sbin/sysconfig; then
6285      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6286        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6287      esac
6288    fi
6289    ;;
6290  sco3.2v5*)
6291    lt_cv_sys_max_cmd_len=102400
6292    ;;
6293  sysv5* | sco5v6* | sysv4.2uw2*)
6294    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6295    if test -n "$kargmax"; then
6296      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6297    else
6298      lt_cv_sys_max_cmd_len=32768
6299    fi
6300    ;;
6301  *)
6302    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6303    if test -n "$lt_cv_sys_max_cmd_len" && \
6304       test undefined != "$lt_cv_sys_max_cmd_len"; then
6305      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6306      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6307    else
6308      # Make teststring a little bigger before we do anything with it.
6309      # a 1K string should be a reasonable start.
6310      for i in 1 2 3 4 5 6 7 8; do
6311        teststring=$teststring$teststring
6312      done
6313      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6314      # If test is not a shell built-in, we'll probably end up computing a
6315      # maximum length that is only half of the actual maximum length, but
6316      # we can't tell.
6317      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6318	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6319	      test 17 != "$i" # 1/2 MB should be enough
6320      do
6321        i=`expr $i + 1`
6322        teststring=$teststring$teststring
6323      done
6324      # Only check the string length outside the loop.
6325      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6326      teststring=
6327      # Add a significant safety factor because C++ compilers can tack on
6328      # massive amounts of additional arguments before passing them to the
6329      # linker.  It appears as though 1/2 is a usable value.
6330      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6331    fi
6332    ;;
6333  esac
6334
6335fi
6336
6337if test -n "$lt_cv_sys_max_cmd_len"; then
6338  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6339printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6340else
6341  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6342printf "%s\n" "none" >&6; }
6343fi
6344max_cmd_len=$lt_cv_sys_max_cmd_len
6345
6346
6347
6348
6349
6350
6351: ${CP="cp -f"}
6352: ${MV="mv -f"}
6353: ${RM="rm -f"}
6354
6355if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6356  lt_unset=unset
6357else
6358  lt_unset=false
6359fi
6360
6361
6362
6363
6364
6365# test EBCDIC or ASCII
6366case `echo X|tr X '\101'` in
6367 A) # ASCII based system
6368    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6369  lt_SP2NL='tr \040 \012'
6370  lt_NL2SP='tr \015\012 \040\040'
6371  ;;
6372 *) # EBCDIC based system
6373  lt_SP2NL='tr \100 \n'
6374  lt_NL2SP='tr \r\n \100\100'
6375  ;;
6376esac
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6387printf %s "checking how to convert $build file names to $host format... " >&6; }
6388if test ${lt_cv_to_host_file_cmd+y}
6389then :
6390  printf %s "(cached) " >&6
6391else $as_nop
6392  case $host in
6393  *-*-mingw* )
6394    case $build in
6395      *-*-mingw* ) # actually msys
6396        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6397        ;;
6398      *-*-cygwin* )
6399        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6400        ;;
6401      * ) # otherwise, assume *nix
6402        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6403        ;;
6404    esac
6405    ;;
6406  *-*-cygwin* )
6407    case $build in
6408      *-*-mingw* ) # actually msys
6409        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6410        ;;
6411      *-*-cygwin* )
6412        lt_cv_to_host_file_cmd=func_convert_file_noop
6413        ;;
6414      * ) # otherwise, assume *nix
6415        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6416        ;;
6417    esac
6418    ;;
6419  * ) # unhandled hosts (and "normal" native builds)
6420    lt_cv_to_host_file_cmd=func_convert_file_noop
6421    ;;
6422esac
6423
6424fi
6425
6426to_host_file_cmd=$lt_cv_to_host_file_cmd
6427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6428printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6429
6430
6431
6432
6433
6434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6435printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6436if test ${lt_cv_to_tool_file_cmd+y}
6437then :
6438  printf %s "(cached) " >&6
6439else $as_nop
6440  #assume ordinary cross tools, or native build.
6441lt_cv_to_tool_file_cmd=func_convert_file_noop
6442case $host in
6443  *-*-mingw* )
6444    case $build in
6445      *-*-mingw* ) # actually msys
6446        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6447        ;;
6448    esac
6449    ;;
6450esac
6451
6452fi
6453
6454to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6456printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6457
6458
6459
6460
6461
6462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6463printf %s "checking for $LD option to reload object files... " >&6; }
6464if test ${lt_cv_ld_reload_flag+y}
6465then :
6466  printf %s "(cached) " >&6
6467else $as_nop
6468  lt_cv_ld_reload_flag='-r'
6469fi
6470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6471printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6472reload_flag=$lt_cv_ld_reload_flag
6473case $reload_flag in
6474"" | " "*) ;;
6475*) reload_flag=" $reload_flag" ;;
6476esac
6477reload_cmds='$LD$reload_flag -o $output$reload_objs'
6478case $host_os in
6479  cygwin* | mingw* | pw32* | cegcc*)
6480    if test yes != "$GCC"; then
6481      reload_cmds=false
6482    fi
6483    ;;
6484  darwin*)
6485    if test yes = "$GCC"; then
6486      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6487    else
6488      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6489    fi
6490    ;;
6491esac
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501if test -n "$ac_tool_prefix"; then
6502  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6503set dummy ${ac_tool_prefix}objdump; ac_word=$2
6504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505printf %s "checking for $ac_word... " >&6; }
6506if test ${ac_cv_prog_OBJDUMP+y}
6507then :
6508  printf %s "(cached) " >&6
6509else $as_nop
6510  if test -n "$OBJDUMP"; then
6511  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6512else
6513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514for as_dir in $PATH
6515do
6516  IFS=$as_save_IFS
6517  case $as_dir in #(((
6518    '') as_dir=./ ;;
6519    */) ;;
6520    *) as_dir=$as_dir/ ;;
6521  esac
6522    for ac_exec_ext in '' $ac_executable_extensions; do
6523  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6524    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6525    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6526    break 2
6527  fi
6528done
6529  done
6530IFS=$as_save_IFS
6531
6532fi
6533fi
6534OBJDUMP=$ac_cv_prog_OBJDUMP
6535if test -n "$OBJDUMP"; then
6536  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6537printf "%s\n" "$OBJDUMP" >&6; }
6538else
6539  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540printf "%s\n" "no" >&6; }
6541fi
6542
6543
6544fi
6545if test -z "$ac_cv_prog_OBJDUMP"; then
6546  ac_ct_OBJDUMP=$OBJDUMP
6547  # Extract the first word of "objdump", so it can be a program name with args.
6548set dummy objdump; ac_word=$2
6549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550printf %s "checking for $ac_word... " >&6; }
6551if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6552then :
6553  printf %s "(cached) " >&6
6554else $as_nop
6555  if test -n "$ac_ct_OBJDUMP"; then
6556  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6557else
6558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559for as_dir in $PATH
6560do
6561  IFS=$as_save_IFS
6562  case $as_dir in #(((
6563    '') as_dir=./ ;;
6564    */) ;;
6565    *) as_dir=$as_dir/ ;;
6566  esac
6567    for ac_exec_ext in '' $ac_executable_extensions; do
6568  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6569    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6570    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6571    break 2
6572  fi
6573done
6574  done
6575IFS=$as_save_IFS
6576
6577fi
6578fi
6579ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6580if test -n "$ac_ct_OBJDUMP"; then
6581  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6582printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6583else
6584  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585printf "%s\n" "no" >&6; }
6586fi
6587
6588  if test "x$ac_ct_OBJDUMP" = x; then
6589    OBJDUMP="false"
6590  else
6591    case $cross_compiling:$ac_tool_warned in
6592yes:)
6593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6594printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6595ac_tool_warned=yes ;;
6596esac
6597    OBJDUMP=$ac_ct_OBJDUMP
6598  fi
6599else
6600  OBJDUMP="$ac_cv_prog_OBJDUMP"
6601fi
6602
6603test -z "$OBJDUMP" && OBJDUMP=objdump
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6614printf %s "checking how to recognize dependent libraries... " >&6; }
6615if test ${lt_cv_deplibs_check_method+y}
6616then :
6617  printf %s "(cached) " >&6
6618else $as_nop
6619  lt_cv_file_magic_cmd='$MAGIC_CMD'
6620lt_cv_file_magic_test_file=
6621lt_cv_deplibs_check_method='unknown'
6622# Need to set the preceding variable on all platforms that support
6623# interlibrary dependencies.
6624# 'none' -- dependencies not supported.
6625# 'unknown' -- same as none, but documents that we really don't know.
6626# 'pass_all' -- all dependencies passed with no checks.
6627# 'test_compile' -- check by making test program.
6628# 'file_magic [[regex]]' -- check by looking for files in library path
6629# that responds to the $file_magic_cmd with a given extended regex.
6630# If you have 'file' or equivalent on your system and you're not sure
6631# whether 'pass_all' will *always* work, you probably want this one.
6632
6633case $host_os in
6634aix[4-9]*)
6635  lt_cv_deplibs_check_method=pass_all
6636  ;;
6637
6638beos*)
6639  lt_cv_deplibs_check_method=pass_all
6640  ;;
6641
6642bsdi[45]*)
6643  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6644  lt_cv_file_magic_cmd='/usr/bin/file -L'
6645  lt_cv_file_magic_test_file=/shlib/libc.so
6646  ;;
6647
6648cygwin*)
6649  # func_win32_libid is a shell function defined in ltmain.sh
6650  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6651  lt_cv_file_magic_cmd='func_win32_libid'
6652  ;;
6653
6654mingw* | pw32*)
6655  # Base MSYS/MinGW do not provide the 'file' command needed by
6656  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6657  # unless we find 'file', for example because we are cross-compiling.
6658  if ( file / ) >/dev/null 2>&1; then
6659    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6660    lt_cv_file_magic_cmd='func_win32_libid'
6661  else
6662    # Keep this pattern in sync with the one in func_win32_libid.
6663    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6664    lt_cv_file_magic_cmd='$OBJDUMP -f'
6665  fi
6666  ;;
6667
6668cegcc*)
6669  # use the weaker test based on 'objdump'. See mingw*.
6670  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6671  lt_cv_file_magic_cmd='$OBJDUMP -f'
6672  ;;
6673
6674darwin* | rhapsody*)
6675  lt_cv_deplibs_check_method=pass_all
6676  ;;
6677
6678freebsd* | dragonfly*)
6679  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6680    case $host_cpu in
6681    i*86 )
6682      # Not sure whether the presence of OpenBSD here was a mistake.
6683      # Let's accept both of them until this is cleared up.
6684      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6685      lt_cv_file_magic_cmd=/usr/bin/file
6686      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6687      ;;
6688    esac
6689  else
6690    lt_cv_deplibs_check_method=pass_all
6691  fi
6692  ;;
6693
6694haiku*)
6695  lt_cv_deplibs_check_method=pass_all
6696  ;;
6697
6698hpux10.20* | hpux11*)
6699  lt_cv_file_magic_cmd=/usr/bin/file
6700  case $host_cpu in
6701  ia64*)
6702    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6703    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6704    ;;
6705  hppa*64*)
6706    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]'
6707    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6708    ;;
6709  *)
6710    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6711    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6712    ;;
6713  esac
6714  ;;
6715
6716interix[3-9]*)
6717  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6718  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6719  ;;
6720
6721irix5* | irix6* | nonstopux*)
6722  case $LD in
6723  *-32|*"-32 ") libmagic=32-bit;;
6724  *-n32|*"-n32 ") libmagic=N32;;
6725  *-64|*"-64 ") libmagic=64-bit;;
6726  *) libmagic=never-match;;
6727  esac
6728  lt_cv_deplibs_check_method=pass_all
6729  ;;
6730
6731# This must be glibc/ELF.
6732linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6733  lt_cv_deplibs_check_method=pass_all
6734  ;;
6735
6736netbsd*)
6737  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6738    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6739  else
6740    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6741  fi
6742  ;;
6743
6744newos6*)
6745  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6746  lt_cv_file_magic_cmd=/usr/bin/file
6747  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6748  ;;
6749
6750*nto* | *qnx*)
6751  lt_cv_deplibs_check_method=pass_all
6752  ;;
6753
6754openbsd* | bitrig*)
6755  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6756    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6757  else
6758    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6759  fi
6760  ;;
6761
6762osf3* | osf4* | osf5*)
6763  lt_cv_deplibs_check_method=pass_all
6764  ;;
6765
6766rdos*)
6767  lt_cv_deplibs_check_method=pass_all
6768  ;;
6769
6770solaris*)
6771  lt_cv_deplibs_check_method=pass_all
6772  ;;
6773
6774sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6775  lt_cv_deplibs_check_method=pass_all
6776  ;;
6777
6778sysv4 | sysv4.3*)
6779  case $host_vendor in
6780  motorola)
6781    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]'
6782    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6783    ;;
6784  ncr)
6785    lt_cv_deplibs_check_method=pass_all
6786    ;;
6787  sequent)
6788    lt_cv_file_magic_cmd='/bin/file'
6789    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6790    ;;
6791  sni)
6792    lt_cv_file_magic_cmd='/bin/file'
6793    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6794    lt_cv_file_magic_test_file=/lib/libc.so
6795    ;;
6796  siemens)
6797    lt_cv_deplibs_check_method=pass_all
6798    ;;
6799  pc)
6800    lt_cv_deplibs_check_method=pass_all
6801    ;;
6802  esac
6803  ;;
6804
6805tpf*)
6806  lt_cv_deplibs_check_method=pass_all
6807  ;;
6808os2*)
6809  lt_cv_deplibs_check_method=pass_all
6810  ;;
6811esac
6812
6813fi
6814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6815printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6816
6817file_magic_glob=
6818want_nocaseglob=no
6819if test "$build" = "$host"; then
6820  case $host_os in
6821  mingw* | pw32*)
6822    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6823      want_nocaseglob=yes
6824    else
6825      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6826    fi
6827    ;;
6828  esac
6829fi
6830
6831file_magic_cmd=$lt_cv_file_magic_cmd
6832deplibs_check_method=$lt_cv_deplibs_check_method
6833test -z "$deplibs_check_method" && deplibs_check_method=unknown
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856if test -n "$ac_tool_prefix"; then
6857  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6858set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860printf %s "checking for $ac_word... " >&6; }
6861if test ${ac_cv_prog_DLLTOOL+y}
6862then :
6863  printf %s "(cached) " >&6
6864else $as_nop
6865  if test -n "$DLLTOOL"; then
6866  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6867else
6868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869for as_dir in $PATH
6870do
6871  IFS=$as_save_IFS
6872  case $as_dir in #(((
6873    '') as_dir=./ ;;
6874    */) ;;
6875    *) as_dir=$as_dir/ ;;
6876  esac
6877    for ac_exec_ext in '' $ac_executable_extensions; do
6878  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6879    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6880    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6881    break 2
6882  fi
6883done
6884  done
6885IFS=$as_save_IFS
6886
6887fi
6888fi
6889DLLTOOL=$ac_cv_prog_DLLTOOL
6890if test -n "$DLLTOOL"; then
6891  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6892printf "%s\n" "$DLLTOOL" >&6; }
6893else
6894  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895printf "%s\n" "no" >&6; }
6896fi
6897
6898
6899fi
6900if test -z "$ac_cv_prog_DLLTOOL"; then
6901  ac_ct_DLLTOOL=$DLLTOOL
6902  # Extract the first word of "dlltool", so it can be a program name with args.
6903set dummy dlltool; ac_word=$2
6904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905printf %s "checking for $ac_word... " >&6; }
6906if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6907then :
6908  printf %s "(cached) " >&6
6909else $as_nop
6910  if test -n "$ac_ct_DLLTOOL"; then
6911  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6912else
6913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914for as_dir in $PATH
6915do
6916  IFS=$as_save_IFS
6917  case $as_dir in #(((
6918    '') as_dir=./ ;;
6919    */) ;;
6920    *) as_dir=$as_dir/ ;;
6921  esac
6922    for ac_exec_ext in '' $ac_executable_extensions; do
6923  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6924    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6925    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6926    break 2
6927  fi
6928done
6929  done
6930IFS=$as_save_IFS
6931
6932fi
6933fi
6934ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6935if test -n "$ac_ct_DLLTOOL"; then
6936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6937printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6938else
6939  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940printf "%s\n" "no" >&6; }
6941fi
6942
6943  if test "x$ac_ct_DLLTOOL" = x; then
6944    DLLTOOL="false"
6945  else
6946    case $cross_compiling:$ac_tool_warned in
6947yes:)
6948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6949printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6950ac_tool_warned=yes ;;
6951esac
6952    DLLTOOL=$ac_ct_DLLTOOL
6953  fi
6954else
6955  DLLTOOL="$ac_cv_prog_DLLTOOL"
6956fi
6957
6958test -z "$DLLTOOL" && DLLTOOL=dlltool
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6970printf %s "checking how to associate runtime and link libraries... " >&6; }
6971if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6972then :
6973  printf %s "(cached) " >&6
6974else $as_nop
6975  lt_cv_sharedlib_from_linklib_cmd='unknown'
6976
6977case $host_os in
6978cygwin* | mingw* | pw32* | cegcc*)
6979  # two different shell functions defined in ltmain.sh;
6980  # decide which one to use based on capabilities of $DLLTOOL
6981  case `$DLLTOOL --help 2>&1` in
6982  *--identify-strict*)
6983    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6984    ;;
6985  *)
6986    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6987    ;;
6988  esac
6989  ;;
6990*)
6991  # fallback: assume linklib IS sharedlib
6992  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6993  ;;
6994esac
6995
6996fi
6997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6998printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6999sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7000test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7001
7002
7003
7004
7005
7006
7007
7008
7009if test -n "$ac_tool_prefix"; then
7010  for ac_prog in ar
7011  do
7012    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7013set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015printf %s "checking for $ac_word... " >&6; }
7016if test ${ac_cv_prog_AR+y}
7017then :
7018  printf %s "(cached) " >&6
7019else $as_nop
7020  if test -n "$AR"; then
7021  ac_cv_prog_AR="$AR" # Let the user override the test.
7022else
7023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024for as_dir in $PATH
7025do
7026  IFS=$as_save_IFS
7027  case $as_dir in #(((
7028    '') as_dir=./ ;;
7029    */) ;;
7030    *) as_dir=$as_dir/ ;;
7031  esac
7032    for ac_exec_ext in '' $ac_executable_extensions; do
7033  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7034    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7035    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7036    break 2
7037  fi
7038done
7039  done
7040IFS=$as_save_IFS
7041
7042fi
7043fi
7044AR=$ac_cv_prog_AR
7045if test -n "$AR"; then
7046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7047printf "%s\n" "$AR" >&6; }
7048else
7049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050printf "%s\n" "no" >&6; }
7051fi
7052
7053
7054    test -n "$AR" && break
7055  done
7056fi
7057if test -z "$AR"; then
7058  ac_ct_AR=$AR
7059  for ac_prog in ar
7060do
7061  # Extract the first word of "$ac_prog", so it can be a program name with args.
7062set dummy $ac_prog; ac_word=$2
7063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064printf %s "checking for $ac_word... " >&6; }
7065if test ${ac_cv_prog_ac_ct_AR+y}
7066then :
7067  printf %s "(cached) " >&6
7068else $as_nop
7069  if test -n "$ac_ct_AR"; then
7070  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7071else
7072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073for as_dir in $PATH
7074do
7075  IFS=$as_save_IFS
7076  case $as_dir in #(((
7077    '') as_dir=./ ;;
7078    */) ;;
7079    *) as_dir=$as_dir/ ;;
7080  esac
7081    for ac_exec_ext in '' $ac_executable_extensions; do
7082  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7083    ac_cv_prog_ac_ct_AR="$ac_prog"
7084    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7085    break 2
7086  fi
7087done
7088  done
7089IFS=$as_save_IFS
7090
7091fi
7092fi
7093ac_ct_AR=$ac_cv_prog_ac_ct_AR
7094if test -n "$ac_ct_AR"; then
7095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7096printf "%s\n" "$ac_ct_AR" >&6; }
7097else
7098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099printf "%s\n" "no" >&6; }
7100fi
7101
7102
7103  test -n "$ac_ct_AR" && break
7104done
7105
7106  if test "x$ac_ct_AR" = x; then
7107    AR="false"
7108  else
7109    case $cross_compiling:$ac_tool_warned in
7110yes:)
7111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7112printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7113ac_tool_warned=yes ;;
7114esac
7115    AR=$ac_ct_AR
7116  fi
7117fi
7118
7119: ${AR=ar}
7120
7121
7122
7123
7124
7125
7126# Use ARFLAGS variable as AR's operation code to sync the variable naming with
7127# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7128# higher priority because thats what people were doing historically (setting
7129# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
7130# variable obsoleted/removed.
7131
7132test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7133lt_ar_flags=$AR_FLAGS
7134
7135
7136
7137
7138
7139
7140# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
7141# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7142
7143
7144
7145
7146
7147
7148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7149printf %s "checking for archiver @FILE support... " >&6; }
7150if test ${lt_cv_ar_at_file+y}
7151then :
7152  printf %s "(cached) " >&6
7153else $as_nop
7154  lt_cv_ar_at_file=no
7155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156/* end confdefs.h.  */
7157
7158int
7159main (void)
7160{
7161
7162  ;
7163  return 0;
7164}
7165_ACEOF
7166if ac_fn_cxx_try_compile "$LINENO"
7167then :
7168  echo conftest.$ac_objext > conftest.lst
7169      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7170      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7171  (eval $lt_ar_try) 2>&5
7172  ac_status=$?
7173  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7174  test $ac_status = 0; }
7175      if test 0 -eq "$ac_status"; then
7176	# Ensure the archiver fails upon bogus file names.
7177	rm -f conftest.$ac_objext libconftest.a
7178	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7179  (eval $lt_ar_try) 2>&5
7180  ac_status=$?
7181  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7182  test $ac_status = 0; }
7183	if test 0 -ne "$ac_status"; then
7184          lt_cv_ar_at_file=@
7185        fi
7186      fi
7187      rm -f conftest.* libconftest.a
7188
7189fi
7190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7191
7192fi
7193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7194printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7195
7196if test no = "$lt_cv_ar_at_file"; then
7197  archiver_list_spec=
7198else
7199  archiver_list_spec=$lt_cv_ar_at_file
7200fi
7201
7202
7203
7204
7205
7206
7207
7208if test -n "$ac_tool_prefix"; then
7209  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7210set dummy ${ac_tool_prefix}strip; ac_word=$2
7211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212printf %s "checking for $ac_word... " >&6; }
7213if test ${ac_cv_prog_STRIP+y}
7214then :
7215  printf %s "(cached) " >&6
7216else $as_nop
7217  if test -n "$STRIP"; then
7218  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7219else
7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221for as_dir in $PATH
7222do
7223  IFS=$as_save_IFS
7224  case $as_dir in #(((
7225    '') as_dir=./ ;;
7226    */) ;;
7227    *) as_dir=$as_dir/ ;;
7228  esac
7229    for ac_exec_ext in '' $ac_executable_extensions; do
7230  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7231    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7232    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7233    break 2
7234  fi
7235done
7236  done
7237IFS=$as_save_IFS
7238
7239fi
7240fi
7241STRIP=$ac_cv_prog_STRIP
7242if test -n "$STRIP"; then
7243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7244printf "%s\n" "$STRIP" >&6; }
7245else
7246  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247printf "%s\n" "no" >&6; }
7248fi
7249
7250
7251fi
7252if test -z "$ac_cv_prog_STRIP"; then
7253  ac_ct_STRIP=$STRIP
7254  # Extract the first word of "strip", so it can be a program name with args.
7255set dummy strip; ac_word=$2
7256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257printf %s "checking for $ac_word... " >&6; }
7258if test ${ac_cv_prog_ac_ct_STRIP+y}
7259then :
7260  printf %s "(cached) " >&6
7261else $as_nop
7262  if test -n "$ac_ct_STRIP"; then
7263  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7264else
7265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266for as_dir in $PATH
7267do
7268  IFS=$as_save_IFS
7269  case $as_dir in #(((
7270    '') as_dir=./ ;;
7271    */) ;;
7272    *) as_dir=$as_dir/ ;;
7273  esac
7274    for ac_exec_ext in '' $ac_executable_extensions; do
7275  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7276    ac_cv_prog_ac_ct_STRIP="strip"
7277    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7278    break 2
7279  fi
7280done
7281  done
7282IFS=$as_save_IFS
7283
7284fi
7285fi
7286ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7287if test -n "$ac_ct_STRIP"; then
7288  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7289printf "%s\n" "$ac_ct_STRIP" >&6; }
7290else
7291  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292printf "%s\n" "no" >&6; }
7293fi
7294
7295  if test "x$ac_ct_STRIP" = x; then
7296    STRIP=":"
7297  else
7298    case $cross_compiling:$ac_tool_warned in
7299yes:)
7300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7301printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7302ac_tool_warned=yes ;;
7303esac
7304    STRIP=$ac_ct_STRIP
7305  fi
7306else
7307  STRIP="$ac_cv_prog_STRIP"
7308fi
7309
7310test -z "$STRIP" && STRIP=:
7311
7312
7313
7314
7315
7316
7317if test -n "$ac_tool_prefix"; then
7318  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7319set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321printf %s "checking for $ac_word... " >&6; }
7322if test ${ac_cv_prog_RANLIB+y}
7323then :
7324  printf %s "(cached) " >&6
7325else $as_nop
7326  if test -n "$RANLIB"; then
7327  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7328else
7329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330for as_dir in $PATH
7331do
7332  IFS=$as_save_IFS
7333  case $as_dir in #(((
7334    '') as_dir=./ ;;
7335    */) ;;
7336    *) as_dir=$as_dir/ ;;
7337  esac
7338    for ac_exec_ext in '' $ac_executable_extensions; do
7339  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7340    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7341    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7342    break 2
7343  fi
7344done
7345  done
7346IFS=$as_save_IFS
7347
7348fi
7349fi
7350RANLIB=$ac_cv_prog_RANLIB
7351if test -n "$RANLIB"; then
7352  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7353printf "%s\n" "$RANLIB" >&6; }
7354else
7355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356printf "%s\n" "no" >&6; }
7357fi
7358
7359
7360fi
7361if test -z "$ac_cv_prog_RANLIB"; then
7362  ac_ct_RANLIB=$RANLIB
7363  # Extract the first word of "ranlib", so it can be a program name with args.
7364set dummy ranlib; ac_word=$2
7365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366printf %s "checking for $ac_word... " >&6; }
7367if test ${ac_cv_prog_ac_ct_RANLIB+y}
7368then :
7369  printf %s "(cached) " >&6
7370else $as_nop
7371  if test -n "$ac_ct_RANLIB"; then
7372  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7373else
7374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375for as_dir in $PATH
7376do
7377  IFS=$as_save_IFS
7378  case $as_dir in #(((
7379    '') as_dir=./ ;;
7380    */) ;;
7381    *) as_dir=$as_dir/ ;;
7382  esac
7383    for ac_exec_ext in '' $ac_executable_extensions; do
7384  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7385    ac_cv_prog_ac_ct_RANLIB="ranlib"
7386    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7387    break 2
7388  fi
7389done
7390  done
7391IFS=$as_save_IFS
7392
7393fi
7394fi
7395ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7396if test -n "$ac_ct_RANLIB"; then
7397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7398printf "%s\n" "$ac_ct_RANLIB" >&6; }
7399else
7400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401printf "%s\n" "no" >&6; }
7402fi
7403
7404  if test "x$ac_ct_RANLIB" = x; then
7405    RANLIB=":"
7406  else
7407    case $cross_compiling:$ac_tool_warned in
7408yes:)
7409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411ac_tool_warned=yes ;;
7412esac
7413    RANLIB=$ac_ct_RANLIB
7414  fi
7415else
7416  RANLIB="$ac_cv_prog_RANLIB"
7417fi
7418
7419test -z "$RANLIB" && RANLIB=:
7420
7421
7422
7423
7424
7425
7426# Determine commands to create old-style static archives.
7427old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7428old_postinstall_cmds='chmod 644 $oldlib'
7429old_postuninstall_cmds=
7430
7431if test -n "$RANLIB"; then
7432  case $host_os in
7433  bitrig* | openbsd*)
7434    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7435    ;;
7436  *)
7437    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7438    ;;
7439  esac
7440  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7441fi
7442
7443case $host_os in
7444  darwin*)
7445    lock_old_archive_extraction=yes ;;
7446  *)
7447    lock_old_archive_extraction=no ;;
7448esac
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488# If no C compiler was specified, use CC.
7489LTCC=${LTCC-"$CC"}
7490
7491# If no C compiler flags were specified, use CFLAGS.
7492LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7493
7494# Allow CC to be a program name with arguments.
7495compiler=$CC
7496
7497
7498# Check for command to grab the raw symbol name followed by C symbol from nm.
7499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7500printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7501if test ${lt_cv_sys_global_symbol_pipe+y}
7502then :
7503  printf %s "(cached) " >&6
7504else $as_nop
7505
7506# These are sane defaults that work on at least a few old systems.
7507# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7508
7509# Character class describing NM global symbol codes.
7510symcode='[BCDEGRST]'
7511
7512# Regexp to match symbols that can be accessed directly from C.
7513sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7514
7515# Define system-specific variables.
7516case $host_os in
7517aix*)
7518  symcode='[BCDT]'
7519  ;;
7520cygwin* | mingw* | pw32* | cegcc*)
7521  symcode='[ABCDGISTW]'
7522  ;;
7523hpux*)
7524  if test ia64 = "$host_cpu"; then
7525    symcode='[ABCDEGRST]'
7526  fi
7527  ;;
7528irix* | nonstopux*)
7529  symcode='[BCDEGRST]'
7530  ;;
7531osf*)
7532  symcode='[BCDEGQRST]'
7533  ;;
7534solaris*)
7535  symcode='[BDRT]'
7536  ;;
7537sco3.2v5*)
7538  symcode='[DT]'
7539  ;;
7540sysv4.2uw2*)
7541  symcode='[DT]'
7542  ;;
7543sysv5* | sco5v6* | unixware* | OpenUNIX*)
7544  symcode='[ABDT]'
7545  ;;
7546sysv4)
7547  symcode='[DFNSTU]'
7548  ;;
7549esac
7550
7551# If we're using GNU nm, then use its standard symbol codes.
7552case `$NM -V 2>&1` in
7553*GNU* | *'with BFD'*)
7554  symcode='[ABCDGIRSTW]' ;;
7555esac
7556
7557if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7558  # Gets list of data symbols to import.
7559  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7560  # Adjust the below global symbol transforms to fixup imported variables.
7561  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7562  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7563  lt_c_name_lib_hook="\
7564  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7565  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7566else
7567  # Disable hooks by default.
7568  lt_cv_sys_global_symbol_to_import=
7569  lt_cdecl_hook=
7570  lt_c_name_hook=
7571  lt_c_name_lib_hook=
7572fi
7573
7574# Transform an extracted symbol line into a proper C declaration.
7575# Some systems (esp. on ia64) link data and code symbols differently,
7576# so use this general approach.
7577lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7578$lt_cdecl_hook\
7579" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7580" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7581
7582# Transform an extracted symbol line into symbol name and symbol address
7583lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7584$lt_c_name_hook\
7585" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7586" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7587
7588# Transform an extracted symbol line into symbol name with lib prefix and
7589# symbol address.
7590lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7591$lt_c_name_lib_hook\
7592" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7593" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7594" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7595
7596# Handle CRLF in mingw tool chain
7597opt_cr=
7598case $build_os in
7599mingw*)
7600  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7601  ;;
7602esac
7603
7604# Try without a prefix underscore, then with it.
7605for ac_symprfx in "" "_"; do
7606
7607  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7608  symxfrm="\\1 $ac_symprfx\\2 \\2"
7609
7610  # Write the raw and C identifiers.
7611  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7612    # Fake it for dumpbin and say T for any non-static function,
7613    # D for any global variable and I for any imported variable.
7614    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7615    # which start with @ or ?.
7616    lt_cv_sys_global_symbol_pipe="$AWK '"\
7617"     {last_section=section; section=\$ 3};"\
7618"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7619"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7620"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7621"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7622"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7623"     \$ 0!~/External *\|/{next};"\
7624"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7625"     {if(hide[section]) next};"\
7626"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7627"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7628"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7629"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7630"     ' prfx=^$ac_symprfx"
7631  else
7632    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7633  fi
7634  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7635
7636  # Check to see that the pipe works correctly.
7637  pipe_works=no
7638
7639  rm -f conftest*
7640  cat > conftest.$ac_ext <<_LT_EOF
7641#ifdef __cplusplus
7642extern "C" {
7643#endif
7644char nm_test_var;
7645void nm_test_func(void);
7646void nm_test_func(void){}
7647#ifdef __cplusplus
7648}
7649#endif
7650int main(){nm_test_var='a';nm_test_func();return(0);}
7651_LT_EOF
7652
7653  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7654  (eval $ac_compile) 2>&5
7655  ac_status=$?
7656  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7657  test $ac_status = 0; }; then
7658    # Now try to grab the symbols.
7659    nlist=conftest.nm
7660    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7661  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7662  ac_status=$?
7663  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7664  test $ac_status = 0; } && test -s "$nlist"; then
7665      # Try sorting and uniquifying the output.
7666      if sort "$nlist" | uniq > "$nlist"T; then
7667	mv -f "$nlist"T "$nlist"
7668      else
7669	rm -f "$nlist"T
7670      fi
7671
7672      # Make sure that we snagged all the symbols we need.
7673      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7674	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7675	  cat <<_LT_EOF > conftest.$ac_ext
7676/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7677#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7678/* DATA imports from DLLs on WIN32 can't be const, because runtime
7679   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7680# define LT_DLSYM_CONST
7681#elif defined __osf__
7682/* This system does not cope well with relocations in const data.  */
7683# define LT_DLSYM_CONST
7684#else
7685# define LT_DLSYM_CONST const
7686#endif
7687
7688#ifdef __cplusplus
7689extern "C" {
7690#endif
7691
7692_LT_EOF
7693	  # Now generate the symbol file.
7694	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7695
7696	  cat <<_LT_EOF >> conftest.$ac_ext
7697
7698/* The mapping between symbol names and symbols.  */
7699LT_DLSYM_CONST struct {
7700  const char *name;
7701  void       *address;
7702}
7703lt__PROGRAM__LTX_preloaded_symbols[] =
7704{
7705  { "@PROGRAM@", (void *) 0 },
7706_LT_EOF
7707	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7708	  cat <<\_LT_EOF >> conftest.$ac_ext
7709  {0, (void *) 0}
7710};
7711
7712/* This works around a problem in FreeBSD linker */
7713#ifdef FREEBSD_WORKAROUND
7714static const void *lt_preloaded_setup() {
7715  return lt__PROGRAM__LTX_preloaded_symbols;
7716}
7717#endif
7718
7719#ifdef __cplusplus
7720}
7721#endif
7722_LT_EOF
7723	  # Now try linking the two files.
7724	  mv conftest.$ac_objext conftstm.$ac_objext
7725	  lt_globsym_save_LIBS=$LIBS
7726	  lt_globsym_save_CFLAGS=$CFLAGS
7727	  LIBS=conftstm.$ac_objext
7728	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7729	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7730  (eval $ac_link) 2>&5
7731  ac_status=$?
7732  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7733  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7734	    pipe_works=yes
7735	  fi
7736	  LIBS=$lt_globsym_save_LIBS
7737	  CFLAGS=$lt_globsym_save_CFLAGS
7738	else
7739	  echo "cannot find nm_test_func in $nlist" >&5
7740	fi
7741      else
7742	echo "cannot find nm_test_var in $nlist" >&5
7743      fi
7744    else
7745      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7746    fi
7747  else
7748    echo "$progname: failed program was:" >&5
7749    cat conftest.$ac_ext >&5
7750  fi
7751  rm -rf conftest* conftst*
7752
7753  # Do not use the global_symbol_pipe unless it works.
7754  if test yes = "$pipe_works"; then
7755    break
7756  else
7757    lt_cv_sys_global_symbol_pipe=
7758  fi
7759done
7760
7761fi
7762
7763if test -z "$lt_cv_sys_global_symbol_pipe"; then
7764  lt_cv_sys_global_symbol_to_cdecl=
7765fi
7766if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7767  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7768printf "%s\n" "failed" >&6; }
7769else
7770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7771printf "%s\n" "ok" >&6; }
7772fi
7773
7774# Response file support.
7775if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7776  nm_file_list_spec='@'
7777elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7778  nm_file_list_spec='@'
7779fi
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7818printf %s "checking for sysroot... " >&6; }
7819
7820# Check whether --with-sysroot was given.
7821if test ${with_sysroot+y}
7822then :
7823  withval=$with_sysroot;
7824else $as_nop
7825  with_sysroot=no
7826fi
7827
7828
7829lt_sysroot=
7830case $with_sysroot in #(
7831 yes)
7832   if test yes = "$GCC"; then
7833     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7834   fi
7835   ;; #(
7836 /*)
7837   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7838   ;; #(
7839 no|'')
7840   ;; #(
7841 *)
7842   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7843printf "%s\n" "$with_sysroot" >&6; }
7844   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7845   ;;
7846esac
7847
7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7849printf "%s\n" "${lt_sysroot:-no}" >&6; }
7850
7851
7852
7853
7854
7855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7856printf %s "checking for a working dd... " >&6; }
7857if test ${ac_cv_path_lt_DD+y}
7858then :
7859  printf %s "(cached) " >&6
7860else $as_nop
7861  printf 0123456789abcdef0123456789abcdef >conftest.i
7862cat conftest.i conftest.i >conftest2.i
7863: ${lt_DD:=$DD}
7864if test -z "$lt_DD"; then
7865  ac_path_lt_DD_found=false
7866  # Loop through the user's path and test for each of PROGNAME-LIST
7867  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868for as_dir in $PATH
7869do
7870  IFS=$as_save_IFS
7871  case $as_dir in #(((
7872    '') as_dir=./ ;;
7873    */) ;;
7874    *) as_dir=$as_dir/ ;;
7875  esac
7876    for ac_prog in dd
7877   do
7878    for ac_exec_ext in '' $ac_executable_extensions; do
7879      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7880      as_fn_executable_p "$ac_path_lt_DD" || continue
7881if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7882  cmp -s conftest.i conftest.out \
7883  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7884fi
7885      $ac_path_lt_DD_found && break 3
7886    done
7887  done
7888  done
7889IFS=$as_save_IFS
7890  if test -z "$ac_cv_path_lt_DD"; then
7891    :
7892  fi
7893else
7894  ac_cv_path_lt_DD=$lt_DD
7895fi
7896
7897rm -f conftest.i conftest2.i conftest.out
7898fi
7899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7900printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7901
7902
7903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7904printf %s "checking how to truncate binary pipes... " >&6; }
7905if test ${lt_cv_truncate_bin+y}
7906then :
7907  printf %s "(cached) " >&6
7908else $as_nop
7909  printf 0123456789abcdef0123456789abcdef >conftest.i
7910cat conftest.i conftest.i >conftest2.i
7911lt_cv_truncate_bin=
7912if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7913  cmp -s conftest.i conftest.out \
7914  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7915fi
7916rm -f conftest.i conftest2.i conftest.out
7917test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7918fi
7919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7920printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7921
7922
7923
7924
7925
7926
7927
7928# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7929func_cc_basename ()
7930{
7931    for cc_temp in $*""; do
7932      case $cc_temp in
7933        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7934        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7935        \-*) ;;
7936        *) break;;
7937      esac
7938    done
7939    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7940}
7941
7942
7943# Check whether --enable-libtool-lock was given.
7944if test ${enable_libtool_lock+y}
7945then :
7946  enableval=$enable_libtool_lock;
7947fi
7948
7949test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7950
7951# Some flags need to be propagated to the compiler or linker for good
7952# libtool support.
7953case $host in
7954ia64-*-hpux*)
7955  # Find out what ABI is being produced by ac_compile, and set mode
7956  # options accordingly.
7957  echo 'int i;' > conftest.$ac_ext
7958  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7959  (eval $ac_compile) 2>&5
7960  ac_status=$?
7961  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962  test $ac_status = 0; }; then
7963    case `/usr/bin/file conftest.$ac_objext` in
7964      *ELF-32*)
7965	HPUX_IA64_MODE=32
7966	;;
7967      *ELF-64*)
7968	HPUX_IA64_MODE=64
7969	;;
7970    esac
7971  fi
7972  rm -rf conftest*
7973  ;;
7974*-*-irix6*)
7975  # Find out what ABI is being produced by ac_compile, and set linker
7976  # options accordingly.
7977  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7978  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7979  (eval $ac_compile) 2>&5
7980  ac_status=$?
7981  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7982  test $ac_status = 0; }; then
7983    if test yes = "$lt_cv_prog_gnu_ld"; then
7984      case `/usr/bin/file conftest.$ac_objext` in
7985	*32-bit*)
7986	  LD="${LD-ld} -melf32bsmip"
7987	  ;;
7988	*N32*)
7989	  LD="${LD-ld} -melf32bmipn32"
7990	  ;;
7991	*64-bit*)
7992	  LD="${LD-ld} -melf64bmip"
7993	;;
7994      esac
7995    else
7996      case `/usr/bin/file conftest.$ac_objext` in
7997	*32-bit*)
7998	  LD="${LD-ld} -32"
7999	  ;;
8000	*N32*)
8001	  LD="${LD-ld} -n32"
8002	  ;;
8003	*64-bit*)
8004	  LD="${LD-ld} -64"
8005	  ;;
8006      esac
8007    fi
8008  fi
8009  rm -rf conftest*
8010  ;;
8011
8012mips64*-*linux*)
8013  # Find out what ABI is being produced by ac_compile, and set linker
8014  # options accordingly.
8015  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8016  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8017  (eval $ac_compile) 2>&5
8018  ac_status=$?
8019  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8020  test $ac_status = 0; }; then
8021    emul=elf
8022    case `/usr/bin/file conftest.$ac_objext` in
8023      *32-bit*)
8024	emul="${emul}32"
8025	;;
8026      *64-bit*)
8027	emul="${emul}64"
8028	;;
8029    esac
8030    case `/usr/bin/file conftest.$ac_objext` in
8031      *MSB*)
8032	emul="${emul}btsmip"
8033	;;
8034      *LSB*)
8035	emul="${emul}ltsmip"
8036	;;
8037    esac
8038    case `/usr/bin/file conftest.$ac_objext` in
8039      *N32*)
8040	emul="${emul}n32"
8041	;;
8042    esac
8043    LD="${LD-ld} -m $emul"
8044  fi
8045  rm -rf conftest*
8046  ;;
8047
8048x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8049s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8050  # Find out what ABI is being produced by ac_compile, and set linker
8051  # options accordingly.  Note that the listed cases only cover the
8052  # situations where additional linker options are needed (such as when
8053  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8054  # vice versa); the common cases where no linker options are needed do
8055  # not appear in the list.
8056  echo 'int i;' > conftest.$ac_ext
8057  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8058  (eval $ac_compile) 2>&5
8059  ac_status=$?
8060  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8061  test $ac_status = 0; }; then
8062    case `/usr/bin/file conftest.o` in
8063      *32-bit*)
8064	case $host in
8065	  x86_64-*kfreebsd*-gnu)
8066	    LD="${LD-ld} -m elf_i386_fbsd"
8067	    ;;
8068	  x86_64-*linux*)
8069	    case `/usr/bin/file conftest.o` in
8070	      *x86-64*)
8071		LD="${LD-ld} -m elf32_x86_64"
8072		;;
8073	      *)
8074		LD="${LD-ld} -m elf_i386"
8075		;;
8076	    esac
8077	    ;;
8078	  powerpc64le-*linux*)
8079	    LD="${LD-ld} -m elf32lppclinux"
8080	    ;;
8081	  powerpc64-*linux*)
8082	    LD="${LD-ld} -m elf32ppclinux"
8083	    ;;
8084	  s390x-*linux*)
8085	    LD="${LD-ld} -m elf_s390"
8086	    ;;
8087	  sparc64-*linux*)
8088	    LD="${LD-ld} -m elf32_sparc"
8089	    ;;
8090	esac
8091	;;
8092      *64-bit*)
8093	case $host in
8094	  x86_64-*kfreebsd*-gnu)
8095	    LD="${LD-ld} -m elf_x86_64_fbsd"
8096	    ;;
8097	  x86_64-*linux*)
8098	    LD="${LD-ld} -m elf_x86_64"
8099	    ;;
8100	  powerpcle-*linux*)
8101	    LD="${LD-ld} -m elf64lppc"
8102	    ;;
8103	  powerpc-*linux*)
8104	    LD="${LD-ld} -m elf64ppc"
8105	    ;;
8106	  s390*-*linux*|s390*-*tpf*)
8107	    LD="${LD-ld} -m elf64_s390"
8108	    ;;
8109	  sparc*-*linux*)
8110	    LD="${LD-ld} -m elf64_sparc"
8111	    ;;
8112	esac
8113	;;
8114    esac
8115  fi
8116  rm -rf conftest*
8117  ;;
8118
8119*-*-sco3.2v5*)
8120  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8121  SAVE_CFLAGS=$CFLAGS
8122  CFLAGS="$CFLAGS -belf"
8123  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8124printf %s "checking whether the C compiler needs -belf... " >&6; }
8125if test ${lt_cv_cc_needs_belf+y}
8126then :
8127  printf %s "(cached) " >&6
8128else $as_nop
8129  ac_ext=c
8130ac_cpp='$CPP $CPPFLAGS'
8131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8133ac_compiler_gnu=$ac_cv_c_compiler_gnu
8134
8135     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136/* end confdefs.h.  */
8137
8138int
8139main (void)
8140{
8141
8142  ;
8143  return 0;
8144}
8145_ACEOF
8146if ac_fn_c_try_link "$LINENO"
8147then :
8148  lt_cv_cc_needs_belf=yes
8149else $as_nop
8150  lt_cv_cc_needs_belf=no
8151fi
8152rm -f core conftest.err conftest.$ac_objext conftest.beam \
8153    conftest$ac_exeext conftest.$ac_ext
8154     ac_ext=c
8155ac_cpp='$CPP $CPPFLAGS'
8156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8158ac_compiler_gnu=$ac_cv_c_compiler_gnu
8159
8160fi
8161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8162printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8163  if test yes != "$lt_cv_cc_needs_belf"; then
8164    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8165    CFLAGS=$SAVE_CFLAGS
8166  fi
8167  ;;
8168*-*solaris*)
8169  # Find out what ABI is being produced by ac_compile, and set linker
8170  # options accordingly.
8171  echo 'int i;' > conftest.$ac_ext
8172  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8173  (eval $ac_compile) 2>&5
8174  ac_status=$?
8175  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8176  test $ac_status = 0; }; then
8177    case `/usr/bin/file conftest.o` in
8178    *64-bit*)
8179      case $lt_cv_prog_gnu_ld in
8180      yes*)
8181        case $host in
8182        i?86-*-solaris*|x86_64-*-solaris*)
8183          LD="${LD-ld} -m elf_x86_64"
8184          ;;
8185        sparc*-*-solaris*)
8186          LD="${LD-ld} -m elf64_sparc"
8187          ;;
8188        esac
8189        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8190        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8191          LD=${LD-ld}_sol2
8192        fi
8193        ;;
8194      *)
8195	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8196	  LD="${LD-ld} -64"
8197	fi
8198	;;
8199      esac
8200      ;;
8201    esac
8202  fi
8203  rm -rf conftest*
8204  ;;
8205esac
8206
8207need_locks=$enable_libtool_lock
8208
8209if test -n "$ac_tool_prefix"; then
8210  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8211set dummy ${ac_tool_prefix}mt; ac_word=$2
8212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213printf %s "checking for $ac_word... " >&6; }
8214if test ${ac_cv_prog_MANIFEST_TOOL+y}
8215then :
8216  printf %s "(cached) " >&6
8217else $as_nop
8218  if test -n "$MANIFEST_TOOL"; then
8219  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8220else
8221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222for as_dir in $PATH
8223do
8224  IFS=$as_save_IFS
8225  case $as_dir in #(((
8226    '') as_dir=./ ;;
8227    */) ;;
8228    *) as_dir=$as_dir/ ;;
8229  esac
8230    for ac_exec_ext in '' $ac_executable_extensions; do
8231  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8232    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8233    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8234    break 2
8235  fi
8236done
8237  done
8238IFS=$as_save_IFS
8239
8240fi
8241fi
8242MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8243if test -n "$MANIFEST_TOOL"; then
8244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8245printf "%s\n" "$MANIFEST_TOOL" >&6; }
8246else
8247  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248printf "%s\n" "no" >&6; }
8249fi
8250
8251
8252fi
8253if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8254  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8255  # Extract the first word of "mt", so it can be a program name with args.
8256set dummy mt; ac_word=$2
8257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258printf %s "checking for $ac_word... " >&6; }
8259if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8260then :
8261  printf %s "(cached) " >&6
8262else $as_nop
8263  if test -n "$ac_ct_MANIFEST_TOOL"; then
8264  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8265else
8266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267for as_dir in $PATH
8268do
8269  IFS=$as_save_IFS
8270  case $as_dir in #(((
8271    '') as_dir=./ ;;
8272    */) ;;
8273    *) as_dir=$as_dir/ ;;
8274  esac
8275    for ac_exec_ext in '' $ac_executable_extensions; do
8276  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8277    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8278    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8279    break 2
8280  fi
8281done
8282  done
8283IFS=$as_save_IFS
8284
8285fi
8286fi
8287ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8288if test -n "$ac_ct_MANIFEST_TOOL"; then
8289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8290printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8291else
8292  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293printf "%s\n" "no" >&6; }
8294fi
8295
8296  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8297    MANIFEST_TOOL=":"
8298  else
8299    case $cross_compiling:$ac_tool_warned in
8300yes:)
8301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8302printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8303ac_tool_warned=yes ;;
8304esac
8305    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8306  fi
8307else
8308  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8309fi
8310
8311test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8313printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8314if test ${lt_cv_path_mainfest_tool+y}
8315then :
8316  printf %s "(cached) " >&6
8317else $as_nop
8318  lt_cv_path_mainfest_tool=no
8319  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8320  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8321  cat conftest.err >&5
8322  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8323    lt_cv_path_mainfest_tool=yes
8324  fi
8325  rm -f conftest*
8326fi
8327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8328printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8329if test yes != "$lt_cv_path_mainfest_tool"; then
8330  MANIFEST_TOOL=:
8331fi
8332
8333
8334
8335
8336
8337
8338  case $host_os in
8339    rhapsody* | darwin*)
8340    if test -n "$ac_tool_prefix"; then
8341  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8342set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344printf %s "checking for $ac_word... " >&6; }
8345if test ${ac_cv_prog_DSYMUTIL+y}
8346then :
8347  printf %s "(cached) " >&6
8348else $as_nop
8349  if test -n "$DSYMUTIL"; then
8350  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8351else
8352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353for as_dir in $PATH
8354do
8355  IFS=$as_save_IFS
8356  case $as_dir in #(((
8357    '') as_dir=./ ;;
8358    */) ;;
8359    *) as_dir=$as_dir/ ;;
8360  esac
8361    for ac_exec_ext in '' $ac_executable_extensions; do
8362  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8363    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8364    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8365    break 2
8366  fi
8367done
8368  done
8369IFS=$as_save_IFS
8370
8371fi
8372fi
8373DSYMUTIL=$ac_cv_prog_DSYMUTIL
8374if test -n "$DSYMUTIL"; then
8375  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8376printf "%s\n" "$DSYMUTIL" >&6; }
8377else
8378  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379printf "%s\n" "no" >&6; }
8380fi
8381
8382
8383fi
8384if test -z "$ac_cv_prog_DSYMUTIL"; then
8385  ac_ct_DSYMUTIL=$DSYMUTIL
8386  # Extract the first word of "dsymutil", so it can be a program name with args.
8387set dummy dsymutil; ac_word=$2
8388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389printf %s "checking for $ac_word... " >&6; }
8390if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8391then :
8392  printf %s "(cached) " >&6
8393else $as_nop
8394  if test -n "$ac_ct_DSYMUTIL"; then
8395  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8396else
8397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398for as_dir in $PATH
8399do
8400  IFS=$as_save_IFS
8401  case $as_dir in #(((
8402    '') as_dir=./ ;;
8403    */) ;;
8404    *) as_dir=$as_dir/ ;;
8405  esac
8406    for ac_exec_ext in '' $ac_executable_extensions; do
8407  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8408    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8409    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8410    break 2
8411  fi
8412done
8413  done
8414IFS=$as_save_IFS
8415
8416fi
8417fi
8418ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8419if test -n "$ac_ct_DSYMUTIL"; then
8420  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8421printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8422else
8423  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424printf "%s\n" "no" >&6; }
8425fi
8426
8427  if test "x$ac_ct_DSYMUTIL" = x; then
8428    DSYMUTIL=":"
8429  else
8430    case $cross_compiling:$ac_tool_warned in
8431yes:)
8432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8433printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8434ac_tool_warned=yes ;;
8435esac
8436    DSYMUTIL=$ac_ct_DSYMUTIL
8437  fi
8438else
8439  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8440fi
8441
8442    if test -n "$ac_tool_prefix"; then
8443  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8444set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446printf %s "checking for $ac_word... " >&6; }
8447if test ${ac_cv_prog_NMEDIT+y}
8448then :
8449  printf %s "(cached) " >&6
8450else $as_nop
8451  if test -n "$NMEDIT"; then
8452  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8453else
8454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455for as_dir in $PATH
8456do
8457  IFS=$as_save_IFS
8458  case $as_dir in #(((
8459    '') as_dir=./ ;;
8460    */) ;;
8461    *) as_dir=$as_dir/ ;;
8462  esac
8463    for ac_exec_ext in '' $ac_executable_extensions; do
8464  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8465    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8466    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8467    break 2
8468  fi
8469done
8470  done
8471IFS=$as_save_IFS
8472
8473fi
8474fi
8475NMEDIT=$ac_cv_prog_NMEDIT
8476if test -n "$NMEDIT"; then
8477  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8478printf "%s\n" "$NMEDIT" >&6; }
8479else
8480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481printf "%s\n" "no" >&6; }
8482fi
8483
8484
8485fi
8486if test -z "$ac_cv_prog_NMEDIT"; then
8487  ac_ct_NMEDIT=$NMEDIT
8488  # Extract the first word of "nmedit", so it can be a program name with args.
8489set dummy nmedit; ac_word=$2
8490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8491printf %s "checking for $ac_word... " >&6; }
8492if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8493then :
8494  printf %s "(cached) " >&6
8495else $as_nop
8496  if test -n "$ac_ct_NMEDIT"; then
8497  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8498else
8499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500for as_dir in $PATH
8501do
8502  IFS=$as_save_IFS
8503  case $as_dir in #(((
8504    '') as_dir=./ ;;
8505    */) ;;
8506    *) as_dir=$as_dir/ ;;
8507  esac
8508    for ac_exec_ext in '' $ac_executable_extensions; do
8509  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8510    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8511    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8512    break 2
8513  fi
8514done
8515  done
8516IFS=$as_save_IFS
8517
8518fi
8519fi
8520ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8521if test -n "$ac_ct_NMEDIT"; then
8522  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8523printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8524else
8525  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526printf "%s\n" "no" >&6; }
8527fi
8528
8529  if test "x$ac_ct_NMEDIT" = x; then
8530    NMEDIT=":"
8531  else
8532    case $cross_compiling:$ac_tool_warned in
8533yes:)
8534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8535printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8536ac_tool_warned=yes ;;
8537esac
8538    NMEDIT=$ac_ct_NMEDIT
8539  fi
8540else
8541  NMEDIT="$ac_cv_prog_NMEDIT"
8542fi
8543
8544    if test -n "$ac_tool_prefix"; then
8545  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8546set dummy ${ac_tool_prefix}lipo; ac_word=$2
8547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548printf %s "checking for $ac_word... " >&6; }
8549if test ${ac_cv_prog_LIPO+y}
8550then :
8551  printf %s "(cached) " >&6
8552else $as_nop
8553  if test -n "$LIPO"; then
8554  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8555else
8556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557for as_dir in $PATH
8558do
8559  IFS=$as_save_IFS
8560  case $as_dir in #(((
8561    '') as_dir=./ ;;
8562    */) ;;
8563    *) as_dir=$as_dir/ ;;
8564  esac
8565    for ac_exec_ext in '' $ac_executable_extensions; do
8566  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8567    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8568    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8569    break 2
8570  fi
8571done
8572  done
8573IFS=$as_save_IFS
8574
8575fi
8576fi
8577LIPO=$ac_cv_prog_LIPO
8578if test -n "$LIPO"; then
8579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8580printf "%s\n" "$LIPO" >&6; }
8581else
8582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583printf "%s\n" "no" >&6; }
8584fi
8585
8586
8587fi
8588if test -z "$ac_cv_prog_LIPO"; then
8589  ac_ct_LIPO=$LIPO
8590  # Extract the first word of "lipo", so it can be a program name with args.
8591set dummy lipo; ac_word=$2
8592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593printf %s "checking for $ac_word... " >&6; }
8594if test ${ac_cv_prog_ac_ct_LIPO+y}
8595then :
8596  printf %s "(cached) " >&6
8597else $as_nop
8598  if test -n "$ac_ct_LIPO"; then
8599  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8600else
8601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602for as_dir in $PATH
8603do
8604  IFS=$as_save_IFS
8605  case $as_dir in #(((
8606    '') as_dir=./ ;;
8607    */) ;;
8608    *) as_dir=$as_dir/ ;;
8609  esac
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_LIPO="lipo"
8613    printf "%s\n" "$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_LIPO=$ac_cv_prog_ac_ct_LIPO
8623if test -n "$ac_ct_LIPO"; then
8624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8625printf "%s\n" "$ac_ct_LIPO" >&6; }
8626else
8627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628printf "%s\n" "no" >&6; }
8629fi
8630
8631  if test "x$ac_ct_LIPO" = x; then
8632    LIPO=":"
8633  else
8634    case $cross_compiling:$ac_tool_warned in
8635yes:)
8636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8637printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8638ac_tool_warned=yes ;;
8639esac
8640    LIPO=$ac_ct_LIPO
8641  fi
8642else
8643  LIPO="$ac_cv_prog_LIPO"
8644fi
8645
8646    if test -n "$ac_tool_prefix"; then
8647  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8648set dummy ${ac_tool_prefix}otool; ac_word=$2
8649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650printf %s "checking for $ac_word... " >&6; }
8651if test ${ac_cv_prog_OTOOL+y}
8652then :
8653  printf %s "(cached) " >&6
8654else $as_nop
8655  if test -n "$OTOOL"; then
8656  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8657else
8658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659for as_dir in $PATH
8660do
8661  IFS=$as_save_IFS
8662  case $as_dir in #(((
8663    '') as_dir=./ ;;
8664    */) ;;
8665    *) as_dir=$as_dir/ ;;
8666  esac
8667    for ac_exec_ext in '' $ac_executable_extensions; do
8668  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8669    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8670    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8671    break 2
8672  fi
8673done
8674  done
8675IFS=$as_save_IFS
8676
8677fi
8678fi
8679OTOOL=$ac_cv_prog_OTOOL
8680if test -n "$OTOOL"; then
8681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8682printf "%s\n" "$OTOOL" >&6; }
8683else
8684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685printf "%s\n" "no" >&6; }
8686fi
8687
8688
8689fi
8690if test -z "$ac_cv_prog_OTOOL"; then
8691  ac_ct_OTOOL=$OTOOL
8692  # Extract the first word of "otool", so it can be a program name with args.
8693set dummy otool; ac_word=$2
8694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8695printf %s "checking for $ac_word... " >&6; }
8696if test ${ac_cv_prog_ac_ct_OTOOL+y}
8697then :
8698  printf %s "(cached) " >&6
8699else $as_nop
8700  if test -n "$ac_ct_OTOOL"; then
8701  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8702else
8703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704for as_dir in $PATH
8705do
8706  IFS=$as_save_IFS
8707  case $as_dir in #(((
8708    '') as_dir=./ ;;
8709    */) ;;
8710    *) as_dir=$as_dir/ ;;
8711  esac
8712    for ac_exec_ext in '' $ac_executable_extensions; do
8713  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8714    ac_cv_prog_ac_ct_OTOOL="otool"
8715    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8716    break 2
8717  fi
8718done
8719  done
8720IFS=$as_save_IFS
8721
8722fi
8723fi
8724ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8725if test -n "$ac_ct_OTOOL"; then
8726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8727printf "%s\n" "$ac_ct_OTOOL" >&6; }
8728else
8729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730printf "%s\n" "no" >&6; }
8731fi
8732
8733  if test "x$ac_ct_OTOOL" = x; then
8734    OTOOL=":"
8735  else
8736    case $cross_compiling:$ac_tool_warned in
8737yes:)
8738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8739printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8740ac_tool_warned=yes ;;
8741esac
8742    OTOOL=$ac_ct_OTOOL
8743  fi
8744else
8745  OTOOL="$ac_cv_prog_OTOOL"
8746fi
8747
8748    if test -n "$ac_tool_prefix"; then
8749  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8750set dummy ${ac_tool_prefix}otool64; ac_word=$2
8751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8752printf %s "checking for $ac_word... " >&6; }
8753if test ${ac_cv_prog_OTOOL64+y}
8754then :
8755  printf %s "(cached) " >&6
8756else $as_nop
8757  if test -n "$OTOOL64"; then
8758  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8759else
8760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761for as_dir in $PATH
8762do
8763  IFS=$as_save_IFS
8764  case $as_dir in #(((
8765    '') as_dir=./ ;;
8766    */) ;;
8767    *) as_dir=$as_dir/ ;;
8768  esac
8769    for ac_exec_ext in '' $ac_executable_extensions; do
8770  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8771    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8772    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8773    break 2
8774  fi
8775done
8776  done
8777IFS=$as_save_IFS
8778
8779fi
8780fi
8781OTOOL64=$ac_cv_prog_OTOOL64
8782if test -n "$OTOOL64"; then
8783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8784printf "%s\n" "$OTOOL64" >&6; }
8785else
8786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787printf "%s\n" "no" >&6; }
8788fi
8789
8790
8791fi
8792if test -z "$ac_cv_prog_OTOOL64"; then
8793  ac_ct_OTOOL64=$OTOOL64
8794  # Extract the first word of "otool64", so it can be a program name with args.
8795set dummy otool64; ac_word=$2
8796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8797printf %s "checking for $ac_word... " >&6; }
8798if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8799then :
8800  printf %s "(cached) " >&6
8801else $as_nop
8802  if test -n "$ac_ct_OTOOL64"; then
8803  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8804else
8805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806for as_dir in $PATH
8807do
8808  IFS=$as_save_IFS
8809  case $as_dir in #(((
8810    '') as_dir=./ ;;
8811    */) ;;
8812    *) as_dir=$as_dir/ ;;
8813  esac
8814    for ac_exec_ext in '' $ac_executable_extensions; do
8815  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8816    ac_cv_prog_ac_ct_OTOOL64="otool64"
8817    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8818    break 2
8819  fi
8820done
8821  done
8822IFS=$as_save_IFS
8823
8824fi
8825fi
8826ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8827if test -n "$ac_ct_OTOOL64"; then
8828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8829printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8830else
8831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8832printf "%s\n" "no" >&6; }
8833fi
8834
8835  if test "x$ac_ct_OTOOL64" = x; then
8836    OTOOL64=":"
8837  else
8838    case $cross_compiling:$ac_tool_warned in
8839yes:)
8840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8841printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8842ac_tool_warned=yes ;;
8843esac
8844    OTOOL64=$ac_ct_OTOOL64
8845  fi
8846else
8847  OTOOL64="$ac_cv_prog_OTOOL64"
8848fi
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8877printf %s "checking for -single_module linker flag... " >&6; }
8878if test ${lt_cv_apple_cc_single_mod+y}
8879then :
8880  printf %s "(cached) " >&6
8881else $as_nop
8882  lt_cv_apple_cc_single_mod=no
8883      if test -z "$LT_MULTI_MODULE"; then
8884	# By default we will add the -single_module flag. You can override
8885	# by either setting the environment variable LT_MULTI_MODULE
8886	# non-empty at configure time, or by adding -multi_module to the
8887	# link flags.
8888	rm -rf libconftest.dylib*
8889	echo "int foo(void){return 1;}" > conftest.c
8890	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8891-dynamiclib -Wl,-single_module conftest.c" >&5
8892	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8893	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8894        _lt_result=$?
8895	# If there is a non-empty error log, and "single_module"
8896	# appears in it, assume the flag caused a linker warning
8897        if test -s conftest.err && $GREP single_module conftest.err; then
8898	  cat conftest.err >&5
8899	# Otherwise, if the output was created with a 0 exit code from
8900	# the compiler, it worked.
8901	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8902	  lt_cv_apple_cc_single_mod=yes
8903	else
8904	  cat conftest.err >&5
8905	fi
8906	rm -rf libconftest.dylib*
8907	rm -f conftest.*
8908      fi
8909fi
8910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8911printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8912
8913    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8914printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8915if test ${lt_cv_ld_exported_symbols_list+y}
8916then :
8917  printf %s "(cached) " >&6
8918else $as_nop
8919  lt_cv_ld_exported_symbols_list=no
8920      save_LDFLAGS=$LDFLAGS
8921      echo "_main" > conftest.sym
8922      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8923      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924/* end confdefs.h.  */
8925
8926int
8927main (void)
8928{
8929
8930  ;
8931  return 0;
8932}
8933_ACEOF
8934if ac_fn_c_try_link "$LINENO"
8935then :
8936  lt_cv_ld_exported_symbols_list=yes
8937else $as_nop
8938  lt_cv_ld_exported_symbols_list=no
8939fi
8940rm -f core conftest.err conftest.$ac_objext conftest.beam \
8941    conftest$ac_exeext conftest.$ac_ext
8942	LDFLAGS=$save_LDFLAGS
8943
8944fi
8945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8946printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8947
8948    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8949printf %s "checking for -force_load linker flag... " >&6; }
8950if test ${lt_cv_ld_force_load+y}
8951then :
8952  printf %s "(cached) " >&6
8953else $as_nop
8954  lt_cv_ld_force_load=no
8955      cat > conftest.c << _LT_EOF
8956int forced_loaded() { return 2;}
8957_LT_EOF
8958      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8959      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8960      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8961      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8962      echo "$RANLIB libconftest.a" >&5
8963      $RANLIB libconftest.a 2>&5
8964      cat > conftest.c << _LT_EOF
8965int main() { return 0;}
8966_LT_EOF
8967      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8968      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8969      _lt_result=$?
8970      if test -s conftest.err && $GREP force_load conftest.err; then
8971	cat conftest.err >&5
8972      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8973	lt_cv_ld_force_load=yes
8974      else
8975	cat conftest.err >&5
8976      fi
8977        rm -f conftest.err libconftest.a conftest conftest.c
8978        rm -rf conftest.dSYM
8979
8980fi
8981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8982printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8983    case $host_os in
8984    rhapsody* | darwin1.[012])
8985      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8986    darwin1.*)
8987      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8988    darwin*) # darwin 5.x on
8989      # if running on 10.5 or later, the deployment target defaults
8990      # to the OS version, if on x86, and 10.4, the deployment
8991      # target defaults to 10.4. Don't you love it?
8992      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8993	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8994	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8995	10.[012][,.]*)
8996	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8997	10.*)
8998	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8999      esac
9000    ;;
9001  esac
9002    if test yes = "$lt_cv_apple_cc_single_mod"; then
9003      _lt_dar_single_mod='$single_module'
9004    fi
9005    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9006      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9007    else
9008      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9009    fi
9010    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9011      _lt_dsymutil='~$DSYMUTIL $lib || :'
9012    else
9013      _lt_dsymutil=
9014    fi
9015    ;;
9016  esac
9017
9018# func_munge_path_list VARIABLE PATH
9019# -----------------------------------
9020# VARIABLE is name of variable containing _space_ separated list of
9021# directories to be munged by the contents of PATH, which is string
9022# having a format:
9023# "DIR[:DIR]:"
9024#       string "DIR[ DIR]" will be prepended to VARIABLE
9025# ":DIR[:DIR]"
9026#       string "DIR[ DIR]" will be appended to VARIABLE
9027# "DIRP[:DIRP]::[DIRA:]DIRA"
9028#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9029#       "DIRA[ DIRA]" will be appended to VARIABLE
9030# "DIR[:DIR]"
9031#       VARIABLE will be replaced by "DIR[ DIR]"
9032func_munge_path_list ()
9033{
9034    case x$2 in
9035    x)
9036        ;;
9037    *:)
9038        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9039        ;;
9040    x:*)
9041        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9042        ;;
9043    *::*)
9044        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9045        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9046        ;;
9047    *)
9048        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9049        ;;
9050    esac
9051}
9052
9053ac_header= ac_cache=
9054for ac_item in $ac_header_c_list
9055do
9056  if test $ac_cache; then
9057    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9058    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9059      printf "%s\n" "#define $ac_item 1" >> confdefs.h
9060    fi
9061    ac_header= ac_cache=
9062  elif test $ac_header; then
9063    ac_cache=$ac_item
9064  else
9065    ac_header=$ac_item
9066  fi
9067done
9068
9069
9070
9071
9072
9073
9074
9075
9076if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9077then :
9078
9079printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9080
9081fi
9082ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9083"
9084if test "x$ac_cv_header_dlfcn_h" = xyes
9085then :
9086  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9087
9088fi
9089
9090
9091
9092func_stripname_cnf ()
9093{
9094  case $2 in
9095  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9096  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9097  esac
9098} # func_stripname_cnf
9099
9100
9101
9102
9103
9104# Set options
9105
9106
9107
9108        enable_dlopen=no
9109
9110
9111  enable_win32_dll=no
9112
9113
9114            # Check whether --enable-shared was given.
9115if test ${enable_shared+y}
9116then :
9117  enableval=$enable_shared; p=${PACKAGE-default}
9118    case $enableval in
9119    yes) enable_shared=yes ;;
9120    no) enable_shared=no ;;
9121    *)
9122      enable_shared=no
9123      # Look at the argument we got.  We use all the common list separators.
9124      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9125      for pkg in $enableval; do
9126	IFS=$lt_save_ifs
9127	if test "X$pkg" = "X$p"; then
9128	  enable_shared=yes
9129	fi
9130      done
9131      IFS=$lt_save_ifs
9132      ;;
9133    esac
9134else $as_nop
9135  enable_shared=yes
9136fi
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146  # Check whether --enable-static was given.
9147if test ${enable_static+y}
9148then :
9149  enableval=$enable_static; p=${PACKAGE-default}
9150    case $enableval in
9151    yes) enable_static=yes ;;
9152    no) enable_static=no ;;
9153    *)
9154     enable_static=no
9155      # Look at the argument we got.  We use all the common list separators.
9156      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9157      for pkg in $enableval; do
9158	IFS=$lt_save_ifs
9159	if test "X$pkg" = "X$p"; then
9160	  enable_static=yes
9161	fi
9162      done
9163      IFS=$lt_save_ifs
9164      ;;
9165    esac
9166else $as_nop
9167  enable_static=yes
9168fi
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179# Check whether --with-pic was given.
9180if test ${with_pic+y}
9181then :
9182  withval=$with_pic; lt_p=${PACKAGE-default}
9183    case $withval in
9184    yes|no) pic_mode=$withval ;;
9185    *)
9186      pic_mode=default
9187      # Look at the argument we got.  We use all the common list separators.
9188      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9189      for lt_pkg in $withval; do
9190	IFS=$lt_save_ifs
9191	if test "X$lt_pkg" = "X$lt_p"; then
9192	  pic_mode=yes
9193	fi
9194      done
9195      IFS=$lt_save_ifs
9196      ;;
9197    esac
9198else $as_nop
9199  pic_mode=default
9200fi
9201
9202
9203
9204
9205
9206
9207
9208
9209  # Check whether --enable-fast-install was given.
9210if test ${enable_fast_install+y}
9211then :
9212  enableval=$enable_fast_install; p=${PACKAGE-default}
9213    case $enableval in
9214    yes) enable_fast_install=yes ;;
9215    no) enable_fast_install=no ;;
9216    *)
9217      enable_fast_install=no
9218      # Look at the argument we got.  We use all the common list separators.
9219      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9220      for pkg in $enableval; do
9221	IFS=$lt_save_ifs
9222	if test "X$pkg" = "X$p"; then
9223	  enable_fast_install=yes
9224	fi
9225      done
9226      IFS=$lt_save_ifs
9227      ;;
9228    esac
9229else $as_nop
9230  enable_fast_install=yes
9231fi
9232
9233
9234
9235
9236
9237
9238
9239
9240  shared_archive_member_spec=
9241case $host,$enable_shared in
9242power*-*-aix[5-9]*,yes)
9243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9244printf %s "checking which variant of shared library versioning to provide... " >&6; }
9245
9246# Check whether --with-aix-soname was given.
9247if test ${with_aix_soname+y}
9248then :
9249  withval=$with_aix_soname; case $withval in
9250    aix|svr4|both)
9251      ;;
9252    *)
9253      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9254      ;;
9255    esac
9256    lt_cv_with_aix_soname=$with_aix_soname
9257else $as_nop
9258  if test ${lt_cv_with_aix_soname+y}
9259then :
9260  printf %s "(cached) " >&6
9261else $as_nop
9262  lt_cv_with_aix_soname=aix
9263fi
9264
9265    with_aix_soname=$lt_cv_with_aix_soname
9266fi
9267
9268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9269printf "%s\n" "$with_aix_soname" >&6; }
9270  if test aix != "$with_aix_soname"; then
9271    # For the AIX way of multilib, we name the shared archive member
9272    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9273    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9274    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9275    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9276    if test 64 = "${OBJECT_MODE-32}"; then
9277      shared_archive_member_spec=shr_64
9278    else
9279      shared_archive_member_spec=shr
9280    fi
9281  fi
9282  ;;
9283*)
9284  with_aix_soname=aix
9285  ;;
9286esac
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297# This can be used to rebuild libtool when needed
9298LIBTOOL_DEPS=$ltmain
9299
9300# Always use our own libtool.
9301LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332test -z "$LN_S" && LN_S="ln -s"
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347if test -n "${ZSH_VERSION+set}"; then
9348   setopt NO_GLOB_SUBST
9349fi
9350
9351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9352printf %s "checking for objdir... " >&6; }
9353if test ${lt_cv_objdir+y}
9354then :
9355  printf %s "(cached) " >&6
9356else $as_nop
9357  rm -f .libs 2>/dev/null
9358mkdir .libs 2>/dev/null
9359if test -d .libs; then
9360  lt_cv_objdir=.libs
9361else
9362  # MS-DOS does not allow filenames that begin with a dot.
9363  lt_cv_objdir=_libs
9364fi
9365rmdir .libs 2>/dev/null
9366fi
9367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9368printf "%s\n" "$lt_cv_objdir" >&6; }
9369objdir=$lt_cv_objdir
9370
9371
9372
9373
9374
9375printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9376
9377
9378
9379
9380case $host_os in
9381aix3*)
9382  # AIX sometimes has problems with the GCC collect2 program.  For some
9383  # reason, if we set the COLLECT_NAMES environment variable, the problems
9384  # vanish in a puff of smoke.
9385  if test set != "${COLLECT_NAMES+set}"; then
9386    COLLECT_NAMES=
9387    export COLLECT_NAMES
9388  fi
9389  ;;
9390esac
9391
9392# Global variables:
9393ofile=libtool
9394can_build_shared=yes
9395
9396# All known linkers require a '.a' archive for static linking (except MSVC and
9397# ICC, which need '.lib').
9398libext=a
9399
9400with_gnu_ld=$lt_cv_prog_gnu_ld
9401
9402old_CC=$CC
9403old_CFLAGS=$CFLAGS
9404
9405# Set sane defaults for various variables
9406test -z "$CC" && CC=cc
9407test -z "$LTCC" && LTCC=$CC
9408test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9409test -z "$LD" && LD=ld
9410test -z "$ac_objext" && ac_objext=o
9411
9412func_cc_basename $compiler
9413cc_basename=$func_cc_basename_result
9414
9415
9416# Only perform the check for file, if the check method requires it
9417test -z "$MAGIC_CMD" && MAGIC_CMD=file
9418case $deplibs_check_method in
9419file_magic*)
9420  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9421    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9422printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9423if test ${lt_cv_path_MAGIC_CMD+y}
9424then :
9425  printf %s "(cached) " >&6
9426else $as_nop
9427  case $MAGIC_CMD in
9428[\\/*] |  ?:[\\/]*)
9429  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9430  ;;
9431*)
9432  lt_save_MAGIC_CMD=$MAGIC_CMD
9433  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9434  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9435  for ac_dir in $ac_dummy; do
9436    IFS=$lt_save_ifs
9437    test -z "$ac_dir" && ac_dir=.
9438    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9439      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9440      if test -n "$file_magic_test_file"; then
9441	case $deplibs_check_method in
9442	"file_magic "*)
9443	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9444	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9445	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9446	    $EGREP "$file_magic_regex" > /dev/null; then
9447	    :
9448	  else
9449	    cat <<_LT_EOF 1>&2
9450
9451*** Warning: the command libtool uses to detect shared libraries,
9452*** $file_magic_cmd, produces output that libtool cannot recognize.
9453*** The result is that libtool may fail to recognize shared libraries
9454*** as such.  This will affect the creation of libtool libraries that
9455*** depend on shared libraries, but programs linked with such libtool
9456*** libraries will work regardless of this problem.  Nevertheless, you
9457*** may want to report the problem to your system manager and/or to
9458*** bug-libtool@gnu.org
9459
9460_LT_EOF
9461	  fi ;;
9462	esac
9463      fi
9464      break
9465    fi
9466  done
9467  IFS=$lt_save_ifs
9468  MAGIC_CMD=$lt_save_MAGIC_CMD
9469  ;;
9470esac
9471fi
9472
9473MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9474if test -n "$MAGIC_CMD"; then
9475  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9476printf "%s\n" "$MAGIC_CMD" >&6; }
9477else
9478  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479printf "%s\n" "no" >&6; }
9480fi
9481
9482
9483
9484
9485
9486if test -z "$lt_cv_path_MAGIC_CMD"; then
9487  if test -n "$ac_tool_prefix"; then
9488    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9489printf %s "checking for file... " >&6; }
9490if test ${lt_cv_path_MAGIC_CMD+y}
9491then :
9492  printf %s "(cached) " >&6
9493else $as_nop
9494  case $MAGIC_CMD in
9495[\\/*] |  ?:[\\/]*)
9496  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9497  ;;
9498*)
9499  lt_save_MAGIC_CMD=$MAGIC_CMD
9500  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9501  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9502  for ac_dir in $ac_dummy; do
9503    IFS=$lt_save_ifs
9504    test -z "$ac_dir" && ac_dir=.
9505    if test -f "$ac_dir/file"; then
9506      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9507      if test -n "$file_magic_test_file"; then
9508	case $deplibs_check_method in
9509	"file_magic "*)
9510	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9511	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9512	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9513	    $EGREP "$file_magic_regex" > /dev/null; then
9514	    :
9515	  else
9516	    cat <<_LT_EOF 1>&2
9517
9518*** Warning: the command libtool uses to detect shared libraries,
9519*** $file_magic_cmd, produces output that libtool cannot recognize.
9520*** The result is that libtool may fail to recognize shared libraries
9521*** as such.  This will affect the creation of libtool libraries that
9522*** depend on shared libraries, but programs linked with such libtool
9523*** libraries will work regardless of this problem.  Nevertheless, you
9524*** may want to report the problem to your system manager and/or to
9525*** bug-libtool@gnu.org
9526
9527_LT_EOF
9528	  fi ;;
9529	esac
9530      fi
9531      break
9532    fi
9533  done
9534  IFS=$lt_save_ifs
9535  MAGIC_CMD=$lt_save_MAGIC_CMD
9536  ;;
9537esac
9538fi
9539
9540MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9541if test -n "$MAGIC_CMD"; then
9542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9543printf "%s\n" "$MAGIC_CMD" >&6; }
9544else
9545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9546printf "%s\n" "no" >&6; }
9547fi
9548
9549
9550  else
9551    MAGIC_CMD=:
9552  fi
9553fi
9554
9555  fi
9556  ;;
9557esac
9558
9559# Use C for the default configuration in the libtool script
9560
9561lt_save_CC=$CC
9562ac_ext=c
9563ac_cpp='$CPP $CPPFLAGS'
9564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9566ac_compiler_gnu=$ac_cv_c_compiler_gnu
9567
9568
9569# Source file extension for C test sources.
9570ac_ext=c
9571
9572# Object file extension for compiled C test sources.
9573objext=o
9574objext=$objext
9575
9576# Code to be used in simple compile tests
9577lt_simple_compile_test_code="int some_variable = 0;"
9578
9579# Code to be used in simple link tests
9580lt_simple_link_test_code='int main(){return(0);}'
9581
9582
9583
9584
9585
9586
9587
9588# If no C compiler was specified, use CC.
9589LTCC=${LTCC-"$CC"}
9590
9591# If no C compiler flags were specified, use CFLAGS.
9592LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9593
9594# Allow CC to be a program name with arguments.
9595compiler=$CC
9596
9597# Save the default compiler, since it gets overwritten when the other
9598# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9599compiler_DEFAULT=$CC
9600
9601# save warnings/boilerplate of simple test code
9602ac_outfile=conftest.$ac_objext
9603echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9604eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9605_lt_compiler_boilerplate=`cat conftest.err`
9606$RM conftest*
9607
9608ac_outfile=conftest.$ac_objext
9609echo "$lt_simple_link_test_code" >conftest.$ac_ext
9610eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9611_lt_linker_boilerplate=`cat conftest.err`
9612$RM -r conftest*
9613
9614
9615## CAVEAT EMPTOR:
9616## There is no encapsulation within the following macros, do not change
9617## the running order or otherwise move them around unless you know exactly
9618## what you are doing...
9619if test -n "$compiler"; then
9620
9621lt_prog_compiler_no_builtin_flag=
9622
9623if test yes = "$GCC"; then
9624  case $cc_basename in
9625  nvcc*)
9626    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9627  *)
9628    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9629  esac
9630
9631  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9632printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9633if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9634then :
9635  printf %s "(cached) " >&6
9636else $as_nop
9637  lt_cv_prog_compiler_rtti_exceptions=no
9638   ac_outfile=conftest.$ac_objext
9639   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9640   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9641   # Insert the option either (1) after the last *FLAGS variable, or
9642   # (2) before a word containing "conftest.", or (3) at the end.
9643   # Note that $ac_compile itself does not contain backslashes and begins
9644   # with a dollar sign (not a hyphen), so the echo should work correctly.
9645   # The option is referenced via a variable to avoid confusing sed.
9646   lt_compile=`echo "$ac_compile" | $SED \
9647   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9648   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9649   -e 's:$: $lt_compiler_flag:'`
9650   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9651   (eval "$lt_compile" 2>conftest.err)
9652   ac_status=$?
9653   cat conftest.err >&5
9654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655   if (exit $ac_status) && test -s "$ac_outfile"; then
9656     # The compiler can only warn and ignore the option if not recognized
9657     # So say no if there are warnings other than the usual output.
9658     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9659     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9660     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9661       lt_cv_prog_compiler_rtti_exceptions=yes
9662     fi
9663   fi
9664   $RM conftest*
9665
9666fi
9667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9668printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9669
9670if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9671    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9672else
9673    :
9674fi
9675
9676fi
9677
9678
9679
9680
9681
9682
9683  lt_prog_compiler_wl=
9684lt_prog_compiler_pic=
9685lt_prog_compiler_static=
9686
9687
9688  if test yes = "$GCC"; then
9689    lt_prog_compiler_wl='-Wl,'
9690    lt_prog_compiler_static='-static'
9691
9692    case $host_os in
9693      aix*)
9694      # All AIX code is PIC.
9695      if test ia64 = "$host_cpu"; then
9696	# AIX 5 now supports IA64 processor
9697	lt_prog_compiler_static='-Bstatic'
9698      fi
9699      lt_prog_compiler_pic='-fPIC'
9700      ;;
9701
9702    amigaos*)
9703      case $host_cpu in
9704      powerpc)
9705            # see comment about AmigaOS4 .so support
9706            lt_prog_compiler_pic='-fPIC'
9707        ;;
9708      m68k)
9709            # FIXME: we need at least 68020 code to build shared libraries, but
9710            # adding the '-m68020' flag to GCC prevents building anything better,
9711            # like '-m68040'.
9712            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9713        ;;
9714      esac
9715      ;;
9716
9717    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9718      # PIC is the default for these OSes.
9719      ;;
9720
9721    mingw* | cygwin* | pw32* | os2* | cegcc*)
9722      # This hack is so that the source file can tell whether it is being
9723      # built for inclusion in a dll (and should export symbols for example).
9724      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9725      # (--disable-auto-import) libraries
9726      lt_prog_compiler_pic='-DDLL_EXPORT'
9727      case $host_os in
9728      os2*)
9729	lt_prog_compiler_static='$wl-static'
9730	;;
9731      esac
9732      ;;
9733
9734    darwin* | rhapsody*)
9735      # PIC is the default on this platform
9736      # Common symbols not allowed in MH_DYLIB files
9737      lt_prog_compiler_pic='-fno-common'
9738      ;;
9739
9740    haiku*)
9741      # PIC is the default for Haiku.
9742      # The "-static" flag exists, but is broken.
9743      lt_prog_compiler_static=
9744      ;;
9745
9746    hpux*)
9747      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9748      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9749      # sets the default TLS model and affects inlining.
9750      case $host_cpu in
9751      hppa*64*)
9752	# +Z the default
9753	;;
9754      *)
9755	lt_prog_compiler_pic='-fPIC'
9756	;;
9757      esac
9758      ;;
9759
9760    interix[3-9]*)
9761      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9762      # Instead, we relocate shared libraries at runtime.
9763      ;;
9764
9765    msdosdjgpp*)
9766      # Just because we use GCC doesn't mean we suddenly get shared libraries
9767      # on systems that don't support them.
9768      lt_prog_compiler_can_build_shared=no
9769      enable_shared=no
9770      ;;
9771
9772    *nto* | *qnx*)
9773      # QNX uses GNU C++, but need to define -shared option too, otherwise
9774      # it will coredump.
9775      lt_prog_compiler_pic='-fPIC -shared'
9776      ;;
9777
9778    sysv4*MP*)
9779      if test -d /usr/nec; then
9780	lt_prog_compiler_pic=-Kconform_pic
9781      fi
9782      ;;
9783
9784    *)
9785      lt_prog_compiler_pic='-fPIC'
9786      ;;
9787    esac
9788
9789    case $cc_basename in
9790    nvcc*) # Cuda Compiler Driver 2.2
9791      lt_prog_compiler_wl='-Xlinker '
9792      if test -n "$lt_prog_compiler_pic"; then
9793        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9794      fi
9795      ;;
9796    esac
9797  else
9798    # PORTME Check for flag to pass linker flags through the system compiler.
9799    case $host_os in
9800    aix*)
9801      lt_prog_compiler_wl='-Wl,'
9802      if test ia64 = "$host_cpu"; then
9803	# AIX 5 now supports IA64 processor
9804	lt_prog_compiler_static='-Bstatic'
9805      else
9806	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9807      fi
9808      ;;
9809
9810    darwin* | rhapsody*)
9811      # PIC is the default on this platform
9812      # Common symbols not allowed in MH_DYLIB files
9813      lt_prog_compiler_pic='-fno-common'
9814      case $cc_basename in
9815      nagfor*)
9816        # NAG Fortran compiler
9817        lt_prog_compiler_wl='-Wl,-Wl,,'
9818        lt_prog_compiler_pic='-PIC'
9819        lt_prog_compiler_static='-Bstatic'
9820        ;;
9821      esac
9822      ;;
9823
9824    mingw* | cygwin* | pw32* | os2* | cegcc*)
9825      # This hack is so that the source file can tell whether it is being
9826      # built for inclusion in a dll (and should export symbols for example).
9827      lt_prog_compiler_pic='-DDLL_EXPORT'
9828      case $host_os in
9829      os2*)
9830	lt_prog_compiler_static='$wl-static'
9831	;;
9832      esac
9833      ;;
9834
9835    hpux9* | hpux10* | hpux11*)
9836      lt_prog_compiler_wl='-Wl,'
9837      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9838      # not for PA HP-UX.
9839      case $host_cpu in
9840      hppa*64*|ia64*)
9841	# +Z the default
9842	;;
9843      *)
9844	lt_prog_compiler_pic='+Z'
9845	;;
9846      esac
9847      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9848      lt_prog_compiler_static='$wl-a ${wl}archive'
9849      ;;
9850
9851    irix5* | irix6* | nonstopux*)
9852      lt_prog_compiler_wl='-Wl,'
9853      # PIC (with -KPIC) is the default.
9854      lt_prog_compiler_static='-non_shared'
9855      ;;
9856
9857    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9858      case $cc_basename in
9859      # old Intel for x86_64, which still supported -KPIC.
9860      ecc*)
9861	lt_prog_compiler_wl='-Wl,'
9862	lt_prog_compiler_pic='-KPIC'
9863	lt_prog_compiler_static='-static'
9864        ;;
9865      # icc used to be incompatible with GCC.
9866      # ICC 10 doesn't accept -KPIC any more.
9867      icc* | ifort*)
9868	lt_prog_compiler_wl='-Wl,'
9869	lt_prog_compiler_pic='-fPIC'
9870	lt_prog_compiler_static='-static'
9871        ;;
9872      # Lahey Fortran 8.1.
9873      lf95*)
9874	lt_prog_compiler_wl='-Wl,'
9875	lt_prog_compiler_pic='--shared'
9876	lt_prog_compiler_static='--static'
9877	;;
9878      nagfor*)
9879	# NAG Fortran compiler
9880	lt_prog_compiler_wl='-Wl,-Wl,,'
9881	lt_prog_compiler_pic='-PIC'
9882	lt_prog_compiler_static='-Bstatic'
9883	;;
9884      tcc*)
9885	# Fabrice Bellard et al's Tiny C Compiler
9886	lt_prog_compiler_wl='-Wl,'
9887	lt_prog_compiler_pic='-fPIC'
9888	lt_prog_compiler_static='-static'
9889	;;
9890      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9891        # Portland Group compilers (*not* the Pentium gcc compiler,
9892	# which looks to be a dead project)
9893	lt_prog_compiler_wl='-Wl,'
9894	lt_prog_compiler_pic='-fpic'
9895	lt_prog_compiler_static='-Bstatic'
9896        ;;
9897      ccc*)
9898        lt_prog_compiler_wl='-Wl,'
9899        # All Alpha code is PIC.
9900        lt_prog_compiler_static='-non_shared'
9901        ;;
9902      xl* | bgxl* | bgf* | mpixl*)
9903	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9904	lt_prog_compiler_wl='-Wl,'
9905	lt_prog_compiler_pic='-qpic'
9906	lt_prog_compiler_static='-qstaticlink'
9907	;;
9908      *)
9909	case `$CC -V 2>&1 | sed 5q` in
9910	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9911	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9912	  lt_prog_compiler_pic='-KPIC'
9913	  lt_prog_compiler_static='-Bstatic'
9914	  lt_prog_compiler_wl=''
9915	  ;;
9916	*Sun\ F* | *Sun*Fortran*)
9917	  lt_prog_compiler_pic='-KPIC'
9918	  lt_prog_compiler_static='-Bstatic'
9919	  lt_prog_compiler_wl='-Qoption ld '
9920	  ;;
9921	*Sun\ C*)
9922	  # Sun C 5.9
9923	  lt_prog_compiler_pic='-KPIC'
9924	  lt_prog_compiler_static='-Bstatic'
9925	  lt_prog_compiler_wl='-Wl,'
9926	  ;;
9927        *Intel*\ [CF]*Compiler*)
9928	  lt_prog_compiler_wl='-Wl,'
9929	  lt_prog_compiler_pic='-fPIC'
9930	  lt_prog_compiler_static='-static'
9931	  ;;
9932	*Portland\ Group*)
9933	  lt_prog_compiler_wl='-Wl,'
9934	  lt_prog_compiler_pic='-fpic'
9935	  lt_prog_compiler_static='-Bstatic'
9936	  ;;
9937	esac
9938	;;
9939      esac
9940      ;;
9941
9942    newsos6)
9943      lt_prog_compiler_pic='-KPIC'
9944      lt_prog_compiler_static='-Bstatic'
9945      ;;
9946
9947    *nto* | *qnx*)
9948      # QNX uses GNU C++, but need to define -shared option too, otherwise
9949      # it will coredump.
9950      lt_prog_compiler_pic='-fPIC -shared'
9951      ;;
9952
9953    osf3* | osf4* | osf5*)
9954      lt_prog_compiler_wl='-Wl,'
9955      # All OSF/1 code is PIC.
9956      lt_prog_compiler_static='-non_shared'
9957      ;;
9958
9959    rdos*)
9960      lt_prog_compiler_static='-non_shared'
9961      ;;
9962
9963    solaris*)
9964      lt_prog_compiler_pic='-KPIC'
9965      lt_prog_compiler_static='-Bstatic'
9966      case $cc_basename in
9967      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9968	lt_prog_compiler_wl='-Qoption ld ';;
9969      *)
9970	lt_prog_compiler_wl='-Wl,';;
9971      esac
9972      ;;
9973
9974    sunos4*)
9975      lt_prog_compiler_wl='-Qoption ld '
9976      lt_prog_compiler_pic='-PIC'
9977      lt_prog_compiler_static='-Bstatic'
9978      ;;
9979
9980    sysv4 | sysv4.2uw2* | sysv4.3*)
9981      lt_prog_compiler_wl='-Wl,'
9982      lt_prog_compiler_pic='-KPIC'
9983      lt_prog_compiler_static='-Bstatic'
9984      ;;
9985
9986    sysv4*MP*)
9987      if test -d /usr/nec; then
9988	lt_prog_compiler_pic='-Kconform_pic'
9989	lt_prog_compiler_static='-Bstatic'
9990      fi
9991      ;;
9992
9993    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9994      lt_prog_compiler_wl='-Wl,'
9995      lt_prog_compiler_pic='-KPIC'
9996      lt_prog_compiler_static='-Bstatic'
9997      ;;
9998
9999    unicos*)
10000      lt_prog_compiler_wl='-Wl,'
10001      lt_prog_compiler_can_build_shared=no
10002      ;;
10003
10004    uts4*)
10005      lt_prog_compiler_pic='-pic'
10006      lt_prog_compiler_static='-Bstatic'
10007      ;;
10008
10009    *)
10010      lt_prog_compiler_can_build_shared=no
10011      ;;
10012    esac
10013  fi
10014
10015case $host_os in
10016  # For platforms that do not support PIC, -DPIC is meaningless:
10017  *djgpp*)
10018    lt_prog_compiler_pic=
10019    ;;
10020  *)
10021    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10022    ;;
10023esac
10024
10025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10026printf %s "checking for $compiler option to produce PIC... " >&6; }
10027if test ${lt_cv_prog_compiler_pic+y}
10028then :
10029  printf %s "(cached) " >&6
10030else $as_nop
10031  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10032fi
10033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10034printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10035lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10036
10037#
10038# Check to make sure the PIC flag actually works.
10039#
10040if test -n "$lt_prog_compiler_pic"; then
10041  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10042printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10043if test ${lt_cv_prog_compiler_pic_works+y}
10044then :
10045  printf %s "(cached) " >&6
10046else $as_nop
10047  lt_cv_prog_compiler_pic_works=no
10048   ac_outfile=conftest.$ac_objext
10049   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10050   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10051   # Insert the option either (1) after the last *FLAGS variable, or
10052   # (2) before a word containing "conftest.", or (3) at the end.
10053   # Note that $ac_compile itself does not contain backslashes and begins
10054   # with a dollar sign (not a hyphen), so the echo should work correctly.
10055   # The option is referenced via a variable to avoid confusing sed.
10056   lt_compile=`echo "$ac_compile" | $SED \
10057   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10058   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10059   -e 's:$: $lt_compiler_flag:'`
10060   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10061   (eval "$lt_compile" 2>conftest.err)
10062   ac_status=$?
10063   cat conftest.err >&5
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   if (exit $ac_status) && test -s "$ac_outfile"; then
10066     # The compiler can only warn and ignore the option if not recognized
10067     # So say no if there are warnings other than the usual output.
10068     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10069     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10070     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10071       lt_cv_prog_compiler_pic_works=yes
10072     fi
10073   fi
10074   $RM conftest*
10075
10076fi
10077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10078printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10079
10080if test yes = "$lt_cv_prog_compiler_pic_works"; then
10081    case $lt_prog_compiler_pic in
10082     "" | " "*) ;;
10083     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10084     esac
10085else
10086    lt_prog_compiler_pic=
10087     lt_prog_compiler_can_build_shared=no
10088fi
10089
10090fi
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102#
10103# Check to make sure the static flag actually works.
10104#
10105wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10107printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10108if test ${lt_cv_prog_compiler_static_works+y}
10109then :
10110  printf %s "(cached) " >&6
10111else $as_nop
10112  lt_cv_prog_compiler_static_works=no
10113   save_LDFLAGS=$LDFLAGS
10114   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10115   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10116   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10117     # The linker can only warn and ignore the option if not recognized
10118     # So say no if there are warnings
10119     if test -s conftest.err; then
10120       # Append any errors to the config.log.
10121       cat conftest.err 1>&5
10122       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10123       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10124       if diff conftest.exp conftest.er2 >/dev/null; then
10125         lt_cv_prog_compiler_static_works=yes
10126       fi
10127     else
10128       lt_cv_prog_compiler_static_works=yes
10129     fi
10130   fi
10131   $RM -r conftest*
10132   LDFLAGS=$save_LDFLAGS
10133
10134fi
10135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10136printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10137
10138if test yes = "$lt_cv_prog_compiler_static_works"; then
10139    :
10140else
10141    lt_prog_compiler_static=
10142fi
10143
10144
10145
10146
10147
10148
10149
10150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10151printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10152if test ${lt_cv_prog_compiler_c_o+y}
10153then :
10154  printf %s "(cached) " >&6
10155else $as_nop
10156  lt_cv_prog_compiler_c_o=no
10157   $RM -r conftest 2>/dev/null
10158   mkdir conftest
10159   cd conftest
10160   mkdir out
10161   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10162
10163   lt_compiler_flag="-o out/conftest2.$ac_objext"
10164   # Insert the option either (1) after the last *FLAGS variable, or
10165   # (2) before a word containing "conftest.", or (3) at the end.
10166   # Note that $ac_compile itself does not contain backslashes and begins
10167   # with a dollar sign (not a hyphen), so the echo should work correctly.
10168   lt_compile=`echo "$ac_compile" | $SED \
10169   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10170   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10171   -e 's:$: $lt_compiler_flag:'`
10172   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10173   (eval "$lt_compile" 2>out/conftest.err)
10174   ac_status=$?
10175   cat out/conftest.err >&5
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10178   then
10179     # The compiler can only warn and ignore the option if not recognized
10180     # So say no if there are warnings
10181     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10182     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10183     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10184       lt_cv_prog_compiler_c_o=yes
10185     fi
10186   fi
10187   chmod u+w . 2>&5
10188   $RM conftest*
10189   # SGI C++ compiler will create directory out/ii_files/ for
10190   # template instantiation
10191   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10192   $RM out/* && rmdir out
10193   cd ..
10194   $RM -r conftest
10195   $RM conftest*
10196
10197fi
10198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10199printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10200
10201
10202
10203
10204
10205
10206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10207printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10208if test ${lt_cv_prog_compiler_c_o+y}
10209then :
10210  printf %s "(cached) " >&6
10211else $as_nop
10212  lt_cv_prog_compiler_c_o=no
10213   $RM -r conftest 2>/dev/null
10214   mkdir conftest
10215   cd conftest
10216   mkdir out
10217   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10218
10219   lt_compiler_flag="-o out/conftest2.$ac_objext"
10220   # Insert the option either (1) after the last *FLAGS variable, or
10221   # (2) before a word containing "conftest.", or (3) at the end.
10222   # Note that $ac_compile itself does not contain backslashes and begins
10223   # with a dollar sign (not a hyphen), so the echo should work correctly.
10224   lt_compile=`echo "$ac_compile" | $SED \
10225   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10226   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10227   -e 's:$: $lt_compiler_flag:'`
10228   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10229   (eval "$lt_compile" 2>out/conftest.err)
10230   ac_status=$?
10231   cat out/conftest.err >&5
10232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10234   then
10235     # The compiler can only warn and ignore the option if not recognized
10236     # So say no if there are warnings
10237     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10238     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10239     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10240       lt_cv_prog_compiler_c_o=yes
10241     fi
10242   fi
10243   chmod u+w . 2>&5
10244   $RM conftest*
10245   # SGI C++ compiler will create directory out/ii_files/ for
10246   # template instantiation
10247   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10248   $RM out/* && rmdir out
10249   cd ..
10250   $RM -r conftest
10251   $RM conftest*
10252
10253fi
10254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10255printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10256
10257
10258
10259
10260hard_links=nottested
10261if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10262  # do not overwrite the value of need_locks provided by the user
10263  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10264printf %s "checking if we can lock with hard links... " >&6; }
10265  hard_links=yes
10266  $RM conftest*
10267  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10268  touch conftest.a
10269  ln conftest.a conftest.b 2>&5 || hard_links=no
10270  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10272printf "%s\n" "$hard_links" >&6; }
10273  if test no = "$hard_links"; then
10274    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10275printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10276    need_locks=warn
10277  fi
10278else
10279  need_locks=no
10280fi
10281
10282
10283
10284
10285
10286
10287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10288printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10289
10290  runpath_var=
10291  allow_undefined_flag=
10292  always_export_symbols=no
10293  archive_cmds=
10294  archive_expsym_cmds=
10295  compiler_needs_object=no
10296  enable_shared_with_static_runtimes=no
10297  export_dynamic_flag_spec=
10298  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10299  hardcode_automatic=no
10300  hardcode_direct=no
10301  hardcode_direct_absolute=no
10302  hardcode_libdir_flag_spec=
10303  hardcode_libdir_separator=
10304  hardcode_minus_L=no
10305  hardcode_shlibpath_var=unsupported
10306  inherit_rpath=no
10307  link_all_deplibs=unknown
10308  module_cmds=
10309  module_expsym_cmds=
10310  old_archive_from_new_cmds=
10311  old_archive_from_expsyms_cmds=
10312  thread_safe_flag_spec=
10313  whole_archive_flag_spec=
10314  # include_expsyms should be a list of space-separated symbols to be *always*
10315  # included in the symbol list
10316  include_expsyms=
10317  # exclude_expsyms can be an extended regexp of symbols to exclude
10318  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10319  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10320  # as well as any symbol that contains 'd'.
10321  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10322  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10323  # platforms (ab)use it in PIC code, but their linkers get confused if
10324  # the symbol is explicitly referenced.  Since portable code cannot
10325  # rely on this symbol name, it's probably fine to never include it in
10326  # preloaded symbol tables.
10327  # Exclude shared library initialization/finalization symbols.
10328  extract_expsyms_cmds=
10329
10330  case $host_os in
10331  cygwin* | mingw* | pw32* | cegcc*)
10332    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10333    # When not using gcc, we currently assume that we are using
10334    # Microsoft Visual C++ or Intel C++ Compiler.
10335    if test yes != "$GCC"; then
10336      with_gnu_ld=no
10337    fi
10338    ;;
10339  interix*)
10340    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10341    with_gnu_ld=yes
10342    ;;
10343  openbsd* | bitrig*)
10344    with_gnu_ld=no
10345    ;;
10346  esac
10347
10348  ld_shlibs=yes
10349
10350  # On some targets, GNU ld is compatible enough with the native linker
10351  # that we're better off using the native interface for both.
10352  lt_use_gnu_ld_interface=no
10353  if test yes = "$with_gnu_ld"; then
10354    case $host_os in
10355      aix*)
10356	# The AIX port of GNU ld has always aspired to compatibility
10357	# with the native linker.  However, as the warning in the GNU ld
10358	# block says, versions before 2.19.5* couldn't really create working
10359	# shared libraries, regardless of the interface used.
10360	case `$LD -v 2>&1` in
10361	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10362	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10363	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10364	  *)
10365	    lt_use_gnu_ld_interface=yes
10366	    ;;
10367	esac
10368	;;
10369      *)
10370	lt_use_gnu_ld_interface=yes
10371	;;
10372    esac
10373  fi
10374
10375  if test yes = "$lt_use_gnu_ld_interface"; then
10376    # If archive_cmds runs LD, not CC, wlarc should be empty
10377    wlarc='$wl'
10378
10379    # Set some defaults for GNU ld with shared library support. These
10380    # are reset later if shared libraries are not supported. Putting them
10381    # here allows them to be overridden if necessary.
10382    runpath_var=LD_RUN_PATH
10383    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10384    export_dynamic_flag_spec='$wl--export-dynamic'
10385    # ancient GNU ld didn't support --whole-archive et. al.
10386    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10387      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10388    else
10389      whole_archive_flag_spec=
10390    fi
10391    supports_anon_versioning=no
10392    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10393      *GNU\ gold*) supports_anon_versioning=yes ;;
10394      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10395      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10396      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10397      *\ 2.11.*) ;; # other 2.11 versions
10398      *) supports_anon_versioning=yes ;;
10399    esac
10400
10401    # See if GNU ld supports shared libraries.
10402    case $host_os in
10403    aix[3-9]*)
10404      # On AIX/PPC, the GNU linker is very broken
10405      if test ia64 != "$host_cpu"; then
10406	ld_shlibs=no
10407	cat <<_LT_EOF 1>&2
10408
10409*** Warning: the GNU linker, at least up to release 2.19, is reported
10410*** to be unable to reliably create shared libraries on AIX.
10411*** Therefore, libtool is disabling shared libraries support.  If you
10412*** really care for shared libraries, you may want to install binutils
10413*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10414*** You will then need to restart the configuration process.
10415
10416_LT_EOF
10417      fi
10418      ;;
10419
10420    amigaos*)
10421      case $host_cpu in
10422      powerpc)
10423            # see comment about AmigaOS4 .so support
10424            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10425            archive_expsym_cmds=''
10426        ;;
10427      m68k)
10428            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)'
10429            hardcode_libdir_flag_spec='-L$libdir'
10430            hardcode_minus_L=yes
10431        ;;
10432      esac
10433      ;;
10434
10435    beos*)
10436      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10437	allow_undefined_flag=unsupported
10438	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10439	# support --undefined.  This deserves some investigation.  FIXME
10440	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10441      else
10442	ld_shlibs=no
10443      fi
10444      ;;
10445
10446    cygwin* | mingw* | pw32* | cegcc*)
10447      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10448      # as there is no search path for DLLs.
10449      hardcode_libdir_flag_spec='-L$libdir'
10450      export_dynamic_flag_spec='$wl--export-all-symbols'
10451      allow_undefined_flag=unsupported
10452      always_export_symbols=no
10453      enable_shared_with_static_runtimes=yes
10454      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'
10455      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10456
10457      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10458        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10459	# If the export-symbols file already is a .def file, use it as
10460	# is; otherwise, prepend EXPORTS...
10461	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10462          cp $export_symbols $output_objdir/$soname.def;
10463        else
10464          echo EXPORTS > $output_objdir/$soname.def;
10465          cat $export_symbols >> $output_objdir/$soname.def;
10466        fi~
10467        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10468      else
10469	ld_shlibs=no
10470      fi
10471      ;;
10472
10473    haiku*)
10474      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10475      link_all_deplibs=yes
10476      ;;
10477
10478    os2*)
10479      hardcode_libdir_flag_spec='-L$libdir'
10480      hardcode_minus_L=yes
10481      allow_undefined_flag=unsupported
10482      shrext_cmds=.dll
10483      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10484	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10485	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10486	$ECHO EXPORTS >> $output_objdir/$libname.def~
10487	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10488	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10489	emximp -o $lib $output_objdir/$libname.def'
10490      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10491	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10492	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10493	$ECHO EXPORTS >> $output_objdir/$libname.def~
10494	prefix_cmds="$SED"~
10495	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10496	  prefix_cmds="$prefix_cmds -e 1d";
10497	fi~
10498	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10499	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10500	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10501	emximp -o $lib $output_objdir/$libname.def'
10502      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10503      enable_shared_with_static_runtimes=yes
10504      file_list_spec='@'
10505      ;;
10506
10507    interix[3-9]*)
10508      hardcode_direct=no
10509      hardcode_shlibpath_var=no
10510      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10511      export_dynamic_flag_spec='$wl-E'
10512      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10513      # Instead, shared libraries are loaded at an image base (0x10000000 by
10514      # default) and relocated if they conflict, which is a slow very memory
10515      # consuming and fragmenting process.  To avoid this, we pick a random,
10516      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10517      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10518      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10519      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'
10520      ;;
10521
10522    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10523      tmp_diet=no
10524      if test linux-dietlibc = "$host_os"; then
10525	case $cc_basename in
10526	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10527	esac
10528      fi
10529      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10530	 && test no = "$tmp_diet"
10531      then
10532	tmp_addflag=' $pic_flag'
10533	tmp_sharedflag='-shared'
10534	case $cc_basename,$host_cpu in
10535        pgcc*)				# Portland Group C compiler
10536	  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'
10537	  tmp_addflag=' $pic_flag'
10538	  ;;
10539	pgf77* | pgf90* | pgf95* | pgfortran*)
10540					# Portland Group f77 and f90 compilers
10541	  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'
10542	  tmp_addflag=' $pic_flag -Mnomain' ;;
10543	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10544	  tmp_addflag=' -i_dynamic' ;;
10545	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10546	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10547	ifc* | ifort*)			# Intel Fortran compiler
10548	  tmp_addflag=' -nofor_main' ;;
10549	lf95*)				# Lahey Fortran 8.1
10550	  whole_archive_flag_spec=
10551	  tmp_sharedflag='--shared' ;;
10552        nagfor*)                        # NAGFOR 5.3
10553          tmp_sharedflag='-Wl,-shared' ;;
10554	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10555	  tmp_sharedflag='-qmkshrobj'
10556	  tmp_addflag= ;;
10557	nvcc*)	# Cuda Compiler Driver 2.2
10558	  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'
10559	  compiler_needs_object=yes
10560	  ;;
10561	esac
10562	case `$CC -V 2>&1 | sed 5q` in
10563	*Sun\ C*)			# Sun C 5.9
10564	  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'
10565	  compiler_needs_object=yes
10566	  tmp_sharedflag='-G' ;;
10567	*Sun\ F*)			# Sun Fortran 8.3
10568	  tmp_sharedflag='-G' ;;
10569	esac
10570	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10571
10572        if test yes = "$supports_anon_versioning"; then
10573          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10574            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10575            echo "local: *; };" >> $output_objdir/$libname.ver~
10576            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10577        fi
10578
10579	case $cc_basename in
10580	tcc*)
10581	  export_dynamic_flag_spec='-rdynamic'
10582	  ;;
10583	xlf* | bgf* | bgxlf* | mpixlf*)
10584	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10585	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10586	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10587	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10588	  if test yes = "$supports_anon_versioning"; then
10589	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10590              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10591              echo "local: *; };" >> $output_objdir/$libname.ver~
10592              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10593	  fi
10594	  ;;
10595	esac
10596      else
10597        ld_shlibs=no
10598      fi
10599      ;;
10600
10601    netbsd*)
10602      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10603	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10604	wlarc=
10605      else
10606	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10607	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10608      fi
10609      ;;
10610
10611    solaris*)
10612      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10613	ld_shlibs=no
10614	cat <<_LT_EOF 1>&2
10615
10616*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10617*** create shared libraries on Solaris systems.  Therefore, libtool
10618*** is disabling shared libraries support.  We urge you to upgrade GNU
10619*** binutils to release 2.9.1 or newer.  Another option is to modify
10620*** your PATH or compiler configuration so that the native linker is
10621*** used, and then restart.
10622
10623_LT_EOF
10624      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10625	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10626	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10627      else
10628	ld_shlibs=no
10629      fi
10630      ;;
10631
10632    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10633      case `$LD -v 2>&1` in
10634        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10635	ld_shlibs=no
10636	cat <<_LT_EOF 1>&2
10637
10638*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10639*** reliably create shared libraries on SCO systems.  Therefore, libtool
10640*** is disabling shared libraries support.  We urge you to upgrade GNU
10641*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10642*** your PATH or compiler configuration so that the native linker is
10643*** used, and then restart.
10644
10645_LT_EOF
10646	;;
10647	*)
10648	  # For security reasons, it is highly recommended that you always
10649	  # use absolute paths for naming shared libraries, and exclude the
10650	  # DT_RUNPATH tag from executables and libraries.  But doing so
10651	  # requires that you compile everything twice, which is a pain.
10652	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10653	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10654	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10655	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10656	  else
10657	    ld_shlibs=no
10658	  fi
10659	;;
10660      esac
10661      ;;
10662
10663    sunos4*)
10664      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10665      wlarc=
10666      hardcode_direct=yes
10667      hardcode_shlibpath_var=no
10668      ;;
10669
10670    *)
10671      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10672	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10673	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10674      else
10675	ld_shlibs=no
10676      fi
10677      ;;
10678    esac
10679
10680    if test no = "$ld_shlibs"; then
10681      runpath_var=
10682      hardcode_libdir_flag_spec=
10683      export_dynamic_flag_spec=
10684      whole_archive_flag_spec=
10685    fi
10686  else
10687    # PORTME fill in a description of your system's linker (not GNU ld)
10688    case $host_os in
10689    aix3*)
10690      allow_undefined_flag=unsupported
10691      always_export_symbols=yes
10692      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'
10693      # Note: this linker hardcodes the directories in LIBPATH if there
10694      # are no directories specified by -L.
10695      hardcode_minus_L=yes
10696      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10697	# Neither direct hardcoding nor static linking is supported with a
10698	# broken collect2.
10699	hardcode_direct=unsupported
10700      fi
10701      ;;
10702
10703    aix[4-9]*)
10704      if test ia64 = "$host_cpu"; then
10705	# On IA64, the linker does run time linking by default, so we don't
10706	# have to do anything special.
10707	aix_use_runtimelinking=no
10708	exp_sym_flag='-Bexport'
10709	no_entry_flag=
10710      else
10711	# If we're using GNU nm, then we don't want the "-C" option.
10712	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10713	# Without the "-l" option, or with the "-B" option, AIX nm treats
10714	# weak defined symbols like other global defined symbols, whereas
10715	# GNU nm marks them as "W".
10716	# While the 'weak' keyword is ignored in the Export File, we need
10717	# it in the Import File for the 'aix-soname' feature, so we have
10718	# to replace the "-B" option with "-P" for AIX nm.
10719	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10720	  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'
10721	else
10722	  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 == "L") || (\$ 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'
10723	fi
10724	aix_use_runtimelinking=no
10725
10726	# Test if we are trying to use run time linking or normal
10727	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10728	# have runtime linking enabled, and use it for executables.
10729	# For shared libraries, we enable/disable runtime linking
10730	# depending on the kind of the shared library created -
10731	# when "with_aix_soname,aix_use_runtimelinking" is:
10732	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10733	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10734	#            lib.a           static archive
10735	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10736	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10737	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10738	#            lib.a(lib.so.V) shared, rtl:no
10739	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10740	#            lib.a           static archive
10741	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10742	  for ld_flag in $LDFLAGS; do
10743	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10744	    aix_use_runtimelinking=yes
10745	    break
10746	  fi
10747	  done
10748	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10749	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10750	    # so we don't have lib.a shared libs to link our executables.
10751	    # We have to force runtime linking in this case.
10752	    aix_use_runtimelinking=yes
10753	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10754	  fi
10755	  ;;
10756	esac
10757
10758	exp_sym_flag='-bexport'
10759	no_entry_flag='-bnoentry'
10760      fi
10761
10762      # When large executables or shared objects are built, AIX ld can
10763      # have problems creating the table of contents.  If linking a library
10764      # or program results in "error TOC overflow" add -mminimal-toc to
10765      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10766      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10767
10768      archive_cmds=''
10769      hardcode_direct=yes
10770      hardcode_direct_absolute=yes
10771      hardcode_libdir_separator=':'
10772      link_all_deplibs=yes
10773      file_list_spec='$wl-f,'
10774      case $with_aix_soname,$aix_use_runtimelinking in
10775      aix,*) ;; # traditional, no import file
10776      svr4,* | *,yes) # use import file
10777	# The Import File defines what to hardcode.
10778	hardcode_direct=no
10779	hardcode_direct_absolute=no
10780	;;
10781      esac
10782
10783      if test yes = "$GCC"; then
10784	case $host_os in aix4.[012]|aix4.[012].*)
10785	# We only want to do this on AIX 4.2 and lower, the check
10786	# below for broken collect2 doesn't work under 4.3+
10787	  collect2name=`$CC -print-prog-name=collect2`
10788	  if test -f "$collect2name" &&
10789	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10790	  then
10791	  # We have reworked collect2
10792	  :
10793	  else
10794	  # We have old collect2
10795	  hardcode_direct=unsupported
10796	  # It fails to find uninstalled libraries when the uninstalled
10797	  # path is not listed in the libpath.  Setting hardcode_minus_L
10798	  # to unsupported forces relinking
10799	  hardcode_minus_L=yes
10800	  hardcode_libdir_flag_spec='-L$libdir'
10801	  hardcode_libdir_separator=
10802	  fi
10803	  ;;
10804	esac
10805	shared_flag='-shared'
10806	if test yes = "$aix_use_runtimelinking"; then
10807	  shared_flag="$shared_flag "'$wl-G'
10808	fi
10809	# Need to ensure runtime linking is disabled for the traditional
10810	# shared library, or the linker may eventually find shared libraries
10811	# /with/ Import File - we do not want to mix them.
10812	shared_flag_aix='-shared'
10813	shared_flag_svr4='-shared $wl-G'
10814      else
10815	# not using gcc
10816	if test ia64 = "$host_cpu"; then
10817	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10818	# chokes on -Wl,-G. The following line is correct:
10819	  shared_flag='-G'
10820	else
10821	  if test yes = "$aix_use_runtimelinking"; then
10822	    shared_flag='$wl-G'
10823	  else
10824	    shared_flag='$wl-bM:SRE'
10825	  fi
10826	  shared_flag_aix='$wl-bM:SRE'
10827	  shared_flag_svr4='$wl-G'
10828	fi
10829      fi
10830
10831      export_dynamic_flag_spec='$wl-bexpall'
10832      # It seems that -bexpall does not export symbols beginning with
10833      # underscore (_), so it is better to generate a list of symbols to export.
10834      always_export_symbols=yes
10835      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10836	# Warning - without using the other runtime loading flags (-brtl),
10837	# -berok will link without error, but may produce a broken library.
10838	allow_undefined_flag='-berok'
10839        # Determine the default libpath from the value encoded in an
10840        # empty executable.
10841        if test set = "${lt_cv_aix_libpath+set}"; then
10842  aix_libpath=$lt_cv_aix_libpath
10843else
10844  if test ${lt_cv_aix_libpath_+y}
10845then :
10846  printf %s "(cached) " >&6
10847else $as_nop
10848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849/* end confdefs.h.  */
10850
10851int
10852main (void)
10853{
10854
10855  ;
10856  return 0;
10857}
10858_ACEOF
10859if ac_fn_c_try_link "$LINENO"
10860then :
10861
10862  lt_aix_libpath_sed='
10863      /Import File Strings/,/^$/ {
10864	  /^0/ {
10865	      s/^0  *\([^ ]*\) *$/\1/
10866	      p
10867	  }
10868      }'
10869  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10870  # Check for a 64-bit object if we didn't find anything.
10871  if test -z "$lt_cv_aix_libpath_"; then
10872    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10873  fi
10874fi
10875rm -f core conftest.err conftest.$ac_objext conftest.beam \
10876    conftest$ac_exeext conftest.$ac_ext
10877  if test -z "$lt_cv_aix_libpath_"; then
10878    lt_cv_aix_libpath_=/usr/lib:/lib
10879  fi
10880
10881fi
10882
10883  aix_libpath=$lt_cv_aix_libpath_
10884fi
10885
10886        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10887        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
10888      else
10889	if test ia64 = "$host_cpu"; then
10890	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10891	  allow_undefined_flag="-z nodefs"
10892	  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"
10893	else
10894	 # Determine the default libpath from the value encoded in an
10895	 # empty executable.
10896	 if test set = "${lt_cv_aix_libpath+set}"; then
10897  aix_libpath=$lt_cv_aix_libpath
10898else
10899  if test ${lt_cv_aix_libpath_+y}
10900then :
10901  printf %s "(cached) " >&6
10902else $as_nop
10903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10904/* end confdefs.h.  */
10905
10906int
10907main (void)
10908{
10909
10910  ;
10911  return 0;
10912}
10913_ACEOF
10914if ac_fn_c_try_link "$LINENO"
10915then :
10916
10917  lt_aix_libpath_sed='
10918      /Import File Strings/,/^$/ {
10919	  /^0/ {
10920	      s/^0  *\([^ ]*\) *$/\1/
10921	      p
10922	  }
10923      }'
10924  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10925  # Check for a 64-bit object if we didn't find anything.
10926  if test -z "$lt_cv_aix_libpath_"; then
10927    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10928  fi
10929fi
10930rm -f core conftest.err conftest.$ac_objext conftest.beam \
10931    conftest$ac_exeext conftest.$ac_ext
10932  if test -z "$lt_cv_aix_libpath_"; then
10933    lt_cv_aix_libpath_=/usr/lib:/lib
10934  fi
10935
10936fi
10937
10938  aix_libpath=$lt_cv_aix_libpath_
10939fi
10940
10941	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10942	  # Warning - without using the other run time loading flags,
10943	  # -berok will link without error, but may produce a broken library.
10944	  no_undefined_flag=' $wl-bernotok'
10945	  allow_undefined_flag=' $wl-berok'
10946	  if test yes = "$with_gnu_ld"; then
10947	    # We only use this code for GNU lds that support --whole-archive.
10948	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10949	  else
10950	    # Exported symbols can be pulled into shared objects from archives
10951	    whole_archive_flag_spec='$convenience'
10952	  fi
10953	  archive_cmds_need_lc=yes
10954	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10955	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10956	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10957	  if test svr4 != "$with_aix_soname"; then
10958	    # This is similar to how AIX traditionally builds its shared libraries.
10959	    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'
10960	  fi
10961	  if test aix != "$with_aix_soname"; then
10962	    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'
10963	  else
10964	    # used by -dlpreopen to get the symbols
10965	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10966	  fi
10967	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10968	fi
10969      fi
10970      ;;
10971
10972    amigaos*)
10973      case $host_cpu in
10974      powerpc)
10975            # see comment about AmigaOS4 .so support
10976            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10977            archive_expsym_cmds=''
10978        ;;
10979      m68k)
10980            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)'
10981            hardcode_libdir_flag_spec='-L$libdir'
10982            hardcode_minus_L=yes
10983        ;;
10984      esac
10985      ;;
10986
10987    bsdi[45]*)
10988      export_dynamic_flag_spec=-rdynamic
10989      ;;
10990
10991    cygwin* | mingw* | pw32* | cegcc*)
10992      # When not using gcc, we currently assume that we are using
10993      # Microsoft Visual C++ or Intel C++ Compiler.
10994      # hardcode_libdir_flag_spec is actually meaningless, as there is
10995      # no search path for DLLs.
10996      case $cc_basename in
10997      cl* | icl*)
10998	# Native MSVC or ICC
10999	hardcode_libdir_flag_spec=' '
11000	allow_undefined_flag=unsupported
11001	always_export_symbols=yes
11002	file_list_spec='@'
11003	# Tell ltmain to make .lib files, not .a files.
11004	libext=lib
11005	# Tell ltmain to make .dll files, not .so files.
11006	shrext_cmds=.dll
11007	# FIXME: Setting linknames here is a bad hack.
11008	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11009	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11010            cp "$export_symbols" "$output_objdir/$soname.def";
11011            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11012          else
11013            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11014          fi~
11015          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11016          linknames='
11017	# The linker will not automatically build a static lib if we build a DLL.
11018	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11019	enable_shared_with_static_runtimes=yes
11020	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11021	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11022	# Don't use ranlib
11023	old_postinstall_cmds='chmod 644 $oldlib'
11024	postlink_cmds='lt_outputfile="@OUTPUT@"~
11025          lt_tool_outputfile="@TOOL_OUTPUT@"~
11026          case $lt_outputfile in
11027            *.exe|*.EXE) ;;
11028            *)
11029              lt_outputfile=$lt_outputfile.exe
11030              lt_tool_outputfile=$lt_tool_outputfile.exe
11031              ;;
11032          esac~
11033          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11034            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11035            $RM "$lt_outputfile.manifest";
11036          fi'
11037	;;
11038      *)
11039	# Assume MSVC and ICC wrapper
11040	hardcode_libdir_flag_spec=' '
11041	allow_undefined_flag=unsupported
11042	# Tell ltmain to make .lib files, not .a files.
11043	libext=lib
11044	# Tell ltmain to make .dll files, not .so files.
11045	shrext_cmds=.dll
11046	# FIXME: Setting linknames here is a bad hack.
11047	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11048	# The linker will automatically build a .lib file if we build a DLL.
11049	old_archive_from_new_cmds='true'
11050	# FIXME: Should let the user specify the lib program.
11051	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11052	enable_shared_with_static_runtimes=yes
11053	;;
11054      esac
11055      ;;
11056
11057    darwin* | rhapsody*)
11058
11059
11060  archive_cmds_need_lc=no
11061  hardcode_direct=no
11062  hardcode_automatic=yes
11063  hardcode_shlibpath_var=unsupported
11064  if test yes = "$lt_cv_ld_force_load"; then
11065    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\"`'
11066
11067  else
11068    whole_archive_flag_spec=''
11069  fi
11070  link_all_deplibs=yes
11071  allow_undefined_flag=$_lt_dar_allow_undefined
11072  case $cc_basename in
11073     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11074     *) _lt_dar_can_shared=$GCC ;;
11075  esac
11076  if test yes = "$_lt_dar_can_shared"; then
11077    output_verbose_link_cmd=func_echo_all
11078    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11079    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11080    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"
11081    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"
11082
11083  else
11084  ld_shlibs=no
11085  fi
11086
11087      ;;
11088
11089    dgux*)
11090      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11091      hardcode_libdir_flag_spec='-L$libdir'
11092      hardcode_shlibpath_var=no
11093      ;;
11094
11095    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11096    # support.  Future versions do this automatically, but an explicit c++rt0.o
11097    # does not break anything, and helps significantly (at the cost of a little
11098    # extra space).
11099    freebsd2.2*)
11100      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11101      hardcode_libdir_flag_spec='-R$libdir'
11102      hardcode_direct=yes
11103      hardcode_shlibpath_var=no
11104      ;;
11105
11106    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11107    freebsd2.*)
11108      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11109      hardcode_direct=yes
11110      hardcode_minus_L=yes
11111      hardcode_shlibpath_var=no
11112      ;;
11113
11114    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11115    freebsd* | dragonfly*)
11116      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11117      hardcode_libdir_flag_spec='-R$libdir'
11118      hardcode_direct=yes
11119      hardcode_shlibpath_var=no
11120      ;;
11121
11122    hpux9*)
11123      if test yes = "$GCC"; then
11124	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'
11125      else
11126	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'
11127      fi
11128      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11129      hardcode_libdir_separator=:
11130      hardcode_direct=yes
11131
11132      # hardcode_minus_L: Not really in the search PATH,
11133      # but as the default location of the library.
11134      hardcode_minus_L=yes
11135      export_dynamic_flag_spec='$wl-E'
11136      ;;
11137
11138    hpux10*)
11139      if test yes,no = "$GCC,$with_gnu_ld"; then
11140	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11141      else
11142	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11143      fi
11144      if test no = "$with_gnu_ld"; then
11145	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11146	hardcode_libdir_separator=:
11147	hardcode_direct=yes
11148	hardcode_direct_absolute=yes
11149	export_dynamic_flag_spec='$wl-E'
11150	# hardcode_minus_L: Not really in the search PATH,
11151	# but as the default location of the library.
11152	hardcode_minus_L=yes
11153      fi
11154      ;;
11155
11156    hpux11*)
11157      if test yes,no = "$GCC,$with_gnu_ld"; then
11158	case $host_cpu in
11159	hppa*64*)
11160	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11161	  ;;
11162	ia64*)
11163	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11164	  ;;
11165	*)
11166	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11167	  ;;
11168	esac
11169      else
11170	case $host_cpu in
11171	hppa*64*)
11172	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11173	  ;;
11174	ia64*)
11175	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11176	  ;;
11177	*)
11178
11179	  # Older versions of the 11.00 compiler do not understand -b yet
11180	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11181	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11182printf %s "checking if $CC understands -b... " >&6; }
11183if test ${lt_cv_prog_compiler__b+y}
11184then :
11185  printf %s "(cached) " >&6
11186else $as_nop
11187  lt_cv_prog_compiler__b=no
11188   save_LDFLAGS=$LDFLAGS
11189   LDFLAGS="$LDFLAGS -b"
11190   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11191   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11192     # The linker can only warn and ignore the option if not recognized
11193     # So say no if there are warnings
11194     if test -s conftest.err; then
11195       # Append any errors to the config.log.
11196       cat conftest.err 1>&5
11197       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11198       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11199       if diff conftest.exp conftest.er2 >/dev/null; then
11200         lt_cv_prog_compiler__b=yes
11201       fi
11202     else
11203       lt_cv_prog_compiler__b=yes
11204     fi
11205   fi
11206   $RM -r conftest*
11207   LDFLAGS=$save_LDFLAGS
11208
11209fi
11210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11211printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11212
11213if test yes = "$lt_cv_prog_compiler__b"; then
11214    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11215else
11216    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11217fi
11218
11219	  ;;
11220	esac
11221      fi
11222      if test no = "$with_gnu_ld"; then
11223	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11224	hardcode_libdir_separator=:
11225
11226	case $host_cpu in
11227	hppa*64*|ia64*)
11228	  hardcode_direct=no
11229	  hardcode_shlibpath_var=no
11230	  ;;
11231	*)
11232	  hardcode_direct=yes
11233	  hardcode_direct_absolute=yes
11234	  export_dynamic_flag_spec='$wl-E'
11235
11236	  # hardcode_minus_L: Not really in the search PATH,
11237	  # but as the default location of the library.
11238	  hardcode_minus_L=yes
11239	  ;;
11240	esac
11241      fi
11242      ;;
11243
11244    irix5* | irix6* | nonstopux*)
11245      if test yes = "$GCC"; then
11246	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'
11247	# Try to use the -exported_symbol ld option, if it does not
11248	# work, assume that -exports_file does not work either and
11249	# implicitly export all symbols.
11250	# This should be the same for all languages, so no per-tag cache variable.
11251	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11252printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11253if test ${lt_cv_irix_exported_symbol+y}
11254then :
11255  printf %s "(cached) " >&6
11256else $as_nop
11257  save_LDFLAGS=$LDFLAGS
11258	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11259	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260/* end confdefs.h.  */
11261int foo (void) { return 0; }
11262_ACEOF
11263if ac_fn_c_try_link "$LINENO"
11264then :
11265  lt_cv_irix_exported_symbol=yes
11266else $as_nop
11267  lt_cv_irix_exported_symbol=no
11268fi
11269rm -f core conftest.err conftest.$ac_objext conftest.beam \
11270    conftest$ac_exeext conftest.$ac_ext
11271           LDFLAGS=$save_LDFLAGS
11272fi
11273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11274printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11275	if test yes = "$lt_cv_irix_exported_symbol"; then
11276          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'
11277	fi
11278      else
11279	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'
11280	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'
11281      fi
11282      archive_cmds_need_lc='no'
11283      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11284      hardcode_libdir_separator=:
11285      inherit_rpath=yes
11286      link_all_deplibs=yes
11287      ;;
11288
11289    linux*)
11290      case $cc_basename in
11291      tcc*)
11292	# Fabrice Bellard et al's Tiny C Compiler
11293	ld_shlibs=yes
11294	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11295	;;
11296      esac
11297      ;;
11298
11299    netbsd*)
11300      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11301	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11302      else
11303	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11304      fi
11305      hardcode_libdir_flag_spec='-R$libdir'
11306      hardcode_direct=yes
11307      hardcode_shlibpath_var=no
11308      ;;
11309
11310    newsos6)
11311      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11312      hardcode_direct=yes
11313      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11314      hardcode_libdir_separator=:
11315      hardcode_shlibpath_var=no
11316      ;;
11317
11318    *nto* | *qnx*)
11319      ;;
11320
11321    openbsd* | bitrig*)
11322      if test -f /usr/libexec/ld.so; then
11323	hardcode_direct=yes
11324	hardcode_shlibpath_var=no
11325	hardcode_direct_absolute=yes
11326	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11327	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11328	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11329	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11330	  export_dynamic_flag_spec='$wl-E'
11331	else
11332	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11333	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11334	fi
11335      else
11336	ld_shlibs=no
11337      fi
11338      ;;
11339
11340    os2*)
11341      hardcode_libdir_flag_spec='-L$libdir'
11342      hardcode_minus_L=yes
11343      allow_undefined_flag=unsupported
11344      shrext_cmds=.dll
11345      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11346	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11347	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11348	$ECHO EXPORTS >> $output_objdir/$libname.def~
11349	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11350	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11351	emximp -o $lib $output_objdir/$libname.def'
11352      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11353	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11354	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11355	$ECHO EXPORTS >> $output_objdir/$libname.def~
11356	prefix_cmds="$SED"~
11357	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11358	  prefix_cmds="$prefix_cmds -e 1d";
11359	fi~
11360	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11361	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11362	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11363	emximp -o $lib $output_objdir/$libname.def'
11364      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11365      enable_shared_with_static_runtimes=yes
11366      file_list_spec='@'
11367      ;;
11368
11369    osf3*)
11370      if test yes = "$GCC"; then
11371	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11372	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'
11373      else
11374	allow_undefined_flag=' -expect_unresolved \*'
11375	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'
11376      fi
11377      archive_cmds_need_lc='no'
11378      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11379      hardcode_libdir_separator=:
11380      ;;
11381
11382    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11383      if test yes = "$GCC"; then
11384	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11385	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'
11386	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11387      else
11388	allow_undefined_flag=' -expect_unresolved \*'
11389	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'
11390	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~
11391          $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'
11392
11393	# Both c and cxx compiler support -rpath directly
11394	hardcode_libdir_flag_spec='-rpath $libdir'
11395      fi
11396      archive_cmds_need_lc='no'
11397      hardcode_libdir_separator=:
11398      ;;
11399
11400    solaris*)
11401      no_undefined_flag=' -z defs'
11402      if test yes = "$GCC"; then
11403	wlarc='$wl'
11404	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11405	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11406          $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'
11407      else
11408	case `$CC -V 2>&1` in
11409	*"Compilers 5.0"*)
11410	  wlarc=''
11411	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11412	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11413            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11414	  ;;
11415	*)
11416	  wlarc='$wl'
11417	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11418	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11419            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11420	  ;;
11421	esac
11422      fi
11423      hardcode_libdir_flag_spec='-R$libdir'
11424      hardcode_shlibpath_var=no
11425      case $host_os in
11426      solaris2.[0-5] | solaris2.[0-5].*) ;;
11427      *)
11428	# The compiler driver will combine and reorder linker options,
11429	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11430	# but is careful enough not to reorder.
11431	# Supported since Solaris 2.6 (maybe 2.5.1?)
11432	if test yes = "$GCC"; then
11433	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11434	else
11435	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11436	fi
11437	;;
11438      esac
11439      link_all_deplibs=yes
11440      ;;
11441
11442    sunos4*)
11443      if test sequent = "$host_vendor"; then
11444	# Use $CC to link under sequent, because it throws in some extra .o
11445	# files that make .init and .fini sections work.
11446	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11447      else
11448	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11449      fi
11450      hardcode_libdir_flag_spec='-L$libdir'
11451      hardcode_direct=yes
11452      hardcode_minus_L=yes
11453      hardcode_shlibpath_var=no
11454      ;;
11455
11456    sysv4)
11457      case $host_vendor in
11458	sni)
11459	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11460	  hardcode_direct=yes # is this really true???
11461	;;
11462	siemens)
11463	  ## LD is ld it makes a PLAMLIB
11464	  ## CC just makes a GrossModule.
11465	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11466	  reload_cmds='$CC -r -o $output$reload_objs'
11467	  hardcode_direct=no
11468        ;;
11469	motorola)
11470	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11471	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11472	;;
11473      esac
11474      runpath_var='LD_RUN_PATH'
11475      hardcode_shlibpath_var=no
11476      ;;
11477
11478    sysv4.3*)
11479      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11480      hardcode_shlibpath_var=no
11481      export_dynamic_flag_spec='-Bexport'
11482      ;;
11483
11484    sysv4*MP*)
11485      if test -d /usr/nec; then
11486	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11487	hardcode_shlibpath_var=no
11488	runpath_var=LD_RUN_PATH
11489	hardcode_runpath_var=yes
11490	ld_shlibs=yes
11491      fi
11492      ;;
11493
11494    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11495      no_undefined_flag='$wl-z,text'
11496      archive_cmds_need_lc=no
11497      hardcode_shlibpath_var=no
11498      runpath_var='LD_RUN_PATH'
11499
11500      if test yes = "$GCC"; then
11501	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11502	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11503      else
11504	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11505	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11506      fi
11507      ;;
11508
11509    sysv5* | sco3.2v5* | sco5v6*)
11510      # Note: We CANNOT use -z defs as we might desire, because we do not
11511      # link with -lc, and that would cause any symbols used from libc to
11512      # always be unresolved, which means just about no library would
11513      # ever link correctly.  If we're not using GNU ld we use -z text
11514      # though, which does catch some bad symbols but isn't as heavy-handed
11515      # as -z defs.
11516      no_undefined_flag='$wl-z,text'
11517      allow_undefined_flag='$wl-z,nodefs'
11518      archive_cmds_need_lc=no
11519      hardcode_shlibpath_var=no
11520      hardcode_libdir_flag_spec='$wl-R,$libdir'
11521      hardcode_libdir_separator=':'
11522      link_all_deplibs=yes
11523      export_dynamic_flag_spec='$wl-Bexport'
11524      runpath_var='LD_RUN_PATH'
11525
11526      if test yes = "$GCC"; then
11527	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11528	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11529      else
11530	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11531	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11532      fi
11533      ;;
11534
11535    uts4*)
11536      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11537      hardcode_libdir_flag_spec='-L$libdir'
11538      hardcode_shlibpath_var=no
11539      ;;
11540
11541    *)
11542      ld_shlibs=no
11543      ;;
11544    esac
11545
11546    if test sni = "$host_vendor"; then
11547      case $host in
11548      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11549	export_dynamic_flag_spec='$wl-Blargedynsym'
11550	;;
11551      esac
11552    fi
11553  fi
11554
11555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11556printf "%s\n" "$ld_shlibs" >&6; }
11557test no = "$ld_shlibs" && can_build_shared=no
11558
11559with_gnu_ld=$with_gnu_ld
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575#
11576# Do we need to explicitly link libc?
11577#
11578case "x$archive_cmds_need_lc" in
11579x|xyes)
11580  # Assume -lc should be added
11581  archive_cmds_need_lc=yes
11582
11583  if test yes,yes = "$GCC,$enable_shared"; then
11584    case $archive_cmds in
11585    *'~'*)
11586      # FIXME: we may have to deal with multi-command sequences.
11587      ;;
11588    '$CC '*)
11589      # Test whether the compiler implicitly links with -lc since on some
11590      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11591      # to ld, don't add -lc before -lgcc.
11592      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11593printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11594if test ${lt_cv_archive_cmds_need_lc+y}
11595then :
11596  printf %s "(cached) " >&6
11597else $as_nop
11598  $RM conftest*
11599	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11600
11601	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11602  (eval $ac_compile) 2>&5
11603  ac_status=$?
11604  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11605  test $ac_status = 0; } 2>conftest.err; then
11606	  soname=conftest
11607	  lib=conftest
11608	  libobjs=conftest.$ac_objext
11609	  deplibs=
11610	  wl=$lt_prog_compiler_wl
11611	  pic_flag=$lt_prog_compiler_pic
11612	  compiler_flags=-v
11613	  linker_flags=-v
11614	  verstring=
11615	  output_objdir=.
11616	  libname=conftest
11617	  lt_save_allow_undefined_flag=$allow_undefined_flag
11618	  allow_undefined_flag=
11619	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11620  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11621  ac_status=$?
11622  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11623  test $ac_status = 0; }
11624	  then
11625	    lt_cv_archive_cmds_need_lc=no
11626	  else
11627	    lt_cv_archive_cmds_need_lc=yes
11628	  fi
11629	  allow_undefined_flag=$lt_save_allow_undefined_flag
11630	else
11631	  cat conftest.err 1>&5
11632	fi
11633	$RM conftest*
11634
11635fi
11636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11637printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11638      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11639      ;;
11640    esac
11641  fi
11642  ;;
11643esac
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11797printf %s "checking dynamic linker characteristics... " >&6; }
11798
11799if test yes = "$GCC"; then
11800  case $host_os in
11801    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11802    *) lt_awk_arg='/^libraries:/' ;;
11803  esac
11804  case $host_os in
11805    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11806    *) lt_sed_strip_eq='s|=/|/|g' ;;
11807  esac
11808  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11809  case $lt_search_path_spec in
11810  *\;*)
11811    # if the path contains ";" then we assume it to be the separator
11812    # otherwise default to the standard path separator (i.e. ":") - it is
11813    # assumed that no part of a normal pathname contains ";" but that should
11814    # okay in the real world where ";" in dirpaths is itself problematic.
11815    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11816    ;;
11817  *)
11818    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11819    ;;
11820  esac
11821  # Ok, now we have the path, separated by spaces, we can step through it
11822  # and add multilib dir if necessary...
11823  lt_tmp_lt_search_path_spec=
11824  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11825  # ...but if some path component already ends with the multilib dir we assume
11826  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11827  case "$lt_multi_os_dir; $lt_search_path_spec " in
11828  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11829    lt_multi_os_dir=
11830    ;;
11831  esac
11832  for lt_sys_path in $lt_search_path_spec; do
11833    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11834      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11835    elif test -n "$lt_multi_os_dir"; then
11836      test -d "$lt_sys_path" && \
11837	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11838    fi
11839  done
11840  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11841BEGIN {RS = " "; FS = "/|\n";} {
11842  lt_foo = "";
11843  lt_count = 0;
11844  for (lt_i = NF; lt_i > 0; lt_i--) {
11845    if ($lt_i != "" && $lt_i != ".") {
11846      if ($lt_i == "..") {
11847        lt_count++;
11848      } else {
11849        if (lt_count == 0) {
11850          lt_foo = "/" $lt_i lt_foo;
11851        } else {
11852          lt_count--;
11853        }
11854      }
11855    }
11856  }
11857  if (lt_foo != "") { lt_freq[lt_foo]++; }
11858  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11859}'`
11860  # AWK program above erroneously prepends '/' to C:/dos/paths
11861  # for these hosts.
11862  case $host_os in
11863    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11864      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11865  esac
11866  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11867else
11868  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11869fi
11870library_names_spec=
11871libname_spec='lib$name'
11872soname_spec=
11873shrext_cmds=.so
11874postinstall_cmds=
11875postuninstall_cmds=
11876finish_cmds=
11877finish_eval=
11878shlibpath_var=
11879shlibpath_overrides_runpath=unknown
11880version_type=none
11881dynamic_linker="$host_os ld.so"
11882sys_lib_dlsearch_path_spec="/lib /usr/lib"
11883need_lib_prefix=unknown
11884hardcode_into_libs=no
11885
11886# when you set need_version to no, make sure it does not cause -set_version
11887# flags to be left without arguments
11888need_version=unknown
11889
11890
11891
11892case $host_os in
11893aix3*)
11894  version_type=linux # correct to gnu/linux during the next big refactor
11895  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11896  shlibpath_var=LIBPATH
11897
11898  # AIX 3 has no versioning support, so we append a major version to the name.
11899  soname_spec='$libname$release$shared_ext$major'
11900  ;;
11901
11902aix[4-9]*)
11903  version_type=linux # correct to gnu/linux during the next big refactor
11904  need_lib_prefix=no
11905  need_version=no
11906  hardcode_into_libs=yes
11907  if test ia64 = "$host_cpu"; then
11908    # AIX 5 supports IA64
11909    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11910    shlibpath_var=LD_LIBRARY_PATH
11911  else
11912    # With GCC up to 2.95.x, collect2 would create an import file
11913    # for dependence libraries.  The import file would start with
11914    # the line '#! .'.  This would cause the generated library to
11915    # depend on '.', always an invalid library.  This was fixed in
11916    # development snapshots of GCC prior to 3.0.
11917    case $host_os in
11918      aix4 | aix4.[01] | aix4.[01].*)
11919      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11920	   echo ' yes '
11921	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11922	:
11923      else
11924	can_build_shared=no
11925      fi
11926      ;;
11927    esac
11928    # Using Import Files as archive members, it is possible to support
11929    # filename-based versioning of shared library archives on AIX. While
11930    # this would work for both with and without runtime linking, it will
11931    # prevent static linking of such archives. So we do filename-based
11932    # shared library versioning with .so extension only, which is used
11933    # when both runtime linking and shared linking is enabled.
11934    # Unfortunately, runtime linking may impact performance, so we do
11935    # not want this to be the default eventually. Also, we use the
11936    # versioned .so libs for executables only if there is the -brtl
11937    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11938    # To allow for filename-based versioning support, we need to create
11939    # libNAME.so.V as an archive file, containing:
11940    # *) an Import File, referring to the versioned filename of the
11941    #    archive as well as the shared archive member, telling the
11942    #    bitwidth (32 or 64) of that shared object, and providing the
11943    #    list of exported symbols of that shared object, eventually
11944    #    decorated with the 'weak' keyword
11945    # *) the shared object with the F_LOADONLY flag set, to really avoid
11946    #    it being seen by the linker.
11947    # At run time we better use the real file rather than another symlink,
11948    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11949
11950    case $with_aix_soname,$aix_use_runtimelinking in
11951    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11952    # soname into executable. Probably we can add versioning support to
11953    # collect2, so additional links can be useful in future.
11954    aix,yes) # traditional libtool
11955      dynamic_linker='AIX unversionable lib.so'
11956      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11957      # instead of lib<name>.a to let people know that these are not
11958      # typical AIX shared libraries.
11959      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11960      ;;
11961    aix,no) # traditional AIX only
11962      dynamic_linker='AIX lib.a(lib.so.V)'
11963      # We preserve .a as extension for shared libraries through AIX4.2
11964      # and later when we are not doing run time linking.
11965      library_names_spec='$libname$release.a $libname.a'
11966      soname_spec='$libname$release$shared_ext$major'
11967      ;;
11968    svr4,*) # full svr4 only
11969      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11970      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11971      # We do not specify a path in Import Files, so LIBPATH fires.
11972      shlibpath_overrides_runpath=yes
11973      ;;
11974    *,yes) # both, prefer svr4
11975      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11976      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11977      # unpreferred sharedlib libNAME.a needs extra handling
11978      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"'
11979      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"'
11980      # We do not specify a path in Import Files, so LIBPATH fires.
11981      shlibpath_overrides_runpath=yes
11982      ;;
11983    *,no) # both, prefer aix
11984      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11985      library_names_spec='$libname$release.a $libname.a'
11986      soname_spec='$libname$release$shared_ext$major'
11987      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11988      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)'
11989      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"'
11990      ;;
11991    esac
11992    shlibpath_var=LIBPATH
11993  fi
11994  ;;
11995
11996amigaos*)
11997  case $host_cpu in
11998  powerpc)
11999    # Since July 2007 AmigaOS4 officially supports .so libraries.
12000    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12001    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12002    ;;
12003  m68k)
12004    library_names_spec='$libname.ixlibrary $libname.a'
12005    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12006    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'
12007    ;;
12008  esac
12009  ;;
12010
12011beos*)
12012  library_names_spec='$libname$shared_ext'
12013  dynamic_linker="$host_os ld.so"
12014  shlibpath_var=LIBRARY_PATH
12015  ;;
12016
12017bsdi[45]*)
12018  version_type=linux # correct to gnu/linux during the next big refactor
12019  need_version=no
12020  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12021  soname_spec='$libname$release$shared_ext$major'
12022  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12023  shlibpath_var=LD_LIBRARY_PATH
12024  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12025  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12026  # the default ld.so.conf also contains /usr/contrib/lib and
12027  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12028  # libtool to hard-code these into programs
12029  ;;
12030
12031cygwin* | mingw* | pw32* | cegcc*)
12032  version_type=windows
12033  shrext_cmds=.dll
12034  need_version=no
12035  need_lib_prefix=no
12036
12037  case $GCC,$cc_basename in
12038  yes,*)
12039    # gcc
12040    library_names_spec='$libname.dll.a'
12041    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12042    postinstall_cmds='base_file=`basename \$file`~
12043      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12044      dldir=$destdir/`dirname \$dlpath`~
12045      test -d \$dldir || mkdir -p \$dldir~
12046      $install_prog $dir/$dlname \$dldir/$dlname~
12047      chmod a+x \$dldir/$dlname~
12048      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12049        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12050      fi'
12051    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12052      dlpath=$dir/\$dldll~
12053       $RM \$dlpath'
12054    shlibpath_overrides_runpath=yes
12055
12056    case $host_os in
12057    cygwin*)
12058      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12059      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12060
12061      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12062      ;;
12063    mingw* | cegcc*)
12064      # MinGW DLLs use traditional 'lib' prefix
12065      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12066      ;;
12067    pw32*)
12068      # pw32 DLLs use 'pw' prefix rather than 'lib'
12069      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12070      ;;
12071    esac
12072    dynamic_linker='Win32 ld.exe'
12073    ;;
12074
12075  *,cl* | *,icl*)
12076    # Native MSVC or ICC
12077    libname_spec='$name'
12078    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12079    library_names_spec='$libname.dll.lib'
12080
12081    case $build_os in
12082    mingw*)
12083      sys_lib_search_path_spec=
12084      lt_save_ifs=$IFS
12085      IFS=';'
12086      for lt_path in $LIB
12087      do
12088        IFS=$lt_save_ifs
12089        # Let DOS variable expansion print the short 8.3 style file name.
12090        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12091        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12092      done
12093      IFS=$lt_save_ifs
12094      # Convert to MSYS style.
12095      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12096      ;;
12097    cygwin*)
12098      # Convert to unix form, then to dos form, then back to unix form
12099      # but this time dos style (no spaces!) so that the unix form looks
12100      # like /cygdrive/c/PROGRA~1:/cygdr...
12101      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12102      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12103      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12104      ;;
12105    *)
12106      sys_lib_search_path_spec=$LIB
12107      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12108        # It is most probably a Windows format PATH.
12109        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12110      else
12111        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12112      fi
12113      # FIXME: find the short name or the path components, as spaces are
12114      # common. (e.g. "Program Files" -> "PROGRA~1")
12115      ;;
12116    esac
12117
12118    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12119    postinstall_cmds='base_file=`basename \$file`~
12120      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12121      dldir=$destdir/`dirname \$dlpath`~
12122      test -d \$dldir || mkdir -p \$dldir~
12123      $install_prog $dir/$dlname \$dldir/$dlname'
12124    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12125      dlpath=$dir/\$dldll~
12126       $RM \$dlpath'
12127    shlibpath_overrides_runpath=yes
12128    dynamic_linker='Win32 link.exe'
12129    ;;
12130
12131  *)
12132    # Assume MSVC and ICC wrapper
12133    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12134    dynamic_linker='Win32 ld.exe'
12135    ;;
12136  esac
12137  # FIXME: first we should search . and the directory the executable is in
12138  shlibpath_var=PATH
12139  ;;
12140
12141darwin* | rhapsody*)
12142  dynamic_linker="$host_os dyld"
12143  version_type=darwin
12144  need_lib_prefix=no
12145  need_version=no
12146  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12147  soname_spec='$libname$release$major$shared_ext'
12148  shlibpath_overrides_runpath=yes
12149  shlibpath_var=DYLD_LIBRARY_PATH
12150  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12151
12152  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12153  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12154  ;;
12155
12156dgux*)
12157  version_type=linux # correct to gnu/linux during the next big refactor
12158  need_lib_prefix=no
12159  need_version=no
12160  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12161  soname_spec='$libname$release$shared_ext$major'
12162  shlibpath_var=LD_LIBRARY_PATH
12163  ;;
12164
12165freebsd* | dragonfly*)
12166  # DragonFly does not have aout.  When/if they implement a new
12167  # versioning mechanism, adjust this.
12168  if test -x /usr/bin/objformat; then
12169    objformat=`/usr/bin/objformat`
12170  else
12171    case $host_os in
12172    freebsd[23].*) objformat=aout ;;
12173    *) objformat=elf ;;
12174    esac
12175  fi
12176  version_type=freebsd-$objformat
12177  case $version_type in
12178    freebsd-elf*)
12179      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12180      soname_spec='$libname$release$shared_ext$major'
12181      need_version=no
12182      need_lib_prefix=no
12183      ;;
12184    freebsd-*)
12185      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12186      need_version=yes
12187      ;;
12188  esac
12189  shlibpath_var=LD_LIBRARY_PATH
12190  case $host_os in
12191  freebsd2.*)
12192    shlibpath_overrides_runpath=yes
12193    ;;
12194  freebsd3.[01]* | freebsdelf3.[01]*)
12195    shlibpath_overrides_runpath=yes
12196    hardcode_into_libs=yes
12197    ;;
12198  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12199  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12200    shlibpath_overrides_runpath=no
12201    hardcode_into_libs=yes
12202    ;;
12203  *) # from 4.6 on, and DragonFly
12204    shlibpath_overrides_runpath=yes
12205    hardcode_into_libs=yes
12206    ;;
12207  esac
12208  ;;
12209
12210haiku*)
12211  version_type=linux # correct to gnu/linux during the next big refactor
12212  need_lib_prefix=no
12213  need_version=no
12214  dynamic_linker="$host_os runtime_loader"
12215  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12216  soname_spec='$libname$release$shared_ext$major'
12217  shlibpath_var=LIBRARY_PATH
12218  shlibpath_overrides_runpath=no
12219  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12220  hardcode_into_libs=yes
12221  ;;
12222
12223hpux9* | hpux10* | hpux11*)
12224  # Give a soname corresponding to the major version so that dld.sl refuses to
12225  # link against other versions.
12226  version_type=sunos
12227  need_lib_prefix=no
12228  need_version=no
12229  case $host_cpu in
12230  ia64*)
12231    shrext_cmds='.so'
12232    hardcode_into_libs=yes
12233    dynamic_linker="$host_os dld.so"
12234    shlibpath_var=LD_LIBRARY_PATH
12235    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12236    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12237    soname_spec='$libname$release$shared_ext$major'
12238    if test 32 = "$HPUX_IA64_MODE"; then
12239      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12240      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12241    else
12242      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12243      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12244    fi
12245    ;;
12246  hppa*64*)
12247    shrext_cmds='.sl'
12248    hardcode_into_libs=yes
12249    dynamic_linker="$host_os dld.sl"
12250    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12251    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12252    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12253    soname_spec='$libname$release$shared_ext$major'
12254    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12255    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12256    ;;
12257  *)
12258    shrext_cmds='.sl'
12259    dynamic_linker="$host_os dld.sl"
12260    shlibpath_var=SHLIB_PATH
12261    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12262    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12263    soname_spec='$libname$release$shared_ext$major'
12264    ;;
12265  esac
12266  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12267  postinstall_cmds='chmod 555 $lib'
12268  # or fails outright, so override atomically:
12269  install_override_mode=555
12270  ;;
12271
12272interix[3-9]*)
12273  version_type=linux # correct to gnu/linux during the next big refactor
12274  need_lib_prefix=no
12275  need_version=no
12276  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12277  soname_spec='$libname$release$shared_ext$major'
12278  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12279  shlibpath_var=LD_LIBRARY_PATH
12280  shlibpath_overrides_runpath=no
12281  hardcode_into_libs=yes
12282  ;;
12283
12284irix5* | irix6* | nonstopux*)
12285  case $host_os in
12286    nonstopux*) version_type=nonstopux ;;
12287    *)
12288	if test yes = "$lt_cv_prog_gnu_ld"; then
12289		version_type=linux # correct to gnu/linux during the next big refactor
12290	else
12291		version_type=irix
12292	fi ;;
12293  esac
12294  need_lib_prefix=no
12295  need_version=no
12296  soname_spec='$libname$release$shared_ext$major'
12297  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12298  case $host_os in
12299  irix5* | nonstopux*)
12300    libsuff= shlibsuff=
12301    ;;
12302  *)
12303    case $LD in # libtool.m4 will add one of these switches to LD
12304    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12305      libsuff= shlibsuff= libmagic=32-bit;;
12306    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12307      libsuff=32 shlibsuff=N32 libmagic=N32;;
12308    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12309      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12310    *) libsuff= shlibsuff= libmagic=never-match;;
12311    esac
12312    ;;
12313  esac
12314  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12315  shlibpath_overrides_runpath=no
12316  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12317  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12318  hardcode_into_libs=yes
12319  ;;
12320
12321# No shared lib support for Linux oldld, aout, or coff.
12322linux*oldld* | linux*aout* | linux*coff*)
12323  dynamic_linker=no
12324  ;;
12325
12326linux*android*)
12327  version_type=none # Android doesn't support versioned libraries.
12328  need_lib_prefix=no
12329  need_version=no
12330  library_names_spec='$libname$release$shared_ext'
12331  soname_spec='$libname$release$shared_ext'
12332  finish_cmds=
12333  shlibpath_var=LD_LIBRARY_PATH
12334  shlibpath_overrides_runpath=yes
12335
12336  # This implies no fast_install, which is unacceptable.
12337  # Some rework will be needed to allow for fast_install
12338  # before this can be enabled.
12339  hardcode_into_libs=yes
12340
12341  dynamic_linker='Android linker'
12342  # Don't embed -rpath directories since the linker doesn't support them.
12343  hardcode_libdir_flag_spec='-L$libdir'
12344  ;;
12345
12346# This must be glibc/ELF.
12347linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12348  version_type=linux # correct to gnu/linux during the next big refactor
12349  need_lib_prefix=no
12350  need_version=no
12351  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12352  soname_spec='$libname$release$shared_ext$major'
12353  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12354  shlibpath_var=LD_LIBRARY_PATH
12355  shlibpath_overrides_runpath=no
12356
12357  # Some binutils ld are patched to set DT_RUNPATH
12358  if test ${lt_cv_shlibpath_overrides_runpath+y}
12359then :
12360  printf %s "(cached) " >&6
12361else $as_nop
12362  lt_cv_shlibpath_overrides_runpath=no
12363    save_LDFLAGS=$LDFLAGS
12364    save_libdir=$libdir
12365    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12366	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12367    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12368/* end confdefs.h.  */
12369
12370int
12371main (void)
12372{
12373
12374  ;
12375  return 0;
12376}
12377_ACEOF
12378if ac_fn_c_try_link "$LINENO"
12379then :
12380  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12381then :
12382  lt_cv_shlibpath_overrides_runpath=yes
12383fi
12384fi
12385rm -f core conftest.err conftest.$ac_objext conftest.beam \
12386    conftest$ac_exeext conftest.$ac_ext
12387    LDFLAGS=$save_LDFLAGS
12388    libdir=$save_libdir
12389
12390fi
12391
12392  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12393
12394  # This implies no fast_install, which is unacceptable.
12395  # Some rework will be needed to allow for fast_install
12396  # before this can be enabled.
12397  hardcode_into_libs=yes
12398
12399  # Ideally, we could use ldconfig to report *all* directores which are
12400  # searched for libraries, however this is still not possible.  Aside from not
12401  # being certain /sbin/ldconfig is available, command
12402  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12403  # even though it is searched at run-time.  Try to do the best guess by
12404  # appending ld.so.conf contents (and includes) to the search path.
12405  if test -f /etc/ld.so.conf; then
12406    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' ' '`
12407    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12408  fi
12409
12410  # We used to test for /lib/ld.so.1 and disable shared libraries on
12411  # powerpc, because MkLinux only supported shared libraries with the
12412  # GNU dynamic linker.  Since this was broken with cross compilers,
12413  # most powerpc-linux boxes support dynamic linking these days and
12414  # people can always --disable-shared, the test was removed, and we
12415  # assume the GNU/Linux dynamic linker is in use.
12416  dynamic_linker='GNU/Linux ld.so'
12417  ;;
12418
12419netbsd*)
12420  version_type=sunos
12421  need_lib_prefix=no
12422  need_version=no
12423  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12424    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12425    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12426    dynamic_linker='NetBSD (a.out) ld.so'
12427  else
12428    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12429    soname_spec='$libname$release$shared_ext$major'
12430    dynamic_linker='NetBSD ld.elf_so'
12431  fi
12432  shlibpath_var=LD_LIBRARY_PATH
12433  shlibpath_overrides_runpath=yes
12434  hardcode_into_libs=yes
12435  ;;
12436
12437newsos6)
12438  version_type=linux # correct to gnu/linux during the next big refactor
12439  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12440  shlibpath_var=LD_LIBRARY_PATH
12441  shlibpath_overrides_runpath=yes
12442  ;;
12443
12444*nto* | *qnx*)
12445  version_type=qnx
12446  need_lib_prefix=no
12447  need_version=no
12448  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12449  soname_spec='$libname$release$shared_ext$major'
12450  shlibpath_var=LD_LIBRARY_PATH
12451  shlibpath_overrides_runpath=no
12452  hardcode_into_libs=yes
12453  dynamic_linker='ldqnx.so'
12454  ;;
12455
12456openbsd* | bitrig*)
12457  version_type=sunos
12458  sys_lib_dlsearch_path_spec=/usr/lib
12459  need_lib_prefix=no
12460  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12461    need_version=no
12462  else
12463    need_version=yes
12464  fi
12465  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12466  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12467  shlibpath_var=LD_LIBRARY_PATH
12468  shlibpath_overrides_runpath=yes
12469  ;;
12470
12471os2*)
12472  libname_spec='$name'
12473  version_type=windows
12474  shrext_cmds=.dll
12475  need_version=no
12476  need_lib_prefix=no
12477  # OS/2 can only load a DLL with a base name of 8 characters or less.
12478  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12479    v=$($ECHO $release$versuffix | tr -d .-);
12480    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12481    $ECHO $n$v`$shared_ext'
12482  library_names_spec='${libname}_dll.$libext'
12483  dynamic_linker='OS/2 ld.exe'
12484  shlibpath_var=BEGINLIBPATH
12485  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12486  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12487  postinstall_cmds='base_file=`basename \$file`~
12488    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12489    dldir=$destdir/`dirname \$dlpath`~
12490    test -d \$dldir || mkdir -p \$dldir~
12491    $install_prog $dir/$dlname \$dldir/$dlname~
12492    chmod a+x \$dldir/$dlname~
12493    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12494      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12495    fi'
12496  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12497    dlpath=$dir/\$dldll~
12498    $RM \$dlpath'
12499  ;;
12500
12501osf3* | osf4* | osf5*)
12502  version_type=osf
12503  need_lib_prefix=no
12504  need_version=no
12505  soname_spec='$libname$release$shared_ext$major'
12506  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12507  shlibpath_var=LD_LIBRARY_PATH
12508  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12509  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12510  ;;
12511
12512rdos*)
12513  dynamic_linker=no
12514  ;;
12515
12516solaris*)
12517  version_type=linux # correct to gnu/linux during the next big refactor
12518  need_lib_prefix=no
12519  need_version=no
12520  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12521  soname_spec='$libname$release$shared_ext$major'
12522  shlibpath_var=LD_LIBRARY_PATH
12523  shlibpath_overrides_runpath=yes
12524  hardcode_into_libs=yes
12525  # ldd complains unless libraries are executable
12526  postinstall_cmds='chmod +x $lib'
12527  ;;
12528
12529sunos4*)
12530  version_type=sunos
12531  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12532  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12533  shlibpath_var=LD_LIBRARY_PATH
12534  shlibpath_overrides_runpath=yes
12535  if test yes = "$with_gnu_ld"; then
12536    need_lib_prefix=no
12537  fi
12538  need_version=yes
12539  ;;
12540
12541sysv4 | sysv4.3*)
12542  version_type=linux # correct to gnu/linux during the next big refactor
12543  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12544  soname_spec='$libname$release$shared_ext$major'
12545  shlibpath_var=LD_LIBRARY_PATH
12546  case $host_vendor in
12547    sni)
12548      shlibpath_overrides_runpath=no
12549      need_lib_prefix=no
12550      runpath_var=LD_RUN_PATH
12551      ;;
12552    siemens)
12553      need_lib_prefix=no
12554      ;;
12555    motorola)
12556      need_lib_prefix=no
12557      need_version=no
12558      shlibpath_overrides_runpath=no
12559      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12560      ;;
12561  esac
12562  ;;
12563
12564sysv4*MP*)
12565  if test -d /usr/nec; then
12566    version_type=linux # correct to gnu/linux during the next big refactor
12567    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12568    soname_spec='$libname$shared_ext.$major'
12569    shlibpath_var=LD_LIBRARY_PATH
12570  fi
12571  ;;
12572
12573sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12574  version_type=sco
12575  need_lib_prefix=no
12576  need_version=no
12577  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12578  soname_spec='$libname$release$shared_ext$major'
12579  shlibpath_var=LD_LIBRARY_PATH
12580  shlibpath_overrides_runpath=yes
12581  hardcode_into_libs=yes
12582  if test yes = "$with_gnu_ld"; then
12583    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12584  else
12585    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12586    case $host_os in
12587      sco3.2v5*)
12588        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12589	;;
12590    esac
12591  fi
12592  sys_lib_dlsearch_path_spec='/usr/lib'
12593  ;;
12594
12595tpf*)
12596  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12597  version_type=linux # correct to gnu/linux during the next big refactor
12598  need_lib_prefix=no
12599  need_version=no
12600  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12601  shlibpath_var=LD_LIBRARY_PATH
12602  shlibpath_overrides_runpath=no
12603  hardcode_into_libs=yes
12604  ;;
12605
12606uts4*)
12607  version_type=linux # correct to gnu/linux during the next big refactor
12608  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12609  soname_spec='$libname$release$shared_ext$major'
12610  shlibpath_var=LD_LIBRARY_PATH
12611  ;;
12612
12613*)
12614  dynamic_linker=no
12615  ;;
12616esac
12617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12618printf "%s\n" "$dynamic_linker" >&6; }
12619test no = "$dynamic_linker" && can_build_shared=no
12620
12621variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12622if test yes = "$GCC"; then
12623  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12624fi
12625
12626if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12627  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12628fi
12629
12630if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12631  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12632fi
12633
12634# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12635configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12636
12637# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12638func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12639
12640# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12641configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12740printf %s "checking how to hardcode library paths into programs... " >&6; }
12741hardcode_action=
12742if test -n "$hardcode_libdir_flag_spec" ||
12743   test -n "$runpath_var" ||
12744   test yes = "$hardcode_automatic"; then
12745
12746  # We can hardcode non-existent directories.
12747  if test no != "$hardcode_direct" &&
12748     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12749     # have to relink, otherwise we might link with an installed library
12750     # when we should be linking with a yet-to-be-installed one
12751     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12752     test no != "$hardcode_minus_L"; then
12753    # Linking always hardcodes the temporary library directory.
12754    hardcode_action=relink
12755  else
12756    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12757    hardcode_action=immediate
12758  fi
12759else
12760  # We cannot hardcode anything, or else we can only hardcode existing
12761  # directories.
12762  hardcode_action=unsupported
12763fi
12764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12765printf "%s\n" "$hardcode_action" >&6; }
12766
12767if test relink = "$hardcode_action" ||
12768   test yes = "$inherit_rpath"; then
12769  # Fast installation is not supported
12770  enable_fast_install=no
12771elif test yes = "$shlibpath_overrides_runpath" ||
12772     test no = "$enable_shared"; then
12773  # Fast installation is not necessary
12774  enable_fast_install=needless
12775fi
12776
12777
12778
12779
12780
12781
12782  if test yes != "$enable_dlopen"; then
12783  enable_dlopen=unknown
12784  enable_dlopen_self=unknown
12785  enable_dlopen_self_static=unknown
12786else
12787  lt_cv_dlopen=no
12788  lt_cv_dlopen_libs=
12789
12790  case $host_os in
12791  beos*)
12792    lt_cv_dlopen=load_add_on
12793    lt_cv_dlopen_libs=
12794    lt_cv_dlopen_self=yes
12795    ;;
12796
12797  mingw* | pw32* | cegcc*)
12798    lt_cv_dlopen=LoadLibrary
12799    lt_cv_dlopen_libs=
12800    ;;
12801
12802  cygwin*)
12803    lt_cv_dlopen=dlopen
12804    lt_cv_dlopen_libs=
12805    ;;
12806
12807  darwin*)
12808    # if libdl is installed we need to link against it
12809    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12810printf %s "checking for dlopen in -ldl... " >&6; }
12811if test ${ac_cv_lib_dl_dlopen+y}
12812then :
12813  printf %s "(cached) " >&6
12814else $as_nop
12815  ac_check_lib_save_LIBS=$LIBS
12816LIBS="-ldl  $LIBS"
12817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818/* end confdefs.h.  */
12819
12820/* Override any GCC internal prototype to avoid an error.
12821   Use char because int might match the return type of a GCC
12822   builtin and then its argument prototype would still apply.  */
12823char dlopen ();
12824int
12825main (void)
12826{
12827return dlopen ();
12828  ;
12829  return 0;
12830}
12831_ACEOF
12832if ac_fn_c_try_link "$LINENO"
12833then :
12834  ac_cv_lib_dl_dlopen=yes
12835else $as_nop
12836  ac_cv_lib_dl_dlopen=no
12837fi
12838rm -f core conftest.err conftest.$ac_objext conftest.beam \
12839    conftest$ac_exeext conftest.$ac_ext
12840LIBS=$ac_check_lib_save_LIBS
12841fi
12842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12843printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12844if test "x$ac_cv_lib_dl_dlopen" = xyes
12845then :
12846  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12847else $as_nop
12848
12849    lt_cv_dlopen=dyld
12850    lt_cv_dlopen_libs=
12851    lt_cv_dlopen_self=yes
12852
12853fi
12854
12855    ;;
12856
12857  tpf*)
12858    # Don't try to run any link tests for TPF.  We know it's impossible
12859    # because TPF is a cross-compiler, and we know how we open DSOs.
12860    lt_cv_dlopen=dlopen
12861    lt_cv_dlopen_libs=
12862    lt_cv_dlopen_self=no
12863    ;;
12864
12865  *)
12866    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12867if test "x$ac_cv_func_shl_load" = xyes
12868then :
12869  lt_cv_dlopen=shl_load
12870else $as_nop
12871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12872printf %s "checking for shl_load in -ldld... " >&6; }
12873if test ${ac_cv_lib_dld_shl_load+y}
12874then :
12875  printf %s "(cached) " >&6
12876else $as_nop
12877  ac_check_lib_save_LIBS=$LIBS
12878LIBS="-ldld  $LIBS"
12879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880/* end confdefs.h.  */
12881
12882/* Override any GCC internal prototype to avoid an error.
12883   Use char because int might match the return type of a GCC
12884   builtin and then its argument prototype would still apply.  */
12885char shl_load ();
12886int
12887main (void)
12888{
12889return shl_load ();
12890  ;
12891  return 0;
12892}
12893_ACEOF
12894if ac_fn_c_try_link "$LINENO"
12895then :
12896  ac_cv_lib_dld_shl_load=yes
12897else $as_nop
12898  ac_cv_lib_dld_shl_load=no
12899fi
12900rm -f core conftest.err conftest.$ac_objext conftest.beam \
12901    conftest$ac_exeext conftest.$ac_ext
12902LIBS=$ac_check_lib_save_LIBS
12903fi
12904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12905printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12906if test "x$ac_cv_lib_dld_shl_load" = xyes
12907then :
12908  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12909else $as_nop
12910  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12911if test "x$ac_cv_func_dlopen" = xyes
12912then :
12913  lt_cv_dlopen=dlopen
12914else $as_nop
12915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12916printf %s "checking for dlopen in -ldl... " >&6; }
12917if test ${ac_cv_lib_dl_dlopen+y}
12918then :
12919  printf %s "(cached) " >&6
12920else $as_nop
12921  ac_check_lib_save_LIBS=$LIBS
12922LIBS="-ldl  $LIBS"
12923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924/* end confdefs.h.  */
12925
12926/* Override any GCC internal prototype to avoid an error.
12927   Use char because int might match the return type of a GCC
12928   builtin and then its argument prototype would still apply.  */
12929char dlopen ();
12930int
12931main (void)
12932{
12933return dlopen ();
12934  ;
12935  return 0;
12936}
12937_ACEOF
12938if ac_fn_c_try_link "$LINENO"
12939then :
12940  ac_cv_lib_dl_dlopen=yes
12941else $as_nop
12942  ac_cv_lib_dl_dlopen=no
12943fi
12944rm -f core conftest.err conftest.$ac_objext conftest.beam \
12945    conftest$ac_exeext conftest.$ac_ext
12946LIBS=$ac_check_lib_save_LIBS
12947fi
12948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12949printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12950if test "x$ac_cv_lib_dl_dlopen" = xyes
12951then :
12952  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12953else $as_nop
12954  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12955printf %s "checking for dlopen in -lsvld... " >&6; }
12956if test ${ac_cv_lib_svld_dlopen+y}
12957then :
12958  printf %s "(cached) " >&6
12959else $as_nop
12960  ac_check_lib_save_LIBS=$LIBS
12961LIBS="-lsvld  $LIBS"
12962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963/* end confdefs.h.  */
12964
12965/* Override any GCC internal prototype to avoid an error.
12966   Use char because int might match the return type of a GCC
12967   builtin and then its argument prototype would still apply.  */
12968char dlopen ();
12969int
12970main (void)
12971{
12972return dlopen ();
12973  ;
12974  return 0;
12975}
12976_ACEOF
12977if ac_fn_c_try_link "$LINENO"
12978then :
12979  ac_cv_lib_svld_dlopen=yes
12980else $as_nop
12981  ac_cv_lib_svld_dlopen=no
12982fi
12983rm -f core conftest.err conftest.$ac_objext conftest.beam \
12984    conftest$ac_exeext conftest.$ac_ext
12985LIBS=$ac_check_lib_save_LIBS
12986fi
12987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12988printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12989if test "x$ac_cv_lib_svld_dlopen" = xyes
12990then :
12991  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12992else $as_nop
12993  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12994printf %s "checking for dld_link in -ldld... " >&6; }
12995if test ${ac_cv_lib_dld_dld_link+y}
12996then :
12997  printf %s "(cached) " >&6
12998else $as_nop
12999  ac_check_lib_save_LIBS=$LIBS
13000LIBS="-ldld  $LIBS"
13001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002/* end confdefs.h.  */
13003
13004/* Override any GCC internal prototype to avoid an error.
13005   Use char because int might match the return type of a GCC
13006   builtin and then its argument prototype would still apply.  */
13007char dld_link ();
13008int
13009main (void)
13010{
13011return dld_link ();
13012  ;
13013  return 0;
13014}
13015_ACEOF
13016if ac_fn_c_try_link "$LINENO"
13017then :
13018  ac_cv_lib_dld_dld_link=yes
13019else $as_nop
13020  ac_cv_lib_dld_dld_link=no
13021fi
13022rm -f core conftest.err conftest.$ac_objext conftest.beam \
13023    conftest$ac_exeext conftest.$ac_ext
13024LIBS=$ac_check_lib_save_LIBS
13025fi
13026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13027printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13028if test "x$ac_cv_lib_dld_dld_link" = xyes
13029then :
13030  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13031fi
13032
13033
13034fi
13035
13036
13037fi
13038
13039
13040fi
13041
13042
13043fi
13044
13045
13046fi
13047
13048    ;;
13049  esac
13050
13051  if test no = "$lt_cv_dlopen"; then
13052    enable_dlopen=no
13053  else
13054    enable_dlopen=yes
13055  fi
13056
13057  case $lt_cv_dlopen in
13058  dlopen)
13059    save_CPPFLAGS=$CPPFLAGS
13060    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13061
13062    save_LDFLAGS=$LDFLAGS
13063    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13064
13065    save_LIBS=$LIBS
13066    LIBS="$lt_cv_dlopen_libs $LIBS"
13067
13068    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13069printf %s "checking whether a program can dlopen itself... " >&6; }
13070if test ${lt_cv_dlopen_self+y}
13071then :
13072  printf %s "(cached) " >&6
13073else $as_nop
13074  	  if test yes = "$cross_compiling"; then :
13075  lt_cv_dlopen_self=cross
13076else
13077  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13078  lt_status=$lt_dlunknown
13079  cat > conftest.$ac_ext <<_LT_EOF
13080#line $LINENO "configure"
13081#include "confdefs.h"
13082
13083#if HAVE_DLFCN_H
13084#include <dlfcn.h>
13085#endif
13086
13087#include <stdio.h>
13088
13089#ifdef RTLD_GLOBAL
13090#  define LT_DLGLOBAL		RTLD_GLOBAL
13091#else
13092#  ifdef DL_GLOBAL
13093#    define LT_DLGLOBAL		DL_GLOBAL
13094#  else
13095#    define LT_DLGLOBAL		0
13096#  endif
13097#endif
13098
13099/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13100   find out it does not work in some platform. */
13101#ifndef LT_DLLAZY_OR_NOW
13102#  ifdef RTLD_LAZY
13103#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13104#  else
13105#    ifdef DL_LAZY
13106#      define LT_DLLAZY_OR_NOW		DL_LAZY
13107#    else
13108#      ifdef RTLD_NOW
13109#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13110#      else
13111#        ifdef DL_NOW
13112#          define LT_DLLAZY_OR_NOW	DL_NOW
13113#        else
13114#          define LT_DLLAZY_OR_NOW	0
13115#        endif
13116#      endif
13117#    endif
13118#  endif
13119#endif
13120
13121/* When -fvisibility=hidden is used, assume the code has been annotated
13122   correspondingly for the symbols needed.  */
13123#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13124int fnord () __attribute__((visibility("default")));
13125#endif
13126
13127int fnord () { return 42; }
13128int main ()
13129{
13130  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13131  int status = $lt_dlunknown;
13132
13133  if (self)
13134    {
13135      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13136      else
13137        {
13138	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13139          else puts (dlerror ());
13140	}
13141      /* dlclose (self); */
13142    }
13143  else
13144    puts (dlerror ());
13145
13146  return status;
13147}
13148_LT_EOF
13149  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13150  (eval $ac_link) 2>&5
13151  ac_status=$?
13152  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13153  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13154    (./conftest; exit; ) >&5 2>/dev/null
13155    lt_status=$?
13156    case x$lt_status in
13157      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13158      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13159      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13160    esac
13161  else :
13162    # compilation failed
13163    lt_cv_dlopen_self=no
13164  fi
13165fi
13166rm -fr conftest*
13167
13168
13169fi
13170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13171printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13172
13173    if test yes = "$lt_cv_dlopen_self"; then
13174      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13175      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13176printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13177if test ${lt_cv_dlopen_self_static+y}
13178then :
13179  printf %s "(cached) " >&6
13180else $as_nop
13181  	  if test yes = "$cross_compiling"; then :
13182  lt_cv_dlopen_self_static=cross
13183else
13184  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13185  lt_status=$lt_dlunknown
13186  cat > conftest.$ac_ext <<_LT_EOF
13187#line $LINENO "configure"
13188#include "confdefs.h"
13189
13190#if HAVE_DLFCN_H
13191#include <dlfcn.h>
13192#endif
13193
13194#include <stdio.h>
13195
13196#ifdef RTLD_GLOBAL
13197#  define LT_DLGLOBAL		RTLD_GLOBAL
13198#else
13199#  ifdef DL_GLOBAL
13200#    define LT_DLGLOBAL		DL_GLOBAL
13201#  else
13202#    define LT_DLGLOBAL		0
13203#  endif
13204#endif
13205
13206/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13207   find out it does not work in some platform. */
13208#ifndef LT_DLLAZY_OR_NOW
13209#  ifdef RTLD_LAZY
13210#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13211#  else
13212#    ifdef DL_LAZY
13213#      define LT_DLLAZY_OR_NOW		DL_LAZY
13214#    else
13215#      ifdef RTLD_NOW
13216#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13217#      else
13218#        ifdef DL_NOW
13219#          define LT_DLLAZY_OR_NOW	DL_NOW
13220#        else
13221#          define LT_DLLAZY_OR_NOW	0
13222#        endif
13223#      endif
13224#    endif
13225#  endif
13226#endif
13227
13228/* When -fvisibility=hidden is used, assume the code has been annotated
13229   correspondingly for the symbols needed.  */
13230#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13231int fnord () __attribute__((visibility("default")));
13232#endif
13233
13234int fnord () { return 42; }
13235int main ()
13236{
13237  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13238  int status = $lt_dlunknown;
13239
13240  if (self)
13241    {
13242      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13243      else
13244        {
13245	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13246          else puts (dlerror ());
13247	}
13248      /* dlclose (self); */
13249    }
13250  else
13251    puts (dlerror ());
13252
13253  return status;
13254}
13255_LT_EOF
13256  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13257  (eval $ac_link) 2>&5
13258  ac_status=$?
13259  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13260  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13261    (./conftest; exit; ) >&5 2>/dev/null
13262    lt_status=$?
13263    case x$lt_status in
13264      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13265      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13266      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13267    esac
13268  else :
13269    # compilation failed
13270    lt_cv_dlopen_self_static=no
13271  fi
13272fi
13273rm -fr conftest*
13274
13275
13276fi
13277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13278printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13279    fi
13280
13281    CPPFLAGS=$save_CPPFLAGS
13282    LDFLAGS=$save_LDFLAGS
13283    LIBS=$save_LIBS
13284    ;;
13285  esac
13286
13287  case $lt_cv_dlopen_self in
13288  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13289  *) enable_dlopen_self=unknown ;;
13290  esac
13291
13292  case $lt_cv_dlopen_self_static in
13293  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13294  *) enable_dlopen_self_static=unknown ;;
13295  esac
13296fi
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314striplib=
13315old_striplib=
13316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13317printf %s "checking whether stripping libraries is possible... " >&6; }
13318if test -z "$STRIP"; then
13319  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13320printf "%s\n" "no" >&6; }
13321else
13322  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13323    old_striplib="$STRIP --strip-debug"
13324    striplib="$STRIP --strip-unneeded"
13325    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13326printf "%s\n" "yes" >&6; }
13327  else
13328    case $host_os in
13329    darwin*)
13330      # FIXME - insert some real tests, host_os isn't really good enough
13331      striplib="$STRIP -x"
13332      old_striplib="$STRIP -S"
13333      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13334printf "%s\n" "yes" >&6; }
13335      ;;
13336    freebsd*)
13337      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13338        old_striplib="$STRIP --strip-debug"
13339        striplib="$STRIP --strip-unneeded"
13340        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13341printf "%s\n" "yes" >&6; }
13342      else
13343        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13344printf "%s\n" "no" >&6; }
13345      fi
13346      ;;
13347    *)
13348      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13349printf "%s\n" "no" >&6; }
13350      ;;
13351    esac
13352  fi
13353fi
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366  # Report what library types will actually be built
13367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13368printf %s "checking if libtool supports shared libraries... " >&6; }
13369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13370printf "%s\n" "$can_build_shared" >&6; }
13371
13372  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13373printf %s "checking whether to build shared libraries... " >&6; }
13374  test no = "$can_build_shared" && enable_shared=no
13375
13376  # On AIX, shared libraries and static libraries use the same namespace, and
13377  # are all built from PIC.
13378  case $host_os in
13379  aix3*)
13380    test yes = "$enable_shared" && enable_static=no
13381    if test -n "$RANLIB"; then
13382      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13383      postinstall_cmds='$RANLIB $lib'
13384    fi
13385    ;;
13386
13387  aix[4-9]*)
13388    if test ia64 != "$host_cpu"; then
13389      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13390      yes,aix,yes) ;;			# shared object as lib.so file only
13391      yes,svr4,*) ;;			# shared object as lib.so archive member only
13392      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13393      esac
13394    fi
13395    ;;
13396  esac
13397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13398printf "%s\n" "$enable_shared" >&6; }
13399
13400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13401printf %s "checking whether to build static libraries... " >&6; }
13402  # Make sure either enable_shared or enable_static is yes.
13403  test yes = "$enable_shared" || enable_static=yes
13404  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13405printf "%s\n" "$enable_static" >&6; }
13406
13407
13408
13409
13410fi
13411ac_ext=cpp
13412ac_cpp='$CXXCPP $CPPFLAGS'
13413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13416
13417CC=$lt_save_CC
13418
13419      if test -n "$CXX" && ( test no != "$CXX" &&
13420    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13421    (test g++ != "$CXX"))); then
13422  ac_ext=cpp
13423ac_cpp='$CXXCPP $CPPFLAGS'
13424ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13425ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13426ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13428printf %s "checking how to run the C++ preprocessor... " >&6; }
13429if test -z "$CXXCPP"; then
13430  if test ${ac_cv_prog_CXXCPP+y}
13431then :
13432  printf %s "(cached) " >&6
13433else $as_nop
13434      # Double quotes because $CXX needs to be expanded
13435    for CXXCPP in "$CXX -E" cpp /lib/cpp
13436    do
13437      ac_preproc_ok=false
13438for ac_cxx_preproc_warn_flag in '' yes
13439do
13440  # Use a header file that comes with gcc, so configuring glibc
13441  # with a fresh cross-compiler works.
13442  # On the NeXT, cc -E runs the code through the compiler's parser,
13443  # not just through cpp. "Syntax error" is here to catch this case.
13444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445/* end confdefs.h.  */
13446#include <limits.h>
13447		     Syntax error
13448_ACEOF
13449if ac_fn_cxx_try_cpp "$LINENO"
13450then :
13451
13452else $as_nop
13453  # Broken: fails on valid input.
13454continue
13455fi
13456rm -f conftest.err conftest.i conftest.$ac_ext
13457
13458  # OK, works on sane cases.  Now check whether nonexistent headers
13459  # can be detected and how.
13460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461/* end confdefs.h.  */
13462#include <ac_nonexistent.h>
13463_ACEOF
13464if ac_fn_cxx_try_cpp "$LINENO"
13465then :
13466  # Broken: success on invalid input.
13467continue
13468else $as_nop
13469  # Passes both tests.
13470ac_preproc_ok=:
13471break
13472fi
13473rm -f conftest.err conftest.i conftest.$ac_ext
13474
13475done
13476# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13477rm -f conftest.i conftest.err conftest.$ac_ext
13478if $ac_preproc_ok
13479then :
13480  break
13481fi
13482
13483    done
13484    ac_cv_prog_CXXCPP=$CXXCPP
13485
13486fi
13487  CXXCPP=$ac_cv_prog_CXXCPP
13488else
13489  ac_cv_prog_CXXCPP=$CXXCPP
13490fi
13491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13492printf "%s\n" "$CXXCPP" >&6; }
13493ac_preproc_ok=false
13494for ac_cxx_preproc_warn_flag in '' yes
13495do
13496  # Use a header file that comes with gcc, so configuring glibc
13497  # with a fresh cross-compiler works.
13498  # On the NeXT, cc -E runs the code through the compiler's parser,
13499  # not just through cpp. "Syntax error" is here to catch this case.
13500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13501/* end confdefs.h.  */
13502#include <limits.h>
13503		     Syntax error
13504_ACEOF
13505if ac_fn_cxx_try_cpp "$LINENO"
13506then :
13507
13508else $as_nop
13509  # Broken: fails on valid input.
13510continue
13511fi
13512rm -f conftest.err conftest.i conftest.$ac_ext
13513
13514  # OK, works on sane cases.  Now check whether nonexistent headers
13515  # can be detected and how.
13516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13517/* end confdefs.h.  */
13518#include <ac_nonexistent.h>
13519_ACEOF
13520if ac_fn_cxx_try_cpp "$LINENO"
13521then :
13522  # Broken: success on invalid input.
13523continue
13524else $as_nop
13525  # Passes both tests.
13526ac_preproc_ok=:
13527break
13528fi
13529rm -f conftest.err conftest.i conftest.$ac_ext
13530
13531done
13532# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13533rm -f conftest.i conftest.err conftest.$ac_ext
13534if $ac_preproc_ok
13535then :
13536
13537else $as_nop
13538  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13539printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13540as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13541See \`config.log' for more details" "$LINENO" 5; }
13542fi
13543
13544ac_ext=cpp
13545ac_cpp='$CXXCPP $CPPFLAGS'
13546ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13547ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13548ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13549
13550else
13551  _lt_caught_CXX_error=yes
13552fi
13553
13554ac_ext=cpp
13555ac_cpp='$CXXCPP $CPPFLAGS'
13556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13559
13560archive_cmds_need_lc_CXX=no
13561allow_undefined_flag_CXX=
13562always_export_symbols_CXX=no
13563archive_expsym_cmds_CXX=
13564compiler_needs_object_CXX=no
13565export_dynamic_flag_spec_CXX=
13566hardcode_direct_CXX=no
13567hardcode_direct_absolute_CXX=no
13568hardcode_libdir_flag_spec_CXX=
13569hardcode_libdir_separator_CXX=
13570hardcode_minus_L_CXX=no
13571hardcode_shlibpath_var_CXX=unsupported
13572hardcode_automatic_CXX=no
13573inherit_rpath_CXX=no
13574module_cmds_CXX=
13575module_expsym_cmds_CXX=
13576link_all_deplibs_CXX=unknown
13577old_archive_cmds_CXX=$old_archive_cmds
13578reload_flag_CXX=$reload_flag
13579reload_cmds_CXX=$reload_cmds
13580no_undefined_flag_CXX=
13581whole_archive_flag_spec_CXX=
13582enable_shared_with_static_runtimes_CXX=no
13583
13584# Source file extension for C++ test sources.
13585ac_ext=cpp
13586
13587# Object file extension for compiled C++ test sources.
13588objext=o
13589objext_CXX=$objext
13590
13591# No sense in running all these tests if we already determined that
13592# the CXX compiler isn't working.  Some variables (like enable_shared)
13593# are currently assumed to apply to all compilers on this platform,
13594# and will be corrupted by setting them based on a non-working compiler.
13595if test yes != "$_lt_caught_CXX_error"; then
13596  # Code to be used in simple compile tests
13597  lt_simple_compile_test_code="int some_variable = 0;"
13598
13599  # Code to be used in simple link tests
13600  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13601
13602  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13603
13604
13605
13606
13607
13608
13609# If no C compiler was specified, use CC.
13610LTCC=${LTCC-"$CC"}
13611
13612# If no C compiler flags were specified, use CFLAGS.
13613LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13614
13615# Allow CC to be a program name with arguments.
13616compiler=$CC
13617
13618
13619  # save warnings/boilerplate of simple test code
13620  ac_outfile=conftest.$ac_objext
13621echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13622eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13623_lt_compiler_boilerplate=`cat conftest.err`
13624$RM conftest*
13625
13626  ac_outfile=conftest.$ac_objext
13627echo "$lt_simple_link_test_code" >conftest.$ac_ext
13628eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13629_lt_linker_boilerplate=`cat conftest.err`
13630$RM -r conftest*
13631
13632
13633  # Allow CC to be a program name with arguments.
13634  lt_save_CC=$CC
13635  lt_save_CFLAGS=$CFLAGS
13636  lt_save_LD=$LD
13637  lt_save_GCC=$GCC
13638  GCC=$GXX
13639  lt_save_with_gnu_ld=$with_gnu_ld
13640  lt_save_path_LD=$lt_cv_path_LD
13641  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13642    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13643  else
13644    $as_unset lt_cv_prog_gnu_ld
13645  fi
13646  if test -n "${lt_cv_path_LDCXX+set}"; then
13647    lt_cv_path_LD=$lt_cv_path_LDCXX
13648  else
13649    $as_unset lt_cv_path_LD
13650  fi
13651  test -z "${LDCXX+set}" || LD=$LDCXX
13652  CC=${CXX-"c++"}
13653  CFLAGS=$CXXFLAGS
13654  compiler=$CC
13655  compiler_CXX=$CC
13656  func_cc_basename $compiler
13657cc_basename=$func_cc_basename_result
13658
13659
13660  if test -n "$compiler"; then
13661    # We don't want -fno-exception when compiling C++ code, so set the
13662    # no_builtin_flag separately
13663    if test yes = "$GXX"; then
13664      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13665    else
13666      lt_prog_compiler_no_builtin_flag_CXX=
13667    fi
13668
13669    if test yes = "$GXX"; then
13670      # Set up default GNU C++ configuration
13671
13672
13673
13674# Check whether --with-gnu-ld was given.
13675if test ${with_gnu_ld+y}
13676then :
13677  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13678else $as_nop
13679  with_gnu_ld=no
13680fi
13681
13682ac_prog=ld
13683if test yes = "$GCC"; then
13684  # Check if gcc -print-prog-name=ld gives a path.
13685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13686printf %s "checking for ld used by $CC... " >&6; }
13687  case $host in
13688  *-*-mingw*)
13689    # gcc leaves a trailing carriage return, which upsets mingw
13690    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13691  *)
13692    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13693  esac
13694  case $ac_prog in
13695    # Accept absolute paths.
13696    [\\/]* | ?:[\\/]*)
13697      re_direlt='/[^/][^/]*/\.\./'
13698      # Canonicalize the pathname of ld
13699      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13700      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13701	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13702      done
13703      test -z "$LD" && LD=$ac_prog
13704      ;;
13705  "")
13706    # If it fails, then pretend we aren't using GCC.
13707    ac_prog=ld
13708    ;;
13709  *)
13710    # If it is relative, then search for the first ld in PATH.
13711    with_gnu_ld=unknown
13712    ;;
13713  esac
13714elif test yes = "$with_gnu_ld"; then
13715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13716printf %s "checking for GNU ld... " >&6; }
13717else
13718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13719printf %s "checking for non-GNU ld... " >&6; }
13720fi
13721if test ${lt_cv_path_LD+y}
13722then :
13723  printf %s "(cached) " >&6
13724else $as_nop
13725  if test -z "$LD"; then
13726  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13727  for ac_dir in $PATH; do
13728    IFS=$lt_save_ifs
13729    test -z "$ac_dir" && ac_dir=.
13730    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13731      lt_cv_path_LD=$ac_dir/$ac_prog
13732      # Check to see if the program is GNU ld.  I'd rather use --version,
13733      # but apparently some variants of GNU ld only accept -v.
13734      # Break only if it was the GNU/non-GNU ld that we prefer.
13735      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13736      *GNU* | *'with BFD'*)
13737	test no != "$with_gnu_ld" && break
13738	;;
13739      *)
13740	test yes != "$with_gnu_ld" && break
13741	;;
13742      esac
13743    fi
13744  done
13745  IFS=$lt_save_ifs
13746else
13747  lt_cv_path_LD=$LD # Let the user override the test with a path.
13748fi
13749fi
13750
13751LD=$lt_cv_path_LD
13752if test -n "$LD"; then
13753  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13754printf "%s\n" "$LD" >&6; }
13755else
13756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13757printf "%s\n" "no" >&6; }
13758fi
13759test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13761printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
13762if test ${lt_cv_prog_gnu_ld+y}
13763then :
13764  printf %s "(cached) " >&6
13765else $as_nop
13766  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13767case `$LD -v 2>&1 </dev/null` in
13768*GNU* | *'with BFD'*)
13769  lt_cv_prog_gnu_ld=yes
13770  ;;
13771*)
13772  lt_cv_prog_gnu_ld=no
13773  ;;
13774esac
13775fi
13776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13777printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
13778with_gnu_ld=$lt_cv_prog_gnu_ld
13779
13780
13781
13782
13783
13784
13785
13786      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13787      # archiving commands below assume that GNU ld is being used.
13788      if test yes = "$with_gnu_ld"; then
13789        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13790        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'
13791
13792        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13793        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13794
13795        # If archive_cmds runs LD, not CC, wlarc should be empty
13796        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13797        #     investigate it a little bit more. (MM)
13798        wlarc='$wl'
13799
13800        # ancient GNU ld didn't support --whole-archive et. al.
13801        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13802	  $GREP 'no-whole-archive' > /dev/null; then
13803          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13804        else
13805          whole_archive_flag_spec_CXX=
13806        fi
13807      else
13808        with_gnu_ld=no
13809        wlarc=
13810
13811        # A generic and very simple default shared library creation
13812        # command for GNU C++ for the case where it uses the native
13813        # linker, instead of GNU ld.  If possible, this setting should
13814        # overridden to take advantage of the native linker features on
13815        # the platform it is being used on.
13816        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13817      fi
13818
13819      # Commands to make compiler produce verbose output that lists
13820      # what "hidden" libraries, object files and flags are used when
13821      # linking a shared library.
13822      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13823
13824    else
13825      GXX=no
13826      with_gnu_ld=no
13827      wlarc=
13828    fi
13829
13830    # PORTME: fill in a description of your system's C++ link characteristics
13831    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13832printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13833    ld_shlibs_CXX=yes
13834    case $host_os in
13835      aix3*)
13836        # FIXME: insert proper C++ library support
13837        ld_shlibs_CXX=no
13838        ;;
13839      aix[4-9]*)
13840        if test ia64 = "$host_cpu"; then
13841          # On IA64, the linker does run time linking by default, so we don't
13842          # have to do anything special.
13843          aix_use_runtimelinking=no
13844          exp_sym_flag='-Bexport'
13845          no_entry_flag=
13846        else
13847          aix_use_runtimelinking=no
13848
13849          # Test if we are trying to use run time linking or normal
13850          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13851          # have runtime linking enabled, and use it for executables.
13852          # For shared libraries, we enable/disable runtime linking
13853          # depending on the kind of the shared library created -
13854          # when "with_aix_soname,aix_use_runtimelinking" is:
13855          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13856          # "aix,yes"  lib.so          shared, rtl:yes, for executables
13857          #            lib.a           static archive
13858          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13859          #            lib.a(lib.so.V) shared, rtl:no,  for executables
13860          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13861          #            lib.a(lib.so.V) shared, rtl:no
13862          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13863          #            lib.a           static archive
13864          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13865	    for ld_flag in $LDFLAGS; do
13866	      case $ld_flag in
13867	      *-brtl*)
13868	        aix_use_runtimelinking=yes
13869	        break
13870	        ;;
13871	      esac
13872	    done
13873	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13874	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
13875	      # so we don't have lib.a shared libs to link our executables.
13876	      # We have to force runtime linking in this case.
13877	      aix_use_runtimelinking=yes
13878	      LDFLAGS="$LDFLAGS -Wl,-brtl"
13879	    fi
13880	    ;;
13881          esac
13882
13883          exp_sym_flag='-bexport'
13884          no_entry_flag='-bnoentry'
13885        fi
13886
13887        # When large executables or shared objects are built, AIX ld can
13888        # have problems creating the table of contents.  If linking a library
13889        # or program results in "error TOC overflow" add -mminimal-toc to
13890        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13891        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13892
13893        archive_cmds_CXX=''
13894        hardcode_direct_CXX=yes
13895        hardcode_direct_absolute_CXX=yes
13896        hardcode_libdir_separator_CXX=':'
13897        link_all_deplibs_CXX=yes
13898        file_list_spec_CXX='$wl-f,'
13899        case $with_aix_soname,$aix_use_runtimelinking in
13900        aix,*) ;;	# no import file
13901        svr4,* | *,yes) # use import file
13902          # The Import File defines what to hardcode.
13903          hardcode_direct_CXX=no
13904          hardcode_direct_absolute_CXX=no
13905          ;;
13906        esac
13907
13908        if test yes = "$GXX"; then
13909          case $host_os in aix4.[012]|aix4.[012].*)
13910          # We only want to do this on AIX 4.2 and lower, the check
13911          # below for broken collect2 doesn't work under 4.3+
13912	  collect2name=`$CC -print-prog-name=collect2`
13913	  if test -f "$collect2name" &&
13914	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13915	  then
13916	    # We have reworked collect2
13917	    :
13918	  else
13919	    # We have old collect2
13920	    hardcode_direct_CXX=unsupported
13921	    # It fails to find uninstalled libraries when the uninstalled
13922	    # path is not listed in the libpath.  Setting hardcode_minus_L
13923	    # to unsupported forces relinking
13924	    hardcode_minus_L_CXX=yes
13925	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13926	    hardcode_libdir_separator_CXX=
13927	  fi
13928          esac
13929          shared_flag='-shared'
13930	  if test yes = "$aix_use_runtimelinking"; then
13931	    shared_flag=$shared_flag' $wl-G'
13932	  fi
13933	  # Need to ensure runtime linking is disabled for the traditional
13934	  # shared library, or the linker may eventually find shared libraries
13935	  # /with/ Import File - we do not want to mix them.
13936	  shared_flag_aix='-shared'
13937	  shared_flag_svr4='-shared $wl-G'
13938        else
13939          # not using gcc
13940          if test ia64 = "$host_cpu"; then
13941	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13942	  # chokes on -Wl,-G. The following line is correct:
13943	  shared_flag='-G'
13944          else
13945	    if test yes = "$aix_use_runtimelinking"; then
13946	      shared_flag='$wl-G'
13947	    else
13948	      shared_flag='$wl-bM:SRE'
13949	    fi
13950	    shared_flag_aix='$wl-bM:SRE'
13951	    shared_flag_svr4='$wl-G'
13952          fi
13953        fi
13954
13955        export_dynamic_flag_spec_CXX='$wl-bexpall'
13956        # It seems that -bexpall does not export symbols beginning with
13957        # underscore (_), so it is better to generate a list of symbols to
13958	# export.
13959        always_export_symbols_CXX=yes
13960	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13961          # Warning - without using the other runtime loading flags (-brtl),
13962          # -berok will link without error, but may produce a broken library.
13963          # The "-G" linker flag allows undefined symbols.
13964          no_undefined_flag_CXX='-bernotok'
13965          # Determine the default libpath from the value encoded in an empty
13966          # executable.
13967          if test set = "${lt_cv_aix_libpath+set}"; then
13968  aix_libpath=$lt_cv_aix_libpath
13969else
13970  if test ${lt_cv_aix_libpath__CXX+y}
13971then :
13972  printf %s "(cached) " >&6
13973else $as_nop
13974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975/* end confdefs.h.  */
13976
13977int
13978main (void)
13979{
13980
13981  ;
13982  return 0;
13983}
13984_ACEOF
13985if ac_fn_cxx_try_link "$LINENO"
13986then :
13987
13988  lt_aix_libpath_sed='
13989      /Import File Strings/,/^$/ {
13990	  /^0/ {
13991	      s/^0  *\([^ ]*\) *$/\1/
13992	      p
13993	  }
13994      }'
13995  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13996  # Check for a 64-bit object if we didn't find anything.
13997  if test -z "$lt_cv_aix_libpath__CXX"; then
13998    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13999  fi
14000fi
14001rm -f core conftest.err conftest.$ac_objext conftest.beam \
14002    conftest$ac_exeext conftest.$ac_ext
14003  if test -z "$lt_cv_aix_libpath__CXX"; then
14004    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14005  fi
14006
14007fi
14008
14009  aix_libpath=$lt_cv_aix_libpath__CXX
14010fi
14011
14012          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14013
14014          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
14015        else
14016          if test ia64 = "$host_cpu"; then
14017	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14018	    allow_undefined_flag_CXX="-z nodefs"
14019	    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"
14020          else
14021	    # Determine the default libpath from the value encoded in an
14022	    # empty executable.
14023	    if test set = "${lt_cv_aix_libpath+set}"; then
14024  aix_libpath=$lt_cv_aix_libpath
14025else
14026  if test ${lt_cv_aix_libpath__CXX+y}
14027then :
14028  printf %s "(cached) " >&6
14029else $as_nop
14030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031/* end confdefs.h.  */
14032
14033int
14034main (void)
14035{
14036
14037  ;
14038  return 0;
14039}
14040_ACEOF
14041if ac_fn_cxx_try_link "$LINENO"
14042then :
14043
14044  lt_aix_libpath_sed='
14045      /Import File Strings/,/^$/ {
14046	  /^0/ {
14047	      s/^0  *\([^ ]*\) *$/\1/
14048	      p
14049	  }
14050      }'
14051  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14052  # Check for a 64-bit object if we didn't find anything.
14053  if test -z "$lt_cv_aix_libpath__CXX"; then
14054    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14055  fi
14056fi
14057rm -f core conftest.err conftest.$ac_objext conftest.beam \
14058    conftest$ac_exeext conftest.$ac_ext
14059  if test -z "$lt_cv_aix_libpath__CXX"; then
14060    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14061  fi
14062
14063fi
14064
14065  aix_libpath=$lt_cv_aix_libpath__CXX
14066fi
14067
14068	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14069	    # Warning - without using the other run time loading flags,
14070	    # -berok will link without error, but may produce a broken library.
14071	    no_undefined_flag_CXX=' $wl-bernotok'
14072	    allow_undefined_flag_CXX=' $wl-berok'
14073	    if test yes = "$with_gnu_ld"; then
14074	      # We only use this code for GNU lds that support --whole-archive.
14075	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14076	    else
14077	      # Exported symbols can be pulled into shared objects from archives
14078	      whole_archive_flag_spec_CXX='$convenience'
14079	    fi
14080	    archive_cmds_need_lc_CXX=yes
14081	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14082	    # -brtl affects multiple linker settings, -berok does not and is overridden later
14083	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14084	    if test svr4 != "$with_aix_soname"; then
14085	      # This is similar to how AIX traditionally builds its shared
14086	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14087	      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'
14088	    fi
14089	    if test aix != "$with_aix_soname"; then
14090	      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'
14091	    else
14092	      # used by -dlpreopen to get the symbols
14093	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14094	    fi
14095	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14096          fi
14097        fi
14098        ;;
14099
14100      beos*)
14101	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14102	  allow_undefined_flag_CXX=unsupported
14103	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14104	  # support --undefined.  This deserves some investigation.  FIXME
14105	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14106	else
14107	  ld_shlibs_CXX=no
14108	fi
14109	;;
14110
14111      chorus*)
14112        case $cc_basename in
14113          *)
14114	  # FIXME: insert proper C++ library support
14115	  ld_shlibs_CXX=no
14116	  ;;
14117        esac
14118        ;;
14119
14120      cygwin* | mingw* | pw32* | cegcc*)
14121	case $GXX,$cc_basename in
14122	,cl* | no,cl* | ,icl* | no,icl*)
14123	  # Native MSVC or ICC
14124	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14125	  # no search path for DLLs.
14126	  hardcode_libdir_flag_spec_CXX=' '
14127	  allow_undefined_flag_CXX=unsupported
14128	  always_export_symbols_CXX=yes
14129	  file_list_spec_CXX='@'
14130	  # Tell ltmain to make .lib files, not .a files.
14131	  libext=lib
14132	  # Tell ltmain to make .dll files, not .so files.
14133	  shrext_cmds=.dll
14134	  # FIXME: Setting linknames here is a bad hack.
14135	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14136	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14137              cp "$export_symbols" "$output_objdir/$soname.def";
14138              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14139            else
14140              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14141            fi~
14142            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14143            linknames='
14144	  # The linker will not automatically build a static lib if we build a DLL.
14145	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14146	  enable_shared_with_static_runtimes_CXX=yes
14147	  # Don't use ranlib
14148	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14149	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14150            lt_tool_outputfile="@TOOL_OUTPUT@"~
14151            case $lt_outputfile in
14152              *.exe|*.EXE) ;;
14153              *)
14154                lt_outputfile=$lt_outputfile.exe
14155                lt_tool_outputfile=$lt_tool_outputfile.exe
14156                ;;
14157            esac~
14158            func_to_tool_file "$lt_outputfile"~
14159            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14160              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14161              $RM "$lt_outputfile.manifest";
14162            fi'
14163	  ;;
14164	*)
14165	  # g++
14166	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14167	  # as there is no search path for DLLs.
14168	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14169	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14170	  allow_undefined_flag_CXX=unsupported
14171	  always_export_symbols_CXX=no
14172	  enable_shared_with_static_runtimes_CXX=yes
14173
14174	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14175	    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'
14176	    # If the export-symbols file already is a .def file, use it as
14177	    # is; otherwise, prepend EXPORTS...
14178	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14179              cp $export_symbols $output_objdir/$soname.def;
14180            else
14181              echo EXPORTS > $output_objdir/$soname.def;
14182              cat $export_symbols >> $output_objdir/$soname.def;
14183            fi~
14184            $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'
14185	  else
14186	    ld_shlibs_CXX=no
14187	  fi
14188	  ;;
14189	esac
14190	;;
14191      darwin* | rhapsody*)
14192
14193
14194  archive_cmds_need_lc_CXX=no
14195  hardcode_direct_CXX=no
14196  hardcode_automatic_CXX=yes
14197  hardcode_shlibpath_var_CXX=unsupported
14198  if test yes = "$lt_cv_ld_force_load"; then
14199    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\"`'
14200
14201  else
14202    whole_archive_flag_spec_CXX=''
14203  fi
14204  link_all_deplibs_CXX=yes
14205  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14206  case $cc_basename in
14207     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14208     *) _lt_dar_can_shared=$GCC ;;
14209  esac
14210  if test yes = "$_lt_dar_can_shared"; then
14211    output_verbose_link_cmd=func_echo_all
14212    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"
14213    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14214    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"
14215    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"
14216       if test yes != "$lt_cv_apple_cc_single_mod"; then
14217      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"
14218      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"
14219    fi
14220
14221  else
14222  ld_shlibs_CXX=no
14223  fi
14224
14225	;;
14226
14227      os2*)
14228	hardcode_libdir_flag_spec_CXX='-L$libdir'
14229	hardcode_minus_L_CXX=yes
14230	allow_undefined_flag_CXX=unsupported
14231	shrext_cmds=.dll
14232	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14233	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14234	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14235	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14236	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14237	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14238	  emximp -o $lib $output_objdir/$libname.def'
14239	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14240	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14241	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14242	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14243	  prefix_cmds="$SED"~
14244	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14245	    prefix_cmds="$prefix_cmds -e 1d";
14246	  fi~
14247	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14248	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14249	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14250	  emximp -o $lib $output_objdir/$libname.def'
14251	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14252	enable_shared_with_static_runtimes_CXX=yes
14253	file_list_spec_CXX='@'
14254	;;
14255
14256      dgux*)
14257        case $cc_basename in
14258          ec++*)
14259	    # FIXME: insert proper C++ library support
14260	    ld_shlibs_CXX=no
14261	    ;;
14262          ghcx*)
14263	    # Green Hills C++ Compiler
14264	    # FIXME: insert proper C++ library support
14265	    ld_shlibs_CXX=no
14266	    ;;
14267          *)
14268	    # FIXME: insert proper C++ library support
14269	    ld_shlibs_CXX=no
14270	    ;;
14271        esac
14272        ;;
14273
14274      freebsd2.*)
14275        # C++ shared libraries reported to be fairly broken before
14276	# switch to ELF
14277        ld_shlibs_CXX=no
14278        ;;
14279
14280      freebsd-elf*)
14281        archive_cmds_need_lc_CXX=no
14282        ;;
14283
14284      freebsd* | dragonfly*)
14285        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14286        # conventions
14287        ld_shlibs_CXX=yes
14288        ;;
14289
14290      haiku*)
14291        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14292        link_all_deplibs_CXX=yes
14293        ;;
14294
14295      hpux9*)
14296        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14297        hardcode_libdir_separator_CXX=:
14298        export_dynamic_flag_spec_CXX='$wl-E'
14299        hardcode_direct_CXX=yes
14300        hardcode_minus_L_CXX=yes # Not in the search PATH,
14301				             # but as the default
14302				             # location of the library.
14303
14304        case $cc_basename in
14305          CC*)
14306            # FIXME: insert proper C++ library support
14307            ld_shlibs_CXX=no
14308            ;;
14309          aCC*)
14310            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'
14311            # Commands to make compiler produce verbose output that lists
14312            # what "hidden" libraries, object files and flags are used when
14313            # linking a shared library.
14314            #
14315            # There doesn't appear to be a way to prevent this compiler from
14316            # explicitly linking system object files so we need to strip them
14317            # from the output so that they don't get included in the library
14318            # dependencies.
14319            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"'
14320            ;;
14321          *)
14322            if test yes = "$GXX"; then
14323              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'
14324            else
14325              # FIXME: insert proper C++ library support
14326              ld_shlibs_CXX=no
14327            fi
14328            ;;
14329        esac
14330        ;;
14331
14332      hpux10*|hpux11*)
14333        if test no = "$with_gnu_ld"; then
14334	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14335	  hardcode_libdir_separator_CXX=:
14336
14337          case $host_cpu in
14338            hppa*64*|ia64*)
14339              ;;
14340            *)
14341	      export_dynamic_flag_spec_CXX='$wl-E'
14342              ;;
14343          esac
14344        fi
14345        case $host_cpu in
14346          hppa*64*|ia64*)
14347            hardcode_direct_CXX=no
14348            hardcode_shlibpath_var_CXX=no
14349            ;;
14350          *)
14351            hardcode_direct_CXX=yes
14352            hardcode_direct_absolute_CXX=yes
14353            hardcode_minus_L_CXX=yes # Not in the search PATH,
14354					         # but as the default
14355					         # location of the library.
14356            ;;
14357        esac
14358
14359        case $cc_basename in
14360          CC*)
14361	    # FIXME: insert proper C++ library support
14362	    ld_shlibs_CXX=no
14363	    ;;
14364          aCC*)
14365	    case $host_cpu in
14366	      hppa*64*)
14367	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14368	        ;;
14369	      ia64*)
14370	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14371	        ;;
14372	      *)
14373	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14374	        ;;
14375	    esac
14376	    # Commands to make compiler produce verbose output that lists
14377	    # what "hidden" libraries, object files and flags are used when
14378	    # linking a shared library.
14379	    #
14380	    # There doesn't appear to be a way to prevent this compiler from
14381	    # explicitly linking system object files so we need to strip them
14382	    # from the output so that they don't get included in the library
14383	    # dependencies.
14384	    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"'
14385	    ;;
14386          *)
14387	    if test yes = "$GXX"; then
14388	      if test no = "$with_gnu_ld"; then
14389	        case $host_cpu in
14390	          hppa*64*)
14391	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14392	            ;;
14393	          ia64*)
14394	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14395	            ;;
14396	          *)
14397	            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'
14398	            ;;
14399	        esac
14400	      fi
14401	    else
14402	      # FIXME: insert proper C++ library support
14403	      ld_shlibs_CXX=no
14404	    fi
14405	    ;;
14406        esac
14407        ;;
14408
14409      interix[3-9]*)
14410	hardcode_direct_CXX=no
14411	hardcode_shlibpath_var_CXX=no
14412	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14413	export_dynamic_flag_spec_CXX='$wl-E'
14414	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14415	# Instead, shared libraries are loaded at an image base (0x10000000 by
14416	# default) and relocated if they conflict, which is a slow very memory
14417	# consuming and fragmenting process.  To avoid this, we pick a random,
14418	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14419	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14420	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'
14421	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'
14422	;;
14423      irix5* | irix6*)
14424        case $cc_basename in
14425          CC*)
14426	    # SGI C++
14427	    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'
14428
14429	    # Archives containing C++ object files must be created using
14430	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14431	    # necessary to make sure instantiated templates are included
14432	    # in the archive.
14433	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14434	    ;;
14435          *)
14436	    if test yes = "$GXX"; then
14437	      if test no = "$with_gnu_ld"; then
14438	        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'
14439	      else
14440	        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'
14441	      fi
14442	    fi
14443	    link_all_deplibs_CXX=yes
14444	    ;;
14445        esac
14446        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14447        hardcode_libdir_separator_CXX=:
14448        inherit_rpath_CXX=yes
14449        ;;
14450
14451      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14452        case $cc_basename in
14453          KCC*)
14454	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14455
14456	    # KCC will only create a shared library if the output file
14457	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14458	    # to its proper name (with version) after linking.
14459	    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'
14460	    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'
14461	    # Commands to make compiler produce verbose output that lists
14462	    # what "hidden" libraries, object files and flags are used when
14463	    # linking a shared library.
14464	    #
14465	    # There doesn't appear to be a way to prevent this compiler from
14466	    # explicitly linking system object files so we need to strip them
14467	    # from the output so that they don't get included in the library
14468	    # dependencies.
14469	    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"'
14470
14471	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14472	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14473
14474	    # Archives containing C++ object files must be created using
14475	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14476	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14477	    ;;
14478	  icpc* | ecpc* )
14479	    # Intel C++
14480	    with_gnu_ld=yes
14481	    # version 8.0 and above of icpc choke on multiply defined symbols
14482	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14483	    # earlier do not add the objects themselves.
14484	    case `$CC -V 2>&1` in
14485	      *"Version 7."*)
14486	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14487		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'
14488		;;
14489	      *)  # Version 8.0 or newer
14490	        tmp_idyn=
14491	        case $host_cpu in
14492		  ia64*) tmp_idyn=' -i_dynamic';;
14493		esac
14494	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14495		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'
14496		;;
14497	    esac
14498	    archive_cmds_need_lc_CXX=no
14499	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14500	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14501	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14502	    ;;
14503          pgCC* | pgcpp*)
14504            # Portland Group C++ compiler
14505	    case `$CC -V` in
14506	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14507	      prelink_cmds_CXX='tpldir=Template.dir~
14508               rm -rf $tpldir~
14509               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14510               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14511	      old_archive_cmds_CXX='tpldir=Template.dir~
14512                rm -rf $tpldir~
14513                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14514                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14515                $RANLIB $oldlib'
14516	      archive_cmds_CXX='tpldir=Template.dir~
14517                rm -rf $tpldir~
14518                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14519                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14520	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14521                rm -rf $tpldir~
14522                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14523                $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'
14524	      ;;
14525	    *) # Version 6 and above use weak symbols
14526	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14527	      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'
14528	      ;;
14529	    esac
14530
14531	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14532	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14533	    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'
14534            ;;
14535	  cxx*)
14536	    # Compaq C++
14537	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14538	    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'
14539
14540	    runpath_var=LD_RUN_PATH
14541	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14542	    hardcode_libdir_separator_CXX=:
14543
14544	    # Commands to make compiler produce verbose output that lists
14545	    # what "hidden" libraries, object files and flags are used when
14546	    # linking a shared library.
14547	    #
14548	    # There doesn't appear to be a way to prevent this compiler from
14549	    # explicitly linking system object files so we need to strip them
14550	    # from the output so that they don't get included in the library
14551	    # dependencies.
14552	    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'
14553	    ;;
14554	  xl* | mpixl* | bgxl*)
14555	    # IBM XL 8.0 on PPC, with GNU ld
14556	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14557	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14558	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14559	    if test yes = "$supports_anon_versioning"; then
14560	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14561                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14562                echo "local: *; };" >> $output_objdir/$libname.ver~
14563                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14564	    fi
14565	    ;;
14566	  *)
14567	    case `$CC -V 2>&1 | sed 5q` in
14568	    *Sun\ C*)
14569	      # Sun C++ 5.9
14570	      no_undefined_flag_CXX=' -zdefs'
14571	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14572	      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'
14573	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14574	      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'
14575	      compiler_needs_object_CXX=yes
14576
14577	      # Not sure whether something based on
14578	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14579	      # would be better.
14580	      output_verbose_link_cmd='func_echo_all'
14581
14582	      # Archives containing C++ object files must be created using
14583	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14584	      # necessary to make sure instantiated templates are included
14585	      # in the archive.
14586	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14587	      ;;
14588	    esac
14589	    ;;
14590	esac
14591	;;
14592
14593      lynxos*)
14594        # FIXME: insert proper C++ library support
14595	ld_shlibs_CXX=no
14596	;;
14597
14598      m88k*)
14599        # FIXME: insert proper C++ library support
14600        ld_shlibs_CXX=no
14601	;;
14602
14603      mvs*)
14604        case $cc_basename in
14605          cxx*)
14606	    # FIXME: insert proper C++ library support
14607	    ld_shlibs_CXX=no
14608	    ;;
14609	  *)
14610	    # FIXME: insert proper C++ library support
14611	    ld_shlibs_CXX=no
14612	    ;;
14613	esac
14614	;;
14615
14616      netbsd*)
14617        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14618	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14619	  wlarc=
14620	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14621	  hardcode_direct_CXX=yes
14622	  hardcode_shlibpath_var_CXX=no
14623	fi
14624	# Workaround some broken pre-1.5 toolchains
14625	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14626	;;
14627
14628      *nto* | *qnx*)
14629        ld_shlibs_CXX=yes
14630	;;
14631
14632      openbsd* | bitrig*)
14633	if test -f /usr/libexec/ld.so; then
14634	  hardcode_direct_CXX=yes
14635	  hardcode_shlibpath_var_CXX=no
14636	  hardcode_direct_absolute_CXX=yes
14637	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14638	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14639	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14640	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14641	    export_dynamic_flag_spec_CXX='$wl-E'
14642	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14643	  fi
14644	  output_verbose_link_cmd=func_echo_all
14645	else
14646	  ld_shlibs_CXX=no
14647	fi
14648	;;
14649
14650      osf3* | osf4* | osf5*)
14651        case $cc_basename in
14652          KCC*)
14653	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14654
14655	    # KCC will only create a shared library if the output file
14656	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14657	    # to its proper name (with version) after linking.
14658	    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'
14659
14660	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14661	    hardcode_libdir_separator_CXX=:
14662
14663	    # Archives containing C++ object files must be created using
14664	    # the KAI C++ compiler.
14665	    case $host in
14666	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14667	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14668	    esac
14669	    ;;
14670          RCC*)
14671	    # Rational C++ 2.4.1
14672	    # FIXME: insert proper C++ library support
14673	    ld_shlibs_CXX=no
14674	    ;;
14675          cxx*)
14676	    case $host in
14677	      osf3*)
14678	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14679	        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'
14680	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14681		;;
14682	      *)
14683	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14684	        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'
14685	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14686                  echo "-hidden">> $lib.exp~
14687                  $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~
14688                  $RM $lib.exp'
14689	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14690		;;
14691	    esac
14692
14693	    hardcode_libdir_separator_CXX=:
14694
14695	    # Commands to make compiler produce verbose output that lists
14696	    # what "hidden" libraries, object files and flags are used when
14697	    # linking a shared library.
14698	    #
14699	    # There doesn't appear to be a way to prevent this compiler from
14700	    # explicitly linking system object files so we need to strip them
14701	    # from the output so that they don't get included in the library
14702	    # dependencies.
14703	    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"'
14704	    ;;
14705	  *)
14706	    if test yes,no = "$GXX,$with_gnu_ld"; then
14707	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14708	      case $host in
14709	        osf3*)
14710	          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'
14711		  ;;
14712	        *)
14713	          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'
14714		  ;;
14715	      esac
14716
14717	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14718	      hardcode_libdir_separator_CXX=:
14719
14720	      # Commands to make compiler produce verbose output that lists
14721	      # what "hidden" libraries, object files and flags are used when
14722	      # linking a shared library.
14723	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14724
14725	    else
14726	      # FIXME: insert proper C++ library support
14727	      ld_shlibs_CXX=no
14728	    fi
14729	    ;;
14730        esac
14731        ;;
14732
14733      psos*)
14734        # FIXME: insert proper C++ library support
14735        ld_shlibs_CXX=no
14736        ;;
14737
14738      sunos4*)
14739        case $cc_basename in
14740          CC*)
14741	    # Sun C++ 4.x
14742	    # FIXME: insert proper C++ library support
14743	    ld_shlibs_CXX=no
14744	    ;;
14745          lcc*)
14746	    # Lucid
14747	    # FIXME: insert proper C++ library support
14748	    ld_shlibs_CXX=no
14749	    ;;
14750          *)
14751	    # FIXME: insert proper C++ library support
14752	    ld_shlibs_CXX=no
14753	    ;;
14754        esac
14755        ;;
14756
14757      solaris*)
14758        case $cc_basename in
14759          CC* | sunCC*)
14760	    # Sun C++ 4.2, 5.x and Centerline C++
14761            archive_cmds_need_lc_CXX=yes
14762	    no_undefined_flag_CXX=' -zdefs'
14763	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14764	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14765              $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'
14766
14767	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14768	    hardcode_shlibpath_var_CXX=no
14769	    case $host_os in
14770	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14771	      *)
14772		# The compiler driver will combine and reorder linker options,
14773		# but understands '-z linker_flag'.
14774	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14775		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14776	        ;;
14777	    esac
14778	    link_all_deplibs_CXX=yes
14779
14780	    output_verbose_link_cmd='func_echo_all'
14781
14782	    # Archives containing C++ object files must be created using
14783	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14784	    # necessary to make sure instantiated templates are included
14785	    # in the archive.
14786	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14787	    ;;
14788          gcx*)
14789	    # Green Hills C++ Compiler
14790	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14791
14792	    # The C++ compiler must be used to create the archive.
14793	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14794	    ;;
14795          *)
14796	    # GNU C++ compiler with Solaris linker
14797	    if test yes,no = "$GXX,$with_gnu_ld"; then
14798	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14799	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14800	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14801	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14802                  $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'
14803
14804	        # Commands to make compiler produce verbose output that lists
14805	        # what "hidden" libraries, object files and flags are used when
14806	        # linking a shared library.
14807	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14808	      else
14809	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14810	        # platform.
14811	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14812	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14813                  $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'
14814
14815	        # Commands to make compiler produce verbose output that lists
14816	        # what "hidden" libraries, object files and flags are used when
14817	        # linking a shared library.
14818	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14819	      fi
14820
14821	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14822	      case $host_os in
14823		solaris2.[0-5] | solaris2.[0-5].*) ;;
14824		*)
14825		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14826		  ;;
14827	      esac
14828	    fi
14829	    ;;
14830        esac
14831        ;;
14832
14833    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14834      no_undefined_flag_CXX='$wl-z,text'
14835      archive_cmds_need_lc_CXX=no
14836      hardcode_shlibpath_var_CXX=no
14837      runpath_var='LD_RUN_PATH'
14838
14839      case $cc_basename in
14840        CC*)
14841	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14842	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14843	  ;;
14844	*)
14845	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14846	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14847	  ;;
14848      esac
14849      ;;
14850
14851      sysv5* | sco3.2v5* | sco5v6*)
14852	# Note: We CANNOT use -z defs as we might desire, because we do not
14853	# link with -lc, and that would cause any symbols used from libc to
14854	# always be unresolved, which means just about no library would
14855	# ever link correctly.  If we're not using GNU ld we use -z text
14856	# though, which does catch some bad symbols but isn't as heavy-handed
14857	# as -z defs.
14858	no_undefined_flag_CXX='$wl-z,text'
14859	allow_undefined_flag_CXX='$wl-z,nodefs'
14860	archive_cmds_need_lc_CXX=no
14861	hardcode_shlibpath_var_CXX=no
14862	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14863	hardcode_libdir_separator_CXX=':'
14864	link_all_deplibs_CXX=yes
14865	export_dynamic_flag_spec_CXX='$wl-Bexport'
14866	runpath_var='LD_RUN_PATH'
14867
14868	case $cc_basename in
14869          CC*)
14870	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14871	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14872	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14873              '"$old_archive_cmds_CXX"
14874	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14875              '"$reload_cmds_CXX"
14876	    ;;
14877	  *)
14878	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14879	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14880	    ;;
14881	esac
14882      ;;
14883
14884      tandem*)
14885        case $cc_basename in
14886          NCC*)
14887	    # NonStop-UX NCC 3.20
14888	    # FIXME: insert proper C++ library support
14889	    ld_shlibs_CXX=no
14890	    ;;
14891          *)
14892	    # FIXME: insert proper C++ library support
14893	    ld_shlibs_CXX=no
14894	    ;;
14895        esac
14896        ;;
14897
14898      vxworks*)
14899        # FIXME: insert proper C++ library support
14900        ld_shlibs_CXX=no
14901        ;;
14902
14903      *)
14904        # FIXME: insert proper C++ library support
14905        ld_shlibs_CXX=no
14906        ;;
14907    esac
14908
14909    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14910printf "%s\n" "$ld_shlibs_CXX" >&6; }
14911    test no = "$ld_shlibs_CXX" && can_build_shared=no
14912
14913    GCC_CXX=$GXX
14914    LD_CXX=$LD
14915
14916    ## CAVEAT EMPTOR:
14917    ## There is no encapsulation within the following macros, do not change
14918    ## the running order or otherwise move them around unless you know exactly
14919    ## what you are doing...
14920    # Dependencies to place before and after the object being linked:
14921predep_objects_CXX=
14922postdep_objects_CXX=
14923predeps_CXX=
14924postdeps_CXX=
14925compiler_lib_search_path_CXX=
14926
14927cat > conftest.$ac_ext <<_LT_EOF
14928class Foo
14929{
14930public:
14931  Foo (void) { a = 0; }
14932private:
14933  int a;
14934};
14935_LT_EOF
14936
14937
14938_lt_libdeps_save_CFLAGS=$CFLAGS
14939case "$CC $CFLAGS " in #(
14940*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14941*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14942*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14943esac
14944
14945if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14946  (eval $ac_compile) 2>&5
14947  ac_status=$?
14948  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14949  test $ac_status = 0; }; then
14950  # Parse the compiler output and extract the necessary
14951  # objects, libraries and library flags.
14952
14953  # Sentinel used to keep track of whether or not we are before
14954  # the conftest object file.
14955  pre_test_object_deps_done=no
14956
14957  for p in `eval "$output_verbose_link_cmd"`; do
14958    case $prev$p in
14959
14960    -L* | -R* | -l*)
14961       # Some compilers place space between "-{L,R}" and the path.
14962       # Remove the space.
14963       if test x-L = "$p" ||
14964          test x-R = "$p"; then
14965	 prev=$p
14966	 continue
14967       fi
14968
14969       # Expand the sysroot to ease extracting the directories later.
14970       if test -z "$prev"; then
14971         case $p in
14972         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14973         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14974         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14975         esac
14976       fi
14977       case $p in
14978       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14979       esac
14980       if test no = "$pre_test_object_deps_done"; then
14981	 case $prev in
14982	 -L | -R)
14983	   # Internal compiler library paths should come after those
14984	   # provided the user.  The postdeps already come after the
14985	   # user supplied libs so there is no need to process them.
14986	   if test -z "$compiler_lib_search_path_CXX"; then
14987	     compiler_lib_search_path_CXX=$prev$p
14988	   else
14989	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14990	   fi
14991	   ;;
14992	 # The "-l" case would never come before the object being
14993	 # linked, so don't bother handling this case.
14994	 esac
14995       else
14996	 if test -z "$postdeps_CXX"; then
14997	   postdeps_CXX=$prev$p
14998	 else
14999	   postdeps_CXX="${postdeps_CXX} $prev$p"
15000	 fi
15001       fi
15002       prev=
15003       ;;
15004
15005    *.lto.$objext) ;; # Ignore GCC LTO objects
15006    *.$objext)
15007       # This assumes that the test object file only shows up
15008       # once in the compiler output.
15009       if test "$p" = "conftest.$objext"; then
15010	 pre_test_object_deps_done=yes
15011	 continue
15012       fi
15013
15014       if test no = "$pre_test_object_deps_done"; then
15015	 if test -z "$predep_objects_CXX"; then
15016	   predep_objects_CXX=$p
15017	 else
15018	   predep_objects_CXX="$predep_objects_CXX $p"
15019	 fi
15020       else
15021	 if test -z "$postdep_objects_CXX"; then
15022	   postdep_objects_CXX=$p
15023	 else
15024	   postdep_objects_CXX="$postdep_objects_CXX $p"
15025	 fi
15026       fi
15027       ;;
15028
15029    *) ;; # Ignore the rest.
15030
15031    esac
15032  done
15033
15034  # Clean up.
15035  rm -f a.out a.exe
15036else
15037  echo "libtool.m4: error: problem compiling CXX test program"
15038fi
15039
15040$RM -f confest.$objext
15041CFLAGS=$_lt_libdeps_save_CFLAGS
15042
15043# PORTME: override above test on systems where it is broken
15044case $host_os in
15045interix[3-9]*)
15046  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15047  # hack all around it, let's just trust "g++" to DTRT.
15048  predep_objects_CXX=
15049  postdep_objects_CXX=
15050  postdeps_CXX=
15051  ;;
15052esac
15053
15054
15055case " $postdeps_CXX " in
15056*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15057esac
15058 compiler_lib_search_dirs_CXX=
15059if test -n "${compiler_lib_search_path_CXX}"; then
15060 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15061fi
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093    lt_prog_compiler_wl_CXX=
15094lt_prog_compiler_pic_CXX=
15095lt_prog_compiler_static_CXX=
15096
15097
15098  # C++ specific cases for pic, static, wl, etc.
15099  if test yes = "$GXX"; then
15100    lt_prog_compiler_wl_CXX='-Wl,'
15101    lt_prog_compiler_static_CXX='-static'
15102
15103    case $host_os in
15104    aix*)
15105      # All AIX code is PIC.
15106      if test ia64 = "$host_cpu"; then
15107	# AIX 5 now supports IA64 processor
15108	lt_prog_compiler_static_CXX='-Bstatic'
15109      fi
15110      lt_prog_compiler_pic_CXX='-fPIC'
15111      ;;
15112
15113    amigaos*)
15114      case $host_cpu in
15115      powerpc)
15116            # see comment about AmigaOS4 .so support
15117            lt_prog_compiler_pic_CXX='-fPIC'
15118        ;;
15119      m68k)
15120            # FIXME: we need at least 68020 code to build shared libraries, but
15121            # adding the '-m68020' flag to GCC prevents building anything better,
15122            # like '-m68040'.
15123            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15124        ;;
15125      esac
15126      ;;
15127
15128    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15129      # PIC is the default for these OSes.
15130      ;;
15131    mingw* | cygwin* | os2* | pw32* | cegcc*)
15132      # This hack is so that the source file can tell whether it is being
15133      # built for inclusion in a dll (and should export symbols for example).
15134      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15135      # (--disable-auto-import) libraries
15136      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15137      case $host_os in
15138      os2*)
15139	lt_prog_compiler_static_CXX='$wl-static'
15140	;;
15141      esac
15142      ;;
15143    darwin* | rhapsody*)
15144      # PIC is the default on this platform
15145      # Common symbols not allowed in MH_DYLIB files
15146      lt_prog_compiler_pic_CXX='-fno-common'
15147      ;;
15148    *djgpp*)
15149      # DJGPP does not support shared libraries at all
15150      lt_prog_compiler_pic_CXX=
15151      ;;
15152    haiku*)
15153      # PIC is the default for Haiku.
15154      # The "-static" flag exists, but is broken.
15155      lt_prog_compiler_static_CXX=
15156      ;;
15157    interix[3-9]*)
15158      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15159      # Instead, we relocate shared libraries at runtime.
15160      ;;
15161    sysv4*MP*)
15162      if test -d /usr/nec; then
15163	lt_prog_compiler_pic_CXX=-Kconform_pic
15164      fi
15165      ;;
15166    hpux*)
15167      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15168      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15169      # sets the default TLS model and affects inlining.
15170      case $host_cpu in
15171      hppa*64*)
15172	;;
15173      *)
15174	lt_prog_compiler_pic_CXX='-fPIC'
15175	;;
15176      esac
15177      ;;
15178    *qnx* | *nto*)
15179      # QNX uses GNU C++, but need to define -shared option too, otherwise
15180      # it will coredump.
15181      lt_prog_compiler_pic_CXX='-fPIC -shared'
15182      ;;
15183    *)
15184      lt_prog_compiler_pic_CXX='-fPIC'
15185      ;;
15186    esac
15187  else
15188    case $host_os in
15189      aix[4-9]*)
15190	# All AIX code is PIC.
15191	if test ia64 = "$host_cpu"; then
15192	  # AIX 5 now supports IA64 processor
15193	  lt_prog_compiler_static_CXX='-Bstatic'
15194	else
15195	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15196	fi
15197	;;
15198      chorus*)
15199	case $cc_basename in
15200	cxch68*)
15201	  # Green Hills C++ Compiler
15202	  # _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"
15203	  ;;
15204	esac
15205	;;
15206      mingw* | cygwin* | os2* | pw32* | cegcc*)
15207	# This hack is so that the source file can tell whether it is being
15208	# built for inclusion in a dll (and should export symbols for example).
15209	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15210	;;
15211      dgux*)
15212	case $cc_basename in
15213	  ec++*)
15214	    lt_prog_compiler_pic_CXX='-KPIC'
15215	    ;;
15216	  ghcx*)
15217	    # Green Hills C++ Compiler
15218	    lt_prog_compiler_pic_CXX='-pic'
15219	    ;;
15220	  *)
15221	    ;;
15222	esac
15223	;;
15224      freebsd* | dragonfly*)
15225	# FreeBSD uses GNU C++
15226	;;
15227      hpux9* | hpux10* | hpux11*)
15228	case $cc_basename in
15229	  CC*)
15230	    lt_prog_compiler_wl_CXX='-Wl,'
15231	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15232	    if test ia64 != "$host_cpu"; then
15233	      lt_prog_compiler_pic_CXX='+Z'
15234	    fi
15235	    ;;
15236	  aCC*)
15237	    lt_prog_compiler_wl_CXX='-Wl,'
15238	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15239	    case $host_cpu in
15240	    hppa*64*|ia64*)
15241	      # +Z the default
15242	      ;;
15243	    *)
15244	      lt_prog_compiler_pic_CXX='+Z'
15245	      ;;
15246	    esac
15247	    ;;
15248	  *)
15249	    ;;
15250	esac
15251	;;
15252      interix*)
15253	# This is c89, which is MS Visual C++ (no shared libs)
15254	# Anyone wants to do a port?
15255	;;
15256      irix5* | irix6* | nonstopux*)
15257	case $cc_basename in
15258	  CC*)
15259	    lt_prog_compiler_wl_CXX='-Wl,'
15260	    lt_prog_compiler_static_CXX='-non_shared'
15261	    # CC pic flag -KPIC is the default.
15262	    ;;
15263	  *)
15264	    ;;
15265	esac
15266	;;
15267      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15268	case $cc_basename in
15269	  KCC*)
15270	    # KAI C++ Compiler
15271	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15272	    lt_prog_compiler_pic_CXX='-fPIC'
15273	    ;;
15274	  ecpc* )
15275	    # old Intel C++ for x86_64, which still supported -KPIC.
15276	    lt_prog_compiler_wl_CXX='-Wl,'
15277	    lt_prog_compiler_pic_CXX='-KPIC'
15278	    lt_prog_compiler_static_CXX='-static'
15279	    ;;
15280	  icpc* )
15281	    # Intel C++, used to be incompatible with GCC.
15282	    # ICC 10 doesn't accept -KPIC any more.
15283	    lt_prog_compiler_wl_CXX='-Wl,'
15284	    lt_prog_compiler_pic_CXX='-fPIC'
15285	    lt_prog_compiler_static_CXX='-static'
15286	    ;;
15287	  pgCC* | pgcpp*)
15288	    # Portland Group C++ compiler
15289	    lt_prog_compiler_wl_CXX='-Wl,'
15290	    lt_prog_compiler_pic_CXX='-fpic'
15291	    lt_prog_compiler_static_CXX='-Bstatic'
15292	    ;;
15293	  cxx*)
15294	    # Compaq C++
15295	    # Make sure the PIC flag is empty.  It appears that all Alpha
15296	    # Linux and Compaq Tru64 Unix objects are PIC.
15297	    lt_prog_compiler_pic_CXX=
15298	    lt_prog_compiler_static_CXX='-non_shared'
15299	    ;;
15300	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15301	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15302	    lt_prog_compiler_wl_CXX='-Wl,'
15303	    lt_prog_compiler_pic_CXX='-qpic'
15304	    lt_prog_compiler_static_CXX='-qstaticlink'
15305	    ;;
15306	  *)
15307	    case `$CC -V 2>&1 | sed 5q` in
15308	    *Sun\ C*)
15309	      # Sun C++ 5.9
15310	      lt_prog_compiler_pic_CXX='-KPIC'
15311	      lt_prog_compiler_static_CXX='-Bstatic'
15312	      lt_prog_compiler_wl_CXX='-Qoption ld '
15313	      ;;
15314	    esac
15315	    ;;
15316	esac
15317	;;
15318      lynxos*)
15319	;;
15320      m88k*)
15321	;;
15322      mvs*)
15323	case $cc_basename in
15324	  cxx*)
15325	    lt_prog_compiler_pic_CXX='-W c,exportall'
15326	    ;;
15327	  *)
15328	    ;;
15329	esac
15330	;;
15331      netbsd*)
15332	;;
15333      *qnx* | *nto*)
15334        # QNX uses GNU C++, but need to define -shared option too, otherwise
15335        # it will coredump.
15336        lt_prog_compiler_pic_CXX='-fPIC -shared'
15337        ;;
15338      osf3* | osf4* | osf5*)
15339	case $cc_basename in
15340	  KCC*)
15341	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15342	    ;;
15343	  RCC*)
15344	    # Rational C++ 2.4.1
15345	    lt_prog_compiler_pic_CXX='-pic'
15346	    ;;
15347	  cxx*)
15348	    # Digital/Compaq C++
15349	    lt_prog_compiler_wl_CXX='-Wl,'
15350	    # Make sure the PIC flag is empty.  It appears that all Alpha
15351	    # Linux and Compaq Tru64 Unix objects are PIC.
15352	    lt_prog_compiler_pic_CXX=
15353	    lt_prog_compiler_static_CXX='-non_shared'
15354	    ;;
15355	  *)
15356	    ;;
15357	esac
15358	;;
15359      psos*)
15360	;;
15361      solaris*)
15362	case $cc_basename in
15363	  CC* | sunCC*)
15364	    # Sun C++ 4.2, 5.x and Centerline C++
15365	    lt_prog_compiler_pic_CXX='-KPIC'
15366	    lt_prog_compiler_static_CXX='-Bstatic'
15367	    lt_prog_compiler_wl_CXX='-Qoption ld '
15368	    ;;
15369	  gcx*)
15370	    # Green Hills C++ Compiler
15371	    lt_prog_compiler_pic_CXX='-PIC'
15372	    ;;
15373	  *)
15374	    ;;
15375	esac
15376	;;
15377      sunos4*)
15378	case $cc_basename in
15379	  CC*)
15380	    # Sun C++ 4.x
15381	    lt_prog_compiler_pic_CXX='-pic'
15382	    lt_prog_compiler_static_CXX='-Bstatic'
15383	    ;;
15384	  lcc*)
15385	    # Lucid
15386	    lt_prog_compiler_pic_CXX='-pic'
15387	    ;;
15388	  *)
15389	    ;;
15390	esac
15391	;;
15392      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15393	case $cc_basename in
15394	  CC*)
15395	    lt_prog_compiler_wl_CXX='-Wl,'
15396	    lt_prog_compiler_pic_CXX='-KPIC'
15397	    lt_prog_compiler_static_CXX='-Bstatic'
15398	    ;;
15399	esac
15400	;;
15401      tandem*)
15402	case $cc_basename in
15403	  NCC*)
15404	    # NonStop-UX NCC 3.20
15405	    lt_prog_compiler_pic_CXX='-KPIC'
15406	    ;;
15407	  *)
15408	    ;;
15409	esac
15410	;;
15411      vxworks*)
15412	;;
15413      *)
15414	lt_prog_compiler_can_build_shared_CXX=no
15415	;;
15416    esac
15417  fi
15418
15419case $host_os in
15420  # For platforms that do not support PIC, -DPIC is meaningless:
15421  *djgpp*)
15422    lt_prog_compiler_pic_CXX=
15423    ;;
15424  *)
15425    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15426    ;;
15427esac
15428
15429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15430printf %s "checking for $compiler option to produce PIC... " >&6; }
15431if test ${lt_cv_prog_compiler_pic_CXX+y}
15432then :
15433  printf %s "(cached) " >&6
15434else $as_nop
15435  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15436fi
15437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15438printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
15439lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15440
15441#
15442# Check to make sure the PIC flag actually works.
15443#
15444if test -n "$lt_prog_compiler_pic_CXX"; then
15445  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15446printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15447if test ${lt_cv_prog_compiler_pic_works_CXX+y}
15448then :
15449  printf %s "(cached) " >&6
15450else $as_nop
15451  lt_cv_prog_compiler_pic_works_CXX=no
15452   ac_outfile=conftest.$ac_objext
15453   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15454   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15455   # Insert the option either (1) after the last *FLAGS variable, or
15456   # (2) before a word containing "conftest.", or (3) at the end.
15457   # Note that $ac_compile itself does not contain backslashes and begins
15458   # with a dollar sign (not a hyphen), so the echo should work correctly.
15459   # The option is referenced via a variable to avoid confusing sed.
15460   lt_compile=`echo "$ac_compile" | $SED \
15461   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15462   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15463   -e 's:$: $lt_compiler_flag:'`
15464   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15465   (eval "$lt_compile" 2>conftest.err)
15466   ac_status=$?
15467   cat conftest.err >&5
15468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469   if (exit $ac_status) && test -s "$ac_outfile"; then
15470     # The compiler can only warn and ignore the option if not recognized
15471     # So say no if there are warnings other than the usual output.
15472     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15473     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15474     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15475       lt_cv_prog_compiler_pic_works_CXX=yes
15476     fi
15477   fi
15478   $RM conftest*
15479
15480fi
15481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15482printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15483
15484if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15485    case $lt_prog_compiler_pic_CXX in
15486     "" | " "*) ;;
15487     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15488     esac
15489else
15490    lt_prog_compiler_pic_CXX=
15491     lt_prog_compiler_can_build_shared_CXX=no
15492fi
15493
15494fi
15495
15496
15497
15498
15499
15500#
15501# Check to make sure the static flag actually works.
15502#
15503wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15505printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15506if test ${lt_cv_prog_compiler_static_works_CXX+y}
15507then :
15508  printf %s "(cached) " >&6
15509else $as_nop
15510  lt_cv_prog_compiler_static_works_CXX=no
15511   save_LDFLAGS=$LDFLAGS
15512   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15513   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15514   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15515     # The linker can only warn and ignore the option if not recognized
15516     # So say no if there are warnings
15517     if test -s conftest.err; then
15518       # Append any errors to the config.log.
15519       cat conftest.err 1>&5
15520       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15521       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15522       if diff conftest.exp conftest.er2 >/dev/null; then
15523         lt_cv_prog_compiler_static_works_CXX=yes
15524       fi
15525     else
15526       lt_cv_prog_compiler_static_works_CXX=yes
15527     fi
15528   fi
15529   $RM -r conftest*
15530   LDFLAGS=$save_LDFLAGS
15531
15532fi
15533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15534printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15535
15536if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15537    :
15538else
15539    lt_prog_compiler_static_CXX=
15540fi
15541
15542
15543
15544
15545    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15546printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15547if test ${lt_cv_prog_compiler_c_o_CXX+y}
15548then :
15549  printf %s "(cached) " >&6
15550else $as_nop
15551  lt_cv_prog_compiler_c_o_CXX=no
15552   $RM -r conftest 2>/dev/null
15553   mkdir conftest
15554   cd conftest
15555   mkdir out
15556   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15557
15558   lt_compiler_flag="-o out/conftest2.$ac_objext"
15559   # Insert the option either (1) after the last *FLAGS variable, or
15560   # (2) before a word containing "conftest.", or (3) at the end.
15561   # Note that $ac_compile itself does not contain backslashes and begins
15562   # with a dollar sign (not a hyphen), so the echo should work correctly.
15563   lt_compile=`echo "$ac_compile" | $SED \
15564   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15565   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15566   -e 's:$: $lt_compiler_flag:'`
15567   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15568   (eval "$lt_compile" 2>out/conftest.err)
15569   ac_status=$?
15570   cat out/conftest.err >&5
15571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15573   then
15574     # The compiler can only warn and ignore the option if not recognized
15575     # So say no if there are warnings
15576     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15577     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15578     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15579       lt_cv_prog_compiler_c_o_CXX=yes
15580     fi
15581   fi
15582   chmod u+w . 2>&5
15583   $RM conftest*
15584   # SGI C++ compiler will create directory out/ii_files/ for
15585   # template instantiation
15586   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15587   $RM out/* && rmdir out
15588   cd ..
15589   $RM -r conftest
15590   $RM conftest*
15591
15592fi
15593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15594printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15595
15596
15597
15598    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15599printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15600if test ${lt_cv_prog_compiler_c_o_CXX+y}
15601then :
15602  printf %s "(cached) " >&6
15603else $as_nop
15604  lt_cv_prog_compiler_c_o_CXX=no
15605   $RM -r conftest 2>/dev/null
15606   mkdir conftest
15607   cd conftest
15608   mkdir out
15609   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15610
15611   lt_compiler_flag="-o out/conftest2.$ac_objext"
15612   # Insert the option either (1) after the last *FLAGS variable, or
15613   # (2) before a word containing "conftest.", or (3) at the end.
15614   # Note that $ac_compile itself does not contain backslashes and begins
15615   # with a dollar sign (not a hyphen), so the echo should work correctly.
15616   lt_compile=`echo "$ac_compile" | $SED \
15617   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15618   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15619   -e 's:$: $lt_compiler_flag:'`
15620   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15621   (eval "$lt_compile" 2>out/conftest.err)
15622   ac_status=$?
15623   cat out/conftest.err >&5
15624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15626   then
15627     # The compiler can only warn and ignore the option if not recognized
15628     # So say no if there are warnings
15629     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15630     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15631     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15632       lt_cv_prog_compiler_c_o_CXX=yes
15633     fi
15634   fi
15635   chmod u+w . 2>&5
15636   $RM conftest*
15637   # SGI C++ compiler will create directory out/ii_files/ for
15638   # template instantiation
15639   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15640   $RM out/* && rmdir out
15641   cd ..
15642   $RM -r conftest
15643   $RM conftest*
15644
15645fi
15646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15647printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15648
15649
15650
15651
15652hard_links=nottested
15653if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15654  # do not overwrite the value of need_locks provided by the user
15655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15656printf %s "checking if we can lock with hard links... " >&6; }
15657  hard_links=yes
15658  $RM conftest*
15659  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15660  touch conftest.a
15661  ln conftest.a conftest.b 2>&5 || hard_links=no
15662  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15664printf "%s\n" "$hard_links" >&6; }
15665  if test no = "$hard_links"; then
15666    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15667printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15668    need_locks=warn
15669  fi
15670else
15671  need_locks=no
15672fi
15673
15674
15675
15676    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15677printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15678
15679  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15680  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15681  case $host_os in
15682  aix[4-9]*)
15683    # If we're using GNU nm, then we don't want the "-C" option.
15684    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15685    # Without the "-l" option, or with the "-B" option, AIX nm treats
15686    # weak defined symbols like other global defined symbols, whereas
15687    # GNU nm marks them as "W".
15688    # While the 'weak' keyword is ignored in the Export File, we need
15689    # it in the Import File for the 'aix-soname' feature, so we have
15690    # to replace the "-B" option with "-P" for AIX nm.
15691    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15692      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'
15693    else
15694      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 == "L") || (\$ 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'
15695    fi
15696    ;;
15697  pw32*)
15698    export_symbols_cmds_CXX=$ltdll_cmds
15699    ;;
15700  cygwin* | mingw* | cegcc*)
15701    case $cc_basename in
15702    cl* | icl*)
15703      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15704      ;;
15705    *)
15706      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'
15707      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15708      ;;
15709    esac
15710    ;;
15711  *)
15712    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15713    ;;
15714  esac
15715
15716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15717printf "%s\n" "$ld_shlibs_CXX" >&6; }
15718test no = "$ld_shlibs_CXX" && can_build_shared=no
15719
15720with_gnu_ld_CXX=$with_gnu_ld
15721
15722
15723
15724
15725
15726
15727#
15728# Do we need to explicitly link libc?
15729#
15730case "x$archive_cmds_need_lc_CXX" in
15731x|xyes)
15732  # Assume -lc should be added
15733  archive_cmds_need_lc_CXX=yes
15734
15735  if test yes,yes = "$GCC,$enable_shared"; then
15736    case $archive_cmds_CXX in
15737    *'~'*)
15738      # FIXME: we may have to deal with multi-command sequences.
15739      ;;
15740    '$CC '*)
15741      # Test whether the compiler implicitly links with -lc since on some
15742      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15743      # to ld, don't add -lc before -lgcc.
15744      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15745printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15746if test ${lt_cv_archive_cmds_need_lc_CXX+y}
15747then :
15748  printf %s "(cached) " >&6
15749else $as_nop
15750  $RM conftest*
15751	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15752
15753	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15754  (eval $ac_compile) 2>&5
15755  ac_status=$?
15756  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15757  test $ac_status = 0; } 2>conftest.err; then
15758	  soname=conftest
15759	  lib=conftest
15760	  libobjs=conftest.$ac_objext
15761	  deplibs=
15762	  wl=$lt_prog_compiler_wl_CXX
15763	  pic_flag=$lt_prog_compiler_pic_CXX
15764	  compiler_flags=-v
15765	  linker_flags=-v
15766	  verstring=
15767	  output_objdir=.
15768	  libname=conftest
15769	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15770	  allow_undefined_flag_CXX=
15771	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15772  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15773  ac_status=$?
15774  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15775  test $ac_status = 0; }
15776	  then
15777	    lt_cv_archive_cmds_need_lc_CXX=no
15778	  else
15779	    lt_cv_archive_cmds_need_lc_CXX=yes
15780	  fi
15781	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15782	else
15783	  cat conftest.err 1>&5
15784	fi
15785	$RM conftest*
15786
15787fi
15788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15789printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15790      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15791      ;;
15792    esac
15793  fi
15794  ;;
15795esac
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15859printf %s "checking dynamic linker characteristics... " >&6; }
15860
15861library_names_spec=
15862libname_spec='lib$name'
15863soname_spec=
15864shrext_cmds=.so
15865postinstall_cmds=
15866postuninstall_cmds=
15867finish_cmds=
15868finish_eval=
15869shlibpath_var=
15870shlibpath_overrides_runpath=unknown
15871version_type=none
15872dynamic_linker="$host_os ld.so"
15873sys_lib_dlsearch_path_spec="/lib /usr/lib"
15874need_lib_prefix=unknown
15875hardcode_into_libs=no
15876
15877# when you set need_version to no, make sure it does not cause -set_version
15878# flags to be left without arguments
15879need_version=unknown
15880
15881
15882
15883case $host_os in
15884aix3*)
15885  version_type=linux # correct to gnu/linux during the next big refactor
15886  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15887  shlibpath_var=LIBPATH
15888
15889  # AIX 3 has no versioning support, so we append a major version to the name.
15890  soname_spec='$libname$release$shared_ext$major'
15891  ;;
15892
15893aix[4-9]*)
15894  version_type=linux # correct to gnu/linux during the next big refactor
15895  need_lib_prefix=no
15896  need_version=no
15897  hardcode_into_libs=yes
15898  if test ia64 = "$host_cpu"; then
15899    # AIX 5 supports IA64
15900    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15901    shlibpath_var=LD_LIBRARY_PATH
15902  else
15903    # With GCC up to 2.95.x, collect2 would create an import file
15904    # for dependence libraries.  The import file would start with
15905    # the line '#! .'.  This would cause the generated library to
15906    # depend on '.', always an invalid library.  This was fixed in
15907    # development snapshots of GCC prior to 3.0.
15908    case $host_os in
15909      aix4 | aix4.[01] | aix4.[01].*)
15910      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15911	   echo ' yes '
15912	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15913	:
15914      else
15915	can_build_shared=no
15916      fi
15917      ;;
15918    esac
15919    # Using Import Files as archive members, it is possible to support
15920    # filename-based versioning of shared library archives on AIX. While
15921    # this would work for both with and without runtime linking, it will
15922    # prevent static linking of such archives. So we do filename-based
15923    # shared library versioning with .so extension only, which is used
15924    # when both runtime linking and shared linking is enabled.
15925    # Unfortunately, runtime linking may impact performance, so we do
15926    # not want this to be the default eventually. Also, we use the
15927    # versioned .so libs for executables only if there is the -brtl
15928    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15929    # To allow for filename-based versioning support, we need to create
15930    # libNAME.so.V as an archive file, containing:
15931    # *) an Import File, referring to the versioned filename of the
15932    #    archive as well as the shared archive member, telling the
15933    #    bitwidth (32 or 64) of that shared object, and providing the
15934    #    list of exported symbols of that shared object, eventually
15935    #    decorated with the 'weak' keyword
15936    # *) the shared object with the F_LOADONLY flag set, to really avoid
15937    #    it being seen by the linker.
15938    # At run time we better use the real file rather than another symlink,
15939    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15940
15941    case $with_aix_soname,$aix_use_runtimelinking in
15942    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15943    # soname into executable. Probably we can add versioning support to
15944    # collect2, so additional links can be useful in future.
15945    aix,yes) # traditional libtool
15946      dynamic_linker='AIX unversionable lib.so'
15947      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15948      # instead of lib<name>.a to let people know that these are not
15949      # typical AIX shared libraries.
15950      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15951      ;;
15952    aix,no) # traditional AIX only
15953      dynamic_linker='AIX lib.a(lib.so.V)'
15954      # We preserve .a as extension for shared libraries through AIX4.2
15955      # and later when we are not doing run time linking.
15956      library_names_spec='$libname$release.a $libname.a'
15957      soname_spec='$libname$release$shared_ext$major'
15958      ;;
15959    svr4,*) # full svr4 only
15960      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15961      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15962      # We do not specify a path in Import Files, so LIBPATH fires.
15963      shlibpath_overrides_runpath=yes
15964      ;;
15965    *,yes) # both, prefer svr4
15966      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15967      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15968      # unpreferred sharedlib libNAME.a needs extra handling
15969      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"'
15970      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"'
15971      # We do not specify a path in Import Files, so LIBPATH fires.
15972      shlibpath_overrides_runpath=yes
15973      ;;
15974    *,no) # both, prefer aix
15975      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15976      library_names_spec='$libname$release.a $libname.a'
15977      soname_spec='$libname$release$shared_ext$major'
15978      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15979      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)'
15980      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"'
15981      ;;
15982    esac
15983    shlibpath_var=LIBPATH
15984  fi
15985  ;;
15986
15987amigaos*)
15988  case $host_cpu in
15989  powerpc)
15990    # Since July 2007 AmigaOS4 officially supports .so libraries.
15991    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15992    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15993    ;;
15994  m68k)
15995    library_names_spec='$libname.ixlibrary $libname.a'
15996    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15997    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'
15998    ;;
15999  esac
16000  ;;
16001
16002beos*)
16003  library_names_spec='$libname$shared_ext'
16004  dynamic_linker="$host_os ld.so"
16005  shlibpath_var=LIBRARY_PATH
16006  ;;
16007
16008bsdi[45]*)
16009  version_type=linux # correct to gnu/linux during the next big refactor
16010  need_version=no
16011  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16012  soname_spec='$libname$release$shared_ext$major'
16013  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16014  shlibpath_var=LD_LIBRARY_PATH
16015  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16016  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16017  # the default ld.so.conf also contains /usr/contrib/lib and
16018  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16019  # libtool to hard-code these into programs
16020  ;;
16021
16022cygwin* | mingw* | pw32* | cegcc*)
16023  version_type=windows
16024  shrext_cmds=.dll
16025  need_version=no
16026  need_lib_prefix=no
16027
16028  case $GCC,$cc_basename in
16029  yes,*)
16030    # gcc
16031    library_names_spec='$libname.dll.a'
16032    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16033    postinstall_cmds='base_file=`basename \$file`~
16034      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16035      dldir=$destdir/`dirname \$dlpath`~
16036      test -d \$dldir || mkdir -p \$dldir~
16037      $install_prog $dir/$dlname \$dldir/$dlname~
16038      chmod a+x \$dldir/$dlname~
16039      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16040        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16041      fi'
16042    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16043      dlpath=$dir/\$dldll~
16044       $RM \$dlpath'
16045    shlibpath_overrides_runpath=yes
16046
16047    case $host_os in
16048    cygwin*)
16049      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16050      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16051
16052      ;;
16053    mingw* | cegcc*)
16054      # MinGW DLLs use traditional 'lib' prefix
16055      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16056      ;;
16057    pw32*)
16058      # pw32 DLLs use 'pw' prefix rather than 'lib'
16059      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16060      ;;
16061    esac
16062    dynamic_linker='Win32 ld.exe'
16063    ;;
16064
16065  *,cl* | *,icl*)
16066    # Native MSVC or ICC
16067    libname_spec='$name'
16068    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16069    library_names_spec='$libname.dll.lib'
16070
16071    case $build_os in
16072    mingw*)
16073      sys_lib_search_path_spec=
16074      lt_save_ifs=$IFS
16075      IFS=';'
16076      for lt_path in $LIB
16077      do
16078        IFS=$lt_save_ifs
16079        # Let DOS variable expansion print the short 8.3 style file name.
16080        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16081        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16082      done
16083      IFS=$lt_save_ifs
16084      # Convert to MSYS style.
16085      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16086      ;;
16087    cygwin*)
16088      # Convert to unix form, then to dos form, then back to unix form
16089      # but this time dos style (no spaces!) so that the unix form looks
16090      # like /cygdrive/c/PROGRA~1:/cygdr...
16091      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16092      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16093      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16094      ;;
16095    *)
16096      sys_lib_search_path_spec=$LIB
16097      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16098        # It is most probably a Windows format PATH.
16099        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16100      else
16101        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16102      fi
16103      # FIXME: find the short name or the path components, as spaces are
16104      # common. (e.g. "Program Files" -> "PROGRA~1")
16105      ;;
16106    esac
16107
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    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16115      dlpath=$dir/\$dldll~
16116       $RM \$dlpath'
16117    shlibpath_overrides_runpath=yes
16118    dynamic_linker='Win32 link.exe'
16119    ;;
16120
16121  *)
16122    # Assume MSVC and ICC wrapper
16123    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16124    dynamic_linker='Win32 ld.exe'
16125    ;;
16126  esac
16127  # FIXME: first we should search . and the directory the executable is in
16128  shlibpath_var=PATH
16129  ;;
16130
16131darwin* | rhapsody*)
16132  dynamic_linker="$host_os dyld"
16133  version_type=darwin
16134  need_lib_prefix=no
16135  need_version=no
16136  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16137  soname_spec='$libname$release$major$shared_ext'
16138  shlibpath_overrides_runpath=yes
16139  shlibpath_var=DYLD_LIBRARY_PATH
16140  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16141
16142  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16143  ;;
16144
16145dgux*)
16146  version_type=linux # correct to gnu/linux during the next big refactor
16147  need_lib_prefix=no
16148  need_version=no
16149  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16150  soname_spec='$libname$release$shared_ext$major'
16151  shlibpath_var=LD_LIBRARY_PATH
16152  ;;
16153
16154freebsd* | dragonfly*)
16155  # DragonFly does not have aout.  When/if they implement a new
16156  # versioning mechanism, adjust this.
16157  if test -x /usr/bin/objformat; then
16158    objformat=`/usr/bin/objformat`
16159  else
16160    case $host_os in
16161    freebsd[23].*) objformat=aout ;;
16162    *) objformat=elf ;;
16163    esac
16164  fi
16165  version_type=freebsd-$objformat
16166  case $version_type in
16167    freebsd-elf*)
16168      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16169      soname_spec='$libname$release$shared_ext$major'
16170      need_version=no
16171      need_lib_prefix=no
16172      ;;
16173    freebsd-*)
16174      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16175      need_version=yes
16176      ;;
16177  esac
16178  shlibpath_var=LD_LIBRARY_PATH
16179  case $host_os in
16180  freebsd2.*)
16181    shlibpath_overrides_runpath=yes
16182    ;;
16183  freebsd3.[01]* | freebsdelf3.[01]*)
16184    shlibpath_overrides_runpath=yes
16185    hardcode_into_libs=yes
16186    ;;
16187  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16188  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16189    shlibpath_overrides_runpath=no
16190    hardcode_into_libs=yes
16191    ;;
16192  *) # from 4.6 on, and DragonFly
16193    shlibpath_overrides_runpath=yes
16194    hardcode_into_libs=yes
16195    ;;
16196  esac
16197  ;;
16198
16199haiku*)
16200  version_type=linux # correct to gnu/linux during the next big refactor
16201  need_lib_prefix=no
16202  need_version=no
16203  dynamic_linker="$host_os runtime_loader"
16204  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16205  soname_spec='$libname$release$shared_ext$major'
16206  shlibpath_var=LIBRARY_PATH
16207  shlibpath_overrides_runpath=no
16208  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16209  hardcode_into_libs=yes
16210  ;;
16211
16212hpux9* | hpux10* | hpux11*)
16213  # Give a soname corresponding to the major version so that dld.sl refuses to
16214  # link against other versions.
16215  version_type=sunos
16216  need_lib_prefix=no
16217  need_version=no
16218  case $host_cpu in
16219  ia64*)
16220    shrext_cmds='.so'
16221    hardcode_into_libs=yes
16222    dynamic_linker="$host_os dld.so"
16223    shlibpath_var=LD_LIBRARY_PATH
16224    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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    if test 32 = "$HPUX_IA64_MODE"; then
16228      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16229      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16230    else
16231      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16232      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16233    fi
16234    ;;
16235  hppa*64*)
16236    shrext_cmds='.sl'
16237    hardcode_into_libs=yes
16238    dynamic_linker="$host_os dld.sl"
16239    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16240    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16241    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16242    soname_spec='$libname$release$shared_ext$major'
16243    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16244    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16245    ;;
16246  *)
16247    shrext_cmds='.sl'
16248    dynamic_linker="$host_os dld.sl"
16249    shlibpath_var=SHLIB_PATH
16250    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16251    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16252    soname_spec='$libname$release$shared_ext$major'
16253    ;;
16254  esac
16255  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16256  postinstall_cmds='chmod 555 $lib'
16257  # or fails outright, so override atomically:
16258  install_override_mode=555
16259  ;;
16260
16261interix[3-9]*)
16262  version_type=linux # correct to gnu/linux during the next big refactor
16263  need_lib_prefix=no
16264  need_version=no
16265  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16266  soname_spec='$libname$release$shared_ext$major'
16267  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16268  shlibpath_var=LD_LIBRARY_PATH
16269  shlibpath_overrides_runpath=no
16270  hardcode_into_libs=yes
16271  ;;
16272
16273irix5* | irix6* | nonstopux*)
16274  case $host_os in
16275    nonstopux*) version_type=nonstopux ;;
16276    *)
16277	if test yes = "$lt_cv_prog_gnu_ld"; then
16278		version_type=linux # correct to gnu/linux during the next big refactor
16279	else
16280		version_type=irix
16281	fi ;;
16282  esac
16283  need_lib_prefix=no
16284  need_version=no
16285  soname_spec='$libname$release$shared_ext$major'
16286  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16287  case $host_os in
16288  irix5* | nonstopux*)
16289    libsuff= shlibsuff=
16290    ;;
16291  *)
16292    case $LD in # libtool.m4 will add one of these switches to LD
16293    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16294      libsuff= shlibsuff= libmagic=32-bit;;
16295    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16296      libsuff=32 shlibsuff=N32 libmagic=N32;;
16297    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16298      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16299    *) libsuff= shlibsuff= libmagic=never-match;;
16300    esac
16301    ;;
16302  esac
16303  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16304  shlibpath_overrides_runpath=no
16305  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16306  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16307  hardcode_into_libs=yes
16308  ;;
16309
16310# No shared lib support for Linux oldld, aout, or coff.
16311linux*oldld* | linux*aout* | linux*coff*)
16312  dynamic_linker=no
16313  ;;
16314
16315linux*android*)
16316  version_type=none # Android doesn't support versioned libraries.
16317  need_lib_prefix=no
16318  need_version=no
16319  library_names_spec='$libname$release$shared_ext'
16320  soname_spec='$libname$release$shared_ext'
16321  finish_cmds=
16322  shlibpath_var=LD_LIBRARY_PATH
16323  shlibpath_overrides_runpath=yes
16324
16325  # This implies no fast_install, which is unacceptable.
16326  # Some rework will be needed to allow for fast_install
16327  # before this can be enabled.
16328  hardcode_into_libs=yes
16329
16330  dynamic_linker='Android linker'
16331  # Don't embed -rpath directories since the linker doesn't support them.
16332  hardcode_libdir_flag_spec_CXX='-L$libdir'
16333  ;;
16334
16335# This must be glibc/ELF.
16336linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16337  version_type=linux # correct to gnu/linux during the next big refactor
16338  need_lib_prefix=no
16339  need_version=no
16340  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16341  soname_spec='$libname$release$shared_ext$major'
16342  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16343  shlibpath_var=LD_LIBRARY_PATH
16344  shlibpath_overrides_runpath=no
16345
16346  # Some binutils ld are patched to set DT_RUNPATH
16347  if test ${lt_cv_shlibpath_overrides_runpath+y}
16348then :
16349  printf %s "(cached) " >&6
16350else $as_nop
16351  lt_cv_shlibpath_overrides_runpath=no
16352    save_LDFLAGS=$LDFLAGS
16353    save_libdir=$libdir
16354    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16355	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16356    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357/* end confdefs.h.  */
16358
16359int
16360main (void)
16361{
16362
16363  ;
16364  return 0;
16365}
16366_ACEOF
16367if ac_fn_cxx_try_link "$LINENO"
16368then :
16369  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16370then :
16371  lt_cv_shlibpath_overrides_runpath=yes
16372fi
16373fi
16374rm -f core conftest.err conftest.$ac_objext conftest.beam \
16375    conftest$ac_exeext conftest.$ac_ext
16376    LDFLAGS=$save_LDFLAGS
16377    libdir=$save_libdir
16378
16379fi
16380
16381  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16382
16383  # This implies no fast_install, which is unacceptable.
16384  # Some rework will be needed to allow for fast_install
16385  # before this can be enabled.
16386  hardcode_into_libs=yes
16387
16388  # Ideally, we could use ldconfig to report *all* directores which are
16389  # searched for libraries, however this is still not possible.  Aside from not
16390  # being certain /sbin/ldconfig is available, command
16391  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16392  # even though it is searched at run-time.  Try to do the best guess by
16393  # appending ld.so.conf contents (and includes) to the search path.
16394  if test -f /etc/ld.so.conf; then
16395    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' ' '`
16396    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16397  fi
16398
16399  # We used to test for /lib/ld.so.1 and disable shared libraries on
16400  # powerpc, because MkLinux only supported shared libraries with the
16401  # GNU dynamic linker.  Since this was broken with cross compilers,
16402  # most powerpc-linux boxes support dynamic linking these days and
16403  # people can always --disable-shared, the test was removed, and we
16404  # assume the GNU/Linux dynamic linker is in use.
16405  dynamic_linker='GNU/Linux ld.so'
16406  ;;
16407
16408netbsd*)
16409  version_type=sunos
16410  need_lib_prefix=no
16411  need_version=no
16412  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16413    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16414    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16415    dynamic_linker='NetBSD (a.out) ld.so'
16416  else
16417    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16418    soname_spec='$libname$release$shared_ext$major'
16419    dynamic_linker='NetBSD ld.elf_so'
16420  fi
16421  shlibpath_var=LD_LIBRARY_PATH
16422  shlibpath_overrides_runpath=yes
16423  hardcode_into_libs=yes
16424  ;;
16425
16426newsos6)
16427  version_type=linux # correct to gnu/linux during the next big refactor
16428  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16429  shlibpath_var=LD_LIBRARY_PATH
16430  shlibpath_overrides_runpath=yes
16431  ;;
16432
16433*nto* | *qnx*)
16434  version_type=qnx
16435  need_lib_prefix=no
16436  need_version=no
16437  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16438  soname_spec='$libname$release$shared_ext$major'
16439  shlibpath_var=LD_LIBRARY_PATH
16440  shlibpath_overrides_runpath=no
16441  hardcode_into_libs=yes
16442  dynamic_linker='ldqnx.so'
16443  ;;
16444
16445openbsd* | bitrig*)
16446  version_type=sunos
16447  sys_lib_dlsearch_path_spec=/usr/lib
16448  need_lib_prefix=no
16449  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16450    need_version=no
16451  else
16452    need_version=yes
16453  fi
16454  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16455  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16456  shlibpath_var=LD_LIBRARY_PATH
16457  shlibpath_overrides_runpath=yes
16458  ;;
16459
16460os2*)
16461  libname_spec='$name'
16462  version_type=windows
16463  shrext_cmds=.dll
16464  need_version=no
16465  need_lib_prefix=no
16466  # OS/2 can only load a DLL with a base name of 8 characters or less.
16467  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16468    v=$($ECHO $release$versuffix | tr -d .-);
16469    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16470    $ECHO $n$v`$shared_ext'
16471  library_names_spec='${libname}_dll.$libext'
16472  dynamic_linker='OS/2 ld.exe'
16473  shlibpath_var=BEGINLIBPATH
16474  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16475  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16476  postinstall_cmds='base_file=`basename \$file`~
16477    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16478    dldir=$destdir/`dirname \$dlpath`~
16479    test -d \$dldir || mkdir -p \$dldir~
16480    $install_prog $dir/$dlname \$dldir/$dlname~
16481    chmod a+x \$dldir/$dlname~
16482    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16483      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16484    fi'
16485  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16486    dlpath=$dir/\$dldll~
16487    $RM \$dlpath'
16488  ;;
16489
16490osf3* | osf4* | osf5*)
16491  version_type=osf
16492  need_lib_prefix=no
16493  need_version=no
16494  soname_spec='$libname$release$shared_ext$major'
16495  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16496  shlibpath_var=LD_LIBRARY_PATH
16497  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16498  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16499  ;;
16500
16501rdos*)
16502  dynamic_linker=no
16503  ;;
16504
16505solaris*)
16506  version_type=linux # correct to gnu/linux during the next big refactor
16507  need_lib_prefix=no
16508  need_version=no
16509  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16510  soname_spec='$libname$release$shared_ext$major'
16511  shlibpath_var=LD_LIBRARY_PATH
16512  shlibpath_overrides_runpath=yes
16513  hardcode_into_libs=yes
16514  # ldd complains unless libraries are executable
16515  postinstall_cmds='chmod +x $lib'
16516  ;;
16517
16518sunos4*)
16519  version_type=sunos
16520  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16521  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16522  shlibpath_var=LD_LIBRARY_PATH
16523  shlibpath_overrides_runpath=yes
16524  if test yes = "$with_gnu_ld"; then
16525    need_lib_prefix=no
16526  fi
16527  need_version=yes
16528  ;;
16529
16530sysv4 | sysv4.3*)
16531  version_type=linux # correct to gnu/linux during the next big refactor
16532  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16533  soname_spec='$libname$release$shared_ext$major'
16534  shlibpath_var=LD_LIBRARY_PATH
16535  case $host_vendor in
16536    sni)
16537      shlibpath_overrides_runpath=no
16538      need_lib_prefix=no
16539      runpath_var=LD_RUN_PATH
16540      ;;
16541    siemens)
16542      need_lib_prefix=no
16543      ;;
16544    motorola)
16545      need_lib_prefix=no
16546      need_version=no
16547      shlibpath_overrides_runpath=no
16548      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16549      ;;
16550  esac
16551  ;;
16552
16553sysv4*MP*)
16554  if test -d /usr/nec; then
16555    version_type=linux # correct to gnu/linux during the next big refactor
16556    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16557    soname_spec='$libname$shared_ext.$major'
16558    shlibpath_var=LD_LIBRARY_PATH
16559  fi
16560  ;;
16561
16562sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16563  version_type=sco
16564  need_lib_prefix=no
16565  need_version=no
16566  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16567  soname_spec='$libname$release$shared_ext$major'
16568  shlibpath_var=LD_LIBRARY_PATH
16569  shlibpath_overrides_runpath=yes
16570  hardcode_into_libs=yes
16571  if test yes = "$with_gnu_ld"; then
16572    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16573  else
16574    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16575    case $host_os in
16576      sco3.2v5*)
16577        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16578	;;
16579    esac
16580  fi
16581  sys_lib_dlsearch_path_spec='/usr/lib'
16582  ;;
16583
16584tpf*)
16585  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16586  version_type=linux # correct to gnu/linux during the next big refactor
16587  need_lib_prefix=no
16588  need_version=no
16589  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16590  shlibpath_var=LD_LIBRARY_PATH
16591  shlibpath_overrides_runpath=no
16592  hardcode_into_libs=yes
16593  ;;
16594
16595uts4*)
16596  version_type=linux # correct to gnu/linux during the next big refactor
16597  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16598  soname_spec='$libname$release$shared_ext$major'
16599  shlibpath_var=LD_LIBRARY_PATH
16600  ;;
16601
16602*)
16603  dynamic_linker=no
16604  ;;
16605esac
16606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16607printf "%s\n" "$dynamic_linker" >&6; }
16608test no = "$dynamic_linker" && can_build_shared=no
16609
16610variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16611if test yes = "$GCC"; then
16612  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16613fi
16614
16615if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16616  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16617fi
16618
16619if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16620  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16621fi
16622
16623# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16624configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16625
16626# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16627func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16628
16629# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16630configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16672printf %s "checking how to hardcode library paths into programs... " >&6; }
16673hardcode_action_CXX=
16674if test -n "$hardcode_libdir_flag_spec_CXX" ||
16675   test -n "$runpath_var_CXX" ||
16676   test yes = "$hardcode_automatic_CXX"; then
16677
16678  # We can hardcode non-existent directories.
16679  if test no != "$hardcode_direct_CXX" &&
16680     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16681     # have to relink, otherwise we might link with an installed library
16682     # when we should be linking with a yet-to-be-installed one
16683     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16684     test no != "$hardcode_minus_L_CXX"; then
16685    # Linking always hardcodes the temporary library directory.
16686    hardcode_action_CXX=relink
16687  else
16688    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16689    hardcode_action_CXX=immediate
16690  fi
16691else
16692  # We cannot hardcode anything, or else we can only hardcode existing
16693  # directories.
16694  hardcode_action_CXX=unsupported
16695fi
16696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16697printf "%s\n" "$hardcode_action_CXX" >&6; }
16698
16699if test relink = "$hardcode_action_CXX" ||
16700   test yes = "$inherit_rpath_CXX"; then
16701  # Fast installation is not supported
16702  enable_fast_install=no
16703elif test yes = "$shlibpath_overrides_runpath" ||
16704     test no = "$enable_shared"; then
16705  # Fast installation is not necessary
16706  enable_fast_install=needless
16707fi
16708
16709
16710
16711
16712
16713
16714
16715  fi # test -n "$compiler"
16716
16717  CC=$lt_save_CC
16718  CFLAGS=$lt_save_CFLAGS
16719  LDCXX=$LD
16720  LD=$lt_save_LD
16721  GCC=$lt_save_GCC
16722  with_gnu_ld=$lt_save_with_gnu_ld
16723  lt_cv_path_LDCXX=$lt_cv_path_LD
16724  lt_cv_path_LD=$lt_save_path_LD
16725  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16726  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16727fi # test yes != "$_lt_caught_CXX_error"
16728
16729ac_ext=cpp
16730ac_cpp='$CXXCPP $CPPFLAGS'
16731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749        ac_config_commands="$ac_config_commands libtool"
16750
16751
16752
16753
16754# Only expand once:
16755
16756
16757
16758# Check whether --enable-outputs was given.
16759if test ${enable_outputs+y}
16760then :
16761  enableval=$enable_outputs; outputs=$enableval
16762else $as_nop
16763  outputs=no
16764fi
16765
16766# Check whether --enable-visualizer was given.
16767if test ${enable_visualizer+y}
16768then :
16769  enableval=$enable_visualizer; visualizer=$enableval
16770else $as_nop
16771  visualizer=no
16772fi
16773
16774# Check whether --enable-clock was given.
16775if test ${enable_clock+y}
16776then :
16777  enableval=$enable_clock; clock=$enableval
16778else $as_nop
16779  clock=no
16780fi
16781
16782
16783
16784# Check whether --with-fftw was given.
16785if test ${with_fftw+y}
16786then :
16787  withval=$with_fftw; fftw=$withval
16788else $as_nop
16789  fftw=auto
16790fi
16791
16792
16793# Check whether --with-taglib was given.
16794if test ${with_taglib+y}
16795then :
16796  withval=$with_taglib; taglib=$withval
16797else $as_nop
16798  taglib=auto
16799fi
16800
16801
16802# Check whether --with-lto was given.
16803if test ${with_lto+y}
16804then :
16805  withval=$with_lto; lto=$withval
16806else $as_nop
16807  lto=yes
16808fi
16809
16810
16811if test "$outputs" = "yes"; then
16812
16813printf "%s\n" "#define ENABLE_OUTPUTS 1" >>confdefs.h
16814
16815fi
16816
16817if test "$clock" = "yes"; then
16818
16819printf "%s\n" "#define ENABLE_CLOCK 1" >>confdefs.h
16820
16821fi
16822
16823# -flto
16824if test "$lto" != "no"; then
16825  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -flto" >&5
16826printf %s "checking whether compiler supports -flto... " >&6; }
16827  old_CXXFLAGS="$CXXFLAGS"
16828  # support specifying the number of threads
16829  if test "$lto" != "yes"; then
16830    flto="-flto=$lto"
16831  else
16832    flto="-flto"
16833  fi
16834  CXXFLAGS="$flto"
16835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16836/* end confdefs.h.  */
16837
16838int
16839main (void)
16840{
16841
16842  ;
16843  return 0;
16844}
16845_ACEOF
16846if ac_fn_cxx_try_link "$LINENO"
16847then :
16848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16849printf "%s\n" "yes" >&6; }
16850else $as_nop
16851  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16852printf "%s\n" "no" >&6; }
16853      flto=""
16854
16855fi
16856rm -f core conftest.err conftest.$ac_objext conftest.beam \
16857    conftest$ac_exeext conftest.$ac_ext
16858  CXXFLAGS="$old_CXXFLAGS $flto"
16859fi
16860
16861# -ftree-vectorize
16862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -ftree-vectorize" >&5
16863printf %s "checking whether compiler supports -ftree-vectorize... " >&6; }
16864old_CXXFLAGS="$CXXFLAGS"
16865CXXFLAGS="-ftree-vectorize"
16866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16867/* end confdefs.h.  */
16868
16869int
16870main (void)
16871{
16872
16873  ;
16874  return 0;
16875}
16876_ACEOF
16877if ac_fn_cxx_try_compile "$LINENO"
16878then :
16879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16880printf "%s\n" "yes" >&6; }
16881    tree_vectorize="-ftree-vectorize"
16882else $as_nop
16883  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16884printf "%s\n" "no" >&6; }
16885    tree_vectorize=""
16886
16887fi
16888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16889CXXFLAGS="$old_CXXFLAGS $tree_vectorize"
16890
16891# -ffast-math
16892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -ffast-math" >&5
16893printf %s "checking whether compiler supports -ffast-math... " >&6; }
16894old_CXXFLAGS="$CXXFLAGS"
16895CXXFLAGS="-ffast-math"
16896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16897/* end confdefs.h.  */
16898
16899int
16900main (void)
16901{
16902
16903  ;
16904  return 0;
16905}
16906_ACEOF
16907if ac_fn_cxx_try_compile "$LINENO"
16908then :
16909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16910printf "%s\n" "yes" >&6; }
16911    fast_math="-ffast-math"
16912else $as_nop
16913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16914printf "%s\n" "no" >&6; }
16915    fast_math=""
16916
16917fi
16918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16919CXXFLAGS="$old_CXXFLAGS $fast_math"
16920
16921# -std=c++14
16922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=c++14" >&5
16923printf %s "checking whether compiler supports -std=c++14... " >&6; }
16924old_CXXFLAGS="$CXXFLAGS"
16925CXXFLAGS="-std=c++14"
16926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16927/* end confdefs.h.  */
16928
16929int
16930main (void)
16931{
16932
16933  ;
16934  return 0;
16935}
16936_ACEOF
16937if ac_fn_cxx_try_compile "$LINENO"
16938then :
16939  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16940printf "%s\n" "yes" >&6; }
16941		std_cpp14="-std=c++14"
16942else $as_nop
16943  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16944printf "%s\n" "no" >&6; }
16945		as_fn_error $? "Your compiler doesn't seem to support C++14, please upgrade (GCC >= 5)" "$LINENO" 5
16946
16947fi
16948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16949CXXFLAGS="$old_CXXFLAGS $std_cpp14"
16950
16951# generic lambda expressions support
16952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports generic lambda expressions" >&5
16953printf %s "checking whether compiler supports generic lambda expressions... " >&6; }
16954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16955/* end confdefs.h.  */
16956
16957int
16958main (void)
16959{
16960auto f = [](auto n) { return n*n; }; f(7);
16961  ;
16962  return 0;
16963}
16964_ACEOF
16965if ac_fn_cxx_try_compile "$LINENO"
16966then :
16967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16968printf "%s\n" "yes" >&6; }
16969else $as_nop
16970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16971printf "%s\n" "no" >&6; }
16972		as_fn_error $? "Your compiler doesn't seem to support generic lambda expressions, please upgrade (GCC >= 5)" "$LINENO" 5
16973
16974fi
16975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16976
16977# boost
16978
16979echo "$as_me: this is boost.m4 serial 26" >&5
16980boost_save_IFS=$IFS
16981boost_version_req=1.60
16982IFS=.
16983set x $boost_version_req 0 0 0
16984IFS=$boost_save_IFS
16985shift
16986boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
16987boost_version_req_string=$1.$2.$3
16988
16989# Check whether --with-boost was given.
16990if test ${with_boost+y}
16991then :
16992  withval=$with_boost;
16993fi
16994# If BOOST_ROOT is set and the user has not provided a value to
16995# --with-boost, then treat BOOST_ROOT as if it the user supplied it.
16996if test x"$BOOST_ROOT" != x; then
16997  if test x"$with_boost" = x; then
16998    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
16999printf "%s\n" "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
17000    with_boost=$BOOST_ROOT
17001  else
17002    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
17003printf "%s\n" "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
17004  fi
17005fi
17006DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
17007boost_save_CPPFLAGS=$CPPFLAGS
17008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
17009printf %s "checking for Boost headers version >= $boost_version_req_string... " >&6; }
17010if test ${boost_cv_inc_path+y}
17011then :
17012  printf %s "(cached) " >&6
17013else $as_nop
17014  boost_cv_inc_path=no
17015ac_ext=cpp
17016ac_cpp='$CXXCPP $CPPFLAGS'
17017ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17018ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17019ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17020    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17021/* end confdefs.h.  */
17022#include <boost/version.hpp>
17023#if !defined BOOST_VERSION
17024# error BOOST_VERSION is not defined
17025#elif BOOST_VERSION < $boost_version_req
17026# error Boost headers version < $boost_version_req
17027#endif
17028
17029int
17030main (void)
17031{
17032
17033  ;
17034  return 0;
17035}
17036_ACEOF
17037    # If the user provided a value to --with-boost, use it and only it.
17038    case $with_boost in #(
17039      ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
17040                 /usr/include C:/Boost/include;; #(
17041      *)      set x "$with_boost/include" "$with_boost";;
17042    esac
17043    shift
17044    for boost_dir
17045    do
17046    # Without --layout=system, Boost (or at least some versions) installs
17047    # itself in <prefix>/include/boost-<version>.  This inner loop helps to
17048    # find headers in such directories.
17049    #
17050    # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
17051    # order followed by ${boost_dir}.  The final '.' is a sentinel for
17052    # searching $boost_dir" itself.  Entries are whitespace separated.
17053    #
17054    # I didn't indent this loop on purpose (to avoid over-indented code)
17055    boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
17056        && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
17057        && echo .`
17058    for boost_inc in $boost_layout_system_search_list
17059    do
17060      if test x"$boost_inc" != x.; then
17061        boost_inc="$boost_dir/$boost_inc"
17062      else
17063        boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
17064      fi
17065      if test x"$boost_inc" != x; then
17066        # We are going to check whether the version of Boost installed
17067        # in $boost_inc is usable by running a compilation that
17068        # #includes it.  But if we pass a -I/some/path in which Boost
17069        # is not installed, the compiler will just skip this -I and
17070        # use other locations (either from CPPFLAGS, or from its list
17071        # of system include directories).  As a result we would use
17072        # header installed on the machine instead of the /some/path
17073        # specified by the user.  So in that precise case (trying
17074        # $boost_inc), make sure the version.hpp exists.
17075        #
17076        # Use test -e as there can be symlinks.
17077        test -e "$boost_inc/boost/version.hpp" || continue
17078        CPPFLAGS="$CPPFLAGS -I$boost_inc"
17079      fi
17080      if ac_fn_cxx_try_compile "$LINENO"
17081then :
17082  boost_cv_inc_path=yes
17083else $as_nop
17084  boost_cv_version=no
17085fi
17086rm -f core conftest.err conftest.$ac_objext conftest.beam
17087      if test x"$boost_cv_inc_path" = xyes; then
17088        if test x"$boost_inc" != x; then
17089          boost_cv_inc_path=$boost_inc
17090        fi
17091        break 2
17092      fi
17093    done
17094    done
17095ac_ext=cpp
17096ac_cpp='$CXXCPP $CPPFLAGS'
17097ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17098ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17099ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17100
17101fi
17102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
17103printf "%s\n" "$boost_cv_inc_path" >&6; }
17104    case $boost_cv_inc_path in #(
17105      no)
17106        boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
17107        as_fn_error $? "$boost_errmsg" "$LINENO" 5
17108
17109        ;;#(
17110      yes)
17111        BOOST_CPPFLAGS=
17112        ;;#(
17113      *)
17114        BOOST_CPPFLAGS="-I$boost_cv_inc_path"
17115        ;;
17116    esac
17117  if test x"$boost_cv_inc_path" != xno; then
17118
17119printf "%s\n" "#define HAVE_BOOST 1" >>confdefs.h
17120
17121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
17122printf %s "checking for Boost's header version... " >&6; }
17123if test ${boost_cv_lib_version+y}
17124then :
17125  printf %s "(cached) " >&6
17126else $as_nop
17127       ac_ext=cpp
17128ac_cpp='$CXXCPP $CPPFLAGS'
17129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17133/* end confdefs.h.  */
17134#include <boost/version.hpp>
17135boost-lib-version = BOOST_LIB_VERSION
17136_ACEOF
17137if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17138  grep -v '#' |
17139  grep -v '^[[:space:]]*$' |
17140  tr -d '\r' |
17141  tr -s '\n' ' ' |
17142  $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1
17143then :
17144  boost_cv_lib_version=`cat conftest.i`
17145fi
17146rm -rf conftest*
17147ac_ext=cpp
17148ac_cpp='$CXXCPP $CPPFLAGS'
17149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17152
17153fi
17154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
17155printf "%s\n" "$boost_cv_lib_version" >&6; }
17156    # e.g. "134" for 1_34_1 or "135" for 1_35
17157    boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
17158    case $boost_major_version in #(
17159      '' | *[!0-9]*)
17160        as_fn_error $? "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5
17161        ;;
17162    esac
17163fi
17164CPPFLAGS=$boost_save_CPPFLAGS
17165
17166
17167CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17168
17169if test x"$boost_cv_inc_path" = xno; then
17170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/algorithm/string.hpp" >&5
17171printf "%s\n" "$as_me: Boost not available, not searching for boost/algorithm/string.hpp" >&6;}
17172else
17173ac_ext=cpp
17174ac_cpp='$CXXCPP $CPPFLAGS'
17175ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17176ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17177ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17178boost_save_CPPFLAGS=$CPPFLAGS
17179CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17180ac_fn_cxx_check_header_compile "$LINENO" "boost/algorithm/string.hpp" "ac_cv_header_boost_algorithm_string_hpp" "$ac_includes_default"
17181if test "x$ac_cv_header_boost_algorithm_string_hpp" = xyes
17182then :
17183
17184printf "%s\n" "#define HAVE_BOOST_ALGORITHM_STRING_HPP 1" >>confdefs.h
17185
17186else $as_nop
17187  as_fn_error $? "cannot find boost/algorithm/string.hpp" "$LINENO" 5
17188fi
17189
17190CPPFLAGS=$boost_save_CPPFLAGS
17191ac_ext=cpp
17192ac_cpp='$CXXCPP $CPPFLAGS'
17193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17196fi
17197
17198
17199
17200if test x"$boost_cv_inc_path" = xno; then
17201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/format.hpp" >&5
17202printf "%s\n" "$as_me: Boost not available, not searching for boost/format.hpp" >&6;}
17203else
17204ac_ext=cpp
17205ac_cpp='$CXXCPP $CPPFLAGS'
17206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17209boost_save_CPPFLAGS=$CPPFLAGS
17210CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17211ac_fn_cxx_check_header_compile "$LINENO" "boost/format.hpp" "ac_cv_header_boost_format_hpp" "$ac_includes_default"
17212if test "x$ac_cv_header_boost_format_hpp" = xyes
17213then :
17214
17215printf "%s\n" "#define HAVE_BOOST_FORMAT_HPP 1" >>confdefs.h
17216
17217else $as_nop
17218  as_fn_error $? "cannot find boost/format.hpp" "$LINENO" 5
17219fi
17220
17221CPPFLAGS=$boost_save_CPPFLAGS
17222ac_ext=cpp
17223ac_cpp='$CXXCPP $CPPFLAGS'
17224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17227fi
17228
17229
17230if test x"$boost_cv_inc_path" = xno; then
17231  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/functional/hash.hpp" >&5
17232printf "%s\n" "$as_me: Boost not available, not searching for boost/functional/hash.hpp" >&6;}
17233else
17234ac_ext=cpp
17235ac_cpp='$CXXCPP $CPPFLAGS'
17236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17239boost_save_CPPFLAGS=$CPPFLAGS
17240CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17241ac_fn_cxx_check_header_compile "$LINENO" "boost/functional/hash.hpp" "ac_cv_header_boost_functional_hash_hpp" "$ac_includes_default"
17242if test "x$ac_cv_header_boost_functional_hash_hpp" = xyes
17243then :
17244
17245printf "%s\n" "#define HAVE_BOOST_FUNCTIONAL_HASH_HPP 1" >>confdefs.h
17246
17247else $as_nop
17248  as_fn_error $? "cannot find boost/functional/hash.hpp" "$LINENO" 5
17249fi
17250
17251CPPFLAGS=$boost_save_CPPFLAGS
17252ac_ext=cpp
17253ac_cpp='$CXXCPP $CPPFLAGS'
17254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17257fi
17258
17259
17260if test x"$boost_cv_inc_path" = xno; then
17261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/cast.hpp" >&5
17262printf "%s\n" "$as_me: Boost not available, not searching for boost/cast.hpp" >&6;}
17263else
17264ac_ext=cpp
17265ac_cpp='$CXXCPP $CPPFLAGS'
17266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17269boost_save_CPPFLAGS=$CPPFLAGS
17270CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17271ac_fn_cxx_check_header_compile "$LINENO" "boost/cast.hpp" "ac_cv_header_boost_cast_hpp" "$ac_includes_default"
17272if test "x$ac_cv_header_boost_cast_hpp" = xyes
17273then :
17274
17275printf "%s\n" "#define HAVE_BOOST_CAST_HPP 1" >>confdefs.h
17276
17277else $as_nop
17278  as_fn_error $? "cannot find boost/cast.hpp" "$LINENO" 5
17279fi
17280
17281CPPFLAGS=$boost_save_CPPFLAGS
17282ac_ext=cpp
17283ac_cpp='$CXXCPP $CPPFLAGS'
17284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17287fi
17288
17289if test x"$boost_cv_inc_path" = xno; then
17290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/lexical_cast.hpp" >&5
17291printf "%s\n" "$as_me: Boost not available, not searching for boost/lexical_cast.hpp" >&6;}
17292else
17293ac_ext=cpp
17294ac_cpp='$CXXCPP $CPPFLAGS'
17295ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17296ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17297ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17298boost_save_CPPFLAGS=$CPPFLAGS
17299CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17300ac_fn_cxx_check_header_compile "$LINENO" "boost/lexical_cast.hpp" "ac_cv_header_boost_lexical_cast_hpp" "$ac_includes_default"
17301if test "x$ac_cv_header_boost_lexical_cast_hpp" = xyes
17302then :
17303
17304printf "%s\n" "#define HAVE_BOOST_LEXICAL_CAST_HPP 1" >>confdefs.h
17305
17306else $as_nop
17307  as_fn_error $? "cannot find boost/lexical_cast.hpp" "$LINENO" 5
17308fi
17309
17310CPPFLAGS=$boost_save_CPPFLAGS
17311ac_ext=cpp
17312ac_cpp='$CXXCPP $CPPFLAGS'
17313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17316fi
17317
17318
17319
17320if test x"$boost_cv_inc_path" = xno; then
17321  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/math/special_functions.hpp" >&5
17322printf "%s\n" "$as_me: Boost not available, not searching for boost/math/special_functions.hpp" >&6;}
17323else
17324ac_ext=cpp
17325ac_cpp='$CXXCPP $CPPFLAGS'
17326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17329boost_save_CPPFLAGS=$CPPFLAGS
17330CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17331ac_fn_cxx_check_header_compile "$LINENO" "boost/math/special_functions.hpp" "ac_cv_header_boost_math_special_functions_hpp" "$ac_includes_default"
17332if test "x$ac_cv_header_boost_math_special_functions_hpp" = xyes
17333then :
17334
17335printf "%s\n" "#define HAVE_BOOST_MATH_SPECIAL_FUNCTIONS_HPP 1" >>confdefs.h
17336
17337else $as_nop
17338  as_fn_error $? "cannot find boost/math/special_functions.hpp" "$LINENO" 5
17339fi
17340
17341CPPFLAGS=$boost_save_CPPFLAGS
17342ac_ext=cpp
17343ac_cpp='$CXXCPP $CPPFLAGS'
17344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17347fi
17348
17349
17350if test x"$boost_cv_inc_path" = xno; then
17351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/optional.hpp" >&5
17352printf "%s\n" "$as_me: Boost not available, not searching for boost/optional.hpp" >&6;}
17353else
17354ac_ext=cpp
17355ac_cpp='$CXXCPP $CPPFLAGS'
17356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17359boost_save_CPPFLAGS=$CPPFLAGS
17360CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17361ac_fn_cxx_check_header_compile "$LINENO" "boost/optional.hpp" "ac_cv_header_boost_optional_hpp" "$ac_includes_default"
17362if test "x$ac_cv_header_boost_optional_hpp" = xyes
17363then :
17364
17365printf "%s\n" "#define HAVE_BOOST_OPTIONAL_HPP 1" >>confdefs.h
17366
17367else $as_nop
17368  as_fn_error $? "cannot find boost/optional.hpp" "$LINENO" 5
17369fi
17370
17371CPPFLAGS=$boost_save_CPPFLAGS
17372ac_ext=cpp
17373ac_cpp='$CXXCPP $CPPFLAGS'
17374ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17375ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17376ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17377fi
17378
17379
17380if test x"$boost_cv_inc_path" = xno; then
17381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/range/adaptors.hpp" >&5
17382printf "%s\n" "$as_me: Boost not available, not searching for boost/range/adaptors.hpp" >&6;}
17383else
17384ac_ext=cpp
17385ac_cpp='$CXXCPP $CPPFLAGS'
17386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17389boost_save_CPPFLAGS=$CPPFLAGS
17390CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17391ac_fn_cxx_check_header_compile "$LINENO" "boost/range/adaptors.hpp" "ac_cv_header_boost_range_adaptors_hpp" "$ac_includes_default"
17392if test "x$ac_cv_header_boost_range_adaptors_hpp" = xyes
17393then :
17394
17395printf "%s\n" "#define HAVE_BOOST_RANGE_ADAPTORS_HPP 1" >>confdefs.h
17396
17397else $as_nop
17398  as_fn_error $? "cannot find boost/range/adaptors.hpp" "$LINENO" 5
17399fi
17400
17401CPPFLAGS=$boost_save_CPPFLAGS
17402ac_ext=cpp
17403ac_cpp='$CXXCPP $CPPFLAGS'
17404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17407fi
17408
17409
17410if test x"$boost_cv_inc_path" = xno; then
17411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/tokenizer.hpp" >&5
17412printf "%s\n" "$as_me: Boost not available, not searching for boost/tokenizer.hpp" >&6;}
17413else
17414ac_ext=cpp
17415ac_cpp='$CXXCPP $CPPFLAGS'
17416ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17417ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17418ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17419boost_save_CPPFLAGS=$CPPFLAGS
17420CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17421ac_fn_cxx_check_header_compile "$LINENO" "boost/tokenizer.hpp" "ac_cv_header_boost_tokenizer_hpp" "$ac_includes_default"
17422if test "x$ac_cv_header_boost_tokenizer_hpp" = xyes
17423then :
17424
17425printf "%s\n" "#define HAVE_BOOST_TOKENIZER_HPP 1" >>confdefs.h
17426
17427else $as_nop
17428  as_fn_error $? "cannot find boost/tokenizer.hpp" "$LINENO" 5
17429fi
17430
17431CPPFLAGS=$boost_save_CPPFLAGS
17432ac_ext=cpp
17433ac_cpp='$CXXCPP $CPPFLAGS'
17434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17437fi
17438
17439
17440if test x"$boost_cv_inc_path" = xno; then
17441  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/tuple/tuple.hpp" >&5
17442printf "%s\n" "$as_me: Boost not available, not searching for boost/tuple/tuple.hpp" >&6;}
17443else
17444ac_ext=cpp
17445ac_cpp='$CXXCPP $CPPFLAGS'
17446ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17447ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17448ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17449boost_save_CPPFLAGS=$CPPFLAGS
17450CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17451ac_fn_cxx_check_header_compile "$LINENO" "boost/tuple/tuple.hpp" "ac_cv_header_boost_tuple_tuple_hpp" "$ac_includes_default"
17452if test "x$ac_cv_header_boost_tuple_tuple_hpp" = xyes
17453then :
17454
17455printf "%s\n" "#define HAVE_BOOST_TUPLE_TUPLE_HPP 1" >>confdefs.h
17456
17457else $as_nop
17458  as_fn_error $? "cannot find boost/tuple/tuple.hpp" "$LINENO" 5
17459fi
17460
17461CPPFLAGS=$boost_save_CPPFLAGS
17462ac_ext=cpp
17463ac_cpp='$CXXCPP $CPPFLAGS'
17464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17467fi
17468
17469
17470if test x"$boost_cv_inc_path" = xno; then
17471  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/variant/variant_fwd.hpp" >&5
17472printf "%s\n" "$as_me: Boost not available, not searching for boost/variant/variant_fwd.hpp" >&6;}
17473else
17474ac_ext=cpp
17475ac_cpp='$CXXCPP $CPPFLAGS'
17476ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17477ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17478ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17479boost_save_CPPFLAGS=$CPPFLAGS
17480CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17481ac_fn_cxx_check_header_compile "$LINENO" "boost/variant/variant_fwd.hpp" "ac_cv_header_boost_variant_variant_fwd_hpp" "$ac_includes_default"
17482if test "x$ac_cv_header_boost_variant_variant_fwd_hpp" = xyes
17483then :
17484
17485printf "%s\n" "#define HAVE_BOOST_VARIANT_VARIANT_FWD_HPP 1" >>confdefs.h
17486
17487else $as_nop
17488  as_fn_error $? "cannot find boost/variant/variant_fwd.hpp" "$LINENO" 5
17489fi
17490
17491CPPFLAGS=$boost_save_CPPFLAGS
17492ac_ext=cpp
17493ac_cpp='$CXXCPP $CPPFLAGS'
17494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17497fi
17498
17499if test x"$boost_cv_inc_path" = xno; then
17500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/variant.hpp" >&5
17501printf "%s\n" "$as_me: Boost not available, not searching for boost/variant.hpp" >&6;}
17502else
17503ac_ext=cpp
17504ac_cpp='$CXXCPP $CPPFLAGS'
17505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17508boost_save_CPPFLAGS=$CPPFLAGS
17509CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17510ac_fn_cxx_check_header_compile "$LINENO" "boost/variant.hpp" "ac_cv_header_boost_variant_hpp" "$ac_includes_default"
17511if test "x$ac_cv_header_boost_variant_hpp" = xyes
17512then :
17513
17514printf "%s\n" "#define HAVE_BOOST_VARIANT_HPP 1" >>confdefs.h
17515
17516else $as_nop
17517  as_fn_error $? "cannot find boost/variant.hpp" "$LINENO" 5
17518fi
17519
17520CPPFLAGS=$boost_save_CPPFLAGS
17521ac_ext=cpp
17522ac_cpp='$CXXCPP $CPPFLAGS'
17523ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17524ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17526fi
17527
17528
17529
17530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
17531printf %s "checking for the toolset name used by Boost for $CXX... " >&6; }
17532if test ${boost_cv_lib_tag+y}
17533then :
17534  printf %s "(cached) " >&6
17535else $as_nop
17536  boost_cv_lib_tag=unknown
17537if test x$boost_cv_inc_path != xno; then
17538  ac_ext=cpp
17539ac_cpp='$CXXCPP $CPPFLAGS'
17540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17543  # The following tests are mostly inspired by boost/config/auto_link.hpp
17544  # The list is sorted to most recent/common to oldest compiler (in order
17545  # to increase the likelihood of finding the right compiler with the
17546  # least number of compilation attempt).
17547  # Beware that some tests are sensible to the order (for instance, we must
17548  # look for MinGW before looking for GCC3).
17549  # I used one compilation test per compiler with a #error to recognize
17550  # each compiler so that it works even when cross-compiling (let me know
17551  # if you know a better approach).
17552  # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
17553  #   como, edg, kcc, bck, mp, sw, tru, xlc
17554  # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
17555  # the same defines as GCC's).
17556  for i in \
17557    "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 2 && !defined __ICC && \
17558  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17559         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw62" \
17560    "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc62" \
17561    "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 1 && !defined __ICC && \
17562  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17563         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw61" \
17564    "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc61" \
17565    "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 0 && !defined __ICC && \
17566  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17567         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw60" \
17568    "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc60" \
17569    "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC && \
17570  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17571         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw53" \
17572    "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc53" \
17573    "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC && \
17574  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17575         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw52" \
17576    "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc52" \
17577    "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC && \
17578  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17579         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw51" \
17580    "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc51" \
17581    "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \
17582  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17583         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \
17584    "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \
17585    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \
17586  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17587         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \
17588    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \
17589    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \
17590  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17591         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \
17592    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \
17593    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \
17594  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17595         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \
17596    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \
17597    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \
17598  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17599         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \
17600    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \
17601    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \
17602  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17603         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \
17604    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
17605    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \
17606  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17607         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \
17608    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
17609    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \
17610  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17611         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \
17612    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
17613    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \
17614  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17615         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \
17616    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
17617    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \
17618  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17619         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \
17620    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
17621    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \
17622  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17623         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \
17624    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
17625    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \
17626  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17627         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \
17628    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
17629    "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
17630     && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17631         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
17632    "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
17633    "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
17634    "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
17635    "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
17636    "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
17637    "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
17638    "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
17639    "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
17640    "defined __BORLANDC__ @ bcb" \
17641    "defined __ICC && (defined __unix || defined ) @ il" \
17642    "defined __ICL @ iw" \
17643    "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
17644    "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
17645    "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
17646    "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
17647    "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
17648    "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
17649  do
17650    boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '`
17651    boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'`
17652    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653/* end confdefs.h.  */
17654
17655#if $boost_tag_test
17656/* OK */
17657#else
17658# error $boost_tag_test
17659#endif
17660
17661int
17662main (void)
17663{
17664
17665  ;
17666  return 0;
17667}
17668_ACEOF
17669if ac_fn_cxx_try_compile "$LINENO"
17670then :
17671  boost_cv_lib_tag=$boost_tag; break
17672fi
17673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17674  done
17675ac_ext=cpp
17676ac_cpp='$CXXCPP $CPPFLAGS'
17677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17680  case $boost_cv_lib_tag in #(
17681    # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
17682    # to "gcc41" for instance.
17683    *-gcc | *'-gcc ') :;; #(  Don't re-add -gcc: it's already in there.
17684    gcc*)
17685      boost_tag_x=
17686      case $host_os in #(
17687        darwin*)
17688          if test $boost_major_version -ge 136; then
17689            # The `x' added in r46793 of Boost.
17690            boost_tag_x=x
17691          fi;;
17692      esac
17693      # We can specify multiple tags in this variable because it's used by
17694      # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
17695      boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
17696      ;; #(
17697    unknown)
17698      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
17699printf "%s\n" "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
17700      boost_cv_lib_tag=
17701      ;;
17702  esac
17703fi
17704fi
17705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
17706printf "%s\n" "$boost_cv_lib_tag" >&6; }
17707# Check whether --enable-static-boost was given.
17708if test ${enable_static_boost+y}
17709then :
17710  enableval=$enable_static_boost; enable_static_boost=yes
17711else $as_nop
17712  enable_static_boost=no
17713fi
17714
17715# Check whether we do better use `mt' even though we weren't ask to.
17716ac_ext=cpp
17717ac_cpp='$CXXCPP $CPPFLAGS'
17718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17722/* end confdefs.h.  */
17723
17724#if defined _REENTRANT || defined _MT || defined __MT__
17725/* use -mt */
17726#else
17727# error MT not needed
17728#endif
17729
17730int
17731main (void)
17732{
17733
17734  ;
17735  return 0;
17736}
17737_ACEOF
17738if ac_fn_cxx_try_compile "$LINENO"
17739then :
17740  boost_guess_use_mt=:
17741else $as_nop
17742  boost_guess_use_mt=false
17743fi
17744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17745ac_ext=cpp
17746ac_cpp='$CXXCPP $CPPFLAGS'
17747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17750
17751if test x"$boost_cv_inc_path" = xno; then
17752  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost date_time library" >&5
17753printf "%s\n" "$as_me: Boost not available, not searching for the Boost date_time library" >&6;}
17754else
17755ac_ext=cpp
17756ac_cpp='$CXXCPP $CPPFLAGS'
17757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17760if test x"$boost_cv_inc_path" = xno; then
17761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/date_time/posix_time/posix_time.hpp" >&5
17762printf "%s\n" "$as_me: Boost not available, not searching for boost/date_time/posix_time/posix_time.hpp" >&6;}
17763else
17764ac_ext=cpp
17765ac_cpp='$CXXCPP $CPPFLAGS'
17766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17769boost_save_CPPFLAGS=$CPPFLAGS
17770CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17771ac_fn_cxx_check_header_compile "$LINENO" "boost/date_time/posix_time/posix_time.hpp" "ac_cv_header_boost_date_time_posix_time_posix_time_hpp" "$ac_includes_default"
17772if test "x$ac_cv_header_boost_date_time_posix_time_posix_time_hpp" = xyes
17773then :
17774
17775printf "%s\n" "#define HAVE_BOOST_DATE_TIME_POSIX_TIME_POSIX_TIME_HPP 1" >>confdefs.h
17776
17777else $as_nop
17778  as_fn_error $? "cannot find boost/date_time/posix_time/posix_time.hpp" "$LINENO" 5
17779fi
17780
17781CPPFLAGS=$boost_save_CPPFLAGS
17782ac_ext=cpp
17783ac_cpp='$CXXCPP $CPPFLAGS'
17784ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17785ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17786ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17787fi
17788
17789boost_save_CPPFLAGS=$CPPFLAGS
17790CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost date_time library" >&5
17792printf %s "checking for the Boost date_time library... " >&6; }
17793if test ${boost_cv_lib_date_time+y}
17794then :
17795  printf %s "(cached) " >&6
17796else $as_nop
17797  boost_cv_lib_date_time=no
17798  case "" in #(
17799    (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
17800    (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
17801    (*) boost_mt=; boost_rtopt=;;
17802  esac
17803  if test $enable_static_boost = yes; then
17804    boost_rtopt="s$boost_rtopt"
17805  fi
17806  # Find the proper debug variant depending on what we've been asked to find.
17807  case $boost_rtopt in #(
17808    (*d*) boost_rt_d=$boost_rtopt;; #(
17809    (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
17810      boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
17811    (*) boost_rt_d='-d';;
17812  esac
17813  # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
17814  test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
17815  $boost_guess_use_mt && boost_mt=-mt
17816  # Look for the abs path the static archive.
17817  # $libext is computed by Libtool but let's make sure it's non empty.
17818  test -z "$libext" &&
17819    as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
17820  boost_save_ac_objext=$ac_objext
17821  # Generate the test file.
17822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17823/* end confdefs.h.  */
17824#include <boost/date_time/posix_time/posix_time.hpp>
17825
17826int
17827main (void)
17828{
17829boost::posix_time::ptime t;
17830  ;
17831  return 0;
17832}
17833_ACEOF
17834  if ac_fn_cxx_try_compile "$LINENO"
17835then :
17836  ac_objext=do_not_rm_me_plz
17837else $as_nop
17838  as_fn_error $? "cannot compile a test that uses Boost date_time" "$LINENO" 5
17839fi
17840rm -f core conftest.err conftest.$ac_objext conftest.beam
17841  ac_objext=$boost_save_ac_objext
17842  boost_failed_libs=
17843# Don't bother to ident the following nested for loops, only the 2
17844# innermost ones matter.
17845for boost_lib_ in date_time; do
17846for boost_tag_ in -$boost_cv_lib_tag ''; do
17847for boost_ver_ in -$boost_cv_lib_version ''; do
17848for boost_mt_ in $boost_mt -mt ''; do
17849for boost_rtopt_ in $boost_rtopt '' -d; do
17850  for boost_lib in \
17851    boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
17852    boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
17853    boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
17854    boost_$boost_lib_$boost_tag_$boost_ver_
17855  do
17856    # Avoid testing twice the same lib
17857    case $boost_failed_libs in #(
17858      (*@$boost_lib@*) continue;;
17859    esac
17860    # If with_boost is empty, we'll search in /lib first, which is not quite
17861    # right so instead we'll try to a location based on where the headers are.
17862    boost_tmp_lib=$with_boost
17863    test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
17864    for boost_ldpath in "$boost_tmp_lib/lib" '' \
17865             /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
17866             "$with_boost" C:/Boost/lib /lib*
17867    do
17868      # Don't waste time with directories that don't exist.
17869      if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
17870        continue
17871      fi
17872      boost_save_LDFLAGS=$LDFLAGS
17873      # Are we looking for a static library?
17874      case $boost_ldpath:$boost_rtopt_ in #(
17875        (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
17876          boost_cv_lib_date_time_LIBS="$boost_ldpath/lib$boost_lib.$libext"
17877          test -e "$boost_cv_lib_date_time_LIBS" || continue;; #(
17878        (*) # No: use -lboost_foo to find the shared library.
17879          boost_cv_lib_date_time_LIBS="-l$boost_lib";;
17880      esac
17881      boost_save_LIBS=$LIBS
17882      LIBS="$boost_cv_lib_date_time_LIBS $LIBS"
17883      test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
17884      rm -f conftest$ac_exeext
17885boost_save_ac_ext=$ac_ext
17886boost_use_source=:
17887# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
17888# tries to link the existing object file instead of compiling from source.
17889test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
17890  printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
17891if { { ac_try="$ac_link"
17892case "(($ac_try" in
17893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894  *) ac_try_echo=$ac_try;;
17895esac
17896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17897printf "%s\n" "$ac_try_echo"; } >&5
17898  (eval "$ac_link") 2>conftest.err
17899  ac_status=$?
17900  if test -s conftest.err; then
17901    grep -v '^ *+' conftest.err >conftest.er1
17902    cat conftest.er1 >&5
17903    mv -f conftest.er1 conftest.err
17904  fi
17905  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17906  test $ac_status = 0; } && {
17907         test -z "$ac_cxx_werror_flag" ||
17908         test ! -s conftest.err
17909       } && test -s conftest$ac_exeext && {
17910         test "$cross_compiling" = yes ||
17911         $as_executable_p conftest$ac_exeext
17912       }
17913then :
17914  boost_cv_lib_date_time=yes
17915else $as_nop
17916  if $boost_use_source; then
17917         printf "%s\n" "$as_me: failed program was:" >&5
17918sed 's/^/| /' conftest.$ac_ext >&5
17919
17920       fi
17921       boost_cv_lib_date_time=no
17922fi
17923ac_objext=$boost_save_ac_objext
17924ac_ext=$boost_save_ac_ext
17925rm -f core conftest.err conftest_ipa8_conftest.oo \
17926      conftest$ac_exeext
17927      ac_objext=$boost_save_ac_objext
17928      LDFLAGS=$boost_save_LDFLAGS
17929      LIBS=$boost_save_LIBS
17930      if test x"$boost_cv_lib_date_time" = xyes; then
17931        # Check or used cached result of whether or not using -R or
17932        # -rpath makes sense.  Some implementations of ld, such as for
17933        # Mac OSX, require -rpath but -R is the flag known to work on
17934        # other systems.  https://github.com/tsuna/boost.m4/issues/19
17935        if test ${boost_cv_rpath_link_ldflag+y}
17936then :
17937  printf %s "(cached) " >&6
17938else $as_nop
17939  case $boost_ldpath in
17940           '') # Nothing to do.
17941             boost_cv_rpath_link_ldflag=
17942             boost_rpath_link_ldflag_found=yes;;
17943           *)
17944            for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
17945              LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
17946              LIBS="$boost_save_LIBS $boost_cv_lib_date_time_LIBS"
17947              rm -f conftest$ac_exeext
17948boost_save_ac_ext=$ac_ext
17949boost_use_source=:
17950# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
17951# tries to link the existing object file instead of compiling from source.
17952test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
17953  printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
17954if { { ac_try="$ac_link"
17955case "(($ac_try" in
17956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957  *) ac_try_echo=$ac_try;;
17958esac
17959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17960printf "%s\n" "$ac_try_echo"; } >&5
17961  (eval "$ac_link") 2>conftest.err
17962  ac_status=$?
17963  if test -s conftest.err; then
17964    grep -v '^ *+' conftest.err >conftest.er1
17965    cat conftest.er1 >&5
17966    mv -f conftest.er1 conftest.err
17967  fi
17968  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17969  test $ac_status = 0; } && {
17970         test -z "$ac_cxx_werror_flag" ||
17971         test ! -s conftest.err
17972       } && test -s conftest$ac_exeext && {
17973         test "$cross_compiling" = yes ||
17974         $as_executable_p conftest$ac_exeext
17975       }
17976then :
17977  boost_rpath_link_ldflag_found=yes
17978                break
17979else $as_nop
17980  if $boost_use_source; then
17981         printf "%s\n" "$as_me: failed program was:" >&5
17982sed 's/^/| /' conftest.$ac_ext >&5
17983
17984       fi
17985       boost_rpath_link_ldflag_found=no
17986fi
17987ac_objext=$boost_save_ac_objext
17988ac_ext=$boost_save_ac_ext
17989rm -f core conftest.err conftest_ipa8_conftest.oo \
17990      conftest$ac_exeext
17991            done
17992            ;;
17993          esac
17994          if test "x$boost_rpath_link_ldflag_found" != "xyes"
17995then :
17996  as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
17997fi
17998          LDFLAGS=$boost_save_LDFLAGS
17999          LIBS=$boost_save_LIBS
18000
18001fi
18002
18003        test x"$boost_ldpath" != x &&
18004          boost_cv_lib_date_time_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
18005        boost_cv_lib_date_time_LDPATH="$boost_ldpath"
18006        break 7
18007      else
18008        boost_failed_libs="$boost_failed_libs@$boost_lib@"
18009      fi
18010    done
18011  done
18012done
18013done
18014done
18015done
18016done # boost_lib_
18017rm -f conftest.$ac_objext
18018
18019fi
18020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_date_time" >&5
18021printf "%s\n" "$boost_cv_lib_date_time" >&6; }
18022case $boost_cv_lib_date_time in #(
18023  (no) printf "%s\n" "$as_me: failed program was:" >&5
18024sed 's/^/| /' conftest.$ac_ext >&5
18025
18026    as_fn_error $? "cannot find the flags to link with Boost date_time" "$LINENO" 5
18027    ;;
18028esac
18029BOOST_DATE_TIME_LDFLAGS=$boost_cv_lib_date_time_LDFLAGS
18030BOOST_DATE_TIME_LDPATH=$boost_cv_lib_date_time_LDPATH
18031BOOST_LDPATH=$boost_cv_lib_date_time_LDPATH
18032BOOST_DATE_TIME_LIBS=$boost_cv_lib_date_time_LIBS
18033CPPFLAGS=$boost_save_CPPFLAGS
18034ac_ext=cpp
18035ac_cpp='$CXXCPP $CPPFLAGS'
18036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18039fi
18040
18041
18042
18043
18044
18045LDFLAGS="$LDFLAGS $BOOST_DATE_TIME_LDFLAGS"
18046LIBS="$LIBS $BOOST_DATE_TIME_LIBS"
18047
18048# Do we have to check for Boost.System?  This link-time dependency was
18049# added as of 1.35.0.  If we have a version <1.35, we must not attempt to
18050# find Boost.System as it didn't exist by then.
18051if test $boost_major_version -ge 135; then
18052  if test x"$boost_cv_inc_path" = xno; then
18053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
18054printf "%s\n" "$as_me: Boost not available, not searching for the Boost system library" >&6;}
18055else
18056ac_ext=cpp
18057ac_cpp='$CXXCPP $CPPFLAGS'
18058ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18059ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18060ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18061if test x"$boost_cv_inc_path" = xno; then
18062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
18063printf "%s\n" "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
18064else
18065ac_ext=cpp
18066ac_cpp='$CXXCPP $CPPFLAGS'
18067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18070boost_save_CPPFLAGS=$CPPFLAGS
18071CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18072ac_fn_cxx_check_header_compile "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
18073if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes
18074then :
18075
18076printf "%s\n" "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
18077
18078else $as_nop
18079  as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5
18080fi
18081
18082CPPFLAGS=$boost_save_CPPFLAGS
18083ac_ext=cpp
18084ac_cpp='$CXXCPP $CPPFLAGS'
18085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18088fi
18089
18090boost_save_CPPFLAGS=$CPPFLAGS
18091CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
18093printf %s "checking for the Boost system library... " >&6; }
18094if test ${boost_cv_lib_system+y}
18095then :
18096  printf %s "(cached) " >&6
18097else $as_nop
18098  boost_cv_lib_system=no
18099  case "" in #(
18100    (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
18101    (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
18102    (*) boost_mt=; boost_rtopt=;;
18103  esac
18104  if test $enable_static_boost = yes; then
18105    boost_rtopt="s$boost_rtopt"
18106  fi
18107  # Find the proper debug variant depending on what we've been asked to find.
18108  case $boost_rtopt in #(
18109    (*d*) boost_rt_d=$boost_rtopt;; #(
18110    (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
18111      boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
18112    (*) boost_rt_d='-d';;
18113  esac
18114  # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
18115  test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
18116  $boost_guess_use_mt && boost_mt=-mt
18117  # Look for the abs path the static archive.
18118  # $libext is computed by Libtool but let's make sure it's non empty.
18119  test -z "$libext" &&
18120    as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
18121  boost_save_ac_objext=$ac_objext
18122  # Generate the test file.
18123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18124/* end confdefs.h.  */
18125#include <boost/system/error_code.hpp>
18126
18127int
18128main (void)
18129{
18130boost::system::error_code e; e.clear();
18131  ;
18132  return 0;
18133}
18134_ACEOF
18135  if ac_fn_cxx_try_compile "$LINENO"
18136then :
18137  ac_objext=do_not_rm_me_plz
18138else $as_nop
18139  as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5
18140fi
18141rm -f core conftest.err conftest.$ac_objext conftest.beam
18142  ac_objext=$boost_save_ac_objext
18143  boost_failed_libs=
18144# Don't bother to ident the following nested for loops, only the 2
18145# innermost ones matter.
18146for boost_lib_ in system; do
18147for boost_tag_ in -$boost_cv_lib_tag ''; do
18148for boost_ver_ in -$boost_cv_lib_version ''; do
18149for boost_mt_ in $boost_mt -mt ''; do
18150for boost_rtopt_ in $boost_rtopt '' -d; do
18151  for boost_lib in \
18152    boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
18153    boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
18154    boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
18155    boost_$boost_lib_$boost_tag_$boost_ver_
18156  do
18157    # Avoid testing twice the same lib
18158    case $boost_failed_libs in #(
18159      (*@$boost_lib@*) continue;;
18160    esac
18161    # If with_boost is empty, we'll search in /lib first, which is not quite
18162    # right so instead we'll try to a location based on where the headers are.
18163    boost_tmp_lib=$with_boost
18164    test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
18165    for boost_ldpath in "$boost_tmp_lib/lib" '' \
18166             /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
18167             "$with_boost" C:/Boost/lib /lib*
18168    do
18169      # Don't waste time with directories that don't exist.
18170      if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
18171        continue
18172      fi
18173      boost_save_LDFLAGS=$LDFLAGS
18174      # Are we looking for a static library?
18175      case $boost_ldpath:$boost_rtopt_ in #(
18176        (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
18177          boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
18178          test -e "$boost_cv_lib_system_LIBS" || continue;; #(
18179        (*) # No: use -lboost_foo to find the shared library.
18180          boost_cv_lib_system_LIBS="-l$boost_lib";;
18181      esac
18182      boost_save_LIBS=$LIBS
18183      LIBS="$boost_cv_lib_system_LIBS $LIBS"
18184      test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
18185      rm -f conftest$ac_exeext
18186boost_save_ac_ext=$ac_ext
18187boost_use_source=:
18188# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
18189# tries to link the existing object file instead of compiling from source.
18190test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
18191  printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
18192if { { ac_try="$ac_link"
18193case "(($ac_try" in
18194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195  *) ac_try_echo=$ac_try;;
18196esac
18197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18198printf "%s\n" "$ac_try_echo"; } >&5
18199  (eval "$ac_link") 2>conftest.err
18200  ac_status=$?
18201  if test -s conftest.err; then
18202    grep -v '^ *+' conftest.err >conftest.er1
18203    cat conftest.er1 >&5
18204    mv -f conftest.er1 conftest.err
18205  fi
18206  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18207  test $ac_status = 0; } && {
18208         test -z "$ac_cxx_werror_flag" ||
18209         test ! -s conftest.err
18210       } && test -s conftest$ac_exeext && {
18211         test "$cross_compiling" = yes ||
18212         $as_executable_p conftest$ac_exeext
18213       }
18214then :
18215  boost_cv_lib_system=yes
18216else $as_nop
18217  if $boost_use_source; then
18218         printf "%s\n" "$as_me: failed program was:" >&5
18219sed 's/^/| /' conftest.$ac_ext >&5
18220
18221       fi
18222       boost_cv_lib_system=no
18223fi
18224ac_objext=$boost_save_ac_objext
18225ac_ext=$boost_save_ac_ext
18226rm -f core conftest.err conftest_ipa8_conftest.oo \
18227      conftest$ac_exeext
18228      ac_objext=$boost_save_ac_objext
18229      LDFLAGS=$boost_save_LDFLAGS
18230      LIBS=$boost_save_LIBS
18231      if test x"$boost_cv_lib_system" = xyes; then
18232        # Check or used cached result of whether or not using -R or
18233        # -rpath makes sense.  Some implementations of ld, such as for
18234        # Mac OSX, require -rpath but -R is the flag known to work on
18235        # other systems.  https://github.com/tsuna/boost.m4/issues/19
18236        if test ${boost_cv_rpath_link_ldflag+y}
18237then :
18238  printf %s "(cached) " >&6
18239else $as_nop
18240  case $boost_ldpath in
18241           '') # Nothing to do.
18242             boost_cv_rpath_link_ldflag=
18243             boost_rpath_link_ldflag_found=yes;;
18244           *)
18245            for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
18246              LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
18247              LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
18248              rm -f conftest$ac_exeext
18249boost_save_ac_ext=$ac_ext
18250boost_use_source=:
18251# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
18252# tries to link the existing object file instead of compiling from source.
18253test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
18254  printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
18255if { { ac_try="$ac_link"
18256case "(($ac_try" in
18257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18258  *) ac_try_echo=$ac_try;;
18259esac
18260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18261printf "%s\n" "$ac_try_echo"; } >&5
18262  (eval "$ac_link") 2>conftest.err
18263  ac_status=$?
18264  if test -s conftest.err; then
18265    grep -v '^ *+' conftest.err >conftest.er1
18266    cat conftest.er1 >&5
18267    mv -f conftest.er1 conftest.err
18268  fi
18269  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18270  test $ac_status = 0; } && {
18271         test -z "$ac_cxx_werror_flag" ||
18272         test ! -s conftest.err
18273       } && test -s conftest$ac_exeext && {
18274         test "$cross_compiling" = yes ||
18275         $as_executable_p conftest$ac_exeext
18276       }
18277then :
18278  boost_rpath_link_ldflag_found=yes
18279                break
18280else $as_nop
18281  if $boost_use_source; then
18282         printf "%s\n" "$as_me: failed program was:" >&5
18283sed 's/^/| /' conftest.$ac_ext >&5
18284
18285       fi
18286       boost_rpath_link_ldflag_found=no
18287fi
18288ac_objext=$boost_save_ac_objext
18289ac_ext=$boost_save_ac_ext
18290rm -f core conftest.err conftest_ipa8_conftest.oo \
18291      conftest$ac_exeext
18292            done
18293            ;;
18294          esac
18295          if test "x$boost_rpath_link_ldflag_found" != "xyes"
18296then :
18297  as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
18298fi
18299          LDFLAGS=$boost_save_LDFLAGS
18300          LIBS=$boost_save_LIBS
18301
18302fi
18303
18304        test x"$boost_ldpath" != x &&
18305          boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
18306        boost_cv_lib_system_LDPATH="$boost_ldpath"
18307        break 7
18308      else
18309        boost_failed_libs="$boost_failed_libs@$boost_lib@"
18310      fi
18311    done
18312  done
18313done
18314done
18315done
18316done
18317done # boost_lib_
18318rm -f conftest.$ac_objext
18319
18320fi
18321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
18322printf "%s\n" "$boost_cv_lib_system" >&6; }
18323case $boost_cv_lib_system in #(
18324  (no) printf "%s\n" "$as_me: failed program was:" >&5
18325sed 's/^/| /' conftest.$ac_ext >&5
18326
18327    as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5
18328    ;;
18329esac
18330BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
18331BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
18332BOOST_LDPATH=$boost_cv_lib_system_LDPATH
18333BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
18334CPPFLAGS=$boost_save_CPPFLAGS
18335ac_ext=cpp
18336ac_cpp='$CXXCPP $CPPFLAGS'
18337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18340fi
18341
18342
18343
18344fi # end of the Boost.System check.
18345boost_filesystem_save_LIBS=$LIBS
18346boost_filesystem_save_LDFLAGS=$LDFLAGS
18347LIBS="$LIBS $BOOST_SYSTEM_LIBS"
18348LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS"
18349if test x"$boost_cv_inc_path" = xno; then
18350  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost filesystem library" >&5
18351printf "%s\n" "$as_me: Boost not available, not searching for the Boost filesystem library" >&6;}
18352else
18353ac_ext=cpp
18354ac_cpp='$CXXCPP $CPPFLAGS'
18355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18358if test x"$boost_cv_inc_path" = xno; then
18359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/filesystem/path.hpp" >&5
18360printf "%s\n" "$as_me: Boost not available, not searching for boost/filesystem/path.hpp" >&6;}
18361else
18362ac_ext=cpp
18363ac_cpp='$CXXCPP $CPPFLAGS'
18364ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18365ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18366ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18367boost_save_CPPFLAGS=$CPPFLAGS
18368CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18369ac_fn_cxx_check_header_compile "$LINENO" "boost/filesystem/path.hpp" "ac_cv_header_boost_filesystem_path_hpp" "$ac_includes_default"
18370if test "x$ac_cv_header_boost_filesystem_path_hpp" = xyes
18371then :
18372
18373printf "%s\n" "#define HAVE_BOOST_FILESYSTEM_PATH_HPP 1" >>confdefs.h
18374
18375else $as_nop
18376  as_fn_error $? "cannot find boost/filesystem/path.hpp" "$LINENO" 5
18377fi
18378
18379CPPFLAGS=$boost_save_CPPFLAGS
18380ac_ext=cpp
18381ac_cpp='$CXXCPP $CPPFLAGS'
18382ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18383ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18384ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18385fi
18386
18387boost_save_CPPFLAGS=$CPPFLAGS
18388CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost filesystem library" >&5
18390printf %s "checking for the Boost filesystem library... " >&6; }
18391if test ${boost_cv_lib_filesystem+y}
18392then :
18393  printf %s "(cached) " >&6
18394else $as_nop
18395  boost_cv_lib_filesystem=no
18396  case "" in #(
18397    (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
18398    (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
18399    (*) boost_mt=; boost_rtopt=;;
18400  esac
18401  if test $enable_static_boost = yes; then
18402    boost_rtopt="s$boost_rtopt"
18403  fi
18404  # Find the proper debug variant depending on what we've been asked to find.
18405  case $boost_rtopt in #(
18406    (*d*) boost_rt_d=$boost_rtopt;; #(
18407    (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
18408      boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
18409    (*) boost_rt_d='-d';;
18410  esac
18411  # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
18412  test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
18413  $boost_guess_use_mt && boost_mt=-mt
18414  # Look for the abs path the static archive.
18415  # $libext is computed by Libtool but let's make sure it's non empty.
18416  test -z "$libext" &&
18417    as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
18418  boost_save_ac_objext=$ac_objext
18419  # Generate the test file.
18420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18421/* end confdefs.h.  */
18422#include <boost/filesystem/path.hpp>
18423
18424int
18425main (void)
18426{
18427boost::filesystem::path p;
18428  ;
18429  return 0;
18430}
18431_ACEOF
18432  if ac_fn_cxx_try_compile "$LINENO"
18433then :
18434  ac_objext=do_not_rm_me_plz
18435else $as_nop
18436  as_fn_error $? "cannot compile a test that uses Boost filesystem" "$LINENO" 5
18437fi
18438rm -f core conftest.err conftest.$ac_objext conftest.beam
18439  ac_objext=$boost_save_ac_objext
18440  boost_failed_libs=
18441# Don't bother to ident the following nested for loops, only the 2
18442# innermost ones matter.
18443for boost_lib_ in filesystem; do
18444for boost_tag_ in -$boost_cv_lib_tag ''; do
18445for boost_ver_ in -$boost_cv_lib_version ''; do
18446for boost_mt_ in $boost_mt -mt ''; do
18447for boost_rtopt_ in $boost_rtopt '' -d; do
18448  for boost_lib in \
18449    boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
18450    boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
18451    boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
18452    boost_$boost_lib_$boost_tag_$boost_ver_
18453  do
18454    # Avoid testing twice the same lib
18455    case $boost_failed_libs in #(
18456      (*@$boost_lib@*) continue;;
18457    esac
18458    # If with_boost is empty, we'll search in /lib first, which is not quite
18459    # right so instead we'll try to a location based on where the headers are.
18460    boost_tmp_lib=$with_boost
18461    test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
18462    for boost_ldpath in "$boost_tmp_lib/lib" '' \
18463             /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
18464             "$with_boost" C:/Boost/lib /lib*
18465    do
18466      # Don't waste time with directories that don't exist.
18467      if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
18468        continue
18469      fi
18470      boost_save_LDFLAGS=$LDFLAGS
18471      # Are we looking for a static library?
18472      case $boost_ldpath:$boost_rtopt_ in #(
18473        (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
18474          boost_cv_lib_filesystem_LIBS="$boost_ldpath/lib$boost_lib.$libext"
18475          test -e "$boost_cv_lib_filesystem_LIBS" || continue;; #(
18476        (*) # No: use -lboost_foo to find the shared library.
18477          boost_cv_lib_filesystem_LIBS="-l$boost_lib";;
18478      esac
18479      boost_save_LIBS=$LIBS
18480      LIBS="$boost_cv_lib_filesystem_LIBS $LIBS"
18481      test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
18482      rm -f conftest$ac_exeext
18483boost_save_ac_ext=$ac_ext
18484boost_use_source=:
18485# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
18486# tries to link the existing object file instead of compiling from source.
18487test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
18488  printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
18489if { { ac_try="$ac_link"
18490case "(($ac_try" in
18491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18492  *) ac_try_echo=$ac_try;;
18493esac
18494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18495printf "%s\n" "$ac_try_echo"; } >&5
18496  (eval "$ac_link") 2>conftest.err
18497  ac_status=$?
18498  if test -s conftest.err; then
18499    grep -v '^ *+' conftest.err >conftest.er1
18500    cat conftest.er1 >&5
18501    mv -f conftest.er1 conftest.err
18502  fi
18503  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18504  test $ac_status = 0; } && {
18505         test -z "$ac_cxx_werror_flag" ||
18506         test ! -s conftest.err
18507       } && test -s conftest$ac_exeext && {
18508         test "$cross_compiling" = yes ||
18509         $as_executable_p conftest$ac_exeext
18510       }
18511then :
18512  boost_cv_lib_filesystem=yes
18513else $as_nop
18514  if $boost_use_source; then
18515         printf "%s\n" "$as_me: failed program was:" >&5
18516sed 's/^/| /' conftest.$ac_ext >&5
18517
18518       fi
18519       boost_cv_lib_filesystem=no
18520fi
18521ac_objext=$boost_save_ac_objext
18522ac_ext=$boost_save_ac_ext
18523rm -f core conftest.err conftest_ipa8_conftest.oo \
18524      conftest$ac_exeext
18525      ac_objext=$boost_save_ac_objext
18526      LDFLAGS=$boost_save_LDFLAGS
18527      LIBS=$boost_save_LIBS
18528      if test x"$boost_cv_lib_filesystem" = xyes; then
18529        # Check or used cached result of whether or not using -R or
18530        # -rpath makes sense.  Some implementations of ld, such as for
18531        # Mac OSX, require -rpath but -R is the flag known to work on
18532        # other systems.  https://github.com/tsuna/boost.m4/issues/19
18533        if test ${boost_cv_rpath_link_ldflag+y}
18534then :
18535  printf %s "(cached) " >&6
18536else $as_nop
18537  case $boost_ldpath in
18538           '') # Nothing to do.
18539             boost_cv_rpath_link_ldflag=
18540             boost_rpath_link_ldflag_found=yes;;
18541           *)
18542            for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
18543              LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
18544              LIBS="$boost_save_LIBS $boost_cv_lib_filesystem_LIBS"
18545              rm -f conftest$ac_exeext
18546boost_save_ac_ext=$ac_ext
18547boost_use_source=:
18548# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
18549# tries to link the existing object file instead of compiling from source.
18550test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
18551  printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
18552if { { ac_try="$ac_link"
18553case "(($ac_try" in
18554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555  *) ac_try_echo=$ac_try;;
18556esac
18557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18558printf "%s\n" "$ac_try_echo"; } >&5
18559  (eval "$ac_link") 2>conftest.err
18560  ac_status=$?
18561  if test -s conftest.err; then
18562    grep -v '^ *+' conftest.err >conftest.er1
18563    cat conftest.er1 >&5
18564    mv -f conftest.er1 conftest.err
18565  fi
18566  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18567  test $ac_status = 0; } && {
18568         test -z "$ac_cxx_werror_flag" ||
18569         test ! -s conftest.err
18570       } && test -s conftest$ac_exeext && {
18571         test "$cross_compiling" = yes ||
18572         $as_executable_p conftest$ac_exeext
18573       }
18574then :
18575  boost_rpath_link_ldflag_found=yes
18576                break
18577else $as_nop
18578  if $boost_use_source; then
18579         printf "%s\n" "$as_me: failed program was:" >&5
18580sed 's/^/| /' conftest.$ac_ext >&5
18581
18582       fi
18583       boost_rpath_link_ldflag_found=no
18584fi
18585ac_objext=$boost_save_ac_objext
18586ac_ext=$boost_save_ac_ext
18587rm -f core conftest.err conftest_ipa8_conftest.oo \
18588      conftest$ac_exeext
18589            done
18590            ;;
18591          esac
18592          if test "x$boost_rpath_link_ldflag_found" != "xyes"
18593then :
18594  as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
18595fi
18596          LDFLAGS=$boost_save_LDFLAGS
18597          LIBS=$boost_save_LIBS
18598
18599fi
18600
18601        test x"$boost_ldpath" != x &&
18602          boost_cv_lib_filesystem_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
18603        boost_cv_lib_filesystem_LDPATH="$boost_ldpath"
18604        break 7
18605      else
18606        boost_failed_libs="$boost_failed_libs@$boost_lib@"
18607      fi
18608    done
18609  done
18610done
18611done
18612done
18613done
18614done # boost_lib_
18615rm -f conftest.$ac_objext
18616
18617fi
18618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_filesystem" >&5
18619printf "%s\n" "$boost_cv_lib_filesystem" >&6; }
18620case $boost_cv_lib_filesystem in #(
18621  (no) printf "%s\n" "$as_me: failed program was:" >&5
18622sed 's/^/| /' conftest.$ac_ext >&5
18623
18624    as_fn_error $? "cannot find the flags to link with Boost filesystem" "$LINENO" 5
18625    ;;
18626esac
18627BOOST_FILESYSTEM_LDFLAGS=$boost_cv_lib_filesystem_LDFLAGS
18628BOOST_FILESYSTEM_LDPATH=$boost_cv_lib_filesystem_LDPATH
18629BOOST_LDPATH=$boost_cv_lib_filesystem_LDPATH
18630BOOST_FILESYSTEM_LIBS=$boost_cv_lib_filesystem_LIBS
18631CPPFLAGS=$boost_save_CPPFLAGS
18632ac_ext=cpp
18633ac_cpp='$CXXCPP $CPPFLAGS'
18634ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18635ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18636ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18637fi
18638
18639if test $enable_static_boost = yes && test $boost_major_version -ge 135; then
18640  BOOST_FILESYSTEM_LIBS="$BOOST_FILESYSTEM_LIBS $BOOST_SYSTEM_LIBS"
18641fi
18642LIBS=$boost_filesystem_save_LIBS
18643LDFLAGS=$boost_filesystem_save_LDFLAGS
18644
18645
18646
18647
18648LDFLAGS="$LDFLAGS $BOOST_FILESYSTEM_LDFLAGS"
18649LIBS="$LIBS $BOOST_FILESYSTEM_LIBS"
18650
18651
18652boost_locale_save_LIBS=$LIBS
18653boost_locale_save_LDFLAGS=$LDFLAGS
18654# require SYSTEM for boost-1.50.0 and up
18655if test $boost_major_version -ge 150; then
18656  if test x"$boost_cv_inc_path" = xno; then
18657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
18658printf "%s\n" "$as_me: Boost not available, not searching for the Boost system library" >&6;}
18659else
18660ac_ext=cpp
18661ac_cpp='$CXXCPP $CPPFLAGS'
18662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18665if test x"$boost_cv_inc_path" = xno; then
18666  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
18667printf "%s\n" "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
18668else
18669ac_ext=cpp
18670ac_cpp='$CXXCPP $CPPFLAGS'
18671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18674boost_save_CPPFLAGS=$CPPFLAGS
18675CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18676ac_fn_cxx_check_header_compile "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
18677if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes
18678then :
18679
18680printf "%s\n" "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
18681
18682else $as_nop
18683  as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5
18684fi
18685
18686CPPFLAGS=$boost_save_CPPFLAGS
18687ac_ext=cpp
18688ac_cpp='$CXXCPP $CPPFLAGS'
18689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18692fi
18693
18694boost_save_CPPFLAGS=$CPPFLAGS
18695CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
18697printf %s "checking for the Boost system library... " >&6; }
18698if test ${boost_cv_lib_system+y}
18699then :
18700  printf %s "(cached) " >&6
18701else $as_nop
18702  boost_cv_lib_system=no
18703  case "" in #(
18704    (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
18705    (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
18706    (*) boost_mt=; boost_rtopt=;;
18707  esac
18708  if test $enable_static_boost = yes; then
18709    boost_rtopt="s$boost_rtopt"
18710  fi
18711  # Find the proper debug variant depending on what we've been asked to find.
18712  case $boost_rtopt in #(
18713    (*d*) boost_rt_d=$boost_rtopt;; #(
18714    (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
18715      boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
18716    (*) boost_rt_d='-d';;
18717  esac
18718  # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
18719  test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
18720  $boost_guess_use_mt && boost_mt=-mt
18721  # Look for the abs path the static archive.
18722  # $libext is computed by Libtool but let's make sure it's non empty.
18723  test -z "$libext" &&
18724    as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
18725  boost_save_ac_objext=$ac_objext
18726  # Generate the test file.
18727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728/* end confdefs.h.  */
18729#include <boost/system/error_code.hpp>
18730
18731int
18732main (void)
18733{
18734boost::system::error_code e; e.clear();
18735  ;
18736  return 0;
18737}
18738_ACEOF
18739  if ac_fn_cxx_try_compile "$LINENO"
18740then :
18741  ac_objext=do_not_rm_me_plz
18742else $as_nop
18743  as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5
18744fi
18745rm -f core conftest.err conftest.$ac_objext conftest.beam
18746  ac_objext=$boost_save_ac_objext
18747  boost_failed_libs=
18748# Don't bother to ident the following nested for loops, only the 2
18749# innermost ones matter.
18750for boost_lib_ in system; do
18751for boost_tag_ in -$boost_cv_lib_tag ''; do
18752for boost_ver_ in -$boost_cv_lib_version ''; do
18753for boost_mt_ in $boost_mt -mt ''; do
18754for boost_rtopt_ in $boost_rtopt '' -d; do
18755  for boost_lib in \
18756    boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
18757    boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
18758    boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
18759    boost_$boost_lib_$boost_tag_$boost_ver_
18760  do
18761    # Avoid testing twice the same lib
18762    case $boost_failed_libs in #(
18763      (*@$boost_lib@*) continue;;
18764    esac
18765    # If with_boost is empty, we'll search in /lib first, which is not quite
18766    # right so instead we'll try to a location based on where the headers are.
18767    boost_tmp_lib=$with_boost
18768    test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
18769    for boost_ldpath in "$boost_tmp_lib/lib" '' \
18770             /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
18771             "$with_boost" C:/Boost/lib /lib*
18772    do
18773      # Don't waste time with directories that don't exist.
18774      if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
18775        continue
18776      fi
18777      boost_save_LDFLAGS=$LDFLAGS
18778      # Are we looking for a static library?
18779      case $boost_ldpath:$boost_rtopt_ in #(
18780        (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
18781          boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
18782          test -e "$boost_cv_lib_system_LIBS" || continue;; #(
18783        (*) # No: use -lboost_foo to find the shared library.
18784          boost_cv_lib_system_LIBS="-l$boost_lib";;
18785      esac
18786      boost_save_LIBS=$LIBS
18787      LIBS="$boost_cv_lib_system_LIBS $LIBS"
18788      test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
18789      rm -f conftest$ac_exeext
18790boost_save_ac_ext=$ac_ext
18791boost_use_source=:
18792# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
18793# tries to link the existing object file instead of compiling from source.
18794test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
18795  printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
18796if { { ac_try="$ac_link"
18797case "(($ac_try" in
18798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799  *) ac_try_echo=$ac_try;;
18800esac
18801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18802printf "%s\n" "$ac_try_echo"; } >&5
18803  (eval "$ac_link") 2>conftest.err
18804  ac_status=$?
18805  if test -s conftest.err; then
18806    grep -v '^ *+' conftest.err >conftest.er1
18807    cat conftest.er1 >&5
18808    mv -f conftest.er1 conftest.err
18809  fi
18810  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18811  test $ac_status = 0; } && {
18812         test -z "$ac_cxx_werror_flag" ||
18813         test ! -s conftest.err
18814       } && test -s conftest$ac_exeext && {
18815         test "$cross_compiling" = yes ||
18816         $as_executable_p conftest$ac_exeext
18817       }
18818then :
18819  boost_cv_lib_system=yes
18820else $as_nop
18821  if $boost_use_source; then
18822         printf "%s\n" "$as_me: failed program was:" >&5
18823sed 's/^/| /' conftest.$ac_ext >&5
18824
18825       fi
18826       boost_cv_lib_system=no
18827fi
18828ac_objext=$boost_save_ac_objext
18829ac_ext=$boost_save_ac_ext
18830rm -f core conftest.err conftest_ipa8_conftest.oo \
18831      conftest$ac_exeext
18832      ac_objext=$boost_save_ac_objext
18833      LDFLAGS=$boost_save_LDFLAGS
18834      LIBS=$boost_save_LIBS
18835      if test x"$boost_cv_lib_system" = xyes; then
18836        # Check or used cached result of whether or not using -R or
18837        # -rpath makes sense.  Some implementations of ld, such as for
18838        # Mac OSX, require -rpath but -R is the flag known to work on
18839        # other systems.  https://github.com/tsuna/boost.m4/issues/19
18840        if test ${boost_cv_rpath_link_ldflag+y}
18841then :
18842  printf %s "(cached) " >&6
18843else $as_nop
18844  case $boost_ldpath in
18845           '') # Nothing to do.
18846             boost_cv_rpath_link_ldflag=
18847             boost_rpath_link_ldflag_found=yes;;
18848           *)
18849            for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
18850              LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
18851              LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
18852              rm -f conftest$ac_exeext
18853boost_save_ac_ext=$ac_ext
18854boost_use_source=:
18855# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
18856# tries to link the existing object file instead of compiling from source.
18857test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
18858  printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
18859if { { ac_try="$ac_link"
18860case "(($ac_try" in
18861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862  *) ac_try_echo=$ac_try;;
18863esac
18864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18865printf "%s\n" "$ac_try_echo"; } >&5
18866  (eval "$ac_link") 2>conftest.err
18867  ac_status=$?
18868  if test -s conftest.err; then
18869    grep -v '^ *+' conftest.err >conftest.er1
18870    cat conftest.er1 >&5
18871    mv -f conftest.er1 conftest.err
18872  fi
18873  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18874  test $ac_status = 0; } && {
18875         test -z "$ac_cxx_werror_flag" ||
18876         test ! -s conftest.err
18877       } && test -s conftest$ac_exeext && {
18878         test "$cross_compiling" = yes ||
18879         $as_executable_p conftest$ac_exeext
18880       }
18881then :
18882  boost_rpath_link_ldflag_found=yes
18883                break
18884else $as_nop
18885  if $boost_use_source; then
18886         printf "%s\n" "$as_me: failed program was:" >&5
18887sed 's/^/| /' conftest.$ac_ext >&5
18888
18889       fi
18890       boost_rpath_link_ldflag_found=no
18891fi
18892ac_objext=$boost_save_ac_objext
18893ac_ext=$boost_save_ac_ext
18894rm -f core conftest.err conftest_ipa8_conftest.oo \
18895      conftest$ac_exeext
18896            done
18897            ;;
18898          esac
18899          if test "x$boost_rpath_link_ldflag_found" != "xyes"
18900then :
18901  as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
18902fi
18903          LDFLAGS=$boost_save_LDFLAGS
18904          LIBS=$boost_save_LIBS
18905
18906fi
18907
18908        test x"$boost_ldpath" != x &&
18909          boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
18910        boost_cv_lib_system_LDPATH="$boost_ldpath"
18911        break 7
18912      else
18913        boost_failed_libs="$boost_failed_libs@$boost_lib@"
18914      fi
18915    done
18916  done
18917done
18918done
18919done
18920done
18921done # boost_lib_
18922rm -f conftest.$ac_objext
18923
18924fi
18925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
18926printf "%s\n" "$boost_cv_lib_system" >&6; }
18927case $boost_cv_lib_system in #(
18928  (no) printf "%s\n" "$as_me: failed program was:" >&5
18929sed 's/^/| /' conftest.$ac_ext >&5
18930
18931    as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5
18932    ;;
18933esac
18934BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
18935BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
18936BOOST_LDPATH=$boost_cv_lib_system_LDPATH
18937BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
18938CPPFLAGS=$boost_save_CPPFLAGS
18939ac_ext=cpp
18940ac_cpp='$CXXCPP $CPPFLAGS'
18941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18944fi
18945
18946
18947
18948    LIBS="$LIBS $BOOST_SYSTEM_LIBS"
18949  LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS"
18950fi # end of the Boost.System check.
18951if test x"$boost_cv_inc_path" = xno; then
18952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost locale library" >&5
18953printf "%s\n" "$as_me: Boost not available, not searching for the Boost locale library" >&6;}
18954else
18955ac_ext=cpp
18956ac_cpp='$CXXCPP $CPPFLAGS'
18957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18960if test x"$boost_cv_inc_path" = xno; then
18961  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/locale.hpp" >&5
18962printf "%s\n" "$as_me: Boost not available, not searching for boost/locale.hpp" >&6;}
18963else
18964ac_ext=cpp
18965ac_cpp='$CXXCPP $CPPFLAGS'
18966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18969boost_save_CPPFLAGS=$CPPFLAGS
18970CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18971ac_fn_cxx_check_header_compile "$LINENO" "boost/locale.hpp" "ac_cv_header_boost_locale_hpp" "$ac_includes_default"
18972if test "x$ac_cv_header_boost_locale_hpp" = xyes
18973then :
18974
18975printf "%s\n" "#define HAVE_BOOST_LOCALE_HPP 1" >>confdefs.h
18976
18977else $as_nop
18978  as_fn_error $? "cannot find boost/locale.hpp" "$LINENO" 5
18979fi
18980
18981CPPFLAGS=$boost_save_CPPFLAGS
18982ac_ext=cpp
18983ac_cpp='$CXXCPP $CPPFLAGS'
18984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18987fi
18988
18989boost_save_CPPFLAGS=$CPPFLAGS
18990CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost locale library" >&5
18992printf %s "checking for the Boost locale library... " >&6; }
18993if test ${boost_cv_lib_locale+y}
18994then :
18995  printf %s "(cached) " >&6
18996else $as_nop
18997  boost_cv_lib_locale=no
18998  case "" in #(
18999    (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
19000    (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
19001    (*) boost_mt=; boost_rtopt=;;
19002  esac
19003  if test $enable_static_boost = yes; then
19004    boost_rtopt="s$boost_rtopt"
19005  fi
19006  # Find the proper debug variant depending on what we've been asked to find.
19007  case $boost_rtopt in #(
19008    (*d*) boost_rt_d=$boost_rtopt;; #(
19009    (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
19010      boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
19011    (*) boost_rt_d='-d';;
19012  esac
19013  # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
19014  test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
19015  $boost_guess_use_mt && boost_mt=-mt
19016  # Look for the abs path the static archive.
19017  # $libext is computed by Libtool but let's make sure it's non empty.
19018  test -z "$libext" &&
19019    as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
19020  boost_save_ac_objext=$ac_objext
19021  # Generate the test file.
19022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19023/* end confdefs.h.  */
19024#include <boost/locale.hpp>
19025
19026int
19027main (void)
19028{
19029boost::locale::generator gen; std::locale::global(gen(""));
19030  ;
19031  return 0;
19032}
19033_ACEOF
19034  if ac_fn_cxx_try_compile "$LINENO"
19035then :
19036  ac_objext=do_not_rm_me_plz
19037else $as_nop
19038  as_fn_error $? "cannot compile a test that uses Boost locale" "$LINENO" 5
19039fi
19040rm -f core conftest.err conftest.$ac_objext conftest.beam
19041  ac_objext=$boost_save_ac_objext
19042  boost_failed_libs=
19043# Don't bother to ident the following nested for loops, only the 2
19044# innermost ones matter.
19045for boost_lib_ in locale; do
19046for boost_tag_ in -$boost_cv_lib_tag ''; do
19047for boost_ver_ in -$boost_cv_lib_version ''; do
19048for boost_mt_ in $boost_mt -mt ''; do
19049for boost_rtopt_ in $boost_rtopt '' -d; do
19050  for boost_lib in \
19051    boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
19052    boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
19053    boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
19054    boost_$boost_lib_$boost_tag_$boost_ver_
19055  do
19056    # Avoid testing twice the same lib
19057    case $boost_failed_libs in #(
19058      (*@$boost_lib@*) continue;;
19059    esac
19060    # If with_boost is empty, we'll search in /lib first, which is not quite
19061    # right so instead we'll try to a location based on where the headers are.
19062    boost_tmp_lib=$with_boost
19063    test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
19064    for boost_ldpath in "$boost_tmp_lib/lib" '' \
19065             /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
19066             "$with_boost" C:/Boost/lib /lib*
19067    do
19068      # Don't waste time with directories that don't exist.
19069      if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
19070        continue
19071      fi
19072      boost_save_LDFLAGS=$LDFLAGS
19073      # Are we looking for a static library?
19074      case $boost_ldpath:$boost_rtopt_ in #(
19075        (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
19076          boost_cv_lib_locale_LIBS="$boost_ldpath/lib$boost_lib.$libext"
19077          test -e "$boost_cv_lib_locale_LIBS" || continue;; #(
19078        (*) # No: use -lboost_foo to find the shared library.
19079          boost_cv_lib_locale_LIBS="-l$boost_lib";;
19080      esac
19081      boost_save_LIBS=$LIBS
19082      LIBS="$boost_cv_lib_locale_LIBS $LIBS"
19083      test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
19084      rm -f conftest$ac_exeext
19085boost_save_ac_ext=$ac_ext
19086boost_use_source=:
19087# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
19088# tries to link the existing object file instead of compiling from source.
19089test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
19090  printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
19091if { { ac_try="$ac_link"
19092case "(($ac_try" in
19093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19094  *) ac_try_echo=$ac_try;;
19095esac
19096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19097printf "%s\n" "$ac_try_echo"; } >&5
19098  (eval "$ac_link") 2>conftest.err
19099  ac_status=$?
19100  if test -s conftest.err; then
19101    grep -v '^ *+' conftest.err >conftest.er1
19102    cat conftest.er1 >&5
19103    mv -f conftest.er1 conftest.err
19104  fi
19105  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19106  test $ac_status = 0; } && {
19107         test -z "$ac_cxx_werror_flag" ||
19108         test ! -s conftest.err
19109       } && test -s conftest$ac_exeext && {
19110         test "$cross_compiling" = yes ||
19111         $as_executable_p conftest$ac_exeext
19112       }
19113then :
19114  boost_cv_lib_locale=yes
19115else $as_nop
19116  if $boost_use_source; then
19117         printf "%s\n" "$as_me: failed program was:" >&5
19118sed 's/^/| /' conftest.$ac_ext >&5
19119
19120       fi
19121       boost_cv_lib_locale=no
19122fi
19123ac_objext=$boost_save_ac_objext
19124ac_ext=$boost_save_ac_ext
19125rm -f core conftest.err conftest_ipa8_conftest.oo \
19126      conftest$ac_exeext
19127      ac_objext=$boost_save_ac_objext
19128      LDFLAGS=$boost_save_LDFLAGS
19129      LIBS=$boost_save_LIBS
19130      if test x"$boost_cv_lib_locale" = xyes; then
19131        # Check or used cached result of whether or not using -R or
19132        # -rpath makes sense.  Some implementations of ld, such as for
19133        # Mac OSX, require -rpath but -R is the flag known to work on
19134        # other systems.  https://github.com/tsuna/boost.m4/issues/19
19135        if test ${boost_cv_rpath_link_ldflag+y}
19136then :
19137  printf %s "(cached) " >&6
19138else $as_nop
19139  case $boost_ldpath in
19140           '') # Nothing to do.
19141             boost_cv_rpath_link_ldflag=
19142             boost_rpath_link_ldflag_found=yes;;
19143           *)
19144            for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
19145              LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
19146              LIBS="$boost_save_LIBS $boost_cv_lib_locale_LIBS"
19147              rm -f conftest$ac_exeext
19148boost_save_ac_ext=$ac_ext
19149boost_use_source=:
19150# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
19151# tries to link the existing object file instead of compiling from source.
19152test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
19153  printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
19154if { { ac_try="$ac_link"
19155case "(($ac_try" in
19156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157  *) ac_try_echo=$ac_try;;
19158esac
19159eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19160printf "%s\n" "$ac_try_echo"; } >&5
19161  (eval "$ac_link") 2>conftest.err
19162  ac_status=$?
19163  if test -s conftest.err; then
19164    grep -v '^ *+' conftest.err >conftest.er1
19165    cat conftest.er1 >&5
19166    mv -f conftest.er1 conftest.err
19167  fi
19168  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19169  test $ac_status = 0; } && {
19170         test -z "$ac_cxx_werror_flag" ||
19171         test ! -s conftest.err
19172       } && test -s conftest$ac_exeext && {
19173         test "$cross_compiling" = yes ||
19174         $as_executable_p conftest$ac_exeext
19175       }
19176then :
19177  boost_rpath_link_ldflag_found=yes
19178                break
19179else $as_nop
19180  if $boost_use_source; then
19181         printf "%s\n" "$as_me: failed program was:" >&5
19182sed 's/^/| /' conftest.$ac_ext >&5
19183
19184       fi
19185       boost_rpath_link_ldflag_found=no
19186fi
19187ac_objext=$boost_save_ac_objext
19188ac_ext=$boost_save_ac_ext
19189rm -f core conftest.err conftest_ipa8_conftest.oo \
19190      conftest$ac_exeext
19191            done
19192            ;;
19193          esac
19194          if test "x$boost_rpath_link_ldflag_found" != "xyes"
19195then :
19196  as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
19197fi
19198          LDFLAGS=$boost_save_LDFLAGS
19199          LIBS=$boost_save_LIBS
19200
19201fi
19202
19203        test x"$boost_ldpath" != x &&
19204          boost_cv_lib_locale_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
19205        boost_cv_lib_locale_LDPATH="$boost_ldpath"
19206        break 7
19207      else
19208        boost_failed_libs="$boost_failed_libs@$boost_lib@"
19209      fi
19210    done
19211  done
19212done
19213done
19214done
19215done
19216done # boost_lib_
19217rm -f conftest.$ac_objext
19218
19219fi
19220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_locale" >&5
19221printf "%s\n" "$boost_cv_lib_locale" >&6; }
19222case $boost_cv_lib_locale in #(
19223  (no) printf "%s\n" "$as_me: failed program was:" >&5
19224sed 's/^/| /' conftest.$ac_ext >&5
19225
19226    as_fn_error $? "cannot find the flags to link with Boost locale" "$LINENO" 5
19227    ;;
19228esac
19229BOOST_LOCALE_LDFLAGS=$boost_cv_lib_locale_LDFLAGS
19230BOOST_LOCALE_LDPATH=$boost_cv_lib_locale_LDPATH
19231BOOST_LDPATH=$boost_cv_lib_locale_LDPATH
19232BOOST_LOCALE_LIBS=$boost_cv_lib_locale_LIBS
19233CPPFLAGS=$boost_save_CPPFLAGS
19234ac_ext=cpp
19235ac_cpp='$CXXCPP $CPPFLAGS'
19236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19239fi
19240
19241LIBS=$boost_locale_save_LIBS
19242LDFLAGS=$boost_locale_save_LDFLAGS
19243
19244
19245
19246
19247LDFLAGS="$LDFLAGS $BOOST_LOCALE_LDFLAGS"
19248LIBS="$LIBS $BOOST_LOCALE_LIBS"
19249
19250if test x"$boost_cv_inc_path" = xno; then
19251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost program_options library" >&5
19252printf "%s\n" "$as_me: Boost not available, not searching for the Boost program_options library" >&6;}
19253else
19254ac_ext=cpp
19255ac_cpp='$CXXCPP $CPPFLAGS'
19256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19259if test x"$boost_cv_inc_path" = xno; then
19260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/program_options.hpp" >&5
19261printf "%s\n" "$as_me: Boost not available, not searching for boost/program_options.hpp" >&6;}
19262else
19263ac_ext=cpp
19264ac_cpp='$CXXCPP $CPPFLAGS'
19265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19268boost_save_CPPFLAGS=$CPPFLAGS
19269CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19270ac_fn_cxx_check_header_compile "$LINENO" "boost/program_options.hpp" "ac_cv_header_boost_program_options_hpp" "$ac_includes_default"
19271if test "x$ac_cv_header_boost_program_options_hpp" = xyes
19272then :
19273
19274printf "%s\n" "#define HAVE_BOOST_PROGRAM_OPTIONS_HPP 1" >>confdefs.h
19275
19276else $as_nop
19277  as_fn_error $? "cannot find boost/program_options.hpp" "$LINENO" 5
19278fi
19279
19280CPPFLAGS=$boost_save_CPPFLAGS
19281ac_ext=cpp
19282ac_cpp='$CXXCPP $CPPFLAGS'
19283ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19284ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19285ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19286fi
19287
19288boost_save_CPPFLAGS=$CPPFLAGS
19289CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost program_options library" >&5
19291printf %s "checking for the Boost program_options library... " >&6; }
19292if test ${boost_cv_lib_program_options+y}
19293then :
19294  printf %s "(cached) " >&6
19295else $as_nop
19296  boost_cv_lib_program_options=no
19297  case "" in #(
19298    (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
19299    (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
19300    (*) boost_mt=; boost_rtopt=;;
19301  esac
19302  if test $enable_static_boost = yes; then
19303    boost_rtopt="s$boost_rtopt"
19304  fi
19305  # Find the proper debug variant depending on what we've been asked to find.
19306  case $boost_rtopt in #(
19307    (*d*) boost_rt_d=$boost_rtopt;; #(
19308    (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
19309      boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
19310    (*) boost_rt_d='-d';;
19311  esac
19312  # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
19313  test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
19314  $boost_guess_use_mt && boost_mt=-mt
19315  # Look for the abs path the static archive.
19316  # $libext is computed by Libtool but let's make sure it's non empty.
19317  test -z "$libext" &&
19318    as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
19319  boost_save_ac_objext=$ac_objext
19320  # Generate the test file.
19321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19322/* end confdefs.h.  */
19323#include <boost/program_options.hpp>
19324
19325int
19326main (void)
19327{
19328boost::program_options::options_description d("test");
19329  ;
19330  return 0;
19331}
19332_ACEOF
19333  if ac_fn_cxx_try_compile "$LINENO"
19334then :
19335  ac_objext=do_not_rm_me_plz
19336else $as_nop
19337  as_fn_error $? "cannot compile a test that uses Boost program_options" "$LINENO" 5
19338fi
19339rm -f core conftest.err conftest.$ac_objext conftest.beam
19340  ac_objext=$boost_save_ac_objext
19341  boost_failed_libs=
19342# Don't bother to ident the following nested for loops, only the 2
19343# innermost ones matter.
19344for boost_lib_ in program_options; do
19345for boost_tag_ in -$boost_cv_lib_tag ''; do
19346for boost_ver_ in -$boost_cv_lib_version ''; do
19347for boost_mt_ in $boost_mt -mt ''; do
19348for boost_rtopt_ in $boost_rtopt '' -d; do
19349  for boost_lib in \
19350    boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
19351    boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
19352    boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
19353    boost_$boost_lib_$boost_tag_$boost_ver_
19354  do
19355    # Avoid testing twice the same lib
19356    case $boost_failed_libs in #(
19357      (*@$boost_lib@*) continue;;
19358    esac
19359    # If with_boost is empty, we'll search in /lib first, which is not quite
19360    # right so instead we'll try to a location based on where the headers are.
19361    boost_tmp_lib=$with_boost
19362    test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
19363    for boost_ldpath in "$boost_tmp_lib/lib" '' \
19364             /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
19365             "$with_boost" C:/Boost/lib /lib*
19366    do
19367      # Don't waste time with directories that don't exist.
19368      if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
19369        continue
19370      fi
19371      boost_save_LDFLAGS=$LDFLAGS
19372      # Are we looking for a static library?
19373      case $boost_ldpath:$boost_rtopt_ in #(
19374        (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
19375          boost_cv_lib_program_options_LIBS="$boost_ldpath/lib$boost_lib.$libext"
19376          test -e "$boost_cv_lib_program_options_LIBS" || continue;; #(
19377        (*) # No: use -lboost_foo to find the shared library.
19378          boost_cv_lib_program_options_LIBS="-l$boost_lib";;
19379      esac
19380      boost_save_LIBS=$LIBS
19381      LIBS="$boost_cv_lib_program_options_LIBS $LIBS"
19382      test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
19383      rm -f conftest$ac_exeext
19384boost_save_ac_ext=$ac_ext
19385boost_use_source=:
19386# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
19387# tries to link the existing object file instead of compiling from source.
19388test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
19389  printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
19390if { { ac_try="$ac_link"
19391case "(($ac_try" in
19392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393  *) ac_try_echo=$ac_try;;
19394esac
19395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19396printf "%s\n" "$ac_try_echo"; } >&5
19397  (eval "$ac_link") 2>conftest.err
19398  ac_status=$?
19399  if test -s conftest.err; then
19400    grep -v '^ *+' conftest.err >conftest.er1
19401    cat conftest.er1 >&5
19402    mv -f conftest.er1 conftest.err
19403  fi
19404  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19405  test $ac_status = 0; } && {
19406         test -z "$ac_cxx_werror_flag" ||
19407         test ! -s conftest.err
19408       } && test -s conftest$ac_exeext && {
19409         test "$cross_compiling" = yes ||
19410         $as_executable_p conftest$ac_exeext
19411       }
19412then :
19413  boost_cv_lib_program_options=yes
19414else $as_nop
19415  if $boost_use_source; then
19416         printf "%s\n" "$as_me: failed program was:" >&5
19417sed 's/^/| /' conftest.$ac_ext >&5
19418
19419       fi
19420       boost_cv_lib_program_options=no
19421fi
19422ac_objext=$boost_save_ac_objext
19423ac_ext=$boost_save_ac_ext
19424rm -f core conftest.err conftest_ipa8_conftest.oo \
19425      conftest$ac_exeext
19426      ac_objext=$boost_save_ac_objext
19427      LDFLAGS=$boost_save_LDFLAGS
19428      LIBS=$boost_save_LIBS
19429      if test x"$boost_cv_lib_program_options" = xyes; then
19430        # Check or used cached result of whether or not using -R or
19431        # -rpath makes sense.  Some implementations of ld, such as for
19432        # Mac OSX, require -rpath but -R is the flag known to work on
19433        # other systems.  https://github.com/tsuna/boost.m4/issues/19
19434        if test ${boost_cv_rpath_link_ldflag+y}
19435then :
19436  printf %s "(cached) " >&6
19437else $as_nop
19438  case $boost_ldpath in
19439           '') # Nothing to do.
19440             boost_cv_rpath_link_ldflag=
19441             boost_rpath_link_ldflag_found=yes;;
19442           *)
19443            for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
19444              LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
19445              LIBS="$boost_save_LIBS $boost_cv_lib_program_options_LIBS"
19446              rm -f conftest$ac_exeext
19447boost_save_ac_ext=$ac_ext
19448boost_use_source=:
19449# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
19450# tries to link the existing object file instead of compiling from source.
19451test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
19452  printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
19453if { { ac_try="$ac_link"
19454case "(($ac_try" in
19455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456  *) ac_try_echo=$ac_try;;
19457esac
19458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19459printf "%s\n" "$ac_try_echo"; } >&5
19460  (eval "$ac_link") 2>conftest.err
19461  ac_status=$?
19462  if test -s conftest.err; then
19463    grep -v '^ *+' conftest.err >conftest.er1
19464    cat conftest.er1 >&5
19465    mv -f conftest.er1 conftest.err
19466  fi
19467  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19468  test $ac_status = 0; } && {
19469         test -z "$ac_cxx_werror_flag" ||
19470         test ! -s conftest.err
19471       } && test -s conftest$ac_exeext && {
19472         test "$cross_compiling" = yes ||
19473         $as_executable_p conftest$ac_exeext
19474       }
19475then :
19476  boost_rpath_link_ldflag_found=yes
19477                break
19478else $as_nop
19479  if $boost_use_source; then
19480         printf "%s\n" "$as_me: failed program was:" >&5
19481sed 's/^/| /' conftest.$ac_ext >&5
19482
19483       fi
19484       boost_rpath_link_ldflag_found=no
19485fi
19486ac_objext=$boost_save_ac_objext
19487ac_ext=$boost_save_ac_ext
19488rm -f core conftest.err conftest_ipa8_conftest.oo \
19489      conftest$ac_exeext
19490            done
19491            ;;
19492          esac
19493          if test "x$boost_rpath_link_ldflag_found" != "xyes"
19494then :
19495  as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
19496fi
19497          LDFLAGS=$boost_save_LDFLAGS
19498          LIBS=$boost_save_LIBS
19499
19500fi
19501
19502        test x"$boost_ldpath" != x &&
19503          boost_cv_lib_program_options_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
19504        boost_cv_lib_program_options_LDPATH="$boost_ldpath"
19505        break 7
19506      else
19507        boost_failed_libs="$boost_failed_libs@$boost_lib@"
19508      fi
19509    done
19510  done
19511done
19512done
19513done
19514done
19515done # boost_lib_
19516rm -f conftest.$ac_objext
19517
19518fi
19519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_program_options" >&5
19520printf "%s\n" "$boost_cv_lib_program_options" >&6; }
19521case $boost_cv_lib_program_options in #(
19522  (no) printf "%s\n" "$as_me: failed program was:" >&5
19523sed 's/^/| /' conftest.$ac_ext >&5
19524
19525    as_fn_error $? "cannot find the flags to link with Boost program_options" "$LINENO" 5
19526    ;;
19527esac
19528BOOST_PROGRAM_OPTIONS_LDFLAGS=$boost_cv_lib_program_options_LDFLAGS
19529BOOST_PROGRAM_OPTIONS_LDPATH=$boost_cv_lib_program_options_LDPATH
19530BOOST_LDPATH=$boost_cv_lib_program_options_LDPATH
19531BOOST_PROGRAM_OPTIONS_LIBS=$boost_cv_lib_program_options_LIBS
19532CPPFLAGS=$boost_save_CPPFLAGS
19533ac_ext=cpp
19534ac_cpp='$CXXCPP $CPPFLAGS'
19535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19538fi
19539
19540
19541
19542
19543
19544LDFLAGS="$LDFLAGS $BOOST_PROGRAM_OPTIONS_LDFLAGS"
19545LIBS="$LIBS $BOOST_PROGRAM_OPTIONS_LIBS"
19546
19547if test x"$boost_cv_inc_path" = xno; then
19548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost regex library" >&5
19549printf "%s\n" "$as_me: Boost not available, not searching for the Boost regex library" >&6;}
19550else
19551ac_ext=cpp
19552ac_cpp='$CXXCPP $CPPFLAGS'
19553ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19554ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19555ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19556if test x"$boost_cv_inc_path" = xno; then
19557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/regex.hpp" >&5
19558printf "%s\n" "$as_me: Boost not available, not searching for boost/regex.hpp" >&6;}
19559else
19560ac_ext=cpp
19561ac_cpp='$CXXCPP $CPPFLAGS'
19562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19565boost_save_CPPFLAGS=$CPPFLAGS
19566CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19567ac_fn_cxx_check_header_compile "$LINENO" "boost/regex.hpp" "ac_cv_header_boost_regex_hpp" "$ac_includes_default"
19568if test "x$ac_cv_header_boost_regex_hpp" = xyes
19569then :
19570
19571printf "%s\n" "#define HAVE_BOOST_REGEX_HPP 1" >>confdefs.h
19572
19573else $as_nop
19574  as_fn_error $? "cannot find boost/regex.hpp" "$LINENO" 5
19575fi
19576
19577CPPFLAGS=$boost_save_CPPFLAGS
19578ac_ext=cpp
19579ac_cpp='$CXXCPP $CPPFLAGS'
19580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19583fi
19584
19585boost_save_CPPFLAGS=$CPPFLAGS
19586CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost regex library" >&5
19588printf %s "checking for the Boost regex library... " >&6; }
19589if test ${boost_cv_lib_regex+y}
19590then :
19591  printf %s "(cached) " >&6
19592else $as_nop
19593  boost_cv_lib_regex=no
19594  case "" in #(
19595    (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
19596    (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
19597    (*) boost_mt=; boost_rtopt=;;
19598  esac
19599  if test $enable_static_boost = yes; then
19600    boost_rtopt="s$boost_rtopt"
19601  fi
19602  # Find the proper debug variant depending on what we've been asked to find.
19603  case $boost_rtopt in #(
19604    (*d*) boost_rt_d=$boost_rtopt;; #(
19605    (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
19606      boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
19607    (*) boost_rt_d='-d';;
19608  esac
19609  # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
19610  test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
19611  $boost_guess_use_mt && boost_mt=-mt
19612  # Look for the abs path the static archive.
19613  # $libext is computed by Libtool but let's make sure it's non empty.
19614  test -z "$libext" &&
19615    as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
19616  boost_save_ac_objext=$ac_objext
19617  # Generate the test file.
19618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19619/* end confdefs.h.  */
19620#include <boost/regex.hpp>
19621
19622int
19623main (void)
19624{
19625boost::regex exp("*"); boost::regex_match("foo", exp);
19626  ;
19627  return 0;
19628}
19629_ACEOF
19630  if ac_fn_cxx_try_compile "$LINENO"
19631then :
19632  ac_objext=do_not_rm_me_plz
19633else $as_nop
19634  as_fn_error $? "cannot compile a test that uses Boost regex" "$LINENO" 5
19635fi
19636rm -f core conftest.err conftest.$ac_objext conftest.beam
19637  ac_objext=$boost_save_ac_objext
19638  boost_failed_libs=
19639# Don't bother to ident the following nested for loops, only the 2
19640# innermost ones matter.
19641for boost_lib_ in regex; do
19642for boost_tag_ in -$boost_cv_lib_tag ''; do
19643for boost_ver_ in -$boost_cv_lib_version ''; do
19644for boost_mt_ in $boost_mt -mt ''; do
19645for boost_rtopt_ in $boost_rtopt '' -d; do
19646  for boost_lib in \
19647    boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
19648    boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
19649    boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
19650    boost_$boost_lib_$boost_tag_$boost_ver_
19651  do
19652    # Avoid testing twice the same lib
19653    case $boost_failed_libs in #(
19654      (*@$boost_lib@*) continue;;
19655    esac
19656    # If with_boost is empty, we'll search in /lib first, which is not quite
19657    # right so instead we'll try to a location based on where the headers are.
19658    boost_tmp_lib=$with_boost
19659    test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
19660    for boost_ldpath in "$boost_tmp_lib/lib" '' \
19661             /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
19662             "$with_boost" C:/Boost/lib /lib*
19663    do
19664      # Don't waste time with directories that don't exist.
19665      if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
19666        continue
19667      fi
19668      boost_save_LDFLAGS=$LDFLAGS
19669      # Are we looking for a static library?
19670      case $boost_ldpath:$boost_rtopt_ in #(
19671        (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
19672          boost_cv_lib_regex_LIBS="$boost_ldpath/lib$boost_lib.$libext"
19673          test -e "$boost_cv_lib_regex_LIBS" || continue;; #(
19674        (*) # No: use -lboost_foo to find the shared library.
19675          boost_cv_lib_regex_LIBS="-l$boost_lib";;
19676      esac
19677      boost_save_LIBS=$LIBS
19678      LIBS="$boost_cv_lib_regex_LIBS $LIBS"
19679      test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
19680      rm -f conftest$ac_exeext
19681boost_save_ac_ext=$ac_ext
19682boost_use_source=:
19683# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
19684# tries to link the existing object file instead of compiling from source.
19685test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
19686  printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
19687if { { ac_try="$ac_link"
19688case "(($ac_try" in
19689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690  *) ac_try_echo=$ac_try;;
19691esac
19692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19693printf "%s\n" "$ac_try_echo"; } >&5
19694  (eval "$ac_link") 2>conftest.err
19695  ac_status=$?
19696  if test -s conftest.err; then
19697    grep -v '^ *+' conftest.err >conftest.er1
19698    cat conftest.er1 >&5
19699    mv -f conftest.er1 conftest.err
19700  fi
19701  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19702  test $ac_status = 0; } && {
19703         test -z "$ac_cxx_werror_flag" ||
19704         test ! -s conftest.err
19705       } && test -s conftest$ac_exeext && {
19706         test "$cross_compiling" = yes ||
19707         $as_executable_p conftest$ac_exeext
19708       }
19709then :
19710  boost_cv_lib_regex=yes
19711else $as_nop
19712  if $boost_use_source; then
19713         printf "%s\n" "$as_me: failed program was:" >&5
19714sed 's/^/| /' conftest.$ac_ext >&5
19715
19716       fi
19717       boost_cv_lib_regex=no
19718fi
19719ac_objext=$boost_save_ac_objext
19720ac_ext=$boost_save_ac_ext
19721rm -f core conftest.err conftest_ipa8_conftest.oo \
19722      conftest$ac_exeext
19723      ac_objext=$boost_save_ac_objext
19724      LDFLAGS=$boost_save_LDFLAGS
19725      LIBS=$boost_save_LIBS
19726      if test x"$boost_cv_lib_regex" = xyes; then
19727        # Check or used cached result of whether or not using -R or
19728        # -rpath makes sense.  Some implementations of ld, such as for
19729        # Mac OSX, require -rpath but -R is the flag known to work on
19730        # other systems.  https://github.com/tsuna/boost.m4/issues/19
19731        if test ${boost_cv_rpath_link_ldflag+y}
19732then :
19733  printf %s "(cached) " >&6
19734else $as_nop
19735  case $boost_ldpath in
19736           '') # Nothing to do.
19737             boost_cv_rpath_link_ldflag=
19738             boost_rpath_link_ldflag_found=yes;;
19739           *)
19740            for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
19741              LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
19742              LIBS="$boost_save_LIBS $boost_cv_lib_regex_LIBS"
19743              rm -f conftest$ac_exeext
19744boost_save_ac_ext=$ac_ext
19745boost_use_source=:
19746# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
19747# tries to link the existing object file instead of compiling from source.
19748test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
19749  printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
19750if { { ac_try="$ac_link"
19751case "(($ac_try" in
19752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753  *) ac_try_echo=$ac_try;;
19754esac
19755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19756printf "%s\n" "$ac_try_echo"; } >&5
19757  (eval "$ac_link") 2>conftest.err
19758  ac_status=$?
19759  if test -s conftest.err; then
19760    grep -v '^ *+' conftest.err >conftest.er1
19761    cat conftest.er1 >&5
19762    mv -f conftest.er1 conftest.err
19763  fi
19764  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19765  test $ac_status = 0; } && {
19766         test -z "$ac_cxx_werror_flag" ||
19767         test ! -s conftest.err
19768       } && test -s conftest$ac_exeext && {
19769         test "$cross_compiling" = yes ||
19770         $as_executable_p conftest$ac_exeext
19771       }
19772then :
19773  boost_rpath_link_ldflag_found=yes
19774                break
19775else $as_nop
19776  if $boost_use_source; then
19777         printf "%s\n" "$as_me: failed program was:" >&5
19778sed 's/^/| /' conftest.$ac_ext >&5
19779
19780       fi
19781       boost_rpath_link_ldflag_found=no
19782fi
19783ac_objext=$boost_save_ac_objext
19784ac_ext=$boost_save_ac_ext
19785rm -f core conftest.err conftest_ipa8_conftest.oo \
19786      conftest$ac_exeext
19787            done
19788            ;;
19789          esac
19790          if test "x$boost_rpath_link_ldflag_found" != "xyes"
19791then :
19792  as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
19793fi
19794          LDFLAGS=$boost_save_LDFLAGS
19795          LIBS=$boost_save_LIBS
19796
19797fi
19798
19799        test x"$boost_ldpath" != x &&
19800          boost_cv_lib_regex_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
19801        boost_cv_lib_regex_LDPATH="$boost_ldpath"
19802        break 7
19803      else
19804        boost_failed_libs="$boost_failed_libs@$boost_lib@"
19805      fi
19806    done
19807  done
19808done
19809done
19810done
19811done
19812done # boost_lib_
19813rm -f conftest.$ac_objext
19814
19815fi
19816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_regex" >&5
19817printf "%s\n" "$boost_cv_lib_regex" >&6; }
19818case $boost_cv_lib_regex in #(
19819  (no) printf "%s\n" "$as_me: failed program was:" >&5
19820sed 's/^/| /' conftest.$ac_ext >&5
19821
19822    as_fn_error $? "cannot find the flags to link with Boost regex" "$LINENO" 5
19823    ;;
19824esac
19825BOOST_REGEX_LDFLAGS=$boost_cv_lib_regex_LDFLAGS
19826BOOST_REGEX_LDPATH=$boost_cv_lib_regex_LDPATH
19827BOOST_LDPATH=$boost_cv_lib_regex_LDPATH
19828BOOST_REGEX_LIBS=$boost_cv_lib_regex_LIBS
19829CPPFLAGS=$boost_save_CPPFLAGS
19830ac_ext=cpp
19831ac_cpp='$CXXCPP $CPPFLAGS'
19832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19835fi
19836
19837
19838
19839
19840
19841LDFLAGS="$LDFLAGS $BOOST_REGEX_LDFLAGS"
19842LIBS="$LIBS $BOOST_REGEX_LIBS"
19843
19844ac_ext=cpp
19845ac_cpp='$CXXCPP $CPPFLAGS'
19846ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19847ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19848ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the flags needed to use pthreads" >&5
19850printf %s "checking for the flags needed to use pthreads... " >&6; }
19851if test ${boost_cv_pthread_flag+y}
19852then :
19853  printf %s "(cached) " >&6
19854else $as_nop
19855   boost_cv_pthread_flag=
19856  # The ordering *is* (sometimes) important.  Some notes on the
19857  # individual items follow:
19858  # (none): in case threads are in libc; should be tried before -Kthread and
19859  #       other compiler flags to prevent continual compiler warnings
19860  # -lpthreads: AIX (must check this before -lpthread)
19861  # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19862  # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19863  # -llthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19864  # -pthread: GNU Linux/GCC (kernel threads), BSD/GCC (userland threads)
19865  # -pthreads: Solaris/GCC
19866  # -mthreads: MinGW32/GCC, Lynx/GCC
19867  # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19868  #      doesn't hurt to check since this sometimes defines pthreads too;
19869  #      also defines -D_REENTRANT)
19870  #      ... -mt is also the pthreads flag for HP/aCC
19871  # -lpthread: GNU Linux, etc.
19872  # --thread-safe: KAI C++
19873  case $host_os in #(
19874    *solaris*)
19875      # On Solaris (at least, for some versions), libc contains stubbed
19876      # (non-functional) versions of the pthreads routines, so link-based
19877      # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
19878      # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
19879      # a function called by this macro, so we could check for that, but
19880      # who knows whether they'll stub that too in a future libc.)  So,
19881      # we'll just look for -pthreads and -lpthread first:
19882      boost_pthread_flags="-pthreads -lpthread -mt -pthread";; #(
19883    *)
19884      boost_pthread_flags="-lpthreads -Kthread -kthread -llthread -pthread \
19885                           -pthreads -mthreads -lpthread --thread-safe -mt";;
19886  esac
19887  # Generate the test file.
19888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19889/* end confdefs.h.  */
19890#include <pthread.h>
19891int
19892main (void)
19893{
19894pthread_t th; pthread_join(th, 0);
19895    pthread_attr_init(0); pthread_cleanup_push(0, 0);
19896    pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19897  ;
19898  return 0;
19899}
19900_ACEOF
19901  for boost_pthread_flag in '' $boost_pthread_flags; do
19902    boost_pthread_ok=false
19903    boost_pthreads__save_LIBS=$LIBS
19904    LIBS="$LIBS $boost_pthread_flag"
19905    if ac_fn_cxx_try_link "$LINENO"
19906then :
19907  if grep ".*$boost_pthread_flag" conftest.err; then
19908         echo "This flag seems to have triggered warnings" >&5
19909       else
19910         boost_pthread_ok=:; boost_cv_pthread_flag=$boost_pthread_flag
19911       fi
19912fi
19913rm -f core conftest.err conftest.$ac_objext conftest.beam \
19914    conftest$ac_exeext
19915    LIBS=$boost_pthreads__save_LIBS
19916    $boost_pthread_ok && break
19917  done
19918
19919fi
19920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_pthread_flag" >&5
19921printf "%s\n" "$boost_cv_pthread_flag" >&6; }
19922ac_ext=cpp
19923ac_cpp='$CXXCPP $CPPFLAGS'
19924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19927
19928boost_thread_save_LIBS=$LIBS
19929boost_thread_save_LDFLAGS=$LDFLAGS
19930boost_thread_save_CPPFLAGS=$CPPFLAGS
19931# Link-time dependency from thread to system was added as of 1.49.0.
19932if test $boost_major_version -ge 149; then
19933if test x"$boost_cv_inc_path" = xno; then
19934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
19935printf "%s\n" "$as_me: Boost not available, not searching for the Boost system library" >&6;}
19936else
19937ac_ext=cpp
19938ac_cpp='$CXXCPP $CPPFLAGS'
19939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19942if test x"$boost_cv_inc_path" = xno; then
19943  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
19944printf "%s\n" "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
19945else
19946ac_ext=cpp
19947ac_cpp='$CXXCPP $CPPFLAGS'
19948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19951boost_save_CPPFLAGS=$CPPFLAGS
19952CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19953ac_fn_cxx_check_header_compile "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
19954if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes
19955then :
19956
19957printf "%s\n" "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
19958
19959else $as_nop
19960  as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5
19961fi
19962
19963CPPFLAGS=$boost_save_CPPFLAGS
19964ac_ext=cpp
19965ac_cpp='$CXXCPP $CPPFLAGS'
19966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19969fi
19970
19971boost_save_CPPFLAGS=$CPPFLAGS
19972CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
19974printf %s "checking for the Boost system library... " >&6; }
19975if test ${boost_cv_lib_system+y}
19976then :
19977  printf %s "(cached) " >&6
19978else $as_nop
19979  boost_cv_lib_system=no
19980  case "" in #(
19981    (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
19982    (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
19983    (*) boost_mt=; boost_rtopt=;;
19984  esac
19985  if test $enable_static_boost = yes; then
19986    boost_rtopt="s$boost_rtopt"
19987  fi
19988  # Find the proper debug variant depending on what we've been asked to find.
19989  case $boost_rtopt in #(
19990    (*d*) boost_rt_d=$boost_rtopt;; #(
19991    (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
19992      boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
19993    (*) boost_rt_d='-d';;
19994  esac
19995  # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
19996  test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
19997  $boost_guess_use_mt && boost_mt=-mt
19998  # Look for the abs path the static archive.
19999  # $libext is computed by Libtool but let's make sure it's non empty.
20000  test -z "$libext" &&
20001    as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
20002  boost_save_ac_objext=$ac_objext
20003  # Generate the test file.
20004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20005/* end confdefs.h.  */
20006#include <boost/system/error_code.hpp>
20007
20008int
20009main (void)
20010{
20011boost::system::error_code e; e.clear();
20012  ;
20013  return 0;
20014}
20015_ACEOF
20016  if ac_fn_cxx_try_compile "$LINENO"
20017then :
20018  ac_objext=do_not_rm_me_plz
20019else $as_nop
20020  as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5
20021fi
20022rm -f core conftest.err conftest.$ac_objext conftest.beam
20023  ac_objext=$boost_save_ac_objext
20024  boost_failed_libs=
20025# Don't bother to ident the following nested for loops, only the 2
20026# innermost ones matter.
20027for boost_lib_ in system; do
20028for boost_tag_ in -$boost_cv_lib_tag ''; do
20029for boost_ver_ in -$boost_cv_lib_version ''; do
20030for boost_mt_ in $boost_mt -mt ''; do
20031for boost_rtopt_ in $boost_rtopt '' -d; do
20032  for boost_lib in \
20033    boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
20034    boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
20035    boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
20036    boost_$boost_lib_$boost_tag_$boost_ver_
20037  do
20038    # Avoid testing twice the same lib
20039    case $boost_failed_libs in #(
20040      (*@$boost_lib@*) continue;;
20041    esac
20042    # If with_boost is empty, we'll search in /lib first, which is not quite
20043    # right so instead we'll try to a location based on where the headers are.
20044    boost_tmp_lib=$with_boost
20045    test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
20046    for boost_ldpath in "$boost_tmp_lib/lib" '' \
20047             /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
20048             "$with_boost" C:/Boost/lib /lib*
20049    do
20050      # Don't waste time with directories that don't exist.
20051      if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
20052        continue
20053      fi
20054      boost_save_LDFLAGS=$LDFLAGS
20055      # Are we looking for a static library?
20056      case $boost_ldpath:$boost_rtopt_ in #(
20057        (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
20058          boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
20059          test -e "$boost_cv_lib_system_LIBS" || continue;; #(
20060        (*) # No: use -lboost_foo to find the shared library.
20061          boost_cv_lib_system_LIBS="-l$boost_lib";;
20062      esac
20063      boost_save_LIBS=$LIBS
20064      LIBS="$boost_cv_lib_system_LIBS $LIBS"
20065      test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
20066      rm -f conftest$ac_exeext
20067boost_save_ac_ext=$ac_ext
20068boost_use_source=:
20069# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
20070# tries to link the existing object file instead of compiling from source.
20071test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
20072  printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
20073if { { ac_try="$ac_link"
20074case "(($ac_try" in
20075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20076  *) ac_try_echo=$ac_try;;
20077esac
20078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20079printf "%s\n" "$ac_try_echo"; } >&5
20080  (eval "$ac_link") 2>conftest.err
20081  ac_status=$?
20082  if test -s conftest.err; then
20083    grep -v '^ *+' conftest.err >conftest.er1
20084    cat conftest.er1 >&5
20085    mv -f conftest.er1 conftest.err
20086  fi
20087  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20088  test $ac_status = 0; } && {
20089         test -z "$ac_cxx_werror_flag" ||
20090         test ! -s conftest.err
20091       } && test -s conftest$ac_exeext && {
20092         test "$cross_compiling" = yes ||
20093         $as_executable_p conftest$ac_exeext
20094       }
20095then :
20096  boost_cv_lib_system=yes
20097else $as_nop
20098  if $boost_use_source; then
20099         printf "%s\n" "$as_me: failed program was:" >&5
20100sed 's/^/| /' conftest.$ac_ext >&5
20101
20102       fi
20103       boost_cv_lib_system=no
20104fi
20105ac_objext=$boost_save_ac_objext
20106ac_ext=$boost_save_ac_ext
20107rm -f core conftest.err conftest_ipa8_conftest.oo \
20108      conftest$ac_exeext
20109      ac_objext=$boost_save_ac_objext
20110      LDFLAGS=$boost_save_LDFLAGS
20111      LIBS=$boost_save_LIBS
20112      if test x"$boost_cv_lib_system" = xyes; then
20113        # Check or used cached result of whether or not using -R or
20114        # -rpath makes sense.  Some implementations of ld, such as for
20115        # Mac OSX, require -rpath but -R is the flag known to work on
20116        # other systems.  https://github.com/tsuna/boost.m4/issues/19
20117        if test ${boost_cv_rpath_link_ldflag+y}
20118then :
20119  printf %s "(cached) " >&6
20120else $as_nop
20121  case $boost_ldpath in
20122           '') # Nothing to do.
20123             boost_cv_rpath_link_ldflag=
20124             boost_rpath_link_ldflag_found=yes;;
20125           *)
20126            for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
20127              LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
20128              LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
20129              rm -f conftest$ac_exeext
20130boost_save_ac_ext=$ac_ext
20131boost_use_source=:
20132# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
20133# tries to link the existing object file instead of compiling from source.
20134test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
20135  printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
20136if { { ac_try="$ac_link"
20137case "(($ac_try" in
20138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139  *) ac_try_echo=$ac_try;;
20140esac
20141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20142printf "%s\n" "$ac_try_echo"; } >&5
20143  (eval "$ac_link") 2>conftest.err
20144  ac_status=$?
20145  if test -s conftest.err; then
20146    grep -v '^ *+' conftest.err >conftest.er1
20147    cat conftest.er1 >&5
20148    mv -f conftest.er1 conftest.err
20149  fi
20150  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20151  test $ac_status = 0; } && {
20152         test -z "$ac_cxx_werror_flag" ||
20153         test ! -s conftest.err
20154       } && test -s conftest$ac_exeext && {
20155         test "$cross_compiling" = yes ||
20156         $as_executable_p conftest$ac_exeext
20157       }
20158then :
20159  boost_rpath_link_ldflag_found=yes
20160                break
20161else $as_nop
20162  if $boost_use_source; then
20163         printf "%s\n" "$as_me: failed program was:" >&5
20164sed 's/^/| /' conftest.$ac_ext >&5
20165
20166       fi
20167       boost_rpath_link_ldflag_found=no
20168fi
20169ac_objext=$boost_save_ac_objext
20170ac_ext=$boost_save_ac_ext
20171rm -f core conftest.err conftest_ipa8_conftest.oo \
20172      conftest$ac_exeext
20173            done
20174            ;;
20175          esac
20176          if test "x$boost_rpath_link_ldflag_found" != "xyes"
20177then :
20178  as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
20179fi
20180          LDFLAGS=$boost_save_LDFLAGS
20181          LIBS=$boost_save_LIBS
20182
20183fi
20184
20185        test x"$boost_ldpath" != x &&
20186          boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
20187        boost_cv_lib_system_LDPATH="$boost_ldpath"
20188        break 7
20189      else
20190        boost_failed_libs="$boost_failed_libs@$boost_lib@"
20191      fi
20192    done
20193  done
20194done
20195done
20196done
20197done
20198done # boost_lib_
20199rm -f conftest.$ac_objext
20200
20201fi
20202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
20203printf "%s\n" "$boost_cv_lib_system" >&6; }
20204case $boost_cv_lib_system in #(
20205  (no) printf "%s\n" "$as_me: failed program was:" >&5
20206sed 's/^/| /' conftest.$ac_ext >&5
20207
20208    as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5
20209    ;;
20210esac
20211BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
20212BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
20213BOOST_LDPATH=$boost_cv_lib_system_LDPATH
20214BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
20215CPPFLAGS=$boost_save_CPPFLAGS
20216ac_ext=cpp
20217ac_cpp='$CXXCPP $CPPFLAGS'
20218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20221fi
20222
20223
20224
20225fi # end of the Boost.System check.
20226LIBS="$LIBS $BOOST_SYSTEM_LIBS $boost_cv_pthread_flag"
20227LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS"
20228CPPFLAGS="$CPPFLAGS $boost_cv_pthread_flag"
20229
20230# When compiling for the Windows platform, the threads library is named
20231# differently.  This suffix doesn't exist in new versions of Boost, or
20232# possibly new versions of GCC on mingw I am assuming it's Boost's change for
20233# now and I am setting version to 1.48, for lack of knowledge as to when this
20234# change occurred.
20235if test $boost_major_version -lt 148; then
20236  case $host_os in
20237    (*mingw*) boost_thread_lib_ext=_win32;;
20238  esac
20239fi
20240if test x"$boost_cv_inc_path" = xno; then
20241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost thread library" >&5
20242printf "%s\n" "$as_me: Boost not available, not searching for the Boost thread library" >&6;}
20243else
20244ac_ext=cpp
20245ac_cpp='$CXXCPP $CPPFLAGS'
20246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20249if test x"$boost_cv_inc_path" = xno; then
20250  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/thread.hpp" >&5
20251printf "%s\n" "$as_me: Boost not available, not searching for boost/thread.hpp" >&6;}
20252else
20253ac_ext=cpp
20254ac_cpp='$CXXCPP $CPPFLAGS'
20255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20258boost_save_CPPFLAGS=$CPPFLAGS
20259CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20260ac_fn_cxx_check_header_compile "$LINENO" "boost/thread.hpp" "ac_cv_header_boost_thread_hpp" "$ac_includes_default"
20261if test "x$ac_cv_header_boost_thread_hpp" = xyes
20262then :
20263
20264printf "%s\n" "#define HAVE_BOOST_THREAD_HPP 1" >>confdefs.h
20265
20266else $as_nop
20267  as_fn_error $? "cannot find boost/thread.hpp" "$LINENO" 5
20268fi
20269
20270CPPFLAGS=$boost_save_CPPFLAGS
20271ac_ext=cpp
20272ac_cpp='$CXXCPP $CPPFLAGS'
20273ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20274ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20275ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20276fi
20277
20278boost_save_CPPFLAGS=$CPPFLAGS
20279CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost thread library" >&5
20281printf %s "checking for the Boost thread library... " >&6; }
20282if test ${boost_cv_lib_thread+y}
20283then :
20284  printf %s "(cached) " >&6
20285else $as_nop
20286  boost_cv_lib_thread=no
20287  case "" in #(
20288    (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
20289    (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
20290    (*) boost_mt=; boost_rtopt=;;
20291  esac
20292  if test $enable_static_boost = yes; then
20293    boost_rtopt="s$boost_rtopt"
20294  fi
20295  # Find the proper debug variant depending on what we've been asked to find.
20296  case $boost_rtopt in #(
20297    (*d*) boost_rt_d=$boost_rtopt;; #(
20298    (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
20299      boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
20300    (*) boost_rt_d='-d';;
20301  esac
20302  # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
20303  test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
20304  $boost_guess_use_mt && boost_mt=-mt
20305  # Look for the abs path the static archive.
20306  # $libext is computed by Libtool but let's make sure it's non empty.
20307  test -z "$libext" &&
20308    as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
20309  boost_save_ac_objext=$ac_objext
20310  # Generate the test file.
20311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20312/* end confdefs.h.  */
20313#include <boost/thread.hpp>
20314
20315int
20316main (void)
20317{
20318boost::thread t; boost::mutex m;
20319  ;
20320  return 0;
20321}
20322_ACEOF
20323  if ac_fn_cxx_try_compile "$LINENO"
20324then :
20325  ac_objext=do_not_rm_me_plz
20326else $as_nop
20327  as_fn_error $? "cannot compile a test that uses Boost thread" "$LINENO" 5
20328fi
20329rm -f core conftest.err conftest.$ac_objext conftest.beam
20330  ac_objext=$boost_save_ac_objext
20331  boost_failed_libs=
20332# Don't bother to ident the following nested for loops, only the 2
20333# innermost ones matter.
20334for boost_lib_ in thread$boost_thread_lib_ext; do
20335for boost_tag_ in -$boost_cv_lib_tag ''; do
20336for boost_ver_ in -$boost_cv_lib_version ''; do
20337for boost_mt_ in $boost_mt -mt ''; do
20338for boost_rtopt_ in $boost_rtopt '' -d; do
20339  for boost_lib in \
20340    boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
20341    boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
20342    boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
20343    boost_$boost_lib_$boost_tag_$boost_ver_
20344  do
20345    # Avoid testing twice the same lib
20346    case $boost_failed_libs in #(
20347      (*@$boost_lib@*) continue;;
20348    esac
20349    # If with_boost is empty, we'll search in /lib first, which is not quite
20350    # right so instead we'll try to a location based on where the headers are.
20351    boost_tmp_lib=$with_boost
20352    test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
20353    for boost_ldpath in "$boost_tmp_lib/lib" '' \
20354             /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
20355             "$with_boost" C:/Boost/lib /lib*
20356    do
20357      # Don't waste time with directories that don't exist.
20358      if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
20359        continue
20360      fi
20361      boost_save_LDFLAGS=$LDFLAGS
20362      # Are we looking for a static library?
20363      case $boost_ldpath:$boost_rtopt_ in #(
20364        (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
20365          boost_cv_lib_thread_LIBS="$boost_ldpath/lib$boost_lib.$libext"
20366          test -e "$boost_cv_lib_thread_LIBS" || continue;; #(
20367        (*) # No: use -lboost_foo to find the shared library.
20368          boost_cv_lib_thread_LIBS="-l$boost_lib";;
20369      esac
20370      boost_save_LIBS=$LIBS
20371      LIBS="$boost_cv_lib_thread_LIBS $LIBS"
20372      test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
20373      rm -f conftest$ac_exeext
20374boost_save_ac_ext=$ac_ext
20375boost_use_source=:
20376# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
20377# tries to link the existing object file instead of compiling from source.
20378test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
20379  printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
20380if { { ac_try="$ac_link"
20381case "(($ac_try" in
20382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383  *) ac_try_echo=$ac_try;;
20384esac
20385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20386printf "%s\n" "$ac_try_echo"; } >&5
20387  (eval "$ac_link") 2>conftest.err
20388  ac_status=$?
20389  if test -s conftest.err; then
20390    grep -v '^ *+' conftest.err >conftest.er1
20391    cat conftest.er1 >&5
20392    mv -f conftest.er1 conftest.err
20393  fi
20394  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20395  test $ac_status = 0; } && {
20396         test -z "$ac_cxx_werror_flag" ||
20397         test ! -s conftest.err
20398       } && test -s conftest$ac_exeext && {
20399         test "$cross_compiling" = yes ||
20400         $as_executable_p conftest$ac_exeext
20401       }
20402then :
20403  boost_cv_lib_thread=yes
20404else $as_nop
20405  if $boost_use_source; then
20406         printf "%s\n" "$as_me: failed program was:" >&5
20407sed 's/^/| /' conftest.$ac_ext >&5
20408
20409       fi
20410       boost_cv_lib_thread=no
20411fi
20412ac_objext=$boost_save_ac_objext
20413ac_ext=$boost_save_ac_ext
20414rm -f core conftest.err conftest_ipa8_conftest.oo \
20415      conftest$ac_exeext
20416      ac_objext=$boost_save_ac_objext
20417      LDFLAGS=$boost_save_LDFLAGS
20418      LIBS=$boost_save_LIBS
20419      if test x"$boost_cv_lib_thread" = xyes; then
20420        # Check or used cached result of whether or not using -R or
20421        # -rpath makes sense.  Some implementations of ld, such as for
20422        # Mac OSX, require -rpath but -R is the flag known to work on
20423        # other systems.  https://github.com/tsuna/boost.m4/issues/19
20424        if test ${boost_cv_rpath_link_ldflag+y}
20425then :
20426  printf %s "(cached) " >&6
20427else $as_nop
20428  case $boost_ldpath in
20429           '') # Nothing to do.
20430             boost_cv_rpath_link_ldflag=
20431             boost_rpath_link_ldflag_found=yes;;
20432           *)
20433            for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
20434              LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
20435              LIBS="$boost_save_LIBS $boost_cv_lib_thread_LIBS"
20436              rm -f conftest$ac_exeext
20437boost_save_ac_ext=$ac_ext
20438boost_use_source=:
20439# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
20440# tries to link the existing object file instead of compiling from source.
20441test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
20442  printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
20443if { { ac_try="$ac_link"
20444case "(($ac_try" in
20445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20446  *) ac_try_echo=$ac_try;;
20447esac
20448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20449printf "%s\n" "$ac_try_echo"; } >&5
20450  (eval "$ac_link") 2>conftest.err
20451  ac_status=$?
20452  if test -s conftest.err; then
20453    grep -v '^ *+' conftest.err >conftest.er1
20454    cat conftest.er1 >&5
20455    mv -f conftest.er1 conftest.err
20456  fi
20457  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20458  test $ac_status = 0; } && {
20459         test -z "$ac_cxx_werror_flag" ||
20460         test ! -s conftest.err
20461       } && test -s conftest$ac_exeext && {
20462         test "$cross_compiling" = yes ||
20463         $as_executable_p conftest$ac_exeext
20464       }
20465then :
20466  boost_rpath_link_ldflag_found=yes
20467                break
20468else $as_nop
20469  if $boost_use_source; then
20470         printf "%s\n" "$as_me: failed program was:" >&5
20471sed 's/^/| /' conftest.$ac_ext >&5
20472
20473       fi
20474       boost_rpath_link_ldflag_found=no
20475fi
20476ac_objext=$boost_save_ac_objext
20477ac_ext=$boost_save_ac_ext
20478rm -f core conftest.err conftest_ipa8_conftest.oo \
20479      conftest$ac_exeext
20480            done
20481            ;;
20482          esac
20483          if test "x$boost_rpath_link_ldflag_found" != "xyes"
20484then :
20485  as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
20486fi
20487          LDFLAGS=$boost_save_LDFLAGS
20488          LIBS=$boost_save_LIBS
20489
20490fi
20491
20492        test x"$boost_ldpath" != x &&
20493          boost_cv_lib_thread_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
20494        boost_cv_lib_thread_LDPATH="$boost_ldpath"
20495        break 7
20496      else
20497        boost_failed_libs="$boost_failed_libs@$boost_lib@"
20498      fi
20499    done
20500  done
20501done
20502done
20503done
20504done
20505done # boost_lib_
20506rm -f conftest.$ac_objext
20507
20508fi
20509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_thread" >&5
20510printf "%s\n" "$boost_cv_lib_thread" >&6; }
20511case $boost_cv_lib_thread in #(
20512  (no) printf "%s\n" "$as_me: failed program was:" >&5
20513sed 's/^/| /' conftest.$ac_ext >&5
20514
20515    as_fn_error $? "cannot find the flags to link with Boost thread" "$LINENO" 5
20516    ;;
20517esac
20518BOOST_THREAD_LDFLAGS=$boost_cv_lib_thread_LDFLAGS
20519BOOST_THREAD_LDPATH=$boost_cv_lib_thread_LDPATH
20520BOOST_LDPATH=$boost_cv_lib_thread_LDPATH
20521BOOST_THREAD_LIBS=$boost_cv_lib_thread_LIBS
20522CPPFLAGS=$boost_save_CPPFLAGS
20523ac_ext=cpp
20524ac_cpp='$CXXCPP $CPPFLAGS'
20525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20528fi
20529
20530
20531case $host_os in
20532  (*mingw*) boost_thread_w32_socket_link=-lws2_32;;
20533esac
20534
20535BOOST_THREAD_LIBS="$BOOST_THREAD_LIBS $BOOST_SYSTEM_LIBS $boost_cv_pthread_flag $boost_thread_w32_socket_link"
20536BOOST_THREAD_LDFLAGS="$BOOST_SYSTEM_LDFLAGS"
20537BOOST_CPPFLAGS="$BOOST_CPPFLAGS $boost_cv_pthread_flag"
20538LIBS=$boost_thread_save_LIBS
20539LDFLAGS=$boost_thread_save_LDFLAGS
20540CPPFLAGS=$boost_thread_save_CPPFLAGS
20541
20542
20543
20544
20545LDFLAGS+="$LDFLAGS $BOOST_THREAD_LDFLAGS"
20546LIBS="$LIBS $BOOST_THREAD_LIBS"
20547
20548# icu
20549
20550
20551
20552
20553
20554
20555
20556
20557if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20558	if test -n "$ac_tool_prefix"; then
20559  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20560set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20562printf %s "checking for $ac_word... " >&6; }
20563if test ${ac_cv_path_PKG_CONFIG+y}
20564then :
20565  printf %s "(cached) " >&6
20566else $as_nop
20567  case $PKG_CONFIG in
20568  [\\/]* | ?:[\\/]*)
20569  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20570  ;;
20571  *)
20572  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20573for as_dir in $PATH
20574do
20575  IFS=$as_save_IFS
20576  case $as_dir in #(((
20577    '') as_dir=./ ;;
20578    */) ;;
20579    *) as_dir=$as_dir/ ;;
20580  esac
20581    for ac_exec_ext in '' $ac_executable_extensions; do
20582  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20583    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20584    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20585    break 2
20586  fi
20587done
20588  done
20589IFS=$as_save_IFS
20590
20591  ;;
20592esac
20593fi
20594PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20595if test -n "$PKG_CONFIG"; then
20596  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20597printf "%s\n" "$PKG_CONFIG" >&6; }
20598else
20599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20600printf "%s\n" "no" >&6; }
20601fi
20602
20603
20604fi
20605if test -z "$ac_cv_path_PKG_CONFIG"; then
20606  ac_pt_PKG_CONFIG=$PKG_CONFIG
20607  # Extract the first word of "pkg-config", so it can be a program name with args.
20608set dummy pkg-config; ac_word=$2
20609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20610printf %s "checking for $ac_word... " >&6; }
20611if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
20612then :
20613  printf %s "(cached) " >&6
20614else $as_nop
20615  case $ac_pt_PKG_CONFIG in
20616  [\\/]* | ?:[\\/]*)
20617  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20618  ;;
20619  *)
20620  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20621for as_dir in $PATH
20622do
20623  IFS=$as_save_IFS
20624  case $as_dir in #(((
20625    '') as_dir=./ ;;
20626    */) ;;
20627    *) as_dir=$as_dir/ ;;
20628  esac
20629    for ac_exec_ext in '' $ac_executable_extensions; do
20630  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20631    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20632    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20633    break 2
20634  fi
20635done
20636  done
20637IFS=$as_save_IFS
20638
20639  ;;
20640esac
20641fi
20642ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20643if test -n "$ac_pt_PKG_CONFIG"; then
20644  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20645printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
20646else
20647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20648printf "%s\n" "no" >&6; }
20649fi
20650
20651  if test "x$ac_pt_PKG_CONFIG" = x; then
20652    PKG_CONFIG=""
20653  else
20654    case $cross_compiling:$ac_tool_warned in
20655yes:)
20656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20657printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20658ac_tool_warned=yes ;;
20659esac
20660    PKG_CONFIG=$ac_pt_PKG_CONFIG
20661  fi
20662else
20663  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20664fi
20665
20666fi
20667if test -n "$PKG_CONFIG"; then
20668	_pkg_min_version=0.9.0
20669	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20670printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20671	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20672		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20673printf "%s\n" "yes" >&6; }
20674	else
20675		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20676printf "%s\n" "no" >&6; }
20677		PKG_CONFIG=""
20678	fi
20679fi
20680
20681pkg_failed=no
20682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
20683printf %s "checking for ICU... " >&6; }
20684
20685if test -n "$ICU_CFLAGS"; then
20686    pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
20687 elif test -n "$PKG_CONFIG"; then
20688    if test -n "$PKG_CONFIG" && \
20689    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n icu-uc\""; } >&5
20690  ($PKG_CONFIG --exists --print-errors "icu-i18n icu-uc") 2>&5
20691  ac_status=$?
20692  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20693  test $ac_status = 0; }; then
20694  pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-i18n icu-uc" 2>/dev/null`
20695		      test "x$?" != "x0" && pkg_failed=yes
20696else
20697  pkg_failed=yes
20698fi
20699 else
20700    pkg_failed=untried
20701fi
20702if test -n "$ICU_LIBS"; then
20703    pkg_cv_ICU_LIBS="$ICU_LIBS"
20704 elif test -n "$PKG_CONFIG"; then
20705    if test -n "$PKG_CONFIG" && \
20706    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n icu-uc\""; } >&5
20707  ($PKG_CONFIG --exists --print-errors "icu-i18n icu-uc") 2>&5
20708  ac_status=$?
20709  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20710  test $ac_status = 0; }; then
20711  pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-i18n icu-uc" 2>/dev/null`
20712		      test "x$?" != "x0" && pkg_failed=yes
20713else
20714  pkg_failed=yes
20715fi
20716 else
20717    pkg_failed=untried
20718fi
20719
20720
20721
20722if test $pkg_failed = yes; then
20723   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20724printf "%s\n" "no" >&6; }
20725
20726if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20727        _pkg_short_errors_supported=yes
20728else
20729        _pkg_short_errors_supported=no
20730fi
20731        if test $_pkg_short_errors_supported = yes; then
20732	        ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-i18n icu-uc" 2>&1`
20733        else
20734	        ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-i18n icu-uc" 2>&1`
20735        fi
20736	# Put the nasty error message in config.log where it belongs
20737	echo "$ICU_PKG_ERRORS" >&5
20738
20739
20740elif test $pkg_failed = untried; then
20741     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20742printf "%s\n" "no" >&6; }
20743
20744else
20745	ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
20746	ICU_LIBS=$pkg_cv_ICU_LIBS
20747        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20748printf "%s\n" "yes" >&6; }
20749
20750	old_CPPFLAGS="$CPPFLAGS"
20751	old_LIBS="$LIBS"
20752
20753
20754	CPPFLAGS="$CPPFLAGS $ICU_CFLAGS -DU_USING_ICU_NAMESPACE=0"
20755	LIBS="$LIBS $ICU_LIBS"
20756	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether boost.regex was compiled with ICU support" >&5
20757printf %s "checking whether boost.regex was compiled with ICU support... " >&6; }
20758	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20759/* end confdefs.h.  */
20760
20761    #include <boost/regex/icu.hpp>
20762
20763int
20764main (void)
20765{
20766boost::u32regex rx = boost::make_u32regex("foo"); if (boost::u32regex_search("foobar", rx)) { }
20767  ;
20768  return 0;
20769}
20770_ACEOF
20771if ac_fn_cxx_try_link "$LINENO"
20772then :
20773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20774printf "%s\n" "yes" >&6; }
20775		printf "%s\n" "#define BOOST_REGEX_ICU 1" >>confdefs.h
20776
20777else $as_nop
20778  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20779printf "%s\n" "no" >&6; }
20780		CPPFLAGS="$old_CPPFLAGS"
20781		LIBS="$old_LIBS"
20782fi
20783rm -f core conftest.err conftest.$ac_objext conftest.beam \
20784    conftest$ac_exeext conftest.$ac_ext
20785
20786fi
20787
20788# various headers
20789       for ac_header in netinet/tcp.h netinet/in.h
20790do :
20791  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
20792ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20793if eval test \"x\$"$as_ac_Header"\" = x"yes"
20794then :
20795  cat >>confdefs.h <<_ACEOF
20796#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
20797_ACEOF
20798
20799else $as_nop
20800  as_fn_error $? "vital headers missing" "$LINENO" 5
20801fi
20802
20803done
20804       for ac_header in langinfo.h
20805do :
20806  ac_fn_cxx_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
20807if test "x$ac_cv_header_langinfo_h" = xyes
20808then :
20809  printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
20810
20811else $as_nop
20812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: locale detection disabled" >&5
20813printf "%s\n" "$as_me: WARNING: locale detection disabled" >&2;}
20814fi
20815
20816done
20817
20818# libmpdclient2
20819
20820pkg_failed=no
20821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmpdclient" >&5
20822printf %s "checking for libmpdclient... " >&6; }
20823
20824if test -n "$libmpdclient_CFLAGS"; then
20825    pkg_cv_libmpdclient_CFLAGS="$libmpdclient_CFLAGS"
20826 elif test -n "$PKG_CONFIG"; then
20827    if test -n "$PKG_CONFIG" && \
20828    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdclient >= 2.8\""; } >&5
20829  ($PKG_CONFIG --exists --print-errors "libmpdclient >= 2.8") 2>&5
20830  ac_status=$?
20831  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20832  test $ac_status = 0; }; then
20833  pkg_cv_libmpdclient_CFLAGS=`$PKG_CONFIG --cflags "libmpdclient >= 2.8" 2>/dev/null`
20834		      test "x$?" != "x0" && pkg_failed=yes
20835else
20836  pkg_failed=yes
20837fi
20838 else
20839    pkg_failed=untried
20840fi
20841if test -n "$libmpdclient_LIBS"; then
20842    pkg_cv_libmpdclient_LIBS="$libmpdclient_LIBS"
20843 elif test -n "$PKG_CONFIG"; then
20844    if test -n "$PKG_CONFIG" && \
20845    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdclient >= 2.8\""; } >&5
20846  ($PKG_CONFIG --exists --print-errors "libmpdclient >= 2.8") 2>&5
20847  ac_status=$?
20848  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20849  test $ac_status = 0; }; then
20850  pkg_cv_libmpdclient_LIBS=`$PKG_CONFIG --libs "libmpdclient >= 2.8" 2>/dev/null`
20851		      test "x$?" != "x0" && pkg_failed=yes
20852else
20853  pkg_failed=yes
20854fi
20855 else
20856    pkg_failed=untried
20857fi
20858
20859
20860
20861if test $pkg_failed = yes; then
20862   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20863printf "%s\n" "no" >&6; }
20864
20865if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20866        _pkg_short_errors_supported=yes
20867else
20868        _pkg_short_errors_supported=no
20869fi
20870        if test $_pkg_short_errors_supported = yes; then
20871	        libmpdclient_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmpdclient >= 2.8" 2>&1`
20872        else
20873	        libmpdclient_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmpdclient >= 2.8" 2>&1`
20874        fi
20875	# Put the nasty error message in config.log where it belongs
20876	echo "$libmpdclient_PKG_ERRORS" >&5
20877
20878	as_fn_error $? "libmpdclient >= 2.8 is required!" "$LINENO" 5
20879
20880elif test $pkg_failed = untried; then
20881     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20882printf "%s\n" "no" >&6; }
20883	as_fn_error $? "libmpdclient >= 2.8 is required!" "$LINENO" 5
20884
20885else
20886	libmpdclient_CFLAGS=$pkg_cv_libmpdclient_CFLAGS
20887	libmpdclient_LIBS=$pkg_cv_libmpdclient_LIBS
20888        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20889printf "%s\n" "yes" >&6; }
20890
20891
20892
20893	CPPFLAGS="$CPPFLAGS $libmpdclient_CFLAGS"
20894	       for ac_header in mpd/client.h
20895do :
20896  ac_fn_cxx_check_header_compile "$LINENO" "mpd/client.h" "ac_cv_header_mpd_client_h" "$ac_includes_default"
20897if test "x$ac_cv_header_mpd_client_h" = xyes
20898then :
20899  printf "%s\n" "#define HAVE_MPD_CLIENT_H 1" >>confdefs.h
20900 LIBS="$LIBS $libmpdclient_LIBS"
20901
20902else $as_nop
20903  as_fn_error $? "missing mpd/client.h header" "$LINENO" 5
20904
20905fi
20906
20907done
20908
20909fi
20910
20911# readline
20912
20913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
20914printf %s "checking for a readline compatible library... " >&6; }
20915if test ${ax_cv_lib_readline+y}
20916then :
20917  printf %s "(cached) " >&6
20918else $as_nop
20919
20920    ORIG_LIBS="$LIBS"
20921    for readline_lib in readline edit editline; do
20922      for termcap_lib in "" termcap curses ncurses; do
20923        if test -z "$termcap_lib"; then
20924          TRY_LIB="-l$readline_lib"
20925        else
20926          TRY_LIB="-l$readline_lib -l$termcap_lib"
20927        fi
20928        LIBS="$ORIG_LIBS $TRY_LIB"
20929        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20930/* end confdefs.h.  */
20931
20932namespace conftest {
20933  extern "C" int readline ();
20934}
20935int
20936main (void)
20937{
20938return conftest::readline ();
20939  ;
20940  return 0;
20941}
20942_ACEOF
20943if ac_fn_cxx_try_link "$LINENO"
20944then :
20945  ax_cv_lib_readline="$TRY_LIB"
20946fi
20947rm -f core conftest.err conftest.$ac_objext conftest.beam \
20948    conftest$ac_exeext conftest.$ac_ext
20949        if test -n "$ax_cv_lib_readline"; then
20950          break
20951        fi
20952      done
20953      if test -n "$ax_cv_lib_readline"; then
20954        break
20955      fi
20956    done
20957    if test -z "$ax_cv_lib_readline"; then
20958      ax_cv_lib_readline="no"
20959    fi
20960    LIBS="$ORIG_LIBS"
20961
20962fi
20963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
20964printf "%s\n" "$ax_cv_lib_readline" >&6; }
20965
20966  if test "$ax_cv_lib_readline" != "no"; then
20967    LIBS="$LIBS $ax_cv_lib_readline"
20968
20969printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h
20970
20971    ac_fn_cxx_check_header_compile "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
20972if test "x$ac_cv_header_readline_h" = xyes
20973then :
20974  printf "%s\n" "#define HAVE_READLINE_H 1" >>confdefs.h
20975
20976fi
20977ac_fn_cxx_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
20978if test "x$ac_cv_header_readline_readline_h" = xyes
20979then :
20980  printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
20981
20982fi
20983
20984    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20985printf %s "checking whether readline supports history... " >&6; }
20986if test ${ax_cv_lib_readline_history+y}
20987then :
20988  printf %s "(cached) " >&6
20989else $as_nop
20990
20991      ax_cv_lib_readline_history="no"
20992      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20993/* end confdefs.h.  */
20994
20995namespace conftest {
20996  extern "C" int add_history ();
20997}
20998int
20999main (void)
21000{
21001return conftest::add_history ();
21002  ;
21003  return 0;
21004}
21005_ACEOF
21006if ac_fn_cxx_try_link "$LINENO"
21007then :
21008  ax_cv_lib_readline_history="yes"
21009fi
21010rm -f core conftest.err conftest.$ac_objext conftest.beam \
21011    conftest$ac_exeext conftest.$ac_ext
21012
21013fi
21014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
21015printf "%s\n" "$ax_cv_lib_readline_history" >&6; }
21016    if test "$ax_cv_lib_readline_history" = "yes"; then
21017
21018printf "%s\n" "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
21019
21020      ac_fn_cxx_check_header_compile "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
21021if test "x$ac_cv_header_history_h" = xyes
21022then :
21023  printf "%s\n" "#define HAVE_HISTORY_H 1" >>confdefs.h
21024
21025fi
21026ac_fn_cxx_check_header_compile "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
21027if test "x$ac_cv_header_readline_history_h" = xyes
21028then :
21029  printf "%s\n" "#define HAVE_READLINE_HISTORY_H 1" >>confdefs.h
21030
21031fi
21032
21033    fi
21034  fi
21035
21036if test "$ax_cv_lib_readline" = "no"; then
21037  as_fn_error $? "no readline compatible library found" "$LINENO" 5
21038fi
21039if test "$ax_cv_lib_readline_history" = "no"; then
21040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: readline library has no history functionality" >&5
21041printf "%s\n" "$as_me: WARNING: readline library has no history functionality" >&2;}
21042fi
21043
21044# pthread
21045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
21046printf %s "checking for pthread_create in -lpthread... " >&6; }
21047if test ${ac_cv_lib_pthread_pthread_create+y}
21048then :
21049  printf %s "(cached) " >&6
21050else $as_nop
21051  ac_check_lib_save_LIBS=$LIBS
21052LIBS="-lpthread  $LIBS"
21053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21054/* end confdefs.h.  */
21055
21056namespace conftest {
21057  extern "C" int pthread_create ();
21058}
21059int
21060main (void)
21061{
21062return conftest::pthread_create ();
21063  ;
21064  return 0;
21065}
21066_ACEOF
21067if ac_fn_cxx_try_link "$LINENO"
21068then :
21069  ac_cv_lib_pthread_pthread_create=yes
21070else $as_nop
21071  ac_cv_lib_pthread_pthread_create=no
21072fi
21073rm -f core conftest.err conftest.$ac_objext conftest.beam \
21074    conftest$ac_exeext conftest.$ac_ext
21075LIBS=$ac_check_lib_save_LIBS
21076fi
21077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
21078printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
21079if test "x$ac_cv_lib_pthread_pthread_create" = xyes
21080then :
21081  LIBS="$LIBS -lpthread"
21082else $as_nop
21083  as_fn_error $? "pthread library is required" "$LINENO" 5
21084
21085fi
21086
21087
21088# ncursesw
21089
21090pkg_failed=no
21091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncursesw" >&5
21092printf %s "checking for ncursesw... " >&6; }
21093
21094if test -n "$ncursesw_CFLAGS"; then
21095    pkg_cv_ncursesw_CFLAGS="$ncursesw_CFLAGS"
21096 elif test -n "$PKG_CONFIG"; then
21097    if test -n "$PKG_CONFIG" && \
21098    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
21099  ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
21100  ac_status=$?
21101  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21102  test $ac_status = 0; }; then
21103  pkg_cv_ncursesw_CFLAGS=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null`
21104		      test "x$?" != "x0" && pkg_failed=yes
21105else
21106  pkg_failed=yes
21107fi
21108 else
21109    pkg_failed=untried
21110fi
21111if test -n "$ncursesw_LIBS"; then
21112    pkg_cv_ncursesw_LIBS="$ncursesw_LIBS"
21113 elif test -n "$PKG_CONFIG"; then
21114    if test -n "$PKG_CONFIG" && \
21115    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
21116  ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
21117  ac_status=$?
21118  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21119  test $ac_status = 0; }; then
21120  pkg_cv_ncursesw_LIBS=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null`
21121		      test "x$?" != "x0" && pkg_failed=yes
21122else
21123  pkg_failed=yes
21124fi
21125 else
21126    pkg_failed=untried
21127fi
21128
21129
21130
21131if test $pkg_failed = yes; then
21132   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21133printf "%s\n" "no" >&6; }
21134
21135if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21136        _pkg_short_errors_supported=yes
21137else
21138        _pkg_short_errors_supported=no
21139fi
21140        if test $_pkg_short_errors_supported = yes; then
21141	        ncursesw_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncursesw" 2>&1`
21142        else
21143	        ncursesw_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncursesw" 2>&1`
21144        fi
21145	# Put the nasty error message in config.log where it belongs
21146	echo "$ncursesw_PKG_ERRORS" >&5
21147
21148	as_fn_error $? "ncursesw is required!" "$LINENO" 5
21149
21150elif test $pkg_failed = untried; then
21151     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21152printf "%s\n" "no" >&6; }
21153	as_fn_error $? "ncursesw is required!" "$LINENO" 5
21154
21155else
21156	ncursesw_CFLAGS=$pkg_cv_ncursesw_CFLAGS
21157	ncursesw_LIBS=$pkg_cv_ncursesw_LIBS
21158        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21159printf "%s\n" "yes" >&6; }
21160
21161
21162
21163	CPPFLAGS="$CPPFLAGS $ncursesw_CFLAGS"
21164	       for ac_header in curses.h
21165do :
21166  ac_fn_cxx_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21167if test "x$ac_cv_header_curses_h" = xyes
21168then :
21169  printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h
21170 LIBS="$LIBS $ncursesw_LIBS"
21171
21172else $as_nop
21173  as_fn_error $? "missing curses.h header" "$LINENO" 5
21174
21175fi
21176
21177done
21178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
21179printf %s "checking for initscr in -lncursesw... " >&6; }
21180if test ${ac_cv_lib_ncursesw_initscr+y}
21181then :
21182  printf %s "(cached) " >&6
21183else $as_nop
21184  ac_check_lib_save_LIBS=$LIBS
21185LIBS="-lncursesw  $LIBS"
21186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21187/* end confdefs.h.  */
21188
21189namespace conftest {
21190  extern "C" int initscr ();
21191}
21192int
21193main (void)
21194{
21195return conftest::initscr ();
21196  ;
21197  return 0;
21198}
21199_ACEOF
21200if ac_fn_cxx_try_link "$LINENO"
21201then :
21202  ac_cv_lib_ncursesw_initscr=yes
21203else $as_nop
21204  ac_cv_lib_ncursesw_initscr=no
21205fi
21206rm -f core conftest.err conftest.$ac_objext conftest.beam \
21207    conftest$ac_exeext conftest.$ac_ext
21208LIBS=$ac_check_lib_save_LIBS
21209fi
21210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
21211printf "%s\n" "$ac_cv_lib_ncursesw_initscr" >&6; }
21212if test "x$ac_cv_lib_ncursesw_initscr" = xyes
21213then :
21214  printf "%s\n" "#define HAVE_LIBNCURSESW 1" >>confdefs.h
21215
21216  LIBS="-lncursesw $LIBS"
21217
21218else $as_nop
21219  as_fn_error $? "ncursesw doesn't provide initscr" "$LINENO" 5
21220fi
21221
21222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether curses.h exposes wide-char functions by default" >&5
21223printf %s "checking whether curses.h exposes wide-char functions by default... " >&6; }
21224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21225/* end confdefs.h.  */
21226
21227    #include <curses.h>
21228
21229int
21230main (void)
21231{
21232waddnwstr(stdscr, L"123", 3)
21233  ;
21234  return 0;
21235}
21236_ACEOF
21237if ac_fn_cxx_try_link "$LINENO"
21238then :
21239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21240printf "%s\n" "yes" >&6; }
21241else $as_nop
21242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21243printf "%s\n" "no" >&6; }
21244		CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
21245fi
21246rm -f core conftest.err conftest.$ac_objext conftest.beam \
21247    conftest$ac_exeext conftest.$ac_ext
21248
21249fi
21250
21251# fftw3
21252if test "$visualizer" = "yes" ; then
21253	if test "$fftw" != "no" ; then
21254
21255pkg_failed=no
21256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fftw3" >&5
21257printf %s "checking for fftw3... " >&6; }
21258
21259if test -n "$fftw3_CFLAGS"; then
21260    pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
21261 elif test -n "$PKG_CONFIG"; then
21262    if test -n "$PKG_CONFIG" && \
21263    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3\""; } >&5
21264  ($PKG_CONFIG --exists --print-errors "fftw3 >= 3") 2>&5
21265  ac_status=$?
21266  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21267  test $ac_status = 0; }; then
21268  pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3" 2>/dev/null`
21269		      test "x$?" != "x0" && pkg_failed=yes
21270else
21271  pkg_failed=yes
21272fi
21273 else
21274    pkg_failed=untried
21275fi
21276if test -n "$fftw3_LIBS"; then
21277    pkg_cv_fftw3_LIBS="$fftw3_LIBS"
21278 elif test -n "$PKG_CONFIG"; then
21279    if test -n "$PKG_CONFIG" && \
21280    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3\""; } >&5
21281  ($PKG_CONFIG --exists --print-errors "fftw3 >= 3") 2>&5
21282  ac_status=$?
21283  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21284  test $ac_status = 0; }; then
21285  pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3" 2>/dev/null`
21286		      test "x$?" != "x0" && pkg_failed=yes
21287else
21288  pkg_failed=yes
21289fi
21290 else
21291    pkg_failed=untried
21292fi
21293
21294
21295
21296if test $pkg_failed = yes; then
21297   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21298printf "%s\n" "no" >&6; }
21299
21300if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21301        _pkg_short_errors_supported=yes
21302else
21303        _pkg_short_errors_supported=no
21304fi
21305        if test $_pkg_short_errors_supported = yes; then
21306	        fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3" 2>&1`
21307        else
21308	        fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3" 2>&1`
21309        fi
21310	# Put the nasty error message in config.log where it belongs
21311	echo "$fftw3_PKG_ERRORS" >&5
21312
21313	if test "$fftw" = "yes" ; then
21314				as_fn_error $? "fftw3 library is required!" "$LINENO" 5
21315			fi
21316
21317elif test $pkg_failed = untried; then
21318     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21319printf "%s\n" "no" >&6; }
21320	if test "$fftw" = "yes" ; then
21321				as_fn_error $? "fftw3 library is required!" "$LINENO" 5
21322			fi
21323
21324else
21325	fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
21326	fftw3_LIBS=$pkg_cv_fftw3_LIBS
21327        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21328printf "%s\n" "yes" >&6; }
21329
21330
21331
21332			CPPFLAGS="$CPPFLAGS $fftw3_CFLAGS"
21333			       for ac_header in fftw3.h
21334do :
21335  ac_fn_cxx_check_header_compile "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
21336if test "x$ac_cv_header_fftw3_h" = xyes
21337then :
21338  printf "%s\n" "#define HAVE_FFTW3_H 1" >>confdefs.h
21339 LIBS="$LIBS $fftw3_LIBS"
21340
21341else $as_nop
21342  if test "$fftw" = "yes" ; then
21343					as_fn_error $? "missing fftw3.h header" "$LINENO" 5
21344				fi
21345
21346fi
21347
21348done
21349
21350fi
21351	fi
21352
21353printf "%s\n" "#define ENABLE_VISUALIZER 1" >>confdefs.h
21354
21355fi
21356
21357# libcurl
21358
21359pkg_failed=no
21360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
21361printf %s "checking for libcurl... " >&6; }
21362
21363if test -n "$libcurl_CFLAGS"; then
21364    pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
21365 elif test -n "$PKG_CONFIG"; then
21366    if test -n "$PKG_CONFIG" && \
21367    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
21368  ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
21369  ac_status=$?
21370  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21371  test $ac_status = 0; }; then
21372  pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
21373		      test "x$?" != "x0" && pkg_failed=yes
21374else
21375  pkg_failed=yes
21376fi
21377 else
21378    pkg_failed=untried
21379fi
21380if test -n "$libcurl_LIBS"; then
21381    pkg_cv_libcurl_LIBS="$libcurl_LIBS"
21382 elif test -n "$PKG_CONFIG"; then
21383    if test -n "$PKG_CONFIG" && \
21384    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
21385  ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
21386  ac_status=$?
21387  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21388  test $ac_status = 0; }; then
21389  pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
21390		      test "x$?" != "x0" && pkg_failed=yes
21391else
21392  pkg_failed=yes
21393fi
21394 else
21395    pkg_failed=untried
21396fi
21397
21398
21399
21400if test $pkg_failed = yes; then
21401   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21402printf "%s\n" "no" >&6; }
21403
21404if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21405        _pkg_short_errors_supported=yes
21406else
21407        _pkg_short_errors_supported=no
21408fi
21409        if test $_pkg_short_errors_supported = yes; then
21410	        libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
21411        else
21412	        libcurl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
21413        fi
21414	# Put the nasty error message in config.log where it belongs
21415	echo "$libcurl_PKG_ERRORS" >&5
21416
21417	as_fn_error $? "libcurl is required!" "$LINENO" 5
21418
21419elif test $pkg_failed = untried; then
21420     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21421printf "%s\n" "no" >&6; }
21422	as_fn_error $? "libcurl is required!" "$LINENO" 5
21423
21424else
21425	libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS
21426	libcurl_LIBS=$pkg_cv_libcurl_LIBS
21427        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21428printf "%s\n" "yes" >&6; }
21429
21430
21431
21432	CPPFLAGS="$CPPFLAGS $libcurl_CFLAGS"
21433	       for ac_header in curl/curl.h
21434do :
21435  ac_fn_cxx_check_header_compile "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
21436if test "x$ac_cv_header_curl_curl_h" = xyes
21437then :
21438  printf "%s\n" "#define HAVE_CURL_CURL_H 1" >>confdefs.h
21439 LIBS="$LIBS $libcurl_LIBS"
21440
21441else $as_nop
21442  as_fn_error $? "missing curl/curl.h header" "$LINENO" 5
21443
21444fi
21445
21446done
21447
21448fi
21449
21450# taglib
21451if test "$taglib" != "no" ; then
21452	# Extract the first word of "taglib-config", so it can be a program name with args.
21453set dummy taglib-config; ac_word=$2
21454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21455printf %s "checking for $ac_word... " >&6; }
21456if test ${ac_cv_path_TAGLIB_CONFIG+y}
21457then :
21458  printf %s "(cached) " >&6
21459else $as_nop
21460  case $TAGLIB_CONFIG in
21461  [\\/]* | ?:[\\/]*)
21462  ac_cv_path_TAGLIB_CONFIG="$TAGLIB_CONFIG" # Let the user override the test with a path.
21463  ;;
21464  *)
21465  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21466for as_dir in $PATH
21467do
21468  IFS=$as_save_IFS
21469  case $as_dir in #(((
21470    '') as_dir=./ ;;
21471    */) ;;
21472    *) as_dir=$as_dir/ ;;
21473  esac
21474    for ac_exec_ext in '' $ac_executable_extensions; do
21475  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21476    ac_cv_path_TAGLIB_CONFIG="$as_dir$ac_word$ac_exec_ext"
21477    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21478    break 2
21479  fi
21480done
21481  done
21482IFS=$as_save_IFS
21483
21484  ;;
21485esac
21486fi
21487TAGLIB_CONFIG=$ac_cv_path_TAGLIB_CONFIG
21488if test -n "$TAGLIB_CONFIG"; then
21489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TAGLIB_CONFIG" >&5
21490printf "%s\n" "$TAGLIB_CONFIG" >&6; }
21491else
21492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21493printf "%s\n" "no" >&6; }
21494fi
21495
21496
21497	if test "$TAGLIB_CONFIG" != "" ; then
21498		CPPFLAGS="$CPPFLAGS `$TAGLIB_CONFIG --cflags`"
21499		LIBS="$LIBS `$TAGLIB_CONFIG --libs`"
21500		       for ac_header in taglib.h
21501do :
21502  ac_fn_cxx_check_header_compile "$LINENO" "taglib.h" "ac_cv_header_taglib_h" "$ac_includes_default"
21503if test "x$ac_cv_header_taglib_h" = xyes
21504then :
21505  printf "%s\n" "#define HAVE_TAGLIB_H 1" >>confdefs.h
21506
21507else $as_nop
21508  if test "$taglib" = "yes" ; then
21509				as_fn_error $? "missing taglib.h header" "$LINENO" 5
21510			fi
21511
21512fi
21513
21514done
21515	else
21516		if test "$taglib" = "yes" ; then
21517			as_fn_error $? "taglib-config executable is missing" "$LINENO" 5
21518		fi
21519	fi
21520fi
21521
21522ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile"
21523
21524cat >confcache <<\_ACEOF
21525# This file is a shell script that caches the results of configure
21526# tests run on this system so they can be shared between configure
21527# scripts and configure runs, see configure's option --config-cache.
21528# It is not useful on other systems.  If it contains results you don't
21529# want to keep, you may remove or edit it.
21530#
21531# config.status only pays attention to the cache file if you give it
21532# the --recheck option to rerun configure.
21533#
21534# `ac_cv_env_foo' variables (set or unset) will be overridden when
21535# loading this file, other *unset* `ac_cv_foo' will be assigned the
21536# following values.
21537
21538_ACEOF
21539
21540# The following way of writing the cache mishandles newlines in values,
21541# but we know of no workaround that is simple, portable, and efficient.
21542# So, we kill variables containing newlines.
21543# Ultrix sh set writes to stderr and can't be redirected directly,
21544# and sets the high bit in the cache file unless we assign to the vars.
21545(
21546  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21547    eval ac_val=\$$ac_var
21548    case $ac_val in #(
21549    *${as_nl}*)
21550      case $ac_var in #(
21551      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21552printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21553      esac
21554      case $ac_var in #(
21555      _ | IFS | as_nl) ;; #(
21556      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21557      *) { eval $ac_var=; unset $ac_var;} ;;
21558      esac ;;
21559    esac
21560  done
21561
21562  (set) 2>&1 |
21563    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21564    *${as_nl}ac_space=\ *)
21565      # `set' does not quote correctly, so add quotes: double-quote
21566      # substitution turns \\\\ into \\, and sed turns \\ into \.
21567      sed -n \
21568	"s/'/'\\\\''/g;
21569	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21570      ;; #(
21571    *)
21572      # `set' quotes correctly as required by POSIX, so do not add quotes.
21573      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21574      ;;
21575    esac |
21576    sort
21577) |
21578  sed '
21579     /^ac_cv_env_/b end
21580     t clear
21581     :clear
21582     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21583     t end
21584     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21585     :end' >>confcache
21586if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21587  if test -w "$cache_file"; then
21588    if test "x$cache_file" != "x/dev/null"; then
21589      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21590printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21591      if test ! -f "$cache_file" || test -h "$cache_file"; then
21592	cat confcache >"$cache_file"
21593      else
21594        case $cache_file in #(
21595        */* | ?:*)
21596	  mv -f confcache "$cache_file"$$ &&
21597	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21598        *)
21599	  mv -f confcache "$cache_file" ;;
21600	esac
21601      fi
21602    fi
21603  else
21604    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21605printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21606  fi
21607fi
21608rm -f confcache
21609
21610test "x$prefix" = xNONE && prefix=$ac_default_prefix
21611# Let make expand exec_prefix.
21612test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21613
21614DEFS=-DHAVE_CONFIG_H
21615
21616ac_libobjs=
21617ac_ltlibobjs=
21618U=
21619for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21620  # 1. Remove the extension, and $U if already installed.
21621  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21622  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21623  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21624  #    will be set to the directory where LIBOBJS objects are built.
21625  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21626  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21627done
21628LIBOBJS=$ac_libobjs
21629
21630LTLIBOBJS=$ac_ltlibobjs
21631
21632
21633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21634printf %s "checking that generated files are newer than configure... " >&6; }
21635   if test -n "$am_sleep_pid"; then
21636     # Hide warnings about reused PIDs.
21637     wait $am_sleep_pid 2>/dev/null
21638   fi
21639   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21640printf "%s\n" "done" >&6; }
21641 if test -n "$EXEEXT"; then
21642  am__EXEEXT_TRUE=
21643  am__EXEEXT_FALSE='#'
21644else
21645  am__EXEEXT_TRUE='#'
21646  am__EXEEXT_FALSE=
21647fi
21648
21649if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21650  as_fn_error $? "conditional \"AMDEP\" was never defined.
21651Usually this means the macro was only invoked conditionally." "$LINENO" 5
21652fi
21653if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21654  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21655Usually this means the macro was only invoked conditionally." "$LINENO" 5
21656fi
21657if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21658  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21659Usually this means the macro was only invoked conditionally." "$LINENO" 5
21660fi
21661
21662: "${CONFIG_STATUS=./config.status}"
21663ac_write_fail=0
21664ac_clean_files_save=$ac_clean_files
21665ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21667printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21668as_write_fail=0
21669cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21670#! $SHELL
21671# Generated by $as_me.
21672# Run this file to recreate the current configuration.
21673# Compiler output produced by configure, useful for debugging
21674# configure, is in config.log if it exists.
21675
21676debug=false
21677ac_cs_recheck=false
21678ac_cs_silent=false
21679
21680SHELL=\${CONFIG_SHELL-$SHELL}
21681export SHELL
21682_ASEOF
21683cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21684## -------------------- ##
21685## M4sh Initialization. ##
21686## -------------------- ##
21687
21688# Be more Bourne compatible
21689DUALCASE=1; export DUALCASE # for MKS sh
21690as_nop=:
21691if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21692then :
21693  emulate sh
21694  NULLCMD=:
21695  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21696  # is contrary to our usage.  Disable this feature.
21697  alias -g '${1+"$@"}'='"$@"'
21698  setopt NO_GLOB_SUBST
21699else $as_nop
21700  case `(set -o) 2>/dev/null` in #(
21701  *posix*) :
21702    set -o posix ;; #(
21703  *) :
21704     ;;
21705esac
21706fi
21707
21708
21709
21710# Reset variables that may have inherited troublesome values from
21711# the environment.
21712
21713# IFS needs to be set, to space, tab, and newline, in precisely that order.
21714# (If _AS_PATH_WALK were called with IFS unset, it would have the
21715# side effect of setting IFS to empty, thus disabling word splitting.)
21716# Quoting is to prevent editors from complaining about space-tab.
21717as_nl='
21718'
21719export as_nl
21720IFS=" ""	$as_nl"
21721
21722PS1='$ '
21723PS2='> '
21724PS4='+ '
21725
21726# Ensure predictable behavior from utilities with locale-dependent output.
21727LC_ALL=C
21728export LC_ALL
21729LANGUAGE=C
21730export LANGUAGE
21731
21732# We cannot yet rely on "unset" to work, but we need these variables
21733# to be unset--not just set to an empty or harmless value--now, to
21734# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
21735# also avoids known problems related to "unset" and subshell syntax
21736# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21737for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21738do eval test \${$as_var+y} \
21739  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21740done
21741
21742# Ensure that fds 0, 1, and 2 are open.
21743if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21744if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21745if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
21746
21747# The user is always right.
21748if ${PATH_SEPARATOR+false} :; then
21749  PATH_SEPARATOR=:
21750  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21751    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21752      PATH_SEPARATOR=';'
21753  }
21754fi
21755
21756
21757# Find who we are.  Look in the path if we contain no directory separator.
21758as_myself=
21759case $0 in #((
21760  *[\\/]* ) as_myself=$0 ;;
21761  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21762for as_dir in $PATH
21763do
21764  IFS=$as_save_IFS
21765  case $as_dir in #(((
21766    '') as_dir=./ ;;
21767    */) ;;
21768    *) as_dir=$as_dir/ ;;
21769  esac
21770    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21771  done
21772IFS=$as_save_IFS
21773
21774     ;;
21775esac
21776# We did not find ourselves, most probably we were run as `sh COMMAND'
21777# in which case we are not to be found in the path.
21778if test "x$as_myself" = x; then
21779  as_myself=$0
21780fi
21781if test ! -f "$as_myself"; then
21782  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21783  exit 1
21784fi
21785
21786
21787
21788# as_fn_error STATUS ERROR [LINENO LOG_FD]
21789# ----------------------------------------
21790# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21791# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21792# script with STATUS, using 1 if that was 0.
21793as_fn_error ()
21794{
21795  as_status=$1; test $as_status -eq 0 && as_status=1
21796  if test "$4"; then
21797    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21798    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21799  fi
21800  printf "%s\n" "$as_me: error: $2" >&2
21801  as_fn_exit $as_status
21802} # as_fn_error
21803
21804
21805
21806# as_fn_set_status STATUS
21807# -----------------------
21808# Set $? to STATUS, without forking.
21809as_fn_set_status ()
21810{
21811  return $1
21812} # as_fn_set_status
21813
21814# as_fn_exit STATUS
21815# -----------------
21816# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21817as_fn_exit ()
21818{
21819  set +e
21820  as_fn_set_status $1
21821  exit $1
21822} # as_fn_exit
21823
21824# as_fn_unset VAR
21825# ---------------
21826# Portably unset VAR.
21827as_fn_unset ()
21828{
21829  { eval $1=; unset $1;}
21830}
21831as_unset=as_fn_unset
21832
21833# as_fn_append VAR VALUE
21834# ----------------------
21835# Append the text in VALUE to the end of the definition contained in VAR. Take
21836# advantage of any shell optimizations that allow amortized linear growth over
21837# repeated appends, instead of the typical quadratic growth present in naive
21838# implementations.
21839if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21840then :
21841  eval 'as_fn_append ()
21842  {
21843    eval $1+=\$2
21844  }'
21845else $as_nop
21846  as_fn_append ()
21847  {
21848    eval $1=\$$1\$2
21849  }
21850fi # as_fn_append
21851
21852# as_fn_arith ARG...
21853# ------------------
21854# Perform arithmetic evaluation on the ARGs, and store the result in the
21855# global $as_val. Take advantage of shells that can avoid forks. The arguments
21856# must be portable across $(()) and expr.
21857if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21858then :
21859  eval 'as_fn_arith ()
21860  {
21861    as_val=$(( $* ))
21862  }'
21863else $as_nop
21864  as_fn_arith ()
21865  {
21866    as_val=`expr "$@" || test $? -eq 1`
21867  }
21868fi # as_fn_arith
21869
21870
21871if expr a : '\(a\)' >/dev/null 2>&1 &&
21872   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21873  as_expr=expr
21874else
21875  as_expr=false
21876fi
21877
21878if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21879  as_basename=basename
21880else
21881  as_basename=false
21882fi
21883
21884if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21885  as_dirname=dirname
21886else
21887  as_dirname=false
21888fi
21889
21890as_me=`$as_basename -- "$0" ||
21891$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21892	 X"$0" : 'X\(//\)$' \| \
21893	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21894printf "%s\n" X/"$0" |
21895    sed '/^.*\/\([^/][^/]*\)\/*$/{
21896	    s//\1/
21897	    q
21898	  }
21899	  /^X\/\(\/\/\)$/{
21900	    s//\1/
21901	    q
21902	  }
21903	  /^X\/\(\/\).*/{
21904	    s//\1/
21905	    q
21906	  }
21907	  s/.*/./; q'`
21908
21909# Avoid depending upon Character Ranges.
21910as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21911as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21912as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21913as_cr_digits='0123456789'
21914as_cr_alnum=$as_cr_Letters$as_cr_digits
21915
21916
21917# Determine whether it's possible to make 'echo' print without a newline.
21918# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21919# for compatibility with existing Makefiles.
21920ECHO_C= ECHO_N= ECHO_T=
21921case `echo -n x` in #(((((
21922-n*)
21923  case `echo 'xy\c'` in
21924  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21925  xy)  ECHO_C='\c';;
21926  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21927       ECHO_T='	';;
21928  esac;;
21929*)
21930  ECHO_N='-n';;
21931esac
21932
21933# For backward compatibility with old third-party macros, we provide
21934# the shell variables $as_echo and $as_echo_n.  New code should use
21935# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21936as_echo='printf %s\n'
21937as_echo_n='printf %s'
21938
21939rm -f conf$$ conf$$.exe conf$$.file
21940if test -d conf$$.dir; then
21941  rm -f conf$$.dir/conf$$.file
21942else
21943  rm -f conf$$.dir
21944  mkdir conf$$.dir 2>/dev/null
21945fi
21946if (echo >conf$$.file) 2>/dev/null; then
21947  if ln -s conf$$.file conf$$ 2>/dev/null; then
21948    as_ln_s='ln -s'
21949    # ... but there are two gotchas:
21950    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21951    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21952    # In both cases, we have to default to `cp -pR'.
21953    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21954      as_ln_s='cp -pR'
21955  elif ln conf$$.file conf$$ 2>/dev/null; then
21956    as_ln_s=ln
21957  else
21958    as_ln_s='cp -pR'
21959  fi
21960else
21961  as_ln_s='cp -pR'
21962fi
21963rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21964rmdir conf$$.dir 2>/dev/null
21965
21966
21967# as_fn_mkdir_p
21968# -------------
21969# Create "$as_dir" as a directory, including parents if necessary.
21970as_fn_mkdir_p ()
21971{
21972
21973  case $as_dir in #(
21974  -*) as_dir=./$as_dir;;
21975  esac
21976  test -d "$as_dir" || eval $as_mkdir_p || {
21977    as_dirs=
21978    while :; do
21979      case $as_dir in #(
21980      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21981      *) as_qdir=$as_dir;;
21982      esac
21983      as_dirs="'$as_qdir' $as_dirs"
21984      as_dir=`$as_dirname -- "$as_dir" ||
21985$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21986	 X"$as_dir" : 'X\(//\)[^/]' \| \
21987	 X"$as_dir" : 'X\(//\)$' \| \
21988	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21989printf "%s\n" X"$as_dir" |
21990    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21991	    s//\1/
21992	    q
21993	  }
21994	  /^X\(\/\/\)[^/].*/{
21995	    s//\1/
21996	    q
21997	  }
21998	  /^X\(\/\/\)$/{
21999	    s//\1/
22000	    q
22001	  }
22002	  /^X\(\/\).*/{
22003	    s//\1/
22004	    q
22005	  }
22006	  s/.*/./; q'`
22007      test -d "$as_dir" && break
22008    done
22009    test -z "$as_dirs" || eval "mkdir $as_dirs"
22010  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22011
22012
22013} # as_fn_mkdir_p
22014if mkdir -p . 2>/dev/null; then
22015  as_mkdir_p='mkdir -p "$as_dir"'
22016else
22017  test -d ./-p && rmdir ./-p
22018  as_mkdir_p=false
22019fi
22020
22021
22022# as_fn_executable_p FILE
22023# -----------------------
22024# Test if FILE is an executable regular file.
22025as_fn_executable_p ()
22026{
22027  test -f "$1" && test -x "$1"
22028} # as_fn_executable_p
22029as_test_x='test -x'
22030as_executable_p=as_fn_executable_p
22031
22032# Sed expression to map a string onto a valid CPP name.
22033as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22034
22035# Sed expression to map a string onto a valid variable name.
22036as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22037
22038
22039exec 6>&1
22040## ----------------------------------- ##
22041## Main body of $CONFIG_STATUS script. ##
22042## ----------------------------------- ##
22043_ASEOF
22044test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22045
22046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22047# Save the log message, to keep $0 and so on meaningful, and to
22048# report actual input values of CONFIG_FILES etc. instead of their
22049# values after options handling.
22050ac_log="
22051This file was extended by ncmpcpp $as_me 0.9.2, which was
22052generated by GNU Autoconf 2.70.  Invocation command line was
22053
22054  CONFIG_FILES    = $CONFIG_FILES
22055  CONFIG_HEADERS  = $CONFIG_HEADERS
22056  CONFIG_LINKS    = $CONFIG_LINKS
22057  CONFIG_COMMANDS = $CONFIG_COMMANDS
22058  $ $0 $@
22059
22060on `(hostname || uname -n) 2>/dev/null | sed 1q`
22061"
22062
22063_ACEOF
22064
22065case $ac_config_files in *"
22066"*) set x $ac_config_files; shift; ac_config_files=$*;;
22067esac
22068
22069case $ac_config_headers in *"
22070"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22071esac
22072
22073
22074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22075# Files that config.status was made for.
22076config_files="$ac_config_files"
22077config_headers="$ac_config_headers"
22078config_commands="$ac_config_commands"
22079
22080_ACEOF
22081
22082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22083ac_cs_usage="\
22084\`$as_me' instantiates files and other configuration actions
22085from templates according to the current configuration.  Unless the files
22086and actions are specified as TAGs, all are instantiated by default.
22087
22088Usage: $0 [OPTION]... [TAG]...
22089
22090  -h, --help       print this help, then exit
22091  -V, --version    print version number and configuration settings, then exit
22092      --config     print configuration, then exit
22093  -q, --quiet, --silent
22094                   do not print progress messages
22095  -d, --debug      don't remove temporary files
22096      --recheck    update $as_me by reconfiguring in the same conditions
22097      --file=FILE[:TEMPLATE]
22098                   instantiate the configuration file FILE
22099      --header=FILE[:TEMPLATE]
22100                   instantiate the configuration header FILE
22101
22102Configuration files:
22103$config_files
22104
22105Configuration headers:
22106$config_headers
22107
22108Configuration commands:
22109$config_commands
22110
22111Report bugs to the package provider."
22112
22113_ACEOF
22114ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
22115ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
22116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22117ac_cs_config='$ac_cs_config_escaped'
22118ac_cs_version="\\
22119ncmpcpp config.status 0.9.2
22120configured by $0, generated by GNU Autoconf 2.70,
22121  with options \\"\$ac_cs_config\\"
22122
22123Copyright (C) 2020 Free Software Foundation, Inc.
22124This config.status script is free software; the Free Software Foundation
22125gives unlimited permission to copy, distribute and modify it."
22126
22127ac_pwd='$ac_pwd'
22128srcdir='$srcdir'
22129INSTALL='$INSTALL'
22130MKDIR_P='$MKDIR_P'
22131AWK='$AWK'
22132test -n "\$AWK" || AWK=awk
22133_ACEOF
22134
22135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22136# The default lists apply if the user does not specify any file.
22137ac_need_defaults=:
22138while test $# != 0
22139do
22140  case $1 in
22141  --*=?*)
22142    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22143    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22144    ac_shift=:
22145    ;;
22146  --*=)
22147    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22148    ac_optarg=
22149    ac_shift=:
22150    ;;
22151  *)
22152    ac_option=$1
22153    ac_optarg=$2
22154    ac_shift=shift
22155    ;;
22156  esac
22157
22158  case $ac_option in
22159  # Handling of the options.
22160  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22161    ac_cs_recheck=: ;;
22162  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22163    printf "%s\n" "$ac_cs_version"; exit ;;
22164  --config | --confi | --conf | --con | --co | --c )
22165    printf "%s\n" "$ac_cs_config"; exit ;;
22166  --debug | --debu | --deb | --de | --d | -d )
22167    debug=: ;;
22168  --file | --fil | --fi | --f )
22169    $ac_shift
22170    case $ac_optarg in
22171    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22172    '') as_fn_error $? "missing file argument" ;;
22173    esac
22174    as_fn_append CONFIG_FILES " '$ac_optarg'"
22175    ac_need_defaults=false;;
22176  --header | --heade | --head | --hea )
22177    $ac_shift
22178    case $ac_optarg in
22179    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22180    esac
22181    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22182    ac_need_defaults=false;;
22183  --he | --h)
22184    # Conflict between --help and --header
22185    as_fn_error $? "ambiguous option: \`$1'
22186Try \`$0 --help' for more information.";;
22187  --help | --hel | -h )
22188    printf "%s\n" "$ac_cs_usage"; exit ;;
22189  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22190  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22191    ac_cs_silent=: ;;
22192
22193  # This is an error.
22194  -*) as_fn_error $? "unrecognized option: \`$1'
22195Try \`$0 --help' for more information." ;;
22196
22197  *) as_fn_append ac_config_targets " $1"
22198     ac_need_defaults=false ;;
22199
22200  esac
22201  shift
22202done
22203
22204ac_configure_extra_args=
22205
22206if $ac_cs_silent; then
22207  exec 6>/dev/null
22208  ac_configure_extra_args="$ac_configure_extra_args --silent"
22209fi
22210
22211_ACEOF
22212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22213if \$ac_cs_recheck; then
22214  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22215  shift
22216  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22217  CONFIG_SHELL='$SHELL'
22218  export CONFIG_SHELL
22219  exec "\$@"
22220fi
22221
22222_ACEOF
22223cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22224exec 5>>config.log
22225{
22226  echo
22227  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22228## Running $as_me. ##
22229_ASBOX
22230  printf "%s\n" "$ac_log"
22231} >&5
22232
22233_ACEOF
22234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22235#
22236# INIT-COMMANDS
22237#
22238AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22239
22240
22241# The HP-UX ksh and POSIX shell print the target directory to stdout
22242# if CDPATH is set.
22243(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22244
22245sed_quote_subst='$sed_quote_subst'
22246double_quote_subst='$double_quote_subst'
22247delay_variable_subst='$delay_variable_subst'
22248macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22249macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22250enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22251enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22252pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22253enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22254shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22255SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22256ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22257PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22258host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22259host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22260host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22261build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22262build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22263build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22264SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22265Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22266GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22267EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22268FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22269LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22270NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22271LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22272max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22273ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22274exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22275lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22276lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22277lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22278lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22279lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22280reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22281reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22282OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22283deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22284file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22285file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22286want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22287DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22288sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22289AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22290lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
22291AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22292archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22293STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22294RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22295old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22296old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22297old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22298lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22299CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22300CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22301compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22302GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22303lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22304lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22305lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22306lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22307lt_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"`'
22308lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22309nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22310lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22311lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22312objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22313MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22314lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22315lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22316lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22317lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22318lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22319need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22320MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22321DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22322NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22323LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22324OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22325OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22326libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22327shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22328extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22329archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22330enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22331export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22332whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22333compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22334old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22335old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22336archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22337archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22338module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22339module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22340with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22341allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22342no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22343hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22344hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22345hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22346hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22347hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22348hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22349hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22350inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22351link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22352always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22353export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22354exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22355include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22356prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22357postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22358file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22359variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22360need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22361need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22362version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22363runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22364shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22365shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22366libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22367library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22368soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22369install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22370postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22371postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22372finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22373finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22374hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22375sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22376configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22377configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22378hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22379enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22380enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22381enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22382old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22383striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22384compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22385predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22386postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22387predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22388postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22389compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22390LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22391reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22392reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22393old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22394compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22395GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22396lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22397lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22398lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22399lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22400lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22401archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22402enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22403export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22404whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22405compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22406old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22407old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22408archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22409archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22410module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22411module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22412with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22413allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22414no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22415hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22416hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22417hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22418hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22419hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22420hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22421hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22422inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22423link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22424always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22425export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22426exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22427include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22428prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22429postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22430file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22431hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22432compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22433predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22434postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22435predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22436postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22437compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22438
22439LTCC='$LTCC'
22440LTCFLAGS='$LTCFLAGS'
22441compiler='$compiler_DEFAULT'
22442
22443# A function that is used when there is no print builtin or printf.
22444func_fallback_echo ()
22445{
22446  eval 'cat <<_LTECHO_EOF
22447\$1
22448_LTECHO_EOF'
22449}
22450
22451# Quote evaled strings.
22452for var in SHELL \
22453ECHO \
22454PATH_SEPARATOR \
22455SED \
22456GREP \
22457EGREP \
22458FGREP \
22459LD \
22460NM \
22461LN_S \
22462lt_SP2NL \
22463lt_NL2SP \
22464reload_flag \
22465OBJDUMP \
22466deplibs_check_method \
22467file_magic_cmd \
22468file_magic_glob \
22469want_nocaseglob \
22470DLLTOOL \
22471sharedlib_from_linklib_cmd \
22472AR \
22473archiver_list_spec \
22474STRIP \
22475RANLIB \
22476CC \
22477CFLAGS \
22478compiler \
22479lt_cv_sys_global_symbol_pipe \
22480lt_cv_sys_global_symbol_to_cdecl \
22481lt_cv_sys_global_symbol_to_import \
22482lt_cv_sys_global_symbol_to_c_name_address \
22483lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22484lt_cv_nm_interface \
22485nm_file_list_spec \
22486lt_cv_truncate_bin \
22487lt_prog_compiler_no_builtin_flag \
22488lt_prog_compiler_pic \
22489lt_prog_compiler_wl \
22490lt_prog_compiler_static \
22491lt_cv_prog_compiler_c_o \
22492need_locks \
22493MANIFEST_TOOL \
22494DSYMUTIL \
22495NMEDIT \
22496LIPO \
22497OTOOL \
22498OTOOL64 \
22499shrext_cmds \
22500export_dynamic_flag_spec \
22501whole_archive_flag_spec \
22502compiler_needs_object \
22503with_gnu_ld \
22504allow_undefined_flag \
22505no_undefined_flag \
22506hardcode_libdir_flag_spec \
22507hardcode_libdir_separator \
22508exclude_expsyms \
22509include_expsyms \
22510file_list_spec \
22511variables_saved_for_relink \
22512libname_spec \
22513library_names_spec \
22514soname_spec \
22515install_override_mode \
22516finish_eval \
22517old_striplib \
22518striplib \
22519compiler_lib_search_dirs \
22520predep_objects \
22521postdep_objects \
22522predeps \
22523postdeps \
22524compiler_lib_search_path \
22525LD_CXX \
22526reload_flag_CXX \
22527compiler_CXX \
22528lt_prog_compiler_no_builtin_flag_CXX \
22529lt_prog_compiler_pic_CXX \
22530lt_prog_compiler_wl_CXX \
22531lt_prog_compiler_static_CXX \
22532lt_cv_prog_compiler_c_o_CXX \
22533export_dynamic_flag_spec_CXX \
22534whole_archive_flag_spec_CXX \
22535compiler_needs_object_CXX \
22536with_gnu_ld_CXX \
22537allow_undefined_flag_CXX \
22538no_undefined_flag_CXX \
22539hardcode_libdir_flag_spec_CXX \
22540hardcode_libdir_separator_CXX \
22541exclude_expsyms_CXX \
22542include_expsyms_CXX \
22543file_list_spec_CXX \
22544compiler_lib_search_dirs_CXX \
22545predep_objects_CXX \
22546postdep_objects_CXX \
22547predeps_CXX \
22548postdeps_CXX \
22549compiler_lib_search_path_CXX; do
22550    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22551    *[\\\\\\\`\\"\\\$]*)
22552      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22553      ;;
22554    *)
22555      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22556      ;;
22557    esac
22558done
22559
22560# Double-quote double-evaled strings.
22561for var in reload_cmds \
22562old_postinstall_cmds \
22563old_postuninstall_cmds \
22564old_archive_cmds \
22565extract_expsyms_cmds \
22566old_archive_from_new_cmds \
22567old_archive_from_expsyms_cmds \
22568archive_cmds \
22569archive_expsym_cmds \
22570module_cmds \
22571module_expsym_cmds \
22572export_symbols_cmds \
22573prelink_cmds \
22574postlink_cmds \
22575postinstall_cmds \
22576postuninstall_cmds \
22577finish_cmds \
22578sys_lib_search_path_spec \
22579configure_time_dlsearch_path \
22580configure_time_lt_sys_library_path \
22581reload_cmds_CXX \
22582old_archive_cmds_CXX \
22583old_archive_from_new_cmds_CXX \
22584old_archive_from_expsyms_cmds_CXX \
22585archive_cmds_CXX \
22586archive_expsym_cmds_CXX \
22587module_cmds_CXX \
22588module_expsym_cmds_CXX \
22589export_symbols_cmds_CXX \
22590prelink_cmds_CXX \
22591postlink_cmds_CXX; do
22592    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22593    *[\\\\\\\`\\"\\\$]*)
22594      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22595      ;;
22596    *)
22597      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22598      ;;
22599    esac
22600done
22601
22602ac_aux_dir='$ac_aux_dir'
22603
22604# See if we are running on zsh, and set the options that allow our
22605# commands through without removal of \ escapes INIT.
22606if test -n "\${ZSH_VERSION+set}"; then
22607   setopt NO_GLOB_SUBST
22608fi
22609
22610
22611    PACKAGE='$PACKAGE'
22612    VERSION='$VERSION'
22613    RM='$RM'
22614    ofile='$ofile'
22615
22616
22617
22618
22619
22620
22621_ACEOF
22622
22623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22624
22625# Handling of arguments.
22626for ac_config_target in $ac_config_targets
22627do
22628  case $ac_config_target in
22629    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22630    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22631    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22632    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22633    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22634    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22635
22636  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22637  esac
22638done
22639
22640
22641# If the user did not use the arguments to specify the items to instantiate,
22642# then the envvar interface is used.  Set only those that are not.
22643# We use the long form for the default assignment because of an extremely
22644# bizarre bug on SunOS 4.1.3.
22645if $ac_need_defaults; then
22646  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22647  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22648  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22649fi
22650
22651# Have a temporary directory for convenience.  Make it in the build tree
22652# simply because there is no reason against having it here, and in addition,
22653# creating and moving files from /tmp can sometimes cause problems.
22654# Hook for its removal unless debugging.
22655# Note that there is a small window in which the directory will not be cleaned:
22656# after its creation but before its name has been assigned to `$tmp'.
22657$debug ||
22658{
22659  tmp= ac_tmp=
22660  trap 'exit_status=$?
22661  : "${ac_tmp:=$tmp}"
22662  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22663' 0
22664  trap 'as_fn_exit 1' 1 2 13 15
22665}
22666# Create a (secure) tmp directory for tmp files.
22667
22668{
22669  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22670  test -d "$tmp"
22671}  ||
22672{
22673  tmp=./conf$$-$RANDOM
22674  (umask 077 && mkdir "$tmp")
22675} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22676ac_tmp=$tmp
22677
22678# Set up the scripts for CONFIG_FILES section.
22679# No need to generate them if there are no CONFIG_FILES.
22680# This happens for instance with `./config.status config.h'.
22681if test -n "$CONFIG_FILES"; then
22682
22683
22684ac_cr=`echo X | tr X '\015'`
22685# On cygwin, bash can eat \r inside `` if the user requested igncr.
22686# But we know of no other shell where ac_cr would be empty at this
22687# point, so we can use a bashism as a fallback.
22688if test "x$ac_cr" = x; then
22689  eval ac_cr=\$\'\\r\'
22690fi
22691ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22692if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22693  ac_cs_awk_cr='\\r'
22694else
22695  ac_cs_awk_cr=$ac_cr
22696fi
22697
22698echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22699_ACEOF
22700
22701
22702{
22703  echo "cat >conf$$subs.awk <<_ACEOF" &&
22704  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22705  echo "_ACEOF"
22706} >conf$$subs.sh ||
22707  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22708ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22709ac_delim='%!_!# '
22710for ac_last_try in false false false false false :; do
22711  . ./conf$$subs.sh ||
22712    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22713
22714  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22715  if test $ac_delim_n = $ac_delim_num; then
22716    break
22717  elif $ac_last_try; then
22718    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22719  else
22720    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22721  fi
22722done
22723rm -f conf$$subs.sh
22724
22725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22726cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22727_ACEOF
22728sed -n '
22729h
22730s/^/S["/; s/!.*/"]=/
22731p
22732g
22733s/^[^!]*!//
22734:repl
22735t repl
22736s/'"$ac_delim"'$//
22737t delim
22738:nl
22739h
22740s/\(.\{148\}\)..*/\1/
22741t more1
22742s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22743p
22744n
22745b repl
22746:more1
22747s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22748p
22749g
22750s/.\{148\}//
22751t nl
22752:delim
22753h
22754s/\(.\{148\}\)..*/\1/
22755t more2
22756s/["\\]/\\&/g; s/^/"/; s/$/"/
22757p
22758b
22759:more2
22760s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22761p
22762g
22763s/.\{148\}//
22764t delim
22765' <conf$$subs.awk | sed '
22766/^[^""]/{
22767  N
22768  s/\n//
22769}
22770' >>$CONFIG_STATUS || ac_write_fail=1
22771rm -f conf$$subs.awk
22772cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22773_ACAWK
22774cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22775  for (key in S) S_is_set[key] = 1
22776  FS = ""
22777
22778}
22779{
22780  line = $ 0
22781  nfields = split(line, field, "@")
22782  substed = 0
22783  len = length(field[1])
22784  for (i = 2; i < nfields; i++) {
22785    key = field[i]
22786    keylen = length(key)
22787    if (S_is_set[key]) {
22788      value = S[key]
22789      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22790      len += length(value) + length(field[++i])
22791      substed = 1
22792    } else
22793      len += 1 + keylen
22794  }
22795
22796  print line
22797}
22798
22799_ACAWK
22800_ACEOF
22801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22802if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22803  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22804else
22805  cat
22806fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22807  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22808_ACEOF
22809
22810# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22811# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22812# trailing colons and then remove the whole line if VPATH becomes empty
22813# (actually we leave an empty line to preserve line numbers).
22814if test "x$srcdir" = x.; then
22815  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22816h
22817s///
22818s/^/:/
22819s/[	 ]*$/:/
22820s/:\$(srcdir):/:/g
22821s/:\${srcdir}:/:/g
22822s/:@srcdir@:/:/g
22823s/^:*//
22824s/:*$//
22825x
22826s/\(=[	 ]*\).*/\1/
22827G
22828s/\n//
22829s/^[^=]*=[	 ]*$//
22830}'
22831fi
22832
22833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22834fi # test -n "$CONFIG_FILES"
22835
22836# Set up the scripts for CONFIG_HEADERS section.
22837# No need to generate them if there are no CONFIG_HEADERS.
22838# This happens for instance with `./config.status Makefile'.
22839if test -n "$CONFIG_HEADERS"; then
22840cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22841BEGIN {
22842_ACEOF
22843
22844# Transform confdefs.h into an awk script `defines.awk', embedded as
22845# here-document in config.status, that substitutes the proper values into
22846# config.h.in to produce config.h.
22847
22848# Create a delimiter string that does not exist in confdefs.h, to ease
22849# handling of long lines.
22850ac_delim='%!_!# '
22851for ac_last_try in false false :; do
22852  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22853  if test -z "$ac_tt"; then
22854    break
22855  elif $ac_last_try; then
22856    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22857  else
22858    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22859  fi
22860done
22861
22862# For the awk script, D is an array of macro values keyed by name,
22863# likewise P contains macro parameters if any.  Preserve backslash
22864# newline sequences.
22865
22866ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22867sed -n '
22868s/.\{148\}/&'"$ac_delim"'/g
22869t rset
22870:rset
22871s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22872t def
22873d
22874:def
22875s/\\$//
22876t bsnl
22877s/["\\]/\\&/g
22878s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22879D["\1"]=" \3"/p
22880s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22881d
22882:bsnl
22883s/["\\]/\\&/g
22884s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22885D["\1"]=" \3\\\\\\n"\\/p
22886t cont
22887s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22888t cont
22889d
22890:cont
22891n
22892s/.\{148\}/&'"$ac_delim"'/g
22893t clear
22894:clear
22895s/\\$//
22896t bsnlc
22897s/["\\]/\\&/g; s/^/"/; s/$/"/p
22898d
22899:bsnlc
22900s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22901b cont
22902' <confdefs.h | sed '
22903s/'"$ac_delim"'/"\\\
22904"/g' >>$CONFIG_STATUS || ac_write_fail=1
22905
22906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22907  for (key in D) D_is_set[key] = 1
22908  FS = ""
22909}
22910/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22911  line = \$ 0
22912  split(line, arg, " ")
22913  if (arg[1] == "#") {
22914    defundef = arg[2]
22915    mac1 = arg[3]
22916  } else {
22917    defundef = substr(arg[1], 2)
22918    mac1 = arg[2]
22919  }
22920  split(mac1, mac2, "(") #)
22921  macro = mac2[1]
22922  prefix = substr(line, 1, index(line, defundef) - 1)
22923  if (D_is_set[macro]) {
22924    # Preserve the white space surrounding the "#".
22925    print prefix "define", macro P[macro] D[macro]
22926    next
22927  } else {
22928    # Replace #undef with comments.  This is necessary, for example,
22929    # in the case of _POSIX_SOURCE, which is predefined and required
22930    # on some systems where configure will not decide to define it.
22931    if (defundef == "undef") {
22932      print "/*", prefix defundef, macro, "*/"
22933      next
22934    }
22935  }
22936}
22937{ print }
22938_ACAWK
22939_ACEOF
22940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22941  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22942fi # test -n "$CONFIG_HEADERS"
22943
22944
22945eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22946shift
22947for ac_tag
22948do
22949  case $ac_tag in
22950  :[FHLC]) ac_mode=$ac_tag; continue;;
22951  esac
22952  case $ac_mode$ac_tag in
22953  :[FHL]*:*);;
22954  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22955  :[FH]-) ac_tag=-:-;;
22956  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22957  esac
22958  ac_save_IFS=$IFS
22959  IFS=:
22960  set x $ac_tag
22961  IFS=$ac_save_IFS
22962  shift
22963  ac_file=$1
22964  shift
22965
22966  case $ac_mode in
22967  :L) ac_source=$1;;
22968  :[FH])
22969    ac_file_inputs=
22970    for ac_f
22971    do
22972      case $ac_f in
22973      -) ac_f="$ac_tmp/stdin";;
22974      *) # Look for the file first in the build tree, then in the source tree
22975	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22976	 # because $ac_f cannot contain `:'.
22977	 test -f "$ac_f" ||
22978	   case $ac_f in
22979	   [\\/$]*) false;;
22980	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22981	   esac ||
22982	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22983      esac
22984      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22985      as_fn_append ac_file_inputs " '$ac_f'"
22986    done
22987
22988    # Let's still pretend it is `configure' which instantiates (i.e., don't
22989    # use $as_me), people would be surprised to read:
22990    #    /* config.h.  Generated by config.status.  */
22991    configure_input='Generated from '`
22992	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22993	`' by configure.'
22994    if test x"$ac_file" != x-; then
22995      configure_input="$ac_file.  $configure_input"
22996      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22997printf "%s\n" "$as_me: creating $ac_file" >&6;}
22998    fi
22999    # Neutralize special characters interpreted by sed in replacement strings.
23000    case $configure_input in #(
23001    *\&* | *\|* | *\\* )
23002       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
23003       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23004    *) ac_sed_conf_input=$configure_input;;
23005    esac
23006
23007    case $ac_tag in
23008    *:-:* | *:-) cat >"$ac_tmp/stdin" \
23009      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23010    esac
23011    ;;
23012  esac
23013
23014  ac_dir=`$as_dirname -- "$ac_file" ||
23015$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23016	 X"$ac_file" : 'X\(//\)[^/]' \| \
23017	 X"$ac_file" : 'X\(//\)$' \| \
23018	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23019printf "%s\n" X"$ac_file" |
23020    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23021	    s//\1/
23022	    q
23023	  }
23024	  /^X\(\/\/\)[^/].*/{
23025	    s//\1/
23026	    q
23027	  }
23028	  /^X\(\/\/\)$/{
23029	    s//\1/
23030	    q
23031	  }
23032	  /^X\(\/\).*/{
23033	    s//\1/
23034	    q
23035	  }
23036	  s/.*/./; q'`
23037  as_dir="$ac_dir"; as_fn_mkdir_p
23038  ac_builddir=.
23039
23040case "$ac_dir" in
23041.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23042*)
23043  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
23044  # A ".." for each directory in $ac_dir_suffix.
23045  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23046  case $ac_top_builddir_sub in
23047  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23048  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23049  esac ;;
23050esac
23051ac_abs_top_builddir=$ac_pwd
23052ac_abs_builddir=$ac_pwd$ac_dir_suffix
23053# for backward compatibility:
23054ac_top_builddir=$ac_top_build_prefix
23055
23056case $srcdir in
23057  .)  # We are building in place.
23058    ac_srcdir=.
23059    ac_top_srcdir=$ac_top_builddir_sub
23060    ac_abs_top_srcdir=$ac_pwd ;;
23061  [\\/]* | ?:[\\/]* )  # Absolute name.
23062    ac_srcdir=$srcdir$ac_dir_suffix;
23063    ac_top_srcdir=$srcdir
23064    ac_abs_top_srcdir=$srcdir ;;
23065  *) # Relative name.
23066    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23067    ac_top_srcdir=$ac_top_build_prefix$srcdir
23068    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23069esac
23070ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23071
23072
23073  case $ac_mode in
23074  :F)
23075  #
23076  # CONFIG_FILE
23077  #
23078
23079  case $INSTALL in
23080  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23081  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23082  esac
23083  ac_MKDIR_P=$MKDIR_P
23084  case $MKDIR_P in
23085  [\\/$]* | ?:[\\/]* ) ;;
23086  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23087  esac
23088_ACEOF
23089
23090cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23091# If the template does not know about datarootdir, expand it.
23092# FIXME: This hack should be removed a few years after 2.60.
23093ac_datarootdir_hack=; ac_datarootdir_seen=
23094ac_sed_dataroot='
23095/datarootdir/ {
23096  p
23097  q
23098}
23099/@datadir@/p
23100/@docdir@/p
23101/@infodir@/p
23102/@localedir@/p
23103/@mandir@/p'
23104case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23105*datarootdir*) ac_datarootdir_seen=yes;;
23106*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23108printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23109_ACEOF
23110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23111  ac_datarootdir_hack='
23112  s&@datadir@&$datadir&g
23113  s&@docdir@&$docdir&g
23114  s&@infodir@&$infodir&g
23115  s&@localedir@&$localedir&g
23116  s&@mandir@&$mandir&g
23117  s&\\\${datarootdir}&$datarootdir&g' ;;
23118esac
23119_ACEOF
23120
23121# Neutralize VPATH when `$srcdir' = `.'.
23122# Shell code in configure.ac might set extrasub.
23123# FIXME: do we really want to maintain this feature?
23124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23125ac_sed_extra="$ac_vpsub
23126$extrasub
23127_ACEOF
23128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23129:t
23130/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23131s|@configure_input@|$ac_sed_conf_input|;t t
23132s&@top_builddir@&$ac_top_builddir_sub&;t t
23133s&@top_build_prefix@&$ac_top_build_prefix&;t t
23134s&@srcdir@&$ac_srcdir&;t t
23135s&@abs_srcdir@&$ac_abs_srcdir&;t t
23136s&@top_srcdir@&$ac_top_srcdir&;t t
23137s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23138s&@builddir@&$ac_builddir&;t t
23139s&@abs_builddir@&$ac_abs_builddir&;t t
23140s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23141s&@INSTALL@&$ac_INSTALL&;t t
23142s&@MKDIR_P@&$ac_MKDIR_P&;t t
23143$ac_datarootdir_hack
23144"
23145eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23146  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23147
23148test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23149  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23150  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
23151      "$ac_tmp/out"`; test -z "$ac_out"; } &&
23152  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23153which seems to be undefined.  Please make sure it is defined" >&5
23154printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23155which seems to be undefined.  Please make sure it is defined" >&2;}
23156
23157  rm -f "$ac_tmp/stdin"
23158  case $ac_file in
23159  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23160  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23161  esac \
23162  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23163 ;;
23164  :H)
23165  #
23166  # CONFIG_HEADER
23167  #
23168  if test x"$ac_file" != x-; then
23169    {
23170      printf "%s\n" "/* $configure_input  */" >&1 \
23171      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23172    } >"$ac_tmp/config.h" \
23173      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23174    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23175      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23176printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
23177    else
23178      rm -f "$ac_file"
23179      mv "$ac_tmp/config.h" "$ac_file" \
23180	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23181    fi
23182  else
23183    printf "%s\n" "/* $configure_input  */" >&1 \
23184      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23185      || as_fn_error $? "could not create -" "$LINENO" 5
23186  fi
23187# Compute "$ac_file"'s index in $config_headers.
23188_am_arg="$ac_file"
23189_am_stamp_count=1
23190for _am_header in $config_headers :; do
23191  case $_am_header in
23192    $_am_arg | $_am_arg:* )
23193      break ;;
23194    * )
23195      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23196  esac
23197done
23198echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23199$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23200	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23201	 X"$_am_arg" : 'X\(//\)$' \| \
23202	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23203printf "%s\n" X"$_am_arg" |
23204    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23205	    s//\1/
23206	    q
23207	  }
23208	  /^X\(\/\/\)[^/].*/{
23209	    s//\1/
23210	    q
23211	  }
23212	  /^X\(\/\/\)$/{
23213	    s//\1/
23214	    q
23215	  }
23216	  /^X\(\/\).*/{
23217	    s//\1/
23218	    q
23219	  }
23220	  s/.*/./; q'`/stamp-h$_am_stamp_count
23221 ;;
23222
23223  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23224printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
23225 ;;
23226  esac
23227
23228
23229  case $ac_file$ac_mode in
23230    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23231  # Older Autoconf quotes --file arguments for eval, but not when files
23232  # are listed without --file.  Let's play safe and only enable the eval
23233  # if we detect the quoting.
23234  # TODO: see whether this extra hack can be removed once we start
23235  # requiring Autoconf 2.70 or later.
23236  case $CONFIG_FILES in #(
23237  *\'*) :
23238    eval set x "$CONFIG_FILES" ;; #(
23239  *) :
23240    set x $CONFIG_FILES ;; #(
23241  *) :
23242     ;;
23243esac
23244  shift
23245  # Used to flag and report bootstrapping failures.
23246  am_rc=0
23247  for am_mf
23248  do
23249    # Strip MF so we end up with the name of the file.
23250    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
23251    # Check whether this is an Automake generated Makefile which includes
23252    # dependency-tracking related rules and includes.
23253    # Grep'ing the whole file directly is not great: AIX grep has a line
23254    # limit of 2048, but all sed's we know have understand at least 4000.
23255    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23256      || continue
23257    am_dirpart=`$as_dirname -- "$am_mf" ||
23258$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23259	 X"$am_mf" : 'X\(//\)[^/]' \| \
23260	 X"$am_mf" : 'X\(//\)$' \| \
23261	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23262printf "%s\n" X"$am_mf" |
23263    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23264	    s//\1/
23265	    q
23266	  }
23267	  /^X\(\/\/\)[^/].*/{
23268	    s//\1/
23269	    q
23270	  }
23271	  /^X\(\/\/\)$/{
23272	    s//\1/
23273	    q
23274	  }
23275	  /^X\(\/\).*/{
23276	    s//\1/
23277	    q
23278	  }
23279	  s/.*/./; q'`
23280    am_filepart=`$as_basename -- "$am_mf" ||
23281$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23282	 X"$am_mf" : 'X\(//\)$' \| \
23283	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23284printf "%s\n" X/"$am_mf" |
23285    sed '/^.*\/\([^/][^/]*\)\/*$/{
23286	    s//\1/
23287	    q
23288	  }
23289	  /^X\/\(\/\/\)$/{
23290	    s//\1/
23291	    q
23292	  }
23293	  /^X\/\(\/\).*/{
23294	    s//\1/
23295	    q
23296	  }
23297	  s/.*/./; q'`
23298    { echo "$as_me:$LINENO: cd "$am_dirpart" \
23299      && sed -e '/# am--include-marker/d' "$am_filepart" \
23300        | $MAKE -f - am--depfiles" >&5
23301   (cd "$am_dirpart" \
23302      && sed -e '/# am--include-marker/d' "$am_filepart" \
23303        | $MAKE -f - am--depfiles) >&5 2>&5
23304   ac_status=$?
23305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306   (exit $ac_status); } || am_rc=$?
23307  done
23308  if test $am_rc -ne 0; then
23309    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23310printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23311as_fn_error $? "Something went wrong bootstrapping makefile fragments
23312    for automatic dependency tracking.  If GNU make was not used, consider
23313    re-running the configure script with MAKE=\"gmake\" (or whatever is
23314    necessary).  You can also try re-running configure with the
23315    '--disable-dependency-tracking' option to at least be able to build
23316    the package (albeit without support for automatic dependency tracking).
23317See \`config.log' for more details" "$LINENO" 5; }
23318  fi
23319  { am_dirpart=; unset am_dirpart;}
23320  { am_filepart=; unset am_filepart;}
23321  { am_mf=; unset am_mf;}
23322  { am_rc=; unset am_rc;}
23323  rm -f conftest-deps.mk
23324}
23325 ;;
23326    "libtool":C)
23327
23328    # See if we are running on zsh, and set the options that allow our
23329    # commands through without removal of \ escapes.
23330    if test -n "${ZSH_VERSION+set}"; then
23331      setopt NO_GLOB_SUBST
23332    fi
23333
23334    cfgfile=${ofile}T
23335    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23336    $RM "$cfgfile"
23337
23338    cat <<_LT_EOF >> "$cfgfile"
23339#! $SHELL
23340# Generated automatically by $as_me ($PACKAGE) $VERSION
23341# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23342
23343# Provide generalized library-building support services.
23344# Written by Gordon Matzigkeit, 1996
23345
23346# Copyright (C) 2014 Free Software Foundation, Inc.
23347# This is free software; see the source for copying conditions.  There is NO
23348# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23349
23350# GNU Libtool is free software; you can redistribute it and/or modify
23351# it under the terms of the GNU General Public License as published by
23352# the Free Software Foundation; either version 2 of of the License, or
23353# (at your option) any later version.
23354#
23355# As a special exception to the GNU General Public License, if you
23356# distribute this file as part of a program or library that is built
23357# using GNU Libtool, you may include this file under the  same
23358# distribution terms that you use for the rest of that program.
23359#
23360# GNU Libtool is distributed in the hope that it will be useful, but
23361# WITHOUT ANY WARRANTY; without even the implied warranty of
23362# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23363# GNU General Public License for more details.
23364#
23365# You should have received a copy of the GNU General Public License
23366# along with this program.  If not, see <http://www.gnu.org/licenses/>.
23367
23368
23369# The names of the tagged configurations supported by this script.
23370available_tags='CXX '
23371
23372# Configured defaults for sys_lib_dlsearch_path munging.
23373: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23374
23375# ### BEGIN LIBTOOL CONFIG
23376
23377# Which release of libtool.m4 was used?
23378macro_version=$macro_version
23379macro_revision=$macro_revision
23380
23381# Whether or not to build shared libraries.
23382build_libtool_libs=$enable_shared
23383
23384# Whether or not to build static libraries.
23385build_old_libs=$enable_static
23386
23387# What type of objects to build.
23388pic_mode=$pic_mode
23389
23390# Whether or not to optimize for fast installation.
23391fast_install=$enable_fast_install
23392
23393# Shared archive member basename,for filename based shared library versioning on AIX.
23394shared_archive_member_spec=$shared_archive_member_spec
23395
23396# Shell to use when invoking shell scripts.
23397SHELL=$lt_SHELL
23398
23399# An echo program that protects backslashes.
23400ECHO=$lt_ECHO
23401
23402# The PATH separator for the build system.
23403PATH_SEPARATOR=$lt_PATH_SEPARATOR
23404
23405# The host system.
23406host_alias=$host_alias
23407host=$host
23408host_os=$host_os
23409
23410# The build system.
23411build_alias=$build_alias
23412build=$build
23413build_os=$build_os
23414
23415# A sed program that does not truncate output.
23416SED=$lt_SED
23417
23418# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23419Xsed="\$SED -e 1s/^X//"
23420
23421# A grep program that handles long lines.
23422GREP=$lt_GREP
23423
23424# An ERE matcher.
23425EGREP=$lt_EGREP
23426
23427# A literal string matcher.
23428FGREP=$lt_FGREP
23429
23430# A BSD- or MS-compatible name lister.
23431NM=$lt_NM
23432
23433# Whether we need soft or hard links.
23434LN_S=$lt_LN_S
23435
23436# What is the maximum length of a command?
23437max_cmd_len=$max_cmd_len
23438
23439# Object file suffix (normally "o").
23440objext=$ac_objext
23441
23442# Executable file suffix (normally "").
23443exeext=$exeext
23444
23445# whether the shell understands "unset".
23446lt_unset=$lt_unset
23447
23448# turn spaces into newlines.
23449SP2NL=$lt_lt_SP2NL
23450
23451# turn newlines into spaces.
23452NL2SP=$lt_lt_NL2SP
23453
23454# convert \$build file names to \$host format.
23455to_host_file_cmd=$lt_cv_to_host_file_cmd
23456
23457# convert \$build files to toolchain format.
23458to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23459
23460# An object symbol dumper.
23461OBJDUMP=$lt_OBJDUMP
23462
23463# Method to check whether dependent libraries are shared objects.
23464deplibs_check_method=$lt_deplibs_check_method
23465
23466# Command to use when deplibs_check_method = "file_magic".
23467file_magic_cmd=$lt_file_magic_cmd
23468
23469# How to find potential files when deplibs_check_method = "file_magic".
23470file_magic_glob=$lt_file_magic_glob
23471
23472# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23473want_nocaseglob=$lt_want_nocaseglob
23474
23475# DLL creation program.
23476DLLTOOL=$lt_DLLTOOL
23477
23478# Command to associate shared and link libraries.
23479sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23480
23481# The archiver.
23482AR=$lt_AR
23483
23484# Flags to create an archive (by configure).
23485lt_ar_flags=$lt_ar_flags
23486
23487# Flags to create an archive.
23488AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23489
23490# How to feed a file listing to the archiver.
23491archiver_list_spec=$lt_archiver_list_spec
23492
23493# A symbol stripping program.
23494STRIP=$lt_STRIP
23495
23496# Commands used to install an old-style archive.
23497RANLIB=$lt_RANLIB
23498old_postinstall_cmds=$lt_old_postinstall_cmds
23499old_postuninstall_cmds=$lt_old_postuninstall_cmds
23500
23501# Whether to use a lock for old archive extraction.
23502lock_old_archive_extraction=$lock_old_archive_extraction
23503
23504# A C compiler.
23505LTCC=$lt_CC
23506
23507# LTCC compiler flags.
23508LTCFLAGS=$lt_CFLAGS
23509
23510# Take the output of nm and produce a listing of raw symbols and C names.
23511global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23512
23513# Transform the output of nm in a proper C declaration.
23514global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23515
23516# Transform the output of nm into a list of symbols to manually relocate.
23517global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23518
23519# Transform the output of nm in a C name address pair.
23520global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23521
23522# Transform the output of nm in a C name address pair when lib prefix is needed.
23523global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23524
23525# The name lister interface.
23526nm_interface=$lt_lt_cv_nm_interface
23527
23528# Specify filename containing input files for \$NM.
23529nm_file_list_spec=$lt_nm_file_list_spec
23530
23531# The root where to search for dependent libraries,and where our libraries should be installed.
23532lt_sysroot=$lt_sysroot
23533
23534# Command to truncate a binary pipe.
23535lt_truncate_bin=$lt_lt_cv_truncate_bin
23536
23537# The name of the directory that contains temporary libtool files.
23538objdir=$objdir
23539
23540# Used to examine libraries when file_magic_cmd begins with "file".
23541MAGIC_CMD=$MAGIC_CMD
23542
23543# Must we lock files when doing compilation?
23544need_locks=$lt_need_locks
23545
23546# Manifest tool.
23547MANIFEST_TOOL=$lt_MANIFEST_TOOL
23548
23549# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23550DSYMUTIL=$lt_DSYMUTIL
23551
23552# Tool to change global to local symbols on Mac OS X.
23553NMEDIT=$lt_NMEDIT
23554
23555# Tool to manipulate fat objects and archives on Mac OS X.
23556LIPO=$lt_LIPO
23557
23558# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23559OTOOL=$lt_OTOOL
23560
23561# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23562OTOOL64=$lt_OTOOL64
23563
23564# Old archive suffix (normally "a").
23565libext=$libext
23566
23567# Shared library suffix (normally ".so").
23568shrext_cmds=$lt_shrext_cmds
23569
23570# The commands to extract the exported symbol list from a shared archive.
23571extract_expsyms_cmds=$lt_extract_expsyms_cmds
23572
23573# Variables whose values should be saved in libtool wrapper scripts and
23574# restored at link time.
23575variables_saved_for_relink=$lt_variables_saved_for_relink
23576
23577# Do we need the "lib" prefix for modules?
23578need_lib_prefix=$need_lib_prefix
23579
23580# Do we need a version for libraries?
23581need_version=$need_version
23582
23583# Library versioning type.
23584version_type=$version_type
23585
23586# Shared library runtime path variable.
23587runpath_var=$runpath_var
23588
23589# Shared library path variable.
23590shlibpath_var=$shlibpath_var
23591
23592# Is shlibpath searched before the hard-coded library search path?
23593shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23594
23595# Format of library name prefix.
23596libname_spec=$lt_libname_spec
23597
23598# List of archive names.  First name is the real one, the rest are links.
23599# The last name is the one that the linker finds with -lNAME
23600library_names_spec=$lt_library_names_spec
23601
23602# The coded name of the library, if different from the real name.
23603soname_spec=$lt_soname_spec
23604
23605# Permission mode override for installation of shared libraries.
23606install_override_mode=$lt_install_override_mode
23607
23608# Command to use after installation of a shared archive.
23609postinstall_cmds=$lt_postinstall_cmds
23610
23611# Command to use after uninstallation of a shared archive.
23612postuninstall_cmds=$lt_postuninstall_cmds
23613
23614# Commands used to finish a libtool library installation in a directory.
23615finish_cmds=$lt_finish_cmds
23616
23617# As "finish_cmds", except a single script fragment to be evaled but
23618# not shown.
23619finish_eval=$lt_finish_eval
23620
23621# Whether we should hardcode library paths into libraries.
23622hardcode_into_libs=$hardcode_into_libs
23623
23624# Compile-time system search path for libraries.
23625sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23626
23627# Detected run-time system search path for libraries.
23628sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23629
23630# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23631configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23632
23633# Whether dlopen is supported.
23634dlopen_support=$enable_dlopen
23635
23636# Whether dlopen of programs is supported.
23637dlopen_self=$enable_dlopen_self
23638
23639# Whether dlopen of statically linked programs is supported.
23640dlopen_self_static=$enable_dlopen_self_static
23641
23642# Commands to strip libraries.
23643old_striplib=$lt_old_striplib
23644striplib=$lt_striplib
23645
23646
23647# The linker used to build libraries.
23648LD=$lt_LD
23649
23650# How to create reloadable object files.
23651reload_flag=$lt_reload_flag
23652reload_cmds=$lt_reload_cmds
23653
23654# Commands used to build an old-style archive.
23655old_archive_cmds=$lt_old_archive_cmds
23656
23657# A language specific compiler.
23658CC=$lt_compiler
23659
23660# Is the compiler the GNU compiler?
23661with_gcc=$GCC
23662
23663# Compiler flag to turn off builtin functions.
23664no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23665
23666# Additional compiler flags for building library objects.
23667pic_flag=$lt_lt_prog_compiler_pic
23668
23669# How to pass a linker flag through the compiler.
23670wl=$lt_lt_prog_compiler_wl
23671
23672# Compiler flag to prevent dynamic linking.
23673link_static_flag=$lt_lt_prog_compiler_static
23674
23675# Does compiler simultaneously support -c and -o options?
23676compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23677
23678# Whether or not to add -lc for building shared libraries.
23679build_libtool_need_lc=$archive_cmds_need_lc
23680
23681# Whether or not to disallow shared libs when runtime libs are static.
23682allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23683
23684# Compiler flag to allow reflexive dlopens.
23685export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23686
23687# Compiler flag to generate shared objects directly from archives.
23688whole_archive_flag_spec=$lt_whole_archive_flag_spec
23689
23690# Whether the compiler copes with passing no objects directly.
23691compiler_needs_object=$lt_compiler_needs_object
23692
23693# Create an old-style archive from a shared archive.
23694old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23695
23696# Create a temporary old-style archive to link instead of a shared archive.
23697old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23698
23699# Commands used to build a shared archive.
23700archive_cmds=$lt_archive_cmds
23701archive_expsym_cmds=$lt_archive_expsym_cmds
23702
23703# Commands used to build a loadable module if different from building
23704# a shared archive.
23705module_cmds=$lt_module_cmds
23706module_expsym_cmds=$lt_module_expsym_cmds
23707
23708# Whether we are building with GNU ld or not.
23709with_gnu_ld=$lt_with_gnu_ld
23710
23711# Flag that allows shared libraries with undefined symbols to be built.
23712allow_undefined_flag=$lt_allow_undefined_flag
23713
23714# Flag that enforces no undefined symbols.
23715no_undefined_flag=$lt_no_undefined_flag
23716
23717# Flag to hardcode \$libdir into a binary during linking.
23718# This must work even if \$libdir does not exist
23719hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23720
23721# Whether we need a single "-rpath" flag with a separated argument.
23722hardcode_libdir_separator=$lt_hardcode_libdir_separator
23723
23724# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23725# DIR into the resulting binary.
23726hardcode_direct=$hardcode_direct
23727
23728# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23729# DIR into the resulting binary and the resulting library dependency is
23730# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23731# library is relocated.
23732hardcode_direct_absolute=$hardcode_direct_absolute
23733
23734# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23735# into the resulting binary.
23736hardcode_minus_L=$hardcode_minus_L
23737
23738# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23739# into the resulting binary.
23740hardcode_shlibpath_var=$hardcode_shlibpath_var
23741
23742# Set to "yes" if building a shared library automatically hardcodes DIR
23743# into the library and all subsequent libraries and executables linked
23744# against it.
23745hardcode_automatic=$hardcode_automatic
23746
23747# Set to yes if linker adds runtime paths of dependent libraries
23748# to runtime path list.
23749inherit_rpath=$inherit_rpath
23750
23751# Whether libtool must link a program against all its dependency libraries.
23752link_all_deplibs=$link_all_deplibs
23753
23754# Set to "yes" if exported symbols are required.
23755always_export_symbols=$always_export_symbols
23756
23757# The commands to list exported symbols.
23758export_symbols_cmds=$lt_export_symbols_cmds
23759
23760# Symbols that should not be listed in the preloaded symbols.
23761exclude_expsyms=$lt_exclude_expsyms
23762
23763# Symbols that must always be exported.
23764include_expsyms=$lt_include_expsyms
23765
23766# Commands necessary for linking programs (against libraries) with templates.
23767prelink_cmds=$lt_prelink_cmds
23768
23769# Commands necessary for finishing linking programs.
23770postlink_cmds=$lt_postlink_cmds
23771
23772# Specify filename containing input files.
23773file_list_spec=$lt_file_list_spec
23774
23775# How to hardcode a shared library path into an executable.
23776hardcode_action=$hardcode_action
23777
23778# The directories searched by this compiler when creating a shared library.
23779compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23780
23781# Dependencies to place before and after the objects being linked to
23782# create a shared library.
23783predep_objects=$lt_predep_objects
23784postdep_objects=$lt_postdep_objects
23785predeps=$lt_predeps
23786postdeps=$lt_postdeps
23787
23788# The library search path used internally by the compiler when linking
23789# a shared library.
23790compiler_lib_search_path=$lt_compiler_lib_search_path
23791
23792# ### END LIBTOOL CONFIG
23793
23794_LT_EOF
23795
23796    cat <<'_LT_EOF' >> "$cfgfile"
23797
23798# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23799
23800# func_munge_path_list VARIABLE PATH
23801# -----------------------------------
23802# VARIABLE is name of variable containing _space_ separated list of
23803# directories to be munged by the contents of PATH, which is string
23804# having a format:
23805# "DIR[:DIR]:"
23806#       string "DIR[ DIR]" will be prepended to VARIABLE
23807# ":DIR[:DIR]"
23808#       string "DIR[ DIR]" will be appended to VARIABLE
23809# "DIRP[:DIRP]::[DIRA:]DIRA"
23810#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23811#       "DIRA[ DIRA]" will be appended to VARIABLE
23812# "DIR[:DIR]"
23813#       VARIABLE will be replaced by "DIR[ DIR]"
23814func_munge_path_list ()
23815{
23816    case x$2 in
23817    x)
23818        ;;
23819    *:)
23820        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23821        ;;
23822    x:*)
23823        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23824        ;;
23825    *::*)
23826        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23827        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23828        ;;
23829    *)
23830        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23831        ;;
23832    esac
23833}
23834
23835
23836# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23837func_cc_basename ()
23838{
23839    for cc_temp in $*""; do
23840      case $cc_temp in
23841        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23842        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23843        \-*) ;;
23844        *) break;;
23845      esac
23846    done
23847    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23848}
23849
23850
23851# ### END FUNCTIONS SHARED WITH CONFIGURE
23852
23853_LT_EOF
23854
23855  case $host_os in
23856  aix3*)
23857    cat <<\_LT_EOF >> "$cfgfile"
23858# AIX sometimes has problems with the GCC collect2 program.  For some
23859# reason, if we set the COLLECT_NAMES environment variable, the problems
23860# vanish in a puff of smoke.
23861if test set != "${COLLECT_NAMES+set}"; then
23862  COLLECT_NAMES=
23863  export COLLECT_NAMES
23864fi
23865_LT_EOF
23866    ;;
23867  esac
23868
23869
23870
23871ltmain=$ac_aux_dir/ltmain.sh
23872
23873
23874  # We use sed instead of cat because bash on DJGPP gets confused if
23875  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23876  # text mode, it properly converts lines to CR/LF.  This bash problem
23877  # is reportedly fixed, but why not run on old versions too?
23878  sed '$q' "$ltmain" >> "$cfgfile" \
23879     || (rm -f "$cfgfile"; exit 1)
23880
23881   mv -f "$cfgfile" "$ofile" ||
23882    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23883  chmod +x "$ofile"
23884
23885
23886    cat <<_LT_EOF >> "$ofile"
23887
23888# ### BEGIN LIBTOOL TAG CONFIG: CXX
23889
23890# The linker used to build libraries.
23891LD=$lt_LD_CXX
23892
23893# How to create reloadable object files.
23894reload_flag=$lt_reload_flag_CXX
23895reload_cmds=$lt_reload_cmds_CXX
23896
23897# Commands used to build an old-style archive.
23898old_archive_cmds=$lt_old_archive_cmds_CXX
23899
23900# A language specific compiler.
23901CC=$lt_compiler_CXX
23902
23903# Is the compiler the GNU compiler?
23904with_gcc=$GCC_CXX
23905
23906# Compiler flag to turn off builtin functions.
23907no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23908
23909# Additional compiler flags for building library objects.
23910pic_flag=$lt_lt_prog_compiler_pic_CXX
23911
23912# How to pass a linker flag through the compiler.
23913wl=$lt_lt_prog_compiler_wl_CXX
23914
23915# Compiler flag to prevent dynamic linking.
23916link_static_flag=$lt_lt_prog_compiler_static_CXX
23917
23918# Does compiler simultaneously support -c and -o options?
23919compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23920
23921# Whether or not to add -lc for building shared libraries.
23922build_libtool_need_lc=$archive_cmds_need_lc_CXX
23923
23924# Whether or not to disallow shared libs when runtime libs are static.
23925allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23926
23927# Compiler flag to allow reflexive dlopens.
23928export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23929
23930# Compiler flag to generate shared objects directly from archives.
23931whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23932
23933# Whether the compiler copes with passing no objects directly.
23934compiler_needs_object=$lt_compiler_needs_object_CXX
23935
23936# Create an old-style archive from a shared archive.
23937old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23938
23939# Create a temporary old-style archive to link instead of a shared archive.
23940old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23941
23942# Commands used to build a shared archive.
23943archive_cmds=$lt_archive_cmds_CXX
23944archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23945
23946# Commands used to build a loadable module if different from building
23947# a shared archive.
23948module_cmds=$lt_module_cmds_CXX
23949module_expsym_cmds=$lt_module_expsym_cmds_CXX
23950
23951# Whether we are building with GNU ld or not.
23952with_gnu_ld=$lt_with_gnu_ld_CXX
23953
23954# Flag that allows shared libraries with undefined symbols to be built.
23955allow_undefined_flag=$lt_allow_undefined_flag_CXX
23956
23957# Flag that enforces no undefined symbols.
23958no_undefined_flag=$lt_no_undefined_flag_CXX
23959
23960# Flag to hardcode \$libdir into a binary during linking.
23961# This must work even if \$libdir does not exist
23962hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23963
23964# Whether we need a single "-rpath" flag with a separated argument.
23965hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23966
23967# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23968# DIR into the resulting binary.
23969hardcode_direct=$hardcode_direct_CXX
23970
23971# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23972# DIR into the resulting binary and the resulting library dependency is
23973# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23974# library is relocated.
23975hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23976
23977# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23978# into the resulting binary.
23979hardcode_minus_L=$hardcode_minus_L_CXX
23980
23981# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23982# into the resulting binary.
23983hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23984
23985# Set to "yes" if building a shared library automatically hardcodes DIR
23986# into the library and all subsequent libraries and executables linked
23987# against it.
23988hardcode_automatic=$hardcode_automatic_CXX
23989
23990# Set to yes if linker adds runtime paths of dependent libraries
23991# to runtime path list.
23992inherit_rpath=$inherit_rpath_CXX
23993
23994# Whether libtool must link a program against all its dependency libraries.
23995link_all_deplibs=$link_all_deplibs_CXX
23996
23997# Set to "yes" if exported symbols are required.
23998always_export_symbols=$always_export_symbols_CXX
23999
24000# The commands to list exported symbols.
24001export_symbols_cmds=$lt_export_symbols_cmds_CXX
24002
24003# Symbols that should not be listed in the preloaded symbols.
24004exclude_expsyms=$lt_exclude_expsyms_CXX
24005
24006# Symbols that must always be exported.
24007include_expsyms=$lt_include_expsyms_CXX
24008
24009# Commands necessary for linking programs (against libraries) with templates.
24010prelink_cmds=$lt_prelink_cmds_CXX
24011
24012# Commands necessary for finishing linking programs.
24013postlink_cmds=$lt_postlink_cmds_CXX
24014
24015# Specify filename containing input files.
24016file_list_spec=$lt_file_list_spec_CXX
24017
24018# How to hardcode a shared library path into an executable.
24019hardcode_action=$hardcode_action_CXX
24020
24021# The directories searched by this compiler when creating a shared library.
24022compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24023
24024# Dependencies to place before and after the objects being linked to
24025# create a shared library.
24026predep_objects=$lt_predep_objects_CXX
24027postdep_objects=$lt_postdep_objects_CXX
24028predeps=$lt_predeps_CXX
24029postdeps=$lt_postdeps_CXX
24030
24031# The library search path used internally by the compiler when linking
24032# a shared library.
24033compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24034
24035# ### END LIBTOOL TAG CONFIG: CXX
24036_LT_EOF
24037
24038 ;;
24039
24040  esac
24041done # for ac_tag
24042
24043
24044as_fn_exit 0
24045_ACEOF
24046ac_clean_files=$ac_clean_files_save
24047
24048test $ac_write_fail = 0 ||
24049  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24050
24051
24052# configure is writing to config.log, and then calls config.status.
24053# config.status does its own redirection, appending to config.log.
24054# Unfortunately, on DOS this fails, as config.log is still kept open
24055# by configure, so config.status won't be able to write to it; its
24056# output is simply discarded.  So we exec the FD to /dev/null,
24057# effectively closing config.log, so it can be properly (re)opened and
24058# appended to by config.status.  When coming back to configure, we
24059# need to make the FD available again.
24060if test "$no_create" != yes; then
24061  ac_cs_success=:
24062  ac_config_status_args=
24063  test "$silent" = yes &&
24064    ac_config_status_args="$ac_config_status_args --quiet"
24065  exec 5>/dev/null
24066  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24067  exec 5>>config.log
24068  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24069  # would make configure fail if this is the last instruction.
24070  $ac_cs_success || as_fn_exit 1
24071fi
24072if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24073  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24074printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24075fi
24076
24077
24078