1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 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
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    PATH=/empty FPATH=/empty; export PATH FPATH
205    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$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# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="Tools/CmdLine/IccDumpProfile/iccDumpProfile.cpp"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636SAMPLEICC_MICRO_VERSION
637SAMPLEICC_MINOR_VERSION
638SAMPLEICC_MAJOR_VERSION
639OSX_APPLICATION_LIBS
640AM_CXXFLAGS
641AM_CFLAGS
642SICC_ICC_APPLY_PROFILES
643TIFF_LIBS
644TIFF_LDFLAGS
645TIFF_CPPFLAGS
646CXXCPP
647CPP
648OTOOL64
649OTOOL
650LIPO
651NMEDIT
652DSYMUTIL
653MANIFEST_TOOL
654RANLIB
655ac_ct_AR
656AR
657DLLTOOL
658OBJDUMP
659NM
660ac_ct_DUMPBIN
661DUMPBIN
662LD
663FGREP
664EGREP
665GREP
666SED
667LIBTOOL
668LN_S
669am__fastdepCC_FALSE
670am__fastdepCC_TRUE
671CCDEPMODE
672ac_ct_CC
673CFLAGS
674CC
675am__fastdepCXX_FALSE
676am__fastdepCXX_TRUE
677CXXDEPMODE
678am__nodep
679AMDEPBACKSLASH
680AMDEP_FALSE
681AMDEP_TRUE
682am__quote
683am__include
684DEPDIR
685OBJEXT
686EXEEXT
687ac_ct_CXX
688CPPFLAGS
689LDFLAGS
690CXXFLAGS
691CXX
692MAINT
693MAINTAINER_MODE_FALSE
694MAINTAINER_MODE_TRUE
695am__untar
696am__tar
697AMTAR
698am__leading_dot
699SET_MAKE
700AWK
701mkdir_p
702MKDIR_P
703INSTALL_STRIP_PROGRAM
704STRIP
705install_sh
706MAKEINFO
707AUTOHEADER
708AUTOMAKE
709AUTOCONF
710ACLOCAL
711VERSION
712PACKAGE
713CYGPATH_W
714am__isrc
715INSTALL_DATA
716INSTALL_SCRIPT
717INSTALL_PROGRAM
718LIBTOOL_VERSION
719SAMPLEICC_VERSION
720target_os
721target_vendor
722target_cpu
723target
724host_os
725host_vendor
726host_cpu
727host
728build_os
729build_vendor
730build_cpu
731build
732target_alias
733host_alias
734build_alias
735LIBS
736ECHO_T
737ECHO_N
738ECHO_C
739DEFS
740mandir
741localedir
742libdir
743psdir
744pdfdir
745dvidir
746htmldir
747infodir
748docdir
749oldincludedir
750includedir
751localstatedir
752sharedstatedir
753sysconfdir
754datadir
755datarootdir
756libexecdir
757sbindir
758bindir
759program_transform_name
760prefix
761exec_prefix
762PACKAGE_URL
763PACKAGE_BUGREPORT
764PACKAGE_STRING
765PACKAGE_VERSION
766PACKAGE_TARNAME
767PACKAGE_NAME
768PATH_SEPARATOR
769SHELL'
770ac_subst_files=''
771ac_user_opts='
772enable_option_checking
773enable_maintainer_mode
774enable_dependency_tracking
775enable_shared
776enable_static
777with_pic
778enable_fast_install
779with_gnu_ld
780with_sysroot
781enable_libtool_lock
782with_tifflib
783'
784      ac_precious_vars='build_alias
785host_alias
786target_alias
787CXX
788CXXFLAGS
789LDFLAGS
790LIBS
791CPPFLAGS
792CCC
793CC
794CFLAGS
795CPP
796CXXCPP'
797
798
799# Initialize some variables set by options.
800ac_init_help=
801ac_init_version=false
802ac_unrecognized_opts=
803ac_unrecognized_sep=
804# The variables have the same names as the options, with
805# dashes changed to underlines.
806cache_file=/dev/null
807exec_prefix=NONE
808no_create=
809no_recursion=
810prefix=NONE
811program_prefix=NONE
812program_suffix=NONE
813program_transform_name=s,x,x,
814silent=
815site=
816srcdir=
817verbose=
818x_includes=NONE
819x_libraries=NONE
820
821# Installation directory options.
822# These are left unexpanded so users can "make install exec_prefix=/foo"
823# and all the variables that are supposed to be based on exec_prefix
824# by default will actually change.
825# Use braces instead of parens because sh, perl, etc. also accept them.
826# (The list follows the same order as the GNU Coding Standards.)
827bindir='${exec_prefix}/bin'
828sbindir='${exec_prefix}/sbin'
829libexecdir='${exec_prefix}/libexec'
830datarootdir='${prefix}/share'
831datadir='${datarootdir}'
832sysconfdir='${prefix}/etc'
833sharedstatedir='${prefix}/com'
834localstatedir='${prefix}/var'
835includedir='${prefix}/include'
836oldincludedir='/usr/include'
837docdir='${datarootdir}/doc/${PACKAGE}'
838infodir='${datarootdir}/info'
839htmldir='${docdir}'
840dvidir='${docdir}'
841pdfdir='${docdir}'
842psdir='${docdir}'
843libdir='${exec_prefix}/lib'
844localedir='${datarootdir}/locale'
845mandir='${datarootdir}/man'
846
847ac_prev=
848ac_dashdash=
849for ac_option
850do
851  # If the previous option needs an argument, assign it.
852  if test -n "$ac_prev"; then
853    eval $ac_prev=\$ac_option
854    ac_prev=
855    continue
856  fi
857
858  case $ac_option in
859  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860  *=)   ac_optarg= ;;
861  *)    ac_optarg=yes ;;
862  esac
863
864  # Accept the important Cygnus configure options, so we can diagnose typos.
865
866  case $ac_dashdash$ac_option in
867  --)
868    ac_dashdash=yes ;;
869
870  -bindir | --bindir | --bindi | --bind | --bin | --bi)
871    ac_prev=bindir ;;
872  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873    bindir=$ac_optarg ;;
874
875  -build | --build | --buil | --bui | --bu)
876    ac_prev=build_alias ;;
877  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878    build_alias=$ac_optarg ;;
879
880  -cache-file | --cache-file | --cache-fil | --cache-fi \
881  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882    ac_prev=cache_file ;;
883  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885    cache_file=$ac_optarg ;;
886
887  --config-cache | -C)
888    cache_file=config.cache ;;
889
890  -datadir | --datadir | --datadi | --datad)
891    ac_prev=datadir ;;
892  -datadir=* | --datadir=* | --datadi=* | --datad=*)
893    datadir=$ac_optarg ;;
894
895  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896  | --dataroo | --dataro | --datar)
897    ac_prev=datarootdir ;;
898  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900    datarootdir=$ac_optarg ;;
901
902  -disable-* | --disable-*)
903    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904    # Reject names that are not valid shell variable names.
905    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906      as_fn_error $? "invalid feature name: $ac_useropt"
907    ac_useropt_orig=$ac_useropt
908    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909    case $ac_user_opts in
910      *"
911"enable_$ac_useropt"
912"*) ;;
913      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914	 ac_unrecognized_sep=', ';;
915    esac
916    eval enable_$ac_useropt=no ;;
917
918  -docdir | --docdir | --docdi | --doc | --do)
919    ac_prev=docdir ;;
920  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921    docdir=$ac_optarg ;;
922
923  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924    ac_prev=dvidir ;;
925  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926    dvidir=$ac_optarg ;;
927
928  -enable-* | --enable-*)
929    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930    # Reject names that are not valid shell variable names.
931    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932      as_fn_error $? "invalid feature name: $ac_useropt"
933    ac_useropt_orig=$ac_useropt
934    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935    case $ac_user_opts in
936      *"
937"enable_$ac_useropt"
938"*) ;;
939      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940	 ac_unrecognized_sep=', ';;
941    esac
942    eval enable_$ac_useropt=\$ac_optarg ;;
943
944  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946  | --exec | --exe | --ex)
947    ac_prev=exec_prefix ;;
948  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950  | --exec=* | --exe=* | --ex=*)
951    exec_prefix=$ac_optarg ;;
952
953  -gas | --gas | --ga | --g)
954    # Obsolete; use --with-gas.
955    with_gas=yes ;;
956
957  -help | --help | --hel | --he | -h)
958    ac_init_help=long ;;
959  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960    ac_init_help=recursive ;;
961  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962    ac_init_help=short ;;
963
964  -host | --host | --hos | --ho)
965    ac_prev=host_alias ;;
966  -host=* | --host=* | --hos=* | --ho=*)
967    host_alias=$ac_optarg ;;
968
969  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970    ac_prev=htmldir ;;
971  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972  | --ht=*)
973    htmldir=$ac_optarg ;;
974
975  -includedir | --includedir | --includedi | --included | --include \
976  | --includ | --inclu | --incl | --inc)
977    ac_prev=includedir ;;
978  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979  | --includ=* | --inclu=* | --incl=* | --inc=*)
980    includedir=$ac_optarg ;;
981
982  -infodir | --infodir | --infodi | --infod | --info | --inf)
983    ac_prev=infodir ;;
984  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985    infodir=$ac_optarg ;;
986
987  -libdir | --libdir | --libdi | --libd)
988    ac_prev=libdir ;;
989  -libdir=* | --libdir=* | --libdi=* | --libd=*)
990    libdir=$ac_optarg ;;
991
992  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993  | --libexe | --libex | --libe)
994    ac_prev=libexecdir ;;
995  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996  | --libexe=* | --libex=* | --libe=*)
997    libexecdir=$ac_optarg ;;
998
999  -localedir | --localedir | --localedi | --localed | --locale)
1000    ac_prev=localedir ;;
1001  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002    localedir=$ac_optarg ;;
1003
1004  -localstatedir | --localstatedir | --localstatedi | --localstated \
1005  | --localstate | --localstat | --localsta | --localst | --locals)
1006    ac_prev=localstatedir ;;
1007  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009    localstatedir=$ac_optarg ;;
1010
1011  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012    ac_prev=mandir ;;
1013  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014    mandir=$ac_optarg ;;
1015
1016  -nfp | --nfp | --nf)
1017    # Obsolete; use --without-fp.
1018    with_fp=no ;;
1019
1020  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021  | --no-cr | --no-c | -n)
1022    no_create=yes ;;
1023
1024  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026    no_recursion=yes ;;
1027
1028  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030  | --oldin | --oldi | --old | --ol | --o)
1031    ac_prev=oldincludedir ;;
1032  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035    oldincludedir=$ac_optarg ;;
1036
1037  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038    ac_prev=prefix ;;
1039  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040    prefix=$ac_optarg ;;
1041
1042  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043  | --program-pre | --program-pr | --program-p)
1044    ac_prev=program_prefix ;;
1045  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047    program_prefix=$ac_optarg ;;
1048
1049  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050  | --program-suf | --program-su | --program-s)
1051    ac_prev=program_suffix ;;
1052  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054    program_suffix=$ac_optarg ;;
1055
1056  -program-transform-name | --program-transform-name \
1057  | --program-transform-nam | --program-transform-na \
1058  | --program-transform-n | --program-transform- \
1059  | --program-transform | --program-transfor \
1060  | --program-transfo | --program-transf \
1061  | --program-trans | --program-tran \
1062  | --progr-tra | --program-tr | --program-t)
1063    ac_prev=program_transform_name ;;
1064  -program-transform-name=* | --program-transform-name=* \
1065  | --program-transform-nam=* | --program-transform-na=* \
1066  | --program-transform-n=* | --program-transform-=* \
1067  | --program-transform=* | --program-transfor=* \
1068  | --program-transfo=* | --program-transf=* \
1069  | --program-trans=* | --program-tran=* \
1070  | --progr-tra=* | --program-tr=* | --program-t=*)
1071    program_transform_name=$ac_optarg ;;
1072
1073  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074    ac_prev=pdfdir ;;
1075  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076    pdfdir=$ac_optarg ;;
1077
1078  -psdir | --psdir | --psdi | --psd | --ps)
1079    ac_prev=psdir ;;
1080  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081    psdir=$ac_optarg ;;
1082
1083  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084  | -silent | --silent | --silen | --sile | --sil)
1085    silent=yes ;;
1086
1087  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088    ac_prev=sbindir ;;
1089  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090  | --sbi=* | --sb=*)
1091    sbindir=$ac_optarg ;;
1092
1093  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095  | --sharedst | --shareds | --shared | --share | --shar \
1096  | --sha | --sh)
1097    ac_prev=sharedstatedir ;;
1098  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101  | --sha=* | --sh=*)
1102    sharedstatedir=$ac_optarg ;;
1103
1104  -site | --site | --sit)
1105    ac_prev=site ;;
1106  -site=* | --site=* | --sit=*)
1107    site=$ac_optarg ;;
1108
1109  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110    ac_prev=srcdir ;;
1111  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112    srcdir=$ac_optarg ;;
1113
1114  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115  | --syscon | --sysco | --sysc | --sys | --sy)
1116    ac_prev=sysconfdir ;;
1117  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119    sysconfdir=$ac_optarg ;;
1120
1121  -target | --target | --targe | --targ | --tar | --ta | --t)
1122    ac_prev=target_alias ;;
1123  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124    target_alias=$ac_optarg ;;
1125
1126  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127    verbose=yes ;;
1128
1129  -version | --version | --versio | --versi | --vers | -V)
1130    ac_init_version=: ;;
1131
1132  -with-* | --with-*)
1133    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134    # Reject names that are not valid shell variable names.
1135    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136      as_fn_error $? "invalid package name: $ac_useropt"
1137    ac_useropt_orig=$ac_useropt
1138    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139    case $ac_user_opts in
1140      *"
1141"with_$ac_useropt"
1142"*) ;;
1143      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144	 ac_unrecognized_sep=', ';;
1145    esac
1146    eval with_$ac_useropt=\$ac_optarg ;;
1147
1148  -without-* | --without-*)
1149    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150    # Reject names that are not valid shell variable names.
1151    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152      as_fn_error $? "invalid package name: $ac_useropt"
1153    ac_useropt_orig=$ac_useropt
1154    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155    case $ac_user_opts in
1156      *"
1157"with_$ac_useropt"
1158"*) ;;
1159      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160	 ac_unrecognized_sep=', ';;
1161    esac
1162    eval with_$ac_useropt=no ;;
1163
1164  --x)
1165    # Obsolete; use --with-x.
1166    with_x=yes ;;
1167
1168  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169  | --x-incl | --x-inc | --x-in | --x-i)
1170    ac_prev=x_includes ;;
1171  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173    x_includes=$ac_optarg ;;
1174
1175  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177    ac_prev=x_libraries ;;
1178  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180    x_libraries=$ac_optarg ;;
1181
1182  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1183Try \`$0 --help' for more information"
1184    ;;
1185
1186  *=*)
1187    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188    # Reject names that are not valid shell variable names.
1189    case $ac_envvar in #(
1190      '' | [0-9]* | *[!_$as_cr_alnum]* )
1191      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1192    esac
1193    eval $ac_envvar=\$ac_optarg
1194    export $ac_envvar ;;
1195
1196  *)
1197    # FIXME: should be removed in autoconf 3.0.
1198    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1202    ;;
1203
1204  esac
1205done
1206
1207if test -n "$ac_prev"; then
1208  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209  as_fn_error $? "missing argument to $ac_option"
1210fi
1211
1212if test -n "$ac_unrecognized_opts"; then
1213  case $enable_option_checking in
1214    no) ;;
1215    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1216    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217  esac
1218fi
1219
1220# Check all directory arguments for consistency.
1221for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222		datadir sysconfdir sharedstatedir localstatedir includedir \
1223		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224		libdir localedir mandir
1225do
1226  eval ac_val=\$$ac_var
1227  # Remove trailing slashes.
1228  case $ac_val in
1229    */ )
1230      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231      eval $ac_var=\$ac_val;;
1232  esac
1233  # Be sure to have absolute directory names.
1234  case $ac_val in
1235    [\\/$]* | ?:[\\/]* )  continue;;
1236    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1237  esac
1238  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1239done
1240
1241# There might be people who depend on the old broken behavior: `$host'
1242# used to hold the argument of --host etc.
1243# FIXME: To remove some day.
1244build=$build_alias
1245host=$host_alias
1246target=$target_alias
1247
1248# FIXME: To remove some day.
1249if test "x$host_alias" != x; then
1250  if test "x$build_alias" = x; then
1251    cross_compiling=maybe
1252  elif test "x$build_alias" != "x$host_alias"; then
1253    cross_compiling=yes
1254  fi
1255fi
1256
1257ac_tool_prefix=
1258test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259
1260test "$silent" = yes && exec 6>/dev/null
1261
1262
1263ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264ac_ls_di=`ls -di .` &&
1265ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266  as_fn_error $? "working directory cannot be determined"
1267test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268  as_fn_error $? "pwd does not report name of working directory"
1269
1270
1271# Find the source files, if location was not specified.
1272if test -z "$srcdir"; then
1273  ac_srcdir_defaulted=yes
1274  # Try the directory containing this script, then the parent directory.
1275  ac_confdir=`$as_dirname -- "$as_myself" ||
1276$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277	 X"$as_myself" : 'X\(//\)[^/]' \| \
1278	 X"$as_myself" : 'X\(//\)$' \| \
1279	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280$as_echo X"$as_myself" |
1281    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282	    s//\1/
1283	    q
1284	  }
1285	  /^X\(\/\/\)[^/].*/{
1286	    s//\1/
1287	    q
1288	  }
1289	  /^X\(\/\/\)$/{
1290	    s//\1/
1291	    q
1292	  }
1293	  /^X\(\/\).*/{
1294	    s//\1/
1295	    q
1296	  }
1297	  s/.*/./; q'`
1298  srcdir=$ac_confdir
1299  if test ! -r "$srcdir/$ac_unique_file"; then
1300    srcdir=..
1301  fi
1302else
1303  ac_srcdir_defaulted=no
1304fi
1305if test ! -r "$srcdir/$ac_unique_file"; then
1306  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1308fi
1309ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310ac_abs_confdir=`(
1311	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1312	pwd)`
1313# When building in place, set srcdir=.
1314if test "$ac_abs_confdir" = "$ac_pwd"; then
1315  srcdir=.
1316fi
1317# Remove unnecessary trailing slashes from srcdir.
1318# Double slashes in file names in object file debugging info
1319# mess up M-x gdb in Emacs.
1320case $srcdir in
1321*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322esac
1323for ac_var in $ac_precious_vars; do
1324  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325  eval ac_env_${ac_var}_value=\$${ac_var}
1326  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328done
1329
1330#
1331# Report the --help message.
1332#
1333if test "$ac_init_help" = "long"; then
1334  # Omit some internal or obsolete options to make the list less imposing.
1335  # This message is too long to be a string in the A/UX 3.1 sh.
1336  cat <<_ACEOF
1337\`configure' configures this package to adapt to many kinds of systems.
1338
1339Usage: $0 [OPTION]... [VAR=VALUE]...
1340
1341To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342VAR=VALUE.  See below for descriptions of some of the useful variables.
1343
1344Defaults for the options are specified in brackets.
1345
1346Configuration:
1347  -h, --help              display this help and exit
1348      --help=short        display options specific to this package
1349      --help=recursive    display the short help of all the included packages
1350  -V, --version           display version information and exit
1351  -q, --quiet, --silent   do not print \`checking ...' messages
1352      --cache-file=FILE   cache test results in FILE [disabled]
1353  -C, --config-cache      alias for \`--cache-file=config.cache'
1354  -n, --no-create         do not create output files
1355      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1356
1357Installation directories:
1358  --prefix=PREFIX         install architecture-independent files in PREFIX
1359                          [$ac_default_prefix]
1360  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1361                          [PREFIX]
1362
1363By default, \`make install' will install all the files in
1364\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1365an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366for instance \`--prefix=\$HOME'.
1367
1368For better control, use the options below.
1369
1370Fine tuning of the installation directories:
1371  --bindir=DIR            user executables [EPREFIX/bin]
1372  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1373  --libexecdir=DIR        program executables [EPREFIX/libexec]
1374  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1375  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1376  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1377  --libdir=DIR            object code libraries [EPREFIX/lib]
1378  --includedir=DIR        C header files [PREFIX/include]
1379  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1380  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1381  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1382  --infodir=DIR           info documentation [DATAROOTDIR/info]
1383  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1384  --mandir=DIR            man documentation [DATAROOTDIR/man]
1385  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1386  --htmldir=DIR           html documentation [DOCDIR]
1387  --dvidir=DIR            dvi documentation [DOCDIR]
1388  --pdfdir=DIR            pdf documentation [DOCDIR]
1389  --psdir=DIR             ps documentation [DOCDIR]
1390_ACEOF
1391
1392  cat <<\_ACEOF
1393
1394Program names:
1395  --program-prefix=PREFIX            prepend PREFIX to installed program names
1396  --program-suffix=SUFFIX            append SUFFIX to installed program names
1397  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1398
1399System types:
1400  --build=BUILD     configure for building on BUILD [guessed]
1401  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1402  --target=TARGET   configure for building compilers for TARGET [HOST]
1403_ACEOF
1404fi
1405
1406if test -n "$ac_init_help"; then
1407
1408  cat <<\_ACEOF
1409
1410Optional Features:
1411  --disable-option-checking  ignore unrecognized --enable/--with options
1412  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1413  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1414  --enable-maintainer-mode
1415                          enable make rules and dependencies not useful (and
1416                          sometimes confusing) to the casual installer
1417  --enable-dependency-tracking
1418                          do not reject slow dependency extractors
1419  --disable-dependency-tracking
1420                          speeds up one-time build
1421  --enable-shared[=PKGS]  build shared libraries [default=yes]
1422  --enable-static[=PKGS]  build static libraries [default=yes]
1423  --enable-fast-install[=PKGS]
1424                          optimize for fast installation [default=yes]
1425  --disable-libtool-lock  avoid locking (might break parallel builds)
1426
1427Optional Packages:
1428  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1431                          both]
1432  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1433  --with-sysroot=DIR Search for dependent libraries within DIR
1434                        (or the compiler's sysroot if not specified).
1435  --with-tifflib=DIR       prefix for TIFF library files and headers
1436
1437Some influential environment variables:
1438  CXX         C++ compiler command
1439  CXXFLAGS    C++ compiler flags
1440  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1441              nonstandard directory <lib dir>
1442  LIBS        libraries to pass to the linker, e.g. -l<library>
1443  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444              you have headers in a nonstandard directory <include dir>
1445  CC          C compiler command
1446  CFLAGS      C compiler flags
1447  CPP         C preprocessor
1448  CXXCPP      C++ preprocessor
1449
1450Use these variables to override the choices made by `configure' or to help
1451it to find libraries and programs with nonstandard names/locations.
1452
1453Report bugs to the package provider.
1454_ACEOF
1455ac_status=$?
1456fi
1457
1458if test "$ac_init_help" = "recursive"; then
1459  # If there are subdirs, report their specific --help.
1460  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461    test -d "$ac_dir" ||
1462      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463      continue
1464    ac_builddir=.
1465
1466case "$ac_dir" in
1467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468*)
1469  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1470  # A ".." for each directory in $ac_dir_suffix.
1471  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472  case $ac_top_builddir_sub in
1473  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475  esac ;;
1476esac
1477ac_abs_top_builddir=$ac_pwd
1478ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479# for backward compatibility:
1480ac_top_builddir=$ac_top_build_prefix
1481
1482case $srcdir in
1483  .)  # We are building in place.
1484    ac_srcdir=.
1485    ac_top_srcdir=$ac_top_builddir_sub
1486    ac_abs_top_srcdir=$ac_pwd ;;
1487  [\\/]* | ?:[\\/]* )  # Absolute name.
1488    ac_srcdir=$srcdir$ac_dir_suffix;
1489    ac_top_srcdir=$srcdir
1490    ac_abs_top_srcdir=$srcdir ;;
1491  *) # Relative name.
1492    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493    ac_top_srcdir=$ac_top_build_prefix$srcdir
1494    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495esac
1496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498    cd "$ac_dir" || { ac_status=$?; continue; }
1499    # Check for guested configure.
1500    if test -f "$ac_srcdir/configure.gnu"; then
1501      echo &&
1502      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503    elif test -f "$ac_srcdir/configure"; then
1504      echo &&
1505      $SHELL "$ac_srcdir/configure" --help=recursive
1506    else
1507      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508    fi || ac_status=$?
1509    cd "$ac_pwd" || { ac_status=$?; break; }
1510  done
1511fi
1512
1513test -n "$ac_init_help" && exit $ac_status
1514if $ac_init_version; then
1515  cat <<\_ACEOF
1516configure
1517generated by GNU Autoconf 2.69
1518
1519Copyright (C) 2012 Free Software Foundation, Inc.
1520This configure script is free software; the Free Software Foundation
1521gives unlimited permission to copy, distribute and modify it.
1522_ACEOF
1523  exit
1524fi
1525
1526## ------------------------ ##
1527## Autoconf initialization. ##
1528## ------------------------ ##
1529
1530# ac_fn_cxx_try_compile LINENO
1531# ----------------------------
1532# Try to compile conftest.$ac_ext, and return whether this succeeded.
1533ac_fn_cxx_try_compile ()
1534{
1535  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536  rm -f conftest.$ac_objext
1537  if { { ac_try="$ac_compile"
1538case "(($ac_try" in
1539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540  *) ac_try_echo=$ac_try;;
1541esac
1542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543$as_echo "$ac_try_echo"; } >&5
1544  (eval "$ac_compile") 2>conftest.err
1545  ac_status=$?
1546  if test -s conftest.err; then
1547    grep -v '^ *+' conftest.err >conftest.er1
1548    cat conftest.er1 >&5
1549    mv -f conftest.er1 conftest.err
1550  fi
1551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552  test $ac_status = 0; } && {
1553	 test -z "$ac_cxx_werror_flag" ||
1554	 test ! -s conftest.err
1555       } && test -s conftest.$ac_objext; then :
1556  ac_retval=0
1557else
1558  $as_echo "$as_me: failed program was:" >&5
1559sed 's/^/| /' conftest.$ac_ext >&5
1560
1561	ac_retval=1
1562fi
1563  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564  as_fn_set_status $ac_retval
1565
1566} # ac_fn_cxx_try_compile
1567
1568# ac_fn_c_try_compile LINENO
1569# --------------------------
1570# Try to compile conftest.$ac_ext, and return whether this succeeded.
1571ac_fn_c_try_compile ()
1572{
1573  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574  rm -f conftest.$ac_objext
1575  if { { ac_try="$ac_compile"
1576case "(($ac_try" in
1577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578  *) ac_try_echo=$ac_try;;
1579esac
1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581$as_echo "$ac_try_echo"; } >&5
1582  (eval "$ac_compile") 2>conftest.err
1583  ac_status=$?
1584  if test -s conftest.err; then
1585    grep -v '^ *+' conftest.err >conftest.er1
1586    cat conftest.er1 >&5
1587    mv -f conftest.er1 conftest.err
1588  fi
1589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590  test $ac_status = 0; } && {
1591	 test -z "$ac_c_werror_flag" ||
1592	 test ! -s conftest.err
1593       } && test -s conftest.$ac_objext; then :
1594  ac_retval=0
1595else
1596  $as_echo "$as_me: failed program was:" >&5
1597sed 's/^/| /' conftest.$ac_ext >&5
1598
1599	ac_retval=1
1600fi
1601  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602  as_fn_set_status $ac_retval
1603
1604} # ac_fn_c_try_compile
1605
1606# ac_fn_c_try_link LINENO
1607# -----------------------
1608# Try to link conftest.$ac_ext, and return whether this succeeded.
1609ac_fn_c_try_link ()
1610{
1611  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612  rm -f conftest.$ac_objext conftest$ac_exeext
1613  if { { ac_try="$ac_link"
1614case "(($ac_try" in
1615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616  *) ac_try_echo=$ac_try;;
1617esac
1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619$as_echo "$ac_try_echo"; } >&5
1620  (eval "$ac_link") 2>conftest.err
1621  ac_status=$?
1622  if test -s conftest.err; then
1623    grep -v '^ *+' conftest.err >conftest.er1
1624    cat conftest.er1 >&5
1625    mv -f conftest.er1 conftest.err
1626  fi
1627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628  test $ac_status = 0; } && {
1629	 test -z "$ac_c_werror_flag" ||
1630	 test ! -s conftest.err
1631       } && test -s conftest$ac_exeext && {
1632	 test "$cross_compiling" = yes ||
1633	 test -x conftest$ac_exeext
1634       }; then :
1635  ac_retval=0
1636else
1637  $as_echo "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640	ac_retval=1
1641fi
1642  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1643  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1644  # interfere with the next link command; also delete a directory that is
1645  # left behind by Apple's compiler.  We do this before executing the actions.
1646  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648  as_fn_set_status $ac_retval
1649
1650} # ac_fn_c_try_link
1651
1652# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653# -------------------------------------------------------
1654# Tests whether HEADER exists and can be compiled using the include files in
1655# INCLUDES, setting the cache variable VAR accordingly.
1656ac_fn_c_check_header_compile ()
1657{
1658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660$as_echo_n "checking for $2... " >&6; }
1661if eval \${$3+:} false; then :
1662  $as_echo_n "(cached) " >&6
1663else
1664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665/* end confdefs.h.  */
1666$4
1667#include <$2>
1668_ACEOF
1669if ac_fn_c_try_compile "$LINENO"; then :
1670  eval "$3=yes"
1671else
1672  eval "$3=no"
1673fi
1674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1675fi
1676eval ac_res=\$$3
1677	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678$as_echo "$ac_res" >&6; }
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680
1681} # ac_fn_c_check_header_compile
1682
1683# ac_fn_c_try_cpp LINENO
1684# ----------------------
1685# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1686ac_fn_c_try_cpp ()
1687{
1688  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689  if { { ac_try="$ac_cpp conftest.$ac_ext"
1690case "(($ac_try" in
1691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692  *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1697  ac_status=$?
1698  if test -s conftest.err; then
1699    grep -v '^ *+' conftest.err >conftest.er1
1700    cat conftest.er1 >&5
1701    mv -f conftest.er1 conftest.err
1702  fi
1703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704  test $ac_status = 0; } > conftest.i && {
1705	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1706	 test ! -s conftest.err
1707       }; then :
1708  ac_retval=0
1709else
1710  $as_echo "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
1713    ac_retval=1
1714fi
1715  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716  as_fn_set_status $ac_retval
1717
1718} # ac_fn_c_try_cpp
1719
1720# ac_fn_c_try_run LINENO
1721# ----------------------
1722# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1723# that executables *can* be run.
1724ac_fn_c_try_run ()
1725{
1726  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727  if { { ac_try="$ac_link"
1728case "(($ac_try" in
1729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730  *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734  (eval "$ac_link") 2>&5
1735  ac_status=$?
1736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1738  { { case "(($ac_try" in
1739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740  *) ac_try_echo=$ac_try;;
1741esac
1742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743$as_echo "$ac_try_echo"; } >&5
1744  (eval "$ac_try") 2>&5
1745  ac_status=$?
1746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747  test $ac_status = 0; }; }; then :
1748  ac_retval=0
1749else
1750  $as_echo "$as_me: program exited with status $ac_status" >&5
1751       $as_echo "$as_me: failed program was:" >&5
1752sed 's/^/| /' conftest.$ac_ext >&5
1753
1754       ac_retval=$ac_status
1755fi
1756  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758  as_fn_set_status $ac_retval
1759
1760} # ac_fn_c_try_run
1761
1762# ac_fn_c_check_func LINENO FUNC VAR
1763# ----------------------------------
1764# Tests whether FUNC exists, setting the cache variable VAR accordingly
1765ac_fn_c_check_func ()
1766{
1767  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769$as_echo_n "checking for $2... " >&6; }
1770if eval \${$3+:} false; then :
1771  $as_echo_n "(cached) " >&6
1772else
1773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h.  */
1775/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1776   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1777#define $2 innocuous_$2
1778
1779/* System header to define __stub macros and hopefully few prototypes,
1780    which can conflict with char $2 (); below.
1781    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1782    <limits.h> exists even on freestanding compilers.  */
1783
1784#ifdef __STDC__
1785# include <limits.h>
1786#else
1787# include <assert.h>
1788#endif
1789
1790#undef $2
1791
1792/* Override any GCC internal prototype to avoid an error.
1793   Use char because int might match the return type of a GCC
1794   builtin and then its argument prototype would still apply.  */
1795#ifdef __cplusplus
1796extern "C"
1797#endif
1798char $2 ();
1799/* The GNU C library defines this for functions which it implements
1800    to always fail with ENOSYS.  Some functions are actually named
1801    something starting with __ and the normal name is an alias.  */
1802#if defined __stub_$2 || defined __stub___$2
1803choke me
1804#endif
1805
1806int
1807main ()
1808{
1809return $2 ();
1810  ;
1811  return 0;
1812}
1813_ACEOF
1814if ac_fn_c_try_link "$LINENO"; then :
1815  eval "$3=yes"
1816else
1817  eval "$3=no"
1818fi
1819rm -f core conftest.err conftest.$ac_objext \
1820    conftest$ac_exeext conftest.$ac_ext
1821fi
1822eval ac_res=\$$3
1823	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824$as_echo "$ac_res" >&6; }
1825  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826
1827} # ac_fn_c_check_func
1828
1829# ac_fn_cxx_try_cpp LINENO
1830# ------------------------
1831# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1832ac_fn_cxx_try_cpp ()
1833{
1834  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835  if { { ac_try="$ac_cpp conftest.$ac_ext"
1836case "(($ac_try" in
1837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838  *) ac_try_echo=$ac_try;;
1839esac
1840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841$as_echo "$ac_try_echo"; } >&5
1842  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1843  ac_status=$?
1844  if test -s conftest.err; then
1845    grep -v '^ *+' conftest.err >conftest.er1
1846    cat conftest.er1 >&5
1847    mv -f conftest.er1 conftest.err
1848  fi
1849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850  test $ac_status = 0; } > conftest.i && {
1851	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1852	 test ! -s conftest.err
1853       }; then :
1854  ac_retval=0
1855else
1856  $as_echo "$as_me: failed program was:" >&5
1857sed 's/^/| /' conftest.$ac_ext >&5
1858
1859    ac_retval=1
1860fi
1861  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862  as_fn_set_status $ac_retval
1863
1864} # ac_fn_cxx_try_cpp
1865
1866# ac_fn_cxx_try_link LINENO
1867# -------------------------
1868# Try to link conftest.$ac_ext, and return whether this succeeded.
1869ac_fn_cxx_try_link ()
1870{
1871  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872  rm -f conftest.$ac_objext conftest$ac_exeext
1873  if { { ac_try="$ac_link"
1874case "(($ac_try" in
1875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876  *) ac_try_echo=$ac_try;;
1877esac
1878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879$as_echo "$ac_try_echo"; } >&5
1880  (eval "$ac_link") 2>conftest.err
1881  ac_status=$?
1882  if test -s conftest.err; then
1883    grep -v '^ *+' conftest.err >conftest.er1
1884    cat conftest.er1 >&5
1885    mv -f conftest.er1 conftest.err
1886  fi
1887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888  test $ac_status = 0; } && {
1889	 test -z "$ac_cxx_werror_flag" ||
1890	 test ! -s conftest.err
1891       } && test -s conftest$ac_exeext && {
1892	 test "$cross_compiling" = yes ||
1893	 test -x conftest$ac_exeext
1894       }; then :
1895  ac_retval=0
1896else
1897  $as_echo "$as_me: failed program was:" >&5
1898sed 's/^/| /' conftest.$ac_ext >&5
1899
1900	ac_retval=1
1901fi
1902  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1903  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1904  # interfere with the next link command; also delete a directory that is
1905  # left behind by Apple's compiler.  We do this before executing the actions.
1906  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1907  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908  as_fn_set_status $ac_retval
1909
1910} # ac_fn_cxx_try_link
1911
1912# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1913# -------------------------------------------------------
1914# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1915# the include files in INCLUDES and setting the cache variable VAR
1916# accordingly.
1917ac_fn_c_check_header_mongrel ()
1918{
1919  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920  if eval \${$3+:} false; then :
1921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922$as_echo_n "checking for $2... " >&6; }
1923if eval \${$3+:} false; then :
1924  $as_echo_n "(cached) " >&6
1925fi
1926eval ac_res=\$$3
1927	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928$as_echo "$ac_res" >&6; }
1929else
1930  # Is the header compilable?
1931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1932$as_echo_n "checking $2 usability... " >&6; }
1933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934/* end confdefs.h.  */
1935$4
1936#include <$2>
1937_ACEOF
1938if ac_fn_c_try_compile "$LINENO"; then :
1939  ac_header_compiler=yes
1940else
1941  ac_header_compiler=no
1942fi
1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1945$as_echo "$ac_header_compiler" >&6; }
1946
1947# Is the header present?
1948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1949$as_echo_n "checking $2 presence... " >&6; }
1950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951/* end confdefs.h.  */
1952#include <$2>
1953_ACEOF
1954if ac_fn_c_try_cpp "$LINENO"; then :
1955  ac_header_preproc=yes
1956else
1957  ac_header_preproc=no
1958fi
1959rm -f conftest.err conftest.i conftest.$ac_ext
1960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1961$as_echo "$ac_header_preproc" >&6; }
1962
1963# So?  What about this header?
1964case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1965  yes:no: )
1966    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1967$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1968    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1970    ;;
1971  no:yes:* )
1972    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1973$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1974    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1975$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1976    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1977$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1978    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1979$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1980    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1982    ;;
1983esac
1984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985$as_echo_n "checking for $2... " >&6; }
1986if eval \${$3+:} false; then :
1987  $as_echo_n "(cached) " >&6
1988else
1989  eval "$3=\$ac_header_compiler"
1990fi
1991eval ac_res=\$$3
1992	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993$as_echo "$ac_res" >&6; }
1994fi
1995  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996
1997} # ac_fn_c_check_header_mongrel
1998
1999# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2000# -------------------------------------------
2001# Tests whether TYPE exists after having included INCLUDES, setting cache
2002# variable VAR accordingly.
2003ac_fn_c_check_type ()
2004{
2005  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007$as_echo_n "checking for $2... " >&6; }
2008if eval \${$3+:} false; then :
2009  $as_echo_n "(cached) " >&6
2010else
2011  eval "$3=no"
2012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013/* end confdefs.h.  */
2014$4
2015int
2016main ()
2017{
2018if (sizeof ($2))
2019	 return 0;
2020  ;
2021  return 0;
2022}
2023_ACEOF
2024if ac_fn_c_try_compile "$LINENO"; then :
2025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026/* end confdefs.h.  */
2027$4
2028int
2029main ()
2030{
2031if (sizeof (($2)))
2032	    return 0;
2033  ;
2034  return 0;
2035}
2036_ACEOF
2037if ac_fn_c_try_compile "$LINENO"; then :
2038
2039else
2040  eval "$3=yes"
2041fi
2042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043fi
2044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045fi
2046eval ac_res=\$$3
2047	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048$as_echo "$ac_res" >&6; }
2049  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050
2051} # ac_fn_c_check_type
2052cat >config.log <<_ACEOF
2053This file contains any messages produced by compilers while
2054running configure, to aid debugging if configure makes a mistake.
2055
2056It was created by $as_me, which was
2057generated by GNU Autoconf 2.69.  Invocation command line was
2058
2059  $ $0 $@
2060
2061_ACEOF
2062exec 5>>config.log
2063{
2064cat <<_ASUNAME
2065## --------- ##
2066## Platform. ##
2067## --------- ##
2068
2069hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2070uname -m = `(uname -m) 2>/dev/null || echo unknown`
2071uname -r = `(uname -r) 2>/dev/null || echo unknown`
2072uname -s = `(uname -s) 2>/dev/null || echo unknown`
2073uname -v = `(uname -v) 2>/dev/null || echo unknown`
2074
2075/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2076/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2077
2078/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2079/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2080/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2081/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2082/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2083/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2084/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2085
2086_ASUNAME
2087
2088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089for as_dir in $PATH
2090do
2091  IFS=$as_save_IFS
2092  test -z "$as_dir" && as_dir=.
2093    $as_echo "PATH: $as_dir"
2094  done
2095IFS=$as_save_IFS
2096
2097} >&5
2098
2099cat >&5 <<_ACEOF
2100
2101
2102## ----------- ##
2103## Core tests. ##
2104## ----------- ##
2105
2106_ACEOF
2107
2108
2109# Keep a trace of the command line.
2110# Strip out --no-create and --no-recursion so they do not pile up.
2111# Strip out --silent because we don't want to record it for future runs.
2112# Also quote any args containing shell meta-characters.
2113# Make two passes to allow for proper duplicate-argument suppression.
2114ac_configure_args=
2115ac_configure_args0=
2116ac_configure_args1=
2117ac_must_keep_next=false
2118for ac_pass in 1 2
2119do
2120  for ac_arg
2121  do
2122    case $ac_arg in
2123    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2124    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2125    | -silent | --silent | --silen | --sile | --sil)
2126      continue ;;
2127    *\'*)
2128      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2129    esac
2130    case $ac_pass in
2131    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2132    2)
2133      as_fn_append ac_configure_args1 " '$ac_arg'"
2134      if test $ac_must_keep_next = true; then
2135	ac_must_keep_next=false # Got value, back to normal.
2136      else
2137	case $ac_arg in
2138	  *=* | --config-cache | -C | -disable-* | --disable-* \
2139	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2140	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2141	  | -with-* | --with-* | -without-* | --without-* | --x)
2142	    case "$ac_configure_args0 " in
2143	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2144	    esac
2145	    ;;
2146	  -* ) ac_must_keep_next=true ;;
2147	esac
2148      fi
2149      as_fn_append ac_configure_args " '$ac_arg'"
2150      ;;
2151    esac
2152  done
2153done
2154{ ac_configure_args0=; unset ac_configure_args0;}
2155{ ac_configure_args1=; unset ac_configure_args1;}
2156
2157# When interrupted or exit'd, cleanup temporary files, and complete
2158# config.log.  We remove comments because anyway the quotes in there
2159# would cause problems or look ugly.
2160# WARNING: Use '\'' to represent an apostrophe within the trap.
2161# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2162trap 'exit_status=$?
2163  # Save into config.log some information that might help in debugging.
2164  {
2165    echo
2166
2167    $as_echo "## ---------------- ##
2168## Cache variables. ##
2169## ---------------- ##"
2170    echo
2171    # The following way of writing the cache mishandles newlines in values,
2172(
2173  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2174    eval ac_val=\$$ac_var
2175    case $ac_val in #(
2176    *${as_nl}*)
2177      case $ac_var in #(
2178      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2179$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2180      esac
2181      case $ac_var in #(
2182      _ | IFS | as_nl) ;; #(
2183      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2184      *) { eval $ac_var=; unset $ac_var;} ;;
2185      esac ;;
2186    esac
2187  done
2188  (set) 2>&1 |
2189    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2190    *${as_nl}ac_space=\ *)
2191      sed -n \
2192	"s/'\''/'\''\\\\'\'''\''/g;
2193	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2194      ;; #(
2195    *)
2196      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2197      ;;
2198    esac |
2199    sort
2200)
2201    echo
2202
2203    $as_echo "## ----------------- ##
2204## Output variables. ##
2205## ----------------- ##"
2206    echo
2207    for ac_var in $ac_subst_vars
2208    do
2209      eval ac_val=\$$ac_var
2210      case $ac_val in
2211      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212      esac
2213      $as_echo "$ac_var='\''$ac_val'\''"
2214    done | sort
2215    echo
2216
2217    if test -n "$ac_subst_files"; then
2218      $as_echo "## ------------------- ##
2219## File substitutions. ##
2220## ------------------- ##"
2221      echo
2222      for ac_var in $ac_subst_files
2223      do
2224	eval ac_val=\$$ac_var
2225	case $ac_val in
2226	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2227	esac
2228	$as_echo "$ac_var='\''$ac_val'\''"
2229      done | sort
2230      echo
2231    fi
2232
2233    if test -s confdefs.h; then
2234      $as_echo "## ----------- ##
2235## confdefs.h. ##
2236## ----------- ##"
2237      echo
2238      cat confdefs.h
2239      echo
2240    fi
2241    test "$ac_signal" != 0 &&
2242      $as_echo "$as_me: caught signal $ac_signal"
2243    $as_echo "$as_me: exit $exit_status"
2244  } >&5
2245  rm -f core *.core core.conftest.* &&
2246    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2247    exit $exit_status
2248' 0
2249for ac_signal in 1 2 13 15; do
2250  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2251done
2252ac_signal=0
2253
2254# confdefs.h avoids OS command line length limits that DEFS can exceed.
2255rm -f -r conftest* confdefs.h
2256
2257$as_echo "/* confdefs.h */" > confdefs.h
2258
2259# Predefined preprocessor variables.
2260
2261cat >>confdefs.h <<_ACEOF
2262#define PACKAGE_NAME "$PACKAGE_NAME"
2263_ACEOF
2264
2265cat >>confdefs.h <<_ACEOF
2266#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2267_ACEOF
2268
2269cat >>confdefs.h <<_ACEOF
2270#define PACKAGE_VERSION "$PACKAGE_VERSION"
2271_ACEOF
2272
2273cat >>confdefs.h <<_ACEOF
2274#define PACKAGE_STRING "$PACKAGE_STRING"
2275_ACEOF
2276
2277cat >>confdefs.h <<_ACEOF
2278#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2279_ACEOF
2280
2281cat >>confdefs.h <<_ACEOF
2282#define PACKAGE_URL "$PACKAGE_URL"
2283_ACEOF
2284
2285
2286# Let the site file select an alternate cache file if it wants to.
2287# Prefer an explicitly selected file to automatically selected ones.
2288ac_site_file1=NONE
2289ac_site_file2=NONE
2290if test -n "$CONFIG_SITE"; then
2291  # We do not want a PATH search for config.site.
2292  case $CONFIG_SITE in #((
2293    -*)  ac_site_file1=./$CONFIG_SITE;;
2294    */*) ac_site_file1=$CONFIG_SITE;;
2295    *)   ac_site_file1=./$CONFIG_SITE;;
2296  esac
2297elif test "x$prefix" != xNONE; then
2298  ac_site_file1=$prefix/share/config.site
2299  ac_site_file2=$prefix/etc/config.site
2300else
2301  ac_site_file1=$ac_default_prefix/share/config.site
2302  ac_site_file2=$ac_default_prefix/etc/config.site
2303fi
2304for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2305do
2306  test "x$ac_site_file" = xNONE && continue
2307  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2308    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2309$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2310    sed 's/^/| /' "$ac_site_file" >&5
2311    . "$ac_site_file" \
2312      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2314as_fn_error $? "failed to load site script $ac_site_file
2315See \`config.log' for more details" "$LINENO" 5; }
2316  fi
2317done
2318
2319if test -r "$cache_file"; then
2320  # Some versions of bash will fail to source /dev/null (special files
2321  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2322  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2323    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2324$as_echo "$as_me: loading cache $cache_file" >&6;}
2325    case $cache_file in
2326      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2327      *)                      . "./$cache_file";;
2328    esac
2329  fi
2330else
2331  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2332$as_echo "$as_me: creating cache $cache_file" >&6;}
2333  >$cache_file
2334fi
2335
2336# Check that the precious variables saved in the cache have kept the same
2337# value.
2338ac_cache_corrupted=false
2339for ac_var in $ac_precious_vars; do
2340  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2341  eval ac_new_set=\$ac_env_${ac_var}_set
2342  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2343  eval ac_new_val=\$ac_env_${ac_var}_value
2344  case $ac_old_set,$ac_new_set in
2345    set,)
2346      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2347$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2348      ac_cache_corrupted=: ;;
2349    ,set)
2350      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2351$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2352      ac_cache_corrupted=: ;;
2353    ,);;
2354    *)
2355      if test "x$ac_old_val" != "x$ac_new_val"; then
2356	# differences in whitespace do not lead to failure.
2357	ac_old_val_w=`echo x $ac_old_val`
2358	ac_new_val_w=`echo x $ac_new_val`
2359	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2360	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2361$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2362	  ac_cache_corrupted=:
2363	else
2364	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2365$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2366	  eval $ac_var=\$ac_old_val
2367	fi
2368	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2369$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2370	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2371$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2372      fi;;
2373  esac
2374  # Pass precious variables to config.status.
2375  if test "$ac_new_set" = set; then
2376    case $ac_new_val in
2377    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2378    *) ac_arg=$ac_var=$ac_new_val ;;
2379    esac
2380    case " $ac_configure_args " in
2381      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2382      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2383    esac
2384  fi
2385done
2386if $ac_cache_corrupted; then
2387  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2389  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2390$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2391  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2392fi
2393## -------------------- ##
2394## Main body of script. ##
2395## -------------------- ##
2396
2397ac_ext=c
2398ac_cpp='$CPP $CPPFLAGS'
2399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402
2403
2404
2405ac_aux_dir=
2406for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2407  if test -f "$ac_dir/install-sh"; then
2408    ac_aux_dir=$ac_dir
2409    ac_install_sh="$ac_aux_dir/install-sh -c"
2410    break
2411  elif test -f "$ac_dir/install.sh"; then
2412    ac_aux_dir=$ac_dir
2413    ac_install_sh="$ac_aux_dir/install.sh -c"
2414    break
2415  elif test -f "$ac_dir/shtool"; then
2416    ac_aux_dir=$ac_dir
2417    ac_install_sh="$ac_aux_dir/shtool install -c"
2418    break
2419  fi
2420done
2421if test -z "$ac_aux_dir"; then
2422  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2423fi
2424
2425# These three variables are undocumented and unsupported,
2426# and are intended to be withdrawn in a future Autoconf release.
2427# They can cause serious problems if a builder's source tree is in a directory
2428# whose full name contains unusual characters.
2429ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2430ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2431ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2432
2433
2434# Make sure we can run config.sub.
2435$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2436  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2437
2438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2439$as_echo_n "checking build system type... " >&6; }
2440if ${ac_cv_build+:} false; then :
2441  $as_echo_n "(cached) " >&6
2442else
2443  ac_build_alias=$build_alias
2444test "x$ac_build_alias" = x &&
2445  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2446test "x$ac_build_alias" = x &&
2447  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2448ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2449  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2450
2451fi
2452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2453$as_echo "$ac_cv_build" >&6; }
2454case $ac_cv_build in
2455*-*-*) ;;
2456*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2457esac
2458build=$ac_cv_build
2459ac_save_IFS=$IFS; IFS='-'
2460set x $ac_cv_build
2461shift
2462build_cpu=$1
2463build_vendor=$2
2464shift; shift
2465# Remember, the first character of IFS is used to create $*,
2466# except with old shells:
2467build_os=$*
2468IFS=$ac_save_IFS
2469case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2470
2471
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2473$as_echo_n "checking host system type... " >&6; }
2474if ${ac_cv_host+:} false; then :
2475  $as_echo_n "(cached) " >&6
2476else
2477  if test "x$host_alias" = x; then
2478  ac_cv_host=$ac_cv_build
2479else
2480  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2481    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2482fi
2483
2484fi
2485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2486$as_echo "$ac_cv_host" >&6; }
2487case $ac_cv_host in
2488*-*-*) ;;
2489*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2490esac
2491host=$ac_cv_host
2492ac_save_IFS=$IFS; IFS='-'
2493set x $ac_cv_host
2494shift
2495host_cpu=$1
2496host_vendor=$2
2497shift; shift
2498# Remember, the first character of IFS is used to create $*,
2499# except with old shells:
2500host_os=$*
2501IFS=$ac_save_IFS
2502case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2503
2504
2505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2506$as_echo_n "checking target system type... " >&6; }
2507if ${ac_cv_target+:} false; then :
2508  $as_echo_n "(cached) " >&6
2509else
2510  if test "x$target_alias" = x; then
2511  ac_cv_target=$ac_cv_host
2512else
2513  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2514    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2515fi
2516
2517fi
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2519$as_echo "$ac_cv_target" >&6; }
2520case $ac_cv_target in
2521*-*-*) ;;
2522*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2523esac
2524target=$ac_cv_target
2525ac_save_IFS=$IFS; IFS='-'
2526set x $ac_cv_target
2527shift
2528target_cpu=$1
2529target_vendor=$2
2530shift; shift
2531# Remember, the first character of IFS is used to create $*,
2532# except with old shells:
2533target_os=$*
2534IFS=$ac_save_IFS
2535case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2536
2537
2538# The aliases save the names the user supplied, while $host etc.
2539# will get canonicalized.
2540test -n "$target_alias" &&
2541  test "$program_prefix$program_suffix$program_transform_name" = \
2542    NONENONEs,x,x, &&
2543  program_prefix=${target_alias}-
2544
2545SAMPLEICC_MAJOR_VERSION=1
2546SAMPLEICC_MINOR_VERSION=6
2547SAMPLEICC_MICRO_VERSION=8
2548
2549SAMPLEICC_VERSION=$SAMPLEICC_MAJOR_VERSION.$SAMPLEICC_MINOR_VERSION.${SAMPLEICC_MICRO_VERSION}
2550
2551
2552LIBTOOL_CURRENT=2
2553LIBTOOL_REVISION=3
2554LIBTOOL_AGE=0
2555LIBTOOL_VERSION=$LIBTOOL_CURRENT:$LIBTOOL_REVISION:$LIBTOOL_AGE
2556
2557
2558am__api_version='1.12'
2559
2560# Find a good install program.  We prefer a C program (faster),
2561# so one script is as good as another.  But avoid the broken or
2562# incompatible versions:
2563# SysV /etc/install, /usr/sbin/install
2564# SunOS /usr/etc/install
2565# IRIX /sbin/install
2566# AIX /bin/install
2567# AmigaOS /C/install, which installs bootblocks on floppy discs
2568# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2569# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2570# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2571# OS/2's system install, which has a completely different semantic
2572# ./install, which can be erroneously created by make from ./install.sh.
2573# Reject install programs that cannot install multiple files.
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2575$as_echo_n "checking for a BSD-compatible install... " >&6; }
2576if test -z "$INSTALL"; then
2577if ${ac_cv_path_install+:} false; then :
2578  $as_echo_n "(cached) " >&6
2579else
2580  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581for as_dir in $PATH
2582do
2583  IFS=$as_save_IFS
2584  test -z "$as_dir" && as_dir=.
2585    # Account for people who put trailing slashes in PATH elements.
2586case $as_dir/ in #((
2587  ./ | .// | /[cC]/* | \
2588  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2589  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2590  /usr/ucb/* ) ;;
2591  *)
2592    # OSF1 and SCO ODT 3.0 have their own names for install.
2593    # Don't use installbsd from OSF since it installs stuff as root
2594    # by default.
2595    for ac_prog in ginstall scoinst install; do
2596      for ac_exec_ext in '' $ac_executable_extensions; do
2597	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2598	  if test $ac_prog = install &&
2599	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2600	    # AIX install.  It has an incompatible calling convention.
2601	    :
2602	  elif test $ac_prog = install &&
2603	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2604	    # program-specific install script used by HP pwplus--don't use.
2605	    :
2606	  else
2607	    rm -rf conftest.one conftest.two conftest.dir
2608	    echo one > conftest.one
2609	    echo two > conftest.two
2610	    mkdir conftest.dir
2611	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2612	      test -s conftest.one && test -s conftest.two &&
2613	      test -s conftest.dir/conftest.one &&
2614	      test -s conftest.dir/conftest.two
2615	    then
2616	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2617	      break 3
2618	    fi
2619	  fi
2620	fi
2621      done
2622    done
2623    ;;
2624esac
2625
2626  done
2627IFS=$as_save_IFS
2628
2629rm -rf conftest.one conftest.two conftest.dir
2630
2631fi
2632  if test "${ac_cv_path_install+set}" = set; then
2633    INSTALL=$ac_cv_path_install
2634  else
2635    # As a last resort, use the slow shell script.  Don't cache a
2636    # value for INSTALL within a source directory, because that will
2637    # break other packages using the cache if that directory is
2638    # removed, or if the value is a relative name.
2639    INSTALL=$ac_install_sh
2640  fi
2641fi
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2643$as_echo "$INSTALL" >&6; }
2644
2645# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2646# It thinks the first close brace ends the variable substitution.
2647test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2648
2649test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2650
2651test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2652
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2654$as_echo_n "checking whether build environment is sane... " >&6; }
2655# Reject unsafe characters in $srcdir or the absolute working directory
2656# name.  Accept space and tab only in the latter.
2657am_lf='
2658'
2659case `pwd` in
2660  *[\\\"\#\$\&\'\`$am_lf]*)
2661    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2662esac
2663case $srcdir in
2664  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2665    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2666esac
2667
2668# Do 'set' in a subshell so we don't clobber the current shell's
2669# arguments.  Must try -L first in case configure is actually a
2670# symlink; some systems play weird games with the mod time of symlinks
2671# (eg FreeBSD returns the mod time of the symlink's containing
2672# directory).
2673if (
2674   am_has_slept=no
2675   for am_try in 1 2; do
2676     echo "timestamp, slept: $am_has_slept" > conftest.file
2677     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2678     if test "$*" = "X"; then
2679	# -L didn't work.
2680	set X `ls -t "$srcdir/configure" conftest.file`
2681     fi
2682     if test "$*" != "X $srcdir/configure conftest.file" \
2683	&& test "$*" != "X conftest.file $srcdir/configure"; then
2684
2685	# If neither matched, then we have a broken ls.  This can happen
2686	# if, for instance, CONFIG_SHELL is bash and it inherits a
2687	# broken ls alias from the environment.  This has actually
2688	# happened.  Such a system could not be considered "sane".
2689	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2690  alias in your environment" "$LINENO" 5
2691     fi
2692     if test "$2" = conftest.file || test $am_try -eq 2; then
2693       break
2694     fi
2695     # Just in case.
2696     sleep 1
2697     am_has_slept=yes
2698   done
2699   test "$2" = conftest.file
2700   )
2701then
2702   # Ok.
2703   :
2704else
2705   as_fn_error $? "newly created file is older than distributed files!
2706Check your system clock" "$LINENO" 5
2707fi
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2709$as_echo "yes" >&6; }
2710# If we didn't sleep, we still need to ensure time stamps of config.status and
2711# generated files are strictly newer.
2712am_sleep_pid=
2713if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2714  ( sleep 1 ) &
2715  am_sleep_pid=$!
2716fi
2717
2718rm -f conftest.file
2719
2720test "$program_prefix" != NONE &&
2721  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2722# Use a double $ so make ignores it.
2723test "$program_suffix" != NONE &&
2724  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2725# Double any \ or $.
2726# By default was `s,x,x', remove it if useless.
2727ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2728program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2729
2730# expand $ac_aux_dir to an absolute path
2731am_aux_dir=`cd $ac_aux_dir && pwd`
2732
2733if test x"${MISSING+set}" != xset; then
2734  case $am_aux_dir in
2735  *\ * | *\	*)
2736    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2737  *)
2738    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2739  esac
2740fi
2741# Use eval to expand $SHELL
2742if eval "$MISSING --run true"; then
2743  am_missing_run="$MISSING --run "
2744else
2745  am_missing_run=
2746  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2747$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2748fi
2749
2750if test x"${install_sh}" != xset; then
2751  case $am_aux_dir in
2752  *\ * | *\	*)
2753    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2754  *)
2755    install_sh="\${SHELL} $am_aux_dir/install-sh"
2756  esac
2757fi
2758
2759# Installed binaries are usually stripped using 'strip' when the user
2760# run "make install-strip".  However 'strip' might not be the right
2761# tool to use in cross-compilation environments, therefore Automake
2762# will honor the 'STRIP' environment variable to overrule this program.
2763if test "$cross_compiling" != no; then
2764  if test -n "$ac_tool_prefix"; then
2765  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2766set dummy ${ac_tool_prefix}strip; ac_word=$2
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768$as_echo_n "checking for $ac_word... " >&6; }
2769if ${ac_cv_prog_STRIP+:} false; then :
2770  $as_echo_n "(cached) " >&6
2771else
2772  if test -n "$STRIP"; then
2773  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2774else
2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778  IFS=$as_save_IFS
2779  test -z "$as_dir" && as_dir=.
2780    for ac_exec_ext in '' $ac_executable_extensions; do
2781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2782    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784    break 2
2785  fi
2786done
2787  done
2788IFS=$as_save_IFS
2789
2790fi
2791fi
2792STRIP=$ac_cv_prog_STRIP
2793if test -n "$STRIP"; then
2794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2795$as_echo "$STRIP" >&6; }
2796else
2797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798$as_echo "no" >&6; }
2799fi
2800
2801
2802fi
2803if test -z "$ac_cv_prog_STRIP"; then
2804  ac_ct_STRIP=$STRIP
2805  # Extract the first word of "strip", so it can be a program name with args.
2806set dummy strip; ac_word=$2
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808$as_echo_n "checking for $ac_word... " >&6; }
2809if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2810  $as_echo_n "(cached) " >&6
2811else
2812  if test -n "$ac_ct_STRIP"; then
2813  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2814else
2815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816for as_dir in $PATH
2817do
2818  IFS=$as_save_IFS
2819  test -z "$as_dir" && as_dir=.
2820    for ac_exec_ext in '' $ac_executable_extensions; do
2821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822    ac_cv_prog_ac_ct_STRIP="strip"
2823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824    break 2
2825  fi
2826done
2827  done
2828IFS=$as_save_IFS
2829
2830fi
2831fi
2832ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2833if test -n "$ac_ct_STRIP"; then
2834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2835$as_echo "$ac_ct_STRIP" >&6; }
2836else
2837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838$as_echo "no" >&6; }
2839fi
2840
2841  if test "x$ac_ct_STRIP" = x; then
2842    STRIP=":"
2843  else
2844    case $cross_compiling:$ac_tool_warned in
2845yes:)
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2848ac_tool_warned=yes ;;
2849esac
2850    STRIP=$ac_ct_STRIP
2851  fi
2852else
2853  STRIP="$ac_cv_prog_STRIP"
2854fi
2855
2856fi
2857INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2858
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2860$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2861if test -z "$MKDIR_P"; then
2862  if ${ac_cv_path_mkdir+:} false; then :
2863  $as_echo_n "(cached) " >&6
2864else
2865  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2867do
2868  IFS=$as_save_IFS
2869  test -z "$as_dir" && as_dir=.
2870    for ac_prog in mkdir gmkdir; do
2871	 for ac_exec_ext in '' $ac_executable_extensions; do
2872	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2873	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2874	     'mkdir (GNU coreutils) '* | \
2875	     'mkdir (coreutils) '* | \
2876	     'mkdir (fileutils) '4.1*)
2877	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2878	       break 3;;
2879	   esac
2880	 done
2881       done
2882  done
2883IFS=$as_save_IFS
2884
2885fi
2886
2887  test -d ./--version && rmdir ./--version
2888  if test "${ac_cv_path_mkdir+set}" = set; then
2889    MKDIR_P="$ac_cv_path_mkdir -p"
2890  else
2891    # As a last resort, use the slow shell script.  Don't cache a
2892    # value for MKDIR_P within a source directory, because that will
2893    # break other packages using the cache if that directory is
2894    # removed, or if the value is a relative name.
2895    MKDIR_P="$ac_install_sh -d"
2896  fi
2897fi
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2899$as_echo "$MKDIR_P" >&6; }
2900
2901for ac_prog in gawk mawk nawk awk
2902do
2903  # Extract the first word of "$ac_prog", so it can be a program name with args.
2904set dummy $ac_prog; ac_word=$2
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906$as_echo_n "checking for $ac_word... " >&6; }
2907if ${ac_cv_prog_AWK+:} false; then :
2908  $as_echo_n "(cached) " >&6
2909else
2910  if test -n "$AWK"; then
2911  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2912else
2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914for as_dir in $PATH
2915do
2916  IFS=$as_save_IFS
2917  test -z "$as_dir" && as_dir=.
2918    for ac_exec_ext in '' $ac_executable_extensions; do
2919  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920    ac_cv_prog_AWK="$ac_prog"
2921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922    break 2
2923  fi
2924done
2925  done
2926IFS=$as_save_IFS
2927
2928fi
2929fi
2930AWK=$ac_cv_prog_AWK
2931if test -n "$AWK"; then
2932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2933$as_echo "$AWK" >&6; }
2934else
2935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936$as_echo "no" >&6; }
2937fi
2938
2939
2940  test -n "$AWK" && break
2941done
2942
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2944$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2945set x ${MAKE-make}
2946ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2947if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2948  $as_echo_n "(cached) " >&6
2949else
2950  cat >conftest.make <<\_ACEOF
2951SHELL = /bin/sh
2952all:
2953	@echo '@@@%%%=$(MAKE)=@@@%%%'
2954_ACEOF
2955# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2956case `${MAKE-make} -f conftest.make 2>/dev/null` in
2957  *@@@%%%=?*=@@@%%%*)
2958    eval ac_cv_prog_make_${ac_make}_set=yes;;
2959  *)
2960    eval ac_cv_prog_make_${ac_make}_set=no;;
2961esac
2962rm -f conftest.make
2963fi
2964if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2966$as_echo "yes" >&6; }
2967  SET_MAKE=
2968else
2969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970$as_echo "no" >&6; }
2971  SET_MAKE="MAKE=${MAKE-make}"
2972fi
2973
2974rm -rf .tst 2>/dev/null
2975mkdir .tst 2>/dev/null
2976if test -d .tst; then
2977  am__leading_dot=.
2978else
2979  am__leading_dot=_
2980fi
2981rmdir .tst 2>/dev/null
2982
2983if test "`cd $srcdir && pwd`" != "`pwd`"; then
2984  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2985  # is not polluted with repeated "-I."
2986  am__isrc=' -I$(srcdir)'
2987  # test to see if srcdir already configured
2988  if test -f $srcdir/config.status; then
2989    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2990  fi
2991fi
2992
2993# test whether we have cygpath
2994if test -z "$CYGPATH_W"; then
2995  if (cygpath --version) >/dev/null 2>/dev/null; then
2996    CYGPATH_W='cygpath -w'
2997  else
2998    CYGPATH_W=echo
2999  fi
3000fi
3001
3002
3003# Define the identity of the package.
3004
3005 PACKAGE=SampleICC
3006 VERSION=${SAMPLEICC_VERSION}
3007
3008
3009cat >>confdefs.h <<_ACEOF
3010#define PACKAGE "$PACKAGE"
3011_ACEOF
3012
3013
3014cat >>confdefs.h <<_ACEOF
3015#define VERSION "$VERSION"
3016_ACEOF
3017
3018# Some tools Automake needs.
3019
3020ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3021
3022
3023AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3024
3025
3026AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3027
3028
3029AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3030
3031
3032MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3033
3034mkdir_p="$MKDIR_P"
3035# We need awk for the "check" target.  The system "awk" is bad on
3036# some platforms.
3037# Always define AMTAR for backward compatibility.  Yes, it's still used
3038# in the wild :-(  We should find a proper way to deprecate it ...
3039AMTAR='$${TAR-tar}'
3040
3041am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3042
3043
3044
3045
3046
3047
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3049$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3050    # Check whether --enable-maintainer-mode was given.
3051if test "${enable_maintainer_mode+set}" = set; then :
3052  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3053else
3054  USE_MAINTAINER_MODE=no
3055fi
3056
3057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3058$as_echo "$USE_MAINTAINER_MODE" >&6; }
3059   if test $USE_MAINTAINER_MODE = yes; then
3060  MAINTAINER_MODE_TRUE=
3061  MAINTAINER_MODE_FALSE='#'
3062else
3063  MAINTAINER_MODE_TRUE='#'
3064  MAINTAINER_MODE_FALSE=
3065fi
3066
3067  MAINT=$MAINTAINER_MODE_TRUE
3068
3069
3070
3071ac_ext=cpp
3072ac_cpp='$CXXCPP $CPPFLAGS'
3073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3076if test -z "$CXX"; then
3077  if test -n "$CCC"; then
3078    CXX=$CCC
3079  else
3080    if test -n "$ac_tool_prefix"; then
3081  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3082  do
3083    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086$as_echo_n "checking for $ac_word... " >&6; }
3087if ${ac_cv_prog_CXX+:} false; then :
3088  $as_echo_n "(cached) " >&6
3089else
3090  if test -n "$CXX"; then
3091  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3092else
3093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH
3095do
3096  IFS=$as_save_IFS
3097  test -z "$as_dir" && as_dir=.
3098    for ac_exec_ext in '' $ac_executable_extensions; do
3099  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102    break 2
3103  fi
3104done
3105  done
3106IFS=$as_save_IFS
3107
3108fi
3109fi
3110CXX=$ac_cv_prog_CXX
3111if test -n "$CXX"; then
3112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3113$as_echo "$CXX" >&6; }
3114else
3115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116$as_echo "no" >&6; }
3117fi
3118
3119
3120    test -n "$CXX" && break
3121  done
3122fi
3123if test -z "$CXX"; then
3124  ac_ct_CXX=$CXX
3125  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3126do
3127  # Extract the first word of "$ac_prog", so it can be a program name with args.
3128set dummy $ac_prog; ac_word=$2
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130$as_echo_n "checking for $ac_word... " >&6; }
3131if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3132  $as_echo_n "(cached) " >&6
3133else
3134  if test -n "$ac_ct_CXX"; then
3135  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3136else
3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140  IFS=$as_save_IFS
3141  test -z "$as_dir" && as_dir=.
3142    for ac_exec_ext in '' $ac_executable_extensions; do
3143  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144    ac_cv_prog_ac_ct_CXX="$ac_prog"
3145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146    break 2
3147  fi
3148done
3149  done
3150IFS=$as_save_IFS
3151
3152fi
3153fi
3154ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3155if test -n "$ac_ct_CXX"; then
3156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3157$as_echo "$ac_ct_CXX" >&6; }
3158else
3159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160$as_echo "no" >&6; }
3161fi
3162
3163
3164  test -n "$ac_ct_CXX" && break
3165done
3166
3167  if test "x$ac_ct_CXX" = x; then
3168    CXX="g++"
3169  else
3170    case $cross_compiling:$ac_tool_warned in
3171yes:)
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3174ac_tool_warned=yes ;;
3175esac
3176    CXX=$ac_ct_CXX
3177  fi
3178fi
3179
3180  fi
3181fi
3182# Provide some information about the compiler.
3183$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3184set X $ac_compile
3185ac_compiler=$2
3186for ac_option in --version -v -V -qversion; do
3187  { { ac_try="$ac_compiler $ac_option >&5"
3188case "(($ac_try" in
3189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190  *) ac_try_echo=$ac_try;;
3191esac
3192eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193$as_echo "$ac_try_echo"; } >&5
3194  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3195  ac_status=$?
3196  if test -s conftest.err; then
3197    sed '10a\
3198... rest of stderr output deleted ...
3199         10q' conftest.err >conftest.er1
3200    cat conftest.er1 >&5
3201  fi
3202  rm -f conftest.er1 conftest.err
3203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204  test $ac_status = 0; }
3205done
3206
3207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208/* end confdefs.h.  */
3209
3210int
3211main ()
3212{
3213
3214  ;
3215  return 0;
3216}
3217_ACEOF
3218ac_clean_files_save=$ac_clean_files
3219ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3220# Try to create an executable without -o first, disregard a.out.
3221# It will help us diagnose broken compilers, and finding out an intuition
3222# of exeext.
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3224$as_echo_n "checking whether the C++ compiler works... " >&6; }
3225ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3226
3227# The possible output files:
3228ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3229
3230ac_rmfiles=
3231for ac_file in $ac_files
3232do
3233  case $ac_file in
3234    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3235    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3236  esac
3237done
3238rm -f $ac_rmfiles
3239
3240if { { ac_try="$ac_link_default"
3241case "(($ac_try" in
3242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243  *) ac_try_echo=$ac_try;;
3244esac
3245eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246$as_echo "$ac_try_echo"; } >&5
3247  (eval "$ac_link_default") 2>&5
3248  ac_status=$?
3249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250  test $ac_status = 0; }; then :
3251  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3252# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3253# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3254# so that the user can short-circuit this test for compilers unknown to
3255# Autoconf.
3256for ac_file in $ac_files ''
3257do
3258  test -f "$ac_file" || continue
3259  case $ac_file in
3260    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3261	;;
3262    [ab].out )
3263	# We found the default executable, but exeext='' is most
3264	# certainly right.
3265	break;;
3266    *.* )
3267	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3268	then :; else
3269	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3270	fi
3271	# We set ac_cv_exeext here because the later test for it is not
3272	# safe: cross compilers may not add the suffix if given an `-o'
3273	# argument, so we may need to know it at that point already.
3274	# Even if this section looks crufty: it has the advantage of
3275	# actually working.
3276	break;;
3277    * )
3278	break;;
3279  esac
3280done
3281test "$ac_cv_exeext" = no && ac_cv_exeext=
3282
3283else
3284  ac_file=''
3285fi
3286if test -z "$ac_file"; then :
3287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288$as_echo "no" >&6; }
3289$as_echo "$as_me: failed program was:" >&5
3290sed 's/^/| /' conftest.$ac_ext >&5
3291
3292{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294as_fn_error 77 "C++ compiler cannot create executables
3295See \`config.log' for more details" "$LINENO" 5; }
3296else
3297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3298$as_echo "yes" >&6; }
3299fi
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3301$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3303$as_echo "$ac_file" >&6; }
3304ac_exeext=$ac_cv_exeext
3305
3306rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3307ac_clean_files=$ac_clean_files_save
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3309$as_echo_n "checking for suffix of executables... " >&6; }
3310if { { ac_try="$ac_link"
3311case "(($ac_try" in
3312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313  *) ac_try_echo=$ac_try;;
3314esac
3315eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316$as_echo "$ac_try_echo"; } >&5
3317  (eval "$ac_link") 2>&5
3318  ac_status=$?
3319  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320  test $ac_status = 0; }; then :
3321  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3322# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3323# work properly (i.e., refer to `conftest.exe'), while it won't with
3324# `rm'.
3325for ac_file in conftest.exe conftest conftest.*; do
3326  test -f "$ac_file" || continue
3327  case $ac_file in
3328    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3329    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3330	  break;;
3331    * ) break;;
3332  esac
3333done
3334else
3335  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3338See \`config.log' for more details" "$LINENO" 5; }
3339fi
3340rm -f conftest conftest$ac_cv_exeext
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3342$as_echo "$ac_cv_exeext" >&6; }
3343
3344rm -f conftest.$ac_ext
3345EXEEXT=$ac_cv_exeext
3346ac_exeext=$EXEEXT
3347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348/* end confdefs.h.  */
3349#include <stdio.h>
3350int
3351main ()
3352{
3353FILE *f = fopen ("conftest.out", "w");
3354 return ferror (f) || fclose (f) != 0;
3355
3356  ;
3357  return 0;
3358}
3359_ACEOF
3360ac_clean_files="$ac_clean_files conftest.out"
3361# Check that the compiler produces executables we can run.  If not, either
3362# the compiler is broken, or we cross compile.
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3364$as_echo_n "checking whether we are cross compiling... " >&6; }
3365if test "$cross_compiling" != yes; then
3366  { { ac_try="$ac_link"
3367case "(($ac_try" in
3368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369  *) ac_try_echo=$ac_try;;
3370esac
3371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372$as_echo "$ac_try_echo"; } >&5
3373  (eval "$ac_link") 2>&5
3374  ac_status=$?
3375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376  test $ac_status = 0; }
3377  if { ac_try='./conftest$ac_cv_exeext'
3378  { { case "(($ac_try" in
3379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380  *) ac_try_echo=$ac_try;;
3381esac
3382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383$as_echo "$ac_try_echo"; } >&5
3384  (eval "$ac_try") 2>&5
3385  ac_status=$?
3386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387  test $ac_status = 0; }; }; then
3388    cross_compiling=no
3389  else
3390    if test "$cross_compiling" = maybe; then
3391	cross_compiling=yes
3392    else
3393	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395as_fn_error $? "cannot run C++ compiled programs.
3396If you meant to cross compile, use \`--host'.
3397See \`config.log' for more details" "$LINENO" 5; }
3398    fi
3399  fi
3400fi
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3402$as_echo "$cross_compiling" >&6; }
3403
3404rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3405ac_clean_files=$ac_clean_files_save
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3407$as_echo_n "checking for suffix of object files... " >&6; }
3408if ${ac_cv_objext+:} false; then :
3409  $as_echo_n "(cached) " >&6
3410else
3411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412/* end confdefs.h.  */
3413
3414int
3415main ()
3416{
3417
3418  ;
3419  return 0;
3420}
3421_ACEOF
3422rm -f conftest.o conftest.obj
3423if { { ac_try="$ac_compile"
3424case "(($ac_try" in
3425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426  *) ac_try_echo=$ac_try;;
3427esac
3428eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429$as_echo "$ac_try_echo"; } >&5
3430  (eval "$ac_compile") 2>&5
3431  ac_status=$?
3432  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3433  test $ac_status = 0; }; then :
3434  for ac_file in conftest.o conftest.obj conftest.*; do
3435  test -f "$ac_file" || continue;
3436  case $ac_file in
3437    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3438    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3439       break;;
3440  esac
3441done
3442else
3443  $as_echo "$as_me: failed program was:" >&5
3444sed 's/^/| /' conftest.$ac_ext >&5
3445
3446{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448as_fn_error $? "cannot compute suffix of object files: cannot compile
3449See \`config.log' for more details" "$LINENO" 5; }
3450fi
3451rm -f conftest.$ac_cv_objext conftest.$ac_ext
3452fi
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3454$as_echo "$ac_cv_objext" >&6; }
3455OBJEXT=$ac_cv_objext
3456ac_objext=$OBJEXT
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3458$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3459if ${ac_cv_cxx_compiler_gnu+:} false; then :
3460  $as_echo_n "(cached) " >&6
3461else
3462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463/* end confdefs.h.  */
3464
3465int
3466main ()
3467{
3468#ifndef __GNUC__
3469       choke me
3470#endif
3471
3472  ;
3473  return 0;
3474}
3475_ACEOF
3476if ac_fn_cxx_try_compile "$LINENO"; then :
3477  ac_compiler_gnu=yes
3478else
3479  ac_compiler_gnu=no
3480fi
3481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3483
3484fi
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3486$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3487if test $ac_compiler_gnu = yes; then
3488  GXX=yes
3489else
3490  GXX=
3491fi
3492ac_test_CXXFLAGS=${CXXFLAGS+set}
3493ac_save_CXXFLAGS=$CXXFLAGS
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3495$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3496if ${ac_cv_prog_cxx_g+:} false; then :
3497  $as_echo_n "(cached) " >&6
3498else
3499  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3500   ac_cxx_werror_flag=yes
3501   ac_cv_prog_cxx_g=no
3502   CXXFLAGS="-g"
3503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504/* end confdefs.h.  */
3505
3506int
3507main ()
3508{
3509
3510  ;
3511  return 0;
3512}
3513_ACEOF
3514if ac_fn_cxx_try_compile "$LINENO"; then :
3515  ac_cv_prog_cxx_g=yes
3516else
3517  CXXFLAGS=""
3518      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519/* end confdefs.h.  */
3520
3521int
3522main ()
3523{
3524
3525  ;
3526  return 0;
3527}
3528_ACEOF
3529if ac_fn_cxx_try_compile "$LINENO"; then :
3530
3531else
3532  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3533	 CXXFLAGS="-g"
3534	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535/* end confdefs.h.  */
3536
3537int
3538main ()
3539{
3540
3541  ;
3542  return 0;
3543}
3544_ACEOF
3545if ac_fn_cxx_try_compile "$LINENO"; then :
3546  ac_cv_prog_cxx_g=yes
3547fi
3548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549fi
3550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551fi
3552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3554fi
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3556$as_echo "$ac_cv_prog_cxx_g" >&6; }
3557if test "$ac_test_CXXFLAGS" = set; then
3558  CXXFLAGS=$ac_save_CXXFLAGS
3559elif test $ac_cv_prog_cxx_g = yes; then
3560  if test "$GXX" = yes; then
3561    CXXFLAGS="-g -O2"
3562  else
3563    CXXFLAGS="-g"
3564  fi
3565else
3566  if test "$GXX" = yes; then
3567    CXXFLAGS="-O2"
3568  else
3569    CXXFLAGS=
3570  fi
3571fi
3572ac_ext=c
3573ac_cpp='$CPP $CPPFLAGS'
3574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577DEPDIR="${am__leading_dot}deps"
3578
3579ac_config_commands="$ac_config_commands depfiles"
3580
3581
3582am_make=${MAKE-make}
3583cat > confinc << 'END'
3584am__doit:
3585	@echo this is the am__doit target
3586.PHONY: am__doit
3587END
3588# If we don't find an include directive, just comment out the code.
3589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3590$as_echo_n "checking for style of include used by $am_make... " >&6; }
3591am__include="#"
3592am__quote=
3593_am_result=none
3594# First try GNU make style include.
3595echo "include confinc" > confmf
3596# Ignore all kinds of additional output from 'make'.
3597case `$am_make -s -f confmf 2> /dev/null` in #(
3598*the\ am__doit\ target*)
3599  am__include=include
3600  am__quote=
3601  _am_result=GNU
3602  ;;
3603esac
3604# Now try BSD make style include.
3605if test "$am__include" = "#"; then
3606   echo '.include "confinc"' > confmf
3607   case `$am_make -s -f confmf 2> /dev/null` in #(
3608   *the\ am__doit\ target*)
3609     am__include=.include
3610     am__quote="\""
3611     _am_result=BSD
3612     ;;
3613   esac
3614fi
3615
3616
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3618$as_echo "$_am_result" >&6; }
3619rm -f confinc confmf
3620
3621# Check whether --enable-dependency-tracking was given.
3622if test "${enable_dependency_tracking+set}" = set; then :
3623  enableval=$enable_dependency_tracking;
3624fi
3625
3626if test "x$enable_dependency_tracking" != xno; then
3627  am_depcomp="$ac_aux_dir/depcomp"
3628  AMDEPBACKSLASH='\'
3629  am__nodep='_no'
3630fi
3631 if test "x$enable_dependency_tracking" != xno; then
3632  AMDEP_TRUE=
3633  AMDEP_FALSE='#'
3634else
3635  AMDEP_TRUE='#'
3636  AMDEP_FALSE=
3637fi
3638
3639
3640
3641depcc="$CXX"  am_compiler_list=
3642
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3644$as_echo_n "checking dependency style of $depcc... " >&6; }
3645if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3646  $as_echo_n "(cached) " >&6
3647else
3648  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3649  # We make a subdir and do the tests there.  Otherwise we can end up
3650  # making bogus files that we don't know about and never remove.  For
3651  # instance it was reported that on HP-UX the gcc test will end up
3652  # making a dummy file named 'D' -- because '-MD' means "put the output
3653  # in D".
3654  rm -rf conftest.dir
3655  mkdir conftest.dir
3656  # Copy depcomp to subdir because otherwise we won't find it if we're
3657  # using a relative directory.
3658  cp "$am_depcomp" conftest.dir
3659  cd conftest.dir
3660  # We will build objects and dependencies in a subdirectory because
3661  # it helps to detect inapplicable dependency modes.  For instance
3662  # both Tru64's cc and ICC support -MD to output dependencies as a
3663  # side effect of compilation, but ICC will put the dependencies in
3664  # the current directory while Tru64 will put them in the object
3665  # directory.
3666  mkdir sub
3667
3668  am_cv_CXX_dependencies_compiler_type=none
3669  if test "$am_compiler_list" = ""; then
3670     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3671  fi
3672  am__universal=false
3673  case " $depcc " in #(
3674     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3675     esac
3676
3677  for depmode in $am_compiler_list; do
3678    # Setup a source with many dependencies, because some compilers
3679    # like to wrap large dependency lists on column 80 (with \), and
3680    # we should not choose a depcomp mode which is confused by this.
3681    #
3682    # We need to recreate these files for each test, as the compiler may
3683    # overwrite some of them when testing with obscure command lines.
3684    # This happens at least with the AIX C compiler.
3685    : > sub/conftest.c
3686    for i in 1 2 3 4 5 6; do
3687      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3688      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3689      # Solaris 10 /bin/sh.
3690      echo '/* dummy */' > sub/conftst$i.h
3691    done
3692    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3693
3694    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3695    # mode.  It turns out that the SunPro C++ compiler does not properly
3696    # handle '-M -o', and we need to detect this.  Also, some Intel
3697    # versions had trouble with output in subdirs.
3698    am__obj=sub/conftest.${OBJEXT-o}
3699    am__minus_obj="-o $am__obj"
3700    case $depmode in
3701    gcc)
3702      # This depmode causes a compiler race in universal mode.
3703      test "$am__universal" = false || continue
3704      ;;
3705    nosideeffect)
3706      # After this tag, mechanisms are not by side-effect, so they'll
3707      # only be used when explicitly requested.
3708      if test "x$enable_dependency_tracking" = xyes; then
3709	continue
3710      else
3711	break
3712      fi
3713      ;;
3714    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3715      # This compiler won't grok '-c -o', but also, the minuso test has
3716      # not run yet.  These depmodes are late enough in the game, and
3717      # so weak that their functioning should not be impacted.
3718      am__obj=conftest.${OBJEXT-o}
3719      am__minus_obj=
3720      ;;
3721    none) break ;;
3722    esac
3723    if depmode=$depmode \
3724       source=sub/conftest.c object=$am__obj \
3725       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3726       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3727         >/dev/null 2>conftest.err &&
3728       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3729       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3730       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3731       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3732      # icc doesn't choke on unknown options, it will just issue warnings
3733      # or remarks (even with -Werror).  So we grep stderr for any message
3734      # that says an option was ignored or not supported.
3735      # When given -MP, icc 7.0 and 7.1 complain thusly:
3736      #   icc: Command line warning: ignoring option '-M'; no argument required
3737      # The diagnosis changed in icc 8.0:
3738      #   icc: Command line remark: option '-MP' not supported
3739      if (grep 'ignoring option' conftest.err ||
3740          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3741        am_cv_CXX_dependencies_compiler_type=$depmode
3742        break
3743      fi
3744    fi
3745  done
3746
3747  cd ..
3748  rm -rf conftest.dir
3749else
3750  am_cv_CXX_dependencies_compiler_type=none
3751fi
3752
3753fi
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3755$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3756CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3757
3758 if
3759  test "x$enable_dependency_tracking" != xno \
3760  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3761  am__fastdepCXX_TRUE=
3762  am__fastdepCXX_FALSE='#'
3763else
3764  am__fastdepCXX_TRUE='#'
3765  am__fastdepCXX_FALSE=
3766fi
3767
3768
3769
3770ac_ext=c
3771ac_cpp='$CPP $CPPFLAGS'
3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775if test -n "$ac_tool_prefix"; then
3776  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3777set dummy ${ac_tool_prefix}gcc; ac_word=$2
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779$as_echo_n "checking for $ac_word... " >&6; }
3780if ${ac_cv_prog_CC+:} false; then :
3781  $as_echo_n "(cached) " >&6
3782else
3783  if test -n "$CC"; then
3784  ac_cv_prog_CC="$CC" # Let the user override the test.
3785else
3786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787for as_dir in $PATH
3788do
3789  IFS=$as_save_IFS
3790  test -z "$as_dir" && as_dir=.
3791    for ac_exec_ext in '' $ac_executable_extensions; do
3792  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795    break 2
3796  fi
3797done
3798  done
3799IFS=$as_save_IFS
3800
3801fi
3802fi
3803CC=$ac_cv_prog_CC
3804if test -n "$CC"; then
3805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3806$as_echo "$CC" >&6; }
3807else
3808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809$as_echo "no" >&6; }
3810fi
3811
3812
3813fi
3814if test -z "$ac_cv_prog_CC"; then
3815  ac_ct_CC=$CC
3816  # Extract the first word of "gcc", so it can be a program name with args.
3817set dummy gcc; ac_word=$2
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819$as_echo_n "checking for $ac_word... " >&6; }
3820if ${ac_cv_prog_ac_ct_CC+:} false; then :
3821  $as_echo_n "(cached) " >&6
3822else
3823  if test -n "$ac_ct_CC"; then
3824  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3825else
3826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827for as_dir in $PATH
3828do
3829  IFS=$as_save_IFS
3830  test -z "$as_dir" && as_dir=.
3831    for ac_exec_ext in '' $ac_executable_extensions; do
3832  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833    ac_cv_prog_ac_ct_CC="gcc"
3834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3835    break 2
3836  fi
3837done
3838  done
3839IFS=$as_save_IFS
3840
3841fi
3842fi
3843ac_ct_CC=$ac_cv_prog_ac_ct_CC
3844if test -n "$ac_ct_CC"; then
3845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3846$as_echo "$ac_ct_CC" >&6; }
3847else
3848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849$as_echo "no" >&6; }
3850fi
3851
3852  if test "x$ac_ct_CC" = x; then
3853    CC=""
3854  else
3855    case $cross_compiling:$ac_tool_warned in
3856yes:)
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3859ac_tool_warned=yes ;;
3860esac
3861    CC=$ac_ct_CC
3862  fi
3863else
3864  CC="$ac_cv_prog_CC"
3865fi
3866
3867if test -z "$CC"; then
3868          if test -n "$ac_tool_prefix"; then
3869    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3870set dummy ${ac_tool_prefix}cc; ac_word=$2
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872$as_echo_n "checking for $ac_word... " >&6; }
3873if ${ac_cv_prog_CC+:} false; then :
3874  $as_echo_n "(cached) " >&6
3875else
3876  if test -n "$CC"; then
3877  ac_cv_prog_CC="$CC" # Let the user override the test.
3878else
3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH
3881do
3882  IFS=$as_save_IFS
3883  test -z "$as_dir" && as_dir=.
3884    for ac_exec_ext in '' $ac_executable_extensions; do
3885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3886    ac_cv_prog_CC="${ac_tool_prefix}cc"
3887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3888    break 2
3889  fi
3890done
3891  done
3892IFS=$as_save_IFS
3893
3894fi
3895fi
3896CC=$ac_cv_prog_CC
3897if test -n "$CC"; then
3898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3899$as_echo "$CC" >&6; }
3900else
3901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902$as_echo "no" >&6; }
3903fi
3904
3905
3906  fi
3907fi
3908if test -z "$CC"; then
3909  # Extract the first word of "cc", so it can be a program name with args.
3910set dummy cc; ac_word=$2
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912$as_echo_n "checking for $ac_word... " >&6; }
3913if ${ac_cv_prog_CC+:} false; then :
3914  $as_echo_n "(cached) " >&6
3915else
3916  if test -n "$CC"; then
3917  ac_cv_prog_CC="$CC" # Let the user override the test.
3918else
3919  ac_prog_rejected=no
3920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH
3922do
3923  IFS=$as_save_IFS
3924  test -z "$as_dir" && as_dir=.
3925    for ac_exec_ext in '' $ac_executable_extensions; do
3926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3928       ac_prog_rejected=yes
3929       continue
3930     fi
3931    ac_cv_prog_CC="cc"
3932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933    break 2
3934  fi
3935done
3936  done
3937IFS=$as_save_IFS
3938
3939if test $ac_prog_rejected = yes; then
3940  # We found a bogon in the path, so make sure we never use it.
3941  set dummy $ac_cv_prog_CC
3942  shift
3943  if test $# != 0; then
3944    # We chose a different compiler from the bogus one.
3945    # However, it has the same basename, so the bogon will be chosen
3946    # first if we set CC to just the basename; use the full file name.
3947    shift
3948    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3949  fi
3950fi
3951fi
3952fi
3953CC=$ac_cv_prog_CC
3954if test -n "$CC"; then
3955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3956$as_echo "$CC" >&6; }
3957else
3958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959$as_echo "no" >&6; }
3960fi
3961
3962
3963fi
3964if test -z "$CC"; then
3965  if test -n "$ac_tool_prefix"; then
3966  for ac_prog in cl.exe
3967  do
3968    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3969set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971$as_echo_n "checking for $ac_word... " >&6; }
3972if ${ac_cv_prog_CC+:} false; then :
3973  $as_echo_n "(cached) " >&6
3974else
3975  if test -n "$CC"; then
3976  ac_cv_prog_CC="$CC" # Let the user override the test.
3977else
3978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979for as_dir in $PATH
3980do
3981  IFS=$as_save_IFS
3982  test -z "$as_dir" && as_dir=.
3983    for ac_exec_ext in '' $ac_executable_extensions; do
3984  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3985    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987    break 2
3988  fi
3989done
3990  done
3991IFS=$as_save_IFS
3992
3993fi
3994fi
3995CC=$ac_cv_prog_CC
3996if test -n "$CC"; then
3997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3998$as_echo "$CC" >&6; }
3999else
4000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001$as_echo "no" >&6; }
4002fi
4003
4004
4005    test -n "$CC" && break
4006  done
4007fi
4008if test -z "$CC"; then
4009  ac_ct_CC=$CC
4010  for ac_prog in cl.exe
4011do
4012  # Extract the first word of "$ac_prog", so it can be a program name with args.
4013set dummy $ac_prog; ac_word=$2
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015$as_echo_n "checking for $ac_word... " >&6; }
4016if ${ac_cv_prog_ac_ct_CC+:} false; then :
4017  $as_echo_n "(cached) " >&6
4018else
4019  if test -n "$ac_ct_CC"; then
4020  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4021else
4022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023for as_dir in $PATH
4024do
4025  IFS=$as_save_IFS
4026  test -z "$as_dir" && as_dir=.
4027    for ac_exec_ext in '' $ac_executable_extensions; do
4028  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4029    ac_cv_prog_ac_ct_CC="$ac_prog"
4030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4031    break 2
4032  fi
4033done
4034  done
4035IFS=$as_save_IFS
4036
4037fi
4038fi
4039ac_ct_CC=$ac_cv_prog_ac_ct_CC
4040if test -n "$ac_ct_CC"; then
4041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4042$as_echo "$ac_ct_CC" >&6; }
4043else
4044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045$as_echo "no" >&6; }
4046fi
4047
4048
4049  test -n "$ac_ct_CC" && break
4050done
4051
4052  if test "x$ac_ct_CC" = x; then
4053    CC=""
4054  else
4055    case $cross_compiling:$ac_tool_warned in
4056yes:)
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4059ac_tool_warned=yes ;;
4060esac
4061    CC=$ac_ct_CC
4062  fi
4063fi
4064
4065fi
4066
4067
4068test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4070as_fn_error $? "no acceptable C compiler found in \$PATH
4071See \`config.log' for more details" "$LINENO" 5; }
4072
4073# Provide some information about the compiler.
4074$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4075set X $ac_compile
4076ac_compiler=$2
4077for ac_option in --version -v -V -qversion; do
4078  { { ac_try="$ac_compiler $ac_option >&5"
4079case "(($ac_try" in
4080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081  *) ac_try_echo=$ac_try;;
4082esac
4083eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4084$as_echo "$ac_try_echo"; } >&5
4085  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4086  ac_status=$?
4087  if test -s conftest.err; then
4088    sed '10a\
4089... rest of stderr output deleted ...
4090         10q' conftest.err >conftest.er1
4091    cat conftest.er1 >&5
4092  fi
4093  rm -f conftest.er1 conftest.err
4094  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4095  test $ac_status = 0; }
4096done
4097
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4099$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4100if ${ac_cv_c_compiler_gnu+:} false; then :
4101  $as_echo_n "(cached) " >&6
4102else
4103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104/* end confdefs.h.  */
4105
4106int
4107main ()
4108{
4109#ifndef __GNUC__
4110       choke me
4111#endif
4112
4113  ;
4114  return 0;
4115}
4116_ACEOF
4117if ac_fn_c_try_compile "$LINENO"; then :
4118  ac_compiler_gnu=yes
4119else
4120  ac_compiler_gnu=no
4121fi
4122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123ac_cv_c_compiler_gnu=$ac_compiler_gnu
4124
4125fi
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4127$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4128if test $ac_compiler_gnu = yes; then
4129  GCC=yes
4130else
4131  GCC=
4132fi
4133ac_test_CFLAGS=${CFLAGS+set}
4134ac_save_CFLAGS=$CFLAGS
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4136$as_echo_n "checking whether $CC accepts -g... " >&6; }
4137if ${ac_cv_prog_cc_g+:} false; then :
4138  $as_echo_n "(cached) " >&6
4139else
4140  ac_save_c_werror_flag=$ac_c_werror_flag
4141   ac_c_werror_flag=yes
4142   ac_cv_prog_cc_g=no
4143   CFLAGS="-g"
4144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145/* end confdefs.h.  */
4146
4147int
4148main ()
4149{
4150
4151  ;
4152  return 0;
4153}
4154_ACEOF
4155if ac_fn_c_try_compile "$LINENO"; then :
4156  ac_cv_prog_cc_g=yes
4157else
4158  CFLAGS=""
4159      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160/* end confdefs.h.  */
4161
4162int
4163main ()
4164{
4165
4166  ;
4167  return 0;
4168}
4169_ACEOF
4170if ac_fn_c_try_compile "$LINENO"; then :
4171
4172else
4173  ac_c_werror_flag=$ac_save_c_werror_flag
4174	 CFLAGS="-g"
4175	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176/* end confdefs.h.  */
4177
4178int
4179main ()
4180{
4181
4182  ;
4183  return 0;
4184}
4185_ACEOF
4186if ac_fn_c_try_compile "$LINENO"; then :
4187  ac_cv_prog_cc_g=yes
4188fi
4189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190fi
4191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192fi
4193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194   ac_c_werror_flag=$ac_save_c_werror_flag
4195fi
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4197$as_echo "$ac_cv_prog_cc_g" >&6; }
4198if test "$ac_test_CFLAGS" = set; then
4199  CFLAGS=$ac_save_CFLAGS
4200elif test $ac_cv_prog_cc_g = yes; then
4201  if test "$GCC" = yes; then
4202    CFLAGS="-g -O2"
4203  else
4204    CFLAGS="-g"
4205  fi
4206else
4207  if test "$GCC" = yes; then
4208    CFLAGS="-O2"
4209  else
4210    CFLAGS=
4211  fi
4212fi
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4214$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4215if ${ac_cv_prog_cc_c89+:} false; then :
4216  $as_echo_n "(cached) " >&6
4217else
4218  ac_cv_prog_cc_c89=no
4219ac_save_CC=$CC
4220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221/* end confdefs.h.  */
4222#include <stdarg.h>
4223#include <stdio.h>
4224struct stat;
4225/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4226struct buf { int x; };
4227FILE * (*rcsopen) (struct buf *, struct stat *, int);
4228static char *e (p, i)
4229     char **p;
4230     int i;
4231{
4232  return p[i];
4233}
4234static char *f (char * (*g) (char **, int), char **p, ...)
4235{
4236  char *s;
4237  va_list v;
4238  va_start (v,p);
4239  s = g (p, va_arg (v,int));
4240  va_end (v);
4241  return s;
4242}
4243
4244/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4245   function prototypes and stuff, but not '\xHH' hex character constants.
4246   These don't provoke an error unfortunately, instead are silently treated
4247   as 'x'.  The following induces an error, until -std is added to get
4248   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4249   array size at least.  It's necessary to write '\x00'==0 to get something
4250   that's true only with -std.  */
4251int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4252
4253/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4254   inside strings and character constants.  */
4255#define FOO(x) 'x'
4256int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4257
4258int test (int i, double x);
4259struct s1 {int (*f) (int a);};
4260struct s2 {int (*f) (double a);};
4261int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4262int argc;
4263char **argv;
4264int
4265main ()
4266{
4267return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4268  ;
4269  return 0;
4270}
4271_ACEOF
4272for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4273	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4274do
4275  CC="$ac_save_CC $ac_arg"
4276  if ac_fn_c_try_compile "$LINENO"; then :
4277  ac_cv_prog_cc_c89=$ac_arg
4278fi
4279rm -f core conftest.err conftest.$ac_objext
4280  test "x$ac_cv_prog_cc_c89" != "xno" && break
4281done
4282rm -f conftest.$ac_ext
4283CC=$ac_save_CC
4284
4285fi
4286# AC_CACHE_VAL
4287case "x$ac_cv_prog_cc_c89" in
4288  x)
4289    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4290$as_echo "none needed" >&6; } ;;
4291  xno)
4292    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4293$as_echo "unsupported" >&6; } ;;
4294  *)
4295    CC="$CC $ac_cv_prog_cc_c89"
4296    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4297$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4298esac
4299if test "x$ac_cv_prog_cc_c89" != xno; then :
4300
4301fi
4302
4303ac_ext=c
4304ac_cpp='$CPP $CPPFLAGS'
4305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308
4309depcc="$CC"   am_compiler_list=
4310
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4312$as_echo_n "checking dependency style of $depcc... " >&6; }
4313if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4314  $as_echo_n "(cached) " >&6
4315else
4316  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4317  # We make a subdir and do the tests there.  Otherwise we can end up
4318  # making bogus files that we don't know about and never remove.  For
4319  # instance it was reported that on HP-UX the gcc test will end up
4320  # making a dummy file named 'D' -- because '-MD' means "put the output
4321  # in D".
4322  rm -rf conftest.dir
4323  mkdir conftest.dir
4324  # Copy depcomp to subdir because otherwise we won't find it if we're
4325  # using a relative directory.
4326  cp "$am_depcomp" conftest.dir
4327  cd conftest.dir
4328  # We will build objects and dependencies in a subdirectory because
4329  # it helps to detect inapplicable dependency modes.  For instance
4330  # both Tru64's cc and ICC support -MD to output dependencies as a
4331  # side effect of compilation, but ICC will put the dependencies in
4332  # the current directory while Tru64 will put them in the object
4333  # directory.
4334  mkdir sub
4335
4336  am_cv_CC_dependencies_compiler_type=none
4337  if test "$am_compiler_list" = ""; then
4338     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4339  fi
4340  am__universal=false
4341  case " $depcc " in #(
4342     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4343     esac
4344
4345  for depmode in $am_compiler_list; do
4346    # Setup a source with many dependencies, because some compilers
4347    # like to wrap large dependency lists on column 80 (with \), and
4348    # we should not choose a depcomp mode which is confused by this.
4349    #
4350    # We need to recreate these files for each test, as the compiler may
4351    # overwrite some of them when testing with obscure command lines.
4352    # This happens at least with the AIX C compiler.
4353    : > sub/conftest.c
4354    for i in 1 2 3 4 5 6; do
4355      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4356      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4357      # Solaris 10 /bin/sh.
4358      echo '/* dummy */' > sub/conftst$i.h
4359    done
4360    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4361
4362    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4363    # mode.  It turns out that the SunPro C++ compiler does not properly
4364    # handle '-M -o', and we need to detect this.  Also, some Intel
4365    # versions had trouble with output in subdirs.
4366    am__obj=sub/conftest.${OBJEXT-o}
4367    am__minus_obj="-o $am__obj"
4368    case $depmode in
4369    gcc)
4370      # This depmode causes a compiler race in universal mode.
4371      test "$am__universal" = false || continue
4372      ;;
4373    nosideeffect)
4374      # After this tag, mechanisms are not by side-effect, so they'll
4375      # only be used when explicitly requested.
4376      if test "x$enable_dependency_tracking" = xyes; then
4377	continue
4378      else
4379	break
4380      fi
4381      ;;
4382    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4383      # This compiler won't grok '-c -o', but also, the minuso test has
4384      # not run yet.  These depmodes are late enough in the game, and
4385      # so weak that their functioning should not be impacted.
4386      am__obj=conftest.${OBJEXT-o}
4387      am__minus_obj=
4388      ;;
4389    none) break ;;
4390    esac
4391    if depmode=$depmode \
4392       source=sub/conftest.c object=$am__obj \
4393       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4394       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4395         >/dev/null 2>conftest.err &&
4396       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4397       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4398       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4399       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4400      # icc doesn't choke on unknown options, it will just issue warnings
4401      # or remarks (even with -Werror).  So we grep stderr for any message
4402      # that says an option was ignored or not supported.
4403      # When given -MP, icc 7.0 and 7.1 complain thusly:
4404      #   icc: Command line warning: ignoring option '-M'; no argument required
4405      # The diagnosis changed in icc 8.0:
4406      #   icc: Command line remark: option '-MP' not supported
4407      if (grep 'ignoring option' conftest.err ||
4408          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4409        am_cv_CC_dependencies_compiler_type=$depmode
4410        break
4411      fi
4412    fi
4413  done
4414
4415  cd ..
4416  rm -rf conftest.dir
4417else
4418  am_cv_CC_dependencies_compiler_type=none
4419fi
4420
4421fi
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4423$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4424CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4425
4426 if
4427  test "x$enable_dependency_tracking" != xno \
4428  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4429  am__fastdepCC_TRUE=
4430  am__fastdepCC_FALSE='#'
4431else
4432  am__fastdepCC_TRUE='#'
4433  am__fastdepCC_FALSE=
4434fi
4435
4436
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4438$as_echo_n "checking whether ln -s works... " >&6; }
4439LN_S=$as_ln_s
4440if test "$LN_S" = "ln -s"; then
4441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4442$as_echo "yes" >&6; }
4443else
4444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4445$as_echo "no, using $LN_S" >&6; }
4446fi
4447
4448case `pwd` in
4449  *\ * | *\	*)
4450    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4451$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4452esac
4453
4454
4455
4456macro_version='2.4.2'
4457macro_revision='1.3337'
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471ltmain="$ac_aux_dir/ltmain.sh"
4472
4473# Backslashify metacharacters that are still active within
4474# double-quoted strings.
4475sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4476
4477# Same as above, but do not quote variable references.
4478double_quote_subst='s/\(["`\\]\)/\\\1/g'
4479
4480# Sed substitution to delay expansion of an escaped shell variable in a
4481# double_quote_subst'ed string.
4482delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4483
4484# Sed substitution to delay expansion of an escaped single quote.
4485delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4486
4487# Sed substitution to avoid accidental globbing in evaled expressions
4488no_glob_subst='s/\*/\\\*/g'
4489
4490ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4491ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4492ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4493
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4495$as_echo_n "checking how to print strings... " >&6; }
4496# Test print first, because it will be a builtin if present.
4497if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4498   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4499  ECHO='print -r --'
4500elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4501  ECHO='printf %s\n'
4502else
4503  # Use this function as a fallback that always works.
4504  func_fallback_echo ()
4505  {
4506    eval 'cat <<_LTECHO_EOF
4507$1
4508_LTECHO_EOF'
4509  }
4510  ECHO='func_fallback_echo'
4511fi
4512
4513# func_echo_all arg...
4514# Invoke $ECHO with all args, space-separated.
4515func_echo_all ()
4516{
4517    $ECHO ""
4518}
4519
4520case "$ECHO" in
4521  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4522$as_echo "printf" >&6; } ;;
4523  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4524$as_echo "print -r" >&6; } ;;
4525  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4526$as_echo "cat" >&6; } ;;
4527esac
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4543$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4544if ${ac_cv_path_SED+:} false; then :
4545  $as_echo_n "(cached) " >&6
4546else
4547            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4548     for ac_i in 1 2 3 4 5 6 7; do
4549       ac_script="$ac_script$as_nl$ac_script"
4550     done
4551     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4552     { ac_script=; unset ac_script;}
4553     if test -z "$SED"; then
4554  ac_path_SED_found=false
4555  # Loop through the user's path and test for each of PROGNAME-LIST
4556  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557for as_dir in $PATH
4558do
4559  IFS=$as_save_IFS
4560  test -z "$as_dir" && as_dir=.
4561    for ac_prog in sed gsed; do
4562    for ac_exec_ext in '' $ac_executable_extensions; do
4563      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4564      as_fn_executable_p "$ac_path_SED" || continue
4565# Check for GNU ac_path_SED and select it if it is found.
4566  # Check for GNU $ac_path_SED
4567case `"$ac_path_SED" --version 2>&1` in
4568*GNU*)
4569  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4570*)
4571  ac_count=0
4572  $as_echo_n 0123456789 >"conftest.in"
4573  while :
4574  do
4575    cat "conftest.in" "conftest.in" >"conftest.tmp"
4576    mv "conftest.tmp" "conftest.in"
4577    cp "conftest.in" "conftest.nl"
4578    $as_echo '' >> "conftest.nl"
4579    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4580    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4581    as_fn_arith $ac_count + 1 && ac_count=$as_val
4582    if test $ac_count -gt ${ac_path_SED_max-0}; then
4583      # Best one so far, save it but keep looking for a better one
4584      ac_cv_path_SED="$ac_path_SED"
4585      ac_path_SED_max=$ac_count
4586    fi
4587    # 10*(2^10) chars as input seems more than enough
4588    test $ac_count -gt 10 && break
4589  done
4590  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4591esac
4592
4593      $ac_path_SED_found && break 3
4594    done
4595  done
4596  done
4597IFS=$as_save_IFS
4598  if test -z "$ac_cv_path_SED"; then
4599    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4600  fi
4601else
4602  ac_cv_path_SED=$SED
4603fi
4604
4605fi
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4607$as_echo "$ac_cv_path_SED" >&6; }
4608 SED="$ac_cv_path_SED"
4609  rm -f conftest.sed
4610
4611test -z "$SED" && SED=sed
4612Xsed="$SED -e 1s/^X//"
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4625$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4626if ${ac_cv_path_GREP+:} false; then :
4627  $as_echo_n "(cached) " >&6
4628else
4629  if test -z "$GREP"; then
4630  ac_path_GREP_found=false
4631  # Loop through the user's path and test for each of PROGNAME-LIST
4632  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4634do
4635  IFS=$as_save_IFS
4636  test -z "$as_dir" && as_dir=.
4637    for ac_prog in grep ggrep; do
4638    for ac_exec_ext in '' $ac_executable_extensions; do
4639      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4640      as_fn_executable_p "$ac_path_GREP" || continue
4641# Check for GNU ac_path_GREP and select it if it is found.
4642  # Check for GNU $ac_path_GREP
4643case `"$ac_path_GREP" --version 2>&1` in
4644*GNU*)
4645  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4646*)
4647  ac_count=0
4648  $as_echo_n 0123456789 >"conftest.in"
4649  while :
4650  do
4651    cat "conftest.in" "conftest.in" >"conftest.tmp"
4652    mv "conftest.tmp" "conftest.in"
4653    cp "conftest.in" "conftest.nl"
4654    $as_echo 'GREP' >> "conftest.nl"
4655    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4656    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4657    as_fn_arith $ac_count + 1 && ac_count=$as_val
4658    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4659      # Best one so far, save it but keep looking for a better one
4660      ac_cv_path_GREP="$ac_path_GREP"
4661      ac_path_GREP_max=$ac_count
4662    fi
4663    # 10*(2^10) chars as input seems more than enough
4664    test $ac_count -gt 10 && break
4665  done
4666  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4667esac
4668
4669      $ac_path_GREP_found && break 3
4670    done
4671  done
4672  done
4673IFS=$as_save_IFS
4674  if test -z "$ac_cv_path_GREP"; then
4675    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4676  fi
4677else
4678  ac_cv_path_GREP=$GREP
4679fi
4680
4681fi
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4683$as_echo "$ac_cv_path_GREP" >&6; }
4684 GREP="$ac_cv_path_GREP"
4685
4686
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4688$as_echo_n "checking for egrep... " >&6; }
4689if ${ac_cv_path_EGREP+:} false; then :
4690  $as_echo_n "(cached) " >&6
4691else
4692  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4693   then ac_cv_path_EGREP="$GREP -E"
4694   else
4695     if test -z "$EGREP"; then
4696  ac_path_EGREP_found=false
4697  # Loop through the user's path and test for each of PROGNAME-LIST
4698  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4700do
4701  IFS=$as_save_IFS
4702  test -z "$as_dir" && as_dir=.
4703    for ac_prog in egrep; do
4704    for ac_exec_ext in '' $ac_executable_extensions; do
4705      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4706      as_fn_executable_p "$ac_path_EGREP" || continue
4707# Check for GNU ac_path_EGREP and select it if it is found.
4708  # Check for GNU $ac_path_EGREP
4709case `"$ac_path_EGREP" --version 2>&1` in
4710*GNU*)
4711  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4712*)
4713  ac_count=0
4714  $as_echo_n 0123456789 >"conftest.in"
4715  while :
4716  do
4717    cat "conftest.in" "conftest.in" >"conftest.tmp"
4718    mv "conftest.tmp" "conftest.in"
4719    cp "conftest.in" "conftest.nl"
4720    $as_echo 'EGREP' >> "conftest.nl"
4721    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4722    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4723    as_fn_arith $ac_count + 1 && ac_count=$as_val
4724    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4725      # Best one so far, save it but keep looking for a better one
4726      ac_cv_path_EGREP="$ac_path_EGREP"
4727      ac_path_EGREP_max=$ac_count
4728    fi
4729    # 10*(2^10) chars as input seems more than enough
4730    test $ac_count -gt 10 && break
4731  done
4732  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4733esac
4734
4735      $ac_path_EGREP_found && break 3
4736    done
4737  done
4738  done
4739IFS=$as_save_IFS
4740  if test -z "$ac_cv_path_EGREP"; then
4741    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4742  fi
4743else
4744  ac_cv_path_EGREP=$EGREP
4745fi
4746
4747   fi
4748fi
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4750$as_echo "$ac_cv_path_EGREP" >&6; }
4751 EGREP="$ac_cv_path_EGREP"
4752
4753
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4755$as_echo_n "checking for fgrep... " >&6; }
4756if ${ac_cv_path_FGREP+:} false; then :
4757  $as_echo_n "(cached) " >&6
4758else
4759  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4760   then ac_cv_path_FGREP="$GREP -F"
4761   else
4762     if test -z "$FGREP"; then
4763  ac_path_FGREP_found=false
4764  # Loop through the user's path and test for each of PROGNAME-LIST
4765  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4767do
4768  IFS=$as_save_IFS
4769  test -z "$as_dir" && as_dir=.
4770    for ac_prog in fgrep; do
4771    for ac_exec_ext in '' $ac_executable_extensions; do
4772      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4773      as_fn_executable_p "$ac_path_FGREP" || continue
4774# Check for GNU ac_path_FGREP and select it if it is found.
4775  # Check for GNU $ac_path_FGREP
4776case `"$ac_path_FGREP" --version 2>&1` in
4777*GNU*)
4778  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4779*)
4780  ac_count=0
4781  $as_echo_n 0123456789 >"conftest.in"
4782  while :
4783  do
4784    cat "conftest.in" "conftest.in" >"conftest.tmp"
4785    mv "conftest.tmp" "conftest.in"
4786    cp "conftest.in" "conftest.nl"
4787    $as_echo 'FGREP' >> "conftest.nl"
4788    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4789    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4790    as_fn_arith $ac_count + 1 && ac_count=$as_val
4791    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4792      # Best one so far, save it but keep looking for a better one
4793      ac_cv_path_FGREP="$ac_path_FGREP"
4794      ac_path_FGREP_max=$ac_count
4795    fi
4796    # 10*(2^10) chars as input seems more than enough
4797    test $ac_count -gt 10 && break
4798  done
4799  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4800esac
4801
4802      $ac_path_FGREP_found && break 3
4803    done
4804  done
4805  done
4806IFS=$as_save_IFS
4807  if test -z "$ac_cv_path_FGREP"; then
4808    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4809  fi
4810else
4811  ac_cv_path_FGREP=$FGREP
4812fi
4813
4814   fi
4815fi
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4817$as_echo "$ac_cv_path_FGREP" >&6; }
4818 FGREP="$ac_cv_path_FGREP"
4819
4820
4821test -z "$GREP" && GREP=grep
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841# Check whether --with-gnu-ld was given.
4842if test "${with_gnu_ld+set}" = set; then :
4843  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4844else
4845  with_gnu_ld=no
4846fi
4847
4848ac_prog=ld
4849if test "$GCC" = yes; then
4850  # Check if gcc -print-prog-name=ld gives a path.
4851  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4852$as_echo_n "checking for ld used by $CC... " >&6; }
4853  case $host in
4854  *-*-mingw*)
4855    # gcc leaves a trailing carriage return which upsets mingw
4856    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4857  *)
4858    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4859  esac
4860  case $ac_prog in
4861    # Accept absolute paths.
4862    [\\/]* | ?:[\\/]*)
4863      re_direlt='/[^/][^/]*/\.\./'
4864      # Canonicalize the pathname of ld
4865      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4866      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4867	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4868      done
4869      test -z "$LD" && LD="$ac_prog"
4870      ;;
4871  "")
4872    # If it fails, then pretend we aren't using GCC.
4873    ac_prog=ld
4874    ;;
4875  *)
4876    # If it is relative, then search for the first ld in PATH.
4877    with_gnu_ld=unknown
4878    ;;
4879  esac
4880elif test "$with_gnu_ld" = yes; then
4881  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4882$as_echo_n "checking for GNU ld... " >&6; }
4883else
4884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4885$as_echo_n "checking for non-GNU ld... " >&6; }
4886fi
4887if ${lt_cv_path_LD+:} false; then :
4888  $as_echo_n "(cached) " >&6
4889else
4890  if test -z "$LD"; then
4891  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4892  for ac_dir in $PATH; do
4893    IFS="$lt_save_ifs"
4894    test -z "$ac_dir" && ac_dir=.
4895    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4896      lt_cv_path_LD="$ac_dir/$ac_prog"
4897      # Check to see if the program is GNU ld.  I'd rather use --version,
4898      # but apparently some variants of GNU ld only accept -v.
4899      # Break only if it was the GNU/non-GNU ld that we prefer.
4900      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4901      *GNU* | *'with BFD'*)
4902	test "$with_gnu_ld" != no && break
4903	;;
4904      *)
4905	test "$with_gnu_ld" != yes && break
4906	;;
4907      esac
4908    fi
4909  done
4910  IFS="$lt_save_ifs"
4911else
4912  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4913fi
4914fi
4915
4916LD="$lt_cv_path_LD"
4917if test -n "$LD"; then
4918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4919$as_echo "$LD" >&6; }
4920else
4921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922$as_echo "no" >&6; }
4923fi
4924test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4926$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4927if ${lt_cv_prog_gnu_ld+:} false; then :
4928  $as_echo_n "(cached) " >&6
4929else
4930  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4931case `$LD -v 2>&1 </dev/null` in
4932*GNU* | *'with BFD'*)
4933  lt_cv_prog_gnu_ld=yes
4934  ;;
4935*)
4936  lt_cv_prog_gnu_ld=no
4937  ;;
4938esac
4939fi
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4941$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4942with_gnu_ld=$lt_cv_prog_gnu_ld
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4953$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4954if ${lt_cv_path_NM+:} false; then :
4955  $as_echo_n "(cached) " >&6
4956else
4957  if test -n "$NM"; then
4958  # Let the user override the test.
4959  lt_cv_path_NM="$NM"
4960else
4961  lt_nm_to_check="${ac_tool_prefix}nm"
4962  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4963    lt_nm_to_check="$lt_nm_to_check nm"
4964  fi
4965  for lt_tmp_nm in $lt_nm_to_check; do
4966    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4967    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4968      IFS="$lt_save_ifs"
4969      test -z "$ac_dir" && ac_dir=.
4970      tmp_nm="$ac_dir/$lt_tmp_nm"
4971      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4972	# Check to see if the nm accepts a BSD-compat flag.
4973	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4974	#   nm: unknown option "B" ignored
4975	# Tru64's nm complains that /dev/null is an invalid object file
4976	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4977	*/dev/null* | *'Invalid file or object type'*)
4978	  lt_cv_path_NM="$tmp_nm -B"
4979	  break
4980	  ;;
4981	*)
4982	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4983	  */dev/null*)
4984	    lt_cv_path_NM="$tmp_nm -p"
4985	    break
4986	    ;;
4987	  *)
4988	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4989	    continue # so that we can try to find one that supports BSD flags
4990	    ;;
4991	  esac
4992	  ;;
4993	esac
4994      fi
4995    done
4996    IFS="$lt_save_ifs"
4997  done
4998  : ${lt_cv_path_NM=no}
4999fi
5000fi
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5002$as_echo "$lt_cv_path_NM" >&6; }
5003if test "$lt_cv_path_NM" != "no"; then
5004  NM="$lt_cv_path_NM"
5005else
5006  # Didn't find any BSD compatible name lister, look for dumpbin.
5007  if test -n "$DUMPBIN"; then :
5008    # Let the user override the test.
5009  else
5010    if test -n "$ac_tool_prefix"; then
5011  for ac_prog in dumpbin "link -dump"
5012  do
5013    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5014set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016$as_echo_n "checking for $ac_word... " >&6; }
5017if ${ac_cv_prog_DUMPBIN+:} false; then :
5018  $as_echo_n "(cached) " >&6
5019else
5020  if test -n "$DUMPBIN"; then
5021  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5022else
5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024for as_dir in $PATH
5025do
5026  IFS=$as_save_IFS
5027  test -z "$as_dir" && as_dir=.
5028    for ac_exec_ext in '' $ac_executable_extensions; do
5029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032    break 2
5033  fi
5034done
5035  done
5036IFS=$as_save_IFS
5037
5038fi
5039fi
5040DUMPBIN=$ac_cv_prog_DUMPBIN
5041if test -n "$DUMPBIN"; then
5042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5043$as_echo "$DUMPBIN" >&6; }
5044else
5045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046$as_echo "no" >&6; }
5047fi
5048
5049
5050    test -n "$DUMPBIN" && break
5051  done
5052fi
5053if test -z "$DUMPBIN"; then
5054  ac_ct_DUMPBIN=$DUMPBIN
5055  for ac_prog in dumpbin "link -dump"
5056do
5057  # Extract the first word of "$ac_prog", so it can be a program name with args.
5058set dummy $ac_prog; ac_word=$2
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060$as_echo_n "checking for $ac_word... " >&6; }
5061if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5062  $as_echo_n "(cached) " >&6
5063else
5064  if test -n "$ac_ct_DUMPBIN"; then
5065  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5066else
5067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068for as_dir in $PATH
5069do
5070  IFS=$as_save_IFS
5071  test -z "$as_dir" && as_dir=.
5072    for ac_exec_ext in '' $ac_executable_extensions; do
5073  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5074    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076    break 2
5077  fi
5078done
5079  done
5080IFS=$as_save_IFS
5081
5082fi
5083fi
5084ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5085if test -n "$ac_ct_DUMPBIN"; then
5086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5087$as_echo "$ac_ct_DUMPBIN" >&6; }
5088else
5089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090$as_echo "no" >&6; }
5091fi
5092
5093
5094  test -n "$ac_ct_DUMPBIN" && break
5095done
5096
5097  if test "x$ac_ct_DUMPBIN" = x; then
5098    DUMPBIN=":"
5099  else
5100    case $cross_compiling:$ac_tool_warned in
5101yes:)
5102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104ac_tool_warned=yes ;;
5105esac
5106    DUMPBIN=$ac_ct_DUMPBIN
5107  fi
5108fi
5109
5110    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5111    *COFF*)
5112      DUMPBIN="$DUMPBIN -symbols"
5113      ;;
5114    *)
5115      DUMPBIN=:
5116      ;;
5117    esac
5118  fi
5119
5120  if test "$DUMPBIN" != ":"; then
5121    NM="$DUMPBIN"
5122  fi
5123fi
5124test -z "$NM" && NM=nm
5125
5126
5127
5128
5129
5130
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5132$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5133if ${lt_cv_nm_interface+:} false; then :
5134  $as_echo_n "(cached) " >&6
5135else
5136  lt_cv_nm_interface="BSD nm"
5137  echo "int some_variable = 0;" > conftest.$ac_ext
5138  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5139  (eval "$ac_compile" 2>conftest.err)
5140  cat conftest.err >&5
5141  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5142  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5143  cat conftest.err >&5
5144  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5145  cat conftest.out >&5
5146  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5147    lt_cv_nm_interface="MS dumpbin"
5148  fi
5149  rm -f conftest*
5150fi
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5152$as_echo "$lt_cv_nm_interface" >&6; }
5153
5154# find the maximum length of command line arguments
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5156$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5157if ${lt_cv_sys_max_cmd_len+:} false; then :
5158  $as_echo_n "(cached) " >&6
5159else
5160    i=0
5161  teststring="ABCD"
5162
5163  case $build_os in
5164  msdosdjgpp*)
5165    # On DJGPP, this test can blow up pretty badly due to problems in libc
5166    # (any single argument exceeding 2000 bytes causes a buffer overrun
5167    # during glob expansion).  Even if it were fixed, the result of this
5168    # check would be larger than it should be.
5169    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5170    ;;
5171
5172  gnu*)
5173    # Under GNU Hurd, this test is not required because there is
5174    # no limit to the length of command line arguments.
5175    # Libtool will interpret -1 as no limit whatsoever
5176    lt_cv_sys_max_cmd_len=-1;
5177    ;;
5178
5179  cygwin* | mingw* | cegcc*)
5180    # On Win9x/ME, this test blows up -- it succeeds, but takes
5181    # about 5 minutes as the teststring grows exponentially.
5182    # Worse, since 9x/ME are not pre-emptively multitasking,
5183    # you end up with a "frozen" computer, even though with patience
5184    # the test eventually succeeds (with a max line length of 256k).
5185    # Instead, let's just punt: use the minimum linelength reported by
5186    # all of the supported platforms: 8192 (on NT/2K/XP).
5187    lt_cv_sys_max_cmd_len=8192;
5188    ;;
5189
5190  mint*)
5191    # On MiNT this can take a long time and run out of memory.
5192    lt_cv_sys_max_cmd_len=8192;
5193    ;;
5194
5195  amigaos*)
5196    # On AmigaOS with pdksh, this test takes hours, literally.
5197    # So we just punt and use a minimum line length of 8192.
5198    lt_cv_sys_max_cmd_len=8192;
5199    ;;
5200
5201  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5202    # This has been around since 386BSD, at least.  Likely further.
5203    if test -x /sbin/sysctl; then
5204      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5205    elif test -x /usr/sbin/sysctl; then
5206      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5207    else
5208      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5209    fi
5210    # And add a safety zone
5211    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5212    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5213    ;;
5214
5215  interix*)
5216    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5217    lt_cv_sys_max_cmd_len=196608
5218    ;;
5219
5220  os2*)
5221    # The test takes a long time on OS/2.
5222    lt_cv_sys_max_cmd_len=8192
5223    ;;
5224
5225  osf*)
5226    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5227    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5228    # nice to cause kernel panics so lets avoid the loop below.
5229    # First set a reasonable default.
5230    lt_cv_sys_max_cmd_len=16384
5231    #
5232    if test -x /sbin/sysconfig; then
5233      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5234        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5235      esac
5236    fi
5237    ;;
5238  sco3.2v5*)
5239    lt_cv_sys_max_cmd_len=102400
5240    ;;
5241  sysv5* | sco5v6* | sysv4.2uw2*)
5242    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5243    if test -n "$kargmax"; then
5244      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5245    else
5246      lt_cv_sys_max_cmd_len=32768
5247    fi
5248    ;;
5249  *)
5250    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5251    if test -n "$lt_cv_sys_max_cmd_len"; then
5252      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5253      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5254    else
5255      # Make teststring a little bigger before we do anything with it.
5256      # a 1K string should be a reasonable start.
5257      for i in 1 2 3 4 5 6 7 8 ; do
5258        teststring=$teststring$teststring
5259      done
5260      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5261      # If test is not a shell built-in, we'll probably end up computing a
5262      # maximum length that is only half of the actual maximum length, but
5263      # we can't tell.
5264      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5265	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5266	      test $i != 17 # 1/2 MB should be enough
5267      do
5268        i=`expr $i + 1`
5269        teststring=$teststring$teststring
5270      done
5271      # Only check the string length outside the loop.
5272      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5273      teststring=
5274      # Add a significant safety factor because C++ compilers can tack on
5275      # massive amounts of additional arguments before passing them to the
5276      # linker.  It appears as though 1/2 is a usable value.
5277      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5278    fi
5279    ;;
5280  esac
5281
5282fi
5283
5284if test -n $lt_cv_sys_max_cmd_len ; then
5285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5286$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5287else
5288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5289$as_echo "none" >&6; }
5290fi
5291max_cmd_len=$lt_cv_sys_max_cmd_len
5292
5293
5294
5295
5296
5297
5298: ${CP="cp -f"}
5299: ${MV="mv -f"}
5300: ${RM="rm -f"}
5301
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5303$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5304# Try some XSI features
5305xsi_shell=no
5306( _lt_dummy="a/b/c"
5307  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5308      = c,a/b,b/c, \
5309    && eval 'test $(( 1 + 1 )) -eq 2 \
5310    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5311  && xsi_shell=yes
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5313$as_echo "$xsi_shell" >&6; }
5314
5315
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5317$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5318lt_shell_append=no
5319( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5320    >/dev/null 2>&1 \
5321  && lt_shell_append=yes
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5323$as_echo "$lt_shell_append" >&6; }
5324
5325
5326if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5327  lt_unset=unset
5328else
5329  lt_unset=false
5330fi
5331
5332
5333
5334
5335
5336# test EBCDIC or ASCII
5337case `echo X|tr X '\101'` in
5338 A) # ASCII based system
5339    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5340  lt_SP2NL='tr \040 \012'
5341  lt_NL2SP='tr \015\012 \040\040'
5342  ;;
5343 *) # EBCDIC based system
5344  lt_SP2NL='tr \100 \n'
5345  lt_NL2SP='tr \r\n \100\100'
5346  ;;
5347esac
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5358$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5359if ${lt_cv_to_host_file_cmd+:} false; then :
5360  $as_echo_n "(cached) " >&6
5361else
5362  case $host in
5363  *-*-mingw* )
5364    case $build in
5365      *-*-mingw* ) # actually msys
5366        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5367        ;;
5368      *-*-cygwin* )
5369        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5370        ;;
5371      * ) # otherwise, assume *nix
5372        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5373        ;;
5374    esac
5375    ;;
5376  *-*-cygwin* )
5377    case $build in
5378      *-*-mingw* ) # actually msys
5379        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5380        ;;
5381      *-*-cygwin* )
5382        lt_cv_to_host_file_cmd=func_convert_file_noop
5383        ;;
5384      * ) # otherwise, assume *nix
5385        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5386        ;;
5387    esac
5388    ;;
5389  * ) # unhandled hosts (and "normal" native builds)
5390    lt_cv_to_host_file_cmd=func_convert_file_noop
5391    ;;
5392esac
5393
5394fi
5395
5396to_host_file_cmd=$lt_cv_to_host_file_cmd
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5398$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5399
5400
5401
5402
5403
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5405$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5406if ${lt_cv_to_tool_file_cmd+:} false; then :
5407  $as_echo_n "(cached) " >&6
5408else
5409  #assume ordinary cross tools, or native build.
5410lt_cv_to_tool_file_cmd=func_convert_file_noop
5411case $host in
5412  *-*-mingw* )
5413    case $build in
5414      *-*-mingw* ) # actually msys
5415        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5416        ;;
5417    esac
5418    ;;
5419esac
5420
5421fi
5422
5423to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5425$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5426
5427
5428
5429
5430
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5432$as_echo_n "checking for $LD option to reload object files... " >&6; }
5433if ${lt_cv_ld_reload_flag+:} false; then :
5434  $as_echo_n "(cached) " >&6
5435else
5436  lt_cv_ld_reload_flag='-r'
5437fi
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5439$as_echo "$lt_cv_ld_reload_flag" >&6; }
5440reload_flag=$lt_cv_ld_reload_flag
5441case $reload_flag in
5442"" | " "*) ;;
5443*) reload_flag=" $reload_flag" ;;
5444esac
5445reload_cmds='$LD$reload_flag -o $output$reload_objs'
5446case $host_os in
5447  cygwin* | mingw* | pw32* | cegcc*)
5448    if test "$GCC" != yes; then
5449      reload_cmds=false
5450    fi
5451    ;;
5452  darwin*)
5453    if test "$GCC" = yes; then
5454      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5455    else
5456      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5457    fi
5458    ;;
5459esac
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469if test -n "$ac_tool_prefix"; then
5470  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5471set dummy ${ac_tool_prefix}objdump; ac_word=$2
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5473$as_echo_n "checking for $ac_word... " >&6; }
5474if ${ac_cv_prog_OBJDUMP+:} false; then :
5475  $as_echo_n "(cached) " >&6
5476else
5477  if test -n "$OBJDUMP"; then
5478  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5479else
5480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481for as_dir in $PATH
5482do
5483  IFS=$as_save_IFS
5484  test -z "$as_dir" && as_dir=.
5485    for ac_exec_ext in '' $ac_executable_extensions; do
5486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5487    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5489    break 2
5490  fi
5491done
5492  done
5493IFS=$as_save_IFS
5494
5495fi
5496fi
5497OBJDUMP=$ac_cv_prog_OBJDUMP
5498if test -n "$OBJDUMP"; then
5499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5500$as_echo "$OBJDUMP" >&6; }
5501else
5502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503$as_echo "no" >&6; }
5504fi
5505
5506
5507fi
5508if test -z "$ac_cv_prog_OBJDUMP"; then
5509  ac_ct_OBJDUMP=$OBJDUMP
5510  # Extract the first word of "objdump", so it can be a program name with args.
5511set dummy objdump; ac_word=$2
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5513$as_echo_n "checking for $ac_word... " >&6; }
5514if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5515  $as_echo_n "(cached) " >&6
5516else
5517  if test -n "$ac_ct_OBJDUMP"; then
5518  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5519else
5520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521for as_dir in $PATH
5522do
5523  IFS=$as_save_IFS
5524  test -z "$as_dir" && as_dir=.
5525    for ac_exec_ext in '' $ac_executable_extensions; do
5526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529    break 2
5530  fi
5531done
5532  done
5533IFS=$as_save_IFS
5534
5535fi
5536fi
5537ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5538if test -n "$ac_ct_OBJDUMP"; then
5539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5540$as_echo "$ac_ct_OBJDUMP" >&6; }
5541else
5542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543$as_echo "no" >&6; }
5544fi
5545
5546  if test "x$ac_ct_OBJDUMP" = x; then
5547    OBJDUMP="false"
5548  else
5549    case $cross_compiling:$ac_tool_warned in
5550yes:)
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5553ac_tool_warned=yes ;;
5554esac
5555    OBJDUMP=$ac_ct_OBJDUMP
5556  fi
5557else
5558  OBJDUMP="$ac_cv_prog_OBJDUMP"
5559fi
5560
5561test -z "$OBJDUMP" && OBJDUMP=objdump
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5572$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5573if ${lt_cv_deplibs_check_method+:} false; then :
5574  $as_echo_n "(cached) " >&6
5575else
5576  lt_cv_file_magic_cmd='$MAGIC_CMD'
5577lt_cv_file_magic_test_file=
5578lt_cv_deplibs_check_method='unknown'
5579# Need to set the preceding variable on all platforms that support
5580# interlibrary dependencies.
5581# 'none' -- dependencies not supported.
5582# `unknown' -- same as none, but documents that we really don't know.
5583# 'pass_all' -- all dependencies passed with no checks.
5584# 'test_compile' -- check by making test program.
5585# 'file_magic [[regex]]' -- check by looking for files in library path
5586# which responds to the $file_magic_cmd with a given extended regex.
5587# If you have `file' or equivalent on your system and you're not sure
5588# whether `pass_all' will *always* work, you probably want this one.
5589
5590case $host_os in
5591aix[4-9]*)
5592  lt_cv_deplibs_check_method=pass_all
5593  ;;
5594
5595beos*)
5596  lt_cv_deplibs_check_method=pass_all
5597  ;;
5598
5599bsdi[45]*)
5600  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5601  lt_cv_file_magic_cmd='/usr/bin/file -L'
5602  lt_cv_file_magic_test_file=/shlib/libc.so
5603  ;;
5604
5605cygwin*)
5606  # func_win32_libid is a shell function defined in ltmain.sh
5607  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5608  lt_cv_file_magic_cmd='func_win32_libid'
5609  ;;
5610
5611mingw* | pw32*)
5612  # Base MSYS/MinGW do not provide the 'file' command needed by
5613  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5614  # unless we find 'file', for example because we are cross-compiling.
5615  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5616  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5617    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5618    lt_cv_file_magic_cmd='func_win32_libid'
5619  else
5620    # Keep this pattern in sync with the one in func_win32_libid.
5621    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5622    lt_cv_file_magic_cmd='$OBJDUMP -f'
5623  fi
5624  ;;
5625
5626cegcc*)
5627  # use the weaker test based on 'objdump'. See mingw*.
5628  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5629  lt_cv_file_magic_cmd='$OBJDUMP -f'
5630  ;;
5631
5632darwin* | rhapsody*)
5633  lt_cv_deplibs_check_method=pass_all
5634  ;;
5635
5636freebsd* | dragonfly*)
5637  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5638    case $host_cpu in
5639    i*86 )
5640      # Not sure whether the presence of OpenBSD here was a mistake.
5641      # Let's accept both of them until this is cleared up.
5642      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5643      lt_cv_file_magic_cmd=/usr/bin/file
5644      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5645      ;;
5646    esac
5647  else
5648    lt_cv_deplibs_check_method=pass_all
5649  fi
5650  ;;
5651
5652gnu*)
5653  lt_cv_deplibs_check_method=pass_all
5654  ;;
5655
5656haiku*)
5657  lt_cv_deplibs_check_method=pass_all
5658  ;;
5659
5660hpux10.20* | hpux11*)
5661  lt_cv_file_magic_cmd=/usr/bin/file
5662  case $host_cpu in
5663  ia64*)
5664    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5665    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5666    ;;
5667  hppa*64*)
5668    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]'
5669    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5670    ;;
5671  *)
5672    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5673    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5674    ;;
5675  esac
5676  ;;
5677
5678interix[3-9]*)
5679  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5680  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5681  ;;
5682
5683irix5* | irix6* | nonstopux*)
5684  case $LD in
5685  *-32|*"-32 ") libmagic=32-bit;;
5686  *-n32|*"-n32 ") libmagic=N32;;
5687  *-64|*"-64 ") libmagic=64-bit;;
5688  *) libmagic=never-match;;
5689  esac
5690  lt_cv_deplibs_check_method=pass_all
5691  ;;
5692
5693# This must be glibc/ELF.
5694linux* | k*bsd*-gnu | kopensolaris*-gnu)
5695  lt_cv_deplibs_check_method=pass_all
5696  ;;
5697
5698netbsd*)
5699  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5700    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5701  else
5702    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5703  fi
5704  ;;
5705
5706newos6*)
5707  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5708  lt_cv_file_magic_cmd=/usr/bin/file
5709  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5710  ;;
5711
5712*nto* | *qnx*)
5713  lt_cv_deplibs_check_method=pass_all
5714  ;;
5715
5716openbsd*)
5717  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5718    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5719  else
5720    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5721  fi
5722  ;;
5723
5724osf3* | osf4* | osf5*)
5725  lt_cv_deplibs_check_method=pass_all
5726  ;;
5727
5728rdos*)
5729  lt_cv_deplibs_check_method=pass_all
5730  ;;
5731
5732solaris*)
5733  lt_cv_deplibs_check_method=pass_all
5734  ;;
5735
5736sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5737  lt_cv_deplibs_check_method=pass_all
5738  ;;
5739
5740sysv4 | sysv4.3*)
5741  case $host_vendor in
5742  motorola)
5743    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]'
5744    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5745    ;;
5746  ncr)
5747    lt_cv_deplibs_check_method=pass_all
5748    ;;
5749  sequent)
5750    lt_cv_file_magic_cmd='/bin/file'
5751    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5752    ;;
5753  sni)
5754    lt_cv_file_magic_cmd='/bin/file'
5755    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5756    lt_cv_file_magic_test_file=/lib/libc.so
5757    ;;
5758  siemens)
5759    lt_cv_deplibs_check_method=pass_all
5760    ;;
5761  pc)
5762    lt_cv_deplibs_check_method=pass_all
5763    ;;
5764  esac
5765  ;;
5766
5767tpf*)
5768  lt_cv_deplibs_check_method=pass_all
5769  ;;
5770esac
5771
5772fi
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5774$as_echo "$lt_cv_deplibs_check_method" >&6; }
5775
5776file_magic_glob=
5777want_nocaseglob=no
5778if test "$build" = "$host"; then
5779  case $host_os in
5780  mingw* | pw32*)
5781    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5782      want_nocaseglob=yes
5783    else
5784      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5785    fi
5786    ;;
5787  esac
5788fi
5789
5790file_magic_cmd=$lt_cv_file_magic_cmd
5791deplibs_check_method=$lt_cv_deplibs_check_method
5792test -z "$deplibs_check_method" && deplibs_check_method=unknown
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815if test -n "$ac_tool_prefix"; then
5816  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5817set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819$as_echo_n "checking for $ac_word... " >&6; }
5820if ${ac_cv_prog_DLLTOOL+:} false; then :
5821  $as_echo_n "(cached) " >&6
5822else
5823  if test -n "$DLLTOOL"; then
5824  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5825else
5826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827for as_dir in $PATH
5828do
5829  IFS=$as_save_IFS
5830  test -z "$as_dir" && as_dir=.
5831    for ac_exec_ext in '' $ac_executable_extensions; do
5832  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5833    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5835    break 2
5836  fi
5837done
5838  done
5839IFS=$as_save_IFS
5840
5841fi
5842fi
5843DLLTOOL=$ac_cv_prog_DLLTOOL
5844if test -n "$DLLTOOL"; then
5845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5846$as_echo "$DLLTOOL" >&6; }
5847else
5848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849$as_echo "no" >&6; }
5850fi
5851
5852
5853fi
5854if test -z "$ac_cv_prog_DLLTOOL"; then
5855  ac_ct_DLLTOOL=$DLLTOOL
5856  # Extract the first word of "dlltool", so it can be a program name with args.
5857set dummy dlltool; ac_word=$2
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859$as_echo_n "checking for $ac_word... " >&6; }
5860if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5861  $as_echo_n "(cached) " >&6
5862else
5863  if test -n "$ac_ct_DLLTOOL"; then
5864  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5865else
5866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867for as_dir in $PATH
5868do
5869  IFS=$as_save_IFS
5870  test -z "$as_dir" && as_dir=.
5871    for ac_exec_ext in '' $ac_executable_extensions; do
5872  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5873    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5874    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5875    break 2
5876  fi
5877done
5878  done
5879IFS=$as_save_IFS
5880
5881fi
5882fi
5883ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5884if test -n "$ac_ct_DLLTOOL"; then
5885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5886$as_echo "$ac_ct_DLLTOOL" >&6; }
5887else
5888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889$as_echo "no" >&6; }
5890fi
5891
5892  if test "x$ac_ct_DLLTOOL" = x; then
5893    DLLTOOL="false"
5894  else
5895    case $cross_compiling:$ac_tool_warned in
5896yes:)
5897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5899ac_tool_warned=yes ;;
5900esac
5901    DLLTOOL=$ac_ct_DLLTOOL
5902  fi
5903else
5904  DLLTOOL="$ac_cv_prog_DLLTOOL"
5905fi
5906
5907test -z "$DLLTOOL" && DLLTOOL=dlltool
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5919$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5920if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5921  $as_echo_n "(cached) " >&6
5922else
5923  lt_cv_sharedlib_from_linklib_cmd='unknown'
5924
5925case $host_os in
5926cygwin* | mingw* | pw32* | cegcc*)
5927  # two different shell functions defined in ltmain.sh
5928  # decide which to use based on capabilities of $DLLTOOL
5929  case `$DLLTOOL --help 2>&1` in
5930  *--identify-strict*)
5931    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5932    ;;
5933  *)
5934    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5935    ;;
5936  esac
5937  ;;
5938*)
5939  # fallback: assume linklib IS sharedlib
5940  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5941  ;;
5942esac
5943
5944fi
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5946$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5947sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5948test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5949
5950
5951
5952
5953
5954
5955
5956
5957if test -n "$ac_tool_prefix"; then
5958  for ac_prog in ar
5959  do
5960    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5961set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963$as_echo_n "checking for $ac_word... " >&6; }
5964if ${ac_cv_prog_AR+:} false; then :
5965  $as_echo_n "(cached) " >&6
5966else
5967  if test -n "$AR"; then
5968  ac_cv_prog_AR="$AR" # Let the user override the test.
5969else
5970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971for as_dir in $PATH
5972do
5973  IFS=$as_save_IFS
5974  test -z "$as_dir" && as_dir=.
5975    for ac_exec_ext in '' $ac_executable_extensions; do
5976  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5977    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5978    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979    break 2
5980  fi
5981done
5982  done
5983IFS=$as_save_IFS
5984
5985fi
5986fi
5987AR=$ac_cv_prog_AR
5988if test -n "$AR"; then
5989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5990$as_echo "$AR" >&6; }
5991else
5992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993$as_echo "no" >&6; }
5994fi
5995
5996
5997    test -n "$AR" && break
5998  done
5999fi
6000if test -z "$AR"; then
6001  ac_ct_AR=$AR
6002  for ac_prog in ar
6003do
6004  # Extract the first word of "$ac_prog", so it can be a program name with args.
6005set dummy $ac_prog; ac_word=$2
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007$as_echo_n "checking for $ac_word... " >&6; }
6008if ${ac_cv_prog_ac_ct_AR+:} false; then :
6009  $as_echo_n "(cached) " >&6
6010else
6011  if test -n "$ac_ct_AR"; then
6012  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6013else
6014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015for as_dir in $PATH
6016do
6017  IFS=$as_save_IFS
6018  test -z "$as_dir" && as_dir=.
6019    for ac_exec_ext in '' $ac_executable_extensions; do
6020  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6021    ac_cv_prog_ac_ct_AR="$ac_prog"
6022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023    break 2
6024  fi
6025done
6026  done
6027IFS=$as_save_IFS
6028
6029fi
6030fi
6031ac_ct_AR=$ac_cv_prog_ac_ct_AR
6032if test -n "$ac_ct_AR"; then
6033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6034$as_echo "$ac_ct_AR" >&6; }
6035else
6036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037$as_echo "no" >&6; }
6038fi
6039
6040
6041  test -n "$ac_ct_AR" && break
6042done
6043
6044  if test "x$ac_ct_AR" = x; then
6045    AR="false"
6046  else
6047    case $cross_compiling:$ac_tool_warned in
6048yes:)
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6051ac_tool_warned=yes ;;
6052esac
6053    AR=$ac_ct_AR
6054  fi
6055fi
6056
6057: ${AR=ar}
6058: ${AR_FLAGS=cru}
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6071$as_echo_n "checking for archiver @FILE support... " >&6; }
6072if ${lt_cv_ar_at_file+:} false; then :
6073  $as_echo_n "(cached) " >&6
6074else
6075  lt_cv_ar_at_file=no
6076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077/* end confdefs.h.  */
6078
6079int
6080main ()
6081{
6082
6083  ;
6084  return 0;
6085}
6086_ACEOF
6087if ac_fn_c_try_compile "$LINENO"; then :
6088  echo conftest.$ac_objext > conftest.lst
6089      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6090      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6091  (eval $lt_ar_try) 2>&5
6092  ac_status=$?
6093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6094  test $ac_status = 0; }
6095      if test "$ac_status" -eq 0; then
6096	# Ensure the archiver fails upon bogus file names.
6097	rm -f conftest.$ac_objext libconftest.a
6098	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6099  (eval $lt_ar_try) 2>&5
6100  ac_status=$?
6101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6102  test $ac_status = 0; }
6103	if test "$ac_status" -ne 0; then
6104          lt_cv_ar_at_file=@
6105        fi
6106      fi
6107      rm -f conftest.* libconftest.a
6108
6109fi
6110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111
6112fi
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6114$as_echo "$lt_cv_ar_at_file" >&6; }
6115
6116if test "x$lt_cv_ar_at_file" = xno; then
6117  archiver_list_spec=
6118else
6119  archiver_list_spec=$lt_cv_ar_at_file
6120fi
6121
6122
6123
6124
6125
6126
6127
6128if test -n "$ac_tool_prefix"; then
6129  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6130set dummy ${ac_tool_prefix}strip; ac_word=$2
6131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6132$as_echo_n "checking for $ac_word... " >&6; }
6133if ${ac_cv_prog_STRIP+:} false; then :
6134  $as_echo_n "(cached) " >&6
6135else
6136  if test -n "$STRIP"; then
6137  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6138else
6139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140for as_dir in $PATH
6141do
6142  IFS=$as_save_IFS
6143  test -z "$as_dir" && as_dir=.
6144    for ac_exec_ext in '' $ac_executable_extensions; do
6145  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6146    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6148    break 2
6149  fi
6150done
6151  done
6152IFS=$as_save_IFS
6153
6154fi
6155fi
6156STRIP=$ac_cv_prog_STRIP
6157if test -n "$STRIP"; then
6158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6159$as_echo "$STRIP" >&6; }
6160else
6161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162$as_echo "no" >&6; }
6163fi
6164
6165
6166fi
6167if test -z "$ac_cv_prog_STRIP"; then
6168  ac_ct_STRIP=$STRIP
6169  # Extract the first word of "strip", so it can be a program name with args.
6170set dummy strip; ac_word=$2
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172$as_echo_n "checking for $ac_word... " >&6; }
6173if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6174  $as_echo_n "(cached) " >&6
6175else
6176  if test -n "$ac_ct_STRIP"; then
6177  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6178else
6179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180for as_dir in $PATH
6181do
6182  IFS=$as_save_IFS
6183  test -z "$as_dir" && as_dir=.
6184    for ac_exec_ext in '' $ac_executable_extensions; do
6185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6186    ac_cv_prog_ac_ct_STRIP="strip"
6187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188    break 2
6189  fi
6190done
6191  done
6192IFS=$as_save_IFS
6193
6194fi
6195fi
6196ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6197if test -n "$ac_ct_STRIP"; then
6198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6199$as_echo "$ac_ct_STRIP" >&6; }
6200else
6201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202$as_echo "no" >&6; }
6203fi
6204
6205  if test "x$ac_ct_STRIP" = x; then
6206    STRIP=":"
6207  else
6208    case $cross_compiling:$ac_tool_warned in
6209yes:)
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6212ac_tool_warned=yes ;;
6213esac
6214    STRIP=$ac_ct_STRIP
6215  fi
6216else
6217  STRIP="$ac_cv_prog_STRIP"
6218fi
6219
6220test -z "$STRIP" && STRIP=:
6221
6222
6223
6224
6225
6226
6227if test -n "$ac_tool_prefix"; then
6228  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6229set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231$as_echo_n "checking for $ac_word... " >&6; }
6232if ${ac_cv_prog_RANLIB+:} false; then :
6233  $as_echo_n "(cached) " >&6
6234else
6235  if test -n "$RANLIB"; then
6236  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6237else
6238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239for as_dir in $PATH
6240do
6241  IFS=$as_save_IFS
6242  test -z "$as_dir" && as_dir=.
6243    for ac_exec_ext in '' $ac_executable_extensions; do
6244  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6245    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247    break 2
6248  fi
6249done
6250  done
6251IFS=$as_save_IFS
6252
6253fi
6254fi
6255RANLIB=$ac_cv_prog_RANLIB
6256if test -n "$RANLIB"; then
6257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6258$as_echo "$RANLIB" >&6; }
6259else
6260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261$as_echo "no" >&6; }
6262fi
6263
6264
6265fi
6266if test -z "$ac_cv_prog_RANLIB"; then
6267  ac_ct_RANLIB=$RANLIB
6268  # Extract the first word of "ranlib", so it can be a program name with args.
6269set dummy ranlib; ac_word=$2
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271$as_echo_n "checking for $ac_word... " >&6; }
6272if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6273  $as_echo_n "(cached) " >&6
6274else
6275  if test -n "$ac_ct_RANLIB"; then
6276  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6277else
6278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279for as_dir in $PATH
6280do
6281  IFS=$as_save_IFS
6282  test -z "$as_dir" && as_dir=.
6283    for ac_exec_ext in '' $ac_executable_extensions; do
6284  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6285    ac_cv_prog_ac_ct_RANLIB="ranlib"
6286    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287    break 2
6288  fi
6289done
6290  done
6291IFS=$as_save_IFS
6292
6293fi
6294fi
6295ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6296if test -n "$ac_ct_RANLIB"; then
6297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6298$as_echo "$ac_ct_RANLIB" >&6; }
6299else
6300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301$as_echo "no" >&6; }
6302fi
6303
6304  if test "x$ac_ct_RANLIB" = x; then
6305    RANLIB=":"
6306  else
6307    case $cross_compiling:$ac_tool_warned in
6308yes:)
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6311ac_tool_warned=yes ;;
6312esac
6313    RANLIB=$ac_ct_RANLIB
6314  fi
6315else
6316  RANLIB="$ac_cv_prog_RANLIB"
6317fi
6318
6319test -z "$RANLIB" && RANLIB=:
6320
6321
6322
6323
6324
6325
6326# Determine commands to create old-style static archives.
6327old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6328old_postinstall_cmds='chmod 644 $oldlib'
6329old_postuninstall_cmds=
6330
6331if test -n "$RANLIB"; then
6332  case $host_os in
6333  openbsd*)
6334    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6335    ;;
6336  *)
6337    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6338    ;;
6339  esac
6340  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6341fi
6342
6343case $host_os in
6344  darwin*)
6345    lock_old_archive_extraction=yes ;;
6346  *)
6347    lock_old_archive_extraction=no ;;
6348esac
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388# If no C compiler was specified, use CC.
6389LTCC=${LTCC-"$CC"}
6390
6391# If no C compiler flags were specified, use CFLAGS.
6392LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6393
6394# Allow CC to be a program name with arguments.
6395compiler=$CC
6396
6397
6398# Check for command to grab the raw symbol name followed by C symbol from nm.
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6400$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6401if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6402  $as_echo_n "(cached) " >&6
6403else
6404
6405# These are sane defaults that work on at least a few old systems.
6406# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6407
6408# Character class describing NM global symbol codes.
6409symcode='[BCDEGRST]'
6410
6411# Regexp to match symbols that can be accessed directly from C.
6412sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6413
6414# Define system-specific variables.
6415case $host_os in
6416aix*)
6417  symcode='[BCDT]'
6418  ;;
6419cygwin* | mingw* | pw32* | cegcc*)
6420  symcode='[ABCDGISTW]'
6421  ;;
6422hpux*)
6423  if test "$host_cpu" = ia64; then
6424    symcode='[ABCDEGRST]'
6425  fi
6426  ;;
6427irix* | nonstopux*)
6428  symcode='[BCDEGRST]'
6429  ;;
6430osf*)
6431  symcode='[BCDEGQRST]'
6432  ;;
6433solaris*)
6434  symcode='[BDRT]'
6435  ;;
6436sco3.2v5*)
6437  symcode='[DT]'
6438  ;;
6439sysv4.2uw2*)
6440  symcode='[DT]'
6441  ;;
6442sysv5* | sco5v6* | unixware* | OpenUNIX*)
6443  symcode='[ABDT]'
6444  ;;
6445sysv4)
6446  symcode='[DFNSTU]'
6447  ;;
6448esac
6449
6450# If we're using GNU nm, then use its standard symbol codes.
6451case `$NM -V 2>&1` in
6452*GNU* | *'with BFD'*)
6453  symcode='[ABCDGIRSTW]' ;;
6454esac
6455
6456# Transform an extracted symbol line into a proper C declaration.
6457# Some systems (esp. on ia64) link data and code symbols differently,
6458# so use this general approach.
6459lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6460
6461# Transform an extracted symbol line into symbol name and symbol address
6462lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6463lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6464
6465# Handle CRLF in mingw tool chain
6466opt_cr=
6467case $build_os in
6468mingw*)
6469  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6470  ;;
6471esac
6472
6473# Try without a prefix underscore, then with it.
6474for ac_symprfx in "" "_"; do
6475
6476  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6477  symxfrm="\\1 $ac_symprfx\\2 \\2"
6478
6479  # Write the raw and C identifiers.
6480  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6481    # Fake it for dumpbin and say T for any non-static function
6482    # and D for any global variable.
6483    # Also find C++ and __fastcall symbols from MSVC++,
6484    # which start with @ or ?.
6485    lt_cv_sys_global_symbol_pipe="$AWK '"\
6486"     {last_section=section; section=\$ 3};"\
6487"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6488"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6489"     \$ 0!~/External *\|/{next};"\
6490"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6491"     {if(hide[section]) next};"\
6492"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6493"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6494"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6495"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6496"     ' prfx=^$ac_symprfx"
6497  else
6498    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6499  fi
6500  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6501
6502  # Check to see that the pipe works correctly.
6503  pipe_works=no
6504
6505  rm -f conftest*
6506  cat > conftest.$ac_ext <<_LT_EOF
6507#ifdef __cplusplus
6508extern "C" {
6509#endif
6510char nm_test_var;
6511void nm_test_func(void);
6512void nm_test_func(void){}
6513#ifdef __cplusplus
6514}
6515#endif
6516int main(){nm_test_var='a';nm_test_func();return(0);}
6517_LT_EOF
6518
6519  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6520  (eval $ac_compile) 2>&5
6521  ac_status=$?
6522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6523  test $ac_status = 0; }; then
6524    # Now try to grab the symbols.
6525    nlist=conftest.nm
6526    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6527  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6528  ac_status=$?
6529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6530  test $ac_status = 0; } && test -s "$nlist"; then
6531      # Try sorting and uniquifying the output.
6532      if sort "$nlist" | uniq > "$nlist"T; then
6533	mv -f "$nlist"T "$nlist"
6534      else
6535	rm -f "$nlist"T
6536      fi
6537
6538      # Make sure that we snagged all the symbols we need.
6539      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6540	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6541	  cat <<_LT_EOF > conftest.$ac_ext
6542/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6543#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6544/* DATA imports from DLLs on WIN32 con't be const, because runtime
6545   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6546# define LT_DLSYM_CONST
6547#elif defined(__osf__)
6548/* This system does not cope well with relocations in const data.  */
6549# define LT_DLSYM_CONST
6550#else
6551# define LT_DLSYM_CONST const
6552#endif
6553
6554#ifdef __cplusplus
6555extern "C" {
6556#endif
6557
6558_LT_EOF
6559	  # Now generate the symbol file.
6560	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6561
6562	  cat <<_LT_EOF >> conftest.$ac_ext
6563
6564/* The mapping between symbol names and symbols.  */
6565LT_DLSYM_CONST struct {
6566  const char *name;
6567  void       *address;
6568}
6569lt__PROGRAM__LTX_preloaded_symbols[] =
6570{
6571  { "@PROGRAM@", (void *) 0 },
6572_LT_EOF
6573	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6574	  cat <<\_LT_EOF >> conftest.$ac_ext
6575  {0, (void *) 0}
6576};
6577
6578/* This works around a problem in FreeBSD linker */
6579#ifdef FREEBSD_WORKAROUND
6580static const void *lt_preloaded_setup() {
6581  return lt__PROGRAM__LTX_preloaded_symbols;
6582}
6583#endif
6584
6585#ifdef __cplusplus
6586}
6587#endif
6588_LT_EOF
6589	  # Now try linking the two files.
6590	  mv conftest.$ac_objext conftstm.$ac_objext
6591	  lt_globsym_save_LIBS=$LIBS
6592	  lt_globsym_save_CFLAGS=$CFLAGS
6593	  LIBS="conftstm.$ac_objext"
6594	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6595	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6596  (eval $ac_link) 2>&5
6597  ac_status=$?
6598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6599  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6600	    pipe_works=yes
6601	  fi
6602	  LIBS=$lt_globsym_save_LIBS
6603	  CFLAGS=$lt_globsym_save_CFLAGS
6604	else
6605	  echo "cannot find nm_test_func in $nlist" >&5
6606	fi
6607      else
6608	echo "cannot find nm_test_var in $nlist" >&5
6609      fi
6610    else
6611      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6612    fi
6613  else
6614    echo "$progname: failed program was:" >&5
6615    cat conftest.$ac_ext >&5
6616  fi
6617  rm -rf conftest* conftst*
6618
6619  # Do not use the global_symbol_pipe unless it works.
6620  if test "$pipe_works" = yes; then
6621    break
6622  else
6623    lt_cv_sys_global_symbol_pipe=
6624  fi
6625done
6626
6627fi
6628
6629if test -z "$lt_cv_sys_global_symbol_pipe"; then
6630  lt_cv_sys_global_symbol_to_cdecl=
6631fi
6632if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6634$as_echo "failed" >&6; }
6635else
6636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6637$as_echo "ok" >&6; }
6638fi
6639
6640# Response file support.
6641if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6642  nm_file_list_spec='@'
6643elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6644  nm_file_list_spec='@'
6645fi
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6674$as_echo_n "checking for sysroot... " >&6; }
6675
6676# Check whether --with-sysroot was given.
6677if test "${with_sysroot+set}" = set; then :
6678  withval=$with_sysroot;
6679else
6680  with_sysroot=no
6681fi
6682
6683
6684lt_sysroot=
6685case ${with_sysroot} in #(
6686 yes)
6687   if test "$GCC" = yes; then
6688     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6689   fi
6690   ;; #(
6691 /*)
6692   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6693   ;; #(
6694 no|'')
6695   ;; #(
6696 *)
6697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6698$as_echo "${with_sysroot}" >&6; }
6699   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6700   ;;
6701esac
6702
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6704$as_echo "${lt_sysroot:-no}" >&6; }
6705
6706
6707
6708
6709
6710# Check whether --enable-libtool-lock was given.
6711if test "${enable_libtool_lock+set}" = set; then :
6712  enableval=$enable_libtool_lock;
6713fi
6714
6715test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6716
6717# Some flags need to be propagated to the compiler or linker for good
6718# libtool support.
6719case $host in
6720ia64-*-hpux*)
6721  # Find out which ABI we are using.
6722  echo 'int i;' > conftest.$ac_ext
6723  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6724  (eval $ac_compile) 2>&5
6725  ac_status=$?
6726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6727  test $ac_status = 0; }; then
6728    case `/usr/bin/file conftest.$ac_objext` in
6729      *ELF-32*)
6730	HPUX_IA64_MODE="32"
6731	;;
6732      *ELF-64*)
6733	HPUX_IA64_MODE="64"
6734	;;
6735    esac
6736  fi
6737  rm -rf conftest*
6738  ;;
6739*-*-irix6*)
6740  # Find out which ABI we are using.
6741  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6742  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6743  (eval $ac_compile) 2>&5
6744  ac_status=$?
6745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6746  test $ac_status = 0; }; then
6747    if test "$lt_cv_prog_gnu_ld" = yes; then
6748      case `/usr/bin/file conftest.$ac_objext` in
6749	*32-bit*)
6750	  LD="${LD-ld} -melf32bsmip"
6751	  ;;
6752	*N32*)
6753	  LD="${LD-ld} -melf32bmipn32"
6754	  ;;
6755	*64-bit*)
6756	  LD="${LD-ld} -melf64bmip"
6757	;;
6758      esac
6759    else
6760      case `/usr/bin/file conftest.$ac_objext` in
6761	*32-bit*)
6762	  LD="${LD-ld} -32"
6763	  ;;
6764	*N32*)
6765	  LD="${LD-ld} -n32"
6766	  ;;
6767	*64-bit*)
6768	  LD="${LD-ld} -64"
6769	  ;;
6770      esac
6771    fi
6772  fi
6773  rm -rf conftest*
6774  ;;
6775
6776x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6777s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6778  # Find out which ABI we are using.
6779  echo 'int i;' > conftest.$ac_ext
6780  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6781  (eval $ac_compile) 2>&5
6782  ac_status=$?
6783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6784  test $ac_status = 0; }; then
6785    case `/usr/bin/file conftest.o` in
6786      *32-bit*)
6787	case $host in
6788	  x86_64-*kfreebsd*-gnu)
6789	    LD="${LD-ld} -m elf_i386_fbsd"
6790	    ;;
6791	  x86_64-*linux*)
6792	    LD="${LD-ld} -m elf_i386"
6793	    ;;
6794	  ppc64-*linux*|powerpc64-*linux*)
6795	    LD="${LD-ld} -m elf32ppclinux"
6796	    ;;
6797	  s390x-*linux*)
6798	    LD="${LD-ld} -m elf_s390"
6799	    ;;
6800	  sparc64-*linux*)
6801	    LD="${LD-ld} -m elf32_sparc"
6802	    ;;
6803	esac
6804	;;
6805      *64-bit*)
6806	case $host in
6807	  x86_64-*kfreebsd*-gnu)
6808	    LD="${LD-ld} -m elf_x86_64_fbsd"
6809	    ;;
6810	  x86_64-*linux*)
6811	    LD="${LD-ld} -m elf_x86_64"
6812	    ;;
6813	  ppc*-*linux*|powerpc*-*linux*)
6814	    LD="${LD-ld} -m elf64ppc"
6815	    ;;
6816	  s390*-*linux*|s390*-*tpf*)
6817	    LD="${LD-ld} -m elf64_s390"
6818	    ;;
6819	  sparc*-*linux*)
6820	    LD="${LD-ld} -m elf64_sparc"
6821	    ;;
6822	esac
6823	;;
6824    esac
6825  fi
6826  rm -rf conftest*
6827  ;;
6828
6829*-*-sco3.2v5*)
6830  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6831  SAVE_CFLAGS="$CFLAGS"
6832  CFLAGS="$CFLAGS -belf"
6833  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6834$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6835if ${lt_cv_cc_needs_belf+:} false; then :
6836  $as_echo_n "(cached) " >&6
6837else
6838  ac_ext=c
6839ac_cpp='$CPP $CPPFLAGS'
6840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6842ac_compiler_gnu=$ac_cv_c_compiler_gnu
6843
6844     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845/* end confdefs.h.  */
6846
6847int
6848main ()
6849{
6850
6851  ;
6852  return 0;
6853}
6854_ACEOF
6855if ac_fn_c_try_link "$LINENO"; then :
6856  lt_cv_cc_needs_belf=yes
6857else
6858  lt_cv_cc_needs_belf=no
6859fi
6860rm -f core conftest.err conftest.$ac_objext \
6861    conftest$ac_exeext conftest.$ac_ext
6862     ac_ext=c
6863ac_cpp='$CPP $CPPFLAGS'
6864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6866ac_compiler_gnu=$ac_cv_c_compiler_gnu
6867
6868fi
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6870$as_echo "$lt_cv_cc_needs_belf" >&6; }
6871  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6872    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6873    CFLAGS="$SAVE_CFLAGS"
6874  fi
6875  ;;
6876*-*solaris*)
6877  # Find out which ABI we are using.
6878  echo 'int i;' > conftest.$ac_ext
6879  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6880  (eval $ac_compile) 2>&5
6881  ac_status=$?
6882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6883  test $ac_status = 0; }; then
6884    case `/usr/bin/file conftest.o` in
6885    *64-bit*)
6886      case $lt_cv_prog_gnu_ld in
6887      yes*)
6888        case $host in
6889        i?86-*-solaris*)
6890          LD="${LD-ld} -m elf_x86_64"
6891          ;;
6892        sparc*-*-solaris*)
6893          LD="${LD-ld} -m elf64_sparc"
6894          ;;
6895        esac
6896        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6897        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6898          LD="${LD-ld}_sol2"
6899        fi
6900        ;;
6901      *)
6902	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6903	  LD="${LD-ld} -64"
6904	fi
6905	;;
6906      esac
6907      ;;
6908    esac
6909  fi
6910  rm -rf conftest*
6911  ;;
6912esac
6913
6914need_locks="$enable_libtool_lock"
6915
6916if test -n "$ac_tool_prefix"; then
6917  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6918set dummy ${ac_tool_prefix}mt; ac_word=$2
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920$as_echo_n "checking for $ac_word... " >&6; }
6921if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6922  $as_echo_n "(cached) " >&6
6923else
6924  if test -n "$MANIFEST_TOOL"; then
6925  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6926else
6927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928for as_dir in $PATH
6929do
6930  IFS=$as_save_IFS
6931  test -z "$as_dir" && as_dir=.
6932    for ac_exec_ext in '' $ac_executable_extensions; do
6933  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6934    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936    break 2
6937  fi
6938done
6939  done
6940IFS=$as_save_IFS
6941
6942fi
6943fi
6944MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6945if test -n "$MANIFEST_TOOL"; then
6946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6947$as_echo "$MANIFEST_TOOL" >&6; }
6948else
6949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950$as_echo "no" >&6; }
6951fi
6952
6953
6954fi
6955if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6956  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6957  # Extract the first word of "mt", so it can be a program name with args.
6958set dummy mt; ac_word=$2
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960$as_echo_n "checking for $ac_word... " >&6; }
6961if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6962  $as_echo_n "(cached) " >&6
6963else
6964  if test -n "$ac_ct_MANIFEST_TOOL"; then
6965  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6966else
6967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968for as_dir in $PATH
6969do
6970  IFS=$as_save_IFS
6971  test -z "$as_dir" && as_dir=.
6972    for ac_exec_ext in '' $ac_executable_extensions; do
6973  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6974    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976    break 2
6977  fi
6978done
6979  done
6980IFS=$as_save_IFS
6981
6982fi
6983fi
6984ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6985if test -n "$ac_ct_MANIFEST_TOOL"; then
6986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6987$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6988else
6989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990$as_echo "no" >&6; }
6991fi
6992
6993  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6994    MANIFEST_TOOL=":"
6995  else
6996    case $cross_compiling:$ac_tool_warned in
6997yes:)
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7000ac_tool_warned=yes ;;
7001esac
7002    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7003  fi
7004else
7005  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7006fi
7007
7008test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7010$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7011if ${lt_cv_path_mainfest_tool+:} false; then :
7012  $as_echo_n "(cached) " >&6
7013else
7014  lt_cv_path_mainfest_tool=no
7015  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7016  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7017  cat conftest.err >&5
7018  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7019    lt_cv_path_mainfest_tool=yes
7020  fi
7021  rm -f conftest*
7022fi
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7024$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7025if test "x$lt_cv_path_mainfest_tool" != xyes; then
7026  MANIFEST_TOOL=:
7027fi
7028
7029
7030
7031
7032
7033
7034  case $host_os in
7035    rhapsody* | darwin*)
7036    if test -n "$ac_tool_prefix"; then
7037  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7038set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040$as_echo_n "checking for $ac_word... " >&6; }
7041if ${ac_cv_prog_DSYMUTIL+:} false; then :
7042  $as_echo_n "(cached) " >&6
7043else
7044  if test -n "$DSYMUTIL"; then
7045  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7046else
7047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048for as_dir in $PATH
7049do
7050  IFS=$as_save_IFS
7051  test -z "$as_dir" && as_dir=.
7052    for ac_exec_ext in '' $ac_executable_extensions; do
7053  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7054    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056    break 2
7057  fi
7058done
7059  done
7060IFS=$as_save_IFS
7061
7062fi
7063fi
7064DSYMUTIL=$ac_cv_prog_DSYMUTIL
7065if test -n "$DSYMUTIL"; then
7066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7067$as_echo "$DSYMUTIL" >&6; }
7068else
7069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070$as_echo "no" >&6; }
7071fi
7072
7073
7074fi
7075if test -z "$ac_cv_prog_DSYMUTIL"; then
7076  ac_ct_DSYMUTIL=$DSYMUTIL
7077  # Extract the first word of "dsymutil", so it can be a program name with args.
7078set dummy dsymutil; ac_word=$2
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080$as_echo_n "checking for $ac_word... " >&6; }
7081if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7082  $as_echo_n "(cached) " >&6
7083else
7084  if test -n "$ac_ct_DSYMUTIL"; then
7085  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7086else
7087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088for as_dir in $PATH
7089do
7090  IFS=$as_save_IFS
7091  test -z "$as_dir" && as_dir=.
7092    for ac_exec_ext in '' $ac_executable_extensions; do
7093  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7094    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096    break 2
7097  fi
7098done
7099  done
7100IFS=$as_save_IFS
7101
7102fi
7103fi
7104ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7105if test -n "$ac_ct_DSYMUTIL"; then
7106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7107$as_echo "$ac_ct_DSYMUTIL" >&6; }
7108else
7109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110$as_echo "no" >&6; }
7111fi
7112
7113  if test "x$ac_ct_DSYMUTIL" = x; then
7114    DSYMUTIL=":"
7115  else
7116    case $cross_compiling:$ac_tool_warned in
7117yes:)
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7120ac_tool_warned=yes ;;
7121esac
7122    DSYMUTIL=$ac_ct_DSYMUTIL
7123  fi
7124else
7125  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7126fi
7127
7128    if test -n "$ac_tool_prefix"; then
7129  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7130set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132$as_echo_n "checking for $ac_word... " >&6; }
7133if ${ac_cv_prog_NMEDIT+:} false; then :
7134  $as_echo_n "(cached) " >&6
7135else
7136  if test -n "$NMEDIT"; then
7137  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7138else
7139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140for as_dir in $PATH
7141do
7142  IFS=$as_save_IFS
7143  test -z "$as_dir" && as_dir=.
7144    for ac_exec_ext in '' $ac_executable_extensions; do
7145  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148    break 2
7149  fi
7150done
7151  done
7152IFS=$as_save_IFS
7153
7154fi
7155fi
7156NMEDIT=$ac_cv_prog_NMEDIT
7157if test -n "$NMEDIT"; then
7158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7159$as_echo "$NMEDIT" >&6; }
7160else
7161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162$as_echo "no" >&6; }
7163fi
7164
7165
7166fi
7167if test -z "$ac_cv_prog_NMEDIT"; then
7168  ac_ct_NMEDIT=$NMEDIT
7169  # Extract the first word of "nmedit", so it can be a program name with args.
7170set dummy nmedit; ac_word=$2
7171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172$as_echo_n "checking for $ac_word... " >&6; }
7173if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7174  $as_echo_n "(cached) " >&6
7175else
7176  if test -n "$ac_ct_NMEDIT"; then
7177  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7178else
7179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
7182  IFS=$as_save_IFS
7183  test -z "$as_dir" && as_dir=.
7184    for ac_exec_ext in '' $ac_executable_extensions; do
7185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7186    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188    break 2
7189  fi
7190done
7191  done
7192IFS=$as_save_IFS
7193
7194fi
7195fi
7196ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7197if test -n "$ac_ct_NMEDIT"; then
7198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7199$as_echo "$ac_ct_NMEDIT" >&6; }
7200else
7201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202$as_echo "no" >&6; }
7203fi
7204
7205  if test "x$ac_ct_NMEDIT" = x; then
7206    NMEDIT=":"
7207  else
7208    case $cross_compiling:$ac_tool_warned in
7209yes:)
7210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7212ac_tool_warned=yes ;;
7213esac
7214    NMEDIT=$ac_ct_NMEDIT
7215  fi
7216else
7217  NMEDIT="$ac_cv_prog_NMEDIT"
7218fi
7219
7220    if test -n "$ac_tool_prefix"; then
7221  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7222set dummy ${ac_tool_prefix}lipo; ac_word=$2
7223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224$as_echo_n "checking for $ac_word... " >&6; }
7225if ${ac_cv_prog_LIPO+:} false; then :
7226  $as_echo_n "(cached) " >&6
7227else
7228  if test -n "$LIPO"; then
7229  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7230else
7231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232for as_dir in $PATH
7233do
7234  IFS=$as_save_IFS
7235  test -z "$as_dir" && as_dir=.
7236    for ac_exec_ext in '' $ac_executable_extensions; do
7237  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7238    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7240    break 2
7241  fi
7242done
7243  done
7244IFS=$as_save_IFS
7245
7246fi
7247fi
7248LIPO=$ac_cv_prog_LIPO
7249if test -n "$LIPO"; then
7250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7251$as_echo "$LIPO" >&6; }
7252else
7253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254$as_echo "no" >&6; }
7255fi
7256
7257
7258fi
7259if test -z "$ac_cv_prog_LIPO"; then
7260  ac_ct_LIPO=$LIPO
7261  # Extract the first word of "lipo", so it can be a program name with args.
7262set dummy lipo; ac_word=$2
7263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264$as_echo_n "checking for $ac_word... " >&6; }
7265if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7266  $as_echo_n "(cached) " >&6
7267else
7268  if test -n "$ac_ct_LIPO"; then
7269  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7270else
7271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272for as_dir in $PATH
7273do
7274  IFS=$as_save_IFS
7275  test -z "$as_dir" && as_dir=.
7276    for ac_exec_ext in '' $ac_executable_extensions; do
7277  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7278    ac_cv_prog_ac_ct_LIPO="lipo"
7279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280    break 2
7281  fi
7282done
7283  done
7284IFS=$as_save_IFS
7285
7286fi
7287fi
7288ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7289if test -n "$ac_ct_LIPO"; then
7290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7291$as_echo "$ac_ct_LIPO" >&6; }
7292else
7293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294$as_echo "no" >&6; }
7295fi
7296
7297  if test "x$ac_ct_LIPO" = x; then
7298    LIPO=":"
7299  else
7300    case $cross_compiling:$ac_tool_warned in
7301yes:)
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7304ac_tool_warned=yes ;;
7305esac
7306    LIPO=$ac_ct_LIPO
7307  fi
7308else
7309  LIPO="$ac_cv_prog_LIPO"
7310fi
7311
7312    if test -n "$ac_tool_prefix"; then
7313  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7314set dummy ${ac_tool_prefix}otool; ac_word=$2
7315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7316$as_echo_n "checking for $ac_word... " >&6; }
7317if ${ac_cv_prog_OTOOL+:} false; then :
7318  $as_echo_n "(cached) " >&6
7319else
7320  if test -n "$OTOOL"; then
7321  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7322else
7323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324for as_dir in $PATH
7325do
7326  IFS=$as_save_IFS
7327  test -z "$as_dir" && as_dir=.
7328    for ac_exec_ext in '' $ac_executable_extensions; do
7329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7330    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332    break 2
7333  fi
7334done
7335  done
7336IFS=$as_save_IFS
7337
7338fi
7339fi
7340OTOOL=$ac_cv_prog_OTOOL
7341if test -n "$OTOOL"; then
7342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7343$as_echo "$OTOOL" >&6; }
7344else
7345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7346$as_echo "no" >&6; }
7347fi
7348
7349
7350fi
7351if test -z "$ac_cv_prog_OTOOL"; then
7352  ac_ct_OTOOL=$OTOOL
7353  # Extract the first word of "otool", so it can be a program name with args.
7354set dummy otool; ac_word=$2
7355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356$as_echo_n "checking for $ac_word... " >&6; }
7357if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7358  $as_echo_n "(cached) " >&6
7359else
7360  if test -n "$ac_ct_OTOOL"; then
7361  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7362else
7363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364for as_dir in $PATH
7365do
7366  IFS=$as_save_IFS
7367  test -z "$as_dir" && as_dir=.
7368    for ac_exec_ext in '' $ac_executable_extensions; do
7369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370    ac_cv_prog_ac_ct_OTOOL="otool"
7371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372    break 2
7373  fi
7374done
7375  done
7376IFS=$as_save_IFS
7377
7378fi
7379fi
7380ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7381if test -n "$ac_ct_OTOOL"; then
7382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7383$as_echo "$ac_ct_OTOOL" >&6; }
7384else
7385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386$as_echo "no" >&6; }
7387fi
7388
7389  if test "x$ac_ct_OTOOL" = x; then
7390    OTOOL=":"
7391  else
7392    case $cross_compiling:$ac_tool_warned in
7393yes:)
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7396ac_tool_warned=yes ;;
7397esac
7398    OTOOL=$ac_ct_OTOOL
7399  fi
7400else
7401  OTOOL="$ac_cv_prog_OTOOL"
7402fi
7403
7404    if test -n "$ac_tool_prefix"; then
7405  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7406set dummy ${ac_tool_prefix}otool64; ac_word=$2
7407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408$as_echo_n "checking for $ac_word... " >&6; }
7409if ${ac_cv_prog_OTOOL64+:} false; then :
7410  $as_echo_n "(cached) " >&6
7411else
7412  if test -n "$OTOOL64"; then
7413  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7414else
7415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416for as_dir in $PATH
7417do
7418  IFS=$as_save_IFS
7419  test -z "$as_dir" && as_dir=.
7420    for ac_exec_ext in '' $ac_executable_extensions; do
7421  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7422    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7424    break 2
7425  fi
7426done
7427  done
7428IFS=$as_save_IFS
7429
7430fi
7431fi
7432OTOOL64=$ac_cv_prog_OTOOL64
7433if test -n "$OTOOL64"; then
7434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7435$as_echo "$OTOOL64" >&6; }
7436else
7437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438$as_echo "no" >&6; }
7439fi
7440
7441
7442fi
7443if test -z "$ac_cv_prog_OTOOL64"; then
7444  ac_ct_OTOOL64=$OTOOL64
7445  # Extract the first word of "otool64", so it can be a program name with args.
7446set dummy otool64; ac_word=$2
7447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448$as_echo_n "checking for $ac_word... " >&6; }
7449if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7450  $as_echo_n "(cached) " >&6
7451else
7452  if test -n "$ac_ct_OTOOL64"; then
7453  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7454else
7455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456for as_dir in $PATH
7457do
7458  IFS=$as_save_IFS
7459  test -z "$as_dir" && as_dir=.
7460    for ac_exec_ext in '' $ac_executable_extensions; do
7461  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7462    ac_cv_prog_ac_ct_OTOOL64="otool64"
7463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464    break 2
7465  fi
7466done
7467  done
7468IFS=$as_save_IFS
7469
7470fi
7471fi
7472ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7473if test -n "$ac_ct_OTOOL64"; then
7474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7475$as_echo "$ac_ct_OTOOL64" >&6; }
7476else
7477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478$as_echo "no" >&6; }
7479fi
7480
7481  if test "x$ac_ct_OTOOL64" = x; then
7482    OTOOL64=":"
7483  else
7484    case $cross_compiling:$ac_tool_warned in
7485yes:)
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7488ac_tool_warned=yes ;;
7489esac
7490    OTOOL64=$ac_ct_OTOOL64
7491  fi
7492else
7493  OTOOL64="$ac_cv_prog_OTOOL64"
7494fi
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7523$as_echo_n "checking for -single_module linker flag... " >&6; }
7524if ${lt_cv_apple_cc_single_mod+:} false; then :
7525  $as_echo_n "(cached) " >&6
7526else
7527  lt_cv_apple_cc_single_mod=no
7528      if test -z "${LT_MULTI_MODULE}"; then
7529	# By default we will add the -single_module flag. You can override
7530	# by either setting the environment variable LT_MULTI_MODULE
7531	# non-empty at configure time, or by adding -multi_module to the
7532	# link flags.
7533	rm -rf libconftest.dylib*
7534	echo "int foo(void){return 1;}" > conftest.c
7535	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7536-dynamiclib -Wl,-single_module conftest.c" >&5
7537	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7538	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7539        _lt_result=$?
7540	# If there is a non-empty error log, and "single_module"
7541	# appears in it, assume the flag caused a linker warning
7542        if test -s conftest.err && $GREP single_module conftest.err; then
7543	  cat conftest.err >&5
7544	# Otherwise, if the output was created with a 0 exit code from
7545	# the compiler, it worked.
7546	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7547	  lt_cv_apple_cc_single_mod=yes
7548	else
7549	  cat conftest.err >&5
7550	fi
7551	rm -rf libconftest.dylib*
7552	rm -f conftest.*
7553      fi
7554fi
7555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7556$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7557
7558    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7559$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7560if ${lt_cv_ld_exported_symbols_list+:} false; then :
7561  $as_echo_n "(cached) " >&6
7562else
7563  lt_cv_ld_exported_symbols_list=no
7564      save_LDFLAGS=$LDFLAGS
7565      echo "_main" > conftest.sym
7566      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7567      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568/* end confdefs.h.  */
7569
7570int
7571main ()
7572{
7573
7574  ;
7575  return 0;
7576}
7577_ACEOF
7578if ac_fn_c_try_link "$LINENO"; then :
7579  lt_cv_ld_exported_symbols_list=yes
7580else
7581  lt_cv_ld_exported_symbols_list=no
7582fi
7583rm -f core conftest.err conftest.$ac_objext \
7584    conftest$ac_exeext conftest.$ac_ext
7585	LDFLAGS="$save_LDFLAGS"
7586
7587fi
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7589$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7590
7591    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7592$as_echo_n "checking for -force_load linker flag... " >&6; }
7593if ${lt_cv_ld_force_load+:} false; then :
7594  $as_echo_n "(cached) " >&6
7595else
7596  lt_cv_ld_force_load=no
7597      cat > conftest.c << _LT_EOF
7598int forced_loaded() { return 2;}
7599_LT_EOF
7600      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7601      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7602      echo "$AR cru libconftest.a conftest.o" >&5
7603      $AR cru libconftest.a conftest.o 2>&5
7604      echo "$RANLIB libconftest.a" >&5
7605      $RANLIB libconftest.a 2>&5
7606      cat > conftest.c << _LT_EOF
7607int main() { return 0;}
7608_LT_EOF
7609      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7610      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7611      _lt_result=$?
7612      if test -s conftest.err && $GREP force_load conftest.err; then
7613	cat conftest.err >&5
7614      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7615	lt_cv_ld_force_load=yes
7616      else
7617	cat conftest.err >&5
7618      fi
7619        rm -f conftest.err libconftest.a conftest conftest.c
7620        rm -rf conftest.dSYM
7621
7622fi
7623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7624$as_echo "$lt_cv_ld_force_load" >&6; }
7625    case $host_os in
7626    rhapsody* | darwin1.[012])
7627      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7628    darwin1.*)
7629      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7630    darwin*) # darwin 5.x on
7631      # if running on 10.5 or later, the deployment target defaults
7632      # to the OS version, if on x86, and 10.4, the deployment
7633      # target defaults to 10.4. Don't you love it?
7634      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7635	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7636	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7637	10.[012]*)
7638	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7639	10.*)
7640	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7641      esac
7642    ;;
7643  esac
7644    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7645      _lt_dar_single_mod='$single_module'
7646    fi
7647    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7648      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7649    else
7650      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7651    fi
7652    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7653      _lt_dsymutil='~$DSYMUTIL $lib || :'
7654    else
7655      _lt_dsymutil=
7656    fi
7657    ;;
7658  esac
7659
7660ac_ext=c
7661ac_cpp='$CPP $CPPFLAGS'
7662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7664ac_compiler_gnu=$ac_cv_c_compiler_gnu
7665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7666$as_echo_n "checking how to run the C preprocessor... " >&6; }
7667# On Suns, sometimes $CPP names a directory.
7668if test -n "$CPP" && test -d "$CPP"; then
7669  CPP=
7670fi
7671if test -z "$CPP"; then
7672  if ${ac_cv_prog_CPP+:} false; then :
7673  $as_echo_n "(cached) " >&6
7674else
7675      # Double quotes because CPP needs to be expanded
7676    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7677    do
7678      ac_preproc_ok=false
7679for ac_c_preproc_warn_flag in '' yes
7680do
7681  # Use a header file that comes with gcc, so configuring glibc
7682  # with a fresh cross-compiler works.
7683  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7684  # <limits.h> exists even on freestanding compilers.
7685  # On the NeXT, cc -E runs the code through the compiler's parser,
7686  # not just through cpp. "Syntax error" is here to catch this case.
7687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688/* end confdefs.h.  */
7689#ifdef __STDC__
7690# include <limits.h>
7691#else
7692# include <assert.h>
7693#endif
7694		     Syntax error
7695_ACEOF
7696if ac_fn_c_try_cpp "$LINENO"; then :
7697
7698else
7699  # Broken: fails on valid input.
7700continue
7701fi
7702rm -f conftest.err conftest.i conftest.$ac_ext
7703
7704  # OK, works on sane cases.  Now check whether nonexistent headers
7705  # can be detected and how.
7706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707/* end confdefs.h.  */
7708#include <ac_nonexistent.h>
7709_ACEOF
7710if ac_fn_c_try_cpp "$LINENO"; then :
7711  # Broken: success on invalid input.
7712continue
7713else
7714  # Passes both tests.
7715ac_preproc_ok=:
7716break
7717fi
7718rm -f conftest.err conftest.i conftest.$ac_ext
7719
7720done
7721# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7722rm -f conftest.i conftest.err conftest.$ac_ext
7723if $ac_preproc_ok; then :
7724  break
7725fi
7726
7727    done
7728    ac_cv_prog_CPP=$CPP
7729
7730fi
7731  CPP=$ac_cv_prog_CPP
7732else
7733  ac_cv_prog_CPP=$CPP
7734fi
7735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7736$as_echo "$CPP" >&6; }
7737ac_preproc_ok=false
7738for ac_c_preproc_warn_flag in '' yes
7739do
7740  # Use a header file that comes with gcc, so configuring glibc
7741  # with a fresh cross-compiler works.
7742  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7743  # <limits.h> exists even on freestanding compilers.
7744  # On the NeXT, cc -E runs the code through the compiler's parser,
7745  # not just through cpp. "Syntax error" is here to catch this case.
7746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747/* end confdefs.h.  */
7748#ifdef __STDC__
7749# include <limits.h>
7750#else
7751# include <assert.h>
7752#endif
7753		     Syntax error
7754_ACEOF
7755if ac_fn_c_try_cpp "$LINENO"; then :
7756
7757else
7758  # Broken: fails on valid input.
7759continue
7760fi
7761rm -f conftest.err conftest.i conftest.$ac_ext
7762
7763  # OK, works on sane cases.  Now check whether nonexistent headers
7764  # can be detected and how.
7765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766/* end confdefs.h.  */
7767#include <ac_nonexistent.h>
7768_ACEOF
7769if ac_fn_c_try_cpp "$LINENO"; then :
7770  # Broken: success on invalid input.
7771continue
7772else
7773  # Passes both tests.
7774ac_preproc_ok=:
7775break
7776fi
7777rm -f conftest.err conftest.i conftest.$ac_ext
7778
7779done
7780# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7781rm -f conftest.i conftest.err conftest.$ac_ext
7782if $ac_preproc_ok; then :
7783
7784else
7785  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7786$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7787as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7788See \`config.log' for more details" "$LINENO" 5; }
7789fi
7790
7791ac_ext=c
7792ac_cpp='$CPP $CPPFLAGS'
7793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7795ac_compiler_gnu=$ac_cv_c_compiler_gnu
7796
7797
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7799$as_echo_n "checking for ANSI C header files... " >&6; }
7800if ${ac_cv_header_stdc+:} false; then :
7801  $as_echo_n "(cached) " >&6
7802else
7803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804/* end confdefs.h.  */
7805#include <stdlib.h>
7806#include <stdarg.h>
7807#include <string.h>
7808#include <float.h>
7809
7810int
7811main ()
7812{
7813
7814  ;
7815  return 0;
7816}
7817_ACEOF
7818if ac_fn_c_try_compile "$LINENO"; then :
7819  ac_cv_header_stdc=yes
7820else
7821  ac_cv_header_stdc=no
7822fi
7823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824
7825if test $ac_cv_header_stdc = yes; then
7826  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828/* end confdefs.h.  */
7829#include <string.h>
7830
7831_ACEOF
7832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7833  $EGREP "memchr" >/dev/null 2>&1; then :
7834
7835else
7836  ac_cv_header_stdc=no
7837fi
7838rm -f conftest*
7839
7840fi
7841
7842if test $ac_cv_header_stdc = yes; then
7843  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845/* end confdefs.h.  */
7846#include <stdlib.h>
7847
7848_ACEOF
7849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7850  $EGREP "free" >/dev/null 2>&1; then :
7851
7852else
7853  ac_cv_header_stdc=no
7854fi
7855rm -f conftest*
7856
7857fi
7858
7859if test $ac_cv_header_stdc = yes; then
7860  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7861  if test "$cross_compiling" = yes; then :
7862  :
7863else
7864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865/* end confdefs.h.  */
7866#include <ctype.h>
7867#include <stdlib.h>
7868#if ((' ' & 0x0FF) == 0x020)
7869# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7870# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7871#else
7872# define ISLOWER(c) \
7873		   (('a' <= (c) && (c) <= 'i') \
7874		     || ('j' <= (c) && (c) <= 'r') \
7875		     || ('s' <= (c) && (c) <= 'z'))
7876# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7877#endif
7878
7879#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7880int
7881main ()
7882{
7883  int i;
7884  for (i = 0; i < 256; i++)
7885    if (XOR (islower (i), ISLOWER (i))
7886	|| toupper (i) != TOUPPER (i))
7887      return 2;
7888  return 0;
7889}
7890_ACEOF
7891if ac_fn_c_try_run "$LINENO"; then :
7892
7893else
7894  ac_cv_header_stdc=no
7895fi
7896rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7897  conftest.$ac_objext conftest.beam conftest.$ac_ext
7898fi
7899
7900fi
7901fi
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7903$as_echo "$ac_cv_header_stdc" >&6; }
7904if test $ac_cv_header_stdc = yes; then
7905
7906$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7907
7908fi
7909
7910# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7911for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7912		  inttypes.h stdint.h unistd.h
7913do :
7914  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7915ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7916"
7917if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7918  cat >>confdefs.h <<_ACEOF
7919#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7920_ACEOF
7921
7922fi
7923
7924done
7925
7926
7927for ac_header in dlfcn.h
7928do :
7929  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7930"
7931if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7932  cat >>confdefs.h <<_ACEOF
7933#define HAVE_DLFCN_H 1
7934_ACEOF
7935
7936fi
7937
7938done
7939
7940
7941
7942
7943func_stripname_cnf ()
7944{
7945  case ${2} in
7946  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7947  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7948  esac
7949} # func_stripname_cnf
7950
7951
7952
7953
7954
7955# Set options
7956
7957
7958
7959        enable_dlopen=no
7960
7961
7962  enable_win32_dll=no
7963
7964
7965            # Check whether --enable-shared was given.
7966if test "${enable_shared+set}" = set; then :
7967  enableval=$enable_shared; p=${PACKAGE-default}
7968    case $enableval in
7969    yes) enable_shared=yes ;;
7970    no) enable_shared=no ;;
7971    *)
7972      enable_shared=no
7973      # Look at the argument we got.  We use all the common list separators.
7974      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7975      for pkg in $enableval; do
7976	IFS="$lt_save_ifs"
7977	if test "X$pkg" = "X$p"; then
7978	  enable_shared=yes
7979	fi
7980      done
7981      IFS="$lt_save_ifs"
7982      ;;
7983    esac
7984else
7985  enable_shared=yes
7986fi
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996  # Check whether --enable-static was given.
7997if test "${enable_static+set}" = set; then :
7998  enableval=$enable_static; p=${PACKAGE-default}
7999    case $enableval in
8000    yes) enable_static=yes ;;
8001    no) enable_static=no ;;
8002    *)
8003     enable_static=no
8004      # Look at the argument we got.  We use all the common list separators.
8005      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8006      for pkg in $enableval; do
8007	IFS="$lt_save_ifs"
8008	if test "X$pkg" = "X$p"; then
8009	  enable_static=yes
8010	fi
8011      done
8012      IFS="$lt_save_ifs"
8013      ;;
8014    esac
8015else
8016  enable_static=yes
8017fi
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028# Check whether --with-pic was given.
8029if test "${with_pic+set}" = set; then :
8030  withval=$with_pic; lt_p=${PACKAGE-default}
8031    case $withval in
8032    yes|no) pic_mode=$withval ;;
8033    *)
8034      pic_mode=default
8035      # Look at the argument we got.  We use all the common list separators.
8036      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8037      for lt_pkg in $withval; do
8038	IFS="$lt_save_ifs"
8039	if test "X$lt_pkg" = "X$lt_p"; then
8040	  pic_mode=yes
8041	fi
8042      done
8043      IFS="$lt_save_ifs"
8044      ;;
8045    esac
8046else
8047  pic_mode=default
8048fi
8049
8050
8051test -z "$pic_mode" && pic_mode=default
8052
8053
8054
8055
8056
8057
8058
8059  # Check whether --enable-fast-install was given.
8060if test "${enable_fast_install+set}" = set; then :
8061  enableval=$enable_fast_install; p=${PACKAGE-default}
8062    case $enableval in
8063    yes) enable_fast_install=yes ;;
8064    no) enable_fast_install=no ;;
8065    *)
8066      enable_fast_install=no
8067      # Look at the argument we got.  We use all the common list separators.
8068      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8069      for pkg in $enableval; do
8070	IFS="$lt_save_ifs"
8071	if test "X$pkg" = "X$p"; then
8072	  enable_fast_install=yes
8073	fi
8074      done
8075      IFS="$lt_save_ifs"
8076      ;;
8077    esac
8078else
8079  enable_fast_install=yes
8080fi
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092# This can be used to rebuild libtool when needed
8093LIBTOOL_DEPS="$ltmain"
8094
8095# Always use our own libtool.
8096LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127test -z "$LN_S" && LN_S="ln -s"
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142if test -n "${ZSH_VERSION+set}" ; then
8143   setopt NO_GLOB_SUBST
8144fi
8145
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8147$as_echo_n "checking for objdir... " >&6; }
8148if ${lt_cv_objdir+:} false; then :
8149  $as_echo_n "(cached) " >&6
8150else
8151  rm -f .libs 2>/dev/null
8152mkdir .libs 2>/dev/null
8153if test -d .libs; then
8154  lt_cv_objdir=.libs
8155else
8156  # MS-DOS does not allow filenames that begin with a dot.
8157  lt_cv_objdir=_libs
8158fi
8159rmdir .libs 2>/dev/null
8160fi
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8162$as_echo "$lt_cv_objdir" >&6; }
8163objdir=$lt_cv_objdir
8164
8165
8166
8167
8168
8169cat >>confdefs.h <<_ACEOF
8170#define LT_OBJDIR "$lt_cv_objdir/"
8171_ACEOF
8172
8173
8174
8175
8176case $host_os in
8177aix3*)
8178  # AIX sometimes has problems with the GCC collect2 program.  For some
8179  # reason, if we set the COLLECT_NAMES environment variable, the problems
8180  # vanish in a puff of smoke.
8181  if test "X${COLLECT_NAMES+set}" != Xset; then
8182    COLLECT_NAMES=
8183    export COLLECT_NAMES
8184  fi
8185  ;;
8186esac
8187
8188# Global variables:
8189ofile=libtool
8190can_build_shared=yes
8191
8192# All known linkers require a `.a' archive for static linking (except MSVC,
8193# which needs '.lib').
8194libext=a
8195
8196with_gnu_ld="$lt_cv_prog_gnu_ld"
8197
8198old_CC="$CC"
8199old_CFLAGS="$CFLAGS"
8200
8201# Set sane defaults for various variables
8202test -z "$CC" && CC=cc
8203test -z "$LTCC" && LTCC=$CC
8204test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8205test -z "$LD" && LD=ld
8206test -z "$ac_objext" && ac_objext=o
8207
8208for cc_temp in $compiler""; do
8209  case $cc_temp in
8210    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8211    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8212    \-*) ;;
8213    *) break;;
8214  esac
8215done
8216cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8217
8218
8219# Only perform the check for file, if the check method requires it
8220test -z "$MAGIC_CMD" && MAGIC_CMD=file
8221case $deplibs_check_method in
8222file_magic*)
8223  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8224    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8225$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8226if ${lt_cv_path_MAGIC_CMD+:} false; then :
8227  $as_echo_n "(cached) " >&6
8228else
8229  case $MAGIC_CMD in
8230[\\/*] |  ?:[\\/]*)
8231  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8232  ;;
8233*)
8234  lt_save_MAGIC_CMD="$MAGIC_CMD"
8235  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8236  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8237  for ac_dir in $ac_dummy; do
8238    IFS="$lt_save_ifs"
8239    test -z "$ac_dir" && ac_dir=.
8240    if test -f $ac_dir/${ac_tool_prefix}file; then
8241      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8242      if test -n "$file_magic_test_file"; then
8243	case $deplibs_check_method in
8244	"file_magic "*)
8245	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8246	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8247	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8248	    $EGREP "$file_magic_regex" > /dev/null; then
8249	    :
8250	  else
8251	    cat <<_LT_EOF 1>&2
8252
8253*** Warning: the command libtool uses to detect shared libraries,
8254*** $file_magic_cmd, produces output that libtool cannot recognize.
8255*** The result is that libtool may fail to recognize shared libraries
8256*** as such.  This will affect the creation of libtool libraries that
8257*** depend on shared libraries, but programs linked with such libtool
8258*** libraries will work regardless of this problem.  Nevertheless, you
8259*** may want to report the problem to your system manager and/or to
8260*** bug-libtool@gnu.org
8261
8262_LT_EOF
8263	  fi ;;
8264	esac
8265      fi
8266      break
8267    fi
8268  done
8269  IFS="$lt_save_ifs"
8270  MAGIC_CMD="$lt_save_MAGIC_CMD"
8271  ;;
8272esac
8273fi
8274
8275MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8276if test -n "$MAGIC_CMD"; then
8277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8278$as_echo "$MAGIC_CMD" >&6; }
8279else
8280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281$as_echo "no" >&6; }
8282fi
8283
8284
8285
8286
8287
8288if test -z "$lt_cv_path_MAGIC_CMD"; then
8289  if test -n "$ac_tool_prefix"; then
8290    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8291$as_echo_n "checking for file... " >&6; }
8292if ${lt_cv_path_MAGIC_CMD+:} false; then :
8293  $as_echo_n "(cached) " >&6
8294else
8295  case $MAGIC_CMD in
8296[\\/*] |  ?:[\\/]*)
8297  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8298  ;;
8299*)
8300  lt_save_MAGIC_CMD="$MAGIC_CMD"
8301  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8302  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8303  for ac_dir in $ac_dummy; do
8304    IFS="$lt_save_ifs"
8305    test -z "$ac_dir" && ac_dir=.
8306    if test -f $ac_dir/file; then
8307      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8308      if test -n "$file_magic_test_file"; then
8309	case $deplibs_check_method in
8310	"file_magic "*)
8311	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8312	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8313	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8314	    $EGREP "$file_magic_regex" > /dev/null; then
8315	    :
8316	  else
8317	    cat <<_LT_EOF 1>&2
8318
8319*** Warning: the command libtool uses to detect shared libraries,
8320*** $file_magic_cmd, produces output that libtool cannot recognize.
8321*** The result is that libtool may fail to recognize shared libraries
8322*** as such.  This will affect the creation of libtool libraries that
8323*** depend on shared libraries, but programs linked with such libtool
8324*** libraries will work regardless of this problem.  Nevertheless, you
8325*** may want to report the problem to your system manager and/or to
8326*** bug-libtool@gnu.org
8327
8328_LT_EOF
8329	  fi ;;
8330	esac
8331      fi
8332      break
8333    fi
8334  done
8335  IFS="$lt_save_ifs"
8336  MAGIC_CMD="$lt_save_MAGIC_CMD"
8337  ;;
8338esac
8339fi
8340
8341MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8342if test -n "$MAGIC_CMD"; then
8343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8344$as_echo "$MAGIC_CMD" >&6; }
8345else
8346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347$as_echo "no" >&6; }
8348fi
8349
8350
8351  else
8352    MAGIC_CMD=:
8353  fi
8354fi
8355
8356  fi
8357  ;;
8358esac
8359
8360# Use C for the default configuration in the libtool script
8361
8362lt_save_CC="$CC"
8363ac_ext=c
8364ac_cpp='$CPP $CPPFLAGS'
8365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8367ac_compiler_gnu=$ac_cv_c_compiler_gnu
8368
8369
8370# Source file extension for C test sources.
8371ac_ext=c
8372
8373# Object file extension for compiled C test sources.
8374objext=o
8375objext=$objext
8376
8377# Code to be used in simple compile tests
8378lt_simple_compile_test_code="int some_variable = 0;"
8379
8380# Code to be used in simple link tests
8381lt_simple_link_test_code='int main(){return(0);}'
8382
8383
8384
8385
8386
8387
8388
8389# If no C compiler was specified, use CC.
8390LTCC=${LTCC-"$CC"}
8391
8392# If no C compiler flags were specified, use CFLAGS.
8393LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8394
8395# Allow CC to be a program name with arguments.
8396compiler=$CC
8397
8398# Save the default compiler, since it gets overwritten when the other
8399# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8400compiler_DEFAULT=$CC
8401
8402# save warnings/boilerplate of simple test code
8403ac_outfile=conftest.$ac_objext
8404echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8405eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8406_lt_compiler_boilerplate=`cat conftest.err`
8407$RM conftest*
8408
8409ac_outfile=conftest.$ac_objext
8410echo "$lt_simple_link_test_code" >conftest.$ac_ext
8411eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8412_lt_linker_boilerplate=`cat conftest.err`
8413$RM -r conftest*
8414
8415
8416if test -n "$compiler"; then
8417
8418lt_prog_compiler_no_builtin_flag=
8419
8420if test "$GCC" = yes; then
8421  case $cc_basename in
8422  nvcc*)
8423    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8424  *)
8425    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8426  esac
8427
8428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8429$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8430if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8431  $as_echo_n "(cached) " >&6
8432else
8433  lt_cv_prog_compiler_rtti_exceptions=no
8434   ac_outfile=conftest.$ac_objext
8435   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8436   lt_compiler_flag="-fno-rtti -fno-exceptions"
8437   # Insert the option either (1) after the last *FLAGS variable, or
8438   # (2) before a word containing "conftest.", or (3) at the end.
8439   # Note that $ac_compile itself does not contain backslashes and begins
8440   # with a dollar sign (not a hyphen), so the echo should work correctly.
8441   # The option is referenced via a variable to avoid confusing sed.
8442   lt_compile=`echo "$ac_compile" | $SED \
8443   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8444   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8445   -e 's:$: $lt_compiler_flag:'`
8446   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8447   (eval "$lt_compile" 2>conftest.err)
8448   ac_status=$?
8449   cat conftest.err >&5
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   if (exit $ac_status) && test -s "$ac_outfile"; then
8452     # The compiler can only warn and ignore the option if not recognized
8453     # So say no if there are warnings other than the usual output.
8454     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8455     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8456     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8457       lt_cv_prog_compiler_rtti_exceptions=yes
8458     fi
8459   fi
8460   $RM conftest*
8461
8462fi
8463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8464$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8465
8466if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8467    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8468else
8469    :
8470fi
8471
8472fi
8473
8474
8475
8476
8477
8478
8479  lt_prog_compiler_wl=
8480lt_prog_compiler_pic=
8481lt_prog_compiler_static=
8482
8483
8484  if test "$GCC" = yes; then
8485    lt_prog_compiler_wl='-Wl,'
8486    lt_prog_compiler_static='-static'
8487
8488    case $host_os in
8489      aix*)
8490      # All AIX code is PIC.
8491      if test "$host_cpu" = ia64; then
8492	# AIX 5 now supports IA64 processor
8493	lt_prog_compiler_static='-Bstatic'
8494      fi
8495      ;;
8496
8497    amigaos*)
8498      case $host_cpu in
8499      powerpc)
8500            # see comment about AmigaOS4 .so support
8501            lt_prog_compiler_pic='-fPIC'
8502        ;;
8503      m68k)
8504            # FIXME: we need at least 68020 code to build shared libraries, but
8505            # adding the `-m68020' flag to GCC prevents building anything better,
8506            # like `-m68040'.
8507            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8508        ;;
8509      esac
8510      ;;
8511
8512    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8513      # PIC is the default for these OSes.
8514      ;;
8515
8516    mingw* | cygwin* | pw32* | os2* | cegcc*)
8517      # This hack is so that the source file can tell whether it is being
8518      # built for inclusion in a dll (and should export symbols for example).
8519      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8520      # (--disable-auto-import) libraries
8521      lt_prog_compiler_pic='-DDLL_EXPORT'
8522      ;;
8523
8524    darwin* | rhapsody*)
8525      # PIC is the default on this platform
8526      # Common symbols not allowed in MH_DYLIB files
8527      lt_prog_compiler_pic='-fno-common'
8528      ;;
8529
8530    haiku*)
8531      # PIC is the default for Haiku.
8532      # The "-static" flag exists, but is broken.
8533      lt_prog_compiler_static=
8534      ;;
8535
8536    hpux*)
8537      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8538      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8539      # sets the default TLS model and affects inlining.
8540      case $host_cpu in
8541      hppa*64*)
8542	# +Z the default
8543	;;
8544      *)
8545	lt_prog_compiler_pic='-fPIC'
8546	;;
8547      esac
8548      ;;
8549
8550    interix[3-9]*)
8551      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8552      # Instead, we relocate shared libraries at runtime.
8553      ;;
8554
8555    msdosdjgpp*)
8556      # Just because we use GCC doesn't mean we suddenly get shared libraries
8557      # on systems that don't support them.
8558      lt_prog_compiler_can_build_shared=no
8559      enable_shared=no
8560      ;;
8561
8562    *nto* | *qnx*)
8563      # QNX uses GNU C++, but need to define -shared option too, otherwise
8564      # it will coredump.
8565      lt_prog_compiler_pic='-fPIC -shared'
8566      ;;
8567
8568    sysv4*MP*)
8569      if test -d /usr/nec; then
8570	lt_prog_compiler_pic=-Kconform_pic
8571      fi
8572      ;;
8573
8574    *)
8575      lt_prog_compiler_pic='-fPIC'
8576      ;;
8577    esac
8578
8579    case $cc_basename in
8580    nvcc*) # Cuda Compiler Driver 2.2
8581      lt_prog_compiler_wl='-Xlinker '
8582      if test -n "$lt_prog_compiler_pic"; then
8583        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8584      fi
8585      ;;
8586    esac
8587  else
8588    # PORTME Check for flag to pass linker flags through the system compiler.
8589    case $host_os in
8590    aix*)
8591      lt_prog_compiler_wl='-Wl,'
8592      if test "$host_cpu" = ia64; then
8593	# AIX 5 now supports IA64 processor
8594	lt_prog_compiler_static='-Bstatic'
8595      else
8596	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8597      fi
8598      ;;
8599
8600    mingw* | cygwin* | pw32* | os2* | cegcc*)
8601      # This hack is so that the source file can tell whether it is being
8602      # built for inclusion in a dll (and should export symbols for example).
8603      lt_prog_compiler_pic='-DDLL_EXPORT'
8604      ;;
8605
8606    hpux9* | hpux10* | hpux11*)
8607      lt_prog_compiler_wl='-Wl,'
8608      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8609      # not for PA HP-UX.
8610      case $host_cpu in
8611      hppa*64*|ia64*)
8612	# +Z the default
8613	;;
8614      *)
8615	lt_prog_compiler_pic='+Z'
8616	;;
8617      esac
8618      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8619      lt_prog_compiler_static='${wl}-a ${wl}archive'
8620      ;;
8621
8622    irix5* | irix6* | nonstopux*)
8623      lt_prog_compiler_wl='-Wl,'
8624      # PIC (with -KPIC) is the default.
8625      lt_prog_compiler_static='-non_shared'
8626      ;;
8627
8628    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8629      case $cc_basename in
8630      # old Intel for x86_64 which still supported -KPIC.
8631      ecc*)
8632	lt_prog_compiler_wl='-Wl,'
8633	lt_prog_compiler_pic='-KPIC'
8634	lt_prog_compiler_static='-static'
8635        ;;
8636      # icc used to be incompatible with GCC.
8637      # ICC 10 doesn't accept -KPIC any more.
8638      icc* | ifort*)
8639	lt_prog_compiler_wl='-Wl,'
8640	lt_prog_compiler_pic='-fPIC'
8641	lt_prog_compiler_static='-static'
8642        ;;
8643      # Lahey Fortran 8.1.
8644      lf95*)
8645	lt_prog_compiler_wl='-Wl,'
8646	lt_prog_compiler_pic='--shared'
8647	lt_prog_compiler_static='--static'
8648	;;
8649      nagfor*)
8650	# NAG Fortran compiler
8651	lt_prog_compiler_wl='-Wl,-Wl,,'
8652	lt_prog_compiler_pic='-PIC'
8653	lt_prog_compiler_static='-Bstatic'
8654	;;
8655      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8656        # Portland Group compilers (*not* the Pentium gcc compiler,
8657	# which looks to be a dead project)
8658	lt_prog_compiler_wl='-Wl,'
8659	lt_prog_compiler_pic='-fpic'
8660	lt_prog_compiler_static='-Bstatic'
8661        ;;
8662      ccc*)
8663        lt_prog_compiler_wl='-Wl,'
8664        # All Alpha code is PIC.
8665        lt_prog_compiler_static='-non_shared'
8666        ;;
8667      xl* | bgxl* | bgf* | mpixl*)
8668	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8669	lt_prog_compiler_wl='-Wl,'
8670	lt_prog_compiler_pic='-qpic'
8671	lt_prog_compiler_static='-qstaticlink'
8672	;;
8673      *)
8674	case `$CC -V 2>&1 | sed 5q` in
8675	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8676	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8677	  lt_prog_compiler_pic='-KPIC'
8678	  lt_prog_compiler_static='-Bstatic'
8679	  lt_prog_compiler_wl=''
8680	  ;;
8681	*Sun\ F* | *Sun*Fortran*)
8682	  lt_prog_compiler_pic='-KPIC'
8683	  lt_prog_compiler_static='-Bstatic'
8684	  lt_prog_compiler_wl='-Qoption ld '
8685	  ;;
8686	*Sun\ C*)
8687	  # Sun C 5.9
8688	  lt_prog_compiler_pic='-KPIC'
8689	  lt_prog_compiler_static='-Bstatic'
8690	  lt_prog_compiler_wl='-Wl,'
8691	  ;;
8692        *Intel*\ [CF]*Compiler*)
8693	  lt_prog_compiler_wl='-Wl,'
8694	  lt_prog_compiler_pic='-fPIC'
8695	  lt_prog_compiler_static='-static'
8696	  ;;
8697	*Portland\ Group*)
8698	  lt_prog_compiler_wl='-Wl,'
8699	  lt_prog_compiler_pic='-fpic'
8700	  lt_prog_compiler_static='-Bstatic'
8701	  ;;
8702	esac
8703	;;
8704      esac
8705      ;;
8706
8707    newsos6)
8708      lt_prog_compiler_pic='-KPIC'
8709      lt_prog_compiler_static='-Bstatic'
8710      ;;
8711
8712    *nto* | *qnx*)
8713      # QNX uses GNU C++, but need to define -shared option too, otherwise
8714      # it will coredump.
8715      lt_prog_compiler_pic='-fPIC -shared'
8716      ;;
8717
8718    osf3* | osf4* | osf5*)
8719      lt_prog_compiler_wl='-Wl,'
8720      # All OSF/1 code is PIC.
8721      lt_prog_compiler_static='-non_shared'
8722      ;;
8723
8724    rdos*)
8725      lt_prog_compiler_static='-non_shared'
8726      ;;
8727
8728    solaris*)
8729      lt_prog_compiler_pic='-KPIC'
8730      lt_prog_compiler_static='-Bstatic'
8731      case $cc_basename in
8732      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8733	lt_prog_compiler_wl='-Qoption ld ';;
8734      *)
8735	lt_prog_compiler_wl='-Wl,';;
8736      esac
8737      ;;
8738
8739    sunos4*)
8740      lt_prog_compiler_wl='-Qoption ld '
8741      lt_prog_compiler_pic='-PIC'
8742      lt_prog_compiler_static='-Bstatic'
8743      ;;
8744
8745    sysv4 | sysv4.2uw2* | sysv4.3*)
8746      lt_prog_compiler_wl='-Wl,'
8747      lt_prog_compiler_pic='-KPIC'
8748      lt_prog_compiler_static='-Bstatic'
8749      ;;
8750
8751    sysv4*MP*)
8752      if test -d /usr/nec ;then
8753	lt_prog_compiler_pic='-Kconform_pic'
8754	lt_prog_compiler_static='-Bstatic'
8755      fi
8756      ;;
8757
8758    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8759      lt_prog_compiler_wl='-Wl,'
8760      lt_prog_compiler_pic='-KPIC'
8761      lt_prog_compiler_static='-Bstatic'
8762      ;;
8763
8764    unicos*)
8765      lt_prog_compiler_wl='-Wl,'
8766      lt_prog_compiler_can_build_shared=no
8767      ;;
8768
8769    uts4*)
8770      lt_prog_compiler_pic='-pic'
8771      lt_prog_compiler_static='-Bstatic'
8772      ;;
8773
8774    *)
8775      lt_prog_compiler_can_build_shared=no
8776      ;;
8777    esac
8778  fi
8779
8780case $host_os in
8781  # For platforms which do not support PIC, -DPIC is meaningless:
8782  *djgpp*)
8783    lt_prog_compiler_pic=
8784    ;;
8785  *)
8786    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8787    ;;
8788esac
8789
8790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8791$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8792if ${lt_cv_prog_compiler_pic+:} false; then :
8793  $as_echo_n "(cached) " >&6
8794else
8795  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8796fi
8797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8798$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8799lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8800
8801#
8802# Check to make sure the PIC flag actually works.
8803#
8804if test -n "$lt_prog_compiler_pic"; then
8805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8806$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8807if ${lt_cv_prog_compiler_pic_works+:} false; then :
8808  $as_echo_n "(cached) " >&6
8809else
8810  lt_cv_prog_compiler_pic_works=no
8811   ac_outfile=conftest.$ac_objext
8812   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8813   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8814   # Insert the option either (1) after the last *FLAGS variable, or
8815   # (2) before a word containing "conftest.", or (3) at the end.
8816   # Note that $ac_compile itself does not contain backslashes and begins
8817   # with a dollar sign (not a hyphen), so the echo should work correctly.
8818   # The option is referenced via a variable to avoid confusing sed.
8819   lt_compile=`echo "$ac_compile" | $SED \
8820   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8821   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8822   -e 's:$: $lt_compiler_flag:'`
8823   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8824   (eval "$lt_compile" 2>conftest.err)
8825   ac_status=$?
8826   cat conftest.err >&5
8827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828   if (exit $ac_status) && test -s "$ac_outfile"; then
8829     # The compiler can only warn and ignore the option if not recognized
8830     # So say no if there are warnings other than the usual output.
8831     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8832     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8833     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8834       lt_cv_prog_compiler_pic_works=yes
8835     fi
8836   fi
8837   $RM conftest*
8838
8839fi
8840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8841$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8842
8843if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8844    case $lt_prog_compiler_pic in
8845     "" | " "*) ;;
8846     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8847     esac
8848else
8849    lt_prog_compiler_pic=
8850     lt_prog_compiler_can_build_shared=no
8851fi
8852
8853fi
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865#
8866# Check to make sure the static flag actually works.
8867#
8868wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8870$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8871if ${lt_cv_prog_compiler_static_works+:} false; then :
8872  $as_echo_n "(cached) " >&6
8873else
8874  lt_cv_prog_compiler_static_works=no
8875   save_LDFLAGS="$LDFLAGS"
8876   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8877   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8878   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8879     # The linker can only warn and ignore the option if not recognized
8880     # So say no if there are warnings
8881     if test -s conftest.err; then
8882       # Append any errors to the config.log.
8883       cat conftest.err 1>&5
8884       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8885       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8886       if diff conftest.exp conftest.er2 >/dev/null; then
8887         lt_cv_prog_compiler_static_works=yes
8888       fi
8889     else
8890       lt_cv_prog_compiler_static_works=yes
8891     fi
8892   fi
8893   $RM -r conftest*
8894   LDFLAGS="$save_LDFLAGS"
8895
8896fi
8897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8898$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8899
8900if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8901    :
8902else
8903    lt_prog_compiler_static=
8904fi
8905
8906
8907
8908
8909
8910
8911
8912  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8913$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8914if ${lt_cv_prog_compiler_c_o+:} false; then :
8915  $as_echo_n "(cached) " >&6
8916else
8917  lt_cv_prog_compiler_c_o=no
8918   $RM -r conftest 2>/dev/null
8919   mkdir conftest
8920   cd conftest
8921   mkdir out
8922   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8923
8924   lt_compiler_flag="-o out/conftest2.$ac_objext"
8925   # Insert the option either (1) after the last *FLAGS variable, or
8926   # (2) before a word containing "conftest.", or (3) at the end.
8927   # Note that $ac_compile itself does not contain backslashes and begins
8928   # with a dollar sign (not a hyphen), so the echo should work correctly.
8929   lt_compile=`echo "$ac_compile" | $SED \
8930   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8931   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8932   -e 's:$: $lt_compiler_flag:'`
8933   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8934   (eval "$lt_compile" 2>out/conftest.err)
8935   ac_status=$?
8936   cat out/conftest.err >&5
8937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8939   then
8940     # The compiler can only warn and ignore the option if not recognized
8941     # So say no if there are warnings
8942     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8943     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8944     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8945       lt_cv_prog_compiler_c_o=yes
8946     fi
8947   fi
8948   chmod u+w . 2>&5
8949   $RM conftest*
8950   # SGI C++ compiler will create directory out/ii_files/ for
8951   # template instantiation
8952   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8953   $RM out/* && rmdir out
8954   cd ..
8955   $RM -r conftest
8956   $RM conftest*
8957
8958fi
8959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8960$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8961
8962
8963
8964
8965
8966
8967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8968$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8969if ${lt_cv_prog_compiler_c_o+:} false; then :
8970  $as_echo_n "(cached) " >&6
8971else
8972  lt_cv_prog_compiler_c_o=no
8973   $RM -r conftest 2>/dev/null
8974   mkdir conftest
8975   cd conftest
8976   mkdir out
8977   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8978
8979   lt_compiler_flag="-o out/conftest2.$ac_objext"
8980   # Insert the option either (1) after the last *FLAGS variable, or
8981   # (2) before a word containing "conftest.", or (3) at the end.
8982   # Note that $ac_compile itself does not contain backslashes and begins
8983   # with a dollar sign (not a hyphen), so the echo should work correctly.
8984   lt_compile=`echo "$ac_compile" | $SED \
8985   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8986   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8987   -e 's:$: $lt_compiler_flag:'`
8988   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8989   (eval "$lt_compile" 2>out/conftest.err)
8990   ac_status=$?
8991   cat out/conftest.err >&5
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8994   then
8995     # The compiler can only warn and ignore the option if not recognized
8996     # So say no if there are warnings
8997     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8998     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8999     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9000       lt_cv_prog_compiler_c_o=yes
9001     fi
9002   fi
9003   chmod u+w . 2>&5
9004   $RM conftest*
9005   # SGI C++ compiler will create directory out/ii_files/ for
9006   # template instantiation
9007   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9008   $RM out/* && rmdir out
9009   cd ..
9010   $RM -r conftest
9011   $RM conftest*
9012
9013fi
9014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9015$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9016
9017
9018
9019
9020hard_links="nottested"
9021if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9022  # do not overwrite the value of need_locks provided by the user
9023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9024$as_echo_n "checking if we can lock with hard links... " >&6; }
9025  hard_links=yes
9026  $RM conftest*
9027  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9028  touch conftest.a
9029  ln conftest.a conftest.b 2>&5 || hard_links=no
9030  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9032$as_echo "$hard_links" >&6; }
9033  if test "$hard_links" = no; then
9034    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9035$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9036    need_locks=warn
9037  fi
9038else
9039  need_locks=no
9040fi
9041
9042
9043
9044
9045
9046
9047  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9048$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9049
9050  runpath_var=
9051  allow_undefined_flag=
9052  always_export_symbols=no
9053  archive_cmds=
9054  archive_expsym_cmds=
9055  compiler_needs_object=no
9056  enable_shared_with_static_runtimes=no
9057  export_dynamic_flag_spec=
9058  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9059  hardcode_automatic=no
9060  hardcode_direct=no
9061  hardcode_direct_absolute=no
9062  hardcode_libdir_flag_spec=
9063  hardcode_libdir_separator=
9064  hardcode_minus_L=no
9065  hardcode_shlibpath_var=unsupported
9066  inherit_rpath=no
9067  link_all_deplibs=unknown
9068  module_cmds=
9069  module_expsym_cmds=
9070  old_archive_from_new_cmds=
9071  old_archive_from_expsyms_cmds=
9072  thread_safe_flag_spec=
9073  whole_archive_flag_spec=
9074  # include_expsyms should be a list of space-separated symbols to be *always*
9075  # included in the symbol list
9076  include_expsyms=
9077  # exclude_expsyms can be an extended regexp of symbols to exclude
9078  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9079  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9080  # as well as any symbol that contains `d'.
9081  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9082  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9083  # platforms (ab)use it in PIC code, but their linkers get confused if
9084  # the symbol is explicitly referenced.  Since portable code cannot
9085  # rely on this symbol name, it's probably fine to never include it in
9086  # preloaded symbol tables.
9087  # Exclude shared library initialization/finalization symbols.
9088  extract_expsyms_cmds=
9089
9090  case $host_os in
9091  cygwin* | mingw* | pw32* | cegcc*)
9092    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9093    # When not using gcc, we currently assume that we are using
9094    # Microsoft Visual C++.
9095    if test "$GCC" != yes; then
9096      with_gnu_ld=no
9097    fi
9098    ;;
9099  interix*)
9100    # we just hope/assume this is gcc and not c89 (= MSVC++)
9101    with_gnu_ld=yes
9102    ;;
9103  openbsd*)
9104    with_gnu_ld=no
9105    ;;
9106  esac
9107
9108  ld_shlibs=yes
9109
9110  # On some targets, GNU ld is compatible enough with the native linker
9111  # that we're better off using the native interface for both.
9112  lt_use_gnu_ld_interface=no
9113  if test "$with_gnu_ld" = yes; then
9114    case $host_os in
9115      aix*)
9116	# The AIX port of GNU ld has always aspired to compatibility
9117	# with the native linker.  However, as the warning in the GNU ld
9118	# block says, versions before 2.19.5* couldn't really create working
9119	# shared libraries, regardless of the interface used.
9120	case `$LD -v 2>&1` in
9121	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9122	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9123	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9124	  *)
9125	    lt_use_gnu_ld_interface=yes
9126	    ;;
9127	esac
9128	;;
9129      *)
9130	lt_use_gnu_ld_interface=yes
9131	;;
9132    esac
9133  fi
9134
9135  if test "$lt_use_gnu_ld_interface" = yes; then
9136    # If archive_cmds runs LD, not CC, wlarc should be empty
9137    wlarc='${wl}'
9138
9139    # Set some defaults for GNU ld with shared library support. These
9140    # are reset later if shared libraries are not supported. Putting them
9141    # here allows them to be overridden if necessary.
9142    runpath_var=LD_RUN_PATH
9143    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9144    export_dynamic_flag_spec='${wl}--export-dynamic'
9145    # ancient GNU ld didn't support --whole-archive et. al.
9146    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9147      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9148    else
9149      whole_archive_flag_spec=
9150    fi
9151    supports_anon_versioning=no
9152    case `$LD -v 2>&1` in
9153      *GNU\ gold*) supports_anon_versioning=yes ;;
9154      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9155      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9156      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9157      *\ 2.11.*) ;; # other 2.11 versions
9158      *) supports_anon_versioning=yes ;;
9159    esac
9160
9161    # See if GNU ld supports shared libraries.
9162    case $host_os in
9163    aix[3-9]*)
9164      # On AIX/PPC, the GNU linker is very broken
9165      if test "$host_cpu" != ia64; then
9166	ld_shlibs=no
9167	cat <<_LT_EOF 1>&2
9168
9169*** Warning: the GNU linker, at least up to release 2.19, is reported
9170*** to be unable to reliably create shared libraries on AIX.
9171*** Therefore, libtool is disabling shared libraries support.  If you
9172*** really care for shared libraries, you may want to install binutils
9173*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9174*** You will then need to restart the configuration process.
9175
9176_LT_EOF
9177      fi
9178      ;;
9179
9180    amigaos*)
9181      case $host_cpu in
9182      powerpc)
9183            # see comment about AmigaOS4 .so support
9184            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9185            archive_expsym_cmds=''
9186        ;;
9187      m68k)
9188            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)'
9189            hardcode_libdir_flag_spec='-L$libdir'
9190            hardcode_minus_L=yes
9191        ;;
9192      esac
9193      ;;
9194
9195    beos*)
9196      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9197	allow_undefined_flag=unsupported
9198	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9199	# support --undefined.  This deserves some investigation.  FIXME
9200	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201      else
9202	ld_shlibs=no
9203      fi
9204      ;;
9205
9206    cygwin* | mingw* | pw32* | cegcc*)
9207      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9208      # as there is no search path for DLLs.
9209      hardcode_libdir_flag_spec='-L$libdir'
9210      export_dynamic_flag_spec='${wl}--export-all-symbols'
9211      allow_undefined_flag=unsupported
9212      always_export_symbols=no
9213      enable_shared_with_static_runtimes=yes
9214      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'
9215      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9216
9217      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9218        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9219	# If the export-symbols file already is a .def file (1st line
9220	# is EXPORTS), use it as is; otherwise, prepend...
9221	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9222	  cp $export_symbols $output_objdir/$soname.def;
9223	else
9224	  echo EXPORTS > $output_objdir/$soname.def;
9225	  cat $export_symbols >> $output_objdir/$soname.def;
9226	fi~
9227	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9228      else
9229	ld_shlibs=no
9230      fi
9231      ;;
9232
9233    haiku*)
9234      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9235      link_all_deplibs=yes
9236      ;;
9237
9238    interix[3-9]*)
9239      hardcode_direct=no
9240      hardcode_shlibpath_var=no
9241      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9242      export_dynamic_flag_spec='${wl}-E'
9243      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9244      # Instead, shared libraries are loaded at an image base (0x10000000 by
9245      # default) and relocated if they conflict, which is a slow very memory
9246      # consuming and fragmenting process.  To avoid this, we pick a random,
9247      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9248      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9249      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9250      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'
9251      ;;
9252
9253    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9254      tmp_diet=no
9255      if test "$host_os" = linux-dietlibc; then
9256	case $cc_basename in
9257	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9258	esac
9259      fi
9260      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9261	 && test "$tmp_diet" = no
9262      then
9263	tmp_addflag=' $pic_flag'
9264	tmp_sharedflag='-shared'
9265	case $cc_basename,$host_cpu in
9266        pgcc*)				# Portland Group C compiler
9267	  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'
9268	  tmp_addflag=' $pic_flag'
9269	  ;;
9270	pgf77* | pgf90* | pgf95* | pgfortran*)
9271					# Portland Group f77 and f90 compilers
9272	  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'
9273	  tmp_addflag=' $pic_flag -Mnomain' ;;
9274	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9275	  tmp_addflag=' -i_dynamic' ;;
9276	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9277	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9278	ifc* | ifort*)			# Intel Fortran compiler
9279	  tmp_addflag=' -nofor_main' ;;
9280	lf95*)				# Lahey Fortran 8.1
9281	  whole_archive_flag_spec=
9282	  tmp_sharedflag='--shared' ;;
9283	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9284	  tmp_sharedflag='-qmkshrobj'
9285	  tmp_addflag= ;;
9286	nvcc*)	# Cuda Compiler Driver 2.2
9287	  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'
9288	  compiler_needs_object=yes
9289	  ;;
9290	esac
9291	case `$CC -V 2>&1 | sed 5q` in
9292	*Sun\ C*)			# Sun C 5.9
9293	  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'
9294	  compiler_needs_object=yes
9295	  tmp_sharedflag='-G' ;;
9296	*Sun\ F*)			# Sun Fortran 8.3
9297	  tmp_sharedflag='-G' ;;
9298	esac
9299	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9300
9301        if test "x$supports_anon_versioning" = xyes; then
9302          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9303	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9304	    echo "local: *; };" >> $output_objdir/$libname.ver~
9305	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9306        fi
9307
9308	case $cc_basename in
9309	xlf* | bgf* | bgxlf* | mpixlf*)
9310	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9311	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9312	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9313	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9314	  if test "x$supports_anon_versioning" = xyes; then
9315	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9316	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9317	      echo "local: *; };" >> $output_objdir/$libname.ver~
9318	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9319	  fi
9320	  ;;
9321	esac
9322      else
9323        ld_shlibs=no
9324      fi
9325      ;;
9326
9327    netbsd*)
9328      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9329	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9330	wlarc=
9331      else
9332	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9333	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9334      fi
9335      ;;
9336
9337    solaris*)
9338      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9339	ld_shlibs=no
9340	cat <<_LT_EOF 1>&2
9341
9342*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9343*** create shared libraries on Solaris systems.  Therefore, libtool
9344*** is disabling shared libraries support.  We urge you to upgrade GNU
9345*** binutils to release 2.9.1 or newer.  Another option is to modify
9346*** your PATH or compiler configuration so that the native linker is
9347*** used, and then restart.
9348
9349_LT_EOF
9350      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9351	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9352	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9353      else
9354	ld_shlibs=no
9355      fi
9356      ;;
9357
9358    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9359      case `$LD -v 2>&1` in
9360        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9361	ld_shlibs=no
9362	cat <<_LT_EOF 1>&2
9363
9364*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9365*** reliably create shared libraries on SCO systems.  Therefore, libtool
9366*** is disabling shared libraries support.  We urge you to upgrade GNU
9367*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9368*** your PATH or compiler configuration so that the native linker is
9369*** used, and then restart.
9370
9371_LT_EOF
9372	;;
9373	*)
9374	  # For security reasons, it is highly recommended that you always
9375	  # use absolute paths for naming shared libraries, and exclude the
9376	  # DT_RUNPATH tag from executables and libraries.  But doing so
9377	  # requires that you compile everything twice, which is a pain.
9378	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9379	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9380	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9381	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9382	  else
9383	    ld_shlibs=no
9384	  fi
9385	;;
9386      esac
9387      ;;
9388
9389    sunos4*)
9390      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9391      wlarc=
9392      hardcode_direct=yes
9393      hardcode_shlibpath_var=no
9394      ;;
9395
9396    *)
9397      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9398	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9400      else
9401	ld_shlibs=no
9402      fi
9403      ;;
9404    esac
9405
9406    if test "$ld_shlibs" = no; then
9407      runpath_var=
9408      hardcode_libdir_flag_spec=
9409      export_dynamic_flag_spec=
9410      whole_archive_flag_spec=
9411    fi
9412  else
9413    # PORTME fill in a description of your system's linker (not GNU ld)
9414    case $host_os in
9415    aix3*)
9416      allow_undefined_flag=unsupported
9417      always_export_symbols=yes
9418      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'
9419      # Note: this linker hardcodes the directories in LIBPATH if there
9420      # are no directories specified by -L.
9421      hardcode_minus_L=yes
9422      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9423	# Neither direct hardcoding nor static linking is supported with a
9424	# broken collect2.
9425	hardcode_direct=unsupported
9426      fi
9427      ;;
9428
9429    aix[4-9]*)
9430      if test "$host_cpu" = ia64; then
9431	# On IA64, the linker does run time linking by default, so we don't
9432	# have to do anything special.
9433	aix_use_runtimelinking=no
9434	exp_sym_flag='-Bexport'
9435	no_entry_flag=""
9436      else
9437	# If we're using GNU nm, then we don't want the "-C" option.
9438	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9439	# Also, AIX nm treats weak defined symbols like other global
9440	# defined symbols, whereas GNU nm marks them as "W".
9441	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9442	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9443	else
9444	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9445	fi
9446	aix_use_runtimelinking=no
9447
9448	# Test if we are trying to use run time linking or normal
9449	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9450	# need to do runtime linking.
9451	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9452	  for ld_flag in $LDFLAGS; do
9453	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9454	    aix_use_runtimelinking=yes
9455	    break
9456	  fi
9457	  done
9458	  ;;
9459	esac
9460
9461	exp_sym_flag='-bexport'
9462	no_entry_flag='-bnoentry'
9463      fi
9464
9465      # When large executables or shared objects are built, AIX ld can
9466      # have problems creating the table of contents.  If linking a library
9467      # or program results in "error TOC overflow" add -mminimal-toc to
9468      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9469      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9470
9471      archive_cmds=''
9472      hardcode_direct=yes
9473      hardcode_direct_absolute=yes
9474      hardcode_libdir_separator=':'
9475      link_all_deplibs=yes
9476      file_list_spec='${wl}-f,'
9477
9478      if test "$GCC" = yes; then
9479	case $host_os in aix4.[012]|aix4.[012].*)
9480	# We only want to do this on AIX 4.2 and lower, the check
9481	# below for broken collect2 doesn't work under 4.3+
9482	  collect2name=`${CC} -print-prog-name=collect2`
9483	  if test -f "$collect2name" &&
9484	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9485	  then
9486	  # We have reworked collect2
9487	  :
9488	  else
9489	  # We have old collect2
9490	  hardcode_direct=unsupported
9491	  # It fails to find uninstalled libraries when the uninstalled
9492	  # path is not listed in the libpath.  Setting hardcode_minus_L
9493	  # to unsupported forces relinking
9494	  hardcode_minus_L=yes
9495	  hardcode_libdir_flag_spec='-L$libdir'
9496	  hardcode_libdir_separator=
9497	  fi
9498	  ;;
9499	esac
9500	shared_flag='-shared'
9501	if test "$aix_use_runtimelinking" = yes; then
9502	  shared_flag="$shared_flag "'${wl}-G'
9503	fi
9504      else
9505	# not using gcc
9506	if test "$host_cpu" = ia64; then
9507	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9508	# chokes on -Wl,-G. The following line is correct:
9509	  shared_flag='-G'
9510	else
9511	  if test "$aix_use_runtimelinking" = yes; then
9512	    shared_flag='${wl}-G'
9513	  else
9514	    shared_flag='${wl}-bM:SRE'
9515	  fi
9516	fi
9517      fi
9518
9519      export_dynamic_flag_spec='${wl}-bexpall'
9520      # It seems that -bexpall does not export symbols beginning with
9521      # underscore (_), so it is better to generate a list of symbols to export.
9522      always_export_symbols=yes
9523      if test "$aix_use_runtimelinking" = yes; then
9524	# Warning - without using the other runtime loading flags (-brtl),
9525	# -berok will link without error, but may produce a broken library.
9526	allow_undefined_flag='-berok'
9527        # Determine the default libpath from the value encoded in an
9528        # empty executable.
9529        if test "${lt_cv_aix_libpath+set}" = set; then
9530  aix_libpath=$lt_cv_aix_libpath
9531else
9532  if ${lt_cv_aix_libpath_+:} false; then :
9533  $as_echo_n "(cached) " >&6
9534else
9535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536/* end confdefs.h.  */
9537
9538int
9539main ()
9540{
9541
9542  ;
9543  return 0;
9544}
9545_ACEOF
9546if ac_fn_c_try_link "$LINENO"; then :
9547
9548  lt_aix_libpath_sed='
9549      /Import File Strings/,/^$/ {
9550	  /^0/ {
9551	      s/^0  *\([^ ]*\) *$/\1/
9552	      p
9553	  }
9554      }'
9555  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9556  # Check for a 64-bit object if we didn't find anything.
9557  if test -z "$lt_cv_aix_libpath_"; then
9558    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9559  fi
9560fi
9561rm -f core conftest.err conftest.$ac_objext \
9562    conftest$ac_exeext conftest.$ac_ext
9563  if test -z "$lt_cv_aix_libpath_"; then
9564    lt_cv_aix_libpath_="/usr/lib:/lib"
9565  fi
9566
9567fi
9568
9569  aix_libpath=$lt_cv_aix_libpath_
9570fi
9571
9572        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9573        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9574      else
9575	if test "$host_cpu" = ia64; then
9576	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9577	  allow_undefined_flag="-z nodefs"
9578	  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"
9579	else
9580	 # Determine the default libpath from the value encoded in an
9581	 # empty executable.
9582	 if test "${lt_cv_aix_libpath+set}" = set; then
9583  aix_libpath=$lt_cv_aix_libpath
9584else
9585  if ${lt_cv_aix_libpath_+:} false; then :
9586  $as_echo_n "(cached) " >&6
9587else
9588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589/* end confdefs.h.  */
9590
9591int
9592main ()
9593{
9594
9595  ;
9596  return 0;
9597}
9598_ACEOF
9599if ac_fn_c_try_link "$LINENO"; then :
9600
9601  lt_aix_libpath_sed='
9602      /Import File Strings/,/^$/ {
9603	  /^0/ {
9604	      s/^0  *\([^ ]*\) *$/\1/
9605	      p
9606	  }
9607      }'
9608  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9609  # Check for a 64-bit object if we didn't find anything.
9610  if test -z "$lt_cv_aix_libpath_"; then
9611    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9612  fi
9613fi
9614rm -f core conftest.err conftest.$ac_objext \
9615    conftest$ac_exeext conftest.$ac_ext
9616  if test -z "$lt_cv_aix_libpath_"; then
9617    lt_cv_aix_libpath_="/usr/lib:/lib"
9618  fi
9619
9620fi
9621
9622  aix_libpath=$lt_cv_aix_libpath_
9623fi
9624
9625	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9626	  # Warning - without using the other run time loading flags,
9627	  # -berok will link without error, but may produce a broken library.
9628	  no_undefined_flag=' ${wl}-bernotok'
9629	  allow_undefined_flag=' ${wl}-berok'
9630	  if test "$with_gnu_ld" = yes; then
9631	    # We only use this code for GNU lds that support --whole-archive.
9632	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9633	  else
9634	    # Exported symbols can be pulled into shared objects from archives
9635	    whole_archive_flag_spec='$convenience'
9636	  fi
9637	  archive_cmds_need_lc=yes
9638	  # This is similar to how AIX traditionally builds its shared libraries.
9639	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9640	fi
9641      fi
9642      ;;
9643
9644    amigaos*)
9645      case $host_cpu in
9646      powerpc)
9647            # see comment about AmigaOS4 .so support
9648            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9649            archive_expsym_cmds=''
9650        ;;
9651      m68k)
9652            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)'
9653            hardcode_libdir_flag_spec='-L$libdir'
9654            hardcode_minus_L=yes
9655        ;;
9656      esac
9657      ;;
9658
9659    bsdi[45]*)
9660      export_dynamic_flag_spec=-rdynamic
9661      ;;
9662
9663    cygwin* | mingw* | pw32* | cegcc*)
9664      # When not using gcc, we currently assume that we are using
9665      # Microsoft Visual C++.
9666      # hardcode_libdir_flag_spec is actually meaningless, as there is
9667      # no search path for DLLs.
9668      case $cc_basename in
9669      cl*)
9670	# Native MSVC
9671	hardcode_libdir_flag_spec=' '
9672	allow_undefined_flag=unsupported
9673	always_export_symbols=yes
9674	file_list_spec='@'
9675	# Tell ltmain to make .lib files, not .a files.
9676	libext=lib
9677	# Tell ltmain to make .dll files, not .so files.
9678	shrext_cmds=".dll"
9679	# FIXME: Setting linknames here is a bad hack.
9680	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9681	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9682	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9683	  else
9684	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9685	  fi~
9686	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9687	  linknames='
9688	# The linker will not automatically build a static lib if we build a DLL.
9689	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9690	enable_shared_with_static_runtimes=yes
9691	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9692	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9693	# Don't use ranlib
9694	old_postinstall_cmds='chmod 644 $oldlib'
9695	postlink_cmds='lt_outputfile="@OUTPUT@"~
9696	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9697	  case $lt_outputfile in
9698	    *.exe|*.EXE) ;;
9699	    *)
9700	      lt_outputfile="$lt_outputfile.exe"
9701	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9702	      ;;
9703	  esac~
9704	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9705	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9706	    $RM "$lt_outputfile.manifest";
9707	  fi'
9708	;;
9709      *)
9710	# Assume MSVC wrapper
9711	hardcode_libdir_flag_spec=' '
9712	allow_undefined_flag=unsupported
9713	# Tell ltmain to make .lib files, not .a files.
9714	libext=lib
9715	# Tell ltmain to make .dll files, not .so files.
9716	shrext_cmds=".dll"
9717	# FIXME: Setting linknames here is a bad hack.
9718	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9719	# The linker will automatically build a .lib file if we build a DLL.
9720	old_archive_from_new_cmds='true'
9721	# FIXME: Should let the user specify the lib program.
9722	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9723	enable_shared_with_static_runtimes=yes
9724	;;
9725      esac
9726      ;;
9727
9728    darwin* | rhapsody*)
9729
9730
9731  archive_cmds_need_lc=no
9732  hardcode_direct=no
9733  hardcode_automatic=yes
9734  hardcode_shlibpath_var=unsupported
9735  if test "$lt_cv_ld_force_load" = "yes"; then
9736    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\"`'
9737
9738  else
9739    whole_archive_flag_spec=''
9740  fi
9741  link_all_deplibs=yes
9742  allow_undefined_flag="$_lt_dar_allow_undefined"
9743  case $cc_basename in
9744     ifort*) _lt_dar_can_shared=yes ;;
9745     *) _lt_dar_can_shared=$GCC ;;
9746  esac
9747  if test "$_lt_dar_can_shared" = "yes"; then
9748    output_verbose_link_cmd=func_echo_all
9749    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9750    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9751    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}"
9752    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}"
9753
9754  else
9755  ld_shlibs=no
9756  fi
9757
9758      ;;
9759
9760    dgux*)
9761      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762      hardcode_libdir_flag_spec='-L$libdir'
9763      hardcode_shlibpath_var=no
9764      ;;
9765
9766    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9767    # support.  Future versions do this automatically, but an explicit c++rt0.o
9768    # does not break anything, and helps significantly (at the cost of a little
9769    # extra space).
9770    freebsd2.2*)
9771      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9772      hardcode_libdir_flag_spec='-R$libdir'
9773      hardcode_direct=yes
9774      hardcode_shlibpath_var=no
9775      ;;
9776
9777    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9778    freebsd2.*)
9779      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9780      hardcode_direct=yes
9781      hardcode_minus_L=yes
9782      hardcode_shlibpath_var=no
9783      ;;
9784
9785    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9786    freebsd* | dragonfly*)
9787      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9788      hardcode_libdir_flag_spec='-R$libdir'
9789      hardcode_direct=yes
9790      hardcode_shlibpath_var=no
9791      ;;
9792
9793    hpux9*)
9794      if test "$GCC" = yes; then
9795	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9796      else
9797	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9798      fi
9799      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9800      hardcode_libdir_separator=:
9801      hardcode_direct=yes
9802
9803      # hardcode_minus_L: Not really in the search PATH,
9804      # but as the default location of the library.
9805      hardcode_minus_L=yes
9806      export_dynamic_flag_spec='${wl}-E'
9807      ;;
9808
9809    hpux10*)
9810      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9811	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9812      else
9813	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9814      fi
9815      if test "$with_gnu_ld" = no; then
9816	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9817	hardcode_libdir_separator=:
9818	hardcode_direct=yes
9819	hardcode_direct_absolute=yes
9820	export_dynamic_flag_spec='${wl}-E'
9821	# hardcode_minus_L: Not really in the search PATH,
9822	# but as the default location of the library.
9823	hardcode_minus_L=yes
9824      fi
9825      ;;
9826
9827    hpux11*)
9828      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9829	case $host_cpu in
9830	hppa*64*)
9831	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9832	  ;;
9833	ia64*)
9834	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9835	  ;;
9836	*)
9837	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9838	  ;;
9839	esac
9840      else
9841	case $host_cpu in
9842	hppa*64*)
9843	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9844	  ;;
9845	ia64*)
9846	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9847	  ;;
9848	*)
9849
9850	  # Older versions of the 11.00 compiler do not understand -b yet
9851	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9852	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9853$as_echo_n "checking if $CC understands -b... " >&6; }
9854if ${lt_cv_prog_compiler__b+:} false; then :
9855  $as_echo_n "(cached) " >&6
9856else
9857  lt_cv_prog_compiler__b=no
9858   save_LDFLAGS="$LDFLAGS"
9859   LDFLAGS="$LDFLAGS -b"
9860   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9861   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9862     # The linker can only warn and ignore the option if not recognized
9863     # So say no if there are warnings
9864     if test -s conftest.err; then
9865       # Append any errors to the config.log.
9866       cat conftest.err 1>&5
9867       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9868       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9869       if diff conftest.exp conftest.er2 >/dev/null; then
9870         lt_cv_prog_compiler__b=yes
9871       fi
9872     else
9873       lt_cv_prog_compiler__b=yes
9874     fi
9875   fi
9876   $RM -r conftest*
9877   LDFLAGS="$save_LDFLAGS"
9878
9879fi
9880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9881$as_echo "$lt_cv_prog_compiler__b" >&6; }
9882
9883if test x"$lt_cv_prog_compiler__b" = xyes; then
9884    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9885else
9886    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9887fi
9888
9889	  ;;
9890	esac
9891      fi
9892      if test "$with_gnu_ld" = no; then
9893	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9894	hardcode_libdir_separator=:
9895
9896	case $host_cpu in
9897	hppa*64*|ia64*)
9898	  hardcode_direct=no
9899	  hardcode_shlibpath_var=no
9900	  ;;
9901	*)
9902	  hardcode_direct=yes
9903	  hardcode_direct_absolute=yes
9904	  export_dynamic_flag_spec='${wl}-E'
9905
9906	  # hardcode_minus_L: Not really in the search PATH,
9907	  # but as the default location of the library.
9908	  hardcode_minus_L=yes
9909	  ;;
9910	esac
9911      fi
9912      ;;
9913
9914    irix5* | irix6* | nonstopux*)
9915      if test "$GCC" = yes; then
9916	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'
9917	# Try to use the -exported_symbol ld option, if it does not
9918	# work, assume that -exports_file does not work either and
9919	# implicitly export all symbols.
9920	# This should be the same for all languages, so no per-tag cache variable.
9921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9922$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9923if ${lt_cv_irix_exported_symbol+:} false; then :
9924  $as_echo_n "(cached) " >&6
9925else
9926  save_LDFLAGS="$LDFLAGS"
9927	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9928	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9929/* end confdefs.h.  */
9930int foo (void) { return 0; }
9931_ACEOF
9932if ac_fn_c_try_link "$LINENO"; then :
9933  lt_cv_irix_exported_symbol=yes
9934else
9935  lt_cv_irix_exported_symbol=no
9936fi
9937rm -f core conftest.err conftest.$ac_objext \
9938    conftest$ac_exeext conftest.$ac_ext
9939           LDFLAGS="$save_LDFLAGS"
9940fi
9941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9942$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9943	if test "$lt_cv_irix_exported_symbol" = yes; then
9944          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'
9945	fi
9946      else
9947	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'
9948	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'
9949      fi
9950      archive_cmds_need_lc='no'
9951      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9952      hardcode_libdir_separator=:
9953      inherit_rpath=yes
9954      link_all_deplibs=yes
9955      ;;
9956
9957    netbsd*)
9958      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9959	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9960      else
9961	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9962      fi
9963      hardcode_libdir_flag_spec='-R$libdir'
9964      hardcode_direct=yes
9965      hardcode_shlibpath_var=no
9966      ;;
9967
9968    newsos6)
9969      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9970      hardcode_direct=yes
9971      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9972      hardcode_libdir_separator=:
9973      hardcode_shlibpath_var=no
9974      ;;
9975
9976    *nto* | *qnx*)
9977      ;;
9978
9979    openbsd*)
9980      if test -f /usr/libexec/ld.so; then
9981	hardcode_direct=yes
9982	hardcode_shlibpath_var=no
9983	hardcode_direct_absolute=yes
9984	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9985	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9986	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9987	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9988	  export_dynamic_flag_spec='${wl}-E'
9989	else
9990	  case $host_os in
9991	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9992	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9993	     hardcode_libdir_flag_spec='-R$libdir'
9994	     ;;
9995	   *)
9996	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9997	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9998	     ;;
9999	  esac
10000	fi
10001      else
10002	ld_shlibs=no
10003      fi
10004      ;;
10005
10006    os2*)
10007      hardcode_libdir_flag_spec='-L$libdir'
10008      hardcode_minus_L=yes
10009      allow_undefined_flag=unsupported
10010      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10011      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10012      ;;
10013
10014    osf3*)
10015      if test "$GCC" = yes; then
10016	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10017	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'
10018      else
10019	allow_undefined_flag=' -expect_unresolved \*'
10020	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'
10021      fi
10022      archive_cmds_need_lc='no'
10023      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10024      hardcode_libdir_separator=:
10025      ;;
10026
10027    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10028      if test "$GCC" = yes; then
10029	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10030	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'
10031	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10032      else
10033	allow_undefined_flag=' -expect_unresolved \*'
10034	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'
10035	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~
10036	$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'
10037
10038	# Both c and cxx compiler support -rpath directly
10039	hardcode_libdir_flag_spec='-rpath $libdir'
10040      fi
10041      archive_cmds_need_lc='no'
10042      hardcode_libdir_separator=:
10043      ;;
10044
10045    solaris*)
10046      no_undefined_flag=' -z defs'
10047      if test "$GCC" = yes; then
10048	wlarc='${wl}'
10049	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10050	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10051	  $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'
10052      else
10053	case `$CC -V 2>&1` in
10054	*"Compilers 5.0"*)
10055	  wlarc=''
10056	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10058	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10059	  ;;
10060	*)
10061	  wlarc='${wl}'
10062	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10063	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10064	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10065	  ;;
10066	esac
10067      fi
10068      hardcode_libdir_flag_spec='-R$libdir'
10069      hardcode_shlibpath_var=no
10070      case $host_os in
10071      solaris2.[0-5] | solaris2.[0-5].*) ;;
10072      *)
10073	# The compiler driver will combine and reorder linker options,
10074	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10075	# but is careful enough not to reorder.
10076	# Supported since Solaris 2.6 (maybe 2.5.1?)
10077	if test "$GCC" = yes; then
10078	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10079	else
10080	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10081	fi
10082	;;
10083      esac
10084      link_all_deplibs=yes
10085      ;;
10086
10087    sunos4*)
10088      if test "x$host_vendor" = xsequent; then
10089	# Use $CC to link under sequent, because it throws in some extra .o
10090	# files that make .init and .fini sections work.
10091	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10092      else
10093	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10094      fi
10095      hardcode_libdir_flag_spec='-L$libdir'
10096      hardcode_direct=yes
10097      hardcode_minus_L=yes
10098      hardcode_shlibpath_var=no
10099      ;;
10100
10101    sysv4)
10102      case $host_vendor in
10103	sni)
10104	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10105	  hardcode_direct=yes # is this really true???
10106	;;
10107	siemens)
10108	  ## LD is ld it makes a PLAMLIB
10109	  ## CC just makes a GrossModule.
10110	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10111	  reload_cmds='$CC -r -o $output$reload_objs'
10112	  hardcode_direct=no
10113        ;;
10114	motorola)
10115	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10116	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10117	;;
10118      esac
10119      runpath_var='LD_RUN_PATH'
10120      hardcode_shlibpath_var=no
10121      ;;
10122
10123    sysv4.3*)
10124      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10125      hardcode_shlibpath_var=no
10126      export_dynamic_flag_spec='-Bexport'
10127      ;;
10128
10129    sysv4*MP*)
10130      if test -d /usr/nec; then
10131	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10132	hardcode_shlibpath_var=no
10133	runpath_var=LD_RUN_PATH
10134	hardcode_runpath_var=yes
10135	ld_shlibs=yes
10136      fi
10137      ;;
10138
10139    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10140      no_undefined_flag='${wl}-z,text'
10141      archive_cmds_need_lc=no
10142      hardcode_shlibpath_var=no
10143      runpath_var='LD_RUN_PATH'
10144
10145      if test "$GCC" = yes; then
10146	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10147	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10148      else
10149	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10150	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10151      fi
10152      ;;
10153
10154    sysv5* | sco3.2v5* | sco5v6*)
10155      # Note: We can NOT use -z defs as we might desire, because we do not
10156      # link with -lc, and that would cause any symbols used from libc to
10157      # always be unresolved, which means just about no library would
10158      # ever link correctly.  If we're not using GNU ld we use -z text
10159      # though, which does catch some bad symbols but isn't as heavy-handed
10160      # as -z defs.
10161      no_undefined_flag='${wl}-z,text'
10162      allow_undefined_flag='${wl}-z,nodefs'
10163      archive_cmds_need_lc=no
10164      hardcode_shlibpath_var=no
10165      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10166      hardcode_libdir_separator=':'
10167      link_all_deplibs=yes
10168      export_dynamic_flag_spec='${wl}-Bexport'
10169      runpath_var='LD_RUN_PATH'
10170
10171      if test "$GCC" = yes; then
10172	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10173	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10174      else
10175	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10176	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10177      fi
10178      ;;
10179
10180    uts4*)
10181      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10182      hardcode_libdir_flag_spec='-L$libdir'
10183      hardcode_shlibpath_var=no
10184      ;;
10185
10186    *)
10187      ld_shlibs=no
10188      ;;
10189    esac
10190
10191    if test x$host_vendor = xsni; then
10192      case $host in
10193      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10194	export_dynamic_flag_spec='${wl}-Blargedynsym'
10195	;;
10196      esac
10197    fi
10198  fi
10199
10200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10201$as_echo "$ld_shlibs" >&6; }
10202test "$ld_shlibs" = no && can_build_shared=no
10203
10204with_gnu_ld=$with_gnu_ld
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220#
10221# Do we need to explicitly link libc?
10222#
10223case "x$archive_cmds_need_lc" in
10224x|xyes)
10225  # Assume -lc should be added
10226  archive_cmds_need_lc=yes
10227
10228  if test "$enable_shared" = yes && test "$GCC" = yes; then
10229    case $archive_cmds in
10230    *'~'*)
10231      # FIXME: we may have to deal with multi-command sequences.
10232      ;;
10233    '$CC '*)
10234      # Test whether the compiler implicitly links with -lc since on some
10235      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10236      # to ld, don't add -lc before -lgcc.
10237      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10238$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10239if ${lt_cv_archive_cmds_need_lc+:} false; then :
10240  $as_echo_n "(cached) " >&6
10241else
10242  $RM conftest*
10243	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10244
10245	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10246  (eval $ac_compile) 2>&5
10247  ac_status=$?
10248  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10249  test $ac_status = 0; } 2>conftest.err; then
10250	  soname=conftest
10251	  lib=conftest
10252	  libobjs=conftest.$ac_objext
10253	  deplibs=
10254	  wl=$lt_prog_compiler_wl
10255	  pic_flag=$lt_prog_compiler_pic
10256	  compiler_flags=-v
10257	  linker_flags=-v
10258	  verstring=
10259	  output_objdir=.
10260	  libname=conftest
10261	  lt_save_allow_undefined_flag=$allow_undefined_flag
10262	  allow_undefined_flag=
10263	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10264  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10265  ac_status=$?
10266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10267  test $ac_status = 0; }
10268	  then
10269	    lt_cv_archive_cmds_need_lc=no
10270	  else
10271	    lt_cv_archive_cmds_need_lc=yes
10272	  fi
10273	  allow_undefined_flag=$lt_save_allow_undefined_flag
10274	else
10275	  cat conftest.err 1>&5
10276	fi
10277	$RM conftest*
10278
10279fi
10280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10281$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10282      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10283      ;;
10284    esac
10285  fi
10286  ;;
10287esac
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10441$as_echo_n "checking dynamic linker characteristics... " >&6; }
10442
10443if test "$GCC" = yes; then
10444  case $host_os in
10445    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10446    *) lt_awk_arg="/^libraries:/" ;;
10447  esac
10448  case $host_os in
10449    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10450    *) lt_sed_strip_eq="s,=/,/,g" ;;
10451  esac
10452  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10453  case $lt_search_path_spec in
10454  *\;*)
10455    # if the path contains ";" then we assume it to be the separator
10456    # otherwise default to the standard path separator (i.e. ":") - it is
10457    # assumed that no part of a normal pathname contains ";" but that should
10458    # okay in the real world where ";" in dirpaths is itself problematic.
10459    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10460    ;;
10461  *)
10462    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10463    ;;
10464  esac
10465  # Ok, now we have the path, separated by spaces, we can step through it
10466  # and add multilib dir if necessary.
10467  lt_tmp_lt_search_path_spec=
10468  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10469  for lt_sys_path in $lt_search_path_spec; do
10470    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10471      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10472    else
10473      test -d "$lt_sys_path" && \
10474	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10475    fi
10476  done
10477  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10478BEGIN {RS=" "; FS="/|\n";} {
10479  lt_foo="";
10480  lt_count=0;
10481  for (lt_i = NF; lt_i > 0; lt_i--) {
10482    if ($lt_i != "" && $lt_i != ".") {
10483      if ($lt_i == "..") {
10484        lt_count++;
10485      } else {
10486        if (lt_count == 0) {
10487          lt_foo="/" $lt_i lt_foo;
10488        } else {
10489          lt_count--;
10490        }
10491      }
10492    }
10493  }
10494  if (lt_foo != "") { lt_freq[lt_foo]++; }
10495  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10496}'`
10497  # AWK program above erroneously prepends '/' to C:/dos/paths
10498  # for these hosts.
10499  case $host_os in
10500    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10501      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10502  esac
10503  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10504else
10505  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10506fi
10507library_names_spec=
10508libname_spec='lib$name'
10509soname_spec=
10510shrext_cmds=".so"
10511postinstall_cmds=
10512postuninstall_cmds=
10513finish_cmds=
10514finish_eval=
10515shlibpath_var=
10516shlibpath_overrides_runpath=unknown
10517version_type=none
10518dynamic_linker="$host_os ld.so"
10519sys_lib_dlsearch_path_spec="/lib /usr/lib"
10520need_lib_prefix=unknown
10521hardcode_into_libs=no
10522
10523# when you set need_version to no, make sure it does not cause -set_version
10524# flags to be left without arguments
10525need_version=unknown
10526
10527case $host_os in
10528aix3*)
10529  version_type=linux # correct to gnu/linux during the next big refactor
10530  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10531  shlibpath_var=LIBPATH
10532
10533  # AIX 3 has no versioning support, so we append a major version to the name.
10534  soname_spec='${libname}${release}${shared_ext}$major'
10535  ;;
10536
10537aix[4-9]*)
10538  version_type=linux # correct to gnu/linux during the next big refactor
10539  need_lib_prefix=no
10540  need_version=no
10541  hardcode_into_libs=yes
10542  if test "$host_cpu" = ia64; then
10543    # AIX 5 supports IA64
10544    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10545    shlibpath_var=LD_LIBRARY_PATH
10546  else
10547    # With GCC up to 2.95.x, collect2 would create an import file
10548    # for dependence libraries.  The import file would start with
10549    # the line `#! .'.  This would cause the generated library to
10550    # depend on `.', always an invalid library.  This was fixed in
10551    # development snapshots of GCC prior to 3.0.
10552    case $host_os in
10553      aix4 | aix4.[01] | aix4.[01].*)
10554      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10555	   echo ' yes '
10556	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10557	:
10558      else
10559	can_build_shared=no
10560      fi
10561      ;;
10562    esac
10563    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10564    # soname into executable. Probably we can add versioning support to
10565    # collect2, so additional links can be useful in future.
10566    if test "$aix_use_runtimelinking" = yes; then
10567      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10568      # instead of lib<name>.a to let people know that these are not
10569      # typical AIX shared libraries.
10570      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10571    else
10572      # We preserve .a as extension for shared libraries through AIX4.2
10573      # and later when we are not doing run time linking.
10574      library_names_spec='${libname}${release}.a $libname.a'
10575      soname_spec='${libname}${release}${shared_ext}$major'
10576    fi
10577    shlibpath_var=LIBPATH
10578  fi
10579  ;;
10580
10581amigaos*)
10582  case $host_cpu in
10583  powerpc)
10584    # Since July 2007 AmigaOS4 officially supports .so libraries.
10585    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10586    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10587    ;;
10588  m68k)
10589    library_names_spec='$libname.ixlibrary $libname.a'
10590    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10591    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10592    ;;
10593  esac
10594  ;;
10595
10596beos*)
10597  library_names_spec='${libname}${shared_ext}'
10598  dynamic_linker="$host_os ld.so"
10599  shlibpath_var=LIBRARY_PATH
10600  ;;
10601
10602bsdi[45]*)
10603  version_type=linux # correct to gnu/linux during the next big refactor
10604  need_version=no
10605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10606  soname_spec='${libname}${release}${shared_ext}$major'
10607  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10608  shlibpath_var=LD_LIBRARY_PATH
10609  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10610  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10611  # the default ld.so.conf also contains /usr/contrib/lib and
10612  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10613  # libtool to hard-code these into programs
10614  ;;
10615
10616cygwin* | mingw* | pw32* | cegcc*)
10617  version_type=windows
10618  shrext_cmds=".dll"
10619  need_version=no
10620  need_lib_prefix=no
10621
10622  case $GCC,$cc_basename in
10623  yes,*)
10624    # gcc
10625    library_names_spec='$libname.dll.a'
10626    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10627    postinstall_cmds='base_file=`basename \${file}`~
10628      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10629      dldir=$destdir/`dirname \$dlpath`~
10630      test -d \$dldir || mkdir -p \$dldir~
10631      $install_prog $dir/$dlname \$dldir/$dlname~
10632      chmod a+x \$dldir/$dlname~
10633      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10634        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10635      fi'
10636    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10637      dlpath=$dir/\$dldll~
10638       $RM \$dlpath'
10639    shlibpath_overrides_runpath=yes
10640
10641    case $host_os in
10642    cygwin*)
10643      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10644      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10645
10646      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10647      ;;
10648    mingw* | cegcc*)
10649      # MinGW DLLs use traditional 'lib' prefix
10650      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10651      ;;
10652    pw32*)
10653      # pw32 DLLs use 'pw' prefix rather than 'lib'
10654      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10655      ;;
10656    esac
10657    dynamic_linker='Win32 ld.exe'
10658    ;;
10659
10660  *,cl*)
10661    # Native MSVC
10662    libname_spec='$name'
10663    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10664    library_names_spec='${libname}.dll.lib'
10665
10666    case $build_os in
10667    mingw*)
10668      sys_lib_search_path_spec=
10669      lt_save_ifs=$IFS
10670      IFS=';'
10671      for lt_path in $LIB
10672      do
10673        IFS=$lt_save_ifs
10674        # Let DOS variable expansion print the short 8.3 style file name.
10675        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10676        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10677      done
10678      IFS=$lt_save_ifs
10679      # Convert to MSYS style.
10680      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10681      ;;
10682    cygwin*)
10683      # Convert to unix form, then to dos form, then back to unix form
10684      # but this time dos style (no spaces!) so that the unix form looks
10685      # like /cygdrive/c/PROGRA~1:/cygdr...
10686      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10687      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10688      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10689      ;;
10690    *)
10691      sys_lib_search_path_spec="$LIB"
10692      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10693        # It is most probably a Windows format PATH.
10694        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10695      else
10696        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10697      fi
10698      # FIXME: find the short name or the path components, as spaces are
10699      # common. (e.g. "Program Files" -> "PROGRA~1")
10700      ;;
10701    esac
10702
10703    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10704    postinstall_cmds='base_file=`basename \${file}`~
10705      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10706      dldir=$destdir/`dirname \$dlpath`~
10707      test -d \$dldir || mkdir -p \$dldir~
10708      $install_prog $dir/$dlname \$dldir/$dlname'
10709    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10710      dlpath=$dir/\$dldll~
10711       $RM \$dlpath'
10712    shlibpath_overrides_runpath=yes
10713    dynamic_linker='Win32 link.exe'
10714    ;;
10715
10716  *)
10717    # Assume MSVC wrapper
10718    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10719    dynamic_linker='Win32 ld.exe'
10720    ;;
10721  esac
10722  # FIXME: first we should search . and the directory the executable is in
10723  shlibpath_var=PATH
10724  ;;
10725
10726darwin* | rhapsody*)
10727  dynamic_linker="$host_os dyld"
10728  version_type=darwin
10729  need_lib_prefix=no
10730  need_version=no
10731  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10732  soname_spec='${libname}${release}${major}$shared_ext'
10733  shlibpath_overrides_runpath=yes
10734  shlibpath_var=DYLD_LIBRARY_PATH
10735  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10736
10737  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10738  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10739  ;;
10740
10741dgux*)
10742  version_type=linux # correct to gnu/linux during the next big refactor
10743  need_lib_prefix=no
10744  need_version=no
10745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10746  soname_spec='${libname}${release}${shared_ext}$major'
10747  shlibpath_var=LD_LIBRARY_PATH
10748  ;;
10749
10750freebsd* | dragonfly*)
10751  # DragonFly does not have aout.  When/if they implement a new
10752  # versioning mechanism, adjust this.
10753  if test -x /usr/bin/objformat; then
10754    objformat=`/usr/bin/objformat`
10755  else
10756    case $host_os in
10757    freebsd[23].*) objformat=aout ;;
10758    *) objformat=elf ;;
10759    esac
10760  fi
10761  version_type=freebsd-$objformat
10762  case $version_type in
10763    freebsd-elf*)
10764      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10765      need_version=no
10766      need_lib_prefix=no
10767      ;;
10768    freebsd-*)
10769      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10770      need_version=yes
10771      ;;
10772  esac
10773  shlibpath_var=LD_LIBRARY_PATH
10774  case $host_os in
10775  freebsd2.*)
10776    shlibpath_overrides_runpath=yes
10777    ;;
10778  freebsd3.[01]* | freebsdelf3.[01]*)
10779    shlibpath_overrides_runpath=yes
10780    hardcode_into_libs=yes
10781    ;;
10782  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10783  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10784    shlibpath_overrides_runpath=no
10785    hardcode_into_libs=yes
10786    ;;
10787  *) # from 4.6 on, and DragonFly
10788    shlibpath_overrides_runpath=yes
10789    hardcode_into_libs=yes
10790    ;;
10791  esac
10792  ;;
10793
10794gnu*)
10795  version_type=linux # correct to gnu/linux during the next big refactor
10796  need_lib_prefix=no
10797  need_version=no
10798  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10799  soname_spec='${libname}${release}${shared_ext}$major'
10800  shlibpath_var=LD_LIBRARY_PATH
10801  shlibpath_overrides_runpath=no
10802  hardcode_into_libs=yes
10803  ;;
10804
10805haiku*)
10806  version_type=linux # correct to gnu/linux during the next big refactor
10807  need_lib_prefix=no
10808  need_version=no
10809  dynamic_linker="$host_os runtime_loader"
10810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10811  soname_spec='${libname}${release}${shared_ext}$major'
10812  shlibpath_var=LIBRARY_PATH
10813  shlibpath_overrides_runpath=yes
10814  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10815  hardcode_into_libs=yes
10816  ;;
10817
10818hpux9* | hpux10* | hpux11*)
10819  # Give a soname corresponding to the major version so that dld.sl refuses to
10820  # link against other versions.
10821  version_type=sunos
10822  need_lib_prefix=no
10823  need_version=no
10824  case $host_cpu in
10825  ia64*)
10826    shrext_cmds='.so'
10827    hardcode_into_libs=yes
10828    dynamic_linker="$host_os dld.so"
10829    shlibpath_var=LD_LIBRARY_PATH
10830    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10831    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10832    soname_spec='${libname}${release}${shared_ext}$major'
10833    if test "X$HPUX_IA64_MODE" = X32; then
10834      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10835    else
10836      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10837    fi
10838    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10839    ;;
10840  hppa*64*)
10841    shrext_cmds='.sl'
10842    hardcode_into_libs=yes
10843    dynamic_linker="$host_os dld.sl"
10844    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10845    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10846    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10847    soname_spec='${libname}${release}${shared_ext}$major'
10848    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10849    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10850    ;;
10851  *)
10852    shrext_cmds='.sl'
10853    dynamic_linker="$host_os dld.sl"
10854    shlibpath_var=SHLIB_PATH
10855    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10856    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10857    soname_spec='${libname}${release}${shared_ext}$major'
10858    ;;
10859  esac
10860  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10861  postinstall_cmds='chmod 555 $lib'
10862  # or fails outright, so override atomically:
10863  install_override_mode=555
10864  ;;
10865
10866interix[3-9]*)
10867  version_type=linux # correct to gnu/linux during the next big refactor
10868  need_lib_prefix=no
10869  need_version=no
10870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10871  soname_spec='${libname}${release}${shared_ext}$major'
10872  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10873  shlibpath_var=LD_LIBRARY_PATH
10874  shlibpath_overrides_runpath=no
10875  hardcode_into_libs=yes
10876  ;;
10877
10878irix5* | irix6* | nonstopux*)
10879  case $host_os in
10880    nonstopux*) version_type=nonstopux ;;
10881    *)
10882	if test "$lt_cv_prog_gnu_ld" = yes; then
10883		version_type=linux # correct to gnu/linux during the next big refactor
10884	else
10885		version_type=irix
10886	fi ;;
10887  esac
10888  need_lib_prefix=no
10889  need_version=no
10890  soname_spec='${libname}${release}${shared_ext}$major'
10891  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10892  case $host_os in
10893  irix5* | nonstopux*)
10894    libsuff= shlibsuff=
10895    ;;
10896  *)
10897    case $LD in # libtool.m4 will add one of these switches to LD
10898    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10899      libsuff= shlibsuff= libmagic=32-bit;;
10900    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10901      libsuff=32 shlibsuff=N32 libmagic=N32;;
10902    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10903      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10904    *) libsuff= shlibsuff= libmagic=never-match;;
10905    esac
10906    ;;
10907  esac
10908  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10909  shlibpath_overrides_runpath=no
10910  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10911  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10912  hardcode_into_libs=yes
10913  ;;
10914
10915# No shared lib support for Linux oldld, aout, or coff.
10916linux*oldld* | linux*aout* | linux*coff*)
10917  dynamic_linker=no
10918  ;;
10919
10920# This must be glibc/ELF.
10921linux* | k*bsd*-gnu | kopensolaris*-gnu)
10922  version_type=linux # correct to gnu/linux during the next big refactor
10923  need_lib_prefix=no
10924  need_version=no
10925  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10926  soname_spec='${libname}${release}${shared_ext}$major'
10927  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10928  shlibpath_var=LD_LIBRARY_PATH
10929  shlibpath_overrides_runpath=no
10930
10931  # Some binutils ld are patched to set DT_RUNPATH
10932  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10933  $as_echo_n "(cached) " >&6
10934else
10935  lt_cv_shlibpath_overrides_runpath=no
10936    save_LDFLAGS=$LDFLAGS
10937    save_libdir=$libdir
10938    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10939	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10940    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941/* end confdefs.h.  */
10942
10943int
10944main ()
10945{
10946
10947  ;
10948  return 0;
10949}
10950_ACEOF
10951if ac_fn_c_try_link "$LINENO"; then :
10952  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10953  lt_cv_shlibpath_overrides_runpath=yes
10954fi
10955fi
10956rm -f core conftest.err conftest.$ac_objext \
10957    conftest$ac_exeext conftest.$ac_ext
10958    LDFLAGS=$save_LDFLAGS
10959    libdir=$save_libdir
10960
10961fi
10962
10963  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10964
10965  # This implies no fast_install, which is unacceptable.
10966  # Some rework will be needed to allow for fast_install
10967  # before this can be enabled.
10968  hardcode_into_libs=yes
10969
10970  # Append ld.so.conf contents to the search path
10971  if test -f /etc/ld.so.conf; then
10972    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' ' '`
10973    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10974  fi
10975
10976  # We used to test for /lib/ld.so.1 and disable shared libraries on
10977  # powerpc, because MkLinux only supported shared libraries with the
10978  # GNU dynamic linker.  Since this was broken with cross compilers,
10979  # most powerpc-linux boxes support dynamic linking these days and
10980  # people can always --disable-shared, the test was removed, and we
10981  # assume the GNU/Linux dynamic linker is in use.
10982  dynamic_linker='GNU/Linux ld.so'
10983  ;;
10984
10985netbsd*)
10986  version_type=sunos
10987  need_lib_prefix=no
10988  need_version=no
10989  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10990    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10991    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10992    dynamic_linker='NetBSD (a.out) ld.so'
10993  else
10994    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10995    soname_spec='${libname}${release}${shared_ext}$major'
10996    dynamic_linker='NetBSD ld.elf_so'
10997  fi
10998  shlibpath_var=LD_LIBRARY_PATH
10999  shlibpath_overrides_runpath=yes
11000  hardcode_into_libs=yes
11001  ;;
11002
11003newsos6)
11004  version_type=linux # correct to gnu/linux during the next big refactor
11005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006  shlibpath_var=LD_LIBRARY_PATH
11007  shlibpath_overrides_runpath=yes
11008  ;;
11009
11010*nto* | *qnx*)
11011  version_type=qnx
11012  need_lib_prefix=no
11013  need_version=no
11014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11015  soname_spec='${libname}${release}${shared_ext}$major'
11016  shlibpath_var=LD_LIBRARY_PATH
11017  shlibpath_overrides_runpath=no
11018  hardcode_into_libs=yes
11019  dynamic_linker='ldqnx.so'
11020  ;;
11021
11022openbsd*)
11023  version_type=sunos
11024  sys_lib_dlsearch_path_spec="/usr/lib"
11025  need_lib_prefix=no
11026  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11027  case $host_os in
11028    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11029    *)				need_version=no  ;;
11030  esac
11031  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11032  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11033  shlibpath_var=LD_LIBRARY_PATH
11034  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11035    case $host_os in
11036      openbsd2.[89] | openbsd2.[89].*)
11037	shlibpath_overrides_runpath=no
11038	;;
11039      *)
11040	shlibpath_overrides_runpath=yes
11041	;;
11042      esac
11043  else
11044    shlibpath_overrides_runpath=yes
11045  fi
11046  ;;
11047
11048os2*)
11049  libname_spec='$name'
11050  shrext_cmds=".dll"
11051  need_lib_prefix=no
11052  library_names_spec='$libname${shared_ext} $libname.a'
11053  dynamic_linker='OS/2 ld.exe'
11054  shlibpath_var=LIBPATH
11055  ;;
11056
11057osf3* | osf4* | osf5*)
11058  version_type=osf
11059  need_lib_prefix=no
11060  need_version=no
11061  soname_spec='${libname}${release}${shared_ext}$major'
11062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063  shlibpath_var=LD_LIBRARY_PATH
11064  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11065  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11066  ;;
11067
11068rdos*)
11069  dynamic_linker=no
11070  ;;
11071
11072solaris*)
11073  version_type=linux # correct to gnu/linux during the next big refactor
11074  need_lib_prefix=no
11075  need_version=no
11076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11077  soname_spec='${libname}${release}${shared_ext}$major'
11078  shlibpath_var=LD_LIBRARY_PATH
11079  shlibpath_overrides_runpath=yes
11080  hardcode_into_libs=yes
11081  # ldd complains unless libraries are executable
11082  postinstall_cmds='chmod +x $lib'
11083  ;;
11084
11085sunos4*)
11086  version_type=sunos
11087  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11088  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11089  shlibpath_var=LD_LIBRARY_PATH
11090  shlibpath_overrides_runpath=yes
11091  if test "$with_gnu_ld" = yes; then
11092    need_lib_prefix=no
11093  fi
11094  need_version=yes
11095  ;;
11096
11097sysv4 | sysv4.3*)
11098  version_type=linux # correct to gnu/linux during the next big refactor
11099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11100  soname_spec='${libname}${release}${shared_ext}$major'
11101  shlibpath_var=LD_LIBRARY_PATH
11102  case $host_vendor in
11103    sni)
11104      shlibpath_overrides_runpath=no
11105      need_lib_prefix=no
11106      runpath_var=LD_RUN_PATH
11107      ;;
11108    siemens)
11109      need_lib_prefix=no
11110      ;;
11111    motorola)
11112      need_lib_prefix=no
11113      need_version=no
11114      shlibpath_overrides_runpath=no
11115      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11116      ;;
11117  esac
11118  ;;
11119
11120sysv4*MP*)
11121  if test -d /usr/nec ;then
11122    version_type=linux # correct to gnu/linux during the next big refactor
11123    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11124    soname_spec='$libname${shared_ext}.$major'
11125    shlibpath_var=LD_LIBRARY_PATH
11126  fi
11127  ;;
11128
11129sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11130  version_type=freebsd-elf
11131  need_lib_prefix=no
11132  need_version=no
11133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11134  soname_spec='${libname}${release}${shared_ext}$major'
11135  shlibpath_var=LD_LIBRARY_PATH
11136  shlibpath_overrides_runpath=yes
11137  hardcode_into_libs=yes
11138  if test "$with_gnu_ld" = yes; then
11139    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11140  else
11141    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11142    case $host_os in
11143      sco3.2v5*)
11144        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11145	;;
11146    esac
11147  fi
11148  sys_lib_dlsearch_path_spec='/usr/lib'
11149  ;;
11150
11151tpf*)
11152  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11153  version_type=linux # correct to gnu/linux during the next big refactor
11154  need_lib_prefix=no
11155  need_version=no
11156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157  shlibpath_var=LD_LIBRARY_PATH
11158  shlibpath_overrides_runpath=no
11159  hardcode_into_libs=yes
11160  ;;
11161
11162uts4*)
11163  version_type=linux # correct to gnu/linux during the next big refactor
11164  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165  soname_spec='${libname}${release}${shared_ext}$major'
11166  shlibpath_var=LD_LIBRARY_PATH
11167  ;;
11168
11169*)
11170  dynamic_linker=no
11171  ;;
11172esac
11173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11174$as_echo "$dynamic_linker" >&6; }
11175test "$dynamic_linker" = no && can_build_shared=no
11176
11177variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11178if test "$GCC" = yes; then
11179  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11180fi
11181
11182if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11183  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11184fi
11185if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11186  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11187fi
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11281$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11282hardcode_action=
11283if test -n "$hardcode_libdir_flag_spec" ||
11284   test -n "$runpath_var" ||
11285   test "X$hardcode_automatic" = "Xyes" ; then
11286
11287  # We can hardcode non-existent directories.
11288  if test "$hardcode_direct" != no &&
11289     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11290     # have to relink, otherwise we might link with an installed library
11291     # when we should be linking with a yet-to-be-installed one
11292     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11293     test "$hardcode_minus_L" != no; then
11294    # Linking always hardcodes the temporary library directory.
11295    hardcode_action=relink
11296  else
11297    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11298    hardcode_action=immediate
11299  fi
11300else
11301  # We cannot hardcode anything, or else we can only hardcode existing
11302  # directories.
11303  hardcode_action=unsupported
11304fi
11305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11306$as_echo "$hardcode_action" >&6; }
11307
11308if test "$hardcode_action" = relink ||
11309   test "$inherit_rpath" = yes; then
11310  # Fast installation is not supported
11311  enable_fast_install=no
11312elif test "$shlibpath_overrides_runpath" = yes ||
11313     test "$enable_shared" = no; then
11314  # Fast installation is not necessary
11315  enable_fast_install=needless
11316fi
11317
11318
11319
11320
11321
11322
11323  if test "x$enable_dlopen" != xyes; then
11324  enable_dlopen=unknown
11325  enable_dlopen_self=unknown
11326  enable_dlopen_self_static=unknown
11327else
11328  lt_cv_dlopen=no
11329  lt_cv_dlopen_libs=
11330
11331  case $host_os in
11332  beos*)
11333    lt_cv_dlopen="load_add_on"
11334    lt_cv_dlopen_libs=
11335    lt_cv_dlopen_self=yes
11336    ;;
11337
11338  mingw* | pw32* | cegcc*)
11339    lt_cv_dlopen="LoadLibrary"
11340    lt_cv_dlopen_libs=
11341    ;;
11342
11343  cygwin*)
11344    lt_cv_dlopen="dlopen"
11345    lt_cv_dlopen_libs=
11346    ;;
11347
11348  darwin*)
11349  # if libdl is installed we need to link against it
11350    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11351$as_echo_n "checking for dlopen in -ldl... " >&6; }
11352if ${ac_cv_lib_dl_dlopen+:} false; then :
11353  $as_echo_n "(cached) " >&6
11354else
11355  ac_check_lib_save_LIBS=$LIBS
11356LIBS="-ldl  $LIBS"
11357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358/* end confdefs.h.  */
11359
11360/* Override any GCC internal prototype to avoid an error.
11361   Use char because int might match the return type of a GCC
11362   builtin and then its argument prototype would still apply.  */
11363#ifdef __cplusplus
11364extern "C"
11365#endif
11366char dlopen ();
11367int
11368main ()
11369{
11370return dlopen ();
11371  ;
11372  return 0;
11373}
11374_ACEOF
11375if ac_fn_c_try_link "$LINENO"; then :
11376  ac_cv_lib_dl_dlopen=yes
11377else
11378  ac_cv_lib_dl_dlopen=no
11379fi
11380rm -f core conftest.err conftest.$ac_objext \
11381    conftest$ac_exeext conftest.$ac_ext
11382LIBS=$ac_check_lib_save_LIBS
11383fi
11384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11385$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11386if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11387  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11388else
11389
11390    lt_cv_dlopen="dyld"
11391    lt_cv_dlopen_libs=
11392    lt_cv_dlopen_self=yes
11393
11394fi
11395
11396    ;;
11397
11398  *)
11399    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11400if test "x$ac_cv_func_shl_load" = xyes; then :
11401  lt_cv_dlopen="shl_load"
11402else
11403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11404$as_echo_n "checking for shl_load in -ldld... " >&6; }
11405if ${ac_cv_lib_dld_shl_load+:} false; then :
11406  $as_echo_n "(cached) " >&6
11407else
11408  ac_check_lib_save_LIBS=$LIBS
11409LIBS="-ldld  $LIBS"
11410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411/* end confdefs.h.  */
11412
11413/* Override any GCC internal prototype to avoid an error.
11414   Use char because int might match the return type of a GCC
11415   builtin and then its argument prototype would still apply.  */
11416#ifdef __cplusplus
11417extern "C"
11418#endif
11419char shl_load ();
11420int
11421main ()
11422{
11423return shl_load ();
11424  ;
11425  return 0;
11426}
11427_ACEOF
11428if ac_fn_c_try_link "$LINENO"; then :
11429  ac_cv_lib_dld_shl_load=yes
11430else
11431  ac_cv_lib_dld_shl_load=no
11432fi
11433rm -f core conftest.err conftest.$ac_objext \
11434    conftest$ac_exeext conftest.$ac_ext
11435LIBS=$ac_check_lib_save_LIBS
11436fi
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11438$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11439if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11440  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11441else
11442  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11443if test "x$ac_cv_func_dlopen" = xyes; then :
11444  lt_cv_dlopen="dlopen"
11445else
11446  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11447$as_echo_n "checking for dlopen in -ldl... " >&6; }
11448if ${ac_cv_lib_dl_dlopen+:} false; then :
11449  $as_echo_n "(cached) " >&6
11450else
11451  ac_check_lib_save_LIBS=$LIBS
11452LIBS="-ldl  $LIBS"
11453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454/* end confdefs.h.  */
11455
11456/* Override any GCC internal prototype to avoid an error.
11457   Use char because int might match the return type of a GCC
11458   builtin and then its argument prototype would still apply.  */
11459#ifdef __cplusplus
11460extern "C"
11461#endif
11462char dlopen ();
11463int
11464main ()
11465{
11466return dlopen ();
11467  ;
11468  return 0;
11469}
11470_ACEOF
11471if ac_fn_c_try_link "$LINENO"; then :
11472  ac_cv_lib_dl_dlopen=yes
11473else
11474  ac_cv_lib_dl_dlopen=no
11475fi
11476rm -f core conftest.err conftest.$ac_objext \
11477    conftest$ac_exeext conftest.$ac_ext
11478LIBS=$ac_check_lib_save_LIBS
11479fi
11480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11481$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11482if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11483  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11484else
11485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11486$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11487if ${ac_cv_lib_svld_dlopen+:} false; then :
11488  $as_echo_n "(cached) " >&6
11489else
11490  ac_check_lib_save_LIBS=$LIBS
11491LIBS="-lsvld  $LIBS"
11492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11493/* end confdefs.h.  */
11494
11495/* Override any GCC internal prototype to avoid an error.
11496   Use char because int might match the return type of a GCC
11497   builtin and then its argument prototype would still apply.  */
11498#ifdef __cplusplus
11499extern "C"
11500#endif
11501char dlopen ();
11502int
11503main ()
11504{
11505return dlopen ();
11506  ;
11507  return 0;
11508}
11509_ACEOF
11510if ac_fn_c_try_link "$LINENO"; then :
11511  ac_cv_lib_svld_dlopen=yes
11512else
11513  ac_cv_lib_svld_dlopen=no
11514fi
11515rm -f core conftest.err conftest.$ac_objext \
11516    conftest$ac_exeext conftest.$ac_ext
11517LIBS=$ac_check_lib_save_LIBS
11518fi
11519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11520$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11521if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11522  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11523else
11524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11525$as_echo_n "checking for dld_link in -ldld... " >&6; }
11526if ${ac_cv_lib_dld_dld_link+:} false; then :
11527  $as_echo_n "(cached) " >&6
11528else
11529  ac_check_lib_save_LIBS=$LIBS
11530LIBS="-ldld  $LIBS"
11531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11532/* end confdefs.h.  */
11533
11534/* Override any GCC internal prototype to avoid an error.
11535   Use char because int might match the return type of a GCC
11536   builtin and then its argument prototype would still apply.  */
11537#ifdef __cplusplus
11538extern "C"
11539#endif
11540char dld_link ();
11541int
11542main ()
11543{
11544return dld_link ();
11545  ;
11546  return 0;
11547}
11548_ACEOF
11549if ac_fn_c_try_link "$LINENO"; then :
11550  ac_cv_lib_dld_dld_link=yes
11551else
11552  ac_cv_lib_dld_dld_link=no
11553fi
11554rm -f core conftest.err conftest.$ac_objext \
11555    conftest$ac_exeext conftest.$ac_ext
11556LIBS=$ac_check_lib_save_LIBS
11557fi
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11559$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11560if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11561  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11562fi
11563
11564
11565fi
11566
11567
11568fi
11569
11570
11571fi
11572
11573
11574fi
11575
11576
11577fi
11578
11579    ;;
11580  esac
11581
11582  if test "x$lt_cv_dlopen" != xno; then
11583    enable_dlopen=yes
11584  else
11585    enable_dlopen=no
11586  fi
11587
11588  case $lt_cv_dlopen in
11589  dlopen)
11590    save_CPPFLAGS="$CPPFLAGS"
11591    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11592
11593    save_LDFLAGS="$LDFLAGS"
11594    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11595
11596    save_LIBS="$LIBS"
11597    LIBS="$lt_cv_dlopen_libs $LIBS"
11598
11599    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11600$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11601if ${lt_cv_dlopen_self+:} false; then :
11602  $as_echo_n "(cached) " >&6
11603else
11604  	  if test "$cross_compiling" = yes; then :
11605  lt_cv_dlopen_self=cross
11606else
11607  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11608  lt_status=$lt_dlunknown
11609  cat > conftest.$ac_ext <<_LT_EOF
11610#line $LINENO "configure"
11611#include "confdefs.h"
11612
11613#if HAVE_DLFCN_H
11614#include <dlfcn.h>
11615#endif
11616
11617#include <stdio.h>
11618
11619#ifdef RTLD_GLOBAL
11620#  define LT_DLGLOBAL		RTLD_GLOBAL
11621#else
11622#  ifdef DL_GLOBAL
11623#    define LT_DLGLOBAL		DL_GLOBAL
11624#  else
11625#    define LT_DLGLOBAL		0
11626#  endif
11627#endif
11628
11629/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11630   find out it does not work in some platform. */
11631#ifndef LT_DLLAZY_OR_NOW
11632#  ifdef RTLD_LAZY
11633#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11634#  else
11635#    ifdef DL_LAZY
11636#      define LT_DLLAZY_OR_NOW		DL_LAZY
11637#    else
11638#      ifdef RTLD_NOW
11639#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11640#      else
11641#        ifdef DL_NOW
11642#          define LT_DLLAZY_OR_NOW	DL_NOW
11643#        else
11644#          define LT_DLLAZY_OR_NOW	0
11645#        endif
11646#      endif
11647#    endif
11648#  endif
11649#endif
11650
11651/* When -fvisbility=hidden is used, assume the code has been annotated
11652   correspondingly for the symbols needed.  */
11653#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11654int fnord () __attribute__((visibility("default")));
11655#endif
11656
11657int fnord () { return 42; }
11658int main ()
11659{
11660  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11661  int status = $lt_dlunknown;
11662
11663  if (self)
11664    {
11665      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11666      else
11667        {
11668	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11669          else puts (dlerror ());
11670	}
11671      /* dlclose (self); */
11672    }
11673  else
11674    puts (dlerror ());
11675
11676  return status;
11677}
11678_LT_EOF
11679  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11680  (eval $ac_link) 2>&5
11681  ac_status=$?
11682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11683  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11684    (./conftest; exit; ) >&5 2>/dev/null
11685    lt_status=$?
11686    case x$lt_status in
11687      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11688      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11689      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11690    esac
11691  else :
11692    # compilation failed
11693    lt_cv_dlopen_self=no
11694  fi
11695fi
11696rm -fr conftest*
11697
11698
11699fi
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11701$as_echo "$lt_cv_dlopen_self" >&6; }
11702
11703    if test "x$lt_cv_dlopen_self" = xyes; then
11704      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11705      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11706$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11707if ${lt_cv_dlopen_self_static+:} false; then :
11708  $as_echo_n "(cached) " >&6
11709else
11710  	  if test "$cross_compiling" = yes; then :
11711  lt_cv_dlopen_self_static=cross
11712else
11713  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11714  lt_status=$lt_dlunknown
11715  cat > conftest.$ac_ext <<_LT_EOF
11716#line $LINENO "configure"
11717#include "confdefs.h"
11718
11719#if HAVE_DLFCN_H
11720#include <dlfcn.h>
11721#endif
11722
11723#include <stdio.h>
11724
11725#ifdef RTLD_GLOBAL
11726#  define LT_DLGLOBAL		RTLD_GLOBAL
11727#else
11728#  ifdef DL_GLOBAL
11729#    define LT_DLGLOBAL		DL_GLOBAL
11730#  else
11731#    define LT_DLGLOBAL		0
11732#  endif
11733#endif
11734
11735/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11736   find out it does not work in some platform. */
11737#ifndef LT_DLLAZY_OR_NOW
11738#  ifdef RTLD_LAZY
11739#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11740#  else
11741#    ifdef DL_LAZY
11742#      define LT_DLLAZY_OR_NOW		DL_LAZY
11743#    else
11744#      ifdef RTLD_NOW
11745#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11746#      else
11747#        ifdef DL_NOW
11748#          define LT_DLLAZY_OR_NOW	DL_NOW
11749#        else
11750#          define LT_DLLAZY_OR_NOW	0
11751#        endif
11752#      endif
11753#    endif
11754#  endif
11755#endif
11756
11757/* When -fvisbility=hidden is used, assume the code has been annotated
11758   correspondingly for the symbols needed.  */
11759#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11760int fnord () __attribute__((visibility("default")));
11761#endif
11762
11763int fnord () { return 42; }
11764int main ()
11765{
11766  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11767  int status = $lt_dlunknown;
11768
11769  if (self)
11770    {
11771      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11772      else
11773        {
11774	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11775          else puts (dlerror ());
11776	}
11777      /* dlclose (self); */
11778    }
11779  else
11780    puts (dlerror ());
11781
11782  return status;
11783}
11784_LT_EOF
11785  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11786  (eval $ac_link) 2>&5
11787  ac_status=$?
11788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11789  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11790    (./conftest; exit; ) >&5 2>/dev/null
11791    lt_status=$?
11792    case x$lt_status in
11793      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11794      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11795      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11796    esac
11797  else :
11798    # compilation failed
11799    lt_cv_dlopen_self_static=no
11800  fi
11801fi
11802rm -fr conftest*
11803
11804
11805fi
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11807$as_echo "$lt_cv_dlopen_self_static" >&6; }
11808    fi
11809
11810    CPPFLAGS="$save_CPPFLAGS"
11811    LDFLAGS="$save_LDFLAGS"
11812    LIBS="$save_LIBS"
11813    ;;
11814  esac
11815
11816  case $lt_cv_dlopen_self in
11817  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11818  *) enable_dlopen_self=unknown ;;
11819  esac
11820
11821  case $lt_cv_dlopen_self_static in
11822  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11823  *) enable_dlopen_self_static=unknown ;;
11824  esac
11825fi
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843striplib=
11844old_striplib=
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11846$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11847if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11848  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11849  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11851$as_echo "yes" >&6; }
11852else
11853# FIXME - insert some real tests, host_os isn't really good enough
11854  case $host_os in
11855  darwin*)
11856    if test -n "$STRIP" ; then
11857      striplib="$STRIP -x"
11858      old_striplib="$STRIP -S"
11859      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11860$as_echo "yes" >&6; }
11861    else
11862      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863$as_echo "no" >&6; }
11864    fi
11865    ;;
11866  *)
11867    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868$as_echo "no" >&6; }
11869    ;;
11870  esac
11871fi
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884  # Report which library types will actually be built
11885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11886$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11888$as_echo "$can_build_shared" >&6; }
11889
11890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11891$as_echo_n "checking whether to build shared libraries... " >&6; }
11892  test "$can_build_shared" = "no" && enable_shared=no
11893
11894  # On AIX, shared libraries and static libraries use the same namespace, and
11895  # are all built from PIC.
11896  case $host_os in
11897  aix3*)
11898    test "$enable_shared" = yes && enable_static=no
11899    if test -n "$RANLIB"; then
11900      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11901      postinstall_cmds='$RANLIB $lib'
11902    fi
11903    ;;
11904
11905  aix[4-9]*)
11906    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11907      test "$enable_shared" = yes && enable_static=no
11908    fi
11909    ;;
11910  esac
11911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11912$as_echo "$enable_shared" >&6; }
11913
11914  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11915$as_echo_n "checking whether to build static libraries... " >&6; }
11916  # Make sure either enable_shared or enable_static is yes.
11917  test "$enable_shared" = yes || enable_static=yes
11918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11919$as_echo "$enable_static" >&6; }
11920
11921
11922
11923
11924fi
11925ac_ext=c
11926ac_cpp='$CPP $CPPFLAGS'
11927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11929ac_compiler_gnu=$ac_cv_c_compiler_gnu
11930
11931CC="$lt_save_CC"
11932
11933      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11934    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11935    (test "X$CXX" != "Xg++"))) ; then
11936  ac_ext=cpp
11937ac_cpp='$CXXCPP $CPPFLAGS'
11938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11942$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11943if test -z "$CXXCPP"; then
11944  if ${ac_cv_prog_CXXCPP+:} false; then :
11945  $as_echo_n "(cached) " >&6
11946else
11947      # Double quotes because CXXCPP needs to be expanded
11948    for CXXCPP in "$CXX -E" "/lib/cpp"
11949    do
11950      ac_preproc_ok=false
11951for ac_cxx_preproc_warn_flag in '' yes
11952do
11953  # Use a header file that comes with gcc, so configuring glibc
11954  # with a fresh cross-compiler works.
11955  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11956  # <limits.h> exists even on freestanding compilers.
11957  # On the NeXT, cc -E runs the code through the compiler's parser,
11958  # not just through cpp. "Syntax error" is here to catch this case.
11959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11960/* end confdefs.h.  */
11961#ifdef __STDC__
11962# include <limits.h>
11963#else
11964# include <assert.h>
11965#endif
11966		     Syntax error
11967_ACEOF
11968if ac_fn_cxx_try_cpp "$LINENO"; then :
11969
11970else
11971  # Broken: fails on valid input.
11972continue
11973fi
11974rm -f conftest.err conftest.i conftest.$ac_ext
11975
11976  # OK, works on sane cases.  Now check whether nonexistent headers
11977  # can be detected and how.
11978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979/* end confdefs.h.  */
11980#include <ac_nonexistent.h>
11981_ACEOF
11982if ac_fn_cxx_try_cpp "$LINENO"; then :
11983  # Broken: success on invalid input.
11984continue
11985else
11986  # Passes both tests.
11987ac_preproc_ok=:
11988break
11989fi
11990rm -f conftest.err conftest.i conftest.$ac_ext
11991
11992done
11993# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11994rm -f conftest.i conftest.err conftest.$ac_ext
11995if $ac_preproc_ok; then :
11996  break
11997fi
11998
11999    done
12000    ac_cv_prog_CXXCPP=$CXXCPP
12001
12002fi
12003  CXXCPP=$ac_cv_prog_CXXCPP
12004else
12005  ac_cv_prog_CXXCPP=$CXXCPP
12006fi
12007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12008$as_echo "$CXXCPP" >&6; }
12009ac_preproc_ok=false
12010for ac_cxx_preproc_warn_flag in '' yes
12011do
12012  # Use a header file that comes with gcc, so configuring glibc
12013  # with a fresh cross-compiler works.
12014  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12015  # <limits.h> exists even on freestanding compilers.
12016  # On the NeXT, cc -E runs the code through the compiler's parser,
12017  # not just through cpp. "Syntax error" is here to catch this case.
12018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019/* end confdefs.h.  */
12020#ifdef __STDC__
12021# include <limits.h>
12022#else
12023# include <assert.h>
12024#endif
12025		     Syntax error
12026_ACEOF
12027if ac_fn_cxx_try_cpp "$LINENO"; then :
12028
12029else
12030  # Broken: fails on valid input.
12031continue
12032fi
12033rm -f conftest.err conftest.i conftest.$ac_ext
12034
12035  # OK, works on sane cases.  Now check whether nonexistent headers
12036  # can be detected and how.
12037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038/* end confdefs.h.  */
12039#include <ac_nonexistent.h>
12040_ACEOF
12041if ac_fn_cxx_try_cpp "$LINENO"; then :
12042  # Broken: success on invalid input.
12043continue
12044else
12045  # Passes both tests.
12046ac_preproc_ok=:
12047break
12048fi
12049rm -f conftest.err conftest.i conftest.$ac_ext
12050
12051done
12052# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12053rm -f conftest.i conftest.err conftest.$ac_ext
12054if $ac_preproc_ok; then :
12055
12056else
12057  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12059as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12060See \`config.log' for more details" "$LINENO" 5; }
12061fi
12062
12063ac_ext=c
12064ac_cpp='$CPP $CPPFLAGS'
12065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12067ac_compiler_gnu=$ac_cv_c_compiler_gnu
12068
12069else
12070  _lt_caught_CXX_error=yes
12071fi
12072
12073ac_ext=cpp
12074ac_cpp='$CXXCPP $CPPFLAGS'
12075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12078
12079archive_cmds_need_lc_CXX=no
12080allow_undefined_flag_CXX=
12081always_export_symbols_CXX=no
12082archive_expsym_cmds_CXX=
12083compiler_needs_object_CXX=no
12084export_dynamic_flag_spec_CXX=
12085hardcode_direct_CXX=no
12086hardcode_direct_absolute_CXX=no
12087hardcode_libdir_flag_spec_CXX=
12088hardcode_libdir_separator_CXX=
12089hardcode_minus_L_CXX=no
12090hardcode_shlibpath_var_CXX=unsupported
12091hardcode_automatic_CXX=no
12092inherit_rpath_CXX=no
12093module_cmds_CXX=
12094module_expsym_cmds_CXX=
12095link_all_deplibs_CXX=unknown
12096old_archive_cmds_CXX=$old_archive_cmds
12097reload_flag_CXX=$reload_flag
12098reload_cmds_CXX=$reload_cmds
12099no_undefined_flag_CXX=
12100whole_archive_flag_spec_CXX=
12101enable_shared_with_static_runtimes_CXX=no
12102
12103# Source file extension for C++ test sources.
12104ac_ext=cpp
12105
12106# Object file extension for compiled C++ test sources.
12107objext=o
12108objext_CXX=$objext
12109
12110# No sense in running all these tests if we already determined that
12111# the CXX compiler isn't working.  Some variables (like enable_shared)
12112# are currently assumed to apply to all compilers on this platform,
12113# and will be corrupted by setting them based on a non-working compiler.
12114if test "$_lt_caught_CXX_error" != yes; then
12115  # Code to be used in simple compile tests
12116  lt_simple_compile_test_code="int some_variable = 0;"
12117
12118  # Code to be used in simple link tests
12119  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12120
12121  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12122
12123
12124
12125
12126
12127
12128# If no C compiler was specified, use CC.
12129LTCC=${LTCC-"$CC"}
12130
12131# If no C compiler flags were specified, use CFLAGS.
12132LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12133
12134# Allow CC to be a program name with arguments.
12135compiler=$CC
12136
12137
12138  # save warnings/boilerplate of simple test code
12139  ac_outfile=conftest.$ac_objext
12140echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12141eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12142_lt_compiler_boilerplate=`cat conftest.err`
12143$RM conftest*
12144
12145  ac_outfile=conftest.$ac_objext
12146echo "$lt_simple_link_test_code" >conftest.$ac_ext
12147eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12148_lt_linker_boilerplate=`cat conftest.err`
12149$RM -r conftest*
12150
12151
12152  # Allow CC to be a program name with arguments.
12153  lt_save_CC=$CC
12154  lt_save_CFLAGS=$CFLAGS
12155  lt_save_LD=$LD
12156  lt_save_GCC=$GCC
12157  GCC=$GXX
12158  lt_save_with_gnu_ld=$with_gnu_ld
12159  lt_save_path_LD=$lt_cv_path_LD
12160  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12161    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12162  else
12163    $as_unset lt_cv_prog_gnu_ld
12164  fi
12165  if test -n "${lt_cv_path_LDCXX+set}"; then
12166    lt_cv_path_LD=$lt_cv_path_LDCXX
12167  else
12168    $as_unset lt_cv_path_LD
12169  fi
12170  test -z "${LDCXX+set}" || LD=$LDCXX
12171  CC=${CXX-"c++"}
12172  CFLAGS=$CXXFLAGS
12173  compiler=$CC
12174  compiler_CXX=$CC
12175  for cc_temp in $compiler""; do
12176  case $cc_temp in
12177    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12178    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12179    \-*) ;;
12180    *) break;;
12181  esac
12182done
12183cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12184
12185
12186  if test -n "$compiler"; then
12187    # We don't want -fno-exception when compiling C++ code, so set the
12188    # no_builtin_flag separately
12189    if test "$GXX" = yes; then
12190      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12191    else
12192      lt_prog_compiler_no_builtin_flag_CXX=
12193    fi
12194
12195    if test "$GXX" = yes; then
12196      # Set up default GNU C++ configuration
12197
12198
12199
12200# Check whether --with-gnu-ld was given.
12201if test "${with_gnu_ld+set}" = set; then :
12202  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12203else
12204  with_gnu_ld=no
12205fi
12206
12207ac_prog=ld
12208if test "$GCC" = yes; then
12209  # Check if gcc -print-prog-name=ld gives a path.
12210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12211$as_echo_n "checking for ld used by $CC... " >&6; }
12212  case $host in
12213  *-*-mingw*)
12214    # gcc leaves a trailing carriage return which upsets mingw
12215    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12216  *)
12217    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12218  esac
12219  case $ac_prog in
12220    # Accept absolute paths.
12221    [\\/]* | ?:[\\/]*)
12222      re_direlt='/[^/][^/]*/\.\./'
12223      # Canonicalize the pathname of ld
12224      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12225      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12226	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12227      done
12228      test -z "$LD" && LD="$ac_prog"
12229      ;;
12230  "")
12231    # If it fails, then pretend we aren't using GCC.
12232    ac_prog=ld
12233    ;;
12234  *)
12235    # If it is relative, then search for the first ld in PATH.
12236    with_gnu_ld=unknown
12237    ;;
12238  esac
12239elif test "$with_gnu_ld" = yes; then
12240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12241$as_echo_n "checking for GNU ld... " >&6; }
12242else
12243  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12244$as_echo_n "checking for non-GNU ld... " >&6; }
12245fi
12246if ${lt_cv_path_LD+:} false; then :
12247  $as_echo_n "(cached) " >&6
12248else
12249  if test -z "$LD"; then
12250  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12251  for ac_dir in $PATH; do
12252    IFS="$lt_save_ifs"
12253    test -z "$ac_dir" && ac_dir=.
12254    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12255      lt_cv_path_LD="$ac_dir/$ac_prog"
12256      # Check to see if the program is GNU ld.  I'd rather use --version,
12257      # but apparently some variants of GNU ld only accept -v.
12258      # Break only if it was the GNU/non-GNU ld that we prefer.
12259      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12260      *GNU* | *'with BFD'*)
12261	test "$with_gnu_ld" != no && break
12262	;;
12263      *)
12264	test "$with_gnu_ld" != yes && break
12265	;;
12266      esac
12267    fi
12268  done
12269  IFS="$lt_save_ifs"
12270else
12271  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12272fi
12273fi
12274
12275LD="$lt_cv_path_LD"
12276if test -n "$LD"; then
12277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12278$as_echo "$LD" >&6; }
12279else
12280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281$as_echo "no" >&6; }
12282fi
12283test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12285$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12286if ${lt_cv_prog_gnu_ld+:} false; then :
12287  $as_echo_n "(cached) " >&6
12288else
12289  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12290case `$LD -v 2>&1 </dev/null` in
12291*GNU* | *'with BFD'*)
12292  lt_cv_prog_gnu_ld=yes
12293  ;;
12294*)
12295  lt_cv_prog_gnu_ld=no
12296  ;;
12297esac
12298fi
12299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12300$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12301with_gnu_ld=$lt_cv_prog_gnu_ld
12302
12303
12304
12305
12306
12307
12308
12309      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12310      # archiving commands below assume that GNU ld is being used.
12311      if test "$with_gnu_ld" = yes; then
12312        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12313        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'
12314
12315        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12316        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12317
12318        # If archive_cmds runs LD, not CC, wlarc should be empty
12319        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12320        #     investigate it a little bit more. (MM)
12321        wlarc='${wl}'
12322
12323        # ancient GNU ld didn't support --whole-archive et. al.
12324        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12325	  $GREP 'no-whole-archive' > /dev/null; then
12326          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12327        else
12328          whole_archive_flag_spec_CXX=
12329        fi
12330      else
12331        with_gnu_ld=no
12332        wlarc=
12333
12334        # A generic and very simple default shared library creation
12335        # command for GNU C++ for the case where it uses the native
12336        # linker, instead of GNU ld.  If possible, this setting should
12337        # overridden to take advantage of the native linker features on
12338        # the platform it is being used on.
12339        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12340      fi
12341
12342      # Commands to make compiler produce verbose output that lists
12343      # what "hidden" libraries, object files and flags are used when
12344      # linking a shared library.
12345      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12346
12347    else
12348      GXX=no
12349      with_gnu_ld=no
12350      wlarc=
12351    fi
12352
12353    # PORTME: fill in a description of your system's C++ link characteristics
12354    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12355$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12356    ld_shlibs_CXX=yes
12357    case $host_os in
12358      aix3*)
12359        # FIXME: insert proper C++ library support
12360        ld_shlibs_CXX=no
12361        ;;
12362      aix[4-9]*)
12363        if test "$host_cpu" = ia64; then
12364          # On IA64, the linker does run time linking by default, so we don't
12365          # have to do anything special.
12366          aix_use_runtimelinking=no
12367          exp_sym_flag='-Bexport'
12368          no_entry_flag=""
12369        else
12370          aix_use_runtimelinking=no
12371
12372          # Test if we are trying to use run time linking or normal
12373          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12374          # need to do runtime linking.
12375          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12376	    for ld_flag in $LDFLAGS; do
12377	      case $ld_flag in
12378	      *-brtl*)
12379	        aix_use_runtimelinking=yes
12380	        break
12381	        ;;
12382	      esac
12383	    done
12384	    ;;
12385          esac
12386
12387          exp_sym_flag='-bexport'
12388          no_entry_flag='-bnoentry'
12389        fi
12390
12391        # When large executables or shared objects are built, AIX ld can
12392        # have problems creating the table of contents.  If linking a library
12393        # or program results in "error TOC overflow" add -mminimal-toc to
12394        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12395        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12396
12397        archive_cmds_CXX=''
12398        hardcode_direct_CXX=yes
12399        hardcode_direct_absolute_CXX=yes
12400        hardcode_libdir_separator_CXX=':'
12401        link_all_deplibs_CXX=yes
12402        file_list_spec_CXX='${wl}-f,'
12403
12404        if test "$GXX" = yes; then
12405          case $host_os in aix4.[012]|aix4.[012].*)
12406          # We only want to do this on AIX 4.2 and lower, the check
12407          # below for broken collect2 doesn't work under 4.3+
12408	  collect2name=`${CC} -print-prog-name=collect2`
12409	  if test -f "$collect2name" &&
12410	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12411	  then
12412	    # We have reworked collect2
12413	    :
12414	  else
12415	    # We have old collect2
12416	    hardcode_direct_CXX=unsupported
12417	    # It fails to find uninstalled libraries when the uninstalled
12418	    # path is not listed in the libpath.  Setting hardcode_minus_L
12419	    # to unsupported forces relinking
12420	    hardcode_minus_L_CXX=yes
12421	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12422	    hardcode_libdir_separator_CXX=
12423	  fi
12424          esac
12425          shared_flag='-shared'
12426	  if test "$aix_use_runtimelinking" = yes; then
12427	    shared_flag="$shared_flag "'${wl}-G'
12428	  fi
12429        else
12430          # not using gcc
12431          if test "$host_cpu" = ia64; then
12432	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12433	  # chokes on -Wl,-G. The following line is correct:
12434	  shared_flag='-G'
12435          else
12436	    if test "$aix_use_runtimelinking" = yes; then
12437	      shared_flag='${wl}-G'
12438	    else
12439	      shared_flag='${wl}-bM:SRE'
12440	    fi
12441          fi
12442        fi
12443
12444        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12445        # It seems that -bexpall does not export symbols beginning with
12446        # underscore (_), so it is better to generate a list of symbols to
12447	# export.
12448        always_export_symbols_CXX=yes
12449        if test "$aix_use_runtimelinking" = yes; then
12450          # Warning - without using the other runtime loading flags (-brtl),
12451          # -berok will link without error, but may produce a broken library.
12452          allow_undefined_flag_CXX='-berok'
12453          # Determine the default libpath from the value encoded in an empty
12454          # executable.
12455          if test "${lt_cv_aix_libpath+set}" = set; then
12456  aix_libpath=$lt_cv_aix_libpath
12457else
12458  if ${lt_cv_aix_libpath__CXX+:} false; then :
12459  $as_echo_n "(cached) " >&6
12460else
12461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462/* end confdefs.h.  */
12463
12464int
12465main ()
12466{
12467
12468  ;
12469  return 0;
12470}
12471_ACEOF
12472if ac_fn_cxx_try_link "$LINENO"; then :
12473
12474  lt_aix_libpath_sed='
12475      /Import File Strings/,/^$/ {
12476	  /^0/ {
12477	      s/^0  *\([^ ]*\) *$/\1/
12478	      p
12479	  }
12480      }'
12481  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12482  # Check for a 64-bit object if we didn't find anything.
12483  if test -z "$lt_cv_aix_libpath__CXX"; then
12484    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12485  fi
12486fi
12487rm -f core conftest.err conftest.$ac_objext \
12488    conftest$ac_exeext conftest.$ac_ext
12489  if test -z "$lt_cv_aix_libpath__CXX"; then
12490    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12491  fi
12492
12493fi
12494
12495  aix_libpath=$lt_cv_aix_libpath__CXX
12496fi
12497
12498          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12499
12500          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12501        else
12502          if test "$host_cpu" = ia64; then
12503	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12504	    allow_undefined_flag_CXX="-z nodefs"
12505	    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"
12506          else
12507	    # Determine the default libpath from the value encoded in an
12508	    # empty executable.
12509	    if test "${lt_cv_aix_libpath+set}" = set; then
12510  aix_libpath=$lt_cv_aix_libpath
12511else
12512  if ${lt_cv_aix_libpath__CXX+:} false; then :
12513  $as_echo_n "(cached) " >&6
12514else
12515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516/* end confdefs.h.  */
12517
12518int
12519main ()
12520{
12521
12522  ;
12523  return 0;
12524}
12525_ACEOF
12526if ac_fn_cxx_try_link "$LINENO"; then :
12527
12528  lt_aix_libpath_sed='
12529      /Import File Strings/,/^$/ {
12530	  /^0/ {
12531	      s/^0  *\([^ ]*\) *$/\1/
12532	      p
12533	  }
12534      }'
12535  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12536  # Check for a 64-bit object if we didn't find anything.
12537  if test -z "$lt_cv_aix_libpath__CXX"; then
12538    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12539  fi
12540fi
12541rm -f core conftest.err conftest.$ac_objext \
12542    conftest$ac_exeext conftest.$ac_ext
12543  if test -z "$lt_cv_aix_libpath__CXX"; then
12544    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12545  fi
12546
12547fi
12548
12549  aix_libpath=$lt_cv_aix_libpath__CXX
12550fi
12551
12552	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12553	    # Warning - without using the other run time loading flags,
12554	    # -berok will link without error, but may produce a broken library.
12555	    no_undefined_flag_CXX=' ${wl}-bernotok'
12556	    allow_undefined_flag_CXX=' ${wl}-berok'
12557	    if test "$with_gnu_ld" = yes; then
12558	      # We only use this code for GNU lds that support --whole-archive.
12559	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12560	    else
12561	      # Exported symbols can be pulled into shared objects from archives
12562	      whole_archive_flag_spec_CXX='$convenience'
12563	    fi
12564	    archive_cmds_need_lc_CXX=yes
12565	    # This is similar to how AIX traditionally builds its shared
12566	    # libraries.
12567	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12568          fi
12569        fi
12570        ;;
12571
12572      beos*)
12573	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12574	  allow_undefined_flag_CXX=unsupported
12575	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12576	  # support --undefined.  This deserves some investigation.  FIXME
12577	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12578	else
12579	  ld_shlibs_CXX=no
12580	fi
12581	;;
12582
12583      chorus*)
12584        case $cc_basename in
12585          *)
12586	  # FIXME: insert proper C++ library support
12587	  ld_shlibs_CXX=no
12588	  ;;
12589        esac
12590        ;;
12591
12592      cygwin* | mingw* | pw32* | cegcc*)
12593	case $GXX,$cc_basename in
12594	,cl* | no,cl*)
12595	  # Native MSVC
12596	  # hardcode_libdir_flag_spec is actually meaningless, as there is
12597	  # no search path for DLLs.
12598	  hardcode_libdir_flag_spec_CXX=' '
12599	  allow_undefined_flag_CXX=unsupported
12600	  always_export_symbols_CXX=yes
12601	  file_list_spec_CXX='@'
12602	  # Tell ltmain to make .lib files, not .a files.
12603	  libext=lib
12604	  # Tell ltmain to make .dll files, not .so files.
12605	  shrext_cmds=".dll"
12606	  # FIXME: Setting linknames here is a bad hack.
12607	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12608	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12609	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12610	    else
12611	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12612	    fi~
12613	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12614	    linknames='
12615	  # The linker will not automatically build a static lib if we build a DLL.
12616	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12617	  enable_shared_with_static_runtimes_CXX=yes
12618	  # Don't use ranlib
12619	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
12620	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12621	    lt_tool_outputfile="@TOOL_OUTPUT@"~
12622	    case $lt_outputfile in
12623	      *.exe|*.EXE) ;;
12624	      *)
12625		lt_outputfile="$lt_outputfile.exe"
12626		lt_tool_outputfile="$lt_tool_outputfile.exe"
12627		;;
12628	    esac~
12629	    func_to_tool_file "$lt_outputfile"~
12630	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12631	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12632	      $RM "$lt_outputfile.manifest";
12633	    fi'
12634	  ;;
12635	*)
12636	  # g++
12637	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12638	  # as there is no search path for DLLs.
12639	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12640	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12641	  allow_undefined_flag_CXX=unsupported
12642	  always_export_symbols_CXX=no
12643	  enable_shared_with_static_runtimes_CXX=yes
12644
12645	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12646	    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'
12647	    # If the export-symbols file already is a .def file (1st line
12648	    # is EXPORTS), use it as is; otherwise, prepend...
12649	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12650	      cp $export_symbols $output_objdir/$soname.def;
12651	    else
12652	      echo EXPORTS > $output_objdir/$soname.def;
12653	      cat $export_symbols >> $output_objdir/$soname.def;
12654	    fi~
12655	    $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'
12656	  else
12657	    ld_shlibs_CXX=no
12658	  fi
12659	  ;;
12660	esac
12661	;;
12662      darwin* | rhapsody*)
12663
12664
12665  archive_cmds_need_lc_CXX=no
12666  hardcode_direct_CXX=no
12667  hardcode_automatic_CXX=yes
12668  hardcode_shlibpath_var_CXX=unsupported
12669  if test "$lt_cv_ld_force_load" = "yes"; then
12670    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\"`'
12671
12672  else
12673    whole_archive_flag_spec_CXX=''
12674  fi
12675  link_all_deplibs_CXX=yes
12676  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12677  case $cc_basename in
12678     ifort*) _lt_dar_can_shared=yes ;;
12679     *) _lt_dar_can_shared=$GCC ;;
12680  esac
12681  if test "$_lt_dar_can_shared" = "yes"; then
12682    output_verbose_link_cmd=func_echo_all
12683    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}"
12684    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12685    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}"
12686    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}"
12687       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12688      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}"
12689      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}"
12690    fi
12691
12692  else
12693  ld_shlibs_CXX=no
12694  fi
12695
12696	;;
12697
12698      dgux*)
12699        case $cc_basename in
12700          ec++*)
12701	    # FIXME: insert proper C++ library support
12702	    ld_shlibs_CXX=no
12703	    ;;
12704          ghcx*)
12705	    # Green Hills C++ Compiler
12706	    # FIXME: insert proper C++ library support
12707	    ld_shlibs_CXX=no
12708	    ;;
12709          *)
12710	    # FIXME: insert proper C++ library support
12711	    ld_shlibs_CXX=no
12712	    ;;
12713        esac
12714        ;;
12715
12716      freebsd2.*)
12717        # C++ shared libraries reported to be fairly broken before
12718	# switch to ELF
12719        ld_shlibs_CXX=no
12720        ;;
12721
12722      freebsd-elf*)
12723        archive_cmds_need_lc_CXX=no
12724        ;;
12725
12726      freebsd* | dragonfly*)
12727        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12728        # conventions
12729        ld_shlibs_CXX=yes
12730        ;;
12731
12732      gnu*)
12733        ;;
12734
12735      haiku*)
12736        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12737        link_all_deplibs_CXX=yes
12738        ;;
12739
12740      hpux9*)
12741        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12742        hardcode_libdir_separator_CXX=:
12743        export_dynamic_flag_spec_CXX='${wl}-E'
12744        hardcode_direct_CXX=yes
12745        hardcode_minus_L_CXX=yes # Not in the search PATH,
12746				             # but as the default
12747				             # location of the library.
12748
12749        case $cc_basename in
12750          CC*)
12751            # FIXME: insert proper C++ library support
12752            ld_shlibs_CXX=no
12753            ;;
12754          aCC*)
12755            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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12756            # Commands to make compiler produce verbose output that lists
12757            # what "hidden" libraries, object files and flags are used when
12758            # linking a shared library.
12759            #
12760            # There doesn't appear to be a way to prevent this compiler from
12761            # explicitly linking system object files so we need to strip them
12762            # from the output so that they don't get included in the library
12763            # dependencies.
12764            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"'
12765            ;;
12766          *)
12767            if test "$GXX" = yes; then
12768              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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12769            else
12770              # FIXME: insert proper C++ library support
12771              ld_shlibs_CXX=no
12772            fi
12773            ;;
12774        esac
12775        ;;
12776
12777      hpux10*|hpux11*)
12778        if test $with_gnu_ld = no; then
12779	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12780	  hardcode_libdir_separator_CXX=:
12781
12782          case $host_cpu in
12783            hppa*64*|ia64*)
12784              ;;
12785            *)
12786	      export_dynamic_flag_spec_CXX='${wl}-E'
12787              ;;
12788          esac
12789        fi
12790        case $host_cpu in
12791          hppa*64*|ia64*)
12792            hardcode_direct_CXX=no
12793            hardcode_shlibpath_var_CXX=no
12794            ;;
12795          *)
12796            hardcode_direct_CXX=yes
12797            hardcode_direct_absolute_CXX=yes
12798            hardcode_minus_L_CXX=yes # Not in the search PATH,
12799					         # but as the default
12800					         # location of the library.
12801            ;;
12802        esac
12803
12804        case $cc_basename in
12805          CC*)
12806	    # FIXME: insert proper C++ library support
12807	    ld_shlibs_CXX=no
12808	    ;;
12809          aCC*)
12810	    case $host_cpu in
12811	      hppa*64*)
12812	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12813	        ;;
12814	      ia64*)
12815	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12816	        ;;
12817	      *)
12818	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12819	        ;;
12820	    esac
12821	    # Commands to make compiler produce verbose output that lists
12822	    # what "hidden" libraries, object files and flags are used when
12823	    # linking a shared library.
12824	    #
12825	    # There doesn't appear to be a way to prevent this compiler from
12826	    # explicitly linking system object files so we need to strip them
12827	    # from the output so that they don't get included in the library
12828	    # dependencies.
12829	    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"'
12830	    ;;
12831          *)
12832	    if test "$GXX" = yes; then
12833	      if test $with_gnu_ld = no; then
12834	        case $host_cpu in
12835	          hppa*64*)
12836	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12837	            ;;
12838	          ia64*)
12839	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12840	            ;;
12841	          *)
12842	            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'
12843	            ;;
12844	        esac
12845	      fi
12846	    else
12847	      # FIXME: insert proper C++ library support
12848	      ld_shlibs_CXX=no
12849	    fi
12850	    ;;
12851        esac
12852        ;;
12853
12854      interix[3-9]*)
12855	hardcode_direct_CXX=no
12856	hardcode_shlibpath_var_CXX=no
12857	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12858	export_dynamic_flag_spec_CXX='${wl}-E'
12859	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12860	# Instead, shared libraries are loaded at an image base (0x10000000 by
12861	# default) and relocated if they conflict, which is a slow very memory
12862	# consuming and fragmenting process.  To avoid this, we pick a random,
12863	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12864	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12865	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'
12866	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'
12867	;;
12868      irix5* | irix6*)
12869        case $cc_basename in
12870          CC*)
12871	    # SGI C++
12872	    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'
12873
12874	    # Archives containing C++ object files must be created using
12875	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12876	    # necessary to make sure instantiated templates are included
12877	    # in the archive.
12878	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12879	    ;;
12880          *)
12881	    if test "$GXX" = yes; then
12882	      if test "$with_gnu_ld" = no; then
12883	        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'
12884	      else
12885	        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'
12886	      fi
12887	    fi
12888	    link_all_deplibs_CXX=yes
12889	    ;;
12890        esac
12891        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12892        hardcode_libdir_separator_CXX=:
12893        inherit_rpath_CXX=yes
12894        ;;
12895
12896      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12897        case $cc_basename in
12898          KCC*)
12899	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12900
12901	    # KCC will only create a shared library if the output file
12902	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12903	    # to its proper name (with version) after linking.
12904	    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'
12905	    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'
12906	    # Commands to make compiler produce verbose output that lists
12907	    # what "hidden" libraries, object files and flags are used when
12908	    # linking a shared library.
12909	    #
12910	    # There doesn't appear to be a way to prevent this compiler from
12911	    # explicitly linking system object files so we need to strip them
12912	    # from the output so that they don't get included in the library
12913	    # dependencies.
12914	    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"'
12915
12916	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12917	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12918
12919	    # Archives containing C++ object files must be created using
12920	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12921	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12922	    ;;
12923	  icpc* | ecpc* )
12924	    # Intel C++
12925	    with_gnu_ld=yes
12926	    # version 8.0 and above of icpc choke on multiply defined symbols
12927	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12928	    # earlier do not add the objects themselves.
12929	    case `$CC -V 2>&1` in
12930	      *"Version 7."*)
12931	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12932		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'
12933		;;
12934	      *)  # Version 8.0 or newer
12935	        tmp_idyn=
12936	        case $host_cpu in
12937		  ia64*) tmp_idyn=' -i_dynamic';;
12938		esac
12939	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12940		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'
12941		;;
12942	    esac
12943	    archive_cmds_need_lc_CXX=no
12944	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12945	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12946	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12947	    ;;
12948          pgCC* | pgcpp*)
12949            # Portland Group C++ compiler
12950	    case `$CC -V` in
12951	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12952	      prelink_cmds_CXX='tpldir=Template.dir~
12953		rm -rf $tpldir~
12954		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12955		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12956	      old_archive_cmds_CXX='tpldir=Template.dir~
12957		rm -rf $tpldir~
12958		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12959		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12960		$RANLIB $oldlib'
12961	      archive_cmds_CXX='tpldir=Template.dir~
12962		rm -rf $tpldir~
12963		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12964		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12965	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12966		rm -rf $tpldir~
12967		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12968		$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'
12969	      ;;
12970	    *) # Version 6 and above use weak symbols
12971	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12972	      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'
12973	      ;;
12974	    esac
12975
12976	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12977	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12978	    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'
12979            ;;
12980	  cxx*)
12981	    # Compaq C++
12982	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12983	    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'
12984
12985	    runpath_var=LD_RUN_PATH
12986	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12987	    hardcode_libdir_separator_CXX=:
12988
12989	    # Commands to make compiler produce verbose output that lists
12990	    # what "hidden" libraries, object files and flags are used when
12991	    # linking a shared library.
12992	    #
12993	    # There doesn't appear to be a way to prevent this compiler from
12994	    # explicitly linking system object files so we need to strip them
12995	    # from the output so that they don't get included in the library
12996	    # dependencies.
12997	    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'
12998	    ;;
12999	  xl* | mpixl* | bgxl*)
13000	    # IBM XL 8.0 on PPC, with GNU ld
13001	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13002	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13003	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13004	    if test "x$supports_anon_versioning" = xyes; then
13005	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13006		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13007		echo "local: *; };" >> $output_objdir/$libname.ver~
13008		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13009	    fi
13010	    ;;
13011	  *)
13012	    case `$CC -V 2>&1 | sed 5q` in
13013	    *Sun\ C*)
13014	      # Sun C++ 5.9
13015	      no_undefined_flag_CXX=' -zdefs'
13016	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13017	      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'
13018	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13019	      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'
13020	      compiler_needs_object_CXX=yes
13021
13022	      # Not sure whether something based on
13023	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13024	      # would be better.
13025	      output_verbose_link_cmd='func_echo_all'
13026
13027	      # Archives containing C++ object files must be created using
13028	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13029	      # necessary to make sure instantiated templates are included
13030	      # in the archive.
13031	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13032	      ;;
13033	    esac
13034	    ;;
13035	esac
13036	;;
13037
13038      lynxos*)
13039        # FIXME: insert proper C++ library support
13040	ld_shlibs_CXX=no
13041	;;
13042
13043      m88k*)
13044        # FIXME: insert proper C++ library support
13045        ld_shlibs_CXX=no
13046	;;
13047
13048      mvs*)
13049        case $cc_basename in
13050          cxx*)
13051	    # FIXME: insert proper C++ library support
13052	    ld_shlibs_CXX=no
13053	    ;;
13054	  *)
13055	    # FIXME: insert proper C++ library support
13056	    ld_shlibs_CXX=no
13057	    ;;
13058	esac
13059	;;
13060
13061      netbsd*)
13062        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13063	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13064	  wlarc=
13065	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13066	  hardcode_direct_CXX=yes
13067	  hardcode_shlibpath_var_CXX=no
13068	fi
13069	# Workaround some broken pre-1.5 toolchains
13070	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13071	;;
13072
13073      *nto* | *qnx*)
13074        ld_shlibs_CXX=yes
13075	;;
13076
13077      openbsd2*)
13078        # C++ shared libraries are fairly broken
13079	ld_shlibs_CXX=no
13080	;;
13081
13082      openbsd*)
13083	if test -f /usr/libexec/ld.so; then
13084	  hardcode_direct_CXX=yes
13085	  hardcode_shlibpath_var_CXX=no
13086	  hardcode_direct_absolute_CXX=yes
13087	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13088	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13089	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13090	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13091	    export_dynamic_flag_spec_CXX='${wl}-E'
13092	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13093	  fi
13094	  output_verbose_link_cmd=func_echo_all
13095	else
13096	  ld_shlibs_CXX=no
13097	fi
13098	;;
13099
13100      osf3* | osf4* | osf5*)
13101        case $cc_basename in
13102          KCC*)
13103	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13104
13105	    # KCC will only create a shared library if the output file
13106	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13107	    # to its proper name (with version) after linking.
13108	    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'
13109
13110	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13111	    hardcode_libdir_separator_CXX=:
13112
13113	    # Archives containing C++ object files must be created using
13114	    # the KAI C++ compiler.
13115	    case $host in
13116	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13117	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13118	    esac
13119	    ;;
13120          RCC*)
13121	    # Rational C++ 2.4.1
13122	    # FIXME: insert proper C++ library support
13123	    ld_shlibs_CXX=no
13124	    ;;
13125          cxx*)
13126	    case $host in
13127	      osf3*)
13128	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13129	        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'
13130	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13131		;;
13132	      *)
13133	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13134	        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'
13135	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13136	          echo "-hidden">> $lib.exp~
13137	          $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~
13138	          $RM $lib.exp'
13139	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13140		;;
13141	    esac
13142
13143	    hardcode_libdir_separator_CXX=:
13144
13145	    # Commands to make compiler produce verbose output that lists
13146	    # what "hidden" libraries, object files and flags are used when
13147	    # linking a shared library.
13148	    #
13149	    # There doesn't appear to be a way to prevent this compiler from
13150	    # explicitly linking system object files so we need to strip them
13151	    # from the output so that they don't get included in the library
13152	    # dependencies.
13153	    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"'
13154	    ;;
13155	  *)
13156	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13157	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13158	      case $host in
13159	        osf3*)
13160	          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'
13161		  ;;
13162	        *)
13163	          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'
13164		  ;;
13165	      esac
13166
13167	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13168	      hardcode_libdir_separator_CXX=:
13169
13170	      # Commands to make compiler produce verbose output that lists
13171	      # what "hidden" libraries, object files and flags are used when
13172	      # linking a shared library.
13173	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13174
13175	    else
13176	      # FIXME: insert proper C++ library support
13177	      ld_shlibs_CXX=no
13178	    fi
13179	    ;;
13180        esac
13181        ;;
13182
13183      psos*)
13184        # FIXME: insert proper C++ library support
13185        ld_shlibs_CXX=no
13186        ;;
13187
13188      sunos4*)
13189        case $cc_basename in
13190          CC*)
13191	    # Sun C++ 4.x
13192	    # FIXME: insert proper C++ library support
13193	    ld_shlibs_CXX=no
13194	    ;;
13195          lcc*)
13196	    # Lucid
13197	    # FIXME: insert proper C++ library support
13198	    ld_shlibs_CXX=no
13199	    ;;
13200          *)
13201	    # FIXME: insert proper C++ library support
13202	    ld_shlibs_CXX=no
13203	    ;;
13204        esac
13205        ;;
13206
13207      solaris*)
13208        case $cc_basename in
13209          CC* | sunCC*)
13210	    # Sun C++ 4.2, 5.x and Centerline C++
13211            archive_cmds_need_lc_CXX=yes
13212	    no_undefined_flag_CXX=' -zdefs'
13213	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13214	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13215	      $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'
13216
13217	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13218	    hardcode_shlibpath_var_CXX=no
13219	    case $host_os in
13220	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13221	      *)
13222		# The compiler driver will combine and reorder linker options,
13223		# but understands `-z linker_flag'.
13224	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13225		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13226	        ;;
13227	    esac
13228	    link_all_deplibs_CXX=yes
13229
13230	    output_verbose_link_cmd='func_echo_all'
13231
13232	    # Archives containing C++ object files must be created using
13233	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13234	    # necessary to make sure instantiated templates are included
13235	    # in the archive.
13236	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13237	    ;;
13238          gcx*)
13239	    # Green Hills C++ Compiler
13240	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13241
13242	    # The C++ compiler must be used to create the archive.
13243	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13244	    ;;
13245          *)
13246	    # GNU C++ compiler with Solaris linker
13247	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13248	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13249	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13250	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13251	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13252		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13253
13254	        # Commands to make compiler produce verbose output that lists
13255	        # what "hidden" libraries, object files and flags are used when
13256	        # linking a shared library.
13257	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13258	      else
13259	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13260	        # platform.
13261	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13262	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13263		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13264
13265	        # Commands to make compiler produce verbose output that lists
13266	        # what "hidden" libraries, object files and flags are used when
13267	        # linking a shared library.
13268	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13269	      fi
13270
13271	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13272	      case $host_os in
13273		solaris2.[0-5] | solaris2.[0-5].*) ;;
13274		*)
13275		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13276		  ;;
13277	      esac
13278	    fi
13279	    ;;
13280        esac
13281        ;;
13282
13283    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13284      no_undefined_flag_CXX='${wl}-z,text'
13285      archive_cmds_need_lc_CXX=no
13286      hardcode_shlibpath_var_CXX=no
13287      runpath_var='LD_RUN_PATH'
13288
13289      case $cc_basename in
13290        CC*)
13291	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13292	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13293	  ;;
13294	*)
13295	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13296	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13297	  ;;
13298      esac
13299      ;;
13300
13301      sysv5* | sco3.2v5* | sco5v6*)
13302	# Note: We can NOT use -z defs as we might desire, because we do not
13303	# link with -lc, and that would cause any symbols used from libc to
13304	# always be unresolved, which means just about no library would
13305	# ever link correctly.  If we're not using GNU ld we use -z text
13306	# though, which does catch some bad symbols but isn't as heavy-handed
13307	# as -z defs.
13308	no_undefined_flag_CXX='${wl}-z,text'
13309	allow_undefined_flag_CXX='${wl}-z,nodefs'
13310	archive_cmds_need_lc_CXX=no
13311	hardcode_shlibpath_var_CXX=no
13312	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13313	hardcode_libdir_separator_CXX=':'
13314	link_all_deplibs_CXX=yes
13315	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13316	runpath_var='LD_RUN_PATH'
13317
13318	case $cc_basename in
13319          CC*)
13320	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13321	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13322	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13323	      '"$old_archive_cmds_CXX"
13324	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13325	      '"$reload_cmds_CXX"
13326	    ;;
13327	  *)
13328	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13329	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13330	    ;;
13331	esac
13332      ;;
13333
13334      tandem*)
13335        case $cc_basename in
13336          NCC*)
13337	    # NonStop-UX NCC 3.20
13338	    # FIXME: insert proper C++ library support
13339	    ld_shlibs_CXX=no
13340	    ;;
13341          *)
13342	    # FIXME: insert proper C++ library support
13343	    ld_shlibs_CXX=no
13344	    ;;
13345        esac
13346        ;;
13347
13348      vxworks*)
13349        # FIXME: insert proper C++ library support
13350        ld_shlibs_CXX=no
13351        ;;
13352
13353      *)
13354        # FIXME: insert proper C++ library support
13355        ld_shlibs_CXX=no
13356        ;;
13357    esac
13358
13359    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13360$as_echo "$ld_shlibs_CXX" >&6; }
13361    test "$ld_shlibs_CXX" = no && can_build_shared=no
13362
13363    GCC_CXX="$GXX"
13364    LD_CXX="$LD"
13365
13366    ## CAVEAT EMPTOR:
13367    ## There is no encapsulation within the following macros, do not change
13368    ## the running order or otherwise move them around unless you know exactly
13369    ## what you are doing...
13370    # Dependencies to place before and after the object being linked:
13371predep_objects_CXX=
13372postdep_objects_CXX=
13373predeps_CXX=
13374postdeps_CXX=
13375compiler_lib_search_path_CXX=
13376
13377cat > conftest.$ac_ext <<_LT_EOF
13378class Foo
13379{
13380public:
13381  Foo (void) { a = 0; }
13382private:
13383  int a;
13384};
13385_LT_EOF
13386
13387
13388_lt_libdeps_save_CFLAGS=$CFLAGS
13389case "$CC $CFLAGS " in #(
13390*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13391*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13392*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13393esac
13394
13395if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13396  (eval $ac_compile) 2>&5
13397  ac_status=$?
13398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13399  test $ac_status = 0; }; then
13400  # Parse the compiler output and extract the necessary
13401  # objects, libraries and library flags.
13402
13403  # Sentinel used to keep track of whether or not we are before
13404  # the conftest object file.
13405  pre_test_object_deps_done=no
13406
13407  for p in `eval "$output_verbose_link_cmd"`; do
13408    case ${prev}${p} in
13409
13410    -L* | -R* | -l*)
13411       # Some compilers place space between "-{L,R}" and the path.
13412       # Remove the space.
13413       if test $p = "-L" ||
13414          test $p = "-R"; then
13415	 prev=$p
13416	 continue
13417       fi
13418
13419       # Expand the sysroot to ease extracting the directories later.
13420       if test -z "$prev"; then
13421         case $p in
13422         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13423         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13424         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13425         esac
13426       fi
13427       case $p in
13428       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13429       esac
13430       if test "$pre_test_object_deps_done" = no; then
13431	 case ${prev} in
13432	 -L | -R)
13433	   # Internal compiler library paths should come after those
13434	   # provided the user.  The postdeps already come after the
13435	   # user supplied libs so there is no need to process them.
13436	   if test -z "$compiler_lib_search_path_CXX"; then
13437	     compiler_lib_search_path_CXX="${prev}${p}"
13438	   else
13439	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13440	   fi
13441	   ;;
13442	 # The "-l" case would never come before the object being
13443	 # linked, so don't bother handling this case.
13444	 esac
13445       else
13446	 if test -z "$postdeps_CXX"; then
13447	   postdeps_CXX="${prev}${p}"
13448	 else
13449	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13450	 fi
13451       fi
13452       prev=
13453       ;;
13454
13455    *.lto.$objext) ;; # Ignore GCC LTO objects
13456    *.$objext)
13457       # This assumes that the test object file only shows up
13458       # once in the compiler output.
13459       if test "$p" = "conftest.$objext"; then
13460	 pre_test_object_deps_done=yes
13461	 continue
13462       fi
13463
13464       if test "$pre_test_object_deps_done" = no; then
13465	 if test -z "$predep_objects_CXX"; then
13466	   predep_objects_CXX="$p"
13467	 else
13468	   predep_objects_CXX="$predep_objects_CXX $p"
13469	 fi
13470       else
13471	 if test -z "$postdep_objects_CXX"; then
13472	   postdep_objects_CXX="$p"
13473	 else
13474	   postdep_objects_CXX="$postdep_objects_CXX $p"
13475	 fi
13476       fi
13477       ;;
13478
13479    *) ;; # Ignore the rest.
13480
13481    esac
13482  done
13483
13484  # Clean up.
13485  rm -f a.out a.exe
13486else
13487  echo "libtool.m4: error: problem compiling CXX test program"
13488fi
13489
13490$RM -f confest.$objext
13491CFLAGS=$_lt_libdeps_save_CFLAGS
13492
13493# PORTME: override above test on systems where it is broken
13494case $host_os in
13495interix[3-9]*)
13496  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13497  # hack all around it, let's just trust "g++" to DTRT.
13498  predep_objects_CXX=
13499  postdep_objects_CXX=
13500  postdeps_CXX=
13501  ;;
13502
13503linux*)
13504  case `$CC -V 2>&1 | sed 5q` in
13505  *Sun\ C*)
13506    # Sun C++ 5.9
13507
13508    # The more standards-conforming stlport4 library is
13509    # incompatible with the Cstd library. Avoid specifying
13510    # it if it's in CXXFLAGS. Ignore libCrun as
13511    # -library=stlport4 depends on it.
13512    case " $CXX $CXXFLAGS " in
13513    *" -library=stlport4 "*)
13514      solaris_use_stlport4=yes
13515      ;;
13516    esac
13517
13518    if test "$solaris_use_stlport4" != yes; then
13519      postdeps_CXX='-library=Cstd -library=Crun'
13520    fi
13521    ;;
13522  esac
13523  ;;
13524
13525solaris*)
13526  case $cc_basename in
13527  CC* | sunCC*)
13528    # The more standards-conforming stlport4 library is
13529    # incompatible with the Cstd library. Avoid specifying
13530    # it if it's in CXXFLAGS. Ignore libCrun as
13531    # -library=stlport4 depends on it.
13532    case " $CXX $CXXFLAGS " in
13533    *" -library=stlport4 "*)
13534      solaris_use_stlport4=yes
13535      ;;
13536    esac
13537
13538    # Adding this requires a known-good setup of shared libraries for
13539    # Sun compiler versions before 5.6, else PIC objects from an old
13540    # archive will be linked into the output, leading to subtle bugs.
13541    if test "$solaris_use_stlport4" != yes; then
13542      postdeps_CXX='-library=Cstd -library=Crun'
13543    fi
13544    ;;
13545  esac
13546  ;;
13547esac
13548
13549
13550case " $postdeps_CXX " in
13551*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13552esac
13553 compiler_lib_search_dirs_CXX=
13554if test -n "${compiler_lib_search_path_CXX}"; then
13555 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13556fi
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588    lt_prog_compiler_wl_CXX=
13589lt_prog_compiler_pic_CXX=
13590lt_prog_compiler_static_CXX=
13591
13592
13593  # C++ specific cases for pic, static, wl, etc.
13594  if test "$GXX" = yes; then
13595    lt_prog_compiler_wl_CXX='-Wl,'
13596    lt_prog_compiler_static_CXX='-static'
13597
13598    case $host_os in
13599    aix*)
13600      # All AIX code is PIC.
13601      if test "$host_cpu" = ia64; then
13602	# AIX 5 now supports IA64 processor
13603	lt_prog_compiler_static_CXX='-Bstatic'
13604      fi
13605      ;;
13606
13607    amigaos*)
13608      case $host_cpu in
13609      powerpc)
13610            # see comment about AmigaOS4 .so support
13611            lt_prog_compiler_pic_CXX='-fPIC'
13612        ;;
13613      m68k)
13614            # FIXME: we need at least 68020 code to build shared libraries, but
13615            # adding the `-m68020' flag to GCC prevents building anything better,
13616            # like `-m68040'.
13617            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13618        ;;
13619      esac
13620      ;;
13621
13622    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13623      # PIC is the default for these OSes.
13624      ;;
13625    mingw* | cygwin* | os2* | pw32* | cegcc*)
13626      # This hack is so that the source file can tell whether it is being
13627      # built for inclusion in a dll (and should export symbols for example).
13628      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13629      # (--disable-auto-import) libraries
13630      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13631      ;;
13632    darwin* | rhapsody*)
13633      # PIC is the default on this platform
13634      # Common symbols not allowed in MH_DYLIB files
13635      lt_prog_compiler_pic_CXX='-fno-common'
13636      ;;
13637    *djgpp*)
13638      # DJGPP does not support shared libraries at all
13639      lt_prog_compiler_pic_CXX=
13640      ;;
13641    haiku*)
13642      # PIC is the default for Haiku.
13643      # The "-static" flag exists, but is broken.
13644      lt_prog_compiler_static_CXX=
13645      ;;
13646    interix[3-9]*)
13647      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13648      # Instead, we relocate shared libraries at runtime.
13649      ;;
13650    sysv4*MP*)
13651      if test -d /usr/nec; then
13652	lt_prog_compiler_pic_CXX=-Kconform_pic
13653      fi
13654      ;;
13655    hpux*)
13656      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13657      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13658      # sets the default TLS model and affects inlining.
13659      case $host_cpu in
13660      hppa*64*)
13661	;;
13662      *)
13663	lt_prog_compiler_pic_CXX='-fPIC'
13664	;;
13665      esac
13666      ;;
13667    *qnx* | *nto*)
13668      # QNX uses GNU C++, but need to define -shared option too, otherwise
13669      # it will coredump.
13670      lt_prog_compiler_pic_CXX='-fPIC -shared'
13671      ;;
13672    *)
13673      lt_prog_compiler_pic_CXX='-fPIC'
13674      ;;
13675    esac
13676  else
13677    case $host_os in
13678      aix[4-9]*)
13679	# All AIX code is PIC.
13680	if test "$host_cpu" = ia64; then
13681	  # AIX 5 now supports IA64 processor
13682	  lt_prog_compiler_static_CXX='-Bstatic'
13683	else
13684	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13685	fi
13686	;;
13687      chorus*)
13688	case $cc_basename in
13689	cxch68*)
13690	  # Green Hills C++ Compiler
13691	  # _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"
13692	  ;;
13693	esac
13694	;;
13695      mingw* | cygwin* | os2* | pw32* | cegcc*)
13696	# This hack is so that the source file can tell whether it is being
13697	# built for inclusion in a dll (and should export symbols for example).
13698	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13699	;;
13700      dgux*)
13701	case $cc_basename in
13702	  ec++*)
13703	    lt_prog_compiler_pic_CXX='-KPIC'
13704	    ;;
13705	  ghcx*)
13706	    # Green Hills C++ Compiler
13707	    lt_prog_compiler_pic_CXX='-pic'
13708	    ;;
13709	  *)
13710	    ;;
13711	esac
13712	;;
13713      freebsd* | dragonfly*)
13714	# FreeBSD uses GNU C++
13715	;;
13716      hpux9* | hpux10* | hpux11*)
13717	case $cc_basename in
13718	  CC*)
13719	    lt_prog_compiler_wl_CXX='-Wl,'
13720	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13721	    if test "$host_cpu" != ia64; then
13722	      lt_prog_compiler_pic_CXX='+Z'
13723	    fi
13724	    ;;
13725	  aCC*)
13726	    lt_prog_compiler_wl_CXX='-Wl,'
13727	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13728	    case $host_cpu in
13729	    hppa*64*|ia64*)
13730	      # +Z the default
13731	      ;;
13732	    *)
13733	      lt_prog_compiler_pic_CXX='+Z'
13734	      ;;
13735	    esac
13736	    ;;
13737	  *)
13738	    ;;
13739	esac
13740	;;
13741      interix*)
13742	# This is c89, which is MS Visual C++ (no shared libs)
13743	# Anyone wants to do a port?
13744	;;
13745      irix5* | irix6* | nonstopux*)
13746	case $cc_basename in
13747	  CC*)
13748	    lt_prog_compiler_wl_CXX='-Wl,'
13749	    lt_prog_compiler_static_CXX='-non_shared'
13750	    # CC pic flag -KPIC is the default.
13751	    ;;
13752	  *)
13753	    ;;
13754	esac
13755	;;
13756      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13757	case $cc_basename in
13758	  KCC*)
13759	    # KAI C++ Compiler
13760	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13761	    lt_prog_compiler_pic_CXX='-fPIC'
13762	    ;;
13763	  ecpc* )
13764	    # old Intel C++ for x86_64 which still supported -KPIC.
13765	    lt_prog_compiler_wl_CXX='-Wl,'
13766	    lt_prog_compiler_pic_CXX='-KPIC'
13767	    lt_prog_compiler_static_CXX='-static'
13768	    ;;
13769	  icpc* )
13770	    # Intel C++, used to be incompatible with GCC.
13771	    # ICC 10 doesn't accept -KPIC any more.
13772	    lt_prog_compiler_wl_CXX='-Wl,'
13773	    lt_prog_compiler_pic_CXX='-fPIC'
13774	    lt_prog_compiler_static_CXX='-static'
13775	    ;;
13776	  pgCC* | pgcpp*)
13777	    # Portland Group C++ compiler
13778	    lt_prog_compiler_wl_CXX='-Wl,'
13779	    lt_prog_compiler_pic_CXX='-fpic'
13780	    lt_prog_compiler_static_CXX='-Bstatic'
13781	    ;;
13782	  cxx*)
13783	    # Compaq C++
13784	    # Make sure the PIC flag is empty.  It appears that all Alpha
13785	    # Linux and Compaq Tru64 Unix objects are PIC.
13786	    lt_prog_compiler_pic_CXX=
13787	    lt_prog_compiler_static_CXX='-non_shared'
13788	    ;;
13789	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13790	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13791	    lt_prog_compiler_wl_CXX='-Wl,'
13792	    lt_prog_compiler_pic_CXX='-qpic'
13793	    lt_prog_compiler_static_CXX='-qstaticlink'
13794	    ;;
13795	  *)
13796	    case `$CC -V 2>&1 | sed 5q` in
13797	    *Sun\ C*)
13798	      # Sun C++ 5.9
13799	      lt_prog_compiler_pic_CXX='-KPIC'
13800	      lt_prog_compiler_static_CXX='-Bstatic'
13801	      lt_prog_compiler_wl_CXX='-Qoption ld '
13802	      ;;
13803	    esac
13804	    ;;
13805	esac
13806	;;
13807      lynxos*)
13808	;;
13809      m88k*)
13810	;;
13811      mvs*)
13812	case $cc_basename in
13813	  cxx*)
13814	    lt_prog_compiler_pic_CXX='-W c,exportall'
13815	    ;;
13816	  *)
13817	    ;;
13818	esac
13819	;;
13820      netbsd*)
13821	;;
13822      *qnx* | *nto*)
13823        # QNX uses GNU C++, but need to define -shared option too, otherwise
13824        # it will coredump.
13825        lt_prog_compiler_pic_CXX='-fPIC -shared'
13826        ;;
13827      osf3* | osf4* | osf5*)
13828	case $cc_basename in
13829	  KCC*)
13830	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13831	    ;;
13832	  RCC*)
13833	    # Rational C++ 2.4.1
13834	    lt_prog_compiler_pic_CXX='-pic'
13835	    ;;
13836	  cxx*)
13837	    # Digital/Compaq C++
13838	    lt_prog_compiler_wl_CXX='-Wl,'
13839	    # Make sure the PIC flag is empty.  It appears that all Alpha
13840	    # Linux and Compaq Tru64 Unix objects are PIC.
13841	    lt_prog_compiler_pic_CXX=
13842	    lt_prog_compiler_static_CXX='-non_shared'
13843	    ;;
13844	  *)
13845	    ;;
13846	esac
13847	;;
13848      psos*)
13849	;;
13850      solaris*)
13851	case $cc_basename in
13852	  CC* | sunCC*)
13853	    # Sun C++ 4.2, 5.x and Centerline C++
13854	    lt_prog_compiler_pic_CXX='-KPIC'
13855	    lt_prog_compiler_static_CXX='-Bstatic'
13856	    lt_prog_compiler_wl_CXX='-Qoption ld '
13857	    ;;
13858	  gcx*)
13859	    # Green Hills C++ Compiler
13860	    lt_prog_compiler_pic_CXX='-PIC'
13861	    ;;
13862	  *)
13863	    ;;
13864	esac
13865	;;
13866      sunos4*)
13867	case $cc_basename in
13868	  CC*)
13869	    # Sun C++ 4.x
13870	    lt_prog_compiler_pic_CXX='-pic'
13871	    lt_prog_compiler_static_CXX='-Bstatic'
13872	    ;;
13873	  lcc*)
13874	    # Lucid
13875	    lt_prog_compiler_pic_CXX='-pic'
13876	    ;;
13877	  *)
13878	    ;;
13879	esac
13880	;;
13881      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13882	case $cc_basename in
13883	  CC*)
13884	    lt_prog_compiler_wl_CXX='-Wl,'
13885	    lt_prog_compiler_pic_CXX='-KPIC'
13886	    lt_prog_compiler_static_CXX='-Bstatic'
13887	    ;;
13888	esac
13889	;;
13890      tandem*)
13891	case $cc_basename in
13892	  NCC*)
13893	    # NonStop-UX NCC 3.20
13894	    lt_prog_compiler_pic_CXX='-KPIC'
13895	    ;;
13896	  *)
13897	    ;;
13898	esac
13899	;;
13900      vxworks*)
13901	;;
13902      *)
13903	lt_prog_compiler_can_build_shared_CXX=no
13904	;;
13905    esac
13906  fi
13907
13908case $host_os in
13909  # For platforms which do not support PIC, -DPIC is meaningless:
13910  *djgpp*)
13911    lt_prog_compiler_pic_CXX=
13912    ;;
13913  *)
13914    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13915    ;;
13916esac
13917
13918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13919$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13920if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13921  $as_echo_n "(cached) " >&6
13922else
13923  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13924fi
13925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13926$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13927lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13928
13929#
13930# Check to make sure the PIC flag actually works.
13931#
13932if test -n "$lt_prog_compiler_pic_CXX"; then
13933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13934$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13935if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13936  $as_echo_n "(cached) " >&6
13937else
13938  lt_cv_prog_compiler_pic_works_CXX=no
13939   ac_outfile=conftest.$ac_objext
13940   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13941   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13942   # Insert the option either (1) after the last *FLAGS variable, or
13943   # (2) before a word containing "conftest.", or (3) at the end.
13944   # Note that $ac_compile itself does not contain backslashes and begins
13945   # with a dollar sign (not a hyphen), so the echo should work correctly.
13946   # The option is referenced via a variable to avoid confusing sed.
13947   lt_compile=`echo "$ac_compile" | $SED \
13948   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13949   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13950   -e 's:$: $lt_compiler_flag:'`
13951   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13952   (eval "$lt_compile" 2>conftest.err)
13953   ac_status=$?
13954   cat conftest.err >&5
13955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956   if (exit $ac_status) && test -s "$ac_outfile"; then
13957     # The compiler can only warn and ignore the option if not recognized
13958     # So say no if there are warnings other than the usual output.
13959     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13960     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13961     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13962       lt_cv_prog_compiler_pic_works_CXX=yes
13963     fi
13964   fi
13965   $RM conftest*
13966
13967fi
13968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13969$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13970
13971if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13972    case $lt_prog_compiler_pic_CXX in
13973     "" | " "*) ;;
13974     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13975     esac
13976else
13977    lt_prog_compiler_pic_CXX=
13978     lt_prog_compiler_can_build_shared_CXX=no
13979fi
13980
13981fi
13982
13983
13984
13985
13986
13987#
13988# Check to make sure the static flag actually works.
13989#
13990wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13992$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13993if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13994  $as_echo_n "(cached) " >&6
13995else
13996  lt_cv_prog_compiler_static_works_CXX=no
13997   save_LDFLAGS="$LDFLAGS"
13998   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13999   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14000   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14001     # The linker can only warn and ignore the option if not recognized
14002     # So say no if there are warnings
14003     if test -s conftest.err; then
14004       # Append any errors to the config.log.
14005       cat conftest.err 1>&5
14006       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14007       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14008       if diff conftest.exp conftest.er2 >/dev/null; then
14009         lt_cv_prog_compiler_static_works_CXX=yes
14010       fi
14011     else
14012       lt_cv_prog_compiler_static_works_CXX=yes
14013     fi
14014   fi
14015   $RM -r conftest*
14016   LDFLAGS="$save_LDFLAGS"
14017
14018fi
14019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14020$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14021
14022if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14023    :
14024else
14025    lt_prog_compiler_static_CXX=
14026fi
14027
14028
14029
14030
14031    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14032$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14033if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14034  $as_echo_n "(cached) " >&6
14035else
14036  lt_cv_prog_compiler_c_o_CXX=no
14037   $RM -r conftest 2>/dev/null
14038   mkdir conftest
14039   cd conftest
14040   mkdir out
14041   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14042
14043   lt_compiler_flag="-o out/conftest2.$ac_objext"
14044   # Insert the option either (1) after the last *FLAGS variable, or
14045   # (2) before a word containing "conftest.", or (3) at the end.
14046   # Note that $ac_compile itself does not contain backslashes and begins
14047   # with a dollar sign (not a hyphen), so the echo should work correctly.
14048   lt_compile=`echo "$ac_compile" | $SED \
14049   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14050   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14051   -e 's:$: $lt_compiler_flag:'`
14052   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14053   (eval "$lt_compile" 2>out/conftest.err)
14054   ac_status=$?
14055   cat out/conftest.err >&5
14056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14058   then
14059     # The compiler can only warn and ignore the option if not recognized
14060     # So say no if there are warnings
14061     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14062     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14063     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14064       lt_cv_prog_compiler_c_o_CXX=yes
14065     fi
14066   fi
14067   chmod u+w . 2>&5
14068   $RM conftest*
14069   # SGI C++ compiler will create directory out/ii_files/ for
14070   # template instantiation
14071   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14072   $RM out/* && rmdir out
14073   cd ..
14074   $RM -r conftest
14075   $RM conftest*
14076
14077fi
14078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14079$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14080
14081
14082
14083    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14084$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14085if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14086  $as_echo_n "(cached) " >&6
14087else
14088  lt_cv_prog_compiler_c_o_CXX=no
14089   $RM -r conftest 2>/dev/null
14090   mkdir conftest
14091   cd conftest
14092   mkdir out
14093   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14094
14095   lt_compiler_flag="-o out/conftest2.$ac_objext"
14096   # Insert the option either (1) after the last *FLAGS variable, or
14097   # (2) before a word containing "conftest.", or (3) at the end.
14098   # Note that $ac_compile itself does not contain backslashes and begins
14099   # with a dollar sign (not a hyphen), so the echo should work correctly.
14100   lt_compile=`echo "$ac_compile" | $SED \
14101   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14102   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14103   -e 's:$: $lt_compiler_flag:'`
14104   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14105   (eval "$lt_compile" 2>out/conftest.err)
14106   ac_status=$?
14107   cat out/conftest.err >&5
14108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14110   then
14111     # The compiler can only warn and ignore the option if not recognized
14112     # So say no if there are warnings
14113     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14114     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14115     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14116       lt_cv_prog_compiler_c_o_CXX=yes
14117     fi
14118   fi
14119   chmod u+w . 2>&5
14120   $RM conftest*
14121   # SGI C++ compiler will create directory out/ii_files/ for
14122   # template instantiation
14123   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14124   $RM out/* && rmdir out
14125   cd ..
14126   $RM -r conftest
14127   $RM conftest*
14128
14129fi
14130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14131$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14132
14133
14134
14135
14136hard_links="nottested"
14137if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14138  # do not overwrite the value of need_locks provided by the user
14139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14140$as_echo_n "checking if we can lock with hard links... " >&6; }
14141  hard_links=yes
14142  $RM conftest*
14143  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14144  touch conftest.a
14145  ln conftest.a conftest.b 2>&5 || hard_links=no
14146  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14148$as_echo "$hard_links" >&6; }
14149  if test "$hard_links" = no; then
14150    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14151$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14152    need_locks=warn
14153  fi
14154else
14155  need_locks=no
14156fi
14157
14158
14159
14160    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14161$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14162
14163  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14164  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14165  case $host_os in
14166  aix[4-9]*)
14167    # If we're using GNU nm, then we don't want the "-C" option.
14168    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14169    # Also, AIX nm treats weak defined symbols like other global defined
14170    # symbols, whereas GNU nm marks them as "W".
14171    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14172      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14173    else
14174      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14175    fi
14176    ;;
14177  pw32*)
14178    export_symbols_cmds_CXX="$ltdll_cmds"
14179    ;;
14180  cygwin* | mingw* | cegcc*)
14181    case $cc_basename in
14182    cl*)
14183      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14184      ;;
14185    *)
14186      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'
14187      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14188      ;;
14189    esac
14190    ;;
14191  *)
14192    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14193    ;;
14194  esac
14195
14196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14197$as_echo "$ld_shlibs_CXX" >&6; }
14198test "$ld_shlibs_CXX" = no && can_build_shared=no
14199
14200with_gnu_ld_CXX=$with_gnu_ld
14201
14202
14203
14204
14205
14206
14207#
14208# Do we need to explicitly link libc?
14209#
14210case "x$archive_cmds_need_lc_CXX" in
14211x|xyes)
14212  # Assume -lc should be added
14213  archive_cmds_need_lc_CXX=yes
14214
14215  if test "$enable_shared" = yes && test "$GCC" = yes; then
14216    case $archive_cmds_CXX in
14217    *'~'*)
14218      # FIXME: we may have to deal with multi-command sequences.
14219      ;;
14220    '$CC '*)
14221      # Test whether the compiler implicitly links with -lc since on some
14222      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14223      # to ld, don't add -lc before -lgcc.
14224      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14225$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14226if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14227  $as_echo_n "(cached) " >&6
14228else
14229  $RM conftest*
14230	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14231
14232	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14233  (eval $ac_compile) 2>&5
14234  ac_status=$?
14235  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14236  test $ac_status = 0; } 2>conftest.err; then
14237	  soname=conftest
14238	  lib=conftest
14239	  libobjs=conftest.$ac_objext
14240	  deplibs=
14241	  wl=$lt_prog_compiler_wl_CXX
14242	  pic_flag=$lt_prog_compiler_pic_CXX
14243	  compiler_flags=-v
14244	  linker_flags=-v
14245	  verstring=
14246	  output_objdir=.
14247	  libname=conftest
14248	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14249	  allow_undefined_flag_CXX=
14250	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14251  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14252  ac_status=$?
14253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14254  test $ac_status = 0; }
14255	  then
14256	    lt_cv_archive_cmds_need_lc_CXX=no
14257	  else
14258	    lt_cv_archive_cmds_need_lc_CXX=yes
14259	  fi
14260	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14261	else
14262	  cat conftest.err 1>&5
14263	fi
14264	$RM conftest*
14265
14266fi
14267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14268$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14269      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14270      ;;
14271    esac
14272  fi
14273  ;;
14274esac
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14338$as_echo_n "checking dynamic linker characteristics... " >&6; }
14339
14340library_names_spec=
14341libname_spec='lib$name'
14342soname_spec=
14343shrext_cmds=".so"
14344postinstall_cmds=
14345postuninstall_cmds=
14346finish_cmds=
14347finish_eval=
14348shlibpath_var=
14349shlibpath_overrides_runpath=unknown
14350version_type=none
14351dynamic_linker="$host_os ld.so"
14352sys_lib_dlsearch_path_spec="/lib /usr/lib"
14353need_lib_prefix=unknown
14354hardcode_into_libs=no
14355
14356# when you set need_version to no, make sure it does not cause -set_version
14357# flags to be left without arguments
14358need_version=unknown
14359
14360case $host_os in
14361aix3*)
14362  version_type=linux # correct to gnu/linux during the next big refactor
14363  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14364  shlibpath_var=LIBPATH
14365
14366  # AIX 3 has no versioning support, so we append a major version to the name.
14367  soname_spec='${libname}${release}${shared_ext}$major'
14368  ;;
14369
14370aix[4-9]*)
14371  version_type=linux # correct to gnu/linux during the next big refactor
14372  need_lib_prefix=no
14373  need_version=no
14374  hardcode_into_libs=yes
14375  if test "$host_cpu" = ia64; then
14376    # AIX 5 supports IA64
14377    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14378    shlibpath_var=LD_LIBRARY_PATH
14379  else
14380    # With GCC up to 2.95.x, collect2 would create an import file
14381    # for dependence libraries.  The import file would start with
14382    # the line `#! .'.  This would cause the generated library to
14383    # depend on `.', always an invalid library.  This was fixed in
14384    # development snapshots of GCC prior to 3.0.
14385    case $host_os in
14386      aix4 | aix4.[01] | aix4.[01].*)
14387      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14388	   echo ' yes '
14389	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14390	:
14391      else
14392	can_build_shared=no
14393      fi
14394      ;;
14395    esac
14396    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14397    # soname into executable. Probably we can add versioning support to
14398    # collect2, so additional links can be useful in future.
14399    if test "$aix_use_runtimelinking" = yes; then
14400      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14401      # instead of lib<name>.a to let people know that these are not
14402      # typical AIX shared libraries.
14403      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14404    else
14405      # We preserve .a as extension for shared libraries through AIX4.2
14406      # and later when we are not doing run time linking.
14407      library_names_spec='${libname}${release}.a $libname.a'
14408      soname_spec='${libname}${release}${shared_ext}$major'
14409    fi
14410    shlibpath_var=LIBPATH
14411  fi
14412  ;;
14413
14414amigaos*)
14415  case $host_cpu in
14416  powerpc)
14417    # Since July 2007 AmigaOS4 officially supports .so libraries.
14418    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14419    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14420    ;;
14421  m68k)
14422    library_names_spec='$libname.ixlibrary $libname.a'
14423    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14424    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14425    ;;
14426  esac
14427  ;;
14428
14429beos*)
14430  library_names_spec='${libname}${shared_ext}'
14431  dynamic_linker="$host_os ld.so"
14432  shlibpath_var=LIBRARY_PATH
14433  ;;
14434
14435bsdi[45]*)
14436  version_type=linux # correct to gnu/linux during the next big refactor
14437  need_version=no
14438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14439  soname_spec='${libname}${release}${shared_ext}$major'
14440  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14441  shlibpath_var=LD_LIBRARY_PATH
14442  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14443  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14444  # the default ld.so.conf also contains /usr/contrib/lib and
14445  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14446  # libtool to hard-code these into programs
14447  ;;
14448
14449cygwin* | mingw* | pw32* | cegcc*)
14450  version_type=windows
14451  shrext_cmds=".dll"
14452  need_version=no
14453  need_lib_prefix=no
14454
14455  case $GCC,$cc_basename in
14456  yes,*)
14457    # gcc
14458    library_names_spec='$libname.dll.a'
14459    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14460    postinstall_cmds='base_file=`basename \${file}`~
14461      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14462      dldir=$destdir/`dirname \$dlpath`~
14463      test -d \$dldir || mkdir -p \$dldir~
14464      $install_prog $dir/$dlname \$dldir/$dlname~
14465      chmod a+x \$dldir/$dlname~
14466      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14467        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14468      fi'
14469    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14470      dlpath=$dir/\$dldll~
14471       $RM \$dlpath'
14472    shlibpath_overrides_runpath=yes
14473
14474    case $host_os in
14475    cygwin*)
14476      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14477      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14478
14479      ;;
14480    mingw* | cegcc*)
14481      # MinGW DLLs use traditional 'lib' prefix
14482      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14483      ;;
14484    pw32*)
14485      # pw32 DLLs use 'pw' prefix rather than 'lib'
14486      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14487      ;;
14488    esac
14489    dynamic_linker='Win32 ld.exe'
14490    ;;
14491
14492  *,cl*)
14493    # Native MSVC
14494    libname_spec='$name'
14495    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14496    library_names_spec='${libname}.dll.lib'
14497
14498    case $build_os in
14499    mingw*)
14500      sys_lib_search_path_spec=
14501      lt_save_ifs=$IFS
14502      IFS=';'
14503      for lt_path in $LIB
14504      do
14505        IFS=$lt_save_ifs
14506        # Let DOS variable expansion print the short 8.3 style file name.
14507        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14508        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14509      done
14510      IFS=$lt_save_ifs
14511      # Convert to MSYS style.
14512      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14513      ;;
14514    cygwin*)
14515      # Convert to unix form, then to dos form, then back to unix form
14516      # but this time dos style (no spaces!) so that the unix form looks
14517      # like /cygdrive/c/PROGRA~1:/cygdr...
14518      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14519      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14520      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14521      ;;
14522    *)
14523      sys_lib_search_path_spec="$LIB"
14524      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14525        # It is most probably a Windows format PATH.
14526        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14527      else
14528        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14529      fi
14530      # FIXME: find the short name or the path components, as spaces are
14531      # common. (e.g. "Program Files" -> "PROGRA~1")
14532      ;;
14533    esac
14534
14535    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14536    postinstall_cmds='base_file=`basename \${file}`~
14537      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14538      dldir=$destdir/`dirname \$dlpath`~
14539      test -d \$dldir || mkdir -p \$dldir~
14540      $install_prog $dir/$dlname \$dldir/$dlname'
14541    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14542      dlpath=$dir/\$dldll~
14543       $RM \$dlpath'
14544    shlibpath_overrides_runpath=yes
14545    dynamic_linker='Win32 link.exe'
14546    ;;
14547
14548  *)
14549    # Assume MSVC wrapper
14550    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14551    dynamic_linker='Win32 ld.exe'
14552    ;;
14553  esac
14554  # FIXME: first we should search . and the directory the executable is in
14555  shlibpath_var=PATH
14556  ;;
14557
14558darwin* | rhapsody*)
14559  dynamic_linker="$host_os dyld"
14560  version_type=darwin
14561  need_lib_prefix=no
14562  need_version=no
14563  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14564  soname_spec='${libname}${release}${major}$shared_ext'
14565  shlibpath_overrides_runpath=yes
14566  shlibpath_var=DYLD_LIBRARY_PATH
14567  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14568
14569  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14570  ;;
14571
14572dgux*)
14573  version_type=linux # correct to gnu/linux during the next big refactor
14574  need_lib_prefix=no
14575  need_version=no
14576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14577  soname_spec='${libname}${release}${shared_ext}$major'
14578  shlibpath_var=LD_LIBRARY_PATH
14579  ;;
14580
14581freebsd* | dragonfly*)
14582  # DragonFly does not have aout.  When/if they implement a new
14583  # versioning mechanism, adjust this.
14584  if test -x /usr/bin/objformat; then
14585    objformat=`/usr/bin/objformat`
14586  else
14587    case $host_os in
14588    freebsd[23].*) objformat=aout ;;
14589    *) objformat=elf ;;
14590    esac
14591  fi
14592  version_type=freebsd-$objformat
14593  case $version_type in
14594    freebsd-elf*)
14595      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14596      need_version=no
14597      need_lib_prefix=no
14598      ;;
14599    freebsd-*)
14600      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14601      need_version=yes
14602      ;;
14603  esac
14604  shlibpath_var=LD_LIBRARY_PATH
14605  case $host_os in
14606  freebsd2.*)
14607    shlibpath_overrides_runpath=yes
14608    ;;
14609  freebsd3.[01]* | freebsdelf3.[01]*)
14610    shlibpath_overrides_runpath=yes
14611    hardcode_into_libs=yes
14612    ;;
14613  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14614  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14615    shlibpath_overrides_runpath=no
14616    hardcode_into_libs=yes
14617    ;;
14618  *) # from 4.6 on, and DragonFly
14619    shlibpath_overrides_runpath=yes
14620    hardcode_into_libs=yes
14621    ;;
14622  esac
14623  ;;
14624
14625gnu*)
14626  version_type=linux # correct to gnu/linux during the next big refactor
14627  need_lib_prefix=no
14628  need_version=no
14629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14630  soname_spec='${libname}${release}${shared_ext}$major'
14631  shlibpath_var=LD_LIBRARY_PATH
14632  shlibpath_overrides_runpath=no
14633  hardcode_into_libs=yes
14634  ;;
14635
14636haiku*)
14637  version_type=linux # correct to gnu/linux during the next big refactor
14638  need_lib_prefix=no
14639  need_version=no
14640  dynamic_linker="$host_os runtime_loader"
14641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14642  soname_spec='${libname}${release}${shared_ext}$major'
14643  shlibpath_var=LIBRARY_PATH
14644  shlibpath_overrides_runpath=yes
14645  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14646  hardcode_into_libs=yes
14647  ;;
14648
14649hpux9* | hpux10* | hpux11*)
14650  # Give a soname corresponding to the major version so that dld.sl refuses to
14651  # link against other versions.
14652  version_type=sunos
14653  need_lib_prefix=no
14654  need_version=no
14655  case $host_cpu in
14656  ia64*)
14657    shrext_cmds='.so'
14658    hardcode_into_libs=yes
14659    dynamic_linker="$host_os dld.so"
14660    shlibpath_var=LD_LIBRARY_PATH
14661    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14662    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14663    soname_spec='${libname}${release}${shared_ext}$major'
14664    if test "X$HPUX_IA64_MODE" = X32; then
14665      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14666    else
14667      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14668    fi
14669    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14670    ;;
14671  hppa*64*)
14672    shrext_cmds='.sl'
14673    hardcode_into_libs=yes
14674    dynamic_linker="$host_os dld.sl"
14675    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14676    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14677    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14678    soname_spec='${libname}${release}${shared_ext}$major'
14679    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14680    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14681    ;;
14682  *)
14683    shrext_cmds='.sl'
14684    dynamic_linker="$host_os dld.sl"
14685    shlibpath_var=SHLIB_PATH
14686    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14687    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14688    soname_spec='${libname}${release}${shared_ext}$major'
14689    ;;
14690  esac
14691  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14692  postinstall_cmds='chmod 555 $lib'
14693  # or fails outright, so override atomically:
14694  install_override_mode=555
14695  ;;
14696
14697interix[3-9]*)
14698  version_type=linux # correct to gnu/linux during the next big refactor
14699  need_lib_prefix=no
14700  need_version=no
14701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14702  soname_spec='${libname}${release}${shared_ext}$major'
14703  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14704  shlibpath_var=LD_LIBRARY_PATH
14705  shlibpath_overrides_runpath=no
14706  hardcode_into_libs=yes
14707  ;;
14708
14709irix5* | irix6* | nonstopux*)
14710  case $host_os in
14711    nonstopux*) version_type=nonstopux ;;
14712    *)
14713	if test "$lt_cv_prog_gnu_ld" = yes; then
14714		version_type=linux # correct to gnu/linux during the next big refactor
14715	else
14716		version_type=irix
14717	fi ;;
14718  esac
14719  need_lib_prefix=no
14720  need_version=no
14721  soname_spec='${libname}${release}${shared_ext}$major'
14722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14723  case $host_os in
14724  irix5* | nonstopux*)
14725    libsuff= shlibsuff=
14726    ;;
14727  *)
14728    case $LD in # libtool.m4 will add one of these switches to LD
14729    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14730      libsuff= shlibsuff= libmagic=32-bit;;
14731    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14732      libsuff=32 shlibsuff=N32 libmagic=N32;;
14733    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14734      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14735    *) libsuff= shlibsuff= libmagic=never-match;;
14736    esac
14737    ;;
14738  esac
14739  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14740  shlibpath_overrides_runpath=no
14741  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14742  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14743  hardcode_into_libs=yes
14744  ;;
14745
14746# No shared lib support for Linux oldld, aout, or coff.
14747linux*oldld* | linux*aout* | linux*coff*)
14748  dynamic_linker=no
14749  ;;
14750
14751# This must be glibc/ELF.
14752linux* | k*bsd*-gnu | kopensolaris*-gnu)
14753  version_type=linux # correct to gnu/linux during the next big refactor
14754  need_lib_prefix=no
14755  need_version=no
14756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757  soname_spec='${libname}${release}${shared_ext}$major'
14758  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14759  shlibpath_var=LD_LIBRARY_PATH
14760  shlibpath_overrides_runpath=no
14761
14762  # Some binutils ld are patched to set DT_RUNPATH
14763  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14764  $as_echo_n "(cached) " >&6
14765else
14766  lt_cv_shlibpath_overrides_runpath=no
14767    save_LDFLAGS=$LDFLAGS
14768    save_libdir=$libdir
14769    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14770	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14771    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772/* end confdefs.h.  */
14773
14774int
14775main ()
14776{
14777
14778  ;
14779  return 0;
14780}
14781_ACEOF
14782if ac_fn_cxx_try_link "$LINENO"; then :
14783  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14784  lt_cv_shlibpath_overrides_runpath=yes
14785fi
14786fi
14787rm -f core conftest.err conftest.$ac_objext \
14788    conftest$ac_exeext conftest.$ac_ext
14789    LDFLAGS=$save_LDFLAGS
14790    libdir=$save_libdir
14791
14792fi
14793
14794  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14795
14796  # This implies no fast_install, which is unacceptable.
14797  # Some rework will be needed to allow for fast_install
14798  # before this can be enabled.
14799  hardcode_into_libs=yes
14800
14801  # Append ld.so.conf contents to the search path
14802  if test -f /etc/ld.so.conf; then
14803    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' ' '`
14804    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14805  fi
14806
14807  # We used to test for /lib/ld.so.1 and disable shared libraries on
14808  # powerpc, because MkLinux only supported shared libraries with the
14809  # GNU dynamic linker.  Since this was broken with cross compilers,
14810  # most powerpc-linux boxes support dynamic linking these days and
14811  # people can always --disable-shared, the test was removed, and we
14812  # assume the GNU/Linux dynamic linker is in use.
14813  dynamic_linker='GNU/Linux ld.so'
14814  ;;
14815
14816netbsd*)
14817  version_type=sunos
14818  need_lib_prefix=no
14819  need_version=no
14820  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14821    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14822    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14823    dynamic_linker='NetBSD (a.out) ld.so'
14824  else
14825    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14826    soname_spec='${libname}${release}${shared_ext}$major'
14827    dynamic_linker='NetBSD ld.elf_so'
14828  fi
14829  shlibpath_var=LD_LIBRARY_PATH
14830  shlibpath_overrides_runpath=yes
14831  hardcode_into_libs=yes
14832  ;;
14833
14834newsos6)
14835  version_type=linux # correct to gnu/linux during the next big refactor
14836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14837  shlibpath_var=LD_LIBRARY_PATH
14838  shlibpath_overrides_runpath=yes
14839  ;;
14840
14841*nto* | *qnx*)
14842  version_type=qnx
14843  need_lib_prefix=no
14844  need_version=no
14845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14846  soname_spec='${libname}${release}${shared_ext}$major'
14847  shlibpath_var=LD_LIBRARY_PATH
14848  shlibpath_overrides_runpath=no
14849  hardcode_into_libs=yes
14850  dynamic_linker='ldqnx.so'
14851  ;;
14852
14853openbsd*)
14854  version_type=sunos
14855  sys_lib_dlsearch_path_spec="/usr/lib"
14856  need_lib_prefix=no
14857  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14858  case $host_os in
14859    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14860    *)				need_version=no  ;;
14861  esac
14862  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14863  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14864  shlibpath_var=LD_LIBRARY_PATH
14865  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14866    case $host_os in
14867      openbsd2.[89] | openbsd2.[89].*)
14868	shlibpath_overrides_runpath=no
14869	;;
14870      *)
14871	shlibpath_overrides_runpath=yes
14872	;;
14873      esac
14874  else
14875    shlibpath_overrides_runpath=yes
14876  fi
14877  ;;
14878
14879os2*)
14880  libname_spec='$name'
14881  shrext_cmds=".dll"
14882  need_lib_prefix=no
14883  library_names_spec='$libname${shared_ext} $libname.a'
14884  dynamic_linker='OS/2 ld.exe'
14885  shlibpath_var=LIBPATH
14886  ;;
14887
14888osf3* | osf4* | osf5*)
14889  version_type=osf
14890  need_lib_prefix=no
14891  need_version=no
14892  soname_spec='${libname}${release}${shared_ext}$major'
14893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14894  shlibpath_var=LD_LIBRARY_PATH
14895  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14896  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14897  ;;
14898
14899rdos*)
14900  dynamic_linker=no
14901  ;;
14902
14903solaris*)
14904  version_type=linux # correct to gnu/linux during the next big refactor
14905  need_lib_prefix=no
14906  need_version=no
14907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14908  soname_spec='${libname}${release}${shared_ext}$major'
14909  shlibpath_var=LD_LIBRARY_PATH
14910  shlibpath_overrides_runpath=yes
14911  hardcode_into_libs=yes
14912  # ldd complains unless libraries are executable
14913  postinstall_cmds='chmod +x $lib'
14914  ;;
14915
14916sunos4*)
14917  version_type=sunos
14918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14919  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14920  shlibpath_var=LD_LIBRARY_PATH
14921  shlibpath_overrides_runpath=yes
14922  if test "$with_gnu_ld" = yes; then
14923    need_lib_prefix=no
14924  fi
14925  need_version=yes
14926  ;;
14927
14928sysv4 | sysv4.3*)
14929  version_type=linux # correct to gnu/linux during the next big refactor
14930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14931  soname_spec='${libname}${release}${shared_ext}$major'
14932  shlibpath_var=LD_LIBRARY_PATH
14933  case $host_vendor in
14934    sni)
14935      shlibpath_overrides_runpath=no
14936      need_lib_prefix=no
14937      runpath_var=LD_RUN_PATH
14938      ;;
14939    siemens)
14940      need_lib_prefix=no
14941      ;;
14942    motorola)
14943      need_lib_prefix=no
14944      need_version=no
14945      shlibpath_overrides_runpath=no
14946      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14947      ;;
14948  esac
14949  ;;
14950
14951sysv4*MP*)
14952  if test -d /usr/nec ;then
14953    version_type=linux # correct to gnu/linux during the next big refactor
14954    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14955    soname_spec='$libname${shared_ext}.$major'
14956    shlibpath_var=LD_LIBRARY_PATH
14957  fi
14958  ;;
14959
14960sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14961  version_type=freebsd-elf
14962  need_lib_prefix=no
14963  need_version=no
14964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14965  soname_spec='${libname}${release}${shared_ext}$major'
14966  shlibpath_var=LD_LIBRARY_PATH
14967  shlibpath_overrides_runpath=yes
14968  hardcode_into_libs=yes
14969  if test "$with_gnu_ld" = yes; then
14970    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14971  else
14972    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14973    case $host_os in
14974      sco3.2v5*)
14975        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14976	;;
14977    esac
14978  fi
14979  sys_lib_dlsearch_path_spec='/usr/lib'
14980  ;;
14981
14982tpf*)
14983  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14984  version_type=linux # correct to gnu/linux during the next big refactor
14985  need_lib_prefix=no
14986  need_version=no
14987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14988  shlibpath_var=LD_LIBRARY_PATH
14989  shlibpath_overrides_runpath=no
14990  hardcode_into_libs=yes
14991  ;;
14992
14993uts4*)
14994  version_type=linux # correct to gnu/linux during the next big refactor
14995  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14996  soname_spec='${libname}${release}${shared_ext}$major'
14997  shlibpath_var=LD_LIBRARY_PATH
14998  ;;
14999
15000*)
15001  dynamic_linker=no
15002  ;;
15003esac
15004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15005$as_echo "$dynamic_linker" >&6; }
15006test "$dynamic_linker" = no && can_build_shared=no
15007
15008variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15009if test "$GCC" = yes; then
15010  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15011fi
15012
15013if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15014  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15015fi
15016if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15017  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15018fi
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15058$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15059hardcode_action_CXX=
15060if test -n "$hardcode_libdir_flag_spec_CXX" ||
15061   test -n "$runpath_var_CXX" ||
15062   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15063
15064  # We can hardcode non-existent directories.
15065  if test "$hardcode_direct_CXX" != no &&
15066     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15067     # have to relink, otherwise we might link with an installed library
15068     # when we should be linking with a yet-to-be-installed one
15069     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15070     test "$hardcode_minus_L_CXX" != no; then
15071    # Linking always hardcodes the temporary library directory.
15072    hardcode_action_CXX=relink
15073  else
15074    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15075    hardcode_action_CXX=immediate
15076  fi
15077else
15078  # We cannot hardcode anything, or else we can only hardcode existing
15079  # directories.
15080  hardcode_action_CXX=unsupported
15081fi
15082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15083$as_echo "$hardcode_action_CXX" >&6; }
15084
15085if test "$hardcode_action_CXX" = relink ||
15086   test "$inherit_rpath_CXX" = yes; then
15087  # Fast installation is not supported
15088  enable_fast_install=no
15089elif test "$shlibpath_overrides_runpath" = yes ||
15090     test "$enable_shared" = no; then
15091  # Fast installation is not necessary
15092  enable_fast_install=needless
15093fi
15094
15095
15096
15097
15098
15099
15100
15101  fi # test -n "$compiler"
15102
15103  CC=$lt_save_CC
15104  CFLAGS=$lt_save_CFLAGS
15105  LDCXX=$LD
15106  LD=$lt_save_LD
15107  GCC=$lt_save_GCC
15108  with_gnu_ld=$lt_save_with_gnu_ld
15109  lt_cv_path_LDCXX=$lt_cv_path_LD
15110  lt_cv_path_LD=$lt_save_path_LD
15111  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15112  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15113fi # test "$_lt_caught_CXX_error" != yes
15114
15115ac_ext=c
15116ac_cpp='$CPP $CPPFLAGS'
15117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15119ac_compiler_gnu=$ac_cv_c_compiler_gnu
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135        ac_config_commands="$ac_config_commands libtool"
15136
15137
15138
15139
15140# Only expand once:
15141
15142
15143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15144$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15145set x ${MAKE-make}
15146ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15147if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
15148  $as_echo_n "(cached) " >&6
15149else
15150  cat >conftest.make <<\_ACEOF
15151SHELL = /bin/sh
15152all:
15153	@echo '@@@%%%=$(MAKE)=@@@%%%'
15154_ACEOF
15155# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15156case `${MAKE-make} -f conftest.make 2>/dev/null` in
15157  *@@@%%%=?*=@@@%%%*)
15158    eval ac_cv_prog_make_${ac_make}_set=yes;;
15159  *)
15160    eval ac_cv_prog_make_${ac_make}_set=no;;
15161esac
15162rm -f conftest.make
15163fi
15164if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15166$as_echo "yes" >&6; }
15167  SET_MAKE=
15168else
15169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15170$as_echo "no" >&6; }
15171  SET_MAKE="MAKE=${MAKE-make}"
15172fi
15173
15174
15175
15176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15177$as_echo_n "checking for ANSI C header files... " >&6; }
15178if ${ac_cv_header_stdc+:} false; then :
15179  $as_echo_n "(cached) " >&6
15180else
15181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15182/* end confdefs.h.  */
15183#include <stdlib.h>
15184#include <stdarg.h>
15185#include <string.h>
15186#include <float.h>
15187
15188int
15189main ()
15190{
15191
15192  ;
15193  return 0;
15194}
15195_ACEOF
15196if ac_fn_c_try_compile "$LINENO"; then :
15197  ac_cv_header_stdc=yes
15198else
15199  ac_cv_header_stdc=no
15200fi
15201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15202
15203if test $ac_cv_header_stdc = yes; then
15204  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206/* end confdefs.h.  */
15207#include <string.h>
15208
15209_ACEOF
15210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15211  $EGREP "memchr" >/dev/null 2>&1; then :
15212
15213else
15214  ac_cv_header_stdc=no
15215fi
15216rm -f conftest*
15217
15218fi
15219
15220if test $ac_cv_header_stdc = yes; then
15221  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223/* end confdefs.h.  */
15224#include <stdlib.h>
15225
15226_ACEOF
15227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15228  $EGREP "free" >/dev/null 2>&1; then :
15229
15230else
15231  ac_cv_header_stdc=no
15232fi
15233rm -f conftest*
15234
15235fi
15236
15237if test $ac_cv_header_stdc = yes; then
15238  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15239  if test "$cross_compiling" = yes; then :
15240  :
15241else
15242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15243/* end confdefs.h.  */
15244#include <ctype.h>
15245#include <stdlib.h>
15246#if ((' ' & 0x0FF) == 0x020)
15247# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15248# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15249#else
15250# define ISLOWER(c) \
15251		   (('a' <= (c) && (c) <= 'i') \
15252		     || ('j' <= (c) && (c) <= 'r') \
15253		     || ('s' <= (c) && (c) <= 'z'))
15254# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15255#endif
15256
15257#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15258int
15259main ()
15260{
15261  int i;
15262  for (i = 0; i < 256; i++)
15263    if (XOR (islower (i), ISLOWER (i))
15264	|| toupper (i) != TOUPPER (i))
15265      return 2;
15266  return 0;
15267}
15268_ACEOF
15269if ac_fn_c_try_run "$LINENO"; then :
15270
15271else
15272  ac_cv_header_stdc=no
15273fi
15274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15275  conftest.$ac_objext conftest.beam conftest.$ac_ext
15276fi
15277
15278fi
15279fi
15280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15281$as_echo "$ac_cv_header_stdc" >&6; }
15282if test $ac_cv_header_stdc = yes; then
15283
15284$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15285
15286fi
15287
15288for ac_header in limits.h unistd.h
15289do :
15290  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15291ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15292if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15293  cat >>confdefs.h <<_ACEOF
15294#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15295_ACEOF
15296
15297fi
15298
15299done
15300
15301
15302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15303$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15304if ${ac_cv_c_const+:} false; then :
15305  $as_echo_n "(cached) " >&6
15306else
15307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15308/* end confdefs.h.  */
15309
15310int
15311main ()
15312{
15313
15314#ifndef __cplusplus
15315  /* Ultrix mips cc rejects this sort of thing.  */
15316  typedef int charset[2];
15317  const charset cs = { 0, 0 };
15318  /* SunOS 4.1.1 cc rejects this.  */
15319  char const *const *pcpcc;
15320  char **ppc;
15321  /* NEC SVR4.0.2 mips cc rejects this.  */
15322  struct point {int x, y;};
15323  static struct point const zero = {0,0};
15324  /* AIX XL C 1.02.0.0 rejects this.
15325     It does not let you subtract one const X* pointer from another in
15326     an arm of an if-expression whose if-part is not a constant
15327     expression */
15328  const char *g = "string";
15329  pcpcc = &g + (g ? g-g : 0);
15330  /* HPUX 7.0 cc rejects these. */
15331  ++pcpcc;
15332  ppc = (char**) pcpcc;
15333  pcpcc = (char const *const *) ppc;
15334  { /* SCO 3.2v4 cc rejects this sort of thing.  */
15335    char tx;
15336    char *t = &tx;
15337    char const *s = 0 ? (char *) 0 : (char const *) 0;
15338
15339    *t++ = 0;
15340    if (s) return 0;
15341  }
15342  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15343    int x[] = {25, 17};
15344    const int *foo = &x[0];
15345    ++foo;
15346  }
15347  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15348    typedef const int *iptr;
15349    iptr p = 0;
15350    ++p;
15351  }
15352  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15353       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15354    struct s { int j; const int *ap[3]; } bx;
15355    struct s *b = &bx; b->j = 5;
15356  }
15357  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15358    const int foo = 10;
15359    if (!foo) return 0;
15360  }
15361  return !cs[0] && !zero.x;
15362#endif
15363
15364  ;
15365  return 0;
15366}
15367_ACEOF
15368if ac_fn_c_try_compile "$LINENO"; then :
15369  ac_cv_c_const=yes
15370else
15371  ac_cv_c_const=no
15372fi
15373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374fi
15375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15376$as_echo "$ac_cv_c_const" >&6; }
15377if test $ac_cv_c_const = no; then
15378
15379$as_echo "#define const /**/" >>confdefs.h
15380
15381fi
15382
15383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15384$as_echo_n "checking for inline... " >&6; }
15385if ${ac_cv_c_inline+:} false; then :
15386  $as_echo_n "(cached) " >&6
15387else
15388  ac_cv_c_inline=no
15389for ac_kw in inline __inline__ __inline; do
15390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391/* end confdefs.h.  */
15392#ifndef __cplusplus
15393typedef int foo_t;
15394static $ac_kw foo_t static_foo () {return 0; }
15395$ac_kw foo_t foo () {return 0; }
15396#endif
15397
15398_ACEOF
15399if ac_fn_c_try_compile "$LINENO"; then :
15400  ac_cv_c_inline=$ac_kw
15401fi
15402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15403  test "$ac_cv_c_inline" != no && break
15404done
15405
15406fi
15407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15408$as_echo "$ac_cv_c_inline" >&6; }
15409
15410case $ac_cv_c_inline in
15411  inline | yes) ;;
15412  *)
15413    case $ac_cv_c_inline in
15414      no) ac_val=;;
15415      *) ac_val=$ac_cv_c_inline;;
15416    esac
15417    cat >>confdefs.h <<_ACEOF
15418#ifndef __cplusplus
15419#define inline $ac_val
15420#endif
15421_ACEOF
15422    ;;
15423esac
15424
15425ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15426if test "x$ac_cv_type_size_t" = xyes; then :
15427
15428else
15429
15430cat >>confdefs.h <<_ACEOF
15431#define size_t unsigned int
15432_ACEOF
15433
15434fi
15435
15436
15437for ac_func in strerror
15438do :
15439  ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
15440if test "x$ac_cv_func_strerror" = xyes; then :
15441  cat >>confdefs.h <<_ACEOF
15442#define HAVE_STRERROR 1
15443_ACEOF
15444
15445fi
15446done
15447
15448
15449
15450
15451
15452
15453
15454
15455# Check whether --with-tifflib was given.
15456if test "${with_tifflib+set}" = set; then :
15457  withval=$with_tifflib;
15458    if test x"$withval" = "xno"; then
15459      ac_tiff_path=
15460
15461    elif test x"$withval" = x"yes"; then
15462      ac_tiff_path=/opt/local
15463    else
15464      ac_tiff_path="$withval"
15465    fi
15466
15467else
15468  ac_tiff_path=/opt/local
15469fi
15470
15471  if test x"$ac_tiff_path" != "x"; then
15472    saved_CPPFLAGS="$CPPFLAGS"
15473    CPPFLAGS="$CPPFLAGS -I$ac_tiff_path/include"
15474    ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
15475if test "x$ac_cv_header_tiff_h" = xyes; then :
15476
15477      saved_LDFLAGS="$LDFLAGS"
15478      LDFLAGS="$LDFLAGS -L$ac_tiff_path/lib"
15479      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
15480$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
15481if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
15482  $as_echo_n "(cached) " >&6
15483else
15484  ac_check_lib_save_LIBS=$LIBS
15485LIBS="-ltiff -lm $LIBS"
15486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487/* end confdefs.h.  */
15488
15489/* Override any GCC internal prototype to avoid an error.
15490   Use char because int might match the return type of a GCC
15491   builtin and then its argument prototype would still apply.  */
15492#ifdef __cplusplus
15493extern "C"
15494#endif
15495char TIFFOpen ();
15496int
15497main ()
15498{
15499return TIFFOpen ();
15500  ;
15501  return 0;
15502}
15503_ACEOF
15504if ac_fn_c_try_link "$LINENO"; then :
15505  ac_cv_lib_tiff_TIFFOpen=yes
15506else
15507  ac_cv_lib_tiff_TIFFOpen=no
15508fi
15509rm -f core conftest.err conftest.$ac_objext \
15510    conftest$ac_exeext conftest.$ac_ext
15511LIBS=$ac_check_lib_save_LIBS
15512fi
15513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
15514$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
15515if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
15516
15517        TIFF_CPPFLAGS=-I$ac_tiff_path/include
15518
15519        TIFF_LDFLAGS=-L$ac_tiff_path/lib
15520
15521        TIFF_LIBS=-ltiff
15522
15523        SICC_ICC_APPLY_PROFILES=IccApplyProfiles
15524
15525	$as_echo "#define HAVE_TIFFLIB 1" >>confdefs.h
15526
15527
15528
15529else
15530  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15531*** SampleICC requires a recent version of libtiff (3.6.1 or newer), which
15532*** you don't appear to have, if it is to create the iccApplyProfiles
15533*** command-line executable.
15534***
15535*** Interestingly, you have a tiff.h header, but the run-time linker is not
15536*** finding libtiff, or it is finding the wrong version, or there is some other
15537*** problem trying a test link against libtiff.
15538***
15539*** If you believe you have the TIFF headers and libraries, but they are not
15540*** in the standard locations (e.g. /usr/include or /opt/local/include) then
15541*** supply the root of this hierarchy to configure with --with-tifflib.  For
15542*** example if you keep the headers in /usr/people/fred/include and the libraries
15543*** in /usr/people/fred/lib, then specify --with-tifflib=/usr/people/fred.
15544***
15545*** On some systems, you'll need
15546*** to set your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf
15547*** to point to the proper version.  Also, make sure you have run ldconfig if
15548*** that is required on your system.
15549***
15550*** In the meantime, the generated hierarchy of Makefiles will not attempt to
15551*** build an iccApplyProfiles command-line executable, but everything else
15552*** (the SampleICC library and the other command-line executables) will be built.
15553			   " >&5
15554$as_echo "$as_me: WARNING:
15555*** SampleICC requires a recent version of libtiff (3.6.1 or newer), which
15556*** you don't appear to have, if it is to create the iccApplyProfiles
15557*** command-line executable.
15558***
15559*** Interestingly, you have a tiff.h header, but the run-time linker is not
15560*** finding libtiff, or it is finding the wrong version, or there is some other
15561*** problem trying a test link against libtiff.
15562***
15563*** If you believe you have the TIFF headers and libraries, but they are not
15564*** in the standard locations (e.g. /usr/include or /opt/local/include) then
15565*** supply the root of this hierarchy to configure with --with-tifflib.  For
15566*** example if you keep the headers in /usr/people/fred/include and the libraries
15567*** in /usr/people/fred/lib, then specify --with-tifflib=/usr/people/fred.
15568***
15569*** On some systems, you'll need
15570*** to set your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf
15571*** to point to the proper version.  Also, make sure you have run ldconfig if
15572*** that is required on your system.
15573***
15574*** In the meantime, the generated hierarchy of Makefiles will not attempt to
15575*** build an iccApplyProfiles command-line executable, but everything else
15576*** (the SampleICC library and the other command-line executables) will be built.
15577			   " >&2;}
15578
15579fi
15580
15581      LDFLAGS="$saved_LDFLAGS"
15582
15583else
15584
15585      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15586*** SampleICC requires the header files and libraries for a recent version of
15587*** the TIFF libraries (libtiff 3.6.1 or newer), if it is to create the
15588*** iccApplyProfiles command-line executable after it compiles the SampleICC
15589*** library and the other command-line executables.
15590***
15591*** You don't have the expected tiff.h header, so the link-time check for
15592*** a static or dynamic TIFF library was skipped.
15593***
15594*** If you believe you have the TIFF headers and libraries, but they are not
15595*** in the standard locations (e.g. /usr/include or /opt/local/include) then
15596*** supply the root of this hierarchy to configure with --with-tifflib.  For
15597*** example if you keep the headers in /usr/people/fred/include and the libraries
15598*** in /usr/people/fred/lib, then specify --with-tifflib=/usr/people/fred.
15599***
15600*** In the meantime, the generated hierarchy of Makefiles will not attempt to
15601*** build an iccApplyProfiles executable, but everything else will be built.
15602			   " >&5
15603$as_echo "$as_me: WARNING:
15604*** SampleICC requires the header files and libraries for a recent version of
15605*** the TIFF libraries (libtiff 3.6.1 or newer), if it is to create the
15606*** iccApplyProfiles command-line executable after it compiles the SampleICC
15607*** library and the other command-line executables.
15608***
15609*** You don't have the expected tiff.h header, so the link-time check for
15610*** a static or dynamic TIFF library was skipped.
15611***
15612*** If you believe you have the TIFF headers and libraries, but they are not
15613*** in the standard locations (e.g. /usr/include or /opt/local/include) then
15614*** supply the root of this hierarchy to configure with --with-tifflib.  For
15615*** example if you keep the headers in /usr/people/fred/include and the libraries
15616*** in /usr/people/fred/lib, then specify --with-tifflib=/usr/people/fred.
15617***
15618*** In the meantime, the generated hierarchy of Makefiles will not attempt to
15619*** build an iccApplyProfiles executable, but everything else will be built.
15620			   " >&2;}
15621
15622
15623fi
15624
15625
15626    CPPFLAGS="$saved_CPPFLAGS"
15627  fi
15628
15629
15630case "$host" in
15631*irix*)
15632  $as_echo "#define PLATFORM_IRIX 1" >>confdefs.h
15633
15634  ;;
15635*solaris*)
15636  $as_echo "#define PLATFORM_SUNOS5 1" >>confdefs.h
15637
15638  ;;
15639*osf*)
15640  $as_echo "#define PLATFORM_OSF1 1" >>confdefs.h
15641
15642  ;;
15643*darwin*)
15644  $as_echo "#define PLATFORM_DARWIN_PPC 1" >>confdefs.h
15645
15646  OSX_APPLICATION_LIBS="-framework ApplicationServices"
15647  ;;
15648esac
15649
15650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for processor-specific optimizations" >&5
15651$as_echo_n "checking for processor-specific optimizations... " >&6; }
15652case $target_cpu in
15653i686) EXTRA_CPU_CFLAGS=$(if $CC -march=i686 -S -o /dev/null -xc /dev/null > /dev/null; then echo "-march=i686"; fi) ;;
15654*athlon*)  EXTRA_CPU_CFLAGS=$(if $CC -march=i686 -S -o /dev/null -xc /dev/null > /dev/null; then echo "-march=i686"; fi) ;;
15655esac
15656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_CPU_CFLAGS" >&5
15657$as_echo "$EXTRA_CPU_CFLAGS" >&6; }
15658
15659AM_CFLAGS="$EXTRA_OPT_CFLAGS $EXTRA_CPU_CFLAGS"
15660AM_CXXFLAGS="$EXTRA_OPT_CFLAGS $EXTRA_CPU_CFLAGS"
15661
15662
15663
15664
15665
15666
15667
15668
15669ac_config_files="$ac_config_files Makefile sampleicc.pc IccProfLib/Makefile Tools/Makefile Tools/CmdLine/Makefile Tools/CmdLine/IccApplyNamedCmm/Makefile Tools/CmdLine/IccApplyProfiles/Makefile Tools/CmdLine/IccDumpProfile/Makefile Tools/CmdLine/IccGamutMapGirdle/Makefile Tools/CmdLine/IccGetBPCInfo/Makefile Tools/CmdLine/IccProfLibTest/Makefile Tools/CmdLine/IccRoundTrip/Makefile Tools/CmdLine/IccStripUnknownTags/Makefile Tools/CmdLine/IccV4ToMPE/Makefile Contrib/Makefile Contrib/CmdLine/Makefile Contrib/CmdLine/create_CLUT_profile/Makefile Contrib/CmdLine/create_CLUT_profile_from_probe/Makefile Contrib/CmdLine/create_display_profile/Makefile Contrib/ICC_utils/Makefile Contrib/Mac_OS_X/Makefile Contrib/Mac_OS_X/create_probe/Makefile Contrib/Mac_OS_X/extract_probe_data/Makefile Contrib/examples/Makefile Contrib/examples/RSR/Makefile Contrib/tests/Makefile Contrib/tests/flatten_AToB_tag/Makefile Contrib/tests/generate_device_codes/Makefile Contrib/tests/reconstruct_measurements/Makefile Contrib/tests/round_trip_PCS_LAB/Makefile"
15670
15671cat >confcache <<\_ACEOF
15672# This file is a shell script that caches the results of configure
15673# tests run on this system so they can be shared between configure
15674# scripts and configure runs, see configure's option --config-cache.
15675# It is not useful on other systems.  If it contains results you don't
15676# want to keep, you may remove or edit it.
15677#
15678# config.status only pays attention to the cache file if you give it
15679# the --recheck option to rerun configure.
15680#
15681# `ac_cv_env_foo' variables (set or unset) will be overridden when
15682# loading this file, other *unset* `ac_cv_foo' will be assigned the
15683# following values.
15684
15685_ACEOF
15686
15687# The following way of writing the cache mishandles newlines in values,
15688# but we know of no workaround that is simple, portable, and efficient.
15689# So, we kill variables containing newlines.
15690# Ultrix sh set writes to stderr and can't be redirected directly,
15691# and sets the high bit in the cache file unless we assign to the vars.
15692(
15693  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15694    eval ac_val=\$$ac_var
15695    case $ac_val in #(
15696    *${as_nl}*)
15697      case $ac_var in #(
15698      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15699$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15700      esac
15701      case $ac_var in #(
15702      _ | IFS | as_nl) ;; #(
15703      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15704      *) { eval $ac_var=; unset $ac_var;} ;;
15705      esac ;;
15706    esac
15707  done
15708
15709  (set) 2>&1 |
15710    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15711    *${as_nl}ac_space=\ *)
15712      # `set' does not quote correctly, so add quotes: double-quote
15713      # substitution turns \\\\ into \\, and sed turns \\ into \.
15714      sed -n \
15715	"s/'/'\\\\''/g;
15716	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15717      ;; #(
15718    *)
15719      # `set' quotes correctly as required by POSIX, so do not add quotes.
15720      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15721      ;;
15722    esac |
15723    sort
15724) |
15725  sed '
15726     /^ac_cv_env_/b end
15727     t clear
15728     :clear
15729     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15730     t end
15731     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15732     :end' >>confcache
15733if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15734  if test -w "$cache_file"; then
15735    if test "x$cache_file" != "x/dev/null"; then
15736      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15737$as_echo "$as_me: updating cache $cache_file" >&6;}
15738      if test ! -f "$cache_file" || test -h "$cache_file"; then
15739	cat confcache >"$cache_file"
15740      else
15741        case $cache_file in #(
15742        */* | ?:*)
15743	  mv -f confcache "$cache_file"$$ &&
15744	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15745        *)
15746	  mv -f confcache "$cache_file" ;;
15747	esac
15748      fi
15749    fi
15750  else
15751    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15752$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15753  fi
15754fi
15755rm -f confcache
15756
15757test "x$prefix" = xNONE && prefix=$ac_default_prefix
15758# Let make expand exec_prefix.
15759test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15760
15761# Transform confdefs.h into DEFS.
15762# Protect against shell expansion while executing Makefile rules.
15763# Protect against Makefile macro expansion.
15764#
15765# If the first sed substitution is executed (which looks for macros that
15766# take arguments), then branch to the quote section.  Otherwise,
15767# look for a macro that doesn't take arguments.
15768ac_script='
15769:mline
15770/\\$/{
15771 N
15772 s,\\\n,,
15773 b mline
15774}
15775t clear
15776:clear
15777s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
15778t quote
15779s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
15780t quote
15781b any
15782:quote
15783s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15784s/\[/\\&/g
15785s/\]/\\&/g
15786s/\$/$$/g
15787H
15788:any
15789${
15790	g
15791	s/^\n//
15792	s/\n/ /g
15793	p
15794}
15795'
15796DEFS=`sed -n "$ac_script" confdefs.h`
15797
15798
15799ac_libobjs=
15800ac_ltlibobjs=
15801U=
15802for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15803  # 1. Remove the extension, and $U if already installed.
15804  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15805  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15806  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15807  #    will be set to the directory where LIBOBJS objects are built.
15808  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15809  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15810done
15811LIBOBJS=$ac_libobjs
15812
15813LTLIBOBJS=$ac_ltlibobjs
15814
15815
15816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15817$as_echo_n "checking that generated files are newer than configure... " >&6; }
15818   if test -n "$am_sleep_pid"; then
15819     # Hide warnings about reused PIDs.
15820     wait $am_sleep_pid 2>/dev/null
15821   fi
15822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15823$as_echo "done" >&6; }
15824 if test -n "$EXEEXT"; then
15825  am__EXEEXT_TRUE=
15826  am__EXEEXT_FALSE='#'
15827else
15828  am__EXEEXT_TRUE='#'
15829  am__EXEEXT_FALSE=
15830fi
15831
15832if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15833  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15834Usually this means the macro was only invoked conditionally." "$LINENO" 5
15835fi
15836if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15837  as_fn_error $? "conditional \"AMDEP\" was never defined.
15838Usually this means the macro was only invoked conditionally." "$LINENO" 5
15839fi
15840if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15841  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15842Usually this means the macro was only invoked conditionally." "$LINENO" 5
15843fi
15844if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15845  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15846Usually this means the macro was only invoked conditionally." "$LINENO" 5
15847fi
15848
15849: "${CONFIG_STATUS=./config.status}"
15850ac_write_fail=0
15851ac_clean_files_save=$ac_clean_files
15852ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15853{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15854$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15855as_write_fail=0
15856cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15857#! $SHELL
15858# Generated by $as_me.
15859# Run this file to recreate the current configuration.
15860# Compiler output produced by configure, useful for debugging
15861# configure, is in config.log if it exists.
15862
15863debug=false
15864ac_cs_recheck=false
15865ac_cs_silent=false
15866
15867SHELL=\${CONFIG_SHELL-$SHELL}
15868export SHELL
15869_ASEOF
15870cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15871## -------------------- ##
15872## M4sh Initialization. ##
15873## -------------------- ##
15874
15875# Be more Bourne compatible
15876DUALCASE=1; export DUALCASE # for MKS sh
15877if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15878  emulate sh
15879  NULLCMD=:
15880  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15881  # is contrary to our usage.  Disable this feature.
15882  alias -g '${1+"$@"}'='"$@"'
15883  setopt NO_GLOB_SUBST
15884else
15885  case `(set -o) 2>/dev/null` in #(
15886  *posix*) :
15887    set -o posix ;; #(
15888  *) :
15889     ;;
15890esac
15891fi
15892
15893
15894as_nl='
15895'
15896export as_nl
15897# Printing a long string crashes Solaris 7 /usr/bin/printf.
15898as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15899as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15900as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15901# Prefer a ksh shell builtin over an external printf program on Solaris,
15902# but without wasting forks for bash or zsh.
15903if test -z "$BASH_VERSION$ZSH_VERSION" \
15904    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15905  as_echo='print -r --'
15906  as_echo_n='print -rn --'
15907elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15908  as_echo='printf %s\n'
15909  as_echo_n='printf %s'
15910else
15911  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15912    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15913    as_echo_n='/usr/ucb/echo -n'
15914  else
15915    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15916    as_echo_n_body='eval
15917      arg=$1;
15918      case $arg in #(
15919      *"$as_nl"*)
15920	expr "X$arg" : "X\\(.*\\)$as_nl";
15921	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15922      esac;
15923      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15924    '
15925    export as_echo_n_body
15926    as_echo_n='sh -c $as_echo_n_body as_echo'
15927  fi
15928  export as_echo_body
15929  as_echo='sh -c $as_echo_body as_echo'
15930fi
15931
15932# The user is always right.
15933if test "${PATH_SEPARATOR+set}" != set; then
15934  PATH_SEPARATOR=:
15935  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15936    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15937      PATH_SEPARATOR=';'
15938  }
15939fi
15940
15941
15942# IFS
15943# We need space, tab and new line, in precisely that order.  Quoting is
15944# there to prevent editors from complaining about space-tab.
15945# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15946# splitting by setting IFS to empty value.)
15947IFS=" ""	$as_nl"
15948
15949# Find who we are.  Look in the path if we contain no directory separator.
15950as_myself=
15951case $0 in #((
15952  *[\\/]* ) as_myself=$0 ;;
15953  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15954for as_dir in $PATH
15955do
15956  IFS=$as_save_IFS
15957  test -z "$as_dir" && as_dir=.
15958    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15959  done
15960IFS=$as_save_IFS
15961
15962     ;;
15963esac
15964# We did not find ourselves, most probably we were run as `sh COMMAND'
15965# in which case we are not to be found in the path.
15966if test "x$as_myself" = x; then
15967  as_myself=$0
15968fi
15969if test ! -f "$as_myself"; then
15970  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15971  exit 1
15972fi
15973
15974# Unset variables that we do not need and which cause bugs (e.g. in
15975# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15976# suppresses any "Segmentation fault" message there.  '((' could
15977# trigger a bug in pdksh 5.2.14.
15978for as_var in BASH_ENV ENV MAIL MAILPATH
15979do eval test x\${$as_var+set} = xset \
15980  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15981done
15982PS1='$ '
15983PS2='> '
15984PS4='+ '
15985
15986# NLS nuisances.
15987LC_ALL=C
15988export LC_ALL
15989LANGUAGE=C
15990export LANGUAGE
15991
15992# CDPATH.
15993(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15994
15995
15996# as_fn_error STATUS ERROR [LINENO LOG_FD]
15997# ----------------------------------------
15998# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15999# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16000# script with STATUS, using 1 if that was 0.
16001as_fn_error ()
16002{
16003  as_status=$1; test $as_status -eq 0 && as_status=1
16004  if test "$4"; then
16005    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16006    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16007  fi
16008  $as_echo "$as_me: error: $2" >&2
16009  as_fn_exit $as_status
16010} # as_fn_error
16011
16012
16013# as_fn_set_status STATUS
16014# -----------------------
16015# Set $? to STATUS, without forking.
16016as_fn_set_status ()
16017{
16018  return $1
16019} # as_fn_set_status
16020
16021# as_fn_exit STATUS
16022# -----------------
16023# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16024as_fn_exit ()
16025{
16026  set +e
16027  as_fn_set_status $1
16028  exit $1
16029} # as_fn_exit
16030
16031# as_fn_unset VAR
16032# ---------------
16033# Portably unset VAR.
16034as_fn_unset ()
16035{
16036  { eval $1=; unset $1;}
16037}
16038as_unset=as_fn_unset
16039# as_fn_append VAR VALUE
16040# ----------------------
16041# Append the text in VALUE to the end of the definition contained in VAR. Take
16042# advantage of any shell optimizations that allow amortized linear growth over
16043# repeated appends, instead of the typical quadratic growth present in naive
16044# implementations.
16045if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16046  eval 'as_fn_append ()
16047  {
16048    eval $1+=\$2
16049  }'
16050else
16051  as_fn_append ()
16052  {
16053    eval $1=\$$1\$2
16054  }
16055fi # as_fn_append
16056
16057# as_fn_arith ARG...
16058# ------------------
16059# Perform arithmetic evaluation on the ARGs, and store the result in the
16060# global $as_val. Take advantage of shells that can avoid forks. The arguments
16061# must be portable across $(()) and expr.
16062if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16063  eval 'as_fn_arith ()
16064  {
16065    as_val=$(( $* ))
16066  }'
16067else
16068  as_fn_arith ()
16069  {
16070    as_val=`expr "$@" || test $? -eq 1`
16071  }
16072fi # as_fn_arith
16073
16074
16075if expr a : '\(a\)' >/dev/null 2>&1 &&
16076   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16077  as_expr=expr
16078else
16079  as_expr=false
16080fi
16081
16082if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16083  as_basename=basename
16084else
16085  as_basename=false
16086fi
16087
16088if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16089  as_dirname=dirname
16090else
16091  as_dirname=false
16092fi
16093
16094as_me=`$as_basename -- "$0" ||
16095$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16096	 X"$0" : 'X\(//\)$' \| \
16097	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16098$as_echo X/"$0" |
16099    sed '/^.*\/\([^/][^/]*\)\/*$/{
16100	    s//\1/
16101	    q
16102	  }
16103	  /^X\/\(\/\/\)$/{
16104	    s//\1/
16105	    q
16106	  }
16107	  /^X\/\(\/\).*/{
16108	    s//\1/
16109	    q
16110	  }
16111	  s/.*/./; q'`
16112
16113# Avoid depending upon Character Ranges.
16114as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16115as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16116as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16117as_cr_digits='0123456789'
16118as_cr_alnum=$as_cr_Letters$as_cr_digits
16119
16120ECHO_C= ECHO_N= ECHO_T=
16121case `echo -n x` in #(((((
16122-n*)
16123  case `echo 'xy\c'` in
16124  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16125  xy)  ECHO_C='\c';;
16126  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16127       ECHO_T='	';;
16128  esac;;
16129*)
16130  ECHO_N='-n';;
16131esac
16132
16133rm -f conf$$ conf$$.exe conf$$.file
16134if test -d conf$$.dir; then
16135  rm -f conf$$.dir/conf$$.file
16136else
16137  rm -f conf$$.dir
16138  mkdir conf$$.dir 2>/dev/null
16139fi
16140if (echo >conf$$.file) 2>/dev/null; then
16141  if ln -s conf$$.file conf$$ 2>/dev/null; then
16142    as_ln_s='ln -s'
16143    # ... but there are two gotchas:
16144    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16145    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16146    # In both cases, we have to default to `cp -pR'.
16147    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16148      as_ln_s='cp -pR'
16149  elif ln conf$$.file conf$$ 2>/dev/null; then
16150    as_ln_s=ln
16151  else
16152    as_ln_s='cp -pR'
16153  fi
16154else
16155  as_ln_s='cp -pR'
16156fi
16157rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16158rmdir conf$$.dir 2>/dev/null
16159
16160
16161# as_fn_mkdir_p
16162# -------------
16163# Create "$as_dir" as a directory, including parents if necessary.
16164as_fn_mkdir_p ()
16165{
16166
16167  case $as_dir in #(
16168  -*) as_dir=./$as_dir;;
16169  esac
16170  test -d "$as_dir" || eval $as_mkdir_p || {
16171    as_dirs=
16172    while :; do
16173      case $as_dir in #(
16174      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16175      *) as_qdir=$as_dir;;
16176      esac
16177      as_dirs="'$as_qdir' $as_dirs"
16178      as_dir=`$as_dirname -- "$as_dir" ||
16179$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16180	 X"$as_dir" : 'X\(//\)[^/]' \| \
16181	 X"$as_dir" : 'X\(//\)$' \| \
16182	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16183$as_echo X"$as_dir" |
16184    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16185	    s//\1/
16186	    q
16187	  }
16188	  /^X\(\/\/\)[^/].*/{
16189	    s//\1/
16190	    q
16191	  }
16192	  /^X\(\/\/\)$/{
16193	    s//\1/
16194	    q
16195	  }
16196	  /^X\(\/\).*/{
16197	    s//\1/
16198	    q
16199	  }
16200	  s/.*/./; q'`
16201      test -d "$as_dir" && break
16202    done
16203    test -z "$as_dirs" || eval "mkdir $as_dirs"
16204  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16205
16206
16207} # as_fn_mkdir_p
16208if mkdir -p . 2>/dev/null; then
16209  as_mkdir_p='mkdir -p "$as_dir"'
16210else
16211  test -d ./-p && rmdir ./-p
16212  as_mkdir_p=false
16213fi
16214
16215
16216# as_fn_executable_p FILE
16217# -----------------------
16218# Test if FILE is an executable regular file.
16219as_fn_executable_p ()
16220{
16221  test -f "$1" && test -x "$1"
16222} # as_fn_executable_p
16223as_test_x='test -x'
16224as_executable_p=as_fn_executable_p
16225
16226# Sed expression to map a string onto a valid CPP name.
16227as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16228
16229# Sed expression to map a string onto a valid variable name.
16230as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16231
16232
16233exec 6>&1
16234## ----------------------------------- ##
16235## Main body of $CONFIG_STATUS script. ##
16236## ----------------------------------- ##
16237_ASEOF
16238test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16239
16240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16241# Save the log message, to keep $0 and so on meaningful, and to
16242# report actual input values of CONFIG_FILES etc. instead of their
16243# values after options handling.
16244ac_log="
16245This file was extended by $as_me, which was
16246generated by GNU Autoconf 2.69.  Invocation command line was
16247
16248  CONFIG_FILES    = $CONFIG_FILES
16249  CONFIG_HEADERS  = $CONFIG_HEADERS
16250  CONFIG_LINKS    = $CONFIG_LINKS
16251  CONFIG_COMMANDS = $CONFIG_COMMANDS
16252  $ $0 $@
16253
16254on `(hostname || uname -n) 2>/dev/null | sed 1q`
16255"
16256
16257_ACEOF
16258
16259case $ac_config_files in *"
16260"*) set x $ac_config_files; shift; ac_config_files=$*;;
16261esac
16262
16263
16264
16265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16266# Files that config.status was made for.
16267config_files="$ac_config_files"
16268config_commands="$ac_config_commands"
16269
16270_ACEOF
16271
16272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16273ac_cs_usage="\
16274\`$as_me' instantiates files and other configuration actions
16275from templates according to the current configuration.  Unless the files
16276and actions are specified as TAGs, all are instantiated by default.
16277
16278Usage: $0 [OPTION]... [TAG]...
16279
16280  -h, --help       print this help, then exit
16281  -V, --version    print version number and configuration settings, then exit
16282      --config     print configuration, then exit
16283  -q, --quiet, --silent
16284                   do not print progress messages
16285  -d, --debug      don't remove temporary files
16286      --recheck    update $as_me by reconfiguring in the same conditions
16287      --file=FILE[:TEMPLATE]
16288                   instantiate the configuration file FILE
16289
16290Configuration files:
16291$config_files
16292
16293Configuration commands:
16294$config_commands
16295
16296Report bugs to the package provider."
16297
16298_ACEOF
16299cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16300ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16301ac_cs_version="\\
16302config.status
16303configured by $0, generated by GNU Autoconf 2.69,
16304  with options \\"\$ac_cs_config\\"
16305
16306Copyright (C) 2012 Free Software Foundation, Inc.
16307This config.status script is free software; the Free Software Foundation
16308gives unlimited permission to copy, distribute and modify it."
16309
16310ac_pwd='$ac_pwd'
16311srcdir='$srcdir'
16312INSTALL='$INSTALL'
16313MKDIR_P='$MKDIR_P'
16314AWK='$AWK'
16315test -n "\$AWK" || AWK=awk
16316_ACEOF
16317
16318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16319# The default lists apply if the user does not specify any file.
16320ac_need_defaults=:
16321while test $# != 0
16322do
16323  case $1 in
16324  --*=?*)
16325    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16326    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16327    ac_shift=:
16328    ;;
16329  --*=)
16330    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16331    ac_optarg=
16332    ac_shift=:
16333    ;;
16334  *)
16335    ac_option=$1
16336    ac_optarg=$2
16337    ac_shift=shift
16338    ;;
16339  esac
16340
16341  case $ac_option in
16342  # Handling of the options.
16343  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16344    ac_cs_recheck=: ;;
16345  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16346    $as_echo "$ac_cs_version"; exit ;;
16347  --config | --confi | --conf | --con | --co | --c )
16348    $as_echo "$ac_cs_config"; exit ;;
16349  --debug | --debu | --deb | --de | --d | -d )
16350    debug=: ;;
16351  --file | --fil | --fi | --f )
16352    $ac_shift
16353    case $ac_optarg in
16354    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16355    '') as_fn_error $? "missing file argument" ;;
16356    esac
16357    as_fn_append CONFIG_FILES " '$ac_optarg'"
16358    ac_need_defaults=false;;
16359  --he | --h |  --help | --hel | -h )
16360    $as_echo "$ac_cs_usage"; exit ;;
16361  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16362  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16363    ac_cs_silent=: ;;
16364
16365  # This is an error.
16366  -*) as_fn_error $? "unrecognized option: \`$1'
16367Try \`$0 --help' for more information." ;;
16368
16369  *) as_fn_append ac_config_targets " $1"
16370     ac_need_defaults=false ;;
16371
16372  esac
16373  shift
16374done
16375
16376ac_configure_extra_args=
16377
16378if $ac_cs_silent; then
16379  exec 6>/dev/null
16380  ac_configure_extra_args="$ac_configure_extra_args --silent"
16381fi
16382
16383_ACEOF
16384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16385if \$ac_cs_recheck; then
16386  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16387  shift
16388  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16389  CONFIG_SHELL='$SHELL'
16390  export CONFIG_SHELL
16391  exec "\$@"
16392fi
16393
16394_ACEOF
16395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16396exec 5>>config.log
16397{
16398  echo
16399  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16400## Running $as_me. ##
16401_ASBOX
16402  $as_echo "$ac_log"
16403} >&5
16404
16405_ACEOF
16406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16407#
16408# INIT-COMMANDS
16409#
16410AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16411
16412
16413# The HP-UX ksh and POSIX shell print the target directory to stdout
16414# if CDPATH is set.
16415(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16416
16417sed_quote_subst='$sed_quote_subst'
16418double_quote_subst='$double_quote_subst'
16419delay_variable_subst='$delay_variable_subst'
16420macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16421macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16422enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16423enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16424pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16425enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16426SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16427ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16428PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16429host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16430host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16431host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16432build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16433build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16434build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16435SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16436Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16437GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16438EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16439FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16440LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16441NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16442LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16443max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16444ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16445exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16446lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16447lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16448lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16449lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16450lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16451reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16452reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16453OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16454deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16455file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16456file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16457want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16458DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16459sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16460AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16461AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16462archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16463STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16464RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16465old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16466old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16467old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16468lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16469CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16470CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16471compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16472GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16473lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16474lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16475lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16476lt_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"`'
16477nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16478lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16479objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16480MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16481lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16482lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16483lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16484lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16485lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16486need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16487MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16488DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16489NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16490LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16491OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16492OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16493libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16494shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16495extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16496archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16497enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16498export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16499whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16500compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16501old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16502old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16503archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16504archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16505module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16506module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16507with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16508allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16509no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16510hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16511hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16512hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16513hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16514hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16515hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16516hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16517inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16518link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16519always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16520export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16521exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16522include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16523prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16524postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16525file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16526variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16527need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16528need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16529version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16530runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16531shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16532shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16533libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16534library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16535soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16536install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16537postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16538postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16539finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16540finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16541hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16542sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16543sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16544hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16545enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16546enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16547enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16548old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16549striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16550compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16551predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16552postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16553predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16554postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16555compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16556LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16557reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16558reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16559old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16560compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16561GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16562lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16563lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16564lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16565lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16566lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16567archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16568enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16569export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16570whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16571compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16572old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16573old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16574archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16575archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16576module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16577module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16578with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16579allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16580no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16581hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16582hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16583hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16584hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16585hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16586hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16587hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16588inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16589link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16590always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16591export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16592exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16593include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16594prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16595postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16596file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16597hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16598compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16599predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16600postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16601predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16602postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16603compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16604
16605LTCC='$LTCC'
16606LTCFLAGS='$LTCFLAGS'
16607compiler='$compiler_DEFAULT'
16608
16609# A function that is used when there is no print builtin or printf.
16610func_fallback_echo ()
16611{
16612  eval 'cat <<_LTECHO_EOF
16613\$1
16614_LTECHO_EOF'
16615}
16616
16617# Quote evaled strings.
16618for var in SHELL \
16619ECHO \
16620PATH_SEPARATOR \
16621SED \
16622GREP \
16623EGREP \
16624FGREP \
16625LD \
16626NM \
16627LN_S \
16628lt_SP2NL \
16629lt_NL2SP \
16630reload_flag \
16631OBJDUMP \
16632deplibs_check_method \
16633file_magic_cmd \
16634file_magic_glob \
16635want_nocaseglob \
16636DLLTOOL \
16637sharedlib_from_linklib_cmd \
16638AR \
16639AR_FLAGS \
16640archiver_list_spec \
16641STRIP \
16642RANLIB \
16643CC \
16644CFLAGS \
16645compiler \
16646lt_cv_sys_global_symbol_pipe \
16647lt_cv_sys_global_symbol_to_cdecl \
16648lt_cv_sys_global_symbol_to_c_name_address \
16649lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16650nm_file_list_spec \
16651lt_prog_compiler_no_builtin_flag \
16652lt_prog_compiler_pic \
16653lt_prog_compiler_wl \
16654lt_prog_compiler_static \
16655lt_cv_prog_compiler_c_o \
16656need_locks \
16657MANIFEST_TOOL \
16658DSYMUTIL \
16659NMEDIT \
16660LIPO \
16661OTOOL \
16662OTOOL64 \
16663shrext_cmds \
16664export_dynamic_flag_spec \
16665whole_archive_flag_spec \
16666compiler_needs_object \
16667with_gnu_ld \
16668allow_undefined_flag \
16669no_undefined_flag \
16670hardcode_libdir_flag_spec \
16671hardcode_libdir_separator \
16672exclude_expsyms \
16673include_expsyms \
16674file_list_spec \
16675variables_saved_for_relink \
16676libname_spec \
16677library_names_spec \
16678soname_spec \
16679install_override_mode \
16680finish_eval \
16681old_striplib \
16682striplib \
16683compiler_lib_search_dirs \
16684predep_objects \
16685postdep_objects \
16686predeps \
16687postdeps \
16688compiler_lib_search_path \
16689LD_CXX \
16690reload_flag_CXX \
16691compiler_CXX \
16692lt_prog_compiler_no_builtin_flag_CXX \
16693lt_prog_compiler_pic_CXX \
16694lt_prog_compiler_wl_CXX \
16695lt_prog_compiler_static_CXX \
16696lt_cv_prog_compiler_c_o_CXX \
16697export_dynamic_flag_spec_CXX \
16698whole_archive_flag_spec_CXX \
16699compiler_needs_object_CXX \
16700with_gnu_ld_CXX \
16701allow_undefined_flag_CXX \
16702no_undefined_flag_CXX \
16703hardcode_libdir_flag_spec_CXX \
16704hardcode_libdir_separator_CXX \
16705exclude_expsyms_CXX \
16706include_expsyms_CXX \
16707file_list_spec_CXX \
16708compiler_lib_search_dirs_CXX \
16709predep_objects_CXX \
16710postdep_objects_CXX \
16711predeps_CXX \
16712postdeps_CXX \
16713compiler_lib_search_path_CXX; do
16714    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16715    *[\\\\\\\`\\"\\\$]*)
16716      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16717      ;;
16718    *)
16719      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16720      ;;
16721    esac
16722done
16723
16724# Double-quote double-evaled strings.
16725for var in reload_cmds \
16726old_postinstall_cmds \
16727old_postuninstall_cmds \
16728old_archive_cmds \
16729extract_expsyms_cmds \
16730old_archive_from_new_cmds \
16731old_archive_from_expsyms_cmds \
16732archive_cmds \
16733archive_expsym_cmds \
16734module_cmds \
16735module_expsym_cmds \
16736export_symbols_cmds \
16737prelink_cmds \
16738postlink_cmds \
16739postinstall_cmds \
16740postuninstall_cmds \
16741finish_cmds \
16742sys_lib_search_path_spec \
16743sys_lib_dlsearch_path_spec \
16744reload_cmds_CXX \
16745old_archive_cmds_CXX \
16746old_archive_from_new_cmds_CXX \
16747old_archive_from_expsyms_cmds_CXX \
16748archive_cmds_CXX \
16749archive_expsym_cmds_CXX \
16750module_cmds_CXX \
16751module_expsym_cmds_CXX \
16752export_symbols_cmds_CXX \
16753prelink_cmds_CXX \
16754postlink_cmds_CXX; do
16755    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16756    *[\\\\\\\`\\"\\\$]*)
16757      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16758      ;;
16759    *)
16760      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16761      ;;
16762    esac
16763done
16764
16765ac_aux_dir='$ac_aux_dir'
16766xsi_shell='$xsi_shell'
16767lt_shell_append='$lt_shell_append'
16768
16769# See if we are running on zsh, and set the options which allow our
16770# commands through without removal of \ escapes INIT.
16771if test -n "\${ZSH_VERSION+set}" ; then
16772   setopt NO_GLOB_SUBST
16773fi
16774
16775
16776    PACKAGE='$PACKAGE'
16777    VERSION='$VERSION'
16778    TIMESTAMP='$TIMESTAMP'
16779    RM='$RM'
16780    ofile='$ofile'
16781
16782
16783
16784
16785
16786
16787_ACEOF
16788
16789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16790
16791# Handling of arguments.
16792for ac_config_target in $ac_config_targets
16793do
16794  case $ac_config_target in
16795    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16796    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16797    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16798    "sampleicc.pc") CONFIG_FILES="$CONFIG_FILES sampleicc.pc" ;;
16799    "IccProfLib/Makefile") CONFIG_FILES="$CONFIG_FILES IccProfLib/Makefile" ;;
16800    "Tools/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/Makefile" ;;
16801    "Tools/CmdLine/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/CmdLine/Makefile" ;;
16802    "Tools/CmdLine/IccApplyNamedCmm/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/CmdLine/IccApplyNamedCmm/Makefile" ;;
16803    "Tools/CmdLine/IccApplyProfiles/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/CmdLine/IccApplyProfiles/Makefile" ;;
16804    "Tools/CmdLine/IccDumpProfile/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/CmdLine/IccDumpProfile/Makefile" ;;
16805    "Tools/CmdLine/IccGamutMapGirdle/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/CmdLine/IccGamutMapGirdle/Makefile" ;;
16806    "Tools/CmdLine/IccGetBPCInfo/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/CmdLine/IccGetBPCInfo/Makefile" ;;
16807    "Tools/CmdLine/IccProfLibTest/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/CmdLine/IccProfLibTest/Makefile" ;;
16808    "Tools/CmdLine/IccRoundTrip/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/CmdLine/IccRoundTrip/Makefile" ;;
16809    "Tools/CmdLine/IccStripUnknownTags/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/CmdLine/IccStripUnknownTags/Makefile" ;;
16810    "Tools/CmdLine/IccV4ToMPE/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/CmdLine/IccV4ToMPE/Makefile" ;;
16811    "Contrib/Makefile") CONFIG_FILES="$CONFIG_FILES Contrib/Makefile" ;;
16812    "Contrib/CmdLine/Makefile") CONFIG_FILES="$CONFIG_FILES Contrib/CmdLine/Makefile" ;;
16813    "Contrib/CmdLine/create_CLUT_profile/Makefile") CONFIG_FILES="$CONFIG_FILES Contrib/CmdLine/create_CLUT_profile/Makefile" ;;
16814    "Contrib/CmdLine/create_CLUT_profile_from_probe/Makefile") CONFIG_FILES="$CONFIG_FILES Contrib/CmdLine/create_CLUT_profile_from_probe/Makefile" ;;
16815    "Contrib/CmdLine/create_display_profile/Makefile") CONFIG_FILES="$CONFIG_FILES Contrib/CmdLine/create_display_profile/Makefile" ;;
16816    "Contrib/ICC_utils/Makefile") CONFIG_FILES="$CONFIG_FILES Contrib/ICC_utils/Makefile" ;;
16817    "Contrib/Mac_OS_X/Makefile") CONFIG_FILES="$CONFIG_FILES Contrib/Mac_OS_X/Makefile" ;;
16818    "Contrib/Mac_OS_X/create_probe/Makefile") CONFIG_FILES="$CONFIG_FILES Contrib/Mac_OS_X/create_probe/Makefile" ;;
16819    "Contrib/Mac_OS_X/extract_probe_data/Makefile") CONFIG_FILES="$CONFIG_FILES Contrib/Mac_OS_X/extract_probe_data/Makefile" ;;
16820    "Contrib/examples/Makefile") CONFIG_FILES="$CONFIG_FILES Contrib/examples/Makefile" ;;
16821    "Contrib/examples/RSR/Makefile") CONFIG_FILES="$CONFIG_FILES Contrib/examples/RSR/Makefile" ;;
16822    "Contrib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES Contrib/tests/Makefile" ;;
16823    "Contrib/tests/flatten_AToB_tag/Makefile") CONFIG_FILES="$CONFIG_FILES Contrib/tests/flatten_AToB_tag/Makefile" ;;
16824    "Contrib/tests/generate_device_codes/Makefile") CONFIG_FILES="$CONFIG_FILES Contrib/tests/generate_device_codes/Makefile" ;;
16825    "Contrib/tests/reconstruct_measurements/Makefile") CONFIG_FILES="$CONFIG_FILES Contrib/tests/reconstruct_measurements/Makefile" ;;
16826    "Contrib/tests/round_trip_PCS_LAB/Makefile") CONFIG_FILES="$CONFIG_FILES Contrib/tests/round_trip_PCS_LAB/Makefile" ;;
16827
16828  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16829  esac
16830done
16831
16832
16833# If the user did not use the arguments to specify the items to instantiate,
16834# then the envvar interface is used.  Set only those that are not.
16835# We use the long form for the default assignment because of an extremely
16836# bizarre bug on SunOS 4.1.3.
16837if $ac_need_defaults; then
16838  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16839  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16840fi
16841
16842# Have a temporary directory for convenience.  Make it in the build tree
16843# simply because there is no reason against having it here, and in addition,
16844# creating and moving files from /tmp can sometimes cause problems.
16845# Hook for its removal unless debugging.
16846# Note that there is a small window in which the directory will not be cleaned:
16847# after its creation but before its name has been assigned to `$tmp'.
16848$debug ||
16849{
16850  tmp= ac_tmp=
16851  trap 'exit_status=$?
16852  : "${ac_tmp:=$tmp}"
16853  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16854' 0
16855  trap 'as_fn_exit 1' 1 2 13 15
16856}
16857# Create a (secure) tmp directory for tmp files.
16858
16859{
16860  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16861  test -d "$tmp"
16862}  ||
16863{
16864  tmp=./conf$$-$RANDOM
16865  (umask 077 && mkdir "$tmp")
16866} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16867ac_tmp=$tmp
16868
16869# Set up the scripts for CONFIG_FILES section.
16870# No need to generate them if there are no CONFIG_FILES.
16871# This happens for instance with `./config.status config.h'.
16872if test -n "$CONFIG_FILES"; then
16873
16874
16875ac_cr=`echo X | tr X '\015'`
16876# On cygwin, bash can eat \r inside `` if the user requested igncr.
16877# But we know of no other shell where ac_cr would be empty at this
16878# point, so we can use a bashism as a fallback.
16879if test "x$ac_cr" = x; then
16880  eval ac_cr=\$\'\\r\'
16881fi
16882ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16883if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16884  ac_cs_awk_cr='\\r'
16885else
16886  ac_cs_awk_cr=$ac_cr
16887fi
16888
16889echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16890_ACEOF
16891
16892
16893{
16894  echo "cat >conf$$subs.awk <<_ACEOF" &&
16895  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16896  echo "_ACEOF"
16897} >conf$$subs.sh ||
16898  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16899ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16900ac_delim='%!_!# '
16901for ac_last_try in false false false false false :; do
16902  . ./conf$$subs.sh ||
16903    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16904
16905  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16906  if test $ac_delim_n = $ac_delim_num; then
16907    break
16908  elif $ac_last_try; then
16909    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16910  else
16911    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16912  fi
16913done
16914rm -f conf$$subs.sh
16915
16916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16917cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16918_ACEOF
16919sed -n '
16920h
16921s/^/S["/; s/!.*/"]=/
16922p
16923g
16924s/^[^!]*!//
16925:repl
16926t repl
16927s/'"$ac_delim"'$//
16928t delim
16929:nl
16930h
16931s/\(.\{148\}\)..*/\1/
16932t more1
16933s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16934p
16935n
16936b repl
16937:more1
16938s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16939p
16940g
16941s/.\{148\}//
16942t nl
16943:delim
16944h
16945s/\(.\{148\}\)..*/\1/
16946t more2
16947s/["\\]/\\&/g; s/^/"/; s/$/"/
16948p
16949b
16950:more2
16951s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16952p
16953g
16954s/.\{148\}//
16955t delim
16956' <conf$$subs.awk | sed '
16957/^[^""]/{
16958  N
16959  s/\n//
16960}
16961' >>$CONFIG_STATUS || ac_write_fail=1
16962rm -f conf$$subs.awk
16963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16964_ACAWK
16965cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16966  for (key in S) S_is_set[key] = 1
16967  FS = ""
16968
16969}
16970{
16971  line = $ 0
16972  nfields = split(line, field, "@")
16973  substed = 0
16974  len = length(field[1])
16975  for (i = 2; i < nfields; i++) {
16976    key = field[i]
16977    keylen = length(key)
16978    if (S_is_set[key]) {
16979      value = S[key]
16980      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16981      len += length(value) + length(field[++i])
16982      substed = 1
16983    } else
16984      len += 1 + keylen
16985  }
16986
16987  print line
16988}
16989
16990_ACAWK
16991_ACEOF
16992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16993if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16994  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16995else
16996  cat
16997fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16998  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16999_ACEOF
17000
17001# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17002# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17003# trailing colons and then remove the whole line if VPATH becomes empty
17004# (actually we leave an empty line to preserve line numbers).
17005if test "x$srcdir" = x.; then
17006  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17007h
17008s///
17009s/^/:/
17010s/[	 ]*$/:/
17011s/:\$(srcdir):/:/g
17012s/:\${srcdir}:/:/g
17013s/:@srcdir@:/:/g
17014s/^:*//
17015s/:*$//
17016x
17017s/\(=[	 ]*\).*/\1/
17018G
17019s/\n//
17020s/^[^=]*=[	 ]*$//
17021}'
17022fi
17023
17024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17025fi # test -n "$CONFIG_FILES"
17026
17027
17028eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
17029shift
17030for ac_tag
17031do
17032  case $ac_tag in
17033  :[FHLC]) ac_mode=$ac_tag; continue;;
17034  esac
17035  case $ac_mode$ac_tag in
17036  :[FHL]*:*);;
17037  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17038  :[FH]-) ac_tag=-:-;;
17039  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17040  esac
17041  ac_save_IFS=$IFS
17042  IFS=:
17043  set x $ac_tag
17044  IFS=$ac_save_IFS
17045  shift
17046  ac_file=$1
17047  shift
17048
17049  case $ac_mode in
17050  :L) ac_source=$1;;
17051  :[FH])
17052    ac_file_inputs=
17053    for ac_f
17054    do
17055      case $ac_f in
17056      -) ac_f="$ac_tmp/stdin";;
17057      *) # Look for the file first in the build tree, then in the source tree
17058	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17059	 # because $ac_f cannot contain `:'.
17060	 test -f "$ac_f" ||
17061	   case $ac_f in
17062	   [\\/$]*) false;;
17063	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17064	   esac ||
17065	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17066      esac
17067      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17068      as_fn_append ac_file_inputs " '$ac_f'"
17069    done
17070
17071    # Let's still pretend it is `configure' which instantiates (i.e., don't
17072    # use $as_me), people would be surprised to read:
17073    #    /* config.h.  Generated by config.status.  */
17074    configure_input='Generated from '`
17075	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17076	`' by configure.'
17077    if test x"$ac_file" != x-; then
17078      configure_input="$ac_file.  $configure_input"
17079      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17080$as_echo "$as_me: creating $ac_file" >&6;}
17081    fi
17082    # Neutralize special characters interpreted by sed in replacement strings.
17083    case $configure_input in #(
17084    *\&* | *\|* | *\\* )
17085       ac_sed_conf_input=`$as_echo "$configure_input" |
17086       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17087    *) ac_sed_conf_input=$configure_input;;
17088    esac
17089
17090    case $ac_tag in
17091    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17092      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17093    esac
17094    ;;
17095  esac
17096
17097  ac_dir=`$as_dirname -- "$ac_file" ||
17098$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17099	 X"$ac_file" : 'X\(//\)[^/]' \| \
17100	 X"$ac_file" : 'X\(//\)$' \| \
17101	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17102$as_echo X"$ac_file" |
17103    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17104	    s//\1/
17105	    q
17106	  }
17107	  /^X\(\/\/\)[^/].*/{
17108	    s//\1/
17109	    q
17110	  }
17111	  /^X\(\/\/\)$/{
17112	    s//\1/
17113	    q
17114	  }
17115	  /^X\(\/\).*/{
17116	    s//\1/
17117	    q
17118	  }
17119	  s/.*/./; q'`
17120  as_dir="$ac_dir"; as_fn_mkdir_p
17121  ac_builddir=.
17122
17123case "$ac_dir" in
17124.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17125*)
17126  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17127  # A ".." for each directory in $ac_dir_suffix.
17128  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17129  case $ac_top_builddir_sub in
17130  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17131  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17132  esac ;;
17133esac
17134ac_abs_top_builddir=$ac_pwd
17135ac_abs_builddir=$ac_pwd$ac_dir_suffix
17136# for backward compatibility:
17137ac_top_builddir=$ac_top_build_prefix
17138
17139case $srcdir in
17140  .)  # We are building in place.
17141    ac_srcdir=.
17142    ac_top_srcdir=$ac_top_builddir_sub
17143    ac_abs_top_srcdir=$ac_pwd ;;
17144  [\\/]* | ?:[\\/]* )  # Absolute name.
17145    ac_srcdir=$srcdir$ac_dir_suffix;
17146    ac_top_srcdir=$srcdir
17147    ac_abs_top_srcdir=$srcdir ;;
17148  *) # Relative name.
17149    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17150    ac_top_srcdir=$ac_top_build_prefix$srcdir
17151    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17152esac
17153ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17154
17155
17156  case $ac_mode in
17157  :F)
17158  #
17159  # CONFIG_FILE
17160  #
17161
17162  case $INSTALL in
17163  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17164  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17165  esac
17166  ac_MKDIR_P=$MKDIR_P
17167  case $MKDIR_P in
17168  [\\/$]* | ?:[\\/]* ) ;;
17169  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17170  esac
17171_ACEOF
17172
17173cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17174# If the template does not know about datarootdir, expand it.
17175# FIXME: This hack should be removed a few years after 2.60.
17176ac_datarootdir_hack=; ac_datarootdir_seen=
17177ac_sed_dataroot='
17178/datarootdir/ {
17179  p
17180  q
17181}
17182/@datadir@/p
17183/@docdir@/p
17184/@infodir@/p
17185/@localedir@/p
17186/@mandir@/p'
17187case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17188*datarootdir*) ac_datarootdir_seen=yes;;
17189*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17190  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17191$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17192_ACEOF
17193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17194  ac_datarootdir_hack='
17195  s&@datadir@&$datadir&g
17196  s&@docdir@&$docdir&g
17197  s&@infodir@&$infodir&g
17198  s&@localedir@&$localedir&g
17199  s&@mandir@&$mandir&g
17200  s&\\\${datarootdir}&$datarootdir&g' ;;
17201esac
17202_ACEOF
17203
17204# Neutralize VPATH when `$srcdir' = `.'.
17205# Shell code in configure.ac might set extrasub.
17206# FIXME: do we really want to maintain this feature?
17207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17208ac_sed_extra="$ac_vpsub
17209$extrasub
17210_ACEOF
17211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17212:t
17213/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17214s|@configure_input@|$ac_sed_conf_input|;t t
17215s&@top_builddir@&$ac_top_builddir_sub&;t t
17216s&@top_build_prefix@&$ac_top_build_prefix&;t t
17217s&@srcdir@&$ac_srcdir&;t t
17218s&@abs_srcdir@&$ac_abs_srcdir&;t t
17219s&@top_srcdir@&$ac_top_srcdir&;t t
17220s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17221s&@builddir@&$ac_builddir&;t t
17222s&@abs_builddir@&$ac_abs_builddir&;t t
17223s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17224s&@INSTALL@&$ac_INSTALL&;t t
17225s&@MKDIR_P@&$ac_MKDIR_P&;t t
17226$ac_datarootdir_hack
17227"
17228eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17229  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17230
17231test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17232  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17233  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17234      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17235  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17236which seems to be undefined.  Please make sure it is defined" >&5
17237$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17238which seems to be undefined.  Please make sure it is defined" >&2;}
17239
17240  rm -f "$ac_tmp/stdin"
17241  case $ac_file in
17242  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17243  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17244  esac \
17245  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17246 ;;
17247
17248
17249  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17250$as_echo "$as_me: executing $ac_file commands" >&6;}
17251 ;;
17252  esac
17253
17254
17255  case $ac_file$ac_mode in
17256    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17257  # Autoconf 2.62 quotes --file arguments for eval, but not when files
17258  # are listed without --file.  Let's play safe and only enable the eval
17259  # if we detect the quoting.
17260  case $CONFIG_FILES in
17261  *\'*) eval set x "$CONFIG_FILES" ;;
17262  *)   set x $CONFIG_FILES ;;
17263  esac
17264  shift
17265  for mf
17266  do
17267    # Strip MF so we end up with the name of the file.
17268    mf=`echo "$mf" | sed -e 's/:.*$//'`
17269    # Check whether this is an Automake generated Makefile or not.
17270    # We used to match only the files named 'Makefile.in', but
17271    # some people rename them; so instead we look at the file content.
17272    # Grep'ing the first line is not enough: some people post-process
17273    # each Makefile.in and add a new line on top of each file to say so.
17274    # Grep'ing the whole file is not good either: AIX grep has a line
17275    # limit of 2048, but all sed's we know have understand at least 4000.
17276    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17277      dirpart=`$as_dirname -- "$mf" ||
17278$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17279	 X"$mf" : 'X\(//\)[^/]' \| \
17280	 X"$mf" : 'X\(//\)$' \| \
17281	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17282$as_echo X"$mf" |
17283    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17284	    s//\1/
17285	    q
17286	  }
17287	  /^X\(\/\/\)[^/].*/{
17288	    s//\1/
17289	    q
17290	  }
17291	  /^X\(\/\/\)$/{
17292	    s//\1/
17293	    q
17294	  }
17295	  /^X\(\/\).*/{
17296	    s//\1/
17297	    q
17298	  }
17299	  s/.*/./; q'`
17300    else
17301      continue
17302    fi
17303    # Extract the definition of DEPDIR, am__include, and am__quote
17304    # from the Makefile without running 'make'.
17305    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17306    test -z "$DEPDIR" && continue
17307    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17308    test -z "am__include" && continue
17309    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17310    # Find all dependency output files, they are included files with
17311    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17312    # simplest approach to changing $(DEPDIR) to its actual value in the
17313    # expansion.
17314    for file in `sed -n "
17315      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17316	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17317      # Make sure the directory exists.
17318      test -f "$dirpart/$file" && continue
17319      fdir=`$as_dirname -- "$file" ||
17320$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17321	 X"$file" : 'X\(//\)[^/]' \| \
17322	 X"$file" : 'X\(//\)$' \| \
17323	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17324$as_echo X"$file" |
17325    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17326	    s//\1/
17327	    q
17328	  }
17329	  /^X\(\/\/\)[^/].*/{
17330	    s//\1/
17331	    q
17332	  }
17333	  /^X\(\/\/\)$/{
17334	    s//\1/
17335	    q
17336	  }
17337	  /^X\(\/\).*/{
17338	    s//\1/
17339	    q
17340	  }
17341	  s/.*/./; q'`
17342      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17343      # echo "creating $dirpart/$file"
17344      echo '# dummy' > "$dirpart/$file"
17345    done
17346  done
17347}
17348 ;;
17349    "libtool":C)
17350
17351    # See if we are running on zsh, and set the options which allow our
17352    # commands through without removal of \ escapes.
17353    if test -n "${ZSH_VERSION+set}" ; then
17354      setopt NO_GLOB_SUBST
17355    fi
17356
17357    cfgfile="${ofile}T"
17358    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17359    $RM "$cfgfile"
17360
17361    cat <<_LT_EOF >> "$cfgfile"
17362#! $SHELL
17363
17364# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17365# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17366# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17367# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17368#
17369#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17370#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17371#                 Foundation, Inc.
17372#   Written by Gordon Matzigkeit, 1996
17373#
17374#   This file is part of GNU Libtool.
17375#
17376# GNU Libtool is free software; you can redistribute it and/or
17377# modify it under the terms of the GNU General Public License as
17378# published by the Free Software Foundation; either version 2 of
17379# the License, or (at your option) any later version.
17380#
17381# As a special exception to the GNU General Public License,
17382# if you distribute this file as part of a program or library that
17383# is built using GNU Libtool, you may include this file under the
17384# same distribution terms that you use for the rest of that program.
17385#
17386# GNU Libtool is distributed in the hope that it will be useful,
17387# but WITHOUT ANY WARRANTY; without even the implied warranty of
17388# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17389# GNU General Public License for more details.
17390#
17391# You should have received a copy of the GNU General Public License
17392# along with GNU Libtool; see the file COPYING.  If not, a copy
17393# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17394# obtained by writing to the Free Software Foundation, Inc.,
17395# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17396
17397
17398# The names of the tagged configurations supported by this script.
17399available_tags="CXX "
17400
17401# ### BEGIN LIBTOOL CONFIG
17402
17403# Which release of libtool.m4 was used?
17404macro_version=$macro_version
17405macro_revision=$macro_revision
17406
17407# Whether or not to build shared libraries.
17408build_libtool_libs=$enable_shared
17409
17410# Whether or not to build static libraries.
17411build_old_libs=$enable_static
17412
17413# What type of objects to build.
17414pic_mode=$pic_mode
17415
17416# Whether or not to optimize for fast installation.
17417fast_install=$enable_fast_install
17418
17419# Shell to use when invoking shell scripts.
17420SHELL=$lt_SHELL
17421
17422# An echo program that protects backslashes.
17423ECHO=$lt_ECHO
17424
17425# The PATH separator for the build system.
17426PATH_SEPARATOR=$lt_PATH_SEPARATOR
17427
17428# The host system.
17429host_alias=$host_alias
17430host=$host
17431host_os=$host_os
17432
17433# The build system.
17434build_alias=$build_alias
17435build=$build
17436build_os=$build_os
17437
17438# A sed program that does not truncate output.
17439SED=$lt_SED
17440
17441# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17442Xsed="\$SED -e 1s/^X//"
17443
17444# A grep program that handles long lines.
17445GREP=$lt_GREP
17446
17447# An ERE matcher.
17448EGREP=$lt_EGREP
17449
17450# A literal string matcher.
17451FGREP=$lt_FGREP
17452
17453# A BSD- or MS-compatible name lister.
17454NM=$lt_NM
17455
17456# Whether we need soft or hard links.
17457LN_S=$lt_LN_S
17458
17459# What is the maximum length of a command?
17460max_cmd_len=$max_cmd_len
17461
17462# Object file suffix (normally "o").
17463objext=$ac_objext
17464
17465# Executable file suffix (normally "").
17466exeext=$exeext
17467
17468# whether the shell understands "unset".
17469lt_unset=$lt_unset
17470
17471# turn spaces into newlines.
17472SP2NL=$lt_lt_SP2NL
17473
17474# turn newlines into spaces.
17475NL2SP=$lt_lt_NL2SP
17476
17477# convert \$build file names to \$host format.
17478to_host_file_cmd=$lt_cv_to_host_file_cmd
17479
17480# convert \$build files to toolchain format.
17481to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17482
17483# An object symbol dumper.
17484OBJDUMP=$lt_OBJDUMP
17485
17486# Method to check whether dependent libraries are shared objects.
17487deplibs_check_method=$lt_deplibs_check_method
17488
17489# Command to use when deplibs_check_method = "file_magic".
17490file_magic_cmd=$lt_file_magic_cmd
17491
17492# How to find potential files when deplibs_check_method = "file_magic".
17493file_magic_glob=$lt_file_magic_glob
17494
17495# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17496want_nocaseglob=$lt_want_nocaseglob
17497
17498# DLL creation program.
17499DLLTOOL=$lt_DLLTOOL
17500
17501# Command to associate shared and link libraries.
17502sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17503
17504# The archiver.
17505AR=$lt_AR
17506
17507# Flags to create an archive.
17508AR_FLAGS=$lt_AR_FLAGS
17509
17510# How to feed a file listing to the archiver.
17511archiver_list_spec=$lt_archiver_list_spec
17512
17513# A symbol stripping program.
17514STRIP=$lt_STRIP
17515
17516# Commands used to install an old-style archive.
17517RANLIB=$lt_RANLIB
17518old_postinstall_cmds=$lt_old_postinstall_cmds
17519old_postuninstall_cmds=$lt_old_postuninstall_cmds
17520
17521# Whether to use a lock for old archive extraction.
17522lock_old_archive_extraction=$lock_old_archive_extraction
17523
17524# A C compiler.
17525LTCC=$lt_CC
17526
17527# LTCC compiler flags.
17528LTCFLAGS=$lt_CFLAGS
17529
17530# Take the output of nm and produce a listing of raw symbols and C names.
17531global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17532
17533# Transform the output of nm in a proper C declaration.
17534global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17535
17536# Transform the output of nm in a C name address pair.
17537global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17538
17539# Transform the output of nm in a C name address pair when lib prefix is needed.
17540global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17541
17542# Specify filename containing input files for \$NM.
17543nm_file_list_spec=$lt_nm_file_list_spec
17544
17545# The root where to search for dependent libraries,and in which our libraries should be installed.
17546lt_sysroot=$lt_sysroot
17547
17548# The name of the directory that contains temporary libtool files.
17549objdir=$objdir
17550
17551# Used to examine libraries when file_magic_cmd begins with "file".
17552MAGIC_CMD=$MAGIC_CMD
17553
17554# Must we lock files when doing compilation?
17555need_locks=$lt_need_locks
17556
17557# Manifest tool.
17558MANIFEST_TOOL=$lt_MANIFEST_TOOL
17559
17560# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17561DSYMUTIL=$lt_DSYMUTIL
17562
17563# Tool to change global to local symbols on Mac OS X.
17564NMEDIT=$lt_NMEDIT
17565
17566# Tool to manipulate fat objects and archives on Mac OS X.
17567LIPO=$lt_LIPO
17568
17569# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17570OTOOL=$lt_OTOOL
17571
17572# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17573OTOOL64=$lt_OTOOL64
17574
17575# Old archive suffix (normally "a").
17576libext=$libext
17577
17578# Shared library suffix (normally ".so").
17579shrext_cmds=$lt_shrext_cmds
17580
17581# The commands to extract the exported symbol list from a shared archive.
17582extract_expsyms_cmds=$lt_extract_expsyms_cmds
17583
17584# Variables whose values should be saved in libtool wrapper scripts and
17585# restored at link time.
17586variables_saved_for_relink=$lt_variables_saved_for_relink
17587
17588# Do we need the "lib" prefix for modules?
17589need_lib_prefix=$need_lib_prefix
17590
17591# Do we need a version for libraries?
17592need_version=$need_version
17593
17594# Library versioning type.
17595version_type=$version_type
17596
17597# Shared library runtime path variable.
17598runpath_var=$runpath_var
17599
17600# Shared library path variable.
17601shlibpath_var=$shlibpath_var
17602
17603# Is shlibpath searched before the hard-coded library search path?
17604shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17605
17606# Format of library name prefix.
17607libname_spec=$lt_libname_spec
17608
17609# List of archive names.  First name is the real one, the rest are links.
17610# The last name is the one that the linker finds with -lNAME
17611library_names_spec=$lt_library_names_spec
17612
17613# The coded name of the library, if different from the real name.
17614soname_spec=$lt_soname_spec
17615
17616# Permission mode override for installation of shared libraries.
17617install_override_mode=$lt_install_override_mode
17618
17619# Command to use after installation of a shared archive.
17620postinstall_cmds=$lt_postinstall_cmds
17621
17622# Command to use after uninstallation of a shared archive.
17623postuninstall_cmds=$lt_postuninstall_cmds
17624
17625# Commands used to finish a libtool library installation in a directory.
17626finish_cmds=$lt_finish_cmds
17627
17628# As "finish_cmds", except a single script fragment to be evaled but
17629# not shown.
17630finish_eval=$lt_finish_eval
17631
17632# Whether we should hardcode library paths into libraries.
17633hardcode_into_libs=$hardcode_into_libs
17634
17635# Compile-time system search path for libraries.
17636sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17637
17638# Run-time system search path for libraries.
17639sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17640
17641# Whether dlopen is supported.
17642dlopen_support=$enable_dlopen
17643
17644# Whether dlopen of programs is supported.
17645dlopen_self=$enable_dlopen_self
17646
17647# Whether dlopen of statically linked programs is supported.
17648dlopen_self_static=$enable_dlopen_self_static
17649
17650# Commands to strip libraries.
17651old_striplib=$lt_old_striplib
17652striplib=$lt_striplib
17653
17654
17655# The linker used to build libraries.
17656LD=$lt_LD
17657
17658# How to create reloadable object files.
17659reload_flag=$lt_reload_flag
17660reload_cmds=$lt_reload_cmds
17661
17662# Commands used to build an old-style archive.
17663old_archive_cmds=$lt_old_archive_cmds
17664
17665# A language specific compiler.
17666CC=$lt_compiler
17667
17668# Is the compiler the GNU compiler?
17669with_gcc=$GCC
17670
17671# Compiler flag to turn off builtin functions.
17672no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17673
17674# Additional compiler flags for building library objects.
17675pic_flag=$lt_lt_prog_compiler_pic
17676
17677# How to pass a linker flag through the compiler.
17678wl=$lt_lt_prog_compiler_wl
17679
17680# Compiler flag to prevent dynamic linking.
17681link_static_flag=$lt_lt_prog_compiler_static
17682
17683# Does compiler simultaneously support -c and -o options?
17684compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17685
17686# Whether or not to add -lc for building shared libraries.
17687build_libtool_need_lc=$archive_cmds_need_lc
17688
17689# Whether or not to disallow shared libs when runtime libs are static.
17690allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17691
17692# Compiler flag to allow reflexive dlopens.
17693export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17694
17695# Compiler flag to generate shared objects directly from archives.
17696whole_archive_flag_spec=$lt_whole_archive_flag_spec
17697
17698# Whether the compiler copes with passing no objects directly.
17699compiler_needs_object=$lt_compiler_needs_object
17700
17701# Create an old-style archive from a shared archive.
17702old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17703
17704# Create a temporary old-style archive to link instead of a shared archive.
17705old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17706
17707# Commands used to build a shared archive.
17708archive_cmds=$lt_archive_cmds
17709archive_expsym_cmds=$lt_archive_expsym_cmds
17710
17711# Commands used to build a loadable module if different from building
17712# a shared archive.
17713module_cmds=$lt_module_cmds
17714module_expsym_cmds=$lt_module_expsym_cmds
17715
17716# Whether we are building with GNU ld or not.
17717with_gnu_ld=$lt_with_gnu_ld
17718
17719# Flag that allows shared libraries with undefined symbols to be built.
17720allow_undefined_flag=$lt_allow_undefined_flag
17721
17722# Flag that enforces no undefined symbols.
17723no_undefined_flag=$lt_no_undefined_flag
17724
17725# Flag to hardcode \$libdir into a binary during linking.
17726# This must work even if \$libdir does not exist
17727hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17728
17729# Whether we need a single "-rpath" flag with a separated argument.
17730hardcode_libdir_separator=$lt_hardcode_libdir_separator
17731
17732# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17733# DIR into the resulting binary.
17734hardcode_direct=$hardcode_direct
17735
17736# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17737# DIR into the resulting binary and the resulting library dependency is
17738# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17739# library is relocated.
17740hardcode_direct_absolute=$hardcode_direct_absolute
17741
17742# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17743# into the resulting binary.
17744hardcode_minus_L=$hardcode_minus_L
17745
17746# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17747# into the resulting binary.
17748hardcode_shlibpath_var=$hardcode_shlibpath_var
17749
17750# Set to "yes" if building a shared library automatically hardcodes DIR
17751# into the library and all subsequent libraries and executables linked
17752# against it.
17753hardcode_automatic=$hardcode_automatic
17754
17755# Set to yes if linker adds runtime paths of dependent libraries
17756# to runtime path list.
17757inherit_rpath=$inherit_rpath
17758
17759# Whether libtool must link a program against all its dependency libraries.
17760link_all_deplibs=$link_all_deplibs
17761
17762# Set to "yes" if exported symbols are required.
17763always_export_symbols=$always_export_symbols
17764
17765# The commands to list exported symbols.
17766export_symbols_cmds=$lt_export_symbols_cmds
17767
17768# Symbols that should not be listed in the preloaded symbols.
17769exclude_expsyms=$lt_exclude_expsyms
17770
17771# Symbols that must always be exported.
17772include_expsyms=$lt_include_expsyms
17773
17774# Commands necessary for linking programs (against libraries) with templates.
17775prelink_cmds=$lt_prelink_cmds
17776
17777# Commands necessary for finishing linking programs.
17778postlink_cmds=$lt_postlink_cmds
17779
17780# Specify filename containing input files.
17781file_list_spec=$lt_file_list_spec
17782
17783# How to hardcode a shared library path into an executable.
17784hardcode_action=$hardcode_action
17785
17786# The directories searched by this compiler when creating a shared library.
17787compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17788
17789# Dependencies to place before and after the objects being linked to
17790# create a shared library.
17791predep_objects=$lt_predep_objects
17792postdep_objects=$lt_postdep_objects
17793predeps=$lt_predeps
17794postdeps=$lt_postdeps
17795
17796# The library search path used internally by the compiler when linking
17797# a shared library.
17798compiler_lib_search_path=$lt_compiler_lib_search_path
17799
17800# ### END LIBTOOL CONFIG
17801
17802_LT_EOF
17803
17804  case $host_os in
17805  aix3*)
17806    cat <<\_LT_EOF >> "$cfgfile"
17807# AIX sometimes has problems with the GCC collect2 program.  For some
17808# reason, if we set the COLLECT_NAMES environment variable, the problems
17809# vanish in a puff of smoke.
17810if test "X${COLLECT_NAMES+set}" != Xset; then
17811  COLLECT_NAMES=
17812  export COLLECT_NAMES
17813fi
17814_LT_EOF
17815    ;;
17816  esac
17817
17818
17819ltmain="$ac_aux_dir/ltmain.sh"
17820
17821
17822  # We use sed instead of cat because bash on DJGPP gets confused if
17823  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17824  # text mode, it properly converts lines to CR/LF.  This bash problem
17825  # is reportedly fixed, but why not run on old versions too?
17826  sed '$q' "$ltmain" >> "$cfgfile" \
17827     || (rm -f "$cfgfile"; exit 1)
17828
17829  if test x"$xsi_shell" = xyes; then
17830  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17831func_dirname ()\
17832{\
17833\    case ${1} in\
17834\      */*) func_dirname_result="${1%/*}${2}" ;;\
17835\      *  ) func_dirname_result="${3}" ;;\
17836\    esac\
17837} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17838  && mv -f "$cfgfile.tmp" "$cfgfile" \
17839    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17840test 0 -eq $? || _lt_function_replace_fail=:
17841
17842
17843  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17844func_basename ()\
17845{\
17846\    func_basename_result="${1##*/}"\
17847} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17848  && mv -f "$cfgfile.tmp" "$cfgfile" \
17849    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17850test 0 -eq $? || _lt_function_replace_fail=:
17851
17852
17853  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17854func_dirname_and_basename ()\
17855{\
17856\    case ${1} in\
17857\      */*) func_dirname_result="${1%/*}${2}" ;;\
17858\      *  ) func_dirname_result="${3}" ;;\
17859\    esac\
17860\    func_basename_result="${1##*/}"\
17861} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17862  && mv -f "$cfgfile.tmp" "$cfgfile" \
17863    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17864test 0 -eq $? || _lt_function_replace_fail=:
17865
17866
17867  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17868func_stripname ()\
17869{\
17870\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17871\    # positional parameters, so assign one to ordinary parameter first.\
17872\    func_stripname_result=${3}\
17873\    func_stripname_result=${func_stripname_result#"${1}"}\
17874\    func_stripname_result=${func_stripname_result%"${2}"}\
17875} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17876  && mv -f "$cfgfile.tmp" "$cfgfile" \
17877    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17878test 0 -eq $? || _lt_function_replace_fail=:
17879
17880
17881  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17882func_split_long_opt ()\
17883{\
17884\    func_split_long_opt_name=${1%%=*}\
17885\    func_split_long_opt_arg=${1#*=}\
17886} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17887  && mv -f "$cfgfile.tmp" "$cfgfile" \
17888    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17889test 0 -eq $? || _lt_function_replace_fail=:
17890
17891
17892  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17893func_split_short_opt ()\
17894{\
17895\    func_split_short_opt_arg=${1#??}\
17896\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17897} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17898  && mv -f "$cfgfile.tmp" "$cfgfile" \
17899    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17900test 0 -eq $? || _lt_function_replace_fail=:
17901
17902
17903  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17904func_lo2o ()\
17905{\
17906\    case ${1} in\
17907\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17908\      *)    func_lo2o_result=${1} ;;\
17909\    esac\
17910} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17911  && mv -f "$cfgfile.tmp" "$cfgfile" \
17912    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17913test 0 -eq $? || _lt_function_replace_fail=:
17914
17915
17916  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17917func_xform ()\
17918{\
17919    func_xform_result=${1%.*}.lo\
17920} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17921  && mv -f "$cfgfile.tmp" "$cfgfile" \
17922    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17923test 0 -eq $? || _lt_function_replace_fail=:
17924
17925
17926  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17927func_arith ()\
17928{\
17929    func_arith_result=$(( $* ))\
17930} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17931  && mv -f "$cfgfile.tmp" "$cfgfile" \
17932    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17933test 0 -eq $? || _lt_function_replace_fail=:
17934
17935
17936  sed -e '/^func_len ()$/,/^} # func_len /c\
17937func_len ()\
17938{\
17939    func_len_result=${#1}\
17940} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17941  && mv -f "$cfgfile.tmp" "$cfgfile" \
17942    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17943test 0 -eq $? || _lt_function_replace_fail=:
17944
17945fi
17946
17947if test x"$lt_shell_append" = xyes; then
17948  sed -e '/^func_append ()$/,/^} # func_append /c\
17949func_append ()\
17950{\
17951    eval "${1}+=\\${2}"\
17952} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17953  && mv -f "$cfgfile.tmp" "$cfgfile" \
17954    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17955test 0 -eq $? || _lt_function_replace_fail=:
17956
17957
17958  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17959func_append_quoted ()\
17960{\
17961\    func_quote_for_eval "${2}"\
17962\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17963} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17964  && mv -f "$cfgfile.tmp" "$cfgfile" \
17965    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17966test 0 -eq $? || _lt_function_replace_fail=:
17967
17968
17969  # Save a `func_append' function call where possible by direct use of '+='
17970  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17971    && mv -f "$cfgfile.tmp" "$cfgfile" \
17972      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17973  test 0 -eq $? || _lt_function_replace_fail=:
17974else
17975  # Save a `func_append' function call even when '+=' is not available
17976  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17977    && mv -f "$cfgfile.tmp" "$cfgfile" \
17978      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17979  test 0 -eq $? || _lt_function_replace_fail=:
17980fi
17981
17982if test x"$_lt_function_replace_fail" = x":"; then
17983  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17984$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17985fi
17986
17987
17988   mv -f "$cfgfile" "$ofile" ||
17989    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17990  chmod +x "$ofile"
17991
17992
17993    cat <<_LT_EOF >> "$ofile"
17994
17995# ### BEGIN LIBTOOL TAG CONFIG: CXX
17996
17997# The linker used to build libraries.
17998LD=$lt_LD_CXX
17999
18000# How to create reloadable object files.
18001reload_flag=$lt_reload_flag_CXX
18002reload_cmds=$lt_reload_cmds_CXX
18003
18004# Commands used to build an old-style archive.
18005old_archive_cmds=$lt_old_archive_cmds_CXX
18006
18007# A language specific compiler.
18008CC=$lt_compiler_CXX
18009
18010# Is the compiler the GNU compiler?
18011with_gcc=$GCC_CXX
18012
18013# Compiler flag to turn off builtin functions.
18014no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18015
18016# Additional compiler flags for building library objects.
18017pic_flag=$lt_lt_prog_compiler_pic_CXX
18018
18019# How to pass a linker flag through the compiler.
18020wl=$lt_lt_prog_compiler_wl_CXX
18021
18022# Compiler flag to prevent dynamic linking.
18023link_static_flag=$lt_lt_prog_compiler_static_CXX
18024
18025# Does compiler simultaneously support -c and -o options?
18026compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18027
18028# Whether or not to add -lc for building shared libraries.
18029build_libtool_need_lc=$archive_cmds_need_lc_CXX
18030
18031# Whether or not to disallow shared libs when runtime libs are static.
18032allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18033
18034# Compiler flag to allow reflexive dlopens.
18035export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18036
18037# Compiler flag to generate shared objects directly from archives.
18038whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18039
18040# Whether the compiler copes with passing no objects directly.
18041compiler_needs_object=$lt_compiler_needs_object_CXX
18042
18043# Create an old-style archive from a shared archive.
18044old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18045
18046# Create a temporary old-style archive to link instead of a shared archive.
18047old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18048
18049# Commands used to build a shared archive.
18050archive_cmds=$lt_archive_cmds_CXX
18051archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18052
18053# Commands used to build a loadable module if different from building
18054# a shared archive.
18055module_cmds=$lt_module_cmds_CXX
18056module_expsym_cmds=$lt_module_expsym_cmds_CXX
18057
18058# Whether we are building with GNU ld or not.
18059with_gnu_ld=$lt_with_gnu_ld_CXX
18060
18061# Flag that allows shared libraries with undefined symbols to be built.
18062allow_undefined_flag=$lt_allow_undefined_flag_CXX
18063
18064# Flag that enforces no undefined symbols.
18065no_undefined_flag=$lt_no_undefined_flag_CXX
18066
18067# Flag to hardcode \$libdir into a binary during linking.
18068# This must work even if \$libdir does not exist
18069hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18070
18071# Whether we need a single "-rpath" flag with a separated argument.
18072hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18073
18074# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18075# DIR into the resulting binary.
18076hardcode_direct=$hardcode_direct_CXX
18077
18078# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18079# DIR into the resulting binary and the resulting library dependency is
18080# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18081# library is relocated.
18082hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18083
18084# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18085# into the resulting binary.
18086hardcode_minus_L=$hardcode_minus_L_CXX
18087
18088# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18089# into the resulting binary.
18090hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18091
18092# Set to "yes" if building a shared library automatically hardcodes DIR
18093# into the library and all subsequent libraries and executables linked
18094# against it.
18095hardcode_automatic=$hardcode_automatic_CXX
18096
18097# Set to yes if linker adds runtime paths of dependent libraries
18098# to runtime path list.
18099inherit_rpath=$inherit_rpath_CXX
18100
18101# Whether libtool must link a program against all its dependency libraries.
18102link_all_deplibs=$link_all_deplibs_CXX
18103
18104# Set to "yes" if exported symbols are required.
18105always_export_symbols=$always_export_symbols_CXX
18106
18107# The commands to list exported symbols.
18108export_symbols_cmds=$lt_export_symbols_cmds_CXX
18109
18110# Symbols that should not be listed in the preloaded symbols.
18111exclude_expsyms=$lt_exclude_expsyms_CXX
18112
18113# Symbols that must always be exported.
18114include_expsyms=$lt_include_expsyms_CXX
18115
18116# Commands necessary for linking programs (against libraries) with templates.
18117prelink_cmds=$lt_prelink_cmds_CXX
18118
18119# Commands necessary for finishing linking programs.
18120postlink_cmds=$lt_postlink_cmds_CXX
18121
18122# Specify filename containing input files.
18123file_list_spec=$lt_file_list_spec_CXX
18124
18125# How to hardcode a shared library path into an executable.
18126hardcode_action=$hardcode_action_CXX
18127
18128# The directories searched by this compiler when creating a shared library.
18129compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18130
18131# Dependencies to place before and after the objects being linked to
18132# create a shared library.
18133predep_objects=$lt_predep_objects_CXX
18134postdep_objects=$lt_postdep_objects_CXX
18135predeps=$lt_predeps_CXX
18136postdeps=$lt_postdeps_CXX
18137
18138# The library search path used internally by the compiler when linking
18139# a shared library.
18140compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18141
18142# ### END LIBTOOL TAG CONFIG: CXX
18143_LT_EOF
18144
18145 ;;
18146
18147  esac
18148done # for ac_tag
18149
18150
18151as_fn_exit 0
18152_ACEOF
18153ac_clean_files=$ac_clean_files_save
18154
18155test $ac_write_fail = 0 ||
18156  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18157
18158
18159# configure is writing to config.log, and then calls config.status.
18160# config.status does its own redirection, appending to config.log.
18161# Unfortunately, on DOS this fails, as config.log is still kept open
18162# by configure, so config.status won't be able to write to it; its
18163# output is simply discarded.  So we exec the FD to /dev/null,
18164# effectively closing config.log, so it can be properly (re)opened and
18165# appended to by config.status.  When coming back to configure, we
18166# need to make the FD available again.
18167if test "$no_create" != yes; then
18168  ac_cs_success=:
18169  ac_config_status_args=
18170  test "$silent" = yes &&
18171    ac_config_status_args="$ac_config_status_args --quiet"
18172  exec 5>/dev/null
18173  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18174  exec 5>>config.log
18175  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18176  # would make configure fail if this is the last instruction.
18177  $ac_cs_success || as_fn_exit 1
18178fi
18179if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18180  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18181$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18182fi
18183
18184