1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for rtpproxy 2.0.beta.20150106.
4#
5# Report bugs to <sobomax@sippysoft.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: sobomax@sippysoft.com about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: 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='rtpproxy'
592PACKAGE_TARNAME='rtpproxy'
593PACKAGE_VERSION='2.0.beta.20150106'
594PACKAGE_STRING='rtpproxy 2.0.beta.20150106'
595PACKAGE_BUGREPORT='sobomax@sippysoft.com'
596PACKAGE_URL=''
597
598ac_unique_file="src/main.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
638LIBS_SNDFILE
639LIBS_G722
640LIBS_G729
641LIBS_GSM
642LIBS_DL
643AM_CFLAGS
644ENABLE_MODULE_IF_FALSE
645ENABLE_MODULE_IF_TRUE
646BUILD_MODULES_FALSE
647BUILD_MODULES_TRUE
648BUILD_EXTRACTAUDIO_FALSE
649BUILD_EXTRACTAUDIO_TRUE
650LIBOBJS
651ALLOCA
652OTOOL64
653OTOOL
654LIPO
655NMEDIT
656DSYMUTIL
657MANIFEST_TOOL
658RANLIB
659ac_ct_AR
660AR
661DLLTOOL
662OBJDUMP
663LN_S
664NM
665ac_ct_DUMPBIN
666DUMPBIN
667LD
668FGREP
669EGREP
670GREP
671SED
672LIBTOOL
673CPP
674am__fastdepCC_FALSE
675am__fastdepCC_TRUE
676CCDEPMODE
677am__nodep
678AMDEPBACKSLASH
679AMDEP_FALSE
680AMDEP_TRUE
681am__include
682DEPDIR
683OBJEXT
684EXEEXT
685ac_ct_CC
686CPPFLAGS
687LDFLAGS
688CFLAGS
689CC
690host_os
691host_vendor
692host_cpu
693host
694build_os
695build_vendor
696build_cpu
697build
698AM_BACKSLASH
699AM_DEFAULT_VERBOSITY
700AM_DEFAULT_V
701AM_V
702am__untar
703am__tar
704AMTAR
705am__leading_dot
706SET_MAKE
707AWK
708mkdir_p
709MKDIR_P
710INSTALL_STRIP_PROGRAM
711STRIP
712install_sh
713MAKEINFO
714AUTOHEADER
715AUTOMAKE
716AUTOCONF
717ACLOCAL
718VERSION
719PACKAGE
720CYGPATH_W
721am__isrc
722INSTALL_DATA
723INSTALL_SCRIPT
724INSTALL_PROGRAM
725MAINT
726MAINTAINER_MODE_FALSE
727MAINTAINER_MODE_TRUE
728target_alias
729host_alias
730build_alias
731LIBS
732ECHO_T
733ECHO_N
734ECHO_C
735DEFS
736mandir
737localedir
738libdir
739psdir
740pdfdir
741dvidir
742htmldir
743infodir
744docdir
745oldincludedir
746includedir
747localstatedir
748sharedstatedir
749sysconfdir
750datadir
751datarootdir
752libexecdir
753sbindir
754bindir
755program_transform_name
756prefix
757exec_prefix
758PACKAGE_URL
759PACKAGE_BUGREPORT
760PACKAGE_STRING
761PACKAGE_VERSION
762PACKAGE_TARNAME
763PACKAGE_NAME
764PATH_SEPARATOR
765SHELL
766am__quote'
767ac_subst_files=''
768ac_user_opts='
769enable_option_checking
770enable_maintainer_mode
771enable_silent_rules
772enable_dependency_tracking
773enable_shared
774enable_static
775with_pic
776enable_fast_install
777with_gnu_ld
778with_sysroot
779enable_libtool_lock
780enable_systemd
781'
782      ac_precious_vars='build_alias
783host_alias
784target_alias
785CC
786CFLAGS
787LDFLAGS
788LIBS
789CPPFLAGS
790CPP'
791
792
793# Initialize some variables set by options.
794ac_init_help=
795ac_init_version=false
796ac_unrecognized_opts=
797ac_unrecognized_sep=
798# The variables have the same names as the options, with
799# dashes changed to underlines.
800cache_file=/dev/null
801exec_prefix=NONE
802no_create=
803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
811verbose=
812x_includes=NONE
813x_libraries=NONE
814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
820# (The list follows the same order as the GNU Coding Standards.)
821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
829includedir='${prefix}/include'
830oldincludedir='/usr/include'
831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
840
841ac_prev=
842ac_dashdash=
843for ac_option
844do
845  # If the previous option needs an argument, assign it.
846  if test -n "$ac_prev"; then
847    eval $ac_prev=\$ac_option
848    ac_prev=
849    continue
850  fi
851
852  case $ac_option in
853  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854  *=)   ac_optarg= ;;
855  *)    ac_optarg=yes ;;
856  esac
857
858  # Accept the important Cygnus configure options, so we can diagnose typos.
859
860  case $ac_dashdash$ac_option in
861  --)
862    ac_dashdash=yes ;;
863
864  -bindir | --bindir | --bindi | --bind | --bin | --bi)
865    ac_prev=bindir ;;
866  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867    bindir=$ac_optarg ;;
868
869  -build | --build | --buil | --bui | --bu)
870    ac_prev=build_alias ;;
871  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872    build_alias=$ac_optarg ;;
873
874  -cache-file | --cache-file | --cache-fil | --cache-fi \
875  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876    ac_prev=cache_file ;;
877  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879    cache_file=$ac_optarg ;;
880
881  --config-cache | -C)
882    cache_file=config.cache ;;
883
884  -datadir | --datadir | --datadi | --datad)
885    ac_prev=datadir ;;
886  -datadir=* | --datadir=* | --datadi=* | --datad=*)
887    datadir=$ac_optarg ;;
888
889  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890  | --dataroo | --dataro | --datar)
891    ac_prev=datarootdir ;;
892  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894    datarootdir=$ac_optarg ;;
895
896  -disable-* | --disable-*)
897    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898    # Reject names that are not valid shell variable names.
899    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900      as_fn_error $? "invalid feature name: $ac_useropt"
901    ac_useropt_orig=$ac_useropt
902    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903    case $ac_user_opts in
904      *"
905"enable_$ac_useropt"
906"*) ;;
907      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908	 ac_unrecognized_sep=', ';;
909    esac
910    eval enable_$ac_useropt=no ;;
911
912  -docdir | --docdir | --docdi | --doc | --do)
913    ac_prev=docdir ;;
914  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915    docdir=$ac_optarg ;;
916
917  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918    ac_prev=dvidir ;;
919  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920    dvidir=$ac_optarg ;;
921
922  -enable-* | --enable-*)
923    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924    # Reject names that are not valid shell variable names.
925    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926      as_fn_error $? "invalid feature name: $ac_useropt"
927    ac_useropt_orig=$ac_useropt
928    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929    case $ac_user_opts in
930      *"
931"enable_$ac_useropt"
932"*) ;;
933      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934	 ac_unrecognized_sep=', ';;
935    esac
936    eval enable_$ac_useropt=\$ac_optarg ;;
937
938  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940  | --exec | --exe | --ex)
941    ac_prev=exec_prefix ;;
942  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944  | --exec=* | --exe=* | --ex=*)
945    exec_prefix=$ac_optarg ;;
946
947  -gas | --gas | --ga | --g)
948    # Obsolete; use --with-gas.
949    with_gas=yes ;;
950
951  -help | --help | --hel | --he | -h)
952    ac_init_help=long ;;
953  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954    ac_init_help=recursive ;;
955  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956    ac_init_help=short ;;
957
958  -host | --host | --hos | --ho)
959    ac_prev=host_alias ;;
960  -host=* | --host=* | --hos=* | --ho=*)
961    host_alias=$ac_optarg ;;
962
963  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964    ac_prev=htmldir ;;
965  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966  | --ht=*)
967    htmldir=$ac_optarg ;;
968
969  -includedir | --includedir | --includedi | --included | --include \
970  | --includ | --inclu | --incl | --inc)
971    ac_prev=includedir ;;
972  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973  | --includ=* | --inclu=* | --incl=* | --inc=*)
974    includedir=$ac_optarg ;;
975
976  -infodir | --infodir | --infodi | --infod | --info | --inf)
977    ac_prev=infodir ;;
978  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979    infodir=$ac_optarg ;;
980
981  -libdir | --libdir | --libdi | --libd)
982    ac_prev=libdir ;;
983  -libdir=* | --libdir=* | --libdi=* | --libd=*)
984    libdir=$ac_optarg ;;
985
986  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987  | --libexe | --libex | --libe)
988    ac_prev=libexecdir ;;
989  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990  | --libexe=* | --libex=* | --libe=*)
991    libexecdir=$ac_optarg ;;
992
993  -localedir | --localedir | --localedi | --localed | --locale)
994    ac_prev=localedir ;;
995  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996    localedir=$ac_optarg ;;
997
998  -localstatedir | --localstatedir | --localstatedi | --localstated \
999  | --localstate | --localstat | --localsta | --localst | --locals)
1000    ac_prev=localstatedir ;;
1001  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003    localstatedir=$ac_optarg ;;
1004
1005  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006    ac_prev=mandir ;;
1007  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008    mandir=$ac_optarg ;;
1009
1010  -nfp | --nfp | --nf)
1011    # Obsolete; use --without-fp.
1012    with_fp=no ;;
1013
1014  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015  | --no-cr | --no-c | -n)
1016    no_create=yes ;;
1017
1018  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020    no_recursion=yes ;;
1021
1022  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024  | --oldin | --oldi | --old | --ol | --o)
1025    ac_prev=oldincludedir ;;
1026  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029    oldincludedir=$ac_optarg ;;
1030
1031  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032    ac_prev=prefix ;;
1033  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034    prefix=$ac_optarg ;;
1035
1036  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037  | --program-pre | --program-pr | --program-p)
1038    ac_prev=program_prefix ;;
1039  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041    program_prefix=$ac_optarg ;;
1042
1043  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044  | --program-suf | --program-su | --program-s)
1045    ac_prev=program_suffix ;;
1046  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048    program_suffix=$ac_optarg ;;
1049
1050  -program-transform-name | --program-transform-name \
1051  | --program-transform-nam | --program-transform-na \
1052  | --program-transform-n | --program-transform- \
1053  | --program-transform | --program-transfor \
1054  | --program-transfo | --program-transf \
1055  | --program-trans | --program-tran \
1056  | --progr-tra | --program-tr | --program-t)
1057    ac_prev=program_transform_name ;;
1058  -program-transform-name=* | --program-transform-name=* \
1059  | --program-transform-nam=* | --program-transform-na=* \
1060  | --program-transform-n=* | --program-transform-=* \
1061  | --program-transform=* | --program-transfor=* \
1062  | --program-transfo=* | --program-transf=* \
1063  | --program-trans=* | --program-tran=* \
1064  | --progr-tra=* | --program-tr=* | --program-t=*)
1065    program_transform_name=$ac_optarg ;;
1066
1067  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068    ac_prev=pdfdir ;;
1069  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070    pdfdir=$ac_optarg ;;
1071
1072  -psdir | --psdir | --psdi | --psd | --ps)
1073    ac_prev=psdir ;;
1074  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075    psdir=$ac_optarg ;;
1076
1077  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078  | -silent | --silent | --silen | --sile | --sil)
1079    silent=yes ;;
1080
1081  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082    ac_prev=sbindir ;;
1083  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084  | --sbi=* | --sb=*)
1085    sbindir=$ac_optarg ;;
1086
1087  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089  | --sharedst | --shareds | --shared | --share | --shar \
1090  | --sha | --sh)
1091    ac_prev=sharedstatedir ;;
1092  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095  | --sha=* | --sh=*)
1096    sharedstatedir=$ac_optarg ;;
1097
1098  -site | --site | --sit)
1099    ac_prev=site ;;
1100  -site=* | --site=* | --sit=*)
1101    site=$ac_optarg ;;
1102
1103  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104    ac_prev=srcdir ;;
1105  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106    srcdir=$ac_optarg ;;
1107
1108  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109  | --syscon | --sysco | --sysc | --sys | --sy)
1110    ac_prev=sysconfdir ;;
1111  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113    sysconfdir=$ac_optarg ;;
1114
1115  -target | --target | --targe | --targ | --tar | --ta | --t)
1116    ac_prev=target_alias ;;
1117  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118    target_alias=$ac_optarg ;;
1119
1120  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121    verbose=yes ;;
1122
1123  -version | --version | --versio | --versi | --vers | -V)
1124    ac_init_version=: ;;
1125
1126  -with-* | --with-*)
1127    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128    # Reject names that are not valid shell variable names.
1129    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130      as_fn_error $? "invalid package name: $ac_useropt"
1131    ac_useropt_orig=$ac_useropt
1132    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133    case $ac_user_opts in
1134      *"
1135"with_$ac_useropt"
1136"*) ;;
1137      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138	 ac_unrecognized_sep=', ';;
1139    esac
1140    eval with_$ac_useropt=\$ac_optarg ;;
1141
1142  -without-* | --without-*)
1143    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144    # Reject names that are not valid shell variable names.
1145    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146      as_fn_error $? "invalid package name: $ac_useropt"
1147    ac_useropt_orig=$ac_useropt
1148    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149    case $ac_user_opts in
1150      *"
1151"with_$ac_useropt"
1152"*) ;;
1153      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154	 ac_unrecognized_sep=', ';;
1155    esac
1156    eval with_$ac_useropt=no ;;
1157
1158  --x)
1159    # Obsolete; use --with-x.
1160    with_x=yes ;;
1161
1162  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163  | --x-incl | --x-inc | --x-in | --x-i)
1164    ac_prev=x_includes ;;
1165  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167    x_includes=$ac_optarg ;;
1168
1169  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171    ac_prev=x_libraries ;;
1172  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174    x_libraries=$ac_optarg ;;
1175
1176  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177Try \`$0 --help' for more information"
1178    ;;
1179
1180  *=*)
1181    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182    # Reject names that are not valid shell variable names.
1183    case $ac_envvar in #(
1184      '' | [0-9]* | *[!_$as_cr_alnum]* )
1185      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186    esac
1187    eval $ac_envvar=\$ac_optarg
1188    export $ac_envvar ;;
1189
1190  *)
1191    # FIXME: should be removed in autoconf 3.0.
1192    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196    ;;
1197
1198  esac
1199done
1200
1201if test -n "$ac_prev"; then
1202  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203  as_fn_error $? "missing argument to $ac_option"
1204fi
1205
1206if test -n "$ac_unrecognized_opts"; then
1207  case $enable_option_checking in
1208    no) ;;
1209    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211  esac
1212fi
1213
1214# Check all directory arguments for consistency.
1215for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216		datadir sysconfdir sharedstatedir localstatedir includedir \
1217		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218		libdir localedir mandir
1219do
1220  eval ac_val=\$$ac_var
1221  # Remove trailing slashes.
1222  case $ac_val in
1223    */ )
1224      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225      eval $ac_var=\$ac_val;;
1226  esac
1227  # Be sure to have absolute directory names.
1228  case $ac_val in
1229    [\\/$]* | ?:[\\/]* )  continue;;
1230    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231  esac
1232  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1233done
1234
1235# There might be people who depend on the old broken behavior: `$host'
1236# used to hold the argument of --host etc.
1237# FIXME: To remove some day.
1238build=$build_alias
1239host=$host_alias
1240target=$target_alias
1241
1242# FIXME: To remove some day.
1243if test "x$host_alias" != x; then
1244  if test "x$build_alias" = x; then
1245    cross_compiling=maybe
1246  elif test "x$build_alias" != "x$host_alias"; then
1247    cross_compiling=yes
1248  fi
1249fi
1250
1251ac_tool_prefix=
1252test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254test "$silent" = yes && exec 6>/dev/null
1255
1256
1257ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258ac_ls_di=`ls -di .` &&
1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260  as_fn_error $? "working directory cannot be determined"
1261test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262  as_fn_error $? "pwd does not report name of working directory"
1263
1264
1265# Find the source files, if location was not specified.
1266if test -z "$srcdir"; then
1267  ac_srcdir_defaulted=yes
1268  # Try the directory containing this script, then the parent directory.
1269  ac_confdir=`$as_dirname -- "$as_myself" ||
1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271	 X"$as_myself" : 'X\(//\)[^/]' \| \
1272	 X"$as_myself" : 'X\(//\)$' \| \
1273	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274$as_echo X"$as_myself" |
1275    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276	    s//\1/
1277	    q
1278	  }
1279	  /^X\(\/\/\)[^/].*/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\/\)$/{
1284	    s//\1/
1285	    q
1286	  }
1287	  /^X\(\/\).*/{
1288	    s//\1/
1289	    q
1290	  }
1291	  s/.*/./; q'`
1292  srcdir=$ac_confdir
1293  if test ! -r "$srcdir/$ac_unique_file"; then
1294    srcdir=..
1295  fi
1296else
1297  ac_srcdir_defaulted=no
1298fi
1299if test ! -r "$srcdir/$ac_unique_file"; then
1300  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302fi
1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
1305	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306	pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309  srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319  eval ac_env_${ac_var}_value=\$${ac_var}
1320  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
1323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328  # Omit some internal or obsolete options to make the list less imposing.
1329  # This message is too long to be a string in the A/UX 3.1 sh.
1330  cat <<_ACEOF
1331\`configure' configures rtpproxy 2.0.beta.20150106 to adapt to many kinds of systems.
1332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE.  See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341  -h, --help              display this help and exit
1342      --help=short        display options specific to this package
1343      --help=recursive    display the short help of all the included packages
1344  -V, --version           display version information and exit
1345  -q, --quiet, --silent   do not print \`checking ...' messages
1346      --cache-file=FILE   cache test results in FILE [disabled]
1347  -C, --config-cache      alias for \`--cache-file=config.cache'
1348  -n, --no-create         do not create output files
1349      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1350
1351Installation directories:
1352  --prefix=PREFIX         install architecture-independent files in PREFIX
1353                          [$ac_default_prefix]
1354  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1355                          [PREFIX]
1356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
1365  --bindir=DIR            user executables [EPREFIX/bin]
1366  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1367  --libexecdir=DIR        program executables [EPREFIX/libexec]
1368  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1369  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1370  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1371  --libdir=DIR            object code libraries [EPREFIX/lib]
1372  --includedir=DIR        C header files [PREFIX/include]
1373  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1374  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1375  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1376  --infodir=DIR           info documentation [DATAROOTDIR/info]
1377  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1378  --mandir=DIR            man documentation [DATAROOTDIR/man]
1379  --docdir=DIR            documentation root [DATAROOTDIR/doc/rtpproxy]
1380  --htmldir=DIR           html documentation [DOCDIR]
1381  --dvidir=DIR            dvi documentation [DOCDIR]
1382  --pdfdir=DIR            pdf documentation [DOCDIR]
1383  --psdir=DIR             ps documentation [DOCDIR]
1384_ACEOF
1385
1386  cat <<\_ACEOF
1387
1388Program names:
1389  --program-prefix=PREFIX            prepend PREFIX to installed program names
1390  --program-suffix=SUFFIX            append SUFFIX to installed program names
1391  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1392
1393System types:
1394  --build=BUILD     configure for building on BUILD [guessed]
1395  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1396_ACEOF
1397fi
1398
1399if test -n "$ac_init_help"; then
1400  case $ac_init_help in
1401     short | recursive ) echo "Configuration of rtpproxy 2.0.beta.20150106:";;
1402   esac
1403  cat <<\_ACEOF
1404
1405Optional Features:
1406  --disable-option-checking  ignore unrecognized --enable/--with options
1407  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1408  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1409  --enable-maintainer-mode
1410                          enable make rules and dependencies not useful (and
1411                          sometimes confusing) to the casual installer
1412  --enable-silent-rules   less verbose build output (undo: "make V=1")
1413  --disable-silent-rules  verbose build output (undo: "make V=0")
1414  --enable-dependency-tracking
1415                          do not reject slow dependency extractors
1416  --disable-dependency-tracking
1417                          speeds up one-time build
1418  --enable-shared[=PKGS]  build shared libraries [default=yes]
1419  --enable-static[=PKGS]  build static libraries [default=yes]
1420  --enable-fast-install[=PKGS]
1421                          optimize for fast installation [default=yes]
1422  --disable-libtool-lock  avoid locking (might break parallel builds)
1423  --enable-systemd        enable systemd support in rtpproxy
1424
1425Optional Packages:
1426  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1427  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1428  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1429                          both]
1430  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1431  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1432                          compiler's sysroot if not specified).
1433
1434Some influential environment variables:
1435  CC          C compiler command
1436  CFLAGS      C compiler flags
1437  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1438              nonstandard directory <lib dir>
1439  LIBS        libraries to pass to the linker, e.g. -l<library>
1440  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441              you have headers in a nonstandard directory <include dir>
1442  CPP         C preprocessor
1443
1444Use these variables to override the choices made by `configure' or to help
1445it to find libraries and programs with nonstandard names/locations.
1446
1447Report bugs to <sobomax@sippysoft.com>.
1448_ACEOF
1449ac_status=$?
1450fi
1451
1452if test "$ac_init_help" = "recursive"; then
1453  # If there are subdirs, report their specific --help.
1454  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1455    test -d "$ac_dir" ||
1456      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1457      continue
1458    ac_builddir=.
1459
1460case "$ac_dir" in
1461.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462*)
1463  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464  # A ".." for each directory in $ac_dir_suffix.
1465  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466  case $ac_top_builddir_sub in
1467  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469  esac ;;
1470esac
1471ac_abs_top_builddir=$ac_pwd
1472ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473# for backward compatibility:
1474ac_top_builddir=$ac_top_build_prefix
1475
1476case $srcdir in
1477  .)  # We are building in place.
1478    ac_srcdir=.
1479    ac_top_srcdir=$ac_top_builddir_sub
1480    ac_abs_top_srcdir=$ac_pwd ;;
1481  [\\/]* | ?:[\\/]* )  # Absolute name.
1482    ac_srcdir=$srcdir$ac_dir_suffix;
1483    ac_top_srcdir=$srcdir
1484    ac_abs_top_srcdir=$srcdir ;;
1485  *) # Relative name.
1486    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487    ac_top_srcdir=$ac_top_build_prefix$srcdir
1488    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489esac
1490ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491
1492    cd "$ac_dir" || { ac_status=$?; continue; }
1493    # Check for guested configure.
1494    if test -f "$ac_srcdir/configure.gnu"; then
1495      echo &&
1496      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497    elif test -f "$ac_srcdir/configure"; then
1498      echo &&
1499      $SHELL "$ac_srcdir/configure" --help=recursive
1500    else
1501      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502    fi || ac_status=$?
1503    cd "$ac_pwd" || { ac_status=$?; break; }
1504  done
1505fi
1506
1507test -n "$ac_init_help" && exit $ac_status
1508if $ac_init_version; then
1509  cat <<\_ACEOF
1510rtpproxy configure 2.0.beta.20150106
1511generated by GNU Autoconf 2.69
1512
1513Copyright (C) 2012 Free Software Foundation, Inc.
1514This configure script is free software; the Free Software Foundation
1515gives unlimited permission to copy, distribute and modify it.
1516_ACEOF
1517  exit
1518fi
1519
1520## ------------------------ ##
1521## Autoconf initialization. ##
1522## ------------------------ ##
1523
1524# ac_fn_c_try_compile LINENO
1525# --------------------------
1526# Try to compile conftest.$ac_ext, and return whether this succeeded.
1527ac_fn_c_try_compile ()
1528{
1529  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530  rm -f conftest.$ac_objext
1531  if { { ac_try="$ac_compile"
1532case "(($ac_try" in
1533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534  *) ac_try_echo=$ac_try;;
1535esac
1536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537$as_echo "$ac_try_echo"; } >&5
1538  (eval "$ac_compile") 2>conftest.err
1539  ac_status=$?
1540  if test -s conftest.err; then
1541    grep -v '^ *+' conftest.err >conftest.er1
1542    cat conftest.er1 >&5
1543    mv -f conftest.er1 conftest.err
1544  fi
1545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546  test $ac_status = 0; } && {
1547	 test -z "$ac_c_werror_flag" ||
1548	 test ! -s conftest.err
1549       } && test -s conftest.$ac_objext; then :
1550  ac_retval=0
1551else
1552  $as_echo "$as_me: failed program was:" >&5
1553sed 's/^/| /' conftest.$ac_ext >&5
1554
1555	ac_retval=1
1556fi
1557  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558  as_fn_set_status $ac_retval
1559
1560} # ac_fn_c_try_compile
1561
1562# ac_fn_c_try_cpp LINENO
1563# ----------------------
1564# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1565ac_fn_c_try_cpp ()
1566{
1567  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568  if { { ac_try="$ac_cpp conftest.$ac_ext"
1569case "(($ac_try" in
1570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571  *) ac_try_echo=$ac_try;;
1572esac
1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574$as_echo "$ac_try_echo"; } >&5
1575  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1576  ac_status=$?
1577  if test -s conftest.err; then
1578    grep -v '^ *+' conftest.err >conftest.er1
1579    cat conftest.er1 >&5
1580    mv -f conftest.er1 conftest.err
1581  fi
1582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583  test $ac_status = 0; } > conftest.i && {
1584	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1585	 test ! -s conftest.err
1586       }; then :
1587  ac_retval=0
1588else
1589  $as_echo "$as_me: failed program was:" >&5
1590sed 's/^/| /' conftest.$ac_ext >&5
1591
1592    ac_retval=1
1593fi
1594  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595  as_fn_set_status $ac_retval
1596
1597} # ac_fn_c_try_cpp
1598
1599# ac_fn_c_try_link LINENO
1600# -----------------------
1601# Try to link conftest.$ac_ext, and return whether this succeeded.
1602ac_fn_c_try_link ()
1603{
1604  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605  rm -f conftest.$ac_objext conftest$ac_exeext
1606  if { { ac_try="$ac_link"
1607case "(($ac_try" in
1608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609  *) ac_try_echo=$ac_try;;
1610esac
1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612$as_echo "$ac_try_echo"; } >&5
1613  (eval "$ac_link") 2>conftest.err
1614  ac_status=$?
1615  if test -s conftest.err; then
1616    grep -v '^ *+' conftest.err >conftest.er1
1617    cat conftest.er1 >&5
1618    mv -f conftest.er1 conftest.err
1619  fi
1620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621  test $ac_status = 0; } && {
1622	 test -z "$ac_c_werror_flag" ||
1623	 test ! -s conftest.err
1624       } && test -s conftest$ac_exeext && {
1625	 test "$cross_compiling" = yes ||
1626	 test -x conftest$ac_exeext
1627       }; then :
1628  ac_retval=0
1629else
1630  $as_echo "$as_me: failed program was:" >&5
1631sed 's/^/| /' conftest.$ac_ext >&5
1632
1633	ac_retval=1
1634fi
1635  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1636  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1637  # interfere with the next link command; also delete a directory that is
1638  # left behind by Apple's compiler.  We do this before executing the actions.
1639  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1640  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641  as_fn_set_status $ac_retval
1642
1643} # ac_fn_c_try_link
1644
1645# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1646# -------------------------------------------------------
1647# Tests whether HEADER exists and can be compiled using the include files in
1648# INCLUDES, setting the cache variable VAR accordingly.
1649ac_fn_c_check_header_compile ()
1650{
1651  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1653$as_echo_n "checking for $2... " >&6; }
1654if eval \${$3+:} false; then :
1655  $as_echo_n "(cached) " >&6
1656else
1657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658/* end confdefs.h.  */
1659$4
1660#include <$2>
1661_ACEOF
1662if ac_fn_c_try_compile "$LINENO"; then :
1663  eval "$3=yes"
1664else
1665  eval "$3=no"
1666fi
1667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668fi
1669eval ac_res=\$$3
1670	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671$as_echo "$ac_res" >&6; }
1672  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673
1674} # ac_fn_c_check_header_compile
1675
1676# ac_fn_c_try_run LINENO
1677# ----------------------
1678# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679# that executables *can* be run.
1680ac_fn_c_try_run ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  if { { ac_try="$ac_link"
1684case "(($ac_try" in
1685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686  *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690  (eval "$ac_link") 2>&5
1691  ac_status=$?
1692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694  { { case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700  (eval "$ac_try") 2>&5
1701  ac_status=$?
1702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703  test $ac_status = 0; }; }; then :
1704  ac_retval=0
1705else
1706  $as_echo "$as_me: program exited with status $ac_status" >&5
1707       $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710       ac_retval=$ac_status
1711fi
1712  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714  as_fn_set_status $ac_retval
1715
1716} # ac_fn_c_try_run
1717
1718# ac_fn_c_check_func LINENO FUNC VAR
1719# ----------------------------------
1720# Tests whether FUNC exists, setting the cache variable VAR accordingly
1721ac_fn_c_check_func ()
1722{
1723  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725$as_echo_n "checking for $2... " >&6; }
1726if eval \${$3+:} false; then :
1727  $as_echo_n "(cached) " >&6
1728else
1729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730/* end confdefs.h.  */
1731/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1732   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1733#define $2 innocuous_$2
1734
1735/* System header to define __stub macros and hopefully few prototypes,
1736    which can conflict with char $2 (); below.
1737    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1738    <limits.h> exists even on freestanding compilers.  */
1739
1740#ifdef __STDC__
1741# include <limits.h>
1742#else
1743# include <assert.h>
1744#endif
1745
1746#undef $2
1747
1748/* Override any GCC internal prototype to avoid an error.
1749   Use char because int might match the return type of a GCC
1750   builtin and then its argument prototype would still apply.  */
1751#ifdef __cplusplus
1752extern "C"
1753#endif
1754char $2 ();
1755/* The GNU C library defines this for functions which it implements
1756    to always fail with ENOSYS.  Some functions are actually named
1757    something starting with __ and the normal name is an alias.  */
1758#if defined __stub_$2 || defined __stub___$2
1759choke me
1760#endif
1761
1762int
1763main ()
1764{
1765return $2 ();
1766  ;
1767  return 0;
1768}
1769_ACEOF
1770if ac_fn_c_try_link "$LINENO"; then :
1771  eval "$3=yes"
1772else
1773  eval "$3=no"
1774fi
1775rm -f core conftest.err conftest.$ac_objext \
1776    conftest$ac_exeext conftest.$ac_ext
1777fi
1778eval ac_res=\$$3
1779	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780$as_echo "$ac_res" >&6; }
1781  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783} # ac_fn_c_check_func
1784
1785# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1786# -------------------------------------------------------
1787# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1788# the include files in INCLUDES and setting the cache variable VAR
1789# accordingly.
1790ac_fn_c_check_header_mongrel ()
1791{
1792  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793  if eval \${$3+:} false; then :
1794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795$as_echo_n "checking for $2... " >&6; }
1796if eval \${$3+:} false; then :
1797  $as_echo_n "(cached) " >&6
1798fi
1799eval ac_res=\$$3
1800	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801$as_echo "$ac_res" >&6; }
1802else
1803  # Is the header compilable?
1804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1805$as_echo_n "checking $2 usability... " >&6; }
1806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807/* end confdefs.h.  */
1808$4
1809#include <$2>
1810_ACEOF
1811if ac_fn_c_try_compile "$LINENO"; then :
1812  ac_header_compiler=yes
1813else
1814  ac_header_compiler=no
1815fi
1816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1818$as_echo "$ac_header_compiler" >&6; }
1819
1820# Is the header present?
1821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1822$as_echo_n "checking $2 presence... " >&6; }
1823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824/* end confdefs.h.  */
1825#include <$2>
1826_ACEOF
1827if ac_fn_c_try_cpp "$LINENO"; then :
1828  ac_header_preproc=yes
1829else
1830  ac_header_preproc=no
1831fi
1832rm -f conftest.err conftest.i conftest.$ac_ext
1833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1834$as_echo "$ac_header_preproc" >&6; }
1835
1836# So?  What about this header?
1837case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1838  yes:no: )
1839    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1840$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1841    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843    ;;
1844  no:yes:* )
1845    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1846$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1847    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1848$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1849    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1850$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1851    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1852$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1853    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855( $as_echo "## ------------------------------------ ##
1856## Report this to sobomax@sippysoft.com ##
1857## ------------------------------------ ##"
1858     ) | sed "s/^/$as_me: WARNING:     /" >&2
1859    ;;
1860esac
1861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862$as_echo_n "checking for $2... " >&6; }
1863if eval \${$3+:} false; then :
1864  $as_echo_n "(cached) " >&6
1865else
1866  eval "$3=\$ac_header_compiler"
1867fi
1868eval ac_res=\$$3
1869	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870$as_echo "$ac_res" >&6; }
1871fi
1872  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874} # ac_fn_c_check_header_mongrel
1875
1876# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1877# ----------------------------------------------------
1878# Tries to find if the field MEMBER exists in type AGGR, after including
1879# INCLUDES, setting cache variable VAR accordingly.
1880ac_fn_c_check_member ()
1881{
1882  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1884$as_echo_n "checking for $2.$3... " >&6; }
1885if eval \${$4+:} false; then :
1886  $as_echo_n "(cached) " >&6
1887else
1888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889/* end confdefs.h.  */
1890$5
1891int
1892main ()
1893{
1894static $2 ac_aggr;
1895if (ac_aggr.$3)
1896return 0;
1897  ;
1898  return 0;
1899}
1900_ACEOF
1901if ac_fn_c_try_compile "$LINENO"; then :
1902  eval "$4=yes"
1903else
1904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905/* end confdefs.h.  */
1906$5
1907int
1908main ()
1909{
1910static $2 ac_aggr;
1911if (sizeof ac_aggr.$3)
1912return 0;
1913  ;
1914  return 0;
1915}
1916_ACEOF
1917if ac_fn_c_try_compile "$LINENO"; then :
1918  eval "$4=yes"
1919else
1920  eval "$4=no"
1921fi
1922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923fi
1924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925fi
1926eval ac_res=\$$4
1927	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928$as_echo "$ac_res" >&6; }
1929  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931} # ac_fn_c_check_member
1932
1933# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1934# -------------------------------------------
1935# Tests whether TYPE exists after having included INCLUDES, setting cache
1936# variable VAR accordingly.
1937ac_fn_c_check_type ()
1938{
1939  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941$as_echo_n "checking for $2... " >&6; }
1942if eval \${$3+:} false; then :
1943  $as_echo_n "(cached) " >&6
1944else
1945  eval "$3=no"
1946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h.  */
1948$4
1949int
1950main ()
1951{
1952if (sizeof ($2))
1953	 return 0;
1954  ;
1955  return 0;
1956}
1957_ACEOF
1958if ac_fn_c_try_compile "$LINENO"; then :
1959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h.  */
1961$4
1962int
1963main ()
1964{
1965if (sizeof (($2)))
1966	    return 0;
1967  ;
1968  return 0;
1969}
1970_ACEOF
1971if ac_fn_c_try_compile "$LINENO"; then :
1972
1973else
1974  eval "$3=yes"
1975fi
1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977fi
1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979fi
1980eval ac_res=\$$3
1981	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982$as_echo "$ac_res" >&6; }
1983  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985} # ac_fn_c_check_type
1986cat >config.log <<_ACEOF
1987This file contains any messages produced by compilers while
1988running configure, to aid debugging if configure makes a mistake.
1989
1990It was created by rtpproxy $as_me 2.0.beta.20150106, which was
1991generated by GNU Autoconf 2.69.  Invocation command line was
1992
1993  $ $0 $@
1994
1995_ACEOF
1996exec 5>>config.log
1997{
1998cat <<_ASUNAME
1999## --------- ##
2000## Platform. ##
2001## --------- ##
2002
2003hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2004uname -m = `(uname -m) 2>/dev/null || echo unknown`
2005uname -r = `(uname -r) 2>/dev/null || echo unknown`
2006uname -s = `(uname -s) 2>/dev/null || echo unknown`
2007uname -v = `(uname -v) 2>/dev/null || echo unknown`
2008
2009/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2010/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2011
2012/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2013/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2014/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2015/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2016/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2017/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2018/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2019
2020_ASUNAME
2021
2022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023for as_dir in $PATH
2024do
2025  IFS=$as_save_IFS
2026  test -z "$as_dir" && as_dir=.
2027    $as_echo "PATH: $as_dir"
2028  done
2029IFS=$as_save_IFS
2030
2031} >&5
2032
2033cat >&5 <<_ACEOF
2034
2035
2036## ----------- ##
2037## Core tests. ##
2038## ----------- ##
2039
2040_ACEOF
2041
2042
2043# Keep a trace of the command line.
2044# Strip out --no-create and --no-recursion so they do not pile up.
2045# Strip out --silent because we don't want to record it for future runs.
2046# Also quote any args containing shell meta-characters.
2047# Make two passes to allow for proper duplicate-argument suppression.
2048ac_configure_args=
2049ac_configure_args0=
2050ac_configure_args1=
2051ac_must_keep_next=false
2052for ac_pass in 1 2
2053do
2054  for ac_arg
2055  do
2056    case $ac_arg in
2057    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2058    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2059    | -silent | --silent | --silen | --sile | --sil)
2060      continue ;;
2061    *\'*)
2062      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2063    esac
2064    case $ac_pass in
2065    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2066    2)
2067      as_fn_append ac_configure_args1 " '$ac_arg'"
2068      if test $ac_must_keep_next = true; then
2069	ac_must_keep_next=false # Got value, back to normal.
2070      else
2071	case $ac_arg in
2072	  *=* | --config-cache | -C | -disable-* | --disable-* \
2073	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2074	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2075	  | -with-* | --with-* | -without-* | --without-* | --x)
2076	    case "$ac_configure_args0 " in
2077	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2078	    esac
2079	    ;;
2080	  -* ) ac_must_keep_next=true ;;
2081	esac
2082      fi
2083      as_fn_append ac_configure_args " '$ac_arg'"
2084      ;;
2085    esac
2086  done
2087done
2088{ ac_configure_args0=; unset ac_configure_args0;}
2089{ ac_configure_args1=; unset ac_configure_args1;}
2090
2091# When interrupted or exit'd, cleanup temporary files, and complete
2092# config.log.  We remove comments because anyway the quotes in there
2093# would cause problems or look ugly.
2094# WARNING: Use '\'' to represent an apostrophe within the trap.
2095# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2096trap 'exit_status=$?
2097  # Save into config.log some information that might help in debugging.
2098  {
2099    echo
2100
2101    $as_echo "## ---------------- ##
2102## Cache variables. ##
2103## ---------------- ##"
2104    echo
2105    # The following way of writing the cache mishandles newlines in values,
2106(
2107  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2108    eval ac_val=\$$ac_var
2109    case $ac_val in #(
2110    *${as_nl}*)
2111      case $ac_var in #(
2112      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2113$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2114      esac
2115      case $ac_var in #(
2116      _ | IFS | as_nl) ;; #(
2117      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2118      *) { eval $ac_var=; unset $ac_var;} ;;
2119      esac ;;
2120    esac
2121  done
2122  (set) 2>&1 |
2123    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2124    *${as_nl}ac_space=\ *)
2125      sed -n \
2126	"s/'\''/'\''\\\\'\'''\''/g;
2127	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2128      ;; #(
2129    *)
2130      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2131      ;;
2132    esac |
2133    sort
2134)
2135    echo
2136
2137    $as_echo "## ----------------- ##
2138## Output variables. ##
2139## ----------------- ##"
2140    echo
2141    for ac_var in $ac_subst_vars
2142    do
2143      eval ac_val=\$$ac_var
2144      case $ac_val in
2145      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146      esac
2147      $as_echo "$ac_var='\''$ac_val'\''"
2148    done | sort
2149    echo
2150
2151    if test -n "$ac_subst_files"; then
2152      $as_echo "## ------------------- ##
2153## File substitutions. ##
2154## ------------------- ##"
2155      echo
2156      for ac_var in $ac_subst_files
2157      do
2158	eval ac_val=\$$ac_var
2159	case $ac_val in
2160	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2161	esac
2162	$as_echo "$ac_var='\''$ac_val'\''"
2163      done | sort
2164      echo
2165    fi
2166
2167    if test -s confdefs.h; then
2168      $as_echo "## ----------- ##
2169## confdefs.h. ##
2170## ----------- ##"
2171      echo
2172      cat confdefs.h
2173      echo
2174    fi
2175    test "$ac_signal" != 0 &&
2176      $as_echo "$as_me: caught signal $ac_signal"
2177    $as_echo "$as_me: exit $exit_status"
2178  } >&5
2179  rm -f core *.core core.conftest.* &&
2180    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2181    exit $exit_status
2182' 0
2183for ac_signal in 1 2 13 15; do
2184  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2185done
2186ac_signal=0
2187
2188# confdefs.h avoids OS command line length limits that DEFS can exceed.
2189rm -f -r conftest* confdefs.h
2190
2191$as_echo "/* confdefs.h */" > confdefs.h
2192
2193# Predefined preprocessor variables.
2194
2195cat >>confdefs.h <<_ACEOF
2196#define PACKAGE_NAME "$PACKAGE_NAME"
2197_ACEOF
2198
2199cat >>confdefs.h <<_ACEOF
2200#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2201_ACEOF
2202
2203cat >>confdefs.h <<_ACEOF
2204#define PACKAGE_VERSION "$PACKAGE_VERSION"
2205_ACEOF
2206
2207cat >>confdefs.h <<_ACEOF
2208#define PACKAGE_STRING "$PACKAGE_STRING"
2209_ACEOF
2210
2211cat >>confdefs.h <<_ACEOF
2212#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2213_ACEOF
2214
2215cat >>confdefs.h <<_ACEOF
2216#define PACKAGE_URL "$PACKAGE_URL"
2217_ACEOF
2218
2219
2220# Let the site file select an alternate cache file if it wants to.
2221# Prefer an explicitly selected file to automatically selected ones.
2222ac_site_file1=NONE
2223ac_site_file2=NONE
2224if test -n "$CONFIG_SITE"; then
2225  # We do not want a PATH search for config.site.
2226  case $CONFIG_SITE in #((
2227    -*)  ac_site_file1=./$CONFIG_SITE;;
2228    */*) ac_site_file1=$CONFIG_SITE;;
2229    *)   ac_site_file1=./$CONFIG_SITE;;
2230  esac
2231elif test "x$prefix" != xNONE; then
2232  ac_site_file1=$prefix/share/config.site
2233  ac_site_file2=$prefix/etc/config.site
2234else
2235  ac_site_file1=$ac_default_prefix/share/config.site
2236  ac_site_file2=$ac_default_prefix/etc/config.site
2237fi
2238for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2239do
2240  test "x$ac_site_file" = xNONE && continue
2241  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2242    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2243$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2244    sed 's/^/| /' "$ac_site_file" >&5
2245    . "$ac_site_file" \
2246      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248as_fn_error $? "failed to load site script $ac_site_file
2249See \`config.log' for more details" "$LINENO" 5; }
2250  fi
2251done
2252
2253if test -r "$cache_file"; then
2254  # Some versions of bash will fail to source /dev/null (special files
2255  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2256  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2257    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2258$as_echo "$as_me: loading cache $cache_file" >&6;}
2259    case $cache_file in
2260      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2261      *)                      . "./$cache_file";;
2262    esac
2263  fi
2264else
2265  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2266$as_echo "$as_me: creating cache $cache_file" >&6;}
2267  >$cache_file
2268fi
2269
2270# Check that the precious variables saved in the cache have kept the same
2271# value.
2272ac_cache_corrupted=false
2273for ac_var in $ac_precious_vars; do
2274  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2275  eval ac_new_set=\$ac_env_${ac_var}_set
2276  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2277  eval ac_new_val=\$ac_env_${ac_var}_value
2278  case $ac_old_set,$ac_new_set in
2279    set,)
2280      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2281$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2282      ac_cache_corrupted=: ;;
2283    ,set)
2284      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2285$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2286      ac_cache_corrupted=: ;;
2287    ,);;
2288    *)
2289      if test "x$ac_old_val" != "x$ac_new_val"; then
2290	# differences in whitespace do not lead to failure.
2291	ac_old_val_w=`echo x $ac_old_val`
2292	ac_new_val_w=`echo x $ac_new_val`
2293	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2294	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2295$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2296	  ac_cache_corrupted=:
2297	else
2298	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2299$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2300	  eval $ac_var=\$ac_old_val
2301	fi
2302	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2303$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2304	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2305$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2306      fi;;
2307  esac
2308  # Pass precious variables to config.status.
2309  if test "$ac_new_set" = set; then
2310    case $ac_new_val in
2311    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2312    *) ac_arg=$ac_var=$ac_new_val ;;
2313    esac
2314    case " $ac_configure_args " in
2315      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2316      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2317    esac
2318  fi
2319done
2320if $ac_cache_corrupted; then
2321  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2323  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2324$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2325  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2326fi
2327## -------------------- ##
2328## Main body of script. ##
2329## -------------------- ##
2330
2331ac_ext=c
2332ac_cpp='$CPP $CPPFLAGS'
2333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336
2337
2338
2339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2340$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2341    # Check whether --enable-maintainer-mode was given.
2342if test "${enable_maintainer_mode+set}" = set; then :
2343  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2344else
2345  USE_MAINTAINER_MODE=no
2346fi
2347
2348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2349$as_echo "$USE_MAINTAINER_MODE" >&6; }
2350   if test $USE_MAINTAINER_MODE = yes; then
2351  MAINTAINER_MODE_TRUE=
2352  MAINTAINER_MODE_FALSE='#'
2353else
2354  MAINTAINER_MODE_TRUE='#'
2355  MAINTAINER_MODE_FALSE=
2356fi
2357
2358  MAINT=$MAINTAINER_MODE_TRUE
2359
2360
2361
2362am__api_version='1.16'
2363
2364ac_aux_dir=
2365for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2366  if test -f "$ac_dir/install-sh"; then
2367    ac_aux_dir=$ac_dir
2368    ac_install_sh="$ac_aux_dir/install-sh -c"
2369    break
2370  elif test -f "$ac_dir/install.sh"; then
2371    ac_aux_dir=$ac_dir
2372    ac_install_sh="$ac_aux_dir/install.sh -c"
2373    break
2374  elif test -f "$ac_dir/shtool"; then
2375    ac_aux_dir=$ac_dir
2376    ac_install_sh="$ac_aux_dir/shtool install -c"
2377    break
2378  fi
2379done
2380if test -z "$ac_aux_dir"; then
2381  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2382fi
2383
2384# These three variables are undocumented and unsupported,
2385# and are intended to be withdrawn in a future Autoconf release.
2386# They can cause serious problems if a builder's source tree is in a directory
2387# whose full name contains unusual characters.
2388ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2389ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2390ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2391
2392
2393# Find a good install program.  We prefer a C program (faster),
2394# so one script is as good as another.  But avoid the broken or
2395# incompatible versions:
2396# SysV /etc/install, /usr/sbin/install
2397# SunOS /usr/etc/install
2398# IRIX /sbin/install
2399# AIX /bin/install
2400# AmigaOS /C/install, which installs bootblocks on floppy discs
2401# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2402# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2403# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2404# OS/2's system install, which has a completely different semantic
2405# ./install, which can be erroneously created by make from ./install.sh.
2406# Reject install programs that cannot install multiple files.
2407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2408$as_echo_n "checking for a BSD-compatible install... " >&6; }
2409if test -z "$INSTALL"; then
2410if ${ac_cv_path_install+:} false; then :
2411  $as_echo_n "(cached) " >&6
2412else
2413  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414for as_dir in $PATH
2415do
2416  IFS=$as_save_IFS
2417  test -z "$as_dir" && as_dir=.
2418    # Account for people who put trailing slashes in PATH elements.
2419case $as_dir/ in #((
2420  ./ | .// | /[cC]/* | \
2421  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2422  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2423  /usr/ucb/* ) ;;
2424  *)
2425    # OSF1 and SCO ODT 3.0 have their own names for install.
2426    # Don't use installbsd from OSF since it installs stuff as root
2427    # by default.
2428    for ac_prog in ginstall scoinst install; do
2429      for ac_exec_ext in '' $ac_executable_extensions; do
2430	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2431	  if test $ac_prog = install &&
2432	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2433	    # AIX install.  It has an incompatible calling convention.
2434	    :
2435	  elif test $ac_prog = install &&
2436	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2437	    # program-specific install script used by HP pwplus--don't use.
2438	    :
2439	  else
2440	    rm -rf conftest.one conftest.two conftest.dir
2441	    echo one > conftest.one
2442	    echo two > conftest.two
2443	    mkdir conftest.dir
2444	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2445	      test -s conftest.one && test -s conftest.two &&
2446	      test -s conftest.dir/conftest.one &&
2447	      test -s conftest.dir/conftest.two
2448	    then
2449	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2450	      break 3
2451	    fi
2452	  fi
2453	fi
2454      done
2455    done
2456    ;;
2457esac
2458
2459  done
2460IFS=$as_save_IFS
2461
2462rm -rf conftest.one conftest.two conftest.dir
2463
2464fi
2465  if test "${ac_cv_path_install+set}" = set; then
2466    INSTALL=$ac_cv_path_install
2467  else
2468    # As a last resort, use the slow shell script.  Don't cache a
2469    # value for INSTALL within a source directory, because that will
2470    # break other packages using the cache if that directory is
2471    # removed, or if the value is a relative name.
2472    INSTALL=$ac_install_sh
2473  fi
2474fi
2475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2476$as_echo "$INSTALL" >&6; }
2477
2478# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2479# It thinks the first close brace ends the variable substitution.
2480test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2481
2482test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2483
2484test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2485
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2487$as_echo_n "checking whether build environment is sane... " >&6; }
2488# Reject unsafe characters in $srcdir or the absolute working directory
2489# name.  Accept space and tab only in the latter.
2490am_lf='
2491'
2492case `pwd` in
2493  *[\\\"\#\$\&\'\`$am_lf]*)
2494    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2495esac
2496case $srcdir in
2497  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2498    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2499esac
2500
2501# Do 'set' in a subshell so we don't clobber the current shell's
2502# arguments.  Must try -L first in case configure is actually a
2503# symlink; some systems play weird games with the mod time of symlinks
2504# (eg FreeBSD returns the mod time of the symlink's containing
2505# directory).
2506if (
2507   am_has_slept=no
2508   for am_try in 1 2; do
2509     echo "timestamp, slept: $am_has_slept" > conftest.file
2510     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2511     if test "$*" = "X"; then
2512	# -L didn't work.
2513	set X `ls -t "$srcdir/configure" conftest.file`
2514     fi
2515     if test "$*" != "X $srcdir/configure conftest.file" \
2516	&& test "$*" != "X conftest.file $srcdir/configure"; then
2517
2518	# If neither matched, then we have a broken ls.  This can happen
2519	# if, for instance, CONFIG_SHELL is bash and it inherits a
2520	# broken ls alias from the environment.  This has actually
2521	# happened.  Such a system could not be considered "sane".
2522	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2523  alias in your environment" "$LINENO" 5
2524     fi
2525     if test "$2" = conftest.file || test $am_try -eq 2; then
2526       break
2527     fi
2528     # Just in case.
2529     sleep 1
2530     am_has_slept=yes
2531   done
2532   test "$2" = conftest.file
2533   )
2534then
2535   # Ok.
2536   :
2537else
2538   as_fn_error $? "newly created file is older than distributed files!
2539Check your system clock" "$LINENO" 5
2540fi
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2542$as_echo "yes" >&6; }
2543# If we didn't sleep, we still need to ensure time stamps of config.status and
2544# generated files are strictly newer.
2545am_sleep_pid=
2546if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2547  ( sleep 1 ) &
2548  am_sleep_pid=$!
2549fi
2550
2551rm -f conftest.file
2552
2553test "$program_prefix" != NONE &&
2554  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2555# Use a double $ so make ignores it.
2556test "$program_suffix" != NONE &&
2557  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2558# Double any \ or $.
2559# By default was `s,x,x', remove it if useless.
2560ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2561program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2562
2563# Expand $ac_aux_dir to an absolute path.
2564am_aux_dir=`cd "$ac_aux_dir" && pwd`
2565
2566if test x"${MISSING+set}" != xset; then
2567  case $am_aux_dir in
2568  *\ * | *\	*)
2569    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2570  *)
2571    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2572  esac
2573fi
2574# Use eval to expand $SHELL
2575if eval "$MISSING --is-lightweight"; then
2576  am_missing_run="$MISSING "
2577else
2578  am_missing_run=
2579  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2580$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2581fi
2582
2583if test x"${install_sh+set}" != xset; then
2584  case $am_aux_dir in
2585  *\ * | *\	*)
2586    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2587  *)
2588    install_sh="\${SHELL} $am_aux_dir/install-sh"
2589  esac
2590fi
2591
2592# Installed binaries are usually stripped using 'strip' when the user
2593# run "make install-strip".  However 'strip' might not be the right
2594# tool to use in cross-compilation environments, therefore Automake
2595# will honor the 'STRIP' environment variable to overrule this program.
2596if test "$cross_compiling" != no; then
2597  if test -n "$ac_tool_prefix"; then
2598  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2599set dummy ${ac_tool_prefix}strip; ac_word=$2
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601$as_echo_n "checking for $ac_word... " >&6; }
2602if ${ac_cv_prog_STRIP+:} false; then :
2603  $as_echo_n "(cached) " >&6
2604else
2605  if test -n "$STRIP"; then
2606  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2607else
2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609for as_dir in $PATH
2610do
2611  IFS=$as_save_IFS
2612  test -z "$as_dir" && as_dir=.
2613    for ac_exec_ext in '' $ac_executable_extensions; do
2614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2615    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2617    break 2
2618  fi
2619done
2620  done
2621IFS=$as_save_IFS
2622
2623fi
2624fi
2625STRIP=$ac_cv_prog_STRIP
2626if test -n "$STRIP"; then
2627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2628$as_echo "$STRIP" >&6; }
2629else
2630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631$as_echo "no" >&6; }
2632fi
2633
2634
2635fi
2636if test -z "$ac_cv_prog_STRIP"; then
2637  ac_ct_STRIP=$STRIP
2638  # Extract the first word of "strip", so it can be a program name with args.
2639set dummy strip; ac_word=$2
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641$as_echo_n "checking for $ac_word... " >&6; }
2642if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2643  $as_echo_n "(cached) " >&6
2644else
2645  if test -n "$ac_ct_STRIP"; then
2646  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2647else
2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH
2650do
2651  IFS=$as_save_IFS
2652  test -z "$as_dir" && as_dir=.
2653    for ac_exec_ext in '' $ac_executable_extensions; do
2654  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2655    ac_cv_prog_ac_ct_STRIP="strip"
2656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657    break 2
2658  fi
2659done
2660  done
2661IFS=$as_save_IFS
2662
2663fi
2664fi
2665ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2666if test -n "$ac_ct_STRIP"; then
2667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2668$as_echo "$ac_ct_STRIP" >&6; }
2669else
2670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671$as_echo "no" >&6; }
2672fi
2673
2674  if test "x$ac_ct_STRIP" = x; then
2675    STRIP=":"
2676  else
2677    case $cross_compiling:$ac_tool_warned in
2678yes:)
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2681ac_tool_warned=yes ;;
2682esac
2683    STRIP=$ac_ct_STRIP
2684  fi
2685else
2686  STRIP="$ac_cv_prog_STRIP"
2687fi
2688
2689fi
2690INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2691
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2693$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2694if test -z "$MKDIR_P"; then
2695  if ${ac_cv_path_mkdir+:} false; then :
2696  $as_echo_n "(cached) " >&6
2697else
2698  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2700do
2701  IFS=$as_save_IFS
2702  test -z "$as_dir" && as_dir=.
2703    for ac_prog in mkdir gmkdir; do
2704	 for ac_exec_ext in '' $ac_executable_extensions; do
2705	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2706	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2707	     'mkdir (GNU coreutils) '* | \
2708	     'mkdir (coreutils) '* | \
2709	     'mkdir (fileutils) '4.1*)
2710	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2711	       break 3;;
2712	   esac
2713	 done
2714       done
2715  done
2716IFS=$as_save_IFS
2717
2718fi
2719
2720  test -d ./--version && rmdir ./--version
2721  if test "${ac_cv_path_mkdir+set}" = set; then
2722    MKDIR_P="$ac_cv_path_mkdir -p"
2723  else
2724    # As a last resort, use the slow shell script.  Don't cache a
2725    # value for MKDIR_P within a source directory, because that will
2726    # break other packages using the cache if that directory is
2727    # removed, or if the value is a relative name.
2728    MKDIR_P="$ac_install_sh -d"
2729  fi
2730fi
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2732$as_echo "$MKDIR_P" >&6; }
2733
2734for ac_prog in gawk mawk nawk awk
2735do
2736  # Extract the first word of "$ac_prog", so it can be a program name with args.
2737set dummy $ac_prog; ac_word=$2
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739$as_echo_n "checking for $ac_word... " >&6; }
2740if ${ac_cv_prog_AWK+:} false; then :
2741  $as_echo_n "(cached) " >&6
2742else
2743  if test -n "$AWK"; then
2744  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2745else
2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747for as_dir in $PATH
2748do
2749  IFS=$as_save_IFS
2750  test -z "$as_dir" && as_dir=.
2751    for ac_exec_ext in '' $ac_executable_extensions; do
2752  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753    ac_cv_prog_AWK="$ac_prog"
2754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755    break 2
2756  fi
2757done
2758  done
2759IFS=$as_save_IFS
2760
2761fi
2762fi
2763AWK=$ac_cv_prog_AWK
2764if test -n "$AWK"; then
2765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2766$as_echo "$AWK" >&6; }
2767else
2768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769$as_echo "no" >&6; }
2770fi
2771
2772
2773  test -n "$AWK" && break
2774done
2775
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2777$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2778set x ${MAKE-make}
2779ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2780if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2781  $as_echo_n "(cached) " >&6
2782else
2783  cat >conftest.make <<\_ACEOF
2784SHELL = /bin/sh
2785all:
2786	@echo '@@@%%%=$(MAKE)=@@@%%%'
2787_ACEOF
2788# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2789case `${MAKE-make} -f conftest.make 2>/dev/null` in
2790  *@@@%%%=?*=@@@%%%*)
2791    eval ac_cv_prog_make_${ac_make}_set=yes;;
2792  *)
2793    eval ac_cv_prog_make_${ac_make}_set=no;;
2794esac
2795rm -f conftest.make
2796fi
2797if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2799$as_echo "yes" >&6; }
2800  SET_MAKE=
2801else
2802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803$as_echo "no" >&6; }
2804  SET_MAKE="MAKE=${MAKE-make}"
2805fi
2806
2807rm -rf .tst 2>/dev/null
2808mkdir .tst 2>/dev/null
2809if test -d .tst; then
2810  am__leading_dot=.
2811else
2812  am__leading_dot=_
2813fi
2814rmdir .tst 2>/dev/null
2815
2816# Check whether --enable-silent-rules was given.
2817if test "${enable_silent_rules+set}" = set; then :
2818  enableval=$enable_silent_rules;
2819fi
2820
2821case $enable_silent_rules in # (((
2822  yes) AM_DEFAULT_VERBOSITY=0;;
2823   no) AM_DEFAULT_VERBOSITY=1;;
2824    *) AM_DEFAULT_VERBOSITY=1;;
2825esac
2826am_make=${MAKE-make}
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2828$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2829if ${am_cv_make_support_nested_variables+:} false; then :
2830  $as_echo_n "(cached) " >&6
2831else
2832  if $as_echo 'TRUE=$(BAR$(V))
2833BAR0=false
2834BAR1=true
2835V=1
2836am__doit:
2837	@$(TRUE)
2838.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2839  am_cv_make_support_nested_variables=yes
2840else
2841  am_cv_make_support_nested_variables=no
2842fi
2843fi
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2845$as_echo "$am_cv_make_support_nested_variables" >&6; }
2846if test $am_cv_make_support_nested_variables = yes; then
2847    AM_V='$(V)'
2848  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2849else
2850  AM_V=$AM_DEFAULT_VERBOSITY
2851  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2852fi
2853AM_BACKSLASH='\'
2854
2855if test "`cd $srcdir && pwd`" != "`pwd`"; then
2856  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2857  # is not polluted with repeated "-I."
2858  am__isrc=' -I$(srcdir)'
2859  # test to see if srcdir already configured
2860  if test -f $srcdir/config.status; then
2861    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2862  fi
2863fi
2864
2865# test whether we have cygpath
2866if test -z "$CYGPATH_W"; then
2867  if (cygpath --version) >/dev/null 2>/dev/null; then
2868    CYGPATH_W='cygpath -w'
2869  else
2870    CYGPATH_W=echo
2871  fi
2872fi
2873
2874
2875# Define the identity of the package.
2876 PACKAGE='rtpproxy'
2877 VERSION='2.0.beta.20150106'
2878
2879
2880cat >>confdefs.h <<_ACEOF
2881#define PACKAGE "$PACKAGE"
2882_ACEOF
2883
2884
2885cat >>confdefs.h <<_ACEOF
2886#define VERSION "$VERSION"
2887_ACEOF
2888
2889# Some tools Automake needs.
2890
2891ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2892
2893
2894AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2895
2896
2897AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2898
2899
2900AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2901
2902
2903MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2904
2905# For better backward compatibility.  To be removed once Automake 1.9.x
2906# dies out for good.  For more background, see:
2907# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2908# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2909mkdir_p='$(MKDIR_P)'
2910
2911# We need awk for the "check" target (and possibly the TAP driver).  The
2912# system "awk" is bad on some platforms.
2913# Always define AMTAR for backward compatibility.  Yes, it's still used
2914# in the wild :-(  We should find a proper way to deprecate it ...
2915AMTAR='$${TAR-tar}'
2916
2917
2918# We'll loop over all known methods to create a tar archive until one works.
2919_am_tools='gnutar  pax cpio none'
2920
2921am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2922
2923
2924
2925
2926
2927
2928# POSIX will say in a future version that running "rm -f" with no argument
2929# is OK; and we want to be able to make that assumption in our Makefile
2930# recipes.  So use an aggressive probe to check that the usage we want is
2931# actually supported "in the wild" to an acceptable degree.
2932# See automake bug#10828.
2933# To make any issue more visible, cause the running configure to be aborted
2934# by default if the 'rm' program in use doesn't match our expectations; the
2935# user can still override this though.
2936if rm -f && rm -fr && rm -rf; then : OK; else
2937  cat >&2 <<'END'
2938Oops!
2939
2940Your 'rm' program seems unable to run without file operands specified
2941on the command line, even when the '-f' option is present.  This is contrary
2942to the behaviour of most rm programs out there, and not conforming with
2943the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2944
2945Please tell bug-automake@gnu.org about your system, including the value
2946of your $PATH and any error possibly output before this message.  This
2947can help us improve future automake versions.
2948
2949END
2950  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2951    echo 'Configuration will proceed anyway, since you have set the' >&2
2952    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2953    echo >&2
2954  else
2955    cat >&2 <<'END'
2956Aborting the configuration process, to ensure you take notice of the issue.
2957
2958You can download and install GNU coreutils to get an 'rm' implementation
2959that behaves properly: <https://www.gnu.org/software/coreutils/>.
2960
2961If you want to complete the configuration process using your problematic
2962'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2963to "yes", and re-run configure.
2964
2965END
2966    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2967  fi
2968fi
2969
2970ac_config_headers="$ac_config_headers src/config.h"
2971
2972
2973
2974# cross-compile macros
2975# Make sure we can run config.sub.
2976$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2977  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2978
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2980$as_echo_n "checking build system type... " >&6; }
2981if ${ac_cv_build+:} false; then :
2982  $as_echo_n "(cached) " >&6
2983else
2984  ac_build_alias=$build_alias
2985test "x$ac_build_alias" = x &&
2986  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2987test "x$ac_build_alias" = x &&
2988  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2989ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2990  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2991
2992fi
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2994$as_echo "$ac_cv_build" >&6; }
2995case $ac_cv_build in
2996*-*-*) ;;
2997*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2998esac
2999build=$ac_cv_build
3000ac_save_IFS=$IFS; IFS='-'
3001set x $ac_cv_build
3002shift
3003build_cpu=$1
3004build_vendor=$2
3005shift; shift
3006# Remember, the first character of IFS is used to create $*,
3007# except with old shells:
3008build_os=$*
3009IFS=$ac_save_IFS
3010case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3011
3012
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3014$as_echo_n "checking host system type... " >&6; }
3015if ${ac_cv_host+:} false; then :
3016  $as_echo_n "(cached) " >&6
3017else
3018  if test "x$host_alias" = x; then
3019  ac_cv_host=$ac_cv_build
3020else
3021  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3022    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3023fi
3024
3025fi
3026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3027$as_echo "$ac_cv_host" >&6; }
3028case $ac_cv_host in
3029*-*-*) ;;
3030*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3031esac
3032host=$ac_cv_host
3033ac_save_IFS=$IFS; IFS='-'
3034set x $ac_cv_host
3035shift
3036host_cpu=$1
3037host_vendor=$2
3038shift; shift
3039# Remember, the first character of IFS is used to create $*,
3040# except with old shells:
3041host_os=$*
3042IFS=$ac_save_IFS
3043case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3044
3045
3046
3047# Checks for programs.
3048ac_ext=c
3049ac_cpp='$CPP $CPPFLAGS'
3050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053if test -n "$ac_tool_prefix"; then
3054  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3055set dummy ${ac_tool_prefix}gcc; ac_word=$2
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057$as_echo_n "checking for $ac_word... " >&6; }
3058if ${ac_cv_prog_CC+:} false; then :
3059  $as_echo_n "(cached) " >&6
3060else
3061  if test -n "$CC"; then
3062  ac_cv_prog_CC="$CC" # Let the user override the test.
3063else
3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065for as_dir in $PATH
3066do
3067  IFS=$as_save_IFS
3068  test -z "$as_dir" && as_dir=.
3069    for ac_exec_ext in '' $ac_executable_extensions; do
3070  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3071    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073    break 2
3074  fi
3075done
3076  done
3077IFS=$as_save_IFS
3078
3079fi
3080fi
3081CC=$ac_cv_prog_CC
3082if test -n "$CC"; then
3083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084$as_echo "$CC" >&6; }
3085else
3086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087$as_echo "no" >&6; }
3088fi
3089
3090
3091fi
3092if test -z "$ac_cv_prog_CC"; then
3093  ac_ct_CC=$CC
3094  # Extract the first word of "gcc", so it can be a program name with args.
3095set dummy gcc; ac_word=$2
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097$as_echo_n "checking for $ac_word... " >&6; }
3098if ${ac_cv_prog_ac_ct_CC+:} false; then :
3099  $as_echo_n "(cached) " >&6
3100else
3101  if test -n "$ac_ct_CC"; then
3102  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3103else
3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105for as_dir in $PATH
3106do
3107  IFS=$as_save_IFS
3108  test -z "$as_dir" && as_dir=.
3109    for ac_exec_ext in '' $ac_executable_extensions; do
3110  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111    ac_cv_prog_ac_ct_CC="gcc"
3112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113    break 2
3114  fi
3115done
3116  done
3117IFS=$as_save_IFS
3118
3119fi
3120fi
3121ac_ct_CC=$ac_cv_prog_ac_ct_CC
3122if test -n "$ac_ct_CC"; then
3123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3124$as_echo "$ac_ct_CC" >&6; }
3125else
3126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127$as_echo "no" >&6; }
3128fi
3129
3130  if test "x$ac_ct_CC" = x; then
3131    CC=""
3132  else
3133    case $cross_compiling:$ac_tool_warned in
3134yes:)
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3137ac_tool_warned=yes ;;
3138esac
3139    CC=$ac_ct_CC
3140  fi
3141else
3142  CC="$ac_cv_prog_CC"
3143fi
3144
3145if test -z "$CC"; then
3146          if test -n "$ac_tool_prefix"; then
3147    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3148set dummy ${ac_tool_prefix}cc; ac_word=$2
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150$as_echo_n "checking for $ac_word... " >&6; }
3151if ${ac_cv_prog_CC+:} false; then :
3152  $as_echo_n "(cached) " >&6
3153else
3154  if test -n "$CC"; then
3155  ac_cv_prog_CC="$CC" # Let the user override the test.
3156else
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160  IFS=$as_save_IFS
3161  test -z "$as_dir" && as_dir=.
3162    for ac_exec_ext in '' $ac_executable_extensions; do
3163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164    ac_cv_prog_CC="${ac_tool_prefix}cc"
3165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166    break 2
3167  fi
3168done
3169  done
3170IFS=$as_save_IFS
3171
3172fi
3173fi
3174CC=$ac_cv_prog_CC
3175if test -n "$CC"; then
3176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177$as_echo "$CC" >&6; }
3178else
3179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180$as_echo "no" >&6; }
3181fi
3182
3183
3184  fi
3185fi
3186if test -z "$CC"; then
3187  # Extract the first word of "cc", so it can be a program name with args.
3188set dummy cc; ac_word=$2
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190$as_echo_n "checking for $ac_word... " >&6; }
3191if ${ac_cv_prog_CC+:} false; then :
3192  $as_echo_n "(cached) " >&6
3193else
3194  if test -n "$CC"; then
3195  ac_cv_prog_CC="$CC" # Let the user override the test.
3196else
3197  ac_prog_rejected=no
3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199for as_dir in $PATH
3200do
3201  IFS=$as_save_IFS
3202  test -z "$as_dir" && as_dir=.
3203    for ac_exec_ext in '' $ac_executable_extensions; do
3204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3206       ac_prog_rejected=yes
3207       continue
3208     fi
3209    ac_cv_prog_CC="cc"
3210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211    break 2
3212  fi
3213done
3214  done
3215IFS=$as_save_IFS
3216
3217if test $ac_prog_rejected = yes; then
3218  # We found a bogon in the path, so make sure we never use it.
3219  set dummy $ac_cv_prog_CC
3220  shift
3221  if test $# != 0; then
3222    # We chose a different compiler from the bogus one.
3223    # However, it has the same basename, so the bogon will be chosen
3224    # first if we set CC to just the basename; use the full file name.
3225    shift
3226    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3227  fi
3228fi
3229fi
3230fi
3231CC=$ac_cv_prog_CC
3232if test -n "$CC"; then
3233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3234$as_echo "$CC" >&6; }
3235else
3236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
3238fi
3239
3240
3241fi
3242if test -z "$CC"; then
3243  if test -n "$ac_tool_prefix"; then
3244  for ac_prog in cl.exe
3245  do
3246    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3247set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249$as_echo_n "checking for $ac_word... " >&6; }
3250if ${ac_cv_prog_CC+:} false; then :
3251  $as_echo_n "(cached) " >&6
3252else
3253  if test -n "$CC"; then
3254  ac_cv_prog_CC="$CC" # Let the user override the test.
3255else
3256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257for as_dir in $PATH
3258do
3259  IFS=$as_save_IFS
3260  test -z "$as_dir" && as_dir=.
3261    for ac_exec_ext in '' $ac_executable_extensions; do
3262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265    break 2
3266  fi
3267done
3268  done
3269IFS=$as_save_IFS
3270
3271fi
3272fi
3273CC=$ac_cv_prog_CC
3274if test -n "$CC"; then
3275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3276$as_echo "$CC" >&6; }
3277else
3278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279$as_echo "no" >&6; }
3280fi
3281
3282
3283    test -n "$CC" && break
3284  done
3285fi
3286if test -z "$CC"; then
3287  ac_ct_CC=$CC
3288  for ac_prog in cl.exe
3289do
3290  # Extract the first word of "$ac_prog", so it can be a program name with args.
3291set dummy $ac_prog; ac_word=$2
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293$as_echo_n "checking for $ac_word... " >&6; }
3294if ${ac_cv_prog_ac_ct_CC+:} false; then :
3295  $as_echo_n "(cached) " >&6
3296else
3297  if test -n "$ac_ct_CC"; then
3298  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3299else
3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301for as_dir in $PATH
3302do
3303  IFS=$as_save_IFS
3304  test -z "$as_dir" && as_dir=.
3305    for ac_exec_ext in '' $ac_executable_extensions; do
3306  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307    ac_cv_prog_ac_ct_CC="$ac_prog"
3308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309    break 2
3310  fi
3311done
3312  done
3313IFS=$as_save_IFS
3314
3315fi
3316fi
3317ac_ct_CC=$ac_cv_prog_ac_ct_CC
3318if test -n "$ac_ct_CC"; then
3319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3320$as_echo "$ac_ct_CC" >&6; }
3321else
3322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323$as_echo "no" >&6; }
3324fi
3325
3326
3327  test -n "$ac_ct_CC" && break
3328done
3329
3330  if test "x$ac_ct_CC" = x; then
3331    CC=""
3332  else
3333    case $cross_compiling:$ac_tool_warned in
3334yes:)
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3337ac_tool_warned=yes ;;
3338esac
3339    CC=$ac_ct_CC
3340  fi
3341fi
3342
3343fi
3344
3345
3346test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348as_fn_error $? "no acceptable C compiler found in \$PATH
3349See \`config.log' for more details" "$LINENO" 5; }
3350
3351# Provide some information about the compiler.
3352$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3353set X $ac_compile
3354ac_compiler=$2
3355for ac_option in --version -v -V -qversion; do
3356  { { ac_try="$ac_compiler $ac_option >&5"
3357case "(($ac_try" in
3358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359  *) ac_try_echo=$ac_try;;
3360esac
3361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362$as_echo "$ac_try_echo"; } >&5
3363  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3364  ac_status=$?
3365  if test -s conftest.err; then
3366    sed '10a\
3367... rest of stderr output deleted ...
3368         10q' conftest.err >conftest.er1
3369    cat conftest.er1 >&5
3370  fi
3371  rm -f conftest.er1 conftest.err
3372  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373  test $ac_status = 0; }
3374done
3375
3376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377/* end confdefs.h.  */
3378
3379int
3380main ()
3381{
3382
3383  ;
3384  return 0;
3385}
3386_ACEOF
3387ac_clean_files_save=$ac_clean_files
3388ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3389# Try to create an executable without -o first, disregard a.out.
3390# It will help us diagnose broken compilers, and finding out an intuition
3391# of exeext.
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3393$as_echo_n "checking whether the C compiler works... " >&6; }
3394ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3395
3396# The possible output files:
3397ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3398
3399ac_rmfiles=
3400for ac_file in $ac_files
3401do
3402  case $ac_file in
3403    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3404    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3405  esac
3406done
3407rm -f $ac_rmfiles
3408
3409if { { ac_try="$ac_link_default"
3410case "(($ac_try" in
3411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412  *) ac_try_echo=$ac_try;;
3413esac
3414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415$as_echo "$ac_try_echo"; } >&5
3416  (eval "$ac_link_default") 2>&5
3417  ac_status=$?
3418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419  test $ac_status = 0; }; then :
3420  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3421# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3422# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3423# so that the user can short-circuit this test for compilers unknown to
3424# Autoconf.
3425for ac_file in $ac_files ''
3426do
3427  test -f "$ac_file" || continue
3428  case $ac_file in
3429    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3430	;;
3431    [ab].out )
3432	# We found the default executable, but exeext='' is most
3433	# certainly right.
3434	break;;
3435    *.* )
3436	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3437	then :; else
3438	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3439	fi
3440	# We set ac_cv_exeext here because the later test for it is not
3441	# safe: cross compilers may not add the suffix if given an `-o'
3442	# argument, so we may need to know it at that point already.
3443	# Even if this section looks crufty: it has the advantage of
3444	# actually working.
3445	break;;
3446    * )
3447	break;;
3448  esac
3449done
3450test "$ac_cv_exeext" = no && ac_cv_exeext=
3451
3452else
3453  ac_file=''
3454fi
3455if test -z "$ac_file"; then :
3456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457$as_echo "no" >&6; }
3458$as_echo "$as_me: failed program was:" >&5
3459sed 's/^/| /' conftest.$ac_ext >&5
3460
3461{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463as_fn_error 77 "C compiler cannot create executables
3464See \`config.log' for more details" "$LINENO" 5; }
3465else
3466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3467$as_echo "yes" >&6; }
3468fi
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3470$as_echo_n "checking for C compiler default output file name... " >&6; }
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3472$as_echo "$ac_file" >&6; }
3473ac_exeext=$ac_cv_exeext
3474
3475rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3476ac_clean_files=$ac_clean_files_save
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3478$as_echo_n "checking for suffix of executables... " >&6; }
3479if { { ac_try="$ac_link"
3480case "(($ac_try" in
3481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482  *) ac_try_echo=$ac_try;;
3483esac
3484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485$as_echo "$ac_try_echo"; } >&5
3486  (eval "$ac_link") 2>&5
3487  ac_status=$?
3488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489  test $ac_status = 0; }; then :
3490  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3491# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3492# work properly (i.e., refer to `conftest.exe'), while it won't with
3493# `rm'.
3494for ac_file in conftest.exe conftest conftest.*; do
3495  test -f "$ac_file" || continue
3496  case $ac_file in
3497    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3498    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3499	  break;;
3500    * ) break;;
3501  esac
3502done
3503else
3504  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3507See \`config.log' for more details" "$LINENO" 5; }
3508fi
3509rm -f conftest conftest$ac_cv_exeext
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3511$as_echo "$ac_cv_exeext" >&6; }
3512
3513rm -f conftest.$ac_ext
3514EXEEXT=$ac_cv_exeext
3515ac_exeext=$EXEEXT
3516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517/* end confdefs.h.  */
3518#include <stdio.h>
3519int
3520main ()
3521{
3522FILE *f = fopen ("conftest.out", "w");
3523 return ferror (f) || fclose (f) != 0;
3524
3525  ;
3526  return 0;
3527}
3528_ACEOF
3529ac_clean_files="$ac_clean_files conftest.out"
3530# Check that the compiler produces executables we can run.  If not, either
3531# the compiler is broken, or we cross compile.
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3533$as_echo_n "checking whether we are cross compiling... " >&6; }
3534if test "$cross_compiling" != yes; then
3535  { { ac_try="$ac_link"
3536case "(($ac_try" in
3537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538  *) ac_try_echo=$ac_try;;
3539esac
3540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541$as_echo "$ac_try_echo"; } >&5
3542  (eval "$ac_link") 2>&5
3543  ac_status=$?
3544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545  test $ac_status = 0; }
3546  if { ac_try='./conftest$ac_cv_exeext'
3547  { { case "(($ac_try" in
3548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549  *) ac_try_echo=$ac_try;;
3550esac
3551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3552$as_echo "$ac_try_echo"; } >&5
3553  (eval "$ac_try") 2>&5
3554  ac_status=$?
3555  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556  test $ac_status = 0; }; }; then
3557    cross_compiling=no
3558  else
3559    if test "$cross_compiling" = maybe; then
3560	cross_compiling=yes
3561    else
3562	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564as_fn_error $? "cannot run C compiled programs.
3565If you meant to cross compile, use \`--host'.
3566See \`config.log' for more details" "$LINENO" 5; }
3567    fi
3568  fi
3569fi
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3571$as_echo "$cross_compiling" >&6; }
3572
3573rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3574ac_clean_files=$ac_clean_files_save
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3576$as_echo_n "checking for suffix of object files... " >&6; }
3577if ${ac_cv_objext+:} false; then :
3578  $as_echo_n "(cached) " >&6
3579else
3580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581/* end confdefs.h.  */
3582
3583int
3584main ()
3585{
3586
3587  ;
3588  return 0;
3589}
3590_ACEOF
3591rm -f conftest.o conftest.obj
3592if { { ac_try="$ac_compile"
3593case "(($ac_try" in
3594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595  *) ac_try_echo=$ac_try;;
3596esac
3597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598$as_echo "$ac_try_echo"; } >&5
3599  (eval "$ac_compile") 2>&5
3600  ac_status=$?
3601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602  test $ac_status = 0; }; then :
3603  for ac_file in conftest.o conftest.obj conftest.*; do
3604  test -f "$ac_file" || continue;
3605  case $ac_file in
3606    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3607    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3608       break;;
3609  esac
3610done
3611else
3612  $as_echo "$as_me: failed program was:" >&5
3613sed 's/^/| /' conftest.$ac_ext >&5
3614
3615{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3617as_fn_error $? "cannot compute suffix of object files: cannot compile
3618See \`config.log' for more details" "$LINENO" 5; }
3619fi
3620rm -f conftest.$ac_cv_objext conftest.$ac_ext
3621fi
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3623$as_echo "$ac_cv_objext" >&6; }
3624OBJEXT=$ac_cv_objext
3625ac_objext=$OBJEXT
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3627$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3628if ${ac_cv_c_compiler_gnu+:} false; then :
3629  $as_echo_n "(cached) " >&6
3630else
3631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632/* end confdefs.h.  */
3633
3634int
3635main ()
3636{
3637#ifndef __GNUC__
3638       choke me
3639#endif
3640
3641  ;
3642  return 0;
3643}
3644_ACEOF
3645if ac_fn_c_try_compile "$LINENO"; then :
3646  ac_compiler_gnu=yes
3647else
3648  ac_compiler_gnu=no
3649fi
3650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651ac_cv_c_compiler_gnu=$ac_compiler_gnu
3652
3653fi
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3655$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3656if test $ac_compiler_gnu = yes; then
3657  GCC=yes
3658else
3659  GCC=
3660fi
3661ac_test_CFLAGS=${CFLAGS+set}
3662ac_save_CFLAGS=$CFLAGS
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3664$as_echo_n "checking whether $CC accepts -g... " >&6; }
3665if ${ac_cv_prog_cc_g+:} false; then :
3666  $as_echo_n "(cached) " >&6
3667else
3668  ac_save_c_werror_flag=$ac_c_werror_flag
3669   ac_c_werror_flag=yes
3670   ac_cv_prog_cc_g=no
3671   CFLAGS="-g"
3672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673/* end confdefs.h.  */
3674
3675int
3676main ()
3677{
3678
3679  ;
3680  return 0;
3681}
3682_ACEOF
3683if ac_fn_c_try_compile "$LINENO"; then :
3684  ac_cv_prog_cc_g=yes
3685else
3686  CFLAGS=""
3687      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688/* end confdefs.h.  */
3689
3690int
3691main ()
3692{
3693
3694  ;
3695  return 0;
3696}
3697_ACEOF
3698if ac_fn_c_try_compile "$LINENO"; then :
3699
3700else
3701  ac_c_werror_flag=$ac_save_c_werror_flag
3702	 CFLAGS="-g"
3703	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704/* end confdefs.h.  */
3705
3706int
3707main ()
3708{
3709
3710  ;
3711  return 0;
3712}
3713_ACEOF
3714if ac_fn_c_try_compile "$LINENO"; then :
3715  ac_cv_prog_cc_g=yes
3716fi
3717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718fi
3719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720fi
3721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722   ac_c_werror_flag=$ac_save_c_werror_flag
3723fi
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3725$as_echo "$ac_cv_prog_cc_g" >&6; }
3726if test "$ac_test_CFLAGS" = set; then
3727  CFLAGS=$ac_save_CFLAGS
3728elif test $ac_cv_prog_cc_g = yes; then
3729  if test "$GCC" = yes; then
3730    CFLAGS="-g -O2"
3731  else
3732    CFLAGS="-g"
3733  fi
3734else
3735  if test "$GCC" = yes; then
3736    CFLAGS="-O2"
3737  else
3738    CFLAGS=
3739  fi
3740fi
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3742$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3743if ${ac_cv_prog_cc_c89+:} false; then :
3744  $as_echo_n "(cached) " >&6
3745else
3746  ac_cv_prog_cc_c89=no
3747ac_save_CC=$CC
3748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749/* end confdefs.h.  */
3750#include <stdarg.h>
3751#include <stdio.h>
3752struct stat;
3753/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3754struct buf { int x; };
3755FILE * (*rcsopen) (struct buf *, struct stat *, int);
3756static char *e (p, i)
3757     char **p;
3758     int i;
3759{
3760  return p[i];
3761}
3762static char *f (char * (*g) (char **, int), char **p, ...)
3763{
3764  char *s;
3765  va_list v;
3766  va_start (v,p);
3767  s = g (p, va_arg (v,int));
3768  va_end (v);
3769  return s;
3770}
3771
3772/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3773   function prototypes and stuff, but not '\xHH' hex character constants.
3774   These don't provoke an error unfortunately, instead are silently treated
3775   as 'x'.  The following induces an error, until -std is added to get
3776   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3777   array size at least.  It's necessary to write '\x00'==0 to get something
3778   that's true only with -std.  */
3779int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3780
3781/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3782   inside strings and character constants.  */
3783#define FOO(x) 'x'
3784int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3785
3786int test (int i, double x);
3787struct s1 {int (*f) (int a);};
3788struct s2 {int (*f) (double a);};
3789int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3790int argc;
3791char **argv;
3792int
3793main ()
3794{
3795return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3796  ;
3797  return 0;
3798}
3799_ACEOF
3800for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3801	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3802do
3803  CC="$ac_save_CC $ac_arg"
3804  if ac_fn_c_try_compile "$LINENO"; then :
3805  ac_cv_prog_cc_c89=$ac_arg
3806fi
3807rm -f core conftest.err conftest.$ac_objext
3808  test "x$ac_cv_prog_cc_c89" != "xno" && break
3809done
3810rm -f conftest.$ac_ext
3811CC=$ac_save_CC
3812
3813fi
3814# AC_CACHE_VAL
3815case "x$ac_cv_prog_cc_c89" in
3816  x)
3817    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3818$as_echo "none needed" >&6; } ;;
3819  xno)
3820    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3821$as_echo "unsupported" >&6; } ;;
3822  *)
3823    CC="$CC $ac_cv_prog_cc_c89"
3824    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3825$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3826esac
3827if test "x$ac_cv_prog_cc_c89" != xno; then :
3828
3829fi
3830
3831ac_ext=c
3832ac_cpp='$CPP $CPPFLAGS'
3833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836
3837ac_ext=c
3838ac_cpp='$CPP $CPPFLAGS'
3839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3843$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3844if ${am_cv_prog_cc_c_o+:} false; then :
3845  $as_echo_n "(cached) " >&6
3846else
3847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848/* end confdefs.h.  */
3849
3850int
3851main ()
3852{
3853
3854  ;
3855  return 0;
3856}
3857_ACEOF
3858  # Make sure it works both with $CC and with simple cc.
3859  # Following AC_PROG_CC_C_O, we do the test twice because some
3860  # compilers refuse to overwrite an existing .o file with -o,
3861  # though they will create one.
3862  am_cv_prog_cc_c_o=yes
3863  for am_i in 1 2; do
3864    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3865   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3866   ac_status=$?
3867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868   (exit $ac_status); } \
3869         && test -f conftest2.$ac_objext; then
3870      : OK
3871    else
3872      am_cv_prog_cc_c_o=no
3873      break
3874    fi
3875  done
3876  rm -f core conftest*
3877  unset am_i
3878fi
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3880$as_echo "$am_cv_prog_cc_c_o" >&6; }
3881if test "$am_cv_prog_cc_c_o" != yes; then
3882   # Losing compiler, so override with the script.
3883   # FIXME: It is wrong to rewrite CC.
3884   # But if we don't then we get into trouble of one sort or another.
3885   # A longer-term fix would be to have automake use am__CC in this case,
3886   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3887   CC="$am_aux_dir/compile $CC"
3888fi
3889ac_ext=c
3890ac_cpp='$CPP $CPPFLAGS'
3891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894
3895DEPDIR="${am__leading_dot}deps"
3896
3897ac_config_commands="$ac_config_commands depfiles"
3898
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3900$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3901cat > confinc.mk << 'END'
3902am__doit:
3903	@echo this is the am__doit target >confinc.out
3904.PHONY: am__doit
3905END
3906am__include="#"
3907am__quote=
3908# BSD make does it like this.
3909echo '.include "confinc.mk" # ignored' > confmf.BSD
3910# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3911echo 'include confinc.mk # ignored' > confmf.GNU
3912_am_result=no
3913for s in GNU BSD; do
3914  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3915   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3916   ac_status=$?
3917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918   (exit $ac_status); }
3919  case $?:`cat confinc.out 2>/dev/null` in #(
3920  '0:this is the am__doit target') :
3921    case $s in #(
3922  BSD) :
3923    am__include='.include' am__quote='"' ;; #(
3924  *) :
3925    am__include='include' am__quote='' ;;
3926esac ;; #(
3927  *) :
3928     ;;
3929esac
3930  if test "$am__include" != "#"; then
3931    _am_result="yes ($s style)"
3932    break
3933  fi
3934done
3935rm -f confinc.* confmf.*
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3937$as_echo "${_am_result}" >&6; }
3938
3939# Check whether --enable-dependency-tracking was given.
3940if test "${enable_dependency_tracking+set}" = set; then :
3941  enableval=$enable_dependency_tracking;
3942fi
3943
3944if test "x$enable_dependency_tracking" != xno; then
3945  am_depcomp="$ac_aux_dir/depcomp"
3946  AMDEPBACKSLASH='\'
3947  am__nodep='_no'
3948fi
3949 if test "x$enable_dependency_tracking" != xno; then
3950  AMDEP_TRUE=
3951  AMDEP_FALSE='#'
3952else
3953  AMDEP_TRUE='#'
3954  AMDEP_FALSE=
3955fi
3956
3957
3958
3959depcc="$CC"   am_compiler_list=
3960
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3962$as_echo_n "checking dependency style of $depcc... " >&6; }
3963if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3964  $as_echo_n "(cached) " >&6
3965else
3966  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3967  # We make a subdir and do the tests there.  Otherwise we can end up
3968  # making bogus files that we don't know about and never remove.  For
3969  # instance it was reported that on HP-UX the gcc test will end up
3970  # making a dummy file named 'D' -- because '-MD' means "put the output
3971  # in D".
3972  rm -rf conftest.dir
3973  mkdir conftest.dir
3974  # Copy depcomp to subdir because otherwise we won't find it if we're
3975  # using a relative directory.
3976  cp "$am_depcomp" conftest.dir
3977  cd conftest.dir
3978  # We will build objects and dependencies in a subdirectory because
3979  # it helps to detect inapplicable dependency modes.  For instance
3980  # both Tru64's cc and ICC support -MD to output dependencies as a
3981  # side effect of compilation, but ICC will put the dependencies in
3982  # the current directory while Tru64 will put them in the object
3983  # directory.
3984  mkdir sub
3985
3986  am_cv_CC_dependencies_compiler_type=none
3987  if test "$am_compiler_list" = ""; then
3988     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3989  fi
3990  am__universal=false
3991  case " $depcc " in #(
3992     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3993     esac
3994
3995  for depmode in $am_compiler_list; do
3996    # Setup a source with many dependencies, because some compilers
3997    # like to wrap large dependency lists on column 80 (with \), and
3998    # we should not choose a depcomp mode which is confused by this.
3999    #
4000    # We need to recreate these files for each test, as the compiler may
4001    # overwrite some of them when testing with obscure command lines.
4002    # This happens at least with the AIX C compiler.
4003    : > sub/conftest.c
4004    for i in 1 2 3 4 5 6; do
4005      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4006      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4007      # Solaris 10 /bin/sh.
4008      echo '/* dummy */' > sub/conftst$i.h
4009    done
4010    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4011
4012    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4013    # mode.  It turns out that the SunPro C++ compiler does not properly
4014    # handle '-M -o', and we need to detect this.  Also, some Intel
4015    # versions had trouble with output in subdirs.
4016    am__obj=sub/conftest.${OBJEXT-o}
4017    am__minus_obj="-o $am__obj"
4018    case $depmode in
4019    gcc)
4020      # This depmode causes a compiler race in universal mode.
4021      test "$am__universal" = false || continue
4022      ;;
4023    nosideeffect)
4024      # After this tag, mechanisms are not by side-effect, so they'll
4025      # only be used when explicitly requested.
4026      if test "x$enable_dependency_tracking" = xyes; then
4027	continue
4028      else
4029	break
4030      fi
4031      ;;
4032    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4033      # This compiler won't grok '-c -o', but also, the minuso test has
4034      # not run yet.  These depmodes are late enough in the game, and
4035      # so weak that their functioning should not be impacted.
4036      am__obj=conftest.${OBJEXT-o}
4037      am__minus_obj=
4038      ;;
4039    none) break ;;
4040    esac
4041    if depmode=$depmode \
4042       source=sub/conftest.c object=$am__obj \
4043       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4044       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4045         >/dev/null 2>conftest.err &&
4046       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4047       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4048       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4049       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4050      # icc doesn't choke on unknown options, it will just issue warnings
4051      # or remarks (even with -Werror).  So we grep stderr for any message
4052      # that says an option was ignored or not supported.
4053      # When given -MP, icc 7.0 and 7.1 complain thusly:
4054      #   icc: Command line warning: ignoring option '-M'; no argument required
4055      # The diagnosis changed in icc 8.0:
4056      #   icc: Command line remark: option '-MP' not supported
4057      if (grep 'ignoring option' conftest.err ||
4058          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4059        am_cv_CC_dependencies_compiler_type=$depmode
4060        break
4061      fi
4062    fi
4063  done
4064
4065  cd ..
4066  rm -rf conftest.dir
4067else
4068  am_cv_CC_dependencies_compiler_type=none
4069fi
4070
4071fi
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4073$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4074CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4075
4076 if
4077  test "x$enable_dependency_tracking" != xno \
4078  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4079  am__fastdepCC_TRUE=
4080  am__fastdepCC_FALSE='#'
4081else
4082  am__fastdepCC_TRUE='#'
4083  am__fastdepCC_FALSE=
4084fi
4085
4086
4087ac_ext=c
4088ac_cpp='$CPP $CPPFLAGS'
4089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4093$as_echo_n "checking how to run the C preprocessor... " >&6; }
4094# On Suns, sometimes $CPP names a directory.
4095if test -n "$CPP" && test -d "$CPP"; then
4096  CPP=
4097fi
4098if test -z "$CPP"; then
4099  if ${ac_cv_prog_CPP+:} false; then :
4100  $as_echo_n "(cached) " >&6
4101else
4102      # Double quotes because CPP needs to be expanded
4103    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4104    do
4105      ac_preproc_ok=false
4106for ac_c_preproc_warn_flag in '' yes
4107do
4108  # Use a header file that comes with gcc, so configuring glibc
4109  # with a fresh cross-compiler works.
4110  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4111  # <limits.h> exists even on freestanding compilers.
4112  # On the NeXT, cc -E runs the code through the compiler's parser,
4113  # not just through cpp. "Syntax error" is here to catch this case.
4114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115/* end confdefs.h.  */
4116#ifdef __STDC__
4117# include <limits.h>
4118#else
4119# include <assert.h>
4120#endif
4121		     Syntax error
4122_ACEOF
4123if ac_fn_c_try_cpp "$LINENO"; then :
4124
4125else
4126  # Broken: fails on valid input.
4127continue
4128fi
4129rm -f conftest.err conftest.i conftest.$ac_ext
4130
4131  # OK, works on sane cases.  Now check whether nonexistent headers
4132  # can be detected and how.
4133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134/* end confdefs.h.  */
4135#include <ac_nonexistent.h>
4136_ACEOF
4137if ac_fn_c_try_cpp "$LINENO"; then :
4138  # Broken: success on invalid input.
4139continue
4140else
4141  # Passes both tests.
4142ac_preproc_ok=:
4143break
4144fi
4145rm -f conftest.err conftest.i conftest.$ac_ext
4146
4147done
4148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4149rm -f conftest.i conftest.err conftest.$ac_ext
4150if $ac_preproc_ok; then :
4151  break
4152fi
4153
4154    done
4155    ac_cv_prog_CPP=$CPP
4156
4157fi
4158  CPP=$ac_cv_prog_CPP
4159else
4160  ac_cv_prog_CPP=$CPP
4161fi
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4163$as_echo "$CPP" >&6; }
4164ac_preproc_ok=false
4165for ac_c_preproc_warn_flag in '' yes
4166do
4167  # Use a header file that comes with gcc, so configuring glibc
4168  # with a fresh cross-compiler works.
4169  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4170  # <limits.h> exists even on freestanding compilers.
4171  # On the NeXT, cc -E runs the code through the compiler's parser,
4172  # not just through cpp. "Syntax error" is here to catch this case.
4173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174/* end confdefs.h.  */
4175#ifdef __STDC__
4176# include <limits.h>
4177#else
4178# include <assert.h>
4179#endif
4180		     Syntax error
4181_ACEOF
4182if ac_fn_c_try_cpp "$LINENO"; then :
4183
4184else
4185  # Broken: fails on valid input.
4186continue
4187fi
4188rm -f conftest.err conftest.i conftest.$ac_ext
4189
4190  # OK, works on sane cases.  Now check whether nonexistent headers
4191  # can be detected and how.
4192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193/* end confdefs.h.  */
4194#include <ac_nonexistent.h>
4195_ACEOF
4196if ac_fn_c_try_cpp "$LINENO"; then :
4197  # Broken: success on invalid input.
4198continue
4199else
4200  # Passes both tests.
4201ac_preproc_ok=:
4202break
4203fi
4204rm -f conftest.err conftest.i conftest.$ac_ext
4205
4206done
4207# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4208rm -f conftest.i conftest.err conftest.$ac_ext
4209if $ac_preproc_ok; then :
4210
4211else
4212  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4214as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4215See \`config.log' for more details" "$LINENO" 5; }
4216fi
4217
4218ac_ext=c
4219ac_cpp='$CPP $CPPFLAGS'
4220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223
4224
4225
4226case `pwd` in
4227  *\ * | *\	*)
4228    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4229$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4230esac
4231
4232
4233
4234macro_version='2.4.2.418'
4235macro_revision='2.4.2.418'
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249ltmain=$ac_aux_dir/ltmain.sh
4250
4251# Backslashify metacharacters that are still active within
4252# double-quoted strings.
4253sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4254
4255# Same as above, but do not quote variable references.
4256double_quote_subst='s/\(["`\\]\)/\\\1/g'
4257
4258# Sed substitution to delay expansion of an escaped shell variable in a
4259# double_quote_subst'ed string.
4260delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4261
4262# Sed substitution to delay expansion of an escaped single quote.
4263delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4264
4265# Sed substitution to avoid accidental globbing in evaled expressions
4266no_glob_subst='s/\*/\\\*/g'
4267
4268ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4269ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4270ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4271
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4273$as_echo_n "checking how to print strings... " >&6; }
4274# Test print first, because it will be a builtin if present.
4275if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4276   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4277  ECHO='print -r --'
4278elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4279  ECHO='printf %s\n'
4280else
4281  # Use this function as a fallback that always works.
4282  func_fallback_echo ()
4283  {
4284    eval 'cat <<_LTECHO_EOF
4285$1
4286_LTECHO_EOF'
4287  }
4288  ECHO='func_fallback_echo'
4289fi
4290
4291# func_echo_all arg...
4292# Invoke $ECHO with all args, space-separated.
4293func_echo_all ()
4294{
4295    $ECHO ""
4296}
4297
4298case $ECHO in
4299  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4300$as_echo "printf" >&6; } ;;
4301  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4302$as_echo "print -r" >&6; } ;;
4303  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4304$as_echo "cat" >&6; } ;;
4305esac
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4321$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4322if ${ac_cv_path_SED+:} false; then :
4323  $as_echo_n "(cached) " >&6
4324else
4325            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4326     for ac_i in 1 2 3 4 5 6 7; do
4327       ac_script="$ac_script$as_nl$ac_script"
4328     done
4329     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4330     { ac_script=; unset ac_script;}
4331     if test -z "$SED"; then
4332  ac_path_SED_found=false
4333  # Loop through the user's path and test for each of PROGNAME-LIST
4334  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335for as_dir in $PATH
4336do
4337  IFS=$as_save_IFS
4338  test -z "$as_dir" && as_dir=.
4339    for ac_prog in sed gsed; do
4340    for ac_exec_ext in '' $ac_executable_extensions; do
4341      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4342      as_fn_executable_p "$ac_path_SED" || continue
4343# Check for GNU ac_path_SED and select it if it is found.
4344  # Check for GNU $ac_path_SED
4345case `"$ac_path_SED" --version 2>&1` in
4346*GNU*)
4347  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4348*)
4349  ac_count=0
4350  $as_echo_n 0123456789 >"conftest.in"
4351  while :
4352  do
4353    cat "conftest.in" "conftest.in" >"conftest.tmp"
4354    mv "conftest.tmp" "conftest.in"
4355    cp "conftest.in" "conftest.nl"
4356    $as_echo '' >> "conftest.nl"
4357    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4358    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4359    as_fn_arith $ac_count + 1 && ac_count=$as_val
4360    if test $ac_count -gt ${ac_path_SED_max-0}; then
4361      # Best one so far, save it but keep looking for a better one
4362      ac_cv_path_SED="$ac_path_SED"
4363      ac_path_SED_max=$ac_count
4364    fi
4365    # 10*(2^10) chars as input seems more than enough
4366    test $ac_count -gt 10 && break
4367  done
4368  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4369esac
4370
4371      $ac_path_SED_found && break 3
4372    done
4373  done
4374  done
4375IFS=$as_save_IFS
4376  if test -z "$ac_cv_path_SED"; then
4377    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4378  fi
4379else
4380  ac_cv_path_SED=$SED
4381fi
4382
4383fi
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4385$as_echo "$ac_cv_path_SED" >&6; }
4386 SED="$ac_cv_path_SED"
4387  rm -f conftest.sed
4388
4389test -z "$SED" && SED=sed
4390Xsed="$SED -e 1s/^X//"
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4403$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4404if ${ac_cv_path_GREP+:} false; then :
4405  $as_echo_n "(cached) " >&6
4406else
4407  if test -z "$GREP"; then
4408  ac_path_GREP_found=false
4409  # Loop through the user's path and test for each of PROGNAME-LIST
4410  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4412do
4413  IFS=$as_save_IFS
4414  test -z "$as_dir" && as_dir=.
4415    for ac_prog in grep ggrep; do
4416    for ac_exec_ext in '' $ac_executable_extensions; do
4417      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4418      as_fn_executable_p "$ac_path_GREP" || continue
4419# Check for GNU ac_path_GREP and select it if it is found.
4420  # Check for GNU $ac_path_GREP
4421case `"$ac_path_GREP" --version 2>&1` in
4422*GNU*)
4423  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4424*)
4425  ac_count=0
4426  $as_echo_n 0123456789 >"conftest.in"
4427  while :
4428  do
4429    cat "conftest.in" "conftest.in" >"conftest.tmp"
4430    mv "conftest.tmp" "conftest.in"
4431    cp "conftest.in" "conftest.nl"
4432    $as_echo 'GREP' >> "conftest.nl"
4433    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4434    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4435    as_fn_arith $ac_count + 1 && ac_count=$as_val
4436    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4437      # Best one so far, save it but keep looking for a better one
4438      ac_cv_path_GREP="$ac_path_GREP"
4439      ac_path_GREP_max=$ac_count
4440    fi
4441    # 10*(2^10) chars as input seems more than enough
4442    test $ac_count -gt 10 && break
4443  done
4444  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4445esac
4446
4447      $ac_path_GREP_found && break 3
4448    done
4449  done
4450  done
4451IFS=$as_save_IFS
4452  if test -z "$ac_cv_path_GREP"; then
4453    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4454  fi
4455else
4456  ac_cv_path_GREP=$GREP
4457fi
4458
4459fi
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4461$as_echo "$ac_cv_path_GREP" >&6; }
4462 GREP="$ac_cv_path_GREP"
4463
4464
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4466$as_echo_n "checking for egrep... " >&6; }
4467if ${ac_cv_path_EGREP+:} false; then :
4468  $as_echo_n "(cached) " >&6
4469else
4470  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4471   then ac_cv_path_EGREP="$GREP -E"
4472   else
4473     if test -z "$EGREP"; then
4474  ac_path_EGREP_found=false
4475  # Loop through the user's path and test for each of PROGNAME-LIST
4476  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4478do
4479  IFS=$as_save_IFS
4480  test -z "$as_dir" && as_dir=.
4481    for ac_prog in egrep; do
4482    for ac_exec_ext in '' $ac_executable_extensions; do
4483      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4484      as_fn_executable_p "$ac_path_EGREP" || continue
4485# Check for GNU ac_path_EGREP and select it if it is found.
4486  # Check for GNU $ac_path_EGREP
4487case `"$ac_path_EGREP" --version 2>&1` in
4488*GNU*)
4489  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4490*)
4491  ac_count=0
4492  $as_echo_n 0123456789 >"conftest.in"
4493  while :
4494  do
4495    cat "conftest.in" "conftest.in" >"conftest.tmp"
4496    mv "conftest.tmp" "conftest.in"
4497    cp "conftest.in" "conftest.nl"
4498    $as_echo 'EGREP' >> "conftest.nl"
4499    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4500    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4501    as_fn_arith $ac_count + 1 && ac_count=$as_val
4502    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4503      # Best one so far, save it but keep looking for a better one
4504      ac_cv_path_EGREP="$ac_path_EGREP"
4505      ac_path_EGREP_max=$ac_count
4506    fi
4507    # 10*(2^10) chars as input seems more than enough
4508    test $ac_count -gt 10 && break
4509  done
4510  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4511esac
4512
4513      $ac_path_EGREP_found && break 3
4514    done
4515  done
4516  done
4517IFS=$as_save_IFS
4518  if test -z "$ac_cv_path_EGREP"; then
4519    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4520  fi
4521else
4522  ac_cv_path_EGREP=$EGREP
4523fi
4524
4525   fi
4526fi
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4528$as_echo "$ac_cv_path_EGREP" >&6; }
4529 EGREP="$ac_cv_path_EGREP"
4530
4531
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4533$as_echo_n "checking for fgrep... " >&6; }
4534if ${ac_cv_path_FGREP+:} false; then :
4535  $as_echo_n "(cached) " >&6
4536else
4537  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4538   then ac_cv_path_FGREP="$GREP -F"
4539   else
4540     if test -z "$FGREP"; then
4541  ac_path_FGREP_found=false
4542  # Loop through the user's path and test for each of PROGNAME-LIST
4543  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4545do
4546  IFS=$as_save_IFS
4547  test -z "$as_dir" && as_dir=.
4548    for ac_prog in fgrep; do
4549    for ac_exec_ext in '' $ac_executable_extensions; do
4550      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4551      as_fn_executable_p "$ac_path_FGREP" || continue
4552# Check for GNU ac_path_FGREP and select it if it is found.
4553  # Check for GNU $ac_path_FGREP
4554case `"$ac_path_FGREP" --version 2>&1` in
4555*GNU*)
4556  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4557*)
4558  ac_count=0
4559  $as_echo_n 0123456789 >"conftest.in"
4560  while :
4561  do
4562    cat "conftest.in" "conftest.in" >"conftest.tmp"
4563    mv "conftest.tmp" "conftest.in"
4564    cp "conftest.in" "conftest.nl"
4565    $as_echo 'FGREP' >> "conftest.nl"
4566    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4567    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4568    as_fn_arith $ac_count + 1 && ac_count=$as_val
4569    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4570      # Best one so far, save it but keep looking for a better one
4571      ac_cv_path_FGREP="$ac_path_FGREP"
4572      ac_path_FGREP_max=$ac_count
4573    fi
4574    # 10*(2^10) chars as input seems more than enough
4575    test $ac_count -gt 10 && break
4576  done
4577  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4578esac
4579
4580      $ac_path_FGREP_found && break 3
4581    done
4582  done
4583  done
4584IFS=$as_save_IFS
4585  if test -z "$ac_cv_path_FGREP"; then
4586    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4587  fi
4588else
4589  ac_cv_path_FGREP=$FGREP
4590fi
4591
4592   fi
4593fi
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4595$as_echo "$ac_cv_path_FGREP" >&6; }
4596 FGREP="$ac_cv_path_FGREP"
4597
4598
4599test -z "$GREP" && GREP=grep
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619# Check whether --with-gnu-ld was given.
4620if test "${with_gnu_ld+set}" = set; then :
4621  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4622else
4623  with_gnu_ld=no
4624fi
4625
4626ac_prog=ld
4627if test yes = "$GCC"; then
4628  # Check if gcc -print-prog-name=ld gives a path.
4629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4630$as_echo_n "checking for ld used by $CC... " >&6; }
4631  case $host in
4632  *-*-mingw*)
4633    # gcc leaves a trailing carriage return, which upsets mingw
4634    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4635  *)
4636    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4637  esac
4638  case $ac_prog in
4639    # Accept absolute paths.
4640    [\\/]* | ?:[\\/]*)
4641      re_direlt='/[^/][^/]*/\.\./'
4642      # Canonicalize the pathname of ld
4643      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4644      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4645	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4646      done
4647      test -z "$LD" && LD=$ac_prog
4648      ;;
4649  "")
4650    # If it fails, then pretend we aren't using GCC.
4651    ac_prog=ld
4652    ;;
4653  *)
4654    # If it is relative, then search for the first ld in PATH.
4655    with_gnu_ld=unknown
4656    ;;
4657  esac
4658elif test yes = "$with_gnu_ld"; then
4659  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4660$as_echo_n "checking for GNU ld... " >&6; }
4661else
4662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4663$as_echo_n "checking for non-GNU ld... " >&6; }
4664fi
4665if ${lt_cv_path_LD+:} false; then :
4666  $as_echo_n "(cached) " >&6
4667else
4668  if test -z "$LD"; then
4669  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4670  for ac_dir in $PATH; do
4671    IFS=$lt_save_ifs
4672    test -z "$ac_dir" && ac_dir=.
4673    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4674      lt_cv_path_LD=$ac_dir/$ac_prog
4675      # Check to see if the program is GNU ld.  I'd rather use --version,
4676      # but apparently some variants of GNU ld only accept -v.
4677      # Break only if it was the GNU/non-GNU ld that we prefer.
4678      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4679      *GNU* | *'with BFD'*)
4680	test no != "$with_gnu_ld" && break
4681	;;
4682      *)
4683	test yes != "$with_gnu_ld" && break
4684	;;
4685      esac
4686    fi
4687  done
4688  IFS=$lt_save_ifs
4689else
4690  lt_cv_path_LD=$LD # Let the user override the test with a path.
4691fi
4692fi
4693
4694LD=$lt_cv_path_LD
4695if test -n "$LD"; then
4696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4697$as_echo "$LD" >&6; }
4698else
4699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700$as_echo "no" >&6; }
4701fi
4702test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4704$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4705if ${lt_cv_prog_gnu_ld+:} false; then :
4706  $as_echo_n "(cached) " >&6
4707else
4708  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4709case `$LD -v 2>&1 </dev/null` in
4710*GNU* | *'with BFD'*)
4711  lt_cv_prog_gnu_ld=yes
4712  ;;
4713*)
4714  lt_cv_prog_gnu_ld=no
4715  ;;
4716esac
4717fi
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4719$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4720with_gnu_ld=$lt_cv_prog_gnu_ld
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4731$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4732if ${lt_cv_path_NM+:} false; then :
4733  $as_echo_n "(cached) " >&6
4734else
4735  if test -n "$NM"; then
4736  # Let the user override the test.
4737  lt_cv_path_NM=$NM
4738else
4739  lt_nm_to_check=${ac_tool_prefix}nm
4740  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4741    lt_nm_to_check="$lt_nm_to_check nm"
4742  fi
4743  for lt_tmp_nm in $lt_nm_to_check; do
4744    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4745    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4746      IFS=$lt_save_ifs
4747      test -z "$ac_dir" && ac_dir=.
4748      tmp_nm=$ac_dir/$lt_tmp_nm
4749      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4750	# Check to see if the nm accepts a BSD-compat flag.
4751	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4752	#   nm: unknown option "B" ignored
4753	# Tru64's nm complains that /dev/null is an invalid object file
4754	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4755	*/dev/null* | *'Invalid file or object type'*)
4756	  lt_cv_path_NM="$tmp_nm -B"
4757	  break 2
4758	  ;;
4759	*)
4760	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4761	  */dev/null*)
4762	    lt_cv_path_NM="$tmp_nm -p"
4763	    break 2
4764	    ;;
4765	  *)
4766	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4767	    continue # so that we can try to find one that supports BSD flags
4768	    ;;
4769	  esac
4770	  ;;
4771	esac
4772      fi
4773    done
4774    IFS=$lt_save_ifs
4775  done
4776  : ${lt_cv_path_NM=no}
4777fi
4778fi
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4780$as_echo "$lt_cv_path_NM" >&6; }
4781if test no != "$lt_cv_path_NM"; then
4782  NM=$lt_cv_path_NM
4783else
4784  # Didn't find any BSD compatible name lister, look for dumpbin.
4785  if test -n "$DUMPBIN"; then :
4786    # Let the user override the test.
4787  else
4788    if test -n "$ac_tool_prefix"; then
4789  for ac_prog in dumpbin "link -dump"
4790  do
4791    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4792set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794$as_echo_n "checking for $ac_word... " >&6; }
4795if ${ac_cv_prog_DUMPBIN+:} false; then :
4796  $as_echo_n "(cached) " >&6
4797else
4798  if test -n "$DUMPBIN"; then
4799  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4800else
4801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802for as_dir in $PATH
4803do
4804  IFS=$as_save_IFS
4805  test -z "$as_dir" && as_dir=.
4806    for ac_exec_ext in '' $ac_executable_extensions; do
4807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4808    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810    break 2
4811  fi
4812done
4813  done
4814IFS=$as_save_IFS
4815
4816fi
4817fi
4818DUMPBIN=$ac_cv_prog_DUMPBIN
4819if test -n "$DUMPBIN"; then
4820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4821$as_echo "$DUMPBIN" >&6; }
4822else
4823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824$as_echo "no" >&6; }
4825fi
4826
4827
4828    test -n "$DUMPBIN" && break
4829  done
4830fi
4831if test -z "$DUMPBIN"; then
4832  ac_ct_DUMPBIN=$DUMPBIN
4833  for ac_prog in dumpbin "link -dump"
4834do
4835  # Extract the first word of "$ac_prog", so it can be a program name with args.
4836set dummy $ac_prog; ac_word=$2
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838$as_echo_n "checking for $ac_word... " >&6; }
4839if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4840  $as_echo_n "(cached) " >&6
4841else
4842  if test -n "$ac_ct_DUMPBIN"; then
4843  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4844else
4845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846for as_dir in $PATH
4847do
4848  IFS=$as_save_IFS
4849  test -z "$as_dir" && as_dir=.
4850    for ac_exec_ext in '' $ac_executable_extensions; do
4851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4852    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854    break 2
4855  fi
4856done
4857  done
4858IFS=$as_save_IFS
4859
4860fi
4861fi
4862ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4863if test -n "$ac_ct_DUMPBIN"; then
4864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4865$as_echo "$ac_ct_DUMPBIN" >&6; }
4866else
4867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868$as_echo "no" >&6; }
4869fi
4870
4871
4872  test -n "$ac_ct_DUMPBIN" && break
4873done
4874
4875  if test "x$ac_ct_DUMPBIN" = x; then
4876    DUMPBIN=":"
4877  else
4878    case $cross_compiling:$ac_tool_warned in
4879yes:)
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4882ac_tool_warned=yes ;;
4883esac
4884    DUMPBIN=$ac_ct_DUMPBIN
4885  fi
4886fi
4887
4888    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4889    *COFF*)
4890      DUMPBIN="$DUMPBIN -symbols -headers"
4891      ;;
4892    *)
4893      DUMPBIN=:
4894      ;;
4895    esac
4896  fi
4897
4898  if test : != "$DUMPBIN"; then
4899    NM=$DUMPBIN
4900  fi
4901fi
4902test -z "$NM" && NM=nm
4903
4904
4905
4906
4907
4908
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4910$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4911if ${lt_cv_nm_interface+:} false; then :
4912  $as_echo_n "(cached) " >&6
4913else
4914  lt_cv_nm_interface="BSD nm"
4915  echo "int some_variable = 0;" > conftest.$ac_ext
4916  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4917  (eval "$ac_compile" 2>conftest.err)
4918  cat conftest.err >&5
4919  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4920  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4921  cat conftest.err >&5
4922  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4923  cat conftest.out >&5
4924  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4925    lt_cv_nm_interface="MS dumpbin"
4926  fi
4927  rm -f conftest*
4928fi
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4930$as_echo "$lt_cv_nm_interface" >&6; }
4931
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4933$as_echo_n "checking whether ln -s works... " >&6; }
4934LN_S=$as_ln_s
4935if test "$LN_S" = "ln -s"; then
4936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4937$as_echo "yes" >&6; }
4938else
4939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4940$as_echo "no, using $LN_S" >&6; }
4941fi
4942
4943# find the maximum length of command line arguments
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4945$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4946if ${lt_cv_sys_max_cmd_len+:} false; then :
4947  $as_echo_n "(cached) " >&6
4948else
4949    i=0
4950  teststring=ABCD
4951
4952  case $build_os in
4953  msdosdjgpp*)
4954    # On DJGPP, this test can blow up pretty badly due to problems in libc
4955    # (any single argument exceeding 2000 bytes causes a buffer overrun
4956    # during glob expansion).  Even if it were fixed, the result of this
4957    # check would be larger than it should be.
4958    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4959    ;;
4960
4961  gnu*)
4962    # Under GNU Hurd, this test is not required because there is
4963    # no limit to the length of command line arguments.
4964    # Libtool will interpret -1 as no limit whatsoever
4965    lt_cv_sys_max_cmd_len=-1;
4966    ;;
4967
4968  cygwin* | mingw* | cegcc*)
4969    # On Win9x/ME, this test blows up -- it succeeds, but takes
4970    # about 5 minutes as the teststring grows exponentially.
4971    # Worse, since 9x/ME are not pre-emptively multitasking,
4972    # you end up with a "frozen" computer, even though with patience
4973    # the test eventually succeeds (with a max line length of 256k).
4974    # Instead, let's just punt: use the minimum linelength reported by
4975    # all of the supported platforms: 8192 (on NT/2K/XP).
4976    lt_cv_sys_max_cmd_len=8192;
4977    ;;
4978
4979  mint*)
4980    # On MiNT this can take a long time and run out of memory.
4981    lt_cv_sys_max_cmd_len=8192;
4982    ;;
4983
4984  amigaos*)
4985    # On AmigaOS with pdksh, this test takes hours, literally.
4986    # So we just punt and use a minimum line length of 8192.
4987    lt_cv_sys_max_cmd_len=8192;
4988    ;;
4989
4990  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4991    # This has been around since 386BSD, at least.  Likely further.
4992    if test -x /sbin/sysctl; then
4993      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4994    elif test -x /usr/sbin/sysctl; then
4995      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4996    else
4997      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4998    fi
4999    # And add a safety zone
5000    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5001    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5002    ;;
5003
5004  interix*)
5005    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5006    lt_cv_sys_max_cmd_len=196608
5007    ;;
5008
5009  os2*)
5010    # The test takes a long time on OS/2.
5011    lt_cv_sys_max_cmd_len=8192
5012    ;;
5013
5014  osf*)
5015    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5016    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5017    # nice to cause kernel panics so lets avoid the loop below.
5018    # First set a reasonable default.
5019    lt_cv_sys_max_cmd_len=16384
5020    #
5021    if test -x /sbin/sysconfig; then
5022      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5023        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5024      esac
5025    fi
5026    ;;
5027  sco3.2v5*)
5028    lt_cv_sys_max_cmd_len=102400
5029    ;;
5030  sysv5* | sco5v6* | sysv4.2uw2*)
5031    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5032    if test -n "$kargmax"; then
5033      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5034    else
5035      lt_cv_sys_max_cmd_len=32768
5036    fi
5037    ;;
5038  *)
5039    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5040    if test -n "$lt_cv_sys_max_cmd_len" && \
5041       test undefined != "$lt_cv_sys_max_cmd_len"; then
5042      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5043      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5044    else
5045      # Make teststring a little bigger before we do anything with it.
5046      # a 1K string should be a reasonable start.
5047      for i in 1 2 3 4 5 6 7 8; do
5048        teststring=$teststring$teststring
5049      done
5050      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5051      # If test is not a shell built-in, we'll probably end up computing a
5052      # maximum length that is only half of the actual maximum length, but
5053      # we can't tell.
5054      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5055	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5056	      test 17 != "$i" # 1/2 MB should be enough
5057      do
5058        i=`expr $i + 1`
5059        teststring=$teststring$teststring
5060      done
5061      # Only check the string length outside the loop.
5062      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5063      teststring=
5064      # Add a significant safety factor because C++ compilers can tack on
5065      # massive amounts of additional arguments before passing them to the
5066      # linker.  It appears as though 1/2 is a usable value.
5067      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5068    fi
5069    ;;
5070  esac
5071
5072fi
5073
5074if test -n "$lt_cv_sys_max_cmd_len"; then
5075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5076$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5077else
5078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5079$as_echo "none" >&6; }
5080fi
5081max_cmd_len=$lt_cv_sys_max_cmd_len
5082
5083
5084
5085
5086
5087
5088: ${CP="cp -f"}
5089: ${MV="mv -f"}
5090: ${RM="rm -f"}
5091
5092if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5093  lt_unset=unset
5094else
5095  lt_unset=false
5096fi
5097
5098
5099
5100
5101
5102# test EBCDIC or ASCII
5103case `echo X|tr X '\101'` in
5104 A) # ASCII based system
5105    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5106  lt_SP2NL='tr \040 \012'
5107  lt_NL2SP='tr \015\012 \040\040'
5108  ;;
5109 *) # EBCDIC based system
5110  lt_SP2NL='tr \100 \n'
5111  lt_NL2SP='tr \r\n \100\100'
5112  ;;
5113esac
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5124$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5125if ${lt_cv_to_host_file_cmd+:} false; then :
5126  $as_echo_n "(cached) " >&6
5127else
5128  case $host in
5129  *-*-mingw* )
5130    case $build in
5131      *-*-mingw* ) # actually msys
5132        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5133        ;;
5134      *-*-cygwin* )
5135        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5136        ;;
5137      * ) # otherwise, assume *nix
5138        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5139        ;;
5140    esac
5141    ;;
5142  *-*-cygwin* )
5143    case $build in
5144      *-*-mingw* ) # actually msys
5145        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5146        ;;
5147      *-*-cygwin* )
5148        lt_cv_to_host_file_cmd=func_convert_file_noop
5149        ;;
5150      * ) # otherwise, assume *nix
5151        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5152        ;;
5153    esac
5154    ;;
5155  * ) # unhandled hosts (and "normal" native builds)
5156    lt_cv_to_host_file_cmd=func_convert_file_noop
5157    ;;
5158esac
5159
5160fi
5161
5162to_host_file_cmd=$lt_cv_to_host_file_cmd
5163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5164$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5165
5166
5167
5168
5169
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5171$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5172if ${lt_cv_to_tool_file_cmd+:} false; then :
5173  $as_echo_n "(cached) " >&6
5174else
5175  #assume ordinary cross tools, or native build.
5176lt_cv_to_tool_file_cmd=func_convert_file_noop
5177case $host in
5178  *-*-mingw* )
5179    case $build in
5180      *-*-mingw* ) # actually msys
5181        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5182        ;;
5183    esac
5184    ;;
5185esac
5186
5187fi
5188
5189to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5191$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5192
5193
5194
5195
5196
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5198$as_echo_n "checking for $LD option to reload object files... " >&6; }
5199if ${lt_cv_ld_reload_flag+:} false; then :
5200  $as_echo_n "(cached) " >&6
5201else
5202  lt_cv_ld_reload_flag='-r'
5203fi
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5205$as_echo "$lt_cv_ld_reload_flag" >&6; }
5206reload_flag=$lt_cv_ld_reload_flag
5207case $reload_flag in
5208"" | " "*) ;;
5209*) reload_flag=" $reload_flag" ;;
5210esac
5211reload_cmds='$LD$reload_flag -o $output$reload_objs'
5212case $host_os in
5213  cygwin* | mingw* | pw32* | cegcc*)
5214    if test yes != "$GCC"; then
5215      reload_cmds=false
5216    fi
5217    ;;
5218  darwin*)
5219    if test yes = "$GCC"; then
5220      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5221    else
5222      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5223    fi
5224    ;;
5225esac
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235if test -n "$ac_tool_prefix"; then
5236  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5237set dummy ${ac_tool_prefix}objdump; ac_word=$2
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239$as_echo_n "checking for $ac_word... " >&6; }
5240if ${ac_cv_prog_OBJDUMP+:} false; then :
5241  $as_echo_n "(cached) " >&6
5242else
5243  if test -n "$OBJDUMP"; then
5244  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5245else
5246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247for as_dir in $PATH
5248do
5249  IFS=$as_save_IFS
5250  test -z "$as_dir" && as_dir=.
5251    for ac_exec_ext in '' $ac_executable_extensions; do
5252  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255    break 2
5256  fi
5257done
5258  done
5259IFS=$as_save_IFS
5260
5261fi
5262fi
5263OBJDUMP=$ac_cv_prog_OBJDUMP
5264if test -n "$OBJDUMP"; then
5265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5266$as_echo "$OBJDUMP" >&6; }
5267else
5268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269$as_echo "no" >&6; }
5270fi
5271
5272
5273fi
5274if test -z "$ac_cv_prog_OBJDUMP"; then
5275  ac_ct_OBJDUMP=$OBJDUMP
5276  # Extract the first word of "objdump", so it can be a program name with args.
5277set dummy objdump; ac_word=$2
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279$as_echo_n "checking for $ac_word... " >&6; }
5280if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5281  $as_echo_n "(cached) " >&6
5282else
5283  if test -n "$ac_ct_OBJDUMP"; then
5284  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5285else
5286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287for as_dir in $PATH
5288do
5289  IFS=$as_save_IFS
5290  test -z "$as_dir" && as_dir=.
5291    for ac_exec_ext in '' $ac_executable_extensions; do
5292  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5293    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295    break 2
5296  fi
5297done
5298  done
5299IFS=$as_save_IFS
5300
5301fi
5302fi
5303ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5304if test -n "$ac_ct_OBJDUMP"; then
5305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5306$as_echo "$ac_ct_OBJDUMP" >&6; }
5307else
5308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309$as_echo "no" >&6; }
5310fi
5311
5312  if test "x$ac_ct_OBJDUMP" = x; then
5313    OBJDUMP="false"
5314  else
5315    case $cross_compiling:$ac_tool_warned in
5316yes:)
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5319ac_tool_warned=yes ;;
5320esac
5321    OBJDUMP=$ac_ct_OBJDUMP
5322  fi
5323else
5324  OBJDUMP="$ac_cv_prog_OBJDUMP"
5325fi
5326
5327test -z "$OBJDUMP" && OBJDUMP=objdump
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5338$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5339if ${lt_cv_deplibs_check_method+:} false; then :
5340  $as_echo_n "(cached) " >&6
5341else
5342  lt_cv_file_magic_cmd='$MAGIC_CMD'
5343lt_cv_file_magic_test_file=
5344lt_cv_deplibs_check_method='unknown'
5345# Need to set the preceding variable on all platforms that support
5346# interlibrary dependencies.
5347# 'none' -- dependencies not supported.
5348# 'unknown' -- same as none, but documents that we really don't know.
5349# 'pass_all' -- all dependencies passed with no checks.
5350# 'test_compile' -- check by making test program.
5351# 'file_magic [[regex]]' -- check by looking for files in library path
5352# that responds to the $file_magic_cmd with a given extended regex.
5353# If you have 'file' or equivalent on your system and you're not sure
5354# whether 'pass_all' will *always* work, you probably want this one.
5355
5356case $host_os in
5357aix[4-9]*)
5358  lt_cv_deplibs_check_method=pass_all
5359  ;;
5360
5361beos*)
5362  lt_cv_deplibs_check_method=pass_all
5363  ;;
5364
5365bsdi[45]*)
5366  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5367  lt_cv_file_magic_cmd='/usr/bin/file -L'
5368  lt_cv_file_magic_test_file=/shlib/libc.so
5369  ;;
5370
5371cygwin*)
5372  # func_win32_libid is a shell function defined in ltmain.sh
5373  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5374  lt_cv_file_magic_cmd='func_win32_libid'
5375  ;;
5376
5377mingw* | pw32*)
5378  # Base MSYS/MinGW do not provide the 'file' command needed by
5379  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5380  # unless we find 'file', for example because we are cross-compiling.
5381  if ( file / ) >/dev/null 2>&1; then
5382    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5383    lt_cv_file_magic_cmd='func_win32_libid'
5384  else
5385    # Keep this pattern in sync with the one in func_win32_libid.
5386    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5387    lt_cv_file_magic_cmd='$OBJDUMP -f'
5388  fi
5389  ;;
5390
5391cegcc*)
5392  # use the weaker test based on 'objdump'. See mingw*.
5393  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5394  lt_cv_file_magic_cmd='$OBJDUMP -f'
5395  ;;
5396
5397darwin* | rhapsody*)
5398  lt_cv_deplibs_check_method=pass_all
5399  ;;
5400
5401freebsd* | dragonfly*)
5402  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5403    case $host_cpu in
5404    i*86 )
5405      # Not sure whether the presence of OpenBSD here was a mistake.
5406      # Let's accept both of them until this is cleared up.
5407      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5408      lt_cv_file_magic_cmd=/usr/bin/file
5409      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5410      ;;
5411    esac
5412  else
5413    lt_cv_deplibs_check_method=pass_all
5414  fi
5415  ;;
5416
5417haiku*)
5418  lt_cv_deplibs_check_method=pass_all
5419  ;;
5420
5421hpux10.20* | hpux11*)
5422  lt_cv_file_magic_cmd=/usr/bin/file
5423  case $host_cpu in
5424  ia64*)
5425    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5426    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5427    ;;
5428  hppa*64*)
5429    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]'
5430    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5431    ;;
5432  *)
5433    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5434    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5435    ;;
5436  esac
5437  ;;
5438
5439interix[3-9]*)
5440  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5441  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5442  ;;
5443
5444irix5* | irix6* | nonstopux*)
5445  case $LD in
5446  *-32|*"-32 ") libmagic=32-bit;;
5447  *-n32|*"-n32 ") libmagic=N32;;
5448  *-64|*"-64 ") libmagic=64-bit;;
5449  *) libmagic=never-match;;
5450  esac
5451  lt_cv_deplibs_check_method=pass_all
5452  ;;
5453
5454# This must be glibc/ELF.
5455linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5456  lt_cv_deplibs_check_method=pass_all
5457  ;;
5458
5459netbsd*)
5460  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5461    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5462  else
5463    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5464  fi
5465  ;;
5466
5467newos6*)
5468  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5469  lt_cv_file_magic_cmd=/usr/bin/file
5470  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5471  ;;
5472
5473*nto* | *qnx*)
5474  lt_cv_deplibs_check_method=pass_all
5475  ;;
5476
5477openbsd* | bitrig*)
5478  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5479    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5480  else
5481    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5482  fi
5483  ;;
5484
5485osf3* | osf4* | osf5*)
5486  lt_cv_deplibs_check_method=pass_all
5487  ;;
5488
5489rdos*)
5490  lt_cv_deplibs_check_method=pass_all
5491  ;;
5492
5493solaris*)
5494  lt_cv_deplibs_check_method=pass_all
5495  ;;
5496
5497sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5498  lt_cv_deplibs_check_method=pass_all
5499  ;;
5500
5501sysv4 | sysv4.3*)
5502  case $host_vendor in
5503  motorola)
5504    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]'
5505    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5506    ;;
5507  ncr)
5508    lt_cv_deplibs_check_method=pass_all
5509    ;;
5510  sequent)
5511    lt_cv_file_magic_cmd='/bin/file'
5512    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5513    ;;
5514  sni)
5515    lt_cv_file_magic_cmd='/bin/file'
5516    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5517    lt_cv_file_magic_test_file=/lib/libc.so
5518    ;;
5519  siemens)
5520    lt_cv_deplibs_check_method=pass_all
5521    ;;
5522  pc)
5523    lt_cv_deplibs_check_method=pass_all
5524    ;;
5525  esac
5526  ;;
5527
5528tpf*)
5529  lt_cv_deplibs_check_method=pass_all
5530  ;;
5531esac
5532
5533fi
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5535$as_echo "$lt_cv_deplibs_check_method" >&6; }
5536
5537file_magic_glob=
5538want_nocaseglob=no
5539if test "$build" = "$host"; then
5540  case $host_os in
5541  mingw* | pw32*)
5542    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5543      want_nocaseglob=yes
5544    else
5545      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5546    fi
5547    ;;
5548  esac
5549fi
5550
5551file_magic_cmd=$lt_cv_file_magic_cmd
5552deplibs_check_method=$lt_cv_deplibs_check_method
5553test -z "$deplibs_check_method" && deplibs_check_method=unknown
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576if test -n "$ac_tool_prefix"; then
5577  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5578set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580$as_echo_n "checking for $ac_word... " >&6; }
5581if ${ac_cv_prog_DLLTOOL+:} false; then :
5582  $as_echo_n "(cached) " >&6
5583else
5584  if test -n "$DLLTOOL"; then
5585  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5586else
5587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588for as_dir in $PATH
5589do
5590  IFS=$as_save_IFS
5591  test -z "$as_dir" && as_dir=.
5592    for ac_exec_ext in '' $ac_executable_extensions; do
5593  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596    break 2
5597  fi
5598done
5599  done
5600IFS=$as_save_IFS
5601
5602fi
5603fi
5604DLLTOOL=$ac_cv_prog_DLLTOOL
5605if test -n "$DLLTOOL"; then
5606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5607$as_echo "$DLLTOOL" >&6; }
5608else
5609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610$as_echo "no" >&6; }
5611fi
5612
5613
5614fi
5615if test -z "$ac_cv_prog_DLLTOOL"; then
5616  ac_ct_DLLTOOL=$DLLTOOL
5617  # Extract the first word of "dlltool", so it can be a program name with args.
5618set dummy dlltool; ac_word=$2
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620$as_echo_n "checking for $ac_word... " >&6; }
5621if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5622  $as_echo_n "(cached) " >&6
5623else
5624  if test -n "$ac_ct_DLLTOOL"; then
5625  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5626else
5627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628for as_dir in $PATH
5629do
5630  IFS=$as_save_IFS
5631  test -z "$as_dir" && as_dir=.
5632    for ac_exec_ext in '' $ac_executable_extensions; do
5633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636    break 2
5637  fi
5638done
5639  done
5640IFS=$as_save_IFS
5641
5642fi
5643fi
5644ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5645if test -n "$ac_ct_DLLTOOL"; then
5646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5647$as_echo "$ac_ct_DLLTOOL" >&6; }
5648else
5649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650$as_echo "no" >&6; }
5651fi
5652
5653  if test "x$ac_ct_DLLTOOL" = x; then
5654    DLLTOOL="false"
5655  else
5656    case $cross_compiling:$ac_tool_warned in
5657yes:)
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5660ac_tool_warned=yes ;;
5661esac
5662    DLLTOOL=$ac_ct_DLLTOOL
5663  fi
5664else
5665  DLLTOOL="$ac_cv_prog_DLLTOOL"
5666fi
5667
5668test -z "$DLLTOOL" && DLLTOOL=dlltool
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5680$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5681if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5682  $as_echo_n "(cached) " >&6
5683else
5684  lt_cv_sharedlib_from_linklib_cmd='unknown'
5685
5686case $host_os in
5687cygwin* | mingw* | pw32* | cegcc*)
5688  # two different shell functions defined in ltmain.sh;
5689  # decide which one to use based on capabilities of $DLLTOOL
5690  case `$DLLTOOL --help 2>&1` in
5691  *--identify-strict*)
5692    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5693    ;;
5694  *)
5695    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5696    ;;
5697  esac
5698  ;;
5699*)
5700  # fallback: assume linklib IS sharedlib
5701  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5702  ;;
5703esac
5704
5705fi
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5707$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5708sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5709test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5710
5711
5712
5713
5714
5715
5716
5717
5718if test -n "$ac_tool_prefix"; then
5719  for ac_prog in ar
5720  do
5721    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5722set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724$as_echo_n "checking for $ac_word... " >&6; }
5725if ${ac_cv_prog_AR+:} false; then :
5726  $as_echo_n "(cached) " >&6
5727else
5728  if test -n "$AR"; then
5729  ac_cv_prog_AR="$AR" # Let the user override the test.
5730else
5731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732for as_dir in $PATH
5733do
5734  IFS=$as_save_IFS
5735  test -z "$as_dir" && as_dir=.
5736    for ac_exec_ext in '' $ac_executable_extensions; do
5737  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5738    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740    break 2
5741  fi
5742done
5743  done
5744IFS=$as_save_IFS
5745
5746fi
5747fi
5748AR=$ac_cv_prog_AR
5749if test -n "$AR"; then
5750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5751$as_echo "$AR" >&6; }
5752else
5753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754$as_echo "no" >&6; }
5755fi
5756
5757
5758    test -n "$AR" && break
5759  done
5760fi
5761if test -z "$AR"; then
5762  ac_ct_AR=$AR
5763  for ac_prog in ar
5764do
5765  # Extract the first word of "$ac_prog", so it can be a program name with args.
5766set dummy $ac_prog; ac_word=$2
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768$as_echo_n "checking for $ac_word... " >&6; }
5769if ${ac_cv_prog_ac_ct_AR+:} false; then :
5770  $as_echo_n "(cached) " >&6
5771else
5772  if test -n "$ac_ct_AR"; then
5773  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5774else
5775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776for as_dir in $PATH
5777do
5778  IFS=$as_save_IFS
5779  test -z "$as_dir" && as_dir=.
5780    for ac_exec_ext in '' $ac_executable_extensions; do
5781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782    ac_cv_prog_ac_ct_AR="$ac_prog"
5783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784    break 2
5785  fi
5786done
5787  done
5788IFS=$as_save_IFS
5789
5790fi
5791fi
5792ac_ct_AR=$ac_cv_prog_ac_ct_AR
5793if test -n "$ac_ct_AR"; then
5794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5795$as_echo "$ac_ct_AR" >&6; }
5796else
5797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798$as_echo "no" >&6; }
5799fi
5800
5801
5802  test -n "$ac_ct_AR" && break
5803done
5804
5805  if test "x$ac_ct_AR" = x; then
5806    AR="false"
5807  else
5808    case $cross_compiling:$ac_tool_warned in
5809yes:)
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5812ac_tool_warned=yes ;;
5813esac
5814    AR=$ac_ct_AR
5815  fi
5816fi
5817
5818: ${AR=ar}
5819: ${AR_FLAGS=cru}
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5832$as_echo_n "checking for archiver @FILE support... " >&6; }
5833if ${lt_cv_ar_at_file+:} false; then :
5834  $as_echo_n "(cached) " >&6
5835else
5836  lt_cv_ar_at_file=no
5837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838/* end confdefs.h.  */
5839
5840int
5841main ()
5842{
5843
5844  ;
5845  return 0;
5846}
5847_ACEOF
5848if ac_fn_c_try_compile "$LINENO"; then :
5849  echo conftest.$ac_objext > conftest.lst
5850      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5851      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5852  (eval $lt_ar_try) 2>&5
5853  ac_status=$?
5854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5855  test $ac_status = 0; }
5856      if test 0 -eq "$ac_status"; then
5857	# Ensure the archiver fails upon bogus file names.
5858	rm -f conftest.$ac_objext libconftest.a
5859	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5860  (eval $lt_ar_try) 2>&5
5861  ac_status=$?
5862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5863  test $ac_status = 0; }
5864	if test 0 -ne "$ac_status"; then
5865          lt_cv_ar_at_file=@
5866        fi
5867      fi
5868      rm -f conftest.* libconftest.a
5869
5870fi
5871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872
5873fi
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5875$as_echo "$lt_cv_ar_at_file" >&6; }
5876
5877if test no = "$lt_cv_ar_at_file"; then
5878  archiver_list_spec=
5879else
5880  archiver_list_spec=$lt_cv_ar_at_file
5881fi
5882
5883
5884
5885
5886
5887
5888
5889if test -n "$ac_tool_prefix"; then
5890  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5891set dummy ${ac_tool_prefix}strip; ac_word=$2
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5893$as_echo_n "checking for $ac_word... " >&6; }
5894if ${ac_cv_prog_STRIP+:} false; then :
5895  $as_echo_n "(cached) " >&6
5896else
5897  if test -n "$STRIP"; then
5898  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5899else
5900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901for as_dir in $PATH
5902do
5903  IFS=$as_save_IFS
5904  test -z "$as_dir" && as_dir=.
5905    for ac_exec_ext in '' $ac_executable_extensions; do
5906  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5909    break 2
5910  fi
5911done
5912  done
5913IFS=$as_save_IFS
5914
5915fi
5916fi
5917STRIP=$ac_cv_prog_STRIP
5918if test -n "$STRIP"; then
5919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5920$as_echo "$STRIP" >&6; }
5921else
5922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923$as_echo "no" >&6; }
5924fi
5925
5926
5927fi
5928if test -z "$ac_cv_prog_STRIP"; then
5929  ac_ct_STRIP=$STRIP
5930  # Extract the first word of "strip", so it can be a program name with args.
5931set dummy strip; ac_word=$2
5932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933$as_echo_n "checking for $ac_word... " >&6; }
5934if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5935  $as_echo_n "(cached) " >&6
5936else
5937  if test -n "$ac_ct_STRIP"; then
5938  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5939else
5940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941for as_dir in $PATH
5942do
5943  IFS=$as_save_IFS
5944  test -z "$as_dir" && as_dir=.
5945    for ac_exec_ext in '' $ac_executable_extensions; do
5946  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5947    ac_cv_prog_ac_ct_STRIP="strip"
5948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5949    break 2
5950  fi
5951done
5952  done
5953IFS=$as_save_IFS
5954
5955fi
5956fi
5957ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5958if test -n "$ac_ct_STRIP"; then
5959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5960$as_echo "$ac_ct_STRIP" >&6; }
5961else
5962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963$as_echo "no" >&6; }
5964fi
5965
5966  if test "x$ac_ct_STRIP" = x; then
5967    STRIP=":"
5968  else
5969    case $cross_compiling:$ac_tool_warned in
5970yes:)
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5973ac_tool_warned=yes ;;
5974esac
5975    STRIP=$ac_ct_STRIP
5976  fi
5977else
5978  STRIP="$ac_cv_prog_STRIP"
5979fi
5980
5981test -z "$STRIP" && STRIP=:
5982
5983
5984
5985
5986
5987
5988if test -n "$ac_tool_prefix"; then
5989  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5990set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992$as_echo_n "checking for $ac_word... " >&6; }
5993if ${ac_cv_prog_RANLIB+:} false; then :
5994  $as_echo_n "(cached) " >&6
5995else
5996  if test -n "$RANLIB"; then
5997  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5998else
5999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000for as_dir in $PATH
6001do
6002  IFS=$as_save_IFS
6003  test -z "$as_dir" && as_dir=.
6004    for ac_exec_ext in '' $ac_executable_extensions; do
6005  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6006    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008    break 2
6009  fi
6010done
6011  done
6012IFS=$as_save_IFS
6013
6014fi
6015fi
6016RANLIB=$ac_cv_prog_RANLIB
6017if test -n "$RANLIB"; then
6018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6019$as_echo "$RANLIB" >&6; }
6020else
6021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022$as_echo "no" >&6; }
6023fi
6024
6025
6026fi
6027if test -z "$ac_cv_prog_RANLIB"; then
6028  ac_ct_RANLIB=$RANLIB
6029  # Extract the first word of "ranlib", so it can be a program name with args.
6030set dummy ranlib; ac_word=$2
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032$as_echo_n "checking for $ac_word... " >&6; }
6033if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6034  $as_echo_n "(cached) " >&6
6035else
6036  if test -n "$ac_ct_RANLIB"; then
6037  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6038else
6039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040for as_dir in $PATH
6041do
6042  IFS=$as_save_IFS
6043  test -z "$as_dir" && as_dir=.
6044    for ac_exec_ext in '' $ac_executable_extensions; do
6045  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6046    ac_cv_prog_ac_ct_RANLIB="ranlib"
6047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048    break 2
6049  fi
6050done
6051  done
6052IFS=$as_save_IFS
6053
6054fi
6055fi
6056ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6057if test -n "$ac_ct_RANLIB"; then
6058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6059$as_echo "$ac_ct_RANLIB" >&6; }
6060else
6061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062$as_echo "no" >&6; }
6063fi
6064
6065  if test "x$ac_ct_RANLIB" = x; then
6066    RANLIB=":"
6067  else
6068    case $cross_compiling:$ac_tool_warned in
6069yes:)
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6072ac_tool_warned=yes ;;
6073esac
6074    RANLIB=$ac_ct_RANLIB
6075  fi
6076else
6077  RANLIB="$ac_cv_prog_RANLIB"
6078fi
6079
6080test -z "$RANLIB" && RANLIB=:
6081
6082
6083
6084
6085
6086
6087# Determine commands to create old-style static archives.
6088old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6089old_postinstall_cmds='chmod 644 $oldlib'
6090old_postuninstall_cmds=
6091
6092if test -n "$RANLIB"; then
6093  case $host_os in
6094  bitrig* | openbsd*)
6095    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6096    ;;
6097  *)
6098    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6099    ;;
6100  esac
6101  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6102fi
6103
6104case $host_os in
6105  darwin*)
6106    lock_old_archive_extraction=yes ;;
6107  *)
6108    lock_old_archive_extraction=no ;;
6109esac
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149# If no C compiler was specified, use CC.
6150LTCC=${LTCC-"$CC"}
6151
6152# If no C compiler flags were specified, use CFLAGS.
6153LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6154
6155# Allow CC to be a program name with arguments.
6156compiler=$CC
6157
6158
6159# Check for command to grab the raw symbol name followed by C symbol from nm.
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6161$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6162if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6163  $as_echo_n "(cached) " >&6
6164else
6165
6166# These are sane defaults that work on at least a few old systems.
6167# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6168
6169# Character class describing NM global symbol codes.
6170symcode='[BCDEGRST]'
6171
6172# Regexp to match symbols that can be accessed directly from C.
6173sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6174
6175# Define system-specific variables.
6176case $host_os in
6177aix*)
6178  symcode='[BCDT]'
6179  ;;
6180cygwin* | mingw* | pw32* | cegcc*)
6181  symcode='[ABCDGISTW]'
6182  ;;
6183hpux*)
6184  if test ia64 = "$host_cpu"; then
6185    symcode='[ABCDEGRST]'
6186  fi
6187  ;;
6188irix* | nonstopux*)
6189  symcode='[BCDEGRST]'
6190  ;;
6191osf*)
6192  symcode='[BCDEGQRST]'
6193  ;;
6194solaris*)
6195  symcode='[BDRT]'
6196  ;;
6197sco3.2v5*)
6198  symcode='[DT]'
6199  ;;
6200sysv4.2uw2*)
6201  symcode='[DT]'
6202  ;;
6203sysv5* | sco5v6* | unixware* | OpenUNIX*)
6204  symcode='[ABDT]'
6205  ;;
6206sysv4)
6207  symcode='[DFNSTU]'
6208  ;;
6209esac
6210
6211# If we're using GNU nm, then use its standard symbol codes.
6212case `$NM -V 2>&1` in
6213*GNU* | *'with BFD'*)
6214  symcode='[ABCDGIRSTW]' ;;
6215esac
6216
6217if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6218  # Gets list of data symbols to import.
6219  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6220  # Adjust the below global symbol transforms to fixup imported variables.
6221  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6222  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6223  lt_c_name_lib_hook="\
6224  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6225  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6226else
6227  # Disable hooks by default.
6228  lt_cv_sys_global_symbol_to_import=
6229  lt_cdecl_hook=
6230  lt_c_name_hook=
6231  lt_c_name_lib_hook=
6232fi
6233
6234# Transform an extracted symbol line into a proper C declaration.
6235# Some systems (esp. on ia64) link data and code symbols differently,
6236# so use this general approach.
6237lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6238$lt_cdecl_hook\
6239" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6240" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6241
6242# Transform an extracted symbol line into symbol name and symbol address
6243lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6244$lt_c_name_hook\
6245" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6246" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6247
6248# Transform an extracted symbol line into symbol name with lib prefix and
6249# symbol address.
6250lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6251$lt_c_name_lib_hook\
6252" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6253" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6254" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6255
6256# Handle CRLF in mingw tool chain
6257opt_cr=
6258case $build_os in
6259mingw*)
6260  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6261  ;;
6262esac
6263
6264# Try without a prefix underscore, then with it.
6265for ac_symprfx in "" "_"; do
6266
6267  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6268  symxfrm="\\1 $ac_symprfx\\2 \\2"
6269
6270  # Write the raw and C identifiers.
6271  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6272    # Fake it for dumpbin and say T for any non-static function,
6273    # D for any global variable and I for any imported variable.
6274    # Also find C++ and __fastcall symbols from MSVC++,
6275    # which start with @ or ?.
6276    lt_cv_sys_global_symbol_pipe="$AWK '"\
6277"     {last_section=section; section=\$ 3};"\
6278"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6279"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6280"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6281"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6282"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6283"     \$ 0!~/External *\|/{next};"\
6284"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6285"     {if(hide[section]) next};"\
6286"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6287"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6288"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6289"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6290"     ' prfx=^$ac_symprfx"
6291  else
6292    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6293  fi
6294  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6295
6296  # Check to see that the pipe works correctly.
6297  pipe_works=no
6298
6299  rm -f conftest*
6300  cat > conftest.$ac_ext <<_LT_EOF
6301#ifdef __cplusplus
6302extern "C" {
6303#endif
6304char nm_test_var;
6305void nm_test_func(void);
6306void nm_test_func(void){}
6307#ifdef __cplusplus
6308}
6309#endif
6310int main(){nm_test_var='a';nm_test_func();return(0);}
6311_LT_EOF
6312
6313  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6314  (eval $ac_compile) 2>&5
6315  ac_status=$?
6316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6317  test $ac_status = 0; }; then
6318    # Now try to grab the symbols.
6319    nlist=conftest.nm
6320    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6321  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6322  ac_status=$?
6323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6324  test $ac_status = 0; } && test -s "$nlist"; then
6325      # Try sorting and uniquifying the output.
6326      if sort "$nlist" | uniq > "$nlist"T; then
6327	mv -f "$nlist"T "$nlist"
6328      else
6329	rm -f "$nlist"T
6330      fi
6331
6332      # Make sure that we snagged all the symbols we need.
6333      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6334	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6335	  cat <<_LT_EOF > conftest.$ac_ext
6336/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6337#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6338/* DATA imports from DLLs on WIN32 can't be const, because runtime
6339   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6340# define LT_DLSYM_CONST
6341#elif defined __osf__
6342/* This system does not cope well with relocations in const data.  */
6343# define LT_DLSYM_CONST
6344#else
6345# define LT_DLSYM_CONST const
6346#endif
6347
6348#ifdef __cplusplus
6349extern "C" {
6350#endif
6351
6352_LT_EOF
6353	  # Now generate the symbol file.
6354	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6355
6356	  cat <<_LT_EOF >> conftest.$ac_ext
6357
6358/* The mapping between symbol names and symbols.  */
6359LT_DLSYM_CONST struct {
6360  const char *name;
6361  void       *address;
6362}
6363lt__PROGRAM__LTX_preloaded_symbols[] =
6364{
6365  { "@PROGRAM@", (void *) 0 },
6366_LT_EOF
6367	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6368	  cat <<\_LT_EOF >> conftest.$ac_ext
6369  {0, (void *) 0}
6370};
6371
6372/* This works around a problem in FreeBSD linker */
6373#ifdef FREEBSD_WORKAROUND
6374static const void *lt_preloaded_setup() {
6375  return lt__PROGRAM__LTX_preloaded_symbols;
6376}
6377#endif
6378
6379#ifdef __cplusplus
6380}
6381#endif
6382_LT_EOF
6383	  # Now try linking the two files.
6384	  mv conftest.$ac_objext conftstm.$ac_objext
6385	  lt_globsym_save_LIBS=$LIBS
6386	  lt_globsym_save_CFLAGS=$CFLAGS
6387	  LIBS=conftstm.$ac_objext
6388	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6389	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6390  (eval $ac_link) 2>&5
6391  ac_status=$?
6392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6393  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6394	    pipe_works=yes
6395	  fi
6396	  LIBS=$lt_globsym_save_LIBS
6397	  CFLAGS=$lt_globsym_save_CFLAGS
6398	else
6399	  echo "cannot find nm_test_func in $nlist" >&5
6400	fi
6401      else
6402	echo "cannot find nm_test_var in $nlist" >&5
6403      fi
6404    else
6405      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6406    fi
6407  else
6408    echo "$progname: failed program was:" >&5
6409    cat conftest.$ac_ext >&5
6410  fi
6411  rm -rf conftest* conftst*
6412
6413  # Do not use the global_symbol_pipe unless it works.
6414  if test yes = "$pipe_works"; then
6415    break
6416  else
6417    lt_cv_sys_global_symbol_pipe=
6418  fi
6419done
6420
6421fi
6422
6423if test -z "$lt_cv_sys_global_symbol_pipe"; then
6424  lt_cv_sys_global_symbol_to_cdecl=
6425fi
6426if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6428$as_echo "failed" >&6; }
6429else
6430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6431$as_echo "ok" >&6; }
6432fi
6433
6434# Response file support.
6435if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6436  nm_file_list_spec='@'
6437elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6438  nm_file_list_spec='@'
6439fi
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
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6478$as_echo_n "checking for sysroot... " >&6; }
6479
6480# Check whether --with-sysroot was given.
6481if test "${with_sysroot+set}" = set; then :
6482  withval=$with_sysroot;
6483else
6484  with_sysroot=no
6485fi
6486
6487
6488lt_sysroot=
6489case $with_sysroot in #(
6490 yes)
6491   if test yes = "$GCC"; then
6492     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6493   fi
6494   ;; #(
6495 /*)
6496   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6497   ;; #(
6498 no|'')
6499   ;; #(
6500 *)
6501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6502$as_echo "$with_sysroot" >&6; }
6503   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6504   ;;
6505esac
6506
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6508$as_echo "${lt_sysroot:-no}" >&6; }
6509
6510
6511
6512
6513
6514# Check whether --enable-libtool-lock was given.
6515if test "${enable_libtool_lock+set}" = set; then :
6516  enableval=$enable_libtool_lock;
6517fi
6518
6519test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6520
6521# Some flags need to be propagated to the compiler or linker for good
6522# libtool support.
6523case $host in
6524ia64-*-hpux*)
6525  # Find out what ABI is being produced by ac_compile, and set mode
6526  # options accordingly.
6527  echo 'int i;' > conftest.$ac_ext
6528  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6529  (eval $ac_compile) 2>&5
6530  ac_status=$?
6531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6532  test $ac_status = 0; }; then
6533    case `/usr/bin/file conftest.$ac_objext` in
6534      *ELF-32*)
6535	HPUX_IA64_MODE=32
6536	;;
6537      *ELF-64*)
6538	HPUX_IA64_MODE=64
6539	;;
6540    esac
6541  fi
6542  rm -rf conftest*
6543  ;;
6544*-*-irix6*)
6545  # Find out what ABI is being produced by ac_compile, and set linker
6546  # options accordingly.
6547  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6548  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6549  (eval $ac_compile) 2>&5
6550  ac_status=$?
6551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6552  test $ac_status = 0; }; then
6553    if test yes = "$lt_cv_prog_gnu_ld"; then
6554      case `/usr/bin/file conftest.$ac_objext` in
6555	*32-bit*)
6556	  LD="${LD-ld} -melf32bsmip"
6557	  ;;
6558	*N32*)
6559	  LD="${LD-ld} -melf32bmipn32"
6560	  ;;
6561	*64-bit*)
6562	  LD="${LD-ld} -melf64bmip"
6563	;;
6564      esac
6565    else
6566      case `/usr/bin/file conftest.$ac_objext` in
6567	*32-bit*)
6568	  LD="${LD-ld} -32"
6569	  ;;
6570	*N32*)
6571	  LD="${LD-ld} -n32"
6572	  ;;
6573	*64-bit*)
6574	  LD="${LD-ld} -64"
6575	  ;;
6576      esac
6577    fi
6578  fi
6579  rm -rf conftest*
6580  ;;
6581
6582mips64*-*linux*)
6583  # Find out what ABI is being produced by ac_compile, and set linker
6584  # options accordingly.
6585  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6586  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6587  (eval $ac_compile) 2>&5
6588  ac_status=$?
6589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590  test $ac_status = 0; }; then
6591    emul=elf
6592    case `/usr/bin/file conftest.$ac_objext` in
6593      *32-bit*)
6594	emul="${emul}32"
6595	;;
6596      *64-bit*)
6597	emul="${emul}64"
6598	;;
6599    esac
6600    case `/usr/bin/file conftest.$ac_objext` in
6601      *MSB*)
6602	emul="${emul}btsmip"
6603	;;
6604      *LSB*)
6605	emul="${emul}ltsmip"
6606	;;
6607    esac
6608    case `/usr/bin/file conftest.$ac_objext` in
6609      *N32*)
6610	emul="${emul}n32"
6611	;;
6612    esac
6613    LD="${LD-ld} -m $emul"
6614  fi
6615  rm -rf conftest*
6616  ;;
6617
6618x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6619s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6620  # Find out what ABI is being produced by ac_compile, and set linker
6621  # options accordingly.  Note that the listed cases only cover the
6622  # situations where additional linker options are needed (such as when
6623  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6624  # vice versa); the common cases where no linker options are needed do
6625  # not appear in the list.
6626  echo 'int i;' > conftest.$ac_ext
6627  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6628  (eval $ac_compile) 2>&5
6629  ac_status=$?
6630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6631  test $ac_status = 0; }; then
6632    case `/usr/bin/file conftest.o` in
6633      *32-bit*)
6634	case $host in
6635	  x86_64-*kfreebsd*-gnu)
6636	    LD="${LD-ld} -m elf_i386_fbsd"
6637	    ;;
6638	  x86_64-*linux*)
6639	    case `/usr/bin/file conftest.o` in
6640	      *x86-64*)
6641		LD="${LD-ld} -m elf32_x86_64"
6642		;;
6643	      *)
6644		LD="${LD-ld} -m elf_i386"
6645		;;
6646	    esac
6647	    ;;
6648	  powerpc64le-*linux*)
6649	    LD="${LD-ld} -m elf32lppclinux"
6650	    ;;
6651	  powerpc64-*linux*)
6652	    LD="${LD-ld} -m elf32ppclinux"
6653	    ;;
6654	  s390x-*linux*)
6655	    LD="${LD-ld} -m elf_s390"
6656	    ;;
6657	  sparc64-*linux*)
6658	    LD="${LD-ld} -m elf32_sparc"
6659	    ;;
6660	esac
6661	;;
6662      *64-bit*)
6663	case $host in
6664	  x86_64-*kfreebsd*-gnu)
6665	    LD="${LD-ld} -m elf_x86_64_fbsd"
6666	    ;;
6667	  x86_64-*linux*)
6668	    LD="${LD-ld} -m elf_x86_64"
6669	    ;;
6670	  powerpcle-*linux*)
6671	    LD="${LD-ld} -m elf64lppc"
6672	    ;;
6673	  powerpc-*linux*)
6674	    LD="${LD-ld} -m elf64ppc"
6675	    ;;
6676	  s390*-*linux*|s390*-*tpf*)
6677	    LD="${LD-ld} -m elf64_s390"
6678	    ;;
6679	  sparc*-*linux*)
6680	    LD="${LD-ld} -m elf64_sparc"
6681	    ;;
6682	esac
6683	;;
6684    esac
6685  fi
6686  rm -rf conftest*
6687  ;;
6688
6689*-*-sco3.2v5*)
6690  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6691  SAVE_CFLAGS=$CFLAGS
6692  CFLAGS="$CFLAGS -belf"
6693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6694$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6695if ${lt_cv_cc_needs_belf+:} false; then :
6696  $as_echo_n "(cached) " >&6
6697else
6698  ac_ext=c
6699ac_cpp='$CPP $CPPFLAGS'
6700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6702ac_compiler_gnu=$ac_cv_c_compiler_gnu
6703
6704     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705/* end confdefs.h.  */
6706
6707int
6708main ()
6709{
6710
6711  ;
6712  return 0;
6713}
6714_ACEOF
6715if ac_fn_c_try_link "$LINENO"; then :
6716  lt_cv_cc_needs_belf=yes
6717else
6718  lt_cv_cc_needs_belf=no
6719fi
6720rm -f core conftest.err conftest.$ac_objext \
6721    conftest$ac_exeext conftest.$ac_ext
6722     ac_ext=c
6723ac_cpp='$CPP $CPPFLAGS'
6724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6726ac_compiler_gnu=$ac_cv_c_compiler_gnu
6727
6728fi
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6730$as_echo "$lt_cv_cc_needs_belf" >&6; }
6731  if test yes != "$lt_cv_cc_needs_belf"; then
6732    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6733    CFLAGS=$SAVE_CFLAGS
6734  fi
6735  ;;
6736*-*solaris*)
6737  # Find out what ABI is being produced by ac_compile, and set linker
6738  # options accordingly.
6739  echo 'int i;' > conftest.$ac_ext
6740  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6741  (eval $ac_compile) 2>&5
6742  ac_status=$?
6743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6744  test $ac_status = 0; }; then
6745    case `/usr/bin/file conftest.o` in
6746    *64-bit*)
6747      case $lt_cv_prog_gnu_ld in
6748      yes*)
6749        case $host in
6750        i?86-*-solaris*|x86_64-*-solaris*)
6751          LD="${LD-ld} -m elf_x86_64"
6752          ;;
6753        sparc*-*-solaris*)
6754          LD="${LD-ld} -m elf64_sparc"
6755          ;;
6756        esac
6757        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6758        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6759          LD=${LD-ld}_sol2
6760        fi
6761        ;;
6762      *)
6763	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6764	  LD="${LD-ld} -64"
6765	fi
6766	;;
6767      esac
6768      ;;
6769    esac
6770  fi
6771  rm -rf conftest*
6772  ;;
6773esac
6774
6775need_locks=$enable_libtool_lock
6776
6777if test -n "$ac_tool_prefix"; then
6778  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6779set dummy ${ac_tool_prefix}mt; ac_word=$2
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6781$as_echo_n "checking for $ac_word... " >&6; }
6782if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6783  $as_echo_n "(cached) " >&6
6784else
6785  if test -n "$MANIFEST_TOOL"; then
6786  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6787else
6788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789for as_dir in $PATH
6790do
6791  IFS=$as_save_IFS
6792  test -z "$as_dir" && as_dir=.
6793    for ac_exec_ext in '' $ac_executable_extensions; do
6794  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6795    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797    break 2
6798  fi
6799done
6800  done
6801IFS=$as_save_IFS
6802
6803fi
6804fi
6805MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6806if test -n "$MANIFEST_TOOL"; then
6807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6808$as_echo "$MANIFEST_TOOL" >&6; }
6809else
6810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811$as_echo "no" >&6; }
6812fi
6813
6814
6815fi
6816if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6817  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6818  # Extract the first word of "mt", so it can be a program name with args.
6819set dummy mt; ac_word=$2
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821$as_echo_n "checking for $ac_word... " >&6; }
6822if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6823  $as_echo_n "(cached) " >&6
6824else
6825  if test -n "$ac_ct_MANIFEST_TOOL"; then
6826  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6827else
6828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829for as_dir in $PATH
6830do
6831  IFS=$as_save_IFS
6832  test -z "$as_dir" && as_dir=.
6833    for ac_exec_ext in '' $ac_executable_extensions; do
6834  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6835    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837    break 2
6838  fi
6839done
6840  done
6841IFS=$as_save_IFS
6842
6843fi
6844fi
6845ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6846if test -n "$ac_ct_MANIFEST_TOOL"; then
6847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6848$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6849else
6850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851$as_echo "no" >&6; }
6852fi
6853
6854  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6855    MANIFEST_TOOL=":"
6856  else
6857    case $cross_compiling:$ac_tool_warned in
6858yes:)
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6861ac_tool_warned=yes ;;
6862esac
6863    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6864  fi
6865else
6866  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6867fi
6868
6869test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6871$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6872if ${lt_cv_path_mainfest_tool+:} false; then :
6873  $as_echo_n "(cached) " >&6
6874else
6875  lt_cv_path_mainfest_tool=no
6876  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6877  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6878  cat conftest.err >&5
6879  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6880    lt_cv_path_mainfest_tool=yes
6881  fi
6882  rm -f conftest*
6883fi
6884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6885$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6886if test yes != "$lt_cv_path_mainfest_tool"; then
6887  MANIFEST_TOOL=:
6888fi
6889
6890
6891
6892
6893
6894
6895  case $host_os in
6896    rhapsody* | darwin*)
6897    if test -n "$ac_tool_prefix"; then
6898  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6899set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901$as_echo_n "checking for $ac_word... " >&6; }
6902if ${ac_cv_prog_DSYMUTIL+:} false; then :
6903  $as_echo_n "(cached) " >&6
6904else
6905  if test -n "$DSYMUTIL"; then
6906  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6907else
6908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909for as_dir in $PATH
6910do
6911  IFS=$as_save_IFS
6912  test -z "$as_dir" && as_dir=.
6913    for ac_exec_ext in '' $ac_executable_extensions; do
6914  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6915    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917    break 2
6918  fi
6919done
6920  done
6921IFS=$as_save_IFS
6922
6923fi
6924fi
6925DSYMUTIL=$ac_cv_prog_DSYMUTIL
6926if test -n "$DSYMUTIL"; then
6927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6928$as_echo "$DSYMUTIL" >&6; }
6929else
6930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931$as_echo "no" >&6; }
6932fi
6933
6934
6935fi
6936if test -z "$ac_cv_prog_DSYMUTIL"; then
6937  ac_ct_DSYMUTIL=$DSYMUTIL
6938  # Extract the first word of "dsymutil", so it can be a program name with args.
6939set dummy dsymutil; ac_word=$2
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941$as_echo_n "checking for $ac_word... " >&6; }
6942if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6943  $as_echo_n "(cached) " >&6
6944else
6945  if test -n "$ac_ct_DSYMUTIL"; then
6946  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6947else
6948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH
6950do
6951  IFS=$as_save_IFS
6952  test -z "$as_dir" && as_dir=.
6953    for ac_exec_ext in '' $ac_executable_extensions; do
6954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957    break 2
6958  fi
6959done
6960  done
6961IFS=$as_save_IFS
6962
6963fi
6964fi
6965ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6966if test -n "$ac_ct_DSYMUTIL"; then
6967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6968$as_echo "$ac_ct_DSYMUTIL" >&6; }
6969else
6970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971$as_echo "no" >&6; }
6972fi
6973
6974  if test "x$ac_ct_DSYMUTIL" = x; then
6975    DSYMUTIL=":"
6976  else
6977    case $cross_compiling:$ac_tool_warned in
6978yes:)
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981ac_tool_warned=yes ;;
6982esac
6983    DSYMUTIL=$ac_ct_DSYMUTIL
6984  fi
6985else
6986  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6987fi
6988
6989    if test -n "$ac_tool_prefix"; then
6990  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6991set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993$as_echo_n "checking for $ac_word... " >&6; }
6994if ${ac_cv_prog_NMEDIT+:} false; then :
6995  $as_echo_n "(cached) " >&6
6996else
6997  if test -n "$NMEDIT"; then
6998  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6999else
7000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001for as_dir in $PATH
7002do
7003  IFS=$as_save_IFS
7004  test -z "$as_dir" && as_dir=.
7005    for ac_exec_ext in '' $ac_executable_extensions; do
7006  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009    break 2
7010  fi
7011done
7012  done
7013IFS=$as_save_IFS
7014
7015fi
7016fi
7017NMEDIT=$ac_cv_prog_NMEDIT
7018if test -n "$NMEDIT"; then
7019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7020$as_echo "$NMEDIT" >&6; }
7021else
7022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023$as_echo "no" >&6; }
7024fi
7025
7026
7027fi
7028if test -z "$ac_cv_prog_NMEDIT"; then
7029  ac_ct_NMEDIT=$NMEDIT
7030  # Extract the first word of "nmedit", so it can be a program name with args.
7031set dummy nmedit; ac_word=$2
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033$as_echo_n "checking for $ac_word... " >&6; }
7034if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7035  $as_echo_n "(cached) " >&6
7036else
7037  if test -n "$ac_ct_NMEDIT"; then
7038  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7039else
7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043  IFS=$as_save_IFS
7044  test -z "$as_dir" && as_dir=.
7045    for ac_exec_ext in '' $ac_executable_extensions; do
7046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049    break 2
7050  fi
7051done
7052  done
7053IFS=$as_save_IFS
7054
7055fi
7056fi
7057ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7058if test -n "$ac_ct_NMEDIT"; then
7059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7060$as_echo "$ac_ct_NMEDIT" >&6; }
7061else
7062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063$as_echo "no" >&6; }
7064fi
7065
7066  if test "x$ac_ct_NMEDIT" = x; then
7067    NMEDIT=":"
7068  else
7069    case $cross_compiling:$ac_tool_warned in
7070yes:)
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073ac_tool_warned=yes ;;
7074esac
7075    NMEDIT=$ac_ct_NMEDIT
7076  fi
7077else
7078  NMEDIT="$ac_cv_prog_NMEDIT"
7079fi
7080
7081    if test -n "$ac_tool_prefix"; then
7082  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7083set dummy ${ac_tool_prefix}lipo; ac_word=$2
7084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085$as_echo_n "checking for $ac_word... " >&6; }
7086if ${ac_cv_prog_LIPO+:} false; then :
7087  $as_echo_n "(cached) " >&6
7088else
7089  if test -n "$LIPO"; then
7090  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7091else
7092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093for as_dir in $PATH
7094do
7095  IFS=$as_save_IFS
7096  test -z "$as_dir" && as_dir=.
7097    for ac_exec_ext in '' $ac_executable_extensions; do
7098  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7099    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7100    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101    break 2
7102  fi
7103done
7104  done
7105IFS=$as_save_IFS
7106
7107fi
7108fi
7109LIPO=$ac_cv_prog_LIPO
7110if test -n "$LIPO"; then
7111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7112$as_echo "$LIPO" >&6; }
7113else
7114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115$as_echo "no" >&6; }
7116fi
7117
7118
7119fi
7120if test -z "$ac_cv_prog_LIPO"; then
7121  ac_ct_LIPO=$LIPO
7122  # Extract the first word of "lipo", so it can be a program name with args.
7123set dummy lipo; ac_word=$2
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125$as_echo_n "checking for $ac_word... " >&6; }
7126if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7127  $as_echo_n "(cached) " >&6
7128else
7129  if test -n "$ac_ct_LIPO"; then
7130  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7131else
7132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135  IFS=$as_save_IFS
7136  test -z "$as_dir" && as_dir=.
7137    for ac_exec_ext in '' $ac_executable_extensions; do
7138  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139    ac_cv_prog_ac_ct_LIPO="lipo"
7140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141    break 2
7142  fi
7143done
7144  done
7145IFS=$as_save_IFS
7146
7147fi
7148fi
7149ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7150if test -n "$ac_ct_LIPO"; then
7151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7152$as_echo "$ac_ct_LIPO" >&6; }
7153else
7154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155$as_echo "no" >&6; }
7156fi
7157
7158  if test "x$ac_ct_LIPO" = x; then
7159    LIPO=":"
7160  else
7161    case $cross_compiling:$ac_tool_warned in
7162yes:)
7163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7165ac_tool_warned=yes ;;
7166esac
7167    LIPO=$ac_ct_LIPO
7168  fi
7169else
7170  LIPO="$ac_cv_prog_LIPO"
7171fi
7172
7173    if test -n "$ac_tool_prefix"; then
7174  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7175set dummy ${ac_tool_prefix}otool; 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_OTOOL+:} false; then :
7179  $as_echo_n "(cached) " >&6
7180else
7181  if test -n "$OTOOL"; then
7182  ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool"
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
7201OTOOL=$ac_cv_prog_OTOOL
7202if test -n "$OTOOL"; then
7203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7204$as_echo "$OTOOL" >&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_OTOOL"; then
7213  ac_ct_OTOOL=$OTOOL
7214  # Extract the first word of "otool", so it can be a program name with args.
7215set dummy otool; 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_OTOOL+:} false; then :
7219  $as_echo_n "(cached) " >&6
7220else
7221  if test -n "$ac_ct_OTOOL"; then
7222  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_OTOOL="otool"
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_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7242if test -n "$ac_ct_OTOOL"; then
7243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7244$as_echo "$ac_ct_OTOOL" >&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_OTOOL" = x; then
7251    OTOOL=":"
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    OTOOL=$ac_ct_OTOOL
7260  fi
7261else
7262  OTOOL="$ac_cv_prog_OTOOL"
7263fi
7264
7265    if test -n "$ac_tool_prefix"; then
7266  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7267set dummy ${ac_tool_prefix}otool64; ac_word=$2
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269$as_echo_n "checking for $ac_word... " >&6; }
7270if ${ac_cv_prog_OTOOL64+:} false; then :
7271  $as_echo_n "(cached) " >&6
7272else
7273  if test -n "$OTOOL64"; then
7274  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7275else
7276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277for as_dir in $PATH
7278do
7279  IFS=$as_save_IFS
7280  test -z "$as_dir" && as_dir=.
7281    for ac_exec_ext in '' $ac_executable_extensions; do
7282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285    break 2
7286  fi
7287done
7288  done
7289IFS=$as_save_IFS
7290
7291fi
7292fi
7293OTOOL64=$ac_cv_prog_OTOOL64
7294if test -n "$OTOOL64"; then
7295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7296$as_echo "$OTOOL64" >&6; }
7297else
7298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299$as_echo "no" >&6; }
7300fi
7301
7302
7303fi
7304if test -z "$ac_cv_prog_OTOOL64"; then
7305  ac_ct_OTOOL64=$OTOOL64
7306  # Extract the first word of "otool64", so it can be a program name with args.
7307set dummy otool64; ac_word=$2
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309$as_echo_n "checking for $ac_word... " >&6; }
7310if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7311  $as_echo_n "(cached) " >&6
7312else
7313  if test -n "$ac_ct_OTOOL64"; then
7314  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7315else
7316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317for as_dir in $PATH
7318do
7319  IFS=$as_save_IFS
7320  test -z "$as_dir" && as_dir=.
7321    for ac_exec_ext in '' $ac_executable_extensions; do
7322  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323    ac_cv_prog_ac_ct_OTOOL64="otool64"
7324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325    break 2
7326  fi
7327done
7328  done
7329IFS=$as_save_IFS
7330
7331fi
7332fi
7333ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7334if test -n "$ac_ct_OTOOL64"; then
7335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7336$as_echo "$ac_ct_OTOOL64" >&6; }
7337else
7338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339$as_echo "no" >&6; }
7340fi
7341
7342  if test "x$ac_ct_OTOOL64" = x; then
7343    OTOOL64=":"
7344  else
7345    case $cross_compiling:$ac_tool_warned in
7346yes:)
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7349ac_tool_warned=yes ;;
7350esac
7351    OTOOL64=$ac_ct_OTOOL64
7352  fi
7353else
7354  OTOOL64="$ac_cv_prog_OTOOL64"
7355fi
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7384$as_echo_n "checking for -single_module linker flag... " >&6; }
7385if ${lt_cv_apple_cc_single_mod+:} false; then :
7386  $as_echo_n "(cached) " >&6
7387else
7388  lt_cv_apple_cc_single_mod=no
7389      if test -z "$LT_MULTI_MODULE"; then
7390	# By default we will add the -single_module flag. You can override
7391	# by either setting the environment variable LT_MULTI_MODULE
7392	# non-empty at configure time, or by adding -multi_module to the
7393	# link flags.
7394	rm -rf libconftest.dylib*
7395	echo "int foo(void){return 1;}" > conftest.c
7396	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7397-dynamiclib -Wl,-single_module conftest.c" >&5
7398	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7399	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7400        _lt_result=$?
7401	# If there is a non-empty error log, and "single_module"
7402	# appears in it, assume the flag caused a linker warning
7403        if test -s conftest.err && $GREP single_module conftest.err; then
7404	  cat conftest.err >&5
7405	# Otherwise, if the output was created with a 0 exit code from
7406	# the compiler, it worked.
7407	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7408	  lt_cv_apple_cc_single_mod=yes
7409	else
7410	  cat conftest.err >&5
7411	fi
7412	rm -rf libconftest.dylib*
7413	rm -f conftest.*
7414      fi
7415fi
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7417$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7418
7419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7420$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7421if ${lt_cv_ld_exported_symbols_list+:} false; then :
7422  $as_echo_n "(cached) " >&6
7423else
7424  lt_cv_ld_exported_symbols_list=no
7425      save_LDFLAGS=$LDFLAGS
7426      echo "_main" > conftest.sym
7427      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7428      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429/* end confdefs.h.  */
7430
7431int
7432main ()
7433{
7434
7435  ;
7436  return 0;
7437}
7438_ACEOF
7439if ac_fn_c_try_link "$LINENO"; then :
7440  lt_cv_ld_exported_symbols_list=yes
7441else
7442  lt_cv_ld_exported_symbols_list=no
7443fi
7444rm -f core conftest.err conftest.$ac_objext \
7445    conftest$ac_exeext conftest.$ac_ext
7446	LDFLAGS=$save_LDFLAGS
7447
7448fi
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7450$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7451
7452    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7453$as_echo_n "checking for -force_load linker flag... " >&6; }
7454if ${lt_cv_ld_force_load+:} false; then :
7455  $as_echo_n "(cached) " >&6
7456else
7457  lt_cv_ld_force_load=no
7458      cat > conftest.c << _LT_EOF
7459int forced_loaded() { return 2;}
7460_LT_EOF
7461      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7462      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7463      echo "$AR cru libconftest.a conftest.o" >&5
7464      $AR cru libconftest.a conftest.o 2>&5
7465      echo "$RANLIB libconftest.a" >&5
7466      $RANLIB libconftest.a 2>&5
7467      cat > conftest.c << _LT_EOF
7468int main() { return 0;}
7469_LT_EOF
7470      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7471      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7472      _lt_result=$?
7473      if test -s conftest.err && $GREP force_load conftest.err; then
7474	cat conftest.err >&5
7475      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7476	lt_cv_ld_force_load=yes
7477      else
7478	cat conftest.err >&5
7479      fi
7480        rm -f conftest.err libconftest.a conftest conftest.c
7481        rm -rf conftest.dSYM
7482
7483fi
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7485$as_echo "$lt_cv_ld_force_load" >&6; }
7486    case $host_os in
7487    rhapsody* | darwin1.[012])
7488      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7489    darwin1.*)
7490      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7491    darwin*) # darwin 5.x on
7492      # if running on 10.5 or later, the deployment target defaults
7493      # to the OS version, if on x86, and 10.4, the deployment
7494      # target defaults to 10.4. Don't you love it?
7495      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7496	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7497	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7498	10.[012]*)
7499	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7500	10.*)
7501	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7502      esac
7503    ;;
7504  esac
7505    if test yes = "$lt_cv_apple_cc_single_mod"; then
7506      _lt_dar_single_mod='$single_module'
7507    fi
7508    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7509      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7510    else
7511      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7512    fi
7513    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7514      _lt_dsymutil='~$DSYMUTIL $lib || :'
7515    else
7516      _lt_dsymutil=
7517    fi
7518    ;;
7519  esac
7520
7521
7522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7523$as_echo_n "checking for ANSI C header files... " >&6; }
7524if ${ac_cv_header_stdc+:} false; then :
7525  $as_echo_n "(cached) " >&6
7526else
7527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528/* end confdefs.h.  */
7529#include <stdlib.h>
7530#include <stdarg.h>
7531#include <string.h>
7532#include <float.h>
7533
7534int
7535main ()
7536{
7537
7538  ;
7539  return 0;
7540}
7541_ACEOF
7542if ac_fn_c_try_compile "$LINENO"; then :
7543  ac_cv_header_stdc=yes
7544else
7545  ac_cv_header_stdc=no
7546fi
7547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548
7549if test $ac_cv_header_stdc = yes; then
7550  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552/* end confdefs.h.  */
7553#include <string.h>
7554
7555_ACEOF
7556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7557  $EGREP "memchr" >/dev/null 2>&1; then :
7558
7559else
7560  ac_cv_header_stdc=no
7561fi
7562rm -f conftest*
7563
7564fi
7565
7566if test $ac_cv_header_stdc = yes; then
7567  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569/* end confdefs.h.  */
7570#include <stdlib.h>
7571
7572_ACEOF
7573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7574  $EGREP "free" >/dev/null 2>&1; then :
7575
7576else
7577  ac_cv_header_stdc=no
7578fi
7579rm -f conftest*
7580
7581fi
7582
7583if test $ac_cv_header_stdc = yes; then
7584  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7585  if test "$cross_compiling" = yes; then :
7586  :
7587else
7588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589/* end confdefs.h.  */
7590#include <ctype.h>
7591#include <stdlib.h>
7592#if ((' ' & 0x0FF) == 0x020)
7593# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7594# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7595#else
7596# define ISLOWER(c) \
7597		   (('a' <= (c) && (c) <= 'i') \
7598		     || ('j' <= (c) && (c) <= 'r') \
7599		     || ('s' <= (c) && (c) <= 'z'))
7600# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7601#endif
7602
7603#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7604int
7605main ()
7606{
7607  int i;
7608  for (i = 0; i < 256; i++)
7609    if (XOR (islower (i), ISLOWER (i))
7610	|| toupper (i) != TOUPPER (i))
7611      return 2;
7612  return 0;
7613}
7614_ACEOF
7615if ac_fn_c_try_run "$LINENO"; then :
7616
7617else
7618  ac_cv_header_stdc=no
7619fi
7620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7621  conftest.$ac_objext conftest.beam conftest.$ac_ext
7622fi
7623
7624fi
7625fi
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7627$as_echo "$ac_cv_header_stdc" >&6; }
7628if test $ac_cv_header_stdc = yes; then
7629
7630$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7631
7632fi
7633
7634# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7635for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7636		  inttypes.h stdint.h unistd.h
7637do :
7638  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7639ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7640"
7641if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7642  cat >>confdefs.h <<_ACEOF
7643#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7644_ACEOF
7645
7646fi
7647
7648done
7649
7650
7651for ac_header in dlfcn.h
7652do :
7653  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7654"
7655if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7656  cat >>confdefs.h <<_ACEOF
7657#define HAVE_DLFCN_H 1
7658_ACEOF
7659
7660fi
7661
7662done
7663
7664
7665
7666
7667
7668# Set options
7669
7670
7671
7672        enable_dlopen=no
7673
7674
7675  enable_win32_dll=no
7676
7677
7678            # Check whether --enable-shared was given.
7679if test "${enable_shared+set}" = set; then :
7680  enableval=$enable_shared; p=${PACKAGE-default}
7681    case $enableval in
7682    yes) enable_shared=yes ;;
7683    no) enable_shared=no ;;
7684    *)
7685      enable_shared=no
7686      # Look at the argument we got.  We use all the common list separators.
7687      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7688      for pkg in $enableval; do
7689	IFS=$lt_save_ifs
7690	if test "X$pkg" = "X$p"; then
7691	  enable_shared=yes
7692	fi
7693      done
7694      IFS=$lt_save_ifs
7695      ;;
7696    esac
7697else
7698  enable_shared=yes
7699fi
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709  # Check whether --enable-static was given.
7710if test "${enable_static+set}" = set; then :
7711  enableval=$enable_static; p=${PACKAGE-default}
7712    case $enableval in
7713    yes) enable_static=yes ;;
7714    no) enable_static=no ;;
7715    *)
7716     enable_static=no
7717      # Look at the argument we got.  We use all the common list separators.
7718      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7719      for pkg in $enableval; do
7720	IFS=$lt_save_ifs
7721	if test "X$pkg" = "X$p"; then
7722	  enable_static=yes
7723	fi
7724      done
7725      IFS=$lt_save_ifs
7726      ;;
7727    esac
7728else
7729  enable_static=yes
7730fi
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741# Check whether --with-pic was given.
7742if test "${with_pic+set}" = set; then :
7743  withval=$with_pic; lt_p=${PACKAGE-default}
7744    case $withval in
7745    yes|no) pic_mode=$withval ;;
7746    *)
7747      pic_mode=default
7748      # Look at the argument we got.  We use all the common list separators.
7749      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7750      for lt_pkg in $withval; do
7751	IFS=$lt_save_ifs
7752	if test "X$lt_pkg" = "X$lt_p"; then
7753	  pic_mode=yes
7754	fi
7755      done
7756      IFS=$lt_save_ifs
7757      ;;
7758    esac
7759else
7760  pic_mode=default
7761fi
7762
7763
7764
7765
7766
7767
7768
7769
7770  # Check whether --enable-fast-install was given.
7771if test "${enable_fast_install+set}" = set; then :
7772  enableval=$enable_fast_install; p=${PACKAGE-default}
7773    case $enableval in
7774    yes) enable_fast_install=yes ;;
7775    no) enable_fast_install=no ;;
7776    *)
7777      enable_fast_install=no
7778      # Look at the argument we got.  We use all the common list separators.
7779      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7780      for pkg in $enableval; do
7781	IFS=$lt_save_ifs
7782	if test "X$pkg" = "X$p"; then
7783	  enable_fast_install=yes
7784	fi
7785      done
7786      IFS=$lt_save_ifs
7787      ;;
7788    esac
7789else
7790  enable_fast_install=yes
7791fi
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803# This can be used to rebuild libtool when needed
7804LIBTOOL_DEPS=$ltmain
7805
7806# Always use our own libtool.
7807LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838test -z "$LN_S" && LN_S="ln -s"
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853if test -n "${ZSH_VERSION+set}"; then
7854   setopt NO_GLOB_SUBST
7855fi
7856
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7858$as_echo_n "checking for objdir... " >&6; }
7859if ${lt_cv_objdir+:} false; then :
7860  $as_echo_n "(cached) " >&6
7861else
7862  rm -f .libs 2>/dev/null
7863mkdir .libs 2>/dev/null
7864if test -d .libs; then
7865  lt_cv_objdir=.libs
7866else
7867  # MS-DOS does not allow filenames that begin with a dot.
7868  lt_cv_objdir=_libs
7869fi
7870rmdir .libs 2>/dev/null
7871fi
7872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7873$as_echo "$lt_cv_objdir" >&6; }
7874objdir=$lt_cv_objdir
7875
7876
7877
7878
7879
7880cat >>confdefs.h <<_ACEOF
7881#define LT_OBJDIR "$lt_cv_objdir/"
7882_ACEOF
7883
7884
7885
7886
7887case $host_os in
7888aix3*)
7889  # AIX sometimes has problems with the GCC collect2 program.  For some
7890  # reason, if we set the COLLECT_NAMES environment variable, the problems
7891  # vanish in a puff of smoke.
7892  if test set != "${COLLECT_NAMES+set}"; then
7893    COLLECT_NAMES=
7894    export COLLECT_NAMES
7895  fi
7896  ;;
7897esac
7898
7899# Global variables:
7900ofile=libtool
7901can_build_shared=yes
7902
7903# All known linkers require a '.a' archive for static linking (except MSVC,
7904# which needs '.lib').
7905libext=a
7906
7907with_gnu_ld=$lt_cv_prog_gnu_ld
7908
7909old_CC=$CC
7910old_CFLAGS=$CFLAGS
7911
7912# Set sane defaults for various variables
7913test -z "$CC" && CC=cc
7914test -z "$LTCC" && LTCC=$CC
7915test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7916test -z "$LD" && LD=ld
7917test -z "$ac_objext" && ac_objext=o
7918
7919for cc_temp in $compiler""; do
7920  case $cc_temp in
7921    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7922    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7923    \-*) ;;
7924    *) break;;
7925  esac
7926done
7927cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7928
7929
7930# Only perform the check for file, if the check method requires it
7931test -z "$MAGIC_CMD" && MAGIC_CMD=file
7932case $deplibs_check_method in
7933file_magic*)
7934  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7935    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7936$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7937if ${lt_cv_path_MAGIC_CMD+:} false; then :
7938  $as_echo_n "(cached) " >&6
7939else
7940  case $MAGIC_CMD in
7941[\\/*] |  ?:[\\/]*)
7942  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7943  ;;
7944*)
7945  lt_save_MAGIC_CMD=$MAGIC_CMD
7946  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7947  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7948  for ac_dir in $ac_dummy; do
7949    IFS=$lt_save_ifs
7950    test -z "$ac_dir" && ac_dir=.
7951    if test -f "$ac_dir/${ac_tool_prefix}file"; then
7952      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7953      if test -n "$file_magic_test_file"; then
7954	case $deplibs_check_method in
7955	"file_magic "*)
7956	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7957	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7958	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7959	    $EGREP "$file_magic_regex" > /dev/null; then
7960	    :
7961	  else
7962	    cat <<_LT_EOF 1>&2
7963
7964*** Warning: the command libtool uses to detect shared libraries,
7965*** $file_magic_cmd, produces output that libtool cannot recognize.
7966*** The result is that libtool may fail to recognize shared libraries
7967*** as such.  This will affect the creation of libtool libraries that
7968*** depend on shared libraries, but programs linked with such libtool
7969*** libraries will work regardless of this problem.  Nevertheless, you
7970*** may want to report the problem to your system manager and/or to
7971*** bug-libtool@gnu.org
7972
7973_LT_EOF
7974	  fi ;;
7975	esac
7976      fi
7977      break
7978    fi
7979  done
7980  IFS=$lt_save_ifs
7981  MAGIC_CMD=$lt_save_MAGIC_CMD
7982  ;;
7983esac
7984fi
7985
7986MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7987if test -n "$MAGIC_CMD"; then
7988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7989$as_echo "$MAGIC_CMD" >&6; }
7990else
7991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992$as_echo "no" >&6; }
7993fi
7994
7995
7996
7997
7998
7999if test -z "$lt_cv_path_MAGIC_CMD"; then
8000  if test -n "$ac_tool_prefix"; then
8001    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8002$as_echo_n "checking for file... " >&6; }
8003if ${lt_cv_path_MAGIC_CMD+:} false; then :
8004  $as_echo_n "(cached) " >&6
8005else
8006  case $MAGIC_CMD in
8007[\\/*] |  ?:[\\/]*)
8008  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8009  ;;
8010*)
8011  lt_save_MAGIC_CMD=$MAGIC_CMD
8012  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8013  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8014  for ac_dir in $ac_dummy; do
8015    IFS=$lt_save_ifs
8016    test -z "$ac_dir" && ac_dir=.
8017    if test -f "$ac_dir/file"; then
8018      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8019      if test -n "$file_magic_test_file"; then
8020	case $deplibs_check_method in
8021	"file_magic "*)
8022	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8023	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8024	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8025	    $EGREP "$file_magic_regex" > /dev/null; then
8026	    :
8027	  else
8028	    cat <<_LT_EOF 1>&2
8029
8030*** Warning: the command libtool uses to detect shared libraries,
8031*** $file_magic_cmd, produces output that libtool cannot recognize.
8032*** The result is that libtool may fail to recognize shared libraries
8033*** as such.  This will affect the creation of libtool libraries that
8034*** depend on shared libraries, but programs linked with such libtool
8035*** libraries will work regardless of this problem.  Nevertheless, you
8036*** may want to report the problem to your system manager and/or to
8037*** bug-libtool@gnu.org
8038
8039_LT_EOF
8040	  fi ;;
8041	esac
8042      fi
8043      break
8044    fi
8045  done
8046  IFS=$lt_save_ifs
8047  MAGIC_CMD=$lt_save_MAGIC_CMD
8048  ;;
8049esac
8050fi
8051
8052MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8053if test -n "$MAGIC_CMD"; then
8054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8055$as_echo "$MAGIC_CMD" >&6; }
8056else
8057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058$as_echo "no" >&6; }
8059fi
8060
8061
8062  else
8063    MAGIC_CMD=:
8064  fi
8065fi
8066
8067  fi
8068  ;;
8069esac
8070
8071# Use C for the default configuration in the libtool script
8072
8073lt_save_CC=$CC
8074ac_ext=c
8075ac_cpp='$CPP $CPPFLAGS'
8076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8078ac_compiler_gnu=$ac_cv_c_compiler_gnu
8079
8080
8081# Source file extension for C test sources.
8082ac_ext=c
8083
8084# Object file extension for compiled C test sources.
8085objext=o
8086objext=$objext
8087
8088# Code to be used in simple compile tests
8089lt_simple_compile_test_code="int some_variable = 0;"
8090
8091# Code to be used in simple link tests
8092lt_simple_link_test_code='int main(){return(0);}'
8093
8094
8095
8096
8097
8098
8099
8100# If no C compiler was specified, use CC.
8101LTCC=${LTCC-"$CC"}
8102
8103# If no C compiler flags were specified, use CFLAGS.
8104LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8105
8106# Allow CC to be a program name with arguments.
8107compiler=$CC
8108
8109# Save the default compiler, since it gets overwritten when the other
8110# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8111compiler_DEFAULT=$CC
8112
8113# save warnings/boilerplate of simple test code
8114ac_outfile=conftest.$ac_objext
8115echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8116eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8117_lt_compiler_boilerplate=`cat conftest.err`
8118$RM conftest*
8119
8120ac_outfile=conftest.$ac_objext
8121echo "$lt_simple_link_test_code" >conftest.$ac_ext
8122eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8123_lt_linker_boilerplate=`cat conftest.err`
8124$RM -r conftest*
8125
8126
8127## CAVEAT EMPTOR:
8128## There is no encapsulation within the following macros, do not change
8129## the running order or otherwise move them around unless you know exactly
8130## what you are doing...
8131if test -n "$compiler"; then
8132
8133lt_prog_compiler_no_builtin_flag=
8134
8135if test yes = "$GCC"; then
8136  case $cc_basename in
8137  nvcc*)
8138    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8139  *)
8140    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8141  esac
8142
8143  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8144$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8145if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8146  $as_echo_n "(cached) " >&6
8147else
8148  lt_cv_prog_compiler_rtti_exceptions=no
8149   ac_outfile=conftest.$ac_objext
8150   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8151   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8152   # Insert the option either (1) after the last *FLAGS variable, or
8153   # (2) before a word containing "conftest.", or (3) at the end.
8154   # Note that $ac_compile itself does not contain backslashes and begins
8155   # with a dollar sign (not a hyphen), so the echo should work correctly.
8156   # The option is referenced via a variable to avoid confusing sed.
8157   lt_compile=`echo "$ac_compile" | $SED \
8158   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8159   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8160   -e 's:$: $lt_compiler_flag:'`
8161   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8162   (eval "$lt_compile" 2>conftest.err)
8163   ac_status=$?
8164   cat conftest.err >&5
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   if (exit $ac_status) && test -s "$ac_outfile"; then
8167     # The compiler can only warn and ignore the option if not recognized
8168     # So say no if there are warnings other than the usual output.
8169     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8170     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8171     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8172       lt_cv_prog_compiler_rtti_exceptions=yes
8173     fi
8174   fi
8175   $RM conftest*
8176
8177fi
8178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8179$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8180
8181if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8182    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8183else
8184    :
8185fi
8186
8187fi
8188
8189
8190
8191
8192
8193
8194  lt_prog_compiler_wl=
8195lt_prog_compiler_pic=
8196lt_prog_compiler_static=
8197
8198
8199  if test yes = "$GCC"; then
8200    lt_prog_compiler_wl='-Wl,'
8201    lt_prog_compiler_static='-static'
8202
8203    case $host_os in
8204      aix*)
8205      # All AIX code is PIC.
8206      if test ia64 = "$host_cpu"; then
8207	# AIX 5 now supports IA64 processor
8208	lt_prog_compiler_static='-Bstatic'
8209      fi
8210      lt_prog_compiler_pic='-fPIC'
8211      ;;
8212
8213    amigaos*)
8214      case $host_cpu in
8215      powerpc)
8216            # see comment about AmigaOS4 .so support
8217            lt_prog_compiler_pic='-fPIC'
8218        ;;
8219      m68k)
8220            # FIXME: we need at least 68020 code to build shared libraries, but
8221            # adding the '-m68020' flag to GCC prevents building anything better,
8222            # like '-m68040'.
8223            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8224        ;;
8225      esac
8226      ;;
8227
8228    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8229      # PIC is the default for these OSes.
8230      ;;
8231
8232    mingw* | cygwin* | pw32* | os2* | cegcc*)
8233      # This hack is so that the source file can tell whether it is being
8234      # built for inclusion in a dll (and should export symbols for example).
8235      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8236      # (--disable-auto-import) libraries
8237      lt_prog_compiler_pic='-DDLL_EXPORT'
8238      ;;
8239
8240    darwin* | rhapsody*)
8241      # PIC is the default on this platform
8242      # Common symbols not allowed in MH_DYLIB files
8243      lt_prog_compiler_pic='-fno-common'
8244      ;;
8245
8246    haiku*)
8247      # PIC is the default for Haiku.
8248      # The "-static" flag exists, but is broken.
8249      lt_prog_compiler_static=
8250      ;;
8251
8252    hpux*)
8253      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8254      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8255      # sets the default TLS model and affects inlining.
8256      case $host_cpu in
8257      hppa*64*)
8258	# +Z the default
8259	;;
8260      *)
8261	lt_prog_compiler_pic='-fPIC'
8262	;;
8263      esac
8264      ;;
8265
8266    interix[3-9]*)
8267      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8268      # Instead, we relocate shared libraries at runtime.
8269      ;;
8270
8271    msdosdjgpp*)
8272      # Just because we use GCC doesn't mean we suddenly get shared libraries
8273      # on systems that don't support them.
8274      lt_prog_compiler_can_build_shared=no
8275      enable_shared=no
8276      ;;
8277
8278    *nto* | *qnx*)
8279      # QNX uses GNU C++, but need to define -shared option too, otherwise
8280      # it will coredump.
8281      lt_prog_compiler_pic='-fPIC -shared'
8282      ;;
8283
8284    sysv4*MP*)
8285      if test -d /usr/nec; then
8286	lt_prog_compiler_pic=-Kconform_pic
8287      fi
8288      ;;
8289
8290    *)
8291      lt_prog_compiler_pic='-fPIC'
8292      ;;
8293    esac
8294
8295    case $cc_basename in
8296    nvcc*) # Cuda Compiler Driver 2.2
8297      lt_prog_compiler_wl='-Xlinker '
8298      if test -n "$lt_prog_compiler_pic"; then
8299        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8300      fi
8301      ;;
8302    esac
8303  else
8304    # PORTME Check for flag to pass linker flags through the system compiler.
8305    case $host_os in
8306    aix*)
8307      lt_prog_compiler_wl='-Wl,'
8308      if test ia64 = "$host_cpu"; then
8309	# AIX 5 now supports IA64 processor
8310	lt_prog_compiler_static='-Bstatic'
8311      else
8312	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8313      fi
8314      ;;
8315
8316    darwin* | rhapsody*)
8317      # PIC is the default on this platform
8318      # Common symbols not allowed in MH_DYLIB files
8319      lt_prog_compiler_pic='-fno-common'
8320      case $cc_basename in
8321      nagfor*)
8322        # NAG Fortran compiler
8323        lt_prog_compiler_wl='-Wl,-Wl,,'
8324        lt_prog_compiler_pic='-PIC'
8325        lt_prog_compiler_static='-Bstatic'
8326        ;;
8327      esac
8328      ;;
8329
8330    mingw* | cygwin* | pw32* | os2* | cegcc*)
8331      # This hack is so that the source file can tell whether it is being
8332      # built for inclusion in a dll (and should export symbols for example).
8333      lt_prog_compiler_pic='-DDLL_EXPORT'
8334      ;;
8335
8336    hpux9* | hpux10* | hpux11*)
8337      lt_prog_compiler_wl='-Wl,'
8338      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8339      # not for PA HP-UX.
8340      case $host_cpu in
8341      hppa*64*|ia64*)
8342	# +Z the default
8343	;;
8344      *)
8345	lt_prog_compiler_pic='+Z'
8346	;;
8347      esac
8348      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8349      lt_prog_compiler_static='$wl-a ${wl}archive'
8350      ;;
8351
8352    irix5* | irix6* | nonstopux*)
8353      lt_prog_compiler_wl='-Wl,'
8354      # PIC (with -KPIC) is the default.
8355      lt_prog_compiler_static='-non_shared'
8356      ;;
8357
8358    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8359      case $cc_basename in
8360      # old Intel for x86_64, which still supported -KPIC.
8361      ecc*)
8362	lt_prog_compiler_wl='-Wl,'
8363	lt_prog_compiler_pic='-KPIC'
8364	lt_prog_compiler_static='-static'
8365        ;;
8366      # icc used to be incompatible with GCC.
8367      # ICC 10 doesn't accept -KPIC any more.
8368      icc* | ifort*)
8369	lt_prog_compiler_wl='-Wl,'
8370	lt_prog_compiler_pic='-fPIC'
8371	lt_prog_compiler_static='-static'
8372        ;;
8373      # Lahey Fortran 8.1.
8374      lf95*)
8375	lt_prog_compiler_wl='-Wl,'
8376	lt_prog_compiler_pic='--shared'
8377	lt_prog_compiler_static='--static'
8378	;;
8379      nagfor*)
8380	# NAG Fortran compiler
8381	lt_prog_compiler_wl='-Wl,-Wl,,'
8382	lt_prog_compiler_pic='-PIC'
8383	lt_prog_compiler_static='-Bstatic'
8384	;;
8385      tcc*)
8386	# Fabrice Bellard et al's Tiny C Compiler
8387	lt_prog_compiler_wl='-Wl,'
8388	lt_prog_compiler_pic='-fPIC'
8389	lt_prog_compiler_static='-static'
8390	;;
8391      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8392        # Portland Group compilers (*not* the Pentium gcc compiler,
8393	# which looks to be a dead project)
8394	lt_prog_compiler_wl='-Wl,'
8395	lt_prog_compiler_pic='-fpic'
8396	lt_prog_compiler_static='-Bstatic'
8397        ;;
8398      ccc*)
8399        lt_prog_compiler_wl='-Wl,'
8400        # All Alpha code is PIC.
8401        lt_prog_compiler_static='-non_shared'
8402        ;;
8403      xl* | bgxl* | bgf* | mpixl*)
8404	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8405	lt_prog_compiler_wl='-Wl,'
8406	lt_prog_compiler_pic='-qpic'
8407	lt_prog_compiler_static='-qstaticlink'
8408	;;
8409      *)
8410	case `$CC -V 2>&1 | sed 5q` in
8411	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8412	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8413	  lt_prog_compiler_pic='-KPIC'
8414	  lt_prog_compiler_static='-Bstatic'
8415	  lt_prog_compiler_wl=''
8416	  ;;
8417	*Sun\ F* | *Sun*Fortran*)
8418	  lt_prog_compiler_pic='-KPIC'
8419	  lt_prog_compiler_static='-Bstatic'
8420	  lt_prog_compiler_wl='-Qoption ld '
8421	  ;;
8422	*Sun\ C*)
8423	  # Sun C 5.9
8424	  lt_prog_compiler_pic='-KPIC'
8425	  lt_prog_compiler_static='-Bstatic'
8426	  lt_prog_compiler_wl='-Wl,'
8427	  ;;
8428        *Intel*\ [CF]*Compiler*)
8429	  lt_prog_compiler_wl='-Wl,'
8430	  lt_prog_compiler_pic='-fPIC'
8431	  lt_prog_compiler_static='-static'
8432	  ;;
8433	*Portland\ Group*)
8434	  lt_prog_compiler_wl='-Wl,'
8435	  lt_prog_compiler_pic='-fpic'
8436	  lt_prog_compiler_static='-Bstatic'
8437	  ;;
8438	esac
8439	;;
8440      esac
8441      ;;
8442
8443    newsos6)
8444      lt_prog_compiler_pic='-KPIC'
8445      lt_prog_compiler_static='-Bstatic'
8446      ;;
8447
8448    *nto* | *qnx*)
8449      # QNX uses GNU C++, but need to define -shared option too, otherwise
8450      # it will coredump.
8451      lt_prog_compiler_pic='-fPIC -shared'
8452      ;;
8453
8454    osf3* | osf4* | osf5*)
8455      lt_prog_compiler_wl='-Wl,'
8456      # All OSF/1 code is PIC.
8457      lt_prog_compiler_static='-non_shared'
8458      ;;
8459
8460    rdos*)
8461      lt_prog_compiler_static='-non_shared'
8462      ;;
8463
8464    solaris*)
8465      lt_prog_compiler_pic='-KPIC'
8466      lt_prog_compiler_static='-Bstatic'
8467      case $cc_basename in
8468      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8469	lt_prog_compiler_wl='-Qoption ld ';;
8470      *)
8471	lt_prog_compiler_wl='-Wl,';;
8472      esac
8473      ;;
8474
8475    sunos4*)
8476      lt_prog_compiler_wl='-Qoption ld '
8477      lt_prog_compiler_pic='-PIC'
8478      lt_prog_compiler_static='-Bstatic'
8479      ;;
8480
8481    sysv4 | sysv4.2uw2* | sysv4.3*)
8482      lt_prog_compiler_wl='-Wl,'
8483      lt_prog_compiler_pic='-KPIC'
8484      lt_prog_compiler_static='-Bstatic'
8485      ;;
8486
8487    sysv4*MP*)
8488      if test -d /usr/nec; then
8489	lt_prog_compiler_pic='-Kconform_pic'
8490	lt_prog_compiler_static='-Bstatic'
8491      fi
8492      ;;
8493
8494    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8495      lt_prog_compiler_wl='-Wl,'
8496      lt_prog_compiler_pic='-KPIC'
8497      lt_prog_compiler_static='-Bstatic'
8498      ;;
8499
8500    unicos*)
8501      lt_prog_compiler_wl='-Wl,'
8502      lt_prog_compiler_can_build_shared=no
8503      ;;
8504
8505    uts4*)
8506      lt_prog_compiler_pic='-pic'
8507      lt_prog_compiler_static='-Bstatic'
8508      ;;
8509
8510    *)
8511      lt_prog_compiler_can_build_shared=no
8512      ;;
8513    esac
8514  fi
8515
8516case $host_os in
8517  # For platforms that do not support PIC, -DPIC is meaningless:
8518  *djgpp*)
8519    lt_prog_compiler_pic=
8520    ;;
8521  *)
8522    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8523    ;;
8524esac
8525
8526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8527$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8528if ${lt_cv_prog_compiler_pic+:} false; then :
8529  $as_echo_n "(cached) " >&6
8530else
8531  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8532fi
8533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8534$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8535lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8536
8537#
8538# Check to make sure the PIC flag actually works.
8539#
8540if test -n "$lt_prog_compiler_pic"; then
8541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8542$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8543if ${lt_cv_prog_compiler_pic_works+:} false; then :
8544  $as_echo_n "(cached) " >&6
8545else
8546  lt_cv_prog_compiler_pic_works=no
8547   ac_outfile=conftest.$ac_objext
8548   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8549   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8550   # Insert the option either (1) after the last *FLAGS variable, or
8551   # (2) before a word containing "conftest.", or (3) at the end.
8552   # Note that $ac_compile itself does not contain backslashes and begins
8553   # with a dollar sign (not a hyphen), so the echo should work correctly.
8554   # The option is referenced via a variable to avoid confusing sed.
8555   lt_compile=`echo "$ac_compile" | $SED \
8556   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8557   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8558   -e 's:$: $lt_compiler_flag:'`
8559   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8560   (eval "$lt_compile" 2>conftest.err)
8561   ac_status=$?
8562   cat conftest.err >&5
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   if (exit $ac_status) && test -s "$ac_outfile"; then
8565     # The compiler can only warn and ignore the option if not recognized
8566     # So say no if there are warnings other than the usual output.
8567     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8568     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8569     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8570       lt_cv_prog_compiler_pic_works=yes
8571     fi
8572   fi
8573   $RM conftest*
8574
8575fi
8576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8577$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8578
8579if test yes = "$lt_cv_prog_compiler_pic_works"; then
8580    case $lt_prog_compiler_pic in
8581     "" | " "*) ;;
8582     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8583     esac
8584else
8585    lt_prog_compiler_pic=
8586     lt_prog_compiler_can_build_shared=no
8587fi
8588
8589fi
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601#
8602# Check to make sure the static flag actually works.
8603#
8604wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8606$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8607if ${lt_cv_prog_compiler_static_works+:} false; then :
8608  $as_echo_n "(cached) " >&6
8609else
8610  lt_cv_prog_compiler_static_works=no
8611   save_LDFLAGS=$LDFLAGS
8612   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8613   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8614   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8615     # The linker can only warn and ignore the option if not recognized
8616     # So say no if there are warnings
8617     if test -s conftest.err; then
8618       # Append any errors to the config.log.
8619       cat conftest.err 1>&5
8620       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8621       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8622       if diff conftest.exp conftest.er2 >/dev/null; then
8623         lt_cv_prog_compiler_static_works=yes
8624       fi
8625     else
8626       lt_cv_prog_compiler_static_works=yes
8627     fi
8628   fi
8629   $RM -r conftest*
8630   LDFLAGS=$save_LDFLAGS
8631
8632fi
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8634$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8635
8636if test yes = "$lt_cv_prog_compiler_static_works"; then
8637    :
8638else
8639    lt_prog_compiler_static=
8640fi
8641
8642
8643
8644
8645
8646
8647
8648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8649$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8650if ${lt_cv_prog_compiler_c_o+:} false; then :
8651  $as_echo_n "(cached) " >&6
8652else
8653  lt_cv_prog_compiler_c_o=no
8654   $RM -r conftest 2>/dev/null
8655   mkdir conftest
8656   cd conftest
8657   mkdir out
8658   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8659
8660   lt_compiler_flag="-o out/conftest2.$ac_objext"
8661   # Insert the option either (1) after the last *FLAGS variable, or
8662   # (2) before a word containing "conftest.", or (3) at the end.
8663   # Note that $ac_compile itself does not contain backslashes and begins
8664   # with a dollar sign (not a hyphen), so the echo should work correctly.
8665   lt_compile=`echo "$ac_compile" | $SED \
8666   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8667   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8668   -e 's:$: $lt_compiler_flag:'`
8669   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8670   (eval "$lt_compile" 2>out/conftest.err)
8671   ac_status=$?
8672   cat out/conftest.err >&5
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8675   then
8676     # The compiler can only warn and ignore the option if not recognized
8677     # So say no if there are warnings
8678     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8679     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8680     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8681       lt_cv_prog_compiler_c_o=yes
8682     fi
8683   fi
8684   chmod u+w . 2>&5
8685   $RM conftest*
8686   # SGI C++ compiler will create directory out/ii_files/ for
8687   # template instantiation
8688   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8689   $RM out/* && rmdir out
8690   cd ..
8691   $RM -r conftest
8692   $RM conftest*
8693
8694fi
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8696$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8697
8698
8699
8700
8701
8702
8703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8704$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8705if ${lt_cv_prog_compiler_c_o+:} false; then :
8706  $as_echo_n "(cached) " >&6
8707else
8708  lt_cv_prog_compiler_c_o=no
8709   $RM -r conftest 2>/dev/null
8710   mkdir conftest
8711   cd conftest
8712   mkdir out
8713   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8714
8715   lt_compiler_flag="-o out/conftest2.$ac_objext"
8716   # Insert the option either (1) after the last *FLAGS variable, or
8717   # (2) before a word containing "conftest.", or (3) at the end.
8718   # Note that $ac_compile itself does not contain backslashes and begins
8719   # with a dollar sign (not a hyphen), so the echo should work correctly.
8720   lt_compile=`echo "$ac_compile" | $SED \
8721   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8722   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8723   -e 's:$: $lt_compiler_flag:'`
8724   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8725   (eval "$lt_compile" 2>out/conftest.err)
8726   ac_status=$?
8727   cat out/conftest.err >&5
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8730   then
8731     # The compiler can only warn and ignore the option if not recognized
8732     # So say no if there are warnings
8733     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8734     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8735     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8736       lt_cv_prog_compiler_c_o=yes
8737     fi
8738   fi
8739   chmod u+w . 2>&5
8740   $RM conftest*
8741   # SGI C++ compiler will create directory out/ii_files/ for
8742   # template instantiation
8743   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8744   $RM out/* && rmdir out
8745   cd ..
8746   $RM -r conftest
8747   $RM conftest*
8748
8749fi
8750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8751$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8752
8753
8754
8755
8756hard_links=nottested
8757if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8758  # do not overwrite the value of need_locks provided by the user
8759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8760$as_echo_n "checking if we can lock with hard links... " >&6; }
8761  hard_links=yes
8762  $RM conftest*
8763  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8764  touch conftest.a
8765  ln conftest.a conftest.b 2>&5 || hard_links=no
8766  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8768$as_echo "$hard_links" >&6; }
8769  if test no = "$hard_links"; then
8770    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8771$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8772    need_locks=warn
8773  fi
8774else
8775  need_locks=no
8776fi
8777
8778
8779
8780
8781
8782
8783  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8784$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8785
8786  runpath_var=
8787  allow_undefined_flag=
8788  always_export_symbols=no
8789  archive_cmds=
8790  archive_expsym_cmds=
8791  compiler_needs_object=no
8792  enable_shared_with_static_runtimes=no
8793  export_dynamic_flag_spec=
8794  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8795  hardcode_automatic=no
8796  hardcode_direct=no
8797  hardcode_direct_absolute=no
8798  hardcode_libdir_flag_spec=
8799  hardcode_libdir_separator=
8800  hardcode_minus_L=no
8801  hardcode_shlibpath_var=unsupported
8802  inherit_rpath=no
8803  link_all_deplibs=unknown
8804  module_cmds=
8805  module_expsym_cmds=
8806  old_archive_from_new_cmds=
8807  old_archive_from_expsyms_cmds=
8808  thread_safe_flag_spec=
8809  whole_archive_flag_spec=
8810  # include_expsyms should be a list of space-separated symbols to be *always*
8811  # included in the symbol list
8812  include_expsyms=
8813  # exclude_expsyms can be an extended regexp of symbols to exclude
8814  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8815  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8816  # as well as any symbol that contains 'd'.
8817  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8818  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8819  # platforms (ab)use it in PIC code, but their linkers get confused if
8820  # the symbol is explicitly referenced.  Since portable code cannot
8821  # rely on this symbol name, it's probably fine to never include it in
8822  # preloaded symbol tables.
8823  # Exclude shared library initialization/finalization symbols.
8824  extract_expsyms_cmds=
8825
8826  case $host_os in
8827  cygwin* | mingw* | pw32* | cegcc*)
8828    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8829    # When not using gcc, we currently assume that we are using
8830    # Microsoft Visual C++.
8831    if test yes != "$GCC"; then
8832      with_gnu_ld=no
8833    fi
8834    ;;
8835  interix*)
8836    # we just hope/assume this is gcc and not c89 (= MSVC++)
8837    with_gnu_ld=yes
8838    ;;
8839  openbsd* | bitrig*)
8840    with_gnu_ld=no
8841    ;;
8842  esac
8843
8844  ld_shlibs=yes
8845
8846  # On some targets, GNU ld is compatible enough with the native linker
8847  # that we're better off using the native interface for both.
8848  lt_use_gnu_ld_interface=no
8849  if test yes = "$with_gnu_ld"; then
8850    case $host_os in
8851      aix*)
8852	# The AIX port of GNU ld has always aspired to compatibility
8853	# with the native linker.  However, as the warning in the GNU ld
8854	# block says, versions before 2.19.5* couldn't really create working
8855	# shared libraries, regardless of the interface used.
8856	case `$LD -v 2>&1` in
8857	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8858	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8859	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8860	  *)
8861	    lt_use_gnu_ld_interface=yes
8862	    ;;
8863	esac
8864	;;
8865      *)
8866	lt_use_gnu_ld_interface=yes
8867	;;
8868    esac
8869  fi
8870
8871  if test yes = "$lt_use_gnu_ld_interface"; then
8872    # If archive_cmds runs LD, not CC, wlarc should be empty
8873    wlarc='$wl'
8874
8875    # Set some defaults for GNU ld with shared library support. These
8876    # are reset later if shared libraries are not supported. Putting them
8877    # here allows them to be overridden if necessary.
8878    runpath_var=LD_RUN_PATH
8879    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8880    export_dynamic_flag_spec='$wl--export-dynamic'
8881    # ancient GNU ld didn't support --whole-archive et. al.
8882    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8883      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8884    else
8885      whole_archive_flag_spec=
8886    fi
8887    supports_anon_versioning=no
8888    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8889      *GNU\ gold*) supports_anon_versioning=yes ;;
8890      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8891      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8892      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8893      *\ 2.11.*) ;; # other 2.11 versions
8894      *) supports_anon_versioning=yes ;;
8895    esac
8896
8897    # See if GNU ld supports shared libraries.
8898    case $host_os in
8899    aix[3-9]*)
8900      # On AIX/PPC, the GNU linker is very broken
8901      if test ia64 != "$host_cpu"; then
8902	ld_shlibs=no
8903	cat <<_LT_EOF 1>&2
8904
8905*** Warning: the GNU linker, at least up to release 2.19, is reported
8906*** to be unable to reliably create shared libraries on AIX.
8907*** Therefore, libtool is disabling shared libraries support.  If you
8908*** really care for shared libraries, you may want to install binutils
8909*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8910*** You will then need to restart the configuration process.
8911
8912_LT_EOF
8913      fi
8914      ;;
8915
8916    amigaos*)
8917      case $host_cpu in
8918      powerpc)
8919            # see comment about AmigaOS4 .so support
8920            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8921            archive_expsym_cmds=''
8922        ;;
8923      m68k)
8924            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)'
8925            hardcode_libdir_flag_spec='-L$libdir'
8926            hardcode_minus_L=yes
8927        ;;
8928      esac
8929      ;;
8930
8931    beos*)
8932      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8933	allow_undefined_flag=unsupported
8934	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8935	# support --undefined.  This deserves some investigation.  FIXME
8936	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8937      else
8938	ld_shlibs=no
8939      fi
8940      ;;
8941
8942    cygwin* | mingw* | pw32* | cegcc*)
8943      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8944      # as there is no search path for DLLs.
8945      hardcode_libdir_flag_spec='-L$libdir'
8946      export_dynamic_flag_spec='$wl--export-all-symbols'
8947      allow_undefined_flag=unsupported
8948      always_export_symbols=no
8949      enable_shared_with_static_runtimes=yes
8950      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'
8951      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8952
8953      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8954        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8955	# If the export-symbols file already is a .def file, use it as
8956	# is; otherwise, prepend EXPORTS...
8957	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
8958          cp $export_symbols $output_objdir/$soname.def;
8959        else
8960          echo EXPORTS > $output_objdir/$soname.def;
8961          cat $export_symbols >> $output_objdir/$soname.def;
8962        fi~
8963        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8964      else
8965	ld_shlibs=no
8966      fi
8967      ;;
8968
8969    haiku*)
8970      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8971      link_all_deplibs=yes
8972      ;;
8973
8974    interix[3-9]*)
8975      hardcode_direct=no
8976      hardcode_shlibpath_var=no
8977      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8978      export_dynamic_flag_spec='$wl-E'
8979      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8980      # Instead, shared libraries are loaded at an image base (0x10000000 by
8981      # default) and relocated if they conflict, which is a slow very memory
8982      # consuming and fragmenting process.  To avoid this, we pick a random,
8983      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8984      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8985      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8986      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'
8987      ;;
8988
8989    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8990      tmp_diet=no
8991      if test linux-dietlibc = "$host_os"; then
8992	case $cc_basename in
8993	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8994	esac
8995      fi
8996      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8997	 && test no = "$tmp_diet"
8998      then
8999	tmp_addflag=' $pic_flag'
9000	tmp_sharedflag='-shared'
9001	case $cc_basename,$host_cpu in
9002        pgcc*)				# Portland Group C compiler
9003	  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'
9004	  tmp_addflag=' $pic_flag'
9005	  ;;
9006	pgf77* | pgf90* | pgf95* | pgfortran*)
9007					# Portland Group f77 and f90 compilers
9008	  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'
9009	  tmp_addflag=' $pic_flag -Mnomain' ;;
9010	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9011	  tmp_addflag=' -i_dynamic' ;;
9012	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9013	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9014	ifc* | ifort*)			# Intel Fortran compiler
9015	  tmp_addflag=' -nofor_main' ;;
9016	lf95*)				# Lahey Fortran 8.1
9017	  whole_archive_flag_spec=
9018	  tmp_sharedflag='--shared' ;;
9019        nagfor*)                        # NAGFOR 5.3
9020          tmp_sharedflag='-Wl,-shared' ;;
9021	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9022	  tmp_sharedflag='-qmkshrobj'
9023	  tmp_addflag= ;;
9024	nvcc*)	# Cuda Compiler Driver 2.2
9025	  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'
9026	  compiler_needs_object=yes
9027	  ;;
9028	esac
9029	case `$CC -V 2>&1 | sed 5q` in
9030	*Sun\ C*)			# Sun C 5.9
9031	  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'
9032	  compiler_needs_object=yes
9033	  tmp_sharedflag='-G' ;;
9034	*Sun\ F*)			# Sun Fortran 8.3
9035	  tmp_sharedflag='-G' ;;
9036	esac
9037	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9038
9039        if test yes = "$supports_anon_versioning"; then
9040          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9041            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9042            echo "local: *; };" >> $output_objdir/$libname.ver~
9043            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9044        fi
9045
9046	case $cc_basename in
9047	xlf* | bgf* | bgxlf* | mpixlf*)
9048	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9049	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9050	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9051	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9052	  if test yes = "$supports_anon_versioning"; then
9053	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9054              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9055              echo "local: *; };" >> $output_objdir/$libname.ver~
9056              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9057	  fi
9058	  ;;
9059	esac
9060      else
9061        ld_shlibs=no
9062      fi
9063      ;;
9064
9065    netbsd*)
9066      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9067	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9068	wlarc=
9069      else
9070	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9071	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9072      fi
9073      ;;
9074
9075    solaris*)
9076      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9077	ld_shlibs=no
9078	cat <<_LT_EOF 1>&2
9079
9080*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9081*** create shared libraries on Solaris systems.  Therefore, libtool
9082*** is disabling shared libraries support.  We urge you to upgrade GNU
9083*** binutils to release 2.9.1 or newer.  Another option is to modify
9084*** your PATH or compiler configuration so that the native linker is
9085*** used, and then restart.
9086
9087_LT_EOF
9088      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9089	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9090	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9091      else
9092	ld_shlibs=no
9093      fi
9094      ;;
9095
9096    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9097      case `$LD -v 2>&1` in
9098        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9099	ld_shlibs=no
9100	cat <<_LT_EOF 1>&2
9101
9102*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9103*** reliably create shared libraries on SCO systems.  Therefore, libtool
9104*** is disabling shared libraries support.  We urge you to upgrade GNU
9105*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9106*** your PATH or compiler configuration so that the native linker is
9107*** used, and then restart.
9108
9109_LT_EOF
9110	;;
9111	*)
9112	  # For security reasons, it is highly recommended that you always
9113	  # use absolute paths for naming shared libraries, and exclude the
9114	  # DT_RUNPATH tag from executables and libraries.  But doing so
9115	  # requires that you compile everything twice, which is a pain.
9116	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9117	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9118	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9119	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9120	  else
9121	    ld_shlibs=no
9122	  fi
9123	;;
9124      esac
9125      ;;
9126
9127    sunos4*)
9128      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9129      wlarc=
9130      hardcode_direct=yes
9131      hardcode_shlibpath_var=no
9132      ;;
9133
9134    *)
9135      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9136	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9137	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9138      else
9139	ld_shlibs=no
9140      fi
9141      ;;
9142    esac
9143
9144    if test no = "$ld_shlibs"; then
9145      runpath_var=
9146      hardcode_libdir_flag_spec=
9147      export_dynamic_flag_spec=
9148      whole_archive_flag_spec=
9149    fi
9150  else
9151    # PORTME fill in a description of your system's linker (not GNU ld)
9152    case $host_os in
9153    aix3*)
9154      allow_undefined_flag=unsupported
9155      always_export_symbols=yes
9156      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'
9157      # Note: this linker hardcodes the directories in LIBPATH if there
9158      # are no directories specified by -L.
9159      hardcode_minus_L=yes
9160      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9161	# Neither direct hardcoding nor static linking is supported with a
9162	# broken collect2.
9163	hardcode_direct=unsupported
9164      fi
9165      ;;
9166
9167    aix[4-9]*)
9168      if test ia64 = "$host_cpu"; then
9169	# On IA64, the linker does run time linking by default, so we don't
9170	# have to do anything special.
9171	aix_use_runtimelinking=no
9172	exp_sym_flag='-Bexport'
9173	no_entry_flag=
9174      else
9175	# If we're using GNU nm, then we don't want the "-C" option.
9176	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9177	# Also, AIX nm treats weak defined symbols like other global
9178	# defined symbols, whereas GNU nm marks them as "W".
9179	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9180	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9181	else
9182	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9183	fi
9184	aix_use_runtimelinking=no
9185
9186	# Test if we are trying to use run time linking or normal
9187	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9188	# need to do runtime linking.
9189	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9190	  for ld_flag in $LDFLAGS; do
9191	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9192	    aix_use_runtimelinking=yes
9193	    break
9194	  fi
9195	  done
9196	  ;;
9197	esac
9198
9199	exp_sym_flag='-bexport'
9200	no_entry_flag='-bnoentry'
9201      fi
9202
9203      # When large executables or shared objects are built, AIX ld can
9204      # have problems creating the table of contents.  If linking a library
9205      # or program results in "error TOC overflow" add -mminimal-toc to
9206      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9207      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9208
9209      archive_cmds=''
9210      hardcode_direct=yes
9211      hardcode_direct_absolute=yes
9212      hardcode_libdir_separator=':'
9213      link_all_deplibs=yes
9214      file_list_spec='$wl-f,'
9215
9216      if test yes = "$GCC"; then
9217	case $host_os in aix4.[012]|aix4.[012].*)
9218	# We only want to do this on AIX 4.2 and lower, the check
9219	# below for broken collect2 doesn't work under 4.3+
9220	  collect2name=`$CC -print-prog-name=collect2`
9221	  if test -f "$collect2name" &&
9222	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9223	  then
9224	  # We have reworked collect2
9225	  :
9226	  else
9227	  # We have old collect2
9228	  hardcode_direct=unsupported
9229	  # It fails to find uninstalled libraries when the uninstalled
9230	  # path is not listed in the libpath.  Setting hardcode_minus_L
9231	  # to unsupported forces relinking
9232	  hardcode_minus_L=yes
9233	  hardcode_libdir_flag_spec='-L$libdir'
9234	  hardcode_libdir_separator=
9235	  fi
9236	  ;;
9237	esac
9238	shared_flag='-shared'
9239	if test yes = "$aix_use_runtimelinking"; then
9240	  shared_flag="$shared_flag "'$wl-G'
9241	fi
9242      else
9243	# not using gcc
9244	if test ia64 = "$host_cpu"; then
9245	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9246	# chokes on -Wl,-G. The following line is correct:
9247	  shared_flag='-G'
9248	else
9249	  if test yes = "$aix_use_runtimelinking"; then
9250	    shared_flag='$wl-G'
9251	  else
9252	    shared_flag='$wl-bM:SRE'
9253	  fi
9254	fi
9255      fi
9256
9257      export_dynamic_flag_spec='$wl-bexpall'
9258      # It seems that -bexpall does not export symbols beginning with
9259      # underscore (_), so it is better to generate a list of symbols to export.
9260      always_export_symbols=yes
9261      if test yes = "$aix_use_runtimelinking"; then
9262	# Warning - without using the other runtime loading flags (-brtl),
9263	# -berok will link without error, but may produce a broken library.
9264	allow_undefined_flag='-berok'
9265        # Determine the default libpath from the value encoded in an
9266        # empty executable.
9267        if test set = "${lt_cv_aix_libpath+set}"; then
9268  aix_libpath=$lt_cv_aix_libpath
9269else
9270  if ${lt_cv_aix_libpath_+:} false; then :
9271  $as_echo_n "(cached) " >&6
9272else
9273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274/* end confdefs.h.  */
9275
9276int
9277main ()
9278{
9279
9280  ;
9281  return 0;
9282}
9283_ACEOF
9284if ac_fn_c_try_link "$LINENO"; then :
9285
9286  lt_aix_libpath_sed='
9287      /Import File Strings/,/^$/ {
9288	  /^0/ {
9289	      s/^0  *\([^ ]*\) *$/\1/
9290	      p
9291	  }
9292      }'
9293  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9294  # Check for a 64-bit object if we didn't find anything.
9295  if test -z "$lt_cv_aix_libpath_"; then
9296    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9297  fi
9298fi
9299rm -f core conftest.err conftest.$ac_objext \
9300    conftest$ac_exeext conftest.$ac_ext
9301  if test -z "$lt_cv_aix_libpath_"; then
9302    lt_cv_aix_libpath_=/usr/lib:/lib
9303  fi
9304
9305fi
9306
9307  aix_libpath=$lt_cv_aix_libpath_
9308fi
9309
9310        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9311        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
9312      else
9313	if test ia64 = "$host_cpu"; then
9314	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9315	  allow_undefined_flag="-z nodefs"
9316	  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"
9317	else
9318	 # Determine the default libpath from the value encoded in an
9319	 # empty executable.
9320	 if test set = "${lt_cv_aix_libpath+set}"; then
9321  aix_libpath=$lt_cv_aix_libpath
9322else
9323  if ${lt_cv_aix_libpath_+:} false; then :
9324  $as_echo_n "(cached) " >&6
9325else
9326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327/* end confdefs.h.  */
9328
9329int
9330main ()
9331{
9332
9333  ;
9334  return 0;
9335}
9336_ACEOF
9337if ac_fn_c_try_link "$LINENO"; then :
9338
9339  lt_aix_libpath_sed='
9340      /Import File Strings/,/^$/ {
9341	  /^0/ {
9342	      s/^0  *\([^ ]*\) *$/\1/
9343	      p
9344	  }
9345      }'
9346  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9347  # Check for a 64-bit object if we didn't find anything.
9348  if test -z "$lt_cv_aix_libpath_"; then
9349    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9350  fi
9351fi
9352rm -f core conftest.err conftest.$ac_objext \
9353    conftest$ac_exeext conftest.$ac_ext
9354  if test -z "$lt_cv_aix_libpath_"; then
9355    lt_cv_aix_libpath_=/usr/lib:/lib
9356  fi
9357
9358fi
9359
9360  aix_libpath=$lt_cv_aix_libpath_
9361fi
9362
9363	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9364	  # Warning - without using the other run time loading flags,
9365	  # -berok will link without error, but may produce a broken library.
9366	  no_undefined_flag=' $wl-bernotok'
9367	  allow_undefined_flag=' $wl-berok'
9368	  if test yes = "$with_gnu_ld"; then
9369	    # We only use this code for GNU lds that support --whole-archive.
9370	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9371	  else
9372	    # Exported symbols can be pulled into shared objects from archives
9373	    whole_archive_flag_spec='$convenience'
9374	  fi
9375	  archive_cmds_need_lc=yes
9376	  # This is similar to how AIX traditionally builds its shared libraries.
9377	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $wl-bnoentry $compiler_flags $wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9378	fi
9379      fi
9380      ;;
9381
9382    amigaos*)
9383      case $host_cpu in
9384      powerpc)
9385            # see comment about AmigaOS4 .so support
9386            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9387            archive_expsym_cmds=''
9388        ;;
9389      m68k)
9390            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)'
9391            hardcode_libdir_flag_spec='-L$libdir'
9392            hardcode_minus_L=yes
9393        ;;
9394      esac
9395      ;;
9396
9397    bsdi[45]*)
9398      export_dynamic_flag_spec=-rdynamic
9399      ;;
9400
9401    cygwin* | mingw* | pw32* | cegcc*)
9402      # When not using gcc, we currently assume that we are using
9403      # Microsoft Visual C++.
9404      # hardcode_libdir_flag_spec is actually meaningless, as there is
9405      # no search path for DLLs.
9406      case $cc_basename in
9407      cl*)
9408	# Native MSVC
9409	hardcode_libdir_flag_spec=' '
9410	allow_undefined_flag=unsupported
9411	always_export_symbols=yes
9412	file_list_spec='@'
9413	# Tell ltmain to make .lib files, not .a files.
9414	libext=lib
9415	# Tell ltmain to make .dll files, not .so files.
9416	shrext_cmds=.dll
9417	# FIXME: Setting linknames here is a bad hack.
9418	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9419	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9420            cp "$export_symbols" "$output_objdir/$soname.def";
9421            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9422          else
9423            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9424          fi~
9425          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9426          linknames='
9427	# The linker will not automatically build a static lib if we build a DLL.
9428	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9429	enable_shared_with_static_runtimes=yes
9430	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9431	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9432	# Don't use ranlib
9433	old_postinstall_cmds='chmod 644 $oldlib'
9434	postlink_cmds='lt_outputfile="@OUTPUT@"~
9435          lt_tool_outputfile="@TOOL_OUTPUT@"~
9436          case $lt_outputfile in
9437            *.exe|*.EXE) ;;
9438            *)
9439              lt_outputfile=$lt_outputfile.exe
9440              lt_tool_outputfile=$lt_tool_outputfile.exe
9441              ;;
9442          esac~
9443          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9444            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9445            $RM "$lt_outputfile.manifest";
9446          fi'
9447	;;
9448      *)
9449	# Assume MSVC wrapper
9450	hardcode_libdir_flag_spec=' '
9451	allow_undefined_flag=unsupported
9452	# Tell ltmain to make .lib files, not .a files.
9453	libext=lib
9454	# Tell ltmain to make .dll files, not .so files.
9455	shrext_cmds=.dll
9456	# FIXME: Setting linknames here is a bad hack.
9457	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9458	# The linker will automatically build a .lib file if we build a DLL.
9459	old_archive_from_new_cmds='true'
9460	# FIXME: Should let the user specify the lib program.
9461	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9462	enable_shared_with_static_runtimes=yes
9463	;;
9464      esac
9465      ;;
9466
9467    darwin* | rhapsody*)
9468
9469
9470  archive_cmds_need_lc=no
9471  hardcode_direct=no
9472  hardcode_automatic=yes
9473  hardcode_shlibpath_var=unsupported
9474  if test yes = "$lt_cv_ld_force_load"; then
9475    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\"`'
9476
9477  else
9478    whole_archive_flag_spec=''
9479  fi
9480  link_all_deplibs=yes
9481  allow_undefined_flag=$_lt_dar_allow_undefined
9482  case $cc_basename in
9483     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9484     *) _lt_dar_can_shared=$GCC ;;
9485  esac
9486  if test yes = "$_lt_dar_can_shared"; then
9487    output_verbose_link_cmd=func_echo_all
9488    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9489    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9490    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"
9491    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"
9492
9493  else
9494  ld_shlibs=no
9495  fi
9496
9497      ;;
9498
9499    dgux*)
9500      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9501      hardcode_libdir_flag_spec='-L$libdir'
9502      hardcode_shlibpath_var=no
9503      ;;
9504
9505    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9506    # support.  Future versions do this automatically, but an explicit c++rt0.o
9507    # does not break anything, and helps significantly (at the cost of a little
9508    # extra space).
9509    freebsd2.2*)
9510      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9511      hardcode_libdir_flag_spec='-R$libdir'
9512      hardcode_direct=yes
9513      hardcode_shlibpath_var=no
9514      ;;
9515
9516    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9517    freebsd2.*)
9518      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9519      hardcode_direct=yes
9520      hardcode_minus_L=yes
9521      hardcode_shlibpath_var=no
9522      ;;
9523
9524    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9525    freebsd* | dragonfly*)
9526      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9527      hardcode_libdir_flag_spec='-R$libdir'
9528      hardcode_direct=yes
9529      hardcode_shlibpath_var=no
9530      ;;
9531
9532    hpux9*)
9533      if test yes = "$GCC"; then
9534	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'
9535      else
9536	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'
9537      fi
9538      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9539      hardcode_libdir_separator=:
9540      hardcode_direct=yes
9541
9542      # hardcode_minus_L: Not really in the search PATH,
9543      # but as the default location of the library.
9544      hardcode_minus_L=yes
9545      export_dynamic_flag_spec='$wl-E'
9546      ;;
9547
9548    hpux10*)
9549      if test yes,no = "$GCC,$with_gnu_ld"; then
9550	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9551      else
9552	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9553      fi
9554      if test no = "$with_gnu_ld"; then
9555	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9556	hardcode_libdir_separator=:
9557	hardcode_direct=yes
9558	hardcode_direct_absolute=yes
9559	export_dynamic_flag_spec='$wl-E'
9560	# hardcode_minus_L: Not really in the search PATH,
9561	# but as the default location of the library.
9562	hardcode_minus_L=yes
9563      fi
9564      ;;
9565
9566    hpux11*)
9567      if test yes,no = "$GCC,$with_gnu_ld"; then
9568	case $host_cpu in
9569	hppa*64*)
9570	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9571	  ;;
9572	ia64*)
9573	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9574	  ;;
9575	*)
9576	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9577	  ;;
9578	esac
9579      else
9580	case $host_cpu in
9581	hppa*64*)
9582	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9583	  ;;
9584	ia64*)
9585	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9586	  ;;
9587	*)
9588
9589	  # Older versions of the 11.00 compiler do not understand -b yet
9590	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9591	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9592$as_echo_n "checking if $CC understands -b... " >&6; }
9593if ${lt_cv_prog_compiler__b+:} false; then :
9594  $as_echo_n "(cached) " >&6
9595else
9596  lt_cv_prog_compiler__b=no
9597   save_LDFLAGS=$LDFLAGS
9598   LDFLAGS="$LDFLAGS -b"
9599   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9600   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9601     # The linker can only warn and ignore the option if not recognized
9602     # So say no if there are warnings
9603     if test -s conftest.err; then
9604       # Append any errors to the config.log.
9605       cat conftest.err 1>&5
9606       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9607       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9608       if diff conftest.exp conftest.er2 >/dev/null; then
9609         lt_cv_prog_compiler__b=yes
9610       fi
9611     else
9612       lt_cv_prog_compiler__b=yes
9613     fi
9614   fi
9615   $RM -r conftest*
9616   LDFLAGS=$save_LDFLAGS
9617
9618fi
9619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9620$as_echo "$lt_cv_prog_compiler__b" >&6; }
9621
9622if test yes = "$lt_cv_prog_compiler__b"; then
9623    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9624else
9625    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9626fi
9627
9628	  ;;
9629	esac
9630      fi
9631      if test no = "$with_gnu_ld"; then
9632	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9633	hardcode_libdir_separator=:
9634
9635	case $host_cpu in
9636	hppa*64*|ia64*)
9637	  hardcode_direct=no
9638	  hardcode_shlibpath_var=no
9639	  ;;
9640	*)
9641	  hardcode_direct=yes
9642	  hardcode_direct_absolute=yes
9643	  export_dynamic_flag_spec='$wl-E'
9644
9645	  # hardcode_minus_L: Not really in the search PATH,
9646	  # but as the default location of the library.
9647	  hardcode_minus_L=yes
9648	  ;;
9649	esac
9650      fi
9651      ;;
9652
9653    irix5* | irix6* | nonstopux*)
9654      if test yes = "$GCC"; then
9655	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'
9656	# Try to use the -exported_symbol ld option, if it does not
9657	# work, assume that -exports_file does not work either and
9658	# implicitly export all symbols.
9659	# This should be the same for all languages, so no per-tag cache variable.
9660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9661$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9662if ${lt_cv_irix_exported_symbol+:} false; then :
9663  $as_echo_n "(cached) " >&6
9664else
9665  save_LDFLAGS=$LDFLAGS
9666	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9667	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668/* end confdefs.h.  */
9669int foo (void) { return 0; }
9670_ACEOF
9671if ac_fn_c_try_link "$LINENO"; then :
9672  lt_cv_irix_exported_symbol=yes
9673else
9674  lt_cv_irix_exported_symbol=no
9675fi
9676rm -f core conftest.err conftest.$ac_objext \
9677    conftest$ac_exeext conftest.$ac_ext
9678           LDFLAGS=$save_LDFLAGS
9679fi
9680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9681$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9682	if test yes = "$lt_cv_irix_exported_symbol"; then
9683          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'
9684	fi
9685      else
9686	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'
9687	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'
9688      fi
9689      archive_cmds_need_lc='no'
9690      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9691      hardcode_libdir_separator=:
9692      inherit_rpath=yes
9693      link_all_deplibs=yes
9694      ;;
9695
9696    netbsd*)
9697      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9698	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9699      else
9700	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9701      fi
9702      hardcode_libdir_flag_spec='-R$libdir'
9703      hardcode_direct=yes
9704      hardcode_shlibpath_var=no
9705      ;;
9706
9707    newsos6)
9708      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709      hardcode_direct=yes
9710      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9711      hardcode_libdir_separator=:
9712      hardcode_shlibpath_var=no
9713      ;;
9714
9715    *nto* | *qnx*)
9716      ;;
9717
9718    openbsd* | bitrig*)
9719      if test -f /usr/libexec/ld.so; then
9720	hardcode_direct=yes
9721	hardcode_shlibpath_var=no
9722	hardcode_direct_absolute=yes
9723	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9724	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9725	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9726	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9727	  export_dynamic_flag_spec='$wl-E'
9728	else
9729	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9730	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9731	fi
9732      else
9733	ld_shlibs=no
9734      fi
9735      ;;
9736
9737    os2*)
9738      hardcode_libdir_flag_spec='-L$libdir'
9739      hardcode_minus_L=yes
9740      allow_undefined_flag=unsupported
9741      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9742      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9743      ;;
9744
9745    osf3*)
9746      if test yes = "$GCC"; then
9747	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9748	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'
9749      else
9750	allow_undefined_flag=' -expect_unresolved \*'
9751	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'
9752      fi
9753      archive_cmds_need_lc='no'
9754      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9755      hardcode_libdir_separator=:
9756      ;;
9757
9758    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9759      if test yes = "$GCC"; then
9760	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9761	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'
9762	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9763      else
9764	allow_undefined_flag=' -expect_unresolved \*'
9765	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'
9766	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~
9767          $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'
9768
9769	# Both c and cxx compiler support -rpath directly
9770	hardcode_libdir_flag_spec='-rpath $libdir'
9771      fi
9772      archive_cmds_need_lc='no'
9773      hardcode_libdir_separator=:
9774      ;;
9775
9776    solaris*)
9777      no_undefined_flag=' -z defs'
9778      if test yes = "$GCC"; then
9779	wlarc='$wl'
9780	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9781	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9782          $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'
9783      else
9784	case `$CC -V 2>&1` in
9785	*"Compilers 5.0"*)
9786	  wlarc=''
9787	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9788	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9789            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9790	  ;;
9791	*)
9792	  wlarc='$wl'
9793	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9794	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9795            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9796	  ;;
9797	esac
9798      fi
9799      hardcode_libdir_flag_spec='-R$libdir'
9800      hardcode_shlibpath_var=no
9801      case $host_os in
9802      solaris2.[0-5] | solaris2.[0-5].*) ;;
9803      *)
9804	# The compiler driver will combine and reorder linker options,
9805	# but understands '-z linker_flag'.  GCC discards it without '$wl',
9806	# but is careful enough not to reorder.
9807	# Supported since Solaris 2.6 (maybe 2.5.1?)
9808	if test yes = "$GCC"; then
9809	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9810	else
9811	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9812	fi
9813	;;
9814      esac
9815      link_all_deplibs=yes
9816      ;;
9817
9818    sunos4*)
9819      if test sequent = "$host_vendor"; then
9820	# Use $CC to link under sequent, because it throws in some extra .o
9821	# files that make .init and .fini sections work.
9822	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9823      else
9824	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9825      fi
9826      hardcode_libdir_flag_spec='-L$libdir'
9827      hardcode_direct=yes
9828      hardcode_minus_L=yes
9829      hardcode_shlibpath_var=no
9830      ;;
9831
9832    sysv4)
9833      case $host_vendor in
9834	sni)
9835	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9836	  hardcode_direct=yes # is this really true???
9837	;;
9838	siemens)
9839	  ## LD is ld it makes a PLAMLIB
9840	  ## CC just makes a GrossModule.
9841	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9842	  reload_cmds='$CC -r -o $output$reload_objs'
9843	  hardcode_direct=no
9844        ;;
9845	motorola)
9846	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9848	;;
9849      esac
9850      runpath_var='LD_RUN_PATH'
9851      hardcode_shlibpath_var=no
9852      ;;
9853
9854    sysv4.3*)
9855      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9856      hardcode_shlibpath_var=no
9857      export_dynamic_flag_spec='-Bexport'
9858      ;;
9859
9860    sysv4*MP*)
9861      if test -d /usr/nec; then
9862	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9863	hardcode_shlibpath_var=no
9864	runpath_var=LD_RUN_PATH
9865	hardcode_runpath_var=yes
9866	ld_shlibs=yes
9867      fi
9868      ;;
9869
9870    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9871      no_undefined_flag='$wl-z,text'
9872      archive_cmds_need_lc=no
9873      hardcode_shlibpath_var=no
9874      runpath_var='LD_RUN_PATH'
9875
9876      if test yes = "$GCC"; then
9877	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9878	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9879      else
9880	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9881	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9882      fi
9883      ;;
9884
9885    sysv5* | sco3.2v5* | sco5v6*)
9886      # Note: We CANNOT use -z defs as we might desire, because we do not
9887      # link with -lc, and that would cause any symbols used from libc to
9888      # always be unresolved, which means just about no library would
9889      # ever link correctly.  If we're not using GNU ld we use -z text
9890      # though, which does catch some bad symbols but isn't as heavy-handed
9891      # as -z defs.
9892      no_undefined_flag='$wl-z,text'
9893      allow_undefined_flag='$wl-z,nodefs'
9894      archive_cmds_need_lc=no
9895      hardcode_shlibpath_var=no
9896      hardcode_libdir_flag_spec='$wl-R,$libdir'
9897      hardcode_libdir_separator=':'
9898      link_all_deplibs=yes
9899      export_dynamic_flag_spec='$wl-Bexport'
9900      runpath_var='LD_RUN_PATH'
9901
9902      if test yes = "$GCC"; then
9903	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9904	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9905      else
9906	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9907	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9908      fi
9909      ;;
9910
9911    uts4*)
9912      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9913      hardcode_libdir_flag_spec='-L$libdir'
9914      hardcode_shlibpath_var=no
9915      ;;
9916
9917    *)
9918      ld_shlibs=no
9919      ;;
9920    esac
9921
9922    if test sni = "$host_vendor"; then
9923      case $host in
9924      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9925	export_dynamic_flag_spec='$wl-Blargedynsym'
9926	;;
9927      esac
9928    fi
9929  fi
9930
9931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9932$as_echo "$ld_shlibs" >&6; }
9933test no = "$ld_shlibs" && can_build_shared=no
9934
9935with_gnu_ld=$with_gnu_ld
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951#
9952# Do we need to explicitly link libc?
9953#
9954case "x$archive_cmds_need_lc" in
9955x|xyes)
9956  # Assume -lc should be added
9957  archive_cmds_need_lc=yes
9958
9959  if test yes,yes = "$GCC,$enable_shared"; then
9960    case $archive_cmds in
9961    *'~'*)
9962      # FIXME: we may have to deal with multi-command sequences.
9963      ;;
9964    '$CC '*)
9965      # Test whether the compiler implicitly links with -lc since on some
9966      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9967      # to ld, don't add -lc before -lgcc.
9968      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9969$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9970if ${lt_cv_archive_cmds_need_lc+:} false; then :
9971  $as_echo_n "(cached) " >&6
9972else
9973  $RM conftest*
9974	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9975
9976	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9977  (eval $ac_compile) 2>&5
9978  ac_status=$?
9979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9980  test $ac_status = 0; } 2>conftest.err; then
9981	  soname=conftest
9982	  lib=conftest
9983	  libobjs=conftest.$ac_objext
9984	  deplibs=
9985	  wl=$lt_prog_compiler_wl
9986	  pic_flag=$lt_prog_compiler_pic
9987	  compiler_flags=-v
9988	  linker_flags=-v
9989	  verstring=
9990	  output_objdir=.
9991	  libname=conftest
9992	  lt_save_allow_undefined_flag=$allow_undefined_flag
9993	  allow_undefined_flag=
9994	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9995  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9996  ac_status=$?
9997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9998  test $ac_status = 0; }
9999	  then
10000	    lt_cv_archive_cmds_need_lc=no
10001	  else
10002	    lt_cv_archive_cmds_need_lc=yes
10003	  fi
10004	  allow_undefined_flag=$lt_save_allow_undefined_flag
10005	else
10006	  cat conftest.err 1>&5
10007	fi
10008	$RM conftest*
10009
10010fi
10011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10012$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10013      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10014      ;;
10015    esac
10016  fi
10017  ;;
10018esac
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10172$as_echo_n "checking dynamic linker characteristics... " >&6; }
10173
10174if test yes = "$GCC"; then
10175  case $host_os in
10176    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10177    *) lt_awk_arg='/^libraries:/' ;;
10178  esac
10179  case $host_os in
10180    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10181    *) lt_sed_strip_eq='s|=/|/|g' ;;
10182  esac
10183  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10184  case $lt_search_path_spec in
10185  *\;*)
10186    # if the path contains ";" then we assume it to be the separator
10187    # otherwise default to the standard path separator (i.e. ":") - it is
10188    # assumed that no part of a normal pathname contains ";" but that should
10189    # okay in the real world where ";" in dirpaths is itself problematic.
10190    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10191    ;;
10192  *)
10193    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10194    ;;
10195  esac
10196  # Ok, now we have the path, separated by spaces, we can step through it
10197  # and add multilib dir if necessary...
10198  lt_tmp_lt_search_path_spec=
10199  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10200  # ...but if some path component already ends with the multilib dir we assume
10201  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10202  case "$lt_multi_os_dir; $lt_search_path_spec " in
10203  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10204    lt_multi_os_dir=
10205    ;;
10206  esac
10207  for lt_sys_path in $lt_search_path_spec; do
10208    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10209      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10210    elif test -n "$lt_multi_os_dir"; then
10211      test -d "$lt_sys_path" && \
10212	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10213    fi
10214  done
10215  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10216BEGIN {RS = " "; FS = "/|\n";} {
10217  lt_foo = "";
10218  lt_count = 0;
10219  for (lt_i = NF; lt_i > 0; lt_i--) {
10220    if ($lt_i != "" && $lt_i != ".") {
10221      if ($lt_i == "..") {
10222        lt_count++;
10223      } else {
10224        if (lt_count == 0) {
10225          lt_foo = "/" $lt_i lt_foo;
10226        } else {
10227          lt_count--;
10228        }
10229      }
10230    }
10231  }
10232  if (lt_foo != "") { lt_freq[lt_foo]++; }
10233  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10234}'`
10235  # AWK program above erroneously prepends '/' to C:/dos/paths
10236  # for these hosts.
10237  case $host_os in
10238    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10239      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10240  esac
10241  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10242else
10243  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10244fi
10245library_names_spec=
10246libname_spec='lib$name'
10247soname_spec=
10248shrext_cmds=.so
10249postinstall_cmds=
10250postuninstall_cmds=
10251finish_cmds=
10252finish_eval=
10253shlibpath_var=
10254shlibpath_overrides_runpath=unknown
10255version_type=none
10256dynamic_linker="$host_os ld.so"
10257sys_lib_dlsearch_path_spec="/lib /usr/lib"
10258need_lib_prefix=unknown
10259hardcode_into_libs=no
10260
10261# when you set need_version to no, make sure it does not cause -set_version
10262# flags to be left without arguments
10263need_version=unknown
10264
10265case $host_os in
10266aix3*)
10267  version_type=linux # correct to gnu/linux during the next big refactor
10268  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10269  shlibpath_var=LIBPATH
10270
10271  # AIX 3 has no versioning support, so we append a major version to the name.
10272  soname_spec='$libname$release$shared_ext$major'
10273  ;;
10274
10275aix[4-9]*)
10276  version_type=linux # correct to gnu/linux during the next big refactor
10277  need_lib_prefix=no
10278  need_version=no
10279  hardcode_into_libs=yes
10280  if test ia64 = "$host_cpu"; then
10281    # AIX 5 supports IA64
10282    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10283    shlibpath_var=LD_LIBRARY_PATH
10284  else
10285    # With GCC up to 2.95.x, collect2 would create an import file
10286    # for dependence libraries.  The import file would start with
10287    # the line '#! .'.  This would cause the generated library to
10288    # depend on '.', always an invalid library.  This was fixed in
10289    # development snapshots of GCC prior to 3.0.
10290    case $host_os in
10291      aix4 | aix4.[01] | aix4.[01].*)
10292      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10293	   echo ' yes '
10294	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10295	:
10296      else
10297	can_build_shared=no
10298      fi
10299      ;;
10300    esac
10301    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10302    # soname into executable. Probably we can add versioning support to
10303    # collect2, so additional links can be useful in future.
10304    if test yes = "$aix_use_runtimelinking"; then
10305      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10306      # instead of lib<name>.a to let people know that these are not
10307      # typical AIX shared libraries.
10308      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10309    else
10310      # We preserve .a as extension for shared libraries through AIX4.2
10311      # and later when we are not doing run time linking.
10312      library_names_spec='$libname$release.a $libname.a'
10313      soname_spec='$libname$release$shared_ext$major'
10314    fi
10315    shlibpath_var=LIBPATH
10316  fi
10317  ;;
10318
10319amigaos*)
10320  case $host_cpu in
10321  powerpc)
10322    # Since July 2007 AmigaOS4 officially supports .so libraries.
10323    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10324    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10325    ;;
10326  m68k)
10327    library_names_spec='$libname.ixlibrary $libname.a'
10328    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10329    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'
10330    ;;
10331  esac
10332  ;;
10333
10334beos*)
10335  library_names_spec='$libname$shared_ext'
10336  dynamic_linker="$host_os ld.so"
10337  shlibpath_var=LIBRARY_PATH
10338  ;;
10339
10340bsdi[45]*)
10341  version_type=linux # correct to gnu/linux during the next big refactor
10342  need_version=no
10343  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10344  soname_spec='$libname$release$shared_ext$major'
10345  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10346  shlibpath_var=LD_LIBRARY_PATH
10347  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10348  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10349  # the default ld.so.conf also contains /usr/contrib/lib and
10350  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10351  # libtool to hard-code these into programs
10352  ;;
10353
10354cygwin* | mingw* | pw32* | cegcc*)
10355  version_type=windows
10356  shrext_cmds=.dll
10357  need_version=no
10358  need_lib_prefix=no
10359
10360  case $GCC,$cc_basename in
10361  yes,*)
10362    # gcc
10363    library_names_spec='$libname.dll.a'
10364    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10365    postinstall_cmds='base_file=`basename \$file`~
10366      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10367      dldir=$destdir/`dirname \$dlpath`~
10368      test -d \$dldir || mkdir -p \$dldir~
10369      $install_prog $dir/$dlname \$dldir/$dlname~
10370      chmod a+x \$dldir/$dlname~
10371      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10372        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10373      fi'
10374    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10375      dlpath=$dir/\$dldll~
10376       $RM \$dlpath'
10377    shlibpath_overrides_runpath=yes
10378
10379    case $host_os in
10380    cygwin*)
10381      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10382      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10383
10384      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10385      ;;
10386    mingw* | cegcc*)
10387      # MinGW DLLs use traditional 'lib' prefix
10388      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10389      ;;
10390    pw32*)
10391      # pw32 DLLs use 'pw' prefix rather than 'lib'
10392      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10393      ;;
10394    esac
10395    dynamic_linker='Win32 ld.exe'
10396    ;;
10397
10398  *,cl*)
10399    # Native MSVC
10400    libname_spec='$name'
10401    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10402    library_names_spec='$libname.dll.lib'
10403
10404    case $build_os in
10405    mingw*)
10406      sys_lib_search_path_spec=
10407      lt_save_ifs=$IFS
10408      IFS=';'
10409      for lt_path in $LIB
10410      do
10411        IFS=$lt_save_ifs
10412        # Let DOS variable expansion print the short 8.3 style file name.
10413        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10414        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10415      done
10416      IFS=$lt_save_ifs
10417      # Convert to MSYS style.
10418      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10419      ;;
10420    cygwin*)
10421      # Convert to unix form, then to dos form, then back to unix form
10422      # but this time dos style (no spaces!) so that the unix form looks
10423      # like /cygdrive/c/PROGRA~1:/cygdr...
10424      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10425      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10426      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10427      ;;
10428    *)
10429      sys_lib_search_path_spec=$LIB
10430      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10431        # It is most probably a Windows format PATH.
10432        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10433      else
10434        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10435      fi
10436      # FIXME: find the short name or the path components, as spaces are
10437      # common. (e.g. "Program Files" -> "PROGRA~1")
10438      ;;
10439    esac
10440
10441    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10442    postinstall_cmds='base_file=`basename \$file`~
10443      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10444      dldir=$destdir/`dirname \$dlpath`~
10445      test -d \$dldir || mkdir -p \$dldir~
10446      $install_prog $dir/$dlname \$dldir/$dlname'
10447    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10448      dlpath=$dir/\$dldll~
10449       $RM \$dlpath'
10450    shlibpath_overrides_runpath=yes
10451    dynamic_linker='Win32 link.exe'
10452    ;;
10453
10454  *)
10455    # Assume MSVC wrapper
10456    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10457    dynamic_linker='Win32 ld.exe'
10458    ;;
10459  esac
10460  # FIXME: first we should search . and the directory the executable is in
10461  shlibpath_var=PATH
10462  ;;
10463
10464darwin* | rhapsody*)
10465  dynamic_linker="$host_os dyld"
10466  version_type=darwin
10467  need_lib_prefix=no
10468  need_version=no
10469  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10470  soname_spec='$libname$release$major$shared_ext'
10471  shlibpath_overrides_runpath=yes
10472  shlibpath_var=DYLD_LIBRARY_PATH
10473  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10474
10475  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10476  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10477  ;;
10478
10479dgux*)
10480  version_type=linux # correct to gnu/linux during the next big refactor
10481  need_lib_prefix=no
10482  need_version=no
10483  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10484  soname_spec='$libname$release$shared_ext$major'
10485  shlibpath_var=LD_LIBRARY_PATH
10486  ;;
10487
10488freebsd* | dragonfly*)
10489  # DragonFly does not have aout.  When/if they implement a new
10490  # versioning mechanism, adjust this.
10491  if test -x /usr/bin/objformat; then
10492    objformat=`/usr/bin/objformat`
10493  else
10494    case $host_os in
10495    freebsd[23].*) objformat=aout ;;
10496    *) objformat=elf ;;
10497    esac
10498  fi
10499  version_type=freebsd-$objformat
10500  case $version_type in
10501    freebsd-elf*)
10502      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10503      soname_spec='$libname$release$shared_ext$major'
10504      need_version=no
10505      need_lib_prefix=no
10506      ;;
10507    freebsd-*)
10508      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10509      need_version=yes
10510      ;;
10511  esac
10512  shlibpath_var=LD_LIBRARY_PATH
10513  case $host_os in
10514  freebsd2.*)
10515    shlibpath_overrides_runpath=yes
10516    ;;
10517  freebsd3.[01]* | freebsdelf3.[01]*)
10518    shlibpath_overrides_runpath=yes
10519    hardcode_into_libs=yes
10520    ;;
10521  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10522  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10523    shlibpath_overrides_runpath=no
10524    hardcode_into_libs=yes
10525    ;;
10526  *) # from 4.6 on, and DragonFly
10527    shlibpath_overrides_runpath=yes
10528    hardcode_into_libs=yes
10529    ;;
10530  esac
10531  ;;
10532
10533haiku*)
10534  version_type=linux # correct to gnu/linux during the next big refactor
10535  need_lib_prefix=no
10536  need_version=no
10537  dynamic_linker="$host_os runtime_loader"
10538  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10539  soname_spec='$libname$release$shared_ext$major'
10540  shlibpath_var=LIBRARY_PATH
10541  shlibpath_overrides_runpath=no
10542  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10543  hardcode_into_libs=yes
10544  ;;
10545
10546hpux9* | hpux10* | hpux11*)
10547  # Give a soname corresponding to the major version so that dld.sl refuses to
10548  # link against other versions.
10549  version_type=sunos
10550  need_lib_prefix=no
10551  need_version=no
10552  case $host_cpu in
10553  ia64*)
10554    shrext_cmds='.so'
10555    hardcode_into_libs=yes
10556    dynamic_linker="$host_os dld.so"
10557    shlibpath_var=LD_LIBRARY_PATH
10558    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10559    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10560    soname_spec='$libname$release$shared_ext$major'
10561    if test 32 = "$HPUX_IA64_MODE"; then
10562      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10563    else
10564      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10565    fi
10566    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10567    ;;
10568  hppa*64*)
10569    shrext_cmds='.sl'
10570    hardcode_into_libs=yes
10571    dynamic_linker="$host_os dld.sl"
10572    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10573    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10574    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10575    soname_spec='$libname$release$shared_ext$major'
10576    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10577    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10578    ;;
10579  *)
10580    shrext_cmds='.sl'
10581    dynamic_linker="$host_os dld.sl"
10582    shlibpath_var=SHLIB_PATH
10583    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10584    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10585    soname_spec='$libname$release$shared_ext$major'
10586    ;;
10587  esac
10588  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10589  postinstall_cmds='chmod 555 $lib'
10590  # or fails outright, so override atomically:
10591  install_override_mode=555
10592  ;;
10593
10594interix[3-9]*)
10595  version_type=linux # correct to gnu/linux during the next big refactor
10596  need_lib_prefix=no
10597  need_version=no
10598  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10599  soname_spec='$libname$release$shared_ext$major'
10600  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10601  shlibpath_var=LD_LIBRARY_PATH
10602  shlibpath_overrides_runpath=no
10603  hardcode_into_libs=yes
10604  ;;
10605
10606irix5* | irix6* | nonstopux*)
10607  case $host_os in
10608    nonstopux*) version_type=nonstopux ;;
10609    *)
10610	if test yes = "$lt_cv_prog_gnu_ld"; then
10611		version_type=linux # correct to gnu/linux during the next big refactor
10612	else
10613		version_type=irix
10614	fi ;;
10615  esac
10616  need_lib_prefix=no
10617  need_version=no
10618  soname_spec='$libname$release$shared_ext$major'
10619  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10620  case $host_os in
10621  irix5* | nonstopux*)
10622    libsuff= shlibsuff=
10623    ;;
10624  *)
10625    case $LD in # libtool.m4 will add one of these switches to LD
10626    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10627      libsuff= shlibsuff= libmagic=32-bit;;
10628    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10629      libsuff=32 shlibsuff=N32 libmagic=N32;;
10630    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10631      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10632    *) libsuff= shlibsuff= libmagic=never-match;;
10633    esac
10634    ;;
10635  esac
10636  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10637  shlibpath_overrides_runpath=no
10638  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10639  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10640  hardcode_into_libs=yes
10641  ;;
10642
10643# No shared lib support for Linux oldld, aout, or coff.
10644linux*oldld* | linux*aout* | linux*coff*)
10645  dynamic_linker=no
10646  ;;
10647
10648linux*android*)
10649  version_type=none # Android doesn't support versioned libraries.
10650  need_lib_prefix=no
10651  need_version=no
10652  library_names_spec='$libname$release$shared_ext'
10653  soname_spec='$libname$release$shared_ext'
10654  finish_cmds=
10655  shlibpath_var=LD_LIBRARY_PATH
10656  shlibpath_overrides_runpath=yes
10657
10658  # This implies no fast_install, which is unacceptable.
10659  # Some rework will be needed to allow for fast_install
10660  # before this can be enabled.
10661  hardcode_into_libs=yes
10662
10663  dynamic_linker='Android linker'
10664  # Don't embed -rpath directories since the linker doesn't support them.
10665  hardcode_libdir_flag_spec='-L$libdir'
10666  ;;
10667
10668# This must be glibc/ELF.
10669linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10670  version_type=linux # correct to gnu/linux during the next big refactor
10671  need_lib_prefix=no
10672  need_version=no
10673  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10674  soname_spec='$libname$release$shared_ext$major'
10675  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10676  shlibpath_var=LD_LIBRARY_PATH
10677  shlibpath_overrides_runpath=no
10678
10679  # Some binutils ld are patched to set DT_RUNPATH
10680  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10681  $as_echo_n "(cached) " >&6
10682else
10683  lt_cv_shlibpath_overrides_runpath=no
10684    save_LDFLAGS=$LDFLAGS
10685    save_libdir=$libdir
10686    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10687	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10688    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10689/* end confdefs.h.  */
10690
10691int
10692main ()
10693{
10694
10695  ;
10696  return 0;
10697}
10698_ACEOF
10699if ac_fn_c_try_link "$LINENO"; then :
10700  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10701  lt_cv_shlibpath_overrides_runpath=yes
10702fi
10703fi
10704rm -f core conftest.err conftest.$ac_objext \
10705    conftest$ac_exeext conftest.$ac_ext
10706    LDFLAGS=$save_LDFLAGS
10707    libdir=$save_libdir
10708
10709fi
10710
10711  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10712
10713  # This implies no fast_install, which is unacceptable.
10714  # Some rework will be needed to allow for fast_install
10715  # before this can be enabled.
10716  hardcode_into_libs=yes
10717
10718  # Append ld.so.conf contents to the search path
10719  if test -f /etc/ld.so.conf; then
10720    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' ' '`
10721    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10722  fi
10723
10724  # We used to test for /lib/ld.so.1 and disable shared libraries on
10725  # powerpc, because MkLinux only supported shared libraries with the
10726  # GNU dynamic linker.  Since this was broken with cross compilers,
10727  # most powerpc-linux boxes support dynamic linking these days and
10728  # people can always --disable-shared, the test was removed, and we
10729  # assume the GNU/Linux dynamic linker is in use.
10730  dynamic_linker='GNU/Linux ld.so'
10731  ;;
10732
10733netbsd*)
10734  version_type=sunos
10735  need_lib_prefix=no
10736  need_version=no
10737  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10738    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10739    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10740    dynamic_linker='NetBSD (a.out) ld.so'
10741  else
10742    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10743    soname_spec='$libname$release$shared_ext$major'
10744    dynamic_linker='NetBSD ld.elf_so'
10745  fi
10746  shlibpath_var=LD_LIBRARY_PATH
10747  shlibpath_overrides_runpath=yes
10748  hardcode_into_libs=yes
10749  ;;
10750
10751newsos6)
10752  version_type=linux # correct to gnu/linux during the next big refactor
10753  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10754  shlibpath_var=LD_LIBRARY_PATH
10755  shlibpath_overrides_runpath=yes
10756  ;;
10757
10758*nto* | *qnx*)
10759  version_type=qnx
10760  need_lib_prefix=no
10761  need_version=no
10762  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10763  soname_spec='$libname$release$shared_ext$major'
10764  shlibpath_var=LD_LIBRARY_PATH
10765  shlibpath_overrides_runpath=no
10766  hardcode_into_libs=yes
10767  dynamic_linker='ldqnx.so'
10768  ;;
10769
10770openbsd* | bitrig*)
10771  version_type=sunos
10772  sys_lib_dlsearch_path_spec=/usr/lib
10773  need_lib_prefix=no
10774  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10775    need_version=no
10776  else
10777    need_version=yes
10778  fi
10779  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10780  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10781  shlibpath_var=LD_LIBRARY_PATH
10782  shlibpath_overrides_runpath=yes
10783  ;;
10784
10785os2*)
10786  libname_spec='$name'
10787  shrext_cmds=.dll
10788  need_lib_prefix=no
10789  library_names_spec='$libname$shared_ext $libname.a'
10790  dynamic_linker='OS/2 ld.exe'
10791  shlibpath_var=LIBPATH
10792  ;;
10793
10794osf3* | osf4* | osf5*)
10795  version_type=osf
10796  need_lib_prefix=no
10797  need_version=no
10798  soname_spec='$libname$release$shared_ext$major'
10799  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10800  shlibpath_var=LD_LIBRARY_PATH
10801  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10802  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10803  ;;
10804
10805rdos*)
10806  dynamic_linker=no
10807  ;;
10808
10809solaris*)
10810  version_type=linux # correct to gnu/linux during the next big refactor
10811  need_lib_prefix=no
10812  need_version=no
10813  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10814  soname_spec='$libname$release$shared_ext$major'
10815  shlibpath_var=LD_LIBRARY_PATH
10816  shlibpath_overrides_runpath=yes
10817  hardcode_into_libs=yes
10818  # ldd complains unless libraries are executable
10819  postinstall_cmds='chmod +x $lib'
10820  ;;
10821
10822sunos4*)
10823  version_type=sunos
10824  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10825  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10826  shlibpath_var=LD_LIBRARY_PATH
10827  shlibpath_overrides_runpath=yes
10828  if test yes = "$with_gnu_ld"; then
10829    need_lib_prefix=no
10830  fi
10831  need_version=yes
10832  ;;
10833
10834sysv4 | sysv4.3*)
10835  version_type=linux # correct to gnu/linux during the next big refactor
10836  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10837  soname_spec='$libname$release$shared_ext$major'
10838  shlibpath_var=LD_LIBRARY_PATH
10839  case $host_vendor in
10840    sni)
10841      shlibpath_overrides_runpath=no
10842      need_lib_prefix=no
10843      runpath_var=LD_RUN_PATH
10844      ;;
10845    siemens)
10846      need_lib_prefix=no
10847      ;;
10848    motorola)
10849      need_lib_prefix=no
10850      need_version=no
10851      shlibpath_overrides_runpath=no
10852      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10853      ;;
10854  esac
10855  ;;
10856
10857sysv4*MP*)
10858  if test -d /usr/nec; then
10859    version_type=linux # correct to gnu/linux during the next big refactor
10860    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10861    soname_spec='$libname$shared_ext.$major'
10862    shlibpath_var=LD_LIBRARY_PATH
10863  fi
10864  ;;
10865
10866sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10867  version_type=freebsd-elf
10868  need_lib_prefix=no
10869  need_version=no
10870  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10871  soname_spec='$libname$release$shared_ext$major'
10872  shlibpath_var=LD_LIBRARY_PATH
10873  shlibpath_overrides_runpath=yes
10874  hardcode_into_libs=yes
10875  if test yes = "$with_gnu_ld"; then
10876    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10877  else
10878    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10879    case $host_os in
10880      sco3.2v5*)
10881        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10882	;;
10883    esac
10884  fi
10885  sys_lib_dlsearch_path_spec='/usr/lib'
10886  ;;
10887
10888tpf*)
10889  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10890  version_type=linux # correct to gnu/linux during the next big refactor
10891  need_lib_prefix=no
10892  need_version=no
10893  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10894  shlibpath_var=LD_LIBRARY_PATH
10895  shlibpath_overrides_runpath=no
10896  hardcode_into_libs=yes
10897  ;;
10898
10899uts4*)
10900  version_type=linux # correct to gnu/linux during the next big refactor
10901  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10902  soname_spec='$libname$release$shared_ext$major'
10903  shlibpath_var=LD_LIBRARY_PATH
10904  ;;
10905
10906*)
10907  dynamic_linker=no
10908  ;;
10909esac
10910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10911$as_echo "$dynamic_linker" >&6; }
10912test no = "$dynamic_linker" && can_build_shared=no
10913
10914variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10915if test yes = "$GCC"; then
10916  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10917fi
10918
10919if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10920  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10921fi
10922if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10923  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10924fi
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11018$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11019hardcode_action=
11020if test -n "$hardcode_libdir_flag_spec" ||
11021   test -n "$runpath_var" ||
11022   test yes = "$hardcode_automatic"; then
11023
11024  # We can hardcode non-existent directories.
11025  if test no != "$hardcode_direct" &&
11026     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11027     # have to relink, otherwise we might link with an installed library
11028     # when we should be linking with a yet-to-be-installed one
11029     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11030     test no != "$hardcode_minus_L"; then
11031    # Linking always hardcodes the temporary library directory.
11032    hardcode_action=relink
11033  else
11034    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11035    hardcode_action=immediate
11036  fi
11037else
11038  # We cannot hardcode anything, or else we can only hardcode existing
11039  # directories.
11040  hardcode_action=unsupported
11041fi
11042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11043$as_echo "$hardcode_action" >&6; }
11044
11045if test relink = "$hardcode_action" ||
11046   test yes = "$inherit_rpath"; then
11047  # Fast installation is not supported
11048  enable_fast_install=no
11049elif test yes = "$shlibpath_overrides_runpath" ||
11050     test no = "$enable_shared"; then
11051  # Fast installation is not necessary
11052  enable_fast_install=needless
11053fi
11054
11055
11056
11057
11058
11059
11060  if test yes != "$enable_dlopen"; then
11061  enable_dlopen=unknown
11062  enable_dlopen_self=unknown
11063  enable_dlopen_self_static=unknown
11064else
11065  lt_cv_dlopen=no
11066  lt_cv_dlopen_libs=
11067
11068  case $host_os in
11069  beos*)
11070    lt_cv_dlopen=load_add_on
11071    lt_cv_dlopen_libs=
11072    lt_cv_dlopen_self=yes
11073    ;;
11074
11075  mingw* | pw32* | cegcc*)
11076    lt_cv_dlopen=LoadLibrary
11077    lt_cv_dlopen_libs=
11078    ;;
11079
11080  cygwin*)
11081    lt_cv_dlopen=dlopen
11082    lt_cv_dlopen_libs=
11083    ;;
11084
11085  darwin*)
11086    # if libdl is installed we need to link against it
11087    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11088$as_echo_n "checking for dlopen in -ldl... " >&6; }
11089if ${ac_cv_lib_dl_dlopen+:} false; then :
11090  $as_echo_n "(cached) " >&6
11091else
11092  ac_check_lib_save_LIBS=$LIBS
11093LIBS="-ldl  $LIBS"
11094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11095/* end confdefs.h.  */
11096
11097/* Override any GCC internal prototype to avoid an error.
11098   Use char because int might match the return type of a GCC
11099   builtin and then its argument prototype would still apply.  */
11100#ifdef __cplusplus
11101extern "C"
11102#endif
11103char dlopen ();
11104int
11105main ()
11106{
11107return dlopen ();
11108  ;
11109  return 0;
11110}
11111_ACEOF
11112if ac_fn_c_try_link "$LINENO"; then :
11113  ac_cv_lib_dl_dlopen=yes
11114else
11115  ac_cv_lib_dl_dlopen=no
11116fi
11117rm -f core conftest.err conftest.$ac_objext \
11118    conftest$ac_exeext conftest.$ac_ext
11119LIBS=$ac_check_lib_save_LIBS
11120fi
11121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11122$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11123if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11124  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11125else
11126
11127    lt_cv_dlopen=dyld
11128    lt_cv_dlopen_libs=
11129    lt_cv_dlopen_self=yes
11130
11131fi
11132
11133    ;;
11134
11135  tpf*)
11136    # Don't try to run any link tests for TPF.  We know it's impossible
11137    # because TPF is a cross-compiler, and we know how we open DSOs.
11138    lt_cv_dlopen=dlopen
11139    lt_cv_dlopen_libs=
11140    lt_cv_dlopen_self=no
11141    ;;
11142
11143  *)
11144    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11145if test "x$ac_cv_func_shl_load" = xyes; then :
11146  lt_cv_dlopen=shl_load
11147else
11148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11149$as_echo_n "checking for shl_load in -ldld... " >&6; }
11150if ${ac_cv_lib_dld_shl_load+:} false; then :
11151  $as_echo_n "(cached) " >&6
11152else
11153  ac_check_lib_save_LIBS=$LIBS
11154LIBS="-ldld  $LIBS"
11155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156/* end confdefs.h.  */
11157
11158/* Override any GCC internal prototype to avoid an error.
11159   Use char because int might match the return type of a GCC
11160   builtin and then its argument prototype would still apply.  */
11161#ifdef __cplusplus
11162extern "C"
11163#endif
11164char shl_load ();
11165int
11166main ()
11167{
11168return shl_load ();
11169  ;
11170  return 0;
11171}
11172_ACEOF
11173if ac_fn_c_try_link "$LINENO"; then :
11174  ac_cv_lib_dld_shl_load=yes
11175else
11176  ac_cv_lib_dld_shl_load=no
11177fi
11178rm -f core conftest.err conftest.$ac_objext \
11179    conftest$ac_exeext conftest.$ac_ext
11180LIBS=$ac_check_lib_save_LIBS
11181fi
11182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11183$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11184if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11185  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11186else
11187  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11188if test "x$ac_cv_func_dlopen" = xyes; then :
11189  lt_cv_dlopen=dlopen
11190else
11191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11192$as_echo_n "checking for dlopen in -ldl... " >&6; }
11193if ${ac_cv_lib_dl_dlopen+:} false; then :
11194  $as_echo_n "(cached) " >&6
11195else
11196  ac_check_lib_save_LIBS=$LIBS
11197LIBS="-ldl  $LIBS"
11198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199/* end confdefs.h.  */
11200
11201/* Override any GCC internal prototype to avoid an error.
11202   Use char because int might match the return type of a GCC
11203   builtin and then its argument prototype would still apply.  */
11204#ifdef __cplusplus
11205extern "C"
11206#endif
11207char dlopen ();
11208int
11209main ()
11210{
11211return dlopen ();
11212  ;
11213  return 0;
11214}
11215_ACEOF
11216if ac_fn_c_try_link "$LINENO"; then :
11217  ac_cv_lib_dl_dlopen=yes
11218else
11219  ac_cv_lib_dl_dlopen=no
11220fi
11221rm -f core conftest.err conftest.$ac_objext \
11222    conftest$ac_exeext conftest.$ac_ext
11223LIBS=$ac_check_lib_save_LIBS
11224fi
11225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11226$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11227if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11228  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11229else
11230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11231$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11232if ${ac_cv_lib_svld_dlopen+:} false; then :
11233  $as_echo_n "(cached) " >&6
11234else
11235  ac_check_lib_save_LIBS=$LIBS
11236LIBS="-lsvld  $LIBS"
11237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238/* end confdefs.h.  */
11239
11240/* Override any GCC internal prototype to avoid an error.
11241   Use char because int might match the return type of a GCC
11242   builtin and then its argument prototype would still apply.  */
11243#ifdef __cplusplus
11244extern "C"
11245#endif
11246char dlopen ();
11247int
11248main ()
11249{
11250return dlopen ();
11251  ;
11252  return 0;
11253}
11254_ACEOF
11255if ac_fn_c_try_link "$LINENO"; then :
11256  ac_cv_lib_svld_dlopen=yes
11257else
11258  ac_cv_lib_svld_dlopen=no
11259fi
11260rm -f core conftest.err conftest.$ac_objext \
11261    conftest$ac_exeext conftest.$ac_ext
11262LIBS=$ac_check_lib_save_LIBS
11263fi
11264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11265$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11266if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11267  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11268else
11269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11270$as_echo_n "checking for dld_link in -ldld... " >&6; }
11271if ${ac_cv_lib_dld_dld_link+:} false; then :
11272  $as_echo_n "(cached) " >&6
11273else
11274  ac_check_lib_save_LIBS=$LIBS
11275LIBS="-ldld  $LIBS"
11276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277/* end confdefs.h.  */
11278
11279/* Override any GCC internal prototype to avoid an error.
11280   Use char because int might match the return type of a GCC
11281   builtin and then its argument prototype would still apply.  */
11282#ifdef __cplusplus
11283extern "C"
11284#endif
11285char dld_link ();
11286int
11287main ()
11288{
11289return dld_link ();
11290  ;
11291  return 0;
11292}
11293_ACEOF
11294if ac_fn_c_try_link "$LINENO"; then :
11295  ac_cv_lib_dld_dld_link=yes
11296else
11297  ac_cv_lib_dld_dld_link=no
11298fi
11299rm -f core conftest.err conftest.$ac_objext \
11300    conftest$ac_exeext conftest.$ac_ext
11301LIBS=$ac_check_lib_save_LIBS
11302fi
11303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11304$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11305if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11306  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11307fi
11308
11309
11310fi
11311
11312
11313fi
11314
11315
11316fi
11317
11318
11319fi
11320
11321
11322fi
11323
11324    ;;
11325  esac
11326
11327  if test no = "$lt_cv_dlopen"; then
11328    enable_dlopen=no
11329  else
11330    enable_dlopen=yes
11331  fi
11332
11333  case $lt_cv_dlopen in
11334  dlopen)
11335    save_CPPFLAGS=$CPPFLAGS
11336    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11337
11338    save_LDFLAGS=$LDFLAGS
11339    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11340
11341    save_LIBS=$LIBS
11342    LIBS="$lt_cv_dlopen_libs $LIBS"
11343
11344    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11345$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11346if ${lt_cv_dlopen_self+:} false; then :
11347  $as_echo_n "(cached) " >&6
11348else
11349  	  if test yes = "$cross_compiling"; then :
11350  lt_cv_dlopen_self=cross
11351else
11352  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11353  lt_status=$lt_dlunknown
11354  cat > conftest.$ac_ext <<_LT_EOF
11355#line $LINENO "configure"
11356#include "confdefs.h"
11357
11358#if HAVE_DLFCN_H
11359#include <dlfcn.h>
11360#endif
11361
11362#include <stdio.h>
11363
11364#ifdef RTLD_GLOBAL
11365#  define LT_DLGLOBAL		RTLD_GLOBAL
11366#else
11367#  ifdef DL_GLOBAL
11368#    define LT_DLGLOBAL		DL_GLOBAL
11369#  else
11370#    define LT_DLGLOBAL		0
11371#  endif
11372#endif
11373
11374/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11375   find out it does not work in some platform. */
11376#ifndef LT_DLLAZY_OR_NOW
11377#  ifdef RTLD_LAZY
11378#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11379#  else
11380#    ifdef DL_LAZY
11381#      define LT_DLLAZY_OR_NOW		DL_LAZY
11382#    else
11383#      ifdef RTLD_NOW
11384#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11385#      else
11386#        ifdef DL_NOW
11387#          define LT_DLLAZY_OR_NOW	DL_NOW
11388#        else
11389#          define LT_DLLAZY_OR_NOW	0
11390#        endif
11391#      endif
11392#    endif
11393#  endif
11394#endif
11395
11396/* When -fvisbility=hidden is used, assume the code has been annotated
11397   correspondingly for the symbols needed.  */
11398#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11399int fnord () __attribute__((visibility("default")));
11400#endif
11401
11402int fnord () { return 42; }
11403int main ()
11404{
11405  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11406  int status = $lt_dlunknown;
11407
11408  if (self)
11409    {
11410      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11411      else
11412        {
11413	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11414          else puts (dlerror ());
11415	}
11416      /* dlclose (self); */
11417    }
11418  else
11419    puts (dlerror ());
11420
11421  return status;
11422}
11423_LT_EOF
11424  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11425  (eval $ac_link) 2>&5
11426  ac_status=$?
11427  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11428  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11429    (./conftest; exit; ) >&5 2>/dev/null
11430    lt_status=$?
11431    case x$lt_status in
11432      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11433      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11434      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11435    esac
11436  else :
11437    # compilation failed
11438    lt_cv_dlopen_self=no
11439  fi
11440fi
11441rm -fr conftest*
11442
11443
11444fi
11445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11446$as_echo "$lt_cv_dlopen_self" >&6; }
11447
11448    if test yes = "$lt_cv_dlopen_self"; then
11449      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11450      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11451$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11452if ${lt_cv_dlopen_self_static+:} false; then :
11453  $as_echo_n "(cached) " >&6
11454else
11455  	  if test yes = "$cross_compiling"; then :
11456  lt_cv_dlopen_self_static=cross
11457else
11458  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11459  lt_status=$lt_dlunknown
11460  cat > conftest.$ac_ext <<_LT_EOF
11461#line $LINENO "configure"
11462#include "confdefs.h"
11463
11464#if HAVE_DLFCN_H
11465#include <dlfcn.h>
11466#endif
11467
11468#include <stdio.h>
11469
11470#ifdef RTLD_GLOBAL
11471#  define LT_DLGLOBAL		RTLD_GLOBAL
11472#else
11473#  ifdef DL_GLOBAL
11474#    define LT_DLGLOBAL		DL_GLOBAL
11475#  else
11476#    define LT_DLGLOBAL		0
11477#  endif
11478#endif
11479
11480/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11481   find out it does not work in some platform. */
11482#ifndef LT_DLLAZY_OR_NOW
11483#  ifdef RTLD_LAZY
11484#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11485#  else
11486#    ifdef DL_LAZY
11487#      define LT_DLLAZY_OR_NOW		DL_LAZY
11488#    else
11489#      ifdef RTLD_NOW
11490#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11491#      else
11492#        ifdef DL_NOW
11493#          define LT_DLLAZY_OR_NOW	DL_NOW
11494#        else
11495#          define LT_DLLAZY_OR_NOW	0
11496#        endif
11497#      endif
11498#    endif
11499#  endif
11500#endif
11501
11502/* When -fvisbility=hidden is used, assume the code has been annotated
11503   correspondingly for the symbols needed.  */
11504#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11505int fnord () __attribute__((visibility("default")));
11506#endif
11507
11508int fnord () { return 42; }
11509int main ()
11510{
11511  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11512  int status = $lt_dlunknown;
11513
11514  if (self)
11515    {
11516      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11517      else
11518        {
11519	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11520          else puts (dlerror ());
11521	}
11522      /* dlclose (self); */
11523    }
11524  else
11525    puts (dlerror ());
11526
11527  return status;
11528}
11529_LT_EOF
11530  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11531  (eval $ac_link) 2>&5
11532  ac_status=$?
11533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11534  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11535    (./conftest; exit; ) >&5 2>/dev/null
11536    lt_status=$?
11537    case x$lt_status in
11538      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11539      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11540      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11541    esac
11542  else :
11543    # compilation failed
11544    lt_cv_dlopen_self_static=no
11545  fi
11546fi
11547rm -fr conftest*
11548
11549
11550fi
11551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11552$as_echo "$lt_cv_dlopen_self_static" >&6; }
11553    fi
11554
11555    CPPFLAGS=$save_CPPFLAGS
11556    LDFLAGS=$save_LDFLAGS
11557    LIBS=$save_LIBS
11558    ;;
11559  esac
11560
11561  case $lt_cv_dlopen_self in
11562  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11563  *) enable_dlopen_self=unknown ;;
11564  esac
11565
11566  case $lt_cv_dlopen_self_static in
11567  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11568  *) enable_dlopen_self_static=unknown ;;
11569  esac
11570fi
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588striplib=
11589old_striplib=
11590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11591$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11592if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11593  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11594  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11596$as_echo "yes" >&6; }
11597else
11598# FIXME - insert some real tests, host_os isn't really good enough
11599  case $host_os in
11600  darwin*)
11601    if test -n "$STRIP"; then
11602      striplib="$STRIP -x"
11603      old_striplib="$STRIP -S"
11604      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11605$as_echo "yes" >&6; }
11606    else
11607      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608$as_echo "no" >&6; }
11609    fi
11610    ;;
11611  *)
11612    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613$as_echo "no" >&6; }
11614    ;;
11615  esac
11616fi
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629  # Report what library types will actually be built
11630  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11631$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11633$as_echo "$can_build_shared" >&6; }
11634
11635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11636$as_echo_n "checking whether to build shared libraries... " >&6; }
11637  test no = "$can_build_shared" && enable_shared=no
11638
11639  # On AIX, shared libraries and static libraries use the same namespace, and
11640  # are all built from PIC.
11641  case $host_os in
11642  aix3*)
11643    test yes = "$enable_shared" && enable_static=no
11644    if test -n "$RANLIB"; then
11645      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11646      postinstall_cmds='$RANLIB $lib'
11647    fi
11648    ;;
11649
11650  aix[4-9]*)
11651    if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
11652      test yes = "$enable_shared" && enable_static=no
11653    fi
11654    ;;
11655  esac
11656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11657$as_echo "$enable_shared" >&6; }
11658
11659  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11660$as_echo_n "checking whether to build static libraries... " >&6; }
11661  # Make sure either enable_shared or enable_static is yes.
11662  test yes = "$enable_shared" || enable_static=yes
11663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11664$as_echo "$enable_static" >&6; }
11665
11666
11667
11668
11669fi
11670ac_ext=c
11671ac_cpp='$CPP $CPPFLAGS'
11672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11674ac_compiler_gnu=$ac_cv_c_compiler_gnu
11675
11676CC=$lt_save_CC
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692        ac_config_commands="$ac_config_commands libtool"
11693
11694
11695
11696
11697# Only expand once:
11698
11699
11700
11701case "${host_os}" in
11702freebsd*)
11703  CPPFLAGS="-I/usr/local/include -pthread"
11704  LDFLAGS="-L/usr/local/lib"
11705  #LIBS=
11706  ;;
11707linux*)
11708  CPPFLAGS="-D_BSD_SOURCE -D_ISOC99_SOURCE -DLINUX_XXX"
11709  LIBS="-lrt"
11710  ;;
11711solaris*)
11712  LIBS="-lsocket -lnsl -lxnet -lrt"
11713  ;;
11714*)
11715  ;;
11716esac
11717
11718# Check whether --enable-systemd was given.
11719if test "${enable_systemd+set}" = set; then :
11720  enableval=$enable_systemd;
11721else
11722  enable_systemd=no
11723fi
11724
11725
11726# Checks for libraries.
11727
11728if test "$enable_systemd" = 'yes'
11729then
11730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sd_listen_fds" >&5
11731$as_echo_n "checking for library containing sd_listen_fds... " >&6; }
11732if ${ac_cv_search_sd_listen_fds+:} false; then :
11733  $as_echo_n "(cached) " >&6
11734else
11735  ac_func_search_save_LIBS=$LIBS
11736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737/* end confdefs.h.  */
11738
11739/* Override any GCC internal prototype to avoid an error.
11740   Use char because int might match the return type of a GCC
11741   builtin and then its argument prototype would still apply.  */
11742#ifdef __cplusplus
11743extern "C"
11744#endif
11745char sd_listen_fds ();
11746int
11747main ()
11748{
11749return sd_listen_fds ();
11750  ;
11751  return 0;
11752}
11753_ACEOF
11754for ac_lib in '' systemd systemd-daemon; do
11755  if test -z "$ac_lib"; then
11756    ac_res="none required"
11757  else
11758    ac_res=-l$ac_lib
11759    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11760  fi
11761  if ac_fn_c_try_link "$LINENO"; then :
11762  ac_cv_search_sd_listen_fds=$ac_res
11763fi
11764rm -f core conftest.err conftest.$ac_objext \
11765    conftest$ac_exeext
11766  if ${ac_cv_search_sd_listen_fds+:} false; then :
11767  break
11768fi
11769done
11770if ${ac_cv_search_sd_listen_fds+:} false; then :
11771
11772else
11773  ac_cv_search_sd_listen_fds=no
11774fi
11775rm conftest.$ac_ext
11776LIBS=$ac_func_search_save_LIBS
11777fi
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sd_listen_fds" >&5
11779$as_echo "$ac_cv_search_sd_listen_fds" >&6; }
11780ac_res=$ac_cv_search_sd_listen_fds
11781if test "$ac_res" != no; then :
11782  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11783  have_sd_listen_fds=yes
11784else
11785  as_fn_error $? "Cannot find sd_listen_fds function" "$LINENO" 5
11786fi
11787
11788  ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
11789if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then :
11790  have_systemd_sd_daemon_h=yes
11791else
11792  as_fn_error $? "Cannot find <systemd/sd-daemon.h> header" "$LINENO" 5
11793fi
11794
11795
11796  if test x"$have_sd_listen_fds" = x"yes" && \
11797     test x"$have_systemd_sd_daemon_h" = x"yes"
11798  then
11799
11800$as_echo "#define HAVE_SYSTEMD_DAEMON 1" >>confdefs.h
11801
11802  fi
11803
11804fi
11805
11806# dlopen et al
11807ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
11808if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11809  found_dlfcn=yes
11810fi
11811
11812
11813if test "$found_dlfcn" = yes
11814then
11815  ENABLE_MODULE_IF=1
11816
11817$as_echo "#define ENABLE_MODULE_IF 1" >>confdefs.h
11818
11819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
11820$as_echo_n "checking for dladdr in -ldl... " >&6; }
11821if ${ac_cv_lib_dl_dladdr+:} false; then :
11822  $as_echo_n "(cached) " >&6
11823else
11824  ac_check_lib_save_LIBS=$LIBS
11825LIBS="-ldl  $LIBS"
11826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827/* end confdefs.h.  */
11828
11829/* Override any GCC internal prototype to avoid an error.
11830   Use char because int might match the return type of a GCC
11831   builtin and then its argument prototype would still apply.  */
11832#ifdef __cplusplus
11833extern "C"
11834#endif
11835char dladdr ();
11836int
11837main ()
11838{
11839return dladdr ();
11840  ;
11841  return 0;
11842}
11843_ACEOF
11844if ac_fn_c_try_link "$LINENO"; then :
11845  ac_cv_lib_dl_dladdr=yes
11846else
11847  ac_cv_lib_dl_dladdr=no
11848fi
11849rm -f core conftest.err conftest.$ac_objext \
11850    conftest$ac_exeext conftest.$ac_ext
11851LIBS=$ac_check_lib_save_LIBS
11852fi
11853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
11854$as_echo "$ac_cv_lib_dl_dladdr" >&6; }
11855if test "x$ac_cv_lib_dl_dladdr" = xyes; then :
11856  LIBS_DL=-ldl
11857else
11858  LIBS_DL=
11859fi
11860
11861fi
11862
11863# GSM
11864ac_fn_c_check_header_mongrel "$LINENO" "gsm.h" "ac_cv_header_gsm_h" "$ac_includes_default"
11865if test "x$ac_cv_header_gsm_h" = xyes; then :
11866  found_libgsm=yes
11867fi
11868
11869
11870if test "$found_libgsm" = yes
11871then
11872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsm_create in -lgsm" >&5
11873$as_echo_n "checking for gsm_create in -lgsm... " >&6; }
11874if ${ac_cv_lib_gsm_gsm_create+:} false; then :
11875  $as_echo_n "(cached) " >&6
11876else
11877  ac_check_lib_save_LIBS=$LIBS
11878LIBS="-lgsm  $LIBS"
11879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880/* end confdefs.h.  */
11881
11882/* Override any GCC internal prototype to avoid an error.
11883   Use char because int might match the return type of a GCC
11884   builtin and then its argument prototype would still apply.  */
11885#ifdef __cplusplus
11886extern "C"
11887#endif
11888char gsm_create ();
11889int
11890main ()
11891{
11892return gsm_create ();
11893  ;
11894  return 0;
11895}
11896_ACEOF
11897if ac_fn_c_try_link "$LINENO"; then :
11898  ac_cv_lib_gsm_gsm_create=yes
11899else
11900  ac_cv_lib_gsm_gsm_create=no
11901fi
11902rm -f core conftest.err conftest.$ac_objext \
11903    conftest$ac_exeext conftest.$ac_ext
11904LIBS=$ac_check_lib_save_LIBS
11905fi
11906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsm_gsm_create" >&5
11907$as_echo "$ac_cv_lib_gsm_gsm_create" >&6; }
11908if test "x$ac_cv_lib_gsm_gsm_create" = xyes; then :
11909  LIBS_GSM="-lgsm"
11910
11911$as_echo "#define ENABLE_GSM 1" >>confdefs.h
11912
11913fi
11914
11915fi
11916
11917# G.729
11918ac_fn_c_check_header_mongrel "$LINENO" "g729_encoder.h" "ac_cv_header_g729_encoder_h" "$ac_includes_default"
11919if test "x$ac_cv_header_g729_encoder_h" = xyes; then :
11920  found_libg729=yes
11921fi
11922
11923
11924if test "$found_libg729" = yes
11925then
11926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g729_encoder_new in -lg729" >&5
11927$as_echo_n "checking for g729_encoder_new in -lg729... " >&6; }
11928if ${ac_cv_lib_g729_g729_encoder_new+:} false; then :
11929  $as_echo_n "(cached) " >&6
11930else
11931  ac_check_lib_save_LIBS=$LIBS
11932LIBS="-lg729 -lm
11933   $LIBS"
11934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935/* end confdefs.h.  */
11936
11937/* Override any GCC internal prototype to avoid an error.
11938   Use char because int might match the return type of a GCC
11939   builtin and then its argument prototype would still apply.  */
11940#ifdef __cplusplus
11941extern "C"
11942#endif
11943char g729_encoder_new ();
11944int
11945main ()
11946{
11947return g729_encoder_new ();
11948  ;
11949  return 0;
11950}
11951_ACEOF
11952if ac_fn_c_try_link "$LINENO"; then :
11953  ac_cv_lib_g729_g729_encoder_new=yes
11954else
11955  ac_cv_lib_g729_g729_encoder_new=no
11956fi
11957rm -f core conftest.err conftest.$ac_objext \
11958    conftest$ac_exeext conftest.$ac_ext
11959LIBS=$ac_check_lib_save_LIBS
11960fi
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g729_g729_encoder_new" >&5
11962$as_echo "$ac_cv_lib_g729_g729_encoder_new" >&6; }
11963if test "x$ac_cv_lib_g729_g729_encoder_new" = xyes; then :
11964  LIBS_G729="-lg729 -lm"
11965
11966$as_echo "#define ENABLE_G729 1" >>confdefs.h
11967
11968fi
11969
11970else
11971  ac_fn_c_check_header_mongrel "$LINENO" "bcg729/encoder.h" "ac_cv_header_bcg729_encoder_h" "$ac_includes_default"
11972if test "x$ac_cv_header_bcg729_encoder_h" = xyes; then :
11973  found_libbcg729=yes
11974fi
11975
11976
11977  if test "$found_libbcg729" = yes
11978  then
11979    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initBcg729EncoderChannel in -lbcg729" >&5
11980$as_echo_n "checking for initBcg729EncoderChannel in -lbcg729... " >&6; }
11981if ${ac_cv_lib_bcg729_initBcg729EncoderChannel+:} false; then :
11982  $as_echo_n "(cached) " >&6
11983else
11984  ac_check_lib_save_LIBS=$LIBS
11985LIBS="-lbcg729  $LIBS"
11986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987/* end confdefs.h.  */
11988
11989/* Override any GCC internal prototype to avoid an error.
11990   Use char because int might match the return type of a GCC
11991   builtin and then its argument prototype would still apply.  */
11992#ifdef __cplusplus
11993extern "C"
11994#endif
11995char initBcg729EncoderChannel ();
11996int
11997main ()
11998{
11999return initBcg729EncoderChannel ();
12000  ;
12001  return 0;
12002}
12003_ACEOF
12004if ac_fn_c_try_link "$LINENO"; then :
12005  ac_cv_lib_bcg729_initBcg729EncoderChannel=yes
12006else
12007  ac_cv_lib_bcg729_initBcg729EncoderChannel=no
12008fi
12009rm -f core conftest.err conftest.$ac_objext \
12010    conftest$ac_exeext conftest.$ac_ext
12011LIBS=$ac_check_lib_save_LIBS
12012fi
12013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bcg729_initBcg729EncoderChannel" >&5
12014$as_echo "$ac_cv_lib_bcg729_initBcg729EncoderChannel" >&6; }
12015if test "x$ac_cv_lib_bcg729_initBcg729EncoderChannel" = xyes; then :
12016  LIBS_G729=`pkg-config --libs libbcg729`
12017
12018$as_echo "#define ENABLE_G729 1" >>confdefs.h
12019
12020
12021$as_echo "#define ENABLE_BCG729 1" >>confdefs.h
12022
12023
12024fi
12025
12026  fi
12027fi
12028
12029# G.722
12030ac_fn_c_check_header_mongrel "$LINENO" "g722.h" "ac_cv_header_g722_h" "$ac_includes_default"
12031if test "x$ac_cv_header_g722_h" = xyes; then :
12032  found_libg722=yes
12033fi
12034
12035
12036if test "$found_libg722" = yes
12037then
12038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g722_encoder_new in -lg722" >&5
12039$as_echo_n "checking for g722_encoder_new in -lg722... " >&6; }
12040if ${ac_cv_lib_g722_g722_encoder_new+:} false; then :
12041  $as_echo_n "(cached) " >&6
12042else
12043  ac_check_lib_save_LIBS=$LIBS
12044LIBS="-lg722  $LIBS"
12045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046/* end confdefs.h.  */
12047
12048/* Override any GCC internal prototype to avoid an error.
12049   Use char because int might match the return type of a GCC
12050   builtin and then its argument prototype would still apply.  */
12051#ifdef __cplusplus
12052extern "C"
12053#endif
12054char g722_encoder_new ();
12055int
12056main ()
12057{
12058return g722_encoder_new ();
12059  ;
12060  return 0;
12061}
12062_ACEOF
12063if ac_fn_c_try_link "$LINENO"; then :
12064  ac_cv_lib_g722_g722_encoder_new=yes
12065else
12066  ac_cv_lib_g722_g722_encoder_new=no
12067fi
12068rm -f core conftest.err conftest.$ac_objext \
12069    conftest$ac_exeext conftest.$ac_ext
12070LIBS=$ac_check_lib_save_LIBS
12071fi
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g722_g722_encoder_new" >&5
12073$as_echo "$ac_cv_lib_g722_g722_encoder_new" >&6; }
12074if test "x$ac_cv_lib_g722_g722_encoder_new" = xyes; then :
12075  LIBS_G722="-lg722"
12076
12077$as_echo "#define ENABLE_G722 1" >>confdefs.h
12078
12079fi
12080
12081fi
12082
12083# libsndfile
12084ac_fn_c_check_header_mongrel "$LINENO" "sndfile.h" "ac_cv_header_sndfile_h" "$ac_includes_default"
12085if test "x$ac_cv_header_sndfile_h" = xyes; then :
12086  found_libsndfile=yes
12087fi
12088
12089
12090if test "$found_libsndfile" = yes
12091then
12092  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sf_open in -lsndfile" >&5
12093$as_echo_n "checking for sf_open in -lsndfile... " >&6; }
12094if ${ac_cv_lib_sndfile_sf_open+:} false; then :
12095  $as_echo_n "(cached) " >&6
12096else
12097  ac_check_lib_save_LIBS=$LIBS
12098LIBS="-lsndfile  $LIBS"
12099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100/* end confdefs.h.  */
12101
12102/* Override any GCC internal prototype to avoid an error.
12103   Use char because int might match the return type of a GCC
12104   builtin and then its argument prototype would still apply.  */
12105#ifdef __cplusplus
12106extern "C"
12107#endif
12108char sf_open ();
12109int
12110main ()
12111{
12112return sf_open ();
12113  ;
12114  return 0;
12115}
12116_ACEOF
12117if ac_fn_c_try_link "$LINENO"; then :
12118  ac_cv_lib_sndfile_sf_open=yes
12119else
12120  ac_cv_lib_sndfile_sf_open=no
12121fi
12122rm -f core conftest.err conftest.$ac_objext \
12123    conftest$ac_exeext conftest.$ac_ext
12124LIBS=$ac_check_lib_save_LIBS
12125fi
12126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndfile_sf_open" >&5
12127$as_echo "$ac_cv_lib_sndfile_sf_open" >&6; }
12128if test "x$ac_cv_lib_sndfile_sf_open" = xyes; then :
12129  LIBS_SNDFILE="-lsndfile"
12130
12131$as_echo "#define ENABLE_SNDFILE 1" >>confdefs.h
12132
12133fi
12134
12135fi
12136
12137# Checks for header files.
12138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12139$as_echo_n "checking for ANSI C header files... " >&6; }
12140if ${ac_cv_header_stdc+:} false; then :
12141  $as_echo_n "(cached) " >&6
12142else
12143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144/* end confdefs.h.  */
12145#include <stdlib.h>
12146#include <stdarg.h>
12147#include <string.h>
12148#include <float.h>
12149
12150int
12151main ()
12152{
12153
12154  ;
12155  return 0;
12156}
12157_ACEOF
12158if ac_fn_c_try_compile "$LINENO"; then :
12159  ac_cv_header_stdc=yes
12160else
12161  ac_cv_header_stdc=no
12162fi
12163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12164
12165if test $ac_cv_header_stdc = yes; then
12166  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168/* end confdefs.h.  */
12169#include <string.h>
12170
12171_ACEOF
12172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12173  $EGREP "memchr" >/dev/null 2>&1; then :
12174
12175else
12176  ac_cv_header_stdc=no
12177fi
12178rm -f conftest*
12179
12180fi
12181
12182if test $ac_cv_header_stdc = yes; then
12183  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185/* end confdefs.h.  */
12186#include <stdlib.h>
12187
12188_ACEOF
12189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12190  $EGREP "free" >/dev/null 2>&1; then :
12191
12192else
12193  ac_cv_header_stdc=no
12194fi
12195rm -f conftest*
12196
12197fi
12198
12199if test $ac_cv_header_stdc = yes; then
12200  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12201  if test "$cross_compiling" = yes; then :
12202  :
12203else
12204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205/* end confdefs.h.  */
12206#include <ctype.h>
12207#include <stdlib.h>
12208#if ((' ' & 0x0FF) == 0x020)
12209# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12210# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12211#else
12212# define ISLOWER(c) \
12213		   (('a' <= (c) && (c) <= 'i') \
12214		     || ('j' <= (c) && (c) <= 'r') \
12215		     || ('s' <= (c) && (c) <= 'z'))
12216# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12217#endif
12218
12219#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12220int
12221main ()
12222{
12223  int i;
12224  for (i = 0; i < 256; i++)
12225    if (XOR (islower (i), ISLOWER (i))
12226	|| toupper (i) != TOUPPER (i))
12227      return 2;
12228  return 0;
12229}
12230_ACEOF
12231if ac_fn_c_try_run "$LINENO"; then :
12232
12233else
12234  ac_cv_header_stdc=no
12235fi
12236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12237  conftest.$ac_objext conftest.beam conftest.$ac_ext
12238fi
12239
12240fi
12241fi
12242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12243$as_echo "$ac_cv_header_stdc" >&6; }
12244if test $ac_cv_header_stdc = yes; then
12245
12246$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12247
12248fi
12249
12250for ac_header in arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h sys/time.h unistd.h err.h endian.h sys/endian.h
12251do :
12252  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12253ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12254if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12255  cat >>confdefs.h <<_ACEOF
12256#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12257_ACEOF
12258
12259fi
12260
12261done
12262
12263
12264# Checks for typedefs, structures, and compiler characteristics.
12265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12266$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12267if ${ac_cv_c_const+:} false; then :
12268  $as_echo_n "(cached) " >&6
12269else
12270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12271/* end confdefs.h.  */
12272
12273int
12274main ()
12275{
12276
12277#ifndef __cplusplus
12278  /* Ultrix mips cc rejects this sort of thing.  */
12279  typedef int charset[2];
12280  const charset cs = { 0, 0 };
12281  /* SunOS 4.1.1 cc rejects this.  */
12282  char const *const *pcpcc;
12283  char **ppc;
12284  /* NEC SVR4.0.2 mips cc rejects this.  */
12285  struct point {int x, y;};
12286  static struct point const zero = {0,0};
12287  /* AIX XL C 1.02.0.0 rejects this.
12288     It does not let you subtract one const X* pointer from another in
12289     an arm of an if-expression whose if-part is not a constant
12290     expression */
12291  const char *g = "string";
12292  pcpcc = &g + (g ? g-g : 0);
12293  /* HPUX 7.0 cc rejects these. */
12294  ++pcpcc;
12295  ppc = (char**) pcpcc;
12296  pcpcc = (char const *const *) ppc;
12297  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12298    char tx;
12299    char *t = &tx;
12300    char const *s = 0 ? (char *) 0 : (char const *) 0;
12301
12302    *t++ = 0;
12303    if (s) return 0;
12304  }
12305  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12306    int x[] = {25, 17};
12307    const int *foo = &x[0];
12308    ++foo;
12309  }
12310  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12311    typedef const int *iptr;
12312    iptr p = 0;
12313    ++p;
12314  }
12315  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12316       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12317    struct s { int j; const int *ap[3]; } bx;
12318    struct s *b = &bx; b->j = 5;
12319  }
12320  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12321    const int foo = 10;
12322    if (!foo) return 0;
12323  }
12324  return !cs[0] && !zero.x;
12325#endif
12326
12327  ;
12328  return 0;
12329}
12330_ACEOF
12331if ac_fn_c_try_compile "$LINENO"; then :
12332  ac_cv_c_const=yes
12333else
12334  ac_cv_c_const=no
12335fi
12336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12337fi
12338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12339$as_echo "$ac_cv_c_const" >&6; }
12340if test $ac_cv_c_const = no; then
12341
12342$as_echo "#define const /**/" >>confdefs.h
12343
12344fi
12345
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12347$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12348if ${ac_cv_header_time+:} false; then :
12349  $as_echo_n "(cached) " >&6
12350else
12351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352/* end confdefs.h.  */
12353#include <sys/types.h>
12354#include <sys/time.h>
12355#include <time.h>
12356
12357int
12358main ()
12359{
12360if ((struct tm *) 0)
12361return 0;
12362  ;
12363  return 0;
12364}
12365_ACEOF
12366if ac_fn_c_try_compile "$LINENO"; then :
12367  ac_cv_header_time=yes
12368else
12369  ac_cv_header_time=no
12370fi
12371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12372fi
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12374$as_echo "$ac_cv_header_time" >&6; }
12375if test $ac_cv_header_time = yes; then
12376
12377$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12378
12379fi
12380
12381
12382ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " #include <sys/types.h>
12383  #include <sys/un.h>
12384
12385"
12386if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
12387
12388$as_echo "#define HAVE_SOCKADDR_SUN_LEN 1" >>confdefs.h
12389
12390fi
12391
12392
12393# Checks for library functions.
12394ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12395if test "x$ac_cv_type_size_t" = xyes; then :
12396
12397else
12398
12399cat >>confdefs.h <<_ACEOF
12400#define size_t unsigned int
12401_ACEOF
12402
12403fi
12404
12405# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12406# for constant arguments.  Useless!
12407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12408$as_echo_n "checking for working alloca.h... " >&6; }
12409if ${ac_cv_working_alloca_h+:} false; then :
12410  $as_echo_n "(cached) " >&6
12411else
12412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413/* end confdefs.h.  */
12414#include <alloca.h>
12415int
12416main ()
12417{
12418char *p = (char *) alloca (2 * sizeof (int));
12419			  if (p) return 0;
12420  ;
12421  return 0;
12422}
12423_ACEOF
12424if ac_fn_c_try_link "$LINENO"; then :
12425  ac_cv_working_alloca_h=yes
12426else
12427  ac_cv_working_alloca_h=no
12428fi
12429rm -f core conftest.err conftest.$ac_objext \
12430    conftest$ac_exeext conftest.$ac_ext
12431fi
12432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12433$as_echo "$ac_cv_working_alloca_h" >&6; }
12434if test $ac_cv_working_alloca_h = yes; then
12435
12436$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12437
12438fi
12439
12440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12441$as_echo_n "checking for alloca... " >&6; }
12442if ${ac_cv_func_alloca_works+:} false; then :
12443  $as_echo_n "(cached) " >&6
12444else
12445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446/* end confdefs.h.  */
12447#ifdef __GNUC__
12448# define alloca __builtin_alloca
12449#else
12450# ifdef _MSC_VER
12451#  include <malloc.h>
12452#  define alloca _alloca
12453# else
12454#  ifdef HAVE_ALLOCA_H
12455#   include <alloca.h>
12456#  else
12457#   ifdef _AIX
12458 #pragma alloca
12459#   else
12460#    ifndef alloca /* predefined by HP cc +Olibcalls */
12461void *alloca (size_t);
12462#    endif
12463#   endif
12464#  endif
12465# endif
12466#endif
12467
12468int
12469main ()
12470{
12471char *p = (char *) alloca (1);
12472				    if (p) return 0;
12473  ;
12474  return 0;
12475}
12476_ACEOF
12477if ac_fn_c_try_link "$LINENO"; then :
12478  ac_cv_func_alloca_works=yes
12479else
12480  ac_cv_func_alloca_works=no
12481fi
12482rm -f core conftest.err conftest.$ac_objext \
12483    conftest$ac_exeext conftest.$ac_ext
12484fi
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12486$as_echo "$ac_cv_func_alloca_works" >&6; }
12487
12488if test $ac_cv_func_alloca_works = yes; then
12489
12490$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12491
12492else
12493  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12494# that cause trouble.  Some versions do not even contain alloca or
12495# contain a buggy version.  If you still want to use their alloca,
12496# use ar to extract alloca.o from them instead of compiling alloca.c.
12497
12498ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12499
12500$as_echo "#define C_ALLOCA 1" >>confdefs.h
12501
12502
12503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12504$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12505if ${ac_cv_os_cray+:} false; then :
12506  $as_echo_n "(cached) " >&6
12507else
12508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509/* end confdefs.h.  */
12510#if defined CRAY && ! defined CRAY2
12511webecray
12512#else
12513wenotbecray
12514#endif
12515
12516_ACEOF
12517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12518  $EGREP "webecray" >/dev/null 2>&1; then :
12519  ac_cv_os_cray=yes
12520else
12521  ac_cv_os_cray=no
12522fi
12523rm -f conftest*
12524
12525fi
12526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12527$as_echo "$ac_cv_os_cray" >&6; }
12528if test $ac_cv_os_cray = yes; then
12529  for ac_func in _getb67 GETB67 getb67; do
12530    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12531ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12532if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12533
12534cat >>confdefs.h <<_ACEOF
12535#define CRAY_STACKSEG_END $ac_func
12536_ACEOF
12537
12538    break
12539fi
12540
12541  done
12542fi
12543
12544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12545$as_echo_n "checking stack direction for C alloca... " >&6; }
12546if ${ac_cv_c_stack_direction+:} false; then :
12547  $as_echo_n "(cached) " >&6
12548else
12549  if test "$cross_compiling" = yes; then :
12550  ac_cv_c_stack_direction=0
12551else
12552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553/* end confdefs.h.  */
12554$ac_includes_default
12555int
12556find_stack_direction (int *addr, int depth)
12557{
12558  int dir, dummy = 0;
12559  if (! addr)
12560    addr = &dummy;
12561  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
12562  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
12563  return dir + dummy;
12564}
12565
12566int
12567main (int argc, char **argv)
12568{
12569  return find_stack_direction (0, argc + !argv + 20) < 0;
12570}
12571_ACEOF
12572if ac_fn_c_try_run "$LINENO"; then :
12573  ac_cv_c_stack_direction=1
12574else
12575  ac_cv_c_stack_direction=-1
12576fi
12577rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12578  conftest.$ac_objext conftest.beam conftest.$ac_ext
12579fi
12580
12581fi
12582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12583$as_echo "$ac_cv_c_stack_direction" >&6; }
12584cat >>confdefs.h <<_ACEOF
12585#define STACK_DIRECTION $ac_cv_c_stack_direction
12586_ACEOF
12587
12588
12589fi
12590
12591for ac_header in stdlib.h
12592do :
12593  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12594if test "x$ac_cv_header_stdlib_h" = xyes; then :
12595  cat >>confdefs.h <<_ACEOF
12596#define HAVE_STDLIB_H 1
12597_ACEOF
12598
12599fi
12600
12601done
12602
12603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12604$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12605if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12606  $as_echo_n "(cached) " >&6
12607else
12608  if test "$cross_compiling" = yes; then :
12609  ac_cv_func_malloc_0_nonnull=no
12610else
12611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612/* end confdefs.h.  */
12613#if defined STDC_HEADERS || defined HAVE_STDLIB_H
12614# include <stdlib.h>
12615#else
12616char *malloc ();
12617#endif
12618
12619int
12620main ()
12621{
12622return ! malloc (0);
12623  ;
12624  return 0;
12625}
12626_ACEOF
12627if ac_fn_c_try_run "$LINENO"; then :
12628  ac_cv_func_malloc_0_nonnull=yes
12629else
12630  ac_cv_func_malloc_0_nonnull=no
12631fi
12632rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12633  conftest.$ac_objext conftest.beam conftest.$ac_ext
12634fi
12635
12636fi
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12638$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12639if test $ac_cv_func_malloc_0_nonnull = yes; then :
12640
12641$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12642
12643else
12644  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12645
12646   case " $LIBOBJS " in
12647  *" malloc.$ac_objext "* ) ;;
12648  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12649 ;;
12650esac
12651
12652
12653$as_echo "#define malloc rpl_malloc" >>confdefs.h
12654
12655fi
12656
12657
12658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
12659$as_echo_n "checking for working memcmp... " >&6; }
12660if ${ac_cv_func_memcmp_working+:} false; then :
12661  $as_echo_n "(cached) " >&6
12662else
12663  if test "$cross_compiling" = yes; then :
12664  ac_cv_func_memcmp_working=no
12665else
12666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667/* end confdefs.h.  */
12668$ac_includes_default
12669int
12670main ()
12671{
12672
12673  /* Some versions of memcmp are not 8-bit clean.  */
12674  char c0 = '\100', c1 = '\200', c2 = '\201';
12675  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12676    return 1;
12677
12678  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12679     or more and with at least one buffer not starting on a 4-byte boundary.
12680     William Lewis provided this test program.   */
12681  {
12682    char foo[21];
12683    char bar[21];
12684    int i;
12685    for (i = 0; i < 4; i++)
12686      {
12687	char *a = foo + i;
12688	char *b = bar + i;
12689	strcpy (a, "--------01111111");
12690	strcpy (b, "--------10000000");
12691	if (memcmp (a, b, 16) >= 0)
12692	  return 1;
12693      }
12694    return 0;
12695  }
12696
12697  ;
12698  return 0;
12699}
12700_ACEOF
12701if ac_fn_c_try_run "$LINENO"; then :
12702  ac_cv_func_memcmp_working=yes
12703else
12704  ac_cv_func_memcmp_working=no
12705fi
12706rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12707  conftest.$ac_objext conftest.beam conftest.$ac_ext
12708fi
12709
12710fi
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
12712$as_echo "$ac_cv_func_memcmp_working" >&6; }
12713test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12714  *" memcmp.$ac_objext "* ) ;;
12715  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12716 ;;
12717esac
12718
12719
12720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12721$as_echo_n "checking return type of signal handlers... " >&6; }
12722if ${ac_cv_type_signal+:} false; then :
12723  $as_echo_n "(cached) " >&6
12724else
12725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12726/* end confdefs.h.  */
12727#include <sys/types.h>
12728#include <signal.h>
12729
12730int
12731main ()
12732{
12733return *(signal (0, 0)) (0) == 1;
12734  ;
12735  return 0;
12736}
12737_ACEOF
12738if ac_fn_c_try_compile "$LINENO"; then :
12739  ac_cv_type_signal=int
12740else
12741  ac_cv_type_signal=void
12742fi
12743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12744fi
12745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12746$as_echo "$ac_cv_type_signal" >&6; }
12747
12748cat >>confdefs.h <<_ACEOF
12749#define RETSIGTYPE $ac_cv_type_signal
12750_ACEOF
12751
12752
12753for ac_func in atexit gettimeofday memset mkdir socket strchr strdup strerror strlcpy
12754do :
12755  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12756ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12757if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12758  cat >>confdefs.h <<_ACEOF
12759#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12760_ACEOF
12761
12762fi
12763done
12764
12765if test "x$GCC" = "xyes"; then
12766  ## We like to use C99 routines when available.  This makes sure that
12767  ## __STDC_VERSION__ is set such that libc includes make them available.
12768  AM_CFLAGS="-std=gnu99 -Wall -Wno-uninitialized"
12769fi
12770
12771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add" >&5
12772$as_echo_n "checking for __sync_fetch_and_add... " >&6; }
12773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774/* end confdefs.h.  */
12775
12776    int main(void) {
12777        volatile int rcval = 1, rcval_pre;
12778        rcval_pre = __sync_fetch_and_add(&rcval, -1);
12779        return(rcval == 0 && rcval_pre == 1 ? 0 : 1);
12780    }
12781
12782_ACEOF
12783if ac_fn_c_try_link "$LINENO"; then :
12784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12785$as_echo "yes" >&6; }
12786
12787$as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
12788
12789else
12790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791$as_echo "no" >&6; }
12792
12793fi
12794rm -f core conftest.err conftest.$ac_objext \
12795    conftest$ac_exeext conftest.$ac_ext
12796
12797 if test "${LIBS_SNDFILE}" != ""; then
12798  BUILD_EXTRACTAUDIO_TRUE=
12799  BUILD_EXTRACTAUDIO_FALSE='#'
12800else
12801  BUILD_EXTRACTAUDIO_TRUE='#'
12802  BUILD_EXTRACTAUDIO_FALSE=
12803fi
12804
12805 if test "${ENABLE_MODULE_IF}" = 1; then
12806  BUILD_MODULES_TRUE=
12807  BUILD_MODULES_FALSE='#'
12808else
12809  BUILD_MODULES_TRUE='#'
12810  BUILD_MODULES_FALSE=
12811fi
12812
12813 if test "${ENABLE_MODULE_IF}" = 1; then
12814  ENABLE_MODULE_IF_TRUE=
12815  ENABLE_MODULE_IF_FALSE='#'
12816else
12817  ENABLE_MODULE_IF_TRUE='#'
12818  ENABLE_MODULE_IF_FALSE=
12819fi
12820
12821
12822ac_config_files="$ac_config_files Makefile src/Makefile makeann/Makefile tests/Makefile extractaudio/Makefile libexecinfo/Makefile modules/Makefile modules/acct_csv/Makefile"
12823
12824
12825
12826
12827
12828
12829
12830
12831cat >confcache <<\_ACEOF
12832# This file is a shell script that caches the results of configure
12833# tests run on this system so they can be shared between configure
12834# scripts and configure runs, see configure's option --config-cache.
12835# It is not useful on other systems.  If it contains results you don't
12836# want to keep, you may remove or edit it.
12837#
12838# config.status only pays attention to the cache file if you give it
12839# the --recheck option to rerun configure.
12840#
12841# `ac_cv_env_foo' variables (set or unset) will be overridden when
12842# loading this file, other *unset* `ac_cv_foo' will be assigned the
12843# following values.
12844
12845_ACEOF
12846
12847# The following way of writing the cache mishandles newlines in values,
12848# but we know of no workaround that is simple, portable, and efficient.
12849# So, we kill variables containing newlines.
12850# Ultrix sh set writes to stderr and can't be redirected directly,
12851# and sets the high bit in the cache file unless we assign to the vars.
12852(
12853  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12854    eval ac_val=\$$ac_var
12855    case $ac_val in #(
12856    *${as_nl}*)
12857      case $ac_var in #(
12858      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12859$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12860      esac
12861      case $ac_var in #(
12862      _ | IFS | as_nl) ;; #(
12863      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12864      *) { eval $ac_var=; unset $ac_var;} ;;
12865      esac ;;
12866    esac
12867  done
12868
12869  (set) 2>&1 |
12870    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12871    *${as_nl}ac_space=\ *)
12872      # `set' does not quote correctly, so add quotes: double-quote
12873      # substitution turns \\\\ into \\, and sed turns \\ into \.
12874      sed -n \
12875	"s/'/'\\\\''/g;
12876	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12877      ;; #(
12878    *)
12879      # `set' quotes correctly as required by POSIX, so do not add quotes.
12880      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12881      ;;
12882    esac |
12883    sort
12884) |
12885  sed '
12886     /^ac_cv_env_/b end
12887     t clear
12888     :clear
12889     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12890     t end
12891     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12892     :end' >>confcache
12893if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12894  if test -w "$cache_file"; then
12895    if test "x$cache_file" != "x/dev/null"; then
12896      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12897$as_echo "$as_me: updating cache $cache_file" >&6;}
12898      if test ! -f "$cache_file" || test -h "$cache_file"; then
12899	cat confcache >"$cache_file"
12900      else
12901        case $cache_file in #(
12902        */* | ?:*)
12903	  mv -f confcache "$cache_file"$$ &&
12904	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12905        *)
12906	  mv -f confcache "$cache_file" ;;
12907	esac
12908      fi
12909    fi
12910  else
12911    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12912$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12913  fi
12914fi
12915rm -f confcache
12916
12917test "x$prefix" = xNONE && prefix=$ac_default_prefix
12918# Let make expand exec_prefix.
12919test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12920
12921DEFS=-DHAVE_CONFIG_H
12922
12923ac_libobjs=
12924ac_ltlibobjs=
12925for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12926  # 1. Remove the extension, and $U if already installed.
12927  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12928  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12929  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12930  #    will be set to the directory where LIBOBJS objects are built.
12931  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12932  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12933done
12934LIBOBJS=$ac_libobjs
12935
12936LTLIBOBJS=$ac_ltlibobjs
12937
12938
12939if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12940  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12941Usually this means the macro was only invoked conditionally." "$LINENO" 5
12942fi
12943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12944$as_echo_n "checking that generated files are newer than configure... " >&6; }
12945   if test -n "$am_sleep_pid"; then
12946     # Hide warnings about reused PIDs.
12947     wait $am_sleep_pid 2>/dev/null
12948   fi
12949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12950$as_echo "done" >&6; }
12951 if test -n "$EXEEXT"; then
12952  am__EXEEXT_TRUE=
12953  am__EXEEXT_FALSE='#'
12954else
12955  am__EXEEXT_TRUE='#'
12956  am__EXEEXT_FALSE=
12957fi
12958
12959if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12960  as_fn_error $? "conditional \"AMDEP\" was never defined.
12961Usually this means the macro was only invoked conditionally." "$LINENO" 5
12962fi
12963if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12964  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12965Usually this means the macro was only invoked conditionally." "$LINENO" 5
12966fi
12967if test -z "${BUILD_EXTRACTAUDIO_TRUE}" && test -z "${BUILD_EXTRACTAUDIO_FALSE}"; then
12968  as_fn_error $? "conditional \"BUILD_EXTRACTAUDIO\" was never defined.
12969Usually this means the macro was only invoked conditionally." "$LINENO" 5
12970fi
12971if test -z "${BUILD_MODULES_TRUE}" && test -z "${BUILD_MODULES_FALSE}"; then
12972  as_fn_error $? "conditional \"BUILD_MODULES\" was never defined.
12973Usually this means the macro was only invoked conditionally." "$LINENO" 5
12974fi
12975if test -z "${ENABLE_MODULE_IF_TRUE}" && test -z "${ENABLE_MODULE_IF_FALSE}"; then
12976  as_fn_error $? "conditional \"ENABLE_MODULE_IF\" was never defined.
12977Usually this means the macro was only invoked conditionally." "$LINENO" 5
12978fi
12979
12980: "${CONFIG_STATUS=./config.status}"
12981ac_write_fail=0
12982ac_clean_files_save=$ac_clean_files
12983ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12984{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12985$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12986as_write_fail=0
12987cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12988#! $SHELL
12989# Generated by $as_me.
12990# Run this file to recreate the current configuration.
12991# Compiler output produced by configure, useful for debugging
12992# configure, is in config.log if it exists.
12993
12994debug=false
12995ac_cs_recheck=false
12996ac_cs_silent=false
12997
12998SHELL=\${CONFIG_SHELL-$SHELL}
12999export SHELL
13000_ASEOF
13001cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13002## -------------------- ##
13003## M4sh Initialization. ##
13004## -------------------- ##
13005
13006# Be more Bourne compatible
13007DUALCASE=1; export DUALCASE # for MKS sh
13008if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13009  emulate sh
13010  NULLCMD=:
13011  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13012  # is contrary to our usage.  Disable this feature.
13013  alias -g '${1+"$@"}'='"$@"'
13014  setopt NO_GLOB_SUBST
13015else
13016  case `(set -o) 2>/dev/null` in #(
13017  *posix*) :
13018    set -o posix ;; #(
13019  *) :
13020     ;;
13021esac
13022fi
13023
13024
13025as_nl='
13026'
13027export as_nl
13028# Printing a long string crashes Solaris 7 /usr/bin/printf.
13029as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13030as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13031as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13032# Prefer a ksh shell builtin over an external printf program on Solaris,
13033# but without wasting forks for bash or zsh.
13034if test -z "$BASH_VERSION$ZSH_VERSION" \
13035    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13036  as_echo='print -r --'
13037  as_echo_n='print -rn --'
13038elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13039  as_echo='printf %s\n'
13040  as_echo_n='printf %s'
13041else
13042  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13043    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13044    as_echo_n='/usr/ucb/echo -n'
13045  else
13046    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13047    as_echo_n_body='eval
13048      arg=$1;
13049      case $arg in #(
13050      *"$as_nl"*)
13051	expr "X$arg" : "X\\(.*\\)$as_nl";
13052	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13053      esac;
13054      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13055    '
13056    export as_echo_n_body
13057    as_echo_n='sh -c $as_echo_n_body as_echo'
13058  fi
13059  export as_echo_body
13060  as_echo='sh -c $as_echo_body as_echo'
13061fi
13062
13063# The user is always right.
13064if test "${PATH_SEPARATOR+set}" != set; then
13065  PATH_SEPARATOR=:
13066  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13067    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13068      PATH_SEPARATOR=';'
13069  }
13070fi
13071
13072
13073# IFS
13074# We need space, tab and new line, in precisely that order.  Quoting is
13075# there to prevent editors from complaining about space-tab.
13076# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13077# splitting by setting IFS to empty value.)
13078IFS=" ""	$as_nl"
13079
13080# Find who we are.  Look in the path if we contain no directory separator.
13081as_myself=
13082case $0 in #((
13083  *[\\/]* ) as_myself=$0 ;;
13084  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13085for as_dir in $PATH
13086do
13087  IFS=$as_save_IFS
13088  test -z "$as_dir" && as_dir=.
13089    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13090  done
13091IFS=$as_save_IFS
13092
13093     ;;
13094esac
13095# We did not find ourselves, most probably we were run as `sh COMMAND'
13096# in which case we are not to be found in the path.
13097if test "x$as_myself" = x; then
13098  as_myself=$0
13099fi
13100if test ! -f "$as_myself"; then
13101  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13102  exit 1
13103fi
13104
13105# Unset variables that we do not need and which cause bugs (e.g. in
13106# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13107# suppresses any "Segmentation fault" message there.  '((' could
13108# trigger a bug in pdksh 5.2.14.
13109for as_var in BASH_ENV ENV MAIL MAILPATH
13110do eval test x\${$as_var+set} = xset \
13111  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13112done
13113PS1='$ '
13114PS2='> '
13115PS4='+ '
13116
13117# NLS nuisances.
13118LC_ALL=C
13119export LC_ALL
13120LANGUAGE=C
13121export LANGUAGE
13122
13123# CDPATH.
13124(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13125
13126
13127# as_fn_error STATUS ERROR [LINENO LOG_FD]
13128# ----------------------------------------
13129# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13130# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13131# script with STATUS, using 1 if that was 0.
13132as_fn_error ()
13133{
13134  as_status=$1; test $as_status -eq 0 && as_status=1
13135  if test "$4"; then
13136    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13137    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13138  fi
13139  $as_echo "$as_me: error: $2" >&2
13140  as_fn_exit $as_status
13141} # as_fn_error
13142
13143
13144# as_fn_set_status STATUS
13145# -----------------------
13146# Set $? to STATUS, without forking.
13147as_fn_set_status ()
13148{
13149  return $1
13150} # as_fn_set_status
13151
13152# as_fn_exit STATUS
13153# -----------------
13154# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13155as_fn_exit ()
13156{
13157  set +e
13158  as_fn_set_status $1
13159  exit $1
13160} # as_fn_exit
13161
13162# as_fn_unset VAR
13163# ---------------
13164# Portably unset VAR.
13165as_fn_unset ()
13166{
13167  { eval $1=; unset $1;}
13168}
13169as_unset=as_fn_unset
13170# as_fn_append VAR VALUE
13171# ----------------------
13172# Append the text in VALUE to the end of the definition contained in VAR. Take
13173# advantage of any shell optimizations that allow amortized linear growth over
13174# repeated appends, instead of the typical quadratic growth present in naive
13175# implementations.
13176if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13177  eval 'as_fn_append ()
13178  {
13179    eval $1+=\$2
13180  }'
13181else
13182  as_fn_append ()
13183  {
13184    eval $1=\$$1\$2
13185  }
13186fi # as_fn_append
13187
13188# as_fn_arith ARG...
13189# ------------------
13190# Perform arithmetic evaluation on the ARGs, and store the result in the
13191# global $as_val. Take advantage of shells that can avoid forks. The arguments
13192# must be portable across $(()) and expr.
13193if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13194  eval 'as_fn_arith ()
13195  {
13196    as_val=$(( $* ))
13197  }'
13198else
13199  as_fn_arith ()
13200  {
13201    as_val=`expr "$@" || test $? -eq 1`
13202  }
13203fi # as_fn_arith
13204
13205
13206if expr a : '\(a\)' >/dev/null 2>&1 &&
13207   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13208  as_expr=expr
13209else
13210  as_expr=false
13211fi
13212
13213if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13214  as_basename=basename
13215else
13216  as_basename=false
13217fi
13218
13219if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13220  as_dirname=dirname
13221else
13222  as_dirname=false
13223fi
13224
13225as_me=`$as_basename -- "$0" ||
13226$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13227	 X"$0" : 'X\(//\)$' \| \
13228	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13229$as_echo X/"$0" |
13230    sed '/^.*\/\([^/][^/]*\)\/*$/{
13231	    s//\1/
13232	    q
13233	  }
13234	  /^X\/\(\/\/\)$/{
13235	    s//\1/
13236	    q
13237	  }
13238	  /^X\/\(\/\).*/{
13239	    s//\1/
13240	    q
13241	  }
13242	  s/.*/./; q'`
13243
13244# Avoid depending upon Character Ranges.
13245as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13246as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13247as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13248as_cr_digits='0123456789'
13249as_cr_alnum=$as_cr_Letters$as_cr_digits
13250
13251ECHO_C= ECHO_N= ECHO_T=
13252case `echo -n x` in #(((((
13253-n*)
13254  case `echo 'xy\c'` in
13255  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13256  xy)  ECHO_C='\c';;
13257  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13258       ECHO_T='	';;
13259  esac;;
13260*)
13261  ECHO_N='-n';;
13262esac
13263
13264rm -f conf$$ conf$$.exe conf$$.file
13265if test -d conf$$.dir; then
13266  rm -f conf$$.dir/conf$$.file
13267else
13268  rm -f conf$$.dir
13269  mkdir conf$$.dir 2>/dev/null
13270fi
13271if (echo >conf$$.file) 2>/dev/null; then
13272  if ln -s conf$$.file conf$$ 2>/dev/null; then
13273    as_ln_s='ln -s'
13274    # ... but there are two gotchas:
13275    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13276    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13277    # In both cases, we have to default to `cp -pR'.
13278    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13279      as_ln_s='cp -pR'
13280  elif ln conf$$.file conf$$ 2>/dev/null; then
13281    as_ln_s=ln
13282  else
13283    as_ln_s='cp -pR'
13284  fi
13285else
13286  as_ln_s='cp -pR'
13287fi
13288rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13289rmdir conf$$.dir 2>/dev/null
13290
13291
13292# as_fn_mkdir_p
13293# -------------
13294# Create "$as_dir" as a directory, including parents if necessary.
13295as_fn_mkdir_p ()
13296{
13297
13298  case $as_dir in #(
13299  -*) as_dir=./$as_dir;;
13300  esac
13301  test -d "$as_dir" || eval $as_mkdir_p || {
13302    as_dirs=
13303    while :; do
13304      case $as_dir in #(
13305      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13306      *) as_qdir=$as_dir;;
13307      esac
13308      as_dirs="'$as_qdir' $as_dirs"
13309      as_dir=`$as_dirname -- "$as_dir" ||
13310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13311	 X"$as_dir" : 'X\(//\)[^/]' \| \
13312	 X"$as_dir" : 'X\(//\)$' \| \
13313	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13314$as_echo X"$as_dir" |
13315    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13316	    s//\1/
13317	    q
13318	  }
13319	  /^X\(\/\/\)[^/].*/{
13320	    s//\1/
13321	    q
13322	  }
13323	  /^X\(\/\/\)$/{
13324	    s//\1/
13325	    q
13326	  }
13327	  /^X\(\/\).*/{
13328	    s//\1/
13329	    q
13330	  }
13331	  s/.*/./; q'`
13332      test -d "$as_dir" && break
13333    done
13334    test -z "$as_dirs" || eval "mkdir $as_dirs"
13335  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13336
13337
13338} # as_fn_mkdir_p
13339if mkdir -p . 2>/dev/null; then
13340  as_mkdir_p='mkdir -p "$as_dir"'
13341else
13342  test -d ./-p && rmdir ./-p
13343  as_mkdir_p=false
13344fi
13345
13346
13347# as_fn_executable_p FILE
13348# -----------------------
13349# Test if FILE is an executable regular file.
13350as_fn_executable_p ()
13351{
13352  test -f "$1" && test -x "$1"
13353} # as_fn_executable_p
13354as_test_x='test -x'
13355as_executable_p=as_fn_executable_p
13356
13357# Sed expression to map a string onto a valid CPP name.
13358as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13359
13360# Sed expression to map a string onto a valid variable name.
13361as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13362
13363
13364exec 6>&1
13365## ----------------------------------- ##
13366## Main body of $CONFIG_STATUS script. ##
13367## ----------------------------------- ##
13368_ASEOF
13369test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13370
13371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13372# Save the log message, to keep $0 and so on meaningful, and to
13373# report actual input values of CONFIG_FILES etc. instead of their
13374# values after options handling.
13375ac_log="
13376This file was extended by rtpproxy $as_me 2.0.beta.20150106, which was
13377generated by GNU Autoconf 2.69.  Invocation command line was
13378
13379  CONFIG_FILES    = $CONFIG_FILES
13380  CONFIG_HEADERS  = $CONFIG_HEADERS
13381  CONFIG_LINKS    = $CONFIG_LINKS
13382  CONFIG_COMMANDS = $CONFIG_COMMANDS
13383  $ $0 $@
13384
13385on `(hostname || uname -n) 2>/dev/null | sed 1q`
13386"
13387
13388_ACEOF
13389
13390case $ac_config_files in *"
13391"*) set x $ac_config_files; shift; ac_config_files=$*;;
13392esac
13393
13394case $ac_config_headers in *"
13395"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13396esac
13397
13398
13399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13400# Files that config.status was made for.
13401config_files="$ac_config_files"
13402config_headers="$ac_config_headers"
13403config_commands="$ac_config_commands"
13404
13405_ACEOF
13406
13407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13408ac_cs_usage="\
13409\`$as_me' instantiates files and other configuration actions
13410from templates according to the current configuration.  Unless the files
13411and actions are specified as TAGs, all are instantiated by default.
13412
13413Usage: $0 [OPTION]... [TAG]...
13414
13415  -h, --help       print this help, then exit
13416  -V, --version    print version number and configuration settings, then exit
13417      --config     print configuration, then exit
13418  -q, --quiet, --silent
13419                   do not print progress messages
13420  -d, --debug      don't remove temporary files
13421      --recheck    update $as_me by reconfiguring in the same conditions
13422      --file=FILE[:TEMPLATE]
13423                   instantiate the configuration file FILE
13424      --header=FILE[:TEMPLATE]
13425                   instantiate the configuration header FILE
13426
13427Configuration files:
13428$config_files
13429
13430Configuration headers:
13431$config_headers
13432
13433Configuration commands:
13434$config_commands
13435
13436Report bugs to <sobomax@sippysoft.com>."
13437
13438_ACEOF
13439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13440ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13441ac_cs_version="\\
13442rtpproxy config.status 2.0.beta.20150106
13443configured by $0, generated by GNU Autoconf 2.69,
13444  with options \\"\$ac_cs_config\\"
13445
13446Copyright (C) 2012 Free Software Foundation, Inc.
13447This config.status script is free software; the Free Software Foundation
13448gives unlimited permission to copy, distribute and modify it."
13449
13450ac_pwd='$ac_pwd'
13451srcdir='$srcdir'
13452INSTALL='$INSTALL'
13453MKDIR_P='$MKDIR_P'
13454AWK='$AWK'
13455test -n "\$AWK" || AWK=awk
13456_ACEOF
13457
13458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13459# The default lists apply if the user does not specify any file.
13460ac_need_defaults=:
13461while test $# != 0
13462do
13463  case $1 in
13464  --*=?*)
13465    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13466    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13467    ac_shift=:
13468    ;;
13469  --*=)
13470    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13471    ac_optarg=
13472    ac_shift=:
13473    ;;
13474  *)
13475    ac_option=$1
13476    ac_optarg=$2
13477    ac_shift=shift
13478    ;;
13479  esac
13480
13481  case $ac_option in
13482  # Handling of the options.
13483  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13484    ac_cs_recheck=: ;;
13485  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13486    $as_echo "$ac_cs_version"; exit ;;
13487  --config | --confi | --conf | --con | --co | --c )
13488    $as_echo "$ac_cs_config"; exit ;;
13489  --debug | --debu | --deb | --de | --d | -d )
13490    debug=: ;;
13491  --file | --fil | --fi | --f )
13492    $ac_shift
13493    case $ac_optarg in
13494    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13495    '') as_fn_error $? "missing file argument" ;;
13496    esac
13497    as_fn_append CONFIG_FILES " '$ac_optarg'"
13498    ac_need_defaults=false;;
13499  --header | --heade | --head | --hea )
13500    $ac_shift
13501    case $ac_optarg in
13502    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13503    esac
13504    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13505    ac_need_defaults=false;;
13506  --he | --h)
13507    # Conflict between --help and --header
13508    as_fn_error $? "ambiguous option: \`$1'
13509Try \`$0 --help' for more information.";;
13510  --help | --hel | -h )
13511    $as_echo "$ac_cs_usage"; exit ;;
13512  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13513  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13514    ac_cs_silent=: ;;
13515
13516  # This is an error.
13517  -*) as_fn_error $? "unrecognized option: \`$1'
13518Try \`$0 --help' for more information." ;;
13519
13520  *) as_fn_append ac_config_targets " $1"
13521     ac_need_defaults=false ;;
13522
13523  esac
13524  shift
13525done
13526
13527ac_configure_extra_args=
13528
13529if $ac_cs_silent; then
13530  exec 6>/dev/null
13531  ac_configure_extra_args="$ac_configure_extra_args --silent"
13532fi
13533
13534_ACEOF
13535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13536if \$ac_cs_recheck; then
13537  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13538  shift
13539  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13540  CONFIG_SHELL='$SHELL'
13541  export CONFIG_SHELL
13542  exec "\$@"
13543fi
13544
13545_ACEOF
13546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13547exec 5>>config.log
13548{
13549  echo
13550  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13551## Running $as_me. ##
13552_ASBOX
13553  $as_echo "$ac_log"
13554} >&5
13555
13556_ACEOF
13557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13558#
13559# INIT-COMMANDS
13560#
13561AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13562
13563
13564# The HP-UX ksh and POSIX shell print the target directory to stdout
13565# if CDPATH is set.
13566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13567
13568sed_quote_subst='$sed_quote_subst'
13569double_quote_subst='$double_quote_subst'
13570delay_variable_subst='$delay_variable_subst'
13571macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13572macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13573enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13574enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13575pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13576enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13577SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13578ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13579PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13580host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13581host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13582host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13583build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13584build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13585build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13586SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13587Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13588GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13589EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13590FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13591LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13592NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13593LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13594max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13595ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13596exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13597lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13598lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13599lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13600lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13601lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13602reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13603reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13604OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13605deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13606file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13607file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13608want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13609DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13610sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13611AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13612AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13613archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13614STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13615RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13616old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13617old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13618old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13619lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13620CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13621CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13622compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13623GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13624lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13625lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13626lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13627lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13628lt_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"`'
13629lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13630nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13631lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13632objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13633MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13634lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13635lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13636lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13637lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13638lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13639need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13640MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13641DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13642NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13643LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13644OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13645OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13646libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13647shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13648extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13649archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13650enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13651export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13652whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13653compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13654old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13655old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13656archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13657archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13658module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13659module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13660with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13661allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13662no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13663hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13664hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13665hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13666hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13667hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13668hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13669hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13670inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13671link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13672always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13673export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13674exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13675include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13676prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13677postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13678file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13679variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13680need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13681need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13682version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13683runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13684shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13685shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13686libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13687library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13688soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13689install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13690postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13691postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13692finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13693finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13694hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13695sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13696sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13697hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13698enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13699enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13700enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13701old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13702striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13703
13704LTCC='$LTCC'
13705LTCFLAGS='$LTCFLAGS'
13706compiler='$compiler_DEFAULT'
13707
13708# A function that is used when there is no print builtin or printf.
13709func_fallback_echo ()
13710{
13711  eval 'cat <<_LTECHO_EOF
13712\$1
13713_LTECHO_EOF'
13714}
13715
13716# Quote evaled strings.
13717for var in SHELL \
13718ECHO \
13719PATH_SEPARATOR \
13720SED \
13721GREP \
13722EGREP \
13723FGREP \
13724LD \
13725NM \
13726LN_S \
13727lt_SP2NL \
13728lt_NL2SP \
13729reload_flag \
13730OBJDUMP \
13731deplibs_check_method \
13732file_magic_cmd \
13733file_magic_glob \
13734want_nocaseglob \
13735DLLTOOL \
13736sharedlib_from_linklib_cmd \
13737AR \
13738AR_FLAGS \
13739archiver_list_spec \
13740STRIP \
13741RANLIB \
13742CC \
13743CFLAGS \
13744compiler \
13745lt_cv_sys_global_symbol_pipe \
13746lt_cv_sys_global_symbol_to_cdecl \
13747lt_cv_sys_global_symbol_to_import \
13748lt_cv_sys_global_symbol_to_c_name_address \
13749lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13750lt_cv_nm_interface \
13751nm_file_list_spec \
13752lt_prog_compiler_no_builtin_flag \
13753lt_prog_compiler_pic \
13754lt_prog_compiler_wl \
13755lt_prog_compiler_static \
13756lt_cv_prog_compiler_c_o \
13757need_locks \
13758MANIFEST_TOOL \
13759DSYMUTIL \
13760NMEDIT \
13761LIPO \
13762OTOOL \
13763OTOOL64 \
13764shrext_cmds \
13765export_dynamic_flag_spec \
13766whole_archive_flag_spec \
13767compiler_needs_object \
13768with_gnu_ld \
13769allow_undefined_flag \
13770no_undefined_flag \
13771hardcode_libdir_flag_spec \
13772hardcode_libdir_separator \
13773exclude_expsyms \
13774include_expsyms \
13775file_list_spec \
13776variables_saved_for_relink \
13777libname_spec \
13778library_names_spec \
13779soname_spec \
13780install_override_mode \
13781finish_eval \
13782old_striplib \
13783striplib; do
13784    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13785    *[\\\\\\\`\\"\\\$]*)
13786      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13787      ;;
13788    *)
13789      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13790      ;;
13791    esac
13792done
13793
13794# Double-quote double-evaled strings.
13795for var in reload_cmds \
13796old_postinstall_cmds \
13797old_postuninstall_cmds \
13798old_archive_cmds \
13799extract_expsyms_cmds \
13800old_archive_from_new_cmds \
13801old_archive_from_expsyms_cmds \
13802archive_cmds \
13803archive_expsym_cmds \
13804module_cmds \
13805module_expsym_cmds \
13806export_symbols_cmds \
13807prelink_cmds \
13808postlink_cmds \
13809postinstall_cmds \
13810postuninstall_cmds \
13811finish_cmds \
13812sys_lib_search_path_spec \
13813sys_lib_dlsearch_path_spec; do
13814    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13815    *[\\\\\\\`\\"\\\$]*)
13816      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13817      ;;
13818    *)
13819      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13820      ;;
13821    esac
13822done
13823
13824ac_aux_dir='$ac_aux_dir'
13825
13826# See if we are running on zsh, and set the options that allow our
13827# commands through without removal of \ escapes INIT.
13828if test -n "\${ZSH_VERSION+set}"; then
13829   setopt NO_GLOB_SUBST
13830fi
13831
13832
13833    PACKAGE='$PACKAGE'
13834    VERSION='$VERSION'
13835    RM='$RM'
13836    ofile='$ofile'
13837
13838
13839
13840
13841_ACEOF
13842
13843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13844
13845# Handling of arguments.
13846for ac_config_target in $ac_config_targets
13847do
13848  case $ac_config_target in
13849    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
13850    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13851    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13852    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13853    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13854    "makeann/Makefile") CONFIG_FILES="$CONFIG_FILES makeann/Makefile" ;;
13855    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13856    "extractaudio/Makefile") CONFIG_FILES="$CONFIG_FILES extractaudio/Makefile" ;;
13857    "libexecinfo/Makefile") CONFIG_FILES="$CONFIG_FILES libexecinfo/Makefile" ;;
13858    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
13859    "modules/acct_csv/Makefile") CONFIG_FILES="$CONFIG_FILES modules/acct_csv/Makefile" ;;
13860
13861  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13862  esac
13863done
13864
13865
13866# If the user did not use the arguments to specify the items to instantiate,
13867# then the envvar interface is used.  Set only those that are not.
13868# We use the long form for the default assignment because of an extremely
13869# bizarre bug on SunOS 4.1.3.
13870if $ac_need_defaults; then
13871  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13872  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13873  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13874fi
13875
13876# Have a temporary directory for convenience.  Make it in the build tree
13877# simply because there is no reason against having it here, and in addition,
13878# creating and moving files from /tmp can sometimes cause problems.
13879# Hook for its removal unless debugging.
13880# Note that there is a small window in which the directory will not be cleaned:
13881# after its creation but before its name has been assigned to `$tmp'.
13882$debug ||
13883{
13884  tmp= ac_tmp=
13885  trap 'exit_status=$?
13886  : "${ac_tmp:=$tmp}"
13887  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13888' 0
13889  trap 'as_fn_exit 1' 1 2 13 15
13890}
13891# Create a (secure) tmp directory for tmp files.
13892
13893{
13894  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13895  test -d "$tmp"
13896}  ||
13897{
13898  tmp=./conf$$-$RANDOM
13899  (umask 077 && mkdir "$tmp")
13900} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13901ac_tmp=$tmp
13902
13903# Set up the scripts for CONFIG_FILES section.
13904# No need to generate them if there are no CONFIG_FILES.
13905# This happens for instance with `./config.status config.h'.
13906if test -n "$CONFIG_FILES"; then
13907
13908
13909ac_cr=`echo X | tr X '\015'`
13910# On cygwin, bash can eat \r inside `` if the user requested igncr.
13911# But we know of no other shell where ac_cr would be empty at this
13912# point, so we can use a bashism as a fallback.
13913if test "x$ac_cr" = x; then
13914  eval ac_cr=\$\'\\r\'
13915fi
13916ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13917if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13918  ac_cs_awk_cr='\\r'
13919else
13920  ac_cs_awk_cr=$ac_cr
13921fi
13922
13923echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13924_ACEOF
13925
13926
13927{
13928  echo "cat >conf$$subs.awk <<_ACEOF" &&
13929  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13930  echo "_ACEOF"
13931} >conf$$subs.sh ||
13932  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13933ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13934ac_delim='%!_!# '
13935for ac_last_try in false false false false false :; do
13936  . ./conf$$subs.sh ||
13937    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13938
13939  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13940  if test $ac_delim_n = $ac_delim_num; then
13941    break
13942  elif $ac_last_try; then
13943    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13944  else
13945    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13946  fi
13947done
13948rm -f conf$$subs.sh
13949
13950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13951cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13952_ACEOF
13953sed -n '
13954h
13955s/^/S["/; s/!.*/"]=/
13956p
13957g
13958s/^[^!]*!//
13959:repl
13960t repl
13961s/'"$ac_delim"'$//
13962t delim
13963:nl
13964h
13965s/\(.\{148\}\)..*/\1/
13966t more1
13967s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13968p
13969n
13970b repl
13971:more1
13972s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13973p
13974g
13975s/.\{148\}//
13976t nl
13977:delim
13978h
13979s/\(.\{148\}\)..*/\1/
13980t more2
13981s/["\\]/\\&/g; s/^/"/; s/$/"/
13982p
13983b
13984:more2
13985s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13986p
13987g
13988s/.\{148\}//
13989t delim
13990' <conf$$subs.awk | sed '
13991/^[^""]/{
13992  N
13993  s/\n//
13994}
13995' >>$CONFIG_STATUS || ac_write_fail=1
13996rm -f conf$$subs.awk
13997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13998_ACAWK
13999cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14000  for (key in S) S_is_set[key] = 1
14001  FS = ""
14002
14003}
14004{
14005  line = $ 0
14006  nfields = split(line, field, "@")
14007  substed = 0
14008  len = length(field[1])
14009  for (i = 2; i < nfields; i++) {
14010    key = field[i]
14011    keylen = length(key)
14012    if (S_is_set[key]) {
14013      value = S[key]
14014      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14015      len += length(value) + length(field[++i])
14016      substed = 1
14017    } else
14018      len += 1 + keylen
14019  }
14020
14021  print line
14022}
14023
14024_ACAWK
14025_ACEOF
14026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14027if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14028  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14029else
14030  cat
14031fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14032  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14033_ACEOF
14034
14035# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14036# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14037# trailing colons and then remove the whole line if VPATH becomes empty
14038# (actually we leave an empty line to preserve line numbers).
14039if test "x$srcdir" = x.; then
14040  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14041h
14042s///
14043s/^/:/
14044s/[	 ]*$/:/
14045s/:\$(srcdir):/:/g
14046s/:\${srcdir}:/:/g
14047s/:@srcdir@:/:/g
14048s/^:*//
14049s/:*$//
14050x
14051s/\(=[	 ]*\).*/\1/
14052G
14053s/\n//
14054s/^[^=]*=[	 ]*$//
14055}'
14056fi
14057
14058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14059fi # test -n "$CONFIG_FILES"
14060
14061# Set up the scripts for CONFIG_HEADERS section.
14062# No need to generate them if there are no CONFIG_HEADERS.
14063# This happens for instance with `./config.status Makefile'.
14064if test -n "$CONFIG_HEADERS"; then
14065cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14066BEGIN {
14067_ACEOF
14068
14069# Transform confdefs.h into an awk script `defines.awk', embedded as
14070# here-document in config.status, that substitutes the proper values into
14071# config.h.in to produce config.h.
14072
14073# Create a delimiter string that does not exist in confdefs.h, to ease
14074# handling of long lines.
14075ac_delim='%!_!# '
14076for ac_last_try in false false :; do
14077  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14078  if test -z "$ac_tt"; then
14079    break
14080  elif $ac_last_try; then
14081    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14082  else
14083    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14084  fi
14085done
14086
14087# For the awk script, D is an array of macro values keyed by name,
14088# likewise P contains macro parameters if any.  Preserve backslash
14089# newline sequences.
14090
14091ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14092sed -n '
14093s/.\{148\}/&'"$ac_delim"'/g
14094t rset
14095:rset
14096s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14097t def
14098d
14099:def
14100s/\\$//
14101t bsnl
14102s/["\\]/\\&/g
14103s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14104D["\1"]=" \3"/p
14105s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14106d
14107:bsnl
14108s/["\\]/\\&/g
14109s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14110D["\1"]=" \3\\\\\\n"\\/p
14111t cont
14112s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14113t cont
14114d
14115:cont
14116n
14117s/.\{148\}/&'"$ac_delim"'/g
14118t clear
14119:clear
14120s/\\$//
14121t bsnlc
14122s/["\\]/\\&/g; s/^/"/; s/$/"/p
14123d
14124:bsnlc
14125s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14126b cont
14127' <confdefs.h | sed '
14128s/'"$ac_delim"'/"\\\
14129"/g' >>$CONFIG_STATUS || ac_write_fail=1
14130
14131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14132  for (key in D) D_is_set[key] = 1
14133  FS = ""
14134}
14135/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14136  line = \$ 0
14137  split(line, arg, " ")
14138  if (arg[1] == "#") {
14139    defundef = arg[2]
14140    mac1 = arg[3]
14141  } else {
14142    defundef = substr(arg[1], 2)
14143    mac1 = arg[2]
14144  }
14145  split(mac1, mac2, "(") #)
14146  macro = mac2[1]
14147  prefix = substr(line, 1, index(line, defundef) - 1)
14148  if (D_is_set[macro]) {
14149    # Preserve the white space surrounding the "#".
14150    print prefix "define", macro P[macro] D[macro]
14151    next
14152  } else {
14153    # Replace #undef with comments.  This is necessary, for example,
14154    # in the case of _POSIX_SOURCE, which is predefined and required
14155    # on some systems where configure will not decide to define it.
14156    if (defundef == "undef") {
14157      print "/*", prefix defundef, macro, "*/"
14158      next
14159    }
14160  }
14161}
14162{ print }
14163_ACAWK
14164_ACEOF
14165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14166  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14167fi # test -n "$CONFIG_HEADERS"
14168
14169
14170eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14171shift
14172for ac_tag
14173do
14174  case $ac_tag in
14175  :[FHLC]) ac_mode=$ac_tag; continue;;
14176  esac
14177  case $ac_mode$ac_tag in
14178  :[FHL]*:*);;
14179  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14180  :[FH]-) ac_tag=-:-;;
14181  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14182  esac
14183  ac_save_IFS=$IFS
14184  IFS=:
14185  set x $ac_tag
14186  IFS=$ac_save_IFS
14187  shift
14188  ac_file=$1
14189  shift
14190
14191  case $ac_mode in
14192  :L) ac_source=$1;;
14193  :[FH])
14194    ac_file_inputs=
14195    for ac_f
14196    do
14197      case $ac_f in
14198      -) ac_f="$ac_tmp/stdin";;
14199      *) # Look for the file first in the build tree, then in the source tree
14200	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14201	 # because $ac_f cannot contain `:'.
14202	 test -f "$ac_f" ||
14203	   case $ac_f in
14204	   [\\/$]*) false;;
14205	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14206	   esac ||
14207	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14208      esac
14209      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14210      as_fn_append ac_file_inputs " '$ac_f'"
14211    done
14212
14213    # Let's still pretend it is `configure' which instantiates (i.e., don't
14214    # use $as_me), people would be surprised to read:
14215    #    /* config.h.  Generated by config.status.  */
14216    configure_input='Generated from '`
14217	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14218	`' by configure.'
14219    if test x"$ac_file" != x-; then
14220      configure_input="$ac_file.  $configure_input"
14221      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14222$as_echo "$as_me: creating $ac_file" >&6;}
14223    fi
14224    # Neutralize special characters interpreted by sed in replacement strings.
14225    case $configure_input in #(
14226    *\&* | *\|* | *\\* )
14227       ac_sed_conf_input=`$as_echo "$configure_input" |
14228       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14229    *) ac_sed_conf_input=$configure_input;;
14230    esac
14231
14232    case $ac_tag in
14233    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14234      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14235    esac
14236    ;;
14237  esac
14238
14239  ac_dir=`$as_dirname -- "$ac_file" ||
14240$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14241	 X"$ac_file" : 'X\(//\)[^/]' \| \
14242	 X"$ac_file" : 'X\(//\)$' \| \
14243	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14244$as_echo X"$ac_file" |
14245    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14246	    s//\1/
14247	    q
14248	  }
14249	  /^X\(\/\/\)[^/].*/{
14250	    s//\1/
14251	    q
14252	  }
14253	  /^X\(\/\/\)$/{
14254	    s//\1/
14255	    q
14256	  }
14257	  /^X\(\/\).*/{
14258	    s//\1/
14259	    q
14260	  }
14261	  s/.*/./; q'`
14262  as_dir="$ac_dir"; as_fn_mkdir_p
14263  ac_builddir=.
14264
14265case "$ac_dir" in
14266.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14267*)
14268  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14269  # A ".." for each directory in $ac_dir_suffix.
14270  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14271  case $ac_top_builddir_sub in
14272  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14273  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14274  esac ;;
14275esac
14276ac_abs_top_builddir=$ac_pwd
14277ac_abs_builddir=$ac_pwd$ac_dir_suffix
14278# for backward compatibility:
14279ac_top_builddir=$ac_top_build_prefix
14280
14281case $srcdir in
14282  .)  # We are building in place.
14283    ac_srcdir=.
14284    ac_top_srcdir=$ac_top_builddir_sub
14285    ac_abs_top_srcdir=$ac_pwd ;;
14286  [\\/]* | ?:[\\/]* )  # Absolute name.
14287    ac_srcdir=$srcdir$ac_dir_suffix;
14288    ac_top_srcdir=$srcdir
14289    ac_abs_top_srcdir=$srcdir ;;
14290  *) # Relative name.
14291    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14292    ac_top_srcdir=$ac_top_build_prefix$srcdir
14293    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14294esac
14295ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14296
14297
14298  case $ac_mode in
14299  :F)
14300  #
14301  # CONFIG_FILE
14302  #
14303
14304  case $INSTALL in
14305  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14306  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14307  esac
14308  ac_MKDIR_P=$MKDIR_P
14309  case $MKDIR_P in
14310  [\\/$]* | ?:[\\/]* ) ;;
14311  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14312  esac
14313_ACEOF
14314
14315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14316# If the template does not know about datarootdir, expand it.
14317# FIXME: This hack should be removed a few years after 2.60.
14318ac_datarootdir_hack=; ac_datarootdir_seen=
14319ac_sed_dataroot='
14320/datarootdir/ {
14321  p
14322  q
14323}
14324/@datadir@/p
14325/@docdir@/p
14326/@infodir@/p
14327/@localedir@/p
14328/@mandir@/p'
14329case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14330*datarootdir*) ac_datarootdir_seen=yes;;
14331*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14332  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14333$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14334_ACEOF
14335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14336  ac_datarootdir_hack='
14337  s&@datadir@&$datadir&g
14338  s&@docdir@&$docdir&g
14339  s&@infodir@&$infodir&g
14340  s&@localedir@&$localedir&g
14341  s&@mandir@&$mandir&g
14342  s&\\\${datarootdir}&$datarootdir&g' ;;
14343esac
14344_ACEOF
14345
14346# Neutralize VPATH when `$srcdir' = `.'.
14347# Shell code in configure.ac might set extrasub.
14348# FIXME: do we really want to maintain this feature?
14349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14350ac_sed_extra="$ac_vpsub
14351$extrasub
14352_ACEOF
14353cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14354:t
14355/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14356s|@configure_input@|$ac_sed_conf_input|;t t
14357s&@top_builddir@&$ac_top_builddir_sub&;t t
14358s&@top_build_prefix@&$ac_top_build_prefix&;t t
14359s&@srcdir@&$ac_srcdir&;t t
14360s&@abs_srcdir@&$ac_abs_srcdir&;t t
14361s&@top_srcdir@&$ac_top_srcdir&;t t
14362s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14363s&@builddir@&$ac_builddir&;t t
14364s&@abs_builddir@&$ac_abs_builddir&;t t
14365s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14366s&@INSTALL@&$ac_INSTALL&;t t
14367s&@MKDIR_P@&$ac_MKDIR_P&;t t
14368$ac_datarootdir_hack
14369"
14370eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14371  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14372
14373test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14374  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14375  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14376      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14377  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14378which seems to be undefined.  Please make sure it is defined" >&5
14379$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14380which seems to be undefined.  Please make sure it is defined" >&2;}
14381
14382  rm -f "$ac_tmp/stdin"
14383  case $ac_file in
14384  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14385  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14386  esac \
14387  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14388 ;;
14389  :H)
14390  #
14391  # CONFIG_HEADER
14392  #
14393  if test x"$ac_file" != x-; then
14394    {
14395      $as_echo "/* $configure_input  */" \
14396      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14397    } >"$ac_tmp/config.h" \
14398      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14399    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14400      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14401$as_echo "$as_me: $ac_file is unchanged" >&6;}
14402    else
14403      rm -f "$ac_file"
14404      mv "$ac_tmp/config.h" "$ac_file" \
14405	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14406    fi
14407  else
14408    $as_echo "/* $configure_input  */" \
14409      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14410      || as_fn_error $? "could not create -" "$LINENO" 5
14411  fi
14412# Compute "$ac_file"'s index in $config_headers.
14413_am_arg="$ac_file"
14414_am_stamp_count=1
14415for _am_header in $config_headers :; do
14416  case $_am_header in
14417    $_am_arg | $_am_arg:* )
14418      break ;;
14419    * )
14420      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14421  esac
14422done
14423echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14424$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14425	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14426	 X"$_am_arg" : 'X\(//\)$' \| \
14427	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14428$as_echo X"$_am_arg" |
14429    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14430	    s//\1/
14431	    q
14432	  }
14433	  /^X\(\/\/\)[^/].*/{
14434	    s//\1/
14435	    q
14436	  }
14437	  /^X\(\/\/\)$/{
14438	    s//\1/
14439	    q
14440	  }
14441	  /^X\(\/\).*/{
14442	    s//\1/
14443	    q
14444	  }
14445	  s/.*/./; q'`/stamp-h$_am_stamp_count
14446 ;;
14447
14448  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14449$as_echo "$as_me: executing $ac_file commands" >&6;}
14450 ;;
14451  esac
14452
14453
14454  case $ac_file$ac_mode in
14455    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14456  # Older Autoconf quotes --file arguments for eval, but not when files
14457  # are listed without --file.  Let's play safe and only enable the eval
14458  # if we detect the quoting.
14459  # TODO: see whether this extra hack can be removed once we start
14460  # requiring Autoconf 2.70 or later.
14461  case $CONFIG_FILES in #(
14462  *\'*) :
14463    eval set x "$CONFIG_FILES" ;; #(
14464  *) :
14465    set x $CONFIG_FILES ;; #(
14466  *) :
14467     ;;
14468esac
14469  shift
14470  # Used to flag and report bootstrapping failures.
14471  am_rc=0
14472  for am_mf
14473  do
14474    # Strip MF so we end up with the name of the file.
14475    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14476    # Check whether this is an Automake generated Makefile which includes
14477    # dependency-tracking related rules and includes.
14478    # Grep'ing the whole file directly is not great: AIX grep has a line
14479    # limit of 2048, but all sed's we know have understand at least 4000.
14480    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14481      || continue
14482    am_dirpart=`$as_dirname -- "$am_mf" ||
14483$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14484	 X"$am_mf" : 'X\(//\)[^/]' \| \
14485	 X"$am_mf" : 'X\(//\)$' \| \
14486	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14487$as_echo X"$am_mf" |
14488    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14489	    s//\1/
14490	    q
14491	  }
14492	  /^X\(\/\/\)[^/].*/{
14493	    s//\1/
14494	    q
14495	  }
14496	  /^X\(\/\/\)$/{
14497	    s//\1/
14498	    q
14499	  }
14500	  /^X\(\/\).*/{
14501	    s//\1/
14502	    q
14503	  }
14504	  s/.*/./; q'`
14505    am_filepart=`$as_basename -- "$am_mf" ||
14506$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14507	 X"$am_mf" : 'X\(//\)$' \| \
14508	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14509$as_echo X/"$am_mf" |
14510    sed '/^.*\/\([^/][^/]*\)\/*$/{
14511	    s//\1/
14512	    q
14513	  }
14514	  /^X\/\(\/\/\)$/{
14515	    s//\1/
14516	    q
14517	  }
14518	  /^X\/\(\/\).*/{
14519	    s//\1/
14520	    q
14521	  }
14522	  s/.*/./; q'`
14523    { echo "$as_me:$LINENO: cd "$am_dirpart" \
14524      && sed -e '/# am--include-marker/d' "$am_filepart" \
14525        | $MAKE -f - am--depfiles" >&5
14526   (cd "$am_dirpart" \
14527      && sed -e '/# am--include-marker/d' "$am_filepart" \
14528        | $MAKE -f - am--depfiles) >&5 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); } || am_rc=$?
14532  done
14533  if test $am_rc -ne 0; then
14534    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14536as_fn_error $? "Something went wrong bootstrapping makefile fragments
14537    for automatic dependency tracking.  Try re-running configure with the
14538    '--disable-dependency-tracking' option to at least be able to build
14539    the package (albeit without support for automatic dependency tracking).
14540See \`config.log' for more details" "$LINENO" 5; }
14541  fi
14542  { am_dirpart=; unset am_dirpart;}
14543  { am_filepart=; unset am_filepart;}
14544  { am_mf=; unset am_mf;}
14545  { am_rc=; unset am_rc;}
14546  rm -f conftest-deps.mk
14547}
14548 ;;
14549    "libtool":C)
14550
14551    # See if we are running on zsh, and set the options that allow our
14552    # commands through without removal of \ escapes.
14553    if test -n "${ZSH_VERSION+set}"; then
14554      setopt NO_GLOB_SUBST
14555    fi
14556
14557    cfgfile=${ofile}T
14558    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14559    $RM "$cfgfile"
14560
14561    cat <<_LT_EOF >> "$cfgfile"
14562#! $SHELL
14563
14564# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14565# Generated automatically by $as_me ($PACKAGE) $VERSION
14566# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14567# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14568#
14569#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14570#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14571#                 Foundation, Inc.
14572#   Written by Gordon Matzigkeit, 1996
14573#
14574#   This file is part of GNU Libtool.
14575#
14576# GNU Libtool is free software; you can redistribute it and/or
14577# modify it under the terms of the GNU General Public License as
14578# published by the Free Software Foundation; either version 2 of
14579# the License, or (at your option) any later version.
14580#
14581# As a special exception to the GNU General Public License,
14582# if you distribute this file as part of a program or library that
14583# is built using GNU Libtool, you may include this file under the
14584# same distribution terms that you use for the rest of that program.
14585#
14586# GNU Libtool is distributed in the hope that it will be useful,
14587# but WITHOUT ANY WARRANTY; without even the implied warranty of
14588# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14589# GNU General Public License for more details.
14590#
14591# You should have received a copy of the GNU General Public License
14592# along with GNU Libtool; see the file COPYING.  If not, a copy
14593# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14594# obtained by writing to the Free Software Foundation, Inc.,
14595# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14596
14597
14598# The names of the tagged configurations supported by this script.
14599available_tags=''
14600
14601# ### BEGIN LIBTOOL CONFIG
14602
14603# Which release of libtool.m4 was used?
14604macro_version=$macro_version
14605macro_revision=$macro_revision
14606
14607# Whether or not to build shared libraries.
14608build_libtool_libs=$enable_shared
14609
14610# Whether or not to build static libraries.
14611build_old_libs=$enable_static
14612
14613# What type of objects to build.
14614pic_mode=$pic_mode
14615
14616# Whether or not to optimize for fast installation.
14617fast_install=$enable_fast_install
14618
14619# Shell to use when invoking shell scripts.
14620SHELL=$lt_SHELL
14621
14622# An echo program that protects backslashes.
14623ECHO=$lt_ECHO
14624
14625# The PATH separator for the build system.
14626PATH_SEPARATOR=$lt_PATH_SEPARATOR
14627
14628# The host system.
14629host_alias=$host_alias
14630host=$host
14631host_os=$host_os
14632
14633# The build system.
14634build_alias=$build_alias
14635build=$build
14636build_os=$build_os
14637
14638# A sed program that does not truncate output.
14639SED=$lt_SED
14640
14641# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14642Xsed="\$SED -e 1s/^X//"
14643
14644# A grep program that handles long lines.
14645GREP=$lt_GREP
14646
14647# An ERE matcher.
14648EGREP=$lt_EGREP
14649
14650# A literal string matcher.
14651FGREP=$lt_FGREP
14652
14653# A BSD- or MS-compatible name lister.
14654NM=$lt_NM
14655
14656# Whether we need soft or hard links.
14657LN_S=$lt_LN_S
14658
14659# What is the maximum length of a command?
14660max_cmd_len=$max_cmd_len
14661
14662# Object file suffix (normally "o").
14663objext=$ac_objext
14664
14665# Executable file suffix (normally "").
14666exeext=$exeext
14667
14668# whether the shell understands "unset".
14669lt_unset=$lt_unset
14670
14671# turn spaces into newlines.
14672SP2NL=$lt_lt_SP2NL
14673
14674# turn newlines into spaces.
14675NL2SP=$lt_lt_NL2SP
14676
14677# convert \$build file names to \$host format.
14678to_host_file_cmd=$lt_cv_to_host_file_cmd
14679
14680# convert \$build files to toolchain format.
14681to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14682
14683# An object symbol dumper.
14684OBJDUMP=$lt_OBJDUMP
14685
14686# Method to check whether dependent libraries are shared objects.
14687deplibs_check_method=$lt_deplibs_check_method
14688
14689# Command to use when deplibs_check_method = "file_magic".
14690file_magic_cmd=$lt_file_magic_cmd
14691
14692# How to find potential files when deplibs_check_method = "file_magic".
14693file_magic_glob=$lt_file_magic_glob
14694
14695# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14696want_nocaseglob=$lt_want_nocaseglob
14697
14698# DLL creation program.
14699DLLTOOL=$lt_DLLTOOL
14700
14701# Command to associate shared and link libraries.
14702sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14703
14704# The archiver.
14705AR=$lt_AR
14706
14707# Flags to create an archive.
14708AR_FLAGS=$lt_AR_FLAGS
14709
14710# How to feed a file listing to the archiver.
14711archiver_list_spec=$lt_archiver_list_spec
14712
14713# A symbol stripping program.
14714STRIP=$lt_STRIP
14715
14716# Commands used to install an old-style archive.
14717RANLIB=$lt_RANLIB
14718old_postinstall_cmds=$lt_old_postinstall_cmds
14719old_postuninstall_cmds=$lt_old_postuninstall_cmds
14720
14721# Whether to use a lock for old archive extraction.
14722lock_old_archive_extraction=$lock_old_archive_extraction
14723
14724# A C compiler.
14725LTCC=$lt_CC
14726
14727# LTCC compiler flags.
14728LTCFLAGS=$lt_CFLAGS
14729
14730# Take the output of nm and produce a listing of raw symbols and C names.
14731global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14732
14733# Transform the output of nm in a proper C declaration.
14734global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14735
14736# Transform the output of nm into a list of symbols to manually relocate.
14737global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14738
14739# Transform the output of nm in a C name address pair.
14740global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14741
14742# Transform the output of nm in a C name address pair when lib prefix is needed.
14743global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14744
14745# The name lister interface.
14746nm_interface=$lt_lt_cv_nm_interface
14747
14748# Specify filename containing input files for \$NM.
14749nm_file_list_spec=$lt_nm_file_list_spec
14750
14751# The root where to search for dependent libraries,and where our libraries should be installed.
14752lt_sysroot=$lt_sysroot
14753
14754# The name of the directory that contains temporary libtool files.
14755objdir=$objdir
14756
14757# Used to examine libraries when file_magic_cmd begins with "file".
14758MAGIC_CMD=$MAGIC_CMD
14759
14760# Must we lock files when doing compilation?
14761need_locks=$lt_need_locks
14762
14763# Manifest tool.
14764MANIFEST_TOOL=$lt_MANIFEST_TOOL
14765
14766# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14767DSYMUTIL=$lt_DSYMUTIL
14768
14769# Tool to change global to local symbols on Mac OS X.
14770NMEDIT=$lt_NMEDIT
14771
14772# Tool to manipulate fat objects and archives on Mac OS X.
14773LIPO=$lt_LIPO
14774
14775# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14776OTOOL=$lt_OTOOL
14777
14778# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14779OTOOL64=$lt_OTOOL64
14780
14781# Old archive suffix (normally "a").
14782libext=$libext
14783
14784# Shared library suffix (normally ".so").
14785shrext_cmds=$lt_shrext_cmds
14786
14787# The commands to extract the exported symbol list from a shared archive.
14788extract_expsyms_cmds=$lt_extract_expsyms_cmds
14789
14790# Variables whose values should be saved in libtool wrapper scripts and
14791# restored at link time.
14792variables_saved_for_relink=$lt_variables_saved_for_relink
14793
14794# Do we need the "lib" prefix for modules?
14795need_lib_prefix=$need_lib_prefix
14796
14797# Do we need a version for libraries?
14798need_version=$need_version
14799
14800# Library versioning type.
14801version_type=$version_type
14802
14803# Shared library runtime path variable.
14804runpath_var=$runpath_var
14805
14806# Shared library path variable.
14807shlibpath_var=$shlibpath_var
14808
14809# Is shlibpath searched before the hard-coded library search path?
14810shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14811
14812# Format of library name prefix.
14813libname_spec=$lt_libname_spec
14814
14815# List of archive names.  First name is the real one, the rest are links.
14816# The last name is the one that the linker finds with -lNAME
14817library_names_spec=$lt_library_names_spec
14818
14819# The coded name of the library, if different from the real name.
14820soname_spec=$lt_soname_spec
14821
14822# Permission mode override for installation of shared libraries.
14823install_override_mode=$lt_install_override_mode
14824
14825# Command to use after installation of a shared archive.
14826postinstall_cmds=$lt_postinstall_cmds
14827
14828# Command to use after uninstallation of a shared archive.
14829postuninstall_cmds=$lt_postuninstall_cmds
14830
14831# Commands used to finish a libtool library installation in a directory.
14832finish_cmds=$lt_finish_cmds
14833
14834# As "finish_cmds", except a single script fragment to be evaled but
14835# not shown.
14836finish_eval=$lt_finish_eval
14837
14838# Whether we should hardcode library paths into libraries.
14839hardcode_into_libs=$hardcode_into_libs
14840
14841# Compile-time system search path for libraries.
14842sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14843
14844# Run-time system search path for libraries.
14845sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14846
14847# Whether dlopen is supported.
14848dlopen_support=$enable_dlopen
14849
14850# Whether dlopen of programs is supported.
14851dlopen_self=$enable_dlopen_self
14852
14853# Whether dlopen of statically linked programs is supported.
14854dlopen_self_static=$enable_dlopen_self_static
14855
14856# Commands to strip libraries.
14857old_striplib=$lt_old_striplib
14858striplib=$lt_striplib
14859
14860
14861# The linker used to build libraries.
14862LD=$lt_LD
14863
14864# How to create reloadable object files.
14865reload_flag=$lt_reload_flag
14866reload_cmds=$lt_reload_cmds
14867
14868# Commands used to build an old-style archive.
14869old_archive_cmds=$lt_old_archive_cmds
14870
14871# A language specific compiler.
14872CC=$lt_compiler
14873
14874# Is the compiler the GNU compiler?
14875with_gcc=$GCC
14876
14877# Compiler flag to turn off builtin functions.
14878no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14879
14880# Additional compiler flags for building library objects.
14881pic_flag=$lt_lt_prog_compiler_pic
14882
14883# How to pass a linker flag through the compiler.
14884wl=$lt_lt_prog_compiler_wl
14885
14886# Compiler flag to prevent dynamic linking.
14887link_static_flag=$lt_lt_prog_compiler_static
14888
14889# Does compiler simultaneously support -c and -o options?
14890compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14891
14892# Whether or not to add -lc for building shared libraries.
14893build_libtool_need_lc=$archive_cmds_need_lc
14894
14895# Whether or not to disallow shared libs when runtime libs are static.
14896allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14897
14898# Compiler flag to allow reflexive dlopens.
14899export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14900
14901# Compiler flag to generate shared objects directly from archives.
14902whole_archive_flag_spec=$lt_whole_archive_flag_spec
14903
14904# Whether the compiler copes with passing no objects directly.
14905compiler_needs_object=$lt_compiler_needs_object
14906
14907# Create an old-style archive from a shared archive.
14908old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14909
14910# Create a temporary old-style archive to link instead of a shared archive.
14911old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14912
14913# Commands used to build a shared archive.
14914archive_cmds=$lt_archive_cmds
14915archive_expsym_cmds=$lt_archive_expsym_cmds
14916
14917# Commands used to build a loadable module if different from building
14918# a shared archive.
14919module_cmds=$lt_module_cmds
14920module_expsym_cmds=$lt_module_expsym_cmds
14921
14922# Whether we are building with GNU ld or not.
14923with_gnu_ld=$lt_with_gnu_ld
14924
14925# Flag that allows shared libraries with undefined symbols to be built.
14926allow_undefined_flag=$lt_allow_undefined_flag
14927
14928# Flag that enforces no undefined symbols.
14929no_undefined_flag=$lt_no_undefined_flag
14930
14931# Flag to hardcode \$libdir into a binary during linking.
14932# This must work even if \$libdir does not exist
14933hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14934
14935# Whether we need a single "-rpath" flag with a separated argument.
14936hardcode_libdir_separator=$lt_hardcode_libdir_separator
14937
14938# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14939# DIR into the resulting binary.
14940hardcode_direct=$hardcode_direct
14941
14942# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14943# DIR into the resulting binary and the resulting library dependency is
14944# "absolute",i.e impossible to change by setting \$shlibpath_var if the
14945# library is relocated.
14946hardcode_direct_absolute=$hardcode_direct_absolute
14947
14948# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14949# into the resulting binary.
14950hardcode_minus_L=$hardcode_minus_L
14951
14952# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14953# into the resulting binary.
14954hardcode_shlibpath_var=$hardcode_shlibpath_var
14955
14956# Set to "yes" if building a shared library automatically hardcodes DIR
14957# into the library and all subsequent libraries and executables linked
14958# against it.
14959hardcode_automatic=$hardcode_automatic
14960
14961# Set to yes if linker adds runtime paths of dependent libraries
14962# to runtime path list.
14963inherit_rpath=$inherit_rpath
14964
14965# Whether libtool must link a program against all its dependency libraries.
14966link_all_deplibs=$link_all_deplibs
14967
14968# Set to "yes" if exported symbols are required.
14969always_export_symbols=$always_export_symbols
14970
14971# The commands to list exported symbols.
14972export_symbols_cmds=$lt_export_symbols_cmds
14973
14974# Symbols that should not be listed in the preloaded symbols.
14975exclude_expsyms=$lt_exclude_expsyms
14976
14977# Symbols that must always be exported.
14978include_expsyms=$lt_include_expsyms
14979
14980# Commands necessary for linking programs (against libraries) with templates.
14981prelink_cmds=$lt_prelink_cmds
14982
14983# Commands necessary for finishing linking programs.
14984postlink_cmds=$lt_postlink_cmds
14985
14986# Specify filename containing input files.
14987file_list_spec=$lt_file_list_spec
14988
14989# How to hardcode a shared library path into an executable.
14990hardcode_action=$hardcode_action
14991
14992# ### END LIBTOOL CONFIG
14993
14994_LT_EOF
14995
14996  case $host_os in
14997  aix3*)
14998    cat <<\_LT_EOF >> "$cfgfile"
14999# AIX sometimes has problems with the GCC collect2 program.  For some
15000# reason, if we set the COLLECT_NAMES environment variable, the problems
15001# vanish in a puff of smoke.
15002if test set != "${COLLECT_NAMES+set}"; then
15003  COLLECT_NAMES=
15004  export COLLECT_NAMES
15005fi
15006_LT_EOF
15007    ;;
15008  esac
15009
15010
15011ltmain=$ac_aux_dir/ltmain.sh
15012
15013
15014  # We use sed instead of cat because bash on DJGPP gets confused if
15015  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15016  # text mode, it properly converts lines to CR/LF.  This bash problem
15017  # is reportedly fixed, but why not run on old versions too?
15018  sed '$q' "$ltmain" >> "$cfgfile" \
15019     || (rm -f "$cfgfile"; exit 1)
15020
15021   mv -f "$cfgfile" "$ofile" ||
15022    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15023  chmod +x "$ofile"
15024
15025 ;;
15026
15027  esac
15028done # for ac_tag
15029
15030
15031as_fn_exit 0
15032_ACEOF
15033ac_clean_files=$ac_clean_files_save
15034
15035test $ac_write_fail = 0 ||
15036  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15037
15038
15039# configure is writing to config.log, and then calls config.status.
15040# config.status does its own redirection, appending to config.log.
15041# Unfortunately, on DOS this fails, as config.log is still kept open
15042# by configure, so config.status won't be able to write to it; its
15043# output is simply discarded.  So we exec the FD to /dev/null,
15044# effectively closing config.log, so it can be properly (re)opened and
15045# appended to by config.status.  When coming back to configure, we
15046# need to make the FD available again.
15047if test "$no_create" != yes; then
15048  ac_cs_success=:
15049  ac_config_status_args=
15050  test "$silent" = yes &&
15051    ac_config_status_args="$ac_config_status_args --quiet"
15052  exec 5>/dev/null
15053  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15054  exec 5>>config.log
15055  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15056  # would make configure fail if this is the last instruction.
15057  $ac_cs_success || as_fn_exit 1
15058fi
15059if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15060  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15061$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15062fi
15063
15064