1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for purple-facebook 0.9.6.
4#
5# Report bugs to <https://github.com/dequis/purple-facebook/issues>.
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: https://github.com/dequis/purple-facebook/issues about
279$0: your system, including any error possibly output before
280$0: this message. Then install a modern shell, or manually
281$0: run the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='purple-facebook'
592PACKAGE_TARNAME='purple-facebook'
593PACKAGE_VERSION='0.9.6'
594PACKAGE_STRING='purple-facebook 0.9.6'
595PACKAGE_BUGREPORT='https://github.com/dequis/purple-facebook/issues'
596PACKAGE_URL='https://github.com/dequis/purple-facebook'
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638PLUGIN_LDFLAGS
639STATIC_FACEBOOK_FALSE
640STATIC_FACEBOOK_TRUE
641PLUGIN_CFLAGS
642PURPLE_PLUGINDIR
643GLIB_GENMARSHAL
644ZLIB_LIBS
645ZLIB_CFLAGS
646PURPLE_LIBS
647PURPLE_CFLAGS
648JSON_LIBS
649JSON_CFLAGS
650GLIB_LIBS
651GLIB_CFLAGS
652PKG_CONFIG_LIBDIR
653PKG_CONFIG_PATH
654PKG_CONFIG
655CPP
656LT_SYS_LIBRARY_PATH
657OTOOL64
658OTOOL
659LIPO
660NMEDIT
661DSYMUTIL
662MANIFEST_TOOL
663RANLIB
664ac_ct_AR
665AR
666DLLTOOL
667OBJDUMP
668LN_S
669NM
670ac_ct_DUMPBIN
671DUMPBIN
672LD
673FGREP
674EGREP
675GREP
676SED
677host_os
678host_vendor
679host_cpu
680host
681build_os
682build_vendor
683build_cpu
684build
685LIBTOOL
686am__fastdepCC_FALSE
687am__fastdepCC_TRUE
688CCDEPMODE
689am__nodep
690AMDEPBACKSLASH
691AMDEP_FALSE
692AMDEP_TRUE
693am__include
694DEPDIR
695OBJEXT
696EXEEXT
697ac_ct_CC
698CPPFLAGS
699LDFLAGS
700CFLAGS
701CC
702AM_BACKSLASH
703AM_DEFAULT_VERBOSITY
704AM_DEFAULT_V
705AM_V
706am__untar
707am__tar
708AMTAR
709am__leading_dot
710SET_MAKE
711AWK
712mkdir_p
713MKDIR_P
714INSTALL_STRIP_PROGRAM
715STRIP
716install_sh
717MAKEINFO
718AUTOHEADER
719AUTOMAKE
720AUTOCONF
721ACLOCAL
722VERSION
723PACKAGE
724CYGPATH_W
725am__isrc
726INSTALL_DATA
727INSTALL_SCRIPT
728INSTALL_PROGRAM
729target_alias
730host_alias
731build_alias
732LIBS
733ECHO_T
734ECHO_N
735ECHO_C
736DEFS
737mandir
738localedir
739libdir
740psdir
741pdfdir
742dvidir
743htmldir
744infodir
745docdir
746oldincludedir
747includedir
748localstatedir
749sharedstatedir
750sysconfdir
751datadir
752datarootdir
753libexecdir
754sbindir
755bindir
756program_transform_name
757prefix
758exec_prefix
759PACKAGE_URL
760PACKAGE_BUGREPORT
761PACKAGE_STRING
762PACKAGE_VERSION
763PACKAGE_TARNAME
764PACKAGE_NAME
765PATH_SEPARATOR
766SHELL
767am__quote'
768ac_subst_files=''
769ac_user_opts='
770enable_option_checking
771enable_silent_rules
772enable_dependency_tracking
773enable_static
774enable_shared
775with_pic
776enable_fast_install
777with_aix_soname
778with_gnu_ld
779with_sysroot
780enable_libtool_lock
781enable_warnings
782with_plugindir
783'
784      ac_precious_vars='build_alias
785host_alias
786target_alias
787CC
788CFLAGS
789LDFLAGS
790LIBS
791CPPFLAGS
792LT_SYS_LIBRARY_PATH
793CPP
794PKG_CONFIG
795PKG_CONFIG_PATH
796PKG_CONFIG_LIBDIR
797GLIB_CFLAGS
798GLIB_LIBS
799JSON_CFLAGS
800JSON_LIBS
801PURPLE_CFLAGS
802PURPLE_LIBS
803ZLIB_CFLAGS
804ZLIB_LIBS
805GLIB_GENMARSHAL
806PURPLE_PLUGINDIR'
807
808
809# Initialize some variables set by options.
810ac_init_help=
811ac_init_version=false
812ac_unrecognized_opts=
813ac_unrecognized_sep=
814# The variables have the same names as the options, with
815# dashes changed to underlines.
816cache_file=/dev/null
817exec_prefix=NONE
818no_create=
819no_recursion=
820prefix=NONE
821program_prefix=NONE
822program_suffix=NONE
823program_transform_name=s,x,x,
824silent=
825site=
826srcdir=
827verbose=
828x_includes=NONE
829x_libraries=NONE
830
831# Installation directory options.
832# These are left unexpanded so users can "make install exec_prefix=/foo"
833# and all the variables that are supposed to be based on exec_prefix
834# by default will actually change.
835# Use braces instead of parens because sh, perl, etc. also accept them.
836# (The list follows the same order as the GNU Coding Standards.)
837bindir='${exec_prefix}/bin'
838sbindir='${exec_prefix}/sbin'
839libexecdir='${exec_prefix}/libexec'
840datarootdir='${prefix}/share'
841datadir='${datarootdir}'
842sysconfdir='${prefix}/etc'
843sharedstatedir='${prefix}/com'
844localstatedir='${prefix}/var'
845includedir='${prefix}/include'
846oldincludedir='/usr/include'
847docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848infodir='${datarootdir}/info'
849htmldir='${docdir}'
850dvidir='${docdir}'
851pdfdir='${docdir}'
852psdir='${docdir}'
853libdir='${exec_prefix}/lib'
854localedir='${datarootdir}/locale'
855mandir='${datarootdir}/man'
856
857ac_prev=
858ac_dashdash=
859for ac_option
860do
861  # If the previous option needs an argument, assign it.
862  if test -n "$ac_prev"; then
863    eval $ac_prev=\$ac_option
864    ac_prev=
865    continue
866  fi
867
868  case $ac_option in
869  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870  *=)   ac_optarg= ;;
871  *)    ac_optarg=yes ;;
872  esac
873
874  # Accept the important Cygnus configure options, so we can diagnose typos.
875
876  case $ac_dashdash$ac_option in
877  --)
878    ac_dashdash=yes ;;
879
880  -bindir | --bindir | --bindi | --bind | --bin | --bi)
881    ac_prev=bindir ;;
882  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883    bindir=$ac_optarg ;;
884
885  -build | --build | --buil | --bui | --bu)
886    ac_prev=build_alias ;;
887  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888    build_alias=$ac_optarg ;;
889
890  -cache-file | --cache-file | --cache-fil | --cache-fi \
891  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892    ac_prev=cache_file ;;
893  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895    cache_file=$ac_optarg ;;
896
897  --config-cache | -C)
898    cache_file=config.cache ;;
899
900  -datadir | --datadir | --datadi | --datad)
901    ac_prev=datadir ;;
902  -datadir=* | --datadir=* | --datadi=* | --datad=*)
903    datadir=$ac_optarg ;;
904
905  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906  | --dataroo | --dataro | --datar)
907    ac_prev=datarootdir ;;
908  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910    datarootdir=$ac_optarg ;;
911
912  -disable-* | --disable-*)
913    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914    # Reject names that are not valid shell variable names.
915    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916      as_fn_error $? "invalid feature name: $ac_useropt"
917    ac_useropt_orig=$ac_useropt
918    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919    case $ac_user_opts in
920      *"
921"enable_$ac_useropt"
922"*) ;;
923      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924	 ac_unrecognized_sep=', ';;
925    esac
926    eval enable_$ac_useropt=no ;;
927
928  -docdir | --docdir | --docdi | --doc | --do)
929    ac_prev=docdir ;;
930  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931    docdir=$ac_optarg ;;
932
933  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934    ac_prev=dvidir ;;
935  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936    dvidir=$ac_optarg ;;
937
938  -enable-* | --enable-*)
939    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940    # Reject names that are not valid shell variable names.
941    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942      as_fn_error $? "invalid feature name: $ac_useropt"
943    ac_useropt_orig=$ac_useropt
944    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945    case $ac_user_opts in
946      *"
947"enable_$ac_useropt"
948"*) ;;
949      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950	 ac_unrecognized_sep=', ';;
951    esac
952    eval enable_$ac_useropt=\$ac_optarg ;;
953
954  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956  | --exec | --exe | --ex)
957    ac_prev=exec_prefix ;;
958  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960  | --exec=* | --exe=* | --ex=*)
961    exec_prefix=$ac_optarg ;;
962
963  -gas | --gas | --ga | --g)
964    # Obsolete; use --with-gas.
965    with_gas=yes ;;
966
967  -help | --help | --hel | --he | -h)
968    ac_init_help=long ;;
969  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970    ac_init_help=recursive ;;
971  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972    ac_init_help=short ;;
973
974  -host | --host | --hos | --ho)
975    ac_prev=host_alias ;;
976  -host=* | --host=* | --hos=* | --ho=*)
977    host_alias=$ac_optarg ;;
978
979  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980    ac_prev=htmldir ;;
981  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982  | --ht=*)
983    htmldir=$ac_optarg ;;
984
985  -includedir | --includedir | --includedi | --included | --include \
986  | --includ | --inclu | --incl | --inc)
987    ac_prev=includedir ;;
988  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989  | --includ=* | --inclu=* | --incl=* | --inc=*)
990    includedir=$ac_optarg ;;
991
992  -infodir | --infodir | --infodi | --infod | --info | --inf)
993    ac_prev=infodir ;;
994  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995    infodir=$ac_optarg ;;
996
997  -libdir | --libdir | --libdi | --libd)
998    ac_prev=libdir ;;
999  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000    libdir=$ac_optarg ;;
1001
1002  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003  | --libexe | --libex | --libe)
1004    ac_prev=libexecdir ;;
1005  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006  | --libexe=* | --libex=* | --libe=*)
1007    libexecdir=$ac_optarg ;;
1008
1009  -localedir | --localedir | --localedi | --localed | --locale)
1010    ac_prev=localedir ;;
1011  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012    localedir=$ac_optarg ;;
1013
1014  -localstatedir | --localstatedir | --localstatedi | --localstated \
1015  | --localstate | --localstat | --localsta | --localst | --locals)
1016    ac_prev=localstatedir ;;
1017  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019    localstatedir=$ac_optarg ;;
1020
1021  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022    ac_prev=mandir ;;
1023  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024    mandir=$ac_optarg ;;
1025
1026  -nfp | --nfp | --nf)
1027    # Obsolete; use --without-fp.
1028    with_fp=no ;;
1029
1030  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031  | --no-cr | --no-c | -n)
1032    no_create=yes ;;
1033
1034  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036    no_recursion=yes ;;
1037
1038  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040  | --oldin | --oldi | --old | --ol | --o)
1041    ac_prev=oldincludedir ;;
1042  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045    oldincludedir=$ac_optarg ;;
1046
1047  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048    ac_prev=prefix ;;
1049  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050    prefix=$ac_optarg ;;
1051
1052  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053  | --program-pre | --program-pr | --program-p)
1054    ac_prev=program_prefix ;;
1055  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057    program_prefix=$ac_optarg ;;
1058
1059  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060  | --program-suf | --program-su | --program-s)
1061    ac_prev=program_suffix ;;
1062  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064    program_suffix=$ac_optarg ;;
1065
1066  -program-transform-name | --program-transform-name \
1067  | --program-transform-nam | --program-transform-na \
1068  | --program-transform-n | --program-transform- \
1069  | --program-transform | --program-transfor \
1070  | --program-transfo | --program-transf \
1071  | --program-trans | --program-tran \
1072  | --progr-tra | --program-tr | --program-t)
1073    ac_prev=program_transform_name ;;
1074  -program-transform-name=* | --program-transform-name=* \
1075  | --program-transform-nam=* | --program-transform-na=* \
1076  | --program-transform-n=* | --program-transform-=* \
1077  | --program-transform=* | --program-transfor=* \
1078  | --program-transfo=* | --program-transf=* \
1079  | --program-trans=* | --program-tran=* \
1080  | --progr-tra=* | --program-tr=* | --program-t=*)
1081    program_transform_name=$ac_optarg ;;
1082
1083  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084    ac_prev=pdfdir ;;
1085  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086    pdfdir=$ac_optarg ;;
1087
1088  -psdir | --psdir | --psdi | --psd | --ps)
1089    ac_prev=psdir ;;
1090  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091    psdir=$ac_optarg ;;
1092
1093  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094  | -silent | --silent | --silen | --sile | --sil)
1095    silent=yes ;;
1096
1097  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098    ac_prev=sbindir ;;
1099  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100  | --sbi=* | --sb=*)
1101    sbindir=$ac_optarg ;;
1102
1103  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105  | --sharedst | --shareds | --shared | --share | --shar \
1106  | --sha | --sh)
1107    ac_prev=sharedstatedir ;;
1108  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111  | --sha=* | --sh=*)
1112    sharedstatedir=$ac_optarg ;;
1113
1114  -site | --site | --sit)
1115    ac_prev=site ;;
1116  -site=* | --site=* | --sit=*)
1117    site=$ac_optarg ;;
1118
1119  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120    ac_prev=srcdir ;;
1121  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122    srcdir=$ac_optarg ;;
1123
1124  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125  | --syscon | --sysco | --sysc | --sys | --sy)
1126    ac_prev=sysconfdir ;;
1127  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129    sysconfdir=$ac_optarg ;;
1130
1131  -target | --target | --targe | --targ | --tar | --ta | --t)
1132    ac_prev=target_alias ;;
1133  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134    target_alias=$ac_optarg ;;
1135
1136  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137    verbose=yes ;;
1138
1139  -version | --version | --versio | --versi | --vers | -V)
1140    ac_init_version=: ;;
1141
1142  -with-* | --with-*)
1143    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1154	 ac_unrecognized_sep=', ';;
1155    esac
1156    eval with_$ac_useropt=\$ac_optarg ;;
1157
1158  -without-* | --without-*)
1159    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160    # Reject names that are not valid shell variable names.
1161    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162      as_fn_error $? "invalid package name: $ac_useropt"
1163    ac_useropt_orig=$ac_useropt
1164    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165    case $ac_user_opts in
1166      *"
1167"with_$ac_useropt"
1168"*) ;;
1169      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170	 ac_unrecognized_sep=', ';;
1171    esac
1172    eval with_$ac_useropt=no ;;
1173
1174  --x)
1175    # Obsolete; use --with-x.
1176    with_x=yes ;;
1177
1178  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179  | --x-incl | --x-inc | --x-in | --x-i)
1180    ac_prev=x_includes ;;
1181  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183    x_includes=$ac_optarg ;;
1184
1185  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187    ac_prev=x_libraries ;;
1188  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190    x_libraries=$ac_optarg ;;
1191
1192  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193Try \`$0 --help' for more information"
1194    ;;
1195
1196  *=*)
1197    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198    # Reject names that are not valid shell variable names.
1199    case $ac_envvar in #(
1200      '' | [0-9]* | *[!_$as_cr_alnum]* )
1201      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202    esac
1203    eval $ac_envvar=\$ac_optarg
1204    export $ac_envvar ;;
1205
1206  *)
1207    # FIXME: should be removed in autoconf 3.0.
1208    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212    ;;
1213
1214  esac
1215done
1216
1217if test -n "$ac_prev"; then
1218  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219  as_fn_error $? "missing argument to $ac_option"
1220fi
1221
1222if test -n "$ac_unrecognized_opts"; then
1223  case $enable_option_checking in
1224    no) ;;
1225    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227  esac
1228fi
1229
1230# Check all directory arguments for consistency.
1231for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232		datadir sysconfdir sharedstatedir localstatedir includedir \
1233		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234		libdir localedir mandir
1235do
1236  eval ac_val=\$$ac_var
1237  # Remove trailing slashes.
1238  case $ac_val in
1239    */ )
1240      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241      eval $ac_var=\$ac_val;;
1242  esac
1243  # Be sure to have absolute directory names.
1244  case $ac_val in
1245    [\\/$]* | ?:[\\/]* )  continue;;
1246    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247  esac
1248  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249done
1250
1251# There might be people who depend on the old broken behavior: `$host'
1252# used to hold the argument of --host etc.
1253# FIXME: To remove some day.
1254build=$build_alias
1255host=$host_alias
1256target=$target_alias
1257
1258# FIXME: To remove some day.
1259if test "x$host_alias" != x; then
1260  if test "x$build_alias" = x; then
1261    cross_compiling=maybe
1262  elif test "x$build_alias" != "x$host_alias"; then
1263    cross_compiling=yes
1264  fi
1265fi
1266
1267ac_tool_prefix=
1268test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270test "$silent" = yes && exec 6>/dev/null
1271
1272
1273ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274ac_ls_di=`ls -di .` &&
1275ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276  as_fn_error $? "working directory cannot be determined"
1277test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278  as_fn_error $? "pwd does not report name of working directory"
1279
1280
1281# Find the source files, if location was not specified.
1282if test -z "$srcdir"; then
1283  ac_srcdir_defaulted=yes
1284  # Try the directory containing this script, then the parent directory.
1285  ac_confdir=`$as_dirname -- "$as_myself" ||
1286$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287	 X"$as_myself" : 'X\(//\)[^/]' \| \
1288	 X"$as_myself" : 'X\(//\)$' \| \
1289	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290$as_echo X"$as_myself" |
1291    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292	    s//\1/
1293	    q
1294	  }
1295	  /^X\(\/\/\)[^/].*/{
1296	    s//\1/
1297	    q
1298	  }
1299	  /^X\(\/\/\)$/{
1300	    s//\1/
1301	    q
1302	  }
1303	  /^X\(\/\).*/{
1304	    s//\1/
1305	    q
1306	  }
1307	  s/.*/./; q'`
1308  srcdir=$ac_confdir
1309  if test ! -r "$srcdir/$ac_unique_file"; then
1310    srcdir=..
1311  fi
1312else
1313  ac_srcdir_defaulted=no
1314fi
1315if test ! -r "$srcdir/$ac_unique_file"; then
1316  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318fi
1319ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320ac_abs_confdir=`(
1321	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322	pwd)`
1323# When building in place, set srcdir=.
1324if test "$ac_abs_confdir" = "$ac_pwd"; then
1325  srcdir=.
1326fi
1327# Remove unnecessary trailing slashes from srcdir.
1328# Double slashes in file names in object file debugging info
1329# mess up M-x gdb in Emacs.
1330case $srcdir in
1331*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332esac
1333for ac_var in $ac_precious_vars; do
1334  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335  eval ac_env_${ac_var}_value=\$${ac_var}
1336  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338done
1339
1340#
1341# Report the --help message.
1342#
1343if test "$ac_init_help" = "long"; then
1344  # Omit some internal or obsolete options to make the list less imposing.
1345  # This message is too long to be a string in the A/UX 3.1 sh.
1346  cat <<_ACEOF
1347\`configure' configures purple-facebook 0.9.6 to adapt to many kinds of systems.
1348
1349Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352VAR=VALUE.  See below for descriptions of some of the useful variables.
1353
1354Defaults for the options are specified in brackets.
1355
1356Configuration:
1357  -h, --help              display this help and exit
1358      --help=short        display options specific to this package
1359      --help=recursive    display the short help of all the included packages
1360  -V, --version           display version information and exit
1361  -q, --quiet, --silent   do not print \`checking ...' messages
1362      --cache-file=FILE   cache test results in FILE [disabled]
1363  -C, --config-cache      alias for \`--cache-file=config.cache'
1364  -n, --no-create         do not create output files
1365      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1366
1367Installation directories:
1368  --prefix=PREFIX         install architecture-independent files in PREFIX
1369                          [$ac_default_prefix]
1370  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1371                          [PREFIX]
1372
1373By default, \`make install' will install all the files in
1374\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1375an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376for instance \`--prefix=\$HOME'.
1377
1378For better control, use the options below.
1379
1380Fine tuning of the installation directories:
1381  --bindir=DIR            user executables [EPREFIX/bin]
1382  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1383  --libexecdir=DIR        program executables [EPREFIX/libexec]
1384  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1385  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1386  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1387  --libdir=DIR            object code libraries [EPREFIX/lib]
1388  --includedir=DIR        C header files [PREFIX/include]
1389  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1390  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1391  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1392  --infodir=DIR           info documentation [DATAROOTDIR/info]
1393  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1394  --mandir=DIR            man documentation [DATAROOTDIR/man]
1395  --docdir=DIR            documentation root [DATAROOTDIR/doc/purple-facebook]
1396  --htmldir=DIR           html documentation [DOCDIR]
1397  --dvidir=DIR            dvi documentation [DOCDIR]
1398  --pdfdir=DIR            pdf documentation [DOCDIR]
1399  --psdir=DIR             ps documentation [DOCDIR]
1400_ACEOF
1401
1402  cat <<\_ACEOF
1403
1404Program names:
1405  --program-prefix=PREFIX            prepend PREFIX to installed program names
1406  --program-suffix=SUFFIX            append SUFFIX to installed program names
1407  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1408
1409System types:
1410  --build=BUILD     configure for building on BUILD [guessed]
1411  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1412_ACEOF
1413fi
1414
1415if test -n "$ac_init_help"; then
1416  case $ac_init_help in
1417     short | recursive ) echo "Configuration of purple-facebook 0.9.6:";;
1418   esac
1419  cat <<\_ACEOF
1420
1421Optional Features:
1422  --disable-option-checking  ignore unrecognized --enable/--with options
1423  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1424  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1425  --enable-silent-rules   less verbose build output (undo: "make V=1")
1426  --disable-silent-rules  verbose build output (undo: "make V=0")
1427  --enable-dependency-tracking
1428                          do not reject slow dependency extractors
1429  --disable-dependency-tracking
1430                          speeds up one-time build
1431  --enable-static[=PKGS]  build static libraries [default=no]
1432  --enable-shared[=PKGS]  build shared libraries [default=yes]
1433  --enable-fast-install[=PKGS]
1434                          optimize for fast installation [default=yes]
1435  --disable-libtool-lock  avoid locking (might break parallel builds)
1436  --enable-warnings       Enable additional compile-time (GCC) warnings
1437
1438Optional Packages:
1439  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1440  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1441  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1442                          both]
1443  --with-aix-soname=aix|svr4|both
1444                          shared library versioning (aka "SONAME") variant to
1445                          provide on AIX, [default=aix].
1446  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1447  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1448                          compiler's sysroot if not specified).
1449  --with-plugindir        libpurple plugin directory
1450
1451Some influential environment variables:
1452  CC          C compiler command
1453  CFLAGS      C compiler flags
1454  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1455              nonstandard directory <lib dir>
1456  LIBS        libraries to pass to the linker, e.g. -l<library>
1457  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458              you have headers in a nonstandard directory <include dir>
1459  LT_SYS_LIBRARY_PATH
1460              User-defined run-time library search path.
1461  CPP         C preprocessor
1462  PKG_CONFIG  path to pkg-config utility
1463  PKG_CONFIG_PATH
1464              directories to add to pkg-config's search path
1465  PKG_CONFIG_LIBDIR
1466              path overriding pkg-config's built-in search path
1467  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1468  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1469  JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1470  JSON_LIBS   linker flags for JSON, overriding pkg-config
1471  PURPLE_CFLAGS
1472              C compiler flags for PURPLE, overriding pkg-config
1473  PURPLE_LIBS linker flags for PURPLE, overriding pkg-config
1474  ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1475  ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
1476  GLIB_GENMARSHAL
1477              value of glib_genmarshal for glib-2.0, overriding pkg-config
1478  PURPLE_PLUGINDIR
1479              value of plugindir for purple, overriding pkg-config
1480
1481Use these variables to override the choices made by `configure' or to help
1482it to find libraries and programs with nonstandard names/locations.
1483
1484Report bugs to <https://github.com/dequis/purple-facebook/issues>.
1485purple-facebook home page: <https://github.com/dequis/purple-facebook>.
1486_ACEOF
1487ac_status=$?
1488fi
1489
1490if test "$ac_init_help" = "recursive"; then
1491  # If there are subdirs, report their specific --help.
1492  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493    test -d "$ac_dir" ||
1494      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495      continue
1496    ac_builddir=.
1497
1498case "$ac_dir" in
1499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500*)
1501  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502  # A ".." for each directory in $ac_dir_suffix.
1503  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504  case $ac_top_builddir_sub in
1505  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507  esac ;;
1508esac
1509ac_abs_top_builddir=$ac_pwd
1510ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511# for backward compatibility:
1512ac_top_builddir=$ac_top_build_prefix
1513
1514case $srcdir in
1515  .)  # We are building in place.
1516    ac_srcdir=.
1517    ac_top_srcdir=$ac_top_builddir_sub
1518    ac_abs_top_srcdir=$ac_pwd ;;
1519  [\\/]* | ?:[\\/]* )  # Absolute name.
1520    ac_srcdir=$srcdir$ac_dir_suffix;
1521    ac_top_srcdir=$srcdir
1522    ac_abs_top_srcdir=$srcdir ;;
1523  *) # Relative name.
1524    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525    ac_top_srcdir=$ac_top_build_prefix$srcdir
1526    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527esac
1528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529
1530    cd "$ac_dir" || { ac_status=$?; continue; }
1531    # Check for guested configure.
1532    if test -f "$ac_srcdir/configure.gnu"; then
1533      echo &&
1534      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535    elif test -f "$ac_srcdir/configure"; then
1536      echo &&
1537      $SHELL "$ac_srcdir/configure" --help=recursive
1538    else
1539      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540    fi || ac_status=$?
1541    cd "$ac_pwd" || { ac_status=$?; break; }
1542  done
1543fi
1544
1545test -n "$ac_init_help" && exit $ac_status
1546if $ac_init_version; then
1547  cat <<\_ACEOF
1548purple-facebook configure 0.9.6
1549generated by GNU Autoconf 2.69
1550
1551Copyright (C) 2012 Free Software Foundation, Inc.
1552This configure script is free software; the Free Software Foundation
1553gives unlimited permission to copy, distribute and modify it.
1554_ACEOF
1555  exit
1556fi
1557
1558## ------------------------ ##
1559## Autoconf initialization. ##
1560## ------------------------ ##
1561
1562# ac_fn_c_try_compile LINENO
1563# --------------------------
1564# Try to compile conftest.$ac_ext, and return whether this succeeded.
1565ac_fn_c_try_compile ()
1566{
1567  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568  rm -f conftest.$ac_objext
1569  if { { ac_try="$ac_compile"
1570case "(($ac_try" in
1571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572  *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575$as_echo "$ac_try_echo"; } >&5
1576  (eval "$ac_compile") 2>conftest.err
1577  ac_status=$?
1578  if test -s conftest.err; then
1579    grep -v '^ *+' conftest.err >conftest.er1
1580    cat conftest.er1 >&5
1581    mv -f conftest.er1 conftest.err
1582  fi
1583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584  test $ac_status = 0; } && {
1585	 test -z "$ac_c_werror_flag" ||
1586	 test ! -s conftest.err
1587       } && test -s conftest.$ac_objext; then :
1588  ac_retval=0
1589else
1590  $as_echo "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
1593	ac_retval=1
1594fi
1595  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596  as_fn_set_status $ac_retval
1597
1598} # ac_fn_c_try_compile
1599
1600# ac_fn_c_try_link LINENO
1601# -----------------------
1602# Try to link conftest.$ac_ext, and return whether this succeeded.
1603ac_fn_c_try_link ()
1604{
1605  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606  rm -f conftest.$ac_objext conftest$ac_exeext
1607  if { { ac_try="$ac_link"
1608case "(($ac_try" in
1609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610  *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613$as_echo "$ac_try_echo"; } >&5
1614  (eval "$ac_link") 2>conftest.err
1615  ac_status=$?
1616  if test -s conftest.err; then
1617    grep -v '^ *+' conftest.err >conftest.er1
1618    cat conftest.er1 >&5
1619    mv -f conftest.er1 conftest.err
1620  fi
1621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622  test $ac_status = 0; } && {
1623	 test -z "$ac_c_werror_flag" ||
1624	 test ! -s conftest.err
1625       } && test -s conftest$ac_exeext && {
1626	 test "$cross_compiling" = yes ||
1627	 test -x conftest$ac_exeext
1628       }; then :
1629  ac_retval=0
1630else
1631  $as_echo "$as_me: failed program was:" >&5
1632sed 's/^/| /' conftest.$ac_ext >&5
1633
1634	ac_retval=1
1635fi
1636  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1637  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1638  # interfere with the next link command; also delete a directory that is
1639  # left behind by Apple's compiler.  We do this before executing the actions.
1640  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1641  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642  as_fn_set_status $ac_retval
1643
1644} # ac_fn_c_try_link
1645
1646# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1647# -------------------------------------------------------
1648# Tests whether HEADER exists and can be compiled using the include files in
1649# INCLUDES, setting the cache variable VAR accordingly.
1650ac_fn_c_check_header_compile ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654$as_echo_n "checking for $2... " >&6; }
1655if eval \${$3+:} false; then :
1656  $as_echo_n "(cached) " >&6
1657else
1658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659/* end confdefs.h.  */
1660$4
1661#include <$2>
1662_ACEOF
1663if ac_fn_c_try_compile "$LINENO"; then :
1664  eval "$3=yes"
1665else
1666  eval "$3=no"
1667fi
1668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669fi
1670eval ac_res=\$$3
1671	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672$as_echo "$ac_res" >&6; }
1673  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674
1675} # ac_fn_c_check_header_compile
1676
1677# ac_fn_c_try_cpp LINENO
1678# ----------------------
1679# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1680ac_fn_c_try_cpp ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
1691  ac_status=$?
1692  if test -s conftest.err; then
1693    grep -v '^ *+' conftest.err >conftest.er1
1694    cat conftest.er1 >&5
1695    mv -f conftest.er1 conftest.err
1696  fi
1697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698  test $ac_status = 0; } > conftest.i && {
1699	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1700	 test ! -s conftest.err
1701       }; then :
1702  ac_retval=0
1703else
1704  $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707    ac_retval=1
1708fi
1709  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710  as_fn_set_status $ac_retval
1711
1712} # ac_fn_c_try_cpp
1713
1714# ac_fn_c_try_run LINENO
1715# ----------------------
1716# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1717# that executables *can* be run.
1718ac_fn_c_try_run ()
1719{
1720  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721  if { { ac_try="$ac_link"
1722case "(($ac_try" in
1723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724  *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728  (eval "$ac_link") 2>&5
1729  ac_status=$?
1730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732  { { case "(($ac_try" in
1733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734  *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738  (eval "$ac_try") 2>&5
1739  ac_status=$?
1740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741  test $ac_status = 0; }; }; then :
1742  ac_retval=0
1743else
1744  $as_echo "$as_me: program exited with status $ac_status" >&5
1745       $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748       ac_retval=$ac_status
1749fi
1750  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752  as_fn_set_status $ac_retval
1753
1754} # ac_fn_c_try_run
1755
1756# ac_fn_c_check_func LINENO FUNC VAR
1757# ----------------------------------
1758# Tests whether FUNC exists, setting the cache variable VAR accordingly
1759ac_fn_c_check_func ()
1760{
1761  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763$as_echo_n "checking for $2... " >&6; }
1764if eval \${$3+:} false; then :
1765  $as_echo_n "(cached) " >&6
1766else
1767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768/* end confdefs.h.  */
1769/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1770   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1771#define $2 innocuous_$2
1772
1773/* System header to define __stub macros and hopefully few prototypes,
1774    which can conflict with char $2 (); below.
1775    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1776    <limits.h> exists even on freestanding compilers.  */
1777
1778#ifdef __STDC__
1779# include <limits.h>
1780#else
1781# include <assert.h>
1782#endif
1783
1784#undef $2
1785
1786/* Override any GCC internal prototype to avoid an error.
1787   Use char because int might match the return type of a GCC
1788   builtin and then its argument prototype would still apply.  */
1789#ifdef __cplusplus
1790extern "C"
1791#endif
1792char $2 ();
1793/* The GNU C library defines this for functions which it implements
1794    to always fail with ENOSYS.  Some functions are actually named
1795    something starting with __ and the normal name is an alias.  */
1796#if defined __stub_$2 || defined __stub___$2
1797choke me
1798#endif
1799
1800int
1801main ()
1802{
1803return $2 ();
1804  ;
1805  return 0;
1806}
1807_ACEOF
1808if ac_fn_c_try_link "$LINENO"; then :
1809  eval "$3=yes"
1810else
1811  eval "$3=no"
1812fi
1813rm -f core conftest.err conftest.$ac_objext \
1814    conftest$ac_exeext conftest.$ac_ext
1815fi
1816eval ac_res=\$$3
1817	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818$as_echo "$ac_res" >&6; }
1819  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820
1821} # ac_fn_c_check_func
1822cat >config.log <<_ACEOF
1823This file contains any messages produced by compilers while
1824running configure, to aid debugging if configure makes a mistake.
1825
1826It was created by purple-facebook $as_me 0.9.6, which was
1827generated by GNU Autoconf 2.69.  Invocation command line was
1828
1829  $ $0 $@
1830
1831_ACEOF
1832exec 5>>config.log
1833{
1834cat <<_ASUNAME
1835## --------- ##
1836## Platform. ##
1837## --------- ##
1838
1839hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1840uname -m = `(uname -m) 2>/dev/null || echo unknown`
1841uname -r = `(uname -r) 2>/dev/null || echo unknown`
1842uname -s = `(uname -s) 2>/dev/null || echo unknown`
1843uname -v = `(uname -v) 2>/dev/null || echo unknown`
1844
1845/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1846/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1847
1848/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1849/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1850/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1851/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1852/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1853/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1854/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1855
1856_ASUNAME
1857
1858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859for as_dir in $PATH
1860do
1861  IFS=$as_save_IFS
1862  test -z "$as_dir" && as_dir=.
1863    $as_echo "PATH: $as_dir"
1864  done
1865IFS=$as_save_IFS
1866
1867} >&5
1868
1869cat >&5 <<_ACEOF
1870
1871
1872## ----------- ##
1873## Core tests. ##
1874## ----------- ##
1875
1876_ACEOF
1877
1878
1879# Keep a trace of the command line.
1880# Strip out --no-create and --no-recursion so they do not pile up.
1881# Strip out --silent because we don't want to record it for future runs.
1882# Also quote any args containing shell meta-characters.
1883# Make two passes to allow for proper duplicate-argument suppression.
1884ac_configure_args=
1885ac_configure_args0=
1886ac_configure_args1=
1887ac_must_keep_next=false
1888for ac_pass in 1 2
1889do
1890  for ac_arg
1891  do
1892    case $ac_arg in
1893    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1894    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1895    | -silent | --silent | --silen | --sile | --sil)
1896      continue ;;
1897    *\'*)
1898      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1899    esac
1900    case $ac_pass in
1901    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1902    2)
1903      as_fn_append ac_configure_args1 " '$ac_arg'"
1904      if test $ac_must_keep_next = true; then
1905	ac_must_keep_next=false # Got value, back to normal.
1906      else
1907	case $ac_arg in
1908	  *=* | --config-cache | -C | -disable-* | --disable-* \
1909	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1910	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1911	  | -with-* | --with-* | -without-* | --without-* | --x)
1912	    case "$ac_configure_args0 " in
1913	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1914	    esac
1915	    ;;
1916	  -* ) ac_must_keep_next=true ;;
1917	esac
1918      fi
1919      as_fn_append ac_configure_args " '$ac_arg'"
1920      ;;
1921    esac
1922  done
1923done
1924{ ac_configure_args0=; unset ac_configure_args0;}
1925{ ac_configure_args1=; unset ac_configure_args1;}
1926
1927# When interrupted or exit'd, cleanup temporary files, and complete
1928# config.log.  We remove comments because anyway the quotes in there
1929# would cause problems or look ugly.
1930# WARNING: Use '\'' to represent an apostrophe within the trap.
1931# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1932trap 'exit_status=$?
1933  # Save into config.log some information that might help in debugging.
1934  {
1935    echo
1936
1937    $as_echo "## ---------------- ##
1938## Cache variables. ##
1939## ---------------- ##"
1940    echo
1941    # The following way of writing the cache mishandles newlines in values,
1942(
1943  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1944    eval ac_val=\$$ac_var
1945    case $ac_val in #(
1946    *${as_nl}*)
1947      case $ac_var in #(
1948      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1949$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1950      esac
1951      case $ac_var in #(
1952      _ | IFS | as_nl) ;; #(
1953      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1954      *) { eval $ac_var=; unset $ac_var;} ;;
1955      esac ;;
1956    esac
1957  done
1958  (set) 2>&1 |
1959    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1960    *${as_nl}ac_space=\ *)
1961      sed -n \
1962	"s/'\''/'\''\\\\'\'''\''/g;
1963	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1964      ;; #(
1965    *)
1966      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1967      ;;
1968    esac |
1969    sort
1970)
1971    echo
1972
1973    $as_echo "## ----------------- ##
1974## Output variables. ##
1975## ----------------- ##"
1976    echo
1977    for ac_var in $ac_subst_vars
1978    do
1979      eval ac_val=\$$ac_var
1980      case $ac_val in
1981      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1982      esac
1983      $as_echo "$ac_var='\''$ac_val'\''"
1984    done | sort
1985    echo
1986
1987    if test -n "$ac_subst_files"; then
1988      $as_echo "## ------------------- ##
1989## File substitutions. ##
1990## ------------------- ##"
1991      echo
1992      for ac_var in $ac_subst_files
1993      do
1994	eval ac_val=\$$ac_var
1995	case $ac_val in
1996	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997	esac
1998	$as_echo "$ac_var='\''$ac_val'\''"
1999      done | sort
2000      echo
2001    fi
2002
2003    if test -s confdefs.h; then
2004      $as_echo "## ----------- ##
2005## confdefs.h. ##
2006## ----------- ##"
2007      echo
2008      cat confdefs.h
2009      echo
2010    fi
2011    test "$ac_signal" != 0 &&
2012      $as_echo "$as_me: caught signal $ac_signal"
2013    $as_echo "$as_me: exit $exit_status"
2014  } >&5
2015  rm -f core *.core core.conftest.* &&
2016    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2017    exit $exit_status
2018' 0
2019for ac_signal in 1 2 13 15; do
2020  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2021done
2022ac_signal=0
2023
2024# confdefs.h avoids OS command line length limits that DEFS can exceed.
2025rm -f -r conftest* confdefs.h
2026
2027$as_echo "/* confdefs.h */" > confdefs.h
2028
2029# Predefined preprocessor variables.
2030
2031cat >>confdefs.h <<_ACEOF
2032#define PACKAGE_NAME "$PACKAGE_NAME"
2033_ACEOF
2034
2035cat >>confdefs.h <<_ACEOF
2036#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2037_ACEOF
2038
2039cat >>confdefs.h <<_ACEOF
2040#define PACKAGE_VERSION "$PACKAGE_VERSION"
2041_ACEOF
2042
2043cat >>confdefs.h <<_ACEOF
2044#define PACKAGE_STRING "$PACKAGE_STRING"
2045_ACEOF
2046
2047cat >>confdefs.h <<_ACEOF
2048#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2049_ACEOF
2050
2051cat >>confdefs.h <<_ACEOF
2052#define PACKAGE_URL "$PACKAGE_URL"
2053_ACEOF
2054
2055
2056# Let the site file select an alternate cache file if it wants to.
2057# Prefer an explicitly selected file to automatically selected ones.
2058ac_site_file1=NONE
2059ac_site_file2=NONE
2060if test -n "$CONFIG_SITE"; then
2061  # We do not want a PATH search for config.site.
2062  case $CONFIG_SITE in #((
2063    -*)  ac_site_file1=./$CONFIG_SITE;;
2064    */*) ac_site_file1=$CONFIG_SITE;;
2065    *)   ac_site_file1=./$CONFIG_SITE;;
2066  esac
2067elif test "x$prefix" != xNONE; then
2068  ac_site_file1=$prefix/share/config.site
2069  ac_site_file2=$prefix/etc/config.site
2070else
2071  ac_site_file1=$ac_default_prefix/share/config.site
2072  ac_site_file2=$ac_default_prefix/etc/config.site
2073fi
2074for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2075do
2076  test "x$ac_site_file" = xNONE && continue
2077  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2078    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2079$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2080    sed 's/^/| /' "$ac_site_file" >&5
2081    . "$ac_site_file" \
2082      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2084as_fn_error $? "failed to load site script $ac_site_file
2085See \`config.log' for more details" "$LINENO" 5; }
2086  fi
2087done
2088
2089if test -r "$cache_file"; then
2090  # Some versions of bash will fail to source /dev/null (special files
2091  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2092  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2093    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2094$as_echo "$as_me: loading cache $cache_file" >&6;}
2095    case $cache_file in
2096      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2097      *)                      . "./$cache_file";;
2098    esac
2099  fi
2100else
2101  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2102$as_echo "$as_me: creating cache $cache_file" >&6;}
2103  >$cache_file
2104fi
2105
2106# Check that the precious variables saved in the cache have kept the same
2107# value.
2108ac_cache_corrupted=false
2109for ac_var in $ac_precious_vars; do
2110  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2111  eval ac_new_set=\$ac_env_${ac_var}_set
2112  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2113  eval ac_new_val=\$ac_env_${ac_var}_value
2114  case $ac_old_set,$ac_new_set in
2115    set,)
2116      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2117$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2118      ac_cache_corrupted=: ;;
2119    ,set)
2120      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2121$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2122      ac_cache_corrupted=: ;;
2123    ,);;
2124    *)
2125      if test "x$ac_old_val" != "x$ac_new_val"; then
2126	# differences in whitespace do not lead to failure.
2127	ac_old_val_w=`echo x $ac_old_val`
2128	ac_new_val_w=`echo x $ac_new_val`
2129	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2130	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2131$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2132	  ac_cache_corrupted=:
2133	else
2134	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2135$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2136	  eval $ac_var=\$ac_old_val
2137	fi
2138	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2139$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2140	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2141$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2142      fi;;
2143  esac
2144  # Pass precious variables to config.status.
2145  if test "$ac_new_set" = set; then
2146    case $ac_new_val in
2147    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2148    *) ac_arg=$ac_var=$ac_new_val ;;
2149    esac
2150    case " $ac_configure_args " in
2151      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2152      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2153    esac
2154  fi
2155done
2156if $ac_cache_corrupted; then
2157  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2159  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2160$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2161  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2162fi
2163## -------------------- ##
2164## Main body of script. ##
2165## -------------------- ##
2166
2167ac_ext=c
2168ac_cpp='$CPP $CPPFLAGS'
2169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2171ac_compiler_gnu=$ac_cv_c_compiler_gnu
2172
2173
2174
2175ac_aux_dir=
2176for ac_dir in build-aux "$srcdir"/build-aux; do
2177  if test -f "$ac_dir/install-sh"; then
2178    ac_aux_dir=$ac_dir
2179    ac_install_sh="$ac_aux_dir/install-sh -c"
2180    break
2181  elif test -f "$ac_dir/install.sh"; then
2182    ac_aux_dir=$ac_dir
2183    ac_install_sh="$ac_aux_dir/install.sh -c"
2184    break
2185  elif test -f "$ac_dir/shtool"; then
2186    ac_aux_dir=$ac_dir
2187    ac_install_sh="$ac_aux_dir/shtool install -c"
2188    break
2189  fi
2190done
2191if test -z "$ac_aux_dir"; then
2192  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2193fi
2194
2195# These three variables are undocumented and unsupported,
2196# and are intended to be withdrawn in a future Autoconf release.
2197# They can cause serious problems if a builder's source tree is in a directory
2198# whose full name contains unusual characters.
2199ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2200ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2201ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2202
2203
2204
2205am__api_version='1.16'
2206
2207# Find a good install program.  We prefer a C program (faster),
2208# so one script is as good as another.  But avoid the broken or
2209# incompatible versions:
2210# SysV /etc/install, /usr/sbin/install
2211# SunOS /usr/etc/install
2212# IRIX /sbin/install
2213# AIX /bin/install
2214# AmigaOS /C/install, which installs bootblocks on floppy discs
2215# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2216# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2217# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2218# OS/2's system install, which has a completely different semantic
2219# ./install, which can be erroneously created by make from ./install.sh.
2220# Reject install programs that cannot install multiple files.
2221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2222$as_echo_n "checking for a BSD-compatible install... " >&6; }
2223if test -z "$INSTALL"; then
2224if ${ac_cv_path_install+:} false; then :
2225  $as_echo_n "(cached) " >&6
2226else
2227  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228for as_dir in $PATH
2229do
2230  IFS=$as_save_IFS
2231  test -z "$as_dir" && as_dir=.
2232    # Account for people who put trailing slashes in PATH elements.
2233case $as_dir/ in #((
2234  ./ | .// | /[cC]/* | \
2235  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2236  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2237  /usr/ucb/* ) ;;
2238  *)
2239    # OSF1 and SCO ODT 3.0 have their own names for install.
2240    # Don't use installbsd from OSF since it installs stuff as root
2241    # by default.
2242    for ac_prog in ginstall scoinst install; do
2243      for ac_exec_ext in '' $ac_executable_extensions; do
2244	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2245	  if test $ac_prog = install &&
2246	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2247	    # AIX install.  It has an incompatible calling convention.
2248	    :
2249	  elif test $ac_prog = install &&
2250	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2251	    # program-specific install script used by HP pwplus--don't use.
2252	    :
2253	  else
2254	    rm -rf conftest.one conftest.two conftest.dir
2255	    echo one > conftest.one
2256	    echo two > conftest.two
2257	    mkdir conftest.dir
2258	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2259	      test -s conftest.one && test -s conftest.two &&
2260	      test -s conftest.dir/conftest.one &&
2261	      test -s conftest.dir/conftest.two
2262	    then
2263	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2264	      break 3
2265	    fi
2266	  fi
2267	fi
2268      done
2269    done
2270    ;;
2271esac
2272
2273  done
2274IFS=$as_save_IFS
2275
2276rm -rf conftest.one conftest.two conftest.dir
2277
2278fi
2279  if test "${ac_cv_path_install+set}" = set; then
2280    INSTALL=$ac_cv_path_install
2281  else
2282    # As a last resort, use the slow shell script.  Don't cache a
2283    # value for INSTALL within a source directory, because that will
2284    # break other packages using the cache if that directory is
2285    # removed, or if the value is a relative name.
2286    INSTALL=$ac_install_sh
2287  fi
2288fi
2289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2290$as_echo "$INSTALL" >&6; }
2291
2292# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2293# It thinks the first close brace ends the variable substitution.
2294test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2295
2296test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2297
2298test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2299
2300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2301$as_echo_n "checking whether build environment is sane... " >&6; }
2302# Reject unsafe characters in $srcdir or the absolute working directory
2303# name.  Accept space and tab only in the latter.
2304am_lf='
2305'
2306case `pwd` in
2307  *[\\\"\#\$\&\'\`$am_lf]*)
2308    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2309esac
2310case $srcdir in
2311  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2312    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2313esac
2314
2315# Do 'set' in a subshell so we don't clobber the current shell's
2316# arguments.  Must try -L first in case configure is actually a
2317# symlink; some systems play weird games with the mod time of symlinks
2318# (eg FreeBSD returns the mod time of the symlink's containing
2319# directory).
2320if (
2321   am_has_slept=no
2322   for am_try in 1 2; do
2323     echo "timestamp, slept: $am_has_slept" > conftest.file
2324     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2325     if test "$*" = "X"; then
2326	# -L didn't work.
2327	set X `ls -t "$srcdir/configure" conftest.file`
2328     fi
2329     if test "$*" != "X $srcdir/configure conftest.file" \
2330	&& test "$*" != "X conftest.file $srcdir/configure"; then
2331
2332	# If neither matched, then we have a broken ls.  This can happen
2333	# if, for instance, CONFIG_SHELL is bash and it inherits a
2334	# broken ls alias from the environment.  This has actually
2335	# happened.  Such a system could not be considered "sane".
2336	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2337  alias in your environment" "$LINENO" 5
2338     fi
2339     if test "$2" = conftest.file || test $am_try -eq 2; then
2340       break
2341     fi
2342     # Just in case.
2343     sleep 1
2344     am_has_slept=yes
2345   done
2346   test "$2" = conftest.file
2347   )
2348then
2349   # Ok.
2350   :
2351else
2352   as_fn_error $? "newly created file is older than distributed files!
2353Check your system clock" "$LINENO" 5
2354fi
2355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2356$as_echo "yes" >&6; }
2357# If we didn't sleep, we still need to ensure time stamps of config.status and
2358# generated files are strictly newer.
2359am_sleep_pid=
2360if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2361  ( sleep 1 ) &
2362  am_sleep_pid=$!
2363fi
2364
2365rm -f conftest.file
2366
2367test "$program_prefix" != NONE &&
2368  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2369# Use a double $ so make ignores it.
2370test "$program_suffix" != NONE &&
2371  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2372# Double any \ or $.
2373# By default was `s,x,x', remove it if useless.
2374ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2375program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2376
2377# Expand $ac_aux_dir to an absolute path.
2378am_aux_dir=`cd "$ac_aux_dir" && pwd`
2379
2380if test x"${MISSING+set}" != xset; then
2381  case $am_aux_dir in
2382  *\ * | *\	*)
2383    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2384  *)
2385    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2386  esac
2387fi
2388# Use eval to expand $SHELL
2389if eval "$MISSING --is-lightweight"; then
2390  am_missing_run="$MISSING "
2391else
2392  am_missing_run=
2393  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2394$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2395fi
2396
2397if test x"${install_sh+set}" != xset; then
2398  case $am_aux_dir in
2399  *\ * | *\	*)
2400    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2401  *)
2402    install_sh="\${SHELL} $am_aux_dir/install-sh"
2403  esac
2404fi
2405
2406# Installed binaries are usually stripped using 'strip' when the user
2407# run "make install-strip".  However 'strip' might not be the right
2408# tool to use in cross-compilation environments, therefore Automake
2409# will honor the 'STRIP' environment variable to overrule this program.
2410if test "$cross_compiling" != no; then
2411  if test -n "$ac_tool_prefix"; then
2412  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2413set dummy ${ac_tool_prefix}strip; ac_word=$2
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415$as_echo_n "checking for $ac_word... " >&6; }
2416if ${ac_cv_prog_STRIP+:} false; then :
2417  $as_echo_n "(cached) " >&6
2418else
2419  if test -n "$STRIP"; then
2420  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2421else
2422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423for as_dir in $PATH
2424do
2425  IFS=$as_save_IFS
2426  test -z "$as_dir" && as_dir=.
2427    for ac_exec_ext in '' $ac_executable_extensions; do
2428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2429    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2431    break 2
2432  fi
2433done
2434  done
2435IFS=$as_save_IFS
2436
2437fi
2438fi
2439STRIP=$ac_cv_prog_STRIP
2440if test -n "$STRIP"; then
2441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2442$as_echo "$STRIP" >&6; }
2443else
2444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445$as_echo "no" >&6; }
2446fi
2447
2448
2449fi
2450if test -z "$ac_cv_prog_STRIP"; then
2451  ac_ct_STRIP=$STRIP
2452  # Extract the first word of "strip", so it can be a program name with args.
2453set dummy strip; ac_word=$2
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455$as_echo_n "checking for $ac_word... " >&6; }
2456if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2457  $as_echo_n "(cached) " >&6
2458else
2459  if test -n "$ac_ct_STRIP"; then
2460  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2461else
2462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463for as_dir in $PATH
2464do
2465  IFS=$as_save_IFS
2466  test -z "$as_dir" && as_dir=.
2467    for ac_exec_ext in '' $ac_executable_extensions; do
2468  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2469    ac_cv_prog_ac_ct_STRIP="strip"
2470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2471    break 2
2472  fi
2473done
2474  done
2475IFS=$as_save_IFS
2476
2477fi
2478fi
2479ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2480if test -n "$ac_ct_STRIP"; then
2481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2482$as_echo "$ac_ct_STRIP" >&6; }
2483else
2484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485$as_echo "no" >&6; }
2486fi
2487
2488  if test "x$ac_ct_STRIP" = x; then
2489    STRIP=":"
2490  else
2491    case $cross_compiling:$ac_tool_warned in
2492yes:)
2493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2495ac_tool_warned=yes ;;
2496esac
2497    STRIP=$ac_ct_STRIP
2498  fi
2499else
2500  STRIP="$ac_cv_prog_STRIP"
2501fi
2502
2503fi
2504INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2505
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2507$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2508if test -z "$MKDIR_P"; then
2509  if ${ac_cv_path_mkdir+:} false; then :
2510  $as_echo_n "(cached) " >&6
2511else
2512  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2514do
2515  IFS=$as_save_IFS
2516  test -z "$as_dir" && as_dir=.
2517    for ac_prog in mkdir gmkdir; do
2518	 for ac_exec_ext in '' $ac_executable_extensions; do
2519	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2520	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2521	     'mkdir (GNU coreutils) '* | \
2522	     'mkdir (coreutils) '* | \
2523	     'mkdir (fileutils) '4.1*)
2524	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2525	       break 3;;
2526	   esac
2527	 done
2528       done
2529  done
2530IFS=$as_save_IFS
2531
2532fi
2533
2534  test -d ./--version && rmdir ./--version
2535  if test "${ac_cv_path_mkdir+set}" = set; then
2536    MKDIR_P="$ac_cv_path_mkdir -p"
2537  else
2538    # As a last resort, use the slow shell script.  Don't cache a
2539    # value for MKDIR_P within a source directory, because that will
2540    # break other packages using the cache if that directory is
2541    # removed, or if the value is a relative name.
2542    MKDIR_P="$ac_install_sh -d"
2543  fi
2544fi
2545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2546$as_echo "$MKDIR_P" >&6; }
2547
2548for ac_prog in gawk mawk nawk awk
2549do
2550  # Extract the first word of "$ac_prog", so it can be a program name with args.
2551set dummy $ac_prog; ac_word=$2
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2553$as_echo_n "checking for $ac_word... " >&6; }
2554if ${ac_cv_prog_AWK+:} false; then :
2555  $as_echo_n "(cached) " >&6
2556else
2557  if test -n "$AWK"; then
2558  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2559else
2560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561for as_dir in $PATH
2562do
2563  IFS=$as_save_IFS
2564  test -z "$as_dir" && as_dir=.
2565    for ac_exec_ext in '' $ac_executable_extensions; do
2566  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2567    ac_cv_prog_AWK="$ac_prog"
2568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569    break 2
2570  fi
2571done
2572  done
2573IFS=$as_save_IFS
2574
2575fi
2576fi
2577AWK=$ac_cv_prog_AWK
2578if test -n "$AWK"; then
2579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2580$as_echo "$AWK" >&6; }
2581else
2582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583$as_echo "no" >&6; }
2584fi
2585
2586
2587  test -n "$AWK" && break
2588done
2589
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2591$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2592set x ${MAKE-make}
2593ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2594if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2595  $as_echo_n "(cached) " >&6
2596else
2597  cat >conftest.make <<\_ACEOF
2598SHELL = /bin/sh
2599all:
2600	@echo '@@@%%%=$(MAKE)=@@@%%%'
2601_ACEOF
2602# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2603case `${MAKE-make} -f conftest.make 2>/dev/null` in
2604  *@@@%%%=?*=@@@%%%*)
2605    eval ac_cv_prog_make_${ac_make}_set=yes;;
2606  *)
2607    eval ac_cv_prog_make_${ac_make}_set=no;;
2608esac
2609rm -f conftest.make
2610fi
2611if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2613$as_echo "yes" >&6; }
2614  SET_MAKE=
2615else
2616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617$as_echo "no" >&6; }
2618  SET_MAKE="MAKE=${MAKE-make}"
2619fi
2620
2621rm -rf .tst 2>/dev/null
2622mkdir .tst 2>/dev/null
2623if test -d .tst; then
2624  am__leading_dot=.
2625else
2626  am__leading_dot=_
2627fi
2628rmdir .tst 2>/dev/null
2629
2630# Check whether --enable-silent-rules was given.
2631if test "${enable_silent_rules+set}" = set; then :
2632  enableval=$enable_silent_rules;
2633fi
2634
2635case $enable_silent_rules in # (((
2636  yes) AM_DEFAULT_VERBOSITY=0;;
2637   no) AM_DEFAULT_VERBOSITY=1;;
2638    *) AM_DEFAULT_VERBOSITY=1;;
2639esac
2640am_make=${MAKE-make}
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2642$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2643if ${am_cv_make_support_nested_variables+:} false; then :
2644  $as_echo_n "(cached) " >&6
2645else
2646  if $as_echo 'TRUE=$(BAR$(V))
2647BAR0=false
2648BAR1=true
2649V=1
2650am__doit:
2651	@$(TRUE)
2652.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2653  am_cv_make_support_nested_variables=yes
2654else
2655  am_cv_make_support_nested_variables=no
2656fi
2657fi
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2659$as_echo "$am_cv_make_support_nested_variables" >&6; }
2660if test $am_cv_make_support_nested_variables = yes; then
2661    AM_V='$(V)'
2662  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2663else
2664  AM_V=$AM_DEFAULT_VERBOSITY
2665  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2666fi
2667AM_BACKSLASH='\'
2668
2669if test "`cd $srcdir && pwd`" != "`pwd`"; then
2670  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2671  # is not polluted with repeated "-I."
2672  am__isrc=' -I$(srcdir)'
2673  # test to see if srcdir already configured
2674  if test -f $srcdir/config.status; then
2675    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2676  fi
2677fi
2678
2679# test whether we have cygpath
2680if test -z "$CYGPATH_W"; then
2681  if (cygpath --version) >/dev/null 2>/dev/null; then
2682    CYGPATH_W='cygpath -w'
2683  else
2684    CYGPATH_W=echo
2685  fi
2686fi
2687
2688
2689# Define the identity of the package.
2690 PACKAGE='purple-facebook'
2691 VERSION='0.9.6'
2692
2693
2694cat >>confdefs.h <<_ACEOF
2695#define PACKAGE "$PACKAGE"
2696_ACEOF
2697
2698
2699cat >>confdefs.h <<_ACEOF
2700#define VERSION "$VERSION"
2701_ACEOF
2702
2703# Some tools Automake needs.
2704
2705ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2706
2707
2708AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2709
2710
2711AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2712
2713
2714AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2715
2716
2717MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2718
2719# For better backward compatibility.  To be removed once Automake 1.9.x
2720# dies out for good.  For more background, see:
2721# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2722# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2723mkdir_p='$(MKDIR_P)'
2724
2725# We need awk for the "check" target (and possibly the TAP driver).  The
2726# system "awk" is bad on some platforms.
2727# Always define AMTAR for backward compatibility.  Yes, it's still used
2728# in the wild :-(  We should find a proper way to deprecate it ...
2729AMTAR='$${TAR-tar}'
2730
2731
2732# We'll loop over all known methods to create a tar archive until one works.
2733_am_tools='gnutar  pax cpio none'
2734
2735am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2736
2737
2738
2739
2740
2741
2742# POSIX will say in a future version that running "rm -f" with no argument
2743# is OK; and we want to be able to make that assumption in our Makefile
2744# recipes.  So use an aggressive probe to check that the usage we want is
2745# actually supported "in the wild" to an acceptable degree.
2746# See automake bug#10828.
2747# To make any issue more visible, cause the running configure to be aborted
2748# by default if the 'rm' program in use doesn't match our expectations; the
2749# user can still override this though.
2750if rm -f && rm -fr && rm -rf; then : OK; else
2751  cat >&2 <<'END'
2752Oops!
2753
2754Your 'rm' program seems unable to run without file operands specified
2755on the command line, even when the '-f' option is present.  This is contrary
2756to the behaviour of most rm programs out there, and not conforming with
2757the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2758
2759Please tell bug-automake@gnu.org about your system, including the value
2760of your $PATH and any error possibly output before this message.  This
2761can help us improve future automake versions.
2762
2763END
2764  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2765    echo 'Configuration will proceed anyway, since you have set the' >&2
2766    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2767    echo >&2
2768  else
2769    cat >&2 <<'END'
2770Aborting the configuration process, to ensure you take notice of the issue.
2771
2772You can download and install GNU coreutils to get an 'rm' implementation
2773that behaves properly: <https://www.gnu.org/software/coreutils/>.
2774
2775If you want to complete the configuration process using your problematic
2776'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2777to "yes", and re-run configure.
2778
2779END
2780    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2781  fi
2782fi
2783
2784
2785ac_ext=c
2786ac_cpp='$CPP $CPPFLAGS'
2787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2789ac_compiler_gnu=$ac_cv_c_compiler_gnu
2790if test -n "$ac_tool_prefix"; then
2791  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2792set dummy ${ac_tool_prefix}gcc; ac_word=$2
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794$as_echo_n "checking for $ac_word... " >&6; }
2795if ${ac_cv_prog_CC+:} false; then :
2796  $as_echo_n "(cached) " >&6
2797else
2798  if test -n "$CC"; then
2799  ac_cv_prog_CC="$CC" # Let the user override the test.
2800else
2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802for as_dir in $PATH
2803do
2804  IFS=$as_save_IFS
2805  test -z "$as_dir" && as_dir=.
2806    for ac_exec_ext in '' $ac_executable_extensions; do
2807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810    break 2
2811  fi
2812done
2813  done
2814IFS=$as_save_IFS
2815
2816fi
2817fi
2818CC=$ac_cv_prog_CC
2819if test -n "$CC"; then
2820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2821$as_echo "$CC" >&6; }
2822else
2823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824$as_echo "no" >&6; }
2825fi
2826
2827
2828fi
2829if test -z "$ac_cv_prog_CC"; then
2830  ac_ct_CC=$CC
2831  # Extract the first word of "gcc", so it can be a program name with args.
2832set dummy gcc; ac_word=$2
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834$as_echo_n "checking for $ac_word... " >&6; }
2835if ${ac_cv_prog_ac_ct_CC+:} false; then :
2836  $as_echo_n "(cached) " >&6
2837else
2838  if test -n "$ac_ct_CC"; then
2839  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2840else
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844  IFS=$as_save_IFS
2845  test -z "$as_dir" && as_dir=.
2846    for ac_exec_ext in '' $ac_executable_extensions; do
2847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848    ac_cv_prog_ac_ct_CC="gcc"
2849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850    break 2
2851  fi
2852done
2853  done
2854IFS=$as_save_IFS
2855
2856fi
2857fi
2858ac_ct_CC=$ac_cv_prog_ac_ct_CC
2859if test -n "$ac_ct_CC"; then
2860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2861$as_echo "$ac_ct_CC" >&6; }
2862else
2863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864$as_echo "no" >&6; }
2865fi
2866
2867  if test "x$ac_ct_CC" = x; then
2868    CC=""
2869  else
2870    case $cross_compiling:$ac_tool_warned in
2871yes:)
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2874ac_tool_warned=yes ;;
2875esac
2876    CC=$ac_ct_CC
2877  fi
2878else
2879  CC="$ac_cv_prog_CC"
2880fi
2881
2882if test -z "$CC"; then
2883          if test -n "$ac_tool_prefix"; then
2884    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2885set dummy ${ac_tool_prefix}cc; ac_word=$2
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887$as_echo_n "checking for $ac_word... " >&6; }
2888if ${ac_cv_prog_CC+:} false; then :
2889  $as_echo_n "(cached) " >&6
2890else
2891  if test -n "$CC"; then
2892  ac_cv_prog_CC="$CC" # Let the user override the test.
2893else
2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895for as_dir in $PATH
2896do
2897  IFS=$as_save_IFS
2898  test -z "$as_dir" && as_dir=.
2899    for ac_exec_ext in '' $ac_executable_extensions; do
2900  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901    ac_cv_prog_CC="${ac_tool_prefix}cc"
2902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903    break 2
2904  fi
2905done
2906  done
2907IFS=$as_save_IFS
2908
2909fi
2910fi
2911CC=$ac_cv_prog_CC
2912if test -n "$CC"; then
2913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2914$as_echo "$CC" >&6; }
2915else
2916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917$as_echo "no" >&6; }
2918fi
2919
2920
2921  fi
2922fi
2923if test -z "$CC"; then
2924  # Extract the first word of "cc", so it can be a program name with args.
2925set dummy cc; ac_word=$2
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927$as_echo_n "checking for $ac_word... " >&6; }
2928if ${ac_cv_prog_CC+:} false; then :
2929  $as_echo_n "(cached) " >&6
2930else
2931  if test -n "$CC"; then
2932  ac_cv_prog_CC="$CC" # Let the user override the test.
2933else
2934  ac_prog_rejected=no
2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936for as_dir in $PATH
2937do
2938  IFS=$as_save_IFS
2939  test -z "$as_dir" && as_dir=.
2940    for ac_exec_ext in '' $ac_executable_extensions; do
2941  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2942    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2943       ac_prog_rejected=yes
2944       continue
2945     fi
2946    ac_cv_prog_CC="cc"
2947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948    break 2
2949  fi
2950done
2951  done
2952IFS=$as_save_IFS
2953
2954if test $ac_prog_rejected = yes; then
2955  # We found a bogon in the path, so make sure we never use it.
2956  set dummy $ac_cv_prog_CC
2957  shift
2958  if test $# != 0; then
2959    # We chose a different compiler from the bogus one.
2960    # However, it has the same basename, so the bogon will be chosen
2961    # first if we set CC to just the basename; use the full file name.
2962    shift
2963    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2964  fi
2965fi
2966fi
2967fi
2968CC=$ac_cv_prog_CC
2969if test -n "$CC"; then
2970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971$as_echo "$CC" >&6; }
2972else
2973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
2975fi
2976
2977
2978fi
2979if test -z "$CC"; then
2980  if test -n "$ac_tool_prefix"; then
2981  for ac_prog in cl.exe
2982  do
2983    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2984set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986$as_echo_n "checking for $ac_word... " >&6; }
2987if ${ac_cv_prog_CC+:} false; then :
2988  $as_echo_n "(cached) " >&6
2989else
2990  if test -n "$CC"; then
2991  ac_cv_prog_CC="$CC" # Let the user override the test.
2992else
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996  IFS=$as_save_IFS
2997  test -z "$as_dir" && as_dir=.
2998    for ac_exec_ext in '' $ac_executable_extensions; do
2999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002    break 2
3003  fi
3004done
3005  done
3006IFS=$as_save_IFS
3007
3008fi
3009fi
3010CC=$ac_cv_prog_CC
3011if test -n "$CC"; then
3012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013$as_echo "$CC" >&6; }
3014else
3015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016$as_echo "no" >&6; }
3017fi
3018
3019
3020    test -n "$CC" && break
3021  done
3022fi
3023if test -z "$CC"; then
3024  ac_ct_CC=$CC
3025  for ac_prog in cl.exe
3026do
3027  # Extract the first word of "$ac_prog", so it can be a program name with args.
3028set dummy $ac_prog; ac_word=$2
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030$as_echo_n "checking for $ac_word... " >&6; }
3031if ${ac_cv_prog_ac_ct_CC+:} false; then :
3032  $as_echo_n "(cached) " >&6
3033else
3034  if test -n "$ac_ct_CC"; then
3035  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3036else
3037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038for as_dir in $PATH
3039do
3040  IFS=$as_save_IFS
3041  test -z "$as_dir" && as_dir=.
3042    for ac_exec_ext in '' $ac_executable_extensions; do
3043  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044    ac_cv_prog_ac_ct_CC="$ac_prog"
3045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046    break 2
3047  fi
3048done
3049  done
3050IFS=$as_save_IFS
3051
3052fi
3053fi
3054ac_ct_CC=$ac_cv_prog_ac_ct_CC
3055if test -n "$ac_ct_CC"; then
3056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3057$as_echo "$ac_ct_CC" >&6; }
3058else
3059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060$as_echo "no" >&6; }
3061fi
3062
3063
3064  test -n "$ac_ct_CC" && break
3065done
3066
3067  if test "x$ac_ct_CC" = x; then
3068    CC=""
3069  else
3070    case $cross_compiling:$ac_tool_warned in
3071yes:)
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3074ac_tool_warned=yes ;;
3075esac
3076    CC=$ac_ct_CC
3077  fi
3078fi
3079
3080fi
3081
3082
3083test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085as_fn_error $? "no acceptable C compiler found in \$PATH
3086See \`config.log' for more details" "$LINENO" 5; }
3087
3088# Provide some information about the compiler.
3089$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3090set X $ac_compile
3091ac_compiler=$2
3092for ac_option in --version -v -V -qversion; do
3093  { { ac_try="$ac_compiler $ac_option >&5"
3094case "(($ac_try" in
3095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096  *) ac_try_echo=$ac_try;;
3097esac
3098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3099$as_echo "$ac_try_echo"; } >&5
3100  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3101  ac_status=$?
3102  if test -s conftest.err; then
3103    sed '10a\
3104... rest of stderr output deleted ...
3105         10q' conftest.err >conftest.er1
3106    cat conftest.er1 >&5
3107  fi
3108  rm -f conftest.er1 conftest.err
3109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110  test $ac_status = 0; }
3111done
3112
3113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114/* end confdefs.h.  */
3115
3116int
3117main ()
3118{
3119
3120  ;
3121  return 0;
3122}
3123_ACEOF
3124ac_clean_files_save=$ac_clean_files
3125ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3126# Try to create an executable without -o first, disregard a.out.
3127# It will help us diagnose broken compilers, and finding out an intuition
3128# of exeext.
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3130$as_echo_n "checking whether the C compiler works... " >&6; }
3131ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3132
3133# The possible output files:
3134ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3135
3136ac_rmfiles=
3137for ac_file in $ac_files
3138do
3139  case $ac_file in
3140    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3141    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3142  esac
3143done
3144rm -f $ac_rmfiles
3145
3146if { { ac_try="$ac_link_default"
3147case "(($ac_try" in
3148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149  *) ac_try_echo=$ac_try;;
3150esac
3151eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152$as_echo "$ac_try_echo"; } >&5
3153  (eval "$ac_link_default") 2>&5
3154  ac_status=$?
3155  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156  test $ac_status = 0; }; then :
3157  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3158# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3159# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3160# so that the user can short-circuit this test for compilers unknown to
3161# Autoconf.
3162for ac_file in $ac_files ''
3163do
3164  test -f "$ac_file" || continue
3165  case $ac_file in
3166    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3167	;;
3168    [ab].out )
3169	# We found the default executable, but exeext='' is most
3170	# certainly right.
3171	break;;
3172    *.* )
3173	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3174	then :; else
3175	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3176	fi
3177	# We set ac_cv_exeext here because the later test for it is not
3178	# safe: cross compilers may not add the suffix if given an `-o'
3179	# argument, so we may need to know it at that point already.
3180	# Even if this section looks crufty: it has the advantage of
3181	# actually working.
3182	break;;
3183    * )
3184	break;;
3185  esac
3186done
3187test "$ac_cv_exeext" = no && ac_cv_exeext=
3188
3189else
3190  ac_file=''
3191fi
3192if test -z "$ac_file"; then :
3193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194$as_echo "no" >&6; }
3195$as_echo "$as_me: failed program was:" >&5
3196sed 's/^/| /' conftest.$ac_ext >&5
3197
3198{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200as_fn_error 77 "C compiler cannot create executables
3201See \`config.log' for more details" "$LINENO" 5; }
3202else
3203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3204$as_echo "yes" >&6; }
3205fi
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3207$as_echo_n "checking for C compiler default output file name... " >&6; }
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3209$as_echo "$ac_file" >&6; }
3210ac_exeext=$ac_cv_exeext
3211
3212rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3213ac_clean_files=$ac_clean_files_save
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3215$as_echo_n "checking for suffix of executables... " >&6; }
3216if { { ac_try="$ac_link"
3217case "(($ac_try" in
3218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219  *) ac_try_echo=$ac_try;;
3220esac
3221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222$as_echo "$ac_try_echo"; } >&5
3223  (eval "$ac_link") 2>&5
3224  ac_status=$?
3225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226  test $ac_status = 0; }; then :
3227  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3228# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3229# work properly (i.e., refer to `conftest.exe'), while it won't with
3230# `rm'.
3231for ac_file in conftest.exe conftest conftest.*; do
3232  test -f "$ac_file" || continue
3233  case $ac_file in
3234    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3235    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3236	  break;;
3237    * ) break;;
3238  esac
3239done
3240else
3241  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3244See \`config.log' for more details" "$LINENO" 5; }
3245fi
3246rm -f conftest conftest$ac_cv_exeext
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3248$as_echo "$ac_cv_exeext" >&6; }
3249
3250rm -f conftest.$ac_ext
3251EXEEXT=$ac_cv_exeext
3252ac_exeext=$EXEEXT
3253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254/* end confdefs.h.  */
3255#include <stdio.h>
3256int
3257main ()
3258{
3259FILE *f = fopen ("conftest.out", "w");
3260 return ferror (f) || fclose (f) != 0;
3261
3262  ;
3263  return 0;
3264}
3265_ACEOF
3266ac_clean_files="$ac_clean_files conftest.out"
3267# Check that the compiler produces executables we can run.  If not, either
3268# the compiler is broken, or we cross compile.
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3270$as_echo_n "checking whether we are cross compiling... " >&6; }
3271if test "$cross_compiling" != yes; then
3272  { { ac_try="$ac_link"
3273case "(($ac_try" in
3274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275  *) ac_try_echo=$ac_try;;
3276esac
3277eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3278$as_echo "$ac_try_echo"; } >&5
3279  (eval "$ac_link") 2>&5
3280  ac_status=$?
3281  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282  test $ac_status = 0; }
3283  if { ac_try='./conftest$ac_cv_exeext'
3284  { { case "(($ac_try" in
3285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286  *) ac_try_echo=$ac_try;;
3287esac
3288eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289$as_echo "$ac_try_echo"; } >&5
3290  (eval "$ac_try") 2>&5
3291  ac_status=$?
3292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293  test $ac_status = 0; }; }; then
3294    cross_compiling=no
3295  else
3296    if test "$cross_compiling" = maybe; then
3297	cross_compiling=yes
3298    else
3299	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301as_fn_error $? "cannot run C compiled programs.
3302If you meant to cross compile, use \`--host'.
3303See \`config.log' for more details" "$LINENO" 5; }
3304    fi
3305  fi
3306fi
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3308$as_echo "$cross_compiling" >&6; }
3309
3310rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3311ac_clean_files=$ac_clean_files_save
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3313$as_echo_n "checking for suffix of object files... " >&6; }
3314if ${ac_cv_objext+:} false; then :
3315  $as_echo_n "(cached) " >&6
3316else
3317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318/* end confdefs.h.  */
3319
3320int
3321main ()
3322{
3323
3324  ;
3325  return 0;
3326}
3327_ACEOF
3328rm -f conftest.o conftest.obj
3329if { { ac_try="$ac_compile"
3330case "(($ac_try" in
3331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332  *) ac_try_echo=$ac_try;;
3333esac
3334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335$as_echo "$ac_try_echo"; } >&5
3336  (eval "$ac_compile") 2>&5
3337  ac_status=$?
3338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339  test $ac_status = 0; }; then :
3340  for ac_file in conftest.o conftest.obj conftest.*; do
3341  test -f "$ac_file" || continue;
3342  case $ac_file in
3343    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3344    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3345       break;;
3346  esac
3347done
3348else
3349  $as_echo "$as_me: failed program was:" >&5
3350sed 's/^/| /' conftest.$ac_ext >&5
3351
3352{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354as_fn_error $? "cannot compute suffix of object files: cannot compile
3355See \`config.log' for more details" "$LINENO" 5; }
3356fi
3357rm -f conftest.$ac_cv_objext conftest.$ac_ext
3358fi
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3360$as_echo "$ac_cv_objext" >&6; }
3361OBJEXT=$ac_cv_objext
3362ac_objext=$OBJEXT
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3364$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3365if ${ac_cv_c_compiler_gnu+:} false; then :
3366  $as_echo_n "(cached) " >&6
3367else
3368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369/* end confdefs.h.  */
3370
3371int
3372main ()
3373{
3374#ifndef __GNUC__
3375       choke me
3376#endif
3377
3378  ;
3379  return 0;
3380}
3381_ACEOF
3382if ac_fn_c_try_compile "$LINENO"; then :
3383  ac_compiler_gnu=yes
3384else
3385  ac_compiler_gnu=no
3386fi
3387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388ac_cv_c_compiler_gnu=$ac_compiler_gnu
3389
3390fi
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3392$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3393if test $ac_compiler_gnu = yes; then
3394  GCC=yes
3395else
3396  GCC=
3397fi
3398ac_test_CFLAGS=${CFLAGS+set}
3399ac_save_CFLAGS=$CFLAGS
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3401$as_echo_n "checking whether $CC accepts -g... " >&6; }
3402if ${ac_cv_prog_cc_g+:} false; then :
3403  $as_echo_n "(cached) " >&6
3404else
3405  ac_save_c_werror_flag=$ac_c_werror_flag
3406   ac_c_werror_flag=yes
3407   ac_cv_prog_cc_g=no
3408   CFLAGS="-g"
3409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410/* end confdefs.h.  */
3411
3412int
3413main ()
3414{
3415
3416  ;
3417  return 0;
3418}
3419_ACEOF
3420if ac_fn_c_try_compile "$LINENO"; then :
3421  ac_cv_prog_cc_g=yes
3422else
3423  CFLAGS=""
3424      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425/* end confdefs.h.  */
3426
3427int
3428main ()
3429{
3430
3431  ;
3432  return 0;
3433}
3434_ACEOF
3435if ac_fn_c_try_compile "$LINENO"; then :
3436
3437else
3438  ac_c_werror_flag=$ac_save_c_werror_flag
3439	 CFLAGS="-g"
3440	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441/* end confdefs.h.  */
3442
3443int
3444main ()
3445{
3446
3447  ;
3448  return 0;
3449}
3450_ACEOF
3451if ac_fn_c_try_compile "$LINENO"; then :
3452  ac_cv_prog_cc_g=yes
3453fi
3454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455fi
3456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457fi
3458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459   ac_c_werror_flag=$ac_save_c_werror_flag
3460fi
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3462$as_echo "$ac_cv_prog_cc_g" >&6; }
3463if test "$ac_test_CFLAGS" = set; then
3464  CFLAGS=$ac_save_CFLAGS
3465elif test $ac_cv_prog_cc_g = yes; then
3466  if test "$GCC" = yes; then
3467    CFLAGS="-g -O2"
3468  else
3469    CFLAGS="-g"
3470  fi
3471else
3472  if test "$GCC" = yes; then
3473    CFLAGS="-O2"
3474  else
3475    CFLAGS=
3476  fi
3477fi
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3479$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3480if ${ac_cv_prog_cc_c89+:} false; then :
3481  $as_echo_n "(cached) " >&6
3482else
3483  ac_cv_prog_cc_c89=no
3484ac_save_CC=$CC
3485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486/* end confdefs.h.  */
3487#include <stdarg.h>
3488#include <stdio.h>
3489struct stat;
3490/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3491struct buf { int x; };
3492FILE * (*rcsopen) (struct buf *, struct stat *, int);
3493static char *e (p, i)
3494     char **p;
3495     int i;
3496{
3497  return p[i];
3498}
3499static char *f (char * (*g) (char **, int), char **p, ...)
3500{
3501  char *s;
3502  va_list v;
3503  va_start (v,p);
3504  s = g (p, va_arg (v,int));
3505  va_end (v);
3506  return s;
3507}
3508
3509/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3510   function prototypes and stuff, but not '\xHH' hex character constants.
3511   These don't provoke an error unfortunately, instead are silently treated
3512   as 'x'.  The following induces an error, until -std is added to get
3513   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3514   array size at least.  It's necessary to write '\x00'==0 to get something
3515   that's true only with -std.  */
3516int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3517
3518/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3519   inside strings and character constants.  */
3520#define FOO(x) 'x'
3521int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3522
3523int test (int i, double x);
3524struct s1 {int (*f) (int a);};
3525struct s2 {int (*f) (double a);};
3526int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3527int argc;
3528char **argv;
3529int
3530main ()
3531{
3532return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3533  ;
3534  return 0;
3535}
3536_ACEOF
3537for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3538	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3539do
3540  CC="$ac_save_CC $ac_arg"
3541  if ac_fn_c_try_compile "$LINENO"; then :
3542  ac_cv_prog_cc_c89=$ac_arg
3543fi
3544rm -f core conftest.err conftest.$ac_objext
3545  test "x$ac_cv_prog_cc_c89" != "xno" && break
3546done
3547rm -f conftest.$ac_ext
3548CC=$ac_save_CC
3549
3550fi
3551# AC_CACHE_VAL
3552case "x$ac_cv_prog_cc_c89" in
3553  x)
3554    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3555$as_echo "none needed" >&6; } ;;
3556  xno)
3557    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3558$as_echo "unsupported" >&6; } ;;
3559  *)
3560    CC="$CC $ac_cv_prog_cc_c89"
3561    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3562$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3563esac
3564if test "x$ac_cv_prog_cc_c89" != xno; then :
3565
3566fi
3567
3568ac_ext=c
3569ac_cpp='$CPP $CPPFLAGS'
3570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573
3574ac_ext=c
3575ac_cpp='$CPP $CPPFLAGS'
3576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3580$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3581if ${am_cv_prog_cc_c_o+:} false; then :
3582  $as_echo_n "(cached) " >&6
3583else
3584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585/* end confdefs.h.  */
3586
3587int
3588main ()
3589{
3590
3591  ;
3592  return 0;
3593}
3594_ACEOF
3595  # Make sure it works both with $CC and with simple cc.
3596  # Following AC_PROG_CC_C_O, we do the test twice because some
3597  # compilers refuse to overwrite an existing .o file with -o,
3598  # though they will create one.
3599  am_cv_prog_cc_c_o=yes
3600  for am_i in 1 2; do
3601    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3602   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3603   ac_status=$?
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); } \
3606         && test -f conftest2.$ac_objext; then
3607      : OK
3608    else
3609      am_cv_prog_cc_c_o=no
3610      break
3611    fi
3612  done
3613  rm -f core conftest*
3614  unset am_i
3615fi
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3617$as_echo "$am_cv_prog_cc_c_o" >&6; }
3618if test "$am_cv_prog_cc_c_o" != yes; then
3619   # Losing compiler, so override with the script.
3620   # FIXME: It is wrong to rewrite CC.
3621   # But if we don't then we get into trouble of one sort or another.
3622   # A longer-term fix would be to have automake use am__CC in this case,
3623   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3624   CC="$am_aux_dir/compile $CC"
3625fi
3626ac_ext=c
3627ac_cpp='$CPP $CPPFLAGS'
3628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3630ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631
3632DEPDIR="${am__leading_dot}deps"
3633
3634ac_config_commands="$ac_config_commands depfiles"
3635
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3637$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3638cat > confinc.mk << 'END'
3639am__doit:
3640	@echo this is the am__doit target >confinc.out
3641.PHONY: am__doit
3642END
3643am__include="#"
3644am__quote=
3645# BSD make does it like this.
3646echo '.include "confinc.mk" # ignored' > confmf.BSD
3647# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3648echo 'include confinc.mk # ignored' > confmf.GNU
3649_am_result=no
3650for s in GNU BSD; do
3651  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3652   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3653   ac_status=$?
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); }
3656  case $?:`cat confinc.out 2>/dev/null` in #(
3657  '0:this is the am__doit target') :
3658    case $s in #(
3659  BSD) :
3660    am__include='.include' am__quote='"' ;; #(
3661  *) :
3662    am__include='include' am__quote='' ;;
3663esac ;; #(
3664  *) :
3665     ;;
3666esac
3667  if test "$am__include" != "#"; then
3668    _am_result="yes ($s style)"
3669    break
3670  fi
3671done
3672rm -f confinc.* confmf.*
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3674$as_echo "${_am_result}" >&6; }
3675
3676# Check whether --enable-dependency-tracking was given.
3677if test "${enable_dependency_tracking+set}" = set; then :
3678  enableval=$enable_dependency_tracking;
3679fi
3680
3681if test "x$enable_dependency_tracking" != xno; then
3682  am_depcomp="$ac_aux_dir/depcomp"
3683  AMDEPBACKSLASH='\'
3684  am__nodep='_no'
3685fi
3686 if test "x$enable_dependency_tracking" != xno; then
3687  AMDEP_TRUE=
3688  AMDEP_FALSE='#'
3689else
3690  AMDEP_TRUE='#'
3691  AMDEP_FALSE=
3692fi
3693
3694
3695
3696depcc="$CC"   am_compiler_list=
3697
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3699$as_echo_n "checking dependency style of $depcc... " >&6; }
3700if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3701  $as_echo_n "(cached) " >&6
3702else
3703  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3704  # We make a subdir and do the tests there.  Otherwise we can end up
3705  # making bogus files that we don't know about and never remove.  For
3706  # instance it was reported that on HP-UX the gcc test will end up
3707  # making a dummy file named 'D' -- because '-MD' means "put the output
3708  # in D".
3709  rm -rf conftest.dir
3710  mkdir conftest.dir
3711  # Copy depcomp to subdir because otherwise we won't find it if we're
3712  # using a relative directory.
3713  cp "$am_depcomp" conftest.dir
3714  cd conftest.dir
3715  # We will build objects and dependencies in a subdirectory because
3716  # it helps to detect inapplicable dependency modes.  For instance
3717  # both Tru64's cc and ICC support -MD to output dependencies as a
3718  # side effect of compilation, but ICC will put the dependencies in
3719  # the current directory while Tru64 will put them in the object
3720  # directory.
3721  mkdir sub
3722
3723  am_cv_CC_dependencies_compiler_type=none
3724  if test "$am_compiler_list" = ""; then
3725     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3726  fi
3727  am__universal=false
3728  case " $depcc " in #(
3729     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3730     esac
3731
3732  for depmode in $am_compiler_list; do
3733    # Setup a source with many dependencies, because some compilers
3734    # like to wrap large dependency lists on column 80 (with \), and
3735    # we should not choose a depcomp mode which is confused by this.
3736    #
3737    # We need to recreate these files for each test, as the compiler may
3738    # overwrite some of them when testing with obscure command lines.
3739    # This happens at least with the AIX C compiler.
3740    : > sub/conftest.c
3741    for i in 1 2 3 4 5 6; do
3742      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3743      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3744      # Solaris 10 /bin/sh.
3745      echo '/* dummy */' > sub/conftst$i.h
3746    done
3747    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3748
3749    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3750    # mode.  It turns out that the SunPro C++ compiler does not properly
3751    # handle '-M -o', and we need to detect this.  Also, some Intel
3752    # versions had trouble with output in subdirs.
3753    am__obj=sub/conftest.${OBJEXT-o}
3754    am__minus_obj="-o $am__obj"
3755    case $depmode in
3756    gcc)
3757      # This depmode causes a compiler race in universal mode.
3758      test "$am__universal" = false || continue
3759      ;;
3760    nosideeffect)
3761      # After this tag, mechanisms are not by side-effect, so they'll
3762      # only be used when explicitly requested.
3763      if test "x$enable_dependency_tracking" = xyes; then
3764	continue
3765      else
3766	break
3767      fi
3768      ;;
3769    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3770      # This compiler won't grok '-c -o', but also, the minuso test has
3771      # not run yet.  These depmodes are late enough in the game, and
3772      # so weak that their functioning should not be impacted.
3773      am__obj=conftest.${OBJEXT-o}
3774      am__minus_obj=
3775      ;;
3776    none) break ;;
3777    esac
3778    if depmode=$depmode \
3779       source=sub/conftest.c object=$am__obj \
3780       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3781       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3782         >/dev/null 2>conftest.err &&
3783       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3784       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3785       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3786       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3787      # icc doesn't choke on unknown options, it will just issue warnings
3788      # or remarks (even with -Werror).  So we grep stderr for any message
3789      # that says an option was ignored or not supported.
3790      # When given -MP, icc 7.0 and 7.1 complain thusly:
3791      #   icc: Command line warning: ignoring option '-M'; no argument required
3792      # The diagnosis changed in icc 8.0:
3793      #   icc: Command line remark: option '-MP' not supported
3794      if (grep 'ignoring option' conftest.err ||
3795          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3796        am_cv_CC_dependencies_compiler_type=$depmode
3797        break
3798      fi
3799    fi
3800  done
3801
3802  cd ..
3803  rm -rf conftest.dir
3804else
3805  am_cv_CC_dependencies_compiler_type=none
3806fi
3807
3808fi
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3810$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3811CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3812
3813 if
3814  test "x$enable_dependency_tracking" != xno \
3815  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3816  am__fastdepCC_TRUE=
3817  am__fastdepCC_FALSE='#'
3818else
3819  am__fastdepCC_TRUE='#'
3820  am__fastdepCC_FALSE=
3821fi
3822
3823
3824
3825
3826# Check whether --enable-static was given.
3827if test "${enable_static+set}" = set; then :
3828  enableval=$enable_static; p=${PACKAGE-default}
3829    case $enableval in
3830    yes) enable_static=yes ;;
3831    no) enable_static=no ;;
3832    *)
3833     enable_static=no
3834      # Look at the argument we got.  We use all the common list separators.
3835      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
3836      for pkg in $enableval; do
3837	IFS=$lt_save_ifs
3838	if test "X$pkg" = "X$p"; then
3839	  enable_static=yes
3840	fi
3841      done
3842      IFS=$lt_save_ifs
3843      ;;
3844    esac
3845else
3846  enable_static=no
3847fi
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857case `pwd` in
3858  *\ * | *\	*)
3859    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3860$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3861esac
3862
3863
3864
3865macro_version='2.4.6.42-b88ce'
3866macro_revision='2.4.6.42'
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880ltmain=$ac_aux_dir/ltmain.sh
3881
3882# Make sure we can run config.sub.
3883$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3884  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3885
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3887$as_echo_n "checking build system type... " >&6; }
3888if ${ac_cv_build+:} false; then :
3889  $as_echo_n "(cached) " >&6
3890else
3891  ac_build_alias=$build_alias
3892test "x$ac_build_alias" = x &&
3893  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3894test "x$ac_build_alias" = x &&
3895  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3896ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3897  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3898
3899fi
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3901$as_echo "$ac_cv_build" >&6; }
3902case $ac_cv_build in
3903*-*-*) ;;
3904*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3905esac
3906build=$ac_cv_build
3907ac_save_IFS=$IFS; IFS='-'
3908set x $ac_cv_build
3909shift
3910build_cpu=$1
3911build_vendor=$2
3912shift; shift
3913# Remember, the first character of IFS is used to create $*,
3914# except with old shells:
3915build_os=$*
3916IFS=$ac_save_IFS
3917case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3918
3919
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3921$as_echo_n "checking host system type... " >&6; }
3922if ${ac_cv_host+:} false; then :
3923  $as_echo_n "(cached) " >&6
3924else
3925  if test "x$host_alias" = x; then
3926  ac_cv_host=$ac_cv_build
3927else
3928  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3929    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3930fi
3931
3932fi
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3934$as_echo "$ac_cv_host" >&6; }
3935case $ac_cv_host in
3936*-*-*) ;;
3937*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3938esac
3939host=$ac_cv_host
3940ac_save_IFS=$IFS; IFS='-'
3941set x $ac_cv_host
3942shift
3943host_cpu=$1
3944host_vendor=$2
3945shift; shift
3946# Remember, the first character of IFS is used to create $*,
3947# except with old shells:
3948host_os=$*
3949IFS=$ac_save_IFS
3950case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3951
3952
3953# Backslashify metacharacters that are still active within
3954# double-quoted strings.
3955sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3956
3957# Same as above, but do not quote variable references.
3958double_quote_subst='s/\(["`\\]\)/\\\1/g'
3959
3960# Sed substitution to delay expansion of an escaped shell variable in a
3961# double_quote_subst'ed string.
3962delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3963
3964# Sed substitution to delay expansion of an escaped single quote.
3965delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3966
3967# Sed substitution to avoid accidental globbing in evaled expressions
3968no_glob_subst='s/\*/\\\*/g'
3969
3970ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3971ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3972ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3973
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3975$as_echo_n "checking how to print strings... " >&6; }
3976# Test print first, because it will be a builtin if present.
3977if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3978   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3979  ECHO='print -r --'
3980elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3981  ECHO='printf %s\n'
3982else
3983  # Use this function as a fallback that always works.
3984  func_fallback_echo ()
3985  {
3986    eval 'cat <<_LTECHO_EOF
3987$1
3988_LTECHO_EOF'
3989  }
3990  ECHO='func_fallback_echo'
3991fi
3992
3993# func_echo_all arg...
3994# Invoke $ECHO with all args, space-separated.
3995func_echo_all ()
3996{
3997    $ECHO ""
3998}
3999
4000case $ECHO in
4001  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4002$as_echo "printf" >&6; } ;;
4003  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4004$as_echo "print -r" >&6; } ;;
4005  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4006$as_echo "cat" >&6; } ;;
4007esac
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4023$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4024if ${ac_cv_path_SED+:} false; then :
4025  $as_echo_n "(cached) " >&6
4026else
4027            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4028     for ac_i in 1 2 3 4 5 6 7; do
4029       ac_script="$ac_script$as_nl$ac_script"
4030     done
4031     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4032     { ac_script=; unset ac_script;}
4033     if test -z "$SED"; then
4034  ac_path_SED_found=false
4035  # Loop through the user's path and test for each of PROGNAME-LIST
4036  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037for as_dir in $PATH
4038do
4039  IFS=$as_save_IFS
4040  test -z "$as_dir" && as_dir=.
4041    for ac_prog in sed gsed; do
4042    for ac_exec_ext in '' $ac_executable_extensions; do
4043      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4044      as_fn_executable_p "$ac_path_SED" || continue
4045# Check for GNU ac_path_SED and select it if it is found.
4046  # Check for GNU $ac_path_SED
4047case `"$ac_path_SED" --version 2>&1` in
4048*GNU*)
4049  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4050*)
4051  ac_count=0
4052  $as_echo_n 0123456789 >"conftest.in"
4053  while :
4054  do
4055    cat "conftest.in" "conftest.in" >"conftest.tmp"
4056    mv "conftest.tmp" "conftest.in"
4057    cp "conftest.in" "conftest.nl"
4058    $as_echo '' >> "conftest.nl"
4059    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4060    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4061    as_fn_arith $ac_count + 1 && ac_count=$as_val
4062    if test $ac_count -gt ${ac_path_SED_max-0}; then
4063      # Best one so far, save it but keep looking for a better one
4064      ac_cv_path_SED="$ac_path_SED"
4065      ac_path_SED_max=$ac_count
4066    fi
4067    # 10*(2^10) chars as input seems more than enough
4068    test $ac_count -gt 10 && break
4069  done
4070  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4071esac
4072
4073      $ac_path_SED_found && break 3
4074    done
4075  done
4076  done
4077IFS=$as_save_IFS
4078  if test -z "$ac_cv_path_SED"; then
4079    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4080  fi
4081else
4082  ac_cv_path_SED=$SED
4083fi
4084
4085fi
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4087$as_echo "$ac_cv_path_SED" >&6; }
4088 SED="$ac_cv_path_SED"
4089  rm -f conftest.sed
4090
4091test -z "$SED" && SED=sed
4092Xsed="$SED -e 1s/^X//"
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4105$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4106if ${ac_cv_path_GREP+:} false; then :
4107  $as_echo_n "(cached) " >&6
4108else
4109  if test -z "$GREP"; then
4110  ac_path_GREP_found=false
4111  # Loop through the user's path and test for each of PROGNAME-LIST
4112  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4114do
4115  IFS=$as_save_IFS
4116  test -z "$as_dir" && as_dir=.
4117    for ac_prog in grep ggrep; do
4118    for ac_exec_ext in '' $ac_executable_extensions; do
4119      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4120      as_fn_executable_p "$ac_path_GREP" || continue
4121# Check for GNU ac_path_GREP and select it if it is found.
4122  # Check for GNU $ac_path_GREP
4123case `"$ac_path_GREP" --version 2>&1` in
4124*GNU*)
4125  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4126*)
4127  ac_count=0
4128  $as_echo_n 0123456789 >"conftest.in"
4129  while :
4130  do
4131    cat "conftest.in" "conftest.in" >"conftest.tmp"
4132    mv "conftest.tmp" "conftest.in"
4133    cp "conftest.in" "conftest.nl"
4134    $as_echo 'GREP' >> "conftest.nl"
4135    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4136    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4137    as_fn_arith $ac_count + 1 && ac_count=$as_val
4138    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4139      # Best one so far, save it but keep looking for a better one
4140      ac_cv_path_GREP="$ac_path_GREP"
4141      ac_path_GREP_max=$ac_count
4142    fi
4143    # 10*(2^10) chars as input seems more than enough
4144    test $ac_count -gt 10 && break
4145  done
4146  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4147esac
4148
4149      $ac_path_GREP_found && break 3
4150    done
4151  done
4152  done
4153IFS=$as_save_IFS
4154  if test -z "$ac_cv_path_GREP"; then
4155    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4156  fi
4157else
4158  ac_cv_path_GREP=$GREP
4159fi
4160
4161fi
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4163$as_echo "$ac_cv_path_GREP" >&6; }
4164 GREP="$ac_cv_path_GREP"
4165
4166
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4168$as_echo_n "checking for egrep... " >&6; }
4169if ${ac_cv_path_EGREP+:} false; then :
4170  $as_echo_n "(cached) " >&6
4171else
4172  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4173   then ac_cv_path_EGREP="$GREP -E"
4174   else
4175     if test -z "$EGREP"; then
4176  ac_path_EGREP_found=false
4177  # Loop through the user's path and test for each of PROGNAME-LIST
4178  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4180do
4181  IFS=$as_save_IFS
4182  test -z "$as_dir" && as_dir=.
4183    for ac_prog in egrep; do
4184    for ac_exec_ext in '' $ac_executable_extensions; do
4185      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4186      as_fn_executable_p "$ac_path_EGREP" || continue
4187# Check for GNU ac_path_EGREP and select it if it is found.
4188  # Check for GNU $ac_path_EGREP
4189case `"$ac_path_EGREP" --version 2>&1` in
4190*GNU*)
4191  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4192*)
4193  ac_count=0
4194  $as_echo_n 0123456789 >"conftest.in"
4195  while :
4196  do
4197    cat "conftest.in" "conftest.in" >"conftest.tmp"
4198    mv "conftest.tmp" "conftest.in"
4199    cp "conftest.in" "conftest.nl"
4200    $as_echo 'EGREP' >> "conftest.nl"
4201    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203    as_fn_arith $ac_count + 1 && ac_count=$as_val
4204    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4205      # Best one so far, save it but keep looking for a better one
4206      ac_cv_path_EGREP="$ac_path_EGREP"
4207      ac_path_EGREP_max=$ac_count
4208    fi
4209    # 10*(2^10) chars as input seems more than enough
4210    test $ac_count -gt 10 && break
4211  done
4212  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4213esac
4214
4215      $ac_path_EGREP_found && break 3
4216    done
4217  done
4218  done
4219IFS=$as_save_IFS
4220  if test -z "$ac_cv_path_EGREP"; then
4221    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4222  fi
4223else
4224  ac_cv_path_EGREP=$EGREP
4225fi
4226
4227   fi
4228fi
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4230$as_echo "$ac_cv_path_EGREP" >&6; }
4231 EGREP="$ac_cv_path_EGREP"
4232
4233
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4235$as_echo_n "checking for fgrep... " >&6; }
4236if ${ac_cv_path_FGREP+:} false; then :
4237  $as_echo_n "(cached) " >&6
4238else
4239  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4240   then ac_cv_path_FGREP="$GREP -F"
4241   else
4242     if test -z "$FGREP"; then
4243  ac_path_FGREP_found=false
4244  # Loop through the user's path and test for each of PROGNAME-LIST
4245  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4247do
4248  IFS=$as_save_IFS
4249  test -z "$as_dir" && as_dir=.
4250    for ac_prog in fgrep; do
4251    for ac_exec_ext in '' $ac_executable_extensions; do
4252      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4253      as_fn_executable_p "$ac_path_FGREP" || continue
4254# Check for GNU ac_path_FGREP and select it if it is found.
4255  # Check for GNU $ac_path_FGREP
4256case `"$ac_path_FGREP" --version 2>&1` in
4257*GNU*)
4258  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4259*)
4260  ac_count=0
4261  $as_echo_n 0123456789 >"conftest.in"
4262  while :
4263  do
4264    cat "conftest.in" "conftest.in" >"conftest.tmp"
4265    mv "conftest.tmp" "conftest.in"
4266    cp "conftest.in" "conftest.nl"
4267    $as_echo 'FGREP' >> "conftest.nl"
4268    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4269    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4270    as_fn_arith $ac_count + 1 && ac_count=$as_val
4271    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4272      # Best one so far, save it but keep looking for a better one
4273      ac_cv_path_FGREP="$ac_path_FGREP"
4274      ac_path_FGREP_max=$ac_count
4275    fi
4276    # 10*(2^10) chars as input seems more than enough
4277    test $ac_count -gt 10 && break
4278  done
4279  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4280esac
4281
4282      $ac_path_FGREP_found && break 3
4283    done
4284  done
4285  done
4286IFS=$as_save_IFS
4287  if test -z "$ac_cv_path_FGREP"; then
4288    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4289  fi
4290else
4291  ac_cv_path_FGREP=$FGREP
4292fi
4293
4294   fi
4295fi
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4297$as_echo "$ac_cv_path_FGREP" >&6; }
4298 FGREP="$ac_cv_path_FGREP"
4299
4300
4301test -z "$GREP" && GREP=grep
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321# Check whether --with-gnu-ld was given.
4322if test "${with_gnu_ld+set}" = set; then :
4323  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4324else
4325  with_gnu_ld=no
4326fi
4327
4328ac_prog=ld
4329if test yes = "$GCC"; then
4330  # Check if gcc -print-prog-name=ld gives a path.
4331  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4332$as_echo_n "checking for ld used by $CC... " >&6; }
4333  case $host in
4334  *-*-mingw*)
4335    # gcc leaves a trailing carriage return, which upsets mingw
4336    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4337  *)
4338    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4339  esac
4340  case $ac_prog in
4341    # Accept absolute paths.
4342    [\\/]* | ?:[\\/]*)
4343      re_direlt='/[^/][^/]*/\.\./'
4344      # Canonicalize the pathname of ld
4345      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4346      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4347	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4348      done
4349      test -z "$LD" && LD=$ac_prog
4350      ;;
4351  "")
4352    # If it fails, then pretend we aren't using GCC.
4353    ac_prog=ld
4354    ;;
4355  *)
4356    # If it is relative, then search for the first ld in PATH.
4357    with_gnu_ld=unknown
4358    ;;
4359  esac
4360elif test yes = "$with_gnu_ld"; then
4361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4362$as_echo_n "checking for GNU ld... " >&6; }
4363else
4364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4365$as_echo_n "checking for non-GNU ld... " >&6; }
4366fi
4367if ${lt_cv_path_LD+:} false; then :
4368  $as_echo_n "(cached) " >&6
4369else
4370  if test -z "$LD"; then
4371  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4372  for ac_dir in $PATH; do
4373    IFS=$lt_save_ifs
4374    test -z "$ac_dir" && ac_dir=.
4375    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4376      lt_cv_path_LD=$ac_dir/$ac_prog
4377      # Check to see if the program is GNU ld.  I'd rather use --version,
4378      # but apparently some variants of GNU ld only accept -v.
4379      # Break only if it was the GNU/non-GNU ld that we prefer.
4380      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4381      *GNU* | *'with BFD'*)
4382	test no != "$with_gnu_ld" && break
4383	;;
4384      *)
4385	test yes != "$with_gnu_ld" && break
4386	;;
4387      esac
4388    fi
4389  done
4390  IFS=$lt_save_ifs
4391else
4392  lt_cv_path_LD=$LD # Let the user override the test with a path.
4393fi
4394fi
4395
4396LD=$lt_cv_path_LD
4397if test -n "$LD"; then
4398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4399$as_echo "$LD" >&6; }
4400else
4401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402$as_echo "no" >&6; }
4403fi
4404test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4406$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4407if ${lt_cv_prog_gnu_ld+:} false; then :
4408  $as_echo_n "(cached) " >&6
4409else
4410  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4411case `$LD -v 2>&1 </dev/null` in
4412*GNU* | *'with BFD'*)
4413  lt_cv_prog_gnu_ld=yes
4414  ;;
4415*)
4416  lt_cv_prog_gnu_ld=no
4417  ;;
4418esac
4419fi
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4421$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4422with_gnu_ld=$lt_cv_prog_gnu_ld
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4433$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4434if ${lt_cv_path_NM+:} false; then :
4435  $as_echo_n "(cached) " >&6
4436else
4437  if test -n "$NM"; then
4438  # Let the user override the test.
4439  lt_cv_path_NM=$NM
4440else
4441  lt_nm_to_check=${ac_tool_prefix}nm
4442  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4443    lt_nm_to_check="$lt_nm_to_check nm"
4444  fi
4445  for lt_tmp_nm in $lt_nm_to_check; do
4446    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4447    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4448      IFS=$lt_save_ifs
4449      test -z "$ac_dir" && ac_dir=.
4450      tmp_nm=$ac_dir/$lt_tmp_nm
4451      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4452	# Check to see if the nm accepts a BSD-compat flag.
4453	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4454	#   nm: unknown option "B" ignored
4455	# Tru64's nm complains that /dev/null is an invalid object file
4456	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4457	case $build_os in
4458	mingw*) lt_bad_file=conftest.nm/nofile ;;
4459	*) lt_bad_file=/dev/null ;;
4460	esac
4461	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4462	*$lt_bad_file* | *'Invalid file or object type'*)
4463	  lt_cv_path_NM="$tmp_nm -B"
4464	  break 2
4465	  ;;
4466	*)
4467	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4468	  */dev/null*)
4469	    lt_cv_path_NM="$tmp_nm -p"
4470	    break 2
4471	    ;;
4472	  *)
4473	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4474	    continue # so that we can try to find one that supports BSD flags
4475	    ;;
4476	  esac
4477	  ;;
4478	esac
4479      fi
4480    done
4481    IFS=$lt_save_ifs
4482  done
4483  : ${lt_cv_path_NM=no}
4484fi
4485fi
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4487$as_echo "$lt_cv_path_NM" >&6; }
4488if test no != "$lt_cv_path_NM"; then
4489  NM=$lt_cv_path_NM
4490else
4491  # Didn't find any BSD compatible name lister, look for dumpbin.
4492  if test -n "$DUMPBIN"; then :
4493    # Let the user override the test.
4494  else
4495    if test -n "$ac_tool_prefix"; then
4496  for ac_prog in dumpbin "link -dump"
4497  do
4498    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4499set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4501$as_echo_n "checking for $ac_word... " >&6; }
4502if ${ac_cv_prog_DUMPBIN+:} false; then :
4503  $as_echo_n "(cached) " >&6
4504else
4505  if test -n "$DUMPBIN"; then
4506  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4507else
4508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509for as_dir in $PATH
4510do
4511  IFS=$as_save_IFS
4512  test -z "$as_dir" && as_dir=.
4513    for ac_exec_ext in '' $ac_executable_extensions; do
4514  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4515    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4517    break 2
4518  fi
4519done
4520  done
4521IFS=$as_save_IFS
4522
4523fi
4524fi
4525DUMPBIN=$ac_cv_prog_DUMPBIN
4526if test -n "$DUMPBIN"; then
4527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4528$as_echo "$DUMPBIN" >&6; }
4529else
4530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531$as_echo "no" >&6; }
4532fi
4533
4534
4535    test -n "$DUMPBIN" && break
4536  done
4537fi
4538if test -z "$DUMPBIN"; then
4539  ac_ct_DUMPBIN=$DUMPBIN
4540  for ac_prog in dumpbin "link -dump"
4541do
4542  # Extract the first word of "$ac_prog", so it can be a program name with args.
4543set dummy $ac_prog; ac_word=$2
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4545$as_echo_n "checking for $ac_word... " >&6; }
4546if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4547  $as_echo_n "(cached) " >&6
4548else
4549  if test -n "$ac_ct_DUMPBIN"; then
4550  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4551else
4552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555  IFS=$as_save_IFS
4556  test -z "$as_dir" && as_dir=.
4557    for ac_exec_ext in '' $ac_executable_extensions; do
4558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561    break 2
4562  fi
4563done
4564  done
4565IFS=$as_save_IFS
4566
4567fi
4568fi
4569ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4570if test -n "$ac_ct_DUMPBIN"; then
4571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4572$as_echo "$ac_ct_DUMPBIN" >&6; }
4573else
4574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575$as_echo "no" >&6; }
4576fi
4577
4578
4579  test -n "$ac_ct_DUMPBIN" && break
4580done
4581
4582  if test "x$ac_ct_DUMPBIN" = x; then
4583    DUMPBIN=":"
4584  else
4585    case $cross_compiling:$ac_tool_warned in
4586yes:)
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4589ac_tool_warned=yes ;;
4590esac
4591    DUMPBIN=$ac_ct_DUMPBIN
4592  fi
4593fi
4594
4595    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4596    *COFF*)
4597      DUMPBIN="$DUMPBIN -symbols -headers"
4598      ;;
4599    *)
4600      DUMPBIN=:
4601      ;;
4602    esac
4603  fi
4604
4605  if test : != "$DUMPBIN"; then
4606    NM=$DUMPBIN
4607  fi
4608fi
4609test -z "$NM" && NM=nm
4610
4611
4612
4613
4614
4615
4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4617$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4618if ${lt_cv_nm_interface+:} false; then :
4619  $as_echo_n "(cached) " >&6
4620else
4621  lt_cv_nm_interface="BSD nm"
4622  echo "int some_variable = 0;" > conftest.$ac_ext
4623  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4624  (eval "$ac_compile" 2>conftest.err)
4625  cat conftest.err >&5
4626  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4627  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4628  cat conftest.err >&5
4629  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4630  cat conftest.out >&5
4631  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4632    lt_cv_nm_interface="MS dumpbin"
4633  fi
4634  rm -f conftest*
4635fi
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4637$as_echo "$lt_cv_nm_interface" >&6; }
4638
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4640$as_echo_n "checking whether ln -s works... " >&6; }
4641LN_S=$as_ln_s
4642if test "$LN_S" = "ln -s"; then
4643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4644$as_echo "yes" >&6; }
4645else
4646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4647$as_echo "no, using $LN_S" >&6; }
4648fi
4649
4650# find the maximum length of command line arguments
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4652$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4653if ${lt_cv_sys_max_cmd_len+:} false; then :
4654  $as_echo_n "(cached) " >&6
4655else
4656    i=0
4657  teststring=ABCD
4658
4659  case $build_os in
4660  msdosdjgpp*)
4661    # On DJGPP, this test can blow up pretty badly due to problems in libc
4662    # (any single argument exceeding 2000 bytes causes a buffer overrun
4663    # during glob expansion).  Even if it were fixed, the result of this
4664    # check would be larger than it should be.
4665    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4666    ;;
4667
4668  gnu*)
4669    # Under GNU Hurd, this test is not required because there is
4670    # no limit to the length of command line arguments.
4671    # Libtool will interpret -1 as no limit whatsoever
4672    lt_cv_sys_max_cmd_len=-1;
4673    ;;
4674
4675  cygwin* | mingw* | cegcc*)
4676    # On Win9x/ME, this test blows up -- it succeeds, but takes
4677    # about 5 minutes as the teststring grows exponentially.
4678    # Worse, since 9x/ME are not pre-emptively multitasking,
4679    # you end up with a "frozen" computer, even though with patience
4680    # the test eventually succeeds (with a max line length of 256k).
4681    # Instead, let's just punt: use the minimum linelength reported by
4682    # all of the supported platforms: 8192 (on NT/2K/XP).
4683    lt_cv_sys_max_cmd_len=8192;
4684    ;;
4685
4686  mint*)
4687    # On MiNT this can take a long time and run out of memory.
4688    lt_cv_sys_max_cmd_len=8192;
4689    ;;
4690
4691  amigaos*)
4692    # On AmigaOS with pdksh, this test takes hours, literally.
4693    # So we just punt and use a minimum line length of 8192.
4694    lt_cv_sys_max_cmd_len=8192;
4695    ;;
4696
4697  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4698    # This has been around since 386BSD, at least.  Likely further.
4699    if test -x /sbin/sysctl; then
4700      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4701    elif test -x /usr/sbin/sysctl; then
4702      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4703    else
4704      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4705    fi
4706    # And add a safety zone
4707    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4708    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4709    ;;
4710
4711  interix*)
4712    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4713    lt_cv_sys_max_cmd_len=196608
4714    ;;
4715
4716  os2*)
4717    # The test takes a long time on OS/2.
4718    lt_cv_sys_max_cmd_len=8192
4719    ;;
4720
4721  osf*)
4722    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4723    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4724    # nice to cause kernel panics so lets avoid the loop below.
4725    # First set a reasonable default.
4726    lt_cv_sys_max_cmd_len=16384
4727    #
4728    if test -x /sbin/sysconfig; then
4729      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4730        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4731      esac
4732    fi
4733    ;;
4734  sco3.2v5*)
4735    lt_cv_sys_max_cmd_len=102400
4736    ;;
4737  sysv5* | sco5v6* | sysv4.2uw2*)
4738    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4739    if test -n "$kargmax"; then
4740      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4741    else
4742      lt_cv_sys_max_cmd_len=32768
4743    fi
4744    ;;
4745  *)
4746    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4747    if test -n "$lt_cv_sys_max_cmd_len" && \
4748       test undefined != "$lt_cv_sys_max_cmd_len"; then
4749      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4750      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4751    else
4752      # Make teststring a little bigger before we do anything with it.
4753      # a 1K string should be a reasonable start.
4754      for i in 1 2 3 4 5 6 7 8; do
4755        teststring=$teststring$teststring
4756      done
4757      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4758      # If test is not a shell built-in, we'll probably end up computing a
4759      # maximum length that is only half of the actual maximum length, but
4760      # we can't tell.
4761      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4762	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4763	      test 17 != "$i" # 1/2 MB should be enough
4764      do
4765        i=`expr $i + 1`
4766        teststring=$teststring$teststring
4767      done
4768      # Only check the string length outside the loop.
4769      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4770      teststring=
4771      # Add a significant safety factor because C++ compilers can tack on
4772      # massive amounts of additional arguments before passing them to the
4773      # linker.  It appears as though 1/2 is a usable value.
4774      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4775    fi
4776    ;;
4777  esac
4778
4779fi
4780
4781if test -n "$lt_cv_sys_max_cmd_len"; then
4782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4783$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4784else
4785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4786$as_echo "none" >&6; }
4787fi
4788max_cmd_len=$lt_cv_sys_max_cmd_len
4789
4790
4791
4792
4793
4794
4795: ${CP="cp -f"}
4796: ${MV="mv -f"}
4797: ${RM="rm -f"}
4798
4799if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4800  lt_unset=unset
4801else
4802  lt_unset=false
4803fi
4804
4805
4806
4807
4808
4809# test EBCDIC or ASCII
4810case `echo X|tr X '\101'` in
4811 A) # ASCII based system
4812    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4813  lt_SP2NL='tr \040 \012'
4814  lt_NL2SP='tr \015\012 \040\040'
4815  ;;
4816 *) # EBCDIC based system
4817  lt_SP2NL='tr \100 \n'
4818  lt_NL2SP='tr \r\n \100\100'
4819  ;;
4820esac
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4831$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4832if ${lt_cv_to_host_file_cmd+:} false; then :
4833  $as_echo_n "(cached) " >&6
4834else
4835  case $host in
4836  *-*-mingw* )
4837    case $build in
4838      *-*-mingw* ) # actually msys
4839        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4840        ;;
4841      *-*-cygwin* )
4842        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4843        ;;
4844      * ) # otherwise, assume *nix
4845        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4846        ;;
4847    esac
4848    ;;
4849  *-*-cygwin* )
4850    case $build in
4851      *-*-mingw* ) # actually msys
4852        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4853        ;;
4854      *-*-cygwin* )
4855        lt_cv_to_host_file_cmd=func_convert_file_noop
4856        ;;
4857      * ) # otherwise, assume *nix
4858        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4859        ;;
4860    esac
4861    ;;
4862  * ) # unhandled hosts (and "normal" native builds)
4863    lt_cv_to_host_file_cmd=func_convert_file_noop
4864    ;;
4865esac
4866
4867fi
4868
4869to_host_file_cmd=$lt_cv_to_host_file_cmd
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4871$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4872
4873
4874
4875
4876
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4878$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4879if ${lt_cv_to_tool_file_cmd+:} false; then :
4880  $as_echo_n "(cached) " >&6
4881else
4882  #assume ordinary cross tools, or native build.
4883lt_cv_to_tool_file_cmd=func_convert_file_noop
4884case $host in
4885  *-*-mingw* )
4886    case $build in
4887      *-*-mingw* ) # actually msys
4888        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4889        ;;
4890    esac
4891    ;;
4892esac
4893
4894fi
4895
4896to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4898$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4899
4900
4901
4902
4903
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4905$as_echo_n "checking for $LD option to reload object files... " >&6; }
4906if ${lt_cv_ld_reload_flag+:} false; then :
4907  $as_echo_n "(cached) " >&6
4908else
4909  lt_cv_ld_reload_flag='-r'
4910fi
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4912$as_echo "$lt_cv_ld_reload_flag" >&6; }
4913reload_flag=$lt_cv_ld_reload_flag
4914case $reload_flag in
4915"" | " "*) ;;
4916*) reload_flag=" $reload_flag" ;;
4917esac
4918reload_cmds='$LD$reload_flag -o $output$reload_objs'
4919case $host_os in
4920  cygwin* | mingw* | pw32* | cegcc*)
4921    if test yes != "$GCC"; then
4922      reload_cmds=false
4923    fi
4924    ;;
4925  darwin*)
4926    if test yes = "$GCC"; then
4927      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4928    else
4929      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4930    fi
4931    ;;
4932esac
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942if test -n "$ac_tool_prefix"; then
4943  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4944set dummy ${ac_tool_prefix}objdump; ac_word=$2
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946$as_echo_n "checking for $ac_word... " >&6; }
4947if ${ac_cv_prog_OBJDUMP+:} false; then :
4948  $as_echo_n "(cached) " >&6
4949else
4950  if test -n "$OBJDUMP"; then
4951  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4952else
4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956  IFS=$as_save_IFS
4957  test -z "$as_dir" && as_dir=.
4958    for ac_exec_ext in '' $ac_executable_extensions; do
4959  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962    break 2
4963  fi
4964done
4965  done
4966IFS=$as_save_IFS
4967
4968fi
4969fi
4970OBJDUMP=$ac_cv_prog_OBJDUMP
4971if test -n "$OBJDUMP"; then
4972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4973$as_echo "$OBJDUMP" >&6; }
4974else
4975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976$as_echo "no" >&6; }
4977fi
4978
4979
4980fi
4981if test -z "$ac_cv_prog_OBJDUMP"; then
4982  ac_ct_OBJDUMP=$OBJDUMP
4983  # Extract the first word of "objdump", so it can be a program name with args.
4984set dummy objdump; ac_word=$2
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986$as_echo_n "checking for $ac_word... " >&6; }
4987if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4988  $as_echo_n "(cached) " >&6
4989else
4990  if test -n "$ac_ct_OBJDUMP"; then
4991  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4992else
4993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in $PATH
4995do
4996  IFS=$as_save_IFS
4997  test -z "$as_dir" && as_dir=.
4998    for ac_exec_ext in '' $ac_executable_extensions; do
4999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002    break 2
5003  fi
5004done
5005  done
5006IFS=$as_save_IFS
5007
5008fi
5009fi
5010ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5011if test -n "$ac_ct_OBJDUMP"; then
5012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5013$as_echo "$ac_ct_OBJDUMP" >&6; }
5014else
5015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016$as_echo "no" >&6; }
5017fi
5018
5019  if test "x$ac_ct_OBJDUMP" = x; then
5020    OBJDUMP="false"
5021  else
5022    case $cross_compiling:$ac_tool_warned in
5023yes:)
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5026ac_tool_warned=yes ;;
5027esac
5028    OBJDUMP=$ac_ct_OBJDUMP
5029  fi
5030else
5031  OBJDUMP="$ac_cv_prog_OBJDUMP"
5032fi
5033
5034test -z "$OBJDUMP" && OBJDUMP=objdump
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5045$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5046if ${lt_cv_deplibs_check_method+:} false; then :
5047  $as_echo_n "(cached) " >&6
5048else
5049  lt_cv_file_magic_cmd='$MAGIC_CMD'
5050lt_cv_file_magic_test_file=
5051lt_cv_deplibs_check_method='unknown'
5052# Need to set the preceding variable on all platforms that support
5053# interlibrary dependencies.
5054# 'none' -- dependencies not supported.
5055# 'unknown' -- same as none, but documents that we really don't know.
5056# 'pass_all' -- all dependencies passed with no checks.
5057# 'test_compile' -- check by making test program.
5058# 'file_magic [[regex]]' -- check by looking for files in library path
5059# that responds to the $file_magic_cmd with a given extended regex.
5060# If you have 'file' or equivalent on your system and you're not sure
5061# whether 'pass_all' will *always* work, you probably want this one.
5062
5063case $host_os in
5064aix[4-9]*)
5065  lt_cv_deplibs_check_method=pass_all
5066  ;;
5067
5068beos*)
5069  lt_cv_deplibs_check_method=pass_all
5070  ;;
5071
5072bsdi[45]*)
5073  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5074  lt_cv_file_magic_cmd='/usr/bin/file -L'
5075  lt_cv_file_magic_test_file=/shlib/libc.so
5076  ;;
5077
5078cygwin*)
5079  # func_win32_libid is a shell function defined in ltmain.sh
5080  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5081  lt_cv_file_magic_cmd='func_win32_libid'
5082  ;;
5083
5084mingw* | pw32*)
5085  # Base MSYS/MinGW do not provide the 'file' command needed by
5086  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5087  # unless we find 'file', for example because we are cross-compiling.
5088  if ( file / ) >/dev/null 2>&1; then
5089    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5090    lt_cv_file_magic_cmd='func_win32_libid'
5091  else
5092    # Keep this pattern in sync with the one in func_win32_libid.
5093    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5094    lt_cv_file_magic_cmd='$OBJDUMP -f'
5095  fi
5096  ;;
5097
5098cegcc*)
5099  # use the weaker test based on 'objdump'. See mingw*.
5100  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5101  lt_cv_file_magic_cmd='$OBJDUMP -f'
5102  ;;
5103
5104darwin* | rhapsody*)
5105  lt_cv_deplibs_check_method=pass_all
5106  ;;
5107
5108freebsd* | dragonfly*)
5109  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5110    case $host_cpu in
5111    i*86 )
5112      # Not sure whether the presence of OpenBSD here was a mistake.
5113      # Let's accept both of them until this is cleared up.
5114      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5115      lt_cv_file_magic_cmd=/usr/bin/file
5116      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5117      ;;
5118    esac
5119  else
5120    lt_cv_deplibs_check_method=pass_all
5121  fi
5122  ;;
5123
5124haiku*)
5125  lt_cv_deplibs_check_method=pass_all
5126  ;;
5127
5128hpux10.20* | hpux11*)
5129  lt_cv_file_magic_cmd=/usr/bin/file
5130  case $host_cpu in
5131  ia64*)
5132    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5133    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5134    ;;
5135  hppa*64*)
5136    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]'
5137    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5138    ;;
5139  *)
5140    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5141    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5142    ;;
5143  esac
5144  ;;
5145
5146interix[3-9]*)
5147  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5148  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5149  ;;
5150
5151irix5* | irix6* | nonstopux*)
5152  case $LD in
5153  *-32|*"-32 ") libmagic=32-bit;;
5154  *-n32|*"-n32 ") libmagic=N32;;
5155  *-64|*"-64 ") libmagic=64-bit;;
5156  *) libmagic=never-match;;
5157  esac
5158  lt_cv_deplibs_check_method=pass_all
5159  ;;
5160
5161# This must be glibc/ELF.
5162linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5163  lt_cv_deplibs_check_method=pass_all
5164  ;;
5165
5166netbsd*)
5167  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5168    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5169  else
5170    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5171  fi
5172  ;;
5173
5174newos6*)
5175  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5176  lt_cv_file_magic_cmd=/usr/bin/file
5177  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5178  ;;
5179
5180*nto* | *qnx*)
5181  lt_cv_deplibs_check_method=pass_all
5182  ;;
5183
5184openbsd* | bitrig*)
5185  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5186    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5187  else
5188    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5189  fi
5190  ;;
5191
5192osf3* | osf4* | osf5*)
5193  lt_cv_deplibs_check_method=pass_all
5194  ;;
5195
5196rdos*)
5197  lt_cv_deplibs_check_method=pass_all
5198  ;;
5199
5200solaris*)
5201  lt_cv_deplibs_check_method=pass_all
5202  ;;
5203
5204sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5205  lt_cv_deplibs_check_method=pass_all
5206  ;;
5207
5208sysv4 | sysv4.3*)
5209  case $host_vendor in
5210  motorola)
5211    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]'
5212    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5213    ;;
5214  ncr)
5215    lt_cv_deplibs_check_method=pass_all
5216    ;;
5217  sequent)
5218    lt_cv_file_magic_cmd='/bin/file'
5219    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5220    ;;
5221  sni)
5222    lt_cv_file_magic_cmd='/bin/file'
5223    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5224    lt_cv_file_magic_test_file=/lib/libc.so
5225    ;;
5226  siemens)
5227    lt_cv_deplibs_check_method=pass_all
5228    ;;
5229  pc)
5230    lt_cv_deplibs_check_method=pass_all
5231    ;;
5232  esac
5233  ;;
5234
5235tpf*)
5236  lt_cv_deplibs_check_method=pass_all
5237  ;;
5238os2*)
5239  lt_cv_deplibs_check_method=pass_all
5240  ;;
5241esac
5242
5243fi
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5245$as_echo "$lt_cv_deplibs_check_method" >&6; }
5246
5247file_magic_glob=
5248want_nocaseglob=no
5249if test "$build" = "$host"; then
5250  case $host_os in
5251  mingw* | pw32*)
5252    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5253      want_nocaseglob=yes
5254    else
5255      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5256    fi
5257    ;;
5258  esac
5259fi
5260
5261file_magic_cmd=$lt_cv_file_magic_cmd
5262deplibs_check_method=$lt_cv_deplibs_check_method
5263test -z "$deplibs_check_method" && deplibs_check_method=unknown
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286if test -n "$ac_tool_prefix"; then
5287  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5288set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290$as_echo_n "checking for $ac_word... " >&6; }
5291if ${ac_cv_prog_DLLTOOL+:} false; then :
5292  $as_echo_n "(cached) " >&6
5293else
5294  if test -n "$DLLTOOL"; then
5295  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5296else
5297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298for as_dir in $PATH
5299do
5300  IFS=$as_save_IFS
5301  test -z "$as_dir" && as_dir=.
5302    for ac_exec_ext in '' $ac_executable_extensions; do
5303  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5305    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306    break 2
5307  fi
5308done
5309  done
5310IFS=$as_save_IFS
5311
5312fi
5313fi
5314DLLTOOL=$ac_cv_prog_DLLTOOL
5315if test -n "$DLLTOOL"; then
5316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5317$as_echo "$DLLTOOL" >&6; }
5318else
5319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320$as_echo "no" >&6; }
5321fi
5322
5323
5324fi
5325if test -z "$ac_cv_prog_DLLTOOL"; then
5326  ac_ct_DLLTOOL=$DLLTOOL
5327  # Extract the first word of "dlltool", so it can be a program name with args.
5328set dummy dlltool; ac_word=$2
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330$as_echo_n "checking for $ac_word... " >&6; }
5331if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5332  $as_echo_n "(cached) " >&6
5333else
5334  if test -n "$ac_ct_DLLTOOL"; then
5335  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5336else
5337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338for as_dir in $PATH
5339do
5340  IFS=$as_save_IFS
5341  test -z "$as_dir" && as_dir=.
5342    for ac_exec_ext in '' $ac_executable_extensions; do
5343  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346    break 2
5347  fi
5348done
5349  done
5350IFS=$as_save_IFS
5351
5352fi
5353fi
5354ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5355if test -n "$ac_ct_DLLTOOL"; then
5356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5357$as_echo "$ac_ct_DLLTOOL" >&6; }
5358else
5359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360$as_echo "no" >&6; }
5361fi
5362
5363  if test "x$ac_ct_DLLTOOL" = x; then
5364    DLLTOOL="false"
5365  else
5366    case $cross_compiling:$ac_tool_warned in
5367yes:)
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5370ac_tool_warned=yes ;;
5371esac
5372    DLLTOOL=$ac_ct_DLLTOOL
5373  fi
5374else
5375  DLLTOOL="$ac_cv_prog_DLLTOOL"
5376fi
5377
5378test -z "$DLLTOOL" && DLLTOOL=dlltool
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5390$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5391if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5392  $as_echo_n "(cached) " >&6
5393else
5394  lt_cv_sharedlib_from_linklib_cmd='unknown'
5395
5396case $host_os in
5397cygwin* | mingw* | pw32* | cegcc*)
5398  # two different shell functions defined in ltmain.sh;
5399  # decide which one to use based on capabilities of $DLLTOOL
5400  case `$DLLTOOL --help 2>&1` in
5401  *--identify-strict*)
5402    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5403    ;;
5404  *)
5405    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5406    ;;
5407  esac
5408  ;;
5409*)
5410  # fallback: assume linklib IS sharedlib
5411  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5412  ;;
5413esac
5414
5415fi
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5417$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5418sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5419test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5420
5421
5422
5423
5424
5425
5426
5427
5428if test -n "$ac_tool_prefix"; then
5429  for ac_prog in ar
5430  do
5431    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5432set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434$as_echo_n "checking for $ac_word... " >&6; }
5435if ${ac_cv_prog_AR+:} false; then :
5436  $as_echo_n "(cached) " >&6
5437else
5438  if test -n "$AR"; then
5439  ac_cv_prog_AR="$AR" # Let the user override the test.
5440else
5441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442for as_dir in $PATH
5443do
5444  IFS=$as_save_IFS
5445  test -z "$as_dir" && as_dir=.
5446    for ac_exec_ext in '' $ac_executable_extensions; do
5447  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5448    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450    break 2
5451  fi
5452done
5453  done
5454IFS=$as_save_IFS
5455
5456fi
5457fi
5458AR=$ac_cv_prog_AR
5459if test -n "$AR"; then
5460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5461$as_echo "$AR" >&6; }
5462else
5463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464$as_echo "no" >&6; }
5465fi
5466
5467
5468    test -n "$AR" && break
5469  done
5470fi
5471if test -z "$AR"; then
5472  ac_ct_AR=$AR
5473  for ac_prog in ar
5474do
5475  # Extract the first word of "$ac_prog", so it can be a program name with args.
5476set dummy $ac_prog; ac_word=$2
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478$as_echo_n "checking for $ac_word... " >&6; }
5479if ${ac_cv_prog_ac_ct_AR+:} false; then :
5480  $as_echo_n "(cached) " >&6
5481else
5482  if test -n "$ac_ct_AR"; then
5483  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5484else
5485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486for as_dir in $PATH
5487do
5488  IFS=$as_save_IFS
5489  test -z "$as_dir" && as_dir=.
5490    for ac_exec_ext in '' $ac_executable_extensions; do
5491  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5492    ac_cv_prog_ac_ct_AR="$ac_prog"
5493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494    break 2
5495  fi
5496done
5497  done
5498IFS=$as_save_IFS
5499
5500fi
5501fi
5502ac_ct_AR=$ac_cv_prog_ac_ct_AR
5503if test -n "$ac_ct_AR"; then
5504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5505$as_echo "$ac_ct_AR" >&6; }
5506else
5507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508$as_echo "no" >&6; }
5509fi
5510
5511
5512  test -n "$ac_ct_AR" && break
5513done
5514
5515  if test "x$ac_ct_AR" = x; then
5516    AR="false"
5517  else
5518    case $cross_compiling:$ac_tool_warned in
5519yes:)
5520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5522ac_tool_warned=yes ;;
5523esac
5524    AR=$ac_ct_AR
5525  fi
5526fi
5527
5528: ${AR=ar}
5529
5530
5531
5532
5533
5534
5535# Use ARFLAGS variable as AR's operation code to sync the variable naming with
5536# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
5537# higher priority because thats what people were doing historically (setting
5538# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
5539# variable obsoleted/removed.
5540
5541test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
5542lt_ar_flags=$AR_FLAGS
5543
5544
5545
5546
5547
5548
5549# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
5550# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
5551
5552
5553
5554
5555
5556
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5558$as_echo_n "checking for archiver @FILE support... " >&6; }
5559if ${lt_cv_ar_at_file+:} false; then :
5560  $as_echo_n "(cached) " >&6
5561else
5562  lt_cv_ar_at_file=no
5563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564/* end confdefs.h.  */
5565
5566int
5567main ()
5568{
5569
5570  ;
5571  return 0;
5572}
5573_ACEOF
5574if ac_fn_c_try_compile "$LINENO"; then :
5575  echo conftest.$ac_objext > conftest.lst
5576      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5577      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5578  (eval $lt_ar_try) 2>&5
5579  ac_status=$?
5580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5581  test $ac_status = 0; }
5582      if test 0 -eq "$ac_status"; then
5583	# Ensure the archiver fails upon bogus file names.
5584	rm -f conftest.$ac_objext libconftest.a
5585	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5586  (eval $lt_ar_try) 2>&5
5587  ac_status=$?
5588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5589  test $ac_status = 0; }
5590	if test 0 -ne "$ac_status"; then
5591          lt_cv_ar_at_file=@
5592        fi
5593      fi
5594      rm -f conftest.* libconftest.a
5595
5596fi
5597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598
5599fi
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5601$as_echo "$lt_cv_ar_at_file" >&6; }
5602
5603if test no = "$lt_cv_ar_at_file"; then
5604  archiver_list_spec=
5605else
5606  archiver_list_spec=$lt_cv_ar_at_file
5607fi
5608
5609
5610
5611
5612
5613
5614
5615if test -n "$ac_tool_prefix"; then
5616  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5617set dummy ${ac_tool_prefix}strip; ac_word=$2
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619$as_echo_n "checking for $ac_word... " >&6; }
5620if ${ac_cv_prog_STRIP+:} false; then :
5621  $as_echo_n "(cached) " >&6
5622else
5623  if test -n "$STRIP"; then
5624  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5625else
5626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627for as_dir in $PATH
5628do
5629  IFS=$as_save_IFS
5630  test -z "$as_dir" && as_dir=.
5631    for ac_exec_ext in '' $ac_executable_extensions; do
5632  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635    break 2
5636  fi
5637done
5638  done
5639IFS=$as_save_IFS
5640
5641fi
5642fi
5643STRIP=$ac_cv_prog_STRIP
5644if test -n "$STRIP"; then
5645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5646$as_echo "$STRIP" >&6; }
5647else
5648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649$as_echo "no" >&6; }
5650fi
5651
5652
5653fi
5654if test -z "$ac_cv_prog_STRIP"; then
5655  ac_ct_STRIP=$STRIP
5656  # Extract the first word of "strip", so it can be a program name with args.
5657set dummy strip; ac_word=$2
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659$as_echo_n "checking for $ac_word... " >&6; }
5660if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5661  $as_echo_n "(cached) " >&6
5662else
5663  if test -n "$ac_ct_STRIP"; then
5664  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5665else
5666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667for as_dir in $PATH
5668do
5669  IFS=$as_save_IFS
5670  test -z "$as_dir" && as_dir=.
5671    for ac_exec_ext in '' $ac_executable_extensions; do
5672  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673    ac_cv_prog_ac_ct_STRIP="strip"
5674    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675    break 2
5676  fi
5677done
5678  done
5679IFS=$as_save_IFS
5680
5681fi
5682fi
5683ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5684if test -n "$ac_ct_STRIP"; then
5685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5686$as_echo "$ac_ct_STRIP" >&6; }
5687else
5688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689$as_echo "no" >&6; }
5690fi
5691
5692  if test "x$ac_ct_STRIP" = x; then
5693    STRIP=":"
5694  else
5695    case $cross_compiling:$ac_tool_warned in
5696yes:)
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5699ac_tool_warned=yes ;;
5700esac
5701    STRIP=$ac_ct_STRIP
5702  fi
5703else
5704  STRIP="$ac_cv_prog_STRIP"
5705fi
5706
5707test -z "$STRIP" && STRIP=:
5708
5709
5710
5711
5712
5713
5714if test -n "$ac_tool_prefix"; then
5715  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5716set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718$as_echo_n "checking for $ac_word... " >&6; }
5719if ${ac_cv_prog_RANLIB+:} false; then :
5720  $as_echo_n "(cached) " >&6
5721else
5722  if test -n "$RANLIB"; then
5723  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5724else
5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH
5727do
5728  IFS=$as_save_IFS
5729  test -z "$as_dir" && as_dir=.
5730    for ac_exec_ext in '' $ac_executable_extensions; do
5731  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734    break 2
5735  fi
5736done
5737  done
5738IFS=$as_save_IFS
5739
5740fi
5741fi
5742RANLIB=$ac_cv_prog_RANLIB
5743if test -n "$RANLIB"; then
5744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5745$as_echo "$RANLIB" >&6; }
5746else
5747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748$as_echo "no" >&6; }
5749fi
5750
5751
5752fi
5753if test -z "$ac_cv_prog_RANLIB"; then
5754  ac_ct_RANLIB=$RANLIB
5755  # Extract the first word of "ranlib", so it can be a program name with args.
5756set dummy ranlib; ac_word=$2
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758$as_echo_n "checking for $ac_word... " >&6; }
5759if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5760  $as_echo_n "(cached) " >&6
5761else
5762  if test -n "$ac_ct_RANLIB"; then
5763  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5764else
5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766for as_dir in $PATH
5767do
5768  IFS=$as_save_IFS
5769  test -z "$as_dir" && as_dir=.
5770    for ac_exec_ext in '' $ac_executable_extensions; do
5771  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772    ac_cv_prog_ac_ct_RANLIB="ranlib"
5773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774    break 2
5775  fi
5776done
5777  done
5778IFS=$as_save_IFS
5779
5780fi
5781fi
5782ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5783if test -n "$ac_ct_RANLIB"; then
5784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5785$as_echo "$ac_ct_RANLIB" >&6; }
5786else
5787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788$as_echo "no" >&6; }
5789fi
5790
5791  if test "x$ac_ct_RANLIB" = x; then
5792    RANLIB=":"
5793  else
5794    case $cross_compiling:$ac_tool_warned in
5795yes:)
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5798ac_tool_warned=yes ;;
5799esac
5800    RANLIB=$ac_ct_RANLIB
5801  fi
5802else
5803  RANLIB="$ac_cv_prog_RANLIB"
5804fi
5805
5806test -z "$RANLIB" && RANLIB=:
5807
5808
5809
5810
5811
5812
5813# Determine commands to create old-style static archives.
5814old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5815old_postinstall_cmds='chmod 644 $oldlib'
5816old_postuninstall_cmds=
5817
5818if test -n "$RANLIB"; then
5819  case $host_os in
5820  bitrig* | openbsd*)
5821    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5822    ;;
5823  *)
5824    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5825    ;;
5826  esac
5827  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5828fi
5829
5830case $host_os in
5831  darwin*)
5832    lock_old_archive_extraction=yes ;;
5833  *)
5834    lock_old_archive_extraction=no ;;
5835esac
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875# If no C compiler was specified, use CC.
5876LTCC=${LTCC-"$CC"}
5877
5878# If no C compiler flags were specified, use CFLAGS.
5879LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5880
5881# Allow CC to be a program name with arguments.
5882compiler=$CC
5883
5884
5885# Check for command to grab the raw symbol name followed by C symbol from nm.
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5887$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5888if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5889  $as_echo_n "(cached) " >&6
5890else
5891
5892# These are sane defaults that work on at least a few old systems.
5893# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5894
5895# Character class describing NM global symbol codes.
5896symcode='[BCDEGRST]'
5897
5898# Regexp to match symbols that can be accessed directly from C.
5899sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5900
5901# Define system-specific variables.
5902case $host_os in
5903aix*)
5904  symcode='[BCDT]'
5905  ;;
5906cygwin* | mingw* | pw32* | cegcc*)
5907  symcode='[ABCDGISTW]'
5908  ;;
5909hpux*)
5910  if test ia64 = "$host_cpu"; then
5911    symcode='[ABCDEGRST]'
5912  fi
5913  ;;
5914irix* | nonstopux*)
5915  symcode='[BCDEGRST]'
5916  ;;
5917osf*)
5918  symcode='[BCDEGQRST]'
5919  ;;
5920solaris*)
5921  symcode='[BDRT]'
5922  ;;
5923sco3.2v5*)
5924  symcode='[DT]'
5925  ;;
5926sysv4.2uw2*)
5927  symcode='[DT]'
5928  ;;
5929sysv5* | sco5v6* | unixware* | OpenUNIX*)
5930  symcode='[ABDT]'
5931  ;;
5932sysv4)
5933  symcode='[DFNSTU]'
5934  ;;
5935esac
5936
5937# If we're using GNU nm, then use its standard symbol codes.
5938case `$NM -V 2>&1` in
5939*GNU* | *'with BFD'*)
5940  symcode='[ABCDGIRSTW]' ;;
5941esac
5942
5943if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5944  # Gets list of data symbols to import.
5945  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5946  # Adjust the below global symbol transforms to fixup imported variables.
5947  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5948  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
5949  lt_c_name_lib_hook="\
5950  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
5951  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
5952else
5953  # Disable hooks by default.
5954  lt_cv_sys_global_symbol_to_import=
5955  lt_cdecl_hook=
5956  lt_c_name_hook=
5957  lt_c_name_lib_hook=
5958fi
5959
5960# Transform an extracted symbol line into a proper C declaration.
5961# Some systems (esp. on ia64) link data and code symbols differently,
5962# so use this general approach.
5963lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5964$lt_cdecl_hook\
5965" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5966" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5967
5968# Transform an extracted symbol line into symbol name and symbol address
5969lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5970$lt_c_name_hook\
5971" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5972" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
5973
5974# Transform an extracted symbol line into symbol name with lib prefix and
5975# symbol address.
5976lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5977$lt_c_name_lib_hook\
5978" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5979" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
5980" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
5981
5982# Handle CRLF in mingw tool chain
5983opt_cr=
5984case $build_os in
5985mingw*)
5986  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5987  ;;
5988esac
5989
5990# Try without a prefix underscore, then with it.
5991for ac_symprfx in "" "_"; do
5992
5993  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5994  symxfrm="\\1 $ac_symprfx\\2 \\2"
5995
5996  # Write the raw and C identifiers.
5997  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5998    # Fake it for dumpbin and say T for any non-static function,
5999    # D for any global variable and I for any imported variable.
6000    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6001    # which start with @ or ?.
6002    lt_cv_sys_global_symbol_pipe="$AWK '"\
6003"     {last_section=section; section=\$ 3};"\
6004"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6005"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6006"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6007"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6008"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6009"     \$ 0!~/External *\|/{next};"\
6010"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6011"     {if(hide[section]) next};"\
6012"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6013"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6014"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6015"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6016"     ' prfx=^$ac_symprfx"
6017  else
6018    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6019  fi
6020  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6021
6022  # Check to see that the pipe works correctly.
6023  pipe_works=no
6024
6025  rm -f conftest*
6026  cat > conftest.$ac_ext <<_LT_EOF
6027#ifdef __cplusplus
6028extern "C" {
6029#endif
6030char nm_test_var;
6031void nm_test_func(void);
6032void nm_test_func(void){}
6033#ifdef __cplusplus
6034}
6035#endif
6036int main(){nm_test_var='a';nm_test_func();return(0);}
6037_LT_EOF
6038
6039  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6040  (eval $ac_compile) 2>&5
6041  ac_status=$?
6042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6043  test $ac_status = 0; }; then
6044    # Now try to grab the symbols.
6045    nlist=conftest.nm
6046    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6047  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6048  ac_status=$?
6049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6050  test $ac_status = 0; } && test -s "$nlist"; then
6051      # Try sorting and uniquifying the output.
6052      if sort "$nlist" | uniq > "$nlist"T; then
6053	mv -f "$nlist"T "$nlist"
6054      else
6055	rm -f "$nlist"T
6056      fi
6057
6058      # Make sure that we snagged all the symbols we need.
6059      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6060	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6061	  cat <<_LT_EOF > conftest.$ac_ext
6062/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6063#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6064/* DATA imports from DLLs on WIN32 can't be const, because runtime
6065   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6066# define LT_DLSYM_CONST
6067#elif defined __osf__
6068/* This system does not cope well with relocations in const data.  */
6069# define LT_DLSYM_CONST
6070#else
6071# define LT_DLSYM_CONST const
6072#endif
6073
6074#ifdef __cplusplus
6075extern "C" {
6076#endif
6077
6078_LT_EOF
6079	  # Now generate the symbol file.
6080	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6081
6082	  cat <<_LT_EOF >> conftest.$ac_ext
6083
6084/* The mapping between symbol names and symbols.  */
6085LT_DLSYM_CONST struct {
6086  const char *name;
6087  void       *address;
6088}
6089lt__PROGRAM__LTX_preloaded_symbols[] =
6090{
6091  { "@PROGRAM@", (void *) 0 },
6092_LT_EOF
6093	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6094	  cat <<\_LT_EOF >> conftest.$ac_ext
6095  {0, (void *) 0}
6096};
6097
6098/* This works around a problem in FreeBSD linker */
6099#ifdef FREEBSD_WORKAROUND
6100static const void *lt_preloaded_setup() {
6101  return lt__PROGRAM__LTX_preloaded_symbols;
6102}
6103#endif
6104
6105#ifdef __cplusplus
6106}
6107#endif
6108_LT_EOF
6109	  # Now try linking the two files.
6110	  mv conftest.$ac_objext conftstm.$ac_objext
6111	  lt_globsym_save_LIBS=$LIBS
6112	  lt_globsym_save_CFLAGS=$CFLAGS
6113	  LIBS=conftstm.$ac_objext
6114	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6115	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6116  (eval $ac_link) 2>&5
6117  ac_status=$?
6118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6119  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6120	    pipe_works=yes
6121	  fi
6122	  LIBS=$lt_globsym_save_LIBS
6123	  CFLAGS=$lt_globsym_save_CFLAGS
6124	else
6125	  echo "cannot find nm_test_func in $nlist" >&5
6126	fi
6127      else
6128	echo "cannot find nm_test_var in $nlist" >&5
6129      fi
6130    else
6131      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6132    fi
6133  else
6134    echo "$progname: failed program was:" >&5
6135    cat conftest.$ac_ext >&5
6136  fi
6137  rm -rf conftest* conftst*
6138
6139  # Do not use the global_symbol_pipe unless it works.
6140  if test yes = "$pipe_works"; then
6141    break
6142  else
6143    lt_cv_sys_global_symbol_pipe=
6144  fi
6145done
6146
6147fi
6148
6149if test -z "$lt_cv_sys_global_symbol_pipe"; then
6150  lt_cv_sys_global_symbol_to_cdecl=
6151fi
6152if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6154$as_echo "failed" >&6; }
6155else
6156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6157$as_echo "ok" >&6; }
6158fi
6159
6160# Response file support.
6161if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6162  nm_file_list_spec='@'
6163elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6164  nm_file_list_spec='@'
6165fi
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6204$as_echo_n "checking for sysroot... " >&6; }
6205
6206# Check whether --with-sysroot was given.
6207if test "${with_sysroot+set}" = set; then :
6208  withval=$with_sysroot;
6209else
6210  with_sysroot=no
6211fi
6212
6213
6214lt_sysroot=
6215case $with_sysroot in #(
6216 yes)
6217   if test yes = "$GCC"; then
6218     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6219   fi
6220   ;; #(
6221 /*)
6222   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6223   ;; #(
6224 no|'')
6225   ;; #(
6226 *)
6227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6228$as_echo "$with_sysroot" >&6; }
6229   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6230   ;;
6231esac
6232
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6234$as_echo "${lt_sysroot:-no}" >&6; }
6235
6236
6237
6238
6239
6240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6241$as_echo_n "checking for a working dd... " >&6; }
6242if ${ac_cv_path_lt_DD+:} false; then :
6243  $as_echo_n "(cached) " >&6
6244else
6245  printf 0123456789abcdef0123456789abcdef >conftest.i
6246cat conftest.i conftest.i >conftest2.i
6247: ${lt_DD:=$DD}
6248if test -z "$lt_DD"; then
6249  ac_path_lt_DD_found=false
6250  # Loop through the user's path and test for each of PROGNAME-LIST
6251  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252for as_dir in $PATH
6253do
6254  IFS=$as_save_IFS
6255  test -z "$as_dir" && as_dir=.
6256    for ac_prog in dd; do
6257    for ac_exec_ext in '' $ac_executable_extensions; do
6258      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6259      as_fn_executable_p "$ac_path_lt_DD" || continue
6260if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6261  cmp -s conftest.i conftest.out \
6262  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6263fi
6264      $ac_path_lt_DD_found && break 3
6265    done
6266  done
6267  done
6268IFS=$as_save_IFS
6269  if test -z "$ac_cv_path_lt_DD"; then
6270    :
6271  fi
6272else
6273  ac_cv_path_lt_DD=$lt_DD
6274fi
6275
6276rm -f conftest.i conftest2.i conftest.out
6277fi
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6279$as_echo "$ac_cv_path_lt_DD" >&6; }
6280
6281
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6283$as_echo_n "checking how to truncate binary pipes... " >&6; }
6284if ${lt_cv_truncate_bin+:} false; then :
6285  $as_echo_n "(cached) " >&6
6286else
6287  printf 0123456789abcdef0123456789abcdef >conftest.i
6288cat conftest.i conftest.i >conftest2.i
6289lt_cv_truncate_bin=
6290if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6291  cmp -s conftest.i conftest.out \
6292  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6293fi
6294rm -f conftest.i conftest2.i conftest.out
6295test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6296fi
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6298$as_echo "$lt_cv_truncate_bin" >&6; }
6299
6300
6301
6302
6303
6304
6305
6306# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6307func_cc_basename ()
6308{
6309    for cc_temp in $*""; do
6310      case $cc_temp in
6311        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6312        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6313        \-*) ;;
6314        *) break;;
6315      esac
6316    done
6317    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6318}
6319
6320# Check whether --enable-libtool-lock was given.
6321if test "${enable_libtool_lock+set}" = set; then :
6322  enableval=$enable_libtool_lock;
6323fi
6324
6325test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6326
6327# Some flags need to be propagated to the compiler or linker for good
6328# libtool support.
6329case $host in
6330ia64-*-hpux*)
6331  # Find out what ABI is being produced by ac_compile, and set mode
6332  # options accordingly.
6333  echo 'int i;' > conftest.$ac_ext
6334  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6335  (eval $ac_compile) 2>&5
6336  ac_status=$?
6337  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6338  test $ac_status = 0; }; then
6339    case `/usr/bin/file conftest.$ac_objext` in
6340      *ELF-32*)
6341	HPUX_IA64_MODE=32
6342	;;
6343      *ELF-64*)
6344	HPUX_IA64_MODE=64
6345	;;
6346    esac
6347  fi
6348  rm -rf conftest*
6349  ;;
6350*-*-irix6*)
6351  # Find out what ABI is being produced by ac_compile, and set linker
6352  # options accordingly.
6353  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6354  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6355  (eval $ac_compile) 2>&5
6356  ac_status=$?
6357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6358  test $ac_status = 0; }; then
6359    if test yes = "$lt_cv_prog_gnu_ld"; then
6360      case `/usr/bin/file conftest.$ac_objext` in
6361	*32-bit*)
6362	  LD="${LD-ld} -melf32bsmip"
6363	  ;;
6364	*N32*)
6365	  LD="${LD-ld} -melf32bmipn32"
6366	  ;;
6367	*64-bit*)
6368	  LD="${LD-ld} -melf64bmip"
6369	;;
6370      esac
6371    else
6372      case `/usr/bin/file conftest.$ac_objext` in
6373	*32-bit*)
6374	  LD="${LD-ld} -32"
6375	  ;;
6376	*N32*)
6377	  LD="${LD-ld} -n32"
6378	  ;;
6379	*64-bit*)
6380	  LD="${LD-ld} -64"
6381	  ;;
6382      esac
6383    fi
6384  fi
6385  rm -rf conftest*
6386  ;;
6387
6388mips64*-*linux*)
6389  # Find out what ABI is being produced by ac_compile, and set linker
6390  # options accordingly.
6391  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6392  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6393  (eval $ac_compile) 2>&5
6394  ac_status=$?
6395  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6396  test $ac_status = 0; }; then
6397    emul=elf
6398    case `/usr/bin/file conftest.$ac_objext` in
6399      *32-bit*)
6400	emul="${emul}32"
6401	;;
6402      *64-bit*)
6403	emul="${emul}64"
6404	;;
6405    esac
6406    case `/usr/bin/file conftest.$ac_objext` in
6407      *MSB*)
6408	emul="${emul}btsmip"
6409	;;
6410      *LSB*)
6411	emul="${emul}ltsmip"
6412	;;
6413    esac
6414    case `/usr/bin/file conftest.$ac_objext` in
6415      *N32*)
6416	emul="${emul}n32"
6417	;;
6418    esac
6419    LD="${LD-ld} -m $emul"
6420  fi
6421  rm -rf conftest*
6422  ;;
6423
6424x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6425s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6426  # Find out what ABI is being produced by ac_compile, and set linker
6427  # options accordingly.  Note that the listed cases only cover the
6428  # situations where additional linker options are needed (such as when
6429  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6430  # vice versa); the common cases where no linker options are needed do
6431  # not appear in the list.
6432  echo 'int i;' > conftest.$ac_ext
6433  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6434  (eval $ac_compile) 2>&5
6435  ac_status=$?
6436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6437  test $ac_status = 0; }; then
6438    case `/usr/bin/file conftest.o` in
6439      *32-bit*)
6440	case $host in
6441	  x86_64-*kfreebsd*-gnu)
6442	    LD="${LD-ld} -m elf_i386_fbsd"
6443	    ;;
6444	  x86_64-*linux*)
6445	    case `/usr/bin/file conftest.o` in
6446	      *x86-64*)
6447		LD="${LD-ld} -m elf32_x86_64"
6448		;;
6449	      *)
6450		LD="${LD-ld} -m elf_i386"
6451		;;
6452	    esac
6453	    ;;
6454	  powerpc64le-*linux*)
6455	    LD="${LD-ld} -m elf32lppclinux"
6456	    ;;
6457	  powerpc64-*linux*)
6458	    LD="${LD-ld} -m elf32ppclinux"
6459	    ;;
6460	  s390x-*linux*)
6461	    LD="${LD-ld} -m elf_s390"
6462	    ;;
6463	  sparc64-*linux*)
6464	    LD="${LD-ld} -m elf32_sparc"
6465	    ;;
6466	esac
6467	;;
6468      *64-bit*)
6469	case $host in
6470	  x86_64-*kfreebsd*-gnu)
6471	    LD="${LD-ld} -m elf_x86_64_fbsd"
6472	    ;;
6473	  x86_64-*linux*)
6474	    LD="${LD-ld} -m elf_x86_64"
6475	    ;;
6476	  powerpcle-*linux*)
6477	    LD="${LD-ld} -m elf64lppc"
6478	    ;;
6479	  powerpc-*linux*)
6480	    LD="${LD-ld} -m elf64ppc"
6481	    ;;
6482	  s390*-*linux*|s390*-*tpf*)
6483	    LD="${LD-ld} -m elf64_s390"
6484	    ;;
6485	  sparc*-*linux*)
6486	    LD="${LD-ld} -m elf64_sparc"
6487	    ;;
6488	esac
6489	;;
6490    esac
6491  fi
6492  rm -rf conftest*
6493  ;;
6494
6495*-*-sco3.2v5*)
6496  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6497  SAVE_CFLAGS=$CFLAGS
6498  CFLAGS="$CFLAGS -belf"
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6500$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6501if ${lt_cv_cc_needs_belf+:} false; then :
6502  $as_echo_n "(cached) " >&6
6503else
6504  ac_ext=c
6505ac_cpp='$CPP $CPPFLAGS'
6506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6508ac_compiler_gnu=$ac_cv_c_compiler_gnu
6509
6510     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511/* end confdefs.h.  */
6512
6513int
6514main ()
6515{
6516
6517  ;
6518  return 0;
6519}
6520_ACEOF
6521if ac_fn_c_try_link "$LINENO"; then :
6522  lt_cv_cc_needs_belf=yes
6523else
6524  lt_cv_cc_needs_belf=no
6525fi
6526rm -f core conftest.err conftest.$ac_objext \
6527    conftest$ac_exeext conftest.$ac_ext
6528     ac_ext=c
6529ac_cpp='$CPP $CPPFLAGS'
6530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6532ac_compiler_gnu=$ac_cv_c_compiler_gnu
6533
6534fi
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6536$as_echo "$lt_cv_cc_needs_belf" >&6; }
6537  if test yes != "$lt_cv_cc_needs_belf"; then
6538    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6539    CFLAGS=$SAVE_CFLAGS
6540  fi
6541  ;;
6542*-*solaris*)
6543  # Find out what ABI is being produced by ac_compile, and set linker
6544  # options accordingly.
6545  echo 'int i;' > conftest.$ac_ext
6546  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6547  (eval $ac_compile) 2>&5
6548  ac_status=$?
6549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6550  test $ac_status = 0; }; then
6551    case `/usr/bin/file conftest.o` in
6552    *64-bit*)
6553      case $lt_cv_prog_gnu_ld in
6554      yes*)
6555        case $host in
6556        i?86-*-solaris*|x86_64-*-solaris*)
6557          LD="${LD-ld} -m elf_x86_64"
6558          ;;
6559        sparc*-*-solaris*)
6560          LD="${LD-ld} -m elf64_sparc"
6561          ;;
6562        esac
6563        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6564        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6565          LD=${LD-ld}_sol2
6566        fi
6567        ;;
6568      *)
6569	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6570	  LD="${LD-ld} -64"
6571	fi
6572	;;
6573      esac
6574      ;;
6575    esac
6576  fi
6577  rm -rf conftest*
6578  ;;
6579esac
6580
6581need_locks=$enable_libtool_lock
6582
6583if test -n "$ac_tool_prefix"; then
6584  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6585set dummy ${ac_tool_prefix}mt; ac_word=$2
6586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587$as_echo_n "checking for $ac_word... " >&6; }
6588if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6589  $as_echo_n "(cached) " >&6
6590else
6591  if test -n "$MANIFEST_TOOL"; then
6592  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6593else
6594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595for as_dir in $PATH
6596do
6597  IFS=$as_save_IFS
6598  test -z "$as_dir" && as_dir=.
6599    for ac_exec_ext in '' $ac_executable_extensions; do
6600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6601    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6603    break 2
6604  fi
6605done
6606  done
6607IFS=$as_save_IFS
6608
6609fi
6610fi
6611MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6612if test -n "$MANIFEST_TOOL"; then
6613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6614$as_echo "$MANIFEST_TOOL" >&6; }
6615else
6616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617$as_echo "no" >&6; }
6618fi
6619
6620
6621fi
6622if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6623  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6624  # Extract the first word of "mt", so it can be a program name with args.
6625set dummy mt; ac_word=$2
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627$as_echo_n "checking for $ac_word... " >&6; }
6628if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6629  $as_echo_n "(cached) " >&6
6630else
6631  if test -n "$ac_ct_MANIFEST_TOOL"; then
6632  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6633else
6634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637  IFS=$as_save_IFS
6638  test -z "$as_dir" && as_dir=.
6639    for ac_exec_ext in '' $ac_executable_extensions; do
6640  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6641    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643    break 2
6644  fi
6645done
6646  done
6647IFS=$as_save_IFS
6648
6649fi
6650fi
6651ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6652if test -n "$ac_ct_MANIFEST_TOOL"; then
6653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6654$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6655else
6656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657$as_echo "no" >&6; }
6658fi
6659
6660  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6661    MANIFEST_TOOL=":"
6662  else
6663    case $cross_compiling:$ac_tool_warned in
6664yes:)
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6666$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6667ac_tool_warned=yes ;;
6668esac
6669    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6670  fi
6671else
6672  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6673fi
6674
6675test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6677$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6678if ${lt_cv_path_mainfest_tool+:} false; then :
6679  $as_echo_n "(cached) " >&6
6680else
6681  lt_cv_path_mainfest_tool=no
6682  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6683  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6684  cat conftest.err >&5
6685  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6686    lt_cv_path_mainfest_tool=yes
6687  fi
6688  rm -f conftest*
6689fi
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6691$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6692if test yes != "$lt_cv_path_mainfest_tool"; then
6693  MANIFEST_TOOL=:
6694fi
6695
6696
6697
6698
6699
6700
6701  case $host_os in
6702    rhapsody* | darwin*)
6703    if test -n "$ac_tool_prefix"; then
6704  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6705set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707$as_echo_n "checking for $ac_word... " >&6; }
6708if ${ac_cv_prog_DSYMUTIL+:} false; then :
6709  $as_echo_n "(cached) " >&6
6710else
6711  if test -n "$DSYMUTIL"; then
6712  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6713else
6714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715for as_dir in $PATH
6716do
6717  IFS=$as_save_IFS
6718  test -z "$as_dir" && as_dir=.
6719    for ac_exec_ext in '' $ac_executable_extensions; do
6720  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6721    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6722    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723    break 2
6724  fi
6725done
6726  done
6727IFS=$as_save_IFS
6728
6729fi
6730fi
6731DSYMUTIL=$ac_cv_prog_DSYMUTIL
6732if test -n "$DSYMUTIL"; then
6733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6734$as_echo "$DSYMUTIL" >&6; }
6735else
6736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737$as_echo "no" >&6; }
6738fi
6739
6740
6741fi
6742if test -z "$ac_cv_prog_DSYMUTIL"; then
6743  ac_ct_DSYMUTIL=$DSYMUTIL
6744  # Extract the first word of "dsymutil", so it can be a program name with args.
6745set dummy dsymutil; ac_word=$2
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747$as_echo_n "checking for $ac_word... " >&6; }
6748if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6749  $as_echo_n "(cached) " >&6
6750else
6751  if test -n "$ac_ct_DSYMUTIL"; then
6752  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6753else
6754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755for as_dir in $PATH
6756do
6757  IFS=$as_save_IFS
6758  test -z "$as_dir" && as_dir=.
6759    for ac_exec_ext in '' $ac_executable_extensions; do
6760  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6761    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763    break 2
6764  fi
6765done
6766  done
6767IFS=$as_save_IFS
6768
6769fi
6770fi
6771ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6772if test -n "$ac_ct_DSYMUTIL"; then
6773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6774$as_echo "$ac_ct_DSYMUTIL" >&6; }
6775else
6776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777$as_echo "no" >&6; }
6778fi
6779
6780  if test "x$ac_ct_DSYMUTIL" = x; then
6781    DSYMUTIL=":"
6782  else
6783    case $cross_compiling:$ac_tool_warned in
6784yes:)
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6787ac_tool_warned=yes ;;
6788esac
6789    DSYMUTIL=$ac_ct_DSYMUTIL
6790  fi
6791else
6792  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6793fi
6794
6795    if test -n "$ac_tool_prefix"; then
6796  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6797set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799$as_echo_n "checking for $ac_word... " >&6; }
6800if ${ac_cv_prog_NMEDIT+:} false; then :
6801  $as_echo_n "(cached) " >&6
6802else
6803  if test -n "$NMEDIT"; then
6804  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6805else
6806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807for as_dir in $PATH
6808do
6809  IFS=$as_save_IFS
6810  test -z "$as_dir" && as_dir=.
6811    for ac_exec_ext in '' $ac_executable_extensions; do
6812  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815    break 2
6816  fi
6817done
6818  done
6819IFS=$as_save_IFS
6820
6821fi
6822fi
6823NMEDIT=$ac_cv_prog_NMEDIT
6824if test -n "$NMEDIT"; then
6825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6826$as_echo "$NMEDIT" >&6; }
6827else
6828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829$as_echo "no" >&6; }
6830fi
6831
6832
6833fi
6834if test -z "$ac_cv_prog_NMEDIT"; then
6835  ac_ct_NMEDIT=$NMEDIT
6836  # Extract the first word of "nmedit", so it can be a program name with args.
6837set dummy nmedit; ac_word=$2
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839$as_echo_n "checking for $ac_word... " >&6; }
6840if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6841  $as_echo_n "(cached) " >&6
6842else
6843  if test -n "$ac_ct_NMEDIT"; then
6844  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6845else
6846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847for as_dir in $PATH
6848do
6849  IFS=$as_save_IFS
6850  test -z "$as_dir" && as_dir=.
6851    for ac_exec_ext in '' $ac_executable_extensions; do
6852  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6853    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6854    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855    break 2
6856  fi
6857done
6858  done
6859IFS=$as_save_IFS
6860
6861fi
6862fi
6863ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6864if test -n "$ac_ct_NMEDIT"; then
6865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6866$as_echo "$ac_ct_NMEDIT" >&6; }
6867else
6868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869$as_echo "no" >&6; }
6870fi
6871
6872  if test "x$ac_ct_NMEDIT" = x; then
6873    NMEDIT=":"
6874  else
6875    case $cross_compiling:$ac_tool_warned in
6876yes:)
6877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6879ac_tool_warned=yes ;;
6880esac
6881    NMEDIT=$ac_ct_NMEDIT
6882  fi
6883else
6884  NMEDIT="$ac_cv_prog_NMEDIT"
6885fi
6886
6887    if test -n "$ac_tool_prefix"; then
6888  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6889set dummy ${ac_tool_prefix}lipo; ac_word=$2
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891$as_echo_n "checking for $ac_word... " >&6; }
6892if ${ac_cv_prog_LIPO+:} false; then :
6893  $as_echo_n "(cached) " >&6
6894else
6895  if test -n "$LIPO"; then
6896  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6897else
6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901  IFS=$as_save_IFS
6902  test -z "$as_dir" && as_dir=.
6903    for ac_exec_ext in '' $ac_executable_extensions; do
6904  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6905    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907    break 2
6908  fi
6909done
6910  done
6911IFS=$as_save_IFS
6912
6913fi
6914fi
6915LIPO=$ac_cv_prog_LIPO
6916if test -n "$LIPO"; then
6917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6918$as_echo "$LIPO" >&6; }
6919else
6920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921$as_echo "no" >&6; }
6922fi
6923
6924
6925fi
6926if test -z "$ac_cv_prog_LIPO"; then
6927  ac_ct_LIPO=$LIPO
6928  # Extract the first word of "lipo", so it can be a program name with args.
6929set dummy lipo; ac_word=$2
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931$as_echo_n "checking for $ac_word... " >&6; }
6932if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6933  $as_echo_n "(cached) " >&6
6934else
6935  if test -n "$ac_ct_LIPO"; then
6936  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6937else
6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939for as_dir in $PATH
6940do
6941  IFS=$as_save_IFS
6942  test -z "$as_dir" && as_dir=.
6943    for ac_exec_ext in '' $ac_executable_extensions; do
6944  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6945    ac_cv_prog_ac_ct_LIPO="lipo"
6946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947    break 2
6948  fi
6949done
6950  done
6951IFS=$as_save_IFS
6952
6953fi
6954fi
6955ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6956if test -n "$ac_ct_LIPO"; then
6957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6958$as_echo "$ac_ct_LIPO" >&6; }
6959else
6960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961$as_echo "no" >&6; }
6962fi
6963
6964  if test "x$ac_ct_LIPO" = x; then
6965    LIPO=":"
6966  else
6967    case $cross_compiling:$ac_tool_warned in
6968yes:)
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6971ac_tool_warned=yes ;;
6972esac
6973    LIPO=$ac_ct_LIPO
6974  fi
6975else
6976  LIPO="$ac_cv_prog_LIPO"
6977fi
6978
6979    if test -n "$ac_tool_prefix"; then
6980  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6981set dummy ${ac_tool_prefix}otool; ac_word=$2
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983$as_echo_n "checking for $ac_word... " >&6; }
6984if ${ac_cv_prog_OTOOL+:} false; then :
6985  $as_echo_n "(cached) " >&6
6986else
6987  if test -n "$OTOOL"; then
6988  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6989else
6990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993  IFS=$as_save_IFS
6994  test -z "$as_dir" && as_dir=.
6995    for ac_exec_ext in '' $ac_executable_extensions; do
6996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6997    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6999    break 2
7000  fi
7001done
7002  done
7003IFS=$as_save_IFS
7004
7005fi
7006fi
7007OTOOL=$ac_cv_prog_OTOOL
7008if test -n "$OTOOL"; then
7009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7010$as_echo "$OTOOL" >&6; }
7011else
7012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013$as_echo "no" >&6; }
7014fi
7015
7016
7017fi
7018if test -z "$ac_cv_prog_OTOOL"; then
7019  ac_ct_OTOOL=$OTOOL
7020  # Extract the first word of "otool", so it can be a program name with args.
7021set dummy otool; ac_word=$2
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023$as_echo_n "checking for $ac_word... " >&6; }
7024if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7025  $as_echo_n "(cached) " >&6
7026else
7027  if test -n "$ac_ct_OTOOL"; then
7028  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7029else
7030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031for as_dir in $PATH
7032do
7033  IFS=$as_save_IFS
7034  test -z "$as_dir" && as_dir=.
7035    for ac_exec_ext in '' $ac_executable_extensions; do
7036  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7037    ac_cv_prog_ac_ct_OTOOL="otool"
7038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039    break 2
7040  fi
7041done
7042  done
7043IFS=$as_save_IFS
7044
7045fi
7046fi
7047ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7048if test -n "$ac_ct_OTOOL"; then
7049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7050$as_echo "$ac_ct_OTOOL" >&6; }
7051else
7052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053$as_echo "no" >&6; }
7054fi
7055
7056  if test "x$ac_ct_OTOOL" = x; then
7057    OTOOL=":"
7058  else
7059    case $cross_compiling:$ac_tool_warned in
7060yes:)
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7063ac_tool_warned=yes ;;
7064esac
7065    OTOOL=$ac_ct_OTOOL
7066  fi
7067else
7068  OTOOL="$ac_cv_prog_OTOOL"
7069fi
7070
7071    if test -n "$ac_tool_prefix"; then
7072  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7073set dummy ${ac_tool_prefix}otool64; ac_word=$2
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075$as_echo_n "checking for $ac_word... " >&6; }
7076if ${ac_cv_prog_OTOOL64+:} false; then :
7077  $as_echo_n "(cached) " >&6
7078else
7079  if test -n "$OTOOL64"; then
7080  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7081else
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085  IFS=$as_save_IFS
7086  test -z "$as_dir" && as_dir=.
7087    for ac_exec_ext in '' $ac_executable_extensions; do
7088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7089    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091    break 2
7092  fi
7093done
7094  done
7095IFS=$as_save_IFS
7096
7097fi
7098fi
7099OTOOL64=$ac_cv_prog_OTOOL64
7100if test -n "$OTOOL64"; then
7101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7102$as_echo "$OTOOL64" >&6; }
7103else
7104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105$as_echo "no" >&6; }
7106fi
7107
7108
7109fi
7110if test -z "$ac_cv_prog_OTOOL64"; then
7111  ac_ct_OTOOL64=$OTOOL64
7112  # Extract the first word of "otool64", so it can be a program name with args.
7113set dummy otool64; ac_word=$2
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115$as_echo_n "checking for $ac_word... " >&6; }
7116if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7117  $as_echo_n "(cached) " >&6
7118else
7119  if test -n "$ac_ct_OTOOL64"; then
7120  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7121else
7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123for as_dir in $PATH
7124do
7125  IFS=$as_save_IFS
7126  test -z "$as_dir" && as_dir=.
7127    for ac_exec_ext in '' $ac_executable_extensions; do
7128  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7129    ac_cv_prog_ac_ct_OTOOL64="otool64"
7130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131    break 2
7132  fi
7133done
7134  done
7135IFS=$as_save_IFS
7136
7137fi
7138fi
7139ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7140if test -n "$ac_ct_OTOOL64"; then
7141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7142$as_echo "$ac_ct_OTOOL64" >&6; }
7143else
7144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145$as_echo "no" >&6; }
7146fi
7147
7148  if test "x$ac_ct_OTOOL64" = x; then
7149    OTOOL64=":"
7150  else
7151    case $cross_compiling:$ac_tool_warned in
7152yes:)
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7155ac_tool_warned=yes ;;
7156esac
7157    OTOOL64=$ac_ct_OTOOL64
7158  fi
7159else
7160  OTOOL64="$ac_cv_prog_OTOOL64"
7161fi
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7190$as_echo_n "checking for -single_module linker flag... " >&6; }
7191if ${lt_cv_apple_cc_single_mod+:} false; then :
7192  $as_echo_n "(cached) " >&6
7193else
7194  lt_cv_apple_cc_single_mod=no
7195      if test -z "$LT_MULTI_MODULE"; then
7196	# By default we will add the -single_module flag. You can override
7197	# by either setting the environment variable LT_MULTI_MODULE
7198	# non-empty at configure time, or by adding -multi_module to the
7199	# link flags.
7200	rm -rf libconftest.dylib*
7201	echo "int foo(void){return 1;}" > conftest.c
7202	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7203-dynamiclib -Wl,-single_module conftest.c" >&5
7204	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7205	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7206        _lt_result=$?
7207	# If there is a non-empty error log, and "single_module"
7208	# appears in it, assume the flag caused a linker warning
7209        if test -s conftest.err && $GREP single_module conftest.err; then
7210	  cat conftest.err >&5
7211	# Otherwise, if the output was created with a 0 exit code from
7212	# the compiler, it worked.
7213	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7214	  lt_cv_apple_cc_single_mod=yes
7215	else
7216	  cat conftest.err >&5
7217	fi
7218	rm -rf libconftest.dylib*
7219	rm -f conftest.*
7220      fi
7221fi
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7223$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7224
7225    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7226$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7227if ${lt_cv_ld_exported_symbols_list+:} false; then :
7228  $as_echo_n "(cached) " >&6
7229else
7230  lt_cv_ld_exported_symbols_list=no
7231      save_LDFLAGS=$LDFLAGS
7232      echo "_main" > conftest.sym
7233      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7234      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235/* end confdefs.h.  */
7236
7237int
7238main ()
7239{
7240
7241  ;
7242  return 0;
7243}
7244_ACEOF
7245if ac_fn_c_try_link "$LINENO"; then :
7246  lt_cv_ld_exported_symbols_list=yes
7247else
7248  lt_cv_ld_exported_symbols_list=no
7249fi
7250rm -f core conftest.err conftest.$ac_objext \
7251    conftest$ac_exeext conftest.$ac_ext
7252	LDFLAGS=$save_LDFLAGS
7253
7254fi
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7256$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7257
7258    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7259$as_echo_n "checking for -force_load linker flag... " >&6; }
7260if ${lt_cv_ld_force_load+:} false; then :
7261  $as_echo_n "(cached) " >&6
7262else
7263  lt_cv_ld_force_load=no
7264      cat > conftest.c << _LT_EOF
7265int forced_loaded() { return 2;}
7266_LT_EOF
7267      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7268      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7269      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
7270      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
7271      echo "$RANLIB libconftest.a" >&5
7272      $RANLIB libconftest.a 2>&5
7273      cat > conftest.c << _LT_EOF
7274int main() { return 0;}
7275_LT_EOF
7276      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7277      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7278      _lt_result=$?
7279      if test -s conftest.err && $GREP force_load conftest.err; then
7280	cat conftest.err >&5
7281      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7282	lt_cv_ld_force_load=yes
7283      else
7284	cat conftest.err >&5
7285      fi
7286        rm -f conftest.err libconftest.a conftest conftest.c
7287        rm -rf conftest.dSYM
7288
7289fi
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7291$as_echo "$lt_cv_ld_force_load" >&6; }
7292    case $host_os in
7293    rhapsody* | darwin1.[012])
7294      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7295    darwin1.*)
7296      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7297    darwin*) # darwin 5.x on
7298      # if running on 10.5 or later, the deployment target defaults
7299      # to the OS version, if on x86, and 10.4, the deployment
7300      # target defaults to 10.4. Don't you love it?
7301      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7302	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7303	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7304	10.[012][,.]*)
7305	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7306	10.*)
7307	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7308      esac
7309    ;;
7310  esac
7311    if test yes = "$lt_cv_apple_cc_single_mod"; then
7312      _lt_dar_single_mod='$single_module'
7313    fi
7314    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7315      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7316    else
7317      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7318    fi
7319    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7320      _lt_dsymutil='~$DSYMUTIL $lib || :'
7321    else
7322      _lt_dsymutil=
7323    fi
7324    ;;
7325  esac
7326
7327# func_munge_path_list VARIABLE PATH
7328# -----------------------------------
7329# VARIABLE is name of variable containing _space_ separated list of
7330# directories to be munged by the contents of PATH, which is string
7331# having a format:
7332# "DIR[:DIR]:"
7333#       string "DIR[ DIR]" will be prepended to VARIABLE
7334# ":DIR[:DIR]"
7335#       string "DIR[ DIR]" will be appended to VARIABLE
7336# "DIRP[:DIRP]::[DIRA:]DIRA"
7337#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7338#       "DIRA[ DIRA]" will be appended to VARIABLE
7339# "DIR[:DIR]"
7340#       VARIABLE will be replaced by "DIR[ DIR]"
7341func_munge_path_list ()
7342{
7343    case x$2 in
7344    x)
7345        ;;
7346    *:)
7347        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7348        ;;
7349    x:*)
7350        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7351        ;;
7352    *::*)
7353        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7354        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7355        ;;
7356    *)
7357        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7358        ;;
7359    esac
7360}
7361
7362ac_ext=c
7363ac_cpp='$CPP $CPPFLAGS'
7364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7366ac_compiler_gnu=$ac_cv_c_compiler_gnu
7367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7368$as_echo_n "checking how to run the C preprocessor... " >&6; }
7369# On Suns, sometimes $CPP names a directory.
7370if test -n "$CPP" && test -d "$CPP"; then
7371  CPP=
7372fi
7373if test -z "$CPP"; then
7374  if ${ac_cv_prog_CPP+:} false; then :
7375  $as_echo_n "(cached) " >&6
7376else
7377      # Double quotes because CPP needs to be expanded
7378    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7379    do
7380      ac_preproc_ok=false
7381for ac_c_preproc_warn_flag in '' yes
7382do
7383  # Use a header file that comes with gcc, so configuring glibc
7384  # with a fresh cross-compiler works.
7385  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7386  # <limits.h> exists even on freestanding compilers.
7387  # On the NeXT, cc -E runs the code through the compiler's parser,
7388  # not just through cpp. "Syntax error" is here to catch this case.
7389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390/* end confdefs.h.  */
7391#ifdef __STDC__
7392# include <limits.h>
7393#else
7394# include <assert.h>
7395#endif
7396		     Syntax error
7397_ACEOF
7398if ac_fn_c_try_cpp "$LINENO"; then :
7399
7400else
7401  # Broken: fails on valid input.
7402continue
7403fi
7404rm -f conftest.err conftest.i conftest.$ac_ext
7405
7406  # OK, works on sane cases.  Now check whether nonexistent headers
7407  # can be detected and how.
7408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409/* end confdefs.h.  */
7410#include <ac_nonexistent.h>
7411_ACEOF
7412if ac_fn_c_try_cpp "$LINENO"; then :
7413  # Broken: success on invalid input.
7414continue
7415else
7416  # Passes both tests.
7417ac_preproc_ok=:
7418break
7419fi
7420rm -f conftest.err conftest.i conftest.$ac_ext
7421
7422done
7423# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7424rm -f conftest.i conftest.err conftest.$ac_ext
7425if $ac_preproc_ok; then :
7426  break
7427fi
7428
7429    done
7430    ac_cv_prog_CPP=$CPP
7431
7432fi
7433  CPP=$ac_cv_prog_CPP
7434else
7435  ac_cv_prog_CPP=$CPP
7436fi
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7438$as_echo "$CPP" >&6; }
7439ac_preproc_ok=false
7440for ac_c_preproc_warn_flag in '' yes
7441do
7442  # Use a header file that comes with gcc, so configuring glibc
7443  # with a fresh cross-compiler works.
7444  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7445  # <limits.h> exists even on freestanding compilers.
7446  # On the NeXT, cc -E runs the code through the compiler's parser,
7447  # not just through cpp. "Syntax error" is here to catch this case.
7448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449/* end confdefs.h.  */
7450#ifdef __STDC__
7451# include <limits.h>
7452#else
7453# include <assert.h>
7454#endif
7455		     Syntax error
7456_ACEOF
7457if ac_fn_c_try_cpp "$LINENO"; then :
7458
7459else
7460  # Broken: fails on valid input.
7461continue
7462fi
7463rm -f conftest.err conftest.i conftest.$ac_ext
7464
7465  # OK, works on sane cases.  Now check whether nonexistent headers
7466  # can be detected and how.
7467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468/* end confdefs.h.  */
7469#include <ac_nonexistent.h>
7470_ACEOF
7471if ac_fn_c_try_cpp "$LINENO"; then :
7472  # Broken: success on invalid input.
7473continue
7474else
7475  # Passes both tests.
7476ac_preproc_ok=:
7477break
7478fi
7479rm -f conftest.err conftest.i conftest.$ac_ext
7480
7481done
7482# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7483rm -f conftest.i conftest.err conftest.$ac_ext
7484if $ac_preproc_ok; then :
7485
7486else
7487  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7489as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7490See \`config.log' for more details" "$LINENO" 5; }
7491fi
7492
7493ac_ext=c
7494ac_cpp='$CPP $CPPFLAGS'
7495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7497ac_compiler_gnu=$ac_cv_c_compiler_gnu
7498
7499
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7501$as_echo_n "checking for ANSI C header files... " >&6; }
7502if ${ac_cv_header_stdc+:} false; then :
7503  $as_echo_n "(cached) " >&6
7504else
7505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506/* end confdefs.h.  */
7507#include <stdlib.h>
7508#include <stdarg.h>
7509#include <string.h>
7510#include <float.h>
7511
7512int
7513main ()
7514{
7515
7516  ;
7517  return 0;
7518}
7519_ACEOF
7520if ac_fn_c_try_compile "$LINENO"; then :
7521  ac_cv_header_stdc=yes
7522else
7523  ac_cv_header_stdc=no
7524fi
7525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526
7527if test $ac_cv_header_stdc = yes; then
7528  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530/* end confdefs.h.  */
7531#include <string.h>
7532
7533_ACEOF
7534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7535  $EGREP "memchr" >/dev/null 2>&1; then :
7536
7537else
7538  ac_cv_header_stdc=no
7539fi
7540rm -f conftest*
7541
7542fi
7543
7544if test $ac_cv_header_stdc = yes; then
7545  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547/* end confdefs.h.  */
7548#include <stdlib.h>
7549
7550_ACEOF
7551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7552  $EGREP "free" >/dev/null 2>&1; then :
7553
7554else
7555  ac_cv_header_stdc=no
7556fi
7557rm -f conftest*
7558
7559fi
7560
7561if test $ac_cv_header_stdc = yes; then
7562  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7563  if test "$cross_compiling" = yes; then :
7564  :
7565else
7566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567/* end confdefs.h.  */
7568#include <ctype.h>
7569#include <stdlib.h>
7570#if ((' ' & 0x0FF) == 0x020)
7571# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7572# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7573#else
7574# define ISLOWER(c) \
7575		   (('a' <= (c) && (c) <= 'i') \
7576		     || ('j' <= (c) && (c) <= 'r') \
7577		     || ('s' <= (c) && (c) <= 'z'))
7578# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7579#endif
7580
7581#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7582int
7583main ()
7584{
7585  int i;
7586  for (i = 0; i < 256; i++)
7587    if (XOR (islower (i), ISLOWER (i))
7588	|| toupper (i) != TOUPPER (i))
7589      return 2;
7590  return 0;
7591}
7592_ACEOF
7593if ac_fn_c_try_run "$LINENO"; then :
7594
7595else
7596  ac_cv_header_stdc=no
7597fi
7598rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7599  conftest.$ac_objext conftest.beam conftest.$ac_ext
7600fi
7601
7602fi
7603fi
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7605$as_echo "$ac_cv_header_stdc" >&6; }
7606if test $ac_cv_header_stdc = yes; then
7607
7608$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7609
7610fi
7611
7612# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7613for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7614		  inttypes.h stdint.h unistd.h
7615do :
7616  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7617ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7618"
7619if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7620  cat >>confdefs.h <<_ACEOF
7621#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7622_ACEOF
7623
7624fi
7625
7626done
7627
7628
7629for ac_header in dlfcn.h
7630do :
7631  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7632"
7633if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7634  cat >>confdefs.h <<_ACEOF
7635#define HAVE_DLFCN_H 1
7636_ACEOF
7637
7638fi
7639
7640done
7641
7642
7643
7644
7645
7646# Set options
7647
7648
7649
7650        enable_dlopen=no
7651
7652
7653  enable_win32_dll=no
7654
7655
7656            # Check whether --enable-shared was given.
7657if test "${enable_shared+set}" = set; then :
7658  enableval=$enable_shared; p=${PACKAGE-default}
7659    case $enableval in
7660    yes) enable_shared=yes ;;
7661    no) enable_shared=no ;;
7662    *)
7663      enable_shared=no
7664      # Look at the argument we got.  We use all the common list separators.
7665      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7666      for pkg in $enableval; do
7667	IFS=$lt_save_ifs
7668	if test "X$pkg" = "X$p"; then
7669	  enable_shared=yes
7670	fi
7671      done
7672      IFS=$lt_save_ifs
7673      ;;
7674    esac
7675else
7676  enable_shared=yes
7677fi
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689# Check whether --with-pic was given.
7690if test "${with_pic+set}" = set; then :
7691  withval=$with_pic; lt_p=${PACKAGE-default}
7692    case $withval in
7693    yes|no) pic_mode=$withval ;;
7694    *)
7695      pic_mode=default
7696      # Look at the argument we got.  We use all the common list separators.
7697      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7698      for lt_pkg in $withval; do
7699	IFS=$lt_save_ifs
7700	if test "X$lt_pkg" = "X$lt_p"; then
7701	  pic_mode=yes
7702	fi
7703      done
7704      IFS=$lt_save_ifs
7705      ;;
7706    esac
7707else
7708  pic_mode=default
7709fi
7710
7711
7712
7713
7714
7715
7716
7717
7718  # Check whether --enable-fast-install was given.
7719if test "${enable_fast_install+set}" = set; then :
7720  enableval=$enable_fast_install; p=${PACKAGE-default}
7721    case $enableval in
7722    yes) enable_fast_install=yes ;;
7723    no) enable_fast_install=no ;;
7724    *)
7725      enable_fast_install=no
7726      # Look at the argument we got.  We use all the common list separators.
7727      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7728      for pkg in $enableval; do
7729	IFS=$lt_save_ifs
7730	if test "X$pkg" = "X$p"; then
7731	  enable_fast_install=yes
7732	fi
7733      done
7734      IFS=$lt_save_ifs
7735      ;;
7736    esac
7737else
7738  enable_fast_install=yes
7739fi
7740
7741
7742
7743
7744
7745
7746
7747
7748  shared_archive_member_spec=
7749case $host,$enable_shared in
7750power*-*-aix[5-9]*,yes)
7751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7752$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7753
7754# Check whether --with-aix-soname was given.
7755if test "${with_aix_soname+set}" = set; then :
7756  withval=$with_aix_soname; case $withval in
7757    aix|svr4|both)
7758      ;;
7759    *)
7760      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7761      ;;
7762    esac
7763    lt_cv_with_aix_soname=$with_aix_soname
7764else
7765  if ${lt_cv_with_aix_soname+:} false; then :
7766  $as_echo_n "(cached) " >&6
7767else
7768  lt_cv_with_aix_soname=aix
7769fi
7770
7771    with_aix_soname=$lt_cv_with_aix_soname
7772fi
7773
7774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7775$as_echo "$with_aix_soname" >&6; }
7776  if test aix != "$with_aix_soname"; then
7777    # For the AIX way of multilib, we name the shared archive member
7778    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7779    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7780    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7781    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7782    if test 64 = "${OBJECT_MODE-32}"; then
7783      shared_archive_member_spec=shr_64
7784    else
7785      shared_archive_member_spec=shr
7786    fi
7787  fi
7788  ;;
7789*)
7790  with_aix_soname=aix
7791  ;;
7792esac
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 and
7904# ICC, which need '.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
7919func_cc_basename $compiler
7920cc_basename=$func_cc_basename_result
7921
7922
7923# Only perform the check for file, if the check method requires it
7924test -z "$MAGIC_CMD" && MAGIC_CMD=file
7925case $deplibs_check_method in
7926file_magic*)
7927  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7928    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7929$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7930if ${lt_cv_path_MAGIC_CMD+:} false; then :
7931  $as_echo_n "(cached) " >&6
7932else
7933  case $MAGIC_CMD in
7934[\\/*] |  ?:[\\/]*)
7935  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7936  ;;
7937*)
7938  lt_save_MAGIC_CMD=$MAGIC_CMD
7939  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7940  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7941  for ac_dir in $ac_dummy; do
7942    IFS=$lt_save_ifs
7943    test -z "$ac_dir" && ac_dir=.
7944    if test -f "$ac_dir/${ac_tool_prefix}file"; then
7945      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7946      if test -n "$file_magic_test_file"; then
7947	case $deplibs_check_method in
7948	"file_magic "*)
7949	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7950	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7951	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7952	    $EGREP "$file_magic_regex" > /dev/null; then
7953	    :
7954	  else
7955	    cat <<_LT_EOF 1>&2
7956
7957*** Warning: the command libtool uses to detect shared libraries,
7958*** $file_magic_cmd, produces output that libtool cannot recognize.
7959*** The result is that libtool may fail to recognize shared libraries
7960*** as such.  This will affect the creation of libtool libraries that
7961*** depend on shared libraries, but programs linked with such libtool
7962*** libraries will work regardless of this problem.  Nevertheless, you
7963*** may want to report the problem to your system manager and/or to
7964*** bug-libtool@gnu.org
7965
7966_LT_EOF
7967	  fi ;;
7968	esac
7969      fi
7970      break
7971    fi
7972  done
7973  IFS=$lt_save_ifs
7974  MAGIC_CMD=$lt_save_MAGIC_CMD
7975  ;;
7976esac
7977fi
7978
7979MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7980if test -n "$MAGIC_CMD"; then
7981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7982$as_echo "$MAGIC_CMD" >&6; }
7983else
7984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985$as_echo "no" >&6; }
7986fi
7987
7988
7989
7990
7991
7992if test -z "$lt_cv_path_MAGIC_CMD"; then
7993  if test -n "$ac_tool_prefix"; then
7994    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7995$as_echo_n "checking for file... " >&6; }
7996if ${lt_cv_path_MAGIC_CMD+:} false; then :
7997  $as_echo_n "(cached) " >&6
7998else
7999  case $MAGIC_CMD in
8000[\\/*] |  ?:[\\/]*)
8001  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8002  ;;
8003*)
8004  lt_save_MAGIC_CMD=$MAGIC_CMD
8005  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8006  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8007  for ac_dir in $ac_dummy; do
8008    IFS=$lt_save_ifs
8009    test -z "$ac_dir" && ac_dir=.
8010    if test -f "$ac_dir/file"; then
8011      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8012      if test -n "$file_magic_test_file"; then
8013	case $deplibs_check_method in
8014	"file_magic "*)
8015	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8016	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8017	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8018	    $EGREP "$file_magic_regex" > /dev/null; then
8019	    :
8020	  else
8021	    cat <<_LT_EOF 1>&2
8022
8023*** Warning: the command libtool uses to detect shared libraries,
8024*** $file_magic_cmd, produces output that libtool cannot recognize.
8025*** The result is that libtool may fail to recognize shared libraries
8026*** as such.  This will affect the creation of libtool libraries that
8027*** depend on shared libraries, but programs linked with such libtool
8028*** libraries will work regardless of this problem.  Nevertheless, you
8029*** may want to report the problem to your system manager and/or to
8030*** bug-libtool@gnu.org
8031
8032_LT_EOF
8033	  fi ;;
8034	esac
8035      fi
8036      break
8037    fi
8038  done
8039  IFS=$lt_save_ifs
8040  MAGIC_CMD=$lt_save_MAGIC_CMD
8041  ;;
8042esac
8043fi
8044
8045MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8046if test -n "$MAGIC_CMD"; then
8047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8048$as_echo "$MAGIC_CMD" >&6; }
8049else
8050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051$as_echo "no" >&6; }
8052fi
8053
8054
8055  else
8056    MAGIC_CMD=:
8057  fi
8058fi
8059
8060  fi
8061  ;;
8062esac
8063
8064# Use C for the default configuration in the libtool script
8065
8066lt_save_CC=$CC
8067ac_ext=c
8068ac_cpp='$CPP $CPPFLAGS'
8069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8071ac_compiler_gnu=$ac_cv_c_compiler_gnu
8072
8073
8074# Source file extension for C test sources.
8075ac_ext=c
8076
8077# Object file extension for compiled C test sources.
8078objext=o
8079objext=$objext
8080
8081# Code to be used in simple compile tests
8082lt_simple_compile_test_code="int some_variable = 0;"
8083
8084# Code to be used in simple link tests
8085lt_simple_link_test_code='int main(){return(0);}'
8086
8087
8088
8089
8090
8091
8092
8093# If no C compiler was specified, use CC.
8094LTCC=${LTCC-"$CC"}
8095
8096# If no C compiler flags were specified, use CFLAGS.
8097LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8098
8099# Allow CC to be a program name with arguments.
8100compiler=$CC
8101
8102# Save the default compiler, since it gets overwritten when the other
8103# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8104compiler_DEFAULT=$CC
8105
8106# save warnings/boilerplate of simple test code
8107ac_outfile=conftest.$ac_objext
8108echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8109eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8110_lt_compiler_boilerplate=`cat conftest.err`
8111$RM conftest*
8112
8113ac_outfile=conftest.$ac_objext
8114echo "$lt_simple_link_test_code" >conftest.$ac_ext
8115eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8116_lt_linker_boilerplate=`cat conftest.err`
8117$RM -r conftest*
8118
8119
8120## CAVEAT EMPTOR:
8121## There is no encapsulation within the following macros, do not change
8122## the running order or otherwise move them around unless you know exactly
8123## what you are doing...
8124if test -n "$compiler"; then
8125
8126lt_prog_compiler_no_builtin_flag=
8127
8128if test yes = "$GCC"; then
8129  case $cc_basename in
8130  nvcc*)
8131    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8132  *)
8133    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8134  esac
8135
8136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8137$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8138if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8139  $as_echo_n "(cached) " >&6
8140else
8141  lt_cv_prog_compiler_rtti_exceptions=no
8142   ac_outfile=conftest.$ac_objext
8143   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8144   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8145   # Insert the option either (1) after the last *FLAGS variable, or
8146   # (2) before a word containing "conftest.", or (3) at the end.
8147   # Note that $ac_compile itself does not contain backslashes and begins
8148   # with a dollar sign (not a hyphen), so the echo should work correctly.
8149   # The option is referenced via a variable to avoid confusing sed.
8150   lt_compile=`echo "$ac_compile" | $SED \
8151   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8152   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8153   -e 's:$: $lt_compiler_flag:'`
8154   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8155   (eval "$lt_compile" 2>conftest.err)
8156   ac_status=$?
8157   cat conftest.err >&5
8158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159   if (exit $ac_status) && test -s "$ac_outfile"; then
8160     # The compiler can only warn and ignore the option if not recognized
8161     # So say no if there are warnings other than the usual output.
8162     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8163     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8164     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8165       lt_cv_prog_compiler_rtti_exceptions=yes
8166     fi
8167   fi
8168   $RM conftest*
8169
8170fi
8171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8172$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8173
8174if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8175    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8176else
8177    :
8178fi
8179
8180fi
8181
8182
8183
8184
8185
8186
8187  lt_prog_compiler_wl=
8188lt_prog_compiler_pic=
8189lt_prog_compiler_static=
8190
8191
8192  if test yes = "$GCC"; then
8193    lt_prog_compiler_wl='-Wl,'
8194    lt_prog_compiler_static='-static'
8195
8196    case $host_os in
8197      aix*)
8198      # All AIX code is PIC.
8199      if test ia64 = "$host_cpu"; then
8200	# AIX 5 now supports IA64 processor
8201	lt_prog_compiler_static='-Bstatic'
8202      fi
8203      lt_prog_compiler_pic='-fPIC'
8204      ;;
8205
8206    amigaos*)
8207      case $host_cpu in
8208      powerpc)
8209            # see comment about AmigaOS4 .so support
8210            lt_prog_compiler_pic='-fPIC'
8211        ;;
8212      m68k)
8213            # FIXME: we need at least 68020 code to build shared libraries, but
8214            # adding the '-m68020' flag to GCC prevents building anything better,
8215            # like '-m68040'.
8216            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8217        ;;
8218      esac
8219      ;;
8220
8221    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8222      # PIC is the default for these OSes.
8223      ;;
8224
8225    mingw* | cygwin* | pw32* | os2* | cegcc*)
8226      # This hack is so that the source file can tell whether it is being
8227      # built for inclusion in a dll (and should export symbols for example).
8228      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8229      # (--disable-auto-import) libraries
8230      lt_prog_compiler_pic='-DDLL_EXPORT'
8231      case $host_os in
8232      os2*)
8233	lt_prog_compiler_static='$wl-static'
8234	;;
8235      esac
8236      ;;
8237
8238    darwin* | rhapsody*)
8239      # PIC is the default on this platform
8240      # Common symbols not allowed in MH_DYLIB files
8241      lt_prog_compiler_pic='-fno-common'
8242      ;;
8243
8244    haiku*)
8245      # PIC is the default for Haiku.
8246      # The "-static" flag exists, but is broken.
8247      lt_prog_compiler_static=
8248      ;;
8249
8250    hpux*)
8251      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8252      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8253      # sets the default TLS model and affects inlining.
8254      case $host_cpu in
8255      hppa*64*)
8256	# +Z the default
8257	;;
8258      *)
8259	lt_prog_compiler_pic='-fPIC'
8260	;;
8261      esac
8262      ;;
8263
8264    interix[3-9]*)
8265      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8266      # Instead, we relocate shared libraries at runtime.
8267      ;;
8268
8269    msdosdjgpp*)
8270      # Just because we use GCC doesn't mean we suddenly get shared libraries
8271      # on systems that don't support them.
8272      lt_prog_compiler_can_build_shared=no
8273      enable_shared=no
8274      ;;
8275
8276    *nto* | *qnx*)
8277      # QNX uses GNU C++, but need to define -shared option too, otherwise
8278      # it will coredump.
8279      lt_prog_compiler_pic='-fPIC -shared'
8280      ;;
8281
8282    sysv4*MP*)
8283      if test -d /usr/nec; then
8284	lt_prog_compiler_pic=-Kconform_pic
8285      fi
8286      ;;
8287
8288    *)
8289      lt_prog_compiler_pic='-fPIC'
8290      ;;
8291    esac
8292
8293    case $cc_basename in
8294    nvcc*) # Cuda Compiler Driver 2.2
8295      lt_prog_compiler_wl='-Xlinker '
8296      if test -n "$lt_prog_compiler_pic"; then
8297        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8298      fi
8299      ;;
8300    esac
8301  else
8302    # PORTME Check for flag to pass linker flags through the system compiler.
8303    case $host_os in
8304    aix*)
8305      lt_prog_compiler_wl='-Wl,'
8306      if test ia64 = "$host_cpu"; then
8307	# AIX 5 now supports IA64 processor
8308	lt_prog_compiler_static='-Bstatic'
8309      else
8310	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8311      fi
8312      ;;
8313
8314    darwin* | rhapsody*)
8315      # PIC is the default on this platform
8316      # Common symbols not allowed in MH_DYLIB files
8317      lt_prog_compiler_pic='-fno-common'
8318      case $cc_basename in
8319      nagfor*)
8320        # NAG Fortran compiler
8321        lt_prog_compiler_wl='-Wl,-Wl,,'
8322        lt_prog_compiler_pic='-PIC'
8323        lt_prog_compiler_static='-Bstatic'
8324        ;;
8325      esac
8326      ;;
8327
8328    mingw* | cygwin* | pw32* | os2* | cegcc*)
8329      # This hack is so that the source file can tell whether it is being
8330      # built for inclusion in a dll (and should export symbols for example).
8331      lt_prog_compiler_pic='-DDLL_EXPORT'
8332      case $host_os in
8333      os2*)
8334	lt_prog_compiler_static='$wl-static'
8335	;;
8336      esac
8337      ;;
8338
8339    hpux9* | hpux10* | hpux11*)
8340      lt_prog_compiler_wl='-Wl,'
8341      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8342      # not for PA HP-UX.
8343      case $host_cpu in
8344      hppa*64*|ia64*)
8345	# +Z the default
8346	;;
8347      *)
8348	lt_prog_compiler_pic='+Z'
8349	;;
8350      esac
8351      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8352      lt_prog_compiler_static='$wl-a ${wl}archive'
8353      ;;
8354
8355    irix5* | irix6* | nonstopux*)
8356      lt_prog_compiler_wl='-Wl,'
8357      # PIC (with -KPIC) is the default.
8358      lt_prog_compiler_static='-non_shared'
8359      ;;
8360
8361    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8362      case $cc_basename in
8363      # old Intel for x86_64, which still supported -KPIC.
8364      ecc*)
8365	lt_prog_compiler_wl='-Wl,'
8366	lt_prog_compiler_pic='-KPIC'
8367	lt_prog_compiler_static='-static'
8368        ;;
8369      # icc used to be incompatible with GCC.
8370      # ICC 10 doesn't accept -KPIC any more.
8371      icc* | ifort*)
8372	lt_prog_compiler_wl='-Wl,'
8373	lt_prog_compiler_pic='-fPIC'
8374	lt_prog_compiler_static='-static'
8375        ;;
8376      # Lahey Fortran 8.1.
8377      lf95*)
8378	lt_prog_compiler_wl='-Wl,'
8379	lt_prog_compiler_pic='--shared'
8380	lt_prog_compiler_static='--static'
8381	;;
8382      nagfor*)
8383	# NAG Fortran compiler
8384	lt_prog_compiler_wl='-Wl,-Wl,,'
8385	lt_prog_compiler_pic='-PIC'
8386	lt_prog_compiler_static='-Bstatic'
8387	;;
8388      tcc*)
8389	# Fabrice Bellard et al's Tiny C Compiler
8390	lt_prog_compiler_wl='-Wl,'
8391	lt_prog_compiler_pic='-fPIC'
8392	lt_prog_compiler_static='-static'
8393	;;
8394      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8395        # Portland Group compilers (*not* the Pentium gcc compiler,
8396	# which looks to be a dead project)
8397	lt_prog_compiler_wl='-Wl,'
8398	lt_prog_compiler_pic='-fpic'
8399	lt_prog_compiler_static='-Bstatic'
8400        ;;
8401      ccc*)
8402        lt_prog_compiler_wl='-Wl,'
8403        # All Alpha code is PIC.
8404        lt_prog_compiler_static='-non_shared'
8405        ;;
8406      xl* | bgxl* | bgf* | mpixl*)
8407	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8408	lt_prog_compiler_wl='-Wl,'
8409	lt_prog_compiler_pic='-qpic'
8410	lt_prog_compiler_static='-qstaticlink'
8411	;;
8412      *)
8413	case `$CC -V 2>&1 | sed 5q` in
8414	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8415	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8416	  lt_prog_compiler_pic='-KPIC'
8417	  lt_prog_compiler_static='-Bstatic'
8418	  lt_prog_compiler_wl=''
8419	  ;;
8420	*Sun\ F* | *Sun*Fortran*)
8421	  lt_prog_compiler_pic='-KPIC'
8422	  lt_prog_compiler_static='-Bstatic'
8423	  lt_prog_compiler_wl='-Qoption ld '
8424	  ;;
8425	*Sun\ C*)
8426	  # Sun C 5.9
8427	  lt_prog_compiler_pic='-KPIC'
8428	  lt_prog_compiler_static='-Bstatic'
8429	  lt_prog_compiler_wl='-Wl,'
8430	  ;;
8431        *Intel*\ [CF]*Compiler*)
8432	  lt_prog_compiler_wl='-Wl,'
8433	  lt_prog_compiler_pic='-fPIC'
8434	  lt_prog_compiler_static='-static'
8435	  ;;
8436	*Portland\ Group*)
8437	  lt_prog_compiler_wl='-Wl,'
8438	  lt_prog_compiler_pic='-fpic'
8439	  lt_prog_compiler_static='-Bstatic'
8440	  ;;
8441	esac
8442	;;
8443      esac
8444      ;;
8445
8446    newsos6)
8447      lt_prog_compiler_pic='-KPIC'
8448      lt_prog_compiler_static='-Bstatic'
8449      ;;
8450
8451    *nto* | *qnx*)
8452      # QNX uses GNU C++, but need to define -shared option too, otherwise
8453      # it will coredump.
8454      lt_prog_compiler_pic='-fPIC -shared'
8455      ;;
8456
8457    osf3* | osf4* | osf5*)
8458      lt_prog_compiler_wl='-Wl,'
8459      # All OSF/1 code is PIC.
8460      lt_prog_compiler_static='-non_shared'
8461      ;;
8462
8463    rdos*)
8464      lt_prog_compiler_static='-non_shared'
8465      ;;
8466
8467    solaris*)
8468      lt_prog_compiler_pic='-KPIC'
8469      lt_prog_compiler_static='-Bstatic'
8470      case $cc_basename in
8471      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8472	lt_prog_compiler_wl='-Qoption ld ';;
8473      *)
8474	lt_prog_compiler_wl='-Wl,';;
8475      esac
8476      ;;
8477
8478    sunos4*)
8479      lt_prog_compiler_wl='-Qoption ld '
8480      lt_prog_compiler_pic='-PIC'
8481      lt_prog_compiler_static='-Bstatic'
8482      ;;
8483
8484    sysv4 | sysv4.2uw2* | sysv4.3*)
8485      lt_prog_compiler_wl='-Wl,'
8486      lt_prog_compiler_pic='-KPIC'
8487      lt_prog_compiler_static='-Bstatic'
8488      ;;
8489
8490    sysv4*MP*)
8491      if test -d /usr/nec; then
8492	lt_prog_compiler_pic='-Kconform_pic'
8493	lt_prog_compiler_static='-Bstatic'
8494      fi
8495      ;;
8496
8497    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8498      lt_prog_compiler_wl='-Wl,'
8499      lt_prog_compiler_pic='-KPIC'
8500      lt_prog_compiler_static='-Bstatic'
8501      ;;
8502
8503    unicos*)
8504      lt_prog_compiler_wl='-Wl,'
8505      lt_prog_compiler_can_build_shared=no
8506      ;;
8507
8508    uts4*)
8509      lt_prog_compiler_pic='-pic'
8510      lt_prog_compiler_static='-Bstatic'
8511      ;;
8512
8513    *)
8514      lt_prog_compiler_can_build_shared=no
8515      ;;
8516    esac
8517  fi
8518
8519case $host_os in
8520  # For platforms that do not support PIC, -DPIC is meaningless:
8521  *djgpp*)
8522    lt_prog_compiler_pic=
8523    ;;
8524  *)
8525    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8526    ;;
8527esac
8528
8529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8530$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8531if ${lt_cv_prog_compiler_pic+:} false; then :
8532  $as_echo_n "(cached) " >&6
8533else
8534  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8535fi
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8537$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8538lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8539
8540#
8541# Check to make sure the PIC flag actually works.
8542#
8543if test -n "$lt_prog_compiler_pic"; then
8544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8545$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8546if ${lt_cv_prog_compiler_pic_works+:} false; then :
8547  $as_echo_n "(cached) " >&6
8548else
8549  lt_cv_prog_compiler_pic_works=no
8550   ac_outfile=conftest.$ac_objext
8551   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8552   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8553   # Insert the option either (1) after the last *FLAGS variable, or
8554   # (2) before a word containing "conftest.", or (3) at the end.
8555   # Note that $ac_compile itself does not contain backslashes and begins
8556   # with a dollar sign (not a hyphen), so the echo should work correctly.
8557   # The option is referenced via a variable to avoid confusing sed.
8558   lt_compile=`echo "$ac_compile" | $SED \
8559   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8560   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8561   -e 's:$: $lt_compiler_flag:'`
8562   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8563   (eval "$lt_compile" 2>conftest.err)
8564   ac_status=$?
8565   cat conftest.err >&5
8566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567   if (exit $ac_status) && test -s "$ac_outfile"; then
8568     # The compiler can only warn and ignore the option if not recognized
8569     # So say no if there are warnings other than the usual output.
8570     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8571     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8572     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8573       lt_cv_prog_compiler_pic_works=yes
8574     fi
8575   fi
8576   $RM conftest*
8577
8578fi
8579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8580$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8581
8582if test yes = "$lt_cv_prog_compiler_pic_works"; then
8583    case $lt_prog_compiler_pic in
8584     "" | " "*) ;;
8585     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8586     esac
8587else
8588    lt_prog_compiler_pic=
8589     lt_prog_compiler_can_build_shared=no
8590fi
8591
8592fi
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604#
8605# Check to make sure the static flag actually works.
8606#
8607wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8609$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8610if ${lt_cv_prog_compiler_static_works+:} false; then :
8611  $as_echo_n "(cached) " >&6
8612else
8613  lt_cv_prog_compiler_static_works=no
8614   save_LDFLAGS=$LDFLAGS
8615   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8616   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8617   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8618     # The linker can only warn and ignore the option if not recognized
8619     # So say no if there are warnings
8620     if test -s conftest.err; then
8621       # Append any errors to the config.log.
8622       cat conftest.err 1>&5
8623       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8624       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8625       if diff conftest.exp conftest.er2 >/dev/null; then
8626         lt_cv_prog_compiler_static_works=yes
8627       fi
8628     else
8629       lt_cv_prog_compiler_static_works=yes
8630     fi
8631   fi
8632   $RM -r conftest*
8633   LDFLAGS=$save_LDFLAGS
8634
8635fi
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8637$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8638
8639if test yes = "$lt_cv_prog_compiler_static_works"; then
8640    :
8641else
8642    lt_prog_compiler_static=
8643fi
8644
8645
8646
8647
8648
8649
8650
8651  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8652$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8653if ${lt_cv_prog_compiler_c_o+:} false; then :
8654  $as_echo_n "(cached) " >&6
8655else
8656  lt_cv_prog_compiler_c_o=no
8657   $RM -r conftest 2>/dev/null
8658   mkdir conftest
8659   cd conftest
8660   mkdir out
8661   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8662
8663   lt_compiler_flag="-o out/conftest2.$ac_objext"
8664   # Insert the option either (1) after the last *FLAGS variable, or
8665   # (2) before a word containing "conftest.", or (3) at the end.
8666   # Note that $ac_compile itself does not contain backslashes and begins
8667   # with a dollar sign (not a hyphen), so the echo should work correctly.
8668   lt_compile=`echo "$ac_compile" | $SED \
8669   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8670   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8671   -e 's:$: $lt_compiler_flag:'`
8672   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8673   (eval "$lt_compile" 2>out/conftest.err)
8674   ac_status=$?
8675   cat out/conftest.err >&5
8676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8678   then
8679     # The compiler can only warn and ignore the option if not recognized
8680     # So say no if there are warnings
8681     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8682     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8683     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8684       lt_cv_prog_compiler_c_o=yes
8685     fi
8686   fi
8687   chmod u+w . 2>&5
8688   $RM conftest*
8689   # SGI C++ compiler will create directory out/ii_files/ for
8690   # template instantiation
8691   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8692   $RM out/* && rmdir out
8693   cd ..
8694   $RM -r conftest
8695   $RM conftest*
8696
8697fi
8698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8699$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8700
8701
8702
8703
8704
8705
8706  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8707$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8708if ${lt_cv_prog_compiler_c_o+:} false; then :
8709  $as_echo_n "(cached) " >&6
8710else
8711  lt_cv_prog_compiler_c_o=no
8712   $RM -r conftest 2>/dev/null
8713   mkdir conftest
8714   cd conftest
8715   mkdir out
8716   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8717
8718   lt_compiler_flag="-o out/conftest2.$ac_objext"
8719   # Insert the option either (1) after the last *FLAGS variable, or
8720   # (2) before a word containing "conftest.", or (3) at the end.
8721   # Note that $ac_compile itself does not contain backslashes and begins
8722   # with a dollar sign (not a hyphen), so the echo should work correctly.
8723   lt_compile=`echo "$ac_compile" | $SED \
8724   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8725   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8726   -e 's:$: $lt_compiler_flag:'`
8727   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8728   (eval "$lt_compile" 2>out/conftest.err)
8729   ac_status=$?
8730   cat out/conftest.err >&5
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8733   then
8734     # The compiler can only warn and ignore the option if not recognized
8735     # So say no if there are warnings
8736     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8737     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8738     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8739       lt_cv_prog_compiler_c_o=yes
8740     fi
8741   fi
8742   chmod u+w . 2>&5
8743   $RM conftest*
8744   # SGI C++ compiler will create directory out/ii_files/ for
8745   # template instantiation
8746   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8747   $RM out/* && rmdir out
8748   cd ..
8749   $RM -r conftest
8750   $RM conftest*
8751
8752fi
8753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8754$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8755
8756
8757
8758
8759hard_links=nottested
8760if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8761  # do not overwrite the value of need_locks provided by the user
8762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8763$as_echo_n "checking if we can lock with hard links... " >&6; }
8764  hard_links=yes
8765  $RM conftest*
8766  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8767  touch conftest.a
8768  ln conftest.a conftest.b 2>&5 || hard_links=no
8769  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8771$as_echo "$hard_links" >&6; }
8772  if test no = "$hard_links"; then
8773    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8774$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8775    need_locks=warn
8776  fi
8777else
8778  need_locks=no
8779fi
8780
8781
8782
8783
8784
8785
8786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8787$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8788
8789  runpath_var=
8790  allow_undefined_flag=
8791  always_export_symbols=no
8792  archive_cmds=
8793  archive_expsym_cmds=
8794  compiler_needs_object=no
8795  enable_shared_with_static_runtimes=no
8796  export_dynamic_flag_spec=
8797  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8798  hardcode_automatic=no
8799  hardcode_direct=no
8800  hardcode_direct_absolute=no
8801  hardcode_libdir_flag_spec=
8802  hardcode_libdir_separator=
8803  hardcode_minus_L=no
8804  hardcode_shlibpath_var=unsupported
8805  inherit_rpath=no
8806  link_all_deplibs=unknown
8807  module_cmds=
8808  module_expsym_cmds=
8809  old_archive_from_new_cmds=
8810  old_archive_from_expsyms_cmds=
8811  thread_safe_flag_spec=
8812  whole_archive_flag_spec=
8813  # include_expsyms should be a list of space-separated symbols to be *always*
8814  # included in the symbol list
8815  include_expsyms=
8816  # exclude_expsyms can be an extended regexp of symbols to exclude
8817  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8818  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8819  # as well as any symbol that contains 'd'.
8820  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8821  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8822  # platforms (ab)use it in PIC code, but their linkers get confused if
8823  # the symbol is explicitly referenced.  Since portable code cannot
8824  # rely on this symbol name, it's probably fine to never include it in
8825  # preloaded symbol tables.
8826  # Exclude shared library initialization/finalization symbols.
8827  extract_expsyms_cmds=
8828
8829  case $host_os in
8830  cygwin* | mingw* | pw32* | cegcc*)
8831    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
8832    # When not using gcc, we currently assume that we are using
8833    # Microsoft Visual C++ or Intel C++ Compiler.
8834    if test yes != "$GCC"; then
8835      with_gnu_ld=no
8836    fi
8837    ;;
8838  interix*)
8839    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
8840    with_gnu_ld=yes
8841    ;;
8842  openbsd* | bitrig*)
8843    with_gnu_ld=no
8844    ;;
8845  esac
8846
8847  ld_shlibs=yes
8848
8849  # On some targets, GNU ld is compatible enough with the native linker
8850  # that we're better off using the native interface for both.
8851  lt_use_gnu_ld_interface=no
8852  if test yes = "$with_gnu_ld"; then
8853    case $host_os in
8854      aix*)
8855	# The AIX port of GNU ld has always aspired to compatibility
8856	# with the native linker.  However, as the warning in the GNU ld
8857	# block says, versions before 2.19.5* couldn't really create working
8858	# shared libraries, regardless of the interface used.
8859	case `$LD -v 2>&1` in
8860	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8861	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8862	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8863	  *)
8864	    lt_use_gnu_ld_interface=yes
8865	    ;;
8866	esac
8867	;;
8868      *)
8869	lt_use_gnu_ld_interface=yes
8870	;;
8871    esac
8872  fi
8873
8874  if test yes = "$lt_use_gnu_ld_interface"; then
8875    # If archive_cmds runs LD, not CC, wlarc should be empty
8876    wlarc='$wl'
8877
8878    # Set some defaults for GNU ld with shared library support. These
8879    # are reset later if shared libraries are not supported. Putting them
8880    # here allows them to be overridden if necessary.
8881    runpath_var=LD_RUN_PATH
8882    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8883    export_dynamic_flag_spec='$wl--export-dynamic'
8884    # ancient GNU ld didn't support --whole-archive et. al.
8885    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8886      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8887    else
8888      whole_archive_flag_spec=
8889    fi
8890    supports_anon_versioning=no
8891    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8892      *GNU\ gold*) supports_anon_versioning=yes ;;
8893      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8894      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8895      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8896      *\ 2.11.*) ;; # other 2.11 versions
8897      *) supports_anon_versioning=yes ;;
8898    esac
8899
8900    # See if GNU ld supports shared libraries.
8901    case $host_os in
8902    aix[3-9]*)
8903      # On AIX/PPC, the GNU linker is very broken
8904      if test ia64 != "$host_cpu"; then
8905	ld_shlibs=no
8906	cat <<_LT_EOF 1>&2
8907
8908*** Warning: the GNU linker, at least up to release 2.19, is reported
8909*** to be unable to reliably create shared libraries on AIX.
8910*** Therefore, libtool is disabling shared libraries support.  If you
8911*** really care for shared libraries, you may want to install binutils
8912*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8913*** You will then need to restart the configuration process.
8914
8915_LT_EOF
8916      fi
8917      ;;
8918
8919    amigaos*)
8920      case $host_cpu in
8921      powerpc)
8922            # see comment about AmigaOS4 .so support
8923            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8924            archive_expsym_cmds=''
8925        ;;
8926      m68k)
8927            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)'
8928            hardcode_libdir_flag_spec='-L$libdir'
8929            hardcode_minus_L=yes
8930        ;;
8931      esac
8932      ;;
8933
8934    beos*)
8935      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8936	allow_undefined_flag=unsupported
8937	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8938	# support --undefined.  This deserves some investigation.  FIXME
8939	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8940      else
8941	ld_shlibs=no
8942      fi
8943      ;;
8944
8945    cygwin* | mingw* | pw32* | cegcc*)
8946      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8947      # as there is no search path for DLLs.
8948      hardcode_libdir_flag_spec='-L$libdir'
8949      export_dynamic_flag_spec='$wl--export-all-symbols'
8950      allow_undefined_flag=unsupported
8951      always_export_symbols=no
8952      enable_shared_with_static_runtimes=yes
8953      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'
8954      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8955
8956      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8957        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8958	# If the export-symbols file already is a .def file, use it as
8959	# is; otherwise, prepend EXPORTS...
8960	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
8961          cp $export_symbols $output_objdir/$soname.def;
8962        else
8963          echo EXPORTS > $output_objdir/$soname.def;
8964          cat $export_symbols >> $output_objdir/$soname.def;
8965        fi~
8966        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8967      else
8968	ld_shlibs=no
8969      fi
8970      ;;
8971
8972    haiku*)
8973      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8974      link_all_deplibs=yes
8975      ;;
8976
8977    os2*)
8978      hardcode_libdir_flag_spec='-L$libdir'
8979      hardcode_minus_L=yes
8980      allow_undefined_flag=unsupported
8981      shrext_cmds=.dll
8982      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8983	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8984	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8985	$ECHO EXPORTS >> $output_objdir/$libname.def~
8986	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8987	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8988	emximp -o $lib $output_objdir/$libname.def'
8989      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8990	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8991	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8992	$ECHO EXPORTS >> $output_objdir/$libname.def~
8993	prefix_cmds="$SED"~
8994	if test EXPORTS = "`$SED 1q $export_symbols`"; then
8995	  prefix_cmds="$prefix_cmds -e 1d";
8996	fi~
8997	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8998	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8999	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9000	emximp -o $lib $output_objdir/$libname.def'
9001      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9002      enable_shared_with_static_runtimes=yes
9003      file_list_spec='@'
9004      ;;
9005
9006    interix[3-9]*)
9007      hardcode_direct=no
9008      hardcode_shlibpath_var=no
9009      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9010      export_dynamic_flag_spec='$wl-E'
9011      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9012      # Instead, shared libraries are loaded at an image base (0x10000000 by
9013      # default) and relocated if they conflict, which is a slow very memory
9014      # consuming and fragmenting process.  To avoid this, we pick a random,
9015      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9016      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9017      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9018      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'
9019      ;;
9020
9021    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9022      tmp_diet=no
9023      if test linux-dietlibc = "$host_os"; then
9024	case $cc_basename in
9025	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9026	esac
9027      fi
9028      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9029	 && test no = "$tmp_diet"
9030      then
9031	tmp_addflag=' $pic_flag'
9032	tmp_sharedflag='-shared'
9033	case $cc_basename,$host_cpu in
9034        pgcc*)				# Portland Group C compiler
9035	  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'
9036	  tmp_addflag=' $pic_flag'
9037	  ;;
9038	pgf77* | pgf90* | pgf95* | pgfortran*)
9039					# Portland Group f77 and f90 compilers
9040	  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'
9041	  tmp_addflag=' $pic_flag -Mnomain' ;;
9042	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9043	  tmp_addflag=' -i_dynamic' ;;
9044	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9045	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9046	ifc* | ifort*)			# Intel Fortran compiler
9047	  tmp_addflag=' -nofor_main' ;;
9048	lf95*)				# Lahey Fortran 8.1
9049	  whole_archive_flag_spec=
9050	  tmp_sharedflag='--shared' ;;
9051        nagfor*)                        # NAGFOR 5.3
9052          tmp_sharedflag='-Wl,-shared' ;;
9053	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9054	  tmp_sharedflag='-qmkshrobj'
9055	  tmp_addflag= ;;
9056	nvcc*)	# Cuda Compiler Driver 2.2
9057	  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'
9058	  compiler_needs_object=yes
9059	  ;;
9060	esac
9061	case `$CC -V 2>&1 | sed 5q` in
9062	*Sun\ C*)			# Sun C 5.9
9063	  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'
9064	  compiler_needs_object=yes
9065	  tmp_sharedflag='-G' ;;
9066	*Sun\ F*)			# Sun Fortran 8.3
9067	  tmp_sharedflag='-G' ;;
9068	esac
9069	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9070
9071        if test yes = "$supports_anon_versioning"; then
9072          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9073            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9074            echo "local: *; };" >> $output_objdir/$libname.ver~
9075            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9076        fi
9077
9078	case $cc_basename in
9079	tcc*)
9080	  export_dynamic_flag_spec='-rdynamic'
9081	  ;;
9082	xlf* | bgf* | bgxlf* | mpixlf*)
9083	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9084	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9085	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9086	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9087	  if test yes = "$supports_anon_versioning"; then
9088	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9089              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9090              echo "local: *; };" >> $output_objdir/$libname.ver~
9091              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9092	  fi
9093	  ;;
9094	esac
9095      else
9096        ld_shlibs=no
9097      fi
9098      ;;
9099
9100    netbsd*)
9101      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9102	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9103	wlarc=
9104      else
9105	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9106	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9107      fi
9108      ;;
9109
9110    solaris*)
9111      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9112	ld_shlibs=no
9113	cat <<_LT_EOF 1>&2
9114
9115*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9116*** create shared libraries on Solaris systems.  Therefore, libtool
9117*** is disabling shared libraries support.  We urge you to upgrade GNU
9118*** binutils to release 2.9.1 or newer.  Another option is to modify
9119*** your PATH or compiler configuration so that the native linker is
9120*** used, and then restart.
9121
9122_LT_EOF
9123      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9124	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9125	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9126      else
9127	ld_shlibs=no
9128      fi
9129      ;;
9130
9131    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9132      case `$LD -v 2>&1` in
9133        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9134	ld_shlibs=no
9135	cat <<_LT_EOF 1>&2
9136
9137*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9138*** reliably create shared libraries on SCO systems.  Therefore, libtool
9139*** is disabling shared libraries support.  We urge you to upgrade GNU
9140*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9141*** your PATH or compiler configuration so that the native linker is
9142*** used, and then restart.
9143
9144_LT_EOF
9145	;;
9146	*)
9147	  # For security reasons, it is highly recommended that you always
9148	  # use absolute paths for naming shared libraries, and exclude the
9149	  # DT_RUNPATH tag from executables and libraries.  But doing so
9150	  # requires that you compile everything twice, which is a pain.
9151	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9152	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9153	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9154	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9155	  else
9156	    ld_shlibs=no
9157	  fi
9158	;;
9159      esac
9160      ;;
9161
9162    sunos4*)
9163      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9164      wlarc=
9165      hardcode_direct=yes
9166      hardcode_shlibpath_var=no
9167      ;;
9168
9169    *)
9170      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9171	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9172	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9173      else
9174	ld_shlibs=no
9175      fi
9176      ;;
9177    esac
9178
9179    if test no = "$ld_shlibs"; then
9180      runpath_var=
9181      hardcode_libdir_flag_spec=
9182      export_dynamic_flag_spec=
9183      whole_archive_flag_spec=
9184    fi
9185  else
9186    # PORTME fill in a description of your system's linker (not GNU ld)
9187    case $host_os in
9188    aix3*)
9189      allow_undefined_flag=unsupported
9190      always_export_symbols=yes
9191      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'
9192      # Note: this linker hardcodes the directories in LIBPATH if there
9193      # are no directories specified by -L.
9194      hardcode_minus_L=yes
9195      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9196	# Neither direct hardcoding nor static linking is supported with a
9197	# broken collect2.
9198	hardcode_direct=unsupported
9199      fi
9200      ;;
9201
9202    aix[4-9]*)
9203      if test ia64 = "$host_cpu"; then
9204	# On IA64, the linker does run time linking by default, so we don't
9205	# have to do anything special.
9206	aix_use_runtimelinking=no
9207	exp_sym_flag='-Bexport'
9208	no_entry_flag=
9209      else
9210	# If we're using GNU nm, then we don't want the "-C" option.
9211	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9212	# Without the "-l" option, or with the "-B" option, AIX nm treats
9213	# weak defined symbols like other global defined symbols, whereas
9214	# GNU nm marks them as "W".
9215	# While the 'weak' keyword is ignored in the Export File, we need
9216	# it in the Import File for the 'aix-soname' feature, so we have
9217	# to replace the "-B" option with "-P" for AIX nm.
9218	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9219	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9220	else
9221	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9222	fi
9223	aix_use_runtimelinking=no
9224
9225	# Test if we are trying to use run time linking or normal
9226	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9227	# have runtime linking enabled, and use it for executables.
9228	# For shared libraries, we enable/disable runtime linking
9229	# depending on the kind of the shared library created -
9230	# when "with_aix_soname,aix_use_runtimelinking" is:
9231	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9232	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9233	#            lib.a           static archive
9234	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9235	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9236	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9237	#            lib.a(lib.so.V) shared, rtl:no
9238	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9239	#            lib.a           static archive
9240	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9241	  for ld_flag in $LDFLAGS; do
9242	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9243	    aix_use_runtimelinking=yes
9244	    break
9245	  fi
9246	  done
9247	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9248	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9249	    # so we don't have lib.a shared libs to link our executables.
9250	    # We have to force runtime linking in this case.
9251	    aix_use_runtimelinking=yes
9252	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9253	  fi
9254	  ;;
9255	esac
9256
9257	exp_sym_flag='-bexport'
9258	no_entry_flag='-bnoentry'
9259      fi
9260
9261      # When large executables or shared objects are built, AIX ld can
9262      # have problems creating the table of contents.  If linking a library
9263      # or program results in "error TOC overflow" add -mminimal-toc to
9264      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9265      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9266
9267      archive_cmds=''
9268      hardcode_direct=yes
9269      hardcode_direct_absolute=yes
9270      hardcode_libdir_separator=':'
9271      link_all_deplibs=yes
9272      file_list_spec='$wl-f,'
9273      case $with_aix_soname,$aix_use_runtimelinking in
9274      aix,*) ;; # traditional, no import file
9275      svr4,* | *,yes) # use import file
9276	# The Import File defines what to hardcode.
9277	hardcode_direct=no
9278	hardcode_direct_absolute=no
9279	;;
9280      esac
9281
9282      if test yes = "$GCC"; then
9283	case $host_os in aix4.[012]|aix4.[012].*)
9284	# We only want to do this on AIX 4.2 and lower, the check
9285	# below for broken collect2 doesn't work under 4.3+
9286	  collect2name=`$CC -print-prog-name=collect2`
9287	  if test -f "$collect2name" &&
9288	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9289	  then
9290	  # We have reworked collect2
9291	  :
9292	  else
9293	  # We have old collect2
9294	  hardcode_direct=unsupported
9295	  # It fails to find uninstalled libraries when the uninstalled
9296	  # path is not listed in the libpath.  Setting hardcode_minus_L
9297	  # to unsupported forces relinking
9298	  hardcode_minus_L=yes
9299	  hardcode_libdir_flag_spec='-L$libdir'
9300	  hardcode_libdir_separator=
9301	  fi
9302	  ;;
9303	esac
9304	shared_flag='-shared'
9305	if test yes = "$aix_use_runtimelinking"; then
9306	  shared_flag="$shared_flag "'$wl-G'
9307	fi
9308	# Need to ensure runtime linking is disabled for the traditional
9309	# shared library, or the linker may eventually find shared libraries
9310	# /with/ Import File - we do not want to mix them.
9311	shared_flag_aix='-shared'
9312	shared_flag_svr4='-shared $wl-G'
9313      else
9314	# not using gcc
9315	if test ia64 = "$host_cpu"; then
9316	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9317	# chokes on -Wl,-G. The following line is correct:
9318	  shared_flag='-G'
9319	else
9320	  if test yes = "$aix_use_runtimelinking"; then
9321	    shared_flag='$wl-G'
9322	  else
9323	    shared_flag='$wl-bM:SRE'
9324	  fi
9325	  shared_flag_aix='$wl-bM:SRE'
9326	  shared_flag_svr4='$wl-G'
9327	fi
9328      fi
9329
9330      export_dynamic_flag_spec='$wl-bexpall'
9331      # It seems that -bexpall does not export symbols beginning with
9332      # underscore (_), so it is better to generate a list of symbols to export.
9333      always_export_symbols=yes
9334      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9335	# Warning - without using the other runtime loading flags (-brtl),
9336	# -berok will link without error, but may produce a broken library.
9337	allow_undefined_flag='-berok'
9338        # Determine the default libpath from the value encoded in an
9339        # empty executable.
9340        if test set = "${lt_cv_aix_libpath+set}"; then
9341  aix_libpath=$lt_cv_aix_libpath
9342else
9343  if ${lt_cv_aix_libpath_+:} false; then :
9344  $as_echo_n "(cached) " >&6
9345else
9346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347/* end confdefs.h.  */
9348
9349int
9350main ()
9351{
9352
9353  ;
9354  return 0;
9355}
9356_ACEOF
9357if ac_fn_c_try_link "$LINENO"; then :
9358
9359  lt_aix_libpath_sed='
9360      /Import File Strings/,/^$/ {
9361	  /^0/ {
9362	      s/^0  *\([^ ]*\) *$/\1/
9363	      p
9364	  }
9365      }'
9366  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9367  # Check for a 64-bit object if we didn't find anything.
9368  if test -z "$lt_cv_aix_libpath_"; then
9369    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9370  fi
9371fi
9372rm -f core conftest.err conftest.$ac_objext \
9373    conftest$ac_exeext conftest.$ac_ext
9374  if test -z "$lt_cv_aix_libpath_"; then
9375    lt_cv_aix_libpath_=/usr/lib:/lib
9376  fi
9377
9378fi
9379
9380  aix_libpath=$lt_cv_aix_libpath_
9381fi
9382
9383        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9384        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
9385      else
9386	if test ia64 = "$host_cpu"; then
9387	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9388	  allow_undefined_flag="-z nodefs"
9389	  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"
9390	else
9391	 # Determine the default libpath from the value encoded in an
9392	 # empty executable.
9393	 if test set = "${lt_cv_aix_libpath+set}"; then
9394  aix_libpath=$lt_cv_aix_libpath
9395else
9396  if ${lt_cv_aix_libpath_+:} false; then :
9397  $as_echo_n "(cached) " >&6
9398else
9399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400/* end confdefs.h.  */
9401
9402int
9403main ()
9404{
9405
9406  ;
9407  return 0;
9408}
9409_ACEOF
9410if ac_fn_c_try_link "$LINENO"; then :
9411
9412  lt_aix_libpath_sed='
9413      /Import File Strings/,/^$/ {
9414	  /^0/ {
9415	      s/^0  *\([^ ]*\) *$/\1/
9416	      p
9417	  }
9418      }'
9419  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9420  # Check for a 64-bit object if we didn't find anything.
9421  if test -z "$lt_cv_aix_libpath_"; then
9422    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9423  fi
9424fi
9425rm -f core conftest.err conftest.$ac_objext \
9426    conftest$ac_exeext conftest.$ac_ext
9427  if test -z "$lt_cv_aix_libpath_"; then
9428    lt_cv_aix_libpath_=/usr/lib:/lib
9429  fi
9430
9431fi
9432
9433  aix_libpath=$lt_cv_aix_libpath_
9434fi
9435
9436	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9437	  # Warning - without using the other run time loading flags,
9438	  # -berok will link without error, but may produce a broken library.
9439	  no_undefined_flag=' $wl-bernotok'
9440	  allow_undefined_flag=' $wl-berok'
9441	  if test yes = "$with_gnu_ld"; then
9442	    # We only use this code for GNU lds that support --whole-archive.
9443	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9444	  else
9445	    # Exported symbols can be pulled into shared objects from archives
9446	    whole_archive_flag_spec='$convenience'
9447	  fi
9448	  archive_cmds_need_lc=yes
9449	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9450	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9451	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9452	  if test svr4 != "$with_aix_soname"; then
9453	    # This is similar to how AIX traditionally builds its shared libraries.
9454	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9455	  fi
9456	  if test aix != "$with_aix_soname"; then
9457	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9458	  else
9459	    # used by -dlpreopen to get the symbols
9460	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9461	  fi
9462	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9463	fi
9464      fi
9465      ;;
9466
9467    amigaos*)
9468      case $host_cpu in
9469      powerpc)
9470            # see comment about AmigaOS4 .so support
9471            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9472            archive_expsym_cmds=''
9473        ;;
9474      m68k)
9475            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)'
9476            hardcode_libdir_flag_spec='-L$libdir'
9477            hardcode_minus_L=yes
9478        ;;
9479      esac
9480      ;;
9481
9482    bsdi[45]*)
9483      export_dynamic_flag_spec=-rdynamic
9484      ;;
9485
9486    cygwin* | mingw* | pw32* | cegcc*)
9487      # When not using gcc, we currently assume that we are using
9488      # Microsoft Visual C++ or Intel C++ Compiler.
9489      # hardcode_libdir_flag_spec is actually meaningless, as there is
9490      # no search path for DLLs.
9491      case $cc_basename in
9492      cl* | icl*)
9493	# Native MSVC or ICC
9494	hardcode_libdir_flag_spec=' '
9495	allow_undefined_flag=unsupported
9496	always_export_symbols=yes
9497	file_list_spec='@'
9498	# Tell ltmain to make .lib files, not .a files.
9499	libext=lib
9500	# Tell ltmain to make .dll files, not .so files.
9501	shrext_cmds=.dll
9502	# FIXME: Setting linknames here is a bad hack.
9503	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9504	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9505            cp "$export_symbols" "$output_objdir/$soname.def";
9506            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9507          else
9508            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9509          fi~
9510          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9511          linknames='
9512	# The linker will not automatically build a static lib if we build a DLL.
9513	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9514	enable_shared_with_static_runtimes=yes
9515	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9516	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9517	# Don't use ranlib
9518	old_postinstall_cmds='chmod 644 $oldlib'
9519	postlink_cmds='lt_outputfile="@OUTPUT@"~
9520          lt_tool_outputfile="@TOOL_OUTPUT@"~
9521          case $lt_outputfile in
9522            *.exe|*.EXE) ;;
9523            *)
9524              lt_outputfile=$lt_outputfile.exe
9525              lt_tool_outputfile=$lt_tool_outputfile.exe
9526              ;;
9527          esac~
9528          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9529            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9530            $RM "$lt_outputfile.manifest";
9531          fi'
9532	;;
9533      *)
9534	# Assume MSVC and ICC wrapper
9535	hardcode_libdir_flag_spec=' '
9536	allow_undefined_flag=unsupported
9537	# Tell ltmain to make .lib files, not .a files.
9538	libext=lib
9539	# Tell ltmain to make .dll files, not .so files.
9540	shrext_cmds=.dll
9541	# FIXME: Setting linknames here is a bad hack.
9542	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9543	# The linker will automatically build a .lib file if we build a DLL.
9544	old_archive_from_new_cmds='true'
9545	# FIXME: Should let the user specify the lib program.
9546	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9547	enable_shared_with_static_runtimes=yes
9548	;;
9549      esac
9550      ;;
9551
9552    darwin* | rhapsody*)
9553
9554
9555  archive_cmds_need_lc=no
9556  hardcode_direct=no
9557  hardcode_automatic=yes
9558  hardcode_shlibpath_var=unsupported
9559  if test yes = "$lt_cv_ld_force_load"; then
9560    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\"`'
9561
9562  else
9563    whole_archive_flag_spec=''
9564  fi
9565  link_all_deplibs=yes
9566  allow_undefined_flag=$_lt_dar_allow_undefined
9567  case $cc_basename in
9568     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9569     *) _lt_dar_can_shared=$GCC ;;
9570  esac
9571  if test yes = "$_lt_dar_can_shared"; then
9572    output_verbose_link_cmd=func_echo_all
9573    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9574    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9575    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"
9576    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"
9577
9578  else
9579  ld_shlibs=no
9580  fi
9581
9582      ;;
9583
9584    dgux*)
9585      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9586      hardcode_libdir_flag_spec='-L$libdir'
9587      hardcode_shlibpath_var=no
9588      ;;
9589
9590    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9591    # support.  Future versions do this automatically, but an explicit c++rt0.o
9592    # does not break anything, and helps significantly (at the cost of a little
9593    # extra space).
9594    freebsd2.2*)
9595      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9596      hardcode_libdir_flag_spec='-R$libdir'
9597      hardcode_direct=yes
9598      hardcode_shlibpath_var=no
9599      ;;
9600
9601    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9602    freebsd2.*)
9603      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9604      hardcode_direct=yes
9605      hardcode_minus_L=yes
9606      hardcode_shlibpath_var=no
9607      ;;
9608
9609    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9610    freebsd* | dragonfly*)
9611      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9612      hardcode_libdir_flag_spec='-R$libdir'
9613      hardcode_direct=yes
9614      hardcode_shlibpath_var=no
9615      ;;
9616
9617    hpux9*)
9618      if test yes = "$GCC"; then
9619	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'
9620      else
9621	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'
9622      fi
9623      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9624      hardcode_libdir_separator=:
9625      hardcode_direct=yes
9626
9627      # hardcode_minus_L: Not really in the search PATH,
9628      # but as the default location of the library.
9629      hardcode_minus_L=yes
9630      export_dynamic_flag_spec='$wl-E'
9631      ;;
9632
9633    hpux10*)
9634      if test yes,no = "$GCC,$with_gnu_ld"; then
9635	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9636      else
9637	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9638      fi
9639      if test no = "$with_gnu_ld"; then
9640	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9641	hardcode_libdir_separator=:
9642	hardcode_direct=yes
9643	hardcode_direct_absolute=yes
9644	export_dynamic_flag_spec='$wl-E'
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      fi
9649      ;;
9650
9651    hpux11*)
9652      if test yes,no = "$GCC,$with_gnu_ld"; then
9653	case $host_cpu in
9654	hppa*64*)
9655	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9656	  ;;
9657	ia64*)
9658	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9659	  ;;
9660	*)
9661	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9662	  ;;
9663	esac
9664      else
9665	case $host_cpu in
9666	hppa*64*)
9667	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9668	  ;;
9669	ia64*)
9670	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9671	  ;;
9672	*)
9673
9674	  # Older versions of the 11.00 compiler do not understand -b yet
9675	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9676	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9677$as_echo_n "checking if $CC understands -b... " >&6; }
9678if ${lt_cv_prog_compiler__b+:} false; then :
9679  $as_echo_n "(cached) " >&6
9680else
9681  lt_cv_prog_compiler__b=no
9682   save_LDFLAGS=$LDFLAGS
9683   LDFLAGS="$LDFLAGS -b"
9684   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9685   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9686     # The linker can only warn and ignore the option if not recognized
9687     # So say no if there are warnings
9688     if test -s conftest.err; then
9689       # Append any errors to the config.log.
9690       cat conftest.err 1>&5
9691       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9692       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9693       if diff conftest.exp conftest.er2 >/dev/null; then
9694         lt_cv_prog_compiler__b=yes
9695       fi
9696     else
9697       lt_cv_prog_compiler__b=yes
9698     fi
9699   fi
9700   $RM -r conftest*
9701   LDFLAGS=$save_LDFLAGS
9702
9703fi
9704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9705$as_echo "$lt_cv_prog_compiler__b" >&6; }
9706
9707if test yes = "$lt_cv_prog_compiler__b"; then
9708    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9709else
9710    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9711fi
9712
9713	  ;;
9714	esac
9715      fi
9716      if test no = "$with_gnu_ld"; then
9717	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9718	hardcode_libdir_separator=:
9719
9720	case $host_cpu in
9721	hppa*64*|ia64*)
9722	  hardcode_direct=no
9723	  hardcode_shlibpath_var=no
9724	  ;;
9725	*)
9726	  hardcode_direct=yes
9727	  hardcode_direct_absolute=yes
9728	  export_dynamic_flag_spec='$wl-E'
9729
9730	  # hardcode_minus_L: Not really in the search PATH,
9731	  # but as the default location of the library.
9732	  hardcode_minus_L=yes
9733	  ;;
9734	esac
9735      fi
9736      ;;
9737
9738    irix5* | irix6* | nonstopux*)
9739      if test yes = "$GCC"; then
9740	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'
9741	# Try to use the -exported_symbol ld option, if it does not
9742	# work, assume that -exports_file does not work either and
9743	# implicitly export all symbols.
9744	# This should be the same for all languages, so no per-tag cache variable.
9745	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9746$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9747if ${lt_cv_irix_exported_symbol+:} false; then :
9748  $as_echo_n "(cached) " >&6
9749else
9750  save_LDFLAGS=$LDFLAGS
9751	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9752	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753/* end confdefs.h.  */
9754int foo (void) { return 0; }
9755_ACEOF
9756if ac_fn_c_try_link "$LINENO"; then :
9757  lt_cv_irix_exported_symbol=yes
9758else
9759  lt_cv_irix_exported_symbol=no
9760fi
9761rm -f core conftest.err conftest.$ac_objext \
9762    conftest$ac_exeext conftest.$ac_ext
9763           LDFLAGS=$save_LDFLAGS
9764fi
9765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9766$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9767	if test yes = "$lt_cv_irix_exported_symbol"; then
9768          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'
9769	fi
9770      else
9771	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'
9772	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'
9773      fi
9774      archive_cmds_need_lc='no'
9775      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9776      hardcode_libdir_separator=:
9777      inherit_rpath=yes
9778      link_all_deplibs=yes
9779      ;;
9780
9781    linux*)
9782      case $cc_basename in
9783      tcc*)
9784	# Fabrice Bellard et al's Tiny C Compiler
9785	ld_shlibs=yes
9786	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9787	;;
9788      esac
9789      ;;
9790
9791    netbsd*)
9792      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9793	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9794      else
9795	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9796      fi
9797      hardcode_libdir_flag_spec='-R$libdir'
9798      hardcode_direct=yes
9799      hardcode_shlibpath_var=no
9800      ;;
9801
9802    newsos6)
9803      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9804      hardcode_direct=yes
9805      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9806      hardcode_libdir_separator=:
9807      hardcode_shlibpath_var=no
9808      ;;
9809
9810    *nto* | *qnx*)
9811      ;;
9812
9813    openbsd* | bitrig*)
9814      if test -f /usr/libexec/ld.so; then
9815	hardcode_direct=yes
9816	hardcode_shlibpath_var=no
9817	hardcode_direct_absolute=yes
9818	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9819	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9820	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9821	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9822	  export_dynamic_flag_spec='$wl-E'
9823	else
9824	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9825	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9826	fi
9827      else
9828	ld_shlibs=no
9829      fi
9830      ;;
9831
9832    os2*)
9833      hardcode_libdir_flag_spec='-L$libdir'
9834      hardcode_minus_L=yes
9835      allow_undefined_flag=unsupported
9836      shrext_cmds=.dll
9837      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9838	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9839	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9840	$ECHO EXPORTS >> $output_objdir/$libname.def~
9841	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9842	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9843	emximp -o $lib $output_objdir/$libname.def'
9844      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9845	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9846	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9847	$ECHO EXPORTS >> $output_objdir/$libname.def~
9848	prefix_cmds="$SED"~
9849	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9850	  prefix_cmds="$prefix_cmds -e 1d";
9851	fi~
9852	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9853	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9854	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9855	emximp -o $lib $output_objdir/$libname.def'
9856      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9857      enable_shared_with_static_runtimes=yes
9858      file_list_spec='@'
9859      ;;
9860
9861    osf3*)
9862      if test yes = "$GCC"; then
9863	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9864	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'
9865      else
9866	allow_undefined_flag=' -expect_unresolved \*'
9867	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'
9868      fi
9869      archive_cmds_need_lc='no'
9870      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9871      hardcode_libdir_separator=:
9872      ;;
9873
9874    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9875      if test yes = "$GCC"; then
9876	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9877	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'
9878	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9879      else
9880	allow_undefined_flag=' -expect_unresolved \*'
9881	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'
9882	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~
9883          $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'
9884
9885	# Both c and cxx compiler support -rpath directly
9886	hardcode_libdir_flag_spec='-rpath $libdir'
9887      fi
9888      archive_cmds_need_lc='no'
9889      hardcode_libdir_separator=:
9890      ;;
9891
9892    solaris*)
9893      no_undefined_flag=' -z defs'
9894      if test yes = "$GCC"; then
9895	wlarc='$wl'
9896	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9897	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9898          $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'
9899      else
9900	case `$CC -V 2>&1` in
9901	*"Compilers 5.0"*)
9902	  wlarc=''
9903	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9904	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9905            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9906	  ;;
9907	*)
9908	  wlarc='$wl'
9909	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9910	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9911            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9912	  ;;
9913	esac
9914      fi
9915      hardcode_libdir_flag_spec='-R$libdir'
9916      hardcode_shlibpath_var=no
9917      case $host_os in
9918      solaris2.[0-5] | solaris2.[0-5].*) ;;
9919      *)
9920	# The compiler driver will combine and reorder linker options,
9921	# but understands '-z linker_flag'.  GCC discards it without '$wl',
9922	# but is careful enough not to reorder.
9923	# Supported since Solaris 2.6 (maybe 2.5.1?)
9924	if test yes = "$GCC"; then
9925	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9926	else
9927	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9928	fi
9929	;;
9930      esac
9931      link_all_deplibs=yes
9932      ;;
9933
9934    sunos4*)
9935      if test sequent = "$host_vendor"; then
9936	# Use $CC to link under sequent, because it throws in some extra .o
9937	# files that make .init and .fini sections work.
9938	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9939      else
9940	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9941      fi
9942      hardcode_libdir_flag_spec='-L$libdir'
9943      hardcode_direct=yes
9944      hardcode_minus_L=yes
9945      hardcode_shlibpath_var=no
9946      ;;
9947
9948    sysv4)
9949      case $host_vendor in
9950	sni)
9951	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952	  hardcode_direct=yes # is this really true???
9953	;;
9954	siemens)
9955	  ## LD is ld it makes a PLAMLIB
9956	  ## CC just makes a GrossModule.
9957	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9958	  reload_cmds='$CC -r -o $output$reload_objs'
9959	  hardcode_direct=no
9960        ;;
9961	motorola)
9962	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9963	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9964	;;
9965      esac
9966      runpath_var='LD_RUN_PATH'
9967      hardcode_shlibpath_var=no
9968      ;;
9969
9970    sysv4.3*)
9971      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972      hardcode_shlibpath_var=no
9973      export_dynamic_flag_spec='-Bexport'
9974      ;;
9975
9976    sysv4*MP*)
9977      if test -d /usr/nec; then
9978	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9979	hardcode_shlibpath_var=no
9980	runpath_var=LD_RUN_PATH
9981	hardcode_runpath_var=yes
9982	ld_shlibs=yes
9983      fi
9984      ;;
9985
9986    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9987      no_undefined_flag='$wl-z,text'
9988      archive_cmds_need_lc=no
9989      hardcode_shlibpath_var=no
9990      runpath_var='LD_RUN_PATH'
9991
9992      if test yes = "$GCC"; then
9993	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9994	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9995      else
9996	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9997	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9998      fi
9999      ;;
10000
10001    sysv5* | sco3.2v5* | sco5v6*)
10002      # Note: We CANNOT use -z defs as we might desire, because we do not
10003      # link with -lc, and that would cause any symbols used from libc to
10004      # always be unresolved, which means just about no library would
10005      # ever link correctly.  If we're not using GNU ld we use -z text
10006      # though, which does catch some bad symbols but isn't as heavy-handed
10007      # as -z defs.
10008      no_undefined_flag='$wl-z,text'
10009      allow_undefined_flag='$wl-z,nodefs'
10010      archive_cmds_need_lc=no
10011      hardcode_shlibpath_var=no
10012      hardcode_libdir_flag_spec='$wl-R,$libdir'
10013      hardcode_libdir_separator=':'
10014      link_all_deplibs=yes
10015      export_dynamic_flag_spec='$wl-Bexport'
10016      runpath_var='LD_RUN_PATH'
10017
10018      if test yes = "$GCC"; then
10019	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10020	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10021      else
10022	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10023	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10024      fi
10025      ;;
10026
10027    uts4*)
10028      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10029      hardcode_libdir_flag_spec='-L$libdir'
10030      hardcode_shlibpath_var=no
10031      ;;
10032
10033    *)
10034      ld_shlibs=no
10035      ;;
10036    esac
10037
10038    if test sni = "$host_vendor"; then
10039      case $host in
10040      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10041	export_dynamic_flag_spec='$wl-Blargedynsym'
10042	;;
10043      esac
10044    fi
10045  fi
10046
10047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10048$as_echo "$ld_shlibs" >&6; }
10049test no = "$ld_shlibs" && can_build_shared=no
10050
10051with_gnu_ld=$with_gnu_ld
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067#
10068# Do we need to explicitly link libc?
10069#
10070case "x$archive_cmds_need_lc" in
10071x|xyes)
10072  # Assume -lc should be added
10073  archive_cmds_need_lc=yes
10074
10075  if test yes,yes = "$GCC,$enable_shared"; then
10076    case $archive_cmds in
10077    *'~'*)
10078      # FIXME: we may have to deal with multi-command sequences.
10079      ;;
10080    '$CC '*)
10081      # Test whether the compiler implicitly links with -lc since on some
10082      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10083      # to ld, don't add -lc before -lgcc.
10084      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10085$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10086if ${lt_cv_archive_cmds_need_lc+:} false; then :
10087  $as_echo_n "(cached) " >&6
10088else
10089  $RM conftest*
10090	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10091
10092	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10093  (eval $ac_compile) 2>&5
10094  ac_status=$?
10095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10096  test $ac_status = 0; } 2>conftest.err; then
10097	  soname=conftest
10098	  lib=conftest
10099	  libobjs=conftest.$ac_objext
10100	  deplibs=
10101	  wl=$lt_prog_compiler_wl
10102	  pic_flag=$lt_prog_compiler_pic
10103	  compiler_flags=-v
10104	  linker_flags=-v
10105	  verstring=
10106	  output_objdir=.
10107	  libname=conftest
10108	  lt_save_allow_undefined_flag=$allow_undefined_flag
10109	  allow_undefined_flag=
10110	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10111  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10112  ac_status=$?
10113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10114  test $ac_status = 0; }
10115	  then
10116	    lt_cv_archive_cmds_need_lc=no
10117	  else
10118	    lt_cv_archive_cmds_need_lc=yes
10119	  fi
10120	  allow_undefined_flag=$lt_save_allow_undefined_flag
10121	else
10122	  cat conftest.err 1>&5
10123	fi
10124	$RM conftest*
10125
10126fi
10127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10128$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10129      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10130      ;;
10131    esac
10132  fi
10133  ;;
10134esac
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
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10288$as_echo_n "checking dynamic linker characteristics... " >&6; }
10289
10290if test yes = "$GCC"; then
10291  case $host_os in
10292    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10293    *) lt_awk_arg='/^libraries:/' ;;
10294  esac
10295  case $host_os in
10296    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10297    *) lt_sed_strip_eq='s|=/|/|g' ;;
10298  esac
10299  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10300  case $lt_search_path_spec in
10301  *\;*)
10302    # if the path contains ";" then we assume it to be the separator
10303    # otherwise default to the standard path separator (i.e. ":") - it is
10304    # assumed that no part of a normal pathname contains ";" but that should
10305    # okay in the real world where ";" in dirpaths is itself problematic.
10306    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10307    ;;
10308  *)
10309    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10310    ;;
10311  esac
10312  # Ok, now we have the path, separated by spaces, we can step through it
10313  # and add multilib dir if necessary...
10314  lt_tmp_lt_search_path_spec=
10315  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10316  # ...but if some path component already ends with the multilib dir we assume
10317  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10318  case "$lt_multi_os_dir; $lt_search_path_spec " in
10319  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10320    lt_multi_os_dir=
10321    ;;
10322  esac
10323  for lt_sys_path in $lt_search_path_spec; do
10324    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10325      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10326    elif test -n "$lt_multi_os_dir"; then
10327      test -d "$lt_sys_path" && \
10328	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10329    fi
10330  done
10331  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10332BEGIN {RS = " "; FS = "/|\n";} {
10333  lt_foo = "";
10334  lt_count = 0;
10335  for (lt_i = NF; lt_i > 0; lt_i--) {
10336    if ($lt_i != "" && $lt_i != ".") {
10337      if ($lt_i == "..") {
10338        lt_count++;
10339      } else {
10340        if (lt_count == 0) {
10341          lt_foo = "/" $lt_i lt_foo;
10342        } else {
10343          lt_count--;
10344        }
10345      }
10346    }
10347  }
10348  if (lt_foo != "") { lt_freq[lt_foo]++; }
10349  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10350}'`
10351  # AWK program above erroneously prepends '/' to C:/dos/paths
10352  # for these hosts.
10353  case $host_os in
10354    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10355      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10356  esac
10357  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10358else
10359  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10360fi
10361library_names_spec=
10362libname_spec='lib$name'
10363soname_spec=
10364shrext_cmds=.so
10365postinstall_cmds=
10366postuninstall_cmds=
10367finish_cmds=
10368finish_eval=
10369shlibpath_var=
10370shlibpath_overrides_runpath=unknown
10371version_type=none
10372dynamic_linker="$host_os ld.so"
10373sys_lib_dlsearch_path_spec="/lib /usr/lib"
10374need_lib_prefix=unknown
10375hardcode_into_libs=no
10376
10377# when you set need_version to no, make sure it does not cause -set_version
10378# flags to be left without arguments
10379need_version=unknown
10380
10381
10382
10383case $host_os in
10384aix3*)
10385  version_type=linux # correct to gnu/linux during the next big refactor
10386  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10387  shlibpath_var=LIBPATH
10388
10389  # AIX 3 has no versioning support, so we append a major version to the name.
10390  soname_spec='$libname$release$shared_ext$major'
10391  ;;
10392
10393aix[4-9]*)
10394  version_type=linux # correct to gnu/linux during the next big refactor
10395  need_lib_prefix=no
10396  need_version=no
10397  hardcode_into_libs=yes
10398  if test ia64 = "$host_cpu"; then
10399    # AIX 5 supports IA64
10400    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10401    shlibpath_var=LD_LIBRARY_PATH
10402  else
10403    # With GCC up to 2.95.x, collect2 would create an import file
10404    # for dependence libraries.  The import file would start with
10405    # the line '#! .'.  This would cause the generated library to
10406    # depend on '.', always an invalid library.  This was fixed in
10407    # development snapshots of GCC prior to 3.0.
10408    case $host_os in
10409      aix4 | aix4.[01] | aix4.[01].*)
10410      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10411	   echo ' yes '
10412	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10413	:
10414      else
10415	can_build_shared=no
10416      fi
10417      ;;
10418    esac
10419    # Using Import Files as archive members, it is possible to support
10420    # filename-based versioning of shared library archives on AIX. While
10421    # this would work for both with and without runtime linking, it will
10422    # prevent static linking of such archives. So we do filename-based
10423    # shared library versioning with .so extension only, which is used
10424    # when both runtime linking and shared linking is enabled.
10425    # Unfortunately, runtime linking may impact performance, so we do
10426    # not want this to be the default eventually. Also, we use the
10427    # versioned .so libs for executables only if there is the -brtl
10428    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10429    # To allow for filename-based versioning support, we need to create
10430    # libNAME.so.V as an archive file, containing:
10431    # *) an Import File, referring to the versioned filename of the
10432    #    archive as well as the shared archive member, telling the
10433    #    bitwidth (32 or 64) of that shared object, and providing the
10434    #    list of exported symbols of that shared object, eventually
10435    #    decorated with the 'weak' keyword
10436    # *) the shared object with the F_LOADONLY flag set, to really avoid
10437    #    it being seen by the linker.
10438    # At run time we better use the real file rather than another symlink,
10439    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10440
10441    case $with_aix_soname,$aix_use_runtimelinking in
10442    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10443    # soname into executable. Probably we can add versioning support to
10444    # collect2, so additional links can be useful in future.
10445    aix,yes) # traditional libtool
10446      dynamic_linker='AIX unversionable lib.so'
10447      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10448      # instead of lib<name>.a to let people know that these are not
10449      # typical AIX shared libraries.
10450      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10451      ;;
10452    aix,no) # traditional AIX only
10453      dynamic_linker='AIX lib.a(lib.so.V)'
10454      # We preserve .a as extension for shared libraries through AIX4.2
10455      # and later when we are not doing run time linking.
10456      library_names_spec='$libname$release.a $libname.a'
10457      soname_spec='$libname$release$shared_ext$major'
10458      ;;
10459    svr4,*) # full svr4 only
10460      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10461      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10462      # We do not specify a path in Import Files, so LIBPATH fires.
10463      shlibpath_overrides_runpath=yes
10464      ;;
10465    *,yes) # both, prefer svr4
10466      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10467      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10468      # unpreferred sharedlib libNAME.a needs extra handling
10469      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10470      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10471      # We do not specify a path in Import Files, so LIBPATH fires.
10472      shlibpath_overrides_runpath=yes
10473      ;;
10474    *,no) # both, prefer aix
10475      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10476      library_names_spec='$libname$release.a $libname.a'
10477      soname_spec='$libname$release$shared_ext$major'
10478      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10479      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10480      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10481      ;;
10482    esac
10483    shlibpath_var=LIBPATH
10484  fi
10485  ;;
10486
10487amigaos*)
10488  case $host_cpu in
10489  powerpc)
10490    # Since July 2007 AmigaOS4 officially supports .so libraries.
10491    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10492    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10493    ;;
10494  m68k)
10495    library_names_spec='$libname.ixlibrary $libname.a'
10496    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10497    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'
10498    ;;
10499  esac
10500  ;;
10501
10502beos*)
10503  library_names_spec='$libname$shared_ext'
10504  dynamic_linker="$host_os ld.so"
10505  shlibpath_var=LIBRARY_PATH
10506  ;;
10507
10508bsdi[45]*)
10509  version_type=linux # correct to gnu/linux during the next big refactor
10510  need_version=no
10511  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10512  soname_spec='$libname$release$shared_ext$major'
10513  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10514  shlibpath_var=LD_LIBRARY_PATH
10515  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10516  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10517  # the default ld.so.conf also contains /usr/contrib/lib and
10518  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10519  # libtool to hard-code these into programs
10520  ;;
10521
10522cygwin* | mingw* | pw32* | cegcc*)
10523  version_type=windows
10524  shrext_cmds=.dll
10525  need_version=no
10526  need_lib_prefix=no
10527
10528  case $GCC,$cc_basename in
10529  yes,*)
10530    # gcc
10531    library_names_spec='$libname.dll.a'
10532    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10533    postinstall_cmds='base_file=`basename \$file`~
10534      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10535      dldir=$destdir/`dirname \$dlpath`~
10536      test -d \$dldir || mkdir -p \$dldir~
10537      $install_prog $dir/$dlname \$dldir/$dlname~
10538      chmod a+x \$dldir/$dlname~
10539      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10540        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10541      fi'
10542    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10543      dlpath=$dir/\$dldll~
10544       $RM \$dlpath'
10545    shlibpath_overrides_runpath=yes
10546
10547    case $host_os in
10548    cygwin*)
10549      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10550      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10551
10552      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10553      ;;
10554    mingw* | cegcc*)
10555      # MinGW DLLs use traditional 'lib' prefix
10556      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10557      ;;
10558    pw32*)
10559      # pw32 DLLs use 'pw' prefix rather than 'lib'
10560      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10561      ;;
10562    esac
10563    dynamic_linker='Win32 ld.exe'
10564    ;;
10565
10566  *,cl* | *,icl*)
10567    # Native MSVC or ICC
10568    libname_spec='$name'
10569    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10570    library_names_spec='$libname.dll.lib'
10571
10572    case $build_os in
10573    mingw*)
10574      sys_lib_search_path_spec=
10575      lt_save_ifs=$IFS
10576      IFS=';'
10577      for lt_path in $LIB
10578      do
10579        IFS=$lt_save_ifs
10580        # Let DOS variable expansion print the short 8.3 style file name.
10581        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10582        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10583      done
10584      IFS=$lt_save_ifs
10585      # Convert to MSYS style.
10586      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10587      ;;
10588    cygwin*)
10589      # Convert to unix form, then to dos form, then back to unix form
10590      # but this time dos style (no spaces!) so that the unix form looks
10591      # like /cygdrive/c/PROGRA~1:/cygdr...
10592      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10593      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10594      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10595      ;;
10596    *)
10597      sys_lib_search_path_spec=$LIB
10598      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10599        # It is most probably a Windows format PATH.
10600        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10601      else
10602        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10603      fi
10604      # FIXME: find the short name or the path components, as spaces are
10605      # common. (e.g. "Program Files" -> "PROGRA~1")
10606      ;;
10607    esac
10608
10609    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10610    postinstall_cmds='base_file=`basename \$file`~
10611      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10612      dldir=$destdir/`dirname \$dlpath`~
10613      test -d \$dldir || mkdir -p \$dldir~
10614      $install_prog $dir/$dlname \$dldir/$dlname'
10615    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10616      dlpath=$dir/\$dldll~
10617       $RM \$dlpath'
10618    shlibpath_overrides_runpath=yes
10619    dynamic_linker='Win32 link.exe'
10620    ;;
10621
10622  *)
10623    # Assume MSVC and ICC wrapper
10624    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10625    dynamic_linker='Win32 ld.exe'
10626    ;;
10627  esac
10628  # FIXME: first we should search . and the directory the executable is in
10629  shlibpath_var=PATH
10630  ;;
10631
10632darwin* | rhapsody*)
10633  dynamic_linker="$host_os dyld"
10634  version_type=darwin
10635  need_lib_prefix=no
10636  need_version=no
10637  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10638  soname_spec='$libname$release$major$shared_ext'
10639  shlibpath_overrides_runpath=yes
10640  shlibpath_var=DYLD_LIBRARY_PATH
10641  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10642
10643  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10644  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10645  ;;
10646
10647dgux*)
10648  version_type=linux # correct to gnu/linux during the next big refactor
10649  need_lib_prefix=no
10650  need_version=no
10651  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10652  soname_spec='$libname$release$shared_ext$major'
10653  shlibpath_var=LD_LIBRARY_PATH
10654  ;;
10655
10656freebsd* | dragonfly*)
10657  # DragonFly does not have aout.  When/if they implement a new
10658  # versioning mechanism, adjust this.
10659  if test -x /usr/bin/objformat; then
10660    objformat=`/usr/bin/objformat`
10661  else
10662    case $host_os in
10663    freebsd[23].*) objformat=aout ;;
10664    *) objformat=elf ;;
10665    esac
10666  fi
10667  version_type=freebsd-$objformat
10668  case $version_type in
10669    freebsd-elf*)
10670      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10671      soname_spec='$libname$release$shared_ext$major'
10672      need_version=no
10673      need_lib_prefix=no
10674      ;;
10675    freebsd-*)
10676      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10677      need_version=yes
10678      ;;
10679  esac
10680  shlibpath_var=LD_LIBRARY_PATH
10681  case $host_os in
10682  freebsd2.*)
10683    shlibpath_overrides_runpath=yes
10684    ;;
10685  freebsd3.[01]* | freebsdelf3.[01]*)
10686    shlibpath_overrides_runpath=yes
10687    hardcode_into_libs=yes
10688    ;;
10689  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10690  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10691    shlibpath_overrides_runpath=no
10692    hardcode_into_libs=yes
10693    ;;
10694  *) # from 4.6 on, and DragonFly
10695    shlibpath_overrides_runpath=yes
10696    hardcode_into_libs=yes
10697    ;;
10698  esac
10699  ;;
10700
10701haiku*)
10702  version_type=linux # correct to gnu/linux during the next big refactor
10703  need_lib_prefix=no
10704  need_version=no
10705  dynamic_linker="$host_os runtime_loader"
10706  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10707  soname_spec='$libname$release$shared_ext$major'
10708  shlibpath_var=LIBRARY_PATH
10709  shlibpath_overrides_runpath=no
10710  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10711  hardcode_into_libs=yes
10712  ;;
10713
10714hpux9* | hpux10* | hpux11*)
10715  # Give a soname corresponding to the major version so that dld.sl refuses to
10716  # link against other versions.
10717  version_type=sunos
10718  need_lib_prefix=no
10719  need_version=no
10720  case $host_cpu in
10721  ia64*)
10722    shrext_cmds='.so'
10723    hardcode_into_libs=yes
10724    dynamic_linker="$host_os dld.so"
10725    shlibpath_var=LD_LIBRARY_PATH
10726    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10727    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10728    soname_spec='$libname$release$shared_ext$major'
10729    if test 32 = "$HPUX_IA64_MODE"; then
10730      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10731      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10732    else
10733      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10734      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10735    fi
10736    ;;
10737  hppa*64*)
10738    shrext_cmds='.sl'
10739    hardcode_into_libs=yes
10740    dynamic_linker="$host_os dld.sl"
10741    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10742    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10743    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10744    soname_spec='$libname$release$shared_ext$major'
10745    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10746    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10747    ;;
10748  *)
10749    shrext_cmds='.sl'
10750    dynamic_linker="$host_os dld.sl"
10751    shlibpath_var=SHLIB_PATH
10752    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10753    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10754    soname_spec='$libname$release$shared_ext$major'
10755    ;;
10756  esac
10757  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10758  postinstall_cmds='chmod 555 $lib'
10759  # or fails outright, so override atomically:
10760  install_override_mode=555
10761  ;;
10762
10763interix[3-9]*)
10764  version_type=linux # correct to gnu/linux during the next big refactor
10765  need_lib_prefix=no
10766  need_version=no
10767  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10768  soname_spec='$libname$release$shared_ext$major'
10769  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10770  shlibpath_var=LD_LIBRARY_PATH
10771  shlibpath_overrides_runpath=no
10772  hardcode_into_libs=yes
10773  ;;
10774
10775irix5* | irix6* | nonstopux*)
10776  case $host_os in
10777    nonstopux*) version_type=nonstopux ;;
10778    *)
10779	if test yes = "$lt_cv_prog_gnu_ld"; then
10780		version_type=linux # correct to gnu/linux during the next big refactor
10781	else
10782		version_type=irix
10783	fi ;;
10784  esac
10785  need_lib_prefix=no
10786  need_version=no
10787  soname_spec='$libname$release$shared_ext$major'
10788  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10789  case $host_os in
10790  irix5* | nonstopux*)
10791    libsuff= shlibsuff=
10792    ;;
10793  *)
10794    case $LD in # libtool.m4 will add one of these switches to LD
10795    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10796      libsuff= shlibsuff= libmagic=32-bit;;
10797    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10798      libsuff=32 shlibsuff=N32 libmagic=N32;;
10799    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10800      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10801    *) libsuff= shlibsuff= libmagic=never-match;;
10802    esac
10803    ;;
10804  esac
10805  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10806  shlibpath_overrides_runpath=no
10807  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10808  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10809  hardcode_into_libs=yes
10810  ;;
10811
10812# No shared lib support for Linux oldld, aout, or coff.
10813linux*oldld* | linux*aout* | linux*coff*)
10814  dynamic_linker=no
10815  ;;
10816
10817linux*android*)
10818  version_type=none # Android doesn't support versioned libraries.
10819  need_lib_prefix=no
10820  need_version=no
10821  library_names_spec='$libname$release$shared_ext'
10822  soname_spec='$libname$release$shared_ext'
10823  finish_cmds=
10824  shlibpath_var=LD_LIBRARY_PATH
10825  shlibpath_overrides_runpath=yes
10826
10827  # This implies no fast_install, which is unacceptable.
10828  # Some rework will be needed to allow for fast_install
10829  # before this can be enabled.
10830  hardcode_into_libs=yes
10831
10832  dynamic_linker='Android linker'
10833  # Don't embed -rpath directories since the linker doesn't support them.
10834  hardcode_libdir_flag_spec='-L$libdir'
10835  ;;
10836
10837# This must be glibc/ELF.
10838linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10839  version_type=linux # correct to gnu/linux during the next big refactor
10840  need_lib_prefix=no
10841  need_version=no
10842  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10843  soname_spec='$libname$release$shared_ext$major'
10844  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10845  shlibpath_var=LD_LIBRARY_PATH
10846  shlibpath_overrides_runpath=no
10847
10848  # Some binutils ld are patched to set DT_RUNPATH
10849  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10850  $as_echo_n "(cached) " >&6
10851else
10852  lt_cv_shlibpath_overrides_runpath=no
10853    save_LDFLAGS=$LDFLAGS
10854    save_libdir=$libdir
10855    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10856	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10857    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858/* end confdefs.h.  */
10859
10860int
10861main ()
10862{
10863
10864  ;
10865  return 0;
10866}
10867_ACEOF
10868if ac_fn_c_try_link "$LINENO"; then :
10869  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10870  lt_cv_shlibpath_overrides_runpath=yes
10871fi
10872fi
10873rm -f core conftest.err conftest.$ac_objext \
10874    conftest$ac_exeext conftest.$ac_ext
10875    LDFLAGS=$save_LDFLAGS
10876    libdir=$save_libdir
10877
10878fi
10879
10880  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10881
10882  # This implies no fast_install, which is unacceptable.
10883  # Some rework will be needed to allow for fast_install
10884  # before this can be enabled.
10885  hardcode_into_libs=yes
10886
10887  # Ideally, we could use ldconfig to report *all* directores which are
10888  # searched for libraries, however this is still not possible.  Aside from not
10889  # being certain /sbin/ldconfig is available, command
10890  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10891  # even though it is searched at run-time.  Try to do the best guess by
10892  # appending ld.so.conf contents (and includes) to the search path.
10893  if test -f /etc/ld.so.conf; then
10894    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' ' '`
10895    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10896  fi
10897
10898  # We used to test for /lib/ld.so.1 and disable shared libraries on
10899  # powerpc, because MkLinux only supported shared libraries with the
10900  # GNU dynamic linker.  Since this was broken with cross compilers,
10901  # most powerpc-linux boxes support dynamic linking these days and
10902  # people can always --disable-shared, the test was removed, and we
10903  # assume the GNU/Linux dynamic linker is in use.
10904  dynamic_linker='GNU/Linux ld.so'
10905  ;;
10906
10907netbsd*)
10908  version_type=sunos
10909  need_lib_prefix=no
10910  need_version=no
10911  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10912    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10913    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10914    dynamic_linker='NetBSD (a.out) ld.so'
10915  else
10916    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10917    soname_spec='$libname$release$shared_ext$major'
10918    dynamic_linker='NetBSD ld.elf_so'
10919  fi
10920  shlibpath_var=LD_LIBRARY_PATH
10921  shlibpath_overrides_runpath=yes
10922  hardcode_into_libs=yes
10923  ;;
10924
10925newsos6)
10926  version_type=linux # correct to gnu/linux during the next big refactor
10927  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10928  shlibpath_var=LD_LIBRARY_PATH
10929  shlibpath_overrides_runpath=yes
10930  ;;
10931
10932*nto* | *qnx*)
10933  version_type=qnx
10934  need_lib_prefix=no
10935  need_version=no
10936  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10937  soname_spec='$libname$release$shared_ext$major'
10938  shlibpath_var=LD_LIBRARY_PATH
10939  shlibpath_overrides_runpath=no
10940  hardcode_into_libs=yes
10941  dynamic_linker='ldqnx.so'
10942  ;;
10943
10944openbsd* | bitrig*)
10945  version_type=sunos
10946  sys_lib_dlsearch_path_spec=/usr/lib
10947  need_lib_prefix=no
10948  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10949    need_version=no
10950  else
10951    need_version=yes
10952  fi
10953  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10954  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10955  shlibpath_var=LD_LIBRARY_PATH
10956  shlibpath_overrides_runpath=yes
10957  ;;
10958
10959os2*)
10960  libname_spec='$name'
10961  version_type=windows
10962  shrext_cmds=.dll
10963  need_version=no
10964  need_lib_prefix=no
10965  # OS/2 can only load a DLL with a base name of 8 characters or less.
10966  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10967    v=$($ECHO $release$versuffix | tr -d .-);
10968    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10969    $ECHO $n$v`$shared_ext'
10970  library_names_spec='${libname}_dll.$libext'
10971  dynamic_linker='OS/2 ld.exe'
10972  shlibpath_var=BEGINLIBPATH
10973  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10974  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10975  postinstall_cmds='base_file=`basename \$file`~
10976    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10977    dldir=$destdir/`dirname \$dlpath`~
10978    test -d \$dldir || mkdir -p \$dldir~
10979    $install_prog $dir/$dlname \$dldir/$dlname~
10980    chmod a+x \$dldir/$dlname~
10981    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10982      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10983    fi'
10984  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10985    dlpath=$dir/\$dldll~
10986    $RM \$dlpath'
10987  ;;
10988
10989osf3* | osf4* | osf5*)
10990  version_type=osf
10991  need_lib_prefix=no
10992  need_version=no
10993  soname_spec='$libname$release$shared_ext$major'
10994  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10995  shlibpath_var=LD_LIBRARY_PATH
10996  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10997  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10998  ;;
10999
11000rdos*)
11001  dynamic_linker=no
11002  ;;
11003
11004solaris*)
11005  version_type=linux # correct to gnu/linux during the next big refactor
11006  need_lib_prefix=no
11007  need_version=no
11008  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11009  soname_spec='$libname$release$shared_ext$major'
11010  shlibpath_var=LD_LIBRARY_PATH
11011  shlibpath_overrides_runpath=yes
11012  hardcode_into_libs=yes
11013  # ldd complains unless libraries are executable
11014  postinstall_cmds='chmod +x $lib'
11015  ;;
11016
11017sunos4*)
11018  version_type=sunos
11019  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11020  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11021  shlibpath_var=LD_LIBRARY_PATH
11022  shlibpath_overrides_runpath=yes
11023  if test yes = "$with_gnu_ld"; then
11024    need_lib_prefix=no
11025  fi
11026  need_version=yes
11027  ;;
11028
11029sysv4 | sysv4.3*)
11030  version_type=linux # correct to gnu/linux during the next big refactor
11031  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11032  soname_spec='$libname$release$shared_ext$major'
11033  shlibpath_var=LD_LIBRARY_PATH
11034  case $host_vendor in
11035    sni)
11036      shlibpath_overrides_runpath=no
11037      need_lib_prefix=no
11038      runpath_var=LD_RUN_PATH
11039      ;;
11040    siemens)
11041      need_lib_prefix=no
11042      ;;
11043    motorola)
11044      need_lib_prefix=no
11045      need_version=no
11046      shlibpath_overrides_runpath=no
11047      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11048      ;;
11049  esac
11050  ;;
11051
11052sysv4*MP*)
11053  if test -d /usr/nec; then
11054    version_type=linux # correct to gnu/linux during the next big refactor
11055    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11056    soname_spec='$libname$shared_ext.$major'
11057    shlibpath_var=LD_LIBRARY_PATH
11058  fi
11059  ;;
11060
11061sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11062  version_type=sco
11063  need_lib_prefix=no
11064  need_version=no
11065  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11066  soname_spec='$libname$release$shared_ext$major'
11067  shlibpath_var=LD_LIBRARY_PATH
11068  shlibpath_overrides_runpath=yes
11069  hardcode_into_libs=yes
11070  if test yes = "$with_gnu_ld"; then
11071    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11072  else
11073    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11074    case $host_os in
11075      sco3.2v5*)
11076        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11077	;;
11078    esac
11079  fi
11080  sys_lib_dlsearch_path_spec='/usr/lib'
11081  ;;
11082
11083tpf*)
11084  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11085  version_type=linux # correct to gnu/linux during the next big refactor
11086  need_lib_prefix=no
11087  need_version=no
11088  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11089  shlibpath_var=LD_LIBRARY_PATH
11090  shlibpath_overrides_runpath=no
11091  hardcode_into_libs=yes
11092  ;;
11093
11094uts4*)
11095  version_type=linux # correct to gnu/linux during the next big refactor
11096  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11097  soname_spec='$libname$release$shared_ext$major'
11098  shlibpath_var=LD_LIBRARY_PATH
11099  ;;
11100
11101*)
11102  dynamic_linker=no
11103  ;;
11104esac
11105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11106$as_echo "$dynamic_linker" >&6; }
11107test no = "$dynamic_linker" && can_build_shared=no
11108
11109variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11110if test yes = "$GCC"; then
11111  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11112fi
11113
11114if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11115  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11116fi
11117
11118if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11119  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11120fi
11121
11122# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11123configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11124
11125# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11126func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11127
11128# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11129configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11228$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11229hardcode_action=
11230if test -n "$hardcode_libdir_flag_spec" ||
11231   test -n "$runpath_var" ||
11232   test yes = "$hardcode_automatic"; then
11233
11234  # We can hardcode non-existent directories.
11235  if test no != "$hardcode_direct" &&
11236     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11237     # have to relink, otherwise we might link with an installed library
11238     # when we should be linking with a yet-to-be-installed one
11239     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11240     test no != "$hardcode_minus_L"; then
11241    # Linking always hardcodes the temporary library directory.
11242    hardcode_action=relink
11243  else
11244    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11245    hardcode_action=immediate
11246  fi
11247else
11248  # We cannot hardcode anything, or else we can only hardcode existing
11249  # directories.
11250  hardcode_action=unsupported
11251fi
11252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11253$as_echo "$hardcode_action" >&6; }
11254
11255if test relink = "$hardcode_action" ||
11256   test yes = "$inherit_rpath"; then
11257  # Fast installation is not supported
11258  enable_fast_install=no
11259elif test yes = "$shlibpath_overrides_runpath" ||
11260     test no = "$enable_shared"; then
11261  # Fast installation is not necessary
11262  enable_fast_install=needless
11263fi
11264
11265
11266
11267
11268
11269
11270  if test yes != "$enable_dlopen"; then
11271  enable_dlopen=unknown
11272  enable_dlopen_self=unknown
11273  enable_dlopen_self_static=unknown
11274else
11275  lt_cv_dlopen=no
11276  lt_cv_dlopen_libs=
11277
11278  case $host_os in
11279  beos*)
11280    lt_cv_dlopen=load_add_on
11281    lt_cv_dlopen_libs=
11282    lt_cv_dlopen_self=yes
11283    ;;
11284
11285  mingw* | pw32* | cegcc*)
11286    lt_cv_dlopen=LoadLibrary
11287    lt_cv_dlopen_libs=
11288    ;;
11289
11290  cygwin*)
11291    lt_cv_dlopen=dlopen
11292    lt_cv_dlopen_libs=
11293    ;;
11294
11295  darwin*)
11296    # if libdl is installed we need to link against it
11297    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11298$as_echo_n "checking for dlopen in -ldl... " >&6; }
11299if ${ac_cv_lib_dl_dlopen+:} false; then :
11300  $as_echo_n "(cached) " >&6
11301else
11302  ac_check_lib_save_LIBS=$LIBS
11303LIBS="-ldl  $LIBS"
11304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11305/* end confdefs.h.  */
11306
11307/* Override any GCC internal prototype to avoid an error.
11308   Use char because int might match the return type of a GCC
11309   builtin and then its argument prototype would still apply.  */
11310#ifdef __cplusplus
11311extern "C"
11312#endif
11313char dlopen ();
11314int
11315main ()
11316{
11317return dlopen ();
11318  ;
11319  return 0;
11320}
11321_ACEOF
11322if ac_fn_c_try_link "$LINENO"; then :
11323  ac_cv_lib_dl_dlopen=yes
11324else
11325  ac_cv_lib_dl_dlopen=no
11326fi
11327rm -f core conftest.err conftest.$ac_objext \
11328    conftest$ac_exeext conftest.$ac_ext
11329LIBS=$ac_check_lib_save_LIBS
11330fi
11331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11332$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11333if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11334  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11335else
11336
11337    lt_cv_dlopen=dyld
11338    lt_cv_dlopen_libs=
11339    lt_cv_dlopen_self=yes
11340
11341fi
11342
11343    ;;
11344
11345  tpf*)
11346    # Don't try to run any link tests for TPF.  We know it's impossible
11347    # because TPF is a cross-compiler, and we know how we open DSOs.
11348    lt_cv_dlopen=dlopen
11349    lt_cv_dlopen_libs=
11350    lt_cv_dlopen_self=no
11351    ;;
11352
11353  *)
11354    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11355if test "x$ac_cv_func_shl_load" = xyes; then :
11356  lt_cv_dlopen=shl_load
11357else
11358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11359$as_echo_n "checking for shl_load in -ldld... " >&6; }
11360if ${ac_cv_lib_dld_shl_load+:} false; then :
11361  $as_echo_n "(cached) " >&6
11362else
11363  ac_check_lib_save_LIBS=$LIBS
11364LIBS="-ldld  $LIBS"
11365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366/* end confdefs.h.  */
11367
11368/* Override any GCC internal prototype to avoid an error.
11369   Use char because int might match the return type of a GCC
11370   builtin and then its argument prototype would still apply.  */
11371#ifdef __cplusplus
11372extern "C"
11373#endif
11374char shl_load ();
11375int
11376main ()
11377{
11378return shl_load ();
11379  ;
11380  return 0;
11381}
11382_ACEOF
11383if ac_fn_c_try_link "$LINENO"; then :
11384  ac_cv_lib_dld_shl_load=yes
11385else
11386  ac_cv_lib_dld_shl_load=no
11387fi
11388rm -f core conftest.err conftest.$ac_objext \
11389    conftest$ac_exeext conftest.$ac_ext
11390LIBS=$ac_check_lib_save_LIBS
11391fi
11392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11393$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11394if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11395  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11396else
11397  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11398if test "x$ac_cv_func_dlopen" = xyes; then :
11399  lt_cv_dlopen=dlopen
11400else
11401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11402$as_echo_n "checking for dlopen in -ldl... " >&6; }
11403if ${ac_cv_lib_dl_dlopen+:} false; then :
11404  $as_echo_n "(cached) " >&6
11405else
11406  ac_check_lib_save_LIBS=$LIBS
11407LIBS="-ldl  $LIBS"
11408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409/* end confdefs.h.  */
11410
11411/* Override any GCC internal prototype to avoid an error.
11412   Use char because int might match the return type of a GCC
11413   builtin and then its argument prototype would still apply.  */
11414#ifdef __cplusplus
11415extern "C"
11416#endif
11417char dlopen ();
11418int
11419main ()
11420{
11421return dlopen ();
11422  ;
11423  return 0;
11424}
11425_ACEOF
11426if ac_fn_c_try_link "$LINENO"; then :
11427  ac_cv_lib_dl_dlopen=yes
11428else
11429  ac_cv_lib_dl_dlopen=no
11430fi
11431rm -f core conftest.err conftest.$ac_objext \
11432    conftest$ac_exeext conftest.$ac_ext
11433LIBS=$ac_check_lib_save_LIBS
11434fi
11435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11436$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11437if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11438  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11439else
11440  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11441$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11442if ${ac_cv_lib_svld_dlopen+:} false; then :
11443  $as_echo_n "(cached) " >&6
11444else
11445  ac_check_lib_save_LIBS=$LIBS
11446LIBS="-lsvld  $LIBS"
11447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448/* end confdefs.h.  */
11449
11450/* Override any GCC internal prototype to avoid an error.
11451   Use char because int might match the return type of a GCC
11452   builtin and then its argument prototype would still apply.  */
11453#ifdef __cplusplus
11454extern "C"
11455#endif
11456char dlopen ();
11457int
11458main ()
11459{
11460return dlopen ();
11461  ;
11462  return 0;
11463}
11464_ACEOF
11465if ac_fn_c_try_link "$LINENO"; then :
11466  ac_cv_lib_svld_dlopen=yes
11467else
11468  ac_cv_lib_svld_dlopen=no
11469fi
11470rm -f core conftest.err conftest.$ac_objext \
11471    conftest$ac_exeext conftest.$ac_ext
11472LIBS=$ac_check_lib_save_LIBS
11473fi
11474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11475$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11476if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11477  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11478else
11479  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11480$as_echo_n "checking for dld_link in -ldld... " >&6; }
11481if ${ac_cv_lib_dld_dld_link+:} false; then :
11482  $as_echo_n "(cached) " >&6
11483else
11484  ac_check_lib_save_LIBS=$LIBS
11485LIBS="-ldld  $LIBS"
11486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487/* end confdefs.h.  */
11488
11489/* Override any GCC internal prototype to avoid an error.
11490   Use char because int might match the return type of a GCC
11491   builtin and then its argument prototype would still apply.  */
11492#ifdef __cplusplus
11493extern "C"
11494#endif
11495char dld_link ();
11496int
11497main ()
11498{
11499return dld_link ();
11500  ;
11501  return 0;
11502}
11503_ACEOF
11504if ac_fn_c_try_link "$LINENO"; then :
11505  ac_cv_lib_dld_dld_link=yes
11506else
11507  ac_cv_lib_dld_dld_link=no
11508fi
11509rm -f core conftest.err conftest.$ac_objext \
11510    conftest$ac_exeext conftest.$ac_ext
11511LIBS=$ac_check_lib_save_LIBS
11512fi
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11514$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11515if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11516  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11517fi
11518
11519
11520fi
11521
11522
11523fi
11524
11525
11526fi
11527
11528
11529fi
11530
11531
11532fi
11533
11534    ;;
11535  esac
11536
11537  if test no = "$lt_cv_dlopen"; then
11538    enable_dlopen=no
11539  else
11540    enable_dlopen=yes
11541  fi
11542
11543  case $lt_cv_dlopen in
11544  dlopen)
11545    save_CPPFLAGS=$CPPFLAGS
11546    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11547
11548    save_LDFLAGS=$LDFLAGS
11549    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11550
11551    save_LIBS=$LIBS
11552    LIBS="$lt_cv_dlopen_libs $LIBS"
11553
11554    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11555$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11556if ${lt_cv_dlopen_self+:} false; then :
11557  $as_echo_n "(cached) " >&6
11558else
11559  	  if test yes = "$cross_compiling"; then :
11560  lt_cv_dlopen_self=cross
11561else
11562  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11563  lt_status=$lt_dlunknown
11564  cat > conftest.$ac_ext <<_LT_EOF
11565#line $LINENO "configure"
11566#include "confdefs.h"
11567
11568#if HAVE_DLFCN_H
11569#include <dlfcn.h>
11570#endif
11571
11572#include <stdio.h>
11573
11574#ifdef RTLD_GLOBAL
11575#  define LT_DLGLOBAL		RTLD_GLOBAL
11576#else
11577#  ifdef DL_GLOBAL
11578#    define LT_DLGLOBAL		DL_GLOBAL
11579#  else
11580#    define LT_DLGLOBAL		0
11581#  endif
11582#endif
11583
11584/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11585   find out it does not work in some platform. */
11586#ifndef LT_DLLAZY_OR_NOW
11587#  ifdef RTLD_LAZY
11588#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11589#  else
11590#    ifdef DL_LAZY
11591#      define LT_DLLAZY_OR_NOW		DL_LAZY
11592#    else
11593#      ifdef RTLD_NOW
11594#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11595#      else
11596#        ifdef DL_NOW
11597#          define LT_DLLAZY_OR_NOW	DL_NOW
11598#        else
11599#          define LT_DLLAZY_OR_NOW	0
11600#        endif
11601#      endif
11602#    endif
11603#  endif
11604#endif
11605
11606/* When -fvisibility=hidden is used, assume the code has been annotated
11607   correspondingly for the symbols needed.  */
11608#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11609int fnord () __attribute__((visibility("default")));
11610#endif
11611
11612int fnord () { return 42; }
11613int main ()
11614{
11615  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11616  int status = $lt_dlunknown;
11617
11618  if (self)
11619    {
11620      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11621      else
11622        {
11623	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11624          else puts (dlerror ());
11625	}
11626      /* dlclose (self); */
11627    }
11628  else
11629    puts (dlerror ());
11630
11631  return status;
11632}
11633_LT_EOF
11634  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11635  (eval $ac_link) 2>&5
11636  ac_status=$?
11637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11638  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11639    (./conftest; exit; ) >&5 2>/dev/null
11640    lt_status=$?
11641    case x$lt_status in
11642      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11643      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11644      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11645    esac
11646  else :
11647    # compilation failed
11648    lt_cv_dlopen_self=no
11649  fi
11650fi
11651rm -fr conftest*
11652
11653
11654fi
11655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11656$as_echo "$lt_cv_dlopen_self" >&6; }
11657
11658    if test yes = "$lt_cv_dlopen_self"; then
11659      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11660      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11661$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11662if ${lt_cv_dlopen_self_static+:} false; then :
11663  $as_echo_n "(cached) " >&6
11664else
11665  	  if test yes = "$cross_compiling"; then :
11666  lt_cv_dlopen_self_static=cross
11667else
11668  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11669  lt_status=$lt_dlunknown
11670  cat > conftest.$ac_ext <<_LT_EOF
11671#line $LINENO "configure"
11672#include "confdefs.h"
11673
11674#if HAVE_DLFCN_H
11675#include <dlfcn.h>
11676#endif
11677
11678#include <stdio.h>
11679
11680#ifdef RTLD_GLOBAL
11681#  define LT_DLGLOBAL		RTLD_GLOBAL
11682#else
11683#  ifdef DL_GLOBAL
11684#    define LT_DLGLOBAL		DL_GLOBAL
11685#  else
11686#    define LT_DLGLOBAL		0
11687#  endif
11688#endif
11689
11690/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11691   find out it does not work in some platform. */
11692#ifndef LT_DLLAZY_OR_NOW
11693#  ifdef RTLD_LAZY
11694#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11695#  else
11696#    ifdef DL_LAZY
11697#      define LT_DLLAZY_OR_NOW		DL_LAZY
11698#    else
11699#      ifdef RTLD_NOW
11700#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11701#      else
11702#        ifdef DL_NOW
11703#          define LT_DLLAZY_OR_NOW	DL_NOW
11704#        else
11705#          define LT_DLLAZY_OR_NOW	0
11706#        endif
11707#      endif
11708#    endif
11709#  endif
11710#endif
11711
11712/* When -fvisibility=hidden is used, assume the code has been annotated
11713   correspondingly for the symbols needed.  */
11714#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11715int fnord () __attribute__((visibility("default")));
11716#endif
11717
11718int fnord () { return 42; }
11719int main ()
11720{
11721  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11722  int status = $lt_dlunknown;
11723
11724  if (self)
11725    {
11726      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11727      else
11728        {
11729	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11730          else puts (dlerror ());
11731	}
11732      /* dlclose (self); */
11733    }
11734  else
11735    puts (dlerror ());
11736
11737  return status;
11738}
11739_LT_EOF
11740  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11741  (eval $ac_link) 2>&5
11742  ac_status=$?
11743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11744  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11745    (./conftest; exit; ) >&5 2>/dev/null
11746    lt_status=$?
11747    case x$lt_status in
11748      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11749      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11750      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11751    esac
11752  else :
11753    # compilation failed
11754    lt_cv_dlopen_self_static=no
11755  fi
11756fi
11757rm -fr conftest*
11758
11759
11760fi
11761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11762$as_echo "$lt_cv_dlopen_self_static" >&6; }
11763    fi
11764
11765    CPPFLAGS=$save_CPPFLAGS
11766    LDFLAGS=$save_LDFLAGS
11767    LIBS=$save_LIBS
11768    ;;
11769  esac
11770
11771  case $lt_cv_dlopen_self in
11772  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11773  *) enable_dlopen_self=unknown ;;
11774  esac
11775
11776  case $lt_cv_dlopen_self_static in
11777  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11778  *) enable_dlopen_self_static=unknown ;;
11779  esac
11780fi
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798striplib=
11799old_striplib=
11800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11801$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11802if test -z "$STRIP"; then
11803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804$as_echo "no" >&6; }
11805else
11806  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11807    old_striplib="$STRIP --strip-debug"
11808    striplib="$STRIP --strip-unneeded"
11809    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11810$as_echo "yes" >&6; }
11811  else
11812    case $host_os in
11813    darwin*)
11814      # FIXME - insert some real tests, host_os isn't really good enough
11815      striplib="$STRIP -x"
11816      old_striplib="$STRIP -S"
11817      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11818$as_echo "yes" >&6; }
11819      ;;
11820    freebsd*)
11821      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
11822        old_striplib="$STRIP --strip-debug"
11823        striplib="$STRIP --strip-unneeded"
11824        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11825$as_echo "yes" >&6; }
11826      else
11827        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828$as_echo "no" >&6; }
11829      fi
11830      ;;
11831    *)
11832      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833$as_echo "no" >&6; }
11834      ;;
11835    esac
11836  fi
11837fi
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850  # Report what library types will actually be built
11851  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11852$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11854$as_echo "$can_build_shared" >&6; }
11855
11856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11857$as_echo_n "checking whether to build shared libraries... " >&6; }
11858  test no = "$can_build_shared" && enable_shared=no
11859
11860  # On AIX, shared libraries and static libraries use the same namespace, and
11861  # are all built from PIC.
11862  case $host_os in
11863  aix3*)
11864    test yes = "$enable_shared" && enable_static=no
11865    if test -n "$RANLIB"; then
11866      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11867      postinstall_cmds='$RANLIB $lib'
11868    fi
11869    ;;
11870
11871  aix[4-9]*)
11872    if test ia64 != "$host_cpu"; then
11873      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11874      yes,aix,yes) ;;			# shared object as lib.so file only
11875      yes,svr4,*) ;;			# shared object as lib.so archive member only
11876      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
11877      esac
11878    fi
11879    ;;
11880  esac
11881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11882$as_echo "$enable_shared" >&6; }
11883
11884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11885$as_echo_n "checking whether to build static libraries... " >&6; }
11886  # Make sure either enable_shared or enable_static is yes.
11887  test yes = "$enable_shared" || enable_static=yes
11888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11889$as_echo "$enable_static" >&6; }
11890
11891
11892
11893
11894fi
11895ac_ext=c
11896ac_cpp='$CPP $CPPFLAGS'
11897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11899ac_compiler_gnu=$ac_cv_c_compiler_gnu
11900
11901CC=$lt_save_CC
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917        ac_config_commands="$ac_config_commands libtool"
11918
11919
11920
11921
11922# Only expand once:
11923
11924
11925
11926# Check whether --enable-silent-rules was given.
11927if test "${enable_silent_rules+set}" = set; then :
11928  enableval=$enable_silent_rules;
11929fi
11930
11931case $enable_silent_rules in # (((
11932  yes) AM_DEFAULT_VERBOSITY=0;;
11933   no) AM_DEFAULT_VERBOSITY=1;;
11934    *) AM_DEFAULT_VERBOSITY=0;;
11935esac
11936am_make=${MAKE-make}
11937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11938$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11939if ${am_cv_make_support_nested_variables+:} false; then :
11940  $as_echo_n "(cached) " >&6
11941else
11942  if $as_echo 'TRUE=$(BAR$(V))
11943BAR0=false
11944BAR1=true
11945V=1
11946am__doit:
11947	@$(TRUE)
11948.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11949  am_cv_make_support_nested_variables=yes
11950else
11951  am_cv_make_support_nested_variables=no
11952fi
11953fi
11954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11955$as_echo "$am_cv_make_support_nested_variables" >&6; }
11956if test $am_cv_make_support_nested_variables = yes; then
11957    AM_V='$(V)'
11958  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11959else
11960  AM_V=$AM_DEFAULT_VERBOSITY
11961  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11962fi
11963AM_BACKSLASH='\'
11964
11965
11966# Define PKG_CHECK_VAR() for pkg-config < 0.28
11967
11968
11969# Check whether --enable-warnings was given.
11970if test "${enable_warnings+set}" = set; then :
11971  enableval=$enable_warnings; WARNINGS="yes"
11972else
11973  WARNINGS="no"
11974
11975fi
11976
11977
11978if test "x$WARNINGS" == "xyes"; then :
11979  CFLAGS="$CFLAGS -Wall -Wextra \
11980     -Waggregate-return \
11981     -Wdeclaration-after-statement \
11982     -Wfloat-equal \
11983     -Wformat \
11984     -Winit-self \
11985     -Wmissing-declarations \
11986     -Wmissing-prototypes \
11987     -Wno-unused-parameter \
11988     -Wpointer-arith"
11989
11990fi
11991
11992
11993# Check whether --with-plugindir was given.
11994if test "${with_plugindir+set}" = set; then :
11995  withval=$with_plugindir; PURPLE_PLUGINDIR="$with_plugindir"
11996
11997fi
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12008	if test -n "$ac_tool_prefix"; then
12009  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12010set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12012$as_echo_n "checking for $ac_word... " >&6; }
12013if ${ac_cv_path_PKG_CONFIG+:} false; then :
12014  $as_echo_n "(cached) " >&6
12015else
12016  case $PKG_CONFIG in
12017  [\\/]* | ?:[\\/]*)
12018  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12019  ;;
12020  *)
12021  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12022for as_dir in $PATH
12023do
12024  IFS=$as_save_IFS
12025  test -z "$as_dir" && as_dir=.
12026    for ac_exec_ext in '' $ac_executable_extensions; do
12027  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12028    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12030    break 2
12031  fi
12032done
12033  done
12034IFS=$as_save_IFS
12035
12036  ;;
12037esac
12038fi
12039PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12040if test -n "$PKG_CONFIG"; then
12041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12042$as_echo "$PKG_CONFIG" >&6; }
12043else
12044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045$as_echo "no" >&6; }
12046fi
12047
12048
12049fi
12050if test -z "$ac_cv_path_PKG_CONFIG"; then
12051  ac_pt_PKG_CONFIG=$PKG_CONFIG
12052  # Extract the first word of "pkg-config", so it can be a program name with args.
12053set dummy pkg-config; ac_word=$2
12054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12055$as_echo_n "checking for $ac_word... " >&6; }
12056if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12057  $as_echo_n "(cached) " >&6
12058else
12059  case $ac_pt_PKG_CONFIG in
12060  [\\/]* | ?:[\\/]*)
12061  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12062  ;;
12063  *)
12064  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12065for as_dir in $PATH
12066do
12067  IFS=$as_save_IFS
12068  test -z "$as_dir" && as_dir=.
12069    for ac_exec_ext in '' $ac_executable_extensions; do
12070  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12071    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12073    break 2
12074  fi
12075done
12076  done
12077IFS=$as_save_IFS
12078
12079  ;;
12080esac
12081fi
12082ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12083if test -n "$ac_pt_PKG_CONFIG"; then
12084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12085$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12086else
12087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088$as_echo "no" >&6; }
12089fi
12090
12091  if test "x$ac_pt_PKG_CONFIG" = x; then
12092    PKG_CONFIG=""
12093  else
12094    case $cross_compiling:$ac_tool_warned in
12095yes:)
12096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12098ac_tool_warned=yes ;;
12099esac
12100    PKG_CONFIG=$ac_pt_PKG_CONFIG
12101  fi
12102else
12103  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12104fi
12105
12106fi
12107if test -n "$PKG_CONFIG"; then
12108	_pkg_min_version=0.9.0
12109	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12110$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12111	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12112		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12113$as_echo "yes" >&6; }
12114	else
12115		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116$as_echo "no" >&6; }
12117		PKG_CONFIG=""
12118	fi
12119fi
12120
12121pkg_failed=no
12122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12123$as_echo_n "checking for GLIB... " >&6; }
12124
12125if test -n "$GLIB_CFLAGS"; then
12126    pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12127 elif test -n "$PKG_CONFIG"; then
12128    if test -n "$PKG_CONFIG" && \
12129    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28.0 gio-2.0 gobject-2.0\""; } >&5
12130  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28.0 gio-2.0 gobject-2.0") 2>&5
12131  ac_status=$?
12132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12133  test $ac_status = 0; }; then
12134  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28.0 gio-2.0 gobject-2.0" 2>/dev/null`
12135		      test "x$?" != "x0" && pkg_failed=yes
12136else
12137  pkg_failed=yes
12138fi
12139 else
12140    pkg_failed=untried
12141fi
12142if test -n "$GLIB_LIBS"; then
12143    pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12144 elif test -n "$PKG_CONFIG"; then
12145    if test -n "$PKG_CONFIG" && \
12146    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28.0 gio-2.0 gobject-2.0\""; } >&5
12147  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28.0 gio-2.0 gobject-2.0") 2>&5
12148  ac_status=$?
12149  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12150  test $ac_status = 0; }; then
12151  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28.0 gio-2.0 gobject-2.0" 2>/dev/null`
12152		      test "x$?" != "x0" && pkg_failed=yes
12153else
12154  pkg_failed=yes
12155fi
12156 else
12157    pkg_failed=untried
12158fi
12159
12160
12161
12162if test $pkg_failed = yes; then
12163   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164$as_echo "no" >&6; }
12165
12166if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12167        _pkg_short_errors_supported=yes
12168else
12169        _pkg_short_errors_supported=no
12170fi
12171        if test $_pkg_short_errors_supported = yes; then
12172	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28.0 gio-2.0 gobject-2.0" 2>&1`
12173        else
12174	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28.0 gio-2.0 gobject-2.0" 2>&1`
12175        fi
12176	# Put the nasty error message in config.log where it belongs
12177	echo "$GLIB_PKG_ERRORS" >&5
12178
12179	as_fn_error $? "Package requirements (glib-2.0 >= 2.28.0 gio-2.0 gobject-2.0) were not met:
12180
12181$GLIB_PKG_ERRORS
12182
12183Consider adjusting the PKG_CONFIG_PATH environment variable if you
12184installed software in a non-standard prefix.
12185
12186Alternatively, you may set the environment variables GLIB_CFLAGS
12187and GLIB_LIBS to avoid the need to call pkg-config.
12188See the pkg-config man page for more details." "$LINENO" 5
12189elif test $pkg_failed = untried; then
12190     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191$as_echo "no" >&6; }
12192	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12194as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12195is in your PATH or set the PKG_CONFIG environment variable to the full
12196path to pkg-config.
12197
12198Alternatively, you may set the environment variables GLIB_CFLAGS
12199and GLIB_LIBS to avoid the need to call pkg-config.
12200See the pkg-config man page for more details.
12201
12202To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12203See \`config.log' for more details" "$LINENO" 5; }
12204else
12205	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12206	GLIB_LIBS=$pkg_cv_GLIB_LIBS
12207        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12208$as_echo "yes" >&6; }
12209
12210fi
12211
12212pkg_failed=no
12213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
12214$as_echo_n "checking for JSON... " >&6; }
12215
12216if test -n "$JSON_CFLAGS"; then
12217    pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
12218 elif test -n "$PKG_CONFIG"; then
12219    if test -n "$PKG_CONFIG" && \
12220    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-glib-1.0 >= 0.14.0\""; } >&5
12221  ($PKG_CONFIG --exists --print-errors "json-glib-1.0 >= 0.14.0") 2>&5
12222  ac_status=$?
12223  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12224  test $ac_status = 0; }; then
12225  pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json-glib-1.0 >= 0.14.0" 2>/dev/null`
12226		      test "x$?" != "x0" && pkg_failed=yes
12227else
12228  pkg_failed=yes
12229fi
12230 else
12231    pkg_failed=untried
12232fi
12233if test -n "$JSON_LIBS"; then
12234    pkg_cv_JSON_LIBS="$JSON_LIBS"
12235 elif test -n "$PKG_CONFIG"; then
12236    if test -n "$PKG_CONFIG" && \
12237    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-glib-1.0 >= 0.14.0\""; } >&5
12238  ($PKG_CONFIG --exists --print-errors "json-glib-1.0 >= 0.14.0") 2>&5
12239  ac_status=$?
12240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12241  test $ac_status = 0; }; then
12242  pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json-glib-1.0 >= 0.14.0" 2>/dev/null`
12243		      test "x$?" != "x0" && pkg_failed=yes
12244else
12245  pkg_failed=yes
12246fi
12247 else
12248    pkg_failed=untried
12249fi
12250
12251
12252
12253if test $pkg_failed = yes; then
12254   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255$as_echo "no" >&6; }
12256
12257if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12258        _pkg_short_errors_supported=yes
12259else
12260        _pkg_short_errors_supported=no
12261fi
12262        if test $_pkg_short_errors_supported = yes; then
12263	        JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-glib-1.0 >= 0.14.0" 2>&1`
12264        else
12265	        JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-glib-1.0 >= 0.14.0" 2>&1`
12266        fi
12267	# Put the nasty error message in config.log where it belongs
12268	echo "$JSON_PKG_ERRORS" >&5
12269
12270	as_fn_error $? "Package requirements (json-glib-1.0 >= 0.14.0) were not met:
12271
12272$JSON_PKG_ERRORS
12273
12274Consider adjusting the PKG_CONFIG_PATH environment variable if you
12275installed software in a non-standard prefix.
12276
12277Alternatively, you may set the environment variables JSON_CFLAGS
12278and JSON_LIBS to avoid the need to call pkg-config.
12279See the pkg-config man page for more details." "$LINENO" 5
12280elif test $pkg_failed = untried; then
12281     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282$as_echo "no" >&6; }
12283	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12285as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12286is in your PATH or set the PKG_CONFIG environment variable to the full
12287path to pkg-config.
12288
12289Alternatively, you may set the environment variables JSON_CFLAGS
12290and JSON_LIBS to avoid the need to call pkg-config.
12291See the pkg-config man page for more details.
12292
12293To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12294See \`config.log' for more details" "$LINENO" 5; }
12295else
12296	JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
12297	JSON_LIBS=$pkg_cv_JSON_LIBS
12298        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12299$as_echo "yes" >&6; }
12300
12301fi
12302
12303pkg_failed=no
12304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PURPLE" >&5
12305$as_echo_n "checking for PURPLE... " >&6; }
12306
12307if test -n "$PURPLE_CFLAGS"; then
12308    pkg_cv_PURPLE_CFLAGS="$PURPLE_CFLAGS"
12309 elif test -n "$PKG_CONFIG"; then
12310    if test -n "$PKG_CONFIG" && \
12311    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"purple <  3\""; } >&5
12312  ($PKG_CONFIG --exists --print-errors "purple <  3") 2>&5
12313  ac_status=$?
12314  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12315  test $ac_status = 0; }; then
12316  pkg_cv_PURPLE_CFLAGS=`$PKG_CONFIG --cflags "purple <  3" 2>/dev/null`
12317		      test "x$?" != "x0" && pkg_failed=yes
12318else
12319  pkg_failed=yes
12320fi
12321 else
12322    pkg_failed=untried
12323fi
12324if test -n "$PURPLE_LIBS"; then
12325    pkg_cv_PURPLE_LIBS="$PURPLE_LIBS"
12326 elif test -n "$PKG_CONFIG"; then
12327    if test -n "$PKG_CONFIG" && \
12328    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"purple <  3\""; } >&5
12329  ($PKG_CONFIG --exists --print-errors "purple <  3") 2>&5
12330  ac_status=$?
12331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12332  test $ac_status = 0; }; then
12333  pkg_cv_PURPLE_LIBS=`$PKG_CONFIG --libs "purple <  3" 2>/dev/null`
12334		      test "x$?" != "x0" && pkg_failed=yes
12335else
12336  pkg_failed=yes
12337fi
12338 else
12339    pkg_failed=untried
12340fi
12341
12342
12343
12344if test $pkg_failed = yes; then
12345   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346$as_echo "no" >&6; }
12347
12348if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12349        _pkg_short_errors_supported=yes
12350else
12351        _pkg_short_errors_supported=no
12352fi
12353        if test $_pkg_short_errors_supported = yes; then
12354	        PURPLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "purple <  3" 2>&1`
12355        else
12356	        PURPLE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "purple <  3" 2>&1`
12357        fi
12358	# Put the nasty error message in config.log where it belongs
12359	echo "$PURPLE_PKG_ERRORS" >&5
12360
12361	as_fn_error $? "Package requirements (purple <  3) were not met:
12362
12363$PURPLE_PKG_ERRORS
12364
12365Consider adjusting the PKG_CONFIG_PATH environment variable if you
12366installed software in a non-standard prefix.
12367
12368Alternatively, you may set the environment variables PURPLE_CFLAGS
12369and PURPLE_LIBS to avoid the need to call pkg-config.
12370See the pkg-config man page for more details." "$LINENO" 5
12371elif test $pkg_failed = untried; then
12372     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373$as_echo "no" >&6; }
12374	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12375$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12376as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12377is in your PATH or set the PKG_CONFIG environment variable to the full
12378path to pkg-config.
12379
12380Alternatively, you may set the environment variables PURPLE_CFLAGS
12381and PURPLE_LIBS to avoid the need to call pkg-config.
12382See the pkg-config man page for more details.
12383
12384To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12385See \`config.log' for more details" "$LINENO" 5; }
12386else
12387	PURPLE_CFLAGS=$pkg_cv_PURPLE_CFLAGS
12388	PURPLE_LIBS=$pkg_cv_PURPLE_LIBS
12389        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12390$as_echo "yes" >&6; }
12391
12392fi
12393
12394pkg_failed=no
12395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
12396$as_echo_n "checking for ZLIB... " >&6; }
12397
12398if test -n "$ZLIB_CFLAGS"; then
12399    pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
12400 elif test -n "$PKG_CONFIG"; then
12401    if test -n "$PKG_CONFIG" && \
12402    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
12403  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
12404  ac_status=$?
12405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12406  test $ac_status = 0; }; then
12407  pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
12408		      test "x$?" != "x0" && pkg_failed=yes
12409else
12410  pkg_failed=yes
12411fi
12412 else
12413    pkg_failed=untried
12414fi
12415if test -n "$ZLIB_LIBS"; then
12416    pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
12417 elif test -n "$PKG_CONFIG"; then
12418    if test -n "$PKG_CONFIG" && \
12419    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
12420  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
12421  ac_status=$?
12422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12423  test $ac_status = 0; }; then
12424  pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
12425		      test "x$?" != "x0" && pkg_failed=yes
12426else
12427  pkg_failed=yes
12428fi
12429 else
12430    pkg_failed=untried
12431fi
12432
12433
12434
12435if test $pkg_failed = yes; then
12436   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437$as_echo "no" >&6; }
12438
12439if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12440        _pkg_short_errors_supported=yes
12441else
12442        _pkg_short_errors_supported=no
12443fi
12444        if test $_pkg_short_errors_supported = yes; then
12445	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
12446        else
12447	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
12448        fi
12449	# Put the nasty error message in config.log where it belongs
12450	echo "$ZLIB_PKG_ERRORS" >&5
12451
12452	as_fn_error $? "Package requirements (zlib) were not met:
12453
12454$ZLIB_PKG_ERRORS
12455
12456Consider adjusting the PKG_CONFIG_PATH environment variable if you
12457installed software in a non-standard prefix.
12458
12459Alternatively, you may set the environment variables ZLIB_CFLAGS
12460and ZLIB_LIBS to avoid the need to call pkg-config.
12461See the pkg-config man page for more details." "$LINENO" 5
12462elif test $pkg_failed = untried; then
12463     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464$as_echo "no" >&6; }
12465	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12467as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12468is in your PATH or set the PKG_CONFIG environment variable to the full
12469path to pkg-config.
12470
12471Alternatively, you may set the environment variables ZLIB_CFLAGS
12472and ZLIB_LIBS to avoid the need to call pkg-config.
12473See the pkg-config man page for more details.
12474
12475To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12476See \`config.log' for more details" "$LINENO" 5; }
12477else
12478	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
12479	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
12480        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12481$as_echo "yes" >&6; }
12482
12483fi
12484
12485
12486if test -n "$GLIB_GENMARSHAL"; then
12487    pkg_cv_GLIB_GENMARSHAL="$GLIB_GENMARSHAL"
12488 elif test -n "$PKG_CONFIG"; then
12489    if test -n "$PKG_CONFIG" && \
12490    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
12491  ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
12492  ac_status=$?
12493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12494  test $ac_status = 0; }; then
12495  pkg_cv_GLIB_GENMARSHAL=`$PKG_CONFIG --variable="glib_genmarshal" "glib-2.0" 2>/dev/null`
12496		      test "x$?" != "x0" && pkg_failed=yes
12497else
12498  pkg_failed=yes
12499fi
12500 else
12501    pkg_failed=untried
12502fi
12503GLIB_GENMARSHAL=$pkg_cv_GLIB_GENMARSHAL
12504
12505if test "x$GLIB_GENMARSHAL" = x""; then :
12506
12507fi
12508if test -z "$GLIB_GENMARSHAL"; then :
12509  as_fn_error $? "The \`glib-genmarshal' tool is missing." "$LINENO" 5
12510
12511fi
12512
12513if test -z "$PURPLE_PLUGINDIR"; then :
12514
12515if test -n "$PURPLE_PLUGINDIR"; then
12516    pkg_cv_PURPLE_PLUGINDIR="$PURPLE_PLUGINDIR"
12517 elif test -n "$PKG_CONFIG"; then
12518    if test -n "$PKG_CONFIG" && \
12519    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"purple\""; } >&5
12520  ($PKG_CONFIG --exists --print-errors "purple") 2>&5
12521  ac_status=$?
12522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12523  test $ac_status = 0; }; then
12524  pkg_cv_PURPLE_PLUGINDIR=`$PKG_CONFIG --variable="plugindir" "purple" 2>/dev/null`
12525		      test "x$?" != "x0" && pkg_failed=yes
12526else
12527  pkg_failed=yes
12528fi
12529 else
12530    pkg_failed=untried
12531fi
12532PURPLE_PLUGINDIR=$pkg_cv_PURPLE_PLUGINDIR
12533
12534if test "x$PURPLE_PLUGINDIR" = x""; then :
12535  PURPLE_PLUGINDIR="$libdir/purple-2"
12536
12537else
12538  PURPLE_PLUGINDIR="$PURPLE_PLUGINDIR"
12539fi
12540
12541fi
12542
12543PLUGIN_CFLAGS="-I`pwd`/$srcdir/include -I`pwd`/$srcdir/pidgin "
12544PLUGIN_CFLAGS="${PLUGIN_CFLAGS} -I`pwd`/$srcdir/pidgin/libpurple"
12545PLUGIN_CFLAGS="$PLUGIN_CFLAGS -DPURPLE_PLUGINS -include purple-compat.h"
12546
12547
12548 if false; then
12549  STATIC_FACEBOOK_TRUE=
12550  STATIC_FACEBOOK_FALSE='#'
12551else
12552  STATIC_FACEBOOK_TRUE='#'
12553  STATIC_FACEBOOK_FALSE=
12554fi
12555
12556PLUGIN_LDFLAGS=-avoid-version
12557
12558PURPLE_LIBS="$GLIB_LIBS $JSON_LIBS $PURPLE_LIBS $ZLIB_LIBS"
12559
12560
12561ac_config_files="$ac_config_files Makefile pidgin/libpurple/protocols/facebook/Makefile"
12562
12563cat >confcache <<\_ACEOF
12564# This file is a shell script that caches the results of configure
12565# tests run on this system so they can be shared between configure
12566# scripts and configure runs, see configure's option --config-cache.
12567# It is not useful on other systems.  If it contains results you don't
12568# want to keep, you may remove or edit it.
12569#
12570# config.status only pays attention to the cache file if you give it
12571# the --recheck option to rerun configure.
12572#
12573# `ac_cv_env_foo' variables (set or unset) will be overridden when
12574# loading this file, other *unset* `ac_cv_foo' will be assigned the
12575# following values.
12576
12577_ACEOF
12578
12579# The following way of writing the cache mishandles newlines in values,
12580# but we know of no workaround that is simple, portable, and efficient.
12581# So, we kill variables containing newlines.
12582# Ultrix sh set writes to stderr and can't be redirected directly,
12583# and sets the high bit in the cache file unless we assign to the vars.
12584(
12585  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12586    eval ac_val=\$$ac_var
12587    case $ac_val in #(
12588    *${as_nl}*)
12589      case $ac_var in #(
12590      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12591$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12592      esac
12593      case $ac_var in #(
12594      _ | IFS | as_nl) ;; #(
12595      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12596      *) { eval $ac_var=; unset $ac_var;} ;;
12597      esac ;;
12598    esac
12599  done
12600
12601  (set) 2>&1 |
12602    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12603    *${as_nl}ac_space=\ *)
12604      # `set' does not quote correctly, so add quotes: double-quote
12605      # substitution turns \\\\ into \\, and sed turns \\ into \.
12606      sed -n \
12607	"s/'/'\\\\''/g;
12608	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12609      ;; #(
12610    *)
12611      # `set' quotes correctly as required by POSIX, so do not add quotes.
12612      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12613      ;;
12614    esac |
12615    sort
12616) |
12617  sed '
12618     /^ac_cv_env_/b end
12619     t clear
12620     :clear
12621     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12622     t end
12623     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12624     :end' >>confcache
12625if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12626  if test -w "$cache_file"; then
12627    if test "x$cache_file" != "x/dev/null"; then
12628      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12629$as_echo "$as_me: updating cache $cache_file" >&6;}
12630      if test ! -f "$cache_file" || test -h "$cache_file"; then
12631	cat confcache >"$cache_file"
12632      else
12633        case $cache_file in #(
12634        */* | ?:*)
12635	  mv -f confcache "$cache_file"$$ &&
12636	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12637        *)
12638	  mv -f confcache "$cache_file" ;;
12639	esac
12640      fi
12641    fi
12642  else
12643    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12644$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12645  fi
12646fi
12647rm -f confcache
12648
12649test "x$prefix" = xNONE && prefix=$ac_default_prefix
12650# Let make expand exec_prefix.
12651test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12652
12653# Transform confdefs.h into DEFS.
12654# Protect against shell expansion while executing Makefile rules.
12655# Protect against Makefile macro expansion.
12656#
12657# If the first sed substitution is executed (which looks for macros that
12658# take arguments), then branch to the quote section.  Otherwise,
12659# look for a macro that doesn't take arguments.
12660ac_script='
12661:mline
12662/\\$/{
12663 N
12664 s,\\\n,,
12665 b mline
12666}
12667t clear
12668:clear
12669s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
12670t quote
12671s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
12672t quote
12673b any
12674:quote
12675s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12676s/\[/\\&/g
12677s/\]/\\&/g
12678s/\$/$$/g
12679H
12680:any
12681${
12682	g
12683	s/^\n//
12684	s/\n/ /g
12685	p
12686}
12687'
12688DEFS=`sed -n "$ac_script" confdefs.h`
12689
12690
12691ac_libobjs=
12692ac_ltlibobjs=
12693U=
12694for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12695  # 1. Remove the extension, and $U if already installed.
12696  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12697  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12698  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12699  #    will be set to the directory where LIBOBJS objects are built.
12700  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12701  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12702done
12703LIBOBJS=$ac_libobjs
12704
12705LTLIBOBJS=$ac_ltlibobjs
12706
12707
12708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12709$as_echo_n "checking that generated files are newer than configure... " >&6; }
12710   if test -n "$am_sleep_pid"; then
12711     # Hide warnings about reused PIDs.
12712     wait $am_sleep_pid 2>/dev/null
12713   fi
12714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12715$as_echo "done" >&6; }
12716 if test -n "$EXEEXT"; then
12717  am__EXEEXT_TRUE=
12718  am__EXEEXT_FALSE='#'
12719else
12720  am__EXEEXT_TRUE='#'
12721  am__EXEEXT_FALSE=
12722fi
12723
12724if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12725  as_fn_error $? "conditional \"AMDEP\" was never defined.
12726Usually this means the macro was only invoked conditionally." "$LINENO" 5
12727fi
12728if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12729  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12730Usually this means the macro was only invoked conditionally." "$LINENO" 5
12731fi
12732if test -z "${STATIC_FACEBOOK_TRUE}" && test -z "${STATIC_FACEBOOK_FALSE}"; then
12733  as_fn_error $? "conditional \"STATIC_FACEBOOK\" was never defined.
12734Usually this means the macro was only invoked conditionally." "$LINENO" 5
12735fi
12736
12737: "${CONFIG_STATUS=./config.status}"
12738ac_write_fail=0
12739ac_clean_files_save=$ac_clean_files
12740ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12741{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12742$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12743as_write_fail=0
12744cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12745#! $SHELL
12746# Generated by $as_me.
12747# Run this file to recreate the current configuration.
12748# Compiler output produced by configure, useful for debugging
12749# configure, is in config.log if it exists.
12750
12751debug=false
12752ac_cs_recheck=false
12753ac_cs_silent=false
12754
12755SHELL=\${CONFIG_SHELL-$SHELL}
12756export SHELL
12757_ASEOF
12758cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12759## -------------------- ##
12760## M4sh Initialization. ##
12761## -------------------- ##
12762
12763# Be more Bourne compatible
12764DUALCASE=1; export DUALCASE # for MKS sh
12765if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12766  emulate sh
12767  NULLCMD=:
12768  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12769  # is contrary to our usage.  Disable this feature.
12770  alias -g '${1+"$@"}'='"$@"'
12771  setopt NO_GLOB_SUBST
12772else
12773  case `(set -o) 2>/dev/null` in #(
12774  *posix*) :
12775    set -o posix ;; #(
12776  *) :
12777     ;;
12778esac
12779fi
12780
12781
12782as_nl='
12783'
12784export as_nl
12785# Printing a long string crashes Solaris 7 /usr/bin/printf.
12786as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12787as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12788as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12789# Prefer a ksh shell builtin over an external printf program on Solaris,
12790# but without wasting forks for bash or zsh.
12791if test -z "$BASH_VERSION$ZSH_VERSION" \
12792    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12793  as_echo='print -r --'
12794  as_echo_n='print -rn --'
12795elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12796  as_echo='printf %s\n'
12797  as_echo_n='printf %s'
12798else
12799  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12800    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12801    as_echo_n='/usr/ucb/echo -n'
12802  else
12803    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12804    as_echo_n_body='eval
12805      arg=$1;
12806      case $arg in #(
12807      *"$as_nl"*)
12808	expr "X$arg" : "X\\(.*\\)$as_nl";
12809	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12810      esac;
12811      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12812    '
12813    export as_echo_n_body
12814    as_echo_n='sh -c $as_echo_n_body as_echo'
12815  fi
12816  export as_echo_body
12817  as_echo='sh -c $as_echo_body as_echo'
12818fi
12819
12820# The user is always right.
12821if test "${PATH_SEPARATOR+set}" != set; then
12822  PATH_SEPARATOR=:
12823  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12824    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12825      PATH_SEPARATOR=';'
12826  }
12827fi
12828
12829
12830# IFS
12831# We need space, tab and new line, in precisely that order.  Quoting is
12832# there to prevent editors from complaining about space-tab.
12833# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12834# splitting by setting IFS to empty value.)
12835IFS=" ""	$as_nl"
12836
12837# Find who we are.  Look in the path if we contain no directory separator.
12838as_myself=
12839case $0 in #((
12840  *[\\/]* ) as_myself=$0 ;;
12841  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842for as_dir in $PATH
12843do
12844  IFS=$as_save_IFS
12845  test -z "$as_dir" && as_dir=.
12846    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12847  done
12848IFS=$as_save_IFS
12849
12850     ;;
12851esac
12852# We did not find ourselves, most probably we were run as `sh COMMAND'
12853# in which case we are not to be found in the path.
12854if test "x$as_myself" = x; then
12855  as_myself=$0
12856fi
12857if test ! -f "$as_myself"; then
12858  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12859  exit 1
12860fi
12861
12862# Unset variables that we do not need and which cause bugs (e.g. in
12863# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12864# suppresses any "Segmentation fault" message there.  '((' could
12865# trigger a bug in pdksh 5.2.14.
12866for as_var in BASH_ENV ENV MAIL MAILPATH
12867do eval test x\${$as_var+set} = xset \
12868  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12869done
12870PS1='$ '
12871PS2='> '
12872PS4='+ '
12873
12874# NLS nuisances.
12875LC_ALL=C
12876export LC_ALL
12877LANGUAGE=C
12878export LANGUAGE
12879
12880# CDPATH.
12881(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12882
12883
12884# as_fn_error STATUS ERROR [LINENO LOG_FD]
12885# ----------------------------------------
12886# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12887# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12888# script with STATUS, using 1 if that was 0.
12889as_fn_error ()
12890{
12891  as_status=$1; test $as_status -eq 0 && as_status=1
12892  if test "$4"; then
12893    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12894    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12895  fi
12896  $as_echo "$as_me: error: $2" >&2
12897  as_fn_exit $as_status
12898} # as_fn_error
12899
12900
12901# as_fn_set_status STATUS
12902# -----------------------
12903# Set $? to STATUS, without forking.
12904as_fn_set_status ()
12905{
12906  return $1
12907} # as_fn_set_status
12908
12909# as_fn_exit STATUS
12910# -----------------
12911# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12912as_fn_exit ()
12913{
12914  set +e
12915  as_fn_set_status $1
12916  exit $1
12917} # as_fn_exit
12918
12919# as_fn_unset VAR
12920# ---------------
12921# Portably unset VAR.
12922as_fn_unset ()
12923{
12924  { eval $1=; unset $1;}
12925}
12926as_unset=as_fn_unset
12927# as_fn_append VAR VALUE
12928# ----------------------
12929# Append the text in VALUE to the end of the definition contained in VAR. Take
12930# advantage of any shell optimizations that allow amortized linear growth over
12931# repeated appends, instead of the typical quadratic growth present in naive
12932# implementations.
12933if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12934  eval 'as_fn_append ()
12935  {
12936    eval $1+=\$2
12937  }'
12938else
12939  as_fn_append ()
12940  {
12941    eval $1=\$$1\$2
12942  }
12943fi # as_fn_append
12944
12945# as_fn_arith ARG...
12946# ------------------
12947# Perform arithmetic evaluation on the ARGs, and store the result in the
12948# global $as_val. Take advantage of shells that can avoid forks. The arguments
12949# must be portable across $(()) and expr.
12950if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12951  eval 'as_fn_arith ()
12952  {
12953    as_val=$(( $* ))
12954  }'
12955else
12956  as_fn_arith ()
12957  {
12958    as_val=`expr "$@" || test $? -eq 1`
12959  }
12960fi # as_fn_arith
12961
12962
12963if expr a : '\(a\)' >/dev/null 2>&1 &&
12964   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12965  as_expr=expr
12966else
12967  as_expr=false
12968fi
12969
12970if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12971  as_basename=basename
12972else
12973  as_basename=false
12974fi
12975
12976if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12977  as_dirname=dirname
12978else
12979  as_dirname=false
12980fi
12981
12982as_me=`$as_basename -- "$0" ||
12983$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12984	 X"$0" : 'X\(//\)$' \| \
12985	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12986$as_echo X/"$0" |
12987    sed '/^.*\/\([^/][^/]*\)\/*$/{
12988	    s//\1/
12989	    q
12990	  }
12991	  /^X\/\(\/\/\)$/{
12992	    s//\1/
12993	    q
12994	  }
12995	  /^X\/\(\/\).*/{
12996	    s//\1/
12997	    q
12998	  }
12999	  s/.*/./; q'`
13000
13001# Avoid depending upon Character Ranges.
13002as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13003as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13004as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13005as_cr_digits='0123456789'
13006as_cr_alnum=$as_cr_Letters$as_cr_digits
13007
13008ECHO_C= ECHO_N= ECHO_T=
13009case `echo -n x` in #(((((
13010-n*)
13011  case `echo 'xy\c'` in
13012  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13013  xy)  ECHO_C='\c';;
13014  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13015       ECHO_T='	';;
13016  esac;;
13017*)
13018  ECHO_N='-n';;
13019esac
13020
13021rm -f conf$$ conf$$.exe conf$$.file
13022if test -d conf$$.dir; then
13023  rm -f conf$$.dir/conf$$.file
13024else
13025  rm -f conf$$.dir
13026  mkdir conf$$.dir 2>/dev/null
13027fi
13028if (echo >conf$$.file) 2>/dev/null; then
13029  if ln -s conf$$.file conf$$ 2>/dev/null; then
13030    as_ln_s='ln -s'
13031    # ... but there are two gotchas:
13032    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13033    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13034    # In both cases, we have to default to `cp -pR'.
13035    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13036      as_ln_s='cp -pR'
13037  elif ln conf$$.file conf$$ 2>/dev/null; then
13038    as_ln_s=ln
13039  else
13040    as_ln_s='cp -pR'
13041  fi
13042else
13043  as_ln_s='cp -pR'
13044fi
13045rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13046rmdir conf$$.dir 2>/dev/null
13047
13048
13049# as_fn_mkdir_p
13050# -------------
13051# Create "$as_dir" as a directory, including parents if necessary.
13052as_fn_mkdir_p ()
13053{
13054
13055  case $as_dir in #(
13056  -*) as_dir=./$as_dir;;
13057  esac
13058  test -d "$as_dir" || eval $as_mkdir_p || {
13059    as_dirs=
13060    while :; do
13061      case $as_dir in #(
13062      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13063      *) as_qdir=$as_dir;;
13064      esac
13065      as_dirs="'$as_qdir' $as_dirs"
13066      as_dir=`$as_dirname -- "$as_dir" ||
13067$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13068	 X"$as_dir" : 'X\(//\)[^/]' \| \
13069	 X"$as_dir" : 'X\(//\)$' \| \
13070	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13071$as_echo X"$as_dir" |
13072    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13073	    s//\1/
13074	    q
13075	  }
13076	  /^X\(\/\/\)[^/].*/{
13077	    s//\1/
13078	    q
13079	  }
13080	  /^X\(\/\/\)$/{
13081	    s//\1/
13082	    q
13083	  }
13084	  /^X\(\/\).*/{
13085	    s//\1/
13086	    q
13087	  }
13088	  s/.*/./; q'`
13089      test -d "$as_dir" && break
13090    done
13091    test -z "$as_dirs" || eval "mkdir $as_dirs"
13092  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13093
13094
13095} # as_fn_mkdir_p
13096if mkdir -p . 2>/dev/null; then
13097  as_mkdir_p='mkdir -p "$as_dir"'
13098else
13099  test -d ./-p && rmdir ./-p
13100  as_mkdir_p=false
13101fi
13102
13103
13104# as_fn_executable_p FILE
13105# -----------------------
13106# Test if FILE is an executable regular file.
13107as_fn_executable_p ()
13108{
13109  test -f "$1" && test -x "$1"
13110} # as_fn_executable_p
13111as_test_x='test -x'
13112as_executable_p=as_fn_executable_p
13113
13114# Sed expression to map a string onto a valid CPP name.
13115as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13116
13117# Sed expression to map a string onto a valid variable name.
13118as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13119
13120
13121exec 6>&1
13122## ----------------------------------- ##
13123## Main body of $CONFIG_STATUS script. ##
13124## ----------------------------------- ##
13125_ASEOF
13126test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13127
13128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13129# Save the log message, to keep $0 and so on meaningful, and to
13130# report actual input values of CONFIG_FILES etc. instead of their
13131# values after options handling.
13132ac_log="
13133This file was extended by purple-facebook $as_me 0.9.6, which was
13134generated by GNU Autoconf 2.69.  Invocation command line was
13135
13136  CONFIG_FILES    = $CONFIG_FILES
13137  CONFIG_HEADERS  = $CONFIG_HEADERS
13138  CONFIG_LINKS    = $CONFIG_LINKS
13139  CONFIG_COMMANDS = $CONFIG_COMMANDS
13140  $ $0 $@
13141
13142on `(hostname || uname -n) 2>/dev/null | sed 1q`
13143"
13144
13145_ACEOF
13146
13147case $ac_config_files in *"
13148"*) set x $ac_config_files; shift; ac_config_files=$*;;
13149esac
13150
13151
13152
13153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13154# Files that config.status was made for.
13155config_files="$ac_config_files"
13156config_commands="$ac_config_commands"
13157
13158_ACEOF
13159
13160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13161ac_cs_usage="\
13162\`$as_me' instantiates files and other configuration actions
13163from templates according to the current configuration.  Unless the files
13164and actions are specified as TAGs, all are instantiated by default.
13165
13166Usage: $0 [OPTION]... [TAG]...
13167
13168  -h, --help       print this help, then exit
13169  -V, --version    print version number and configuration settings, then exit
13170      --config     print configuration, then exit
13171  -q, --quiet, --silent
13172                   do not print progress messages
13173  -d, --debug      don't remove temporary files
13174      --recheck    update $as_me by reconfiguring in the same conditions
13175      --file=FILE[:TEMPLATE]
13176                   instantiate the configuration file FILE
13177
13178Configuration files:
13179$config_files
13180
13181Configuration commands:
13182$config_commands
13183
13184Report bugs to <https://github.com/dequis/purple-facebook/issues>.
13185purple-facebook home page: <https://github.com/dequis/purple-facebook>."
13186
13187_ACEOF
13188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13189ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13190ac_cs_version="\\
13191purple-facebook config.status 0.9.6
13192configured by $0, generated by GNU Autoconf 2.69,
13193  with options \\"\$ac_cs_config\\"
13194
13195Copyright (C) 2012 Free Software Foundation, Inc.
13196This config.status script is free software; the Free Software Foundation
13197gives unlimited permission to copy, distribute and modify it."
13198
13199ac_pwd='$ac_pwd'
13200srcdir='$srcdir'
13201INSTALL='$INSTALL'
13202MKDIR_P='$MKDIR_P'
13203AWK='$AWK'
13204test -n "\$AWK" || AWK=awk
13205_ACEOF
13206
13207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13208# The default lists apply if the user does not specify any file.
13209ac_need_defaults=:
13210while test $# != 0
13211do
13212  case $1 in
13213  --*=?*)
13214    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13215    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13216    ac_shift=:
13217    ;;
13218  --*=)
13219    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13220    ac_optarg=
13221    ac_shift=:
13222    ;;
13223  *)
13224    ac_option=$1
13225    ac_optarg=$2
13226    ac_shift=shift
13227    ;;
13228  esac
13229
13230  case $ac_option in
13231  # Handling of the options.
13232  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13233    ac_cs_recheck=: ;;
13234  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13235    $as_echo "$ac_cs_version"; exit ;;
13236  --config | --confi | --conf | --con | --co | --c )
13237    $as_echo "$ac_cs_config"; exit ;;
13238  --debug | --debu | --deb | --de | --d | -d )
13239    debug=: ;;
13240  --file | --fil | --fi | --f )
13241    $ac_shift
13242    case $ac_optarg in
13243    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13244    '') as_fn_error $? "missing file argument" ;;
13245    esac
13246    as_fn_append CONFIG_FILES " '$ac_optarg'"
13247    ac_need_defaults=false;;
13248  --he | --h |  --help | --hel | -h )
13249    $as_echo "$ac_cs_usage"; exit ;;
13250  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13251  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13252    ac_cs_silent=: ;;
13253
13254  # This is an error.
13255  -*) as_fn_error $? "unrecognized option: \`$1'
13256Try \`$0 --help' for more information." ;;
13257
13258  *) as_fn_append ac_config_targets " $1"
13259     ac_need_defaults=false ;;
13260
13261  esac
13262  shift
13263done
13264
13265ac_configure_extra_args=
13266
13267if $ac_cs_silent; then
13268  exec 6>/dev/null
13269  ac_configure_extra_args="$ac_configure_extra_args --silent"
13270fi
13271
13272_ACEOF
13273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13274if \$ac_cs_recheck; then
13275  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13276  shift
13277  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13278  CONFIG_SHELL='$SHELL'
13279  export CONFIG_SHELL
13280  exec "\$@"
13281fi
13282
13283_ACEOF
13284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13285exec 5>>config.log
13286{
13287  echo
13288  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13289## Running $as_me. ##
13290_ASBOX
13291  $as_echo "$ac_log"
13292} >&5
13293
13294_ACEOF
13295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13296#
13297# INIT-COMMANDS
13298#
13299AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13300
13301
13302# The HP-UX ksh and POSIX shell print the target directory to stdout
13303# if CDPATH is set.
13304(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13305
13306sed_quote_subst='$sed_quote_subst'
13307double_quote_subst='$double_quote_subst'
13308delay_variable_subst='$delay_variable_subst'
13309enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13310macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13311macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13312enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13313pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13314enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13315shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13316SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13317ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13318PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13319host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13320host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13321host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13322build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13323build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13324build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13325SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13326Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13327GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13328EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13329FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13330LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13331NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13332LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13333max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13334ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13335exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13336lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13337lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13338lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13339lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13340lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13341reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13342reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13343OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13344deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13345file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13346file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13347want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13348DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13349sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13350AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13351lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
13352AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13353archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13354STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13355RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13356old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13357old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13358old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13359lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13360CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13361CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13362compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13363GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13364lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13365lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13366lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13367lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13368lt_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"`'
13369lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13370nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13371lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13372lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13373objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13374MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13375lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13376lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13377lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13378lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13379lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13380need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13381MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13382DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13383NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13384LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13385OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13386OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13387libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13388shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13389extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13390archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13391enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13392export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13393whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13394compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13395old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13396old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13397archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13398archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13399module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13400module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13401with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13402allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13403no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13404hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13405hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13406hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13407hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13408hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13409hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13410hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13411inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13412link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13413always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13414export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13415exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13416include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13417prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13418postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13419file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13420variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13421need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13422need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13423version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13424runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13425shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13426shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13427libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13428library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13429soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13430install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13431postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13432postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13433finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13434finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13435hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13436sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13437configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13438configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13439hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13440enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13441enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13442enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13443old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13444striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13445
13446LTCC='$LTCC'
13447LTCFLAGS='$LTCFLAGS'
13448compiler='$compiler_DEFAULT'
13449
13450# A function that is used when there is no print builtin or printf.
13451func_fallback_echo ()
13452{
13453  eval 'cat <<_LTECHO_EOF
13454\$1
13455_LTECHO_EOF'
13456}
13457
13458# Quote evaled strings.
13459for var in SHELL \
13460ECHO \
13461PATH_SEPARATOR \
13462SED \
13463GREP \
13464EGREP \
13465FGREP \
13466LD \
13467NM \
13468LN_S \
13469lt_SP2NL \
13470lt_NL2SP \
13471reload_flag \
13472OBJDUMP \
13473deplibs_check_method \
13474file_magic_cmd \
13475file_magic_glob \
13476want_nocaseglob \
13477DLLTOOL \
13478sharedlib_from_linklib_cmd \
13479AR \
13480archiver_list_spec \
13481STRIP \
13482RANLIB \
13483CC \
13484CFLAGS \
13485compiler \
13486lt_cv_sys_global_symbol_pipe \
13487lt_cv_sys_global_symbol_to_cdecl \
13488lt_cv_sys_global_symbol_to_import \
13489lt_cv_sys_global_symbol_to_c_name_address \
13490lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13491lt_cv_nm_interface \
13492nm_file_list_spec \
13493lt_cv_truncate_bin \
13494lt_prog_compiler_no_builtin_flag \
13495lt_prog_compiler_pic \
13496lt_prog_compiler_wl \
13497lt_prog_compiler_static \
13498lt_cv_prog_compiler_c_o \
13499need_locks \
13500MANIFEST_TOOL \
13501DSYMUTIL \
13502NMEDIT \
13503LIPO \
13504OTOOL \
13505OTOOL64 \
13506shrext_cmds \
13507export_dynamic_flag_spec \
13508whole_archive_flag_spec \
13509compiler_needs_object \
13510with_gnu_ld \
13511allow_undefined_flag \
13512no_undefined_flag \
13513hardcode_libdir_flag_spec \
13514hardcode_libdir_separator \
13515exclude_expsyms \
13516include_expsyms \
13517file_list_spec \
13518variables_saved_for_relink \
13519libname_spec \
13520library_names_spec \
13521soname_spec \
13522install_override_mode \
13523finish_eval \
13524old_striplib \
13525striplib; do
13526    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13527    *[\\\\\\\`\\"\\\$]*)
13528      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13529      ;;
13530    *)
13531      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13532      ;;
13533    esac
13534done
13535
13536# Double-quote double-evaled strings.
13537for var in reload_cmds \
13538old_postinstall_cmds \
13539old_postuninstall_cmds \
13540old_archive_cmds \
13541extract_expsyms_cmds \
13542old_archive_from_new_cmds \
13543old_archive_from_expsyms_cmds \
13544archive_cmds \
13545archive_expsym_cmds \
13546module_cmds \
13547module_expsym_cmds \
13548export_symbols_cmds \
13549prelink_cmds \
13550postlink_cmds \
13551postinstall_cmds \
13552postuninstall_cmds \
13553finish_cmds \
13554sys_lib_search_path_spec \
13555configure_time_dlsearch_path \
13556configure_time_lt_sys_library_path; do
13557    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13558    *[\\\\\\\`\\"\\\$]*)
13559      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13560      ;;
13561    *)
13562      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13563      ;;
13564    esac
13565done
13566
13567ac_aux_dir='$ac_aux_dir'
13568
13569# See if we are running on zsh, and set the options that allow our
13570# commands through without removal of \ escapes INIT.
13571if test -n "\${ZSH_VERSION+set}"; then
13572   setopt NO_GLOB_SUBST
13573fi
13574
13575
13576    PACKAGE='$PACKAGE'
13577    VERSION='$VERSION'
13578    RM='$RM'
13579    ofile='$ofile'
13580
13581
13582
13583
13584_ACEOF
13585
13586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13587
13588# Handling of arguments.
13589for ac_config_target in $ac_config_targets
13590do
13591  case $ac_config_target in
13592    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13593    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13594    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13595    "pidgin/libpurple/protocols/facebook/Makefile") CONFIG_FILES="$CONFIG_FILES pidgin/libpurple/protocols/facebook/Makefile" ;;
13596
13597  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13598  esac
13599done
13600
13601
13602# If the user did not use the arguments to specify the items to instantiate,
13603# then the envvar interface is used.  Set only those that are not.
13604# We use the long form for the default assignment because of an extremely
13605# bizarre bug on SunOS 4.1.3.
13606if $ac_need_defaults; then
13607  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13608  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13609fi
13610
13611# Have a temporary directory for convenience.  Make it in the build tree
13612# simply because there is no reason against having it here, and in addition,
13613# creating and moving files from /tmp can sometimes cause problems.
13614# Hook for its removal unless debugging.
13615# Note that there is a small window in which the directory will not be cleaned:
13616# after its creation but before its name has been assigned to `$tmp'.
13617$debug ||
13618{
13619  tmp= ac_tmp=
13620  trap 'exit_status=$?
13621  : "${ac_tmp:=$tmp}"
13622  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13623' 0
13624  trap 'as_fn_exit 1' 1 2 13 15
13625}
13626# Create a (secure) tmp directory for tmp files.
13627
13628{
13629  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13630  test -d "$tmp"
13631}  ||
13632{
13633  tmp=./conf$$-$RANDOM
13634  (umask 077 && mkdir "$tmp")
13635} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13636ac_tmp=$tmp
13637
13638# Set up the scripts for CONFIG_FILES section.
13639# No need to generate them if there are no CONFIG_FILES.
13640# This happens for instance with `./config.status config.h'.
13641if test -n "$CONFIG_FILES"; then
13642
13643
13644ac_cr=`echo X | tr X '\015'`
13645# On cygwin, bash can eat \r inside `` if the user requested igncr.
13646# But we know of no other shell where ac_cr would be empty at this
13647# point, so we can use a bashism as a fallback.
13648if test "x$ac_cr" = x; then
13649  eval ac_cr=\$\'\\r\'
13650fi
13651ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13652if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13653  ac_cs_awk_cr='\\r'
13654else
13655  ac_cs_awk_cr=$ac_cr
13656fi
13657
13658echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13659_ACEOF
13660
13661
13662{
13663  echo "cat >conf$$subs.awk <<_ACEOF" &&
13664  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13665  echo "_ACEOF"
13666} >conf$$subs.sh ||
13667  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13668ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13669ac_delim='%!_!# '
13670for ac_last_try in false false false false false :; do
13671  . ./conf$$subs.sh ||
13672    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13673
13674  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13675  if test $ac_delim_n = $ac_delim_num; then
13676    break
13677  elif $ac_last_try; then
13678    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13679  else
13680    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13681  fi
13682done
13683rm -f conf$$subs.sh
13684
13685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13686cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13687_ACEOF
13688sed -n '
13689h
13690s/^/S["/; s/!.*/"]=/
13691p
13692g
13693s/^[^!]*!//
13694:repl
13695t repl
13696s/'"$ac_delim"'$//
13697t delim
13698:nl
13699h
13700s/\(.\{148\}\)..*/\1/
13701t more1
13702s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13703p
13704n
13705b repl
13706:more1
13707s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13708p
13709g
13710s/.\{148\}//
13711t nl
13712:delim
13713h
13714s/\(.\{148\}\)..*/\1/
13715t more2
13716s/["\\]/\\&/g; s/^/"/; s/$/"/
13717p
13718b
13719:more2
13720s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13721p
13722g
13723s/.\{148\}//
13724t delim
13725' <conf$$subs.awk | sed '
13726/^[^""]/{
13727  N
13728  s/\n//
13729}
13730' >>$CONFIG_STATUS || ac_write_fail=1
13731rm -f conf$$subs.awk
13732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13733_ACAWK
13734cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13735  for (key in S) S_is_set[key] = 1
13736  FS = ""
13737
13738}
13739{
13740  line = $ 0
13741  nfields = split(line, field, "@")
13742  substed = 0
13743  len = length(field[1])
13744  for (i = 2; i < nfields; i++) {
13745    key = field[i]
13746    keylen = length(key)
13747    if (S_is_set[key]) {
13748      value = S[key]
13749      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13750      len += length(value) + length(field[++i])
13751      substed = 1
13752    } else
13753      len += 1 + keylen
13754  }
13755
13756  print line
13757}
13758
13759_ACAWK
13760_ACEOF
13761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13762if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13763  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13764else
13765  cat
13766fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13767  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13768_ACEOF
13769
13770# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13771# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13772# trailing colons and then remove the whole line if VPATH becomes empty
13773# (actually we leave an empty line to preserve line numbers).
13774if test "x$srcdir" = x.; then
13775  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13776h
13777s///
13778s/^/:/
13779s/[	 ]*$/:/
13780s/:\$(srcdir):/:/g
13781s/:\${srcdir}:/:/g
13782s/:@srcdir@:/:/g
13783s/^:*//
13784s/:*$//
13785x
13786s/\(=[	 ]*\).*/\1/
13787G
13788s/\n//
13789s/^[^=]*=[	 ]*$//
13790}'
13791fi
13792
13793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13794fi # test -n "$CONFIG_FILES"
13795
13796
13797eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
13798shift
13799for ac_tag
13800do
13801  case $ac_tag in
13802  :[FHLC]) ac_mode=$ac_tag; continue;;
13803  esac
13804  case $ac_mode$ac_tag in
13805  :[FHL]*:*);;
13806  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13807  :[FH]-) ac_tag=-:-;;
13808  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13809  esac
13810  ac_save_IFS=$IFS
13811  IFS=:
13812  set x $ac_tag
13813  IFS=$ac_save_IFS
13814  shift
13815  ac_file=$1
13816  shift
13817
13818  case $ac_mode in
13819  :L) ac_source=$1;;
13820  :[FH])
13821    ac_file_inputs=
13822    for ac_f
13823    do
13824      case $ac_f in
13825      -) ac_f="$ac_tmp/stdin";;
13826      *) # Look for the file first in the build tree, then in the source tree
13827	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13828	 # because $ac_f cannot contain `:'.
13829	 test -f "$ac_f" ||
13830	   case $ac_f in
13831	   [\\/$]*) false;;
13832	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13833	   esac ||
13834	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13835      esac
13836      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13837      as_fn_append ac_file_inputs " '$ac_f'"
13838    done
13839
13840    # Let's still pretend it is `configure' which instantiates (i.e., don't
13841    # use $as_me), people would be surprised to read:
13842    #    /* config.h.  Generated by config.status.  */
13843    configure_input='Generated from '`
13844	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13845	`' by configure.'
13846    if test x"$ac_file" != x-; then
13847      configure_input="$ac_file.  $configure_input"
13848      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13849$as_echo "$as_me: creating $ac_file" >&6;}
13850    fi
13851    # Neutralize special characters interpreted by sed in replacement strings.
13852    case $configure_input in #(
13853    *\&* | *\|* | *\\* )
13854       ac_sed_conf_input=`$as_echo "$configure_input" |
13855       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13856    *) ac_sed_conf_input=$configure_input;;
13857    esac
13858
13859    case $ac_tag in
13860    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13861      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13862    esac
13863    ;;
13864  esac
13865
13866  ac_dir=`$as_dirname -- "$ac_file" ||
13867$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13868	 X"$ac_file" : 'X\(//\)[^/]' \| \
13869	 X"$ac_file" : 'X\(//\)$' \| \
13870	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13871$as_echo X"$ac_file" |
13872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13873	    s//\1/
13874	    q
13875	  }
13876	  /^X\(\/\/\)[^/].*/{
13877	    s//\1/
13878	    q
13879	  }
13880	  /^X\(\/\/\)$/{
13881	    s//\1/
13882	    q
13883	  }
13884	  /^X\(\/\).*/{
13885	    s//\1/
13886	    q
13887	  }
13888	  s/.*/./; q'`
13889  as_dir="$ac_dir"; as_fn_mkdir_p
13890  ac_builddir=.
13891
13892case "$ac_dir" in
13893.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13894*)
13895  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13896  # A ".." for each directory in $ac_dir_suffix.
13897  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13898  case $ac_top_builddir_sub in
13899  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13900  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13901  esac ;;
13902esac
13903ac_abs_top_builddir=$ac_pwd
13904ac_abs_builddir=$ac_pwd$ac_dir_suffix
13905# for backward compatibility:
13906ac_top_builddir=$ac_top_build_prefix
13907
13908case $srcdir in
13909  .)  # We are building in place.
13910    ac_srcdir=.
13911    ac_top_srcdir=$ac_top_builddir_sub
13912    ac_abs_top_srcdir=$ac_pwd ;;
13913  [\\/]* | ?:[\\/]* )  # Absolute name.
13914    ac_srcdir=$srcdir$ac_dir_suffix;
13915    ac_top_srcdir=$srcdir
13916    ac_abs_top_srcdir=$srcdir ;;
13917  *) # Relative name.
13918    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13919    ac_top_srcdir=$ac_top_build_prefix$srcdir
13920    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13921esac
13922ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13923
13924
13925  case $ac_mode in
13926  :F)
13927  #
13928  # CONFIG_FILE
13929  #
13930
13931  case $INSTALL in
13932  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13933  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13934  esac
13935  ac_MKDIR_P=$MKDIR_P
13936  case $MKDIR_P in
13937  [\\/$]* | ?:[\\/]* ) ;;
13938  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13939  esac
13940_ACEOF
13941
13942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13943# If the template does not know about datarootdir, expand it.
13944# FIXME: This hack should be removed a few years after 2.60.
13945ac_datarootdir_hack=; ac_datarootdir_seen=
13946ac_sed_dataroot='
13947/datarootdir/ {
13948  p
13949  q
13950}
13951/@datadir@/p
13952/@docdir@/p
13953/@infodir@/p
13954/@localedir@/p
13955/@mandir@/p'
13956case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13957*datarootdir*) ac_datarootdir_seen=yes;;
13958*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13959  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13960$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13961_ACEOF
13962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13963  ac_datarootdir_hack='
13964  s&@datadir@&$datadir&g
13965  s&@docdir@&$docdir&g
13966  s&@infodir@&$infodir&g
13967  s&@localedir@&$localedir&g
13968  s&@mandir@&$mandir&g
13969  s&\\\${datarootdir}&$datarootdir&g' ;;
13970esac
13971_ACEOF
13972
13973# Neutralize VPATH when `$srcdir' = `.'.
13974# Shell code in configure.ac might set extrasub.
13975# FIXME: do we really want to maintain this feature?
13976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13977ac_sed_extra="$ac_vpsub
13978$extrasub
13979_ACEOF
13980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13981:t
13982/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13983s|@configure_input@|$ac_sed_conf_input|;t t
13984s&@top_builddir@&$ac_top_builddir_sub&;t t
13985s&@top_build_prefix@&$ac_top_build_prefix&;t t
13986s&@srcdir@&$ac_srcdir&;t t
13987s&@abs_srcdir@&$ac_abs_srcdir&;t t
13988s&@top_srcdir@&$ac_top_srcdir&;t t
13989s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13990s&@builddir@&$ac_builddir&;t t
13991s&@abs_builddir@&$ac_abs_builddir&;t t
13992s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13993s&@INSTALL@&$ac_INSTALL&;t t
13994s&@MKDIR_P@&$ac_MKDIR_P&;t t
13995$ac_datarootdir_hack
13996"
13997eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13998  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13999
14000test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14001  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14002  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14003      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14004  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14005which seems to be undefined.  Please make sure it is defined" >&5
14006$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14007which seems to be undefined.  Please make sure it is defined" >&2;}
14008
14009  rm -f "$ac_tmp/stdin"
14010  case $ac_file in
14011  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14012  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14013  esac \
14014  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14015 ;;
14016
14017
14018  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14019$as_echo "$as_me: executing $ac_file commands" >&6;}
14020 ;;
14021  esac
14022
14023
14024  case $ac_file$ac_mode in
14025    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14026  # Older Autoconf quotes --file arguments for eval, but not when files
14027  # are listed without --file.  Let's play safe and only enable the eval
14028  # if we detect the quoting.
14029  # TODO: see whether this extra hack can be removed once we start
14030  # requiring Autoconf 2.70 or later.
14031  case $CONFIG_FILES in #(
14032  *\'*) :
14033    eval set x "$CONFIG_FILES" ;; #(
14034  *) :
14035    set x $CONFIG_FILES ;; #(
14036  *) :
14037     ;;
14038esac
14039  shift
14040  # Used to flag and report bootstrapping failures.
14041  am_rc=0
14042  for am_mf
14043  do
14044    # Strip MF so we end up with the name of the file.
14045    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14046    # Check whether this is an Automake generated Makefile which includes
14047    # dependency-tracking related rules and includes.
14048    # Grep'ing the whole file directly is not great: AIX grep has a line
14049    # limit of 2048, but all sed's we know have understand at least 4000.
14050    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14051      || continue
14052    am_dirpart=`$as_dirname -- "$am_mf" ||
14053$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14054	 X"$am_mf" : 'X\(//\)[^/]' \| \
14055	 X"$am_mf" : 'X\(//\)$' \| \
14056	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14057$as_echo X"$am_mf" |
14058    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14059	    s//\1/
14060	    q
14061	  }
14062	  /^X\(\/\/\)[^/].*/{
14063	    s//\1/
14064	    q
14065	  }
14066	  /^X\(\/\/\)$/{
14067	    s//\1/
14068	    q
14069	  }
14070	  /^X\(\/\).*/{
14071	    s//\1/
14072	    q
14073	  }
14074	  s/.*/./; q'`
14075    am_filepart=`$as_basename -- "$am_mf" ||
14076$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14077	 X"$am_mf" : 'X\(//\)$' \| \
14078	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14079$as_echo X/"$am_mf" |
14080    sed '/^.*\/\([^/][^/]*\)\/*$/{
14081	    s//\1/
14082	    q
14083	  }
14084	  /^X\/\(\/\/\)$/{
14085	    s//\1/
14086	    q
14087	  }
14088	  /^X\/\(\/\).*/{
14089	    s//\1/
14090	    q
14091	  }
14092	  s/.*/./; q'`
14093    { echo "$as_me:$LINENO: cd "$am_dirpart" \
14094      && sed -e '/# am--include-marker/d' "$am_filepart" \
14095        | $MAKE -f - am--depfiles" >&5
14096   (cd "$am_dirpart" \
14097      && sed -e '/# am--include-marker/d' "$am_filepart" \
14098        | $MAKE -f - am--depfiles) >&5 2>&5
14099   ac_status=$?
14100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101   (exit $ac_status); } || am_rc=$?
14102  done
14103  if test $am_rc -ne 0; then
14104    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14106as_fn_error $? "Something went wrong bootstrapping makefile fragments
14107    for automatic dependency tracking.  Try re-running configure with the
14108    '--disable-dependency-tracking' option to at least be able to build
14109    the package (albeit without support for automatic dependency tracking).
14110See \`config.log' for more details" "$LINENO" 5; }
14111  fi
14112  { am_dirpart=; unset am_dirpart;}
14113  { am_filepart=; unset am_filepart;}
14114  { am_mf=; unset am_mf;}
14115  { am_rc=; unset am_rc;}
14116  rm -f conftest-deps.mk
14117}
14118 ;;
14119    "libtool":C)
14120
14121    # See if we are running on zsh, and set the options that allow our
14122    # commands through without removal of \ escapes.
14123    if test -n "${ZSH_VERSION+set}"; then
14124      setopt NO_GLOB_SUBST
14125    fi
14126
14127    cfgfile=${ofile}T
14128    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14129    $RM "$cfgfile"
14130
14131    cat <<_LT_EOF >> "$cfgfile"
14132#! $SHELL
14133# Generated automatically by $as_me ($PACKAGE) $VERSION
14134# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14135# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14136
14137# Provide generalized library-building support services.
14138# Written by Gordon Matzigkeit, 1996
14139
14140# Copyright (C) 2014 Free Software Foundation, Inc.
14141# This is free software; see the source for copying conditions.  There is NO
14142# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14143
14144# GNU Libtool is free software; you can redistribute it and/or modify
14145# it under the terms of the GNU General Public License as published by
14146# the Free Software Foundation; either version 2 of of the License, or
14147# (at your option) any later version.
14148#
14149# As a special exception to the GNU General Public License, if you
14150# distribute this file as part of a program or library that is built
14151# using GNU Libtool, you may include this file under the  same
14152# distribution terms that you use for the rest of that program.
14153#
14154# GNU Libtool is distributed in the hope that it will be useful, but
14155# WITHOUT ANY WARRANTY; without even the implied warranty of
14156# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14157# GNU General Public License for more details.
14158#
14159# You should have received a copy of the GNU General Public License
14160# along with this program.  If not, see <http://www.gnu.org/licenses/>.
14161
14162
14163# The names of the tagged configurations supported by this script.
14164available_tags=''
14165
14166# Configured defaults for sys_lib_dlsearch_path munging.
14167: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14168
14169# ### BEGIN LIBTOOL CONFIG
14170
14171# Whether or not to build static libraries.
14172build_old_libs=$enable_static
14173
14174# Which release of libtool.m4 was used?
14175macro_version=$macro_version
14176macro_revision=$macro_revision
14177
14178# Whether or not to build shared libraries.
14179build_libtool_libs=$enable_shared
14180
14181# What type of objects to build.
14182pic_mode=$pic_mode
14183
14184# Whether or not to optimize for fast installation.
14185fast_install=$enable_fast_install
14186
14187# Shared archive member basename,for filename based shared library versioning on AIX.
14188shared_archive_member_spec=$shared_archive_member_spec
14189
14190# Shell to use when invoking shell scripts.
14191SHELL=$lt_SHELL
14192
14193# An echo program that protects backslashes.
14194ECHO=$lt_ECHO
14195
14196# The PATH separator for the build system.
14197PATH_SEPARATOR=$lt_PATH_SEPARATOR
14198
14199# The host system.
14200host_alias=$host_alias
14201host=$host
14202host_os=$host_os
14203
14204# The build system.
14205build_alias=$build_alias
14206build=$build
14207build_os=$build_os
14208
14209# A sed program that does not truncate output.
14210SED=$lt_SED
14211
14212# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14213Xsed="\$SED -e 1s/^X//"
14214
14215# A grep program that handles long lines.
14216GREP=$lt_GREP
14217
14218# An ERE matcher.
14219EGREP=$lt_EGREP
14220
14221# A literal string matcher.
14222FGREP=$lt_FGREP
14223
14224# A BSD- or MS-compatible name lister.
14225NM=$lt_NM
14226
14227# Whether we need soft or hard links.
14228LN_S=$lt_LN_S
14229
14230# What is the maximum length of a command?
14231max_cmd_len=$max_cmd_len
14232
14233# Object file suffix (normally "o").
14234objext=$ac_objext
14235
14236# Executable file suffix (normally "").
14237exeext=$exeext
14238
14239# whether the shell understands "unset".
14240lt_unset=$lt_unset
14241
14242# turn spaces into newlines.
14243SP2NL=$lt_lt_SP2NL
14244
14245# turn newlines into spaces.
14246NL2SP=$lt_lt_NL2SP
14247
14248# convert \$build file names to \$host format.
14249to_host_file_cmd=$lt_cv_to_host_file_cmd
14250
14251# convert \$build files to toolchain format.
14252to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14253
14254# An object symbol dumper.
14255OBJDUMP=$lt_OBJDUMP
14256
14257# Method to check whether dependent libraries are shared objects.
14258deplibs_check_method=$lt_deplibs_check_method
14259
14260# Command to use when deplibs_check_method = "file_magic".
14261file_magic_cmd=$lt_file_magic_cmd
14262
14263# How to find potential files when deplibs_check_method = "file_magic".
14264file_magic_glob=$lt_file_magic_glob
14265
14266# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14267want_nocaseglob=$lt_want_nocaseglob
14268
14269# DLL creation program.
14270DLLTOOL=$lt_DLLTOOL
14271
14272# Command to associate shared and link libraries.
14273sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14274
14275# The archiver.
14276AR=$lt_AR
14277
14278# Flags to create an archive (by configure).
14279lt_ar_flags=$lt_ar_flags
14280
14281# Flags to create an archive.
14282AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
14283
14284# How to feed a file listing to the archiver.
14285archiver_list_spec=$lt_archiver_list_spec
14286
14287# A symbol stripping program.
14288STRIP=$lt_STRIP
14289
14290# Commands used to install an old-style archive.
14291RANLIB=$lt_RANLIB
14292old_postinstall_cmds=$lt_old_postinstall_cmds
14293old_postuninstall_cmds=$lt_old_postuninstall_cmds
14294
14295# Whether to use a lock for old archive extraction.
14296lock_old_archive_extraction=$lock_old_archive_extraction
14297
14298# A C compiler.
14299LTCC=$lt_CC
14300
14301# LTCC compiler flags.
14302LTCFLAGS=$lt_CFLAGS
14303
14304# Take the output of nm and produce a listing of raw symbols and C names.
14305global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14306
14307# Transform the output of nm in a proper C declaration.
14308global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14309
14310# Transform the output of nm into a list of symbols to manually relocate.
14311global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14312
14313# Transform the output of nm in a C name address pair.
14314global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14315
14316# Transform the output of nm in a C name address pair when lib prefix is needed.
14317global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14318
14319# The name lister interface.
14320nm_interface=$lt_lt_cv_nm_interface
14321
14322# Specify filename containing input files for \$NM.
14323nm_file_list_spec=$lt_nm_file_list_spec
14324
14325# The root where to search for dependent libraries,and where our libraries should be installed.
14326lt_sysroot=$lt_sysroot
14327
14328# Command to truncate a binary pipe.
14329lt_truncate_bin=$lt_lt_cv_truncate_bin
14330
14331# The name of the directory that contains temporary libtool files.
14332objdir=$objdir
14333
14334# Used to examine libraries when file_magic_cmd begins with "file".
14335MAGIC_CMD=$MAGIC_CMD
14336
14337# Must we lock files when doing compilation?
14338need_locks=$lt_need_locks
14339
14340# Manifest tool.
14341MANIFEST_TOOL=$lt_MANIFEST_TOOL
14342
14343# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14344DSYMUTIL=$lt_DSYMUTIL
14345
14346# Tool to change global to local symbols on Mac OS X.
14347NMEDIT=$lt_NMEDIT
14348
14349# Tool to manipulate fat objects and archives on Mac OS X.
14350LIPO=$lt_LIPO
14351
14352# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14353OTOOL=$lt_OTOOL
14354
14355# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14356OTOOL64=$lt_OTOOL64
14357
14358# Old archive suffix (normally "a").
14359libext=$libext
14360
14361# Shared library suffix (normally ".so").
14362shrext_cmds=$lt_shrext_cmds
14363
14364# The commands to extract the exported symbol list from a shared archive.
14365extract_expsyms_cmds=$lt_extract_expsyms_cmds
14366
14367# Variables whose values should be saved in libtool wrapper scripts and
14368# restored at link time.
14369variables_saved_for_relink=$lt_variables_saved_for_relink
14370
14371# Do we need the "lib" prefix for modules?
14372need_lib_prefix=$need_lib_prefix
14373
14374# Do we need a version for libraries?
14375need_version=$need_version
14376
14377# Library versioning type.
14378version_type=$version_type
14379
14380# Shared library runtime path variable.
14381runpath_var=$runpath_var
14382
14383# Shared library path variable.
14384shlibpath_var=$shlibpath_var
14385
14386# Is shlibpath searched before the hard-coded library search path?
14387shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14388
14389# Format of library name prefix.
14390libname_spec=$lt_libname_spec
14391
14392# List of archive names.  First name is the real one, the rest are links.
14393# The last name is the one that the linker finds with -lNAME
14394library_names_spec=$lt_library_names_spec
14395
14396# The coded name of the library, if different from the real name.
14397soname_spec=$lt_soname_spec
14398
14399# Permission mode override for installation of shared libraries.
14400install_override_mode=$lt_install_override_mode
14401
14402# Command to use after installation of a shared archive.
14403postinstall_cmds=$lt_postinstall_cmds
14404
14405# Command to use after uninstallation of a shared archive.
14406postuninstall_cmds=$lt_postuninstall_cmds
14407
14408# Commands used to finish a libtool library installation in a directory.
14409finish_cmds=$lt_finish_cmds
14410
14411# As "finish_cmds", except a single script fragment to be evaled but
14412# not shown.
14413finish_eval=$lt_finish_eval
14414
14415# Whether we should hardcode library paths into libraries.
14416hardcode_into_libs=$hardcode_into_libs
14417
14418# Compile-time system search path for libraries.
14419sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14420
14421# Detected run-time system search path for libraries.
14422sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14423
14424# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14425configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14426
14427# Whether dlopen is supported.
14428dlopen_support=$enable_dlopen
14429
14430# Whether dlopen of programs is supported.
14431dlopen_self=$enable_dlopen_self
14432
14433# Whether dlopen of statically linked programs is supported.
14434dlopen_self_static=$enable_dlopen_self_static
14435
14436# Commands to strip libraries.
14437old_striplib=$lt_old_striplib
14438striplib=$lt_striplib
14439
14440
14441# The linker used to build libraries.
14442LD=$lt_LD
14443
14444# How to create reloadable object files.
14445reload_flag=$lt_reload_flag
14446reload_cmds=$lt_reload_cmds
14447
14448# Commands used to build an old-style archive.
14449old_archive_cmds=$lt_old_archive_cmds
14450
14451# A language specific compiler.
14452CC=$lt_compiler
14453
14454# Is the compiler the GNU compiler?
14455with_gcc=$GCC
14456
14457# Compiler flag to turn off builtin functions.
14458no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14459
14460# Additional compiler flags for building library objects.
14461pic_flag=$lt_lt_prog_compiler_pic
14462
14463# How to pass a linker flag through the compiler.
14464wl=$lt_lt_prog_compiler_wl
14465
14466# Compiler flag to prevent dynamic linking.
14467link_static_flag=$lt_lt_prog_compiler_static
14468
14469# Does compiler simultaneously support -c and -o options?
14470compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14471
14472# Whether or not to add -lc for building shared libraries.
14473build_libtool_need_lc=$archive_cmds_need_lc
14474
14475# Whether or not to disallow shared libs when runtime libs are static.
14476allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14477
14478# Compiler flag to allow reflexive dlopens.
14479export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14480
14481# Compiler flag to generate shared objects directly from archives.
14482whole_archive_flag_spec=$lt_whole_archive_flag_spec
14483
14484# Whether the compiler copes with passing no objects directly.
14485compiler_needs_object=$lt_compiler_needs_object
14486
14487# Create an old-style archive from a shared archive.
14488old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14489
14490# Create a temporary old-style archive to link instead of a shared archive.
14491old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14492
14493# Commands used to build a shared archive.
14494archive_cmds=$lt_archive_cmds
14495archive_expsym_cmds=$lt_archive_expsym_cmds
14496
14497# Commands used to build a loadable module if different from building
14498# a shared archive.
14499module_cmds=$lt_module_cmds
14500module_expsym_cmds=$lt_module_expsym_cmds
14501
14502# Whether we are building with GNU ld or not.
14503with_gnu_ld=$lt_with_gnu_ld
14504
14505# Flag that allows shared libraries with undefined symbols to be built.
14506allow_undefined_flag=$lt_allow_undefined_flag
14507
14508# Flag that enforces no undefined symbols.
14509no_undefined_flag=$lt_no_undefined_flag
14510
14511# Flag to hardcode \$libdir into a binary during linking.
14512# This must work even if \$libdir does not exist
14513hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14514
14515# Whether we need a single "-rpath" flag with a separated argument.
14516hardcode_libdir_separator=$lt_hardcode_libdir_separator
14517
14518# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14519# DIR into the resulting binary.
14520hardcode_direct=$hardcode_direct
14521
14522# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14523# DIR into the resulting binary and the resulting library dependency is
14524# "absolute",i.e impossible to change by setting \$shlibpath_var if the
14525# library is relocated.
14526hardcode_direct_absolute=$hardcode_direct_absolute
14527
14528# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14529# into the resulting binary.
14530hardcode_minus_L=$hardcode_minus_L
14531
14532# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14533# into the resulting binary.
14534hardcode_shlibpath_var=$hardcode_shlibpath_var
14535
14536# Set to "yes" if building a shared library automatically hardcodes DIR
14537# into the library and all subsequent libraries and executables linked
14538# against it.
14539hardcode_automatic=$hardcode_automatic
14540
14541# Set to yes if linker adds runtime paths of dependent libraries
14542# to runtime path list.
14543inherit_rpath=$inherit_rpath
14544
14545# Whether libtool must link a program against all its dependency libraries.
14546link_all_deplibs=$link_all_deplibs
14547
14548# Set to "yes" if exported symbols are required.
14549always_export_symbols=$always_export_symbols
14550
14551# The commands to list exported symbols.
14552export_symbols_cmds=$lt_export_symbols_cmds
14553
14554# Symbols that should not be listed in the preloaded symbols.
14555exclude_expsyms=$lt_exclude_expsyms
14556
14557# Symbols that must always be exported.
14558include_expsyms=$lt_include_expsyms
14559
14560# Commands necessary for linking programs (against libraries) with templates.
14561prelink_cmds=$lt_prelink_cmds
14562
14563# Commands necessary for finishing linking programs.
14564postlink_cmds=$lt_postlink_cmds
14565
14566# Specify filename containing input files.
14567file_list_spec=$lt_file_list_spec
14568
14569# How to hardcode a shared library path into an executable.
14570hardcode_action=$hardcode_action
14571
14572# ### END LIBTOOL CONFIG
14573
14574_LT_EOF
14575
14576    cat <<'_LT_EOF' >> "$cfgfile"
14577
14578# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14579
14580# func_munge_path_list VARIABLE PATH
14581# -----------------------------------
14582# VARIABLE is name of variable containing _space_ separated list of
14583# directories to be munged by the contents of PATH, which is string
14584# having a format:
14585# "DIR[:DIR]:"
14586#       string "DIR[ DIR]" will be prepended to VARIABLE
14587# ":DIR[:DIR]"
14588#       string "DIR[ DIR]" will be appended to VARIABLE
14589# "DIRP[:DIRP]::[DIRA:]DIRA"
14590#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14591#       "DIRA[ DIRA]" will be appended to VARIABLE
14592# "DIR[:DIR]"
14593#       VARIABLE will be replaced by "DIR[ DIR]"
14594func_munge_path_list ()
14595{
14596    case x$2 in
14597    x)
14598        ;;
14599    *:)
14600        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14601        ;;
14602    x:*)
14603        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14604        ;;
14605    *::*)
14606        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14607        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14608        ;;
14609    *)
14610        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14611        ;;
14612    esac
14613}
14614
14615
14616# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
14617func_cc_basename ()
14618{
14619    for cc_temp in $*""; do
14620      case $cc_temp in
14621        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14622        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14623        \-*) ;;
14624        *) break;;
14625      esac
14626    done
14627    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14628}
14629
14630
14631# ### END FUNCTIONS SHARED WITH CONFIGURE
14632
14633_LT_EOF
14634
14635  case $host_os in
14636  aix3*)
14637    cat <<\_LT_EOF >> "$cfgfile"
14638# AIX sometimes has problems with the GCC collect2 program.  For some
14639# reason, if we set the COLLECT_NAMES environment variable, the problems
14640# vanish in a puff of smoke.
14641if test set != "${COLLECT_NAMES+set}"; then
14642  COLLECT_NAMES=
14643  export COLLECT_NAMES
14644fi
14645_LT_EOF
14646    ;;
14647  esac
14648
14649
14650ltmain=$ac_aux_dir/ltmain.sh
14651
14652
14653  # We use sed instead of cat because bash on DJGPP gets confused if
14654  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14655  # text mode, it properly converts lines to CR/LF.  This bash problem
14656  # is reportedly fixed, but why not run on old versions too?
14657  sed '$q' "$ltmain" >> "$cfgfile" \
14658     || (rm -f "$cfgfile"; exit 1)
14659
14660   mv -f "$cfgfile" "$ofile" ||
14661    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14662  chmod +x "$ofile"
14663
14664 ;;
14665
14666  esac
14667done # for ac_tag
14668
14669
14670as_fn_exit 0
14671_ACEOF
14672ac_clean_files=$ac_clean_files_save
14673
14674test $ac_write_fail = 0 ||
14675  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14676
14677
14678# configure is writing to config.log, and then calls config.status.
14679# config.status does its own redirection, appending to config.log.
14680# Unfortunately, on DOS this fails, as config.log is still kept open
14681# by configure, so config.status won't be able to write to it; its
14682# output is simply discarded.  So we exec the FD to /dev/null,
14683# effectively closing config.log, so it can be properly (re)opened and
14684# appended to by config.status.  When coming back to configure, we
14685# need to make the FD available again.
14686if test "$no_create" != yes; then
14687  ac_cs_success=:
14688  ac_config_status_args=
14689  test "$silent" = yes &&
14690    ac_config_status_args="$ac_config_status_args --quiet"
14691  exec 5>/dev/null
14692  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14693  exec 5>>config.log
14694  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14695  # would make configure fail if this is the last instruction.
14696  $ac_cs_success || as_fn_exit 1
14697fi
14698if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14699  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14700$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14701fi
14702
14703