xref: /nrf52832-nimble/rt-thread/tools/kconfig-frontends/configure (revision 042d53a763ad75cb1465103098bb88c245d95138)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for kconfig-frontends 4.11.0.1.
4#
5# Report bugs to <[email protected]>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell [email protected] and
278$0: [email protected] about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='kconfig-frontends'
592PACKAGE_TARNAME='kconfig-frontends'
593PACKAGE_VERSION='4.11.0.1'
594PACKAGE_STRING='kconfig-frontends 4.11.0.1'
595PACKAGE_BUGREPORT='[email protected]'
596PACKAGE_URL=''
597
598ac_unique_file="frontends/conf/conf.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639kcfg_list
640KCONFIGPARSER_LIB_VERSION
641COND_utils_gettext_FALSE
642COND_utils_gettext_TRUE
643COND_utils_FALSE
644COND_utils_TRUE
645COND_images_FALSE
646COND_images_TRUE
647COND_lxdialog_FALSE
648COND_lxdialog_TRUE
649COND_qconf_FALSE
650COND_qconf_TRUE
651COND_gconf_FALSE
652COND_gconf_TRUE
653COND_nconf_FALSE
654COND_nconf_TRUE
655COND_mconf_FALSE
656COND_mconf_TRUE
657COND_conf_FALSE
658COND_conf_TRUE
659COND_kconfig_FALSE
660COND_kconfig_TRUE
661qconf_EXTRA_LIBS
662nconf_EXTRA_LIBS
663mconf_EXTRA_LIBS
664gconf_EXTRA_LIBS
665conf_EXTRA_LIBS
666MOC
667Qt5_LIBS
668Qt5_CFLAGS
669gtk_LIBS
670gtk_CFLAGS
671ncurses_panel_menu_LIBS
672ncurses_nconf_CPPFLAGS
673ncurses_LIBS
674ncurses_mconf_CPPFLAGS
675intl_LIBS
676intl_CPPFLAGS
677GPERF_LEN_TYPE
678GPERF
679AM_YFLAGS
680YACC_IN_PATH
681YFLAGS
682YACC
683AM_LFLAGS
684LEXLIB
685LEX_OUTPUT_ROOT
686LEX
687PKG_CONFIG_LIBDIR
688PKG_CONFIG_PATH
689PKG_CONFIG
690CXXCPP
691am__fastdepCXX_FALSE
692am__fastdepCXX_TRUE
693CXXDEPMODE
694ac_ct_CXX
695CXXFLAGS
696CXX
697kf_CFLAGS
698enable_frontends
699enable_qconf
700enable_gconf
701enable_nconf
702enable_mconf
703enable_conf
704enable_kconfig
705enable_L10n
706enable_utils
707config_prefix
708root_menu
709werror_CFLAGS
710wall_CFLAGS
711CPP
712LT_SYS_LIBRARY_PATH
713OTOOL64
714OTOOL
715LIPO
716NMEDIT
717DSYMUTIL
718MANIFEST_TOOL
719RANLIB
720DLLTOOL
721OBJDUMP
722LN_S
723NM
724ac_ct_DUMPBIN
725DUMPBIN
726LD
727FGREP
728EGREP
729GREP
730SED
731host_os
732host_vendor
733host_cpu
734host
735build_os
736build_vendor
737build_cpu
738build
739LIBTOOL
740am__fastdepCC_FALSE
741am__fastdepCC_TRUE
742CCDEPMODE
743am__nodep
744AMDEPBACKSLASH
745AMDEP_FALSE
746AMDEP_TRUE
747am__quote
748am__include
749DEPDIR
750OBJEXT
751EXEEXT
752ac_ct_CC
753CPPFLAGS
754LDFLAGS
755CFLAGS
756CC
757ac_ct_AR
758AR
759AM_BACKSLASH
760AM_DEFAULT_VERBOSITY
761AM_DEFAULT_V
762AM_V
763am__untar
764am__tar
765AMTAR
766am__leading_dot
767SET_MAKE
768AWK
769mkdir_p
770MKDIR_P
771INSTALL_STRIP_PROGRAM
772STRIP
773install_sh
774MAKEINFO
775AUTOHEADER
776AUTOMAKE
777AUTOCONF
778ACLOCAL
779VERSION
780PACKAGE
781CYGPATH_W
782am__isrc
783INSTALL_DATA
784INSTALL_SCRIPT
785INSTALL_PROGRAM
786target_alias
787host_alias
788build_alias
789LIBS
790ECHO_T
791ECHO_N
792ECHO_C
793DEFS
794mandir
795localedir
796libdir
797psdir
798pdfdir
799dvidir
800htmldir
801infodir
802docdir
803oldincludedir
804includedir
805runstatedir
806localstatedir
807sharedstatedir
808sysconfdir
809datadir
810datarootdir
811libexecdir
812sbindir
813bindir
814program_transform_name
815prefix
816exec_prefix
817PACKAGE_URL
818PACKAGE_BUGREPORT
819PACKAGE_STRING
820PACKAGE_VERSION
821PACKAGE_TARNAME
822PACKAGE_NAME
823PATH_SEPARATOR
824SHELL'
825ac_subst_files=''
826ac_user_opts='
827enable_option_checking
828enable_silent_rules
829enable_dependency_tracking
830enable_static
831enable_shared
832with_pic
833enable_fast_install
834with_aix_soname
835with_gnu_ld
836with_sysroot
837enable_libtool_lock
838enable_wall
839enable_werror
840enable_root_menu_prompt
841enable_config_prefix
842enable_utils
843enable_L10n
844enable_kconfig
845enable_conf
846enable_mconf
847enable_nconf
848enable_gconf
849enable_qconf
850enable_frontends
851'
852      ac_precious_vars='build_alias
853host_alias
854target_alias
855CC
856CFLAGS
857LDFLAGS
858LIBS
859CPPFLAGS
860LT_SYS_LIBRARY_PATH
861CPP
862CXX
863CXXFLAGS
864CCC
865CXXCPP
866PKG_CONFIG
867PKG_CONFIG_PATH
868PKG_CONFIG_LIBDIR
869YACC
870YFLAGS
871gtk_CFLAGS
872gtk_LIBS
873Qt5_CFLAGS
874Qt5_LIBS
875MOC
876conf_EXTRA_LIBS
877gconf_EXTRA_LIBS
878mconf_EXTRA_LIBS
879nconf_EXTRA_LIBS
880qconf_EXTRA_LIBS'
881
882
883# Initialize some variables set by options.
884ac_init_help=
885ac_init_version=false
886ac_unrecognized_opts=
887ac_unrecognized_sep=
888# The variables have the same names as the options, with
889# dashes changed to underlines.
890cache_file=/dev/null
891exec_prefix=NONE
892no_create=
893no_recursion=
894prefix=NONE
895program_prefix=NONE
896program_suffix=NONE
897program_transform_name=s,x,x,
898silent=
899site=
900srcdir=
901verbose=
902x_includes=NONE
903x_libraries=NONE
904
905# Installation directory options.
906# These are left unexpanded so users can "make install exec_prefix=/foo"
907# and all the variables that are supposed to be based on exec_prefix
908# by default will actually change.
909# Use braces instead of parens because sh, perl, etc. also accept them.
910# (The list follows the same order as the GNU Coding Standards.)
911bindir='${exec_prefix}/bin'
912sbindir='${exec_prefix}/sbin'
913libexecdir='${exec_prefix}/libexec'
914datarootdir='${prefix}/share'
915datadir='${datarootdir}'
916sysconfdir='${prefix}/etc'
917sharedstatedir='${prefix}/com'
918localstatedir='${prefix}/var'
919runstatedir='${localstatedir}/run'
920includedir='${prefix}/include'
921oldincludedir='/usr/include'
922docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
923infodir='${datarootdir}/info'
924htmldir='${docdir}'
925dvidir='${docdir}'
926pdfdir='${docdir}'
927psdir='${docdir}'
928libdir='${exec_prefix}/lib'
929localedir='${datarootdir}/locale'
930mandir='${datarootdir}/man'
931
932ac_prev=
933ac_dashdash=
934for ac_option
935do
936  # If the previous option needs an argument, assign it.
937  if test -n "$ac_prev"; then
938    eval $ac_prev=\$ac_option
939    ac_prev=
940    continue
941  fi
942
943  case $ac_option in
944  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945  *=)   ac_optarg= ;;
946  *)    ac_optarg=yes ;;
947  esac
948
949  # Accept the important Cygnus configure options, so we can diagnose typos.
950
951  case $ac_dashdash$ac_option in
952  --)
953    ac_dashdash=yes ;;
954
955  -bindir | --bindir | --bindi | --bind | --bin | --bi)
956    ac_prev=bindir ;;
957  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
958    bindir=$ac_optarg ;;
959
960  -build | --build | --buil | --bui | --bu)
961    ac_prev=build_alias ;;
962  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
963    build_alias=$ac_optarg ;;
964
965  -cache-file | --cache-file | --cache-fil | --cache-fi \
966  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967    ac_prev=cache_file ;;
968  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
970    cache_file=$ac_optarg ;;
971
972  --config-cache | -C)
973    cache_file=config.cache ;;
974
975  -datadir | --datadir | --datadi | --datad)
976    ac_prev=datadir ;;
977  -datadir=* | --datadir=* | --datadi=* | --datad=*)
978    datadir=$ac_optarg ;;
979
980  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981  | --dataroo | --dataro | --datar)
982    ac_prev=datarootdir ;;
983  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985    datarootdir=$ac_optarg ;;
986
987  -disable-* | --disable-*)
988    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989    # Reject names that are not valid shell variable names.
990    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991      as_fn_error $? "invalid feature name: $ac_useropt"
992    ac_useropt_orig=$ac_useropt
993    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994    case $ac_user_opts in
995      *"
996"enable_$ac_useropt"
997"*) ;;
998      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999	 ac_unrecognized_sep=', ';;
1000    esac
1001    eval enable_$ac_useropt=no ;;
1002
1003  -docdir | --docdir | --docdi | --doc | --do)
1004    ac_prev=docdir ;;
1005  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006    docdir=$ac_optarg ;;
1007
1008  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009    ac_prev=dvidir ;;
1010  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011    dvidir=$ac_optarg ;;
1012
1013  -enable-* | --enable-*)
1014    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015    # Reject names that are not valid shell variable names.
1016    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017      as_fn_error $? "invalid feature name: $ac_useropt"
1018    ac_useropt_orig=$ac_useropt
1019    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020    case $ac_user_opts in
1021      *"
1022"enable_$ac_useropt"
1023"*) ;;
1024      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025	 ac_unrecognized_sep=', ';;
1026    esac
1027    eval enable_$ac_useropt=\$ac_optarg ;;
1028
1029  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031  | --exec | --exe | --ex)
1032    ac_prev=exec_prefix ;;
1033  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035  | --exec=* | --exe=* | --ex=*)
1036    exec_prefix=$ac_optarg ;;
1037
1038  -gas | --gas | --ga | --g)
1039    # Obsolete; use --with-gas.
1040    with_gas=yes ;;
1041
1042  -help | --help | --hel | --he | -h)
1043    ac_init_help=long ;;
1044  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045    ac_init_help=recursive ;;
1046  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047    ac_init_help=short ;;
1048
1049  -host | --host | --hos | --ho)
1050    ac_prev=host_alias ;;
1051  -host=* | --host=* | --hos=* | --ho=*)
1052    host_alias=$ac_optarg ;;
1053
1054  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055    ac_prev=htmldir ;;
1056  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057  | --ht=*)
1058    htmldir=$ac_optarg ;;
1059
1060  -includedir | --includedir | --includedi | --included | --include \
1061  | --includ | --inclu | --incl | --inc)
1062    ac_prev=includedir ;;
1063  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064  | --includ=* | --inclu=* | --incl=* | --inc=*)
1065    includedir=$ac_optarg ;;
1066
1067  -infodir | --infodir | --infodi | --infod | --info | --inf)
1068    ac_prev=infodir ;;
1069  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070    infodir=$ac_optarg ;;
1071
1072  -libdir | --libdir | --libdi | --libd)
1073    ac_prev=libdir ;;
1074  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075    libdir=$ac_optarg ;;
1076
1077  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078  | --libexe | --libex | --libe)
1079    ac_prev=libexecdir ;;
1080  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081  | --libexe=* | --libex=* | --libe=*)
1082    libexecdir=$ac_optarg ;;
1083
1084  -localedir | --localedir | --localedi | --localed | --locale)
1085    ac_prev=localedir ;;
1086  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087    localedir=$ac_optarg ;;
1088
1089  -localstatedir | --localstatedir | --localstatedi | --localstated \
1090  | --localstate | --localstat | --localsta | --localst | --locals)
1091    ac_prev=localstatedir ;;
1092  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094    localstatedir=$ac_optarg ;;
1095
1096  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097    ac_prev=mandir ;;
1098  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099    mandir=$ac_optarg ;;
1100
1101  -nfp | --nfp | --nf)
1102    # Obsolete; use --without-fp.
1103    with_fp=no ;;
1104
1105  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106  | --no-cr | --no-c | -n)
1107    no_create=yes ;;
1108
1109  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111    no_recursion=yes ;;
1112
1113  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115  | --oldin | --oldi | --old | --ol | --o)
1116    ac_prev=oldincludedir ;;
1117  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120    oldincludedir=$ac_optarg ;;
1121
1122  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123    ac_prev=prefix ;;
1124  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125    prefix=$ac_optarg ;;
1126
1127  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128  | --program-pre | --program-pr | --program-p)
1129    ac_prev=program_prefix ;;
1130  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132    program_prefix=$ac_optarg ;;
1133
1134  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135  | --program-suf | --program-su | --program-s)
1136    ac_prev=program_suffix ;;
1137  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139    program_suffix=$ac_optarg ;;
1140
1141  -program-transform-name | --program-transform-name \
1142  | --program-transform-nam | --program-transform-na \
1143  | --program-transform-n | --program-transform- \
1144  | --program-transform | --program-transfor \
1145  | --program-transfo | --program-transf \
1146  | --program-trans | --program-tran \
1147  | --progr-tra | --program-tr | --program-t)
1148    ac_prev=program_transform_name ;;
1149  -program-transform-name=* | --program-transform-name=* \
1150  | --program-transform-nam=* | --program-transform-na=* \
1151  | --program-transform-n=* | --program-transform-=* \
1152  | --program-transform=* | --program-transfor=* \
1153  | --program-transfo=* | --program-transf=* \
1154  | --program-trans=* | --program-tran=* \
1155  | --progr-tra=* | --program-tr=* | --program-t=*)
1156    program_transform_name=$ac_optarg ;;
1157
1158  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159    ac_prev=pdfdir ;;
1160  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161    pdfdir=$ac_optarg ;;
1162
1163  -psdir | --psdir | --psdi | --psd | --ps)
1164    ac_prev=psdir ;;
1165  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166    psdir=$ac_optarg ;;
1167
1168  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169  | -silent | --silent | --silen | --sile | --sil)
1170    silent=yes ;;
1171
1172  -runstatedir | --runstatedir | --runstatedi | --runstated \
1173  | --runstate | --runstat | --runsta | --runst | --runs \
1174  | --run | --ru | --r)
1175    ac_prev=runstatedir ;;
1176  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1177  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1178  | --run=* | --ru=* | --r=*)
1179    runstatedir=$ac_optarg ;;
1180
1181  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1182    ac_prev=sbindir ;;
1183  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1184  | --sbi=* | --sb=*)
1185    sbindir=$ac_optarg ;;
1186
1187  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1188  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1189  | --sharedst | --shareds | --shared | --share | --shar \
1190  | --sha | --sh)
1191    ac_prev=sharedstatedir ;;
1192  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1193  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1194  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1195  | --sha=* | --sh=*)
1196    sharedstatedir=$ac_optarg ;;
1197
1198  -site | --site | --sit)
1199    ac_prev=site ;;
1200  -site=* | --site=* | --sit=*)
1201    site=$ac_optarg ;;
1202
1203  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1204    ac_prev=srcdir ;;
1205  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1206    srcdir=$ac_optarg ;;
1207
1208  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1209  | --syscon | --sysco | --sysc | --sys | --sy)
1210    ac_prev=sysconfdir ;;
1211  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1212  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1213    sysconfdir=$ac_optarg ;;
1214
1215  -target | --target | --targe | --targ | --tar | --ta | --t)
1216    ac_prev=target_alias ;;
1217  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1218    target_alias=$ac_optarg ;;
1219
1220  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1221    verbose=yes ;;
1222
1223  -version | --version | --versio | --versi | --vers | -V)
1224    ac_init_version=: ;;
1225
1226  -with-* | --with-*)
1227    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1228    # Reject names that are not valid shell variable names.
1229    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230      as_fn_error $? "invalid package name: $ac_useropt"
1231    ac_useropt_orig=$ac_useropt
1232    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233    case $ac_user_opts in
1234      *"
1235"with_$ac_useropt"
1236"*) ;;
1237      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1238	 ac_unrecognized_sep=', ';;
1239    esac
1240    eval with_$ac_useropt=\$ac_optarg ;;
1241
1242  -without-* | --without-*)
1243    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1244    # Reject names that are not valid shell variable names.
1245    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246      as_fn_error $? "invalid package name: $ac_useropt"
1247    ac_useropt_orig=$ac_useropt
1248    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249    case $ac_user_opts in
1250      *"
1251"with_$ac_useropt"
1252"*) ;;
1253      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1254	 ac_unrecognized_sep=', ';;
1255    esac
1256    eval with_$ac_useropt=no ;;
1257
1258  --x)
1259    # Obsolete; use --with-x.
1260    with_x=yes ;;
1261
1262  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1263  | --x-incl | --x-inc | --x-in | --x-i)
1264    ac_prev=x_includes ;;
1265  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1266  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1267    x_includes=$ac_optarg ;;
1268
1269  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1270  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1271    ac_prev=x_libraries ;;
1272  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1273  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1274    x_libraries=$ac_optarg ;;
1275
1276  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1277Try \`$0 --help' for more information"
1278    ;;
1279
1280  *=*)
1281    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1282    # Reject names that are not valid shell variable names.
1283    case $ac_envvar in #(
1284      '' | [0-9]* | *[!_$as_cr_alnum]* )
1285      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1286    esac
1287    eval $ac_envvar=\$ac_optarg
1288    export $ac_envvar ;;
1289
1290  *)
1291    # FIXME: should be removed in autoconf 3.0.
1292    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1293    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1295    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1296    ;;
1297
1298  esac
1299done
1300
1301if test -n "$ac_prev"; then
1302  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1303  as_fn_error $? "missing argument to $ac_option"
1304fi
1305
1306if test -n "$ac_unrecognized_opts"; then
1307  case $enable_option_checking in
1308    no) ;;
1309    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1310    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1311  esac
1312fi
1313
1314# Check all directory arguments for consistency.
1315for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1316		datadir sysconfdir sharedstatedir localstatedir includedir \
1317		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1318		libdir localedir mandir runstatedir
1319do
1320  eval ac_val=\$$ac_var
1321  # Remove trailing slashes.
1322  case $ac_val in
1323    */ )
1324      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1325      eval $ac_var=\$ac_val;;
1326  esac
1327  # Be sure to have absolute directory names.
1328  case $ac_val in
1329    [\\/$]* | ?:[\\/]* )  continue;;
1330    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1331  esac
1332  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1333done
1334
1335# There might be people who depend on the old broken behavior: `$host'
1336# used to hold the argument of --host etc.
1337# FIXME: To remove some day.
1338build=$build_alias
1339host=$host_alias
1340target=$target_alias
1341
1342# FIXME: To remove some day.
1343if test "x$host_alias" != x; then
1344  if test "x$build_alias" = x; then
1345    cross_compiling=maybe
1346  elif test "x$build_alias" != "x$host_alias"; then
1347    cross_compiling=yes
1348  fi
1349fi
1350
1351ac_tool_prefix=
1352test -n "$host_alias" && ac_tool_prefix=$host_alias-
1353
1354test "$silent" = yes && exec 6>/dev/null
1355
1356
1357ac_pwd=`pwd` && test -n "$ac_pwd" &&
1358ac_ls_di=`ls -di .` &&
1359ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1360  as_fn_error $? "working directory cannot be determined"
1361test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1362  as_fn_error $? "pwd does not report name of working directory"
1363
1364
1365# Find the source files, if location was not specified.
1366if test -z "$srcdir"; then
1367  ac_srcdir_defaulted=yes
1368  # Try the directory containing this script, then the parent directory.
1369  ac_confdir=`$as_dirname -- "$as_myself" ||
1370$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371	 X"$as_myself" : 'X\(//\)[^/]' \| \
1372	 X"$as_myself" : 'X\(//\)$' \| \
1373	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1374$as_echo X"$as_myself" |
1375    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376	    s//\1/
1377	    q
1378	  }
1379	  /^X\(\/\/\)[^/].*/{
1380	    s//\1/
1381	    q
1382	  }
1383	  /^X\(\/\/\)$/{
1384	    s//\1/
1385	    q
1386	  }
1387	  /^X\(\/\).*/{
1388	    s//\1/
1389	    q
1390	  }
1391	  s/.*/./; q'`
1392  srcdir=$ac_confdir
1393  if test ! -r "$srcdir/$ac_unique_file"; then
1394    srcdir=..
1395  fi
1396else
1397  ac_srcdir_defaulted=no
1398fi
1399if test ! -r "$srcdir/$ac_unique_file"; then
1400  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1401  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1402fi
1403ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1404ac_abs_confdir=`(
1405	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1406	pwd)`
1407# When building in place, set srcdir=.
1408if test "$ac_abs_confdir" = "$ac_pwd"; then
1409  srcdir=.
1410fi
1411# Remove unnecessary trailing slashes from srcdir.
1412# Double slashes in file names in object file debugging info
1413# mess up M-x gdb in Emacs.
1414case $srcdir in
1415*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1416esac
1417for ac_var in $ac_precious_vars; do
1418  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1419  eval ac_env_${ac_var}_value=\$${ac_var}
1420  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1421  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422done
1423
1424#
1425# Report the --help message.
1426#
1427if test "$ac_init_help" = "long"; then
1428  # Omit some internal or obsolete options to make the list less imposing.
1429  # This message is too long to be a string in the A/UX 3.1 sh.
1430  cat <<_ACEOF
1431\`configure' configures kconfig-frontends 4.11.0.1 to adapt to many kinds of systems.
1432
1433Usage: $0 [OPTION]... [VAR=VALUE]...
1434
1435To assign environment variables (e.g., CC, CFLAGS...), specify them as
1436VAR=VALUE.  See below for descriptions of some of the useful variables.
1437
1438Defaults for the options are specified in brackets.
1439
1440Configuration:
1441  -h, --help              display this help and exit
1442      --help=short        display options specific to this package
1443      --help=recursive    display the short help of all the included packages
1444  -V, --version           display version information and exit
1445  -q, --quiet, --silent   do not print \`checking ...' messages
1446      --cache-file=FILE   cache test results in FILE [disabled]
1447  -C, --config-cache      alias for \`--cache-file=config.cache'
1448  -n, --no-create         do not create output files
1449      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1450
1451Installation directories:
1452  --prefix=PREFIX         install architecture-independent files in PREFIX
1453                          [$ac_default_prefix]
1454  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1455                          [PREFIX]
1456
1457By default, \`make install' will install all the files in
1458\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1459an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1460for instance \`--prefix=\$HOME'.
1461
1462For better control, use the options below.
1463
1464Fine tuning of the installation directories:
1465  --bindir=DIR            user executables [EPREFIX/bin]
1466  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1467  --libexecdir=DIR        program executables [EPREFIX/libexec]
1468  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1469  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1470  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1471  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1472  --libdir=DIR            object code libraries [EPREFIX/lib]
1473  --includedir=DIR        C header files [PREFIX/include]
1474  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1475  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1476  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1477  --infodir=DIR           info documentation [DATAROOTDIR/info]
1478  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1479  --mandir=DIR            man documentation [DATAROOTDIR/man]
1480  --docdir=DIR            documentation root
1481                          [DATAROOTDIR/doc/kconfig-frontends]
1482  --htmldir=DIR           html documentation [DOCDIR]
1483  --dvidir=DIR            dvi documentation [DOCDIR]
1484  --pdfdir=DIR            pdf documentation [DOCDIR]
1485  --psdir=DIR             ps documentation [DOCDIR]
1486_ACEOF
1487
1488  cat <<\_ACEOF
1489
1490Program names:
1491  --program-prefix=PREFIX            prepend PREFIX to installed program names
1492  --program-suffix=SUFFIX            append SUFFIX to installed program names
1493  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1494
1495System types:
1496  --build=BUILD     configure for building on BUILD [guessed]
1497  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1498_ACEOF
1499fi
1500
1501if test -n "$ac_init_help"; then
1502  case $ac_init_help in
1503     short | recursive ) echo "Configuration of kconfig-frontends 4.11.0.1:";;
1504   esac
1505  cat <<\_ACEOF
1506
1507Optional Features:
1508  --disable-option-checking  ignore unrecognized --enable/--with options
1509  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1510  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1511  --enable-silent-rules   less verbose build output (undo: "make V=1")
1512  --disable-silent-rules  verbose build output (undo: "make V=0")
1513  --enable-dependency-tracking
1514                          do not reject slow dependency extractors
1515  --disable-dependency-tracking
1516                          speeds up one-time build
1517  --enable-static[=PKGS]  build static libraries [default=no]
1518  --enable-shared[=PKGS]  build shared libraries [default=yes]
1519  --enable-fast-install[=PKGS]
1520                          optimize for fast installation [default=yes]
1521  --disable-libtool-lock  avoid locking (might break parallel builds)
1522  --disable-wall          build with -Wall (default=yes)
1523  --enable-werror         build with -Werror (default=no)
1524  --enable-root-menu-prompt=PROMPT
1525                          set the root-menu prompt (default=Configuration)
1526  --enable-config-prefix=PREFIX
1527                          the prefix to the config option (default=CONFIG_)
1528  --disable-utils         install utilities to manage .config files
1529                          (default=yes)
1530  --disable-L10n          enable localisation (L10n) (default=auto)
1531  --disable-kconfig       kconfig, the meta-frontend to all kconfig tools
1532                          (default=yes)
1533  --disable-conf          conf, the stdin-based frontend (default=auto)
1534  --disable-mconf         mconf, the traditional ncurses-based frontend
1535                          (default=auto)
1536  --disable-nconf         nconf, the modern ncurses-based frontend
1537                          (default=auto)
1538  --disable-gconf         gconf, the GTK-based frontend (default=auto)
1539  --disable-qconf         qconf, the QT-based frontend (default=auto)
1540  --enable-frontends=list enables only the set of frontends in comma-separated
1541                          'list' (default: auto selection), takes precedence
1542                          over all --enable-*conf, above
1543
1544Optional Packages:
1545  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1546  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1547  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1548                          both]
1549  --with-aix-soname=aix|svr4|both
1550                          shared library versioning (aka "SONAME") variant to
1551                          provide on AIX, [default=aix].
1552  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1553  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1554                          compiler's sysroot if not specified).
1555
1556Some influential environment variables:
1557  CC          C compiler command
1558  CFLAGS      C compiler flags
1559  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1560              nonstandard directory <lib dir>
1561  LIBS        libraries to pass to the linker, e.g. -l<library>
1562  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1563              you have headers in a nonstandard directory <include dir>
1564  LT_SYS_LIBRARY_PATH
1565              User-defined run-time library search path.
1566  CPP         C preprocessor
1567  CXX         C++ compiler command
1568  CXXFLAGS    C++ compiler flags
1569  CXXCPP      C++ preprocessor
1570  PKG_CONFIG  path to pkg-config utility
1571  PKG_CONFIG_PATH
1572              directories to add to pkg-config's search path
1573  PKG_CONFIG_LIBDIR
1574              path overriding pkg-config's built-in search path
1575  YACC        The `Yet Another Compiler Compiler' implementation to use.
1576              Defaults to the first program found out of: `bison -y', `byacc',
1577              `yacc'.
1578  YFLAGS      The list of arguments that will be passed by default to $YACC.
1579              This script will default YFLAGS to the empty string to avoid a
1580              default value of `-d' given by some make applications.
1581  gtk_CFLAGS  C compiler flags for gtk, overriding pkg-config
1582  gtk_LIBS    linker flags for gtk, overriding pkg-config
1583  Qt5_CFLAGS  C compiler flags for Qt5, overriding pkg-config
1584  Qt5_LIBS    linker flags for Qt5, overriding pkg-config
1585  MOC         Qt5 meta object compiler (moc) command
1586  conf_EXTRA_LIBS
1587              Extra libraries to build the conf frontend
1588  gconf_EXTRA_LIBS
1589              Extra libraries to build the gconf frontend
1590  mconf_EXTRA_LIBS
1591              Extra libraries to build the mconf frontend
1592  nconf_EXTRA_LIBS
1593              Extra libraries to build the nconf frontend
1594  qconf_EXTRA_LIBS
1595              Extra libraries to build the qconf frontend
1596
1597Use these variables to override the choices made by `configure' or to help
1598it to find libraries and programs with nonstandard names/locations.
1599
1600Report bugs to <[email protected]>.
1601_ACEOF
1602ac_status=$?
1603fi
1604
1605if test "$ac_init_help" = "recursive"; then
1606  # If there are subdirs, report their specific --help.
1607  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1608    test -d "$ac_dir" ||
1609      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1610      continue
1611    ac_builddir=.
1612
1613case "$ac_dir" in
1614.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615*)
1616  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1617  # A ".." for each directory in $ac_dir_suffix.
1618  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1619  case $ac_top_builddir_sub in
1620  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622  esac ;;
1623esac
1624ac_abs_top_builddir=$ac_pwd
1625ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626# for backward compatibility:
1627ac_top_builddir=$ac_top_build_prefix
1628
1629case $srcdir in
1630  .)  # We are building in place.
1631    ac_srcdir=.
1632    ac_top_srcdir=$ac_top_builddir_sub
1633    ac_abs_top_srcdir=$ac_pwd ;;
1634  [\\/]* | ?:[\\/]* )  # Absolute name.
1635    ac_srcdir=$srcdir$ac_dir_suffix;
1636    ac_top_srcdir=$srcdir
1637    ac_abs_top_srcdir=$srcdir ;;
1638  *) # Relative name.
1639    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640    ac_top_srcdir=$ac_top_build_prefix$srcdir
1641    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642esac
1643ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644
1645    cd "$ac_dir" || { ac_status=$?; continue; }
1646    # Check for guested configure.
1647    if test -f "$ac_srcdir/configure.gnu"; then
1648      echo &&
1649      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650    elif test -f "$ac_srcdir/configure"; then
1651      echo &&
1652      $SHELL "$ac_srcdir/configure" --help=recursive
1653    else
1654      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655    fi || ac_status=$?
1656    cd "$ac_pwd" || { ac_status=$?; break; }
1657  done
1658fi
1659
1660test -n "$ac_init_help" && exit $ac_status
1661if $ac_init_version; then
1662  cat <<\_ACEOF
1663kconfig-frontends configure 4.11.0.1
1664generated by GNU Autoconf 2.69
1665
1666Copyright (C) 2012 Free Software Foundation, Inc.
1667This configure script is free software; the Free Software Foundation
1668gives unlimited permission to copy, distribute and modify it.
1669_ACEOF
1670  exit
1671fi
1672
1673## ------------------------ ##
1674## Autoconf initialization. ##
1675## ------------------------ ##
1676
1677# ac_fn_c_try_compile LINENO
1678# --------------------------
1679# Try to compile conftest.$ac_ext, and return whether this succeeded.
1680ac_fn_c_try_compile ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  rm -f conftest.$ac_objext
1684  if { { ac_try="$ac_compile"
1685case "(($ac_try" in
1686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687  *) ac_try_echo=$ac_try;;
1688esac
1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690$as_echo "$ac_try_echo"; } >&5
1691  (eval "$ac_compile") 2>conftest.err
1692  ac_status=$?
1693  if test -s conftest.err; then
1694    grep -v '^ *+' conftest.err >conftest.er1
1695    cat conftest.er1 >&5
1696    mv -f conftest.er1 conftest.err
1697  fi
1698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699  test $ac_status = 0; } && {
1700	 test -z "$ac_c_werror_flag" ||
1701	 test ! -s conftest.err
1702       } && test -s conftest.$ac_objext; then :
1703  ac_retval=0
1704else
1705  $as_echo "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708	ac_retval=1
1709fi
1710  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711  as_fn_set_status $ac_retval
1712
1713} # ac_fn_c_try_compile
1714
1715# ac_fn_c_try_link LINENO
1716# -----------------------
1717# Try to link conftest.$ac_ext, and return whether this succeeded.
1718ac_fn_c_try_link ()
1719{
1720  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721  rm -f conftest.$ac_objext conftest$ac_exeext
1722  if { { ac_try="$ac_link"
1723case "(($ac_try" in
1724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725  *) ac_try_echo=$ac_try;;
1726esac
1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728$as_echo "$ac_try_echo"; } >&5
1729  (eval "$ac_link") 2>conftest.err
1730  ac_status=$?
1731  if test -s conftest.err; then
1732    grep -v '^ *+' conftest.err >conftest.er1
1733    cat conftest.er1 >&5
1734    mv -f conftest.er1 conftest.err
1735  fi
1736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737  test $ac_status = 0; } && {
1738	 test -z "$ac_c_werror_flag" ||
1739	 test ! -s conftest.err
1740       } && test -s conftest$ac_exeext && {
1741	 test "$cross_compiling" = yes ||
1742	 test -x conftest$ac_exeext
1743       }; then :
1744  ac_retval=0
1745else
1746  $as_echo "$as_me: failed program was:" >&5
1747sed 's/^/| /' conftest.$ac_ext >&5
1748
1749	ac_retval=1
1750fi
1751  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1752  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1753  # interfere with the next link command; also delete a directory that is
1754  # left behind by Apple's compiler.  We do this before executing the actions.
1755  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757  as_fn_set_status $ac_retval
1758
1759} # ac_fn_c_try_link
1760
1761# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762# -------------------------------------------------------
1763# Tests whether HEADER exists and can be compiled using the include files in
1764# INCLUDES, setting the cache variable VAR accordingly.
1765ac_fn_c_check_header_compile ()
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$4
1776#include <$2>
1777_ACEOF
1778if ac_fn_c_try_compile "$LINENO"; then :
1779  eval "$3=yes"
1780else
1781  eval "$3=no"
1782fi
1783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784fi
1785eval ac_res=\$$3
1786	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787$as_echo "$ac_res" >&6; }
1788  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790} # ac_fn_c_check_header_compile
1791
1792# ac_fn_c_try_cpp LINENO
1793# ----------------------
1794# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1795ac_fn_c_try_cpp ()
1796{
1797  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798  if { { ac_try="$ac_cpp conftest.$ac_ext"
1799case "(($ac_try" in
1800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801  *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1806  ac_status=$?
1807  if test -s conftest.err; then
1808    grep -v '^ *+' conftest.err >conftest.er1
1809    cat conftest.er1 >&5
1810    mv -f conftest.er1 conftest.err
1811  fi
1812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813  test $ac_status = 0; } > conftest.i && {
1814	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1815	 test ! -s conftest.err
1816       }; then :
1817  ac_retval=0
1818else
1819  $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822    ac_retval=1
1823fi
1824  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825  as_fn_set_status $ac_retval
1826
1827} # ac_fn_c_try_cpp
1828
1829# ac_fn_c_try_run LINENO
1830# ----------------------
1831# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1832# that executables *can* be run.
1833ac_fn_c_try_run ()
1834{
1835  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836  if { { ac_try="$ac_link"
1837case "(($ac_try" in
1838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839  *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843  (eval "$ac_link") 2>&5
1844  ac_status=$?
1845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1847  { { case "(($ac_try" in
1848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849  *) ac_try_echo=$ac_try;;
1850esac
1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852$as_echo "$ac_try_echo"; } >&5
1853  (eval "$ac_try") 2>&5
1854  ac_status=$?
1855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856  test $ac_status = 0; }; }; then :
1857  ac_retval=0
1858else
1859  $as_echo "$as_me: program exited with status $ac_status" >&5
1860       $as_echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863       ac_retval=$ac_status
1864fi
1865  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867  as_fn_set_status $ac_retval
1868
1869} # ac_fn_c_try_run
1870
1871# ac_fn_c_check_func LINENO FUNC VAR
1872# ----------------------------------
1873# Tests whether FUNC exists, setting the cache variable VAR accordingly
1874ac_fn_c_check_func ()
1875{
1876  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878$as_echo_n "checking for $2... " >&6; }
1879if eval \${$3+:} false; then :
1880  $as_echo_n "(cached) " >&6
1881else
1882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h.  */
1884/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1886#define $2 innocuous_$2
1887
1888/* System header to define __stub macros and hopefully few prototypes,
1889    which can conflict with char $2 (); below.
1890    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891    <limits.h> exists even on freestanding compilers.  */
1892
1893#ifdef __STDC__
1894# include <limits.h>
1895#else
1896# include <assert.h>
1897#endif
1898
1899#undef $2
1900
1901/* Override any GCC internal prototype to avoid an error.
1902   Use char because int might match the return type of a GCC
1903   builtin and then its argument prototype would still apply.  */
1904#ifdef __cplusplus
1905extern "C"
1906#endif
1907char $2 ();
1908/* The GNU C library defines this for functions which it implements
1909    to always fail with ENOSYS.  Some functions are actually named
1910    something starting with __ and the normal name is an alias.  */
1911#if defined __stub_$2 || defined __stub___$2
1912choke me
1913#endif
1914
1915int
1916main ()
1917{
1918return $2 ();
1919  ;
1920  return 0;
1921}
1922_ACEOF
1923if ac_fn_c_try_link "$LINENO"; then :
1924  eval "$3=yes"
1925else
1926  eval "$3=no"
1927fi
1928rm -f core conftest.err conftest.$ac_objext \
1929    conftest$ac_exeext conftest.$ac_ext
1930fi
1931eval ac_res=\$$3
1932	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933$as_echo "$ac_res" >&6; }
1934  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936} # ac_fn_c_check_func
1937
1938# ac_fn_cxx_try_compile LINENO
1939# ----------------------------
1940# Try to compile conftest.$ac_ext, and return whether this succeeded.
1941ac_fn_cxx_try_compile ()
1942{
1943  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944  rm -f conftest.$ac_objext
1945  if { { ac_try="$ac_compile"
1946case "(($ac_try" in
1947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948  *) ac_try_echo=$ac_try;;
1949esac
1950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951$as_echo "$ac_try_echo"; } >&5
1952  (eval "$ac_compile") 2>conftest.err
1953  ac_status=$?
1954  if test -s conftest.err; then
1955    grep -v '^ *+' conftest.err >conftest.er1
1956    cat conftest.er1 >&5
1957    mv -f conftest.er1 conftest.err
1958  fi
1959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960  test $ac_status = 0; } && {
1961	 test -z "$ac_cxx_werror_flag" ||
1962	 test ! -s conftest.err
1963       } && test -s conftest.$ac_objext; then :
1964  ac_retval=0
1965else
1966  $as_echo "$as_me: failed program was:" >&5
1967sed 's/^/| /' conftest.$ac_ext >&5
1968
1969	ac_retval=1
1970fi
1971  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972  as_fn_set_status $ac_retval
1973
1974} # ac_fn_cxx_try_compile
1975
1976# ac_fn_cxx_try_cpp LINENO
1977# ------------------------
1978# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1979ac_fn_cxx_try_cpp ()
1980{
1981  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982  if { { ac_try="$ac_cpp conftest.$ac_ext"
1983case "(($ac_try" in
1984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985  *) ac_try_echo=$ac_try;;
1986esac
1987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988$as_echo "$ac_try_echo"; } >&5
1989  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1990  ac_status=$?
1991  if test -s conftest.err; then
1992    grep -v '^ *+' conftest.err >conftest.er1
1993    cat conftest.er1 >&5
1994    mv -f conftest.er1 conftest.err
1995  fi
1996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997  test $ac_status = 0; } > conftest.i && {
1998	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1999	 test ! -s conftest.err
2000       }; then :
2001  ac_retval=0
2002else
2003  $as_echo "$as_me: failed program was:" >&5
2004sed 's/^/| /' conftest.$ac_ext >&5
2005
2006    ac_retval=1
2007fi
2008  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009  as_fn_set_status $ac_retval
2010
2011} # ac_fn_cxx_try_cpp
2012
2013# ac_fn_cxx_try_link LINENO
2014# -------------------------
2015# Try to link conftest.$ac_ext, and return whether this succeeded.
2016ac_fn_cxx_try_link ()
2017{
2018  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019  rm -f conftest.$ac_objext conftest$ac_exeext
2020  if { { ac_try="$ac_link"
2021case "(($ac_try" in
2022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2023  *) ac_try_echo=$ac_try;;
2024esac
2025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2026$as_echo "$ac_try_echo"; } >&5
2027  (eval "$ac_link") 2>conftest.err
2028  ac_status=$?
2029  if test -s conftest.err; then
2030    grep -v '^ *+' conftest.err >conftest.er1
2031    cat conftest.er1 >&5
2032    mv -f conftest.er1 conftest.err
2033  fi
2034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2035  test $ac_status = 0; } && {
2036	 test -z "$ac_cxx_werror_flag" ||
2037	 test ! -s conftest.err
2038       } && test -s conftest$ac_exeext && {
2039	 test "$cross_compiling" = yes ||
2040	 test -x conftest$ac_exeext
2041       }; then :
2042  ac_retval=0
2043else
2044  $as_echo "$as_me: failed program was:" >&5
2045sed 's/^/| /' conftest.$ac_ext >&5
2046
2047	ac_retval=1
2048fi
2049  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2050  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2051  # interfere with the next link command; also delete a directory that is
2052  # left behind by Apple's compiler.  We do this before executing the actions.
2053  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2054  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055  as_fn_set_status $ac_retval
2056
2057} # ac_fn_cxx_try_link
2058
2059# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2060# -------------------------------------------------------
2061# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2062# the include files in INCLUDES and setting the cache variable VAR
2063# accordingly.
2064ac_fn_c_check_header_mongrel ()
2065{
2066  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067  if eval \${$3+:} false; then :
2068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069$as_echo_n "checking for $2... " >&6; }
2070if eval \${$3+:} false; then :
2071  $as_echo_n "(cached) " >&6
2072fi
2073eval ac_res=\$$3
2074	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075$as_echo "$ac_res" >&6; }
2076else
2077  # Is the header compilable?
2078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2079$as_echo_n "checking $2 usability... " >&6; }
2080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081/* end confdefs.h.  */
2082$4
2083#include <$2>
2084_ACEOF
2085if ac_fn_c_try_compile "$LINENO"; then :
2086  ac_header_compiler=yes
2087else
2088  ac_header_compiler=no
2089fi
2090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2092$as_echo "$ac_header_compiler" >&6; }
2093
2094# Is the header present?
2095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2096$as_echo_n "checking $2 presence... " >&6; }
2097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098/* end confdefs.h.  */
2099#include <$2>
2100_ACEOF
2101if ac_fn_c_try_cpp "$LINENO"; then :
2102  ac_header_preproc=yes
2103else
2104  ac_header_preproc=no
2105fi
2106rm -f conftest.err conftest.i conftest.$ac_ext
2107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2108$as_echo "$ac_header_preproc" >&6; }
2109
2110# So?  What about this header?
2111case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2112  yes:no: )
2113    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2114$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2115    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2116$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2117    ;;
2118  no:yes:* )
2119    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2120$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2121    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2122$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2123    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2124$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2125    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2126$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2127    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2128$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2129( $as_echo "## -------------------------------------- ##
2130## Report this to [email protected] ##
2131## -------------------------------------- ##"
2132     ) | sed "s/^/$as_me: WARNING:     /" >&2
2133    ;;
2134esac
2135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2136$as_echo_n "checking for $2... " >&6; }
2137if eval \${$3+:} false; then :
2138  $as_echo_n "(cached) " >&6
2139else
2140  eval "$3=\$ac_header_compiler"
2141fi
2142eval ac_res=\$$3
2143	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144$as_echo "$ac_res" >&6; }
2145fi
2146  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147
2148} # ac_fn_c_check_header_mongrel
2149
2150# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2151# ---------------------------------------------
2152# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2153# accordingly.
2154ac_fn_c_check_decl ()
2155{
2156  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157  as_decl_name=`echo $2|sed 's/ *(.*//'`
2158  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2159  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2160$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2161if eval \${$3+:} false; then :
2162  $as_echo_n "(cached) " >&6
2163else
2164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165/* end confdefs.h.  */
2166$4
2167int
2168main ()
2169{
2170#ifndef $as_decl_name
2171#ifdef __cplusplus
2172  (void) $as_decl_use;
2173#else
2174  (void) $as_decl_name;
2175#endif
2176#endif
2177
2178  ;
2179  return 0;
2180}
2181_ACEOF
2182if ac_fn_c_try_compile "$LINENO"; then :
2183  eval "$3=yes"
2184else
2185  eval "$3=no"
2186fi
2187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188fi
2189eval ac_res=\$$3
2190	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2191$as_echo "$ac_res" >&6; }
2192  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2193
2194} # ac_fn_c_check_decl
2195cat >config.log <<_ACEOF
2196This file contains any messages produced by compilers while
2197running configure, to aid debugging if configure makes a mistake.
2198
2199It was created by kconfig-frontends $as_me 4.11.0.1, which was
2200generated by GNU Autoconf 2.69.  Invocation command line was
2201
2202  $ $0 $@
2203
2204_ACEOF
2205exec 5>>config.log
2206{
2207cat <<_ASUNAME
2208## --------- ##
2209## Platform. ##
2210## --------- ##
2211
2212hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2213uname -m = `(uname -m) 2>/dev/null || echo unknown`
2214uname -r = `(uname -r) 2>/dev/null || echo unknown`
2215uname -s = `(uname -s) 2>/dev/null || echo unknown`
2216uname -v = `(uname -v) 2>/dev/null || echo unknown`
2217
2218/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2219/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2220
2221/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2222/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2223/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2224/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2225/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2226/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2227/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2228
2229_ASUNAME
2230
2231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232for as_dir in $PATH
2233do
2234  IFS=$as_save_IFS
2235  test -z "$as_dir" && as_dir=.
2236    $as_echo "PATH: $as_dir"
2237  done
2238IFS=$as_save_IFS
2239
2240} >&5
2241
2242cat >&5 <<_ACEOF
2243
2244
2245## ----------- ##
2246## Core tests. ##
2247## ----------- ##
2248
2249_ACEOF
2250
2251
2252# Keep a trace of the command line.
2253# Strip out --no-create and --no-recursion so they do not pile up.
2254# Strip out --silent because we don't want to record it for future runs.
2255# Also quote any args containing shell meta-characters.
2256# Make two passes to allow for proper duplicate-argument suppression.
2257ac_configure_args=
2258ac_configure_args0=
2259ac_configure_args1=
2260ac_must_keep_next=false
2261for ac_pass in 1 2
2262do
2263  for ac_arg
2264  do
2265    case $ac_arg in
2266    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2267    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2268    | -silent | --silent | --silen | --sile | --sil)
2269      continue ;;
2270    *\'*)
2271      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2272    esac
2273    case $ac_pass in
2274    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2275    2)
2276      as_fn_append ac_configure_args1 " '$ac_arg'"
2277      if test $ac_must_keep_next = true; then
2278	ac_must_keep_next=false # Got value, back to normal.
2279      else
2280	case $ac_arg in
2281	  *=* | --config-cache | -C | -disable-* | --disable-* \
2282	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2283	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2284	  | -with-* | --with-* | -without-* | --without-* | --x)
2285	    case "$ac_configure_args0 " in
2286	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2287	    esac
2288	    ;;
2289	  -* ) ac_must_keep_next=true ;;
2290	esac
2291      fi
2292      as_fn_append ac_configure_args " '$ac_arg'"
2293      ;;
2294    esac
2295  done
2296done
2297{ ac_configure_args0=; unset ac_configure_args0;}
2298{ ac_configure_args1=; unset ac_configure_args1;}
2299
2300# When interrupted or exit'd, cleanup temporary files, and complete
2301# config.log.  We remove comments because anyway the quotes in there
2302# would cause problems or look ugly.
2303# WARNING: Use '\'' to represent an apostrophe within the trap.
2304# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2305trap 'exit_status=$?
2306  # Save into config.log some information that might help in debugging.
2307  {
2308    echo
2309
2310    $as_echo "## ---------------- ##
2311## Cache variables. ##
2312## ---------------- ##"
2313    echo
2314    # The following way of writing the cache mishandles newlines in values,
2315(
2316  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2317    eval ac_val=\$$ac_var
2318    case $ac_val in #(
2319    *${as_nl}*)
2320      case $ac_var in #(
2321      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2322$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2323      esac
2324      case $ac_var in #(
2325      _ | IFS | as_nl) ;; #(
2326      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2327      *) { eval $ac_var=; unset $ac_var;} ;;
2328      esac ;;
2329    esac
2330  done
2331  (set) 2>&1 |
2332    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2333    *${as_nl}ac_space=\ *)
2334      sed -n \
2335	"s/'\''/'\''\\\\'\'''\''/g;
2336	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2337      ;; #(
2338    *)
2339      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2340      ;;
2341    esac |
2342    sort
2343)
2344    echo
2345
2346    $as_echo "## ----------------- ##
2347## Output variables. ##
2348## ----------------- ##"
2349    echo
2350    for ac_var in $ac_subst_vars
2351    do
2352      eval ac_val=\$$ac_var
2353      case $ac_val in
2354      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2355      esac
2356      $as_echo "$ac_var='\''$ac_val'\''"
2357    done | sort
2358    echo
2359
2360    if test -n "$ac_subst_files"; then
2361      $as_echo "## ------------------- ##
2362## File substitutions. ##
2363## ------------------- ##"
2364      echo
2365      for ac_var in $ac_subst_files
2366      do
2367	eval ac_val=\$$ac_var
2368	case $ac_val in
2369	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370	esac
2371	$as_echo "$ac_var='\''$ac_val'\''"
2372      done | sort
2373      echo
2374    fi
2375
2376    if test -s confdefs.h; then
2377      $as_echo "## ----------- ##
2378## confdefs.h. ##
2379## ----------- ##"
2380      echo
2381      cat confdefs.h
2382      echo
2383    fi
2384    test "$ac_signal" != 0 &&
2385      $as_echo "$as_me: caught signal $ac_signal"
2386    $as_echo "$as_me: exit $exit_status"
2387  } >&5
2388  rm -f core *.core core.conftest.* &&
2389    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2390    exit $exit_status
2391' 0
2392for ac_signal in 1 2 13 15; do
2393  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2394done
2395ac_signal=0
2396
2397# confdefs.h avoids OS command line length limits that DEFS can exceed.
2398rm -f -r conftest* confdefs.h
2399
2400$as_echo "/* confdefs.h */" > confdefs.h
2401
2402# Predefined preprocessor variables.
2403
2404cat >>confdefs.h <<_ACEOF
2405#define PACKAGE_NAME "$PACKAGE_NAME"
2406_ACEOF
2407
2408cat >>confdefs.h <<_ACEOF
2409#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2410_ACEOF
2411
2412cat >>confdefs.h <<_ACEOF
2413#define PACKAGE_VERSION "$PACKAGE_VERSION"
2414_ACEOF
2415
2416cat >>confdefs.h <<_ACEOF
2417#define PACKAGE_STRING "$PACKAGE_STRING"
2418_ACEOF
2419
2420cat >>confdefs.h <<_ACEOF
2421#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2422_ACEOF
2423
2424cat >>confdefs.h <<_ACEOF
2425#define PACKAGE_URL "$PACKAGE_URL"
2426_ACEOF
2427
2428
2429# Let the site file select an alternate cache file if it wants to.
2430# Prefer an explicitly selected file to automatically selected ones.
2431ac_site_file1=NONE
2432ac_site_file2=NONE
2433if test -n "$CONFIG_SITE"; then
2434  # We do not want a PATH search for config.site.
2435  case $CONFIG_SITE in #((
2436    -*)  ac_site_file1=./$CONFIG_SITE;;
2437    */*) ac_site_file1=$CONFIG_SITE;;
2438    *)   ac_site_file1=./$CONFIG_SITE;;
2439  esac
2440elif test "x$prefix" != xNONE; then
2441  ac_site_file1=$prefix/share/config.site
2442  ac_site_file2=$prefix/etc/config.site
2443else
2444  ac_site_file1=$ac_default_prefix/share/config.site
2445  ac_site_file2=$ac_default_prefix/etc/config.site
2446fi
2447for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2448do
2449  test "x$ac_site_file" = xNONE && continue
2450  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2451    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2452$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2453    sed 's/^/| /' "$ac_site_file" >&5
2454    . "$ac_site_file" \
2455      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2457as_fn_error $? "failed to load site script $ac_site_file
2458See \`config.log' for more details" "$LINENO" 5; }
2459  fi
2460done
2461
2462if test -r "$cache_file"; then
2463  # Some versions of bash will fail to source /dev/null (special files
2464  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2465  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2466    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2467$as_echo "$as_me: loading cache $cache_file" >&6;}
2468    case $cache_file in
2469      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2470      *)                      . "./$cache_file";;
2471    esac
2472  fi
2473else
2474  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2475$as_echo "$as_me: creating cache $cache_file" >&6;}
2476  >$cache_file
2477fi
2478
2479# Check that the precious variables saved in the cache have kept the same
2480# value.
2481ac_cache_corrupted=false
2482for ac_var in $ac_precious_vars; do
2483  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2484  eval ac_new_set=\$ac_env_${ac_var}_set
2485  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2486  eval ac_new_val=\$ac_env_${ac_var}_value
2487  case $ac_old_set,$ac_new_set in
2488    set,)
2489      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2490$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2491      ac_cache_corrupted=: ;;
2492    ,set)
2493      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2494$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2495      ac_cache_corrupted=: ;;
2496    ,);;
2497    *)
2498      if test "x$ac_old_val" != "x$ac_new_val"; then
2499	# differences in whitespace do not lead to failure.
2500	ac_old_val_w=`echo x $ac_old_val`
2501	ac_new_val_w=`echo x $ac_new_val`
2502	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2503	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2504$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2505	  ac_cache_corrupted=:
2506	else
2507	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2508$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2509	  eval $ac_var=\$ac_old_val
2510	fi
2511	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2512$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2513	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2514$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2515      fi;;
2516  esac
2517  # Pass precious variables to config.status.
2518  if test "$ac_new_set" = set; then
2519    case $ac_new_val in
2520    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2521    *) ac_arg=$ac_var=$ac_new_val ;;
2522    esac
2523    case " $ac_configure_args " in
2524      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2525      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2526    esac
2527  fi
2528done
2529if $ac_cache_corrupted; then
2530  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2532  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2533$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2534  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2535fi
2536## -------------------- ##
2537## Main body of script. ##
2538## -------------------- ##
2539
2540ac_ext=c
2541ac_cpp='$CPP $CPPFLAGS'
2542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545
2546
2547
2548# Use a config.h to avoid brazilions -DHAVE_FOO on compile lines
2549ac_config_headers="$ac_config_headers scripts/.autostuff/config.h"
2550
2551ac_aux_dir=
2552for ac_dir in scripts/.autostuff/scripts "$srcdir"/scripts/.autostuff/scripts; do
2553  if test -f "$ac_dir/install-sh"; then
2554    ac_aux_dir=$ac_dir
2555    ac_install_sh="$ac_aux_dir/install-sh -c"
2556    break
2557  elif test -f "$ac_dir/install.sh"; then
2558    ac_aux_dir=$ac_dir
2559    ac_install_sh="$ac_aux_dir/install.sh -c"
2560    break
2561  elif test -f "$ac_dir/shtool"; then
2562    ac_aux_dir=$ac_dir
2563    ac_install_sh="$ac_aux_dir/shtool install -c"
2564    break
2565  fi
2566done
2567if test -z "$ac_aux_dir"; then
2568  as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/.autostuff/scripts \"$srcdir\"/scripts/.autostuff/scripts" "$LINENO" 5
2569fi
2570
2571# These three variables are undocumented and unsupported,
2572# and are intended to be withdrawn in a future Autoconf release.
2573# They can cause serious problems if a builder's source tree is in a directory
2574# whose full name contains unusual characters.
2575ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2576ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2577ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2578
2579
2580
2581
2582#----------------------------------------
2583# Prepare automake
2584
2585am__api_version='1.15'
2586
2587# Find a good install program.  We prefer a C program (faster),
2588# so one script is as good as another.  But avoid the broken or
2589# incompatible versions:
2590# SysV /etc/install, /usr/sbin/install
2591# SunOS /usr/etc/install
2592# IRIX /sbin/install
2593# AIX /bin/install
2594# AmigaOS /C/install, which installs bootblocks on floppy discs
2595# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2596# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2597# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2598# OS/2's system install, which has a completely different semantic
2599# ./install, which can be erroneously created by make from ./install.sh.
2600# Reject install programs that cannot install multiple files.
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2602$as_echo_n "checking for a BSD-compatible install... " >&6; }
2603if test -z "$INSTALL"; then
2604if ${ac_cv_path_install+:} false; then :
2605  $as_echo_n "(cached) " >&6
2606else
2607  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608for as_dir in $PATH
2609do
2610  IFS=$as_save_IFS
2611  test -z "$as_dir" && as_dir=.
2612    # Account for people who put trailing slashes in PATH elements.
2613case $as_dir/ in #((
2614  ./ | .// | /[cC]/* | \
2615  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2616  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2617  /usr/ucb/* ) ;;
2618  *)
2619    # OSF1 and SCO ODT 3.0 have their own names for install.
2620    # Don't use installbsd from OSF since it installs stuff as root
2621    # by default.
2622    for ac_prog in ginstall scoinst install; do
2623      for ac_exec_ext in '' $ac_executable_extensions; do
2624	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2625	  if test $ac_prog = install &&
2626	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2627	    # AIX install.  It has an incompatible calling convention.
2628	    :
2629	  elif test $ac_prog = install &&
2630	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2631	    # program-specific install script used by HP pwplus--don't use.
2632	    :
2633	  else
2634	    rm -rf conftest.one conftest.two conftest.dir
2635	    echo one > conftest.one
2636	    echo two > conftest.two
2637	    mkdir conftest.dir
2638	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2639	      test -s conftest.one && test -s conftest.two &&
2640	      test -s conftest.dir/conftest.one &&
2641	      test -s conftest.dir/conftest.two
2642	    then
2643	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2644	      break 3
2645	    fi
2646	  fi
2647	fi
2648      done
2649    done
2650    ;;
2651esac
2652
2653  done
2654IFS=$as_save_IFS
2655
2656rm -rf conftest.one conftest.two conftest.dir
2657
2658fi
2659  if test "${ac_cv_path_install+set}" = set; then
2660    INSTALL=$ac_cv_path_install
2661  else
2662    # As a last resort, use the slow shell script.  Don't cache a
2663    # value for INSTALL within a source directory, because that will
2664    # break other packages using the cache if that directory is
2665    # removed, or if the value is a relative name.
2666    INSTALL=$ac_install_sh
2667  fi
2668fi
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2670$as_echo "$INSTALL" >&6; }
2671
2672# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2673# It thinks the first close brace ends the variable substitution.
2674test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2675
2676test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2677
2678test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2679
2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2681$as_echo_n "checking whether build environment is sane... " >&6; }
2682# Reject unsafe characters in $srcdir or the absolute working directory
2683# name.  Accept space and tab only in the latter.
2684am_lf='
2685'
2686case `pwd` in
2687  *[\\\"\#\$\&\'\`$am_lf]*)
2688    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2689esac
2690case $srcdir in
2691  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2692    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2693esac
2694
2695# Do 'set' in a subshell so we don't clobber the current shell's
2696# arguments.  Must try -L first in case configure is actually a
2697# symlink; some systems play weird games with the mod time of symlinks
2698# (eg FreeBSD returns the mod time of the symlink's containing
2699# directory).
2700if (
2701   am_has_slept=no
2702   for am_try in 1 2; do
2703     echo "timestamp, slept: $am_has_slept" > conftest.file
2704     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2705     if test "$*" = "X"; then
2706	# -L didn't work.
2707	set X `ls -t "$srcdir/configure" conftest.file`
2708     fi
2709     if test "$*" != "X $srcdir/configure conftest.file" \
2710	&& test "$*" != "X conftest.file $srcdir/configure"; then
2711
2712	# If neither matched, then we have a broken ls.  This can happen
2713	# if, for instance, CONFIG_SHELL is bash and it inherits a
2714	# broken ls alias from the environment.  This has actually
2715	# happened.  Such a system could not be considered "sane".
2716	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2717  alias in your environment" "$LINENO" 5
2718     fi
2719     if test "$2" = conftest.file || test $am_try -eq 2; then
2720       break
2721     fi
2722     # Just in case.
2723     sleep 1
2724     am_has_slept=yes
2725   done
2726   test "$2" = conftest.file
2727   )
2728then
2729   # Ok.
2730   :
2731else
2732   as_fn_error $? "newly created file is older than distributed files!
2733Check your system clock" "$LINENO" 5
2734fi
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2736$as_echo "yes" >&6; }
2737# If we didn't sleep, we still need to ensure time stamps of config.status and
2738# generated files are strictly newer.
2739am_sleep_pid=
2740if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2741  ( sleep 1 ) &
2742  am_sleep_pid=$!
2743fi
2744
2745rm -f conftest.file
2746
2747test "$program_prefix" != NONE &&
2748  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2749# Use a double $ so make ignores it.
2750test "$program_suffix" != NONE &&
2751  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2752# Double any \ or $.
2753# By default was `s,x,x', remove it if useless.
2754ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2755program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2756
2757# Expand $ac_aux_dir to an absolute path.
2758am_aux_dir=`cd "$ac_aux_dir" && pwd`
2759
2760if test x"${MISSING+set}" != xset; then
2761  case $am_aux_dir in
2762  *\ * | *\	*)
2763    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2764  *)
2765    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2766  esac
2767fi
2768# Use eval to expand $SHELL
2769if eval "$MISSING --is-lightweight"; then
2770  am_missing_run="$MISSING "
2771else
2772  am_missing_run=
2773  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2774$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2775fi
2776
2777if test x"${install_sh+set}" != xset; then
2778  case $am_aux_dir in
2779  *\ * | *\	*)
2780    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2781  *)
2782    install_sh="\${SHELL} $am_aux_dir/install-sh"
2783  esac
2784fi
2785
2786# Installed binaries are usually stripped using 'strip' when the user
2787# run "make install-strip".  However 'strip' might not be the right
2788# tool to use in cross-compilation environments, therefore Automake
2789# will honor the 'STRIP' environment variable to overrule this program.
2790if test "$cross_compiling" != no; then
2791  if test -n "$ac_tool_prefix"; then
2792  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2793set dummy ${ac_tool_prefix}strip; ac_word=$2
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795$as_echo_n "checking for $ac_word... " >&6; }
2796if ${ac_cv_prog_STRIP+:} false; then :
2797  $as_echo_n "(cached) " >&6
2798else
2799  if test -n "$STRIP"; then
2800  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2801else
2802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803for as_dir in $PATH
2804do
2805  IFS=$as_save_IFS
2806  test -z "$as_dir" && as_dir=.
2807    for ac_exec_ext in '' $ac_executable_extensions; do
2808  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2810    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811    break 2
2812  fi
2813done
2814  done
2815IFS=$as_save_IFS
2816
2817fi
2818fi
2819STRIP=$ac_cv_prog_STRIP
2820if test -n "$STRIP"; then
2821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2822$as_echo "$STRIP" >&6; }
2823else
2824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825$as_echo "no" >&6; }
2826fi
2827
2828
2829fi
2830if test -z "$ac_cv_prog_STRIP"; then
2831  ac_ct_STRIP=$STRIP
2832  # Extract the first word of "strip", so it can be a program name with args.
2833set dummy strip; ac_word=$2
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835$as_echo_n "checking for $ac_word... " >&6; }
2836if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2837  $as_echo_n "(cached) " >&6
2838else
2839  if test -n "$ac_ct_STRIP"; then
2840  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2841else
2842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843for as_dir in $PATH
2844do
2845  IFS=$as_save_IFS
2846  test -z "$as_dir" && as_dir=.
2847    for ac_exec_ext in '' $ac_executable_extensions; do
2848  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2849    ac_cv_prog_ac_ct_STRIP="strip"
2850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851    break 2
2852  fi
2853done
2854  done
2855IFS=$as_save_IFS
2856
2857fi
2858fi
2859ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2860if test -n "$ac_ct_STRIP"; then
2861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2862$as_echo "$ac_ct_STRIP" >&6; }
2863else
2864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865$as_echo "no" >&6; }
2866fi
2867
2868  if test "x$ac_ct_STRIP" = x; then
2869    STRIP=":"
2870  else
2871    case $cross_compiling:$ac_tool_warned in
2872yes:)
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2875ac_tool_warned=yes ;;
2876esac
2877    STRIP=$ac_ct_STRIP
2878  fi
2879else
2880  STRIP="$ac_cv_prog_STRIP"
2881fi
2882
2883fi
2884INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2885
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2887$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2888if test -z "$MKDIR_P"; then
2889  if ${ac_cv_path_mkdir+:} false; then :
2890  $as_echo_n "(cached) " >&6
2891else
2892  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2894do
2895  IFS=$as_save_IFS
2896  test -z "$as_dir" && as_dir=.
2897    for ac_prog in mkdir gmkdir; do
2898	 for ac_exec_ext in '' $ac_executable_extensions; do
2899	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2900	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2901	     'mkdir (GNU coreutils) '* | \
2902	     'mkdir (coreutils) '* | \
2903	     'mkdir (fileutils) '4.1*)
2904	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2905	       break 3;;
2906	   esac
2907	 done
2908       done
2909  done
2910IFS=$as_save_IFS
2911
2912fi
2913
2914  test -d ./--version && rmdir ./--version
2915  if test "${ac_cv_path_mkdir+set}" = set; then
2916    MKDIR_P="$ac_cv_path_mkdir -p"
2917  else
2918    # As a last resort, use the slow shell script.  Don't cache a
2919    # value for MKDIR_P within a source directory, because that will
2920    # break other packages using the cache if that directory is
2921    # removed, or if the value is a relative name.
2922    MKDIR_P="$ac_install_sh -d"
2923  fi
2924fi
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2926$as_echo "$MKDIR_P" >&6; }
2927
2928for ac_prog in gawk mawk nawk awk
2929do
2930  # Extract the first word of "$ac_prog", so it can be a program name with args.
2931set dummy $ac_prog; ac_word=$2
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933$as_echo_n "checking for $ac_word... " >&6; }
2934if ${ac_cv_prog_AWK+:} false; then :
2935  $as_echo_n "(cached) " >&6
2936else
2937  if test -n "$AWK"; then
2938  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2939else
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943  IFS=$as_save_IFS
2944  test -z "$as_dir" && as_dir=.
2945    for ac_exec_ext in '' $ac_executable_extensions; do
2946  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947    ac_cv_prog_AWK="$ac_prog"
2948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949    break 2
2950  fi
2951done
2952  done
2953IFS=$as_save_IFS
2954
2955fi
2956fi
2957AWK=$ac_cv_prog_AWK
2958if test -n "$AWK"; then
2959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2960$as_echo "$AWK" >&6; }
2961else
2962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963$as_echo "no" >&6; }
2964fi
2965
2966
2967  test -n "$AWK" && break
2968done
2969
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2971$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2972set x ${MAKE-make}
2973ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2974if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2975  $as_echo_n "(cached) " >&6
2976else
2977  cat >conftest.make <<\_ACEOF
2978SHELL = /bin/sh
2979all:
2980	@echo '@@@%%%=$(MAKE)=@@@%%%'
2981_ACEOF
2982# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2983case `${MAKE-make} -f conftest.make 2>/dev/null` in
2984  *@@@%%%=?*=@@@%%%*)
2985    eval ac_cv_prog_make_${ac_make}_set=yes;;
2986  *)
2987    eval ac_cv_prog_make_${ac_make}_set=no;;
2988esac
2989rm -f conftest.make
2990fi
2991if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2993$as_echo "yes" >&6; }
2994  SET_MAKE=
2995else
2996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997$as_echo "no" >&6; }
2998  SET_MAKE="MAKE=${MAKE-make}"
2999fi
3000
3001rm -rf .tst 2>/dev/null
3002mkdir .tst 2>/dev/null
3003if test -d .tst; then
3004  am__leading_dot=.
3005else
3006  am__leading_dot=_
3007fi
3008rmdir .tst 2>/dev/null
3009
3010# Check whether --enable-silent-rules was given.
3011if test "${enable_silent_rules+set}" = set; then :
3012  enableval=$enable_silent_rules;
3013fi
3014
3015case $enable_silent_rules in # (((
3016  yes) AM_DEFAULT_VERBOSITY=0;;
3017   no) AM_DEFAULT_VERBOSITY=1;;
3018    *) AM_DEFAULT_VERBOSITY=1;;
3019esac
3020am_make=${MAKE-make}
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3022$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3023if ${am_cv_make_support_nested_variables+:} false; then :
3024  $as_echo_n "(cached) " >&6
3025else
3026  if $as_echo 'TRUE=$(BAR$(V))
3027BAR0=false
3028BAR1=true
3029V=1
3030am__doit:
3031	@$(TRUE)
3032.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3033  am_cv_make_support_nested_variables=yes
3034else
3035  am_cv_make_support_nested_variables=no
3036fi
3037fi
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3039$as_echo "$am_cv_make_support_nested_variables" >&6; }
3040if test $am_cv_make_support_nested_variables = yes; then
3041    AM_V='$(V)'
3042  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3043else
3044  AM_V=$AM_DEFAULT_VERBOSITY
3045  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3046fi
3047AM_BACKSLASH='\'
3048
3049if test "`cd $srcdir && pwd`" != "`pwd`"; then
3050  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3051  # is not polluted with repeated "-I."
3052  am__isrc=' -I$(srcdir)'
3053  # test to see if srcdir already configured
3054  if test -f $srcdir/config.status; then
3055    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3056  fi
3057fi
3058
3059# test whether we have cygpath
3060if test -z "$CYGPATH_W"; then
3061  if (cygpath --version) >/dev/null 2>/dev/null; then
3062    CYGPATH_W='cygpath -w'
3063  else
3064    CYGPATH_W=echo
3065  fi
3066fi
3067
3068
3069# Define the identity of the package.
3070 PACKAGE='kconfig-frontends'
3071 VERSION='4.11.0.1'
3072
3073
3074cat >>confdefs.h <<_ACEOF
3075#define PACKAGE "$PACKAGE"
3076_ACEOF
3077
3078
3079cat >>confdefs.h <<_ACEOF
3080#define VERSION "$VERSION"
3081_ACEOF
3082
3083# Some tools Automake needs.
3084
3085ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3086
3087
3088AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3089
3090
3091AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3092
3093
3094AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3095
3096
3097MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3098
3099# For better backward compatibility.  To be removed once Automake 1.9.x
3100# dies out for good.  For more background, see:
3101# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3102# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3103mkdir_p='$(MKDIR_P)'
3104
3105# We need awk for the "check" target (and possibly the TAP driver).  The
3106# system "awk" is bad on some platforms.
3107# Always define AMTAR for backward compatibility.  Yes, it's still used
3108# in the wild :-(  We should find a proper way to deprecate it ...
3109AMTAR='$${TAR-tar}'
3110
3111
3112# We'll loop over all known methods to create a tar archive until one works.
3113_am_tools='gnutar  pax cpio none'
3114
3115am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3116
3117
3118
3119
3120
3121
3122# POSIX will say in a future version that running "rm -f" with no argument
3123# is OK; and we want to be able to make that assumption in our Makefile
3124# recipes.  So use an aggressive probe to check that the usage we want is
3125# actually supported "in the wild" to an acceptable degree.
3126# See automake bug#10828.
3127# To make any issue more visible, cause the running configure to be aborted
3128# by default if the 'rm' program in use doesn't match our expectations; the
3129# user can still override this though.
3130if rm -f && rm -fr && rm -rf; then : OK; else
3131  cat >&2 <<'END'
3132Oops!
3133
3134Your 'rm' program seems unable to run without file operands specified
3135on the command line, even when the '-f' option is present.  This is contrary
3136to the behaviour of most rm programs out there, and not conforming with
3137the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3138
3139Please tell bug-automake@gnu.org about your system, including the value
3140of your $PATH and any error possibly output before this message.  This
3141can help us improve future automake versions.
3142
3143END
3144  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3145    echo 'Configuration will proceed anyway, since you have set the' >&2
3146    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3147    echo >&2
3148  else
3149    cat >&2 <<'END'
3150Aborting the configuration process, to ensure you take notice of the issue.
3151
3152You can download and install GNU coreutils to get an 'rm' implementation
3153that behaves properly: <http://www.gnu.org/software/coreutils/>.
3154
3155If you want to complete the configuration process using your problematic
3156'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3157to "yes", and re-run configure.
3158
3159END
3160    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3161  fi
3162fi
3163
3164
3165# For releases, enable silent rules, unless the user explicitly
3166# disables them.
3167# For the devel tree, do build with verbose output, unless user
3168# explicitly enables silent rules
3169if test "$(${srcdir}/scripts/version.sh --internal)" = "git"; then :
3170  # Check whether --enable-silent-rules was given.
3171if test "${enable_silent_rules+set}" = set; then :
3172  enableval=$enable_silent_rules;
3173fi
3174
3175case $enable_silent_rules in # (((
3176  yes) AM_DEFAULT_VERBOSITY=0;;
3177   no) AM_DEFAULT_VERBOSITY=1;;
3178    *) AM_DEFAULT_VERBOSITY=1;;
3179esac
3180am_make=${MAKE-make}
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3182$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3183if ${am_cv_make_support_nested_variables+:} false; then :
3184  $as_echo_n "(cached) " >&6
3185else
3186  if $as_echo 'TRUE=$(BAR$(V))
3187BAR0=false
3188BAR1=true
3189V=1
3190am__doit:
3191	@$(TRUE)
3192.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3193  am_cv_make_support_nested_variables=yes
3194else
3195  am_cv_make_support_nested_variables=no
3196fi
3197fi
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3199$as_echo "$am_cv_make_support_nested_variables" >&6; }
3200if test $am_cv_make_support_nested_variables = yes; then
3201    AM_V='$(V)'
3202  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3203else
3204  AM_V=$AM_DEFAULT_VERBOSITY
3205  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3206fi
3207AM_BACKSLASH='\'
3208
3209else
3210  # Check whether --enable-silent-rules was given.
3211if test "${enable_silent_rules+set}" = set; then :
3212  enableval=$enable_silent_rules;
3213fi
3214
3215case $enable_silent_rules in # (((
3216  yes) AM_DEFAULT_VERBOSITY=0;;
3217   no) AM_DEFAULT_VERBOSITY=1;;
3218    *) AM_DEFAULT_VERBOSITY=0;;
3219esac
3220am_make=${MAKE-make}
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3222$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3223if ${am_cv_make_support_nested_variables+:} false; then :
3224  $as_echo_n "(cached) " >&6
3225else
3226  if $as_echo 'TRUE=$(BAR$(V))
3227BAR0=false
3228BAR1=true
3229V=1
3230am__doit:
3231	@$(TRUE)
3232.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3233  am_cv_make_support_nested_variables=yes
3234else
3235  am_cv_make_support_nested_variables=no
3236fi
3237fi
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3239$as_echo "$am_cv_make_support_nested_variables" >&6; }
3240if test $am_cv_make_support_nested_variables = yes; then
3241    AM_V='$(V)'
3242  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3243else
3244  AM_V=$AM_DEFAULT_VERBOSITY
3245  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3246fi
3247AM_BACKSLASH='\'
3248
3249fi
3250
3251#----------------------------------------
3252# Prepare libtool
3253DEPDIR="${am__leading_dot}deps"
3254
3255ac_config_commands="$ac_config_commands depfiles"
3256
3257
3258am_make=${MAKE-make}
3259cat > confinc << 'END'
3260am__doit:
3261	@echo this is the am__doit target
3262.PHONY: am__doit
3263END
3264# If we don't find an include directive, just comment out the code.
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3266$as_echo_n "checking for style of include used by $am_make... " >&6; }
3267am__include="#"
3268am__quote=
3269_am_result=none
3270# First try GNU make style include.
3271echo "include confinc" > confmf
3272# Ignore all kinds of additional output from 'make'.
3273case `$am_make -s -f confmf 2> /dev/null` in #(
3274*the\ am__doit\ target*)
3275  am__include=include
3276  am__quote=
3277  _am_result=GNU
3278  ;;
3279esac
3280# Now try BSD make style include.
3281if test "$am__include" = "#"; then
3282   echo '.include "confinc"' > confmf
3283   case `$am_make -s -f confmf 2> /dev/null` in #(
3284   *the\ am__doit\ target*)
3285     am__include=.include
3286     am__quote="\""
3287     _am_result=BSD
3288     ;;
3289   esac
3290fi
3291
3292
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3294$as_echo "$_am_result" >&6; }
3295rm -f confinc confmf
3296
3297# Check whether --enable-dependency-tracking was given.
3298if test "${enable_dependency_tracking+set}" = set; then :
3299  enableval=$enable_dependency_tracking;
3300fi
3301
3302if test "x$enable_dependency_tracking" != xno; then
3303  am_depcomp="$ac_aux_dir/depcomp"
3304  AMDEPBACKSLASH='\'
3305  am__nodep='_no'
3306fi
3307 if test "x$enable_dependency_tracking" != xno; then
3308  AMDEP_TRUE=
3309  AMDEP_FALSE='#'
3310else
3311  AMDEP_TRUE='#'
3312  AMDEP_FALSE=
3313fi
3314
3315
3316ac_ext=c
3317ac_cpp='$CPP $CPPFLAGS'
3318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321if test -n "$ac_tool_prefix"; then
3322  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3323set dummy ${ac_tool_prefix}gcc; ac_word=$2
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325$as_echo_n "checking for $ac_word... " >&6; }
3326if ${ac_cv_prog_CC+:} false; then :
3327  $as_echo_n "(cached) " >&6
3328else
3329  if test -n "$CC"; then
3330  ac_cv_prog_CC="$CC" # Let the user override the test.
3331else
3332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333for as_dir in $PATH
3334do
3335  IFS=$as_save_IFS
3336  test -z "$as_dir" && as_dir=.
3337    for ac_exec_ext in '' $ac_executable_extensions; do
3338  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341    break 2
3342  fi
3343done
3344  done
3345IFS=$as_save_IFS
3346
3347fi
3348fi
3349CC=$ac_cv_prog_CC
3350if test -n "$CC"; then
3351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3352$as_echo "$CC" >&6; }
3353else
3354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355$as_echo "no" >&6; }
3356fi
3357
3358
3359fi
3360if test -z "$ac_cv_prog_CC"; then
3361  ac_ct_CC=$CC
3362  # Extract the first word of "gcc", so it can be a program name with args.
3363set dummy gcc; ac_word=$2
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365$as_echo_n "checking for $ac_word... " >&6; }
3366if ${ac_cv_prog_ac_ct_CC+:} false; then :
3367  $as_echo_n "(cached) " >&6
3368else
3369  if test -n "$ac_ct_CC"; then
3370  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3371else
3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373for as_dir in $PATH
3374do
3375  IFS=$as_save_IFS
3376  test -z "$as_dir" && as_dir=.
3377    for ac_exec_ext in '' $ac_executable_extensions; do
3378  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3379    ac_cv_prog_ac_ct_CC="gcc"
3380    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381    break 2
3382  fi
3383done
3384  done
3385IFS=$as_save_IFS
3386
3387fi
3388fi
3389ac_ct_CC=$ac_cv_prog_ac_ct_CC
3390if test -n "$ac_ct_CC"; then
3391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3392$as_echo "$ac_ct_CC" >&6; }
3393else
3394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395$as_echo "no" >&6; }
3396fi
3397
3398  if test "x$ac_ct_CC" = x; then
3399    CC=""
3400  else
3401    case $cross_compiling:$ac_tool_warned in
3402yes:)
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3405ac_tool_warned=yes ;;
3406esac
3407    CC=$ac_ct_CC
3408  fi
3409else
3410  CC="$ac_cv_prog_CC"
3411fi
3412
3413if test -z "$CC"; then
3414          if test -n "$ac_tool_prefix"; then
3415    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3416set dummy ${ac_tool_prefix}cc; ac_word=$2
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418$as_echo_n "checking for $ac_word... " >&6; }
3419if ${ac_cv_prog_CC+:} false; then :
3420  $as_echo_n "(cached) " >&6
3421else
3422  if test -n "$CC"; then
3423  ac_cv_prog_CC="$CC" # Let the user override the test.
3424else
3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426for as_dir in $PATH
3427do
3428  IFS=$as_save_IFS
3429  test -z "$as_dir" && as_dir=.
3430    for ac_exec_ext in '' $ac_executable_extensions; do
3431  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432    ac_cv_prog_CC="${ac_tool_prefix}cc"
3433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434    break 2
3435  fi
3436done
3437  done
3438IFS=$as_save_IFS
3439
3440fi
3441fi
3442CC=$ac_cv_prog_CC
3443if test -n "$CC"; then
3444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3445$as_echo "$CC" >&6; }
3446else
3447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448$as_echo "no" >&6; }
3449fi
3450
3451
3452  fi
3453fi
3454if test -z "$CC"; then
3455  # Extract the first word of "cc", so it can be a program name with args.
3456set dummy cc; ac_word=$2
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458$as_echo_n "checking for $ac_word... " >&6; }
3459if ${ac_cv_prog_CC+:} false; then :
3460  $as_echo_n "(cached) " >&6
3461else
3462  if test -n "$CC"; then
3463  ac_cv_prog_CC="$CC" # Let the user override the test.
3464else
3465  ac_prog_rejected=no
3466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467for as_dir in $PATH
3468do
3469  IFS=$as_save_IFS
3470  test -z "$as_dir" && as_dir=.
3471    for ac_exec_ext in '' $ac_executable_extensions; do
3472  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3474       ac_prog_rejected=yes
3475       continue
3476     fi
3477    ac_cv_prog_CC="cc"
3478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3479    break 2
3480  fi
3481done
3482  done
3483IFS=$as_save_IFS
3484
3485if test $ac_prog_rejected = yes; then
3486  # We found a bogon in the path, so make sure we never use it.
3487  set dummy $ac_cv_prog_CC
3488  shift
3489  if test $# != 0; then
3490    # We chose a different compiler from the bogus one.
3491    # However, it has the same basename, so the bogon will be chosen
3492    # first if we set CC to just the basename; use the full file name.
3493    shift
3494    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3495  fi
3496fi
3497fi
3498fi
3499CC=$ac_cv_prog_CC
3500if test -n "$CC"; then
3501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3502$as_echo "$CC" >&6; }
3503else
3504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505$as_echo "no" >&6; }
3506fi
3507
3508
3509fi
3510if test -z "$CC"; then
3511  if test -n "$ac_tool_prefix"; then
3512  for ac_prog in cl.exe
3513  do
3514    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3515set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517$as_echo_n "checking for $ac_word... " >&6; }
3518if ${ac_cv_prog_CC+:} false; then :
3519  $as_echo_n "(cached) " >&6
3520else
3521  if test -n "$CC"; then
3522  ac_cv_prog_CC="$CC" # Let the user override the test.
3523else
3524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525for as_dir in $PATH
3526do
3527  IFS=$as_save_IFS
3528  test -z "$as_dir" && as_dir=.
3529    for ac_exec_ext in '' $ac_executable_extensions; do
3530  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3531    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3533    break 2
3534  fi
3535done
3536  done
3537IFS=$as_save_IFS
3538
3539fi
3540fi
3541CC=$ac_cv_prog_CC
3542if test -n "$CC"; then
3543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3544$as_echo "$CC" >&6; }
3545else
3546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547$as_echo "no" >&6; }
3548fi
3549
3550
3551    test -n "$CC" && break
3552  done
3553fi
3554if test -z "$CC"; then
3555  ac_ct_CC=$CC
3556  for ac_prog in cl.exe
3557do
3558  # Extract the first word of "$ac_prog", so it can be a program name with args.
3559set dummy $ac_prog; ac_word=$2
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561$as_echo_n "checking for $ac_word... " >&6; }
3562if ${ac_cv_prog_ac_ct_CC+:} false; then :
3563  $as_echo_n "(cached) " >&6
3564else
3565  if test -n "$ac_ct_CC"; then
3566  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3567else
3568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569for as_dir in $PATH
3570do
3571  IFS=$as_save_IFS
3572  test -z "$as_dir" && as_dir=.
3573    for ac_exec_ext in '' $ac_executable_extensions; do
3574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3575    ac_cv_prog_ac_ct_CC="$ac_prog"
3576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577    break 2
3578  fi
3579done
3580  done
3581IFS=$as_save_IFS
3582
3583fi
3584fi
3585ac_ct_CC=$ac_cv_prog_ac_ct_CC
3586if test -n "$ac_ct_CC"; then
3587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3588$as_echo "$ac_ct_CC" >&6; }
3589else
3590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591$as_echo "no" >&6; }
3592fi
3593
3594
3595  test -n "$ac_ct_CC" && break
3596done
3597
3598  if test "x$ac_ct_CC" = x; then
3599    CC=""
3600  else
3601    case $cross_compiling:$ac_tool_warned in
3602yes:)
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3605ac_tool_warned=yes ;;
3606esac
3607    CC=$ac_ct_CC
3608  fi
3609fi
3610
3611fi
3612
3613
3614test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616as_fn_error $? "no acceptable C compiler found in \$PATH
3617See \`config.log' for more details" "$LINENO" 5; }
3618
3619# Provide some information about the compiler.
3620$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3621set X $ac_compile
3622ac_compiler=$2
3623for ac_option in --version -v -V -qversion; do
3624  { { ac_try="$ac_compiler $ac_option >&5"
3625case "(($ac_try" in
3626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627  *) ac_try_echo=$ac_try;;
3628esac
3629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630$as_echo "$ac_try_echo"; } >&5
3631  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3632  ac_status=$?
3633  if test -s conftest.err; then
3634    sed '10a\
3635... rest of stderr output deleted ...
3636         10q' conftest.err >conftest.er1
3637    cat conftest.er1 >&5
3638  fi
3639  rm -f conftest.er1 conftest.err
3640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641  test $ac_status = 0; }
3642done
3643
3644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645/* end confdefs.h.  */
3646
3647int
3648main ()
3649{
3650
3651  ;
3652  return 0;
3653}
3654_ACEOF
3655ac_clean_files_save=$ac_clean_files
3656ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3657# Try to create an executable without -o first, disregard a.out.
3658# It will help us diagnose broken compilers, and finding out an intuition
3659# of exeext.
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3661$as_echo_n "checking whether the C compiler works... " >&6; }
3662ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3663
3664# The possible output files:
3665ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3666
3667ac_rmfiles=
3668for ac_file in $ac_files
3669do
3670  case $ac_file in
3671    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3672    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3673  esac
3674done
3675rm -f $ac_rmfiles
3676
3677if { { ac_try="$ac_link_default"
3678case "(($ac_try" in
3679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680  *) ac_try_echo=$ac_try;;
3681esac
3682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683$as_echo "$ac_try_echo"; } >&5
3684  (eval "$ac_link_default") 2>&5
3685  ac_status=$?
3686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687  test $ac_status = 0; }; then :
3688  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3689# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3690# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3691# so that the user can short-circuit this test for compilers unknown to
3692# Autoconf.
3693for ac_file in $ac_files ''
3694do
3695  test -f "$ac_file" || continue
3696  case $ac_file in
3697    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3698	;;
3699    [ab].out )
3700	# We found the default executable, but exeext='' is most
3701	# certainly right.
3702	break;;
3703    *.* )
3704	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3705	then :; else
3706	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3707	fi
3708	# We set ac_cv_exeext here because the later test for it is not
3709	# safe: cross compilers may not add the suffix if given an `-o'
3710	# argument, so we may need to know it at that point already.
3711	# Even if this section looks crufty: it has the advantage of
3712	# actually working.
3713	break;;
3714    * )
3715	break;;
3716  esac
3717done
3718test "$ac_cv_exeext" = no && ac_cv_exeext=
3719
3720else
3721  ac_file=''
3722fi
3723if test -z "$ac_file"; then :
3724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725$as_echo "no" >&6; }
3726$as_echo "$as_me: failed program was:" >&5
3727sed 's/^/| /' conftest.$ac_ext >&5
3728
3729{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3731as_fn_error 77 "C compiler cannot create executables
3732See \`config.log' for more details" "$LINENO" 5; }
3733else
3734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3735$as_echo "yes" >&6; }
3736fi
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3738$as_echo_n "checking for C compiler default output file name... " >&6; }
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3740$as_echo "$ac_file" >&6; }
3741ac_exeext=$ac_cv_exeext
3742
3743rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3744ac_clean_files=$ac_clean_files_save
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3746$as_echo_n "checking for suffix of executables... " >&6; }
3747if { { ac_try="$ac_link"
3748case "(($ac_try" in
3749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750  *) ac_try_echo=$ac_try;;
3751esac
3752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3753$as_echo "$ac_try_echo"; } >&5
3754  (eval "$ac_link") 2>&5
3755  ac_status=$?
3756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3757  test $ac_status = 0; }; then :
3758  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3759# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3760# work properly (i.e., refer to `conftest.exe'), while it won't with
3761# `rm'.
3762for ac_file in conftest.exe conftest conftest.*; do
3763  test -f "$ac_file" || continue
3764  case $ac_file in
3765    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3766    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3767	  break;;
3768    * ) break;;
3769  esac
3770done
3771else
3772  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3774as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3775See \`config.log' for more details" "$LINENO" 5; }
3776fi
3777rm -f conftest conftest$ac_cv_exeext
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3779$as_echo "$ac_cv_exeext" >&6; }
3780
3781rm -f conftest.$ac_ext
3782EXEEXT=$ac_cv_exeext
3783ac_exeext=$EXEEXT
3784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785/* end confdefs.h.  */
3786#include <stdio.h>
3787int
3788main ()
3789{
3790FILE *f = fopen ("conftest.out", "w");
3791 return ferror (f) || fclose (f) != 0;
3792
3793  ;
3794  return 0;
3795}
3796_ACEOF
3797ac_clean_files="$ac_clean_files conftest.out"
3798# Check that the compiler produces executables we can run.  If not, either
3799# the compiler is broken, or we cross compile.
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3801$as_echo_n "checking whether we are cross compiling... " >&6; }
3802if test "$cross_compiling" != yes; then
3803  { { ac_try="$ac_link"
3804case "(($ac_try" in
3805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806  *) ac_try_echo=$ac_try;;
3807esac
3808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809$as_echo "$ac_try_echo"; } >&5
3810  (eval "$ac_link") 2>&5
3811  ac_status=$?
3812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813  test $ac_status = 0; }
3814  if { ac_try='./conftest$ac_cv_exeext'
3815  { { case "(($ac_try" in
3816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817  *) ac_try_echo=$ac_try;;
3818esac
3819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820$as_echo "$ac_try_echo"; } >&5
3821  (eval "$ac_try") 2>&5
3822  ac_status=$?
3823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824  test $ac_status = 0; }; }; then
3825    cross_compiling=no
3826  else
3827    if test "$cross_compiling" = maybe; then
3828	cross_compiling=yes
3829    else
3830	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3832as_fn_error $? "cannot run C compiled programs.
3833If you meant to cross compile, use \`--host'.
3834See \`config.log' for more details" "$LINENO" 5; }
3835    fi
3836  fi
3837fi
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3839$as_echo "$cross_compiling" >&6; }
3840
3841rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3842ac_clean_files=$ac_clean_files_save
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3844$as_echo_n "checking for suffix of object files... " >&6; }
3845if ${ac_cv_objext+:} false; then :
3846  $as_echo_n "(cached) " >&6
3847else
3848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849/* end confdefs.h.  */
3850
3851int
3852main ()
3853{
3854
3855  ;
3856  return 0;
3857}
3858_ACEOF
3859rm -f conftest.o conftest.obj
3860if { { ac_try="$ac_compile"
3861case "(($ac_try" in
3862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863  *) ac_try_echo=$ac_try;;
3864esac
3865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3866$as_echo "$ac_try_echo"; } >&5
3867  (eval "$ac_compile") 2>&5
3868  ac_status=$?
3869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870  test $ac_status = 0; }; then :
3871  for ac_file in conftest.o conftest.obj conftest.*; do
3872  test -f "$ac_file" || continue;
3873  case $ac_file in
3874    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3875    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3876       break;;
3877  esac
3878done
3879else
3880  $as_echo "$as_me: failed program was:" >&5
3881sed 's/^/| /' conftest.$ac_ext >&5
3882
3883{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3885as_fn_error $? "cannot compute suffix of object files: cannot compile
3886See \`config.log' for more details" "$LINENO" 5; }
3887fi
3888rm -f conftest.$ac_cv_objext conftest.$ac_ext
3889fi
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3891$as_echo "$ac_cv_objext" >&6; }
3892OBJEXT=$ac_cv_objext
3893ac_objext=$OBJEXT
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3895$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3896if ${ac_cv_c_compiler_gnu+:} false; then :
3897  $as_echo_n "(cached) " >&6
3898else
3899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900/* end confdefs.h.  */
3901
3902int
3903main ()
3904{
3905#ifndef __GNUC__
3906       choke me
3907#endif
3908
3909  ;
3910  return 0;
3911}
3912_ACEOF
3913if ac_fn_c_try_compile "$LINENO"; then :
3914  ac_compiler_gnu=yes
3915else
3916  ac_compiler_gnu=no
3917fi
3918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919ac_cv_c_compiler_gnu=$ac_compiler_gnu
3920
3921fi
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3923$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3924if test $ac_compiler_gnu = yes; then
3925  GCC=yes
3926else
3927  GCC=
3928fi
3929ac_test_CFLAGS=${CFLAGS+set}
3930ac_save_CFLAGS=$CFLAGS
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3932$as_echo_n "checking whether $CC accepts -g... " >&6; }
3933if ${ac_cv_prog_cc_g+:} false; then :
3934  $as_echo_n "(cached) " >&6
3935else
3936  ac_save_c_werror_flag=$ac_c_werror_flag
3937   ac_c_werror_flag=yes
3938   ac_cv_prog_cc_g=no
3939   CFLAGS="-g"
3940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941/* end confdefs.h.  */
3942
3943int
3944main ()
3945{
3946
3947  ;
3948  return 0;
3949}
3950_ACEOF
3951if ac_fn_c_try_compile "$LINENO"; then :
3952  ac_cv_prog_cc_g=yes
3953else
3954  CFLAGS=""
3955      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956/* end confdefs.h.  */
3957
3958int
3959main ()
3960{
3961
3962  ;
3963  return 0;
3964}
3965_ACEOF
3966if ac_fn_c_try_compile "$LINENO"; then :
3967
3968else
3969  ac_c_werror_flag=$ac_save_c_werror_flag
3970	 CFLAGS="-g"
3971	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972/* end confdefs.h.  */
3973
3974int
3975main ()
3976{
3977
3978  ;
3979  return 0;
3980}
3981_ACEOF
3982if ac_fn_c_try_compile "$LINENO"; then :
3983  ac_cv_prog_cc_g=yes
3984fi
3985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986fi
3987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988fi
3989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990   ac_c_werror_flag=$ac_save_c_werror_flag
3991fi
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3993$as_echo "$ac_cv_prog_cc_g" >&6; }
3994if test "$ac_test_CFLAGS" = set; then
3995  CFLAGS=$ac_save_CFLAGS
3996elif test $ac_cv_prog_cc_g = yes; then
3997  if test "$GCC" = yes; then
3998    CFLAGS="-g -O2"
3999  else
4000    CFLAGS="-g"
4001  fi
4002else
4003  if test "$GCC" = yes; then
4004    CFLAGS="-O2"
4005  else
4006    CFLAGS=
4007  fi
4008fi
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4010$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4011if ${ac_cv_prog_cc_c89+:} false; then :
4012  $as_echo_n "(cached) " >&6
4013else
4014  ac_cv_prog_cc_c89=no
4015ac_save_CC=$CC
4016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017/* end confdefs.h.  */
4018#include <stdarg.h>
4019#include <stdio.h>
4020struct stat;
4021/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4022struct buf { int x; };
4023FILE * (*rcsopen) (struct buf *, struct stat *, int);
4024static char *e (p, i)
4025     char **p;
4026     int i;
4027{
4028  return p[i];
4029}
4030static char *f (char * (*g) (char **, int), char **p, ...)
4031{
4032  char *s;
4033  va_list v;
4034  va_start (v,p);
4035  s = g (p, va_arg (v,int));
4036  va_end (v);
4037  return s;
4038}
4039
4040/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4041   function prototypes and stuff, but not '\xHH' hex character constants.
4042   These don't provoke an error unfortunately, instead are silently treated
4043   as 'x'.  The following induces an error, until -std is added to get
4044   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4045   array size at least.  It's necessary to write '\x00'==0 to get something
4046   that's true only with -std.  */
4047int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4048
4049/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4050   inside strings and character constants.  */
4051#define FOO(x) 'x'
4052int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4053
4054int test (int i, double x);
4055struct s1 {int (*f) (int a);};
4056struct s2 {int (*f) (double a);};
4057int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4058int argc;
4059char **argv;
4060int
4061main ()
4062{
4063return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4064  ;
4065  return 0;
4066}
4067_ACEOF
4068for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4069	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4070do
4071  CC="$ac_save_CC $ac_arg"
4072  if ac_fn_c_try_compile "$LINENO"; then :
4073  ac_cv_prog_cc_c89=$ac_arg
4074fi
4075rm -f core conftest.err conftest.$ac_objext
4076  test "x$ac_cv_prog_cc_c89" != "xno" && break
4077done
4078rm -f conftest.$ac_ext
4079CC=$ac_save_CC
4080
4081fi
4082# AC_CACHE_VAL
4083case "x$ac_cv_prog_cc_c89" in
4084  x)
4085    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4086$as_echo "none needed" >&6; } ;;
4087  xno)
4088    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4089$as_echo "unsupported" >&6; } ;;
4090  *)
4091    CC="$CC $ac_cv_prog_cc_c89"
4092    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4093$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4094esac
4095if test "x$ac_cv_prog_cc_c89" != xno; then :
4096
4097fi
4098
4099ac_ext=c
4100ac_cpp='$CPP $CPPFLAGS'
4101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103ac_compiler_gnu=$ac_cv_c_compiler_gnu
4104
4105ac_ext=c
4106ac_cpp='$CPP $CPPFLAGS'
4107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4111$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4112if ${am_cv_prog_cc_c_o+:} false; then :
4113  $as_echo_n "(cached) " >&6
4114else
4115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116/* end confdefs.h.  */
4117
4118int
4119main ()
4120{
4121
4122  ;
4123  return 0;
4124}
4125_ACEOF
4126  # Make sure it works both with $CC and with simple cc.
4127  # Following AC_PROG_CC_C_O, we do the test twice because some
4128  # compilers refuse to overwrite an existing .o file with -o,
4129  # though they will create one.
4130  am_cv_prog_cc_c_o=yes
4131  for am_i in 1 2; do
4132    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4133   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4134   ac_status=$?
4135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136   (exit $ac_status); } \
4137         && test -f conftest2.$ac_objext; then
4138      : OK
4139    else
4140      am_cv_prog_cc_c_o=no
4141      break
4142    fi
4143  done
4144  rm -f core conftest*
4145  unset am_i
4146fi
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4148$as_echo "$am_cv_prog_cc_c_o" >&6; }
4149if test "$am_cv_prog_cc_c_o" != yes; then
4150   # Losing compiler, so override with the script.
4151   # FIXME: It is wrong to rewrite CC.
4152   # But if we don't then we get into trouble of one sort or another.
4153   # A longer-term fix would be to have automake use am__CC in this case,
4154   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4155   CC="$am_aux_dir/compile $CC"
4156fi
4157ac_ext=c
4158ac_cpp='$CPP $CPPFLAGS'
4159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162
4163
4164depcc="$CC"   am_compiler_list=
4165
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4167$as_echo_n "checking dependency style of $depcc... " >&6; }
4168if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4169  $as_echo_n "(cached) " >&6
4170else
4171  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4172  # We make a subdir and do the tests there.  Otherwise we can end up
4173  # making bogus files that we don't know about and never remove.  For
4174  # instance it was reported that on HP-UX the gcc test will end up
4175  # making a dummy file named 'D' -- because '-MD' means "put the output
4176  # in D".
4177  rm -rf conftest.dir
4178  mkdir conftest.dir
4179  # Copy depcomp to subdir because otherwise we won't find it if we're
4180  # using a relative directory.
4181  cp "$am_depcomp" conftest.dir
4182  cd conftest.dir
4183  # We will build objects and dependencies in a subdirectory because
4184  # it helps to detect inapplicable dependency modes.  For instance
4185  # both Tru64's cc and ICC support -MD to output dependencies as a
4186  # side effect of compilation, but ICC will put the dependencies in
4187  # the current directory while Tru64 will put them in the object
4188  # directory.
4189  mkdir sub
4190
4191  am_cv_CC_dependencies_compiler_type=none
4192  if test "$am_compiler_list" = ""; then
4193     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4194  fi
4195  am__universal=false
4196  case " $depcc " in #(
4197     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4198     esac
4199
4200  for depmode in $am_compiler_list; do
4201    # Setup a source with many dependencies, because some compilers
4202    # like to wrap large dependency lists on column 80 (with \), and
4203    # we should not choose a depcomp mode which is confused by this.
4204    #
4205    # We need to recreate these files for each test, as the compiler may
4206    # overwrite some of them when testing with obscure command lines.
4207    # This happens at least with the AIX C compiler.
4208    : > sub/conftest.c
4209    for i in 1 2 3 4 5 6; do
4210      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4211      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4212      # Solaris 10 /bin/sh.
4213      echo '/* dummy */' > sub/conftst$i.h
4214    done
4215    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4216
4217    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4218    # mode.  It turns out that the SunPro C++ compiler does not properly
4219    # handle '-M -o', and we need to detect this.  Also, some Intel
4220    # versions had trouble with output in subdirs.
4221    am__obj=sub/conftest.${OBJEXT-o}
4222    am__minus_obj="-o $am__obj"
4223    case $depmode in
4224    gcc)
4225      # This depmode causes a compiler race in universal mode.
4226      test "$am__universal" = false || continue
4227      ;;
4228    nosideeffect)
4229      # After this tag, mechanisms are not by side-effect, so they'll
4230      # only be used when explicitly requested.
4231      if test "x$enable_dependency_tracking" = xyes; then
4232	continue
4233      else
4234	break
4235      fi
4236      ;;
4237    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4238      # This compiler won't grok '-c -o', but also, the minuso test has
4239      # not run yet.  These depmodes are late enough in the game, and
4240      # so weak that their functioning should not be impacted.
4241      am__obj=conftest.${OBJEXT-o}
4242      am__minus_obj=
4243      ;;
4244    none) break ;;
4245    esac
4246    if depmode=$depmode \
4247       source=sub/conftest.c object=$am__obj \
4248       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4249       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4250         >/dev/null 2>conftest.err &&
4251       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4252       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4253       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4254       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4255      # icc doesn't choke on unknown options, it will just issue warnings
4256      # or remarks (even with -Werror).  So we grep stderr for any message
4257      # that says an option was ignored or not supported.
4258      # When given -MP, icc 7.0 and 7.1 complain thusly:
4259      #   icc: Command line warning: ignoring option '-M'; no argument required
4260      # The diagnosis changed in icc 8.0:
4261      #   icc: Command line remark: option '-MP' not supported
4262      if (grep 'ignoring option' conftest.err ||
4263          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4264        am_cv_CC_dependencies_compiler_type=$depmode
4265        break
4266      fi
4267    fi
4268  done
4269
4270  cd ..
4271  rm -rf conftest.dir
4272else
4273  am_cv_CC_dependencies_compiler_type=none
4274fi
4275
4276fi
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4278$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4279CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4280
4281 if
4282  test "x$enable_dependency_tracking" != xno \
4283  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4284  am__fastdepCC_TRUE=
4285  am__fastdepCC_FALSE='#'
4286else
4287  am__fastdepCC_TRUE='#'
4288  am__fastdepCC_FALSE=
4289fi
4290
4291
4292
4293if test -n "$ac_tool_prefix"; then
4294  for ac_prog in ar lib "link -lib"
4295  do
4296    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4297set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4299$as_echo_n "checking for $ac_word... " >&6; }
4300if ${ac_cv_prog_AR+:} false; then :
4301  $as_echo_n "(cached) " >&6
4302else
4303  if test -n "$AR"; then
4304  ac_cv_prog_AR="$AR" # Let the user override the test.
4305else
4306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307for as_dir in $PATH
4308do
4309  IFS=$as_save_IFS
4310  test -z "$as_dir" && as_dir=.
4311    for ac_exec_ext in '' $ac_executable_extensions; do
4312  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4313    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4315    break 2
4316  fi
4317done
4318  done
4319IFS=$as_save_IFS
4320
4321fi
4322fi
4323AR=$ac_cv_prog_AR
4324if test -n "$AR"; then
4325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4326$as_echo "$AR" >&6; }
4327else
4328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329$as_echo "no" >&6; }
4330fi
4331
4332
4333    test -n "$AR" && break
4334  done
4335fi
4336if test -z "$AR"; then
4337  ac_ct_AR=$AR
4338  for ac_prog in ar lib "link -lib"
4339do
4340  # Extract the first word of "$ac_prog", so it can be a program name with args.
4341set dummy $ac_prog; ac_word=$2
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4343$as_echo_n "checking for $ac_word... " >&6; }
4344if ${ac_cv_prog_ac_ct_AR+:} false; then :
4345  $as_echo_n "(cached) " >&6
4346else
4347  if test -n "$ac_ct_AR"; then
4348  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4349else
4350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351for as_dir in $PATH
4352do
4353  IFS=$as_save_IFS
4354  test -z "$as_dir" && as_dir=.
4355    for ac_exec_ext in '' $ac_executable_extensions; do
4356  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4357    ac_cv_prog_ac_ct_AR="$ac_prog"
4358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359    break 2
4360  fi
4361done
4362  done
4363IFS=$as_save_IFS
4364
4365fi
4366fi
4367ac_ct_AR=$ac_cv_prog_ac_ct_AR
4368if test -n "$ac_ct_AR"; then
4369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4370$as_echo "$ac_ct_AR" >&6; }
4371else
4372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373$as_echo "no" >&6; }
4374fi
4375
4376
4377  test -n "$ac_ct_AR" && break
4378done
4379
4380  if test "x$ac_ct_AR" = x; then
4381    AR="false"
4382  else
4383    case $cross_compiling:$ac_tool_warned in
4384yes:)
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4387ac_tool_warned=yes ;;
4388esac
4389    AR=$ac_ct_AR
4390  fi
4391fi
4392
4393: ${AR=ar}
4394
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4396$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4397if ${am_cv_ar_interface+:} false; then :
4398  $as_echo_n "(cached) " >&6
4399else
4400  ac_ext=c
4401ac_cpp='$CPP $CPPFLAGS'
4402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404ac_compiler_gnu=$ac_cv_c_compiler_gnu
4405
4406   am_cv_ar_interface=ar
4407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408/* end confdefs.h.  */
4409int some_variable = 0;
4410_ACEOF
4411if ac_fn_c_try_compile "$LINENO"; then :
4412  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4413      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4414  (eval $am_ar_try) 2>&5
4415  ac_status=$?
4416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4417  test $ac_status = 0; }
4418      if test "$ac_status" -eq 0; then
4419        am_cv_ar_interface=ar
4420      else
4421        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4422        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4423  (eval $am_ar_try) 2>&5
4424  ac_status=$?
4425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4426  test $ac_status = 0; }
4427        if test "$ac_status" -eq 0; then
4428          am_cv_ar_interface=lib
4429        else
4430          am_cv_ar_interface=unknown
4431        fi
4432      fi
4433      rm -f conftest.lib libconftest.a
4434
4435fi
4436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437   ac_ext=c
4438ac_cpp='$CPP $CPPFLAGS'
4439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442
4443fi
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4445$as_echo "$am_cv_ar_interface" >&6; }
4446
4447case $am_cv_ar_interface in
4448ar)
4449  ;;
4450lib)
4451  # Microsoft lib, so override with the ar-lib wrapper script.
4452  # FIXME: It is wrong to rewrite AR.
4453  # But if we don't then we get into trouble of one sort or another.
4454  # A longer-term fix would be to have automake use am__AR in this case,
4455  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4456  # similar.
4457  AR="$am_aux_dir/ar-lib $AR"
4458  ;;
4459unknown)
4460  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4461  ;;
4462esac
4463
4464case `pwd` in
4465  *\ * | *\	*)
4466    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4467$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4468esac
4469
4470
4471
4472macro_version='2.4.6'
4473macro_revision='2.4.6'
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487ltmain=$ac_aux_dir/ltmain.sh
4488
4489# Make sure we can run config.sub.
4490$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4491  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4492
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4494$as_echo_n "checking build system type... " >&6; }
4495if ${ac_cv_build+:} false; then :
4496  $as_echo_n "(cached) " >&6
4497else
4498  ac_build_alias=$build_alias
4499test "x$ac_build_alias" = x &&
4500  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4501test "x$ac_build_alias" = x &&
4502  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4503ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4504  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4505
4506fi
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4508$as_echo "$ac_cv_build" >&6; }
4509case $ac_cv_build in
4510*-*-*) ;;
4511*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4512esac
4513build=$ac_cv_build
4514ac_save_IFS=$IFS; IFS='-'
4515set x $ac_cv_build
4516shift
4517build_cpu=$1
4518build_vendor=$2
4519shift; shift
4520# Remember, the first character of IFS is used to create $*,
4521# except with old shells:
4522build_os=$*
4523IFS=$ac_save_IFS
4524case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4525
4526
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4528$as_echo_n "checking host system type... " >&6; }
4529if ${ac_cv_host+:} false; then :
4530  $as_echo_n "(cached) " >&6
4531else
4532  if test "x$host_alias" = x; then
4533  ac_cv_host=$ac_cv_build
4534else
4535  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4536    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4537fi
4538
4539fi
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4541$as_echo "$ac_cv_host" >&6; }
4542case $ac_cv_host in
4543*-*-*) ;;
4544*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4545esac
4546host=$ac_cv_host
4547ac_save_IFS=$IFS; IFS='-'
4548set x $ac_cv_host
4549shift
4550host_cpu=$1
4551host_vendor=$2
4552shift; shift
4553# Remember, the first character of IFS is used to create $*,
4554# except with old shells:
4555host_os=$*
4556IFS=$ac_save_IFS
4557case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4558
4559
4560# Backslashify metacharacters that are still active within
4561# double-quoted strings.
4562sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4563
4564# Same as above, but do not quote variable references.
4565double_quote_subst='s/\(["`\\]\)/\\\1/g'
4566
4567# Sed substitution to delay expansion of an escaped shell variable in a
4568# double_quote_subst'ed string.
4569delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4570
4571# Sed substitution to delay expansion of an escaped single quote.
4572delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4573
4574# Sed substitution to avoid accidental globbing in evaled expressions
4575no_glob_subst='s/\*/\\\*/g'
4576
4577ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4578ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4579ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4580
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4582$as_echo_n "checking how to print strings... " >&6; }
4583# Test print first, because it will be a builtin if present.
4584if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4585   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4586  ECHO='print -r --'
4587elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4588  ECHO='printf %s\n'
4589else
4590  # Use this function as a fallback that always works.
4591  func_fallback_echo ()
4592  {
4593    eval 'cat <<_LTECHO_EOF
4594$1
4595_LTECHO_EOF'
4596  }
4597  ECHO='func_fallback_echo'
4598fi
4599
4600# func_echo_all arg...
4601# Invoke $ECHO with all args, space-separated.
4602func_echo_all ()
4603{
4604    $ECHO ""
4605}
4606
4607case $ECHO in
4608  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4609$as_echo "printf" >&6; } ;;
4610  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4611$as_echo "print -r" >&6; } ;;
4612  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4613$as_echo "cat" >&6; } ;;
4614esac
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4630$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4631if ${ac_cv_path_SED+:} false; then :
4632  $as_echo_n "(cached) " >&6
4633else
4634            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4635     for ac_i in 1 2 3 4 5 6 7; do
4636       ac_script="$ac_script$as_nl$ac_script"
4637     done
4638     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4639     { ac_script=; unset ac_script;}
4640     if test -z "$SED"; then
4641  ac_path_SED_found=false
4642  # Loop through the user's path and test for each of PROGNAME-LIST
4643  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH
4645do
4646  IFS=$as_save_IFS
4647  test -z "$as_dir" && as_dir=.
4648    for ac_prog in sed gsed; do
4649    for ac_exec_ext in '' $ac_executable_extensions; do
4650      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4651      as_fn_executable_p "$ac_path_SED" || continue
4652# Check for GNU ac_path_SED and select it if it is found.
4653  # Check for GNU $ac_path_SED
4654case `"$ac_path_SED" --version 2>&1` in
4655*GNU*)
4656  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4657*)
4658  ac_count=0
4659  $as_echo_n 0123456789 >"conftest.in"
4660  while :
4661  do
4662    cat "conftest.in" "conftest.in" >"conftest.tmp"
4663    mv "conftest.tmp" "conftest.in"
4664    cp "conftest.in" "conftest.nl"
4665    $as_echo '' >> "conftest.nl"
4666    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4667    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4668    as_fn_arith $ac_count + 1 && ac_count=$as_val
4669    if test $ac_count -gt ${ac_path_SED_max-0}; then
4670      # Best one so far, save it but keep looking for a better one
4671      ac_cv_path_SED="$ac_path_SED"
4672      ac_path_SED_max=$ac_count
4673    fi
4674    # 10*(2^10) chars as input seems more than enough
4675    test $ac_count -gt 10 && break
4676  done
4677  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4678esac
4679
4680      $ac_path_SED_found && break 3
4681    done
4682  done
4683  done
4684IFS=$as_save_IFS
4685  if test -z "$ac_cv_path_SED"; then
4686    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4687  fi
4688else
4689  ac_cv_path_SED=$SED
4690fi
4691
4692fi
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4694$as_echo "$ac_cv_path_SED" >&6; }
4695 SED="$ac_cv_path_SED"
4696  rm -f conftest.sed
4697
4698test -z "$SED" && SED=sed
4699Xsed="$SED -e 1s/^X//"
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4712$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4713if ${ac_cv_path_GREP+:} false; then :
4714  $as_echo_n "(cached) " >&6
4715else
4716  if test -z "$GREP"; then
4717  ac_path_GREP_found=false
4718  # Loop through the user's path and test for each of PROGNAME-LIST
4719  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4721do
4722  IFS=$as_save_IFS
4723  test -z "$as_dir" && as_dir=.
4724    for ac_prog in grep ggrep; do
4725    for ac_exec_ext in '' $ac_executable_extensions; do
4726      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4727      as_fn_executable_p "$ac_path_GREP" || continue
4728# Check for GNU ac_path_GREP and select it if it is found.
4729  # Check for GNU $ac_path_GREP
4730case `"$ac_path_GREP" --version 2>&1` in
4731*GNU*)
4732  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4733*)
4734  ac_count=0
4735  $as_echo_n 0123456789 >"conftest.in"
4736  while :
4737  do
4738    cat "conftest.in" "conftest.in" >"conftest.tmp"
4739    mv "conftest.tmp" "conftest.in"
4740    cp "conftest.in" "conftest.nl"
4741    $as_echo 'GREP' >> "conftest.nl"
4742    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4743    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4744    as_fn_arith $ac_count + 1 && ac_count=$as_val
4745    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4746      # Best one so far, save it but keep looking for a better one
4747      ac_cv_path_GREP="$ac_path_GREP"
4748      ac_path_GREP_max=$ac_count
4749    fi
4750    # 10*(2^10) chars as input seems more than enough
4751    test $ac_count -gt 10 && break
4752  done
4753  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4754esac
4755
4756      $ac_path_GREP_found && break 3
4757    done
4758  done
4759  done
4760IFS=$as_save_IFS
4761  if test -z "$ac_cv_path_GREP"; then
4762    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4763  fi
4764else
4765  ac_cv_path_GREP=$GREP
4766fi
4767
4768fi
4769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4770$as_echo "$ac_cv_path_GREP" >&6; }
4771 GREP="$ac_cv_path_GREP"
4772
4773
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4775$as_echo_n "checking for egrep... " >&6; }
4776if ${ac_cv_path_EGREP+:} false; then :
4777  $as_echo_n "(cached) " >&6
4778else
4779  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4780   then ac_cv_path_EGREP="$GREP -E"
4781   else
4782     if test -z "$EGREP"; then
4783  ac_path_EGREP_found=false
4784  # Loop through the user's path and test for each of PROGNAME-LIST
4785  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4787do
4788  IFS=$as_save_IFS
4789  test -z "$as_dir" && as_dir=.
4790    for ac_prog in egrep; do
4791    for ac_exec_ext in '' $ac_executable_extensions; do
4792      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4793      as_fn_executable_p "$ac_path_EGREP" || continue
4794# Check for GNU ac_path_EGREP and select it if it is found.
4795  # Check for GNU $ac_path_EGREP
4796case `"$ac_path_EGREP" --version 2>&1` in
4797*GNU*)
4798  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4799*)
4800  ac_count=0
4801  $as_echo_n 0123456789 >"conftest.in"
4802  while :
4803  do
4804    cat "conftest.in" "conftest.in" >"conftest.tmp"
4805    mv "conftest.tmp" "conftest.in"
4806    cp "conftest.in" "conftest.nl"
4807    $as_echo 'EGREP' >> "conftest.nl"
4808    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4809    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4810    as_fn_arith $ac_count + 1 && ac_count=$as_val
4811    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4812      # Best one so far, save it but keep looking for a better one
4813      ac_cv_path_EGREP="$ac_path_EGREP"
4814      ac_path_EGREP_max=$ac_count
4815    fi
4816    # 10*(2^10) chars as input seems more than enough
4817    test $ac_count -gt 10 && break
4818  done
4819  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4820esac
4821
4822      $ac_path_EGREP_found && break 3
4823    done
4824  done
4825  done
4826IFS=$as_save_IFS
4827  if test -z "$ac_cv_path_EGREP"; then
4828    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4829  fi
4830else
4831  ac_cv_path_EGREP=$EGREP
4832fi
4833
4834   fi
4835fi
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4837$as_echo "$ac_cv_path_EGREP" >&6; }
4838 EGREP="$ac_cv_path_EGREP"
4839
4840
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4842$as_echo_n "checking for fgrep... " >&6; }
4843if ${ac_cv_path_FGREP+:} false; then :
4844  $as_echo_n "(cached) " >&6
4845else
4846  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4847   then ac_cv_path_FGREP="$GREP -F"
4848   else
4849     if test -z "$FGREP"; then
4850  ac_path_FGREP_found=false
4851  # Loop through the user's path and test for each of PROGNAME-LIST
4852  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4854do
4855  IFS=$as_save_IFS
4856  test -z "$as_dir" && as_dir=.
4857    for ac_prog in fgrep; do
4858    for ac_exec_ext in '' $ac_executable_extensions; do
4859      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4860      as_fn_executable_p "$ac_path_FGREP" || continue
4861# Check for GNU ac_path_FGREP and select it if it is found.
4862  # Check for GNU $ac_path_FGREP
4863case `"$ac_path_FGREP" --version 2>&1` in
4864*GNU*)
4865  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4866*)
4867  ac_count=0
4868  $as_echo_n 0123456789 >"conftest.in"
4869  while :
4870  do
4871    cat "conftest.in" "conftest.in" >"conftest.tmp"
4872    mv "conftest.tmp" "conftest.in"
4873    cp "conftest.in" "conftest.nl"
4874    $as_echo 'FGREP' >> "conftest.nl"
4875    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4876    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4877    as_fn_arith $ac_count + 1 && ac_count=$as_val
4878    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4879      # Best one so far, save it but keep looking for a better one
4880      ac_cv_path_FGREP="$ac_path_FGREP"
4881      ac_path_FGREP_max=$ac_count
4882    fi
4883    # 10*(2^10) chars as input seems more than enough
4884    test $ac_count -gt 10 && break
4885  done
4886  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4887esac
4888
4889      $ac_path_FGREP_found && break 3
4890    done
4891  done
4892  done
4893IFS=$as_save_IFS
4894  if test -z "$ac_cv_path_FGREP"; then
4895    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4896  fi
4897else
4898  ac_cv_path_FGREP=$FGREP
4899fi
4900
4901   fi
4902fi
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4904$as_echo "$ac_cv_path_FGREP" >&6; }
4905 FGREP="$ac_cv_path_FGREP"
4906
4907
4908test -z "$GREP" && GREP=grep
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928# Check whether --with-gnu-ld was given.
4929if test "${with_gnu_ld+set}" = set; then :
4930  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4931else
4932  with_gnu_ld=no
4933fi
4934
4935ac_prog=ld
4936if test yes = "$GCC"; then
4937  # Check if gcc -print-prog-name=ld gives a path.
4938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4939$as_echo_n "checking for ld used by $CC... " >&6; }
4940  case $host in
4941  *-*-mingw*)
4942    # gcc leaves a trailing carriage return, which upsets mingw
4943    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4944  *)
4945    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4946  esac
4947  case $ac_prog in
4948    # Accept absolute paths.
4949    [\\/]* | ?:[\\/]*)
4950      re_direlt='/[^/][^/]*/\.\./'
4951      # Canonicalize the pathname of ld
4952      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4953      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4954	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4955      done
4956      test -z "$LD" && LD=$ac_prog
4957      ;;
4958  "")
4959    # If it fails, then pretend we aren't using GCC.
4960    ac_prog=ld
4961    ;;
4962  *)
4963    # If it is relative, then search for the first ld in PATH.
4964    with_gnu_ld=unknown
4965    ;;
4966  esac
4967elif test yes = "$with_gnu_ld"; then
4968  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4969$as_echo_n "checking for GNU ld... " >&6; }
4970else
4971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4972$as_echo_n "checking for non-GNU ld... " >&6; }
4973fi
4974if ${lt_cv_path_LD+:} false; then :
4975  $as_echo_n "(cached) " >&6
4976else
4977  if test -z "$LD"; then
4978  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4979  for ac_dir in $PATH; do
4980    IFS=$lt_save_ifs
4981    test -z "$ac_dir" && ac_dir=.
4982    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4983      lt_cv_path_LD=$ac_dir/$ac_prog
4984      # Check to see if the program is GNU ld.  I'd rather use --version,
4985      # but apparently some variants of GNU ld only accept -v.
4986      # Break only if it was the GNU/non-GNU ld that we prefer.
4987      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4988      *GNU* | *'with BFD'*)
4989	test no != "$with_gnu_ld" && break
4990	;;
4991      *)
4992	test yes != "$with_gnu_ld" && break
4993	;;
4994      esac
4995    fi
4996  done
4997  IFS=$lt_save_ifs
4998else
4999  lt_cv_path_LD=$LD # Let the user override the test with a path.
5000fi
5001fi
5002
5003LD=$lt_cv_path_LD
5004if test -n "$LD"; then
5005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5006$as_echo "$LD" >&6; }
5007else
5008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009$as_echo "no" >&6; }
5010fi
5011test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5013$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5014if ${lt_cv_prog_gnu_ld+:} false; then :
5015  $as_echo_n "(cached) " >&6
5016else
5017  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5018case `$LD -v 2>&1 </dev/null` in
5019*GNU* | *'with BFD'*)
5020  lt_cv_prog_gnu_ld=yes
5021  ;;
5022*)
5023  lt_cv_prog_gnu_ld=no
5024  ;;
5025esac
5026fi
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5028$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5029with_gnu_ld=$lt_cv_prog_gnu_ld
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5040$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5041if ${lt_cv_path_NM+:} false; then :
5042  $as_echo_n "(cached) " >&6
5043else
5044  if test -n "$NM"; then
5045  # Let the user override the test.
5046  lt_cv_path_NM=$NM
5047else
5048  lt_nm_to_check=${ac_tool_prefix}nm
5049  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5050    lt_nm_to_check="$lt_nm_to_check nm"
5051  fi
5052  for lt_tmp_nm in $lt_nm_to_check; do
5053    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5054    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5055      IFS=$lt_save_ifs
5056      test -z "$ac_dir" && ac_dir=.
5057      tmp_nm=$ac_dir/$lt_tmp_nm
5058      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5059	# Check to see if the nm accepts a BSD-compat flag.
5060	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5061	#   nm: unknown option "B" ignored
5062	# Tru64's nm complains that /dev/null is an invalid object file
5063	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5064	case $build_os in
5065	mingw*) lt_bad_file=conftest.nm/nofile ;;
5066	*) lt_bad_file=/dev/null ;;
5067	esac
5068	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5069	*$lt_bad_file* | *'Invalid file or object type'*)
5070	  lt_cv_path_NM="$tmp_nm -B"
5071	  break 2
5072	  ;;
5073	*)
5074	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5075	  */dev/null*)
5076	    lt_cv_path_NM="$tmp_nm -p"
5077	    break 2
5078	    ;;
5079	  *)
5080	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5081	    continue # so that we can try to find one that supports BSD flags
5082	    ;;
5083	  esac
5084	  ;;
5085	esac
5086      fi
5087    done
5088    IFS=$lt_save_ifs
5089  done
5090  : ${lt_cv_path_NM=no}
5091fi
5092fi
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5094$as_echo "$lt_cv_path_NM" >&6; }
5095if test no != "$lt_cv_path_NM"; then
5096  NM=$lt_cv_path_NM
5097else
5098  # Didn't find any BSD compatible name lister, look for dumpbin.
5099  if test -n "$DUMPBIN"; then :
5100    # Let the user override the test.
5101  else
5102    if test -n "$ac_tool_prefix"; then
5103  for ac_prog in dumpbin "link -dump"
5104  do
5105    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5106set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108$as_echo_n "checking for $ac_word... " >&6; }
5109if ${ac_cv_prog_DUMPBIN+:} false; then :
5110  $as_echo_n "(cached) " >&6
5111else
5112  if test -n "$DUMPBIN"; then
5113  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5114else
5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116for as_dir in $PATH
5117do
5118  IFS=$as_save_IFS
5119  test -z "$as_dir" && as_dir=.
5120    for ac_exec_ext in '' $ac_executable_extensions; do
5121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124    break 2
5125  fi
5126done
5127  done
5128IFS=$as_save_IFS
5129
5130fi
5131fi
5132DUMPBIN=$ac_cv_prog_DUMPBIN
5133if test -n "$DUMPBIN"; then
5134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5135$as_echo "$DUMPBIN" >&6; }
5136else
5137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138$as_echo "no" >&6; }
5139fi
5140
5141
5142    test -n "$DUMPBIN" && break
5143  done
5144fi
5145if test -z "$DUMPBIN"; then
5146  ac_ct_DUMPBIN=$DUMPBIN
5147  for ac_prog in dumpbin "link -dump"
5148do
5149  # Extract the first word of "$ac_prog", so it can be a program name with args.
5150set dummy $ac_prog; ac_word=$2
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152$as_echo_n "checking for $ac_word... " >&6; }
5153if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5154  $as_echo_n "(cached) " >&6
5155else
5156  if test -n "$ac_ct_DUMPBIN"; then
5157  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5158else
5159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160for as_dir in $PATH
5161do
5162  IFS=$as_save_IFS
5163  test -z "$as_dir" && as_dir=.
5164    for ac_exec_ext in '' $ac_executable_extensions; do
5165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5166    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168    break 2
5169  fi
5170done
5171  done
5172IFS=$as_save_IFS
5173
5174fi
5175fi
5176ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5177if test -n "$ac_ct_DUMPBIN"; then
5178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5179$as_echo "$ac_ct_DUMPBIN" >&6; }
5180else
5181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182$as_echo "no" >&6; }
5183fi
5184
5185
5186  test -n "$ac_ct_DUMPBIN" && break
5187done
5188
5189  if test "x$ac_ct_DUMPBIN" = x; then
5190    DUMPBIN=":"
5191  else
5192    case $cross_compiling:$ac_tool_warned in
5193yes:)
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5196ac_tool_warned=yes ;;
5197esac
5198    DUMPBIN=$ac_ct_DUMPBIN
5199  fi
5200fi
5201
5202    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5203    *COFF*)
5204      DUMPBIN="$DUMPBIN -symbols -headers"
5205      ;;
5206    *)
5207      DUMPBIN=:
5208      ;;
5209    esac
5210  fi
5211
5212  if test : != "$DUMPBIN"; then
5213    NM=$DUMPBIN
5214  fi
5215fi
5216test -z "$NM" && NM=nm
5217
5218
5219
5220
5221
5222
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5224$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5225if ${lt_cv_nm_interface+:} false; then :
5226  $as_echo_n "(cached) " >&6
5227else
5228  lt_cv_nm_interface="BSD nm"
5229  echo "int some_variable = 0;" > conftest.$ac_ext
5230  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5231  (eval "$ac_compile" 2>conftest.err)
5232  cat conftest.err >&5
5233  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5234  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5235  cat conftest.err >&5
5236  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5237  cat conftest.out >&5
5238  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5239    lt_cv_nm_interface="MS dumpbin"
5240  fi
5241  rm -f conftest*
5242fi
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5244$as_echo "$lt_cv_nm_interface" >&6; }
5245
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5247$as_echo_n "checking whether ln -s works... " >&6; }
5248LN_S=$as_ln_s
5249if test "$LN_S" = "ln -s"; then
5250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5251$as_echo "yes" >&6; }
5252else
5253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5254$as_echo "no, using $LN_S" >&6; }
5255fi
5256
5257# find the maximum length of command line arguments
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5259$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5260if ${lt_cv_sys_max_cmd_len+:} false; then :
5261  $as_echo_n "(cached) " >&6
5262else
5263    i=0
5264  teststring=ABCD
5265
5266  case $build_os in
5267  msdosdjgpp*)
5268    # On DJGPP, this test can blow up pretty badly due to problems in libc
5269    # (any single argument exceeding 2000 bytes causes a buffer overrun
5270    # during glob expansion).  Even if it were fixed, the result of this
5271    # check would be larger than it should be.
5272    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5273    ;;
5274
5275  gnu*)
5276    # Under GNU Hurd, this test is not required because there is
5277    # no limit to the length of command line arguments.
5278    # Libtool will interpret -1 as no limit whatsoever
5279    lt_cv_sys_max_cmd_len=-1;
5280    ;;
5281
5282  cygwin* | mingw* | cegcc*)
5283    # On Win9x/ME, this test blows up -- it succeeds, but takes
5284    # about 5 minutes as the teststring grows exponentially.
5285    # Worse, since 9x/ME are not pre-emptively multitasking,
5286    # you end up with a "frozen" computer, even though with patience
5287    # the test eventually succeeds (with a max line length of 256k).
5288    # Instead, let's just punt: use the minimum linelength reported by
5289    # all of the supported platforms: 8192 (on NT/2K/XP).
5290    lt_cv_sys_max_cmd_len=8192;
5291    ;;
5292
5293  mint*)
5294    # On MiNT this can take a long time and run out of memory.
5295    lt_cv_sys_max_cmd_len=8192;
5296    ;;
5297
5298  amigaos*)
5299    # On AmigaOS with pdksh, this test takes hours, literally.
5300    # So we just punt and use a minimum line length of 8192.
5301    lt_cv_sys_max_cmd_len=8192;
5302    ;;
5303
5304  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5305    # This has been around since 386BSD, at least.  Likely further.
5306    if test -x /sbin/sysctl; then
5307      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5308    elif test -x /usr/sbin/sysctl; then
5309      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5310    else
5311      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5312    fi
5313    # And add a safety zone
5314    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5315    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5316    ;;
5317
5318  interix*)
5319    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5320    lt_cv_sys_max_cmd_len=196608
5321    ;;
5322
5323  os2*)
5324    # The test takes a long time on OS/2.
5325    lt_cv_sys_max_cmd_len=8192
5326    ;;
5327
5328  osf*)
5329    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5330    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5331    # nice to cause kernel panics so lets avoid the loop below.
5332    # First set a reasonable default.
5333    lt_cv_sys_max_cmd_len=16384
5334    #
5335    if test -x /sbin/sysconfig; then
5336      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5337        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5338      esac
5339    fi
5340    ;;
5341  sco3.2v5*)
5342    lt_cv_sys_max_cmd_len=102400
5343    ;;
5344  sysv5* | sco5v6* | sysv4.2uw2*)
5345    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5346    if test -n "$kargmax"; then
5347      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5348    else
5349      lt_cv_sys_max_cmd_len=32768
5350    fi
5351    ;;
5352  *)
5353    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5354    if test -n "$lt_cv_sys_max_cmd_len" && \
5355       test undefined != "$lt_cv_sys_max_cmd_len"; then
5356      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5357      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5358    else
5359      # Make teststring a little bigger before we do anything with it.
5360      # a 1K string should be a reasonable start.
5361      for i in 1 2 3 4 5 6 7 8; do
5362        teststring=$teststring$teststring
5363      done
5364      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5365      # If test is not a shell built-in, we'll probably end up computing a
5366      # maximum length that is only half of the actual maximum length, but
5367      # we can't tell.
5368      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5369	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5370	      test 17 != "$i" # 1/2 MB should be enough
5371      do
5372        i=`expr $i + 1`
5373        teststring=$teststring$teststring
5374      done
5375      # Only check the string length outside the loop.
5376      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5377      teststring=
5378      # Add a significant safety factor because C++ compilers can tack on
5379      # massive amounts of additional arguments before passing them to the
5380      # linker.  It appears as though 1/2 is a usable value.
5381      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5382    fi
5383    ;;
5384  esac
5385
5386fi
5387
5388if test -n "$lt_cv_sys_max_cmd_len"; then
5389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5390$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5391else
5392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5393$as_echo "none" >&6; }
5394fi
5395max_cmd_len=$lt_cv_sys_max_cmd_len
5396
5397
5398
5399
5400
5401
5402: ${CP="cp -f"}
5403: ${MV="mv -f"}
5404: ${RM="rm -f"}
5405
5406if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5407  lt_unset=unset
5408else
5409  lt_unset=false
5410fi
5411
5412
5413
5414
5415
5416# test EBCDIC or ASCII
5417case `echo X|tr X '\101'` in
5418 A) # ASCII based system
5419    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5420  lt_SP2NL='tr \040 \012'
5421  lt_NL2SP='tr \015\012 \040\040'
5422  ;;
5423 *) # EBCDIC based system
5424  lt_SP2NL='tr \100 \n'
5425  lt_NL2SP='tr \r\n \100\100'
5426  ;;
5427esac
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5438$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5439if ${lt_cv_to_host_file_cmd+:} false; then :
5440  $as_echo_n "(cached) " >&6
5441else
5442  case $host in
5443  *-*-mingw* )
5444    case $build in
5445      *-*-mingw* ) # actually msys
5446        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5447        ;;
5448      *-*-cygwin* )
5449        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5450        ;;
5451      * ) # otherwise, assume *nix
5452        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5453        ;;
5454    esac
5455    ;;
5456  *-*-cygwin* )
5457    case $build in
5458      *-*-mingw* ) # actually msys
5459        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5460        ;;
5461      *-*-cygwin* )
5462        lt_cv_to_host_file_cmd=func_convert_file_noop
5463        ;;
5464      * ) # otherwise, assume *nix
5465        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5466        ;;
5467    esac
5468    ;;
5469  * ) # unhandled hosts (and "normal" native builds)
5470    lt_cv_to_host_file_cmd=func_convert_file_noop
5471    ;;
5472esac
5473
5474fi
5475
5476to_host_file_cmd=$lt_cv_to_host_file_cmd
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5478$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5479
5480
5481
5482
5483
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5485$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5486if ${lt_cv_to_tool_file_cmd+:} false; then :
5487  $as_echo_n "(cached) " >&6
5488else
5489  #assume ordinary cross tools, or native build.
5490lt_cv_to_tool_file_cmd=func_convert_file_noop
5491case $host in
5492  *-*-mingw* )
5493    case $build in
5494      *-*-mingw* ) # actually msys
5495        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5496        ;;
5497    esac
5498    ;;
5499esac
5500
5501fi
5502
5503to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5505$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5506
5507
5508
5509
5510
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5512$as_echo_n "checking for $LD option to reload object files... " >&6; }
5513if ${lt_cv_ld_reload_flag+:} false; then :
5514  $as_echo_n "(cached) " >&6
5515else
5516  lt_cv_ld_reload_flag='-r'
5517fi
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5519$as_echo "$lt_cv_ld_reload_flag" >&6; }
5520reload_flag=$lt_cv_ld_reload_flag
5521case $reload_flag in
5522"" | " "*) ;;
5523*) reload_flag=" $reload_flag" ;;
5524esac
5525reload_cmds='$LD$reload_flag -o $output$reload_objs'
5526case $host_os in
5527  cygwin* | mingw* | pw32* | cegcc*)
5528    if test yes != "$GCC"; then
5529      reload_cmds=false
5530    fi
5531    ;;
5532  darwin*)
5533    if test yes = "$GCC"; then
5534      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5535    else
5536      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5537    fi
5538    ;;
5539esac
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549if test -n "$ac_tool_prefix"; then
5550  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5551set dummy ${ac_tool_prefix}objdump; ac_word=$2
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5553$as_echo_n "checking for $ac_word... " >&6; }
5554if ${ac_cv_prog_OBJDUMP+:} false; then :
5555  $as_echo_n "(cached) " >&6
5556else
5557  if test -n "$OBJDUMP"; then
5558  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5559else
5560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561for as_dir in $PATH
5562do
5563  IFS=$as_save_IFS
5564  test -z "$as_dir" && as_dir=.
5565    for ac_exec_ext in '' $ac_executable_extensions; do
5566  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5567    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5569    break 2
5570  fi
5571done
5572  done
5573IFS=$as_save_IFS
5574
5575fi
5576fi
5577OBJDUMP=$ac_cv_prog_OBJDUMP
5578if test -n "$OBJDUMP"; then
5579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5580$as_echo "$OBJDUMP" >&6; }
5581else
5582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583$as_echo "no" >&6; }
5584fi
5585
5586
5587fi
5588if test -z "$ac_cv_prog_OBJDUMP"; then
5589  ac_ct_OBJDUMP=$OBJDUMP
5590  # Extract the first word of "objdump", so it can be a program name with args.
5591set dummy objdump; ac_word=$2
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593$as_echo_n "checking for $ac_word... " >&6; }
5594if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5595  $as_echo_n "(cached) " >&6
5596else
5597  if test -n "$ac_ct_OBJDUMP"; then
5598  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5599else
5600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601for as_dir in $PATH
5602do
5603  IFS=$as_save_IFS
5604  test -z "$as_dir" && as_dir=.
5605    for ac_exec_ext in '' $ac_executable_extensions; do
5606  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609    break 2
5610  fi
5611done
5612  done
5613IFS=$as_save_IFS
5614
5615fi
5616fi
5617ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5618if test -n "$ac_ct_OBJDUMP"; then
5619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5620$as_echo "$ac_ct_OBJDUMP" >&6; }
5621else
5622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623$as_echo "no" >&6; }
5624fi
5625
5626  if test "x$ac_ct_OBJDUMP" = x; then
5627    OBJDUMP="false"
5628  else
5629    case $cross_compiling:$ac_tool_warned in
5630yes:)
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5633ac_tool_warned=yes ;;
5634esac
5635    OBJDUMP=$ac_ct_OBJDUMP
5636  fi
5637else
5638  OBJDUMP="$ac_cv_prog_OBJDUMP"
5639fi
5640
5641test -z "$OBJDUMP" && OBJDUMP=objdump
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5652$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5653if ${lt_cv_deplibs_check_method+:} false; then :
5654  $as_echo_n "(cached) " >&6
5655else
5656  lt_cv_file_magic_cmd='$MAGIC_CMD'
5657lt_cv_file_magic_test_file=
5658lt_cv_deplibs_check_method='unknown'
5659# Need to set the preceding variable on all platforms that support
5660# interlibrary dependencies.
5661# 'none' -- dependencies not supported.
5662# 'unknown' -- same as none, but documents that we really don't know.
5663# 'pass_all' -- all dependencies passed with no checks.
5664# 'test_compile' -- check by making test program.
5665# 'file_magic [[regex]]' -- check by looking for files in library path
5666# that responds to the $file_magic_cmd with a given extended regex.
5667# If you have 'file' or equivalent on your system and you're not sure
5668# whether 'pass_all' will *always* work, you probably want this one.
5669
5670case $host_os in
5671aix[4-9]*)
5672  lt_cv_deplibs_check_method=pass_all
5673  ;;
5674
5675beos*)
5676  lt_cv_deplibs_check_method=pass_all
5677  ;;
5678
5679bsdi[45]*)
5680  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5681  lt_cv_file_magic_cmd='/usr/bin/file -L'
5682  lt_cv_file_magic_test_file=/shlib/libc.so
5683  ;;
5684
5685cygwin*)
5686  # func_win32_libid is a shell function defined in ltmain.sh
5687  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5688  lt_cv_file_magic_cmd='func_win32_libid'
5689  ;;
5690
5691mingw* | pw32*)
5692  # Base MSYS/MinGW do not provide the 'file' command needed by
5693  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5694  # unless we find 'file', for example because we are cross-compiling.
5695  if ( file / ) >/dev/null 2>&1; then
5696    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5697    lt_cv_file_magic_cmd='func_win32_libid'
5698  else
5699    # Keep this pattern in sync with the one in func_win32_libid.
5700    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5701    lt_cv_file_magic_cmd='$OBJDUMP -f'
5702  fi
5703  ;;
5704
5705cegcc*)
5706  # use the weaker test based on 'objdump'. See mingw*.
5707  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5708  lt_cv_file_magic_cmd='$OBJDUMP -f'
5709  ;;
5710
5711darwin* | rhapsody*)
5712  lt_cv_deplibs_check_method=pass_all
5713  ;;
5714
5715freebsd* | dragonfly*)
5716  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5717    case $host_cpu in
5718    i*86 )
5719      # Not sure whether the presence of OpenBSD here was a mistake.
5720      # Let's accept both of them until this is cleared up.
5721      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5722      lt_cv_file_magic_cmd=/usr/bin/file
5723      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5724      ;;
5725    esac
5726  else
5727    lt_cv_deplibs_check_method=pass_all
5728  fi
5729  ;;
5730
5731haiku*)
5732  lt_cv_deplibs_check_method=pass_all
5733  ;;
5734
5735hpux10.20* | hpux11*)
5736  lt_cv_file_magic_cmd=/usr/bin/file
5737  case $host_cpu in
5738  ia64*)
5739    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5740    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5741    ;;
5742  hppa*64*)
5743    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]'
5744    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5745    ;;
5746  *)
5747    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5748    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5749    ;;
5750  esac
5751  ;;
5752
5753interix[3-9]*)
5754  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5755  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5756  ;;
5757
5758irix5* | irix6* | nonstopux*)
5759  case $LD in
5760  *-32|*"-32 ") libmagic=32-bit;;
5761  *-n32|*"-n32 ") libmagic=N32;;
5762  *-64|*"-64 ") libmagic=64-bit;;
5763  *) libmagic=never-match;;
5764  esac
5765  lt_cv_deplibs_check_method=pass_all
5766  ;;
5767
5768# This must be glibc/ELF.
5769linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5770  lt_cv_deplibs_check_method=pass_all
5771  ;;
5772
5773netbsd* | netbsdelf*-gnu)
5774  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5775    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5776  else
5777    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5778  fi
5779  ;;
5780
5781newos6*)
5782  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5783  lt_cv_file_magic_cmd=/usr/bin/file
5784  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5785  ;;
5786
5787*nto* | *qnx*)
5788  lt_cv_deplibs_check_method=pass_all
5789  ;;
5790
5791openbsd* | bitrig*)
5792  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5793    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5794  else
5795    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5796  fi
5797  ;;
5798
5799osf3* | osf4* | osf5*)
5800  lt_cv_deplibs_check_method=pass_all
5801  ;;
5802
5803rdos*)
5804  lt_cv_deplibs_check_method=pass_all
5805  ;;
5806
5807solaris*)
5808  lt_cv_deplibs_check_method=pass_all
5809  ;;
5810
5811sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5812  lt_cv_deplibs_check_method=pass_all
5813  ;;
5814
5815sysv4 | sysv4.3*)
5816  case $host_vendor in
5817  motorola)
5818    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]'
5819    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5820    ;;
5821  ncr)
5822    lt_cv_deplibs_check_method=pass_all
5823    ;;
5824  sequent)
5825    lt_cv_file_magic_cmd='/bin/file'
5826    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5827    ;;
5828  sni)
5829    lt_cv_file_magic_cmd='/bin/file'
5830    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5831    lt_cv_file_magic_test_file=/lib/libc.so
5832    ;;
5833  siemens)
5834    lt_cv_deplibs_check_method=pass_all
5835    ;;
5836  pc)
5837    lt_cv_deplibs_check_method=pass_all
5838    ;;
5839  esac
5840  ;;
5841
5842tpf*)
5843  lt_cv_deplibs_check_method=pass_all
5844  ;;
5845os2*)
5846  lt_cv_deplibs_check_method=pass_all
5847  ;;
5848esac
5849
5850fi
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5852$as_echo "$lt_cv_deplibs_check_method" >&6; }
5853
5854file_magic_glob=
5855want_nocaseglob=no
5856if test "$build" = "$host"; then
5857  case $host_os in
5858  mingw* | pw32*)
5859    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5860      want_nocaseglob=yes
5861    else
5862      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5863    fi
5864    ;;
5865  esac
5866fi
5867
5868file_magic_cmd=$lt_cv_file_magic_cmd
5869deplibs_check_method=$lt_cv_deplibs_check_method
5870test -z "$deplibs_check_method" && deplibs_check_method=unknown
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893if test -n "$ac_tool_prefix"; then
5894  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5895set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897$as_echo_n "checking for $ac_word... " >&6; }
5898if ${ac_cv_prog_DLLTOOL+:} false; then :
5899  $as_echo_n "(cached) " >&6
5900else
5901  if test -n "$DLLTOOL"; then
5902  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5903else
5904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905for as_dir in $PATH
5906do
5907  IFS=$as_save_IFS
5908  test -z "$as_dir" && as_dir=.
5909    for ac_exec_ext in '' $ac_executable_extensions; do
5910  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5911    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913    break 2
5914  fi
5915done
5916  done
5917IFS=$as_save_IFS
5918
5919fi
5920fi
5921DLLTOOL=$ac_cv_prog_DLLTOOL
5922if test -n "$DLLTOOL"; then
5923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5924$as_echo "$DLLTOOL" >&6; }
5925else
5926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927$as_echo "no" >&6; }
5928fi
5929
5930
5931fi
5932if test -z "$ac_cv_prog_DLLTOOL"; then
5933  ac_ct_DLLTOOL=$DLLTOOL
5934  # Extract the first word of "dlltool", so it can be a program name with args.
5935set dummy dlltool; ac_word=$2
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937$as_echo_n "checking for $ac_word... " >&6; }
5938if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5939  $as_echo_n "(cached) " >&6
5940else
5941  if test -n "$ac_ct_DLLTOOL"; then
5942  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5943else
5944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945for as_dir in $PATH
5946do
5947  IFS=$as_save_IFS
5948  test -z "$as_dir" && as_dir=.
5949    for ac_exec_ext in '' $ac_executable_extensions; do
5950  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953    break 2
5954  fi
5955done
5956  done
5957IFS=$as_save_IFS
5958
5959fi
5960fi
5961ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5962if test -n "$ac_ct_DLLTOOL"; then
5963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5964$as_echo "$ac_ct_DLLTOOL" >&6; }
5965else
5966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967$as_echo "no" >&6; }
5968fi
5969
5970  if test "x$ac_ct_DLLTOOL" = x; then
5971    DLLTOOL="false"
5972  else
5973    case $cross_compiling:$ac_tool_warned in
5974yes:)
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5977ac_tool_warned=yes ;;
5978esac
5979    DLLTOOL=$ac_ct_DLLTOOL
5980  fi
5981else
5982  DLLTOOL="$ac_cv_prog_DLLTOOL"
5983fi
5984
5985test -z "$DLLTOOL" && DLLTOOL=dlltool
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5997$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5998if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5999  $as_echo_n "(cached) " >&6
6000else
6001  lt_cv_sharedlib_from_linklib_cmd='unknown'
6002
6003case $host_os in
6004cygwin* | mingw* | pw32* | cegcc*)
6005  # two different shell functions defined in ltmain.sh;
6006  # decide which one to use based on capabilities of $DLLTOOL
6007  case `$DLLTOOL --help 2>&1` in
6008  *--identify-strict*)
6009    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6010    ;;
6011  *)
6012    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6013    ;;
6014  esac
6015  ;;
6016*)
6017  # fallback: assume linklib IS sharedlib
6018  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6019  ;;
6020esac
6021
6022fi
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6024$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6025sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6026test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6027
6028
6029
6030
6031
6032
6033
6034if test -n "$ac_tool_prefix"; then
6035  for ac_prog in ar
6036  do
6037    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6038set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6040$as_echo_n "checking for $ac_word... " >&6; }
6041if ${ac_cv_prog_AR+:} false; then :
6042  $as_echo_n "(cached) " >&6
6043else
6044  if test -n "$AR"; then
6045  ac_cv_prog_AR="$AR" # Let the user override the test.
6046else
6047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048for as_dir in $PATH
6049do
6050  IFS=$as_save_IFS
6051  test -z "$as_dir" && as_dir=.
6052    for ac_exec_ext in '' $ac_executable_extensions; do
6053  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6054    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6056    break 2
6057  fi
6058done
6059  done
6060IFS=$as_save_IFS
6061
6062fi
6063fi
6064AR=$ac_cv_prog_AR
6065if test -n "$AR"; then
6066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6067$as_echo "$AR" >&6; }
6068else
6069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070$as_echo "no" >&6; }
6071fi
6072
6073
6074    test -n "$AR" && break
6075  done
6076fi
6077if test -z "$AR"; then
6078  ac_ct_AR=$AR
6079  for ac_prog in ar
6080do
6081  # Extract the first word of "$ac_prog", so it can be a program name with args.
6082set dummy $ac_prog; ac_word=$2
6083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084$as_echo_n "checking for $ac_word... " >&6; }
6085if ${ac_cv_prog_ac_ct_AR+:} false; then :
6086  $as_echo_n "(cached) " >&6
6087else
6088  if test -n "$ac_ct_AR"; then
6089  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6090else
6091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092for as_dir in $PATH
6093do
6094  IFS=$as_save_IFS
6095  test -z "$as_dir" && as_dir=.
6096    for ac_exec_ext in '' $ac_executable_extensions; do
6097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098    ac_cv_prog_ac_ct_AR="$ac_prog"
6099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100    break 2
6101  fi
6102done
6103  done
6104IFS=$as_save_IFS
6105
6106fi
6107fi
6108ac_ct_AR=$ac_cv_prog_ac_ct_AR
6109if test -n "$ac_ct_AR"; then
6110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6111$as_echo "$ac_ct_AR" >&6; }
6112else
6113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114$as_echo "no" >&6; }
6115fi
6116
6117
6118  test -n "$ac_ct_AR" && break
6119done
6120
6121  if test "x$ac_ct_AR" = x; then
6122    AR="false"
6123  else
6124    case $cross_compiling:$ac_tool_warned in
6125yes:)
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6128ac_tool_warned=yes ;;
6129esac
6130    AR=$ac_ct_AR
6131  fi
6132fi
6133
6134: ${AR=ar}
6135: ${AR_FLAGS=cru}
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6148$as_echo_n "checking for archiver @FILE support... " >&6; }
6149if ${lt_cv_ar_at_file+:} false; then :
6150  $as_echo_n "(cached) " >&6
6151else
6152  lt_cv_ar_at_file=no
6153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154/* end confdefs.h.  */
6155
6156int
6157main ()
6158{
6159
6160  ;
6161  return 0;
6162}
6163_ACEOF
6164if ac_fn_c_try_compile "$LINENO"; then :
6165  echo conftest.$ac_objext > conftest.lst
6166      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6167      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6168  (eval $lt_ar_try) 2>&5
6169  ac_status=$?
6170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6171  test $ac_status = 0; }
6172      if test 0 -eq "$ac_status"; then
6173	# Ensure the archiver fails upon bogus file names.
6174	rm -f conftest.$ac_objext libconftest.a
6175	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6176  (eval $lt_ar_try) 2>&5
6177  ac_status=$?
6178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179  test $ac_status = 0; }
6180	if test 0 -ne "$ac_status"; then
6181          lt_cv_ar_at_file=@
6182        fi
6183      fi
6184      rm -f conftest.* libconftest.a
6185
6186fi
6187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6188
6189fi
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6191$as_echo "$lt_cv_ar_at_file" >&6; }
6192
6193if test no = "$lt_cv_ar_at_file"; then
6194  archiver_list_spec=
6195else
6196  archiver_list_spec=$lt_cv_ar_at_file
6197fi
6198
6199
6200
6201
6202
6203
6204
6205if test -n "$ac_tool_prefix"; then
6206  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6207set dummy ${ac_tool_prefix}strip; ac_word=$2
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209$as_echo_n "checking for $ac_word... " >&6; }
6210if ${ac_cv_prog_STRIP+:} false; then :
6211  $as_echo_n "(cached) " >&6
6212else
6213  if test -n "$STRIP"; then
6214  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6215else
6216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217for as_dir in $PATH
6218do
6219  IFS=$as_save_IFS
6220  test -z "$as_dir" && as_dir=.
6221    for ac_exec_ext in '' $ac_executable_extensions; do
6222  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6223    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225    break 2
6226  fi
6227done
6228  done
6229IFS=$as_save_IFS
6230
6231fi
6232fi
6233STRIP=$ac_cv_prog_STRIP
6234if test -n "$STRIP"; then
6235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6236$as_echo "$STRIP" >&6; }
6237else
6238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239$as_echo "no" >&6; }
6240fi
6241
6242
6243fi
6244if test -z "$ac_cv_prog_STRIP"; then
6245  ac_ct_STRIP=$STRIP
6246  # Extract the first word of "strip", so it can be a program name with args.
6247set dummy strip; ac_word=$2
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249$as_echo_n "checking for $ac_word... " >&6; }
6250if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6251  $as_echo_n "(cached) " >&6
6252else
6253  if test -n "$ac_ct_STRIP"; then
6254  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6255else
6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257for as_dir in $PATH
6258do
6259  IFS=$as_save_IFS
6260  test -z "$as_dir" && as_dir=.
6261    for ac_exec_ext in '' $ac_executable_extensions; do
6262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6263    ac_cv_prog_ac_ct_STRIP="strip"
6264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265    break 2
6266  fi
6267done
6268  done
6269IFS=$as_save_IFS
6270
6271fi
6272fi
6273ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6274if test -n "$ac_ct_STRIP"; then
6275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6276$as_echo "$ac_ct_STRIP" >&6; }
6277else
6278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279$as_echo "no" >&6; }
6280fi
6281
6282  if test "x$ac_ct_STRIP" = x; then
6283    STRIP=":"
6284  else
6285    case $cross_compiling:$ac_tool_warned in
6286yes:)
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6289ac_tool_warned=yes ;;
6290esac
6291    STRIP=$ac_ct_STRIP
6292  fi
6293else
6294  STRIP="$ac_cv_prog_STRIP"
6295fi
6296
6297test -z "$STRIP" && STRIP=:
6298
6299
6300
6301
6302
6303
6304if test -n "$ac_tool_prefix"; then
6305  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6306set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308$as_echo_n "checking for $ac_word... " >&6; }
6309if ${ac_cv_prog_RANLIB+:} false; then :
6310  $as_echo_n "(cached) " >&6
6311else
6312  if test -n "$RANLIB"; then
6313  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6314else
6315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316for as_dir in $PATH
6317do
6318  IFS=$as_save_IFS
6319  test -z "$as_dir" && as_dir=.
6320    for ac_exec_ext in '' $ac_executable_extensions; do
6321  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6323    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324    break 2
6325  fi
6326done
6327  done
6328IFS=$as_save_IFS
6329
6330fi
6331fi
6332RANLIB=$ac_cv_prog_RANLIB
6333if test -n "$RANLIB"; then
6334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6335$as_echo "$RANLIB" >&6; }
6336else
6337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338$as_echo "no" >&6; }
6339fi
6340
6341
6342fi
6343if test -z "$ac_cv_prog_RANLIB"; then
6344  ac_ct_RANLIB=$RANLIB
6345  # Extract the first word of "ranlib", so it can be a program name with args.
6346set dummy ranlib; ac_word=$2
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348$as_echo_n "checking for $ac_word... " >&6; }
6349if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6350  $as_echo_n "(cached) " >&6
6351else
6352  if test -n "$ac_ct_RANLIB"; then
6353  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6354else
6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358  IFS=$as_save_IFS
6359  test -z "$as_dir" && as_dir=.
6360    for ac_exec_ext in '' $ac_executable_extensions; do
6361  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362    ac_cv_prog_ac_ct_RANLIB="ranlib"
6363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364    break 2
6365  fi
6366done
6367  done
6368IFS=$as_save_IFS
6369
6370fi
6371fi
6372ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6373if test -n "$ac_ct_RANLIB"; then
6374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6375$as_echo "$ac_ct_RANLIB" >&6; }
6376else
6377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378$as_echo "no" >&6; }
6379fi
6380
6381  if test "x$ac_ct_RANLIB" = x; then
6382    RANLIB=":"
6383  else
6384    case $cross_compiling:$ac_tool_warned in
6385yes:)
6386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388ac_tool_warned=yes ;;
6389esac
6390    RANLIB=$ac_ct_RANLIB
6391  fi
6392else
6393  RANLIB="$ac_cv_prog_RANLIB"
6394fi
6395
6396test -z "$RANLIB" && RANLIB=:
6397
6398
6399
6400
6401
6402
6403# Determine commands to create old-style static archives.
6404old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6405old_postinstall_cmds='chmod 644 $oldlib'
6406old_postuninstall_cmds=
6407
6408if test -n "$RANLIB"; then
6409  case $host_os in
6410  bitrig* | openbsd*)
6411    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6412    ;;
6413  *)
6414    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6415    ;;
6416  esac
6417  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6418fi
6419
6420case $host_os in
6421  darwin*)
6422    lock_old_archive_extraction=yes ;;
6423  *)
6424    lock_old_archive_extraction=no ;;
6425esac
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465# If no C compiler was specified, use CC.
6466LTCC=${LTCC-"$CC"}
6467
6468# If no C compiler flags were specified, use CFLAGS.
6469LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6470
6471# Allow CC to be a program name with arguments.
6472compiler=$CC
6473
6474
6475# Check for command to grab the raw symbol name followed by C symbol from nm.
6476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6477$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6478if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6479  $as_echo_n "(cached) " >&6
6480else
6481
6482# These are sane defaults that work on at least a few old systems.
6483# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6484
6485# Character class describing NM global symbol codes.
6486symcode='[BCDEGRST]'
6487
6488# Regexp to match symbols that can be accessed directly from C.
6489sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6490
6491# Define system-specific variables.
6492case $host_os in
6493aix*)
6494  symcode='[BCDT]'
6495  ;;
6496cygwin* | mingw* | pw32* | cegcc*)
6497  symcode='[ABCDGISTW]'
6498  ;;
6499hpux*)
6500  if test ia64 = "$host_cpu"; then
6501    symcode='[ABCDEGRST]'
6502  fi
6503  ;;
6504irix* | nonstopux*)
6505  symcode='[BCDEGRST]'
6506  ;;
6507osf*)
6508  symcode='[BCDEGQRST]'
6509  ;;
6510solaris*)
6511  symcode='[BDRT]'
6512  ;;
6513sco3.2v5*)
6514  symcode='[DT]'
6515  ;;
6516sysv4.2uw2*)
6517  symcode='[DT]'
6518  ;;
6519sysv5* | sco5v6* | unixware* | OpenUNIX*)
6520  symcode='[ABDT]'
6521  ;;
6522sysv4)
6523  symcode='[DFNSTU]'
6524  ;;
6525esac
6526
6527# If we're using GNU nm, then use its standard symbol codes.
6528case `$NM -V 2>&1` in
6529*GNU* | *'with BFD'*)
6530  symcode='[ABCDGIRSTW]' ;;
6531esac
6532
6533if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6534  # Gets list of data symbols to import.
6535  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6536  # Adjust the below global symbol transforms to fixup imported variables.
6537  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6538  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6539  lt_c_name_lib_hook="\
6540  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6541  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6542else
6543  # Disable hooks by default.
6544  lt_cv_sys_global_symbol_to_import=
6545  lt_cdecl_hook=
6546  lt_c_name_hook=
6547  lt_c_name_lib_hook=
6548fi
6549
6550# Transform an extracted symbol line into a proper C declaration.
6551# Some systems (esp. on ia64) link data and code symbols differently,
6552# so use this general approach.
6553lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6554$lt_cdecl_hook\
6555" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6556" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6557
6558# Transform an extracted symbol line into symbol name and symbol address
6559lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6560$lt_c_name_hook\
6561" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6562" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6563
6564# Transform an extracted symbol line into symbol name with lib prefix and
6565# symbol address.
6566lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6567$lt_c_name_lib_hook\
6568" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6569" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6570" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6571
6572# Handle CRLF in mingw tool chain
6573opt_cr=
6574case $build_os in
6575mingw*)
6576  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6577  ;;
6578esac
6579
6580# Try without a prefix underscore, then with it.
6581for ac_symprfx in "" "_"; do
6582
6583  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6584  symxfrm="\\1 $ac_symprfx\\2 \\2"
6585
6586  # Write the raw and C identifiers.
6587  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6588    # Fake it for dumpbin and say T for any non-static function,
6589    # D for any global variable and I for any imported variable.
6590    # Also find C++ and __fastcall symbols from MSVC++,
6591    # which start with @ or ?.
6592    lt_cv_sys_global_symbol_pipe="$AWK '"\
6593"     {last_section=section; section=\$ 3};"\
6594"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6595"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6596"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6597"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6598"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6599"     \$ 0!~/External *\|/{next};"\
6600"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6601"     {if(hide[section]) next};"\
6602"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6603"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6604"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6605"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6606"     ' prfx=^$ac_symprfx"
6607  else
6608    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6609  fi
6610  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6611
6612  # Check to see that the pipe works correctly.
6613  pipe_works=no
6614
6615  rm -f conftest*
6616  cat > conftest.$ac_ext <<_LT_EOF
6617#ifdef __cplusplus
6618extern "C" {
6619#endif
6620char nm_test_var;
6621void nm_test_func(void);
6622void nm_test_func(void){}
6623#ifdef __cplusplus
6624}
6625#endif
6626int main(){nm_test_var='a';nm_test_func();return(0);}
6627_LT_EOF
6628
6629  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6630  (eval $ac_compile) 2>&5
6631  ac_status=$?
6632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6633  test $ac_status = 0; }; then
6634    # Now try to grab the symbols.
6635    nlist=conftest.nm
6636    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6637  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6638  ac_status=$?
6639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6640  test $ac_status = 0; } && test -s "$nlist"; then
6641      # Try sorting and uniquifying the output.
6642      if sort "$nlist" | uniq > "$nlist"T; then
6643	mv -f "$nlist"T "$nlist"
6644      else
6645	rm -f "$nlist"T
6646      fi
6647
6648      # Make sure that we snagged all the symbols we need.
6649      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6650	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6651	  cat <<_LT_EOF > conftest.$ac_ext
6652/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6653#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6654/* DATA imports from DLLs on WIN32 can't be const, because runtime
6655   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6656# define LT_DLSYM_CONST
6657#elif defined __osf__
6658/* This system does not cope well with relocations in const data.  */
6659# define LT_DLSYM_CONST
6660#else
6661# define LT_DLSYM_CONST const
6662#endif
6663
6664#ifdef __cplusplus
6665extern "C" {
6666#endif
6667
6668_LT_EOF
6669	  # Now generate the symbol file.
6670	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6671
6672	  cat <<_LT_EOF >> conftest.$ac_ext
6673
6674/* The mapping between symbol names and symbols.  */
6675LT_DLSYM_CONST struct {
6676  const char *name;
6677  void       *address;
6678}
6679lt__PROGRAM__LTX_preloaded_symbols[] =
6680{
6681  { "@PROGRAM@", (void *) 0 },
6682_LT_EOF
6683	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6684	  cat <<\_LT_EOF >> conftest.$ac_ext
6685  {0, (void *) 0}
6686};
6687
6688/* This works around a problem in FreeBSD linker */
6689#ifdef FREEBSD_WORKAROUND
6690static const void *lt_preloaded_setup() {
6691  return lt__PROGRAM__LTX_preloaded_symbols;
6692}
6693#endif
6694
6695#ifdef __cplusplus
6696}
6697#endif
6698_LT_EOF
6699	  # Now try linking the two files.
6700	  mv conftest.$ac_objext conftstm.$ac_objext
6701	  lt_globsym_save_LIBS=$LIBS
6702	  lt_globsym_save_CFLAGS=$CFLAGS
6703	  LIBS=conftstm.$ac_objext
6704	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6705	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6706  (eval $ac_link) 2>&5
6707  ac_status=$?
6708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6709  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6710	    pipe_works=yes
6711	  fi
6712	  LIBS=$lt_globsym_save_LIBS
6713	  CFLAGS=$lt_globsym_save_CFLAGS
6714	else
6715	  echo "cannot find nm_test_func in $nlist" >&5
6716	fi
6717      else
6718	echo "cannot find nm_test_var in $nlist" >&5
6719      fi
6720    else
6721      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6722    fi
6723  else
6724    echo "$progname: failed program was:" >&5
6725    cat conftest.$ac_ext >&5
6726  fi
6727  rm -rf conftest* conftst*
6728
6729  # Do not use the global_symbol_pipe unless it works.
6730  if test yes = "$pipe_works"; then
6731    break
6732  else
6733    lt_cv_sys_global_symbol_pipe=
6734  fi
6735done
6736
6737fi
6738
6739if test -z "$lt_cv_sys_global_symbol_pipe"; then
6740  lt_cv_sys_global_symbol_to_cdecl=
6741fi
6742if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6744$as_echo "failed" >&6; }
6745else
6746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6747$as_echo "ok" >&6; }
6748fi
6749
6750# Response file support.
6751if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6752  nm_file_list_spec='@'
6753elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6754  nm_file_list_spec='@'
6755fi
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6794$as_echo_n "checking for sysroot... " >&6; }
6795
6796# Check whether --with-sysroot was given.
6797if test "${with_sysroot+set}" = set; then :
6798  withval=$with_sysroot;
6799else
6800  with_sysroot=no
6801fi
6802
6803
6804lt_sysroot=
6805case $with_sysroot in #(
6806 yes)
6807   if test yes = "$GCC"; then
6808     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6809   fi
6810   ;; #(
6811 /*)
6812   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6813   ;; #(
6814 no|'')
6815   ;; #(
6816 *)
6817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6818$as_echo "$with_sysroot" >&6; }
6819   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6820   ;;
6821esac
6822
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6824$as_echo "${lt_sysroot:-no}" >&6; }
6825
6826
6827
6828
6829
6830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6831$as_echo_n "checking for a working dd... " >&6; }
6832if ${ac_cv_path_lt_DD+:} false; then :
6833  $as_echo_n "(cached) " >&6
6834else
6835  printf 0123456789abcdef0123456789abcdef >conftest.i
6836cat conftest.i conftest.i >conftest2.i
6837: ${lt_DD:=$DD}
6838if test -z "$lt_DD"; then
6839  ac_path_lt_DD_found=false
6840  # Loop through the user's path and test for each of PROGNAME-LIST
6841  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842for as_dir in $PATH
6843do
6844  IFS=$as_save_IFS
6845  test -z "$as_dir" && as_dir=.
6846    for ac_prog in dd; do
6847    for ac_exec_ext in '' $ac_executable_extensions; do
6848      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6849      as_fn_executable_p "$ac_path_lt_DD" || continue
6850if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6851  cmp -s conftest.i conftest.out \
6852  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6853fi
6854      $ac_path_lt_DD_found && break 3
6855    done
6856  done
6857  done
6858IFS=$as_save_IFS
6859  if test -z "$ac_cv_path_lt_DD"; then
6860    :
6861  fi
6862else
6863  ac_cv_path_lt_DD=$lt_DD
6864fi
6865
6866rm -f conftest.i conftest2.i conftest.out
6867fi
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6869$as_echo "$ac_cv_path_lt_DD" >&6; }
6870
6871
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6873$as_echo_n "checking how to truncate binary pipes... " >&6; }
6874if ${lt_cv_truncate_bin+:} false; then :
6875  $as_echo_n "(cached) " >&6
6876else
6877  printf 0123456789abcdef0123456789abcdef >conftest.i
6878cat conftest.i conftest.i >conftest2.i
6879lt_cv_truncate_bin=
6880if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6881  cmp -s conftest.i conftest.out \
6882  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6883fi
6884rm -f conftest.i conftest2.i conftest.out
6885test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6886fi
6887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6888$as_echo "$lt_cv_truncate_bin" >&6; }
6889
6890
6891
6892
6893
6894
6895
6896# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6897func_cc_basename ()
6898{
6899    for cc_temp in $*""; do
6900      case $cc_temp in
6901        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6902        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6903        \-*) ;;
6904        *) break;;
6905      esac
6906    done
6907    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6908}
6909
6910# Check whether --enable-libtool-lock was given.
6911if test "${enable_libtool_lock+set}" = set; then :
6912  enableval=$enable_libtool_lock;
6913fi
6914
6915test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6916
6917# Some flags need to be propagated to the compiler or linker for good
6918# libtool support.
6919case $host in
6920ia64-*-hpux*)
6921  # Find out what ABI is being produced by ac_compile, and set mode
6922  # options accordingly.
6923  echo 'int i;' > conftest.$ac_ext
6924  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6925  (eval $ac_compile) 2>&5
6926  ac_status=$?
6927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6928  test $ac_status = 0; }; then
6929    case `/usr/bin/file conftest.$ac_objext` in
6930      *ELF-32*)
6931	HPUX_IA64_MODE=32
6932	;;
6933      *ELF-64*)
6934	HPUX_IA64_MODE=64
6935	;;
6936    esac
6937  fi
6938  rm -rf conftest*
6939  ;;
6940*-*-irix6*)
6941  # Find out what ABI is being produced by ac_compile, and set linker
6942  # options accordingly.
6943  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6944  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6945  (eval $ac_compile) 2>&5
6946  ac_status=$?
6947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6948  test $ac_status = 0; }; then
6949    if test yes = "$lt_cv_prog_gnu_ld"; then
6950      case `/usr/bin/file conftest.$ac_objext` in
6951	*32-bit*)
6952	  LD="${LD-ld} -melf32bsmip"
6953	  ;;
6954	*N32*)
6955	  LD="${LD-ld} -melf32bmipn32"
6956	  ;;
6957	*64-bit*)
6958	  LD="${LD-ld} -melf64bmip"
6959	;;
6960      esac
6961    else
6962      case `/usr/bin/file conftest.$ac_objext` in
6963	*32-bit*)
6964	  LD="${LD-ld} -32"
6965	  ;;
6966	*N32*)
6967	  LD="${LD-ld} -n32"
6968	  ;;
6969	*64-bit*)
6970	  LD="${LD-ld} -64"
6971	  ;;
6972      esac
6973    fi
6974  fi
6975  rm -rf conftest*
6976  ;;
6977
6978mips64*-*linux*)
6979  # Find out what ABI is being produced by ac_compile, and set linker
6980  # options accordingly.
6981  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6982  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6983  (eval $ac_compile) 2>&5
6984  ac_status=$?
6985  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6986  test $ac_status = 0; }; then
6987    emul=elf
6988    case `/usr/bin/file conftest.$ac_objext` in
6989      *32-bit*)
6990	emul="${emul}32"
6991	;;
6992      *64-bit*)
6993	emul="${emul}64"
6994	;;
6995    esac
6996    case `/usr/bin/file conftest.$ac_objext` in
6997      *MSB*)
6998	emul="${emul}btsmip"
6999	;;
7000      *LSB*)
7001	emul="${emul}ltsmip"
7002	;;
7003    esac
7004    case `/usr/bin/file conftest.$ac_objext` in
7005      *N32*)
7006	emul="${emul}n32"
7007	;;
7008    esac
7009    LD="${LD-ld} -m $emul"
7010  fi
7011  rm -rf conftest*
7012  ;;
7013
7014x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7015s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7016  # Find out what ABI is being produced by ac_compile, and set linker
7017  # options accordingly.  Note that the listed cases only cover the
7018  # situations where additional linker options are needed (such as when
7019  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7020  # vice versa); the common cases where no linker options are needed do
7021  # not appear in the list.
7022  echo 'int i;' > conftest.$ac_ext
7023  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7024  (eval $ac_compile) 2>&5
7025  ac_status=$?
7026  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7027  test $ac_status = 0; }; then
7028    case `/usr/bin/file conftest.o` in
7029      *32-bit*)
7030	case $host in
7031	  x86_64-*kfreebsd*-gnu)
7032	    LD="${LD-ld} -m elf_i386_fbsd"
7033	    ;;
7034	  x86_64-*linux*)
7035	    case `/usr/bin/file conftest.o` in
7036	      *x86-64*)
7037		LD="${LD-ld} -m elf32_x86_64"
7038		;;
7039	      *)
7040		LD="${LD-ld} -m elf_i386"
7041		;;
7042	    esac
7043	    ;;
7044	  powerpc64le-*linux*)
7045	    LD="${LD-ld} -m elf32lppclinux"
7046	    ;;
7047	  powerpc64-*linux*)
7048	    LD="${LD-ld} -m elf32ppclinux"
7049	    ;;
7050	  s390x-*linux*)
7051	    LD="${LD-ld} -m elf_s390"
7052	    ;;
7053	  sparc64-*linux*)
7054	    LD="${LD-ld} -m elf32_sparc"
7055	    ;;
7056	esac
7057	;;
7058      *64-bit*)
7059	case $host in
7060	  x86_64-*kfreebsd*-gnu)
7061	    LD="${LD-ld} -m elf_x86_64_fbsd"
7062	    ;;
7063	  x86_64-*linux*)
7064	    LD="${LD-ld} -m elf_x86_64"
7065	    ;;
7066	  powerpcle-*linux*)
7067	    LD="${LD-ld} -m elf64lppc"
7068	    ;;
7069	  powerpc-*linux*)
7070	    LD="${LD-ld} -m elf64ppc"
7071	    ;;
7072	  s390*-*linux*|s390*-*tpf*)
7073	    LD="${LD-ld} -m elf64_s390"
7074	    ;;
7075	  sparc*-*linux*)
7076	    LD="${LD-ld} -m elf64_sparc"
7077	    ;;
7078	esac
7079	;;
7080    esac
7081  fi
7082  rm -rf conftest*
7083  ;;
7084
7085*-*-sco3.2v5*)
7086  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7087  SAVE_CFLAGS=$CFLAGS
7088  CFLAGS="$CFLAGS -belf"
7089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7090$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7091if ${lt_cv_cc_needs_belf+:} false; then :
7092  $as_echo_n "(cached) " >&6
7093else
7094  ac_ext=c
7095ac_cpp='$CPP $CPPFLAGS'
7096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7098ac_compiler_gnu=$ac_cv_c_compiler_gnu
7099
7100     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101/* end confdefs.h.  */
7102
7103int
7104main ()
7105{
7106
7107  ;
7108  return 0;
7109}
7110_ACEOF
7111if ac_fn_c_try_link "$LINENO"; then :
7112  lt_cv_cc_needs_belf=yes
7113else
7114  lt_cv_cc_needs_belf=no
7115fi
7116rm -f core conftest.err conftest.$ac_objext \
7117    conftest$ac_exeext conftest.$ac_ext
7118     ac_ext=c
7119ac_cpp='$CPP $CPPFLAGS'
7120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7122ac_compiler_gnu=$ac_cv_c_compiler_gnu
7123
7124fi
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7126$as_echo "$lt_cv_cc_needs_belf" >&6; }
7127  if test yes != "$lt_cv_cc_needs_belf"; then
7128    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7129    CFLAGS=$SAVE_CFLAGS
7130  fi
7131  ;;
7132*-*solaris*)
7133  # Find out what ABI is being produced by ac_compile, and set linker
7134  # options accordingly.
7135  echo 'int i;' > conftest.$ac_ext
7136  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7137  (eval $ac_compile) 2>&5
7138  ac_status=$?
7139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7140  test $ac_status = 0; }; then
7141    case `/usr/bin/file conftest.o` in
7142    *64-bit*)
7143      case $lt_cv_prog_gnu_ld in
7144      yes*)
7145        case $host in
7146        i?86-*-solaris*|x86_64-*-solaris*)
7147          LD="${LD-ld} -m elf_x86_64"
7148          ;;
7149        sparc*-*-solaris*)
7150          LD="${LD-ld} -m elf64_sparc"
7151          ;;
7152        esac
7153        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7154        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7155          LD=${LD-ld}_sol2
7156        fi
7157        ;;
7158      *)
7159	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7160	  LD="${LD-ld} -64"
7161	fi
7162	;;
7163      esac
7164      ;;
7165    esac
7166  fi
7167  rm -rf conftest*
7168  ;;
7169esac
7170
7171need_locks=$enable_libtool_lock
7172
7173if test -n "$ac_tool_prefix"; then
7174  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7175set dummy ${ac_tool_prefix}mt; ac_word=$2
7176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177$as_echo_n "checking for $ac_word... " >&6; }
7178if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7179  $as_echo_n "(cached) " >&6
7180else
7181  if test -n "$MANIFEST_TOOL"; then
7182  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7183else
7184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185for as_dir in $PATH
7186do
7187  IFS=$as_save_IFS
7188  test -z "$as_dir" && as_dir=.
7189    for ac_exec_ext in '' $ac_executable_extensions; do
7190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7191    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193    break 2
7194  fi
7195done
7196  done
7197IFS=$as_save_IFS
7198
7199fi
7200fi
7201MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7202if test -n "$MANIFEST_TOOL"; then
7203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7204$as_echo "$MANIFEST_TOOL" >&6; }
7205else
7206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207$as_echo "no" >&6; }
7208fi
7209
7210
7211fi
7212if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7213  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7214  # Extract the first word of "mt", so it can be a program name with args.
7215set dummy mt; ac_word=$2
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7217$as_echo_n "checking for $ac_word... " >&6; }
7218if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7219  $as_echo_n "(cached) " >&6
7220else
7221  if test -n "$ac_ct_MANIFEST_TOOL"; then
7222  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7223else
7224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225for as_dir in $PATH
7226do
7227  IFS=$as_save_IFS
7228  test -z "$as_dir" && as_dir=.
7229    for ac_exec_ext in '' $ac_executable_extensions; do
7230  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7231    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233    break 2
7234  fi
7235done
7236  done
7237IFS=$as_save_IFS
7238
7239fi
7240fi
7241ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7242if test -n "$ac_ct_MANIFEST_TOOL"; then
7243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7244$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7245else
7246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247$as_echo "no" >&6; }
7248fi
7249
7250  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7251    MANIFEST_TOOL=":"
7252  else
7253    case $cross_compiling:$ac_tool_warned in
7254yes:)
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7257ac_tool_warned=yes ;;
7258esac
7259    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7260  fi
7261else
7262  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7263fi
7264
7265test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7267$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7268if ${lt_cv_path_mainfest_tool+:} false; then :
7269  $as_echo_n "(cached) " >&6
7270else
7271  lt_cv_path_mainfest_tool=no
7272  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7273  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7274  cat conftest.err >&5
7275  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7276    lt_cv_path_mainfest_tool=yes
7277  fi
7278  rm -f conftest*
7279fi
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7281$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7282if test yes != "$lt_cv_path_mainfest_tool"; then
7283  MANIFEST_TOOL=:
7284fi
7285
7286
7287
7288
7289
7290
7291  case $host_os in
7292    rhapsody* | darwin*)
7293    if test -n "$ac_tool_prefix"; then
7294  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7295set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297$as_echo_n "checking for $ac_word... " >&6; }
7298if ${ac_cv_prog_DSYMUTIL+:} false; then :
7299  $as_echo_n "(cached) " >&6
7300else
7301  if test -n "$DSYMUTIL"; then
7302  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7303else
7304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305for as_dir in $PATH
7306do
7307  IFS=$as_save_IFS
7308  test -z "$as_dir" && as_dir=.
7309    for ac_exec_ext in '' $ac_executable_extensions; do
7310  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313    break 2
7314  fi
7315done
7316  done
7317IFS=$as_save_IFS
7318
7319fi
7320fi
7321DSYMUTIL=$ac_cv_prog_DSYMUTIL
7322if test -n "$DSYMUTIL"; then
7323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7324$as_echo "$DSYMUTIL" >&6; }
7325else
7326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327$as_echo "no" >&6; }
7328fi
7329
7330
7331fi
7332if test -z "$ac_cv_prog_DSYMUTIL"; then
7333  ac_ct_DSYMUTIL=$DSYMUTIL
7334  # Extract the first word of "dsymutil", so it can be a program name with args.
7335set dummy dsymutil; ac_word=$2
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337$as_echo_n "checking for $ac_word... " >&6; }
7338if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7339  $as_echo_n "(cached) " >&6
7340else
7341  if test -n "$ac_ct_DSYMUTIL"; then
7342  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7343else
7344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347  IFS=$as_save_IFS
7348  test -z "$as_dir" && as_dir=.
7349    for ac_exec_ext in '' $ac_executable_extensions; do
7350  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353    break 2
7354  fi
7355done
7356  done
7357IFS=$as_save_IFS
7358
7359fi
7360fi
7361ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7362if test -n "$ac_ct_DSYMUTIL"; then
7363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7364$as_echo "$ac_ct_DSYMUTIL" >&6; }
7365else
7366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367$as_echo "no" >&6; }
7368fi
7369
7370  if test "x$ac_ct_DSYMUTIL" = x; then
7371    DSYMUTIL=":"
7372  else
7373    case $cross_compiling:$ac_tool_warned in
7374yes:)
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377ac_tool_warned=yes ;;
7378esac
7379    DSYMUTIL=$ac_ct_DSYMUTIL
7380  fi
7381else
7382  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7383fi
7384
7385    if test -n "$ac_tool_prefix"; then
7386  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7387set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389$as_echo_n "checking for $ac_word... " >&6; }
7390if ${ac_cv_prog_NMEDIT+:} false; then :
7391  $as_echo_n "(cached) " >&6
7392else
7393  if test -n "$NMEDIT"; then
7394  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7395else
7396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397for as_dir in $PATH
7398do
7399  IFS=$as_save_IFS
7400  test -z "$as_dir" && as_dir=.
7401    for ac_exec_ext in '' $ac_executable_extensions; do
7402  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7404    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405    break 2
7406  fi
7407done
7408  done
7409IFS=$as_save_IFS
7410
7411fi
7412fi
7413NMEDIT=$ac_cv_prog_NMEDIT
7414if test -n "$NMEDIT"; then
7415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7416$as_echo "$NMEDIT" >&6; }
7417else
7418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419$as_echo "no" >&6; }
7420fi
7421
7422
7423fi
7424if test -z "$ac_cv_prog_NMEDIT"; then
7425  ac_ct_NMEDIT=$NMEDIT
7426  # Extract the first word of "nmedit", so it can be a program name with args.
7427set dummy nmedit; ac_word=$2
7428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429$as_echo_n "checking for $ac_word... " >&6; }
7430if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7431  $as_echo_n "(cached) " >&6
7432else
7433  if test -n "$ac_ct_NMEDIT"; then
7434  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7435else
7436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437for as_dir in $PATH
7438do
7439  IFS=$as_save_IFS
7440  test -z "$as_dir" && as_dir=.
7441    for ac_exec_ext in '' $ac_executable_extensions; do
7442  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7443    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7444    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445    break 2
7446  fi
7447done
7448  done
7449IFS=$as_save_IFS
7450
7451fi
7452fi
7453ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7454if test -n "$ac_ct_NMEDIT"; then
7455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7456$as_echo "$ac_ct_NMEDIT" >&6; }
7457else
7458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459$as_echo "no" >&6; }
7460fi
7461
7462  if test "x$ac_ct_NMEDIT" = x; then
7463    NMEDIT=":"
7464  else
7465    case $cross_compiling:$ac_tool_warned in
7466yes:)
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7469ac_tool_warned=yes ;;
7470esac
7471    NMEDIT=$ac_ct_NMEDIT
7472  fi
7473else
7474  NMEDIT="$ac_cv_prog_NMEDIT"
7475fi
7476
7477    if test -n "$ac_tool_prefix"; then
7478  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7479set dummy ${ac_tool_prefix}lipo; ac_word=$2
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481$as_echo_n "checking for $ac_word... " >&6; }
7482if ${ac_cv_prog_LIPO+:} false; then :
7483  $as_echo_n "(cached) " >&6
7484else
7485  if test -n "$LIPO"; then
7486  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7487else
7488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489for as_dir in $PATH
7490do
7491  IFS=$as_save_IFS
7492  test -z "$as_dir" && as_dir=.
7493    for ac_exec_ext in '' $ac_executable_extensions; do
7494  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497    break 2
7498  fi
7499done
7500  done
7501IFS=$as_save_IFS
7502
7503fi
7504fi
7505LIPO=$ac_cv_prog_LIPO
7506if test -n "$LIPO"; then
7507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7508$as_echo "$LIPO" >&6; }
7509else
7510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511$as_echo "no" >&6; }
7512fi
7513
7514
7515fi
7516if test -z "$ac_cv_prog_LIPO"; then
7517  ac_ct_LIPO=$LIPO
7518  # Extract the first word of "lipo", so it can be a program name with args.
7519set dummy lipo; ac_word=$2
7520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7521$as_echo_n "checking for $ac_word... " >&6; }
7522if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7523  $as_echo_n "(cached) " >&6
7524else
7525  if test -n "$ac_ct_LIPO"; then
7526  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7527else
7528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529for as_dir in $PATH
7530do
7531  IFS=$as_save_IFS
7532  test -z "$as_dir" && as_dir=.
7533    for ac_exec_ext in '' $ac_executable_extensions; do
7534  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7535    ac_cv_prog_ac_ct_LIPO="lipo"
7536    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7537    break 2
7538  fi
7539done
7540  done
7541IFS=$as_save_IFS
7542
7543fi
7544fi
7545ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7546if test -n "$ac_ct_LIPO"; then
7547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7548$as_echo "$ac_ct_LIPO" >&6; }
7549else
7550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551$as_echo "no" >&6; }
7552fi
7553
7554  if test "x$ac_ct_LIPO" = x; then
7555    LIPO=":"
7556  else
7557    case $cross_compiling:$ac_tool_warned in
7558yes:)
7559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7561ac_tool_warned=yes ;;
7562esac
7563    LIPO=$ac_ct_LIPO
7564  fi
7565else
7566  LIPO="$ac_cv_prog_LIPO"
7567fi
7568
7569    if test -n "$ac_tool_prefix"; then
7570  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7571set dummy ${ac_tool_prefix}otool; ac_word=$2
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573$as_echo_n "checking for $ac_word... " >&6; }
7574if ${ac_cv_prog_OTOOL+:} false; then :
7575  $as_echo_n "(cached) " >&6
7576else
7577  if test -n "$OTOOL"; then
7578  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7579else
7580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581for as_dir in $PATH
7582do
7583  IFS=$as_save_IFS
7584  test -z "$as_dir" && as_dir=.
7585    for ac_exec_ext in '' $ac_executable_extensions; do
7586  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7587    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589    break 2
7590  fi
7591done
7592  done
7593IFS=$as_save_IFS
7594
7595fi
7596fi
7597OTOOL=$ac_cv_prog_OTOOL
7598if test -n "$OTOOL"; then
7599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7600$as_echo "$OTOOL" >&6; }
7601else
7602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603$as_echo "no" >&6; }
7604fi
7605
7606
7607fi
7608if test -z "$ac_cv_prog_OTOOL"; then
7609  ac_ct_OTOOL=$OTOOL
7610  # Extract the first word of "otool", so it can be a program name with args.
7611set dummy otool; ac_word=$2
7612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613$as_echo_n "checking for $ac_word... " >&6; }
7614if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7615  $as_echo_n "(cached) " >&6
7616else
7617  if test -n "$ac_ct_OTOOL"; then
7618  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7619else
7620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621for as_dir in $PATH
7622do
7623  IFS=$as_save_IFS
7624  test -z "$as_dir" && as_dir=.
7625    for ac_exec_ext in '' $ac_executable_extensions; do
7626  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627    ac_cv_prog_ac_ct_OTOOL="otool"
7628    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629    break 2
7630  fi
7631done
7632  done
7633IFS=$as_save_IFS
7634
7635fi
7636fi
7637ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7638if test -n "$ac_ct_OTOOL"; then
7639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7640$as_echo "$ac_ct_OTOOL" >&6; }
7641else
7642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643$as_echo "no" >&6; }
7644fi
7645
7646  if test "x$ac_ct_OTOOL" = x; then
7647    OTOOL=":"
7648  else
7649    case $cross_compiling:$ac_tool_warned in
7650yes:)
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7652$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7653ac_tool_warned=yes ;;
7654esac
7655    OTOOL=$ac_ct_OTOOL
7656  fi
7657else
7658  OTOOL="$ac_cv_prog_OTOOL"
7659fi
7660
7661    if test -n "$ac_tool_prefix"; then
7662  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7663set dummy ${ac_tool_prefix}otool64; ac_word=$2
7664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665$as_echo_n "checking for $ac_word... " >&6; }
7666if ${ac_cv_prog_OTOOL64+:} false; then :
7667  $as_echo_n "(cached) " >&6
7668else
7669  if test -n "$OTOOL64"; then
7670  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7671else
7672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673for as_dir in $PATH
7674do
7675  IFS=$as_save_IFS
7676  test -z "$as_dir" && as_dir=.
7677    for ac_exec_ext in '' $ac_executable_extensions; do
7678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7679    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681    break 2
7682  fi
7683done
7684  done
7685IFS=$as_save_IFS
7686
7687fi
7688fi
7689OTOOL64=$ac_cv_prog_OTOOL64
7690if test -n "$OTOOL64"; then
7691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7692$as_echo "$OTOOL64" >&6; }
7693else
7694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695$as_echo "no" >&6; }
7696fi
7697
7698
7699fi
7700if test -z "$ac_cv_prog_OTOOL64"; then
7701  ac_ct_OTOOL64=$OTOOL64
7702  # Extract the first word of "otool64", so it can be a program name with args.
7703set dummy otool64; ac_word=$2
7704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705$as_echo_n "checking for $ac_word... " >&6; }
7706if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7707  $as_echo_n "(cached) " >&6
7708else
7709  if test -n "$ac_ct_OTOOL64"; then
7710  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7711else
7712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713for as_dir in $PATH
7714do
7715  IFS=$as_save_IFS
7716  test -z "$as_dir" && as_dir=.
7717    for ac_exec_ext in '' $ac_executable_extensions; do
7718  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7719    ac_cv_prog_ac_ct_OTOOL64="otool64"
7720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7721    break 2
7722  fi
7723done
7724  done
7725IFS=$as_save_IFS
7726
7727fi
7728fi
7729ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7730if test -n "$ac_ct_OTOOL64"; then
7731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7732$as_echo "$ac_ct_OTOOL64" >&6; }
7733else
7734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735$as_echo "no" >&6; }
7736fi
7737
7738  if test "x$ac_ct_OTOOL64" = x; then
7739    OTOOL64=":"
7740  else
7741    case $cross_compiling:$ac_tool_warned in
7742yes:)
7743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7745ac_tool_warned=yes ;;
7746esac
7747    OTOOL64=$ac_ct_OTOOL64
7748  fi
7749else
7750  OTOOL64="$ac_cv_prog_OTOOL64"
7751fi
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7780$as_echo_n "checking for -single_module linker flag... " >&6; }
7781if ${lt_cv_apple_cc_single_mod+:} false; then :
7782  $as_echo_n "(cached) " >&6
7783else
7784  lt_cv_apple_cc_single_mod=no
7785      if test -z "$LT_MULTI_MODULE"; then
7786	# By default we will add the -single_module flag. You can override
7787	# by either setting the environment variable LT_MULTI_MODULE
7788	# non-empty at configure time, or by adding -multi_module to the
7789	# link flags.
7790	rm -rf libconftest.dylib*
7791	echo "int foo(void){return 1;}" > conftest.c
7792	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7793-dynamiclib -Wl,-single_module conftest.c" >&5
7794	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7795	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7796        _lt_result=$?
7797	# If there is a non-empty error log, and "single_module"
7798	# appears in it, assume the flag caused a linker warning
7799        if test -s conftest.err && $GREP single_module conftest.err; then
7800	  cat conftest.err >&5
7801	# Otherwise, if the output was created with a 0 exit code from
7802	# the compiler, it worked.
7803	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7804	  lt_cv_apple_cc_single_mod=yes
7805	else
7806	  cat conftest.err >&5
7807	fi
7808	rm -rf libconftest.dylib*
7809	rm -f conftest.*
7810      fi
7811fi
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7813$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7814
7815    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7816$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7817if ${lt_cv_ld_exported_symbols_list+:} false; then :
7818  $as_echo_n "(cached) " >&6
7819else
7820  lt_cv_ld_exported_symbols_list=no
7821      save_LDFLAGS=$LDFLAGS
7822      echo "_main" > conftest.sym
7823      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7824      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825/* end confdefs.h.  */
7826
7827int
7828main ()
7829{
7830
7831  ;
7832  return 0;
7833}
7834_ACEOF
7835if ac_fn_c_try_link "$LINENO"; then :
7836  lt_cv_ld_exported_symbols_list=yes
7837else
7838  lt_cv_ld_exported_symbols_list=no
7839fi
7840rm -f core conftest.err conftest.$ac_objext \
7841    conftest$ac_exeext conftest.$ac_ext
7842	LDFLAGS=$save_LDFLAGS
7843
7844fi
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7846$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7847
7848    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7849$as_echo_n "checking for -force_load linker flag... " >&6; }
7850if ${lt_cv_ld_force_load+:} false; then :
7851  $as_echo_n "(cached) " >&6
7852else
7853  lt_cv_ld_force_load=no
7854      cat > conftest.c << _LT_EOF
7855int forced_loaded() { return 2;}
7856_LT_EOF
7857      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7858      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7859      echo "$AR cru libconftest.a conftest.o" >&5
7860      $AR cru libconftest.a conftest.o 2>&5
7861      echo "$RANLIB libconftest.a" >&5
7862      $RANLIB libconftest.a 2>&5
7863      cat > conftest.c << _LT_EOF
7864int main() { return 0;}
7865_LT_EOF
7866      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7867      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7868      _lt_result=$?
7869      if test -s conftest.err && $GREP force_load conftest.err; then
7870	cat conftest.err >&5
7871      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7872	lt_cv_ld_force_load=yes
7873      else
7874	cat conftest.err >&5
7875      fi
7876        rm -f conftest.err libconftest.a conftest conftest.c
7877        rm -rf conftest.dSYM
7878
7879fi
7880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7881$as_echo "$lt_cv_ld_force_load" >&6; }
7882    case $host_os in
7883    rhapsody* | darwin1.[012])
7884      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7885    darwin1.*)
7886      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7887    darwin*) # darwin 5.x on
7888      # if running on 10.5 or later, the deployment target defaults
7889      # to the OS version, if on x86, and 10.4, the deployment
7890      # target defaults to 10.4. Don't you love it?
7891      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7892	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7893	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7894	10.[012][,.]*)
7895	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7896	10.*)
7897	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7898      esac
7899    ;;
7900  esac
7901    if test yes = "$lt_cv_apple_cc_single_mod"; then
7902      _lt_dar_single_mod='$single_module'
7903    fi
7904    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7905      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7906    else
7907      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7908    fi
7909    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7910      _lt_dsymutil='~$DSYMUTIL $lib || :'
7911    else
7912      _lt_dsymutil=
7913    fi
7914    ;;
7915  esac
7916
7917# func_munge_path_list VARIABLE PATH
7918# -----------------------------------
7919# VARIABLE is name of variable containing _space_ separated list of
7920# directories to be munged by the contents of PATH, which is string
7921# having a format:
7922# "DIR[:DIR]:"
7923#       string "DIR[ DIR]" will be prepended to VARIABLE
7924# ":DIR[:DIR]"
7925#       string "DIR[ DIR]" will be appended to VARIABLE
7926# "DIRP[:DIRP]::[DIRA:]DIRA"
7927#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7928#       "DIRA[ DIRA]" will be appended to VARIABLE
7929# "DIR[:DIR]"
7930#       VARIABLE will be replaced by "DIR[ DIR]"
7931func_munge_path_list ()
7932{
7933    case x$2 in
7934    x)
7935        ;;
7936    *:)
7937        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7938        ;;
7939    x:*)
7940        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7941        ;;
7942    *::*)
7943        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7944        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7945        ;;
7946    *)
7947        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7948        ;;
7949    esac
7950}
7951
7952ac_ext=c
7953ac_cpp='$CPP $CPPFLAGS'
7954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7956ac_compiler_gnu=$ac_cv_c_compiler_gnu
7957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7958$as_echo_n "checking how to run the C preprocessor... " >&6; }
7959# On Suns, sometimes $CPP names a directory.
7960if test -n "$CPP" && test -d "$CPP"; then
7961  CPP=
7962fi
7963if test -z "$CPP"; then
7964  if ${ac_cv_prog_CPP+:} false; then :
7965  $as_echo_n "(cached) " >&6
7966else
7967      # Double quotes because CPP needs to be expanded
7968    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7969    do
7970      ac_preproc_ok=false
7971for ac_c_preproc_warn_flag in '' yes
7972do
7973  # Use a header file that comes with gcc, so configuring glibc
7974  # with a fresh cross-compiler works.
7975  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7976  # <limits.h> exists even on freestanding compilers.
7977  # On the NeXT, cc -E runs the code through the compiler's parser,
7978  # not just through cpp. "Syntax error" is here to catch this case.
7979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980/* end confdefs.h.  */
7981#ifdef __STDC__
7982# include <limits.h>
7983#else
7984# include <assert.h>
7985#endif
7986		     Syntax error
7987_ACEOF
7988if ac_fn_c_try_cpp "$LINENO"; then :
7989
7990else
7991  # Broken: fails on valid input.
7992continue
7993fi
7994rm -f conftest.err conftest.i conftest.$ac_ext
7995
7996  # OK, works on sane cases.  Now check whether nonexistent headers
7997  # can be detected and how.
7998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999/* end confdefs.h.  */
8000#include <ac_nonexistent.h>
8001_ACEOF
8002if ac_fn_c_try_cpp "$LINENO"; then :
8003  # Broken: success on invalid input.
8004continue
8005else
8006  # Passes both tests.
8007ac_preproc_ok=:
8008break
8009fi
8010rm -f conftest.err conftest.i conftest.$ac_ext
8011
8012done
8013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8014rm -f conftest.i conftest.err conftest.$ac_ext
8015if $ac_preproc_ok; then :
8016  break
8017fi
8018
8019    done
8020    ac_cv_prog_CPP=$CPP
8021
8022fi
8023  CPP=$ac_cv_prog_CPP
8024else
8025  ac_cv_prog_CPP=$CPP
8026fi
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8028$as_echo "$CPP" >&6; }
8029ac_preproc_ok=false
8030for ac_c_preproc_warn_flag in '' yes
8031do
8032  # Use a header file that comes with gcc, so configuring glibc
8033  # with a fresh cross-compiler works.
8034  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8035  # <limits.h> exists even on freestanding compilers.
8036  # On the NeXT, cc -E runs the code through the compiler's parser,
8037  # not just through cpp. "Syntax error" is here to catch this case.
8038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039/* end confdefs.h.  */
8040#ifdef __STDC__
8041# include <limits.h>
8042#else
8043# include <assert.h>
8044#endif
8045		     Syntax error
8046_ACEOF
8047if ac_fn_c_try_cpp "$LINENO"; then :
8048
8049else
8050  # Broken: fails on valid input.
8051continue
8052fi
8053rm -f conftest.err conftest.i conftest.$ac_ext
8054
8055  # OK, works on sane cases.  Now check whether nonexistent headers
8056  # can be detected and how.
8057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058/* end confdefs.h.  */
8059#include <ac_nonexistent.h>
8060_ACEOF
8061if ac_fn_c_try_cpp "$LINENO"; then :
8062  # Broken: success on invalid input.
8063continue
8064else
8065  # Passes both tests.
8066ac_preproc_ok=:
8067break
8068fi
8069rm -f conftest.err conftest.i conftest.$ac_ext
8070
8071done
8072# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8073rm -f conftest.i conftest.err conftest.$ac_ext
8074if $ac_preproc_ok; then :
8075
8076else
8077  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8079as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8080See \`config.log' for more details" "$LINENO" 5; }
8081fi
8082
8083ac_ext=c
8084ac_cpp='$CPP $CPPFLAGS'
8085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8087ac_compiler_gnu=$ac_cv_c_compiler_gnu
8088
8089
8090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8091$as_echo_n "checking for ANSI C header files... " >&6; }
8092if ${ac_cv_header_stdc+:} false; then :
8093  $as_echo_n "(cached) " >&6
8094else
8095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096/* end confdefs.h.  */
8097#include <stdlib.h>
8098#include <stdarg.h>
8099#include <string.h>
8100#include <float.h>
8101
8102int
8103main ()
8104{
8105
8106  ;
8107  return 0;
8108}
8109_ACEOF
8110if ac_fn_c_try_compile "$LINENO"; then :
8111  ac_cv_header_stdc=yes
8112else
8113  ac_cv_header_stdc=no
8114fi
8115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116
8117if test $ac_cv_header_stdc = yes; then
8118  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120/* end confdefs.h.  */
8121#include <string.h>
8122
8123_ACEOF
8124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8125  $EGREP "memchr" >/dev/null 2>&1; then :
8126
8127else
8128  ac_cv_header_stdc=no
8129fi
8130rm -f conftest*
8131
8132fi
8133
8134if test $ac_cv_header_stdc = yes; then
8135  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8137/* end confdefs.h.  */
8138#include <stdlib.h>
8139
8140_ACEOF
8141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8142  $EGREP "free" >/dev/null 2>&1; then :
8143
8144else
8145  ac_cv_header_stdc=no
8146fi
8147rm -f conftest*
8148
8149fi
8150
8151if test $ac_cv_header_stdc = yes; then
8152  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8153  if test "$cross_compiling" = yes; then :
8154  :
8155else
8156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8157/* end confdefs.h.  */
8158#include <ctype.h>
8159#include <stdlib.h>
8160#if ((' ' & 0x0FF) == 0x020)
8161# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8162# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8163#else
8164# define ISLOWER(c) \
8165		   (('a' <= (c) && (c) <= 'i') \
8166		     || ('j' <= (c) && (c) <= 'r') \
8167		     || ('s' <= (c) && (c) <= 'z'))
8168# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8169#endif
8170
8171#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8172int
8173main ()
8174{
8175  int i;
8176  for (i = 0; i < 256; i++)
8177    if (XOR (islower (i), ISLOWER (i))
8178	|| toupper (i) != TOUPPER (i))
8179      return 2;
8180  return 0;
8181}
8182_ACEOF
8183if ac_fn_c_try_run "$LINENO"; then :
8184
8185else
8186  ac_cv_header_stdc=no
8187fi
8188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8189  conftest.$ac_objext conftest.beam conftest.$ac_ext
8190fi
8191
8192fi
8193fi
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8195$as_echo "$ac_cv_header_stdc" >&6; }
8196if test $ac_cv_header_stdc = yes; then
8197
8198$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8199
8200fi
8201
8202# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8203for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8204		  inttypes.h stdint.h unistd.h
8205do :
8206  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8207ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8208"
8209if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8210  cat >>confdefs.h <<_ACEOF
8211#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8212_ACEOF
8213
8214fi
8215
8216done
8217
8218
8219for ac_header in dlfcn.h
8220do :
8221  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8222"
8223if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8224  cat >>confdefs.h <<_ACEOF
8225#define HAVE_DLFCN_H 1
8226_ACEOF
8227
8228fi
8229
8230done
8231
8232
8233
8234
8235
8236# Set options
8237# Check whether --enable-static was given.
8238if test "${enable_static+set}" = set; then :
8239  enableval=$enable_static; p=${PACKAGE-default}
8240    case $enableval in
8241    yes) enable_static=yes ;;
8242    no) enable_static=no ;;
8243    *)
8244     enable_static=no
8245      # Look at the argument we got.  We use all the common list separators.
8246      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8247      for pkg in $enableval; do
8248	IFS=$lt_save_ifs
8249	if test "X$pkg" = "X$p"; then
8250	  enable_static=yes
8251	fi
8252      done
8253      IFS=$lt_save_ifs
8254      ;;
8255    esac
8256else
8257  enable_static=no
8258fi
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269        enable_dlopen=no
8270
8271
8272  enable_win32_dll=no
8273
8274
8275            # Check whether --enable-shared was given.
8276if test "${enable_shared+set}" = set; then :
8277  enableval=$enable_shared; p=${PACKAGE-default}
8278    case $enableval in
8279    yes) enable_shared=yes ;;
8280    no) enable_shared=no ;;
8281    *)
8282      enable_shared=no
8283      # Look at the argument we got.  We use all the common list separators.
8284      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8285      for pkg in $enableval; do
8286	IFS=$lt_save_ifs
8287	if test "X$pkg" = "X$p"; then
8288	  enable_shared=yes
8289	fi
8290      done
8291      IFS=$lt_save_ifs
8292      ;;
8293    esac
8294else
8295  enable_shared=yes
8296fi
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308# Check whether --with-pic was given.
8309if test "${with_pic+set}" = set; then :
8310  withval=$with_pic; lt_p=${PACKAGE-default}
8311    case $withval in
8312    yes|no) pic_mode=$withval ;;
8313    *)
8314      pic_mode=default
8315      # Look at the argument we got.  We use all the common list separators.
8316      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8317      for lt_pkg in $withval; do
8318	IFS=$lt_save_ifs
8319	if test "X$lt_pkg" = "X$lt_p"; then
8320	  pic_mode=yes
8321	fi
8322      done
8323      IFS=$lt_save_ifs
8324      ;;
8325    esac
8326else
8327  pic_mode=default
8328fi
8329
8330
8331
8332
8333
8334
8335
8336
8337  # Check whether --enable-fast-install was given.
8338if test "${enable_fast_install+set}" = set; then :
8339  enableval=$enable_fast_install; p=${PACKAGE-default}
8340    case $enableval in
8341    yes) enable_fast_install=yes ;;
8342    no) enable_fast_install=no ;;
8343    *)
8344      enable_fast_install=no
8345      # Look at the argument we got.  We use all the common list separators.
8346      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8347      for pkg in $enableval; do
8348	IFS=$lt_save_ifs
8349	if test "X$pkg" = "X$p"; then
8350	  enable_fast_install=yes
8351	fi
8352      done
8353      IFS=$lt_save_ifs
8354      ;;
8355    esac
8356else
8357  enable_fast_install=yes
8358fi
8359
8360
8361
8362
8363
8364
8365
8366
8367  shared_archive_member_spec=
8368case $host,$enable_shared in
8369power*-*-aix[5-9]*,yes)
8370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8371$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8372
8373# Check whether --with-aix-soname was given.
8374if test "${with_aix_soname+set}" = set; then :
8375  withval=$with_aix_soname; case $withval in
8376    aix|svr4|both)
8377      ;;
8378    *)
8379      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8380      ;;
8381    esac
8382    lt_cv_with_aix_soname=$with_aix_soname
8383else
8384  if ${lt_cv_with_aix_soname+:} false; then :
8385  $as_echo_n "(cached) " >&6
8386else
8387  lt_cv_with_aix_soname=aix
8388fi
8389
8390    with_aix_soname=$lt_cv_with_aix_soname
8391fi
8392
8393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8394$as_echo "$with_aix_soname" >&6; }
8395  if test aix != "$with_aix_soname"; then
8396    # For the AIX way of multilib, we name the shared archive member
8397    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8398    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8399    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8400    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8401    if test 64 = "${OBJECT_MODE-32}"; then
8402      shared_archive_member_spec=shr_64
8403    else
8404      shared_archive_member_spec=shr
8405    fi
8406  fi
8407  ;;
8408*)
8409  with_aix_soname=aix
8410  ;;
8411esac
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422# This can be used to rebuild libtool when needed
8423LIBTOOL_DEPS=$ltmain
8424
8425# Always use our own libtool.
8426LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457test -z "$LN_S" && LN_S="ln -s"
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472if test -n "${ZSH_VERSION+set}"; then
8473   setopt NO_GLOB_SUBST
8474fi
8475
8476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8477$as_echo_n "checking for objdir... " >&6; }
8478if ${lt_cv_objdir+:} false; then :
8479  $as_echo_n "(cached) " >&6
8480else
8481  rm -f .libs 2>/dev/null
8482mkdir .libs 2>/dev/null
8483if test -d .libs; then
8484  lt_cv_objdir=.libs
8485else
8486  # MS-DOS does not allow filenames that begin with a dot.
8487  lt_cv_objdir=_libs
8488fi
8489rmdir .libs 2>/dev/null
8490fi
8491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8492$as_echo "$lt_cv_objdir" >&6; }
8493objdir=$lt_cv_objdir
8494
8495
8496
8497
8498
8499cat >>confdefs.h <<_ACEOF
8500#define LT_OBJDIR "$lt_cv_objdir/"
8501_ACEOF
8502
8503
8504
8505
8506case $host_os in
8507aix3*)
8508  # AIX sometimes has problems with the GCC collect2 program.  For some
8509  # reason, if we set the COLLECT_NAMES environment variable, the problems
8510  # vanish in a puff of smoke.
8511  if test set != "${COLLECT_NAMES+set}"; then
8512    COLLECT_NAMES=
8513    export COLLECT_NAMES
8514  fi
8515  ;;
8516esac
8517
8518# Global variables:
8519ofile=libtool
8520can_build_shared=yes
8521
8522# All known linkers require a '.a' archive for static linking (except MSVC,
8523# which needs '.lib').
8524libext=a
8525
8526with_gnu_ld=$lt_cv_prog_gnu_ld
8527
8528old_CC=$CC
8529old_CFLAGS=$CFLAGS
8530
8531# Set sane defaults for various variables
8532test -z "$CC" && CC=cc
8533test -z "$LTCC" && LTCC=$CC
8534test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8535test -z "$LD" && LD=ld
8536test -z "$ac_objext" && ac_objext=o
8537
8538func_cc_basename $compiler
8539cc_basename=$func_cc_basename_result
8540
8541
8542# Only perform the check for file, if the check method requires it
8543test -z "$MAGIC_CMD" && MAGIC_CMD=file
8544case $deplibs_check_method in
8545file_magic*)
8546  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8547    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8548$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8549if ${lt_cv_path_MAGIC_CMD+:} false; then :
8550  $as_echo_n "(cached) " >&6
8551else
8552  case $MAGIC_CMD in
8553[\\/*] |  ?:[\\/]*)
8554  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8555  ;;
8556*)
8557  lt_save_MAGIC_CMD=$MAGIC_CMD
8558  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8559  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8560  for ac_dir in $ac_dummy; do
8561    IFS=$lt_save_ifs
8562    test -z "$ac_dir" && ac_dir=.
8563    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8564      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8565      if test -n "$file_magic_test_file"; then
8566	case $deplibs_check_method in
8567	"file_magic "*)
8568	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8569	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8570	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8571	    $EGREP "$file_magic_regex" > /dev/null; then
8572	    :
8573	  else
8574	    cat <<_LT_EOF 1>&2
8575
8576*** Warning: the command libtool uses to detect shared libraries,
8577*** $file_magic_cmd, produces output that libtool cannot recognize.
8578*** The result is that libtool may fail to recognize shared libraries
8579*** as such.  This will affect the creation of libtool libraries that
8580*** depend on shared libraries, but programs linked with such libtool
8581*** libraries will work regardless of this problem.  Nevertheless, you
8582*** may want to report the problem to your system manager and/or to
8583*** [email protected]
8584
8585_LT_EOF
8586	  fi ;;
8587	esac
8588      fi
8589      break
8590    fi
8591  done
8592  IFS=$lt_save_ifs
8593  MAGIC_CMD=$lt_save_MAGIC_CMD
8594  ;;
8595esac
8596fi
8597
8598MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8599if test -n "$MAGIC_CMD"; then
8600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8601$as_echo "$MAGIC_CMD" >&6; }
8602else
8603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604$as_echo "no" >&6; }
8605fi
8606
8607
8608
8609
8610
8611if test -z "$lt_cv_path_MAGIC_CMD"; then
8612  if test -n "$ac_tool_prefix"; then
8613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8614$as_echo_n "checking for file... " >&6; }
8615if ${lt_cv_path_MAGIC_CMD+:} false; then :
8616  $as_echo_n "(cached) " >&6
8617else
8618  case $MAGIC_CMD in
8619[\\/*] |  ?:[\\/]*)
8620  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8621  ;;
8622*)
8623  lt_save_MAGIC_CMD=$MAGIC_CMD
8624  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8625  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8626  for ac_dir in $ac_dummy; do
8627    IFS=$lt_save_ifs
8628    test -z "$ac_dir" && ac_dir=.
8629    if test -f "$ac_dir/file"; then
8630      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8631      if test -n "$file_magic_test_file"; then
8632	case $deplibs_check_method in
8633	"file_magic "*)
8634	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8635	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8636	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8637	    $EGREP "$file_magic_regex" > /dev/null; then
8638	    :
8639	  else
8640	    cat <<_LT_EOF 1>&2
8641
8642*** Warning: the command libtool uses to detect shared libraries,
8643*** $file_magic_cmd, produces output that libtool cannot recognize.
8644*** The result is that libtool may fail to recognize shared libraries
8645*** as such.  This will affect the creation of libtool libraries that
8646*** depend on shared libraries, but programs linked with such libtool
8647*** libraries will work regardless of this problem.  Nevertheless, you
8648*** may want to report the problem to your system manager and/or to
8649*** [email protected]
8650
8651_LT_EOF
8652	  fi ;;
8653	esac
8654      fi
8655      break
8656    fi
8657  done
8658  IFS=$lt_save_ifs
8659  MAGIC_CMD=$lt_save_MAGIC_CMD
8660  ;;
8661esac
8662fi
8663
8664MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8665if test -n "$MAGIC_CMD"; then
8666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8667$as_echo "$MAGIC_CMD" >&6; }
8668else
8669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8670$as_echo "no" >&6; }
8671fi
8672
8673
8674  else
8675    MAGIC_CMD=:
8676  fi
8677fi
8678
8679  fi
8680  ;;
8681esac
8682
8683# Use C for the default configuration in the libtool script
8684
8685lt_save_CC=$CC
8686ac_ext=c
8687ac_cpp='$CPP $CPPFLAGS'
8688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8690ac_compiler_gnu=$ac_cv_c_compiler_gnu
8691
8692
8693# Source file extension for C test sources.
8694ac_ext=c
8695
8696# Object file extension for compiled C test sources.
8697objext=o
8698objext=$objext
8699
8700# Code to be used in simple compile tests
8701lt_simple_compile_test_code="int some_variable = 0;"
8702
8703# Code to be used in simple link tests
8704lt_simple_link_test_code='int main(){return(0);}'
8705
8706
8707
8708
8709
8710
8711
8712# If no C compiler was specified, use CC.
8713LTCC=${LTCC-"$CC"}
8714
8715# If no C compiler flags were specified, use CFLAGS.
8716LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8717
8718# Allow CC to be a program name with arguments.
8719compiler=$CC
8720
8721# Save the default compiler, since it gets overwritten when the other
8722# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8723compiler_DEFAULT=$CC
8724
8725# save warnings/boilerplate of simple test code
8726ac_outfile=conftest.$ac_objext
8727echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8728eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8729_lt_compiler_boilerplate=`cat conftest.err`
8730$RM conftest*
8731
8732ac_outfile=conftest.$ac_objext
8733echo "$lt_simple_link_test_code" >conftest.$ac_ext
8734eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8735_lt_linker_boilerplate=`cat conftest.err`
8736$RM -r conftest*
8737
8738
8739## CAVEAT EMPTOR:
8740## There is no encapsulation within the following macros, do not change
8741## the running order or otherwise move them around unless you know exactly
8742## what you are doing...
8743if test -n "$compiler"; then
8744
8745lt_prog_compiler_no_builtin_flag=
8746
8747if test yes = "$GCC"; then
8748  case $cc_basename in
8749  nvcc*)
8750    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8751  *)
8752    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8753  esac
8754
8755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8756$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8757if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8758  $as_echo_n "(cached) " >&6
8759else
8760  lt_cv_prog_compiler_rtti_exceptions=no
8761   ac_outfile=conftest.$ac_objext
8762   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8763   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8764   # Insert the option either (1) after the last *FLAGS variable, or
8765   # (2) before a word containing "conftest.", or (3) at the end.
8766   # Note that $ac_compile itself does not contain backslashes and begins
8767   # with a dollar sign (not a hyphen), so the echo should work correctly.
8768   # The option is referenced via a variable to avoid confusing sed.
8769   lt_compile=`echo "$ac_compile" | $SED \
8770   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8771   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8772   -e 's:$: $lt_compiler_flag:'`
8773   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8774   (eval "$lt_compile" 2>conftest.err)
8775   ac_status=$?
8776   cat conftest.err >&5
8777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778   if (exit $ac_status) && test -s "$ac_outfile"; then
8779     # The compiler can only warn and ignore the option if not recognized
8780     # So say no if there are warnings other than the usual output.
8781     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8782     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8783     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8784       lt_cv_prog_compiler_rtti_exceptions=yes
8785     fi
8786   fi
8787   $RM conftest*
8788
8789fi
8790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8791$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8792
8793if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8794    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8795else
8796    :
8797fi
8798
8799fi
8800
8801
8802
8803
8804
8805
8806  lt_prog_compiler_wl=
8807lt_prog_compiler_pic=
8808lt_prog_compiler_static=
8809
8810
8811  if test yes = "$GCC"; then
8812    lt_prog_compiler_wl='-Wl,'
8813    lt_prog_compiler_static='-static'
8814
8815    case $host_os in
8816      aix*)
8817      # All AIX code is PIC.
8818      if test ia64 = "$host_cpu"; then
8819	# AIX 5 now supports IA64 processor
8820	lt_prog_compiler_static='-Bstatic'
8821      fi
8822      lt_prog_compiler_pic='-fPIC'
8823      ;;
8824
8825    amigaos*)
8826      case $host_cpu in
8827      powerpc)
8828            # see comment about AmigaOS4 .so support
8829            lt_prog_compiler_pic='-fPIC'
8830        ;;
8831      m68k)
8832            # FIXME: we need at least 68020 code to build shared libraries, but
8833            # adding the '-m68020' flag to GCC prevents building anything better,
8834            # like '-m68040'.
8835            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8836        ;;
8837      esac
8838      ;;
8839
8840    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8841      # PIC is the default for these OSes.
8842      ;;
8843
8844    mingw* | cygwin* | pw32* | os2* | cegcc*)
8845      # This hack is so that the source file can tell whether it is being
8846      # built for inclusion in a dll (and should export symbols for example).
8847      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8848      # (--disable-auto-import) libraries
8849      lt_prog_compiler_pic='-DDLL_EXPORT'
8850      case $host_os in
8851      os2*)
8852	lt_prog_compiler_static='$wl-static'
8853	;;
8854      esac
8855      ;;
8856
8857    darwin* | rhapsody*)
8858      # PIC is the default on this platform
8859      # Common symbols not allowed in MH_DYLIB files
8860      lt_prog_compiler_pic='-fno-common'
8861      ;;
8862
8863    haiku*)
8864      # PIC is the default for Haiku.
8865      # The "-static" flag exists, but is broken.
8866      lt_prog_compiler_static=
8867      ;;
8868
8869    hpux*)
8870      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8871      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8872      # sets the default TLS model and affects inlining.
8873      case $host_cpu in
8874      hppa*64*)
8875	# +Z the default
8876	;;
8877      *)
8878	lt_prog_compiler_pic='-fPIC'
8879	;;
8880      esac
8881      ;;
8882
8883    interix[3-9]*)
8884      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8885      # Instead, we relocate shared libraries at runtime.
8886      ;;
8887
8888    msdosdjgpp*)
8889      # Just because we use GCC doesn't mean we suddenly get shared libraries
8890      # on systems that don't support them.
8891      lt_prog_compiler_can_build_shared=no
8892      enable_shared=no
8893      ;;
8894
8895    *nto* | *qnx*)
8896      # QNX uses GNU C++, but need to define -shared option too, otherwise
8897      # it will coredump.
8898      lt_prog_compiler_pic='-fPIC -shared'
8899      ;;
8900
8901    sysv4*MP*)
8902      if test -d /usr/nec; then
8903	lt_prog_compiler_pic=-Kconform_pic
8904      fi
8905      ;;
8906
8907    *)
8908      lt_prog_compiler_pic='-fPIC'
8909      ;;
8910    esac
8911
8912    case $cc_basename in
8913    nvcc*) # Cuda Compiler Driver 2.2
8914      lt_prog_compiler_wl='-Xlinker '
8915      if test -n "$lt_prog_compiler_pic"; then
8916        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8917      fi
8918      ;;
8919    esac
8920  else
8921    # PORTME Check for flag to pass linker flags through the system compiler.
8922    case $host_os in
8923    aix*)
8924      lt_prog_compiler_wl='-Wl,'
8925      if test ia64 = "$host_cpu"; then
8926	# AIX 5 now supports IA64 processor
8927	lt_prog_compiler_static='-Bstatic'
8928      else
8929	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8930      fi
8931      ;;
8932
8933    darwin* | rhapsody*)
8934      # PIC is the default on this platform
8935      # Common symbols not allowed in MH_DYLIB files
8936      lt_prog_compiler_pic='-fno-common'
8937      case $cc_basename in
8938      nagfor*)
8939        # NAG Fortran compiler
8940        lt_prog_compiler_wl='-Wl,-Wl,,'
8941        lt_prog_compiler_pic='-PIC'
8942        lt_prog_compiler_static='-Bstatic'
8943        ;;
8944      esac
8945      ;;
8946
8947    mingw* | cygwin* | pw32* | os2* | cegcc*)
8948      # This hack is so that the source file can tell whether it is being
8949      # built for inclusion in a dll (and should export symbols for example).
8950      lt_prog_compiler_pic='-DDLL_EXPORT'
8951      case $host_os in
8952      os2*)
8953	lt_prog_compiler_static='$wl-static'
8954	;;
8955      esac
8956      ;;
8957
8958    hpux9* | hpux10* | hpux11*)
8959      lt_prog_compiler_wl='-Wl,'
8960      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8961      # not for PA HP-UX.
8962      case $host_cpu in
8963      hppa*64*|ia64*)
8964	# +Z the default
8965	;;
8966      *)
8967	lt_prog_compiler_pic='+Z'
8968	;;
8969      esac
8970      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8971      lt_prog_compiler_static='$wl-a ${wl}archive'
8972      ;;
8973
8974    irix5* | irix6* | nonstopux*)
8975      lt_prog_compiler_wl='-Wl,'
8976      # PIC (with -KPIC) is the default.
8977      lt_prog_compiler_static='-non_shared'
8978      ;;
8979
8980    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8981      case $cc_basename in
8982      # old Intel for x86_64, which still supported -KPIC.
8983      ecc*)
8984	lt_prog_compiler_wl='-Wl,'
8985	lt_prog_compiler_pic='-KPIC'
8986	lt_prog_compiler_static='-static'
8987        ;;
8988      # icc used to be incompatible with GCC.
8989      # ICC 10 doesn't accept -KPIC any more.
8990      icc* | ifort*)
8991	lt_prog_compiler_wl='-Wl,'
8992	lt_prog_compiler_pic='-fPIC'
8993	lt_prog_compiler_static='-static'
8994        ;;
8995      # Lahey Fortran 8.1.
8996      lf95*)
8997	lt_prog_compiler_wl='-Wl,'
8998	lt_prog_compiler_pic='--shared'
8999	lt_prog_compiler_static='--static'
9000	;;
9001      nagfor*)
9002	# NAG Fortran compiler
9003	lt_prog_compiler_wl='-Wl,-Wl,,'
9004	lt_prog_compiler_pic='-PIC'
9005	lt_prog_compiler_static='-Bstatic'
9006	;;
9007      tcc*)
9008	# Fabrice Bellard et al's Tiny C Compiler
9009	lt_prog_compiler_wl='-Wl,'
9010	lt_prog_compiler_pic='-fPIC'
9011	lt_prog_compiler_static='-static'
9012	;;
9013      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9014        # Portland Group compilers (*not* the Pentium gcc compiler,
9015	# which looks to be a dead project)
9016	lt_prog_compiler_wl='-Wl,'
9017	lt_prog_compiler_pic='-fpic'
9018	lt_prog_compiler_static='-Bstatic'
9019        ;;
9020      ccc*)
9021        lt_prog_compiler_wl='-Wl,'
9022        # All Alpha code is PIC.
9023        lt_prog_compiler_static='-non_shared'
9024        ;;
9025      xl* | bgxl* | bgf* | mpixl*)
9026	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9027	lt_prog_compiler_wl='-Wl,'
9028	lt_prog_compiler_pic='-qpic'
9029	lt_prog_compiler_static='-qstaticlink'
9030	;;
9031      *)
9032	case `$CC -V 2>&1 | sed 5q` in
9033	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9034	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9035	  lt_prog_compiler_pic='-KPIC'
9036	  lt_prog_compiler_static='-Bstatic'
9037	  lt_prog_compiler_wl=''
9038	  ;;
9039	*Sun\ F* | *Sun*Fortran*)
9040	  lt_prog_compiler_pic='-KPIC'
9041	  lt_prog_compiler_static='-Bstatic'
9042	  lt_prog_compiler_wl='-Qoption ld '
9043	  ;;
9044	*Sun\ C*)
9045	  # Sun C 5.9
9046	  lt_prog_compiler_pic='-KPIC'
9047	  lt_prog_compiler_static='-Bstatic'
9048	  lt_prog_compiler_wl='-Wl,'
9049	  ;;
9050        *Intel*\ [CF]*Compiler*)
9051	  lt_prog_compiler_wl='-Wl,'
9052	  lt_prog_compiler_pic='-fPIC'
9053	  lt_prog_compiler_static='-static'
9054	  ;;
9055	*Portland\ Group*)
9056	  lt_prog_compiler_wl='-Wl,'
9057	  lt_prog_compiler_pic='-fpic'
9058	  lt_prog_compiler_static='-Bstatic'
9059	  ;;
9060	esac
9061	;;
9062      esac
9063      ;;
9064
9065    newsos6)
9066      lt_prog_compiler_pic='-KPIC'
9067      lt_prog_compiler_static='-Bstatic'
9068      ;;
9069
9070    *nto* | *qnx*)
9071      # QNX uses GNU C++, but need to define -shared option too, otherwise
9072      # it will coredump.
9073      lt_prog_compiler_pic='-fPIC -shared'
9074      ;;
9075
9076    osf3* | osf4* | osf5*)
9077      lt_prog_compiler_wl='-Wl,'
9078      # All OSF/1 code is PIC.
9079      lt_prog_compiler_static='-non_shared'
9080      ;;
9081
9082    rdos*)
9083      lt_prog_compiler_static='-non_shared'
9084      ;;
9085
9086    solaris*)
9087      lt_prog_compiler_pic='-KPIC'
9088      lt_prog_compiler_static='-Bstatic'
9089      case $cc_basename in
9090      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9091	lt_prog_compiler_wl='-Qoption ld ';;
9092      *)
9093	lt_prog_compiler_wl='-Wl,';;
9094      esac
9095      ;;
9096
9097    sunos4*)
9098      lt_prog_compiler_wl='-Qoption ld '
9099      lt_prog_compiler_pic='-PIC'
9100      lt_prog_compiler_static='-Bstatic'
9101      ;;
9102
9103    sysv4 | sysv4.2uw2* | sysv4.3*)
9104      lt_prog_compiler_wl='-Wl,'
9105      lt_prog_compiler_pic='-KPIC'
9106      lt_prog_compiler_static='-Bstatic'
9107      ;;
9108
9109    sysv4*MP*)
9110      if test -d /usr/nec; then
9111	lt_prog_compiler_pic='-Kconform_pic'
9112	lt_prog_compiler_static='-Bstatic'
9113      fi
9114      ;;
9115
9116    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9117      lt_prog_compiler_wl='-Wl,'
9118      lt_prog_compiler_pic='-KPIC'
9119      lt_prog_compiler_static='-Bstatic'
9120      ;;
9121
9122    unicos*)
9123      lt_prog_compiler_wl='-Wl,'
9124      lt_prog_compiler_can_build_shared=no
9125      ;;
9126
9127    uts4*)
9128      lt_prog_compiler_pic='-pic'
9129      lt_prog_compiler_static='-Bstatic'
9130      ;;
9131
9132    *)
9133      lt_prog_compiler_can_build_shared=no
9134      ;;
9135    esac
9136  fi
9137
9138case $host_os in
9139  # For platforms that do not support PIC, -DPIC is meaningless:
9140  *djgpp*)
9141    lt_prog_compiler_pic=
9142    ;;
9143  *)
9144    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9145    ;;
9146esac
9147
9148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9149$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9150if ${lt_cv_prog_compiler_pic+:} false; then :
9151  $as_echo_n "(cached) " >&6
9152else
9153  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9154fi
9155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9156$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9157lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9158
9159#
9160# Check to make sure the PIC flag actually works.
9161#
9162if test -n "$lt_prog_compiler_pic"; then
9163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9164$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9165if ${lt_cv_prog_compiler_pic_works+:} false; then :
9166  $as_echo_n "(cached) " >&6
9167else
9168  lt_cv_prog_compiler_pic_works=no
9169   ac_outfile=conftest.$ac_objext
9170   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9171   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9172   # Insert the option either (1) after the last *FLAGS variable, or
9173   # (2) before a word containing "conftest.", or (3) at the end.
9174   # Note that $ac_compile itself does not contain backslashes and begins
9175   # with a dollar sign (not a hyphen), so the echo should work correctly.
9176   # The option is referenced via a variable to avoid confusing sed.
9177   lt_compile=`echo "$ac_compile" | $SED \
9178   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9179   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9180   -e 's:$: $lt_compiler_flag:'`
9181   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9182   (eval "$lt_compile" 2>conftest.err)
9183   ac_status=$?
9184   cat conftest.err >&5
9185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186   if (exit $ac_status) && test -s "$ac_outfile"; then
9187     # The compiler can only warn and ignore the option if not recognized
9188     # So say no if there are warnings other than the usual output.
9189     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9190     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9191     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9192       lt_cv_prog_compiler_pic_works=yes
9193     fi
9194   fi
9195   $RM conftest*
9196
9197fi
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9199$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9200
9201if test yes = "$lt_cv_prog_compiler_pic_works"; then
9202    case $lt_prog_compiler_pic in
9203     "" | " "*) ;;
9204     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9205     esac
9206else
9207    lt_prog_compiler_pic=
9208     lt_prog_compiler_can_build_shared=no
9209fi
9210
9211fi
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223#
9224# Check to make sure the static flag actually works.
9225#
9226wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9228$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9229if ${lt_cv_prog_compiler_static_works+:} false; then :
9230  $as_echo_n "(cached) " >&6
9231else
9232  lt_cv_prog_compiler_static_works=no
9233   save_LDFLAGS=$LDFLAGS
9234   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9235   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9236   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9237     # The linker can only warn and ignore the option if not recognized
9238     # So say no if there are warnings
9239     if test -s conftest.err; then
9240       # Append any errors to the config.log.
9241       cat conftest.err 1>&5
9242       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9243       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9244       if diff conftest.exp conftest.er2 >/dev/null; then
9245         lt_cv_prog_compiler_static_works=yes
9246       fi
9247     else
9248       lt_cv_prog_compiler_static_works=yes
9249     fi
9250   fi
9251   $RM -r conftest*
9252   LDFLAGS=$save_LDFLAGS
9253
9254fi
9255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9256$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9257
9258if test yes = "$lt_cv_prog_compiler_static_works"; then
9259    :
9260else
9261    lt_prog_compiler_static=
9262fi
9263
9264
9265
9266
9267
9268
9269
9270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9271$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9272if ${lt_cv_prog_compiler_c_o+:} false; then :
9273  $as_echo_n "(cached) " >&6
9274else
9275  lt_cv_prog_compiler_c_o=no
9276   $RM -r conftest 2>/dev/null
9277   mkdir conftest
9278   cd conftest
9279   mkdir out
9280   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9281
9282   lt_compiler_flag="-o out/conftest2.$ac_objext"
9283   # Insert the option either (1) after the last *FLAGS variable, or
9284   # (2) before a word containing "conftest.", or (3) at the end.
9285   # Note that $ac_compile itself does not contain backslashes and begins
9286   # with a dollar sign (not a hyphen), so the echo should work correctly.
9287   lt_compile=`echo "$ac_compile" | $SED \
9288   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9289   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9290   -e 's:$: $lt_compiler_flag:'`
9291   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9292   (eval "$lt_compile" 2>out/conftest.err)
9293   ac_status=$?
9294   cat out/conftest.err >&5
9295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9297   then
9298     # The compiler can only warn and ignore the option if not recognized
9299     # So say no if there are warnings
9300     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9301     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9302     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9303       lt_cv_prog_compiler_c_o=yes
9304     fi
9305   fi
9306   chmod u+w . 2>&5
9307   $RM conftest*
9308   # SGI C++ compiler will create directory out/ii_files/ for
9309   # template instantiation
9310   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9311   $RM out/* && rmdir out
9312   cd ..
9313   $RM -r conftest
9314   $RM conftest*
9315
9316fi
9317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9318$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9319
9320
9321
9322
9323
9324
9325  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9326$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9327if ${lt_cv_prog_compiler_c_o+:} false; then :
9328  $as_echo_n "(cached) " >&6
9329else
9330  lt_cv_prog_compiler_c_o=no
9331   $RM -r conftest 2>/dev/null
9332   mkdir conftest
9333   cd conftest
9334   mkdir out
9335   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9336
9337   lt_compiler_flag="-o out/conftest2.$ac_objext"
9338   # Insert the option either (1) after the last *FLAGS variable, or
9339   # (2) before a word containing "conftest.", or (3) at the end.
9340   # Note that $ac_compile itself does not contain backslashes and begins
9341   # with a dollar sign (not a hyphen), so the echo should work correctly.
9342   lt_compile=`echo "$ac_compile" | $SED \
9343   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9344   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9345   -e 's:$: $lt_compiler_flag:'`
9346   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9347   (eval "$lt_compile" 2>out/conftest.err)
9348   ac_status=$?
9349   cat out/conftest.err >&5
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9352   then
9353     # The compiler can only warn and ignore the option if not recognized
9354     # So say no if there are warnings
9355     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9356     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9357     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9358       lt_cv_prog_compiler_c_o=yes
9359     fi
9360   fi
9361   chmod u+w . 2>&5
9362   $RM conftest*
9363   # SGI C++ compiler will create directory out/ii_files/ for
9364   # template instantiation
9365   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9366   $RM out/* && rmdir out
9367   cd ..
9368   $RM -r conftest
9369   $RM conftest*
9370
9371fi
9372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9373$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9374
9375
9376
9377
9378hard_links=nottested
9379if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9380  # do not overwrite the value of need_locks provided by the user
9381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9382$as_echo_n "checking if we can lock with hard links... " >&6; }
9383  hard_links=yes
9384  $RM conftest*
9385  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9386  touch conftest.a
9387  ln conftest.a conftest.b 2>&5 || hard_links=no
9388  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9390$as_echo "$hard_links" >&6; }
9391  if test no = "$hard_links"; then
9392    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9393$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9394    need_locks=warn
9395  fi
9396else
9397  need_locks=no
9398fi
9399
9400
9401
9402
9403
9404
9405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9406$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9407
9408  runpath_var=
9409  allow_undefined_flag=
9410  always_export_symbols=no
9411  archive_cmds=
9412  archive_expsym_cmds=
9413  compiler_needs_object=no
9414  enable_shared_with_static_runtimes=no
9415  export_dynamic_flag_spec=
9416  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9417  hardcode_automatic=no
9418  hardcode_direct=no
9419  hardcode_direct_absolute=no
9420  hardcode_libdir_flag_spec=
9421  hardcode_libdir_separator=
9422  hardcode_minus_L=no
9423  hardcode_shlibpath_var=unsupported
9424  inherit_rpath=no
9425  link_all_deplibs=unknown
9426  module_cmds=
9427  module_expsym_cmds=
9428  old_archive_from_new_cmds=
9429  old_archive_from_expsyms_cmds=
9430  thread_safe_flag_spec=
9431  whole_archive_flag_spec=
9432  # include_expsyms should be a list of space-separated symbols to be *always*
9433  # included in the symbol list
9434  include_expsyms=
9435  # exclude_expsyms can be an extended regexp of symbols to exclude
9436  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9437  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9438  # as well as any symbol that contains 'd'.
9439  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9440  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9441  # platforms (ab)use it in PIC code, but their linkers get confused if
9442  # the symbol is explicitly referenced.  Since portable code cannot
9443  # rely on this symbol name, it's probably fine to never include it in
9444  # preloaded symbol tables.
9445  # Exclude shared library initialization/finalization symbols.
9446  extract_expsyms_cmds=
9447
9448  case $host_os in
9449  cygwin* | mingw* | pw32* | cegcc*)
9450    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9451    # When not using gcc, we currently assume that we are using
9452    # Microsoft Visual C++.
9453    if test yes != "$GCC"; then
9454      with_gnu_ld=no
9455    fi
9456    ;;
9457  interix*)
9458    # we just hope/assume this is gcc and not c89 (= MSVC++)
9459    with_gnu_ld=yes
9460    ;;
9461  openbsd* | bitrig*)
9462    with_gnu_ld=no
9463    ;;
9464  linux* | k*bsd*-gnu | gnu*)
9465    link_all_deplibs=no
9466    ;;
9467  esac
9468
9469  ld_shlibs=yes
9470
9471  # On some targets, GNU ld is compatible enough with the native linker
9472  # that we're better off using the native interface for both.
9473  lt_use_gnu_ld_interface=no
9474  if test yes = "$with_gnu_ld"; then
9475    case $host_os in
9476      aix*)
9477	# The AIX port of GNU ld has always aspired to compatibility
9478	# with the native linker.  However, as the warning in the GNU ld
9479	# block says, versions before 2.19.5* couldn't really create working
9480	# shared libraries, regardless of the interface used.
9481	case `$LD -v 2>&1` in
9482	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9483	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9484	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9485	  *)
9486	    lt_use_gnu_ld_interface=yes
9487	    ;;
9488	esac
9489	;;
9490      *)
9491	lt_use_gnu_ld_interface=yes
9492	;;
9493    esac
9494  fi
9495
9496  if test yes = "$lt_use_gnu_ld_interface"; then
9497    # If archive_cmds runs LD, not CC, wlarc should be empty
9498    wlarc='$wl'
9499
9500    # Set some defaults for GNU ld with shared library support. These
9501    # are reset later if shared libraries are not supported. Putting them
9502    # here allows them to be overridden if necessary.
9503    runpath_var=LD_RUN_PATH
9504    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9505    export_dynamic_flag_spec='$wl--export-dynamic'
9506    # ancient GNU ld didn't support --whole-archive et. al.
9507    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9508      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9509    else
9510      whole_archive_flag_spec=
9511    fi
9512    supports_anon_versioning=no
9513    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9514      *GNU\ gold*) supports_anon_versioning=yes ;;
9515      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9516      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9517      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9518      *\ 2.11.*) ;; # other 2.11 versions
9519      *) supports_anon_versioning=yes ;;
9520    esac
9521
9522    # See if GNU ld supports shared libraries.
9523    case $host_os in
9524    aix[3-9]*)
9525      # On AIX/PPC, the GNU linker is very broken
9526      if test ia64 != "$host_cpu"; then
9527	ld_shlibs=no
9528	cat <<_LT_EOF 1>&2
9529
9530*** Warning: the GNU linker, at least up to release 2.19, is reported
9531*** to be unable to reliably create shared libraries on AIX.
9532*** Therefore, libtool is disabling shared libraries support.  If you
9533*** really care for shared libraries, you may want to install binutils
9534*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9535*** You will then need to restart the configuration process.
9536
9537_LT_EOF
9538      fi
9539      ;;
9540
9541    amigaos*)
9542      case $host_cpu in
9543      powerpc)
9544            # see comment about AmigaOS4 .so support
9545            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9546            archive_expsym_cmds=''
9547        ;;
9548      m68k)
9549            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)'
9550            hardcode_libdir_flag_spec='-L$libdir'
9551            hardcode_minus_L=yes
9552        ;;
9553      esac
9554      ;;
9555
9556    beos*)
9557      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9558	allow_undefined_flag=unsupported
9559	# Joseph Beckenbach <[email protected]> says some releases of gcc
9560	# support --undefined.  This deserves some investigation.  FIXME
9561	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9562      else
9563	ld_shlibs=no
9564      fi
9565      ;;
9566
9567    cygwin* | mingw* | pw32* | cegcc*)
9568      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9569      # as there is no search path for DLLs.
9570      hardcode_libdir_flag_spec='-L$libdir'
9571      export_dynamic_flag_spec='$wl--export-all-symbols'
9572      allow_undefined_flag=unsupported
9573      always_export_symbols=no
9574      enable_shared_with_static_runtimes=yes
9575      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'
9576      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9577
9578      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9579        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9580	# If the export-symbols file already is a .def file, use it as
9581	# is; otherwise, prepend EXPORTS...
9582	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9583          cp $export_symbols $output_objdir/$soname.def;
9584        else
9585          echo EXPORTS > $output_objdir/$soname.def;
9586          cat $export_symbols >> $output_objdir/$soname.def;
9587        fi~
9588        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9589      else
9590	ld_shlibs=no
9591      fi
9592      ;;
9593
9594    haiku*)
9595      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9596      link_all_deplibs=yes
9597      ;;
9598
9599    os2*)
9600      hardcode_libdir_flag_spec='-L$libdir'
9601      hardcode_minus_L=yes
9602      allow_undefined_flag=unsupported
9603      shrext_cmds=.dll
9604      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9605	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9606	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9607	$ECHO EXPORTS >> $output_objdir/$libname.def~
9608	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9609	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9610	emximp -o $lib $output_objdir/$libname.def'
9611      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9612	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9613	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9614	$ECHO EXPORTS >> $output_objdir/$libname.def~
9615	prefix_cmds="$SED"~
9616	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9617	  prefix_cmds="$prefix_cmds -e 1d";
9618	fi~
9619	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9620	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9621	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9622	emximp -o $lib $output_objdir/$libname.def'
9623      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9624      enable_shared_with_static_runtimes=yes
9625      ;;
9626
9627    interix[3-9]*)
9628      hardcode_direct=no
9629      hardcode_shlibpath_var=no
9630      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9631      export_dynamic_flag_spec='$wl-E'
9632      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9633      # Instead, shared libraries are loaded at an image base (0x10000000 by
9634      # default) and relocated if they conflict, which is a slow very memory
9635      # consuming and fragmenting process.  To avoid this, we pick a random,
9636      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9637      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9638      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9639      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'
9640      ;;
9641
9642    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9643      tmp_diet=no
9644      if test linux-dietlibc = "$host_os"; then
9645	case $cc_basename in
9646	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9647	esac
9648      fi
9649      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9650	 && test no = "$tmp_diet"
9651      then
9652	tmp_addflag=' $pic_flag'
9653	tmp_sharedflag='-shared'
9654	case $cc_basename,$host_cpu in
9655        pgcc*)				# Portland Group C compiler
9656	  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'
9657	  tmp_addflag=' $pic_flag'
9658	  ;;
9659	pgf77* | pgf90* | pgf95* | pgfortran*)
9660					# Portland Group f77 and f90 compilers
9661	  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'
9662	  tmp_addflag=' $pic_flag -Mnomain' ;;
9663	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9664	  tmp_addflag=' -i_dynamic' ;;
9665	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9666	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9667	ifc* | ifort*)			# Intel Fortran compiler
9668	  tmp_addflag=' -nofor_main' ;;
9669	lf95*)				# Lahey Fortran 8.1
9670	  whole_archive_flag_spec=
9671	  tmp_sharedflag='--shared' ;;
9672        nagfor*)                        # NAGFOR 5.3
9673          tmp_sharedflag='-Wl,-shared' ;;
9674	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9675	  tmp_sharedflag='-qmkshrobj'
9676	  tmp_addflag= ;;
9677	nvcc*)	# Cuda Compiler Driver 2.2
9678	  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'
9679	  compiler_needs_object=yes
9680	  ;;
9681	esac
9682	case `$CC -V 2>&1 | sed 5q` in
9683	*Sun\ C*)			# Sun C 5.9
9684	  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'
9685	  compiler_needs_object=yes
9686	  tmp_sharedflag='-G' ;;
9687	*Sun\ F*)			# Sun Fortran 8.3
9688	  tmp_sharedflag='-G' ;;
9689	esac
9690	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9691
9692        if test yes = "$supports_anon_versioning"; then
9693          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9694            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9695            echo "local: *; };" >> $output_objdir/$libname.ver~
9696            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9697        fi
9698
9699	case $cc_basename in
9700	tcc*)
9701	  export_dynamic_flag_spec='-rdynamic'
9702	  ;;
9703	xlf* | bgf* | bgxlf* | mpixlf*)
9704	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9705	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9706	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9707	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9708	  if test yes = "$supports_anon_versioning"; then
9709	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9710              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9711              echo "local: *; };" >> $output_objdir/$libname.ver~
9712              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9713	  fi
9714	  ;;
9715	esac
9716      else
9717        ld_shlibs=no
9718      fi
9719      ;;
9720
9721    netbsd* | netbsdelf*-gnu)
9722      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9723	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9724	wlarc=
9725      else
9726	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9727	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9728      fi
9729      ;;
9730
9731    solaris*)
9732      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9733	ld_shlibs=no
9734	cat <<_LT_EOF 1>&2
9735
9736*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9737*** create shared libraries on Solaris systems.  Therefore, libtool
9738*** is disabling shared libraries support.  We urge you to upgrade GNU
9739*** binutils to release 2.9.1 or newer.  Another option is to modify
9740*** your PATH or compiler configuration so that the native linker is
9741*** used, and then restart.
9742
9743_LT_EOF
9744      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9745	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9746	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9747      else
9748	ld_shlibs=no
9749      fi
9750      ;;
9751
9752    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9753      case `$LD -v 2>&1` in
9754        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9755	ld_shlibs=no
9756	cat <<_LT_EOF 1>&2
9757
9758*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9759*** reliably create shared libraries on SCO systems.  Therefore, libtool
9760*** is disabling shared libraries support.  We urge you to upgrade GNU
9761*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9762*** your PATH or compiler configuration so that the native linker is
9763*** used, and then restart.
9764
9765_LT_EOF
9766	;;
9767	*)
9768	  # For security reasons, it is highly recommended that you always
9769	  # use absolute paths for naming shared libraries, and exclude the
9770	  # DT_RUNPATH tag from executables and libraries.  But doing so
9771	  # requires that you compile everything twice, which is a pain.
9772	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9773	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9774	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9775	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9776	  else
9777	    ld_shlibs=no
9778	  fi
9779	;;
9780      esac
9781      ;;
9782
9783    sunos4*)
9784      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9785      wlarc=
9786      hardcode_direct=yes
9787      hardcode_shlibpath_var=no
9788      ;;
9789
9790    *)
9791      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9792	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9793	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9794      else
9795	ld_shlibs=no
9796      fi
9797      ;;
9798    esac
9799
9800    if test no = "$ld_shlibs"; then
9801      runpath_var=
9802      hardcode_libdir_flag_spec=
9803      export_dynamic_flag_spec=
9804      whole_archive_flag_spec=
9805    fi
9806  else
9807    # PORTME fill in a description of your system's linker (not GNU ld)
9808    case $host_os in
9809    aix3*)
9810      allow_undefined_flag=unsupported
9811      always_export_symbols=yes
9812      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'
9813      # Note: this linker hardcodes the directories in LIBPATH if there
9814      # are no directories specified by -L.
9815      hardcode_minus_L=yes
9816      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9817	# Neither direct hardcoding nor static linking is supported with a
9818	# broken collect2.
9819	hardcode_direct=unsupported
9820      fi
9821      ;;
9822
9823    aix[4-9]*)
9824      if test ia64 = "$host_cpu"; then
9825	# On IA64, the linker does run time linking by default, so we don't
9826	# have to do anything special.
9827	aix_use_runtimelinking=no
9828	exp_sym_flag='-Bexport'
9829	no_entry_flag=
9830      else
9831	# If we're using GNU nm, then we don't want the "-C" option.
9832	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9833	# Without the "-l" option, or with the "-B" option, AIX nm treats
9834	# weak defined symbols like other global defined symbols, whereas
9835	# GNU nm marks them as "W".
9836	# While the 'weak' keyword is ignored in the Export File, we need
9837	# it in the Import File for the 'aix-soname' feature, so we have
9838	# to replace the "-B" option with "-P" for AIX nm.
9839	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9840	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9841	else
9842	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9843	fi
9844	aix_use_runtimelinking=no
9845
9846	# Test if we are trying to use run time linking or normal
9847	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9848	# have runtime linking enabled, and use it for executables.
9849	# For shared libraries, we enable/disable runtime linking
9850	# depending on the kind of the shared library created -
9851	# when "with_aix_soname,aix_use_runtimelinking" is:
9852	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9853	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9854	#            lib.a           static archive
9855	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9856	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9857	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9858	#            lib.a(lib.so.V) shared, rtl:no
9859	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9860	#            lib.a           static archive
9861	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9862	  for ld_flag in $LDFLAGS; do
9863	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9864	    aix_use_runtimelinking=yes
9865	    break
9866	  fi
9867	  done
9868	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9869	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9870	    # so we don't have lib.a shared libs to link our executables.
9871	    # We have to force runtime linking in this case.
9872	    aix_use_runtimelinking=yes
9873	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9874	  fi
9875	  ;;
9876	esac
9877
9878	exp_sym_flag='-bexport'
9879	no_entry_flag='-bnoentry'
9880      fi
9881
9882      # When large executables or shared objects are built, AIX ld can
9883      # have problems creating the table of contents.  If linking a library
9884      # or program results in "error TOC overflow" add -mminimal-toc to
9885      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9886      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9887
9888      archive_cmds=''
9889      hardcode_direct=yes
9890      hardcode_direct_absolute=yes
9891      hardcode_libdir_separator=':'
9892      link_all_deplibs=yes
9893      file_list_spec='$wl-f,'
9894      case $with_aix_soname,$aix_use_runtimelinking in
9895      aix,*) ;; # traditional, no import file
9896      svr4,* | *,yes) # use import file
9897	# The Import File defines what to hardcode.
9898	hardcode_direct=no
9899	hardcode_direct_absolute=no
9900	;;
9901      esac
9902
9903      if test yes = "$GCC"; then
9904	case $host_os in aix4.[012]|aix4.[012].*)
9905	# We only want to do this on AIX 4.2 and lower, the check
9906	# below for broken collect2 doesn't work under 4.3+
9907	  collect2name=`$CC -print-prog-name=collect2`
9908	  if test -f "$collect2name" &&
9909	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9910	  then
9911	  # We have reworked collect2
9912	  :
9913	  else
9914	  # We have old collect2
9915	  hardcode_direct=unsupported
9916	  # It fails to find uninstalled libraries when the uninstalled
9917	  # path is not listed in the libpath.  Setting hardcode_minus_L
9918	  # to unsupported forces relinking
9919	  hardcode_minus_L=yes
9920	  hardcode_libdir_flag_spec='-L$libdir'
9921	  hardcode_libdir_separator=
9922	  fi
9923	  ;;
9924	esac
9925	shared_flag='-shared'
9926	if test yes = "$aix_use_runtimelinking"; then
9927	  shared_flag="$shared_flag "'$wl-G'
9928	fi
9929	# Need to ensure runtime linking is disabled for the traditional
9930	# shared library, or the linker may eventually find shared libraries
9931	# /with/ Import File - we do not want to mix them.
9932	shared_flag_aix='-shared'
9933	shared_flag_svr4='-shared $wl-G'
9934      else
9935	# not using gcc
9936	if test ia64 = "$host_cpu"; then
9937	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9938	# chokes on -Wl,-G. The following line is correct:
9939	  shared_flag='-G'
9940	else
9941	  if test yes = "$aix_use_runtimelinking"; then
9942	    shared_flag='$wl-G'
9943	  else
9944	    shared_flag='$wl-bM:SRE'
9945	  fi
9946	  shared_flag_aix='$wl-bM:SRE'
9947	  shared_flag_svr4='$wl-G'
9948	fi
9949      fi
9950
9951      export_dynamic_flag_spec='$wl-bexpall'
9952      # It seems that -bexpall does not export symbols beginning with
9953      # underscore (_), so it is better to generate a list of symbols to export.
9954      always_export_symbols=yes
9955      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9956	# Warning - without using the other runtime loading flags (-brtl),
9957	# -berok will link without error, but may produce a broken library.
9958	allow_undefined_flag='-berok'
9959        # Determine the default libpath from the value encoded in an
9960        # empty executable.
9961        if test set = "${lt_cv_aix_libpath+set}"; then
9962  aix_libpath=$lt_cv_aix_libpath
9963else
9964  if ${lt_cv_aix_libpath_+:} false; then :
9965  $as_echo_n "(cached) " >&6
9966else
9967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968/* end confdefs.h.  */
9969
9970int
9971main ()
9972{
9973
9974  ;
9975  return 0;
9976}
9977_ACEOF
9978if ac_fn_c_try_link "$LINENO"; then :
9979
9980  lt_aix_libpath_sed='
9981      /Import File Strings/,/^$/ {
9982	  /^0/ {
9983	      s/^0  *\([^ ]*\) *$/\1/
9984	      p
9985	  }
9986      }'
9987  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9988  # Check for a 64-bit object if we didn't find anything.
9989  if test -z "$lt_cv_aix_libpath_"; then
9990    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9991  fi
9992fi
9993rm -f core conftest.err conftest.$ac_objext \
9994    conftest$ac_exeext conftest.$ac_ext
9995  if test -z "$lt_cv_aix_libpath_"; then
9996    lt_cv_aix_libpath_=/usr/lib:/lib
9997  fi
9998
9999fi
10000
10001  aix_libpath=$lt_cv_aix_libpath_
10002fi
10003
10004        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10005        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10006      else
10007	if test ia64 = "$host_cpu"; then
10008	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10009	  allow_undefined_flag="-z nodefs"
10010	  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"
10011	else
10012	 # Determine the default libpath from the value encoded in an
10013	 # empty executable.
10014	 if test set = "${lt_cv_aix_libpath+set}"; then
10015  aix_libpath=$lt_cv_aix_libpath
10016else
10017  if ${lt_cv_aix_libpath_+:} false; then :
10018  $as_echo_n "(cached) " >&6
10019else
10020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021/* end confdefs.h.  */
10022
10023int
10024main ()
10025{
10026
10027  ;
10028  return 0;
10029}
10030_ACEOF
10031if ac_fn_c_try_link "$LINENO"; then :
10032
10033  lt_aix_libpath_sed='
10034      /Import File Strings/,/^$/ {
10035	  /^0/ {
10036	      s/^0  *\([^ ]*\) *$/\1/
10037	      p
10038	  }
10039      }'
10040  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10041  # Check for a 64-bit object if we didn't find anything.
10042  if test -z "$lt_cv_aix_libpath_"; then
10043    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10044  fi
10045fi
10046rm -f core conftest.err conftest.$ac_objext \
10047    conftest$ac_exeext conftest.$ac_ext
10048  if test -z "$lt_cv_aix_libpath_"; then
10049    lt_cv_aix_libpath_=/usr/lib:/lib
10050  fi
10051
10052fi
10053
10054  aix_libpath=$lt_cv_aix_libpath_
10055fi
10056
10057	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10058	  # Warning - without using the other run time loading flags,
10059	  # -berok will link without error, but may produce a broken library.
10060	  no_undefined_flag=' $wl-bernotok'
10061	  allow_undefined_flag=' $wl-berok'
10062	  if test yes = "$with_gnu_ld"; then
10063	    # We only use this code for GNU lds that support --whole-archive.
10064	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10065	  else
10066	    # Exported symbols can be pulled into shared objects from archives
10067	    whole_archive_flag_spec='$convenience'
10068	  fi
10069	  archive_cmds_need_lc=yes
10070	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10071	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10072	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10073	  if test svr4 != "$with_aix_soname"; then
10074	    # This is similar to how AIX traditionally builds its shared libraries.
10075	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10076	  fi
10077	  if test aix != "$with_aix_soname"; then
10078	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10079	  else
10080	    # used by -dlpreopen to get the symbols
10081	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10082	  fi
10083	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10084	fi
10085      fi
10086      ;;
10087
10088    amigaos*)
10089      case $host_cpu in
10090      powerpc)
10091            # see comment about AmigaOS4 .so support
10092            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10093            archive_expsym_cmds=''
10094        ;;
10095      m68k)
10096            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)'
10097            hardcode_libdir_flag_spec='-L$libdir'
10098            hardcode_minus_L=yes
10099        ;;
10100      esac
10101      ;;
10102
10103    bsdi[45]*)
10104      export_dynamic_flag_spec=-rdynamic
10105      ;;
10106
10107    cygwin* | mingw* | pw32* | cegcc*)
10108      # When not using gcc, we currently assume that we are using
10109      # Microsoft Visual C++.
10110      # hardcode_libdir_flag_spec is actually meaningless, as there is
10111      # no search path for DLLs.
10112      case $cc_basename in
10113      cl*)
10114	# Native MSVC
10115	hardcode_libdir_flag_spec=' '
10116	allow_undefined_flag=unsupported
10117	always_export_symbols=yes
10118	file_list_spec='@'
10119	# Tell ltmain to make .lib files, not .a files.
10120	libext=lib
10121	# Tell ltmain to make .dll files, not .so files.
10122	shrext_cmds=.dll
10123	# FIXME: Setting linknames here is a bad hack.
10124	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10125	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10126            cp "$export_symbols" "$output_objdir/$soname.def";
10127            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10128          else
10129            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10130          fi~
10131          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10132          linknames='
10133	# The linker will not automatically build a static lib if we build a DLL.
10134	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10135	enable_shared_with_static_runtimes=yes
10136	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10137	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10138	# Don't use ranlib
10139	old_postinstall_cmds='chmod 644 $oldlib'
10140	postlink_cmds='lt_outputfile="@OUTPUT@"~
10141          lt_tool_outputfile="@TOOL_OUTPUT@"~
10142          case $lt_outputfile in
10143            *.exe|*.EXE) ;;
10144            *)
10145              lt_outputfile=$lt_outputfile.exe
10146              lt_tool_outputfile=$lt_tool_outputfile.exe
10147              ;;
10148          esac~
10149          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10150            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10151            $RM "$lt_outputfile.manifest";
10152          fi'
10153	;;
10154      *)
10155	# Assume MSVC wrapper
10156	hardcode_libdir_flag_spec=' '
10157	allow_undefined_flag=unsupported
10158	# Tell ltmain to make .lib files, not .a files.
10159	libext=lib
10160	# Tell ltmain to make .dll files, not .so files.
10161	shrext_cmds=.dll
10162	# FIXME: Setting linknames here is a bad hack.
10163	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10164	# The linker will automatically build a .lib file if we build a DLL.
10165	old_archive_from_new_cmds='true'
10166	# FIXME: Should let the user specify the lib program.
10167	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10168	enable_shared_with_static_runtimes=yes
10169	;;
10170      esac
10171      ;;
10172
10173    darwin* | rhapsody*)
10174
10175
10176  archive_cmds_need_lc=no
10177  hardcode_direct=no
10178  hardcode_automatic=yes
10179  hardcode_shlibpath_var=unsupported
10180  if test yes = "$lt_cv_ld_force_load"; then
10181    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\"`'
10182
10183  else
10184    whole_archive_flag_spec=''
10185  fi
10186  link_all_deplibs=yes
10187  allow_undefined_flag=$_lt_dar_allow_undefined
10188  case $cc_basename in
10189     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10190     *) _lt_dar_can_shared=$GCC ;;
10191  esac
10192  if test yes = "$_lt_dar_can_shared"; then
10193    output_verbose_link_cmd=func_echo_all
10194    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10195    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10196    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"
10197    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"
10198
10199  else
10200  ld_shlibs=no
10201  fi
10202
10203      ;;
10204
10205    dgux*)
10206      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10207      hardcode_libdir_flag_spec='-L$libdir'
10208      hardcode_shlibpath_var=no
10209      ;;
10210
10211    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10212    # support.  Future versions do this automatically, but an explicit c++rt0.o
10213    # does not break anything, and helps significantly (at the cost of a little
10214    # extra space).
10215    freebsd2.2*)
10216      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10217      hardcode_libdir_flag_spec='-R$libdir'
10218      hardcode_direct=yes
10219      hardcode_shlibpath_var=no
10220      ;;
10221
10222    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10223    freebsd2.*)
10224      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10225      hardcode_direct=yes
10226      hardcode_minus_L=yes
10227      hardcode_shlibpath_var=no
10228      ;;
10229
10230    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10231    freebsd* | dragonfly*)
10232      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10233      hardcode_libdir_flag_spec='-R$libdir'
10234      hardcode_direct=yes
10235      hardcode_shlibpath_var=no
10236      ;;
10237
10238    hpux9*)
10239      if test yes = "$GCC"; then
10240	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10241      else
10242	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10243      fi
10244      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10245      hardcode_libdir_separator=:
10246      hardcode_direct=yes
10247
10248      # hardcode_minus_L: Not really in the search PATH,
10249      # but as the default location of the library.
10250      hardcode_minus_L=yes
10251      export_dynamic_flag_spec='$wl-E'
10252      ;;
10253
10254    hpux10*)
10255      if test yes,no = "$GCC,$with_gnu_ld"; then
10256	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10257      else
10258	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10259      fi
10260      if test no = "$with_gnu_ld"; then
10261	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10262	hardcode_libdir_separator=:
10263	hardcode_direct=yes
10264	hardcode_direct_absolute=yes
10265	export_dynamic_flag_spec='$wl-E'
10266	# hardcode_minus_L: Not really in the search PATH,
10267	# but as the default location of the library.
10268	hardcode_minus_L=yes
10269      fi
10270      ;;
10271
10272    hpux11*)
10273      if test yes,no = "$GCC,$with_gnu_ld"; then
10274	case $host_cpu in
10275	hppa*64*)
10276	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10277	  ;;
10278	ia64*)
10279	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10280	  ;;
10281	*)
10282	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10283	  ;;
10284	esac
10285      else
10286	case $host_cpu in
10287	hppa*64*)
10288	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10289	  ;;
10290	ia64*)
10291	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10292	  ;;
10293	*)
10294
10295	  # Older versions of the 11.00 compiler do not understand -b yet
10296	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10297	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10298$as_echo_n "checking if $CC understands -b... " >&6; }
10299if ${lt_cv_prog_compiler__b+:} false; then :
10300  $as_echo_n "(cached) " >&6
10301else
10302  lt_cv_prog_compiler__b=no
10303   save_LDFLAGS=$LDFLAGS
10304   LDFLAGS="$LDFLAGS -b"
10305   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10306   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10307     # The linker can only warn and ignore the option if not recognized
10308     # So say no if there are warnings
10309     if test -s conftest.err; then
10310       # Append any errors to the config.log.
10311       cat conftest.err 1>&5
10312       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10313       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10314       if diff conftest.exp conftest.er2 >/dev/null; then
10315         lt_cv_prog_compiler__b=yes
10316       fi
10317     else
10318       lt_cv_prog_compiler__b=yes
10319     fi
10320   fi
10321   $RM -r conftest*
10322   LDFLAGS=$save_LDFLAGS
10323
10324fi
10325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10326$as_echo "$lt_cv_prog_compiler__b" >&6; }
10327
10328if test yes = "$lt_cv_prog_compiler__b"; then
10329    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10330else
10331    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10332fi
10333
10334	  ;;
10335	esac
10336      fi
10337      if test no = "$with_gnu_ld"; then
10338	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10339	hardcode_libdir_separator=:
10340
10341	case $host_cpu in
10342	hppa*64*|ia64*)
10343	  hardcode_direct=no
10344	  hardcode_shlibpath_var=no
10345	  ;;
10346	*)
10347	  hardcode_direct=yes
10348	  hardcode_direct_absolute=yes
10349	  export_dynamic_flag_spec='$wl-E'
10350
10351	  # hardcode_minus_L: Not really in the search PATH,
10352	  # but as the default location of the library.
10353	  hardcode_minus_L=yes
10354	  ;;
10355	esac
10356      fi
10357      ;;
10358
10359    irix5* | irix6* | nonstopux*)
10360      if test yes = "$GCC"; then
10361	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'
10362	# Try to use the -exported_symbol ld option, if it does not
10363	# work, assume that -exports_file does not work either and
10364	# implicitly export all symbols.
10365	# This should be the same for all languages, so no per-tag cache variable.
10366	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10367$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10368if ${lt_cv_irix_exported_symbol+:} false; then :
10369  $as_echo_n "(cached) " >&6
10370else
10371  save_LDFLAGS=$LDFLAGS
10372	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10373	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374/* end confdefs.h.  */
10375int foo (void) { return 0; }
10376_ACEOF
10377if ac_fn_c_try_link "$LINENO"; then :
10378  lt_cv_irix_exported_symbol=yes
10379else
10380  lt_cv_irix_exported_symbol=no
10381fi
10382rm -f core conftest.err conftest.$ac_objext \
10383    conftest$ac_exeext conftest.$ac_ext
10384           LDFLAGS=$save_LDFLAGS
10385fi
10386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10387$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10388	if test yes = "$lt_cv_irix_exported_symbol"; then
10389          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'
10390	fi
10391	link_all_deplibs=no
10392      else
10393	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'
10394	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'
10395      fi
10396      archive_cmds_need_lc='no'
10397      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10398      hardcode_libdir_separator=:
10399      inherit_rpath=yes
10400      link_all_deplibs=yes
10401      ;;
10402
10403    linux*)
10404      case $cc_basename in
10405      tcc*)
10406	# Fabrice Bellard et al's Tiny C Compiler
10407	ld_shlibs=yes
10408	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10409	;;
10410      esac
10411      ;;
10412
10413    netbsd* | netbsdelf*-gnu)
10414      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10415	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10416      else
10417	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10418      fi
10419      hardcode_libdir_flag_spec='-R$libdir'
10420      hardcode_direct=yes
10421      hardcode_shlibpath_var=no
10422      ;;
10423
10424    newsos6)
10425      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10426      hardcode_direct=yes
10427      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10428      hardcode_libdir_separator=:
10429      hardcode_shlibpath_var=no
10430      ;;
10431
10432    *nto* | *qnx*)
10433      ;;
10434
10435    openbsd* | bitrig*)
10436      if test -f /usr/libexec/ld.so; then
10437	hardcode_direct=yes
10438	hardcode_shlibpath_var=no
10439	hardcode_direct_absolute=yes
10440	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10441	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10442	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10443	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10444	  export_dynamic_flag_spec='$wl-E'
10445	else
10446	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10447	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10448	fi
10449      else
10450	ld_shlibs=no
10451      fi
10452      ;;
10453
10454    os2*)
10455      hardcode_libdir_flag_spec='-L$libdir'
10456      hardcode_minus_L=yes
10457      allow_undefined_flag=unsupported
10458      shrext_cmds=.dll
10459      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10460	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10461	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10462	$ECHO EXPORTS >> $output_objdir/$libname.def~
10463	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10464	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10465	emximp -o $lib $output_objdir/$libname.def'
10466      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10467	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10468	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10469	$ECHO EXPORTS >> $output_objdir/$libname.def~
10470	prefix_cmds="$SED"~
10471	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10472	  prefix_cmds="$prefix_cmds -e 1d";
10473	fi~
10474	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10475	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10476	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10477	emximp -o $lib $output_objdir/$libname.def'
10478      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10479      enable_shared_with_static_runtimes=yes
10480      ;;
10481
10482    osf3*)
10483      if test yes = "$GCC"; then
10484	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10485	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'
10486      else
10487	allow_undefined_flag=' -expect_unresolved \*'
10488	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'
10489      fi
10490      archive_cmds_need_lc='no'
10491      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10492      hardcode_libdir_separator=:
10493      ;;
10494
10495    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10496      if test yes = "$GCC"; then
10497	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10498	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'
10499	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10500      else
10501	allow_undefined_flag=' -expect_unresolved \*'
10502	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'
10503	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~
10504          $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'
10505
10506	# Both c and cxx compiler support -rpath directly
10507	hardcode_libdir_flag_spec='-rpath $libdir'
10508      fi
10509      archive_cmds_need_lc='no'
10510      hardcode_libdir_separator=:
10511      ;;
10512
10513    solaris*)
10514      no_undefined_flag=' -z defs'
10515      if test yes = "$GCC"; then
10516	wlarc='$wl'
10517	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10518	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10519          $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'
10520      else
10521	case `$CC -V 2>&1` in
10522	*"Compilers 5.0"*)
10523	  wlarc=''
10524	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10525	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10526            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10527	  ;;
10528	*)
10529	  wlarc='$wl'
10530	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10531	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10532            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10533	  ;;
10534	esac
10535      fi
10536      hardcode_libdir_flag_spec='-R$libdir'
10537      hardcode_shlibpath_var=no
10538      case $host_os in
10539      solaris2.[0-5] | solaris2.[0-5].*) ;;
10540      *)
10541	# The compiler driver will combine and reorder linker options,
10542	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10543	# but is careful enough not to reorder.
10544	# Supported since Solaris 2.6 (maybe 2.5.1?)
10545	if test yes = "$GCC"; then
10546	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10547	else
10548	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10549	fi
10550	;;
10551      esac
10552      link_all_deplibs=yes
10553      ;;
10554
10555    sunos4*)
10556      if test sequent = "$host_vendor"; then
10557	# Use $CC to link under sequent, because it throws in some extra .o
10558	# files that make .init and .fini sections work.
10559	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10560      else
10561	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10562      fi
10563      hardcode_libdir_flag_spec='-L$libdir'
10564      hardcode_direct=yes
10565      hardcode_minus_L=yes
10566      hardcode_shlibpath_var=no
10567      ;;
10568
10569    sysv4)
10570      case $host_vendor in
10571	sni)
10572	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10573	  hardcode_direct=yes # is this really true???
10574	;;
10575	siemens)
10576	  ## LD is ld it makes a PLAMLIB
10577	  ## CC just makes a GrossModule.
10578	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10579	  reload_cmds='$CC -r -o $output$reload_objs'
10580	  hardcode_direct=no
10581        ;;
10582	motorola)
10583	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10584	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10585	;;
10586      esac
10587      runpath_var='LD_RUN_PATH'
10588      hardcode_shlibpath_var=no
10589      ;;
10590
10591    sysv4.3*)
10592      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10593      hardcode_shlibpath_var=no
10594      export_dynamic_flag_spec='-Bexport'
10595      ;;
10596
10597    sysv4*MP*)
10598      if test -d /usr/nec; then
10599	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10600	hardcode_shlibpath_var=no
10601	runpath_var=LD_RUN_PATH
10602	hardcode_runpath_var=yes
10603	ld_shlibs=yes
10604      fi
10605      ;;
10606
10607    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10608      no_undefined_flag='$wl-z,text'
10609      archive_cmds_need_lc=no
10610      hardcode_shlibpath_var=no
10611      runpath_var='LD_RUN_PATH'
10612
10613      if test yes = "$GCC"; then
10614	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10615	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10616      else
10617	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10618	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10619      fi
10620      ;;
10621
10622    sysv5* | sco3.2v5* | sco5v6*)
10623      # Note: We CANNOT use -z defs as we might desire, because we do not
10624      # link with -lc, and that would cause any symbols used from libc to
10625      # always be unresolved, which means just about no library would
10626      # ever link correctly.  If we're not using GNU ld we use -z text
10627      # though, which does catch some bad symbols but isn't as heavy-handed
10628      # as -z defs.
10629      no_undefined_flag='$wl-z,text'
10630      allow_undefined_flag='$wl-z,nodefs'
10631      archive_cmds_need_lc=no
10632      hardcode_shlibpath_var=no
10633      hardcode_libdir_flag_spec='$wl-R,$libdir'
10634      hardcode_libdir_separator=':'
10635      link_all_deplibs=yes
10636      export_dynamic_flag_spec='$wl-Bexport'
10637      runpath_var='LD_RUN_PATH'
10638
10639      if test yes = "$GCC"; then
10640	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10641	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10642      else
10643	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10644	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10645      fi
10646      ;;
10647
10648    uts4*)
10649      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10650      hardcode_libdir_flag_spec='-L$libdir'
10651      hardcode_shlibpath_var=no
10652      ;;
10653
10654    *)
10655      ld_shlibs=no
10656      ;;
10657    esac
10658
10659    if test sni = "$host_vendor"; then
10660      case $host in
10661      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10662	export_dynamic_flag_spec='$wl-Blargedynsym'
10663	;;
10664      esac
10665    fi
10666  fi
10667
10668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10669$as_echo "$ld_shlibs" >&6; }
10670test no = "$ld_shlibs" && can_build_shared=no
10671
10672with_gnu_ld=$with_gnu_ld
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688#
10689# Do we need to explicitly link libc?
10690#
10691case "x$archive_cmds_need_lc" in
10692x|xyes)
10693  # Assume -lc should be added
10694  archive_cmds_need_lc=yes
10695
10696  if test yes,yes = "$GCC,$enable_shared"; then
10697    case $archive_cmds in
10698    *'~'*)
10699      # FIXME: we may have to deal with multi-command sequences.
10700      ;;
10701    '$CC '*)
10702      # Test whether the compiler implicitly links with -lc since on some
10703      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10704      # to ld, don't add -lc before -lgcc.
10705      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10706$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10707if ${lt_cv_archive_cmds_need_lc+:} false; then :
10708  $as_echo_n "(cached) " >&6
10709else
10710  $RM conftest*
10711	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10712
10713	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10714  (eval $ac_compile) 2>&5
10715  ac_status=$?
10716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10717  test $ac_status = 0; } 2>conftest.err; then
10718	  soname=conftest
10719	  lib=conftest
10720	  libobjs=conftest.$ac_objext
10721	  deplibs=
10722	  wl=$lt_prog_compiler_wl
10723	  pic_flag=$lt_prog_compiler_pic
10724	  compiler_flags=-v
10725	  linker_flags=-v
10726	  verstring=
10727	  output_objdir=.
10728	  libname=conftest
10729	  lt_save_allow_undefined_flag=$allow_undefined_flag
10730	  allow_undefined_flag=
10731	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10732  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10733  ac_status=$?
10734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10735  test $ac_status = 0; }
10736	  then
10737	    lt_cv_archive_cmds_need_lc=no
10738	  else
10739	    lt_cv_archive_cmds_need_lc=yes
10740	  fi
10741	  allow_undefined_flag=$lt_save_allow_undefined_flag
10742	else
10743	  cat conftest.err 1>&5
10744	fi
10745	$RM conftest*
10746
10747fi
10748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10749$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10750      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10751      ;;
10752    esac
10753  fi
10754  ;;
10755esac
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10909$as_echo_n "checking dynamic linker characteristics... " >&6; }
10910
10911if test yes = "$GCC"; then
10912  case $host_os in
10913    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10914    *) lt_awk_arg='/^libraries:/' ;;
10915  esac
10916  case $host_os in
10917    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10918    *) lt_sed_strip_eq='s|=/|/|g' ;;
10919  esac
10920  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10921  case $lt_search_path_spec in
10922  *\;*)
10923    # if the path contains ";" then we assume it to be the separator
10924    # otherwise default to the standard path separator (i.e. ":") - it is
10925    # assumed that no part of a normal pathname contains ";" but that should
10926    # okay in the real world where ";" in dirpaths is itself problematic.
10927    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10928    ;;
10929  *)
10930    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10931    ;;
10932  esac
10933  # Ok, now we have the path, separated by spaces, we can step through it
10934  # and add multilib dir if necessary...
10935  lt_tmp_lt_search_path_spec=
10936  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10937  # ...but if some path component already ends with the multilib dir we assume
10938  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10939  case "$lt_multi_os_dir; $lt_search_path_spec " in
10940  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10941    lt_multi_os_dir=
10942    ;;
10943  esac
10944  for lt_sys_path in $lt_search_path_spec; do
10945    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10946      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10947    elif test -n "$lt_multi_os_dir"; then
10948      test -d "$lt_sys_path" && \
10949	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10950    fi
10951  done
10952  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10953BEGIN {RS = " "; FS = "/|\n";} {
10954  lt_foo = "";
10955  lt_count = 0;
10956  for (lt_i = NF; lt_i > 0; lt_i--) {
10957    if ($lt_i != "" && $lt_i != ".") {
10958      if ($lt_i == "..") {
10959        lt_count++;
10960      } else {
10961        if (lt_count == 0) {
10962          lt_foo = "/" $lt_i lt_foo;
10963        } else {
10964          lt_count--;
10965        }
10966      }
10967    }
10968  }
10969  if (lt_foo != "") { lt_freq[lt_foo]++; }
10970  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10971}'`
10972  # AWK program above erroneously prepends '/' to C:/dos/paths
10973  # for these hosts.
10974  case $host_os in
10975    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10976      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10977  esac
10978  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10979else
10980  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10981fi
10982library_names_spec=
10983libname_spec='lib$name'
10984soname_spec=
10985shrext_cmds=.so
10986postinstall_cmds=
10987postuninstall_cmds=
10988finish_cmds=
10989finish_eval=
10990shlibpath_var=
10991shlibpath_overrides_runpath=unknown
10992version_type=none
10993dynamic_linker="$host_os ld.so"
10994sys_lib_dlsearch_path_spec="/lib /usr/lib"
10995need_lib_prefix=unknown
10996hardcode_into_libs=no
10997
10998# when you set need_version to no, make sure it does not cause -set_version
10999# flags to be left without arguments
11000need_version=unknown
11001
11002
11003
11004case $host_os in
11005aix3*)
11006  version_type=linux # correct to gnu/linux during the next big refactor
11007  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11008  shlibpath_var=LIBPATH
11009
11010  # AIX 3 has no versioning support, so we append a major version to the name.
11011  soname_spec='$libname$release$shared_ext$major'
11012  ;;
11013
11014aix[4-9]*)
11015  version_type=linux # correct to gnu/linux during the next big refactor
11016  need_lib_prefix=no
11017  need_version=no
11018  hardcode_into_libs=yes
11019  if test ia64 = "$host_cpu"; then
11020    # AIX 5 supports IA64
11021    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11022    shlibpath_var=LD_LIBRARY_PATH
11023  else
11024    # With GCC up to 2.95.x, collect2 would create an import file
11025    # for dependence libraries.  The import file would start with
11026    # the line '#! .'.  This would cause the generated library to
11027    # depend on '.', always an invalid library.  This was fixed in
11028    # development snapshots of GCC prior to 3.0.
11029    case $host_os in
11030      aix4 | aix4.[01] | aix4.[01].*)
11031      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11032	   echo ' yes '
11033	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11034	:
11035      else
11036	can_build_shared=no
11037      fi
11038      ;;
11039    esac
11040    # Using Import Files as archive members, it is possible to support
11041    # filename-based versioning of shared library archives on AIX. While
11042    # this would work for both with and without runtime linking, it will
11043    # prevent static linking of such archives. So we do filename-based
11044    # shared library versioning with .so extension only, which is used
11045    # when both runtime linking and shared linking is enabled.
11046    # Unfortunately, runtime linking may impact performance, so we do
11047    # not want this to be the default eventually. Also, we use the
11048    # versioned .so libs for executables only if there is the -brtl
11049    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11050    # To allow for filename-based versioning support, we need to create
11051    # libNAME.so.V as an archive file, containing:
11052    # *) an Import File, referring to the versioned filename of the
11053    #    archive as well as the shared archive member, telling the
11054    #    bitwidth (32 or 64) of that shared object, and providing the
11055    #    list of exported symbols of that shared object, eventually
11056    #    decorated with the 'weak' keyword
11057    # *) the shared object with the F_LOADONLY flag set, to really avoid
11058    #    it being seen by the linker.
11059    # At run time we better use the real file rather than another symlink,
11060    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11061
11062    case $with_aix_soname,$aix_use_runtimelinking in
11063    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11064    # soname into executable. Probably we can add versioning support to
11065    # collect2, so additional links can be useful in future.
11066    aix,yes) # traditional libtool
11067      dynamic_linker='AIX unversionable lib.so'
11068      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11069      # instead of lib<name>.a to let people know that these are not
11070      # typical AIX shared libraries.
11071      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11072      ;;
11073    aix,no) # traditional AIX only
11074      dynamic_linker='AIX lib.a(lib.so.V)'
11075      # We preserve .a as extension for shared libraries through AIX4.2
11076      # and later when we are not doing run time linking.
11077      library_names_spec='$libname$release.a $libname.a'
11078      soname_spec='$libname$release$shared_ext$major'
11079      ;;
11080    svr4,*) # full svr4 only
11081      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11082      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11083      # We do not specify a path in Import Files, so LIBPATH fires.
11084      shlibpath_overrides_runpath=yes
11085      ;;
11086    *,yes) # both, prefer svr4
11087      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11088      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11089      # unpreferred sharedlib libNAME.a needs extra handling
11090      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11091      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11092      # We do not specify a path in Import Files, so LIBPATH fires.
11093      shlibpath_overrides_runpath=yes
11094      ;;
11095    *,no) # both, prefer aix
11096      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11097      library_names_spec='$libname$release.a $libname.a'
11098      soname_spec='$libname$release$shared_ext$major'
11099      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11100      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11101      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11102      ;;
11103    esac
11104    shlibpath_var=LIBPATH
11105  fi
11106  ;;
11107
11108amigaos*)
11109  case $host_cpu in
11110  powerpc)
11111    # Since July 2007 AmigaOS4 officially supports .so libraries.
11112    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11113    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11114    ;;
11115  m68k)
11116    library_names_spec='$libname.ixlibrary $libname.a'
11117    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11118    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11119    ;;
11120  esac
11121  ;;
11122
11123beos*)
11124  library_names_spec='$libname$shared_ext'
11125  dynamic_linker="$host_os ld.so"
11126  shlibpath_var=LIBRARY_PATH
11127  ;;
11128
11129bsdi[45]*)
11130  version_type=linux # correct to gnu/linux during the next big refactor
11131  need_version=no
11132  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11133  soname_spec='$libname$release$shared_ext$major'
11134  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11135  shlibpath_var=LD_LIBRARY_PATH
11136  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11137  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11138  # the default ld.so.conf also contains /usr/contrib/lib and
11139  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11140  # libtool to hard-code these into programs
11141  ;;
11142
11143cygwin* | mingw* | pw32* | cegcc*)
11144  version_type=windows
11145  shrext_cmds=.dll
11146  need_version=no
11147  need_lib_prefix=no
11148
11149  case $GCC,$cc_basename in
11150  yes,*)
11151    # gcc
11152    library_names_spec='$libname.dll.a'
11153    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11154    postinstall_cmds='base_file=`basename \$file`~
11155      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11156      dldir=$destdir/`dirname \$dlpath`~
11157      test -d \$dldir || mkdir -p \$dldir~
11158      $install_prog $dir/$dlname \$dldir/$dlname~
11159      chmod a+x \$dldir/$dlname~
11160      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11161        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11162      fi'
11163    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11164      dlpath=$dir/\$dldll~
11165       $RM \$dlpath'
11166    shlibpath_overrides_runpath=yes
11167
11168    case $host_os in
11169    cygwin*)
11170      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11171      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11172
11173      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11174      ;;
11175    mingw* | cegcc*)
11176      # MinGW DLLs use traditional 'lib' prefix
11177      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11178      ;;
11179    pw32*)
11180      # pw32 DLLs use 'pw' prefix rather than 'lib'
11181      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11182      ;;
11183    esac
11184    dynamic_linker='Win32 ld.exe'
11185    ;;
11186
11187  *,cl*)
11188    # Native MSVC
11189    libname_spec='$name'
11190    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11191    library_names_spec='$libname.dll.lib'
11192
11193    case $build_os in
11194    mingw*)
11195      sys_lib_search_path_spec=
11196      lt_save_ifs=$IFS
11197      IFS=';'
11198      for lt_path in $LIB
11199      do
11200        IFS=$lt_save_ifs
11201        # Let DOS variable expansion print the short 8.3 style file name.
11202        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11203        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11204      done
11205      IFS=$lt_save_ifs
11206      # Convert to MSYS style.
11207      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11208      ;;
11209    cygwin*)
11210      # Convert to unix form, then to dos form, then back to unix form
11211      # but this time dos style (no spaces!) so that the unix form looks
11212      # like /cygdrive/c/PROGRA~1:/cygdr...
11213      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11214      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11215      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11216      ;;
11217    *)
11218      sys_lib_search_path_spec=$LIB
11219      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11220        # It is most probably a Windows format PATH.
11221        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11222      else
11223        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11224      fi
11225      # FIXME: find the short name or the path components, as spaces are
11226      # common. (e.g. "Program Files" -> "PROGRA~1")
11227      ;;
11228    esac
11229
11230    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11231    postinstall_cmds='base_file=`basename \$file`~
11232      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11233      dldir=$destdir/`dirname \$dlpath`~
11234      test -d \$dldir || mkdir -p \$dldir~
11235      $install_prog $dir/$dlname \$dldir/$dlname'
11236    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11237      dlpath=$dir/\$dldll~
11238       $RM \$dlpath'
11239    shlibpath_overrides_runpath=yes
11240    dynamic_linker='Win32 link.exe'
11241    ;;
11242
11243  *)
11244    # Assume MSVC wrapper
11245    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11246    dynamic_linker='Win32 ld.exe'
11247    ;;
11248  esac
11249  # FIXME: first we should search . and the directory the executable is in
11250  shlibpath_var=PATH
11251  ;;
11252
11253darwin* | rhapsody*)
11254  dynamic_linker="$host_os dyld"
11255  version_type=darwin
11256  need_lib_prefix=no
11257  need_version=no
11258  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11259  soname_spec='$libname$release$major$shared_ext'
11260  shlibpath_overrides_runpath=yes
11261  shlibpath_var=DYLD_LIBRARY_PATH
11262  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11263
11264  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11265  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11266  ;;
11267
11268dgux*)
11269  version_type=linux # correct to gnu/linux during the next big refactor
11270  need_lib_prefix=no
11271  need_version=no
11272  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11273  soname_spec='$libname$release$shared_ext$major'
11274  shlibpath_var=LD_LIBRARY_PATH
11275  ;;
11276
11277freebsd* | dragonfly*)
11278  # DragonFly does not have aout.  When/if they implement a new
11279  # versioning mechanism, adjust this.
11280  if test -x /usr/bin/objformat; then
11281    objformat=`/usr/bin/objformat`
11282  else
11283    case $host_os in
11284    freebsd[23].*) objformat=aout ;;
11285    *) objformat=elf ;;
11286    esac
11287  fi
11288  version_type=freebsd-$objformat
11289  case $version_type in
11290    freebsd-elf*)
11291      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11292      soname_spec='$libname$release$shared_ext$major'
11293      need_version=no
11294      need_lib_prefix=no
11295      ;;
11296    freebsd-*)
11297      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11298      need_version=yes
11299      ;;
11300  esac
11301  shlibpath_var=LD_LIBRARY_PATH
11302  case $host_os in
11303  freebsd2.*)
11304    shlibpath_overrides_runpath=yes
11305    ;;
11306  freebsd3.[01]* | freebsdelf3.[01]*)
11307    shlibpath_overrides_runpath=yes
11308    hardcode_into_libs=yes
11309    ;;
11310  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11311  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11312    shlibpath_overrides_runpath=no
11313    hardcode_into_libs=yes
11314    ;;
11315  *) # from 4.6 on, and DragonFly
11316    shlibpath_overrides_runpath=yes
11317    hardcode_into_libs=yes
11318    ;;
11319  esac
11320  ;;
11321
11322haiku*)
11323  version_type=linux # correct to gnu/linux during the next big refactor
11324  need_lib_prefix=no
11325  need_version=no
11326  dynamic_linker="$host_os runtime_loader"
11327  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11328  soname_spec='$libname$release$shared_ext$major'
11329  shlibpath_var=LIBRARY_PATH
11330  shlibpath_overrides_runpath=no
11331  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11332  hardcode_into_libs=yes
11333  ;;
11334
11335hpux9* | hpux10* | hpux11*)
11336  # Give a soname corresponding to the major version so that dld.sl refuses to
11337  # link against other versions.
11338  version_type=sunos
11339  need_lib_prefix=no
11340  need_version=no
11341  case $host_cpu in
11342  ia64*)
11343    shrext_cmds='.so'
11344    hardcode_into_libs=yes
11345    dynamic_linker="$host_os dld.so"
11346    shlibpath_var=LD_LIBRARY_PATH
11347    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11348    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11349    soname_spec='$libname$release$shared_ext$major'
11350    if test 32 = "$HPUX_IA64_MODE"; then
11351      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11352      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11353    else
11354      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11355      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11356    fi
11357    ;;
11358  hppa*64*)
11359    shrext_cmds='.sl'
11360    hardcode_into_libs=yes
11361    dynamic_linker="$host_os dld.sl"
11362    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11363    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11364    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11365    soname_spec='$libname$release$shared_ext$major'
11366    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11367    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11368    ;;
11369  *)
11370    shrext_cmds='.sl'
11371    dynamic_linker="$host_os dld.sl"
11372    shlibpath_var=SHLIB_PATH
11373    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11374    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11375    soname_spec='$libname$release$shared_ext$major'
11376    ;;
11377  esac
11378  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11379  postinstall_cmds='chmod 555 $lib'
11380  # or fails outright, so override atomically:
11381  install_override_mode=555
11382  ;;
11383
11384interix[3-9]*)
11385  version_type=linux # correct to gnu/linux during the next big refactor
11386  need_lib_prefix=no
11387  need_version=no
11388  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11389  soname_spec='$libname$release$shared_ext$major'
11390  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11391  shlibpath_var=LD_LIBRARY_PATH
11392  shlibpath_overrides_runpath=no
11393  hardcode_into_libs=yes
11394  ;;
11395
11396irix5* | irix6* | nonstopux*)
11397  case $host_os in
11398    nonstopux*) version_type=nonstopux ;;
11399    *)
11400	if test yes = "$lt_cv_prog_gnu_ld"; then
11401		version_type=linux # correct to gnu/linux during the next big refactor
11402	else
11403		version_type=irix
11404	fi ;;
11405  esac
11406  need_lib_prefix=no
11407  need_version=no
11408  soname_spec='$libname$release$shared_ext$major'
11409  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11410  case $host_os in
11411  irix5* | nonstopux*)
11412    libsuff= shlibsuff=
11413    ;;
11414  *)
11415    case $LD in # libtool.m4 will add one of these switches to LD
11416    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11417      libsuff= shlibsuff= libmagic=32-bit;;
11418    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11419      libsuff=32 shlibsuff=N32 libmagic=N32;;
11420    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11421      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11422    *) libsuff= shlibsuff= libmagic=never-match;;
11423    esac
11424    ;;
11425  esac
11426  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11427  shlibpath_overrides_runpath=no
11428  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11429  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11430  hardcode_into_libs=yes
11431  ;;
11432
11433# No shared lib support for Linux oldld, aout, or coff.
11434linux*oldld* | linux*aout* | linux*coff*)
11435  dynamic_linker=no
11436  ;;
11437
11438linux*android*)
11439  version_type=none # Android doesn't support versioned libraries.
11440  need_lib_prefix=no
11441  need_version=no
11442  library_names_spec='$libname$release$shared_ext'
11443  soname_spec='$libname$release$shared_ext'
11444  finish_cmds=
11445  shlibpath_var=LD_LIBRARY_PATH
11446  shlibpath_overrides_runpath=yes
11447
11448  # This implies no fast_install, which is unacceptable.
11449  # Some rework will be needed to allow for fast_install
11450  # before this can be enabled.
11451  hardcode_into_libs=yes
11452
11453  dynamic_linker='Android linker'
11454  # Don't embed -rpath directories since the linker doesn't support them.
11455  hardcode_libdir_flag_spec='-L$libdir'
11456  ;;
11457
11458# This must be glibc/ELF.
11459linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11460  version_type=linux # correct to gnu/linux during the next big refactor
11461  need_lib_prefix=no
11462  need_version=no
11463  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11464  soname_spec='$libname$release$shared_ext$major'
11465  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11466  shlibpath_var=LD_LIBRARY_PATH
11467  shlibpath_overrides_runpath=no
11468
11469  # Some binutils ld are patched to set DT_RUNPATH
11470  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11471  $as_echo_n "(cached) " >&6
11472else
11473  lt_cv_shlibpath_overrides_runpath=no
11474    save_LDFLAGS=$LDFLAGS
11475    save_libdir=$libdir
11476    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11477	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11478    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479/* end confdefs.h.  */
11480
11481int
11482main ()
11483{
11484
11485  ;
11486  return 0;
11487}
11488_ACEOF
11489if ac_fn_c_try_link "$LINENO"; then :
11490  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11491  lt_cv_shlibpath_overrides_runpath=yes
11492fi
11493fi
11494rm -f core conftest.err conftest.$ac_objext \
11495    conftest$ac_exeext conftest.$ac_ext
11496    LDFLAGS=$save_LDFLAGS
11497    libdir=$save_libdir
11498
11499fi
11500
11501  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11502
11503  # This implies no fast_install, which is unacceptable.
11504  # Some rework will be needed to allow for fast_install
11505  # before this can be enabled.
11506  hardcode_into_libs=yes
11507
11508  # Ideally, we could use ldconfig to report *all* directores which are
11509  # searched for libraries, however this is still not possible.  Aside from not
11510  # being certain /sbin/ldconfig is available, command
11511  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11512  # even though it is searched at run-time.  Try to do the best guess by
11513  # appending ld.so.conf contents (and includes) to the search path.
11514  if test -f /etc/ld.so.conf; then
11515    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' ' '`
11516    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11517  fi
11518
11519  # We used to test for /lib/ld.so.1 and disable shared libraries on
11520  # powerpc, because MkLinux only supported shared libraries with the
11521  # GNU dynamic linker.  Since this was broken with cross compilers,
11522  # most powerpc-linux boxes support dynamic linking these days and
11523  # people can always --disable-shared, the test was removed, and we
11524  # assume the GNU/Linux dynamic linker is in use.
11525  dynamic_linker='GNU/Linux ld.so'
11526  ;;
11527
11528netbsdelf*-gnu)
11529  version_type=linux
11530  need_lib_prefix=no
11531  need_version=no
11532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11533  soname_spec='${libname}${release}${shared_ext}$major'
11534  shlibpath_var=LD_LIBRARY_PATH
11535  shlibpath_overrides_runpath=no
11536  hardcode_into_libs=yes
11537  dynamic_linker='NetBSD ld.elf_so'
11538  ;;
11539
11540netbsd*)
11541  version_type=sunos
11542  need_lib_prefix=no
11543  need_version=no
11544  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11545    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11546    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11547    dynamic_linker='NetBSD (a.out) ld.so'
11548  else
11549    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11550    soname_spec='$libname$release$shared_ext$major'
11551    dynamic_linker='NetBSD ld.elf_so'
11552  fi
11553  shlibpath_var=LD_LIBRARY_PATH
11554  shlibpath_overrides_runpath=yes
11555  hardcode_into_libs=yes
11556  ;;
11557
11558newsos6)
11559  version_type=linux # correct to gnu/linux during the next big refactor
11560  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11561  shlibpath_var=LD_LIBRARY_PATH
11562  shlibpath_overrides_runpath=yes
11563  ;;
11564
11565*nto* | *qnx*)
11566  version_type=qnx
11567  need_lib_prefix=no
11568  need_version=no
11569  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11570  soname_spec='$libname$release$shared_ext$major'
11571  shlibpath_var=LD_LIBRARY_PATH
11572  shlibpath_overrides_runpath=no
11573  hardcode_into_libs=yes
11574  dynamic_linker='ldqnx.so'
11575  ;;
11576
11577openbsd* | bitrig*)
11578  version_type=sunos
11579  sys_lib_dlsearch_path_spec=/usr/lib
11580  need_lib_prefix=no
11581  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11582    need_version=no
11583  else
11584    need_version=yes
11585  fi
11586  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11587  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11588  shlibpath_var=LD_LIBRARY_PATH
11589  shlibpath_overrides_runpath=yes
11590  ;;
11591
11592os2*)
11593  libname_spec='$name'
11594  version_type=windows
11595  shrext_cmds=.dll
11596  need_version=no
11597  need_lib_prefix=no
11598  # OS/2 can only load a DLL with a base name of 8 characters or less.
11599  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11600    v=$($ECHO $release$versuffix | tr -d .-);
11601    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11602    $ECHO $n$v`$shared_ext'
11603  library_names_spec='${libname}_dll.$libext'
11604  dynamic_linker='OS/2 ld.exe'
11605  shlibpath_var=BEGINLIBPATH
11606  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11607  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11608  postinstall_cmds='base_file=`basename \$file`~
11609    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11610    dldir=$destdir/`dirname \$dlpath`~
11611    test -d \$dldir || mkdir -p \$dldir~
11612    $install_prog $dir/$dlname \$dldir/$dlname~
11613    chmod a+x \$dldir/$dlname~
11614    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11615      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11616    fi'
11617  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11618    dlpath=$dir/\$dldll~
11619    $RM \$dlpath'
11620  ;;
11621
11622osf3* | osf4* | osf5*)
11623  version_type=osf
11624  need_lib_prefix=no
11625  need_version=no
11626  soname_spec='$libname$release$shared_ext$major'
11627  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11628  shlibpath_var=LD_LIBRARY_PATH
11629  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11630  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11631  ;;
11632
11633rdos*)
11634  dynamic_linker=no
11635  ;;
11636
11637solaris*)
11638  version_type=linux # correct to gnu/linux during the next big refactor
11639  need_lib_prefix=no
11640  need_version=no
11641  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11642  soname_spec='$libname$release$shared_ext$major'
11643  shlibpath_var=LD_LIBRARY_PATH
11644  shlibpath_overrides_runpath=yes
11645  hardcode_into_libs=yes
11646  # ldd complains unless libraries are executable
11647  postinstall_cmds='chmod +x $lib'
11648  ;;
11649
11650sunos4*)
11651  version_type=sunos
11652  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11653  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11654  shlibpath_var=LD_LIBRARY_PATH
11655  shlibpath_overrides_runpath=yes
11656  if test yes = "$with_gnu_ld"; then
11657    need_lib_prefix=no
11658  fi
11659  need_version=yes
11660  ;;
11661
11662sysv4 | sysv4.3*)
11663  version_type=linux # correct to gnu/linux during the next big refactor
11664  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11665  soname_spec='$libname$release$shared_ext$major'
11666  shlibpath_var=LD_LIBRARY_PATH
11667  case $host_vendor in
11668    sni)
11669      shlibpath_overrides_runpath=no
11670      need_lib_prefix=no
11671      runpath_var=LD_RUN_PATH
11672      ;;
11673    siemens)
11674      need_lib_prefix=no
11675      ;;
11676    motorola)
11677      need_lib_prefix=no
11678      need_version=no
11679      shlibpath_overrides_runpath=no
11680      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11681      ;;
11682  esac
11683  ;;
11684
11685sysv4*MP*)
11686  if test -d /usr/nec; then
11687    version_type=linux # correct to gnu/linux during the next big refactor
11688    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11689    soname_spec='$libname$shared_ext.$major'
11690    shlibpath_var=LD_LIBRARY_PATH
11691  fi
11692  ;;
11693
11694sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11695  version_type=sco
11696  need_lib_prefix=no
11697  need_version=no
11698  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11699  soname_spec='$libname$release$shared_ext$major'
11700  shlibpath_var=LD_LIBRARY_PATH
11701  shlibpath_overrides_runpath=yes
11702  hardcode_into_libs=yes
11703  if test yes = "$with_gnu_ld"; then
11704    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11705  else
11706    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11707    case $host_os in
11708      sco3.2v5*)
11709        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11710	;;
11711    esac
11712  fi
11713  sys_lib_dlsearch_path_spec='/usr/lib'
11714  ;;
11715
11716tpf*)
11717  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11718  version_type=linux # correct to gnu/linux during the next big refactor
11719  need_lib_prefix=no
11720  need_version=no
11721  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11722  shlibpath_var=LD_LIBRARY_PATH
11723  shlibpath_overrides_runpath=no
11724  hardcode_into_libs=yes
11725  ;;
11726
11727uts4*)
11728  version_type=linux # correct to gnu/linux during the next big refactor
11729  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11730  soname_spec='$libname$release$shared_ext$major'
11731  shlibpath_var=LD_LIBRARY_PATH
11732  ;;
11733
11734*)
11735  dynamic_linker=no
11736  ;;
11737esac
11738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11739$as_echo "$dynamic_linker" >&6; }
11740test no = "$dynamic_linker" && can_build_shared=no
11741
11742variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11743if test yes = "$GCC"; then
11744  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11745fi
11746
11747if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11748  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11749fi
11750
11751if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11752  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11753fi
11754
11755# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11756configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11757
11758# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11759func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11760
11761# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11762configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11861$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11862hardcode_action=
11863if test -n "$hardcode_libdir_flag_spec" ||
11864   test -n "$runpath_var" ||
11865   test yes = "$hardcode_automatic"; then
11866
11867  # We can hardcode non-existent directories.
11868  if test no != "$hardcode_direct" &&
11869     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11870     # have to relink, otherwise we might link with an installed library
11871     # when we should be linking with a yet-to-be-installed one
11872     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11873     test no != "$hardcode_minus_L"; then
11874    # Linking always hardcodes the temporary library directory.
11875    hardcode_action=relink
11876  else
11877    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11878    hardcode_action=immediate
11879  fi
11880else
11881  # We cannot hardcode anything, or else we can only hardcode existing
11882  # directories.
11883  hardcode_action=unsupported
11884fi
11885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11886$as_echo "$hardcode_action" >&6; }
11887
11888if test relink = "$hardcode_action" ||
11889   test yes = "$inherit_rpath"; then
11890  # Fast installation is not supported
11891  enable_fast_install=no
11892elif test yes = "$shlibpath_overrides_runpath" ||
11893     test no = "$enable_shared"; then
11894  # Fast installation is not necessary
11895  enable_fast_install=needless
11896fi
11897
11898
11899
11900
11901
11902
11903  if test yes != "$enable_dlopen"; then
11904  enable_dlopen=unknown
11905  enable_dlopen_self=unknown
11906  enable_dlopen_self_static=unknown
11907else
11908  lt_cv_dlopen=no
11909  lt_cv_dlopen_libs=
11910
11911  case $host_os in
11912  beos*)
11913    lt_cv_dlopen=load_add_on
11914    lt_cv_dlopen_libs=
11915    lt_cv_dlopen_self=yes
11916    ;;
11917
11918  mingw* | pw32* | cegcc*)
11919    lt_cv_dlopen=LoadLibrary
11920    lt_cv_dlopen_libs=
11921    ;;
11922
11923  cygwin*)
11924    lt_cv_dlopen=dlopen
11925    lt_cv_dlopen_libs=
11926    ;;
11927
11928  darwin*)
11929    # if libdl is installed we need to link against it
11930    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11931$as_echo_n "checking for dlopen in -ldl... " >&6; }
11932if ${ac_cv_lib_dl_dlopen+:} false; then :
11933  $as_echo_n "(cached) " >&6
11934else
11935  ac_check_lib_save_LIBS=$LIBS
11936LIBS="-ldl  $LIBS"
11937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938/* end confdefs.h.  */
11939
11940/* Override any GCC internal prototype to avoid an error.
11941   Use char because int might match the return type of a GCC
11942   builtin and then its argument prototype would still apply.  */
11943#ifdef __cplusplus
11944extern "C"
11945#endif
11946char dlopen ();
11947int
11948main ()
11949{
11950return dlopen ();
11951  ;
11952  return 0;
11953}
11954_ACEOF
11955if ac_fn_c_try_link "$LINENO"; then :
11956  ac_cv_lib_dl_dlopen=yes
11957else
11958  ac_cv_lib_dl_dlopen=no
11959fi
11960rm -f core conftest.err conftest.$ac_objext \
11961    conftest$ac_exeext conftest.$ac_ext
11962LIBS=$ac_check_lib_save_LIBS
11963fi
11964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11965$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11966if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11967  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11968else
11969
11970    lt_cv_dlopen=dyld
11971    lt_cv_dlopen_libs=
11972    lt_cv_dlopen_self=yes
11973
11974fi
11975
11976    ;;
11977
11978  tpf*)
11979    # Don't try to run any link tests for TPF.  We know it's impossible
11980    # because TPF is a cross-compiler, and we know how we open DSOs.
11981    lt_cv_dlopen=dlopen
11982    lt_cv_dlopen_libs=
11983    lt_cv_dlopen_self=no
11984    ;;
11985
11986  *)
11987    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11988if test "x$ac_cv_func_shl_load" = xyes; then :
11989  lt_cv_dlopen=shl_load
11990else
11991  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11992$as_echo_n "checking for shl_load in -ldld... " >&6; }
11993if ${ac_cv_lib_dld_shl_load+:} false; then :
11994  $as_echo_n "(cached) " >&6
11995else
11996  ac_check_lib_save_LIBS=$LIBS
11997LIBS="-ldld  $LIBS"
11998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999/* end confdefs.h.  */
12000
12001/* Override any GCC internal prototype to avoid an error.
12002   Use char because int might match the return type of a GCC
12003   builtin and then its argument prototype would still apply.  */
12004#ifdef __cplusplus
12005extern "C"
12006#endif
12007char shl_load ();
12008int
12009main ()
12010{
12011return shl_load ();
12012  ;
12013  return 0;
12014}
12015_ACEOF
12016if ac_fn_c_try_link "$LINENO"; then :
12017  ac_cv_lib_dld_shl_load=yes
12018else
12019  ac_cv_lib_dld_shl_load=no
12020fi
12021rm -f core conftest.err conftest.$ac_objext \
12022    conftest$ac_exeext conftest.$ac_ext
12023LIBS=$ac_check_lib_save_LIBS
12024fi
12025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12026$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12027if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12028  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12029else
12030  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12031if test "x$ac_cv_func_dlopen" = xyes; then :
12032  lt_cv_dlopen=dlopen
12033else
12034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12035$as_echo_n "checking for dlopen in -ldl... " >&6; }
12036if ${ac_cv_lib_dl_dlopen+:} false; then :
12037  $as_echo_n "(cached) " >&6
12038else
12039  ac_check_lib_save_LIBS=$LIBS
12040LIBS="-ldl  $LIBS"
12041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042/* end confdefs.h.  */
12043
12044/* Override any GCC internal prototype to avoid an error.
12045   Use char because int might match the return type of a GCC
12046   builtin and then its argument prototype would still apply.  */
12047#ifdef __cplusplus
12048extern "C"
12049#endif
12050char dlopen ();
12051int
12052main ()
12053{
12054return dlopen ();
12055  ;
12056  return 0;
12057}
12058_ACEOF
12059if ac_fn_c_try_link "$LINENO"; then :
12060  ac_cv_lib_dl_dlopen=yes
12061else
12062  ac_cv_lib_dl_dlopen=no
12063fi
12064rm -f core conftest.err conftest.$ac_objext \
12065    conftest$ac_exeext conftest.$ac_ext
12066LIBS=$ac_check_lib_save_LIBS
12067fi
12068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12069$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12070if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12071  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12072else
12073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12074$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12075if ${ac_cv_lib_svld_dlopen+:} false; then :
12076  $as_echo_n "(cached) " >&6
12077else
12078  ac_check_lib_save_LIBS=$LIBS
12079LIBS="-lsvld  $LIBS"
12080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081/* end confdefs.h.  */
12082
12083/* Override any GCC internal prototype to avoid an error.
12084   Use char because int might match the return type of a GCC
12085   builtin and then its argument prototype would still apply.  */
12086#ifdef __cplusplus
12087extern "C"
12088#endif
12089char dlopen ();
12090int
12091main ()
12092{
12093return dlopen ();
12094  ;
12095  return 0;
12096}
12097_ACEOF
12098if ac_fn_c_try_link "$LINENO"; then :
12099  ac_cv_lib_svld_dlopen=yes
12100else
12101  ac_cv_lib_svld_dlopen=no
12102fi
12103rm -f core conftest.err conftest.$ac_objext \
12104    conftest$ac_exeext conftest.$ac_ext
12105LIBS=$ac_check_lib_save_LIBS
12106fi
12107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12108$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12109if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12110  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12111else
12112  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12113$as_echo_n "checking for dld_link in -ldld... " >&6; }
12114if ${ac_cv_lib_dld_dld_link+:} false; then :
12115  $as_echo_n "(cached) " >&6
12116else
12117  ac_check_lib_save_LIBS=$LIBS
12118LIBS="-ldld  $LIBS"
12119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120/* end confdefs.h.  */
12121
12122/* Override any GCC internal prototype to avoid an error.
12123   Use char because int might match the return type of a GCC
12124   builtin and then its argument prototype would still apply.  */
12125#ifdef __cplusplus
12126extern "C"
12127#endif
12128char dld_link ();
12129int
12130main ()
12131{
12132return dld_link ();
12133  ;
12134  return 0;
12135}
12136_ACEOF
12137if ac_fn_c_try_link "$LINENO"; then :
12138  ac_cv_lib_dld_dld_link=yes
12139else
12140  ac_cv_lib_dld_dld_link=no
12141fi
12142rm -f core conftest.err conftest.$ac_objext \
12143    conftest$ac_exeext conftest.$ac_ext
12144LIBS=$ac_check_lib_save_LIBS
12145fi
12146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12147$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12148if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12149  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12150fi
12151
12152
12153fi
12154
12155
12156fi
12157
12158
12159fi
12160
12161
12162fi
12163
12164
12165fi
12166
12167    ;;
12168  esac
12169
12170  if test no = "$lt_cv_dlopen"; then
12171    enable_dlopen=no
12172  else
12173    enable_dlopen=yes
12174  fi
12175
12176  case $lt_cv_dlopen in
12177  dlopen)
12178    save_CPPFLAGS=$CPPFLAGS
12179    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12180
12181    save_LDFLAGS=$LDFLAGS
12182    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12183
12184    save_LIBS=$LIBS
12185    LIBS="$lt_cv_dlopen_libs $LIBS"
12186
12187    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12188$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12189if ${lt_cv_dlopen_self+:} false; then :
12190  $as_echo_n "(cached) " >&6
12191else
12192  	  if test yes = "$cross_compiling"; then :
12193  lt_cv_dlopen_self=cross
12194else
12195  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12196  lt_status=$lt_dlunknown
12197  cat > conftest.$ac_ext <<_LT_EOF
12198#line $LINENO "configure"
12199#include "confdefs.h"
12200
12201#if HAVE_DLFCN_H
12202#include <dlfcn.h>
12203#endif
12204
12205#include <stdio.h>
12206
12207#ifdef RTLD_GLOBAL
12208#  define LT_DLGLOBAL		RTLD_GLOBAL
12209#else
12210#  ifdef DL_GLOBAL
12211#    define LT_DLGLOBAL		DL_GLOBAL
12212#  else
12213#    define LT_DLGLOBAL		0
12214#  endif
12215#endif
12216
12217/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12218   find out it does not work in some platform. */
12219#ifndef LT_DLLAZY_OR_NOW
12220#  ifdef RTLD_LAZY
12221#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12222#  else
12223#    ifdef DL_LAZY
12224#      define LT_DLLAZY_OR_NOW		DL_LAZY
12225#    else
12226#      ifdef RTLD_NOW
12227#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12228#      else
12229#        ifdef DL_NOW
12230#          define LT_DLLAZY_OR_NOW	DL_NOW
12231#        else
12232#          define LT_DLLAZY_OR_NOW	0
12233#        endif
12234#      endif
12235#    endif
12236#  endif
12237#endif
12238
12239/* When -fvisibility=hidden is used, assume the code has been annotated
12240   correspondingly for the symbols needed.  */
12241#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12242int fnord () __attribute__((visibility("default")));
12243#endif
12244
12245int fnord () { return 42; }
12246int main ()
12247{
12248  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12249  int status = $lt_dlunknown;
12250
12251  if (self)
12252    {
12253      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12254      else
12255        {
12256	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12257          else puts (dlerror ());
12258	}
12259      /* dlclose (self); */
12260    }
12261  else
12262    puts (dlerror ());
12263
12264  return status;
12265}
12266_LT_EOF
12267  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12268  (eval $ac_link) 2>&5
12269  ac_status=$?
12270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12271  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12272    (./conftest; exit; ) >&5 2>/dev/null
12273    lt_status=$?
12274    case x$lt_status in
12275      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12276      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12277      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12278    esac
12279  else :
12280    # compilation failed
12281    lt_cv_dlopen_self=no
12282  fi
12283fi
12284rm -fr conftest*
12285
12286
12287fi
12288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12289$as_echo "$lt_cv_dlopen_self" >&6; }
12290
12291    if test yes = "$lt_cv_dlopen_self"; then
12292      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12293      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12294$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12295if ${lt_cv_dlopen_self_static+:} false; then :
12296  $as_echo_n "(cached) " >&6
12297else
12298  	  if test yes = "$cross_compiling"; then :
12299  lt_cv_dlopen_self_static=cross
12300else
12301  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12302  lt_status=$lt_dlunknown
12303  cat > conftest.$ac_ext <<_LT_EOF
12304#line $LINENO "configure"
12305#include "confdefs.h"
12306
12307#if HAVE_DLFCN_H
12308#include <dlfcn.h>
12309#endif
12310
12311#include <stdio.h>
12312
12313#ifdef RTLD_GLOBAL
12314#  define LT_DLGLOBAL		RTLD_GLOBAL
12315#else
12316#  ifdef DL_GLOBAL
12317#    define LT_DLGLOBAL		DL_GLOBAL
12318#  else
12319#    define LT_DLGLOBAL		0
12320#  endif
12321#endif
12322
12323/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12324   find out it does not work in some platform. */
12325#ifndef LT_DLLAZY_OR_NOW
12326#  ifdef RTLD_LAZY
12327#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12328#  else
12329#    ifdef DL_LAZY
12330#      define LT_DLLAZY_OR_NOW		DL_LAZY
12331#    else
12332#      ifdef RTLD_NOW
12333#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12334#      else
12335#        ifdef DL_NOW
12336#          define LT_DLLAZY_OR_NOW	DL_NOW
12337#        else
12338#          define LT_DLLAZY_OR_NOW	0
12339#        endif
12340#      endif
12341#    endif
12342#  endif
12343#endif
12344
12345/* When -fvisibility=hidden is used, assume the code has been annotated
12346   correspondingly for the symbols needed.  */
12347#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12348int fnord () __attribute__((visibility("default")));
12349#endif
12350
12351int fnord () { return 42; }
12352int main ()
12353{
12354  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12355  int status = $lt_dlunknown;
12356
12357  if (self)
12358    {
12359      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12360      else
12361        {
12362	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12363          else puts (dlerror ());
12364	}
12365      /* dlclose (self); */
12366    }
12367  else
12368    puts (dlerror ());
12369
12370  return status;
12371}
12372_LT_EOF
12373  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12374  (eval $ac_link) 2>&5
12375  ac_status=$?
12376  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12377  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12378    (./conftest; exit; ) >&5 2>/dev/null
12379    lt_status=$?
12380    case x$lt_status in
12381      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12382      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12383      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12384    esac
12385  else :
12386    # compilation failed
12387    lt_cv_dlopen_self_static=no
12388  fi
12389fi
12390rm -fr conftest*
12391
12392
12393fi
12394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12395$as_echo "$lt_cv_dlopen_self_static" >&6; }
12396    fi
12397
12398    CPPFLAGS=$save_CPPFLAGS
12399    LDFLAGS=$save_LDFLAGS
12400    LIBS=$save_LIBS
12401    ;;
12402  esac
12403
12404  case $lt_cv_dlopen_self in
12405  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12406  *) enable_dlopen_self=unknown ;;
12407  esac
12408
12409  case $lt_cv_dlopen_self_static in
12410  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12411  *) enable_dlopen_self_static=unknown ;;
12412  esac
12413fi
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431striplib=
12432old_striplib=
12433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12434$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12435if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12436  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12437  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12439$as_echo "yes" >&6; }
12440else
12441# FIXME - insert some real tests, host_os isn't really good enough
12442  case $host_os in
12443  darwin*)
12444    if test -n "$STRIP"; then
12445      striplib="$STRIP -x"
12446      old_striplib="$STRIP -S"
12447      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12448$as_echo "yes" >&6; }
12449    else
12450      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12451$as_echo "no" >&6; }
12452    fi
12453    ;;
12454  *)
12455    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456$as_echo "no" >&6; }
12457    ;;
12458  esac
12459fi
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472  # Report what library types will actually be built
12473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12474$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12476$as_echo "$can_build_shared" >&6; }
12477
12478  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12479$as_echo_n "checking whether to build shared libraries... " >&6; }
12480  test no = "$can_build_shared" && enable_shared=no
12481
12482  # On AIX, shared libraries and static libraries use the same namespace, and
12483  # are all built from PIC.
12484  case $host_os in
12485  aix3*)
12486    test yes = "$enable_shared" && enable_static=no
12487    if test -n "$RANLIB"; then
12488      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12489      postinstall_cmds='$RANLIB $lib'
12490    fi
12491    ;;
12492
12493  aix[4-9]*)
12494    if test ia64 != "$host_cpu"; then
12495      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12496      yes,aix,yes) ;;			# shared object as lib.so file only
12497      yes,svr4,*) ;;			# shared object as lib.so archive member only
12498      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12499      esac
12500    fi
12501    ;;
12502  esac
12503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12504$as_echo "$enable_shared" >&6; }
12505
12506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12507$as_echo_n "checking whether to build static libraries... " >&6; }
12508  # Make sure either enable_shared or enable_static is yes.
12509  test yes = "$enable_shared" || enable_static=yes
12510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12511$as_echo "$enable_static" >&6; }
12512
12513
12514
12515
12516fi
12517ac_ext=c
12518ac_cpp='$CPP $CPPFLAGS'
12519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12521ac_compiler_gnu=$ac_cv_c_compiler_gnu
12522
12523CC=$lt_save_CC
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539        ac_config_commands="$ac_config_commands libtool"
12540
12541
12542
12543
12544# Only expand once:
12545
12546
12547
12548#---------------------------------------------------------------------------
12549# Set misc options
12550
12551# By default, do build with -Wall, unless the user asks not to
12552wall_CFLAGS=-Wall
12553# Check whether --enable-wall was given.
12554if test "${enable_wall+set}" = set; then :
12555  enableval=$enable_wall; case "$enableval" in #(
12556  yes) :
12557    wall_CFLAGS=-Wall ;; #(
12558  *) :
12559    wall_CFLAGS="" ;; #(
12560  *) :
12561     ;;
12562esac
12563fi
12564
12565wall_CFLAGS=${wall_CFLAGS}
12566
12567
12568# For releases, do not build with -Werror, unless the user explicitly
12569# requests to build with -Werror.
12570# For the devel tree, do build with -Werror by default, unless user
12571# explicitly disables -Werror
12572if test "$(${srcdir}/scripts/version.sh --internal)" = "git"; then :
12573  werror_CFLAGS=-Werror
12574fi
12575# Check whether --enable-werror was given.
12576if test "${enable_werror+set}" = set; then :
12577  enableval=$enable_werror; case "$enableval" in #(
12578  yes) :
12579    werror_CFLAGS=-Werror ;; #(
12580  *) :
12581    werror_CFLAGS="" ;; #(
12582  *) :
12583     ;;
12584esac
12585fi
12586
12587werror_CFLAGS=${werror_CFLAGS}
12588
12589
12590# Although there is a default (="linux") in the code, we do provide
12591# a default here, to get a consistent autostuff behavior
12592# Check whether --enable-root-menu-prompt was given.
12593if test "${enable_root_menu_prompt+set}" = set; then :
12594  enableval=$enable_root_menu_prompt; case "$enableval" in #(
12595  yes) :
12596    root_menu=Configuration ;; #(
12597  no) :
12598    root_menu= ;; #(
12599  *) :
12600    # Escape the $ signs, otherwise they would get munged by make
12601                root_menu="$( echo "$enableval" |sed -e 's/\$/\\$$/g;' )" ;;
12602esac
12603fi
12604
12605root_menu=${root_menu=Configuration}
12606
12607
12608# Check whether --enable-config-prefix was given.
12609if test "${enable_config_prefix+set}" = set; then :
12610  enableval=$enable_config_prefix; case "$enableval" in #(
12611  *" "*) :
12612    as_fn_error $? "config prefix can not contain spaces: '$enableval'" "$LINENO" 5 ;; #(
12613  yes) :
12614    config_prefix=CONFIG_ ;; #(
12615  no) :
12616    config_prefix= ;; #(
12617  *) :
12618    config_prefix=$enableval ;;
12619esac
12620fi
12621
12622config_prefix=${config_prefix-CONFIG_}
12623
12624
12625# Check whether --enable-utils was given.
12626if test "${enable_utils+set}" = set; then :
12627  enableval=$enable_utils;
12628fi
12629
12630enable_utils=${enable_utils:-yes}
12631
12632
12633# Check whether --enable-L10n was given.
12634if test "${enable_L10n+set}" = set; then :
12635  enableval=$enable_L10n;
12636fi
12637
12638enable_L10n=${enable_L10n:-yes}
12639
12640
12641#----------------------------------------
12642# Options to selectively enable/disable frontends
12643# All are selected by default
12644# Check whether --enable-kconfig was given.
12645if test "${enable_kconfig+set}" = set; then :
12646  enableval=$enable_kconfig;
12647fi
12648
12649enable_kconfig=${enable_kconfig:-yes}
12650
12651
12652# Check whether --enable-conf was given.
12653if test "${enable_conf+set}" = set; then :
12654  enableval=$enable_conf;
12655fi
12656
12657enable_conf=${enable_conf:-auto}
12658
12659# Check whether --enable-mconf was given.
12660if test "${enable_mconf+set}" = set; then :
12661  enableval=$enable_mconf;
12662fi
12663
12664enable_mconf=${enable_mconf:-auto}
12665
12666# Check whether --enable-nconf was given.
12667if test "${enable_nconf+set}" = set; then :
12668  enableval=$enable_nconf;
12669fi
12670
12671enable_nconf=${enable_nconf:-auto}
12672
12673# Check whether --enable-gconf was given.
12674if test "${enable_gconf+set}" = set; then :
12675  enableval=$enable_gconf;
12676fi
12677
12678enable_gconf=${enable_gconf:-auto}
12679
12680# Check whether --enable-qconf was given.
12681if test "${enable_qconf+set}" = set; then :
12682  enableval=$enable_qconf;
12683fi
12684
12685enable_qconf=${enable_qconf:-auto}
12686
12687
12688# Check whether --enable-frontends was given.
12689if test "${enable_frontends+set}" = set; then :
12690  enableval=$enable_frontends; for f in conf mconf nconf gconf qconf; do
12691        case "$enableval" in #(
12692  yes) :
12693    eval enable_$f=yes ;; #(
12694  "$f") :
12695    eval enable_$f=yes ;; #(
12696  "$f",*) :
12697    eval enable_$f=yes ;; #(
12698  *,"$f") :
12699    eval enable_$f=yes ;; #(
12700  *,"$f",*) :
12701    eval enable_$f=yes ;; #(
12702  *) :
12703    eval enable_$f=no ;;
12704esac
12705     done
12706fi
12707
12708
12709
12710#----------------------------------------
12711# What extra CFLAGS we will be using
12712kf_CFLAGS="$wall_CFLAGS $werror_CFLAGS"
12713
12714
12715#----------------------------------------
12716# Dependencies that will be needed, depending on the frontends
12717case "$enable_mconf":"$enable_nconf" in #(
12718  *yes*) :
12719    need_curses=yes ;; #(
12720  *auto*) :
12721    need_curses=auto ;; #(
12722  *) :
12723    need_curses=no ;;
12724esac
12725need_panel_menu="$enable_nconf"
12726case "$enable_gconf":"$enable_qconf" in #(
12727  *yes*) :
12728    need_pkgconfig=yes ;; #(
12729  *auto*) :
12730    need_pkgconfig=yes ;; #(
12731  *) :
12732    need_pkgconfig=no  ;;
12733esac
12734need_gtk="$enable_gconf"
12735need_qt="$enable_qconf"
12736
12737#---------------------------------------------------------------------------
12738# Now check we have the required stuff
12739
12740#----------------------------------------
12741# Some program checks
12742ac_ext=c
12743ac_cpp='$CPP $CPPFLAGS'
12744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12746ac_compiler_gnu=$ac_cv_c_compiler_gnu
12747if test -n "$ac_tool_prefix"; then
12748  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12749set dummy ${ac_tool_prefix}gcc; ac_word=$2
12750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12751$as_echo_n "checking for $ac_word... " >&6; }
12752if ${ac_cv_prog_CC+:} false; then :
12753  $as_echo_n "(cached) " >&6
12754else
12755  if test -n "$CC"; then
12756  ac_cv_prog_CC="$CC" # Let the user override the test.
12757else
12758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12759for as_dir in $PATH
12760do
12761  IFS=$as_save_IFS
12762  test -z "$as_dir" && as_dir=.
12763    for ac_exec_ext in '' $ac_executable_extensions; do
12764  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12765    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12766    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12767    break 2
12768  fi
12769done
12770  done
12771IFS=$as_save_IFS
12772
12773fi
12774fi
12775CC=$ac_cv_prog_CC
12776if test -n "$CC"; then
12777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12778$as_echo "$CC" >&6; }
12779else
12780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781$as_echo "no" >&6; }
12782fi
12783
12784
12785fi
12786if test -z "$ac_cv_prog_CC"; then
12787  ac_ct_CC=$CC
12788  # Extract the first word of "gcc", so it can be a program name with args.
12789set dummy gcc; ac_word=$2
12790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12791$as_echo_n "checking for $ac_word... " >&6; }
12792if ${ac_cv_prog_ac_ct_CC+:} false; then :
12793  $as_echo_n "(cached) " >&6
12794else
12795  if test -n "$ac_ct_CC"; then
12796  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12797else
12798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12799for as_dir in $PATH
12800do
12801  IFS=$as_save_IFS
12802  test -z "$as_dir" && as_dir=.
12803    for ac_exec_ext in '' $ac_executable_extensions; do
12804  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12805    ac_cv_prog_ac_ct_CC="gcc"
12806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12807    break 2
12808  fi
12809done
12810  done
12811IFS=$as_save_IFS
12812
12813fi
12814fi
12815ac_ct_CC=$ac_cv_prog_ac_ct_CC
12816if test -n "$ac_ct_CC"; then
12817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12818$as_echo "$ac_ct_CC" >&6; }
12819else
12820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12821$as_echo "no" >&6; }
12822fi
12823
12824  if test "x$ac_ct_CC" = x; then
12825    CC=""
12826  else
12827    case $cross_compiling:$ac_tool_warned in
12828yes:)
12829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12831ac_tool_warned=yes ;;
12832esac
12833    CC=$ac_ct_CC
12834  fi
12835else
12836  CC="$ac_cv_prog_CC"
12837fi
12838
12839if test -z "$CC"; then
12840          if test -n "$ac_tool_prefix"; then
12841    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12842set dummy ${ac_tool_prefix}cc; ac_word=$2
12843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12844$as_echo_n "checking for $ac_word... " >&6; }
12845if ${ac_cv_prog_CC+:} false; then :
12846  $as_echo_n "(cached) " >&6
12847else
12848  if test -n "$CC"; then
12849  ac_cv_prog_CC="$CC" # Let the user override the test.
12850else
12851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852for as_dir in $PATH
12853do
12854  IFS=$as_save_IFS
12855  test -z "$as_dir" && as_dir=.
12856    for ac_exec_ext in '' $ac_executable_extensions; do
12857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12858    ac_cv_prog_CC="${ac_tool_prefix}cc"
12859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12860    break 2
12861  fi
12862done
12863  done
12864IFS=$as_save_IFS
12865
12866fi
12867fi
12868CC=$ac_cv_prog_CC
12869if test -n "$CC"; then
12870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12871$as_echo "$CC" >&6; }
12872else
12873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874$as_echo "no" >&6; }
12875fi
12876
12877
12878  fi
12879fi
12880if test -z "$CC"; then
12881  # Extract the first word of "cc", so it can be a program name with args.
12882set dummy cc; ac_word=$2
12883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12884$as_echo_n "checking for $ac_word... " >&6; }
12885if ${ac_cv_prog_CC+:} false; then :
12886  $as_echo_n "(cached) " >&6
12887else
12888  if test -n "$CC"; then
12889  ac_cv_prog_CC="$CC" # Let the user override the test.
12890else
12891  ac_prog_rejected=no
12892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12893for as_dir in $PATH
12894do
12895  IFS=$as_save_IFS
12896  test -z "$as_dir" && as_dir=.
12897    for ac_exec_ext in '' $ac_executable_extensions; do
12898  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12899    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12900       ac_prog_rejected=yes
12901       continue
12902     fi
12903    ac_cv_prog_CC="cc"
12904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12905    break 2
12906  fi
12907done
12908  done
12909IFS=$as_save_IFS
12910
12911if test $ac_prog_rejected = yes; then
12912  # We found a bogon in the path, so make sure we never use it.
12913  set dummy $ac_cv_prog_CC
12914  shift
12915  if test $# != 0; then
12916    # We chose a different compiler from the bogus one.
12917    # However, it has the same basename, so the bogon will be chosen
12918    # first if we set CC to just the basename; use the full file name.
12919    shift
12920    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12921  fi
12922fi
12923fi
12924fi
12925CC=$ac_cv_prog_CC
12926if test -n "$CC"; then
12927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12928$as_echo "$CC" >&6; }
12929else
12930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12931$as_echo "no" >&6; }
12932fi
12933
12934
12935fi
12936if test -z "$CC"; then
12937  if test -n "$ac_tool_prefix"; then
12938  for ac_prog in cl.exe
12939  do
12940    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12941set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12943$as_echo_n "checking for $ac_word... " >&6; }
12944if ${ac_cv_prog_CC+:} false; then :
12945  $as_echo_n "(cached) " >&6
12946else
12947  if test -n "$CC"; then
12948  ac_cv_prog_CC="$CC" # Let the user override the test.
12949else
12950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951for as_dir in $PATH
12952do
12953  IFS=$as_save_IFS
12954  test -z "$as_dir" && as_dir=.
12955    for ac_exec_ext in '' $ac_executable_extensions; do
12956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12957    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12959    break 2
12960  fi
12961done
12962  done
12963IFS=$as_save_IFS
12964
12965fi
12966fi
12967CC=$ac_cv_prog_CC
12968if test -n "$CC"; then
12969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12970$as_echo "$CC" >&6; }
12971else
12972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12973$as_echo "no" >&6; }
12974fi
12975
12976
12977    test -n "$CC" && break
12978  done
12979fi
12980if test -z "$CC"; then
12981  ac_ct_CC=$CC
12982  for ac_prog in cl.exe
12983do
12984  # Extract the first word of "$ac_prog", so it can be a program name with args.
12985set dummy $ac_prog; ac_word=$2
12986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12987$as_echo_n "checking for $ac_word... " >&6; }
12988if ${ac_cv_prog_ac_ct_CC+:} false; then :
12989  $as_echo_n "(cached) " >&6
12990else
12991  if test -n "$ac_ct_CC"; then
12992  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12993else
12994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995for as_dir in $PATH
12996do
12997  IFS=$as_save_IFS
12998  test -z "$as_dir" && as_dir=.
12999    for ac_exec_ext in '' $ac_executable_extensions; do
13000  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13001    ac_cv_prog_ac_ct_CC="$ac_prog"
13002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13003    break 2
13004  fi
13005done
13006  done
13007IFS=$as_save_IFS
13008
13009fi
13010fi
13011ac_ct_CC=$ac_cv_prog_ac_ct_CC
13012if test -n "$ac_ct_CC"; then
13013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13014$as_echo "$ac_ct_CC" >&6; }
13015else
13016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017$as_echo "no" >&6; }
13018fi
13019
13020
13021  test -n "$ac_ct_CC" && break
13022done
13023
13024  if test "x$ac_ct_CC" = x; then
13025    CC=""
13026  else
13027    case $cross_compiling:$ac_tool_warned in
13028yes:)
13029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13031ac_tool_warned=yes ;;
13032esac
13033    CC=$ac_ct_CC
13034  fi
13035fi
13036
13037fi
13038
13039
13040test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13042as_fn_error $? "no acceptable C compiler found in \$PATH
13043See \`config.log' for more details" "$LINENO" 5; }
13044
13045# Provide some information about the compiler.
13046$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13047set X $ac_compile
13048ac_compiler=$2
13049for ac_option in --version -v -V -qversion; do
13050  { { ac_try="$ac_compiler $ac_option >&5"
13051case "(($ac_try" in
13052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053  *) ac_try_echo=$ac_try;;
13054esac
13055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13056$as_echo "$ac_try_echo"; } >&5
13057  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13058  ac_status=$?
13059  if test -s conftest.err; then
13060    sed '10a\
13061... rest of stderr output deleted ...
13062         10q' conftest.err >conftest.er1
13063    cat conftest.er1 >&5
13064  fi
13065  rm -f conftest.er1 conftest.err
13066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13067  test $ac_status = 0; }
13068done
13069
13070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13071$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13072if ${ac_cv_c_compiler_gnu+:} false; then :
13073  $as_echo_n "(cached) " >&6
13074else
13075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13076/* end confdefs.h.  */
13077
13078int
13079main ()
13080{
13081#ifndef __GNUC__
13082       choke me
13083#endif
13084
13085  ;
13086  return 0;
13087}
13088_ACEOF
13089if ac_fn_c_try_compile "$LINENO"; then :
13090  ac_compiler_gnu=yes
13091else
13092  ac_compiler_gnu=no
13093fi
13094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13095ac_cv_c_compiler_gnu=$ac_compiler_gnu
13096
13097fi
13098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13099$as_echo "$ac_cv_c_compiler_gnu" >&6; }
13100if test $ac_compiler_gnu = yes; then
13101  GCC=yes
13102else
13103  GCC=
13104fi
13105ac_test_CFLAGS=${CFLAGS+set}
13106ac_save_CFLAGS=$CFLAGS
13107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13108$as_echo_n "checking whether $CC accepts -g... " >&6; }
13109if ${ac_cv_prog_cc_g+:} false; then :
13110  $as_echo_n "(cached) " >&6
13111else
13112  ac_save_c_werror_flag=$ac_c_werror_flag
13113   ac_c_werror_flag=yes
13114   ac_cv_prog_cc_g=no
13115   CFLAGS="-g"
13116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117/* end confdefs.h.  */
13118
13119int
13120main ()
13121{
13122
13123  ;
13124  return 0;
13125}
13126_ACEOF
13127if ac_fn_c_try_compile "$LINENO"; then :
13128  ac_cv_prog_cc_g=yes
13129else
13130  CFLAGS=""
13131      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132/* end confdefs.h.  */
13133
13134int
13135main ()
13136{
13137
13138  ;
13139  return 0;
13140}
13141_ACEOF
13142if ac_fn_c_try_compile "$LINENO"; then :
13143
13144else
13145  ac_c_werror_flag=$ac_save_c_werror_flag
13146	 CFLAGS="-g"
13147	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148/* end confdefs.h.  */
13149
13150int
13151main ()
13152{
13153
13154  ;
13155  return 0;
13156}
13157_ACEOF
13158if ac_fn_c_try_compile "$LINENO"; then :
13159  ac_cv_prog_cc_g=yes
13160fi
13161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13162fi
13163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13164fi
13165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166   ac_c_werror_flag=$ac_save_c_werror_flag
13167fi
13168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13169$as_echo "$ac_cv_prog_cc_g" >&6; }
13170if test "$ac_test_CFLAGS" = set; then
13171  CFLAGS=$ac_save_CFLAGS
13172elif test $ac_cv_prog_cc_g = yes; then
13173  if test "$GCC" = yes; then
13174    CFLAGS="-g -O2"
13175  else
13176    CFLAGS="-g"
13177  fi
13178else
13179  if test "$GCC" = yes; then
13180    CFLAGS="-O2"
13181  else
13182    CFLAGS=
13183  fi
13184fi
13185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13186$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13187if ${ac_cv_prog_cc_c89+:} false; then :
13188  $as_echo_n "(cached) " >&6
13189else
13190  ac_cv_prog_cc_c89=no
13191ac_save_CC=$CC
13192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193/* end confdefs.h.  */
13194#include <stdarg.h>
13195#include <stdio.h>
13196struct stat;
13197/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13198struct buf { int x; };
13199FILE * (*rcsopen) (struct buf *, struct stat *, int);
13200static char *e (p, i)
13201     char **p;
13202     int i;
13203{
13204  return p[i];
13205}
13206static char *f (char * (*g) (char **, int), char **p, ...)
13207{
13208  char *s;
13209  va_list v;
13210  va_start (v,p);
13211  s = g (p, va_arg (v,int));
13212  va_end (v);
13213  return s;
13214}
13215
13216/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13217   function prototypes and stuff, but not '\xHH' hex character constants.
13218   These don't provoke an error unfortunately, instead are silently treated
13219   as 'x'.  The following induces an error, until -std is added to get
13220   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13221   array size at least.  It's necessary to write '\x00'==0 to get something
13222   that's true only with -std.  */
13223int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13224
13225/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13226   inside strings and character constants.  */
13227#define FOO(x) 'x'
13228int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13229
13230int test (int i, double x);
13231struct s1 {int (*f) (int a);};
13232struct s2 {int (*f) (double a);};
13233int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13234int argc;
13235char **argv;
13236int
13237main ()
13238{
13239return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13240  ;
13241  return 0;
13242}
13243_ACEOF
13244for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13245	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13246do
13247  CC="$ac_save_CC $ac_arg"
13248  if ac_fn_c_try_compile "$LINENO"; then :
13249  ac_cv_prog_cc_c89=$ac_arg
13250fi
13251rm -f core conftest.err conftest.$ac_objext
13252  test "x$ac_cv_prog_cc_c89" != "xno" && break
13253done
13254rm -f conftest.$ac_ext
13255CC=$ac_save_CC
13256
13257fi
13258# AC_CACHE_VAL
13259case "x$ac_cv_prog_cc_c89" in
13260  x)
13261    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13262$as_echo "none needed" >&6; } ;;
13263  xno)
13264    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13265$as_echo "unsupported" >&6; } ;;
13266  *)
13267    CC="$CC $ac_cv_prog_cc_c89"
13268    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13269$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13270esac
13271if test "x$ac_cv_prog_cc_c89" != xno; then :
13272
13273fi
13274
13275ac_ext=c
13276ac_cpp='$CPP $CPPFLAGS'
13277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13279ac_compiler_gnu=$ac_cv_c_compiler_gnu
13280
13281ac_ext=c
13282ac_cpp='$CPP $CPPFLAGS'
13283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13285ac_compiler_gnu=$ac_cv_c_compiler_gnu
13286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13287$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13288if ${am_cv_prog_cc_c_o+:} false; then :
13289  $as_echo_n "(cached) " >&6
13290else
13291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292/* end confdefs.h.  */
13293
13294int
13295main ()
13296{
13297
13298  ;
13299  return 0;
13300}
13301_ACEOF
13302  # Make sure it works both with $CC and with simple cc.
13303  # Following AC_PROG_CC_C_O, we do the test twice because some
13304  # compilers refuse to overwrite an existing .o file with -o,
13305  # though they will create one.
13306  am_cv_prog_cc_c_o=yes
13307  for am_i in 1 2; do
13308    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13309   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13310   ac_status=$?
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); } \
13313         && test -f conftest2.$ac_objext; then
13314      : OK
13315    else
13316      am_cv_prog_cc_c_o=no
13317      break
13318    fi
13319  done
13320  rm -f core conftest*
13321  unset am_i
13322fi
13323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13324$as_echo "$am_cv_prog_cc_c_o" >&6; }
13325if test "$am_cv_prog_cc_c_o" != yes; then
13326   # Losing compiler, so override with the script.
13327   # FIXME: It is wrong to rewrite CC.
13328   # But if we don't then we get into trouble of one sort or another.
13329   # A longer-term fix would be to have automake use am__CC in this case,
13330   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13331   CC="$am_aux_dir/compile $CC"
13332fi
13333ac_ext=c
13334ac_cpp='$CPP $CPPFLAGS'
13335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13337ac_compiler_gnu=$ac_cv_c_compiler_gnu
13338
13339
13340depcc="$CC"   am_compiler_list=
13341
13342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13343$as_echo_n "checking dependency style of $depcc... " >&6; }
13344if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13345  $as_echo_n "(cached) " >&6
13346else
13347  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13348  # We make a subdir and do the tests there.  Otherwise we can end up
13349  # making bogus files that we don't know about and never remove.  For
13350  # instance it was reported that on HP-UX the gcc test will end up
13351  # making a dummy file named 'D' -- because '-MD' means "put the output
13352  # in D".
13353  rm -rf conftest.dir
13354  mkdir conftest.dir
13355  # Copy depcomp to subdir because otherwise we won't find it if we're
13356  # using a relative directory.
13357  cp "$am_depcomp" conftest.dir
13358  cd conftest.dir
13359  # We will build objects and dependencies in a subdirectory because
13360  # it helps to detect inapplicable dependency modes.  For instance
13361  # both Tru64's cc and ICC support -MD to output dependencies as a
13362  # side effect of compilation, but ICC will put the dependencies in
13363  # the current directory while Tru64 will put them in the object
13364  # directory.
13365  mkdir sub
13366
13367  am_cv_CC_dependencies_compiler_type=none
13368  if test "$am_compiler_list" = ""; then
13369     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13370  fi
13371  am__universal=false
13372  case " $depcc " in #(
13373     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13374     esac
13375
13376  for depmode in $am_compiler_list; do
13377    # Setup a source with many dependencies, because some compilers
13378    # like to wrap large dependency lists on column 80 (with \), and
13379    # we should not choose a depcomp mode which is confused by this.
13380    #
13381    # We need to recreate these files for each test, as the compiler may
13382    # overwrite some of them when testing with obscure command lines.
13383    # This happens at least with the AIX C compiler.
13384    : > sub/conftest.c
13385    for i in 1 2 3 4 5 6; do
13386      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13387      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13388      # Solaris 10 /bin/sh.
13389      echo '/* dummy */' > sub/conftst$i.h
13390    done
13391    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13392
13393    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13394    # mode.  It turns out that the SunPro C++ compiler does not properly
13395    # handle '-M -o', and we need to detect this.  Also, some Intel
13396    # versions had trouble with output in subdirs.
13397    am__obj=sub/conftest.${OBJEXT-o}
13398    am__minus_obj="-o $am__obj"
13399    case $depmode in
13400    gcc)
13401      # This depmode causes a compiler race in universal mode.
13402      test "$am__universal" = false || continue
13403      ;;
13404    nosideeffect)
13405      # After this tag, mechanisms are not by side-effect, so they'll
13406      # only be used when explicitly requested.
13407      if test "x$enable_dependency_tracking" = xyes; then
13408	continue
13409      else
13410	break
13411      fi
13412      ;;
13413    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13414      # This compiler won't grok '-c -o', but also, the minuso test has
13415      # not run yet.  These depmodes are late enough in the game, and
13416      # so weak that their functioning should not be impacted.
13417      am__obj=conftest.${OBJEXT-o}
13418      am__minus_obj=
13419      ;;
13420    none) break ;;
13421    esac
13422    if depmode=$depmode \
13423       source=sub/conftest.c object=$am__obj \
13424       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13425       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13426         >/dev/null 2>conftest.err &&
13427       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13428       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13429       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13430       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13431      # icc doesn't choke on unknown options, it will just issue warnings
13432      # or remarks (even with -Werror).  So we grep stderr for any message
13433      # that says an option was ignored or not supported.
13434      # When given -MP, icc 7.0 and 7.1 complain thusly:
13435      #   icc: Command line warning: ignoring option '-M'; no argument required
13436      # The diagnosis changed in icc 8.0:
13437      #   icc: Command line remark: option '-MP' not supported
13438      if (grep 'ignoring option' conftest.err ||
13439          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13440        am_cv_CC_dependencies_compiler_type=$depmode
13441        break
13442      fi
13443    fi
13444  done
13445
13446  cd ..
13447  rm -rf conftest.dir
13448else
13449  am_cv_CC_dependencies_compiler_type=none
13450fi
13451
13452fi
13453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13454$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13455CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13456
13457 if
13458  test "x$enable_dependency_tracking" != xno \
13459  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13460  am__fastdepCC_TRUE=
13461  am__fastdepCC_FALSE='#'
13462else
13463  am__fastdepCC_TRUE='#'
13464  am__fastdepCC_FALSE=
13465fi
13466
13467
13468
13469ac_ext=cpp
13470ac_cpp='$CXXCPP $CPPFLAGS'
13471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13474if test -z "$CXX"; then
13475  if test -n "$CCC"; then
13476    CXX=$CCC
13477  else
13478    if test -n "$ac_tool_prefix"; then
13479  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13480  do
13481    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13482set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13484$as_echo_n "checking for $ac_word... " >&6; }
13485if ${ac_cv_prog_CXX+:} false; then :
13486  $as_echo_n "(cached) " >&6
13487else
13488  if test -n "$CXX"; then
13489  ac_cv_prog_CXX="$CXX" # Let the user override the test.
13490else
13491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13492for as_dir in $PATH
13493do
13494  IFS=$as_save_IFS
13495  test -z "$as_dir" && as_dir=.
13496    for ac_exec_ext in '' $ac_executable_extensions; do
13497  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13498    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13499    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13500    break 2
13501  fi
13502done
13503  done
13504IFS=$as_save_IFS
13505
13506fi
13507fi
13508CXX=$ac_cv_prog_CXX
13509if test -n "$CXX"; then
13510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13511$as_echo "$CXX" >&6; }
13512else
13513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13514$as_echo "no" >&6; }
13515fi
13516
13517
13518    test -n "$CXX" && break
13519  done
13520fi
13521if test -z "$CXX"; then
13522  ac_ct_CXX=$CXX
13523  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13524do
13525  # Extract the first word of "$ac_prog", so it can be a program name with args.
13526set dummy $ac_prog; ac_word=$2
13527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13528$as_echo_n "checking for $ac_word... " >&6; }
13529if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13530  $as_echo_n "(cached) " >&6
13531else
13532  if test -n "$ac_ct_CXX"; then
13533  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13534else
13535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13536for as_dir in $PATH
13537do
13538  IFS=$as_save_IFS
13539  test -z "$as_dir" && as_dir=.
13540    for ac_exec_ext in '' $ac_executable_extensions; do
13541  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13542    ac_cv_prog_ac_ct_CXX="$ac_prog"
13543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13544    break 2
13545  fi
13546done
13547  done
13548IFS=$as_save_IFS
13549
13550fi
13551fi
13552ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13553if test -n "$ac_ct_CXX"; then
13554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13555$as_echo "$ac_ct_CXX" >&6; }
13556else
13557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13558$as_echo "no" >&6; }
13559fi
13560
13561
13562  test -n "$ac_ct_CXX" && break
13563done
13564
13565  if test "x$ac_ct_CXX" = x; then
13566    CXX="g++"
13567  else
13568    case $cross_compiling:$ac_tool_warned in
13569yes:)
13570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13572ac_tool_warned=yes ;;
13573esac
13574    CXX=$ac_ct_CXX
13575  fi
13576fi
13577
13578  fi
13579fi
13580# Provide some information about the compiler.
13581$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13582set X $ac_compile
13583ac_compiler=$2
13584for ac_option in --version -v -V -qversion; do
13585  { { ac_try="$ac_compiler $ac_option >&5"
13586case "(($ac_try" in
13587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588  *) ac_try_echo=$ac_try;;
13589esac
13590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13591$as_echo "$ac_try_echo"; } >&5
13592  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13593  ac_status=$?
13594  if test -s conftest.err; then
13595    sed '10a\
13596... rest of stderr output deleted ...
13597         10q' conftest.err >conftest.er1
13598    cat conftest.er1 >&5
13599  fi
13600  rm -f conftest.er1 conftest.err
13601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13602  test $ac_status = 0; }
13603done
13604
13605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13606$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13607if ${ac_cv_cxx_compiler_gnu+:} false; then :
13608  $as_echo_n "(cached) " >&6
13609else
13610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611/* end confdefs.h.  */
13612
13613int
13614main ()
13615{
13616#ifndef __GNUC__
13617       choke me
13618#endif
13619
13620  ;
13621  return 0;
13622}
13623_ACEOF
13624if ac_fn_cxx_try_compile "$LINENO"; then :
13625  ac_compiler_gnu=yes
13626else
13627  ac_compiler_gnu=no
13628fi
13629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13630ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13631
13632fi
13633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13634$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13635if test $ac_compiler_gnu = yes; then
13636  GXX=yes
13637else
13638  GXX=
13639fi
13640ac_test_CXXFLAGS=${CXXFLAGS+set}
13641ac_save_CXXFLAGS=$CXXFLAGS
13642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13643$as_echo_n "checking whether $CXX accepts -g... " >&6; }
13644if ${ac_cv_prog_cxx_g+:} false; then :
13645  $as_echo_n "(cached) " >&6
13646else
13647  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13648   ac_cxx_werror_flag=yes
13649   ac_cv_prog_cxx_g=no
13650   CXXFLAGS="-g"
13651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13652/* end confdefs.h.  */
13653
13654int
13655main ()
13656{
13657
13658  ;
13659  return 0;
13660}
13661_ACEOF
13662if ac_fn_cxx_try_compile "$LINENO"; then :
13663  ac_cv_prog_cxx_g=yes
13664else
13665  CXXFLAGS=""
13666      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13667/* end confdefs.h.  */
13668
13669int
13670main ()
13671{
13672
13673  ;
13674  return 0;
13675}
13676_ACEOF
13677if ac_fn_cxx_try_compile "$LINENO"; then :
13678
13679else
13680  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13681	 CXXFLAGS="-g"
13682	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683/* end confdefs.h.  */
13684
13685int
13686main ()
13687{
13688
13689  ;
13690  return 0;
13691}
13692_ACEOF
13693if ac_fn_cxx_try_compile "$LINENO"; then :
13694  ac_cv_prog_cxx_g=yes
13695fi
13696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13697fi
13698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13699fi
13700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13702fi
13703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13704$as_echo "$ac_cv_prog_cxx_g" >&6; }
13705if test "$ac_test_CXXFLAGS" = set; then
13706  CXXFLAGS=$ac_save_CXXFLAGS
13707elif test $ac_cv_prog_cxx_g = yes; then
13708  if test "$GXX" = yes; then
13709    CXXFLAGS="-g -O2"
13710  else
13711    CXXFLAGS="-g"
13712  fi
13713else
13714  if test "$GXX" = yes; then
13715    CXXFLAGS="-O2"
13716  else
13717    CXXFLAGS=
13718  fi
13719fi
13720ac_ext=c
13721ac_cpp='$CPP $CPPFLAGS'
13722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13724ac_compiler_gnu=$ac_cv_c_compiler_gnu
13725
13726depcc="$CXX"  am_compiler_list=
13727
13728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13729$as_echo_n "checking dependency style of $depcc... " >&6; }
13730if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13731  $as_echo_n "(cached) " >&6
13732else
13733  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13734  # We make a subdir and do the tests there.  Otherwise we can end up
13735  # making bogus files that we don't know about and never remove.  For
13736  # instance it was reported that on HP-UX the gcc test will end up
13737  # making a dummy file named 'D' -- because '-MD' means "put the output
13738  # in D".
13739  rm -rf conftest.dir
13740  mkdir conftest.dir
13741  # Copy depcomp to subdir because otherwise we won't find it if we're
13742  # using a relative directory.
13743  cp "$am_depcomp" conftest.dir
13744  cd conftest.dir
13745  # We will build objects and dependencies in a subdirectory because
13746  # it helps to detect inapplicable dependency modes.  For instance
13747  # both Tru64's cc and ICC support -MD to output dependencies as a
13748  # side effect of compilation, but ICC will put the dependencies in
13749  # the current directory while Tru64 will put them in the object
13750  # directory.
13751  mkdir sub
13752
13753  am_cv_CXX_dependencies_compiler_type=none
13754  if test "$am_compiler_list" = ""; then
13755     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13756  fi
13757  am__universal=false
13758  case " $depcc " in #(
13759     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13760     esac
13761
13762  for depmode in $am_compiler_list; do
13763    # Setup a source with many dependencies, because some compilers
13764    # like to wrap large dependency lists on column 80 (with \), and
13765    # we should not choose a depcomp mode which is confused by this.
13766    #
13767    # We need to recreate these files for each test, as the compiler may
13768    # overwrite some of them when testing with obscure command lines.
13769    # This happens at least with the AIX C compiler.
13770    : > sub/conftest.c
13771    for i in 1 2 3 4 5 6; do
13772      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13773      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13774      # Solaris 10 /bin/sh.
13775      echo '/* dummy */' > sub/conftst$i.h
13776    done
13777    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13778
13779    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13780    # mode.  It turns out that the SunPro C++ compiler does not properly
13781    # handle '-M -o', and we need to detect this.  Also, some Intel
13782    # versions had trouble with output in subdirs.
13783    am__obj=sub/conftest.${OBJEXT-o}
13784    am__minus_obj="-o $am__obj"
13785    case $depmode in
13786    gcc)
13787      # This depmode causes a compiler race in universal mode.
13788      test "$am__universal" = false || continue
13789      ;;
13790    nosideeffect)
13791      # After this tag, mechanisms are not by side-effect, so they'll
13792      # only be used when explicitly requested.
13793      if test "x$enable_dependency_tracking" = xyes; then
13794	continue
13795      else
13796	break
13797      fi
13798      ;;
13799    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13800      # This compiler won't grok '-c -o', but also, the minuso test has
13801      # not run yet.  These depmodes are late enough in the game, and
13802      # so weak that their functioning should not be impacted.
13803      am__obj=conftest.${OBJEXT-o}
13804      am__minus_obj=
13805      ;;
13806    none) break ;;
13807    esac
13808    if depmode=$depmode \
13809       source=sub/conftest.c object=$am__obj \
13810       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13811       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13812         >/dev/null 2>conftest.err &&
13813       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13814       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13815       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13816       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13817      # icc doesn't choke on unknown options, it will just issue warnings
13818      # or remarks (even with -Werror).  So we grep stderr for any message
13819      # that says an option was ignored or not supported.
13820      # When given -MP, icc 7.0 and 7.1 complain thusly:
13821      #   icc: Command line warning: ignoring option '-M'; no argument required
13822      # The diagnosis changed in icc 8.0:
13823      #   icc: Command line remark: option '-MP' not supported
13824      if (grep 'ignoring option' conftest.err ||
13825          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13826        am_cv_CXX_dependencies_compiler_type=$depmode
13827        break
13828      fi
13829    fi
13830  done
13831
13832  cd ..
13833  rm -rf conftest.dir
13834else
13835  am_cv_CXX_dependencies_compiler_type=none
13836fi
13837
13838fi
13839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13840$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13841CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13842
13843 if
13844  test "x$enable_dependency_tracking" != xno \
13845  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13846  am__fastdepCXX_TRUE=
13847  am__fastdepCXX_FALSE='#'
13848else
13849  am__fastdepCXX_TRUE='#'
13850  am__fastdepCXX_FALSE=
13851fi
13852
13853
13854
13855
13856func_stripname_cnf ()
13857{
13858  case $2 in
13859  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13860  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13861  esac
13862} # func_stripname_cnf
13863
13864      if test -n "$CXX" && ( test no != "$CXX" &&
13865    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13866    (test g++ != "$CXX"))); then
13867  ac_ext=cpp
13868ac_cpp='$CXXCPP $CPPFLAGS'
13869ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13870ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13871ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13873$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13874if test -z "$CXXCPP"; then
13875  if ${ac_cv_prog_CXXCPP+:} false; then :
13876  $as_echo_n "(cached) " >&6
13877else
13878      # Double quotes because CXXCPP needs to be expanded
13879    for CXXCPP in "$CXX -E" "/lib/cpp"
13880    do
13881      ac_preproc_ok=false
13882for ac_cxx_preproc_warn_flag in '' yes
13883do
13884  # Use a header file that comes with gcc, so configuring glibc
13885  # with a fresh cross-compiler works.
13886  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13887  # <limits.h> exists even on freestanding compilers.
13888  # On the NeXT, cc -E runs the code through the compiler's parser,
13889  # not just through cpp. "Syntax error" is here to catch this case.
13890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891/* end confdefs.h.  */
13892#ifdef __STDC__
13893# include <limits.h>
13894#else
13895# include <assert.h>
13896#endif
13897		     Syntax error
13898_ACEOF
13899if ac_fn_cxx_try_cpp "$LINENO"; then :
13900
13901else
13902  # Broken: fails on valid input.
13903continue
13904fi
13905rm -f conftest.err conftest.i conftest.$ac_ext
13906
13907  # OK, works on sane cases.  Now check whether nonexistent headers
13908  # can be detected and how.
13909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910/* end confdefs.h.  */
13911#include <ac_nonexistent.h>
13912_ACEOF
13913if ac_fn_cxx_try_cpp "$LINENO"; then :
13914  # Broken: success on invalid input.
13915continue
13916else
13917  # Passes both tests.
13918ac_preproc_ok=:
13919break
13920fi
13921rm -f conftest.err conftest.i conftest.$ac_ext
13922
13923done
13924# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13925rm -f conftest.i conftest.err conftest.$ac_ext
13926if $ac_preproc_ok; then :
13927  break
13928fi
13929
13930    done
13931    ac_cv_prog_CXXCPP=$CXXCPP
13932
13933fi
13934  CXXCPP=$ac_cv_prog_CXXCPP
13935else
13936  ac_cv_prog_CXXCPP=$CXXCPP
13937fi
13938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13939$as_echo "$CXXCPP" >&6; }
13940ac_preproc_ok=false
13941for ac_cxx_preproc_warn_flag in '' yes
13942do
13943  # Use a header file that comes with gcc, so configuring glibc
13944  # with a fresh cross-compiler works.
13945  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13946  # <limits.h> exists even on freestanding compilers.
13947  # On the NeXT, cc -E runs the code through the compiler's parser,
13948  # not just through cpp. "Syntax error" is here to catch this case.
13949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950/* end confdefs.h.  */
13951#ifdef __STDC__
13952# include <limits.h>
13953#else
13954# include <assert.h>
13955#endif
13956		     Syntax error
13957_ACEOF
13958if ac_fn_cxx_try_cpp "$LINENO"; then :
13959
13960else
13961  # Broken: fails on valid input.
13962continue
13963fi
13964rm -f conftest.err conftest.i conftest.$ac_ext
13965
13966  # OK, works on sane cases.  Now check whether nonexistent headers
13967  # can be detected and how.
13968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969/* end confdefs.h.  */
13970#include <ac_nonexistent.h>
13971_ACEOF
13972if ac_fn_cxx_try_cpp "$LINENO"; then :
13973  # Broken: success on invalid input.
13974continue
13975else
13976  # Passes both tests.
13977ac_preproc_ok=:
13978break
13979fi
13980rm -f conftest.err conftest.i conftest.$ac_ext
13981
13982done
13983# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13984rm -f conftest.i conftest.err conftest.$ac_ext
13985if $ac_preproc_ok; then :
13986
13987else
13988  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13990as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13991See \`config.log' for more details" "$LINENO" 5; }
13992fi
13993
13994ac_ext=c
13995ac_cpp='$CPP $CPPFLAGS'
13996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13998ac_compiler_gnu=$ac_cv_c_compiler_gnu
13999
14000else
14001  _lt_caught_CXX_error=yes
14002fi
14003
14004ac_ext=cpp
14005ac_cpp='$CXXCPP $CPPFLAGS'
14006ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14007ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14008ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14009
14010archive_cmds_need_lc_CXX=no
14011allow_undefined_flag_CXX=
14012always_export_symbols_CXX=no
14013archive_expsym_cmds_CXX=
14014compiler_needs_object_CXX=no
14015export_dynamic_flag_spec_CXX=
14016hardcode_direct_CXX=no
14017hardcode_direct_absolute_CXX=no
14018hardcode_libdir_flag_spec_CXX=
14019hardcode_libdir_separator_CXX=
14020hardcode_minus_L_CXX=no
14021hardcode_shlibpath_var_CXX=unsupported
14022hardcode_automatic_CXX=no
14023inherit_rpath_CXX=no
14024module_cmds_CXX=
14025module_expsym_cmds_CXX=
14026link_all_deplibs_CXX=unknown
14027old_archive_cmds_CXX=$old_archive_cmds
14028reload_flag_CXX=$reload_flag
14029reload_cmds_CXX=$reload_cmds
14030no_undefined_flag_CXX=
14031whole_archive_flag_spec_CXX=
14032enable_shared_with_static_runtimes_CXX=no
14033
14034# Source file extension for C++ test sources.
14035ac_ext=cpp
14036
14037# Object file extension for compiled C++ test sources.
14038objext=o
14039objext_CXX=$objext
14040
14041# No sense in running all these tests if we already determined that
14042# the CXX compiler isn't working.  Some variables (like enable_shared)
14043# are currently assumed to apply to all compilers on this platform,
14044# and will be corrupted by setting them based on a non-working compiler.
14045if test yes != "$_lt_caught_CXX_error"; then
14046  # Code to be used in simple compile tests
14047  lt_simple_compile_test_code="int some_variable = 0;"
14048
14049  # Code to be used in simple link tests
14050  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14051
14052  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14053
14054
14055
14056
14057
14058
14059# If no C compiler was specified, use CC.
14060LTCC=${LTCC-"$CC"}
14061
14062# If no C compiler flags were specified, use CFLAGS.
14063LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14064
14065# Allow CC to be a program name with arguments.
14066compiler=$CC
14067
14068
14069  # save warnings/boilerplate of simple test code
14070  ac_outfile=conftest.$ac_objext
14071echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14072eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14073_lt_compiler_boilerplate=`cat conftest.err`
14074$RM conftest*
14075
14076  ac_outfile=conftest.$ac_objext
14077echo "$lt_simple_link_test_code" >conftest.$ac_ext
14078eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14079_lt_linker_boilerplate=`cat conftest.err`
14080$RM -r conftest*
14081
14082
14083  # Allow CC to be a program name with arguments.
14084  lt_save_CC=$CC
14085  lt_save_CFLAGS=$CFLAGS
14086  lt_save_LD=$LD
14087  lt_save_GCC=$GCC
14088  GCC=$GXX
14089  lt_save_with_gnu_ld=$with_gnu_ld
14090  lt_save_path_LD=$lt_cv_path_LD
14091  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14092    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14093  else
14094    $as_unset lt_cv_prog_gnu_ld
14095  fi
14096  if test -n "${lt_cv_path_LDCXX+set}"; then
14097    lt_cv_path_LD=$lt_cv_path_LDCXX
14098  else
14099    $as_unset lt_cv_path_LD
14100  fi
14101  test -z "${LDCXX+set}" || LD=$LDCXX
14102  CC=${CXX-"c++"}
14103  CFLAGS=$CXXFLAGS
14104  compiler=$CC
14105  compiler_CXX=$CC
14106  func_cc_basename $compiler
14107cc_basename=$func_cc_basename_result
14108
14109
14110  if test -n "$compiler"; then
14111    # We don't want -fno-exception when compiling C++ code, so set the
14112    # no_builtin_flag separately
14113    if test yes = "$GXX"; then
14114      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14115    else
14116      lt_prog_compiler_no_builtin_flag_CXX=
14117    fi
14118
14119    if test yes = "$GXX"; then
14120      # Set up default GNU C++ configuration
14121
14122
14123
14124# Check whether --with-gnu-ld was given.
14125if test "${with_gnu_ld+set}" = set; then :
14126  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14127else
14128  with_gnu_ld=no
14129fi
14130
14131ac_prog=ld
14132if test yes = "$GCC"; then
14133  # Check if gcc -print-prog-name=ld gives a path.
14134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14135$as_echo_n "checking for ld used by $CC... " >&6; }
14136  case $host in
14137  *-*-mingw*)
14138    # gcc leaves a trailing carriage return, which upsets mingw
14139    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14140  *)
14141    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14142  esac
14143  case $ac_prog in
14144    # Accept absolute paths.
14145    [\\/]* | ?:[\\/]*)
14146      re_direlt='/[^/][^/]*/\.\./'
14147      # Canonicalize the pathname of ld
14148      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14149      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14150	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14151      done
14152      test -z "$LD" && LD=$ac_prog
14153      ;;
14154  "")
14155    # If it fails, then pretend we aren't using GCC.
14156    ac_prog=ld
14157    ;;
14158  *)
14159    # If it is relative, then search for the first ld in PATH.
14160    with_gnu_ld=unknown
14161    ;;
14162  esac
14163elif test yes = "$with_gnu_ld"; then
14164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14165$as_echo_n "checking for GNU ld... " >&6; }
14166else
14167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14168$as_echo_n "checking for non-GNU ld... " >&6; }
14169fi
14170if ${lt_cv_path_LD+:} false; then :
14171  $as_echo_n "(cached) " >&6
14172else
14173  if test -z "$LD"; then
14174  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14175  for ac_dir in $PATH; do
14176    IFS=$lt_save_ifs
14177    test -z "$ac_dir" && ac_dir=.
14178    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14179      lt_cv_path_LD=$ac_dir/$ac_prog
14180      # Check to see if the program is GNU ld.  I'd rather use --version,
14181      # but apparently some variants of GNU ld only accept -v.
14182      # Break only if it was the GNU/non-GNU ld that we prefer.
14183      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14184      *GNU* | *'with BFD'*)
14185	test no != "$with_gnu_ld" && break
14186	;;
14187      *)
14188	test yes != "$with_gnu_ld" && break
14189	;;
14190      esac
14191    fi
14192  done
14193  IFS=$lt_save_ifs
14194else
14195  lt_cv_path_LD=$LD # Let the user override the test with a path.
14196fi
14197fi
14198
14199LD=$lt_cv_path_LD
14200if test -n "$LD"; then
14201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14202$as_echo "$LD" >&6; }
14203else
14204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14205$as_echo "no" >&6; }
14206fi
14207test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14209$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14210if ${lt_cv_prog_gnu_ld+:} false; then :
14211  $as_echo_n "(cached) " >&6
14212else
14213  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14214case `$LD -v 2>&1 </dev/null` in
14215*GNU* | *'with BFD'*)
14216  lt_cv_prog_gnu_ld=yes
14217  ;;
14218*)
14219  lt_cv_prog_gnu_ld=no
14220  ;;
14221esac
14222fi
14223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14224$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14225with_gnu_ld=$lt_cv_prog_gnu_ld
14226
14227
14228
14229
14230
14231
14232
14233      # Check if GNU C++ uses GNU ld as the underlying linker, since the
14234      # archiving commands below assume that GNU ld is being used.
14235      if test yes = "$with_gnu_ld"; then
14236        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14237        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'
14238
14239        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14240        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14241
14242        # If archive_cmds runs LD, not CC, wlarc should be empty
14243        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14244        #     investigate it a little bit more. (MM)
14245        wlarc='$wl'
14246
14247        # ancient GNU ld didn't support --whole-archive et. al.
14248        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14249	  $GREP 'no-whole-archive' > /dev/null; then
14250          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14251        else
14252          whole_archive_flag_spec_CXX=
14253        fi
14254      else
14255        with_gnu_ld=no
14256        wlarc=
14257
14258        # A generic and very simple default shared library creation
14259        # command for GNU C++ for the case where it uses the native
14260        # linker, instead of GNU ld.  If possible, this setting should
14261        # overridden to take advantage of the native linker features on
14262        # the platform it is being used on.
14263        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14264      fi
14265
14266      # Commands to make compiler produce verbose output that lists
14267      # what "hidden" libraries, object files and flags are used when
14268      # linking a shared library.
14269      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14270
14271    else
14272      GXX=no
14273      with_gnu_ld=no
14274      wlarc=
14275    fi
14276
14277    # PORTME: fill in a description of your system's C++ link characteristics
14278    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14279$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14280    ld_shlibs_CXX=yes
14281    case $host_os in
14282      aix3*)
14283        # FIXME: insert proper C++ library support
14284        ld_shlibs_CXX=no
14285        ;;
14286      aix[4-9]*)
14287        if test ia64 = "$host_cpu"; then
14288          # On IA64, the linker does run time linking by default, so we don't
14289          # have to do anything special.
14290          aix_use_runtimelinking=no
14291          exp_sym_flag='-Bexport'
14292          no_entry_flag=
14293        else
14294          aix_use_runtimelinking=no
14295
14296          # Test if we are trying to use run time linking or normal
14297          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14298          # have runtime linking enabled, and use it for executables.
14299          # For shared libraries, we enable/disable runtime linking
14300          # depending on the kind of the shared library created -
14301          # when "with_aix_soname,aix_use_runtimelinking" is:
14302          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14303          # "aix,yes"  lib.so          shared, rtl:yes, for executables
14304          #            lib.a           static archive
14305          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14306          #            lib.a(lib.so.V) shared, rtl:no,  for executables
14307          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14308          #            lib.a(lib.so.V) shared, rtl:no
14309          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14310          #            lib.a           static archive
14311          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14312	    for ld_flag in $LDFLAGS; do
14313	      case $ld_flag in
14314	      *-brtl*)
14315	        aix_use_runtimelinking=yes
14316	        break
14317	        ;;
14318	      esac
14319	    done
14320	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14321	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
14322	      # so we don't have lib.a shared libs to link our executables.
14323	      # We have to force runtime linking in this case.
14324	      aix_use_runtimelinking=yes
14325	      LDFLAGS="$LDFLAGS -Wl,-brtl"
14326	    fi
14327	    ;;
14328          esac
14329
14330          exp_sym_flag='-bexport'
14331          no_entry_flag='-bnoentry'
14332        fi
14333
14334        # When large executables or shared objects are built, AIX ld can
14335        # have problems creating the table of contents.  If linking a library
14336        # or program results in "error TOC overflow" add -mminimal-toc to
14337        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14338        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14339
14340        archive_cmds_CXX=''
14341        hardcode_direct_CXX=yes
14342        hardcode_direct_absolute_CXX=yes
14343        hardcode_libdir_separator_CXX=':'
14344        link_all_deplibs_CXX=yes
14345        file_list_spec_CXX='$wl-f,'
14346        case $with_aix_soname,$aix_use_runtimelinking in
14347        aix,*) ;;	# no import file
14348        svr4,* | *,yes) # use import file
14349          # The Import File defines what to hardcode.
14350          hardcode_direct_CXX=no
14351          hardcode_direct_absolute_CXX=no
14352          ;;
14353        esac
14354
14355        if test yes = "$GXX"; then
14356          case $host_os in aix4.[012]|aix4.[012].*)
14357          # We only want to do this on AIX 4.2 and lower, the check
14358          # below for broken collect2 doesn't work under 4.3+
14359	  collect2name=`$CC -print-prog-name=collect2`
14360	  if test -f "$collect2name" &&
14361	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14362	  then
14363	    # We have reworked collect2
14364	    :
14365	  else
14366	    # We have old collect2
14367	    hardcode_direct_CXX=unsupported
14368	    # It fails to find uninstalled libraries when the uninstalled
14369	    # path is not listed in the libpath.  Setting hardcode_minus_L
14370	    # to unsupported forces relinking
14371	    hardcode_minus_L_CXX=yes
14372	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14373	    hardcode_libdir_separator_CXX=
14374	  fi
14375          esac
14376          shared_flag='-shared'
14377	  if test yes = "$aix_use_runtimelinking"; then
14378	    shared_flag=$shared_flag' $wl-G'
14379	  fi
14380	  # Need to ensure runtime linking is disabled for the traditional
14381	  # shared library, or the linker may eventually find shared libraries
14382	  # /with/ Import File - we do not want to mix them.
14383	  shared_flag_aix='-shared'
14384	  shared_flag_svr4='-shared $wl-G'
14385        else
14386          # not using gcc
14387          if test ia64 = "$host_cpu"; then
14388	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14389	  # chokes on -Wl,-G. The following line is correct:
14390	  shared_flag='-G'
14391          else
14392	    if test yes = "$aix_use_runtimelinking"; then
14393	      shared_flag='$wl-G'
14394	    else
14395	      shared_flag='$wl-bM:SRE'
14396	    fi
14397	    shared_flag_aix='$wl-bM:SRE'
14398	    shared_flag_svr4='$wl-G'
14399          fi
14400        fi
14401
14402        export_dynamic_flag_spec_CXX='$wl-bexpall'
14403        # It seems that -bexpall does not export symbols beginning with
14404        # underscore (_), so it is better to generate a list of symbols to
14405	# export.
14406        always_export_symbols_CXX=yes
14407	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14408          # Warning - without using the other runtime loading flags (-brtl),
14409          # -berok will link without error, but may produce a broken library.
14410          # The "-G" linker flag allows undefined symbols.
14411          no_undefined_flag_CXX='-bernotok'
14412          # Determine the default libpath from the value encoded in an empty
14413          # executable.
14414          if test set = "${lt_cv_aix_libpath+set}"; then
14415  aix_libpath=$lt_cv_aix_libpath
14416else
14417  if ${lt_cv_aix_libpath__CXX+:} false; then :
14418  $as_echo_n "(cached) " >&6
14419else
14420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14421/* end confdefs.h.  */
14422
14423int
14424main ()
14425{
14426
14427  ;
14428  return 0;
14429}
14430_ACEOF
14431if ac_fn_cxx_try_link "$LINENO"; then :
14432
14433  lt_aix_libpath_sed='
14434      /Import File Strings/,/^$/ {
14435	  /^0/ {
14436	      s/^0  *\([^ ]*\) *$/\1/
14437	      p
14438	  }
14439      }'
14440  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14441  # Check for a 64-bit object if we didn't find anything.
14442  if test -z "$lt_cv_aix_libpath__CXX"; then
14443    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14444  fi
14445fi
14446rm -f core conftest.err conftest.$ac_objext \
14447    conftest$ac_exeext conftest.$ac_ext
14448  if test -z "$lt_cv_aix_libpath__CXX"; then
14449    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14450  fi
14451
14452fi
14453
14454  aix_libpath=$lt_cv_aix_libpath__CXX
14455fi
14456
14457          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14458
14459          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14460        else
14461          if test ia64 = "$host_cpu"; then
14462	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14463	    allow_undefined_flag_CXX="-z nodefs"
14464	    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"
14465          else
14466	    # Determine the default libpath from the value encoded in an
14467	    # empty executable.
14468	    if test set = "${lt_cv_aix_libpath+set}"; then
14469  aix_libpath=$lt_cv_aix_libpath
14470else
14471  if ${lt_cv_aix_libpath__CXX+:} false; then :
14472  $as_echo_n "(cached) " >&6
14473else
14474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475/* end confdefs.h.  */
14476
14477int
14478main ()
14479{
14480
14481  ;
14482  return 0;
14483}
14484_ACEOF
14485if ac_fn_cxx_try_link "$LINENO"; then :
14486
14487  lt_aix_libpath_sed='
14488      /Import File Strings/,/^$/ {
14489	  /^0/ {
14490	      s/^0  *\([^ ]*\) *$/\1/
14491	      p
14492	  }
14493      }'
14494  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14495  # Check for a 64-bit object if we didn't find anything.
14496  if test -z "$lt_cv_aix_libpath__CXX"; then
14497    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14498  fi
14499fi
14500rm -f core conftest.err conftest.$ac_objext \
14501    conftest$ac_exeext conftest.$ac_ext
14502  if test -z "$lt_cv_aix_libpath__CXX"; then
14503    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14504  fi
14505
14506fi
14507
14508  aix_libpath=$lt_cv_aix_libpath__CXX
14509fi
14510
14511	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14512	    # Warning - without using the other run time loading flags,
14513	    # -berok will link without error, but may produce a broken library.
14514	    no_undefined_flag_CXX=' $wl-bernotok'
14515	    allow_undefined_flag_CXX=' $wl-berok'
14516	    if test yes = "$with_gnu_ld"; then
14517	      # We only use this code for GNU lds that support --whole-archive.
14518	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14519	    else
14520	      # Exported symbols can be pulled into shared objects from archives
14521	      whole_archive_flag_spec_CXX='$convenience'
14522	    fi
14523	    archive_cmds_need_lc_CXX=yes
14524	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14525	    # -brtl affects multiple linker settings, -berok does not and is overridden later
14526	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14527	    if test svr4 != "$with_aix_soname"; then
14528	      # This is similar to how AIX traditionally builds its shared
14529	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14530	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14531	    fi
14532	    if test aix != "$with_aix_soname"; then
14533	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14534	    else
14535	      # used by -dlpreopen to get the symbols
14536	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14537	    fi
14538	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14539          fi
14540        fi
14541        ;;
14542
14543      beos*)
14544	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14545	  allow_undefined_flag_CXX=unsupported
14546	  # Joseph Beckenbach <[email protected]> says some releases of gcc
14547	  # support --undefined.  This deserves some investigation.  FIXME
14548	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14549	else
14550	  ld_shlibs_CXX=no
14551	fi
14552	;;
14553
14554      chorus*)
14555        case $cc_basename in
14556          *)
14557	  # FIXME: insert proper C++ library support
14558	  ld_shlibs_CXX=no
14559	  ;;
14560        esac
14561        ;;
14562
14563      cygwin* | mingw* | pw32* | cegcc*)
14564	case $GXX,$cc_basename in
14565	,cl* | no,cl*)
14566	  # Native MSVC
14567	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14568	  # no search path for DLLs.
14569	  hardcode_libdir_flag_spec_CXX=' '
14570	  allow_undefined_flag_CXX=unsupported
14571	  always_export_symbols_CXX=yes
14572	  file_list_spec_CXX='@'
14573	  # Tell ltmain to make .lib files, not .a files.
14574	  libext=lib
14575	  # Tell ltmain to make .dll files, not .so files.
14576	  shrext_cmds=.dll
14577	  # FIXME: Setting linknames here is a bad hack.
14578	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14579	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14580              cp "$export_symbols" "$output_objdir/$soname.def";
14581              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14582            else
14583              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14584            fi~
14585            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14586            linknames='
14587	  # The linker will not automatically build a static lib if we build a DLL.
14588	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14589	  enable_shared_with_static_runtimes_CXX=yes
14590	  # Don't use ranlib
14591	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14592	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14593            lt_tool_outputfile="@TOOL_OUTPUT@"~
14594            case $lt_outputfile in
14595              *.exe|*.EXE) ;;
14596              *)
14597                lt_outputfile=$lt_outputfile.exe
14598                lt_tool_outputfile=$lt_tool_outputfile.exe
14599                ;;
14600            esac~
14601            func_to_tool_file "$lt_outputfile"~
14602            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14603              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14604              $RM "$lt_outputfile.manifest";
14605            fi'
14606	  ;;
14607	*)
14608	  # g++
14609	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14610	  # as there is no search path for DLLs.
14611	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14612	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14613	  allow_undefined_flag_CXX=unsupported
14614	  always_export_symbols_CXX=no
14615	  enable_shared_with_static_runtimes_CXX=yes
14616
14617	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14618	    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'
14619	    # If the export-symbols file already is a .def file, use it as
14620	    # is; otherwise, prepend EXPORTS...
14621	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14622              cp $export_symbols $output_objdir/$soname.def;
14623            else
14624              echo EXPORTS > $output_objdir/$soname.def;
14625              cat $export_symbols >> $output_objdir/$soname.def;
14626            fi~
14627            $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'
14628	  else
14629	    ld_shlibs_CXX=no
14630	  fi
14631	  ;;
14632	esac
14633	;;
14634      darwin* | rhapsody*)
14635
14636
14637  archive_cmds_need_lc_CXX=no
14638  hardcode_direct_CXX=no
14639  hardcode_automatic_CXX=yes
14640  hardcode_shlibpath_var_CXX=unsupported
14641  if test yes = "$lt_cv_ld_force_load"; then
14642    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\"`'
14643
14644  else
14645    whole_archive_flag_spec_CXX=''
14646  fi
14647  link_all_deplibs_CXX=yes
14648  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14649  case $cc_basename in
14650     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14651     *) _lt_dar_can_shared=$GCC ;;
14652  esac
14653  if test yes = "$_lt_dar_can_shared"; then
14654    output_verbose_link_cmd=func_echo_all
14655    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"
14656    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14657    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"
14658    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"
14659       if test yes != "$lt_cv_apple_cc_single_mod"; then
14660      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"
14661      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"
14662    fi
14663
14664  else
14665  ld_shlibs_CXX=no
14666  fi
14667
14668	;;
14669
14670      os2*)
14671	hardcode_libdir_flag_spec_CXX='-L$libdir'
14672	hardcode_minus_L_CXX=yes
14673	allow_undefined_flag_CXX=unsupported
14674	shrext_cmds=.dll
14675	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14676	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14677	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14678	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14679	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14680	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14681	  emximp -o $lib $output_objdir/$libname.def'
14682	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14683	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14684	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14685	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14686	  prefix_cmds="$SED"~
14687	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14688	    prefix_cmds="$prefix_cmds -e 1d";
14689	  fi~
14690	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14691	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14692	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14693	  emximp -o $lib $output_objdir/$libname.def'
14694	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14695	enable_shared_with_static_runtimes_CXX=yes
14696	;;
14697
14698      dgux*)
14699        case $cc_basename in
14700          ec++*)
14701	    # FIXME: insert proper C++ library support
14702	    ld_shlibs_CXX=no
14703	    ;;
14704          ghcx*)
14705	    # Green Hills C++ Compiler
14706	    # FIXME: insert proper C++ library support
14707	    ld_shlibs_CXX=no
14708	    ;;
14709          *)
14710	    # FIXME: insert proper C++ library support
14711	    ld_shlibs_CXX=no
14712	    ;;
14713        esac
14714        ;;
14715
14716      freebsd2.*)
14717        # C++ shared libraries reported to be fairly broken before
14718	# switch to ELF
14719        ld_shlibs_CXX=no
14720        ;;
14721
14722      freebsd-elf*)
14723        archive_cmds_need_lc_CXX=no
14724        ;;
14725
14726      freebsd* | dragonfly*)
14727        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14728        # conventions
14729        ld_shlibs_CXX=yes
14730        ;;
14731
14732      haiku*)
14733        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14734        link_all_deplibs_CXX=yes
14735        ;;
14736
14737      hpux9*)
14738        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14739        hardcode_libdir_separator_CXX=:
14740        export_dynamic_flag_spec_CXX='$wl-E'
14741        hardcode_direct_CXX=yes
14742        hardcode_minus_L_CXX=yes # Not in the search PATH,
14743				             # but as the default
14744				             # location of the library.
14745
14746        case $cc_basename in
14747          CC*)
14748            # FIXME: insert proper C++ library support
14749            ld_shlibs_CXX=no
14750            ;;
14751          aCC*)
14752            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14753            # Commands to make compiler produce verbose output that lists
14754            # what "hidden" libraries, object files and flags are used when
14755            # linking a shared library.
14756            #
14757            # There doesn't appear to be a way to prevent this compiler from
14758            # explicitly linking system object files so we need to strip them
14759            # from the output so that they don't get included in the library
14760            # dependencies.
14761            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"'
14762            ;;
14763          *)
14764            if test yes = "$GXX"; then
14765              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14766            else
14767              # FIXME: insert proper C++ library support
14768              ld_shlibs_CXX=no
14769            fi
14770            ;;
14771        esac
14772        ;;
14773
14774      hpux10*|hpux11*)
14775        if test no = "$with_gnu_ld"; then
14776	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14777	  hardcode_libdir_separator_CXX=:
14778
14779          case $host_cpu in
14780            hppa*64*|ia64*)
14781              ;;
14782            *)
14783	      export_dynamic_flag_spec_CXX='$wl-E'
14784              ;;
14785          esac
14786        fi
14787        case $host_cpu in
14788          hppa*64*|ia64*)
14789            hardcode_direct_CXX=no
14790            hardcode_shlibpath_var_CXX=no
14791            ;;
14792          *)
14793            hardcode_direct_CXX=yes
14794            hardcode_direct_absolute_CXX=yes
14795            hardcode_minus_L_CXX=yes # Not in the search PATH,
14796					         # but as the default
14797					         # location of the library.
14798            ;;
14799        esac
14800
14801        case $cc_basename in
14802          CC*)
14803	    # FIXME: insert proper C++ library support
14804	    ld_shlibs_CXX=no
14805	    ;;
14806          aCC*)
14807	    case $host_cpu in
14808	      hppa*64*)
14809	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14810	        ;;
14811	      ia64*)
14812	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14813	        ;;
14814	      *)
14815	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14816	        ;;
14817	    esac
14818	    # Commands to make compiler produce verbose output that lists
14819	    # what "hidden" libraries, object files and flags are used when
14820	    # linking a shared library.
14821	    #
14822	    # There doesn't appear to be a way to prevent this compiler from
14823	    # explicitly linking system object files so we need to strip them
14824	    # from the output so that they don't get included in the library
14825	    # dependencies.
14826	    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"'
14827	    ;;
14828          *)
14829	    if test yes = "$GXX"; then
14830	      if test no = "$with_gnu_ld"; then
14831	        case $host_cpu in
14832	          hppa*64*)
14833	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14834	            ;;
14835	          ia64*)
14836	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14837	            ;;
14838	          *)
14839	            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'
14840	            ;;
14841	        esac
14842	      fi
14843	    else
14844	      # FIXME: insert proper C++ library support
14845	      ld_shlibs_CXX=no
14846	    fi
14847	    ;;
14848        esac
14849        ;;
14850
14851      interix[3-9]*)
14852	hardcode_direct_CXX=no
14853	hardcode_shlibpath_var_CXX=no
14854	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14855	export_dynamic_flag_spec_CXX='$wl-E'
14856	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14857	# Instead, shared libraries are loaded at an image base (0x10000000 by
14858	# default) and relocated if they conflict, which is a slow very memory
14859	# consuming and fragmenting process.  To avoid this, we pick a random,
14860	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14861	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14862	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'
14863	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'
14864	;;
14865      irix5* | irix6*)
14866        case $cc_basename in
14867          CC*)
14868	    # SGI C++
14869	    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'
14870
14871	    # Archives containing C++ object files must be created using
14872	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14873	    # necessary to make sure instantiated templates are included
14874	    # in the archive.
14875	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14876	    ;;
14877          *)
14878	    if test yes = "$GXX"; then
14879	      if test no = "$with_gnu_ld"; then
14880	        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'
14881	      else
14882	        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'
14883	      fi
14884	    fi
14885	    link_all_deplibs_CXX=yes
14886	    ;;
14887        esac
14888        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14889        hardcode_libdir_separator_CXX=:
14890        inherit_rpath_CXX=yes
14891        ;;
14892
14893      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14894        case $cc_basename in
14895          KCC*)
14896	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14897
14898	    # KCC will only create a shared library if the output file
14899	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14900	    # to its proper name (with version) after linking.
14901	    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'
14902	    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'
14903	    # Commands to make compiler produce verbose output that lists
14904	    # what "hidden" libraries, object files and flags are used when
14905	    # linking a shared library.
14906	    #
14907	    # There doesn't appear to be a way to prevent this compiler from
14908	    # explicitly linking system object files so we need to strip them
14909	    # from the output so that they don't get included in the library
14910	    # dependencies.
14911	    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"'
14912
14913	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14914	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14915
14916	    # Archives containing C++ object files must be created using
14917	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14918	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14919	    ;;
14920	  icpc* | ecpc* )
14921	    # Intel C++
14922	    with_gnu_ld=yes
14923	    # version 8.0 and above of icpc choke on multiply defined symbols
14924	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14925	    # earlier do not add the objects themselves.
14926	    case `$CC -V 2>&1` in
14927	      *"Version 7."*)
14928	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14929		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'
14930		;;
14931	      *)  # Version 8.0 or newer
14932	        tmp_idyn=
14933	        case $host_cpu in
14934		  ia64*) tmp_idyn=' -i_dynamic';;
14935		esac
14936	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14937		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'
14938		;;
14939	    esac
14940	    archive_cmds_need_lc_CXX=no
14941	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14942	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14943	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14944	    ;;
14945          pgCC* | pgcpp*)
14946            # Portland Group C++ compiler
14947	    case `$CC -V` in
14948	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14949	      prelink_cmds_CXX='tpldir=Template.dir~
14950               rm -rf $tpldir~
14951               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14952               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14953	      old_archive_cmds_CXX='tpldir=Template.dir~
14954                rm -rf $tpldir~
14955                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14956                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14957                $RANLIB $oldlib'
14958	      archive_cmds_CXX='tpldir=Template.dir~
14959                rm -rf $tpldir~
14960                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14961                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14962	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14963                rm -rf $tpldir~
14964                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14965                $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'
14966	      ;;
14967	    *) # Version 6 and above use weak symbols
14968	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14969	      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'
14970	      ;;
14971	    esac
14972
14973	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14974	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14975	    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'
14976            ;;
14977	  cxx*)
14978	    # Compaq C++
14979	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14980	    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'
14981
14982	    runpath_var=LD_RUN_PATH
14983	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14984	    hardcode_libdir_separator_CXX=:
14985
14986	    # Commands to make compiler produce verbose output that lists
14987	    # what "hidden" libraries, object files and flags are used when
14988	    # linking a shared library.
14989	    #
14990	    # There doesn't appear to be a way to prevent this compiler from
14991	    # explicitly linking system object files so we need to strip them
14992	    # from the output so that they don't get included in the library
14993	    # dependencies.
14994	    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'
14995	    ;;
14996	  xl* | mpixl* | bgxl*)
14997	    # IBM XL 8.0 on PPC, with GNU ld
14998	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14999	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15000	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15001	    if test yes = "$supports_anon_versioning"; then
15002	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15003                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15004                echo "local: *; };" >> $output_objdir/$libname.ver~
15005                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15006	    fi
15007	    ;;
15008	  *)
15009	    case `$CC -V 2>&1 | sed 5q` in
15010	    *Sun\ C*)
15011	      # Sun C++ 5.9
15012	      no_undefined_flag_CXX=' -zdefs'
15013	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15014	      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'
15015	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15016	      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'
15017	      compiler_needs_object_CXX=yes
15018
15019	      # Not sure whether something based on
15020	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15021	      # would be better.
15022	      output_verbose_link_cmd='func_echo_all'
15023
15024	      # Archives containing C++ object files must be created using
15025	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15026	      # necessary to make sure instantiated templates are included
15027	      # in the archive.
15028	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15029	      ;;
15030	    esac
15031	    ;;
15032	esac
15033	;;
15034
15035      lynxos*)
15036        # FIXME: insert proper C++ library support
15037	ld_shlibs_CXX=no
15038	;;
15039
15040      m88k*)
15041        # FIXME: insert proper C++ library support
15042        ld_shlibs_CXX=no
15043	;;
15044
15045      mvs*)
15046        case $cc_basename in
15047          cxx*)
15048	    # FIXME: insert proper C++ library support
15049	    ld_shlibs_CXX=no
15050	    ;;
15051	  *)
15052	    # FIXME: insert proper C++ library support
15053	    ld_shlibs_CXX=no
15054	    ;;
15055	esac
15056	;;
15057
15058      netbsd*)
15059        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15060	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15061	  wlarc=
15062	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15063	  hardcode_direct_CXX=yes
15064	  hardcode_shlibpath_var_CXX=no
15065	fi
15066	# Workaround some broken pre-1.5 toolchains
15067	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15068	;;
15069
15070      *nto* | *qnx*)
15071        ld_shlibs_CXX=yes
15072	;;
15073
15074      openbsd* | bitrig*)
15075	if test -f /usr/libexec/ld.so; then
15076	  hardcode_direct_CXX=yes
15077	  hardcode_shlibpath_var_CXX=no
15078	  hardcode_direct_absolute_CXX=yes
15079	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15080	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15081	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15082	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15083	    export_dynamic_flag_spec_CXX='$wl-E'
15084	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15085	  fi
15086	  output_verbose_link_cmd=func_echo_all
15087	else
15088	  ld_shlibs_CXX=no
15089	fi
15090	;;
15091
15092      osf3* | osf4* | osf5*)
15093        case $cc_basename in
15094          KCC*)
15095	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15096
15097	    # KCC will only create a shared library if the output file
15098	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15099	    # to its proper name (with version) after linking.
15100	    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'
15101
15102	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15103	    hardcode_libdir_separator_CXX=:
15104
15105	    # Archives containing C++ object files must be created using
15106	    # the KAI C++ compiler.
15107	    case $host in
15108	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15109	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15110	    esac
15111	    ;;
15112          RCC*)
15113	    # Rational C++ 2.4.1
15114	    # FIXME: insert proper C++ library support
15115	    ld_shlibs_CXX=no
15116	    ;;
15117          cxx*)
15118	    case $host in
15119	      osf3*)
15120	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15121	        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'
15122	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15123		;;
15124	      *)
15125	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15126	        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'
15127	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15128                  echo "-hidden">> $lib.exp~
15129                  $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~
15130                  $RM $lib.exp'
15131	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15132		;;
15133	    esac
15134
15135	    hardcode_libdir_separator_CXX=:
15136
15137	    # Commands to make compiler produce verbose output that lists
15138	    # what "hidden" libraries, object files and flags are used when
15139	    # linking a shared library.
15140	    #
15141	    # There doesn't appear to be a way to prevent this compiler from
15142	    # explicitly linking system object files so we need to strip them
15143	    # from the output so that they don't get included in the library
15144	    # dependencies.
15145	    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"'
15146	    ;;
15147	  *)
15148	    if test yes,no = "$GXX,$with_gnu_ld"; then
15149	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15150	      case $host in
15151	        osf3*)
15152	          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'
15153		  ;;
15154	        *)
15155	          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'
15156		  ;;
15157	      esac
15158
15159	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15160	      hardcode_libdir_separator_CXX=:
15161
15162	      # Commands to make compiler produce verbose output that lists
15163	      # what "hidden" libraries, object files and flags are used when
15164	      # linking a shared library.
15165	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15166
15167	    else
15168	      # FIXME: insert proper C++ library support
15169	      ld_shlibs_CXX=no
15170	    fi
15171	    ;;
15172        esac
15173        ;;
15174
15175      psos*)
15176        # FIXME: insert proper C++ library support
15177        ld_shlibs_CXX=no
15178        ;;
15179
15180      sunos4*)
15181        case $cc_basename in
15182          CC*)
15183	    # Sun C++ 4.x
15184	    # FIXME: insert proper C++ library support
15185	    ld_shlibs_CXX=no
15186	    ;;
15187          lcc*)
15188	    # Lucid
15189	    # FIXME: insert proper C++ library support
15190	    ld_shlibs_CXX=no
15191	    ;;
15192          *)
15193	    # FIXME: insert proper C++ library support
15194	    ld_shlibs_CXX=no
15195	    ;;
15196        esac
15197        ;;
15198
15199      solaris*)
15200        case $cc_basename in
15201          CC* | sunCC*)
15202	    # Sun C++ 4.2, 5.x and Centerline C++
15203            archive_cmds_need_lc_CXX=yes
15204	    no_undefined_flag_CXX=' -zdefs'
15205	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15206	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15207              $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'
15208
15209	    hardcode_libdir_flag_spec_CXX='-R$libdir'
15210	    hardcode_shlibpath_var_CXX=no
15211	    case $host_os in
15212	      solaris2.[0-5] | solaris2.[0-5].*) ;;
15213	      *)
15214		# The compiler driver will combine and reorder linker options,
15215		# but understands '-z linker_flag'.
15216	        # Supported since Solaris 2.6 (maybe 2.5.1?)
15217		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15218	        ;;
15219	    esac
15220	    link_all_deplibs_CXX=yes
15221
15222	    output_verbose_link_cmd='func_echo_all'
15223
15224	    # Archives containing C++ object files must be created using
15225	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15226	    # necessary to make sure instantiated templates are included
15227	    # in the archive.
15228	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15229	    ;;
15230          gcx*)
15231	    # Green Hills C++ Compiler
15232	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15233
15234	    # The C++ compiler must be used to create the archive.
15235	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15236	    ;;
15237          *)
15238	    # GNU C++ compiler with Solaris linker
15239	    if test yes,no = "$GXX,$with_gnu_ld"; then
15240	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
15241	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15242	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15243	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15244                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15245
15246	        # Commands to make compiler produce verbose output that lists
15247	        # what "hidden" libraries, object files and flags are used when
15248	        # linking a shared library.
15249	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15250	      else
15251	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
15252	        # platform.
15253	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15254	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15255                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15256
15257	        # Commands to make compiler produce verbose output that lists
15258	        # what "hidden" libraries, object files and flags are used when
15259	        # linking a shared library.
15260	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15261	      fi
15262
15263	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15264	      case $host_os in
15265		solaris2.[0-5] | solaris2.[0-5].*) ;;
15266		*)
15267		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15268		  ;;
15269	      esac
15270	    fi
15271	    ;;
15272        esac
15273        ;;
15274
15275    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15276      no_undefined_flag_CXX='$wl-z,text'
15277      archive_cmds_need_lc_CXX=no
15278      hardcode_shlibpath_var_CXX=no
15279      runpath_var='LD_RUN_PATH'
15280
15281      case $cc_basename in
15282        CC*)
15283	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15284	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15285	  ;;
15286	*)
15287	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15288	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15289	  ;;
15290      esac
15291      ;;
15292
15293      sysv5* | sco3.2v5* | sco5v6*)
15294	# Note: We CANNOT use -z defs as we might desire, because we do not
15295	# link with -lc, and that would cause any symbols used from libc to
15296	# always be unresolved, which means just about no library would
15297	# ever link correctly.  If we're not using GNU ld we use -z text
15298	# though, which does catch some bad symbols but isn't as heavy-handed
15299	# as -z defs.
15300	no_undefined_flag_CXX='$wl-z,text'
15301	allow_undefined_flag_CXX='$wl-z,nodefs'
15302	archive_cmds_need_lc_CXX=no
15303	hardcode_shlibpath_var_CXX=no
15304	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15305	hardcode_libdir_separator_CXX=':'
15306	link_all_deplibs_CXX=yes
15307	export_dynamic_flag_spec_CXX='$wl-Bexport'
15308	runpath_var='LD_RUN_PATH'
15309
15310	case $cc_basename in
15311          CC*)
15312	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15313	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15314	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15315              '"$old_archive_cmds_CXX"
15316	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15317              '"$reload_cmds_CXX"
15318	    ;;
15319	  *)
15320	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15321	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15322	    ;;
15323	esac
15324      ;;
15325
15326      tandem*)
15327        case $cc_basename in
15328          NCC*)
15329	    # NonStop-UX NCC 3.20
15330	    # FIXME: insert proper C++ library support
15331	    ld_shlibs_CXX=no
15332	    ;;
15333          *)
15334	    # FIXME: insert proper C++ library support
15335	    ld_shlibs_CXX=no
15336	    ;;
15337        esac
15338        ;;
15339
15340      vxworks*)
15341        # FIXME: insert proper C++ library support
15342        ld_shlibs_CXX=no
15343        ;;
15344
15345      *)
15346        # FIXME: insert proper C++ library support
15347        ld_shlibs_CXX=no
15348        ;;
15349    esac
15350
15351    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15352$as_echo "$ld_shlibs_CXX" >&6; }
15353    test no = "$ld_shlibs_CXX" && can_build_shared=no
15354
15355    GCC_CXX=$GXX
15356    LD_CXX=$LD
15357
15358    ## CAVEAT EMPTOR:
15359    ## There is no encapsulation within the following macros, do not change
15360    ## the running order or otherwise move them around unless you know exactly
15361    ## what you are doing...
15362    # Dependencies to place before and after the object being linked:
15363predep_objects_CXX=
15364postdep_objects_CXX=
15365predeps_CXX=
15366postdeps_CXX=
15367compiler_lib_search_path_CXX=
15368
15369cat > conftest.$ac_ext <<_LT_EOF
15370class Foo
15371{
15372public:
15373  Foo (void) { a = 0; }
15374private:
15375  int a;
15376};
15377_LT_EOF
15378
15379
15380_lt_libdeps_save_CFLAGS=$CFLAGS
15381case "$CC $CFLAGS " in #(
15382*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15383*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15384*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15385esac
15386
15387if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15388  (eval $ac_compile) 2>&5
15389  ac_status=$?
15390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15391  test $ac_status = 0; }; then
15392  # Parse the compiler output and extract the necessary
15393  # objects, libraries and library flags.
15394
15395  # Sentinel used to keep track of whether or not we are before
15396  # the conftest object file.
15397  pre_test_object_deps_done=no
15398
15399  for p in `eval "$output_verbose_link_cmd"`; do
15400    case $prev$p in
15401
15402    -L* | -R* | -l*)
15403       # Some compilers place space between "-{L,R}" and the path.
15404       # Remove the space.
15405       if test x-L = "$p" ||
15406          test x-R = "$p"; then
15407	 prev=$p
15408	 continue
15409       fi
15410
15411       # Expand the sysroot to ease extracting the directories later.
15412       if test -z "$prev"; then
15413         case $p in
15414         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15415         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15416         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15417         esac
15418       fi
15419       case $p in
15420       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15421       esac
15422       if test no = "$pre_test_object_deps_done"; then
15423	 case $prev in
15424	 -L | -R)
15425	   # Internal compiler library paths should come after those
15426	   # provided the user.  The postdeps already come after the
15427	   # user supplied libs so there is no need to process them.
15428	   if test -z "$compiler_lib_search_path_CXX"; then
15429	     compiler_lib_search_path_CXX=$prev$p
15430	   else
15431	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15432	   fi
15433	   ;;
15434	 # The "-l" case would never come before the object being
15435	 # linked, so don't bother handling this case.
15436	 esac
15437       else
15438	 if test -z "$postdeps_CXX"; then
15439	   postdeps_CXX=$prev$p
15440	 else
15441	   postdeps_CXX="${postdeps_CXX} $prev$p"
15442	 fi
15443       fi
15444       prev=
15445       ;;
15446
15447    *.lto.$objext) ;; # Ignore GCC LTO objects
15448    *.$objext)
15449       # This assumes that the test object file only shows up
15450       # once in the compiler output.
15451       if test "$p" = "conftest.$objext"; then
15452	 pre_test_object_deps_done=yes
15453	 continue
15454       fi
15455
15456       if test no = "$pre_test_object_deps_done"; then
15457	 if test -z "$predep_objects_CXX"; then
15458	   predep_objects_CXX=$p
15459	 else
15460	   predep_objects_CXX="$predep_objects_CXX $p"
15461	 fi
15462       else
15463	 if test -z "$postdep_objects_CXX"; then
15464	   postdep_objects_CXX=$p
15465	 else
15466	   postdep_objects_CXX="$postdep_objects_CXX $p"
15467	 fi
15468       fi
15469       ;;
15470
15471    *) ;; # Ignore the rest.
15472
15473    esac
15474  done
15475
15476  # Clean up.
15477  rm -f a.out a.exe
15478else
15479  echo "libtool.m4: error: problem compiling CXX test program"
15480fi
15481
15482$RM -f confest.$objext
15483CFLAGS=$_lt_libdeps_save_CFLAGS
15484
15485# PORTME: override above test on systems where it is broken
15486case $host_os in
15487interix[3-9]*)
15488  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15489  # hack all around it, let's just trust "g++" to DTRT.
15490  predep_objects_CXX=
15491  postdep_objects_CXX=
15492  postdeps_CXX=
15493  ;;
15494esac
15495
15496
15497case " $postdeps_CXX " in
15498*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15499esac
15500 compiler_lib_search_dirs_CXX=
15501if test -n "${compiler_lib_search_path_CXX}"; then
15502 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15503fi
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535    lt_prog_compiler_wl_CXX=
15536lt_prog_compiler_pic_CXX=
15537lt_prog_compiler_static_CXX=
15538
15539
15540  # C++ specific cases for pic, static, wl, etc.
15541  if test yes = "$GXX"; then
15542    lt_prog_compiler_wl_CXX='-Wl,'
15543    lt_prog_compiler_static_CXX='-static'
15544
15545    case $host_os in
15546    aix*)
15547      # All AIX code is PIC.
15548      if test ia64 = "$host_cpu"; then
15549	# AIX 5 now supports IA64 processor
15550	lt_prog_compiler_static_CXX='-Bstatic'
15551      fi
15552      lt_prog_compiler_pic_CXX='-fPIC'
15553      ;;
15554
15555    amigaos*)
15556      case $host_cpu in
15557      powerpc)
15558            # see comment about AmigaOS4 .so support
15559            lt_prog_compiler_pic_CXX='-fPIC'
15560        ;;
15561      m68k)
15562            # FIXME: we need at least 68020 code to build shared libraries, but
15563            # adding the '-m68020' flag to GCC prevents building anything better,
15564            # like '-m68040'.
15565            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15566        ;;
15567      esac
15568      ;;
15569
15570    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15571      # PIC is the default for these OSes.
15572      ;;
15573    mingw* | cygwin* | os2* | pw32* | cegcc*)
15574      # This hack is so that the source file can tell whether it is being
15575      # built for inclusion in a dll (and should export symbols for example).
15576      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15577      # (--disable-auto-import) libraries
15578      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15579      case $host_os in
15580      os2*)
15581	lt_prog_compiler_static_CXX='$wl-static'
15582	;;
15583      esac
15584      ;;
15585    darwin* | rhapsody*)
15586      # PIC is the default on this platform
15587      # Common symbols not allowed in MH_DYLIB files
15588      lt_prog_compiler_pic_CXX='-fno-common'
15589      ;;
15590    *djgpp*)
15591      # DJGPP does not support shared libraries at all
15592      lt_prog_compiler_pic_CXX=
15593      ;;
15594    haiku*)
15595      # PIC is the default for Haiku.
15596      # The "-static" flag exists, but is broken.
15597      lt_prog_compiler_static_CXX=
15598      ;;
15599    interix[3-9]*)
15600      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15601      # Instead, we relocate shared libraries at runtime.
15602      ;;
15603    sysv4*MP*)
15604      if test -d /usr/nec; then
15605	lt_prog_compiler_pic_CXX=-Kconform_pic
15606      fi
15607      ;;
15608    hpux*)
15609      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15610      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15611      # sets the default TLS model and affects inlining.
15612      case $host_cpu in
15613      hppa*64*)
15614	;;
15615      *)
15616	lt_prog_compiler_pic_CXX='-fPIC'
15617	;;
15618      esac
15619      ;;
15620    *qnx* | *nto*)
15621      # QNX uses GNU C++, but need to define -shared option too, otherwise
15622      # it will coredump.
15623      lt_prog_compiler_pic_CXX='-fPIC -shared'
15624      ;;
15625    *)
15626      lt_prog_compiler_pic_CXX='-fPIC'
15627      ;;
15628    esac
15629  else
15630    case $host_os in
15631      aix[4-9]*)
15632	# All AIX code is PIC.
15633	if test ia64 = "$host_cpu"; then
15634	  # AIX 5 now supports IA64 processor
15635	  lt_prog_compiler_static_CXX='-Bstatic'
15636	else
15637	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15638	fi
15639	;;
15640      chorus*)
15641	case $cc_basename in
15642	cxch68*)
15643	  # Green Hills C++ Compiler
15644	  # _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"
15645	  ;;
15646	esac
15647	;;
15648      mingw* | cygwin* | os2* | pw32* | cegcc*)
15649	# This hack is so that the source file can tell whether it is being
15650	# built for inclusion in a dll (and should export symbols for example).
15651	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15652	;;
15653      dgux*)
15654	case $cc_basename in
15655	  ec++*)
15656	    lt_prog_compiler_pic_CXX='-KPIC'
15657	    ;;
15658	  ghcx*)
15659	    # Green Hills C++ Compiler
15660	    lt_prog_compiler_pic_CXX='-pic'
15661	    ;;
15662	  *)
15663	    ;;
15664	esac
15665	;;
15666      freebsd* | dragonfly*)
15667	# FreeBSD uses GNU C++
15668	;;
15669      hpux9* | hpux10* | hpux11*)
15670	case $cc_basename in
15671	  CC*)
15672	    lt_prog_compiler_wl_CXX='-Wl,'
15673	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15674	    if test ia64 != "$host_cpu"; then
15675	      lt_prog_compiler_pic_CXX='+Z'
15676	    fi
15677	    ;;
15678	  aCC*)
15679	    lt_prog_compiler_wl_CXX='-Wl,'
15680	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15681	    case $host_cpu in
15682	    hppa*64*|ia64*)
15683	      # +Z the default
15684	      ;;
15685	    *)
15686	      lt_prog_compiler_pic_CXX='+Z'
15687	      ;;
15688	    esac
15689	    ;;
15690	  *)
15691	    ;;
15692	esac
15693	;;
15694      interix*)
15695	# This is c89, which is MS Visual C++ (no shared libs)
15696	# Anyone wants to do a port?
15697	;;
15698      irix5* | irix6* | nonstopux*)
15699	case $cc_basename in
15700	  CC*)
15701	    lt_prog_compiler_wl_CXX='-Wl,'
15702	    lt_prog_compiler_static_CXX='-non_shared'
15703	    # CC pic flag -KPIC is the default.
15704	    ;;
15705	  *)
15706	    ;;
15707	esac
15708	;;
15709      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15710	case $cc_basename in
15711	  KCC*)
15712	    # KAI C++ Compiler
15713	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15714	    lt_prog_compiler_pic_CXX='-fPIC'
15715	    ;;
15716	  ecpc* )
15717	    # old Intel C++ for x86_64, which still supported -KPIC.
15718	    lt_prog_compiler_wl_CXX='-Wl,'
15719	    lt_prog_compiler_pic_CXX='-KPIC'
15720	    lt_prog_compiler_static_CXX='-static'
15721	    ;;
15722	  icpc* )
15723	    # Intel C++, used to be incompatible with GCC.
15724	    # ICC 10 doesn't accept -KPIC any more.
15725	    lt_prog_compiler_wl_CXX='-Wl,'
15726	    lt_prog_compiler_pic_CXX='-fPIC'
15727	    lt_prog_compiler_static_CXX='-static'
15728	    ;;
15729	  pgCC* | pgcpp*)
15730	    # Portland Group C++ compiler
15731	    lt_prog_compiler_wl_CXX='-Wl,'
15732	    lt_prog_compiler_pic_CXX='-fpic'
15733	    lt_prog_compiler_static_CXX='-Bstatic'
15734	    ;;
15735	  cxx*)
15736	    # Compaq C++
15737	    # Make sure the PIC flag is empty.  It appears that all Alpha
15738	    # Linux and Compaq Tru64 Unix objects are PIC.
15739	    lt_prog_compiler_pic_CXX=
15740	    lt_prog_compiler_static_CXX='-non_shared'
15741	    ;;
15742	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15743	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15744	    lt_prog_compiler_wl_CXX='-Wl,'
15745	    lt_prog_compiler_pic_CXX='-qpic'
15746	    lt_prog_compiler_static_CXX='-qstaticlink'
15747	    ;;
15748	  *)
15749	    case `$CC -V 2>&1 | sed 5q` in
15750	    *Sun\ C*)
15751	      # Sun C++ 5.9
15752	      lt_prog_compiler_pic_CXX='-KPIC'
15753	      lt_prog_compiler_static_CXX='-Bstatic'
15754	      lt_prog_compiler_wl_CXX='-Qoption ld '
15755	      ;;
15756	    esac
15757	    ;;
15758	esac
15759	;;
15760      lynxos*)
15761	;;
15762      m88k*)
15763	;;
15764      mvs*)
15765	case $cc_basename in
15766	  cxx*)
15767	    lt_prog_compiler_pic_CXX='-W c,exportall'
15768	    ;;
15769	  *)
15770	    ;;
15771	esac
15772	;;
15773      netbsd* | netbsdelf*-gnu)
15774	;;
15775      *qnx* | *nto*)
15776        # QNX uses GNU C++, but need to define -shared option too, otherwise
15777        # it will coredump.
15778        lt_prog_compiler_pic_CXX='-fPIC -shared'
15779        ;;
15780      osf3* | osf4* | osf5*)
15781	case $cc_basename in
15782	  KCC*)
15783	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15784	    ;;
15785	  RCC*)
15786	    # Rational C++ 2.4.1
15787	    lt_prog_compiler_pic_CXX='-pic'
15788	    ;;
15789	  cxx*)
15790	    # Digital/Compaq C++
15791	    lt_prog_compiler_wl_CXX='-Wl,'
15792	    # Make sure the PIC flag is empty.  It appears that all Alpha
15793	    # Linux and Compaq Tru64 Unix objects are PIC.
15794	    lt_prog_compiler_pic_CXX=
15795	    lt_prog_compiler_static_CXX='-non_shared'
15796	    ;;
15797	  *)
15798	    ;;
15799	esac
15800	;;
15801      psos*)
15802	;;
15803      solaris*)
15804	case $cc_basename in
15805	  CC* | sunCC*)
15806	    # Sun C++ 4.2, 5.x and Centerline C++
15807	    lt_prog_compiler_pic_CXX='-KPIC'
15808	    lt_prog_compiler_static_CXX='-Bstatic'
15809	    lt_prog_compiler_wl_CXX='-Qoption ld '
15810	    ;;
15811	  gcx*)
15812	    # Green Hills C++ Compiler
15813	    lt_prog_compiler_pic_CXX='-PIC'
15814	    ;;
15815	  *)
15816	    ;;
15817	esac
15818	;;
15819      sunos4*)
15820	case $cc_basename in
15821	  CC*)
15822	    # Sun C++ 4.x
15823	    lt_prog_compiler_pic_CXX='-pic'
15824	    lt_prog_compiler_static_CXX='-Bstatic'
15825	    ;;
15826	  lcc*)
15827	    # Lucid
15828	    lt_prog_compiler_pic_CXX='-pic'
15829	    ;;
15830	  *)
15831	    ;;
15832	esac
15833	;;
15834      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15835	case $cc_basename in
15836	  CC*)
15837	    lt_prog_compiler_wl_CXX='-Wl,'
15838	    lt_prog_compiler_pic_CXX='-KPIC'
15839	    lt_prog_compiler_static_CXX='-Bstatic'
15840	    ;;
15841	esac
15842	;;
15843      tandem*)
15844	case $cc_basename in
15845	  NCC*)
15846	    # NonStop-UX NCC 3.20
15847	    lt_prog_compiler_pic_CXX='-KPIC'
15848	    ;;
15849	  *)
15850	    ;;
15851	esac
15852	;;
15853      vxworks*)
15854	;;
15855      *)
15856	lt_prog_compiler_can_build_shared_CXX=no
15857	;;
15858    esac
15859  fi
15860
15861case $host_os in
15862  # For platforms that do not support PIC, -DPIC is meaningless:
15863  *djgpp*)
15864    lt_prog_compiler_pic_CXX=
15865    ;;
15866  *)
15867    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15868    ;;
15869esac
15870
15871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15872$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15873if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15874  $as_echo_n "(cached) " >&6
15875else
15876  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15877fi
15878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15879$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15880lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15881
15882#
15883# Check to make sure the PIC flag actually works.
15884#
15885if test -n "$lt_prog_compiler_pic_CXX"; then
15886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15887$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15888if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15889  $as_echo_n "(cached) " >&6
15890else
15891  lt_cv_prog_compiler_pic_works_CXX=no
15892   ac_outfile=conftest.$ac_objext
15893   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15894   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15895   # Insert the option either (1) after the last *FLAGS variable, or
15896   # (2) before a word containing "conftest.", or (3) at the end.
15897   # Note that $ac_compile itself does not contain backslashes and begins
15898   # with a dollar sign (not a hyphen), so the echo should work correctly.
15899   # The option is referenced via a variable to avoid confusing sed.
15900   lt_compile=`echo "$ac_compile" | $SED \
15901   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15902   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15903   -e 's:$: $lt_compiler_flag:'`
15904   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15905   (eval "$lt_compile" 2>conftest.err)
15906   ac_status=$?
15907   cat conftest.err >&5
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   if (exit $ac_status) && test -s "$ac_outfile"; then
15910     # The compiler can only warn and ignore the option if not recognized
15911     # So say no if there are warnings other than the usual output.
15912     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15913     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15914     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15915       lt_cv_prog_compiler_pic_works_CXX=yes
15916     fi
15917   fi
15918   $RM conftest*
15919
15920fi
15921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15922$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15923
15924if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15925    case $lt_prog_compiler_pic_CXX in
15926     "" | " "*) ;;
15927     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15928     esac
15929else
15930    lt_prog_compiler_pic_CXX=
15931     lt_prog_compiler_can_build_shared_CXX=no
15932fi
15933
15934fi
15935
15936
15937
15938
15939
15940#
15941# Check to make sure the static flag actually works.
15942#
15943wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15945$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15946if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15947  $as_echo_n "(cached) " >&6
15948else
15949  lt_cv_prog_compiler_static_works_CXX=no
15950   save_LDFLAGS=$LDFLAGS
15951   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15952   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15953   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15954     # The linker can only warn and ignore the option if not recognized
15955     # So say no if there are warnings
15956     if test -s conftest.err; then
15957       # Append any errors to the config.log.
15958       cat conftest.err 1>&5
15959       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15960       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15961       if diff conftest.exp conftest.er2 >/dev/null; then
15962         lt_cv_prog_compiler_static_works_CXX=yes
15963       fi
15964     else
15965       lt_cv_prog_compiler_static_works_CXX=yes
15966     fi
15967   fi
15968   $RM -r conftest*
15969   LDFLAGS=$save_LDFLAGS
15970
15971fi
15972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15973$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15974
15975if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15976    :
15977else
15978    lt_prog_compiler_static_CXX=
15979fi
15980
15981
15982
15983
15984    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15985$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15986if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15987  $as_echo_n "(cached) " >&6
15988else
15989  lt_cv_prog_compiler_c_o_CXX=no
15990   $RM -r conftest 2>/dev/null
15991   mkdir conftest
15992   cd conftest
15993   mkdir out
15994   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15995
15996   lt_compiler_flag="-o out/conftest2.$ac_objext"
15997   # Insert the option either (1) after the last *FLAGS variable, or
15998   # (2) before a word containing "conftest.", or (3) at the end.
15999   # Note that $ac_compile itself does not contain backslashes and begins
16000   # with a dollar sign (not a hyphen), so the echo should work correctly.
16001   lt_compile=`echo "$ac_compile" | $SED \
16002   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16003   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16004   -e 's:$: $lt_compiler_flag:'`
16005   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16006   (eval "$lt_compile" 2>out/conftest.err)
16007   ac_status=$?
16008   cat out/conftest.err >&5
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16011   then
16012     # The compiler can only warn and ignore the option if not recognized
16013     # So say no if there are warnings
16014     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16015     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16016     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16017       lt_cv_prog_compiler_c_o_CXX=yes
16018     fi
16019   fi
16020   chmod u+w . 2>&5
16021   $RM conftest*
16022   # SGI C++ compiler will create directory out/ii_files/ for
16023   # template instantiation
16024   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16025   $RM out/* && rmdir out
16026   cd ..
16027   $RM -r conftest
16028   $RM conftest*
16029
16030fi
16031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16032$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16033
16034
16035
16036    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16037$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16038if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16039  $as_echo_n "(cached) " >&6
16040else
16041  lt_cv_prog_compiler_c_o_CXX=no
16042   $RM -r conftest 2>/dev/null
16043   mkdir conftest
16044   cd conftest
16045   mkdir out
16046   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16047
16048   lt_compiler_flag="-o out/conftest2.$ac_objext"
16049   # Insert the option either (1) after the last *FLAGS variable, or
16050   # (2) before a word containing "conftest.", or (3) at the end.
16051   # Note that $ac_compile itself does not contain backslashes and begins
16052   # with a dollar sign (not a hyphen), so the echo should work correctly.
16053   lt_compile=`echo "$ac_compile" | $SED \
16054   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16055   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16056   -e 's:$: $lt_compiler_flag:'`
16057   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16058   (eval "$lt_compile" 2>out/conftest.err)
16059   ac_status=$?
16060   cat out/conftest.err >&5
16061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16063   then
16064     # The compiler can only warn and ignore the option if not recognized
16065     # So say no if there are warnings
16066     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16067     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16068     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16069       lt_cv_prog_compiler_c_o_CXX=yes
16070     fi
16071   fi
16072   chmod u+w . 2>&5
16073   $RM conftest*
16074   # SGI C++ compiler will create directory out/ii_files/ for
16075   # template instantiation
16076   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16077   $RM out/* && rmdir out
16078   cd ..
16079   $RM -r conftest
16080   $RM conftest*
16081
16082fi
16083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16084$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16085
16086
16087
16088
16089hard_links=nottested
16090if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16091  # do not overwrite the value of need_locks provided by the user
16092  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16093$as_echo_n "checking if we can lock with hard links... " >&6; }
16094  hard_links=yes
16095  $RM conftest*
16096  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16097  touch conftest.a
16098  ln conftest.a conftest.b 2>&5 || hard_links=no
16099  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16101$as_echo "$hard_links" >&6; }
16102  if test no = "$hard_links"; then
16103    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16104$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16105    need_locks=warn
16106  fi
16107else
16108  need_locks=no
16109fi
16110
16111
16112
16113    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16114$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16115
16116  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16117  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16118  case $host_os in
16119  aix[4-9]*)
16120    # If we're using GNU nm, then we don't want the "-C" option.
16121    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16122    # Without the "-l" option, or with the "-B" option, AIX nm treats
16123    # weak defined symbols like other global defined symbols, whereas
16124    # GNU nm marks them as "W".
16125    # While the 'weak' keyword is ignored in the Export File, we need
16126    # it in the Import File for the 'aix-soname' feature, so we have
16127    # to replace the "-B" option with "-P" for AIX nm.
16128    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16129      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16130    else
16131      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16132    fi
16133    ;;
16134  pw32*)
16135    export_symbols_cmds_CXX=$ltdll_cmds
16136    ;;
16137  cygwin* | mingw* | cegcc*)
16138    case $cc_basename in
16139    cl*)
16140      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16141      ;;
16142    *)
16143      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'
16144      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16145      ;;
16146    esac
16147    ;;
16148  linux* | k*bsd*-gnu | gnu*)
16149    link_all_deplibs_CXX=no
16150    ;;
16151  *)
16152    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16153    ;;
16154  esac
16155
16156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16157$as_echo "$ld_shlibs_CXX" >&6; }
16158test no = "$ld_shlibs_CXX" && can_build_shared=no
16159
16160with_gnu_ld_CXX=$with_gnu_ld
16161
16162
16163
16164
16165
16166
16167#
16168# Do we need to explicitly link libc?
16169#
16170case "x$archive_cmds_need_lc_CXX" in
16171x|xyes)
16172  # Assume -lc should be added
16173  archive_cmds_need_lc_CXX=yes
16174
16175  if test yes,yes = "$GCC,$enable_shared"; then
16176    case $archive_cmds_CXX in
16177    *'~'*)
16178      # FIXME: we may have to deal with multi-command sequences.
16179      ;;
16180    '$CC '*)
16181      # Test whether the compiler implicitly links with -lc since on some
16182      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16183      # to ld, don't add -lc before -lgcc.
16184      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16185$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16186if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16187  $as_echo_n "(cached) " >&6
16188else
16189  $RM conftest*
16190	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16191
16192	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16193  (eval $ac_compile) 2>&5
16194  ac_status=$?
16195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16196  test $ac_status = 0; } 2>conftest.err; then
16197	  soname=conftest
16198	  lib=conftest
16199	  libobjs=conftest.$ac_objext
16200	  deplibs=
16201	  wl=$lt_prog_compiler_wl_CXX
16202	  pic_flag=$lt_prog_compiler_pic_CXX
16203	  compiler_flags=-v
16204	  linker_flags=-v
16205	  verstring=
16206	  output_objdir=.
16207	  libname=conftest
16208	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16209	  allow_undefined_flag_CXX=
16210	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16211  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16212  ac_status=$?
16213  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16214  test $ac_status = 0; }
16215	  then
16216	    lt_cv_archive_cmds_need_lc_CXX=no
16217	  else
16218	    lt_cv_archive_cmds_need_lc_CXX=yes
16219	  fi
16220	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16221	else
16222	  cat conftest.err 1>&5
16223	fi
16224	$RM conftest*
16225
16226fi
16227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16228$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16229      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16230      ;;
16231    esac
16232  fi
16233  ;;
16234esac
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16298$as_echo_n "checking dynamic linker characteristics... " >&6; }
16299
16300library_names_spec=
16301libname_spec='lib$name'
16302soname_spec=
16303shrext_cmds=.so
16304postinstall_cmds=
16305postuninstall_cmds=
16306finish_cmds=
16307finish_eval=
16308shlibpath_var=
16309shlibpath_overrides_runpath=unknown
16310version_type=none
16311dynamic_linker="$host_os ld.so"
16312sys_lib_dlsearch_path_spec="/lib /usr/lib"
16313need_lib_prefix=unknown
16314hardcode_into_libs=no
16315
16316# when you set need_version to no, make sure it does not cause -set_version
16317# flags to be left without arguments
16318need_version=unknown
16319
16320
16321
16322case $host_os in
16323aix3*)
16324  version_type=linux # correct to gnu/linux during the next big refactor
16325  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16326  shlibpath_var=LIBPATH
16327
16328  # AIX 3 has no versioning support, so we append a major version to the name.
16329  soname_spec='$libname$release$shared_ext$major'
16330  ;;
16331
16332aix[4-9]*)
16333  version_type=linux # correct to gnu/linux during the next big refactor
16334  need_lib_prefix=no
16335  need_version=no
16336  hardcode_into_libs=yes
16337  if test ia64 = "$host_cpu"; then
16338    # AIX 5 supports IA64
16339    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16340    shlibpath_var=LD_LIBRARY_PATH
16341  else
16342    # With GCC up to 2.95.x, collect2 would create an import file
16343    # for dependence libraries.  The import file would start with
16344    # the line '#! .'.  This would cause the generated library to
16345    # depend on '.', always an invalid library.  This was fixed in
16346    # development snapshots of GCC prior to 3.0.
16347    case $host_os in
16348      aix4 | aix4.[01] | aix4.[01].*)
16349      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16350	   echo ' yes '
16351	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16352	:
16353      else
16354	can_build_shared=no
16355      fi
16356      ;;
16357    esac
16358    # Using Import Files as archive members, it is possible to support
16359    # filename-based versioning of shared library archives on AIX. While
16360    # this would work for both with and without runtime linking, it will
16361    # prevent static linking of such archives. So we do filename-based
16362    # shared library versioning with .so extension only, which is used
16363    # when both runtime linking and shared linking is enabled.
16364    # Unfortunately, runtime linking may impact performance, so we do
16365    # not want this to be the default eventually. Also, we use the
16366    # versioned .so libs for executables only if there is the -brtl
16367    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16368    # To allow for filename-based versioning support, we need to create
16369    # libNAME.so.V as an archive file, containing:
16370    # *) an Import File, referring to the versioned filename of the
16371    #    archive as well as the shared archive member, telling the
16372    #    bitwidth (32 or 64) of that shared object, and providing the
16373    #    list of exported symbols of that shared object, eventually
16374    #    decorated with the 'weak' keyword
16375    # *) the shared object with the F_LOADONLY flag set, to really avoid
16376    #    it being seen by the linker.
16377    # At run time we better use the real file rather than another symlink,
16378    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16379
16380    case $with_aix_soname,$aix_use_runtimelinking in
16381    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16382    # soname into executable. Probably we can add versioning support to
16383    # collect2, so additional links can be useful in future.
16384    aix,yes) # traditional libtool
16385      dynamic_linker='AIX unversionable lib.so'
16386      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16387      # instead of lib<name>.a to let people know that these are not
16388      # typical AIX shared libraries.
16389      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16390      ;;
16391    aix,no) # traditional AIX only
16392      dynamic_linker='AIX lib.a(lib.so.V)'
16393      # We preserve .a as extension for shared libraries through AIX4.2
16394      # and later when we are not doing run time linking.
16395      library_names_spec='$libname$release.a $libname.a'
16396      soname_spec='$libname$release$shared_ext$major'
16397      ;;
16398    svr4,*) # full svr4 only
16399      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16400      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16401      # We do not specify a path in Import Files, so LIBPATH fires.
16402      shlibpath_overrides_runpath=yes
16403      ;;
16404    *,yes) # both, prefer svr4
16405      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16406      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16407      # unpreferred sharedlib libNAME.a needs extra handling
16408      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16409      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16410      # We do not specify a path in Import Files, so LIBPATH fires.
16411      shlibpath_overrides_runpath=yes
16412      ;;
16413    *,no) # both, prefer aix
16414      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16415      library_names_spec='$libname$release.a $libname.a'
16416      soname_spec='$libname$release$shared_ext$major'
16417      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16418      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16419      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16420      ;;
16421    esac
16422    shlibpath_var=LIBPATH
16423  fi
16424  ;;
16425
16426amigaos*)
16427  case $host_cpu in
16428  powerpc)
16429    # Since July 2007 AmigaOS4 officially supports .so libraries.
16430    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16431    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16432    ;;
16433  m68k)
16434    library_names_spec='$libname.ixlibrary $libname.a'
16435    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16436    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16437    ;;
16438  esac
16439  ;;
16440
16441beos*)
16442  library_names_spec='$libname$shared_ext'
16443  dynamic_linker="$host_os ld.so"
16444  shlibpath_var=LIBRARY_PATH
16445  ;;
16446
16447bsdi[45]*)
16448  version_type=linux # correct to gnu/linux during the next big refactor
16449  need_version=no
16450  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16451  soname_spec='$libname$release$shared_ext$major'
16452  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16453  shlibpath_var=LD_LIBRARY_PATH
16454  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16455  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16456  # the default ld.so.conf also contains /usr/contrib/lib and
16457  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16458  # libtool to hard-code these into programs
16459  ;;
16460
16461cygwin* | mingw* | pw32* | cegcc*)
16462  version_type=windows
16463  shrext_cmds=.dll
16464  need_version=no
16465  need_lib_prefix=no
16466
16467  case $GCC,$cc_basename in
16468  yes,*)
16469    # gcc
16470    library_names_spec='$libname.dll.a'
16471    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16472    postinstall_cmds='base_file=`basename \$file`~
16473      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16474      dldir=$destdir/`dirname \$dlpath`~
16475      test -d \$dldir || mkdir -p \$dldir~
16476      $install_prog $dir/$dlname \$dldir/$dlname~
16477      chmod a+x \$dldir/$dlname~
16478      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16479        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16480      fi'
16481    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16482      dlpath=$dir/\$dldll~
16483       $RM \$dlpath'
16484    shlibpath_overrides_runpath=yes
16485
16486    case $host_os in
16487    cygwin*)
16488      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16489      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16490
16491      ;;
16492    mingw* | cegcc*)
16493      # MinGW DLLs use traditional 'lib' prefix
16494      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16495      ;;
16496    pw32*)
16497      # pw32 DLLs use 'pw' prefix rather than 'lib'
16498      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16499      ;;
16500    esac
16501    dynamic_linker='Win32 ld.exe'
16502    ;;
16503
16504  *,cl*)
16505    # Native MSVC
16506    libname_spec='$name'
16507    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16508    library_names_spec='$libname.dll.lib'
16509
16510    case $build_os in
16511    mingw*)
16512      sys_lib_search_path_spec=
16513      lt_save_ifs=$IFS
16514      IFS=';'
16515      for lt_path in $LIB
16516      do
16517        IFS=$lt_save_ifs
16518        # Let DOS variable expansion print the short 8.3 style file name.
16519        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16520        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16521      done
16522      IFS=$lt_save_ifs
16523      # Convert to MSYS style.
16524      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16525      ;;
16526    cygwin*)
16527      # Convert to unix form, then to dos form, then back to unix form
16528      # but this time dos style (no spaces!) so that the unix form looks
16529      # like /cygdrive/c/PROGRA~1:/cygdr...
16530      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16531      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16532      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16533      ;;
16534    *)
16535      sys_lib_search_path_spec=$LIB
16536      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16537        # It is most probably a Windows format PATH.
16538        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16539      else
16540        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16541      fi
16542      # FIXME: find the short name or the path components, as spaces are
16543      # common. (e.g. "Program Files" -> "PROGRA~1")
16544      ;;
16545    esac
16546
16547    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16548    postinstall_cmds='base_file=`basename \$file`~
16549      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16550      dldir=$destdir/`dirname \$dlpath`~
16551      test -d \$dldir || mkdir -p \$dldir~
16552      $install_prog $dir/$dlname \$dldir/$dlname'
16553    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16554      dlpath=$dir/\$dldll~
16555       $RM \$dlpath'
16556    shlibpath_overrides_runpath=yes
16557    dynamic_linker='Win32 link.exe'
16558    ;;
16559
16560  *)
16561    # Assume MSVC wrapper
16562    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16563    dynamic_linker='Win32 ld.exe'
16564    ;;
16565  esac
16566  # FIXME: first we should search . and the directory the executable is in
16567  shlibpath_var=PATH
16568  ;;
16569
16570darwin* | rhapsody*)
16571  dynamic_linker="$host_os dyld"
16572  version_type=darwin
16573  need_lib_prefix=no
16574  need_version=no
16575  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16576  soname_spec='$libname$release$major$shared_ext'
16577  shlibpath_overrides_runpath=yes
16578  shlibpath_var=DYLD_LIBRARY_PATH
16579  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16580
16581  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16582  ;;
16583
16584dgux*)
16585  version_type=linux # correct to gnu/linux during the next big refactor
16586  need_lib_prefix=no
16587  need_version=no
16588  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16589  soname_spec='$libname$release$shared_ext$major'
16590  shlibpath_var=LD_LIBRARY_PATH
16591  ;;
16592
16593freebsd* | dragonfly*)
16594  # DragonFly does not have aout.  When/if they implement a new
16595  # versioning mechanism, adjust this.
16596  if test -x /usr/bin/objformat; then
16597    objformat=`/usr/bin/objformat`
16598  else
16599    case $host_os in
16600    freebsd[23].*) objformat=aout ;;
16601    *) objformat=elf ;;
16602    esac
16603  fi
16604  version_type=freebsd-$objformat
16605  case $version_type in
16606    freebsd-elf*)
16607      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16608      soname_spec='$libname$release$shared_ext$major'
16609      need_version=no
16610      need_lib_prefix=no
16611      ;;
16612    freebsd-*)
16613      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16614      need_version=yes
16615      ;;
16616  esac
16617  shlibpath_var=LD_LIBRARY_PATH
16618  case $host_os in
16619  freebsd2.*)
16620    shlibpath_overrides_runpath=yes
16621    ;;
16622  freebsd3.[01]* | freebsdelf3.[01]*)
16623    shlibpath_overrides_runpath=yes
16624    hardcode_into_libs=yes
16625    ;;
16626  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16627  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16628    shlibpath_overrides_runpath=no
16629    hardcode_into_libs=yes
16630    ;;
16631  *) # from 4.6 on, and DragonFly
16632    shlibpath_overrides_runpath=yes
16633    hardcode_into_libs=yes
16634    ;;
16635  esac
16636  ;;
16637
16638haiku*)
16639  version_type=linux # correct to gnu/linux during the next big refactor
16640  need_lib_prefix=no
16641  need_version=no
16642  dynamic_linker="$host_os runtime_loader"
16643  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16644  soname_spec='$libname$release$shared_ext$major'
16645  shlibpath_var=LIBRARY_PATH
16646  shlibpath_overrides_runpath=no
16647  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16648  hardcode_into_libs=yes
16649  ;;
16650
16651hpux9* | hpux10* | hpux11*)
16652  # Give a soname corresponding to the major version so that dld.sl refuses to
16653  # link against other versions.
16654  version_type=sunos
16655  need_lib_prefix=no
16656  need_version=no
16657  case $host_cpu in
16658  ia64*)
16659    shrext_cmds='.so'
16660    hardcode_into_libs=yes
16661    dynamic_linker="$host_os dld.so"
16662    shlibpath_var=LD_LIBRARY_PATH
16663    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16664    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16665    soname_spec='$libname$release$shared_ext$major'
16666    if test 32 = "$HPUX_IA64_MODE"; then
16667      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16668      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16669    else
16670      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16671      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16672    fi
16673    ;;
16674  hppa*64*)
16675    shrext_cmds='.sl'
16676    hardcode_into_libs=yes
16677    dynamic_linker="$host_os dld.sl"
16678    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16679    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16680    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16681    soname_spec='$libname$release$shared_ext$major'
16682    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16683    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16684    ;;
16685  *)
16686    shrext_cmds='.sl'
16687    dynamic_linker="$host_os dld.sl"
16688    shlibpath_var=SHLIB_PATH
16689    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16690    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16691    soname_spec='$libname$release$shared_ext$major'
16692    ;;
16693  esac
16694  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16695  postinstall_cmds='chmod 555 $lib'
16696  # or fails outright, so override atomically:
16697  install_override_mode=555
16698  ;;
16699
16700interix[3-9]*)
16701  version_type=linux # correct to gnu/linux during the next big refactor
16702  need_lib_prefix=no
16703  need_version=no
16704  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16705  soname_spec='$libname$release$shared_ext$major'
16706  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16707  shlibpath_var=LD_LIBRARY_PATH
16708  shlibpath_overrides_runpath=no
16709  hardcode_into_libs=yes
16710  ;;
16711
16712irix5* | irix6* | nonstopux*)
16713  case $host_os in
16714    nonstopux*) version_type=nonstopux ;;
16715    *)
16716	if test yes = "$lt_cv_prog_gnu_ld"; then
16717		version_type=linux # correct to gnu/linux during the next big refactor
16718	else
16719		version_type=irix
16720	fi ;;
16721  esac
16722  need_lib_prefix=no
16723  need_version=no
16724  soname_spec='$libname$release$shared_ext$major'
16725  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16726  case $host_os in
16727  irix5* | nonstopux*)
16728    libsuff= shlibsuff=
16729    ;;
16730  *)
16731    case $LD in # libtool.m4 will add one of these switches to LD
16732    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16733      libsuff= shlibsuff= libmagic=32-bit;;
16734    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16735      libsuff=32 shlibsuff=N32 libmagic=N32;;
16736    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16737      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16738    *) libsuff= shlibsuff= libmagic=never-match;;
16739    esac
16740    ;;
16741  esac
16742  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16743  shlibpath_overrides_runpath=no
16744  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16745  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16746  hardcode_into_libs=yes
16747  ;;
16748
16749# No shared lib support for Linux oldld, aout, or coff.
16750linux*oldld* | linux*aout* | linux*coff*)
16751  dynamic_linker=no
16752  ;;
16753
16754linux*android*)
16755  version_type=none # Android doesn't support versioned libraries.
16756  need_lib_prefix=no
16757  need_version=no
16758  library_names_spec='$libname$release$shared_ext'
16759  soname_spec='$libname$release$shared_ext'
16760  finish_cmds=
16761  shlibpath_var=LD_LIBRARY_PATH
16762  shlibpath_overrides_runpath=yes
16763
16764  # This implies no fast_install, which is unacceptable.
16765  # Some rework will be needed to allow for fast_install
16766  # before this can be enabled.
16767  hardcode_into_libs=yes
16768
16769  dynamic_linker='Android linker'
16770  # Don't embed -rpath directories since the linker doesn't support them.
16771  hardcode_libdir_flag_spec_CXX='-L$libdir'
16772  ;;
16773
16774# This must be glibc/ELF.
16775linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16776  version_type=linux # correct to gnu/linux during the next big refactor
16777  need_lib_prefix=no
16778  need_version=no
16779  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16780  soname_spec='$libname$release$shared_ext$major'
16781  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16782  shlibpath_var=LD_LIBRARY_PATH
16783  shlibpath_overrides_runpath=no
16784
16785  # Some binutils ld are patched to set DT_RUNPATH
16786  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16787  $as_echo_n "(cached) " >&6
16788else
16789  lt_cv_shlibpath_overrides_runpath=no
16790    save_LDFLAGS=$LDFLAGS
16791    save_libdir=$libdir
16792    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16793	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16794    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16795/* end confdefs.h.  */
16796
16797int
16798main ()
16799{
16800
16801  ;
16802  return 0;
16803}
16804_ACEOF
16805if ac_fn_cxx_try_link "$LINENO"; then :
16806  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16807  lt_cv_shlibpath_overrides_runpath=yes
16808fi
16809fi
16810rm -f core conftest.err conftest.$ac_objext \
16811    conftest$ac_exeext conftest.$ac_ext
16812    LDFLAGS=$save_LDFLAGS
16813    libdir=$save_libdir
16814
16815fi
16816
16817  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16818
16819  # This implies no fast_install, which is unacceptable.
16820  # Some rework will be needed to allow for fast_install
16821  # before this can be enabled.
16822  hardcode_into_libs=yes
16823
16824  # Ideally, we could use ldconfig to report *all* directores which are
16825  # searched for libraries, however this is still not possible.  Aside from not
16826  # being certain /sbin/ldconfig is available, command
16827  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16828  # even though it is searched at run-time.  Try to do the best guess by
16829  # appending ld.so.conf contents (and includes) to the search path.
16830  if test -f /etc/ld.so.conf; then
16831    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' ' '`
16832    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16833  fi
16834
16835  # We used to test for /lib/ld.so.1 and disable shared libraries on
16836  # powerpc, because MkLinux only supported shared libraries with the
16837  # GNU dynamic linker.  Since this was broken with cross compilers,
16838  # most powerpc-linux boxes support dynamic linking these days and
16839  # people can always --disable-shared, the test was removed, and we
16840  # assume the GNU/Linux dynamic linker is in use.
16841  dynamic_linker='GNU/Linux ld.so'
16842  ;;
16843
16844netbsdelf*-gnu)
16845  version_type=linux
16846  need_lib_prefix=no
16847  need_version=no
16848  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16849  soname_spec='${libname}${release}${shared_ext}$major'
16850  shlibpath_var=LD_LIBRARY_PATH
16851  shlibpath_overrides_runpath=no
16852  hardcode_into_libs=yes
16853  dynamic_linker='NetBSD ld.elf_so'
16854  ;;
16855
16856netbsd*)
16857  version_type=sunos
16858  need_lib_prefix=no
16859  need_version=no
16860  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16861    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16862    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16863    dynamic_linker='NetBSD (a.out) ld.so'
16864  else
16865    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16866    soname_spec='$libname$release$shared_ext$major'
16867    dynamic_linker='NetBSD ld.elf_so'
16868  fi
16869  shlibpath_var=LD_LIBRARY_PATH
16870  shlibpath_overrides_runpath=yes
16871  hardcode_into_libs=yes
16872  ;;
16873
16874newsos6)
16875  version_type=linux # correct to gnu/linux during the next big refactor
16876  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16877  shlibpath_var=LD_LIBRARY_PATH
16878  shlibpath_overrides_runpath=yes
16879  ;;
16880
16881*nto* | *qnx*)
16882  version_type=qnx
16883  need_lib_prefix=no
16884  need_version=no
16885  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16886  soname_spec='$libname$release$shared_ext$major'
16887  shlibpath_var=LD_LIBRARY_PATH
16888  shlibpath_overrides_runpath=no
16889  hardcode_into_libs=yes
16890  dynamic_linker='ldqnx.so'
16891  ;;
16892
16893openbsd* | bitrig*)
16894  version_type=sunos
16895  sys_lib_dlsearch_path_spec=/usr/lib
16896  need_lib_prefix=no
16897  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16898    need_version=no
16899  else
16900    need_version=yes
16901  fi
16902  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16903  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16904  shlibpath_var=LD_LIBRARY_PATH
16905  shlibpath_overrides_runpath=yes
16906  ;;
16907
16908os2*)
16909  libname_spec='$name'
16910  version_type=windows
16911  shrext_cmds=.dll
16912  need_version=no
16913  need_lib_prefix=no
16914  # OS/2 can only load a DLL with a base name of 8 characters or less.
16915  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16916    v=$($ECHO $release$versuffix | tr -d .-);
16917    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16918    $ECHO $n$v`$shared_ext'
16919  library_names_spec='${libname}_dll.$libext'
16920  dynamic_linker='OS/2 ld.exe'
16921  shlibpath_var=BEGINLIBPATH
16922  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16923  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16924  postinstall_cmds='base_file=`basename \$file`~
16925    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16926    dldir=$destdir/`dirname \$dlpath`~
16927    test -d \$dldir || mkdir -p \$dldir~
16928    $install_prog $dir/$dlname \$dldir/$dlname~
16929    chmod a+x \$dldir/$dlname~
16930    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16931      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16932    fi'
16933  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16934    dlpath=$dir/\$dldll~
16935    $RM \$dlpath'
16936  ;;
16937
16938osf3* | osf4* | osf5*)
16939  version_type=osf
16940  need_lib_prefix=no
16941  need_version=no
16942  soname_spec='$libname$release$shared_ext$major'
16943  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16944  shlibpath_var=LD_LIBRARY_PATH
16945  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16946  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16947  ;;
16948
16949rdos*)
16950  dynamic_linker=no
16951  ;;
16952
16953solaris*)
16954  version_type=linux # correct to gnu/linux during the next big refactor
16955  need_lib_prefix=no
16956  need_version=no
16957  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16958  soname_spec='$libname$release$shared_ext$major'
16959  shlibpath_var=LD_LIBRARY_PATH
16960  shlibpath_overrides_runpath=yes
16961  hardcode_into_libs=yes
16962  # ldd complains unless libraries are executable
16963  postinstall_cmds='chmod +x $lib'
16964  ;;
16965
16966sunos4*)
16967  version_type=sunos
16968  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16969  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16970  shlibpath_var=LD_LIBRARY_PATH
16971  shlibpath_overrides_runpath=yes
16972  if test yes = "$with_gnu_ld"; then
16973    need_lib_prefix=no
16974  fi
16975  need_version=yes
16976  ;;
16977
16978sysv4 | sysv4.3*)
16979  version_type=linux # correct to gnu/linux during the next big refactor
16980  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16981  soname_spec='$libname$release$shared_ext$major'
16982  shlibpath_var=LD_LIBRARY_PATH
16983  case $host_vendor in
16984    sni)
16985      shlibpath_overrides_runpath=no
16986      need_lib_prefix=no
16987      runpath_var=LD_RUN_PATH
16988      ;;
16989    siemens)
16990      need_lib_prefix=no
16991      ;;
16992    motorola)
16993      need_lib_prefix=no
16994      need_version=no
16995      shlibpath_overrides_runpath=no
16996      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16997      ;;
16998  esac
16999  ;;
17000
17001sysv4*MP*)
17002  if test -d /usr/nec; then
17003    version_type=linux # correct to gnu/linux during the next big refactor
17004    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17005    soname_spec='$libname$shared_ext.$major'
17006    shlibpath_var=LD_LIBRARY_PATH
17007  fi
17008  ;;
17009
17010sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17011  version_type=sco
17012  need_lib_prefix=no
17013  need_version=no
17014  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17015  soname_spec='$libname$release$shared_ext$major'
17016  shlibpath_var=LD_LIBRARY_PATH
17017  shlibpath_overrides_runpath=yes
17018  hardcode_into_libs=yes
17019  if test yes = "$with_gnu_ld"; then
17020    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17021  else
17022    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17023    case $host_os in
17024      sco3.2v5*)
17025        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17026	;;
17027    esac
17028  fi
17029  sys_lib_dlsearch_path_spec='/usr/lib'
17030  ;;
17031
17032tpf*)
17033  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17034  version_type=linux # correct to gnu/linux during the next big refactor
17035  need_lib_prefix=no
17036  need_version=no
17037  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17038  shlibpath_var=LD_LIBRARY_PATH
17039  shlibpath_overrides_runpath=no
17040  hardcode_into_libs=yes
17041  ;;
17042
17043uts4*)
17044  version_type=linux # correct to gnu/linux during the next big refactor
17045  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17046  soname_spec='$libname$release$shared_ext$major'
17047  shlibpath_var=LD_LIBRARY_PATH
17048  ;;
17049
17050*)
17051  dynamic_linker=no
17052  ;;
17053esac
17054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17055$as_echo "$dynamic_linker" >&6; }
17056test no = "$dynamic_linker" && can_build_shared=no
17057
17058variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17059if test yes = "$GCC"; then
17060  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17061fi
17062
17063if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17064  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17065fi
17066
17067if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17068  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17069fi
17070
17071# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17072configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17073
17074# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17075func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17076
17077# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17078configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17120$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17121hardcode_action_CXX=
17122if test -n "$hardcode_libdir_flag_spec_CXX" ||
17123   test -n "$runpath_var_CXX" ||
17124   test yes = "$hardcode_automatic_CXX"; then
17125
17126  # We can hardcode non-existent directories.
17127  if test no != "$hardcode_direct_CXX" &&
17128     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17129     # have to relink, otherwise we might link with an installed library
17130     # when we should be linking with a yet-to-be-installed one
17131     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17132     test no != "$hardcode_minus_L_CXX"; then
17133    # Linking always hardcodes the temporary library directory.
17134    hardcode_action_CXX=relink
17135  else
17136    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17137    hardcode_action_CXX=immediate
17138  fi
17139else
17140  # We cannot hardcode anything, or else we can only hardcode existing
17141  # directories.
17142  hardcode_action_CXX=unsupported
17143fi
17144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17145$as_echo "$hardcode_action_CXX" >&6; }
17146
17147if test relink = "$hardcode_action_CXX" ||
17148   test yes = "$inherit_rpath_CXX"; then
17149  # Fast installation is not supported
17150  enable_fast_install=no
17151elif test yes = "$shlibpath_overrides_runpath" ||
17152     test no = "$enable_shared"; then
17153  # Fast installation is not necessary
17154  enable_fast_install=needless
17155fi
17156
17157
17158
17159
17160
17161
17162
17163  fi # test -n "$compiler"
17164
17165  CC=$lt_save_CC
17166  CFLAGS=$lt_save_CFLAGS
17167  LDCXX=$LD
17168  LD=$lt_save_LD
17169  GCC=$lt_save_GCC
17170  with_gnu_ld=$lt_save_with_gnu_ld
17171  lt_cv_path_LDCXX=$lt_cv_path_LD
17172  lt_cv_path_LD=$lt_save_path_LD
17173  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17174  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17175fi # test yes != "$_lt_caught_CXX_error"
17176
17177ac_ext=c
17178ac_cpp='$CPP $CPPFLAGS'
17179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17181ac_compiler_gnu=$ac_cv_c_compiler_gnu
17182
17183
17184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17185$as_echo_n "checking for inline... " >&6; }
17186if ${ac_cv_c_inline+:} false; then :
17187  $as_echo_n "(cached) " >&6
17188else
17189  ac_cv_c_inline=no
17190for ac_kw in inline __inline__ __inline; do
17191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17192/* end confdefs.h.  */
17193#ifndef __cplusplus
17194typedef int foo_t;
17195static $ac_kw foo_t static_foo () {return 0; }
17196$ac_kw foo_t foo () {return 0; }
17197#endif
17198
17199_ACEOF
17200if ac_fn_c_try_compile "$LINENO"; then :
17201  ac_cv_c_inline=$ac_kw
17202fi
17203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17204  test "$ac_cv_c_inline" != no && break
17205done
17206
17207fi
17208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17209$as_echo "$ac_cv_c_inline" >&6; }
17210
17211case $ac_cv_c_inline in
17212  inline | yes) ;;
17213  *)
17214    case $ac_cv_c_inline in
17215      no) ac_val=;;
17216      *) ac_val=$ac_cv_c_inline;;
17217    esac
17218    cat >>confdefs.h <<_ACEOF
17219#ifndef __cplusplus
17220#define inline $ac_val
17221#endif
17222_ACEOF
17223    ;;
17224esac
17225
17226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17227$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17228set x ${MAKE-make}
17229ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17230if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17231  $as_echo_n "(cached) " >&6
17232else
17233  cat >conftest.make <<\_ACEOF
17234SHELL = /bin/sh
17235all:
17236	@echo '@@@%%%=$(MAKE)=@@@%%%'
17237_ACEOF
17238# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17239case `${MAKE-make} -f conftest.make 2>/dev/null` in
17240  *@@@%%%=?*=@@@%%%*)
17241    eval ac_cv_prog_make_${ac_make}_set=yes;;
17242  *)
17243    eval ac_cv_prog_make_${ac_make}_set=no;;
17244esac
17245rm -f conftest.make
17246fi
17247if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17249$as_echo "yes" >&6; }
17250  SET_MAKE=
17251else
17252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17253$as_echo "no" >&6; }
17254  SET_MAKE="MAKE=${MAKE-make}"
17255fi
17256
17257if test "$need_pkgconfig" = "yes"; then :
17258
17259
17260
17261
17262
17263
17264
17265if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17266	if test -n "$ac_tool_prefix"; then
17267  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17268set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17270$as_echo_n "checking for $ac_word... " >&6; }
17271if ${ac_cv_path_PKG_CONFIG+:} false; then :
17272  $as_echo_n "(cached) " >&6
17273else
17274  case $PKG_CONFIG in
17275  [\\/]* | ?:[\\/]*)
17276  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17277  ;;
17278  *)
17279  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17280for as_dir in $PATH
17281do
17282  IFS=$as_save_IFS
17283  test -z "$as_dir" && as_dir=.
17284    for ac_exec_ext in '' $ac_executable_extensions; do
17285  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17286    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17288    break 2
17289  fi
17290done
17291  done
17292IFS=$as_save_IFS
17293
17294  ;;
17295esac
17296fi
17297PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17298if test -n "$PKG_CONFIG"; then
17299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17300$as_echo "$PKG_CONFIG" >&6; }
17301else
17302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17303$as_echo "no" >&6; }
17304fi
17305
17306
17307fi
17308if test -z "$ac_cv_path_PKG_CONFIG"; then
17309  ac_pt_PKG_CONFIG=$PKG_CONFIG
17310  # Extract the first word of "pkg-config", so it can be a program name with args.
17311set dummy pkg-config; ac_word=$2
17312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17313$as_echo_n "checking for $ac_word... " >&6; }
17314if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17315  $as_echo_n "(cached) " >&6
17316else
17317  case $ac_pt_PKG_CONFIG in
17318  [\\/]* | ?:[\\/]*)
17319  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17320  ;;
17321  *)
17322  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17323for as_dir in $PATH
17324do
17325  IFS=$as_save_IFS
17326  test -z "$as_dir" && as_dir=.
17327    for ac_exec_ext in '' $ac_executable_extensions; do
17328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17329    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17331    break 2
17332  fi
17333done
17334  done
17335IFS=$as_save_IFS
17336
17337  ;;
17338esac
17339fi
17340ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17341if test -n "$ac_pt_PKG_CONFIG"; then
17342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17343$as_echo "$ac_pt_PKG_CONFIG" >&6; }
17344else
17345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17346$as_echo "no" >&6; }
17347fi
17348
17349  if test "x$ac_pt_PKG_CONFIG" = x; then
17350    PKG_CONFIG=""
17351  else
17352    case $cross_compiling:$ac_tool_warned in
17353yes:)
17354{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17356ac_tool_warned=yes ;;
17357esac
17358    PKG_CONFIG=$ac_pt_PKG_CONFIG
17359  fi
17360else
17361  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17362fi
17363
17364fi
17365if test -n "$PKG_CONFIG"; then
17366	_pkg_min_version=0.9.0
17367	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17368$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17369	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17370		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17371$as_echo "yes" >&6; }
17372	else
17373		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17374$as_echo "no" >&6; }
17375		PKG_CONFIG=""
17376	fi
17377fi
17378fi
17379# Look for `lex'. If it cannot be found, autoconf sets $LEX to ':'.
17380for ac_prog in flex lex
17381do
17382  # Extract the first word of "$ac_prog", so it can be a program name with args.
17383set dummy $ac_prog; ac_word=$2
17384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17385$as_echo_n "checking for $ac_word... " >&6; }
17386if ${ac_cv_prog_LEX+:} false; then :
17387  $as_echo_n "(cached) " >&6
17388else
17389  if test -n "$LEX"; then
17390  ac_cv_prog_LEX="$LEX" # Let the user override the test.
17391else
17392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17393for as_dir in $PATH
17394do
17395  IFS=$as_save_IFS
17396  test -z "$as_dir" && as_dir=.
17397    for ac_exec_ext in '' $ac_executable_extensions; do
17398  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17399    ac_cv_prog_LEX="$ac_prog"
17400    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17401    break 2
17402  fi
17403done
17404  done
17405IFS=$as_save_IFS
17406
17407fi
17408fi
17409LEX=$ac_cv_prog_LEX
17410if test -n "$LEX"; then
17411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
17412$as_echo "$LEX" >&6; }
17413else
17414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17415$as_echo "no" >&6; }
17416fi
17417
17418
17419  test -n "$LEX" && break
17420done
17421test -n "$LEX" || LEX=":"
17422
17423if test "x$LEX" != "x:"; then
17424  cat >conftest.l <<_ACEOF
17425%%
17426a { ECHO; }
17427b { REJECT; }
17428c { yymore (); }
17429d { yyless (1); }
17430e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
17431    yyless ((input () != 0)); }
17432f { unput (yytext[0]); }
17433. { BEGIN INITIAL; }
17434%%
17435#ifdef YYTEXT_POINTER
17436extern char *yytext;
17437#endif
17438int
17439main (void)
17440{
17441  return ! yylex () + ! yywrap ();
17442}
17443_ACEOF
17444{ { ac_try="$LEX conftest.l"
17445case "(($ac_try" in
17446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447  *) ac_try_echo=$ac_try;;
17448esac
17449eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17450$as_echo "$ac_try_echo"; } >&5
17451  (eval "$LEX conftest.l") 2>&5
17452  ac_status=$?
17453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17454  test $ac_status = 0; }
17455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
17456$as_echo_n "checking lex output file root... " >&6; }
17457if ${ac_cv_prog_lex_root+:} false; then :
17458  $as_echo_n "(cached) " >&6
17459else
17460
17461if test -f lex.yy.c; then
17462  ac_cv_prog_lex_root=lex.yy
17463elif test -f lexyy.c; then
17464  ac_cv_prog_lex_root=lexyy
17465else
17466  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
17467fi
17468fi
17469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
17470$as_echo "$ac_cv_prog_lex_root" >&6; }
17471LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
17472
17473if test -z "${LEXLIB+set}"; then
17474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
17475$as_echo_n "checking lex library... " >&6; }
17476if ${ac_cv_lib_lex+:} false; then :
17477  $as_echo_n "(cached) " >&6
17478else
17479
17480    ac_save_LIBS=$LIBS
17481    ac_cv_lib_lex='none needed'
17482    for ac_lib in '' -lfl -ll; do
17483      LIBS="$ac_lib $ac_save_LIBS"
17484      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17485/* end confdefs.h.  */
17486`cat $LEX_OUTPUT_ROOT.c`
17487_ACEOF
17488if ac_fn_c_try_link "$LINENO"; then :
17489  ac_cv_lib_lex=$ac_lib
17490fi
17491rm -f core conftest.err conftest.$ac_objext \
17492    conftest$ac_exeext conftest.$ac_ext
17493      test "$ac_cv_lib_lex" != 'none needed' && break
17494    done
17495    LIBS=$ac_save_LIBS
17496
17497fi
17498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
17499$as_echo "$ac_cv_lib_lex" >&6; }
17500  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
17501fi
17502
17503
17504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
17505$as_echo_n "checking whether yytext is a pointer... " >&6; }
17506if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
17507  $as_echo_n "(cached) " >&6
17508else
17509  # POSIX says lex can declare yytext either as a pointer or an array; the
17510# default is implementation-dependent.  Figure out which it is, since
17511# not all implementations provide the %pointer and %array declarations.
17512ac_cv_prog_lex_yytext_pointer=no
17513ac_save_LIBS=$LIBS
17514LIBS="$LEXLIB $ac_save_LIBS"
17515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17516/* end confdefs.h.  */
17517
17518  #define YYTEXT_POINTER 1
17519`cat $LEX_OUTPUT_ROOT.c`
17520_ACEOF
17521if ac_fn_c_try_link "$LINENO"; then :
17522  ac_cv_prog_lex_yytext_pointer=yes
17523fi
17524rm -f core conftest.err conftest.$ac_objext \
17525    conftest$ac_exeext conftest.$ac_ext
17526LIBS=$ac_save_LIBS
17527
17528fi
17529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
17530$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
17531if test $ac_cv_prog_lex_yytext_pointer = yes; then
17532
17533$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
17534
17535fi
17536rm -f conftest.l $LEX_OUTPUT_ROOT.c
17537
17538fi
17539if test "$LEX" = ":"; then :
17540  as_fn_error $? "can not find a lexer generator (such as lex or flex)" "$LINENO" 5
17541fi
17542AM_LFLAGS="-L -P zconf"
17543
17544# Look for `yacc'. If it cannot be found, autoconf sets $YACC to 'yacc'.
17545for ac_prog in 'bison -y' byacc
17546do
17547  # Extract the first word of "$ac_prog", so it can be a program name with args.
17548set dummy $ac_prog; ac_word=$2
17549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17550$as_echo_n "checking for $ac_word... " >&6; }
17551if ${ac_cv_prog_YACC+:} false; then :
17552  $as_echo_n "(cached) " >&6
17553else
17554  if test -n "$YACC"; then
17555  ac_cv_prog_YACC="$YACC" # Let the user override the test.
17556else
17557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17558for as_dir in $PATH
17559do
17560  IFS=$as_save_IFS
17561  test -z "$as_dir" && as_dir=.
17562    for ac_exec_ext in '' $ac_executable_extensions; do
17563  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17564    ac_cv_prog_YACC="$ac_prog"
17565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17566    break 2
17567  fi
17568done
17569  done
17570IFS=$as_save_IFS
17571
17572fi
17573fi
17574YACC=$ac_cv_prog_YACC
17575if test -n "$YACC"; then
17576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
17577$as_echo "$YACC" >&6; }
17578else
17579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17580$as_echo "no" >&6; }
17581fi
17582
17583
17584  test -n "$YACC" && break
17585done
17586test -n "$YACC" || YACC="yacc"
17587
17588if test "$YACC" = "yacc"; then :
17589  for ac_prog in yacc
17590do
17591  # Extract the first word of "$ac_prog", so it can be a program name with args.
17592set dummy $ac_prog; ac_word=$2
17593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17594$as_echo_n "checking for $ac_word... " >&6; }
17595if ${ac_cv_prog_YACC_IN_PATH+:} false; then :
17596  $as_echo_n "(cached) " >&6
17597else
17598  if test -n "$YACC_IN_PATH"; then
17599  ac_cv_prog_YACC_IN_PATH="$YACC_IN_PATH" # Let the user override the test.
17600else
17601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17602for as_dir in $PATH
17603do
17604  IFS=$as_save_IFS
17605  test -z "$as_dir" && as_dir=.
17606    for ac_exec_ext in '' $ac_executable_extensions; do
17607  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17608    ac_cv_prog_YACC_IN_PATH="$ac_prog"
17609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17610    break 2
17611  fi
17612done
17613  done
17614IFS=$as_save_IFS
17615
17616fi
17617fi
17618YACC_IN_PATH=$ac_cv_prog_YACC_IN_PATH
17619if test -n "$YACC_IN_PATH"; then
17620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_IN_PATH" >&5
17621$as_echo "$YACC_IN_PATH" >&6; }
17622else
17623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17624$as_echo "no" >&6; }
17625fi
17626
17627
17628  test -n "$YACC_IN_PATH" && break
17629done
17630
17631     if test -z "$YACC_IN_PATH"; then :
17632  as_fn_error $? "can not find a parser generator (such as yacc or bison)" "$LINENO" 5
17633fi
17634fi
17635AM_YFLAGS="-t -l -p zconf"
17636
17637
17638#----------------------------------------
17639# Special section to check for gperf.
17640for ac_prog in gperf
17641do
17642  # Extract the first word of "$ac_prog", so it can be a program name with args.
17643set dummy $ac_prog; ac_word=$2
17644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17645$as_echo_n "checking for $ac_word... " >&6; }
17646if ${ac_cv_prog_GPERF+:} false; then :
17647  $as_echo_n "(cached) " >&6
17648else
17649  if test -n "$GPERF"; then
17650  ac_cv_prog_GPERF="$GPERF" # Let the user override the test.
17651else
17652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17653for as_dir in $PATH
17654do
17655  IFS=$as_save_IFS
17656  test -z "$as_dir" && as_dir=.
17657    for ac_exec_ext in '' $ac_executable_extensions; do
17658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17659    ac_cv_prog_GPERF="$ac_prog"
17660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17661    break 2
17662  fi
17663done
17664  done
17665IFS=$as_save_IFS
17666
17667fi
17668fi
17669GPERF=$ac_cv_prog_GPERF
17670if test -n "$GPERF"; then
17671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
17672$as_echo "$GPERF" >&6; }
17673else
17674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17675$as_echo "no" >&6; }
17676fi
17677
17678
17679  test -n "$GPERF" && break
17680done
17681
17682if test -z "$GPERF"; then :
17683  as_fn_error $? "can not find gperf" "$LINENO" 5
17684fi
17685
17686# gperf 3.1 generates functions with 'size_t' instead of 'unsigned int'
17687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the type used in gperf declarations" >&5
17688$as_echo_n "checking for the type used in gperf declarations... " >&6; }
17689GPERF_LEN_TYPE=
17690GPERF_PROLOG=`echo foo,bar | ${GPERF} -L ANSI-C`
17691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692/* end confdefs.h.  */
17693
17694        #include <string.h>
17695        ${GPERF_PROLOG}
17696        const char * in_word_set(const char *, size_t);
17697
17698int
17699main ()
17700{
17701
17702  ;
17703  return 0;
17704}
17705
17706_ACEOF
17707if ac_fn_c_try_compile "$LINENO"; then :
17708  GPERF_LEN_TYPE='size_t'
17709else
17710
17711    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17712/* end confdefs.h.  */
17713
17714            #include <string.h>
17715            ${GPERF_PROLOG}
17716            const char * in_word_set(const char *, unsigned int);
17717
17718int
17719main ()
17720{
17721
17722  ;
17723  return 0;
17724}
17725
17726_ACEOF
17727if ac_fn_c_try_compile "$LINENO"; then :
17728  GPERF_LEN_TYPE='unsigned int'
17729else
17730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not size_t, not unsigned int. What else?" >&5
17731$as_echo "not size_t, not unsigned int. What else?" >&6; }
17732         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17734as_fn_error $? "unable to detect the type used in gperf declarations
17735See \`config.log' for more details" "$LINENO" 5; }
17736
17737fi
17738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17739fi
17740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GPERF_LEN_TYPE}" >&5
17742$as_echo "${GPERF_LEN_TYPE}" >&6; }
17743
17744
17745#----------------------------------------
17746# Check for gettext, for the kconfig frontends
17747has_gettext="$enable_L10n"
17748if test "$has_gettext" = "yes"; then :
17749  for ac_header in libintl.h
17750do :
17751  ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
17752if test "x$ac_cv_header_libintl_h" = xyes; then :
17753  cat >>confdefs.h <<_ACEOF
17754#define HAVE_LIBINTL_H 1
17755_ACEOF
17756 ac_ct_gettext_hdr=$ac_header; break
17757else
17758  has_gettext=no
17759fi
17760
17761done
17762
17763fi
17764if test "$has_gettext" = "yes"; then :
17765  ac_fn_c_check_decl "$LINENO" "gettext" "ac_cv_have_decl_gettext" "#include <$ac_ct_gettext_hdr>
17766"
17767if test "x$ac_cv_have_decl_gettext" = xyes; then :
17768
17769else
17770  has_gettext=no
17771fi
17772
17773fi
17774if test "$has_gettext" = "yes"; then :
17775  LIBS_old="$LIBS"
17776     LIBS=
17777     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
17778$as_echo_n "checking for library containing gettext... " >&6; }
17779if ${ac_cv_search_gettext+:} false; then :
17780  $as_echo_n "(cached) " >&6
17781else
17782  ac_func_search_save_LIBS=$LIBS
17783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17784/* end confdefs.h.  */
17785
17786/* Override any GCC internal prototype to avoid an error.
17787   Use char because int might match the return type of a GCC
17788   builtin and then its argument prototype would still apply.  */
17789#ifdef __cplusplus
17790extern "C"
17791#endif
17792char gettext ();
17793int
17794main ()
17795{
17796return gettext ();
17797  ;
17798  return 0;
17799}
17800_ACEOF
17801for ac_lib in '' intl; do
17802  if test -z "$ac_lib"; then
17803    ac_res="none required"
17804  else
17805    ac_res=-l$ac_lib
17806    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17807  fi
17808  if ac_fn_c_try_link "$LINENO"; then :
17809  ac_cv_search_gettext=$ac_res
17810fi
17811rm -f core conftest.err conftest.$ac_objext \
17812    conftest$ac_exeext
17813  if ${ac_cv_search_gettext+:} false; then :
17814  break
17815fi
17816done
17817if ${ac_cv_search_gettext+:} false; then :
17818
17819else
17820  ac_cv_search_gettext=no
17821fi
17822rm conftest.$ac_ext
17823LIBS=$ac_func_search_save_LIBS
17824fi
17825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
17826$as_echo "$ac_cv_search_gettext" >&6; }
17827ac_res=$ac_cv_search_gettext
17828if test "$ac_res" != no; then :
17829  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17830
17831else
17832  has_gettext=no
17833fi
17834
17835    intl_LIBS="$LIBS"
17836    LIBS="$LIBS_old"
17837fi
17838if test "$has_gettext" = "no"; then :
17839  intl_CPPFLAGS=-DKBUILD_NO_NLS
17840fi
17841
17842
17843
17844#----------------------------------------
17845# Check for ncurses, for the mconf & nconf frontends
17846if test "$need_curses" = "yes" -o "$need_curses" = "auto"; then :
17847
17848
17849     LIBS_old="$LIBS"
17850     LIBS=
17851     for ac_header in ncursesw/curses.h ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h
17852do :
17853  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17854ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17855if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17856  cat >>confdefs.h <<_ACEOF
17857#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17858_ACEOF
17859 CURSES_LOC=$ac_header
17860         ncurses_mconf_CPPFLAGS=-DCURSES_LOC=\\\"$ac_header\\\"
17861         break # Stupid syntax-coloring in vim: "
17862fi
17863
17864done
17865
17866     if test -z "$CURSES_LOC"; then :
17867  if test "$need_curses" = "yes"; then :
17868  as_fn_error $? "could not find curses headers (frontends: mconf/nconf)" "$LINENO" 5
17869else
17870  has_curses=no
17871fi
17872fi
17873     case $CURSES_LOC in #(
17874  ncursesw/*) :
17875    ncurses_mconf_CPPFLAGS="$ncurses_mconf_CPPFLAGS -DNCURSES_WIDECHAR=1" ;; #(
17876  *) :
17877     ;;
17878esac
17879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setupterm" >&5
17880$as_echo_n "checking for library containing setupterm... " >&6; }
17881if ${ac_cv_search_setupterm+:} false; then :
17882  $as_echo_n "(cached) " >&6
17883else
17884  ac_func_search_save_LIBS=$LIBS
17885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17886/* end confdefs.h.  */
17887
17888/* Override any GCC internal prototype to avoid an error.
17889   Use char because int might match the return type of a GCC
17890   builtin and then its argument prototype would still apply.  */
17891#ifdef __cplusplus
17892extern "C"
17893#endif
17894char setupterm ();
17895int
17896main ()
17897{
17898return setupterm ();
17899  ;
17900  return 0;
17901}
17902_ACEOF
17903for ac_lib in '' tinfo; do
17904  if test -z "$ac_lib"; then
17905    ac_res="none required"
17906  else
17907    ac_res=-l$ac_lib
17908    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17909  fi
17910  if ac_fn_c_try_link "$LINENO"; then :
17911  ac_cv_search_setupterm=$ac_res
17912fi
17913rm -f core conftest.err conftest.$ac_objext \
17914    conftest$ac_exeext
17915  if ${ac_cv_search_setupterm+:} false; then :
17916  break
17917fi
17918done
17919if ${ac_cv_search_setupterm+:} false; then :
17920
17921else
17922  ac_cv_search_setupterm=no
17923fi
17924rm conftest.$ac_ext
17925LIBS=$ac_func_search_save_LIBS
17926fi
17927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setupterm" >&5
17928$as_echo "$ac_cv_search_setupterm" >&6; }
17929ac_res=$ac_cv_search_setupterm
17930if test "$ac_res" != no; then :
17931  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17932  break
17933fi
17934
17935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing initscr" >&5
17936$as_echo_n "checking for library containing initscr... " >&6; }
17937if ${ac_cv_search_initscr+:} false; then :
17938  $as_echo_n "(cached) " >&6
17939else
17940  ac_func_search_save_LIBS=$LIBS
17941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942/* end confdefs.h.  */
17943
17944/* Override any GCC internal prototype to avoid an error.
17945   Use char because int might match the return type of a GCC
17946   builtin and then its argument prototype would still apply.  */
17947#ifdef __cplusplus
17948extern "C"
17949#endif
17950char initscr ();
17951int
17952main ()
17953{
17954return initscr ();
17955  ;
17956  return 0;
17957}
17958_ACEOF
17959for ac_lib in '' ncursesw ncurses curses; do
17960  if test -z "$ac_lib"; then
17961    ac_res="none required"
17962  else
17963    ac_res=-l$ac_lib
17964    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17965  fi
17966  if ac_fn_c_try_link "$LINENO"; then :
17967  ac_cv_search_initscr=$ac_res
17968fi
17969rm -f core conftest.err conftest.$ac_objext \
17970    conftest$ac_exeext
17971  if ${ac_cv_search_initscr+:} false; then :
17972  break
17973fi
17974done
17975if ${ac_cv_search_initscr+:} false; then :
17976
17977else
17978  ac_cv_search_initscr=no
17979fi
17980rm conftest.$ac_ext
17981LIBS=$ac_func_search_save_LIBS
17982fi
17983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_initscr" >&5
17984$as_echo "$ac_cv_search_initscr" >&6; }
17985ac_res=$ac_cv_search_initscr
17986if test "$ac_res" != no; then :
17987  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17988  ac_ct_curses_lib_found=yes; break
17989fi
17990
17991     if test -z "$ac_ct_curses_lib_found"; then :
17992  if test "$need_curses" = "yes"; then :
17993  as_fn_error $? "could not find curses library (frontends: mconf/nconf)" "$LINENO" 5
17994else
17995  has_curses=no
17996fi
17997fi
17998     ncurses_LIBS="$LIBS"
17999     LIBS=$LIBS_old
18000fi
18001
18002if test "$has_curses" = "no" ; then :
18003  enable_mconf=no; enable_nconf=no
18004fi
18005
18006#----------------------------------------
18007# Check for libpanel and libmenu, for the nconf frontend
18008if test "$need_panel_menu" = "yes" -o "$need_panel_menu" = "auto"; then :
18009
18010
18011     case $CURSES_LOC in #(
18012  ncursesw/*) :
18013    ncurses_nconf_CPPFLAGS="-I/usr/include/ncursesw" ;; #(
18014  ncurses/*) :
18015    ncurses_nconf_CPPFLAGS="-I/usr/include/ncurses" ;; #(
18016  *) :
18017     ;;
18018esac
18019     LIBS_old="$LIBS"
18020     LIBS=
18021     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing new_panel" >&5
18022$as_echo_n "checking for library containing new_panel... " >&6; }
18023if ${ac_cv_search_new_panel+:} false; then :
18024  $as_echo_n "(cached) " >&6
18025else
18026  ac_func_search_save_LIBS=$LIBS
18027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18028/* end confdefs.h.  */
18029
18030/* Override any GCC internal prototype to avoid an error.
18031   Use char because int might match the return type of a GCC
18032   builtin and then its argument prototype would still apply.  */
18033#ifdef __cplusplus
18034extern "C"
18035#endif
18036char new_panel ();
18037int
18038main ()
18039{
18040return new_panel ();
18041  ;
18042  return 0;
18043}
18044_ACEOF
18045for ac_lib in '' panelw panel; do
18046  if test -z "$ac_lib"; then
18047    ac_res="none required"
18048  else
18049    ac_res=-l$ac_lib
18050    LIBS="-l$ac_lib $ncurses_LIBS $ac_func_search_save_LIBS"
18051  fi
18052  if ac_fn_c_try_link "$LINENO"; then :
18053  ac_cv_search_new_panel=$ac_res
18054fi
18055rm -f core conftest.err conftest.$ac_objext \
18056    conftest$ac_exeext
18057  if ${ac_cv_search_new_panel+:} false; then :
18058  break
18059fi
18060done
18061if ${ac_cv_search_new_panel+:} false; then :
18062
18063else
18064  ac_cv_search_new_panel=no
18065fi
18066rm conftest.$ac_ext
18067LIBS=$ac_func_search_save_LIBS
18068fi
18069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_new_panel" >&5
18070$as_echo "$ac_cv_search_new_panel" >&6; }
18071ac_res=$ac_cv_search_new_panel
18072if test "$ac_res" != no; then :
18073  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18074  ac_ct_panel_lib_found=yes; break
18075fi
18076
18077     if test -z "$ac_ct_panel_lib_found"; then :
18078  if test "$need_panel_menu" = "yes"; then :
18079  as_fn_error $? "could not find libpanel library (frontend: nconf)" "$LINENO" 5
18080else
18081  has_panel_menu=no
18082fi
18083fi
18084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing menu_init" >&5
18085$as_echo_n "checking for library containing menu_init... " >&6; }
18086if ${ac_cv_search_menu_init+:} false; then :
18087  $as_echo_n "(cached) " >&6
18088else
18089  ac_func_search_save_LIBS=$LIBS
18090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18091/* end confdefs.h.  */
18092
18093/* Override any GCC internal prototype to avoid an error.
18094   Use char because int might match the return type of a GCC
18095   builtin and then its argument prototype would still apply.  */
18096#ifdef __cplusplus
18097extern "C"
18098#endif
18099char menu_init ();
18100int
18101main ()
18102{
18103return menu_init ();
18104  ;
18105  return 0;
18106}
18107_ACEOF
18108for ac_lib in '' menuw menu; do
18109  if test -z "$ac_lib"; then
18110    ac_res="none required"
18111  else
18112    ac_res=-l$ac_lib
18113    LIBS="-l$ac_lib $ncurses_LIBS $ac_func_search_save_LIBS"
18114  fi
18115  if ac_fn_c_try_link "$LINENO"; then :
18116  ac_cv_search_menu_init=$ac_res
18117fi
18118rm -f core conftest.err conftest.$ac_objext \
18119    conftest$ac_exeext
18120  if ${ac_cv_search_menu_init+:} false; then :
18121  break
18122fi
18123done
18124if ${ac_cv_search_menu_init+:} false; then :
18125
18126else
18127  ac_cv_search_menu_init=no
18128fi
18129rm conftest.$ac_ext
18130LIBS=$ac_func_search_save_LIBS
18131fi
18132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_menu_init" >&5
18133$as_echo "$ac_cv_search_menu_init" >&6; }
18134ac_res=$ac_cv_search_menu_init
18135if test "$ac_res" != no; then :
18136  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18137  ac_ct_menu_lib_found=yes; break
18138fi
18139
18140     if test -z "$ac_ct_panel_lib_found"; then :
18141  if test "$need_panel_menu" = "yes"; then :
18142  as_fn_error $? "could not find libmenu library (frontend: nconf)" "$LINENO" 5
18143else
18144  has_panel_menu=no
18145fi
18146fi
18147     ncurses_panel_menu_LIBS="$LIBS"
18148     LIBS=$LIBS_old
18149fi
18150
18151if test "$has_panel_menu" = "no" ; then :
18152  enable_nconf=no
18153fi
18154
18155#----------------------------------------
18156# Check headers and libs for gconf
18157if test "$need_gtk" = "yes" -o "$need_gtk" = "auto"; then :
18158
18159pkg_failed=no
18160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk" >&5
18161$as_echo_n "checking for gtk... " >&6; }
18162
18163if test -n "$gtk_CFLAGS"; then
18164    pkg_cv_gtk_CFLAGS="$gtk_CFLAGS"
18165 elif test -n "$PKG_CONFIG"; then
18166    if test -n "$PKG_CONFIG" && \
18167    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 gmodule-2.0 libglade-2.0\""; } >&5
18168  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 gmodule-2.0 libglade-2.0") 2>&5
18169  ac_status=$?
18170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18171  test $ac_status = 0; }; then
18172  pkg_cv_gtk_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 gmodule-2.0 libglade-2.0" 2>/dev/null`
18173		      test "x$?" != "x0" && pkg_failed=yes
18174else
18175  pkg_failed=yes
18176fi
18177 else
18178    pkg_failed=untried
18179fi
18180if test -n "$gtk_LIBS"; then
18181    pkg_cv_gtk_LIBS="$gtk_LIBS"
18182 elif test -n "$PKG_CONFIG"; then
18183    if test -n "$PKG_CONFIG" && \
18184    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 gmodule-2.0 libglade-2.0\""; } >&5
18185  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 gmodule-2.0 libglade-2.0") 2>&5
18186  ac_status=$?
18187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18188  test $ac_status = 0; }; then
18189  pkg_cv_gtk_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 gmodule-2.0 libglade-2.0" 2>/dev/null`
18190		      test "x$?" != "x0" && pkg_failed=yes
18191else
18192  pkg_failed=yes
18193fi
18194 else
18195    pkg_failed=untried
18196fi
18197
18198
18199
18200if test $pkg_failed = yes; then
18201   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18202$as_echo "no" >&6; }
18203
18204if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18205        _pkg_short_errors_supported=yes
18206else
18207        _pkg_short_errors_supported=no
18208fi
18209        if test $_pkg_short_errors_supported = yes; then
18210	        gtk_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 gmodule-2.0 libglade-2.0" 2>&1`
18211        else
18212	        gtk_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 gmodule-2.0 libglade-2.0" 2>&1`
18213        fi
18214	# Put the nasty error message in config.log where it belongs
18215	echo "$gtk_PKG_ERRORS" >&5
18216
18217	if test "$need_gtk" = "yes"; then :
18218  as_fn_error $? "could not find GTK+ headers and/or libraries (frontend: gconf)" "$LINENO" 5
18219else
18220  has_gtk=no
18221fi
18222elif test $pkg_failed = untried; then
18223     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18224$as_echo "no" >&6; }
18225	if test "$need_gtk" = "yes"; then :
18226  as_fn_error $? "could not find GTK+ headers and/or libraries (frontend: gconf)" "$LINENO" 5
18227else
18228  has_gtk=no
18229fi
18230else
18231	gtk_CFLAGS=$pkg_cv_gtk_CFLAGS
18232	gtk_LIBS=$pkg_cv_gtk_LIBS
18233        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18234$as_echo "yes" >&6; }
18235	has_gtk=yes
18236fi
18237fi
18238
18239if test "$has_gtk" = "no" ; then :
18240  enable_gconf=no
18241fi
18242
18243#----------------------------------------
18244# Check headers and libs for qconf
18245if test "$need_qt" = "yes" -o "$need_qt" = "auto"; then :
18246
18247pkg_failed=no
18248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt5" >&5
18249$as_echo_n "checking for Qt5... " >&6; }
18250
18251if test -n "$Qt5_CFLAGS"; then
18252    pkg_cv_Qt5_CFLAGS="$Qt5_CFLAGS"
18253 elif test -n "$PKG_CONFIG"; then
18254    if test -n "$PKG_CONFIG" && \
18255    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core Qt5Gui Qt5Widgets\""; } >&5
18256  ($PKG_CONFIG --exists --print-errors "Qt5Core Qt5Gui Qt5Widgets") 2>&5
18257  ac_status=$?
18258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18259  test $ac_status = 0; }; then
18260  pkg_cv_Qt5_CFLAGS=`$PKG_CONFIG --cflags "Qt5Core Qt5Gui Qt5Widgets" 2>/dev/null`
18261		      test "x$?" != "x0" && pkg_failed=yes
18262else
18263  pkg_failed=yes
18264fi
18265 else
18266    pkg_failed=untried
18267fi
18268if test -n "$Qt5_LIBS"; then
18269    pkg_cv_Qt5_LIBS="$Qt5_LIBS"
18270 elif test -n "$PKG_CONFIG"; then
18271    if test -n "$PKG_CONFIG" && \
18272    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core Qt5Gui Qt5Widgets\""; } >&5
18273  ($PKG_CONFIG --exists --print-errors "Qt5Core Qt5Gui Qt5Widgets") 2>&5
18274  ac_status=$?
18275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18276  test $ac_status = 0; }; then
18277  pkg_cv_Qt5_LIBS=`$PKG_CONFIG --libs "Qt5Core Qt5Gui Qt5Widgets" 2>/dev/null`
18278		      test "x$?" != "x0" && pkg_failed=yes
18279else
18280  pkg_failed=yes
18281fi
18282 else
18283    pkg_failed=untried
18284fi
18285
18286
18287
18288if test $pkg_failed = yes; then
18289   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18290$as_echo "no" >&6; }
18291
18292if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18293        _pkg_short_errors_supported=yes
18294else
18295        _pkg_short_errors_supported=no
18296fi
18297        if test $_pkg_short_errors_supported = yes; then
18298	        Qt5_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Qt5Core Qt5Gui Qt5Widgets" 2>&1`
18299        else
18300	        Qt5_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "Qt5Core Qt5Gui Qt5Widgets" 2>&1`
18301        fi
18302	# Put the nasty error message in config.log where it belongs
18303	echo "$Qt5_PKG_ERRORS" >&5
18304
18305	if test "$need_qt" = "yes"; then :
18306  as_fn_error $? "could not find Qt5 headers and/or libraries (frontend: qconf)" "$LINENO" 5
18307else
18308  has_qt=no; need_moc=no
18309fi
18310elif test $pkg_failed = untried; then
18311     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18312$as_echo "no" >&6; }
18313	if test "$need_qt" = "yes"; then :
18314  as_fn_error $? "could not find Qt5 headers and/or libraries (frontend: qconf)" "$LINENO" 5
18315else
18316  has_qt=no; need_moc=no
18317fi
18318else
18319	Qt5_CFLAGS=$pkg_cv_Qt5_CFLAGS
18320	Qt5_LIBS=$pkg_cv_Qt5_LIBS
18321        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18322$as_echo "yes" >&6; }
18323	has_qt=yes; need_moc="$need_qt"
18324fi
18325fi
18326
18327
18328if test "$need_moc" = "yes" -o "$need_moc" = "auto"; then :
18329  QT5_BINDIR=`$PKG_CONFIG Qt5Core --variable host_bins`
18330     for ac_prog in moc-qt5 moc
18331do
18332  # Extract the first word of "$ac_prog", so it can be a program name with args.
18333set dummy $ac_prog; ac_word=$2
18334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18335$as_echo_n "checking for $ac_word... " >&6; }
18336if ${ac_cv_path_MOC+:} false; then :
18337  $as_echo_n "(cached) " >&6
18338else
18339  case $MOC in
18340  [\\/]* | ?:[\\/]*)
18341  ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
18342  ;;
18343  *)
18344  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18345as_dummy="$QT5_BINDIR:$PATH"
18346for as_dir in $as_dummy
18347do
18348  IFS=$as_save_IFS
18349  test -z "$as_dir" && as_dir=.
18350    for ac_exec_ext in '' $ac_executable_extensions; do
18351  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18352    ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
18353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18354    break 2
18355  fi
18356done
18357  done
18358IFS=$as_save_IFS
18359
18360  ;;
18361esac
18362fi
18363MOC=$ac_cv_path_MOC
18364if test -n "$MOC"; then
18365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
18366$as_echo "$MOC" >&6; }
18367else
18368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18369$as_echo "no" >&6; }
18370fi
18371
18372
18373  test -n "$MOC" && break
18374done
18375
18376     if test -n "$MOC"; then :
18377  has_moc=yes
18378else
18379  if test "$need_moc" = "yes"; then :
18380  as_fn_error $? "could not find moc (frontend: qconf)" "$LINENO" 5
18381else
18382  has_moc=no
18383fi
18384fi
18385fi
18386
18387if test "$has_qt" = "no" -o "$has_moc" = "no"; then :
18388  enable_qconf=no
18389fi
18390
18391#----------------------------------------
18392# Per-frontends extra libraries
18393
18394
18395
18396
18397
18398
18399#---------------------------------------------------------------------------
18400# Now, we know what frontends to enable
18401if test "$enable_conf"  = "auto"; then :
18402  enable_conf=yes
18403fi
18404if test "$enable_gconf" = "auto"; then :
18405  enable_gconf=yes
18406fi
18407if test "$enable_mconf" = "auto"; then :
18408  enable_mconf=yes
18409fi
18410if test "$enable_nconf" = "auto"; then :
18411  enable_nconf=yes
18412fi
18413if test "$enable_qconf" = "auto"; then :
18414  enable_qconf=yes
18415fi
18416
18417#----------------------------------------
18418# Check if the lxdialog library should be built
18419if test "$enable_mconf" = "yes"; then :
18420  need_lxdialog=yes
18421else
18422  need_lxdialog=no
18423fi
18424
18425#----------------------------------------
18426# Check if the images library should be built
18427if test "$enable_gconf" = "yes" -o "$enable_qconf" = "yes"; then :
18428  need_images=yes
18429else
18430  need_images=no
18431fi
18432
18433#----------------------------------------
18434# Setup automake conditional build
18435 if test "$enable_kconfig" = "yes"; then
18436  COND_kconfig_TRUE=
18437  COND_kconfig_FALSE='#'
18438else
18439  COND_kconfig_TRUE='#'
18440  COND_kconfig_FALSE=
18441fi
18442
18443 if test "$enable_conf" = "yes"; then
18444  COND_conf_TRUE=
18445  COND_conf_FALSE='#'
18446else
18447  COND_conf_TRUE='#'
18448  COND_conf_FALSE=
18449fi
18450
18451 if test "$enable_mconf" = "yes"; then
18452  COND_mconf_TRUE=
18453  COND_mconf_FALSE='#'
18454else
18455  COND_mconf_TRUE='#'
18456  COND_mconf_FALSE=
18457fi
18458
18459 if test "$enable_nconf" = "yes"; then
18460  COND_nconf_TRUE=
18461  COND_nconf_FALSE='#'
18462else
18463  COND_nconf_TRUE='#'
18464  COND_nconf_FALSE=
18465fi
18466
18467 if test "$enable_gconf" = "yes"; then
18468  COND_gconf_TRUE=
18469  COND_gconf_FALSE='#'
18470else
18471  COND_gconf_TRUE='#'
18472  COND_gconf_FALSE=
18473fi
18474
18475 if test "$enable_qconf" = "yes"; then
18476  COND_qconf_TRUE=
18477  COND_qconf_FALSE='#'
18478else
18479  COND_qconf_TRUE='#'
18480  COND_qconf_FALSE=
18481fi
18482
18483 if test "$need_lxdialog" = "yes"; then
18484  COND_lxdialog_TRUE=
18485  COND_lxdialog_FALSE='#'
18486else
18487  COND_lxdialog_TRUE='#'
18488  COND_lxdialog_FALSE=
18489fi
18490
18491 if test "$need_images" = "yes"; then
18492  COND_images_TRUE=
18493  COND_images_FALSE='#'
18494else
18495  COND_images_TRUE='#'
18496  COND_images_FALSE=
18497fi
18498
18499 if test "$enable_utils" = "yes"; then
18500  COND_utils_TRUE=
18501  COND_utils_FALSE='#'
18502else
18503  COND_utils_TRUE='#'
18504  COND_utils_FALSE=
18505fi
18506
18507 if test "$has_gettext" = "yes"; then
18508  COND_utils_gettext_TRUE=
18509  COND_utils_gettext_FALSE='#'
18510else
18511  COND_utils_gettext_TRUE='#'
18512  COND_utils_gettext_FALSE=
18513fi
18514
18515
18516#----------------------------------------
18517# Get the version to apply to the parser shared library
18518KCONFIGPARSER_LIB_VERSION=4.11.0
18519
18520
18521#----------------------------------------
18522# Pretty-print the configuration settings
18523fe_list=
18524if test "$enable_conf"  = "yes"; then :
18525  fe_list="$fe_list conf"
18526fi
18527if test "$enable_gconf" = "yes"; then :
18528  fe_list="$fe_list gconf"
18529fi
18530if test "$enable_mconf" = "yes"; then :
18531  fe_list="$fe_list mconf"
18532fi
18533if test "$enable_nconf" = "yes"; then :
18534  fe_list="$fe_list nconf"
18535fi
18536if test "$enable_qconf" = "yes"; then :
18537  fe_list="$fe_list qconf"
18538fi
18539# The meta frontend is handled separatly, below, because we do not
18540# want it in the list of tools, kcfg_list.
18541
18542kcfg_list="$fe_list"
18543if test "$enable_utils" = "yes"; then :
18544  kcfg_list="$kcfg_list diff merge tweak"
18545fi
18546if test "$has_gettext" = "yes"; then :
18547  kcfg_list="$kcfg_list gettext"
18548fi
18549kcfg_list=${kcfg_list}
18550
18551
18552if test "$enable_kconfig" = "yes"; then :
18553  fe_list=" kconfig$fe_list"
18554fi
18555
18556lib_list=
18557if test "$enable_shared" = "yes"; then :
18558  lib_list="$lib_list shared (version: $KCONFIGPARSER_LIB_VERSION)"
18559fi
18560if test "$enable_static" = "yes"; then :
18561  lib_list="$lib_list${lib_list:+,} static"
18562fi
18563
18564#----------------------------------------
18565# Finalise
18566# All generated files are generated by a Makefile rule, except Makefile
18567# itself of course.
18568# There is no generic solution in automake to generate a file from its
18569# .in source, so we'd have to provide custom, hand-made rules, which is
18570# not nice. So, we handle libs/parser/kconfig-parser.pc here.
18571ac_config_files="$ac_config_files Makefile libs/parser/kconfig-parser.pc"
18572
18573cat >confcache <<\_ACEOF
18574# This file is a shell script that caches the results of configure
18575# tests run on this system so they can be shared between configure
18576# scripts and configure runs, see configure's option --config-cache.
18577# It is not useful on other systems.  If it contains results you don't
18578# want to keep, you may remove or edit it.
18579#
18580# config.status only pays attention to the cache file if you give it
18581# the --recheck option to rerun configure.
18582#
18583# `ac_cv_env_foo' variables (set or unset) will be overridden when
18584# loading this file, other *unset* `ac_cv_foo' will be assigned the
18585# following values.
18586
18587_ACEOF
18588
18589# The following way of writing the cache mishandles newlines in values,
18590# but we know of no workaround that is simple, portable, and efficient.
18591# So, we kill variables containing newlines.
18592# Ultrix sh set writes to stderr and can't be redirected directly,
18593# and sets the high bit in the cache file unless we assign to the vars.
18594(
18595  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18596    eval ac_val=\$$ac_var
18597    case $ac_val in #(
18598    *${as_nl}*)
18599      case $ac_var in #(
18600      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18601$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18602      esac
18603      case $ac_var in #(
18604      _ | IFS | as_nl) ;; #(
18605      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18606      *) { eval $ac_var=; unset $ac_var;} ;;
18607      esac ;;
18608    esac
18609  done
18610
18611  (set) 2>&1 |
18612    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18613    *${as_nl}ac_space=\ *)
18614      # `set' does not quote correctly, so add quotes: double-quote
18615      # substitution turns \\\\ into \\, and sed turns \\ into \.
18616      sed -n \
18617	"s/'/'\\\\''/g;
18618	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18619      ;; #(
18620    *)
18621      # `set' quotes correctly as required by POSIX, so do not add quotes.
18622      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18623      ;;
18624    esac |
18625    sort
18626) |
18627  sed '
18628     /^ac_cv_env_/b end
18629     t clear
18630     :clear
18631     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18632     t end
18633     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18634     :end' >>confcache
18635if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18636  if test -w "$cache_file"; then
18637    if test "x$cache_file" != "x/dev/null"; then
18638      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18639$as_echo "$as_me: updating cache $cache_file" >&6;}
18640      if test ! -f "$cache_file" || test -h "$cache_file"; then
18641	cat confcache >"$cache_file"
18642      else
18643        case $cache_file in #(
18644        */* | ?:*)
18645	  mv -f confcache "$cache_file"$$ &&
18646	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18647        *)
18648	  mv -f confcache "$cache_file" ;;
18649	esac
18650      fi
18651    fi
18652  else
18653    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18654$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18655  fi
18656fi
18657rm -f confcache
18658
18659test "x$prefix" = xNONE && prefix=$ac_default_prefix
18660# Let make expand exec_prefix.
18661test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18662
18663DEFS=-DHAVE_CONFIG_H
18664
18665ac_libobjs=
18666ac_ltlibobjs=
18667U=
18668for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18669  # 1. Remove the extension, and $U if already installed.
18670  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18671  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18672  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18673  #    will be set to the directory where LIBOBJS objects are built.
18674  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18675  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18676done
18677LIBOBJS=$ac_libobjs
18678
18679LTLIBOBJS=$ac_ltlibobjs
18680
18681
18682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18683$as_echo_n "checking that generated files are newer than configure... " >&6; }
18684   if test -n "$am_sleep_pid"; then
18685     # Hide warnings about reused PIDs.
18686     wait $am_sleep_pid 2>/dev/null
18687   fi
18688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18689$as_echo "done" >&6; }
18690 if test -n "$EXEEXT"; then
18691  am__EXEEXT_TRUE=
18692  am__EXEEXT_FALSE='#'
18693else
18694  am__EXEEXT_TRUE='#'
18695  am__EXEEXT_FALSE=
18696fi
18697
18698if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18699  as_fn_error $? "conditional \"AMDEP\" was never defined.
18700Usually this means the macro was only invoked conditionally." "$LINENO" 5
18701fi
18702if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18703  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18704Usually this means the macro was only invoked conditionally." "$LINENO" 5
18705fi
18706if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18707  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18708Usually this means the macro was only invoked conditionally." "$LINENO" 5
18709fi
18710if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18711  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18712Usually this means the macro was only invoked conditionally." "$LINENO" 5
18713fi
18714if test -z "${COND_kconfig_TRUE}" && test -z "${COND_kconfig_FALSE}"; then
18715  as_fn_error $? "conditional \"COND_kconfig\" was never defined.
18716Usually this means the macro was only invoked conditionally." "$LINENO" 5
18717fi
18718if test -z "${COND_conf_TRUE}" && test -z "${COND_conf_FALSE}"; then
18719  as_fn_error $? "conditional \"COND_conf\" was never defined.
18720Usually this means the macro was only invoked conditionally." "$LINENO" 5
18721fi
18722if test -z "${COND_mconf_TRUE}" && test -z "${COND_mconf_FALSE}"; then
18723  as_fn_error $? "conditional \"COND_mconf\" was never defined.
18724Usually this means the macro was only invoked conditionally." "$LINENO" 5
18725fi
18726if test -z "${COND_nconf_TRUE}" && test -z "${COND_nconf_FALSE}"; then
18727  as_fn_error $? "conditional \"COND_nconf\" was never defined.
18728Usually this means the macro was only invoked conditionally." "$LINENO" 5
18729fi
18730if test -z "${COND_gconf_TRUE}" && test -z "${COND_gconf_FALSE}"; then
18731  as_fn_error $? "conditional \"COND_gconf\" was never defined.
18732Usually this means the macro was only invoked conditionally." "$LINENO" 5
18733fi
18734if test -z "${COND_qconf_TRUE}" && test -z "${COND_qconf_FALSE}"; then
18735  as_fn_error $? "conditional \"COND_qconf\" was never defined.
18736Usually this means the macro was only invoked conditionally." "$LINENO" 5
18737fi
18738if test -z "${COND_lxdialog_TRUE}" && test -z "${COND_lxdialog_FALSE}"; then
18739  as_fn_error $? "conditional \"COND_lxdialog\" was never defined.
18740Usually this means the macro was only invoked conditionally." "$LINENO" 5
18741fi
18742if test -z "${COND_images_TRUE}" && test -z "${COND_images_FALSE}"; then
18743  as_fn_error $? "conditional \"COND_images\" was never defined.
18744Usually this means the macro was only invoked conditionally." "$LINENO" 5
18745fi
18746if test -z "${COND_utils_TRUE}" && test -z "${COND_utils_FALSE}"; then
18747  as_fn_error $? "conditional \"COND_utils\" was never defined.
18748Usually this means the macro was only invoked conditionally." "$LINENO" 5
18749fi
18750if test -z "${COND_utils_gettext_TRUE}" && test -z "${COND_utils_gettext_FALSE}"; then
18751  as_fn_error $? "conditional \"COND_utils_gettext\" was never defined.
18752Usually this means the macro was only invoked conditionally." "$LINENO" 5
18753fi
18754
18755: "${CONFIG_STATUS=./config.status}"
18756ac_write_fail=0
18757ac_clean_files_save=$ac_clean_files
18758ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18759{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18760$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18761as_write_fail=0
18762cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18763#! $SHELL
18764# Generated by $as_me.
18765# Run this file to recreate the current configuration.
18766# Compiler output produced by configure, useful for debugging
18767# configure, is in config.log if it exists.
18768
18769debug=false
18770ac_cs_recheck=false
18771ac_cs_silent=false
18772
18773SHELL=\${CONFIG_SHELL-$SHELL}
18774export SHELL
18775_ASEOF
18776cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18777## -------------------- ##
18778## M4sh Initialization. ##
18779## -------------------- ##
18780
18781# Be more Bourne compatible
18782DUALCASE=1; export DUALCASE # for MKS sh
18783if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18784  emulate sh
18785  NULLCMD=:
18786  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18787  # is contrary to our usage.  Disable this feature.
18788  alias -g '${1+"$@"}'='"$@"'
18789  setopt NO_GLOB_SUBST
18790else
18791  case `(set -o) 2>/dev/null` in #(
18792  *posix*) :
18793    set -o posix ;; #(
18794  *) :
18795     ;;
18796esac
18797fi
18798
18799
18800as_nl='
18801'
18802export as_nl
18803# Printing a long string crashes Solaris 7 /usr/bin/printf.
18804as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18805as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18806as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18807# Prefer a ksh shell builtin over an external printf program on Solaris,
18808# but without wasting forks for bash or zsh.
18809if test -z "$BASH_VERSION$ZSH_VERSION" \
18810    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18811  as_echo='print -r --'
18812  as_echo_n='print -rn --'
18813elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18814  as_echo='printf %s\n'
18815  as_echo_n='printf %s'
18816else
18817  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18818    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18819    as_echo_n='/usr/ucb/echo -n'
18820  else
18821    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18822    as_echo_n_body='eval
18823      arg=$1;
18824      case $arg in #(
18825      *"$as_nl"*)
18826	expr "X$arg" : "X\\(.*\\)$as_nl";
18827	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18828      esac;
18829      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18830    '
18831    export as_echo_n_body
18832    as_echo_n='sh -c $as_echo_n_body as_echo'
18833  fi
18834  export as_echo_body
18835  as_echo='sh -c $as_echo_body as_echo'
18836fi
18837
18838# The user is always right.
18839if test "${PATH_SEPARATOR+set}" != set; then
18840  PATH_SEPARATOR=:
18841  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18842    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18843      PATH_SEPARATOR=';'
18844  }
18845fi
18846
18847
18848# IFS
18849# We need space, tab and new line, in precisely that order.  Quoting is
18850# there to prevent editors from complaining about space-tab.
18851# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18852# splitting by setting IFS to empty value.)
18853IFS=" ""	$as_nl"
18854
18855# Find who we are.  Look in the path if we contain no directory separator.
18856as_myself=
18857case $0 in #((
18858  *[\\/]* ) as_myself=$0 ;;
18859  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18860for as_dir in $PATH
18861do
18862  IFS=$as_save_IFS
18863  test -z "$as_dir" && as_dir=.
18864    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18865  done
18866IFS=$as_save_IFS
18867
18868     ;;
18869esac
18870# We did not find ourselves, most probably we were run as `sh COMMAND'
18871# in which case we are not to be found in the path.
18872if test "x$as_myself" = x; then
18873  as_myself=$0
18874fi
18875if test ! -f "$as_myself"; then
18876  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18877  exit 1
18878fi
18879
18880# Unset variables that we do not need and which cause bugs (e.g. in
18881# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18882# suppresses any "Segmentation fault" message there.  '((' could
18883# trigger a bug in pdksh 5.2.14.
18884for as_var in BASH_ENV ENV MAIL MAILPATH
18885do eval test x\${$as_var+set} = xset \
18886  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18887done
18888PS1='$ '
18889PS2='> '
18890PS4='+ '
18891
18892# NLS nuisances.
18893LC_ALL=C
18894export LC_ALL
18895LANGUAGE=C
18896export LANGUAGE
18897
18898# CDPATH.
18899(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18900
18901
18902# as_fn_error STATUS ERROR [LINENO LOG_FD]
18903# ----------------------------------------
18904# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18905# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18906# script with STATUS, using 1 if that was 0.
18907as_fn_error ()
18908{
18909  as_status=$1; test $as_status -eq 0 && as_status=1
18910  if test "$4"; then
18911    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18912    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18913  fi
18914  $as_echo "$as_me: error: $2" >&2
18915  as_fn_exit $as_status
18916} # as_fn_error
18917
18918
18919# as_fn_set_status STATUS
18920# -----------------------
18921# Set $? to STATUS, without forking.
18922as_fn_set_status ()
18923{
18924  return $1
18925} # as_fn_set_status
18926
18927# as_fn_exit STATUS
18928# -----------------
18929# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18930as_fn_exit ()
18931{
18932  set +e
18933  as_fn_set_status $1
18934  exit $1
18935} # as_fn_exit
18936
18937# as_fn_unset VAR
18938# ---------------
18939# Portably unset VAR.
18940as_fn_unset ()
18941{
18942  { eval $1=; unset $1;}
18943}
18944as_unset=as_fn_unset
18945# as_fn_append VAR VALUE
18946# ----------------------
18947# Append the text in VALUE to the end of the definition contained in VAR. Take
18948# advantage of any shell optimizations that allow amortized linear growth over
18949# repeated appends, instead of the typical quadratic growth present in naive
18950# implementations.
18951if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18952  eval 'as_fn_append ()
18953  {
18954    eval $1+=\$2
18955  }'
18956else
18957  as_fn_append ()
18958  {
18959    eval $1=\$$1\$2
18960  }
18961fi # as_fn_append
18962
18963# as_fn_arith ARG...
18964# ------------------
18965# Perform arithmetic evaluation on the ARGs, and store the result in the
18966# global $as_val. Take advantage of shells that can avoid forks. The arguments
18967# must be portable across $(()) and expr.
18968if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18969  eval 'as_fn_arith ()
18970  {
18971    as_val=$(( $* ))
18972  }'
18973else
18974  as_fn_arith ()
18975  {
18976    as_val=`expr "$@" || test $? -eq 1`
18977  }
18978fi # as_fn_arith
18979
18980
18981if expr a : '\(a\)' >/dev/null 2>&1 &&
18982   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18983  as_expr=expr
18984else
18985  as_expr=false
18986fi
18987
18988if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18989  as_basename=basename
18990else
18991  as_basename=false
18992fi
18993
18994if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18995  as_dirname=dirname
18996else
18997  as_dirname=false
18998fi
18999
19000as_me=`$as_basename -- "$0" ||
19001$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19002	 X"$0" : 'X\(//\)$' \| \
19003	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19004$as_echo X/"$0" |
19005    sed '/^.*\/\([^/][^/]*\)\/*$/{
19006	    s//\1/
19007	    q
19008	  }
19009	  /^X\/\(\/\/\)$/{
19010	    s//\1/
19011	    q
19012	  }
19013	  /^X\/\(\/\).*/{
19014	    s//\1/
19015	    q
19016	  }
19017	  s/.*/./; q'`
19018
19019# Avoid depending upon Character Ranges.
19020as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19021as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19022as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19023as_cr_digits='0123456789'
19024as_cr_alnum=$as_cr_Letters$as_cr_digits
19025
19026ECHO_C= ECHO_N= ECHO_T=
19027case `echo -n x` in #(((((
19028-n*)
19029  case `echo 'xy\c'` in
19030  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19031  xy)  ECHO_C='\c';;
19032  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19033       ECHO_T='	';;
19034  esac;;
19035*)
19036  ECHO_N='-n';;
19037esac
19038
19039rm -f conf$$ conf$$.exe conf$$.file
19040if test -d conf$$.dir; then
19041  rm -f conf$$.dir/conf$$.file
19042else
19043  rm -f conf$$.dir
19044  mkdir conf$$.dir 2>/dev/null
19045fi
19046if (echo >conf$$.file) 2>/dev/null; then
19047  if ln -s conf$$.file conf$$ 2>/dev/null; then
19048    as_ln_s='ln -s'
19049    # ... but there are two gotchas:
19050    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19051    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19052    # In both cases, we have to default to `cp -pR'.
19053    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19054      as_ln_s='cp -pR'
19055  elif ln conf$$.file conf$$ 2>/dev/null; then
19056    as_ln_s=ln
19057  else
19058    as_ln_s='cp -pR'
19059  fi
19060else
19061  as_ln_s='cp -pR'
19062fi
19063rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19064rmdir conf$$.dir 2>/dev/null
19065
19066
19067# as_fn_mkdir_p
19068# -------------
19069# Create "$as_dir" as a directory, including parents if necessary.
19070as_fn_mkdir_p ()
19071{
19072
19073  case $as_dir in #(
19074  -*) as_dir=./$as_dir;;
19075  esac
19076  test -d "$as_dir" || eval $as_mkdir_p || {
19077    as_dirs=
19078    while :; do
19079      case $as_dir in #(
19080      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19081      *) as_qdir=$as_dir;;
19082      esac
19083      as_dirs="'$as_qdir' $as_dirs"
19084      as_dir=`$as_dirname -- "$as_dir" ||
19085$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19086	 X"$as_dir" : 'X\(//\)[^/]' \| \
19087	 X"$as_dir" : 'X\(//\)$' \| \
19088	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19089$as_echo X"$as_dir" |
19090    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19091	    s//\1/
19092	    q
19093	  }
19094	  /^X\(\/\/\)[^/].*/{
19095	    s//\1/
19096	    q
19097	  }
19098	  /^X\(\/\/\)$/{
19099	    s//\1/
19100	    q
19101	  }
19102	  /^X\(\/\).*/{
19103	    s//\1/
19104	    q
19105	  }
19106	  s/.*/./; q'`
19107      test -d "$as_dir" && break
19108    done
19109    test -z "$as_dirs" || eval "mkdir $as_dirs"
19110  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19111
19112
19113} # as_fn_mkdir_p
19114if mkdir -p . 2>/dev/null; then
19115  as_mkdir_p='mkdir -p "$as_dir"'
19116else
19117  test -d ./-p && rmdir ./-p
19118  as_mkdir_p=false
19119fi
19120
19121
19122# as_fn_executable_p FILE
19123# -----------------------
19124# Test if FILE is an executable regular file.
19125as_fn_executable_p ()
19126{
19127  test -f "$1" && test -x "$1"
19128} # as_fn_executable_p
19129as_test_x='test -x'
19130as_executable_p=as_fn_executable_p
19131
19132# Sed expression to map a string onto a valid CPP name.
19133as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19134
19135# Sed expression to map a string onto a valid variable name.
19136as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19137
19138
19139exec 6>&1
19140## ----------------------------------- ##
19141## Main body of $CONFIG_STATUS script. ##
19142## ----------------------------------- ##
19143_ASEOF
19144test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19145
19146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19147# Save the log message, to keep $0 and so on meaningful, and to
19148# report actual input values of CONFIG_FILES etc. instead of their
19149# values after options handling.
19150ac_log="
19151This file was extended by kconfig-frontends $as_me 4.11.0.1, which was
19152generated by GNU Autoconf 2.69.  Invocation command line was
19153
19154  CONFIG_FILES    = $CONFIG_FILES
19155  CONFIG_HEADERS  = $CONFIG_HEADERS
19156  CONFIG_LINKS    = $CONFIG_LINKS
19157  CONFIG_COMMANDS = $CONFIG_COMMANDS
19158  $ $0 $@
19159
19160on `(hostname || uname -n) 2>/dev/null | sed 1q`
19161"
19162
19163_ACEOF
19164
19165case $ac_config_files in *"
19166"*) set x $ac_config_files; shift; ac_config_files=$*;;
19167esac
19168
19169case $ac_config_headers in *"
19170"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19171esac
19172
19173
19174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19175# Files that config.status was made for.
19176config_files="$ac_config_files"
19177config_headers="$ac_config_headers"
19178config_commands="$ac_config_commands"
19179
19180_ACEOF
19181
19182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19183ac_cs_usage="\
19184\`$as_me' instantiates files and other configuration actions
19185from templates according to the current configuration.  Unless the files
19186and actions are specified as TAGs, all are instantiated by default.
19187
19188Usage: $0 [OPTION]... [TAG]...
19189
19190  -h, --help       print this help, then exit
19191  -V, --version    print version number and configuration settings, then exit
19192      --config     print configuration, then exit
19193  -q, --quiet, --silent
19194                   do not print progress messages
19195  -d, --debug      don't remove temporary files
19196      --recheck    update $as_me by reconfiguring in the same conditions
19197      --file=FILE[:TEMPLATE]
19198                   instantiate the configuration file FILE
19199      --header=FILE[:TEMPLATE]
19200                   instantiate the configuration header FILE
19201
19202Configuration files:
19203$config_files
19204
19205Configuration headers:
19206$config_headers
19207
19208Configuration commands:
19209$config_commands
19210
19211Report bugs to <[email protected]>."
19212
19213_ACEOF
19214cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19215ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19216ac_cs_version="\\
19217kconfig-frontends config.status 4.11.0.1
19218configured by $0, generated by GNU Autoconf 2.69,
19219  with options \\"\$ac_cs_config\\"
19220
19221Copyright (C) 2012 Free Software Foundation, Inc.
19222This config.status script is free software; the Free Software Foundation
19223gives unlimited permission to copy, distribute and modify it."
19224
19225ac_pwd='$ac_pwd'
19226srcdir='$srcdir'
19227INSTALL='$INSTALL'
19228MKDIR_P='$MKDIR_P'
19229AWK='$AWK'
19230test -n "\$AWK" || AWK=awk
19231_ACEOF
19232
19233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19234# The default lists apply if the user does not specify any file.
19235ac_need_defaults=:
19236while test $# != 0
19237do
19238  case $1 in
19239  --*=?*)
19240    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19241    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19242    ac_shift=:
19243    ;;
19244  --*=)
19245    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19246    ac_optarg=
19247    ac_shift=:
19248    ;;
19249  *)
19250    ac_option=$1
19251    ac_optarg=$2
19252    ac_shift=shift
19253    ;;
19254  esac
19255
19256  case $ac_option in
19257  # Handling of the options.
19258  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19259    ac_cs_recheck=: ;;
19260  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19261    $as_echo "$ac_cs_version"; exit ;;
19262  --config | --confi | --conf | --con | --co | --c )
19263    $as_echo "$ac_cs_config"; exit ;;
19264  --debug | --debu | --deb | --de | --d | -d )
19265    debug=: ;;
19266  --file | --fil | --fi | --f )
19267    $ac_shift
19268    case $ac_optarg in
19269    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19270    '') as_fn_error $? "missing file argument" ;;
19271    esac
19272    as_fn_append CONFIG_FILES " '$ac_optarg'"
19273    ac_need_defaults=false;;
19274  --header | --heade | --head | --hea )
19275    $ac_shift
19276    case $ac_optarg in
19277    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19278    esac
19279    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19280    ac_need_defaults=false;;
19281  --he | --h)
19282    # Conflict between --help and --header
19283    as_fn_error $? "ambiguous option: \`$1'
19284Try \`$0 --help' for more information.";;
19285  --help | --hel | -h )
19286    $as_echo "$ac_cs_usage"; exit ;;
19287  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19288  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19289    ac_cs_silent=: ;;
19290
19291  # This is an error.
19292  -*) as_fn_error $? "unrecognized option: \`$1'
19293Try \`$0 --help' for more information." ;;
19294
19295  *) as_fn_append ac_config_targets " $1"
19296     ac_need_defaults=false ;;
19297
19298  esac
19299  shift
19300done
19301
19302ac_configure_extra_args=
19303
19304if $ac_cs_silent; then
19305  exec 6>/dev/null
19306  ac_configure_extra_args="$ac_configure_extra_args --silent"
19307fi
19308
19309_ACEOF
19310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19311if \$ac_cs_recheck; then
19312  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19313  shift
19314  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19315  CONFIG_SHELL='$SHELL'
19316  export CONFIG_SHELL
19317  exec "\$@"
19318fi
19319
19320_ACEOF
19321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19322exec 5>>config.log
19323{
19324  echo
19325  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19326## Running $as_me. ##
19327_ASBOX
19328  $as_echo "$ac_log"
19329} >&5
19330
19331_ACEOF
19332cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19333#
19334# INIT-COMMANDS
19335#
19336AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19337
19338
19339# The HP-UX ksh and POSIX shell print the target directory to stdout
19340# if CDPATH is set.
19341(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19342
19343sed_quote_subst='$sed_quote_subst'
19344double_quote_subst='$double_quote_subst'
19345delay_variable_subst='$delay_variable_subst'
19346macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19347macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19348enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19349enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19350pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19351enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19352shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19353SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19354ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19355PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19356host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19357host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19358host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19359build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19360build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19361build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19362SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19363Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19364GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19365EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19366FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19367LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19368NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19369LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19370max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19371ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19372exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19373lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19374lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19375lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19376lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19377lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19378reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19379reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19380OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19381deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19382file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19383file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19384want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19385DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19386sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19387AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19388AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19389archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19390STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19391RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19392old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19393old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19394old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19395lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19396CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19397CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19398compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19399GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19400lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19401lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19402lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19403lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19404lt_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"`'
19405lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19406nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19407lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19408lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19409objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19410MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19411lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19412lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19413lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19414lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19415lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19416need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19417MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19418DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19419NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19420LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19421OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19422OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19423libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19424shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19425extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19426archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19427enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19428export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19429whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19430compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19431old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19432old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19433archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19434archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19435module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19436module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19437with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19438allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19439no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19440hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19441hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19442hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19443hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19444hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19445hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19446hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19447inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19448link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19449always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19450export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19451exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19452include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19453prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19454postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19455file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19456variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19457need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19458need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19459version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19460runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19461shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19462shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19463libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19464library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19465soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19466install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19467postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19468postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19469finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19470finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19471hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19472sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19473configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19474configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19475hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19476enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19477enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19478enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19479old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19480striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19481compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19482predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19483postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19484predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19485postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19486compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19487LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19488reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19489reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19490old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19491compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19492GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19493lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19494lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19495lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19496lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19497lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19498archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19499enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19500export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19501whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19502compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19503old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19504old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19505archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19506archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19507module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19508module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19509with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19510allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19511no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19512hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19513hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19514hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19515hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19516hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19517hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19518hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19519inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19520link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19521always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19522export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19523exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19524include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19525prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19526postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19527file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19528hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19529compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19530predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19531postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19532predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19533postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19534compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19535
19536LTCC='$LTCC'
19537LTCFLAGS='$LTCFLAGS'
19538compiler='$compiler_DEFAULT'
19539
19540# A function that is used when there is no print builtin or printf.
19541func_fallback_echo ()
19542{
19543  eval 'cat <<_LTECHO_EOF
19544\$1
19545_LTECHO_EOF'
19546}
19547
19548# Quote evaled strings.
19549for var in SHELL \
19550ECHO \
19551PATH_SEPARATOR \
19552SED \
19553GREP \
19554EGREP \
19555FGREP \
19556LD \
19557NM \
19558LN_S \
19559lt_SP2NL \
19560lt_NL2SP \
19561reload_flag \
19562OBJDUMP \
19563deplibs_check_method \
19564file_magic_cmd \
19565file_magic_glob \
19566want_nocaseglob \
19567DLLTOOL \
19568sharedlib_from_linklib_cmd \
19569AR \
19570AR_FLAGS \
19571archiver_list_spec \
19572STRIP \
19573RANLIB \
19574CC \
19575CFLAGS \
19576compiler \
19577lt_cv_sys_global_symbol_pipe \
19578lt_cv_sys_global_symbol_to_cdecl \
19579lt_cv_sys_global_symbol_to_import \
19580lt_cv_sys_global_symbol_to_c_name_address \
19581lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19582lt_cv_nm_interface \
19583nm_file_list_spec \
19584lt_cv_truncate_bin \
19585lt_prog_compiler_no_builtin_flag \
19586lt_prog_compiler_pic \
19587lt_prog_compiler_wl \
19588lt_prog_compiler_static \
19589lt_cv_prog_compiler_c_o \
19590need_locks \
19591MANIFEST_TOOL \
19592DSYMUTIL \
19593NMEDIT \
19594LIPO \
19595OTOOL \
19596OTOOL64 \
19597shrext_cmds \
19598export_dynamic_flag_spec \
19599whole_archive_flag_spec \
19600compiler_needs_object \
19601with_gnu_ld \
19602allow_undefined_flag \
19603no_undefined_flag \
19604hardcode_libdir_flag_spec \
19605hardcode_libdir_separator \
19606exclude_expsyms \
19607include_expsyms \
19608file_list_spec \
19609variables_saved_for_relink \
19610libname_spec \
19611library_names_spec \
19612soname_spec \
19613install_override_mode \
19614finish_eval \
19615old_striplib \
19616striplib \
19617compiler_lib_search_dirs \
19618predep_objects \
19619postdep_objects \
19620predeps \
19621postdeps \
19622compiler_lib_search_path \
19623LD_CXX \
19624reload_flag_CXX \
19625compiler_CXX \
19626lt_prog_compiler_no_builtin_flag_CXX \
19627lt_prog_compiler_pic_CXX \
19628lt_prog_compiler_wl_CXX \
19629lt_prog_compiler_static_CXX \
19630lt_cv_prog_compiler_c_o_CXX \
19631export_dynamic_flag_spec_CXX \
19632whole_archive_flag_spec_CXX \
19633compiler_needs_object_CXX \
19634with_gnu_ld_CXX \
19635allow_undefined_flag_CXX \
19636no_undefined_flag_CXX \
19637hardcode_libdir_flag_spec_CXX \
19638hardcode_libdir_separator_CXX \
19639exclude_expsyms_CXX \
19640include_expsyms_CXX \
19641file_list_spec_CXX \
19642compiler_lib_search_dirs_CXX \
19643predep_objects_CXX \
19644postdep_objects_CXX \
19645predeps_CXX \
19646postdeps_CXX \
19647compiler_lib_search_path_CXX; do
19648    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19649    *[\\\\\\\`\\"\\\$]*)
19650      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19651      ;;
19652    *)
19653      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19654      ;;
19655    esac
19656done
19657
19658# Double-quote double-evaled strings.
19659for var in reload_cmds \
19660old_postinstall_cmds \
19661old_postuninstall_cmds \
19662old_archive_cmds \
19663extract_expsyms_cmds \
19664old_archive_from_new_cmds \
19665old_archive_from_expsyms_cmds \
19666archive_cmds \
19667archive_expsym_cmds \
19668module_cmds \
19669module_expsym_cmds \
19670export_symbols_cmds \
19671prelink_cmds \
19672postlink_cmds \
19673postinstall_cmds \
19674postuninstall_cmds \
19675finish_cmds \
19676sys_lib_search_path_spec \
19677configure_time_dlsearch_path \
19678configure_time_lt_sys_library_path \
19679reload_cmds_CXX \
19680old_archive_cmds_CXX \
19681old_archive_from_new_cmds_CXX \
19682old_archive_from_expsyms_cmds_CXX \
19683archive_cmds_CXX \
19684archive_expsym_cmds_CXX \
19685module_cmds_CXX \
19686module_expsym_cmds_CXX \
19687export_symbols_cmds_CXX \
19688prelink_cmds_CXX \
19689postlink_cmds_CXX; do
19690    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19691    *[\\\\\\\`\\"\\\$]*)
19692      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19693      ;;
19694    *)
19695      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19696      ;;
19697    esac
19698done
19699
19700ac_aux_dir='$ac_aux_dir'
19701
19702# See if we are running on zsh, and set the options that allow our
19703# commands through without removal of \ escapes INIT.
19704if test -n "\${ZSH_VERSION+set}"; then
19705   setopt NO_GLOB_SUBST
19706fi
19707
19708
19709    PACKAGE='$PACKAGE'
19710    VERSION='$VERSION'
19711    RM='$RM'
19712    ofile='$ofile'
19713
19714
19715
19716
19717
19718
19719_ACEOF
19720
19721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19722
19723# Handling of arguments.
19724for ac_config_target in $ac_config_targets
19725do
19726  case $ac_config_target in
19727    "scripts/.autostuff/config.h") CONFIG_HEADERS="$CONFIG_HEADERS scripts/.autostuff/config.h" ;;
19728    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19729    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19730    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19731    "libs/parser/kconfig-parser.pc") CONFIG_FILES="$CONFIG_FILES libs/parser/kconfig-parser.pc" ;;
19732
19733  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19734  esac
19735done
19736
19737
19738# If the user did not use the arguments to specify the items to instantiate,
19739# then the envvar interface is used.  Set only those that are not.
19740# We use the long form for the default assignment because of an extremely
19741# bizarre bug on SunOS 4.1.3.
19742if $ac_need_defaults; then
19743  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19744  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19745  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19746fi
19747
19748# Have a temporary directory for convenience.  Make it in the build tree
19749# simply because there is no reason against having it here, and in addition,
19750# creating and moving files from /tmp can sometimes cause problems.
19751# Hook for its removal unless debugging.
19752# Note that there is a small window in which the directory will not be cleaned:
19753# after its creation but before its name has been assigned to `$tmp'.
19754$debug ||
19755{
19756  tmp= ac_tmp=
19757  trap 'exit_status=$?
19758  : "${ac_tmp:=$tmp}"
19759  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19760' 0
19761  trap 'as_fn_exit 1' 1 2 13 15
19762}
19763# Create a (secure) tmp directory for tmp files.
19764
19765{
19766  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19767  test -d "$tmp"
19768}  ||
19769{
19770  tmp=./conf$$-$RANDOM
19771  (umask 077 && mkdir "$tmp")
19772} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19773ac_tmp=$tmp
19774
19775# Set up the scripts for CONFIG_FILES section.
19776# No need to generate them if there are no CONFIG_FILES.
19777# This happens for instance with `./config.status config.h'.
19778if test -n "$CONFIG_FILES"; then
19779
19780
19781ac_cr=`echo X | tr X '\015'`
19782# On cygwin, bash can eat \r inside `` if the user requested igncr.
19783# But we know of no other shell where ac_cr would be empty at this
19784# point, so we can use a bashism as a fallback.
19785if test "x$ac_cr" = x; then
19786  eval ac_cr=\$\'\\r\'
19787fi
19788ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19789if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19790  ac_cs_awk_cr='\\r'
19791else
19792  ac_cs_awk_cr=$ac_cr
19793fi
19794
19795echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19796_ACEOF
19797
19798
19799{
19800  echo "cat >conf$$subs.awk <<_ACEOF" &&
19801  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19802  echo "_ACEOF"
19803} >conf$$subs.sh ||
19804  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19805ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19806ac_delim='%!_!# '
19807for ac_last_try in false false false false false :; do
19808  . ./conf$$subs.sh ||
19809    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19810
19811  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19812  if test $ac_delim_n = $ac_delim_num; then
19813    break
19814  elif $ac_last_try; then
19815    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19816  else
19817    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19818  fi
19819done
19820rm -f conf$$subs.sh
19821
19822cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19823cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19824_ACEOF
19825sed -n '
19826h
19827s/^/S["/; s/!.*/"]=/
19828p
19829g
19830s/^[^!]*!//
19831:repl
19832t repl
19833s/'"$ac_delim"'$//
19834t delim
19835:nl
19836h
19837s/\(.\{148\}\)..*/\1/
19838t more1
19839s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19840p
19841n
19842b repl
19843:more1
19844s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19845p
19846g
19847s/.\{148\}//
19848t nl
19849:delim
19850h
19851s/\(.\{148\}\)..*/\1/
19852t more2
19853s/["\\]/\\&/g; s/^/"/; s/$/"/
19854p
19855b
19856:more2
19857s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19858p
19859g
19860s/.\{148\}//
19861t delim
19862' <conf$$subs.awk | sed '
19863/^[^""]/{
19864  N
19865  s/\n//
19866}
19867' >>$CONFIG_STATUS || ac_write_fail=1
19868rm -f conf$$subs.awk
19869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19870_ACAWK
19871cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19872  for (key in S) S_is_set[key] = 1
19873  FS = ""
19874
19875}
19876{
19877  line = $ 0
19878  nfields = split(line, field, "@")
19879  substed = 0
19880  len = length(field[1])
19881  for (i = 2; i < nfields; i++) {
19882    key = field[i]
19883    keylen = length(key)
19884    if (S_is_set[key]) {
19885      value = S[key]
19886      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19887      len += length(value) + length(field[++i])
19888      substed = 1
19889    } else
19890      len += 1 + keylen
19891  }
19892
19893  print line
19894}
19895
19896_ACAWK
19897_ACEOF
19898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19899if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19900  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19901else
19902  cat
19903fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19904  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19905_ACEOF
19906
19907# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19908# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19909# trailing colons and then remove the whole line if VPATH becomes empty
19910# (actually we leave an empty line to preserve line numbers).
19911if test "x$srcdir" = x.; then
19912  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19913h
19914s///
19915s/^/:/
19916s/[	 ]*$/:/
19917s/:\$(srcdir):/:/g
19918s/:\${srcdir}:/:/g
19919s/:@srcdir@:/:/g
19920s/^:*//
19921s/:*$//
19922x
19923s/\(=[	 ]*\).*/\1/
19924G
19925s/\n//
19926s/^[^=]*=[	 ]*$//
19927}'
19928fi
19929
19930cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19931fi # test -n "$CONFIG_FILES"
19932
19933# Set up the scripts for CONFIG_HEADERS section.
19934# No need to generate them if there are no CONFIG_HEADERS.
19935# This happens for instance with `./config.status Makefile'.
19936if test -n "$CONFIG_HEADERS"; then
19937cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19938BEGIN {
19939_ACEOF
19940
19941# Transform confdefs.h into an awk script `defines.awk', embedded as
19942# here-document in config.status, that substitutes the proper values into
19943# config.h.in to produce config.h.
19944
19945# Create a delimiter string that does not exist in confdefs.h, to ease
19946# handling of long lines.
19947ac_delim='%!_!# '
19948for ac_last_try in false false :; do
19949  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19950  if test -z "$ac_tt"; then
19951    break
19952  elif $ac_last_try; then
19953    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19954  else
19955    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19956  fi
19957done
19958
19959# For the awk script, D is an array of macro values keyed by name,
19960# likewise P contains macro parameters if any.  Preserve backslash
19961# newline sequences.
19962
19963ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19964sed -n '
19965s/.\{148\}/&'"$ac_delim"'/g
19966t rset
19967:rset
19968s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19969t def
19970d
19971:def
19972s/\\$//
19973t bsnl
19974s/["\\]/\\&/g
19975s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19976D["\1"]=" \3"/p
19977s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19978d
19979:bsnl
19980s/["\\]/\\&/g
19981s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19982D["\1"]=" \3\\\\\\n"\\/p
19983t cont
19984s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19985t cont
19986d
19987:cont
19988n
19989s/.\{148\}/&'"$ac_delim"'/g
19990t clear
19991:clear
19992s/\\$//
19993t bsnlc
19994s/["\\]/\\&/g; s/^/"/; s/$/"/p
19995d
19996:bsnlc
19997s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19998b cont
19999' <confdefs.h | sed '
20000s/'"$ac_delim"'/"\\\
20001"/g' >>$CONFIG_STATUS || ac_write_fail=1
20002
20003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20004  for (key in D) D_is_set[key] = 1
20005  FS = ""
20006}
20007/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20008  line = \$ 0
20009  split(line, arg, " ")
20010  if (arg[1] == "#") {
20011    defundef = arg[2]
20012    mac1 = arg[3]
20013  } else {
20014    defundef = substr(arg[1], 2)
20015    mac1 = arg[2]
20016  }
20017  split(mac1, mac2, "(") #)
20018  macro = mac2[1]
20019  prefix = substr(line, 1, index(line, defundef) - 1)
20020  if (D_is_set[macro]) {
20021    # Preserve the white space surrounding the "#".
20022    print prefix "define", macro P[macro] D[macro]
20023    next
20024  } else {
20025    # Replace #undef with comments.  This is necessary, for example,
20026    # in the case of _POSIX_SOURCE, which is predefined and required
20027    # on some systems where configure will not decide to define it.
20028    if (defundef == "undef") {
20029      print "/*", prefix defundef, macro, "*/"
20030      next
20031    }
20032  }
20033}
20034{ print }
20035_ACAWK
20036_ACEOF
20037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20038  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20039fi # test -n "$CONFIG_HEADERS"
20040
20041
20042eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20043shift
20044for ac_tag
20045do
20046  case $ac_tag in
20047  :[FHLC]) ac_mode=$ac_tag; continue;;
20048  esac
20049  case $ac_mode$ac_tag in
20050  :[FHL]*:*);;
20051  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20052  :[FH]-) ac_tag=-:-;;
20053  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20054  esac
20055  ac_save_IFS=$IFS
20056  IFS=:
20057  set x $ac_tag
20058  IFS=$ac_save_IFS
20059  shift
20060  ac_file=$1
20061  shift
20062
20063  case $ac_mode in
20064  :L) ac_source=$1;;
20065  :[FH])
20066    ac_file_inputs=
20067    for ac_f
20068    do
20069      case $ac_f in
20070      -) ac_f="$ac_tmp/stdin";;
20071      *) # Look for the file first in the build tree, then in the source tree
20072	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20073	 # because $ac_f cannot contain `:'.
20074	 test -f "$ac_f" ||
20075	   case $ac_f in
20076	   [\\/$]*) false;;
20077	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20078	   esac ||
20079	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20080      esac
20081      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20082      as_fn_append ac_file_inputs " '$ac_f'"
20083    done
20084
20085    # Let's still pretend it is `configure' which instantiates (i.e., don't
20086    # use $as_me), people would be surprised to read:
20087    #    /* config.h.  Generated by config.status.  */
20088    configure_input='Generated from '`
20089	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20090	`' by configure.'
20091    if test x"$ac_file" != x-; then
20092      configure_input="$ac_file.  $configure_input"
20093      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20094$as_echo "$as_me: creating $ac_file" >&6;}
20095    fi
20096    # Neutralize special characters interpreted by sed in replacement strings.
20097    case $configure_input in #(
20098    *\&* | *\|* | *\\* )
20099       ac_sed_conf_input=`$as_echo "$configure_input" |
20100       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20101    *) ac_sed_conf_input=$configure_input;;
20102    esac
20103
20104    case $ac_tag in
20105    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20106      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20107    esac
20108    ;;
20109  esac
20110
20111  ac_dir=`$as_dirname -- "$ac_file" ||
20112$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20113	 X"$ac_file" : 'X\(//\)[^/]' \| \
20114	 X"$ac_file" : 'X\(//\)$' \| \
20115	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20116$as_echo X"$ac_file" |
20117    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20118	    s//\1/
20119	    q
20120	  }
20121	  /^X\(\/\/\)[^/].*/{
20122	    s//\1/
20123	    q
20124	  }
20125	  /^X\(\/\/\)$/{
20126	    s//\1/
20127	    q
20128	  }
20129	  /^X\(\/\).*/{
20130	    s//\1/
20131	    q
20132	  }
20133	  s/.*/./; q'`
20134  as_dir="$ac_dir"; as_fn_mkdir_p
20135  ac_builddir=.
20136
20137case "$ac_dir" in
20138.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20139*)
20140  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20141  # A ".." for each directory in $ac_dir_suffix.
20142  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20143  case $ac_top_builddir_sub in
20144  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20145  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20146  esac ;;
20147esac
20148ac_abs_top_builddir=$ac_pwd
20149ac_abs_builddir=$ac_pwd$ac_dir_suffix
20150# for backward compatibility:
20151ac_top_builddir=$ac_top_build_prefix
20152
20153case $srcdir in
20154  .)  # We are building in place.
20155    ac_srcdir=.
20156    ac_top_srcdir=$ac_top_builddir_sub
20157    ac_abs_top_srcdir=$ac_pwd ;;
20158  [\\/]* | ?:[\\/]* )  # Absolute name.
20159    ac_srcdir=$srcdir$ac_dir_suffix;
20160    ac_top_srcdir=$srcdir
20161    ac_abs_top_srcdir=$srcdir ;;
20162  *) # Relative name.
20163    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20164    ac_top_srcdir=$ac_top_build_prefix$srcdir
20165    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20166esac
20167ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20168
20169
20170  case $ac_mode in
20171  :F)
20172  #
20173  # CONFIG_FILE
20174  #
20175
20176  case $INSTALL in
20177  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20178  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20179  esac
20180  ac_MKDIR_P=$MKDIR_P
20181  case $MKDIR_P in
20182  [\\/$]* | ?:[\\/]* ) ;;
20183  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20184  esac
20185_ACEOF
20186
20187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20188# If the template does not know about datarootdir, expand it.
20189# FIXME: This hack should be removed a few years after 2.60.
20190ac_datarootdir_hack=; ac_datarootdir_seen=
20191ac_sed_dataroot='
20192/datarootdir/ {
20193  p
20194  q
20195}
20196/@datadir@/p
20197/@docdir@/p
20198/@infodir@/p
20199/@localedir@/p
20200/@mandir@/p'
20201case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20202*datarootdir*) ac_datarootdir_seen=yes;;
20203*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20204  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20205$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20206_ACEOF
20207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20208  ac_datarootdir_hack='
20209  s&@datadir@&$datadir&g
20210  s&@docdir@&$docdir&g
20211  s&@infodir@&$infodir&g
20212  s&@localedir@&$localedir&g
20213  s&@mandir@&$mandir&g
20214  s&\\\${datarootdir}&$datarootdir&g' ;;
20215esac
20216_ACEOF
20217
20218# Neutralize VPATH when `$srcdir' = `.'.
20219# Shell code in configure.ac might set extrasub.
20220# FIXME: do we really want to maintain this feature?
20221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20222ac_sed_extra="$ac_vpsub
20223$extrasub
20224_ACEOF
20225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20226:t
20227/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20228s|@configure_input@|$ac_sed_conf_input|;t t
20229s&@top_builddir@&$ac_top_builddir_sub&;t t
20230s&@top_build_prefix@&$ac_top_build_prefix&;t t
20231s&@srcdir@&$ac_srcdir&;t t
20232s&@abs_srcdir@&$ac_abs_srcdir&;t t
20233s&@top_srcdir@&$ac_top_srcdir&;t t
20234s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20235s&@builddir@&$ac_builddir&;t t
20236s&@abs_builddir@&$ac_abs_builddir&;t t
20237s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20238s&@INSTALL@&$ac_INSTALL&;t t
20239s&@MKDIR_P@&$ac_MKDIR_P&;t t
20240$ac_datarootdir_hack
20241"
20242eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20243  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20244
20245test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20246  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20247  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20248      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20249  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20250which seems to be undefined.  Please make sure it is defined" >&5
20251$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20252which seems to be undefined.  Please make sure it is defined" >&2;}
20253
20254  rm -f "$ac_tmp/stdin"
20255  case $ac_file in
20256  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20257  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20258  esac \
20259  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20260 ;;
20261  :H)
20262  #
20263  # CONFIG_HEADER
20264  #
20265  if test x"$ac_file" != x-; then
20266    {
20267      $as_echo "/* $configure_input  */" \
20268      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20269    } >"$ac_tmp/config.h" \
20270      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20271    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20272      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20273$as_echo "$as_me: $ac_file is unchanged" >&6;}
20274    else
20275      rm -f "$ac_file"
20276      mv "$ac_tmp/config.h" "$ac_file" \
20277	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20278    fi
20279  else
20280    $as_echo "/* $configure_input  */" \
20281      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20282      || as_fn_error $? "could not create -" "$LINENO" 5
20283  fi
20284# Compute "$ac_file"'s index in $config_headers.
20285_am_arg="$ac_file"
20286_am_stamp_count=1
20287for _am_header in $config_headers :; do
20288  case $_am_header in
20289    $_am_arg | $_am_arg:* )
20290      break ;;
20291    * )
20292      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20293  esac
20294done
20295echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20296$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20297	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20298	 X"$_am_arg" : 'X\(//\)$' \| \
20299	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20300$as_echo X"$_am_arg" |
20301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20302	    s//\1/
20303	    q
20304	  }
20305	  /^X\(\/\/\)[^/].*/{
20306	    s//\1/
20307	    q
20308	  }
20309	  /^X\(\/\/\)$/{
20310	    s//\1/
20311	    q
20312	  }
20313	  /^X\(\/\).*/{
20314	    s//\1/
20315	    q
20316	  }
20317	  s/.*/./; q'`/stamp-h$_am_stamp_count
20318 ;;
20319
20320  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20321$as_echo "$as_me: executing $ac_file commands" >&6;}
20322 ;;
20323  esac
20324
20325
20326  case $ac_file$ac_mode in
20327    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20328  # Older Autoconf quotes --file arguments for eval, but not when files
20329  # are listed without --file.  Let's play safe and only enable the eval
20330  # if we detect the quoting.
20331  case $CONFIG_FILES in
20332  *\'*) eval set x "$CONFIG_FILES" ;;
20333  *)   set x $CONFIG_FILES ;;
20334  esac
20335  shift
20336  for mf
20337  do
20338    # Strip MF so we end up with the name of the file.
20339    mf=`echo "$mf" | sed -e 's/:.*$//'`
20340    # Check whether this is an Automake generated Makefile or not.
20341    # We used to match only the files named 'Makefile.in', but
20342    # some people rename them; so instead we look at the file content.
20343    # Grep'ing the first line is not enough: some people post-process
20344    # each Makefile.in and add a new line on top of each file to say so.
20345    # Grep'ing the whole file is not good either: AIX grep has a line
20346    # limit of 2048, but all sed's we know have understand at least 4000.
20347    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20348      dirpart=`$as_dirname -- "$mf" ||
20349$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20350	 X"$mf" : 'X\(//\)[^/]' \| \
20351	 X"$mf" : 'X\(//\)$' \| \
20352	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20353$as_echo X"$mf" |
20354    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20355	    s//\1/
20356	    q
20357	  }
20358	  /^X\(\/\/\)[^/].*/{
20359	    s//\1/
20360	    q
20361	  }
20362	  /^X\(\/\/\)$/{
20363	    s//\1/
20364	    q
20365	  }
20366	  /^X\(\/\).*/{
20367	    s//\1/
20368	    q
20369	  }
20370	  s/.*/./; q'`
20371    else
20372      continue
20373    fi
20374    # Extract the definition of DEPDIR, am__include, and am__quote
20375    # from the Makefile without running 'make'.
20376    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20377    test -z "$DEPDIR" && continue
20378    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20379    test -z "$am__include" && continue
20380    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20381    # Find all dependency output files, they are included files with
20382    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20383    # simplest approach to changing $(DEPDIR) to its actual value in the
20384    # expansion.
20385    for file in `sed -n "
20386      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20387	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20388      # Make sure the directory exists.
20389      test -f "$dirpart/$file" && continue
20390      fdir=`$as_dirname -- "$file" ||
20391$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20392	 X"$file" : 'X\(//\)[^/]' \| \
20393	 X"$file" : 'X\(//\)$' \| \
20394	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20395$as_echo X"$file" |
20396    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20397	    s//\1/
20398	    q
20399	  }
20400	  /^X\(\/\/\)[^/].*/{
20401	    s//\1/
20402	    q
20403	  }
20404	  /^X\(\/\/\)$/{
20405	    s//\1/
20406	    q
20407	  }
20408	  /^X\(\/\).*/{
20409	    s//\1/
20410	    q
20411	  }
20412	  s/.*/./; q'`
20413      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20414      # echo "creating $dirpart/$file"
20415      echo '# dummy' > "$dirpart/$file"
20416    done
20417  done
20418}
20419 ;;
20420    "libtool":C)
20421
20422    # See if we are running on zsh, and set the options that allow our
20423    # commands through without removal of \ escapes.
20424    if test -n "${ZSH_VERSION+set}"; then
20425      setopt NO_GLOB_SUBST
20426    fi
20427
20428    cfgfile=${ofile}T
20429    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20430    $RM "$cfgfile"
20431
20432    cat <<_LT_EOF >> "$cfgfile"
20433#! $SHELL
20434# Generated automatically by $as_me ($PACKAGE) $VERSION
20435# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20436
20437# Provide generalized library-building support services.
20438# Written by Gordon Matzigkeit, 1996
20439
20440# Copyright (C) 2014 Free Software Foundation, Inc.
20441# This is free software; see the source for copying conditions.  There is NO
20442# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20443
20444# GNU Libtool is free software; you can redistribute it and/or modify
20445# it under the terms of the GNU General Public License as published by
20446# the Free Software Foundation; either version 2 of of the License, or
20447# (at your option) any later version.
20448#
20449# As a special exception to the GNU General Public License, if you
20450# distribute this file as part of a program or library that is built
20451# using GNU Libtool, you may include this file under the  same
20452# distribution terms that you use for the rest of that program.
20453#
20454# GNU Libtool is distributed in the hope that it will be useful, but
20455# WITHOUT ANY WARRANTY; without even the implied warranty of
20456# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20457# GNU General Public License for more details.
20458#
20459# You should have received a copy of the GNU General Public License
20460# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20461
20462
20463# The names of the tagged configurations supported by this script.
20464available_tags='CXX '
20465
20466# Configured defaults for sys_lib_dlsearch_path munging.
20467: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20468
20469# ### BEGIN LIBTOOL CONFIG
20470
20471# Which release of libtool.m4 was used?
20472macro_version=$macro_version
20473macro_revision=$macro_revision
20474
20475# Whether or not to build static libraries.
20476build_old_libs=$enable_static
20477
20478# Whether or not to build shared libraries.
20479build_libtool_libs=$enable_shared
20480
20481# What type of objects to build.
20482pic_mode=$pic_mode
20483
20484# Whether or not to optimize for fast installation.
20485fast_install=$enable_fast_install
20486
20487# Shared archive member basename,for filename based shared library versioning on AIX.
20488shared_archive_member_spec=$shared_archive_member_spec
20489
20490# Shell to use when invoking shell scripts.
20491SHELL=$lt_SHELL
20492
20493# An echo program that protects backslashes.
20494ECHO=$lt_ECHO
20495
20496# The PATH separator for the build system.
20497PATH_SEPARATOR=$lt_PATH_SEPARATOR
20498
20499# The host system.
20500host_alias=$host_alias
20501host=$host
20502host_os=$host_os
20503
20504# The build system.
20505build_alias=$build_alias
20506build=$build
20507build_os=$build_os
20508
20509# A sed program that does not truncate output.
20510SED=$lt_SED
20511
20512# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20513Xsed="\$SED -e 1s/^X//"
20514
20515# A grep program that handles long lines.
20516GREP=$lt_GREP
20517
20518# An ERE matcher.
20519EGREP=$lt_EGREP
20520
20521# A literal string matcher.
20522FGREP=$lt_FGREP
20523
20524# A BSD- or MS-compatible name lister.
20525NM=$lt_NM
20526
20527# Whether we need soft or hard links.
20528LN_S=$lt_LN_S
20529
20530# What is the maximum length of a command?
20531max_cmd_len=$max_cmd_len
20532
20533# Object file suffix (normally "o").
20534objext=$ac_objext
20535
20536# Executable file suffix (normally "").
20537exeext=$exeext
20538
20539# whether the shell understands "unset".
20540lt_unset=$lt_unset
20541
20542# turn spaces into newlines.
20543SP2NL=$lt_lt_SP2NL
20544
20545# turn newlines into spaces.
20546NL2SP=$lt_lt_NL2SP
20547
20548# convert \$build file names to \$host format.
20549to_host_file_cmd=$lt_cv_to_host_file_cmd
20550
20551# convert \$build files to toolchain format.
20552to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20553
20554# An object symbol dumper.
20555OBJDUMP=$lt_OBJDUMP
20556
20557# Method to check whether dependent libraries are shared objects.
20558deplibs_check_method=$lt_deplibs_check_method
20559
20560# Command to use when deplibs_check_method = "file_magic".
20561file_magic_cmd=$lt_file_magic_cmd
20562
20563# How to find potential files when deplibs_check_method = "file_magic".
20564file_magic_glob=$lt_file_magic_glob
20565
20566# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20567want_nocaseglob=$lt_want_nocaseglob
20568
20569# DLL creation program.
20570DLLTOOL=$lt_DLLTOOL
20571
20572# Command to associate shared and link libraries.
20573sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20574
20575# The archiver.
20576AR=$lt_AR
20577
20578# Flags to create an archive.
20579AR_FLAGS=$lt_AR_FLAGS
20580
20581# How to feed a file listing to the archiver.
20582archiver_list_spec=$lt_archiver_list_spec
20583
20584# A symbol stripping program.
20585STRIP=$lt_STRIP
20586
20587# Commands used to install an old-style archive.
20588RANLIB=$lt_RANLIB
20589old_postinstall_cmds=$lt_old_postinstall_cmds
20590old_postuninstall_cmds=$lt_old_postuninstall_cmds
20591
20592# Whether to use a lock for old archive extraction.
20593lock_old_archive_extraction=$lock_old_archive_extraction
20594
20595# A C compiler.
20596LTCC=$lt_CC
20597
20598# LTCC compiler flags.
20599LTCFLAGS=$lt_CFLAGS
20600
20601# Take the output of nm and produce a listing of raw symbols and C names.
20602global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20603
20604# Transform the output of nm in a proper C declaration.
20605global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20606
20607# Transform the output of nm into a list of symbols to manually relocate.
20608global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20609
20610# Transform the output of nm in a C name address pair.
20611global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20612
20613# Transform the output of nm in a C name address pair when lib prefix is needed.
20614global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20615
20616# The name lister interface.
20617nm_interface=$lt_lt_cv_nm_interface
20618
20619# Specify filename containing input files for \$NM.
20620nm_file_list_spec=$lt_nm_file_list_spec
20621
20622# The root where to search for dependent libraries,and where our libraries should be installed.
20623lt_sysroot=$lt_sysroot
20624
20625# Command to truncate a binary pipe.
20626lt_truncate_bin=$lt_lt_cv_truncate_bin
20627
20628# The name of the directory that contains temporary libtool files.
20629objdir=$objdir
20630
20631# Used to examine libraries when file_magic_cmd begins with "file".
20632MAGIC_CMD=$MAGIC_CMD
20633
20634# Must we lock files when doing compilation?
20635need_locks=$lt_need_locks
20636
20637# Manifest tool.
20638MANIFEST_TOOL=$lt_MANIFEST_TOOL
20639
20640# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20641DSYMUTIL=$lt_DSYMUTIL
20642
20643# Tool to change global to local symbols on Mac OS X.
20644NMEDIT=$lt_NMEDIT
20645
20646# Tool to manipulate fat objects and archives on Mac OS X.
20647LIPO=$lt_LIPO
20648
20649# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20650OTOOL=$lt_OTOOL
20651
20652# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20653OTOOL64=$lt_OTOOL64
20654
20655# Old archive suffix (normally "a").
20656libext=$libext
20657
20658# Shared library suffix (normally ".so").
20659shrext_cmds=$lt_shrext_cmds
20660
20661# The commands to extract the exported symbol list from a shared archive.
20662extract_expsyms_cmds=$lt_extract_expsyms_cmds
20663
20664# Variables whose values should be saved in libtool wrapper scripts and
20665# restored at link time.
20666variables_saved_for_relink=$lt_variables_saved_for_relink
20667
20668# Do we need the "lib" prefix for modules?
20669need_lib_prefix=$need_lib_prefix
20670
20671# Do we need a version for libraries?
20672need_version=$need_version
20673
20674# Library versioning type.
20675version_type=$version_type
20676
20677# Shared library runtime path variable.
20678runpath_var=$runpath_var
20679
20680# Shared library path variable.
20681shlibpath_var=$shlibpath_var
20682
20683# Is shlibpath searched before the hard-coded library search path?
20684shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20685
20686# Format of library name prefix.
20687libname_spec=$lt_libname_spec
20688
20689# List of archive names.  First name is the real one, the rest are links.
20690# The last name is the one that the linker finds with -lNAME
20691library_names_spec=$lt_library_names_spec
20692
20693# The coded name of the library, if different from the real name.
20694soname_spec=$lt_soname_spec
20695
20696# Permission mode override for installation of shared libraries.
20697install_override_mode=$lt_install_override_mode
20698
20699# Command to use after installation of a shared archive.
20700postinstall_cmds=$lt_postinstall_cmds
20701
20702# Command to use after uninstallation of a shared archive.
20703postuninstall_cmds=$lt_postuninstall_cmds
20704
20705# Commands used to finish a libtool library installation in a directory.
20706finish_cmds=$lt_finish_cmds
20707
20708# As "finish_cmds", except a single script fragment to be evaled but
20709# not shown.
20710finish_eval=$lt_finish_eval
20711
20712# Whether we should hardcode library paths into libraries.
20713hardcode_into_libs=$hardcode_into_libs
20714
20715# Compile-time system search path for libraries.
20716sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20717
20718# Detected run-time system search path for libraries.
20719sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20720
20721# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20722configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20723
20724# Whether dlopen is supported.
20725dlopen_support=$enable_dlopen
20726
20727# Whether dlopen of programs is supported.
20728dlopen_self=$enable_dlopen_self
20729
20730# Whether dlopen of statically linked programs is supported.
20731dlopen_self_static=$enable_dlopen_self_static
20732
20733# Commands to strip libraries.
20734old_striplib=$lt_old_striplib
20735striplib=$lt_striplib
20736
20737
20738# The linker used to build libraries.
20739LD=$lt_LD
20740
20741# How to create reloadable object files.
20742reload_flag=$lt_reload_flag
20743reload_cmds=$lt_reload_cmds
20744
20745# Commands used to build an old-style archive.
20746old_archive_cmds=$lt_old_archive_cmds
20747
20748# A language specific compiler.
20749CC=$lt_compiler
20750
20751# Is the compiler the GNU compiler?
20752with_gcc=$GCC
20753
20754# Compiler flag to turn off builtin functions.
20755no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20756
20757# Additional compiler flags for building library objects.
20758pic_flag=$lt_lt_prog_compiler_pic
20759
20760# How to pass a linker flag through the compiler.
20761wl=$lt_lt_prog_compiler_wl
20762
20763# Compiler flag to prevent dynamic linking.
20764link_static_flag=$lt_lt_prog_compiler_static
20765
20766# Does compiler simultaneously support -c and -o options?
20767compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20768
20769# Whether or not to add -lc for building shared libraries.
20770build_libtool_need_lc=$archive_cmds_need_lc
20771
20772# Whether or not to disallow shared libs when runtime libs are static.
20773allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20774
20775# Compiler flag to allow reflexive dlopens.
20776export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20777
20778# Compiler flag to generate shared objects directly from archives.
20779whole_archive_flag_spec=$lt_whole_archive_flag_spec
20780
20781# Whether the compiler copes with passing no objects directly.
20782compiler_needs_object=$lt_compiler_needs_object
20783
20784# Create an old-style archive from a shared archive.
20785old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20786
20787# Create a temporary old-style archive to link instead of a shared archive.
20788old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20789
20790# Commands used to build a shared archive.
20791archive_cmds=$lt_archive_cmds
20792archive_expsym_cmds=$lt_archive_expsym_cmds
20793
20794# Commands used to build a loadable module if different from building
20795# a shared archive.
20796module_cmds=$lt_module_cmds
20797module_expsym_cmds=$lt_module_expsym_cmds
20798
20799# Whether we are building with GNU ld or not.
20800with_gnu_ld=$lt_with_gnu_ld
20801
20802# Flag that allows shared libraries with undefined symbols to be built.
20803allow_undefined_flag=$lt_allow_undefined_flag
20804
20805# Flag that enforces no undefined symbols.
20806no_undefined_flag=$lt_no_undefined_flag
20807
20808# Flag to hardcode \$libdir into a binary during linking.
20809# This must work even if \$libdir does not exist
20810hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20811
20812# Whether we need a single "-rpath" flag with a separated argument.
20813hardcode_libdir_separator=$lt_hardcode_libdir_separator
20814
20815# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20816# DIR into the resulting binary.
20817hardcode_direct=$hardcode_direct
20818
20819# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20820# DIR into the resulting binary and the resulting library dependency is
20821# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20822# library is relocated.
20823hardcode_direct_absolute=$hardcode_direct_absolute
20824
20825# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20826# into the resulting binary.
20827hardcode_minus_L=$hardcode_minus_L
20828
20829# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20830# into the resulting binary.
20831hardcode_shlibpath_var=$hardcode_shlibpath_var
20832
20833# Set to "yes" if building a shared library automatically hardcodes DIR
20834# into the library and all subsequent libraries and executables linked
20835# against it.
20836hardcode_automatic=$hardcode_automatic
20837
20838# Set to yes if linker adds runtime paths of dependent libraries
20839# to runtime path list.
20840inherit_rpath=$inherit_rpath
20841
20842# Whether libtool must link a program against all its dependency libraries.
20843link_all_deplibs=$link_all_deplibs
20844
20845# Set to "yes" if exported symbols are required.
20846always_export_symbols=$always_export_symbols
20847
20848# The commands to list exported symbols.
20849export_symbols_cmds=$lt_export_symbols_cmds
20850
20851# Symbols that should not be listed in the preloaded symbols.
20852exclude_expsyms=$lt_exclude_expsyms
20853
20854# Symbols that must always be exported.
20855include_expsyms=$lt_include_expsyms
20856
20857# Commands necessary for linking programs (against libraries) with templates.
20858prelink_cmds=$lt_prelink_cmds
20859
20860# Commands necessary for finishing linking programs.
20861postlink_cmds=$lt_postlink_cmds
20862
20863# Specify filename containing input files.
20864file_list_spec=$lt_file_list_spec
20865
20866# How to hardcode a shared library path into an executable.
20867hardcode_action=$hardcode_action
20868
20869# The directories searched by this compiler when creating a shared library.
20870compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20871
20872# Dependencies to place before and after the objects being linked to
20873# create a shared library.
20874predep_objects=$lt_predep_objects
20875postdep_objects=$lt_postdep_objects
20876predeps=$lt_predeps
20877postdeps=$lt_postdeps
20878
20879# The library search path used internally by the compiler when linking
20880# a shared library.
20881compiler_lib_search_path=$lt_compiler_lib_search_path
20882
20883# ### END LIBTOOL CONFIG
20884
20885_LT_EOF
20886
20887    cat <<'_LT_EOF' >> "$cfgfile"
20888
20889# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20890
20891# func_munge_path_list VARIABLE PATH
20892# -----------------------------------
20893# VARIABLE is name of variable containing _space_ separated list of
20894# directories to be munged by the contents of PATH, which is string
20895# having a format:
20896# "DIR[:DIR]:"
20897#       string "DIR[ DIR]" will be prepended to VARIABLE
20898# ":DIR[:DIR]"
20899#       string "DIR[ DIR]" will be appended to VARIABLE
20900# "DIRP[:DIRP]::[DIRA:]DIRA"
20901#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20902#       "DIRA[ DIRA]" will be appended to VARIABLE
20903# "DIR[:DIR]"
20904#       VARIABLE will be replaced by "DIR[ DIR]"
20905func_munge_path_list ()
20906{
20907    case x$2 in
20908    x)
20909        ;;
20910    *:)
20911        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20912        ;;
20913    x:*)
20914        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20915        ;;
20916    *::*)
20917        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20918        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20919        ;;
20920    *)
20921        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20922        ;;
20923    esac
20924}
20925
20926
20927# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20928func_cc_basename ()
20929{
20930    for cc_temp in $*""; do
20931      case $cc_temp in
20932        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20933        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20934        \-*) ;;
20935        *) break;;
20936      esac
20937    done
20938    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20939}
20940
20941
20942# ### END FUNCTIONS SHARED WITH CONFIGURE
20943
20944_LT_EOF
20945
20946  case $host_os in
20947  aix3*)
20948    cat <<\_LT_EOF >> "$cfgfile"
20949# AIX sometimes has problems with the GCC collect2 program.  For some
20950# reason, if we set the COLLECT_NAMES environment variable, the problems
20951# vanish in a puff of smoke.
20952if test set != "${COLLECT_NAMES+set}"; then
20953  COLLECT_NAMES=
20954  export COLLECT_NAMES
20955fi
20956_LT_EOF
20957    ;;
20958  esac
20959
20960
20961ltmain=$ac_aux_dir/ltmain.sh
20962
20963
20964  # We use sed instead of cat because bash on DJGPP gets confused if
20965  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20966  # text mode, it properly converts lines to CR/LF.  This bash problem
20967  # is reportedly fixed, but why not run on old versions too?
20968  sed '$q' "$ltmain" >> "$cfgfile" \
20969     || (rm -f "$cfgfile"; exit 1)
20970
20971   mv -f "$cfgfile" "$ofile" ||
20972    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20973  chmod +x "$ofile"
20974
20975
20976    cat <<_LT_EOF >> "$ofile"
20977
20978# ### BEGIN LIBTOOL TAG CONFIG: CXX
20979
20980# The linker used to build libraries.
20981LD=$lt_LD_CXX
20982
20983# How to create reloadable object files.
20984reload_flag=$lt_reload_flag_CXX
20985reload_cmds=$lt_reload_cmds_CXX
20986
20987# Commands used to build an old-style archive.
20988old_archive_cmds=$lt_old_archive_cmds_CXX
20989
20990# A language specific compiler.
20991CC=$lt_compiler_CXX
20992
20993# Is the compiler the GNU compiler?
20994with_gcc=$GCC_CXX
20995
20996# Compiler flag to turn off builtin functions.
20997no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20998
20999# Additional compiler flags for building library objects.
21000pic_flag=$lt_lt_prog_compiler_pic_CXX
21001
21002# How to pass a linker flag through the compiler.
21003wl=$lt_lt_prog_compiler_wl_CXX
21004
21005# Compiler flag to prevent dynamic linking.
21006link_static_flag=$lt_lt_prog_compiler_static_CXX
21007
21008# Does compiler simultaneously support -c and -o options?
21009compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21010
21011# Whether or not to add -lc for building shared libraries.
21012build_libtool_need_lc=$archive_cmds_need_lc_CXX
21013
21014# Whether or not to disallow shared libs when runtime libs are static.
21015allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21016
21017# Compiler flag to allow reflexive dlopens.
21018export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21019
21020# Compiler flag to generate shared objects directly from archives.
21021whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21022
21023# Whether the compiler copes with passing no objects directly.
21024compiler_needs_object=$lt_compiler_needs_object_CXX
21025
21026# Create an old-style archive from a shared archive.
21027old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21028
21029# Create a temporary old-style archive to link instead of a shared archive.
21030old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21031
21032# Commands used to build a shared archive.
21033archive_cmds=$lt_archive_cmds_CXX
21034archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21035
21036# Commands used to build a loadable module if different from building
21037# a shared archive.
21038module_cmds=$lt_module_cmds_CXX
21039module_expsym_cmds=$lt_module_expsym_cmds_CXX
21040
21041# Whether we are building with GNU ld or not.
21042with_gnu_ld=$lt_with_gnu_ld_CXX
21043
21044# Flag that allows shared libraries with undefined symbols to be built.
21045allow_undefined_flag=$lt_allow_undefined_flag_CXX
21046
21047# Flag that enforces no undefined symbols.
21048no_undefined_flag=$lt_no_undefined_flag_CXX
21049
21050# Flag to hardcode \$libdir into a binary during linking.
21051# This must work even if \$libdir does not exist
21052hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21053
21054# Whether we need a single "-rpath" flag with a separated argument.
21055hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21056
21057# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21058# DIR into the resulting binary.
21059hardcode_direct=$hardcode_direct_CXX
21060
21061# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21062# DIR into the resulting binary and the resulting library dependency is
21063# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21064# library is relocated.
21065hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21066
21067# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21068# into the resulting binary.
21069hardcode_minus_L=$hardcode_minus_L_CXX
21070
21071# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21072# into the resulting binary.
21073hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21074
21075# Set to "yes" if building a shared library automatically hardcodes DIR
21076# into the library and all subsequent libraries and executables linked
21077# against it.
21078hardcode_automatic=$hardcode_automatic_CXX
21079
21080# Set to yes if linker adds runtime paths of dependent libraries
21081# to runtime path list.
21082inherit_rpath=$inherit_rpath_CXX
21083
21084# Whether libtool must link a program against all its dependency libraries.
21085link_all_deplibs=$link_all_deplibs_CXX
21086
21087# Set to "yes" if exported symbols are required.
21088always_export_symbols=$always_export_symbols_CXX
21089
21090# The commands to list exported symbols.
21091export_symbols_cmds=$lt_export_symbols_cmds_CXX
21092
21093# Symbols that should not be listed in the preloaded symbols.
21094exclude_expsyms=$lt_exclude_expsyms_CXX
21095
21096# Symbols that must always be exported.
21097include_expsyms=$lt_include_expsyms_CXX
21098
21099# Commands necessary for linking programs (against libraries) with templates.
21100prelink_cmds=$lt_prelink_cmds_CXX
21101
21102# Commands necessary for finishing linking programs.
21103postlink_cmds=$lt_postlink_cmds_CXX
21104
21105# Specify filename containing input files.
21106file_list_spec=$lt_file_list_spec_CXX
21107
21108# How to hardcode a shared library path into an executable.
21109hardcode_action=$hardcode_action_CXX
21110
21111# The directories searched by this compiler when creating a shared library.
21112compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21113
21114# Dependencies to place before and after the objects being linked to
21115# create a shared library.
21116predep_objects=$lt_predep_objects_CXX
21117postdep_objects=$lt_postdep_objects_CXX
21118predeps=$lt_predeps_CXX
21119postdeps=$lt_postdeps_CXX
21120
21121# The library search path used internally by the compiler when linking
21122# a shared library.
21123compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21124
21125# ### END LIBTOOL TAG CONFIG: CXX
21126_LT_EOF
21127
21128 ;;
21129
21130  esac
21131done # for ac_tag
21132
21133
21134as_fn_exit 0
21135_ACEOF
21136ac_clean_files=$ac_clean_files_save
21137
21138test $ac_write_fail = 0 ||
21139  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21140
21141
21142# configure is writing to config.log, and then calls config.status.
21143# config.status does its own redirection, appending to config.log.
21144# Unfortunately, on DOS this fails, as config.log is still kept open
21145# by configure, so config.status won't be able to write to it; its
21146# output is simply discarded.  So we exec the FD to /dev/null,
21147# effectively closing config.log, so it can be properly (re)opened and
21148# appended to by config.status.  When coming back to configure, we
21149# need to make the FD available again.
21150if test "$no_create" != yes; then
21151  ac_cs_success=:
21152  ac_config_status_args=
21153  test "$silent" = yes &&
21154    ac_config_status_args="$ac_config_status_args --quiet"
21155  exec 5>/dev/null
21156  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21157  exec 5>>config.log
21158  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21159  # would make configure fail if this is the last instruction.
21160  $ac_cs_success || as_fn_exit 1
21161fi
21162if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21163  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21164$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21165fi
21166
21167
21168{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
21169$as_echo "$as_me: " >&6;}
21170{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured with:" >&5
21171$as_echo "$as_me: Configured with:" >&6;}
21172{ $as_echo "$as_me:${as_lineno-$LINENO}: - parser library     :$lib_list" >&5
21173$as_echo "$as_me: - parser library     :$lib_list" >&6;}
21174{ $as_echo "$as_me:${as_lineno-$LINENO}:   - root-menu prompt : $root_menu" >&5
21175$as_echo "$as_me:   - root-menu prompt : $root_menu" >&6;}
21176{ $as_echo "$as_me:${as_lineno-$LINENO}:   - config prefix    : $config_prefix" >&5
21177$as_echo "$as_me:   - config prefix    : $config_prefix" >&6;}
21178{ $as_echo "$as_me:${as_lineno-$LINENO}: - frontends          :$fe_list" >&5
21179$as_echo "$as_me: - frontends          :$fe_list" >&6;}
21180{ $as_echo "$as_me:${as_lineno-$LINENO}:   - localised        : $has_gettext" >&5
21181$as_echo "$as_me:   - localised        : $has_gettext" >&6;}
21182{ $as_echo "$as_me:${as_lineno-$LINENO}: - install utilities  : $enable_utils" >&5
21183$as_echo "$as_me: - install utilities  : $enable_utils" >&6;}
21184{ $as_echo "$as_me:${as_lineno-$LINENO}: - CFLAGS CXXFLAGS    : $wall_CFLAGS $werror_CFLAGS" >&5
21185$as_echo "$as_me: - CFLAGS CXXFLAGS    : $wall_CFLAGS $werror_CFLAGS" >&6;}
21186