1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.70 for etherape 0.9.20.
4#
5#
6# Copyright (C) 1992-1996, 1998-2017, 2020 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17as_nop=:
18if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else $as_nop
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36
37# Reset variables that may have inherited troublesome values from
38# the environment.
39
40# IFS needs to be set, to space, tab, and newline, in precisely that order.
41# (If _AS_PATH_WALK were called with IFS unset, it would have the
42# side effect of setting IFS to empty, thus disabling word splitting.)
43# Quoting is to prevent editors from complaining about space-tab.
44as_nl='
45'
46export as_nl
47IFS=" ""	$as_nl"
48
49PS1='$ '
50PS2='> '
51PS4='+ '
52
53# Ensure predictable behavior from utilities with locale-dependent output.
54LC_ALL=C
55export LC_ALL
56LANGUAGE=C
57export LANGUAGE
58
59# We cannot yet rely on "unset" to work, but we need these variables
60# to be unset--not just set to an empty or harmless value--now, to
61# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
62# also avoids known problems related to "unset" and subshell syntax
63# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
64for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
65do eval test \${$as_var+y} \
66  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
67done
68
69# Ensure that fds 0, 1, and 2 are open.
70if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
71if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
72if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
73
74# The user is always right.
75if ${PATH_SEPARATOR+false} :; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# Find who we are.  Look in the path if we contain no directory separator.
85as_myself=
86case $0 in #((
87  *[\\/]* ) as_myself=$0 ;;
88  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
89for as_dir in $PATH
90do
91  IFS=$as_save_IFS
92  case $as_dir in #(((
93    '') as_dir=./ ;;
94    */) ;;
95    *) as_dir=$as_dir/ ;;
96  esac
97    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
98  done
99IFS=$as_save_IFS
100
101     ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
112
113
114# Use a proper internal environment variable to ensure we don't fall
115  # into an infinite loop, continuously re-executing ourselves.
116  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
117    _as_can_reexec=no; export _as_can_reexec;
118    # We cannot yet assume a decent shell, so we have to provide a
119# neutralization value for shells without unset; and this also
120# works around shells that cannot unset nonexistent variables.
121# Preserve -v and -x to the replacement shell.
122BASH_ENV=/dev/null
123ENV=/dev/null
124(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
125case $- in # ((((
126  *v*x* | *x*v* ) as_opts=-vx ;;
127  *v* ) as_opts=-v ;;
128  *x* ) as_opts=-x ;;
129  * ) as_opts= ;;
130esac
131exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
132# Admittedly, this is quite paranoid, since all the known shells bail
133# out after a failed `exec'.
134printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
135exit 255
136  fi
137  # We don't want this to propagate to other subprocesses.
138          { _as_can_reexec=; unset _as_can_reexec;}
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="as_nop=:
141if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142then :
143  emulate sh
144  NULLCMD=:
145  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146  # is contrary to our usage.  Disable this feature.
147  alias -g '\${1+\"\$@\"}'='\"\$@\"'
148  setopt NO_GLOB_SUBST
149else \$as_nop
150  case \`(set -o) 2>/dev/null\` in #(
151  *posix*) :
152    set -o posix ;; #(
153  *) :
154     ;;
155esac
156fi
157"
158  as_required="as_fn_return () { (exit \$1); }
159as_fn_success () { as_fn_return 0; }
160as_fn_failure () { as_fn_return 1; }
161as_fn_ret_success () { return 0; }
162as_fn_ret_failure () { return 1; }
163
164exitcode=0
165as_fn_success || { exitcode=1; echo as_fn_success failed.; }
166as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169if ( set x; as_fn_ret_success y && test x = \"\$1\" )
170then :
171
172else \$as_nop
173  exitcode=1; echo positional parameters were not saved.
174fi
175test x\$exitcode = x0 || exit 1
176blah=\$(echo \$(echo blah))
177test x\"\$blah\" = xblah || exit 1
178test -x / || exit 1"
179  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
180  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
181  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
182  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
183
184  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
185    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
186    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
187    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188    PATH=/empty FPATH=/empty; export PATH FPATH
189    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
190      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
191test \$(( 1 + 1 )) = 2 || exit 1"
192  if (eval "$as_required") 2>/dev/null
193then :
194  as_have_required=yes
195else $as_nop
196  as_have_required=no
197fi
198  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
199then :
200
201else $as_nop
202  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
203as_found=false
204for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
205do
206  IFS=$as_save_IFS
207  case $as_dir in #(((
208    '') as_dir=./ ;;
209    */) ;;
210    *) as_dir=$as_dir/ ;;
211  esac
212  as_found=:
213  case $as_dir in #(
214	 /*)
215	   for as_base in sh bash ksh sh5; do
216	     # Try only shells that exist, to save several forks.
217	     as_shell=$as_dir$as_base
218	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
219		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
220then :
221  CONFIG_SHELL=$as_shell as_have_required=yes
222		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
223then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231IFS=$as_save_IFS
232if $as_found
233then :
234
235else $as_nop
236  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
237	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
238then :
239  CONFIG_SHELL=$SHELL as_have_required=yes
240fi
241fi
242
243
244      if test "x$CONFIG_SHELL" != x
245then :
246  export CONFIG_SHELL
247             # We cannot yet assume a decent shell, so we have to provide a
248# neutralization value for shells without unset; and this also
249# works around shells that cannot unset nonexistent variables.
250# Preserve -v and -x to the replacement shell.
251BASH_ENV=/dev/null
252ENV=/dev/null
253(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
254case $- in # ((((
255  *v*x* | *x*v* ) as_opts=-vx ;;
256  *v* ) as_opts=-v ;;
257  *x* ) as_opts=-x ;;
258  * ) as_opts= ;;
259esac
260exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
261# Admittedly, this is quite paranoid, since all the known shells bail
262# out after a failed `exec'.
263printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
264exit 255
265fi
266
267    if test x$as_have_required = xno
268then :
269  printf "%s\n" "$0: This script requires a shell more modern than all"
270  printf "%s\n" "$0: the shells that I found on your system."
271  if test ${ZSH_VERSION+y} ; then
272    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302
303# as_fn_set_status STATUS
304# -----------------------
305# Set $? to STATUS, without forking.
306as_fn_set_status ()
307{
308  return $1
309} # as_fn_set_status
310
311# as_fn_exit STATUS
312# -----------------
313# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314as_fn_exit ()
315{
316  set +e
317  as_fn_set_status $1
318  exit $1
319} # as_fn_exit
320# as_fn_nop
321# ---------
322# Do nothing but, unlike ":", preserve the value of $?.
323as_fn_nop ()
324{
325  return $?
326}
327as_nop=as_fn_nop
328
329# as_fn_mkdir_p
330# -------------
331# Create "$as_dir" as a directory, including parents if necessary.
332as_fn_mkdir_p ()
333{
334
335  case $as_dir in #(
336  -*) as_dir=./$as_dir;;
337  esac
338  test -d "$as_dir" || eval $as_mkdir_p || {
339    as_dirs=
340    while :; do
341      case $as_dir in #(
342      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343      *) as_qdir=$as_dir;;
344      esac
345      as_dirs="'$as_qdir' $as_dirs"
346      as_dir=`$as_dirname -- "$as_dir" ||
347$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348	 X"$as_dir" : 'X\(//\)[^/]' \| \
349	 X"$as_dir" : 'X\(//\)$' \| \
350	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351printf "%s\n" X"$as_dir" |
352    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353	    s//\1/
354	    q
355	  }
356	  /^X\(\/\/\)[^/].*/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\/\)$/{
361	    s//\1/
362	    q
363	  }
364	  /^X\(\/\).*/{
365	    s//\1/
366	    q
367	  }
368	  s/.*/./; q'`
369      test -d "$as_dir" && break
370    done
371    test -z "$as_dirs" || eval "mkdir $as_dirs"
372  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375} # as_fn_mkdir_p
376
377# as_fn_executable_p FILE
378# -----------------------
379# Test if FILE is an executable regular file.
380as_fn_executable_p ()
381{
382  test -f "$1" && test -x "$1"
383} # as_fn_executable_p
384# as_fn_append VAR VALUE
385# ----------------------
386# Append the text in VALUE to the end of the definition contained in VAR. Take
387# advantage of any shell optimizations that allow amortized linear growth over
388# repeated appends, instead of the typical quadratic growth present in naive
389# implementations.
390if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391then :
392  eval 'as_fn_append ()
393  {
394    eval $1+=\$2
395  }'
396else $as_nop
397  as_fn_append ()
398  {
399    eval $1=\$$1\$2
400  }
401fi # as_fn_append
402
403# as_fn_arith ARG...
404# ------------------
405# Perform arithmetic evaluation on the ARGs, and store the result in the
406# global $as_val. Take advantage of shells that can avoid forks. The arguments
407# must be portable across $(()) and expr.
408if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
409then :
410  eval 'as_fn_arith ()
411  {
412    as_val=$(( $* ))
413  }'
414else $as_nop
415  as_fn_arith ()
416  {
417    as_val=`expr "$@" || test $? -eq 1`
418  }
419fi # as_fn_arith
420
421# as_fn_nop
422# ---------
423# Do nothing but, unlike ":", preserve the value of $?.
424as_fn_nop ()
425{
426  return $?
427}
428as_nop=as_fn_nop
429
430# as_fn_error STATUS ERROR [LINENO LOG_FD]
431# ----------------------------------------
432# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
433# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
434# script with STATUS, using 1 if that was 0.
435as_fn_error ()
436{
437  as_status=$1; test $as_status -eq 0 && as_status=1
438  if test "$4"; then
439    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
440    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
441  fi
442  printf "%s\n" "$as_me: error: $2" >&2
443  as_fn_exit $as_status
444} # as_fn_error
445
446if expr a : '\(a\)' >/dev/null 2>&1 &&
447   test "X`expr 00001 : '.*\(...\)'`" = X001; then
448  as_expr=expr
449else
450  as_expr=false
451fi
452
453if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
454  as_basename=basename
455else
456  as_basename=false
457fi
458
459if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
460  as_dirname=dirname
461else
462  as_dirname=false
463fi
464
465as_me=`$as_basename -- "$0" ||
466$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
467	 X"$0" : 'X\(//\)$' \| \
468	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
469printf "%s\n" X/"$0" |
470    sed '/^.*\/\([^/][^/]*\)\/*$/{
471	    s//\1/
472	    q
473	  }
474	  /^X\/\(\/\/\)$/{
475	    s//\1/
476	    q
477	  }
478	  /^X\/\(\/\).*/{
479	    s//\1/
480	    q
481	  }
482	  s/.*/./; q'`
483
484# Avoid depending upon Character Ranges.
485as_cr_letters='abcdefghijklmnopqrstuvwxyz'
486as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
487as_cr_Letters=$as_cr_letters$as_cr_LETTERS
488as_cr_digits='0123456789'
489as_cr_alnum=$as_cr_Letters$as_cr_digits
490
491
492  as_lineno_1=$LINENO as_lineno_1a=$LINENO
493  as_lineno_2=$LINENO as_lineno_2a=$LINENO
494  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
495  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
496  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
497  sed -n '
498    p
499    /[$]LINENO/=
500  ' <$as_myself |
501    sed '
502      s/[$]LINENO.*/&-/
503      t lineno
504      b
505      :lineno
506      N
507      :loop
508      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
509      t loop
510      s/-\n.*//
511    ' >$as_me.lineno &&
512  chmod +x "$as_me.lineno" ||
513    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
514
515  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
516  # already done that, so ensure we don't try to do so again and fall
517  # in an infinite loop.  This has already happened in practice.
518  _as_can_reexec=no; export _as_can_reexec
519  # Don't try to exec as it changes $[0], causing all sort of problems
520  # (the dirname of $[0] is not the place where we might find the
521  # original and so on.  Autoconf is especially sensitive to this).
522  . "./$as_me.lineno"
523  # Exit status is that of the last command.
524  exit
525}
526
527
528# Determine whether it's possible to make 'echo' print without a newline.
529# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
530# for compatibility with existing Makefiles.
531ECHO_C= ECHO_N= ECHO_T=
532case `echo -n x` in #(((((
533-n*)
534  case `echo 'xy\c'` in
535  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
536  xy)  ECHO_C='\c';;
537  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
538       ECHO_T='	';;
539  esac;;
540*)
541  ECHO_N='-n';;
542esac
543
544# For backward compatibility with old third-party macros, we provide
545# the shell variables $as_echo and $as_echo_n.  New code should use
546# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
547as_echo='printf %s\n'
548as_echo_n='printf %s'
549
550
551rm -f conf$$ conf$$.exe conf$$.file
552if test -d conf$$.dir; then
553  rm -f conf$$.dir/conf$$.file
554else
555  rm -f conf$$.dir
556  mkdir conf$$.dir 2>/dev/null
557fi
558if (echo >conf$$.file) 2>/dev/null; then
559  if ln -s conf$$.file conf$$ 2>/dev/null; then
560    as_ln_s='ln -s'
561    # ... but there are two gotchas:
562    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
563    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
564    # In both cases, we have to default to `cp -pR'.
565    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
566      as_ln_s='cp -pR'
567  elif ln conf$$.file conf$$ 2>/dev/null; then
568    as_ln_s=ln
569  else
570    as_ln_s='cp -pR'
571  fi
572else
573  as_ln_s='cp -pR'
574fi
575rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
576rmdir conf$$.dir 2>/dev/null
577
578if mkdir -p . 2>/dev/null; then
579  as_mkdir_p='mkdir -p "$as_dir"'
580else
581  test -d ./-p && rmdir ./-p
582  as_mkdir_p=false
583fi
584
585as_test_x='test -x'
586as_executable_p=as_fn_executable_p
587
588# Sed expression to map a string onto a valid CPP name.
589as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
590
591# Sed expression to map a string onto a valid variable name.
592as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
593
594SHELL=${CONFIG_SHELL-/bin/sh}
595
596
597test -n "$DJDIR" || exec 7<&0 </dev/null
598exec 6>&1
599
600# Name of the host.
601# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
602# so uname gets run too.
603ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
604
605#
606# Initializations.
607#
608ac_default_prefix=/usr/local
609ac_clean_files=
610ac_config_libobj_dir=.
611LIBOBJS=
612cross_compiling=no
613subdirs=
614MFLAGS=
615MAKEFLAGS=
616
617# Identity of this package.
618PACKAGE_NAME='etherape'
619PACKAGE_TARNAME='etherape'
620PACKAGE_VERSION='0.9.20'
621PACKAGE_STRING='etherape 0.9.20'
622PACKAGE_BUGREPORT=''
623PACKAGE_URL=''
624
625ac_unique_file="config.h.in"
626# Factoring default headers for most tests.
627ac_includes_default="\
628#include <stddef.h>
629#ifdef HAVE_STDIO_H
630# include <stdio.h>
631#endif
632#ifdef HAVE_STDLIB_H
633# include <stdlib.h>
634#endif
635#ifdef HAVE_STRING_H
636# include <string.h>
637#endif
638#ifdef HAVE_INTTYPES_H
639# include <inttypes.h>
640#endif
641#ifdef HAVE_STDINT_H
642# include <stdint.h>
643#endif
644#ifdef HAVE_STRINGS_H
645# include <strings.h>
646#endif
647#ifdef HAVE_SYS_TYPES_H
648# include <sys/types.h>
649#endif
650#ifdef HAVE_SYS_STAT_H
651# include <sys/stat.h>
652#endif
653#ifdef HAVE_UNISTD_H
654# include <unistd.h>
655#endif"
656
657ac_header_c_list=
658ac_subst_vars='am__EXEEXT_FALSE
659am__EXEEXT_TRUE
660LTLIBOBJS
661LIBOBJS
662YELP_HELP_RULES
663XMLLINT
664ITSTOOL
665HELP_DIR
666YELP_LC_DIST
667YELP_LC_MEDIA_LINKS
668GETTEXT_PACKAGE
669POSUB
670LTLIBINTL
671LIBINTL
672INTLLIBS
673LTLIBICONV
674LIBICONV
675USE_NLS
676MSGMERGE
677XGETTEXT
678GMSGFMT
679MSGFMT
680MKINSTALLDIRS
681PCAP_LIBS
682HAVE_LIBCARES_FALSE
683HAVE_LIBCARES_TRUE
684PTHREAD_CFLAGS
685PTHREAD_LIBS
686PTHREAD_CC
687ax_pthread_config
688ETHERAPE_LDFLAGS
689ETHERAPE_LIBS
690ETHERAPE_CFLAGS
691PKG_CONFIG_LIBDIR
692PKG_CONFIG_PATH
693PKG_CONFIG
694LT_SYS_LIBRARY_PATH
695OTOOL64
696OTOOL
697LIPO
698NMEDIT
699DSYMUTIL
700MANIFEST_TOOL
701RANLIB
702ac_ct_AR
703AR
704DLLTOOL
705OBJDUMP
706NM
707ac_ct_DUMPBIN
708DUMPBIN
709LD
710FGREP
711EGREP
712GREP
713SED
714host_os
715host_vendor
716host_cpu
717host
718build_os
719build_vendor
720build_cpu
721build
722LIBTOOL
723LN_S
724CPP
725am__fastdepCC_FALSE
726am__fastdepCC_TRUE
727CCDEPMODE
728am__nodep
729AMDEPBACKSLASH
730AMDEP_FALSE
731AMDEP_TRUE
732am__include
733DEPDIR
734OBJEXT
735EXEEXT
736ac_ct_CC
737CPPFLAGS
738LDFLAGS
739CFLAGS
740CC
741AM_BACKSLASH
742AM_DEFAULT_VERBOSITY
743AM_DEFAULT_V
744AM_V
745am__untar
746am__tar
747AMTAR
748am__leading_dot
749SET_MAKE
750AWK
751mkdir_p
752MKDIR_P
753INSTALL_STRIP_PROGRAM
754STRIP
755install_sh
756MAKEINFO
757AUTOHEADER
758AUTOMAKE
759AUTOCONF
760ACLOCAL
761VERSION
762PACKAGE
763CYGPATH_W
764am__isrc
765INSTALL_DATA
766INSTALL_SCRIPT
767INSTALL_PROGRAM
768target_alias
769host_alias
770build_alias
771LIBS
772ECHO_T
773ECHO_N
774ECHO_C
775DEFS
776mandir
777localedir
778libdir
779psdir
780pdfdir
781dvidir
782htmldir
783infodir
784docdir
785oldincludedir
786includedir
787runstatedir
788localstatedir
789sharedstatedir
790sysconfdir
791datadir
792datarootdir
793libexecdir
794sbindir
795bindir
796program_transform_name
797prefix
798exec_prefix
799PACKAGE_URL
800PACKAGE_BUGREPORT
801PACKAGE_STRING
802PACKAGE_VERSION
803PACKAGE_TARNAME
804PACKAGE_NAME
805PATH_SEPARATOR
806SHELL
807am__quote'
808ac_subst_files=''
809ac_user_opts='
810enable_option_checking
811enable_silent_rules
812enable_dependency_tracking
813enable_shared
814enable_static
815with_pic
816enable_fast_install
817with_aix_soname
818with_gnu_ld
819with_sysroot
820enable_libtool_lock
821enable_warnings
822enable_werror
823enable_asan
824enable_ubsan
825enable_tsan
826enable_gdk_input_add
827with_c_ares
828enable_static_pcap
829enable_rpath
830with_libiconv_prefix
831enable_nls
832with_libintl_prefix
833with_help_dir
834'
835      ac_precious_vars='build_alias
836host_alias
837target_alias
838CC
839CFLAGS
840LDFLAGS
841LIBS
842CPPFLAGS
843CPP
844LT_SYS_LIBRARY_PATH
845PKG_CONFIG
846PKG_CONFIG_PATH
847PKG_CONFIG_LIBDIR
848ETHERAPE_CFLAGS
849ETHERAPE_LIBS
850ITSTOOL
851XMLLINT'
852
853
854# Initialize some variables set by options.
855ac_init_help=
856ac_init_version=false
857ac_unrecognized_opts=
858ac_unrecognized_sep=
859# The variables have the same names as the options, with
860# dashes changed to underlines.
861cache_file=/dev/null
862exec_prefix=NONE
863no_create=
864no_recursion=
865prefix=NONE
866program_prefix=NONE
867program_suffix=NONE
868program_transform_name=s,x,x,
869silent=
870site=
871srcdir=
872verbose=
873x_includes=NONE
874x_libraries=NONE
875
876# Installation directory options.
877# These are left unexpanded so users can "make install exec_prefix=/foo"
878# and all the variables that are supposed to be based on exec_prefix
879# by default will actually change.
880# Use braces instead of parens because sh, perl, etc. also accept them.
881# (The list follows the same order as the GNU Coding Standards.)
882bindir='${exec_prefix}/bin'
883sbindir='${exec_prefix}/sbin'
884libexecdir='${exec_prefix}/libexec'
885datarootdir='${prefix}/share'
886datadir='${datarootdir}'
887sysconfdir='${prefix}/etc'
888sharedstatedir='${prefix}/com'
889localstatedir='${prefix}/var'
890runstatedir='/run'
891includedir='${prefix}/include'
892oldincludedir='/usr/include'
893docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
894infodir='${datarootdir}/info'
895htmldir='${docdir}'
896dvidir='${docdir}'
897pdfdir='${docdir}'
898psdir='${docdir}'
899libdir='${exec_prefix}/lib'
900localedir='${datarootdir}/locale'
901mandir='${datarootdir}/man'
902
903ac_prev=
904ac_dashdash=
905for ac_option
906do
907  # If the previous option needs an argument, assign it.
908  if test -n "$ac_prev"; then
909    eval $ac_prev=\$ac_option
910    ac_prev=
911    continue
912  fi
913
914  case $ac_option in
915  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916  *=)   ac_optarg= ;;
917  *)    ac_optarg=yes ;;
918  esac
919
920  case $ac_dashdash$ac_option in
921  --)
922    ac_dashdash=yes ;;
923
924  -bindir | --bindir | --bindi | --bind | --bin | --bi)
925    ac_prev=bindir ;;
926  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
927    bindir=$ac_optarg ;;
928
929  -build | --build | --buil | --bui | --bu)
930    ac_prev=build_alias ;;
931  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
932    build_alias=$ac_optarg ;;
933
934  -cache-file | --cache-file | --cache-fil | --cache-fi \
935  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
936    ac_prev=cache_file ;;
937  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
938  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
939    cache_file=$ac_optarg ;;
940
941  --config-cache | -C)
942    cache_file=config.cache ;;
943
944  -datadir | --datadir | --datadi | --datad)
945    ac_prev=datadir ;;
946  -datadir=* | --datadir=* | --datadi=* | --datad=*)
947    datadir=$ac_optarg ;;
948
949  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
950  | --dataroo | --dataro | --datar)
951    ac_prev=datarootdir ;;
952  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
953  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
954    datarootdir=$ac_optarg ;;
955
956  -disable-* | --disable-*)
957    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958    # Reject names that are not valid shell variable names.
959    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960      as_fn_error $? "invalid feature name: \`$ac_useropt'"
961    ac_useropt_orig=$ac_useropt
962    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
963    case $ac_user_opts in
964      *"
965"enable_$ac_useropt"
966"*) ;;
967      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
968	 ac_unrecognized_sep=', ';;
969    esac
970    eval enable_$ac_useropt=no ;;
971
972  -docdir | --docdir | --docdi | --doc | --do)
973    ac_prev=docdir ;;
974  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
975    docdir=$ac_optarg ;;
976
977  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978    ac_prev=dvidir ;;
979  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
980    dvidir=$ac_optarg ;;
981
982  -enable-* | --enable-*)
983    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984    # Reject names that are not valid shell variable names.
985    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986      as_fn_error $? "invalid feature name: \`$ac_useropt'"
987    ac_useropt_orig=$ac_useropt
988    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
989    case $ac_user_opts in
990      *"
991"enable_$ac_useropt"
992"*) ;;
993      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
994	 ac_unrecognized_sep=', ';;
995    esac
996    eval enable_$ac_useropt=\$ac_optarg ;;
997
998  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
999  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1000  | --exec | --exe | --ex)
1001    ac_prev=exec_prefix ;;
1002  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1003  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1004  | --exec=* | --exe=* | --ex=*)
1005    exec_prefix=$ac_optarg ;;
1006
1007  -gas | --gas | --ga | --g)
1008    # Obsolete; use --with-gas.
1009    with_gas=yes ;;
1010
1011  -help | --help | --hel | --he | -h)
1012    ac_init_help=long ;;
1013  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1014    ac_init_help=recursive ;;
1015  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1016    ac_init_help=short ;;
1017
1018  -host | --host | --hos | --ho)
1019    ac_prev=host_alias ;;
1020  -host=* | --host=* | --hos=* | --ho=*)
1021    host_alias=$ac_optarg ;;
1022
1023  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1024    ac_prev=htmldir ;;
1025  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1026  | --ht=*)
1027    htmldir=$ac_optarg ;;
1028
1029  -includedir | --includedir | --includedi | --included | --include \
1030  | --includ | --inclu | --incl | --inc)
1031    ac_prev=includedir ;;
1032  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1033  | --includ=* | --inclu=* | --incl=* | --inc=*)
1034    includedir=$ac_optarg ;;
1035
1036  -infodir | --infodir | --infodi | --infod | --info | --inf)
1037    ac_prev=infodir ;;
1038  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1039    infodir=$ac_optarg ;;
1040
1041  -libdir | --libdir | --libdi | --libd)
1042    ac_prev=libdir ;;
1043  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1044    libdir=$ac_optarg ;;
1045
1046  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1047  | --libexe | --libex | --libe)
1048    ac_prev=libexecdir ;;
1049  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1050  | --libexe=* | --libex=* | --libe=*)
1051    libexecdir=$ac_optarg ;;
1052
1053  -localedir | --localedir | --localedi | --localed | --locale)
1054    ac_prev=localedir ;;
1055  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1056    localedir=$ac_optarg ;;
1057
1058  -localstatedir | --localstatedir | --localstatedi | --localstated \
1059  | --localstate | --localstat | --localsta | --localst | --locals)
1060    ac_prev=localstatedir ;;
1061  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1062  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1063    localstatedir=$ac_optarg ;;
1064
1065  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1066    ac_prev=mandir ;;
1067  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1068    mandir=$ac_optarg ;;
1069
1070  -nfp | --nfp | --nf)
1071    # Obsolete; use --without-fp.
1072    with_fp=no ;;
1073
1074  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1075  | --no-cr | --no-c | -n)
1076    no_create=yes ;;
1077
1078  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1079  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1080    no_recursion=yes ;;
1081
1082  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1083  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1084  | --oldin | --oldi | --old | --ol | --o)
1085    ac_prev=oldincludedir ;;
1086  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1087  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1088  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1089    oldincludedir=$ac_optarg ;;
1090
1091  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1092    ac_prev=prefix ;;
1093  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1094    prefix=$ac_optarg ;;
1095
1096  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1097  | --program-pre | --program-pr | --program-p)
1098    ac_prev=program_prefix ;;
1099  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1100  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1101    program_prefix=$ac_optarg ;;
1102
1103  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1104  | --program-suf | --program-su | --program-s)
1105    ac_prev=program_suffix ;;
1106  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1107  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1108    program_suffix=$ac_optarg ;;
1109
1110  -program-transform-name | --program-transform-name \
1111  | --program-transform-nam | --program-transform-na \
1112  | --program-transform-n | --program-transform- \
1113  | --program-transform | --program-transfor \
1114  | --program-transfo | --program-transf \
1115  | --program-trans | --program-tran \
1116  | --progr-tra | --program-tr | --program-t)
1117    ac_prev=program_transform_name ;;
1118  -program-transform-name=* | --program-transform-name=* \
1119  | --program-transform-nam=* | --program-transform-na=* \
1120  | --program-transform-n=* | --program-transform-=* \
1121  | --program-transform=* | --program-transfor=* \
1122  | --program-transfo=* | --program-transf=* \
1123  | --program-trans=* | --program-tran=* \
1124  | --progr-tra=* | --program-tr=* | --program-t=*)
1125    program_transform_name=$ac_optarg ;;
1126
1127  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1128    ac_prev=pdfdir ;;
1129  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1130    pdfdir=$ac_optarg ;;
1131
1132  -psdir | --psdir | --psdi | --psd | --ps)
1133    ac_prev=psdir ;;
1134  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1135    psdir=$ac_optarg ;;
1136
1137  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138  | -silent | --silent | --silen | --sile | --sil)
1139    silent=yes ;;
1140
1141  -runstatedir | --runstatedir | --runstatedi | --runstated \
1142  | --runstate | --runstat | --runsta | --runst | --runs \
1143  | --run | --ru | --r)
1144    ac_prev=runstatedir ;;
1145  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1146  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1147  | --run=* | --ru=* | --r=*)
1148    runstatedir=$ac_optarg ;;
1149
1150  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151    ac_prev=sbindir ;;
1152  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153  | --sbi=* | --sb=*)
1154    sbindir=$ac_optarg ;;
1155
1156  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158  | --sharedst | --shareds | --shared | --share | --shar \
1159  | --sha | --sh)
1160    ac_prev=sharedstatedir ;;
1161  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164  | --sha=* | --sh=*)
1165    sharedstatedir=$ac_optarg ;;
1166
1167  -site | --site | --sit)
1168    ac_prev=site ;;
1169  -site=* | --site=* | --sit=*)
1170    site=$ac_optarg ;;
1171
1172  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173    ac_prev=srcdir ;;
1174  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175    srcdir=$ac_optarg ;;
1176
1177  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178  | --syscon | --sysco | --sysc | --sys | --sy)
1179    ac_prev=sysconfdir ;;
1180  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182    sysconfdir=$ac_optarg ;;
1183
1184  -target | --target | --targe | --targ | --tar | --ta | --t)
1185    ac_prev=target_alias ;;
1186  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187    target_alias=$ac_optarg ;;
1188
1189  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190    verbose=yes ;;
1191
1192  -version | --version | --versio | --versi | --vers | -V)
1193    ac_init_version=: ;;
1194
1195  -with-* | --with-*)
1196    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197    # Reject names that are not valid shell variable names.
1198    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199      as_fn_error $? "invalid package name: \`$ac_useropt'"
1200    ac_useropt_orig=$ac_useropt
1201    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1202    case $ac_user_opts in
1203      *"
1204"with_$ac_useropt"
1205"*) ;;
1206      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1207	 ac_unrecognized_sep=', ';;
1208    esac
1209    eval with_$ac_useropt=\$ac_optarg ;;
1210
1211  -without-* | --without-*)
1212    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213    # Reject names that are not valid shell variable names.
1214    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215      as_fn_error $? "invalid package name: \`$ac_useropt'"
1216    ac_useropt_orig=$ac_useropt
1217    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1218    case $ac_user_opts in
1219      *"
1220"with_$ac_useropt"
1221"*) ;;
1222      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223	 ac_unrecognized_sep=', ';;
1224    esac
1225    eval with_$ac_useropt=no ;;
1226
1227  --x)
1228    # Obsolete; use --with-x.
1229    with_x=yes ;;
1230
1231  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232  | --x-incl | --x-inc | --x-in | --x-i)
1233    ac_prev=x_includes ;;
1234  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236    x_includes=$ac_optarg ;;
1237
1238  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240    ac_prev=x_libraries ;;
1241  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243    x_libraries=$ac_optarg ;;
1244
1245  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1246Try \`$0 --help' for more information"
1247    ;;
1248
1249  *=*)
1250    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251    # Reject names that are not valid shell variable names.
1252    case $ac_envvar in #(
1253      '' | [0-9]* | *[!_$as_cr_alnum]* )
1254      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1255    esac
1256    eval $ac_envvar=\$ac_optarg
1257    export $ac_envvar ;;
1258
1259  *)
1260    # FIXME: should be removed in autoconf 3.0.
1261    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1262    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1264    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1265    ;;
1266
1267  esac
1268done
1269
1270if test -n "$ac_prev"; then
1271  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272  as_fn_error $? "missing argument to $ac_option"
1273fi
1274
1275if test -n "$ac_unrecognized_opts"; then
1276  case $enable_option_checking in
1277    no) ;;
1278    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1279    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1280  esac
1281fi
1282
1283# Check all directory arguments for consistency.
1284for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285		datadir sysconfdir sharedstatedir localstatedir includedir \
1286		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287		libdir localedir mandir runstatedir
1288do
1289  eval ac_val=\$$ac_var
1290  # Remove trailing slashes.
1291  case $ac_val in
1292    */ )
1293      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1294      eval $ac_var=\$ac_val;;
1295  esac
1296  # Be sure to have absolute directory names.
1297  case $ac_val in
1298    [\\/$]* | ?:[\\/]* )  continue;;
1299    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1300  esac
1301  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1302done
1303
1304# There might be people who depend on the old broken behavior: `$host'
1305# used to hold the argument of --host etc.
1306# FIXME: To remove some day.
1307build=$build_alias
1308host=$host_alias
1309target=$target_alias
1310
1311# FIXME: To remove some day.
1312if test "x$host_alias" != x; then
1313  if test "x$build_alias" = x; then
1314    cross_compiling=maybe
1315  elif test "x$build_alias" != "x$host_alias"; then
1316    cross_compiling=yes
1317  fi
1318fi
1319
1320ac_tool_prefix=
1321test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323test "$silent" = yes && exec 6>/dev/null
1324
1325
1326ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327ac_ls_di=`ls -di .` &&
1328ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329  as_fn_error $? "working directory cannot be determined"
1330test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331  as_fn_error $? "pwd does not report name of working directory"
1332
1333
1334# Find the source files, if location was not specified.
1335if test -z "$srcdir"; then
1336  ac_srcdir_defaulted=yes
1337  # Try the directory containing this script, then the parent directory.
1338  ac_confdir=`$as_dirname -- "$as_myself" ||
1339$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340	 X"$as_myself" : 'X\(//\)[^/]' \| \
1341	 X"$as_myself" : 'X\(//\)$' \| \
1342	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1343printf "%s\n" X"$as_myself" |
1344    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345	    s//\1/
1346	    q
1347	  }
1348	  /^X\(\/\/\)[^/].*/{
1349	    s//\1/
1350	    q
1351	  }
1352	  /^X\(\/\/\)$/{
1353	    s//\1/
1354	    q
1355	  }
1356	  /^X\(\/\).*/{
1357	    s//\1/
1358	    q
1359	  }
1360	  s/.*/./; q'`
1361  srcdir=$ac_confdir
1362  if test ! -r "$srcdir/$ac_unique_file"; then
1363    srcdir=..
1364  fi
1365else
1366  ac_srcdir_defaulted=no
1367fi
1368if test ! -r "$srcdir/$ac_unique_file"; then
1369  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1371fi
1372ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373ac_abs_confdir=`(
1374	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1375	pwd)`
1376# When building in place, set srcdir=.
1377if test "$ac_abs_confdir" = "$ac_pwd"; then
1378  srcdir=.
1379fi
1380# Remove unnecessary trailing slashes from srcdir.
1381# Double slashes in file names in object file debugging info
1382# mess up M-x gdb in Emacs.
1383case $srcdir in
1384*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385esac
1386for ac_var in $ac_precious_vars; do
1387  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388  eval ac_env_${ac_var}_value=\$${ac_var}
1389  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391done
1392
1393#
1394# Report the --help message.
1395#
1396if test "$ac_init_help" = "long"; then
1397  # Omit some internal or obsolete options to make the list less imposing.
1398  # This message is too long to be a string in the A/UX 3.1 sh.
1399  cat <<_ACEOF
1400\`configure' configures etherape 0.9.20 to adapt to many kinds of systems.
1401
1402Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405VAR=VALUE.  See below for descriptions of some of the useful variables.
1406
1407Defaults for the options are specified in brackets.
1408
1409Configuration:
1410  -h, --help              display this help and exit
1411      --help=short        display options specific to this package
1412      --help=recursive    display the short help of all the included packages
1413  -V, --version           display version information and exit
1414  -q, --quiet, --silent   do not print \`checking ...' messages
1415      --cache-file=FILE   cache test results in FILE [disabled]
1416  -C, --config-cache      alias for \`--cache-file=config.cache'
1417  -n, --no-create         do not create output files
1418      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1419
1420Installation directories:
1421  --prefix=PREFIX         install architecture-independent files in PREFIX
1422                          [$ac_default_prefix]
1423  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1424                          [PREFIX]
1425
1426By default, \`make install' will install all the files in
1427\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1428an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429for instance \`--prefix=\$HOME'.
1430
1431For better control, use the options below.
1432
1433Fine tuning of the installation directories:
1434  --bindir=DIR            user executables [EPREFIX/bin]
1435  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1436  --libexecdir=DIR        program executables [EPREFIX/libexec]
1437  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1438  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1439  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1440  --runstatedir=DIR       modifiable per-process data [/run]
1441  --libdir=DIR            object code libraries [EPREFIX/lib]
1442  --includedir=DIR        C header files [PREFIX/include]
1443  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1444  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1445  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1446  --infodir=DIR           info documentation [DATAROOTDIR/info]
1447  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1448  --mandir=DIR            man documentation [DATAROOTDIR/man]
1449  --docdir=DIR            documentation root [DATAROOTDIR/doc/etherape]
1450  --htmldir=DIR           html documentation [DOCDIR]
1451  --dvidir=DIR            dvi documentation [DOCDIR]
1452  --pdfdir=DIR            pdf documentation [DOCDIR]
1453  --psdir=DIR             ps documentation [DOCDIR]
1454_ACEOF
1455
1456  cat <<\_ACEOF
1457
1458Program names:
1459  --program-prefix=PREFIX            prepend PREFIX to installed program names
1460  --program-suffix=SUFFIX            append SUFFIX to installed program names
1461  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1462
1463System types:
1464  --build=BUILD     configure for building on BUILD [guessed]
1465  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1466_ACEOF
1467fi
1468
1469if test -n "$ac_init_help"; then
1470  case $ac_init_help in
1471     short | recursive ) echo "Configuration of etherape 0.9.20:";;
1472   esac
1473  cat <<\_ACEOF
1474
1475Optional Features:
1476  --disable-option-checking  ignore unrecognized --enable/--with options
1477  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1478  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1479  --enable-silent-rules   less verbose build output (undo: "make V=1")
1480  --disable-silent-rules  verbose build output (undo: "make V=0")
1481  --enable-dependency-tracking
1482                          do not reject slow dependency extractors
1483  --disable-dependency-tracking
1484                          speeds up one-time build
1485  --enable-shared[=PKGS]  build shared libraries [default=yes]
1486  --enable-static[=PKGS]  build static libraries [default=yes]
1487  --enable-fast-install[=PKGS]
1488                          optimize for fast installation [default=yes]
1489  --disable-libtool-lock  avoid locking (might break parallel builds)
1490  --disable-warnings      Disable compiler warnings [default=enabled]
1491  --enable-werror         Treat warnings as errors [default=disabled]
1492  --enable-asan           Compile with GCC/Clang's address sanitizer
1493                          (incompatible with --enable-tsan) [default=disabled]
1494  --enable-ubsan          Compile with GCC/Clang's undefined-behavior
1495                          sanitizer [default=disabled]
1496  --enable-tsan           Compile with GCC/Clang's thread sanitizer
1497                          (incompatible with --enable-asan) [default=disabled]
1498  --disable-gdk-input-add Use timers for live capture instead of
1499                          gdk_input_add.
1500  --enable-static-pcap    Used to build the rpm within Debian.
1501  --disable-rpath         do not hardcode runtime library paths
1502  --disable-nls           do not use Native Language Support
1503
1504Optional Packages:
1505  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1506  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1507  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1508                          both]
1509  --with-aix-soname=aix|svr4|both
1510                          shared library versioning (aka "SONAME") variant to
1511                          provide on AIX, [default=aix].
1512  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1513  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1514                          compiler's sysroot if not specified).
1515  --with-c-ares           use the c-ares library for DNS resolution
1516                          [default=no]
1517  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1518  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1519  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1520  --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
1521  --without-libintl-prefix     don't search for libintl in includedir and libdir
1522  --with-help-dir=DIR     path where help files are installed
1523
1524Some influential environment variables:
1525  CC          C compiler command
1526  CFLAGS      C compiler flags
1527  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1528              nonstandard directory <lib dir>
1529  LIBS        libraries to pass to the linker, e.g. -l<library>
1530  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1531              you have headers in a nonstandard directory <include dir>
1532  CPP         C preprocessor
1533  LT_SYS_LIBRARY_PATH
1534              User-defined run-time library search path.
1535  PKG_CONFIG  path to pkg-config utility
1536  PKG_CONFIG_PATH
1537              directories to add to pkg-config's search path
1538  PKG_CONFIG_LIBDIR
1539              path overriding pkg-config's built-in search path
1540  ETHERAPE_CFLAGS
1541              C compiler flags for ETHERAPE, overriding pkg-config
1542  ETHERAPE_LIBS
1543              linker flags for ETHERAPE, overriding pkg-config
1544  ITSTOOL     Path to the `itstool` command
1545  XMLLINT     Path to the `xmllint` command
1546
1547Use these variables to override the choices made by `configure' or to help
1548it to find libraries and programs with nonstandard names/locations.
1549
1550Report bugs to the package provider.
1551_ACEOF
1552ac_status=$?
1553fi
1554
1555if test "$ac_init_help" = "recursive"; then
1556  # If there are subdirs, report their specific --help.
1557  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558    test -d "$ac_dir" ||
1559      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1560      continue
1561    ac_builddir=.
1562
1563case "$ac_dir" in
1564.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565*)
1566  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1567  # A ".." for each directory in $ac_dir_suffix.
1568  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569  case $ac_top_builddir_sub in
1570  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572  esac ;;
1573esac
1574ac_abs_top_builddir=$ac_pwd
1575ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576# for backward compatibility:
1577ac_top_builddir=$ac_top_build_prefix
1578
1579case $srcdir in
1580  .)  # We are building in place.
1581    ac_srcdir=.
1582    ac_top_srcdir=$ac_top_builddir_sub
1583    ac_abs_top_srcdir=$ac_pwd ;;
1584  [\\/]* | ?:[\\/]* )  # Absolute name.
1585    ac_srcdir=$srcdir$ac_dir_suffix;
1586    ac_top_srcdir=$srcdir
1587    ac_abs_top_srcdir=$srcdir ;;
1588  *) # Relative name.
1589    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590    ac_top_srcdir=$ac_top_build_prefix$srcdir
1591    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592esac
1593ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594
1595    cd "$ac_dir" || { ac_status=$?; continue; }
1596    # Check for configure.gnu first; this name is used for a wrapper for
1597    # Metaconfig's "Configure" on case-insensitive file systems.
1598    if test -f "$ac_srcdir/configure.gnu"; then
1599      echo &&
1600      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1601    elif test -f "$ac_srcdir/configure"; then
1602      echo &&
1603      $SHELL "$ac_srcdir/configure" --help=recursive
1604    else
1605      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1606    fi || ac_status=$?
1607    cd "$ac_pwd" || { ac_status=$?; break; }
1608  done
1609fi
1610
1611test -n "$ac_init_help" && exit $ac_status
1612if $ac_init_version; then
1613  cat <<\_ACEOF
1614etherape configure 0.9.20
1615generated by GNU Autoconf 2.70
1616
1617Copyright (C) 2020 Free Software Foundation, Inc.
1618This configure script is free software; the Free Software Foundation
1619gives unlimited permission to copy, distribute and modify it.
1620_ACEOF
1621  exit
1622fi
1623
1624## ------------------------ ##
1625## Autoconf initialization. ##
1626## ------------------------ ##
1627
1628# ac_fn_c_try_compile LINENO
1629# --------------------------
1630# Try to compile conftest.$ac_ext, and return whether this succeeded.
1631ac_fn_c_try_compile ()
1632{
1633  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634  rm -f conftest.$ac_objext conftest.beam
1635  if { { ac_try="$ac_compile"
1636case "(($ac_try" in
1637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638  *) ac_try_echo=$ac_try;;
1639esac
1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641printf "%s\n" "$ac_try_echo"; } >&5
1642  (eval "$ac_compile") 2>conftest.err
1643  ac_status=$?
1644  if test -s conftest.err; then
1645    grep -v '^ *+' conftest.err >conftest.er1
1646    cat conftest.er1 >&5
1647    mv -f conftest.er1 conftest.err
1648  fi
1649  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650  test $ac_status = 0; } && {
1651	 test -z "$ac_c_werror_flag" ||
1652	 test ! -s conftest.err
1653       } && test -s conftest.$ac_objext
1654then :
1655  ac_retval=0
1656else $as_nop
1657  printf "%s\n" "$as_me: failed program was:" >&5
1658sed 's/^/| /' conftest.$ac_ext >&5
1659
1660	ac_retval=1
1661fi
1662  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663  as_fn_set_status $ac_retval
1664
1665} # ac_fn_c_try_compile
1666
1667# ac_fn_c_try_cpp LINENO
1668# ----------------------
1669# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1670ac_fn_c_try_cpp ()
1671{
1672  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673  if { { ac_try="$ac_cpp conftest.$ac_ext"
1674case "(($ac_try" in
1675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676  *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679printf "%s\n" "$ac_try_echo"; } >&5
1680  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1681  ac_status=$?
1682  if test -s conftest.err; then
1683    grep -v '^ *+' conftest.err >conftest.er1
1684    cat conftest.er1 >&5
1685    mv -f conftest.er1 conftest.err
1686  fi
1687  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688  test $ac_status = 0; } > conftest.i && {
1689	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1690	 test ! -s conftest.err
1691       }
1692then :
1693  ac_retval=0
1694else $as_nop
1695  printf "%s\n" "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698    ac_retval=1
1699fi
1700  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701  as_fn_set_status $ac_retval
1702
1703} # ac_fn_c_try_cpp
1704
1705# ac_fn_c_try_link LINENO
1706# -----------------------
1707# Try to link conftest.$ac_ext, and return whether this succeeded.
1708ac_fn_c_try_link ()
1709{
1710  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1712  if { { ac_try="$ac_link"
1713case "(($ac_try" in
1714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715  *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718printf "%s\n" "$ac_try_echo"; } >&5
1719  (eval "$ac_link") 2>conftest.err
1720  ac_status=$?
1721  if test -s conftest.err; then
1722    grep -v '^ *+' conftest.err >conftest.er1
1723    cat conftest.er1 >&5
1724    mv -f conftest.er1 conftest.err
1725  fi
1726  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727  test $ac_status = 0; } && {
1728	 test -z "$ac_c_werror_flag" ||
1729	 test ! -s conftest.err
1730       } && test -s conftest$ac_exeext && {
1731	 test "$cross_compiling" = yes ||
1732	 test -x conftest$ac_exeext
1733       }
1734then :
1735  ac_retval=0
1736else $as_nop
1737  printf "%s\n" "$as_me: failed program was:" >&5
1738sed 's/^/| /' conftest.$ac_ext >&5
1739
1740	ac_retval=1
1741fi
1742  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1743  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1744  # interfere with the next link command; also delete a directory that is
1745  # left behind by Apple's compiler.  We do this before executing the actions.
1746  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748  as_fn_set_status $ac_retval
1749
1750} # ac_fn_c_try_link
1751
1752# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1753# -------------------------------------------------------
1754# Tests whether HEADER exists and can be compiled using the include files in
1755# INCLUDES, setting the cache variable VAR accordingly.
1756ac_fn_c_check_header_compile ()
1757{
1758  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760printf %s "checking for $2... " >&6; }
1761if eval test \${$3+y}
1762then :
1763  printf %s "(cached) " >&6
1764else $as_nop
1765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766/* end confdefs.h.  */
1767$4
1768#include <$2>
1769_ACEOF
1770if ac_fn_c_try_compile "$LINENO"
1771then :
1772  eval "$3=yes"
1773else $as_nop
1774  eval "$3=no"
1775fi
1776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1777fi
1778eval ac_res=\$$3
1779	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780printf "%s\n" "$ac_res" >&6; }
1781  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783} # ac_fn_c_check_header_compile
1784
1785# ac_fn_c_check_func LINENO FUNC VAR
1786# ----------------------------------
1787# Tests whether FUNC exists, setting the cache variable VAR accordingly
1788ac_fn_c_check_func ()
1789{
1790  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792printf %s "checking for $2... " >&6; }
1793if eval test \${$3+y}
1794then :
1795  printf %s "(cached) " >&6
1796else $as_nop
1797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h.  */
1799/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1800   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1801#define $2 innocuous_$2
1802
1803/* System header to define __stub macros and hopefully few prototypes,
1804   which can conflict with char $2 (); below.  */
1805
1806#include <limits.h>
1807#undef $2
1808
1809/* Override any GCC internal prototype to avoid an error.
1810   Use char because int might match the return type of a GCC
1811   builtin and then its argument prototype would still apply.  */
1812#ifdef __cplusplus
1813extern "C"
1814#endif
1815char $2 ();
1816/* The GNU C library defines this for functions which it implements
1817    to always fail with ENOSYS.  Some functions are actually named
1818    something starting with __ and the normal name is an alias.  */
1819#if defined __stub_$2 || defined __stub___$2
1820choke me
1821#endif
1822
1823int
1824main (void)
1825{
1826return $2 ();
1827  ;
1828  return 0;
1829}
1830_ACEOF
1831if ac_fn_c_try_link "$LINENO"
1832then :
1833  eval "$3=yes"
1834else $as_nop
1835  eval "$3=no"
1836fi
1837rm -f core conftest.err conftest.$ac_objext conftest.beam \
1838    conftest$ac_exeext conftest.$ac_ext
1839fi
1840eval ac_res=\$$3
1841	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842printf "%s\n" "$ac_res" >&6; }
1843  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844
1845} # ac_fn_c_check_func
1846
1847# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1848# -------------------------------------------
1849# Tests whether TYPE exists after having included INCLUDES, setting cache
1850# variable VAR accordingly.
1851ac_fn_c_check_type ()
1852{
1853  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855printf %s "checking for $2... " >&6; }
1856if eval test \${$3+y}
1857then :
1858  printf %s "(cached) " >&6
1859else $as_nop
1860  eval "$3=no"
1861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862/* end confdefs.h.  */
1863$4
1864int
1865main (void)
1866{
1867if (sizeof ($2))
1868	 return 0;
1869  ;
1870  return 0;
1871}
1872_ACEOF
1873if ac_fn_c_try_compile "$LINENO"
1874then :
1875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876/* end confdefs.h.  */
1877$4
1878int
1879main (void)
1880{
1881if (sizeof (($2)))
1882	    return 0;
1883  ;
1884  return 0;
1885}
1886_ACEOF
1887if ac_fn_c_try_compile "$LINENO"
1888then :
1889
1890else $as_nop
1891  eval "$3=yes"
1892fi
1893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1894fi
1895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1896fi
1897eval ac_res=\$$3
1898	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899printf "%s\n" "$ac_res" >&6; }
1900  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902} # ac_fn_c_check_type
1903
1904# ac_fn_c_try_run LINENO
1905# ----------------------
1906# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1907# executables *can* be run.
1908ac_fn_c_try_run ()
1909{
1910  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911  if { { ac_try="$ac_link"
1912case "(($ac_try" in
1913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914  *) ac_try_echo=$ac_try;;
1915esac
1916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917printf "%s\n" "$ac_try_echo"; } >&5
1918  (eval "$ac_link") 2>&5
1919  ac_status=$?
1920  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1922  { { case "(($ac_try" in
1923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924  *) ac_try_echo=$ac_try;;
1925esac
1926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927printf "%s\n" "$ac_try_echo"; } >&5
1928  (eval "$ac_try") 2>&5
1929  ac_status=$?
1930  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931  test $ac_status = 0; }; }
1932then :
1933  ac_retval=0
1934else $as_nop
1935  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1936       printf "%s\n" "$as_me: failed program was:" >&5
1937sed 's/^/| /' conftest.$ac_ext >&5
1938
1939       ac_retval=$ac_status
1940fi
1941  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1942  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943  as_fn_set_status $ac_retval
1944
1945} # ac_fn_c_try_run
1946ac_configure_args_raw=
1947for ac_arg
1948do
1949  case $ac_arg in
1950  *\'*)
1951    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1952  esac
1953  as_fn_append ac_configure_args_raw " '$ac_arg'"
1954done
1955
1956case $ac_configure_args_raw in
1957  *$as_nl*)
1958    ac_safe_unquote= ;;
1959  *)
1960    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1961    ac_unsafe_a="$ac_unsafe_z#~"
1962    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1963    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1964esac
1965
1966cat >config.log <<_ACEOF
1967This file contains any messages produced by compilers while
1968running configure, to aid debugging if configure makes a mistake.
1969
1970It was created by etherape $as_me 0.9.20, which was
1971generated by GNU Autoconf 2.70.  Invocation command line was
1972
1973  $ $0$ac_configure_args_raw
1974
1975_ACEOF
1976exec 5>>config.log
1977{
1978cat <<_ASUNAME
1979## --------- ##
1980## Platform. ##
1981## --------- ##
1982
1983hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1984uname -m = `(uname -m) 2>/dev/null || echo unknown`
1985uname -r = `(uname -r) 2>/dev/null || echo unknown`
1986uname -s = `(uname -s) 2>/dev/null || echo unknown`
1987uname -v = `(uname -v) 2>/dev/null || echo unknown`
1988
1989/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1990/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1991
1992/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1993/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1994/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1995/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1996/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1997/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1998/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1999
2000_ASUNAME
2001
2002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003for as_dir in $PATH
2004do
2005  IFS=$as_save_IFS
2006  case $as_dir in #(((
2007    '') as_dir=./ ;;
2008    */) ;;
2009    *) as_dir=$as_dir/ ;;
2010  esac
2011    printf "%s\n" "PATH: $as_dir"
2012  done
2013IFS=$as_save_IFS
2014
2015} >&5
2016
2017cat >&5 <<_ACEOF
2018
2019
2020## ----------- ##
2021## Core tests. ##
2022## ----------- ##
2023
2024_ACEOF
2025
2026
2027# Keep a trace of the command line.
2028# Strip out --no-create and --no-recursion so they do not pile up.
2029# Strip out --silent because we don't want to record it for future runs.
2030# Also quote any args containing shell meta-characters.
2031# Make two passes to allow for proper duplicate-argument suppression.
2032ac_configure_args=
2033ac_configure_args0=
2034ac_configure_args1=
2035ac_must_keep_next=false
2036for ac_pass in 1 2
2037do
2038  for ac_arg
2039  do
2040    case $ac_arg in
2041    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2042    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2043    | -silent | --silent | --silen | --sile | --sil)
2044      continue ;;
2045    *\'*)
2046      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2047    esac
2048    case $ac_pass in
2049    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2050    2)
2051      as_fn_append ac_configure_args1 " '$ac_arg'"
2052      if test $ac_must_keep_next = true; then
2053	ac_must_keep_next=false # Got value, back to normal.
2054      else
2055	case $ac_arg in
2056	  *=* | --config-cache | -C | -disable-* | --disable-* \
2057	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2058	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2059	  | -with-* | --with-* | -without-* | --without-* | --x)
2060	    case "$ac_configure_args0 " in
2061	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2062	    esac
2063	    ;;
2064	  -* ) ac_must_keep_next=true ;;
2065	esac
2066      fi
2067      as_fn_append ac_configure_args " '$ac_arg'"
2068      ;;
2069    esac
2070  done
2071done
2072{ ac_configure_args0=; unset ac_configure_args0;}
2073{ ac_configure_args1=; unset ac_configure_args1;}
2074
2075# When interrupted or exit'd, cleanup temporary files, and complete
2076# config.log.  We remove comments because anyway the quotes in there
2077# would cause problems or look ugly.
2078# WARNING: Use '\'' to represent an apostrophe within the trap.
2079# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2080trap 'exit_status=$?
2081  # Sanitize IFS.
2082  IFS=" ""	$as_nl"
2083  # Save into config.log some information that might help in debugging.
2084  {
2085    echo
2086
2087    printf "%s\n" "## ---------------- ##
2088## Cache variables. ##
2089## ---------------- ##"
2090    echo
2091    # The following way of writing the cache mishandles newlines in values,
2092(
2093  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2094    eval ac_val=\$$ac_var
2095    case $ac_val in #(
2096    *${as_nl}*)
2097      case $ac_var in #(
2098      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2099printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2100      esac
2101      case $ac_var in #(
2102      _ | IFS | as_nl) ;; #(
2103      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2104      *) { eval $ac_var=; unset $ac_var;} ;;
2105      esac ;;
2106    esac
2107  done
2108  (set) 2>&1 |
2109    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2110    *${as_nl}ac_space=\ *)
2111      sed -n \
2112	"s/'\''/'\''\\\\'\'''\''/g;
2113	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2114      ;; #(
2115    *)
2116      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2117      ;;
2118    esac |
2119    sort
2120)
2121    echo
2122
2123    printf "%s\n" "## ----------------- ##
2124## Output variables. ##
2125## ----------------- ##"
2126    echo
2127    for ac_var in $ac_subst_vars
2128    do
2129      eval ac_val=\$$ac_var
2130      case $ac_val in
2131      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2132      esac
2133      printf "%s\n" "$ac_var='\''$ac_val'\''"
2134    done | sort
2135    echo
2136
2137    if test -n "$ac_subst_files"; then
2138      printf "%s\n" "## ------------------- ##
2139## File substitutions. ##
2140## ------------------- ##"
2141      echo
2142      for ac_var in $ac_subst_files
2143      do
2144	eval ac_val=\$$ac_var
2145	case $ac_val in
2146	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147	esac
2148	printf "%s\n" "$ac_var='\''$ac_val'\''"
2149      done | sort
2150      echo
2151    fi
2152
2153    if test -s confdefs.h; then
2154      printf "%s\n" "## ----------- ##
2155## confdefs.h. ##
2156## ----------- ##"
2157      echo
2158      cat confdefs.h
2159      echo
2160    fi
2161    test "$ac_signal" != 0 &&
2162      printf "%s\n" "$as_me: caught signal $ac_signal"
2163    printf "%s\n" "$as_me: exit $exit_status"
2164  } >&5
2165  rm -f core *.core core.conftest.* &&
2166    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2167    exit $exit_status
2168' 0
2169for ac_signal in 1 2 13 15; do
2170  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2171done
2172ac_signal=0
2173
2174# confdefs.h avoids OS command line length limits that DEFS can exceed.
2175rm -f -r conftest* confdefs.h
2176
2177printf "%s\n" "/* confdefs.h */" > confdefs.h
2178
2179# Predefined preprocessor variables.
2180
2181printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2182
2183printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2184
2185printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2186
2187printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2188
2189printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2190
2191printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2192
2193
2194# Let the site file select an alternate cache file if it wants to.
2195# Prefer an explicitly selected file to automatically selected ones.
2196if test -n "$CONFIG_SITE"; then
2197  ac_site_files="$CONFIG_SITE"
2198elif test "x$prefix" != xNONE; then
2199  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2200else
2201  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2202fi
2203
2204for ac_site_file in $ac_site_files
2205do
2206  case $ac_site_file in #(
2207  */*) :
2208     ;; #(
2209  *) :
2210    ac_site_file=./$ac_site_file ;;
2211esac
2212  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2213    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2214printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2215    sed 's/^/| /' "$ac_site_file" >&5
2216    . "$ac_site_file" \
2217      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2218printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2219as_fn_error $? "failed to load site script $ac_site_file
2220See \`config.log' for more details" "$LINENO" 5; }
2221  fi
2222done
2223
2224if test -r "$cache_file"; then
2225  # Some versions of bash will fail to source /dev/null (special files
2226  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2227  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2228    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2229printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2230    case $cache_file in
2231      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2232      *)                      . "./$cache_file";;
2233    esac
2234  fi
2235else
2236  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2237printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2238  >$cache_file
2239fi
2240
2241# Test code for whether the C compiler supports C89 (global declarations)
2242ac_c_conftest_c89_globals='
2243/* Does the compiler advertise C89 conformance?
2244   Do not test the value of __STDC__, because some compilers set it to 0
2245   while being otherwise adequately conformant. */
2246#if !defined __STDC__
2247# error "Compiler does not advertise C89 conformance"
2248#endif
2249
2250#include <stddef.h>
2251#include <stdarg.h>
2252struct stat;
2253/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2254struct buf { int x; };
2255struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2256static char *e (p, i)
2257     char **p;
2258     int i;
2259{
2260  return p[i];
2261}
2262static char *f (char * (*g) (char **, int), char **p, ...)
2263{
2264  char *s;
2265  va_list v;
2266  va_start (v,p);
2267  s = g (p, va_arg (v,int));
2268  va_end (v);
2269  return s;
2270}
2271
2272/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2273   function prototypes and stuff, but not \xHH hex character constants.
2274   These do not provoke an error unfortunately, instead are silently treated
2275   as an "x".  The following induces an error, until -std is added to get
2276   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2277   array size at least.  It is necessary to write \x00 == 0 to get something
2278   that is true only with -std.  */
2279int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2280
2281/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2282   inside strings and character constants.  */
2283#define FOO(x) '\''x'\''
2284int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2285
2286int test (int i, double x);
2287struct s1 {int (*f) (int a);};
2288struct s2 {int (*f) (double a);};
2289int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2290               int, int);'
2291
2292# Test code for whether the C compiler supports C89 (body of main).
2293ac_c_conftest_c89_main='
2294ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2295'
2296
2297# Test code for whether the C compiler supports C99 (global declarations)
2298ac_c_conftest_c99_globals='
2299// Does the compiler advertise C99 conformance?
2300#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2301# error "Compiler does not advertise C99 conformance"
2302#endif
2303
2304#include <stdbool.h>
2305extern int puts (const char *);
2306extern int printf (const char *, ...);
2307extern int dprintf (int, const char *, ...);
2308extern void *malloc (size_t);
2309
2310// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2311// dprintf is used instead of fprintf to avoid needing to declare
2312// FILE and stderr.
2313#define debug(...) dprintf (2, __VA_ARGS__)
2314#define showlist(...) puts (#__VA_ARGS__)
2315#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2316static void
2317test_varargs_macros (void)
2318{
2319  int x = 1234;
2320  int y = 5678;
2321  debug ("Flag");
2322  debug ("X = %d\n", x);
2323  showlist (The first, second, and third items.);
2324  report (x>y, "x is %d but y is %d", x, y);
2325}
2326
2327// Check long long types.
2328#define BIG64 18446744073709551615ull
2329#define BIG32 4294967295ul
2330#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2331#if !BIG_OK
2332  #error "your preprocessor is broken"
2333#endif
2334#if BIG_OK
2335#else
2336  #error "your preprocessor is broken"
2337#endif
2338static long long int bignum = -9223372036854775807LL;
2339static unsigned long long int ubignum = BIG64;
2340
2341struct incomplete_array
2342{
2343  int datasize;
2344  double data[];
2345};
2346
2347struct named_init {
2348  int number;
2349  const wchar_t *name;
2350  double average;
2351};
2352
2353typedef const char *ccp;
2354
2355static inline int
2356test_restrict (ccp restrict text)
2357{
2358  // See if C++-style comments work.
2359  // Iterate through items via the restricted pointer.
2360  // Also check for declarations in for loops.
2361  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2362    continue;
2363  return 0;
2364}
2365
2366// Check varargs and va_copy.
2367static bool
2368test_varargs (const char *format, ...)
2369{
2370  va_list args;
2371  va_start (args, format);
2372  va_list args_copy;
2373  va_copy (args_copy, args);
2374
2375  const char *str = "";
2376  int number = 0;
2377  float fnumber = 0;
2378
2379  while (*format)
2380    {
2381      switch (*format++)
2382	{
2383	case '\''s'\'': // string
2384	  str = va_arg (args_copy, const char *);
2385	  break;
2386	case '\''d'\'': // int
2387	  number = va_arg (args_copy, int);
2388	  break;
2389	case '\''f'\'': // float
2390	  fnumber = va_arg (args_copy, double);
2391	  break;
2392	default:
2393	  break;
2394	}
2395    }
2396  va_end (args_copy);
2397  va_end (args);
2398
2399  return *str && number && fnumber;
2400}
2401'
2402
2403# Test code for whether the C compiler supports C99 (body of main).
2404ac_c_conftest_c99_main='
2405  // Check bool.
2406  _Bool success = false;
2407  success |= (argc != 0);
2408
2409  // Check restrict.
2410  if (test_restrict ("String literal") == 0)
2411    success = true;
2412  char *restrict newvar = "Another string";
2413
2414  // Check varargs.
2415  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2416  test_varargs_macros ();
2417
2418  // Check flexible array members.
2419  struct incomplete_array *ia =
2420    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2421  ia->datasize = 10;
2422  for (int i = 0; i < ia->datasize; ++i)
2423    ia->data[i] = i * 1.234;
2424
2425  // Check named initializers.
2426  struct named_init ni = {
2427    .number = 34,
2428    .name = L"Test wide string",
2429    .average = 543.34343,
2430  };
2431
2432  ni.number = 58;
2433
2434  int dynamic_array[ni.number];
2435  dynamic_array[0] = argv[0][0];
2436  dynamic_array[ni.number - 1] = 543;
2437
2438  // work around unused variable warnings
2439  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2440	 || dynamic_array[ni.number - 1] != 543);
2441'
2442
2443# Test code for whether the C compiler supports C11 (global declarations)
2444ac_c_conftest_c11_globals='
2445// Does the compiler advertise C11 conformance?
2446#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2447# error "Compiler does not advertise C11 conformance"
2448#endif
2449
2450// Check _Alignas.
2451char _Alignas (double) aligned_as_double;
2452char _Alignas (0) no_special_alignment;
2453extern char aligned_as_int;
2454char _Alignas (0) _Alignas (int) aligned_as_int;
2455
2456// Check _Alignof.
2457enum
2458{
2459  int_alignment = _Alignof (int),
2460  int_array_alignment = _Alignof (int[100]),
2461  char_alignment = _Alignof (char)
2462};
2463_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2464
2465// Check _Noreturn.
2466int _Noreturn does_not_return (void) { for (;;) continue; }
2467
2468// Check _Static_assert.
2469struct test_static_assert
2470{
2471  int x;
2472  _Static_assert (sizeof (int) <= sizeof (long int),
2473                  "_Static_assert does not work in struct");
2474  long int y;
2475};
2476
2477// Check UTF-8 literals.
2478#define u8 syntax error!
2479char const utf8_literal[] = u8"happens to be ASCII" "another string";
2480
2481// Check duplicate typedefs.
2482typedef long *long_ptr;
2483typedef long int *long_ptr;
2484typedef long_ptr long_ptr;
2485
2486// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2487struct anonymous
2488{
2489  union {
2490    struct { int i; int j; };
2491    struct { int k; long int l; } w;
2492  };
2493  int m;
2494} v1;
2495'
2496
2497# Test code for whether the C compiler supports C11 (body of main).
2498ac_c_conftest_c11_main='
2499  _Static_assert ((offsetof (struct anonymous, i)
2500		   == offsetof (struct anonymous, w.k)),
2501		  "Anonymous union alignment botch");
2502  v1.i = 2;
2503  v1.w.k = 5;
2504  ok |= v1.i != 5;
2505'
2506
2507# Test code for whether the C compiler supports C11 (complete).
2508ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2509${ac_c_conftest_c99_globals}
2510${ac_c_conftest_c11_globals}
2511
2512int
2513main (int argc, char **argv)
2514{
2515  int ok = 0;
2516  ${ac_c_conftest_c89_main}
2517  ${ac_c_conftest_c99_main}
2518  ${ac_c_conftest_c11_main}
2519  return ok;
2520}
2521"
2522
2523# Test code for whether the C compiler supports C99 (complete).
2524ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2525${ac_c_conftest_c99_globals}
2526
2527int
2528main (int argc, char **argv)
2529{
2530  int ok = 0;
2531  ${ac_c_conftest_c89_main}
2532  ${ac_c_conftest_c99_main}
2533  return ok;
2534}
2535"
2536
2537# Test code for whether the C compiler supports C89 (complete).
2538ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2539
2540int
2541main (int argc, char **argv)
2542{
2543  int ok = 0;
2544  ${ac_c_conftest_c89_main}
2545  return ok;
2546}
2547"
2548
2549as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2550as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2551as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2552as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2553as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2554as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2555as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2556as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2557as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2558as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2559
2560# Auxiliary files required by this configure script.
2561ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2562
2563# Locations in which to look for auxiliary files.
2564ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2565
2566# Search for a directory containing all of the required auxiliary files,
2567# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2568# If we don't find one directory that contains all the files we need,
2569# we report the set of missing files from the *first* directory in
2570# $ac_aux_dir_candidates and give up.
2571ac_missing_aux_files=""
2572ac_first_candidate=:
2573printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575as_found=false
2576for as_dir in $ac_aux_dir_candidates
2577do
2578  IFS=$as_save_IFS
2579  case $as_dir in #(((
2580    '') as_dir=./ ;;
2581    */) ;;
2582    *) as_dir=$as_dir/ ;;
2583  esac
2584  as_found=:
2585
2586  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2587  ac_aux_dir_found=yes
2588  ac_install_sh=
2589  for ac_aux in $ac_aux_files
2590  do
2591    # As a special case, if "install-sh" is required, that requirement
2592    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2593    # and $ac_install_sh is set appropriately for whichever one is found.
2594    if test x"$ac_aux" = x"install-sh"
2595    then
2596      if test -f "${as_dir}install-sh"; then
2597        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2598        ac_install_sh="${as_dir}install-sh -c"
2599      elif test -f "${as_dir}install.sh"; then
2600        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2601        ac_install_sh="${as_dir}install.sh -c"
2602      elif test -f "${as_dir}shtool"; then
2603        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2604        ac_install_sh="${as_dir}shtool install -c"
2605      else
2606        ac_aux_dir_found=no
2607        if $ac_first_candidate; then
2608          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2609        else
2610          break
2611        fi
2612      fi
2613    else
2614      if test -f "${as_dir}${ac_aux}"; then
2615        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2616      else
2617        ac_aux_dir_found=no
2618        if $ac_first_candidate; then
2619          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2620        else
2621          break
2622        fi
2623      fi
2624    fi
2625  done
2626  if test "$ac_aux_dir_found" = yes; then
2627    ac_aux_dir="$as_dir"
2628    break
2629  fi
2630  ac_first_candidate=false
2631
2632  as_found=false
2633done
2634IFS=$as_save_IFS
2635if $as_found
2636then :
2637
2638else $as_nop
2639  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2640fi
2641
2642
2643# These three variables are undocumented and unsupported,
2644# and are intended to be withdrawn in a future Autoconf release.
2645# They can cause serious problems if a builder's source tree is in a directory
2646# whose full name contains unusual characters.
2647if test -f "${ac_aux_dir}config.guess"; then
2648  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2649fi
2650if test -f "${ac_aux_dir}config.sub"; then
2651  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2652fi
2653if test -f "$ac_aux_dir/configure"; then
2654  ac_configure="$SHELL ${ac_aux_dir}configure"
2655fi
2656
2657# Check that the precious variables saved in the cache have kept the same
2658# value.
2659ac_cache_corrupted=false
2660for ac_var in $ac_precious_vars; do
2661  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2662  eval ac_new_set=\$ac_env_${ac_var}_set
2663  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2664  eval ac_new_val=\$ac_env_${ac_var}_value
2665  case $ac_old_set,$ac_new_set in
2666    set,)
2667      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2668printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2669      ac_cache_corrupted=: ;;
2670    ,set)
2671      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2672printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2673      ac_cache_corrupted=: ;;
2674    ,);;
2675    *)
2676      if test "x$ac_old_val" != "x$ac_new_val"; then
2677	# differences in whitespace do not lead to failure.
2678	ac_old_val_w=`echo x $ac_old_val`
2679	ac_new_val_w=`echo x $ac_new_val`
2680	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2681	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2682printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2683	  ac_cache_corrupted=:
2684	else
2685	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2686printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2687	  eval $ac_var=\$ac_old_val
2688	fi
2689	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2690printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2691	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2692printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2693      fi;;
2694  esac
2695  # Pass precious variables to config.status.
2696  if test "$ac_new_set" = set; then
2697    case $ac_new_val in
2698    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2699    *) ac_arg=$ac_var=$ac_new_val ;;
2700    esac
2701    case " $ac_configure_args " in
2702      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2703      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2704    esac
2705  fi
2706done
2707if $ac_cache_corrupted; then
2708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2709printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2710  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2711printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2712  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2713	    and start over" "$LINENO" 5
2714fi
2715## -------------------- ##
2716## Main body of script. ##
2717## -------------------- ##
2718
2719ac_ext=c
2720ac_cpp='$CPP $CPPFLAGS'
2721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724
2725
2726
2727
2728ac_config_headers="$ac_config_headers config.h"
2729
2730am__api_version='1.16'
2731
2732
2733
2734  # Find a good install program.  We prefer a C program (faster),
2735# so one script is as good as another.  But avoid the broken or
2736# incompatible versions:
2737# SysV /etc/install, /usr/sbin/install
2738# SunOS /usr/etc/install
2739# IRIX /sbin/install
2740# AIX /bin/install
2741# AmigaOS /C/install, which installs bootblocks on floppy discs
2742# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2743# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2744# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2745# OS/2's system install, which has a completely different semantic
2746# ./install, which can be erroneously created by make from ./install.sh.
2747# Reject install programs that cannot install multiple files.
2748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2749printf %s "checking for a BSD-compatible install... " >&6; }
2750if test -z "$INSTALL"; then
2751if test ${ac_cv_path_install+y}
2752then :
2753  printf %s "(cached) " >&6
2754else $as_nop
2755  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756for as_dir in $PATH
2757do
2758  IFS=$as_save_IFS
2759  case $as_dir in #(((
2760    '') as_dir=./ ;;
2761    */) ;;
2762    *) as_dir=$as_dir/ ;;
2763  esac
2764    # Account for fact that we put trailing slashes in our PATH walk.
2765case $as_dir in #((
2766  ./ | /[cC]/* | \
2767  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2768  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2769  /usr/ucb/* ) ;;
2770  *)
2771    # OSF1 and SCO ODT 3.0 have their own names for install.
2772    # Don't use installbsd from OSF since it installs stuff as root
2773    # by default.
2774    for ac_prog in ginstall scoinst install; do
2775      for ac_exec_ext in '' $ac_executable_extensions; do
2776	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2777	  if test $ac_prog = install &&
2778	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2779	    # AIX install.  It has an incompatible calling convention.
2780	    :
2781	  elif test $ac_prog = install &&
2782	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2783	    # program-specific install script used by HP pwplus--don't use.
2784	    :
2785	  else
2786	    rm -rf conftest.one conftest.two conftest.dir
2787	    echo one > conftest.one
2788	    echo two > conftest.two
2789	    mkdir conftest.dir
2790	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2791	      test -s conftest.one && test -s conftest.two &&
2792	      test -s conftest.dir/conftest.one &&
2793	      test -s conftest.dir/conftest.two
2794	    then
2795	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2796	      break 3
2797	    fi
2798	  fi
2799	fi
2800      done
2801    done
2802    ;;
2803esac
2804
2805  done
2806IFS=$as_save_IFS
2807
2808rm -rf conftest.one conftest.two conftest.dir
2809
2810fi
2811  if test ${ac_cv_path_install+y}; then
2812    INSTALL=$ac_cv_path_install
2813  else
2814    # As a last resort, use the slow shell script.  Don't cache a
2815    # value for INSTALL within a source directory, because that will
2816    # break other packages using the cache if that directory is
2817    # removed, or if the value is a relative name.
2818    INSTALL=$ac_install_sh
2819  fi
2820fi
2821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2822printf "%s\n" "$INSTALL" >&6; }
2823
2824# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2825# It thinks the first close brace ends the variable substitution.
2826test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2827
2828test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2829
2830test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2831
2832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2833printf %s "checking whether build environment is sane... " >&6; }
2834# Reject unsafe characters in $srcdir or the absolute working directory
2835# name.  Accept space and tab only in the latter.
2836am_lf='
2837'
2838case `pwd` in
2839  *[\\\"\#\$\&\'\`$am_lf]*)
2840    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2841esac
2842case $srcdir in
2843  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2844    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2845esac
2846
2847# Do 'set' in a subshell so we don't clobber the current shell's
2848# arguments.  Must try -L first in case configure is actually a
2849# symlink; some systems play weird games with the mod time of symlinks
2850# (eg FreeBSD returns the mod time of the symlink's containing
2851# directory).
2852if (
2853   am_has_slept=no
2854   for am_try in 1 2; do
2855     echo "timestamp, slept: $am_has_slept" > conftest.file
2856     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2857     if test "$*" = "X"; then
2858	# -L didn't work.
2859	set X `ls -t "$srcdir/configure" conftest.file`
2860     fi
2861     if test "$*" != "X $srcdir/configure conftest.file" \
2862	&& test "$*" != "X conftest.file $srcdir/configure"; then
2863
2864	# If neither matched, then we have a broken ls.  This can happen
2865	# if, for instance, CONFIG_SHELL is bash and it inherits a
2866	# broken ls alias from the environment.  This has actually
2867	# happened.  Such a system could not be considered "sane".
2868	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2869  alias in your environment" "$LINENO" 5
2870     fi
2871     if test "$2" = conftest.file || test $am_try -eq 2; then
2872       break
2873     fi
2874     # Just in case.
2875     sleep 1
2876     am_has_slept=yes
2877   done
2878   test "$2" = conftest.file
2879   )
2880then
2881   # Ok.
2882   :
2883else
2884   as_fn_error $? "newly created file is older than distributed files!
2885Check your system clock" "$LINENO" 5
2886fi
2887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2888printf "%s\n" "yes" >&6; }
2889# If we didn't sleep, we still need to ensure time stamps of config.status and
2890# generated files are strictly newer.
2891am_sleep_pid=
2892if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2893  ( sleep 1 ) &
2894  am_sleep_pid=$!
2895fi
2896
2897rm -f conftest.file
2898
2899test "$program_prefix" != NONE &&
2900  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2901# Use a double $ so make ignores it.
2902test "$program_suffix" != NONE &&
2903  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2904# Double any \ or $.
2905# By default was `s,x,x', remove it if useless.
2906ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2907program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2908
2909
2910# Expand $ac_aux_dir to an absolute path.
2911am_aux_dir=`cd "$ac_aux_dir" && pwd`
2912
2913
2914  if test x"${MISSING+set}" != xset; then
2915  MISSING="\${SHELL} '$am_aux_dir/missing'"
2916fi
2917# Use eval to expand $SHELL
2918if eval "$MISSING --is-lightweight"; then
2919  am_missing_run="$MISSING "
2920else
2921  am_missing_run=
2922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2923printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2924fi
2925
2926if test x"${install_sh+set}" != xset; then
2927  case $am_aux_dir in
2928  *\ * | *\	*)
2929    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2930  *)
2931    install_sh="\${SHELL} $am_aux_dir/install-sh"
2932  esac
2933fi
2934
2935# Installed binaries are usually stripped using 'strip' when the user
2936# run "make install-strip".  However 'strip' might not be the right
2937# tool to use in cross-compilation environments, therefore Automake
2938# will honor the 'STRIP' environment variable to overrule this program.
2939if test "$cross_compiling" != no; then
2940  if test -n "$ac_tool_prefix"; then
2941  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2942set dummy ${ac_tool_prefix}strip; ac_word=$2
2943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944printf %s "checking for $ac_word... " >&6; }
2945if test ${ac_cv_prog_STRIP+y}
2946then :
2947  printf %s "(cached) " >&6
2948else $as_nop
2949  if test -n "$STRIP"; then
2950  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2951else
2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955  IFS=$as_save_IFS
2956  case $as_dir in #(((
2957    '') as_dir=./ ;;
2958    */) ;;
2959    *) as_dir=$as_dir/ ;;
2960  esac
2961    for ac_exec_ext in '' $ac_executable_extensions; do
2962  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2963    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2964    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2965    break 2
2966  fi
2967done
2968  done
2969IFS=$as_save_IFS
2970
2971fi
2972fi
2973STRIP=$ac_cv_prog_STRIP
2974if test -n "$STRIP"; then
2975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2976printf "%s\n" "$STRIP" >&6; }
2977else
2978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979printf "%s\n" "no" >&6; }
2980fi
2981
2982
2983fi
2984if test -z "$ac_cv_prog_STRIP"; then
2985  ac_ct_STRIP=$STRIP
2986  # Extract the first word of "strip", so it can be a program name with args.
2987set dummy strip; ac_word=$2
2988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989printf %s "checking for $ac_word... " >&6; }
2990if test ${ac_cv_prog_ac_ct_STRIP+y}
2991then :
2992  printf %s "(cached) " >&6
2993else $as_nop
2994  if test -n "$ac_ct_STRIP"; then
2995  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2996else
2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998for as_dir in $PATH
2999do
3000  IFS=$as_save_IFS
3001  case $as_dir in #(((
3002    '') as_dir=./ ;;
3003    */) ;;
3004    *) as_dir=$as_dir/ ;;
3005  esac
3006    for ac_exec_ext in '' $ac_executable_extensions; do
3007  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3008    ac_cv_prog_ac_ct_STRIP="strip"
3009    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3010    break 2
3011  fi
3012done
3013  done
3014IFS=$as_save_IFS
3015
3016fi
3017fi
3018ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3019if test -n "$ac_ct_STRIP"; then
3020  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3021printf "%s\n" "$ac_ct_STRIP" >&6; }
3022else
3023  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024printf "%s\n" "no" >&6; }
3025fi
3026
3027  if test "x$ac_ct_STRIP" = x; then
3028    STRIP=":"
3029  else
3030    case $cross_compiling:$ac_tool_warned in
3031yes:)
3032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3033printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3034ac_tool_warned=yes ;;
3035esac
3036    STRIP=$ac_ct_STRIP
3037  fi
3038else
3039  STRIP="$ac_cv_prog_STRIP"
3040fi
3041
3042fi
3043INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3044
3045
3046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3047printf %s "checking for a race-free mkdir -p... " >&6; }
3048if test -z "$MKDIR_P"; then
3049  if test ${ac_cv_path_mkdir+y}
3050then :
3051  printf %s "(cached) " >&6
3052else $as_nop
3053  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3055do
3056  IFS=$as_save_IFS
3057  case $as_dir in #(((
3058    '') as_dir=./ ;;
3059    */) ;;
3060    *) as_dir=$as_dir/ ;;
3061  esac
3062    for ac_prog in mkdir gmkdir; do
3063	 for ac_exec_ext in '' $ac_executable_extensions; do
3064	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3065	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3066	     'mkdir ('*'coreutils) '* | \
3067	     'BusyBox '* | \
3068	     'mkdir (fileutils) '4.1*)
3069	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3070	       break 3;;
3071	   esac
3072	 done
3073       done
3074  done
3075IFS=$as_save_IFS
3076
3077fi
3078
3079  test -d ./--version && rmdir ./--version
3080  if test ${ac_cv_path_mkdir+y}; then
3081    MKDIR_P="$ac_cv_path_mkdir -p"
3082  else
3083    # As a last resort, use the slow shell script.  Don't cache a
3084    # value for MKDIR_P within a source directory, because that will
3085    # break other packages using the cache if that directory is
3086    # removed, or if the value is a relative name.
3087    MKDIR_P="$ac_install_sh -d"
3088  fi
3089fi
3090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3091printf "%s\n" "$MKDIR_P" >&6; }
3092
3093for ac_prog in gawk mawk nawk awk
3094do
3095  # Extract the first word of "$ac_prog", so it can be a program name with args.
3096set dummy $ac_prog; ac_word=$2
3097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098printf %s "checking for $ac_word... " >&6; }
3099if test ${ac_cv_prog_AWK+y}
3100then :
3101  printf %s "(cached) " >&6
3102else $as_nop
3103  if test -n "$AWK"; then
3104  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3105else
3106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107for as_dir in $PATH
3108do
3109  IFS=$as_save_IFS
3110  case $as_dir in #(((
3111    '') as_dir=./ ;;
3112    */) ;;
3113    *) as_dir=$as_dir/ ;;
3114  esac
3115    for ac_exec_ext in '' $ac_executable_extensions; do
3116  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3117    ac_cv_prog_AWK="$ac_prog"
3118    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3119    break 2
3120  fi
3121done
3122  done
3123IFS=$as_save_IFS
3124
3125fi
3126fi
3127AWK=$ac_cv_prog_AWK
3128if test -n "$AWK"; then
3129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3130printf "%s\n" "$AWK" >&6; }
3131else
3132  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133printf "%s\n" "no" >&6; }
3134fi
3135
3136
3137  test -n "$AWK" && break
3138done
3139
3140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3141printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3142set x ${MAKE-make}
3143ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3144if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3145then :
3146  printf %s "(cached) " >&6
3147else $as_nop
3148  cat >conftest.make <<\_ACEOF
3149SHELL = /bin/sh
3150all:
3151	@echo '@@@%%%=$(MAKE)=@@@%%%'
3152_ACEOF
3153# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3154case `${MAKE-make} -f conftest.make 2>/dev/null` in
3155  *@@@%%%=?*=@@@%%%*)
3156    eval ac_cv_prog_make_${ac_make}_set=yes;;
3157  *)
3158    eval ac_cv_prog_make_${ac_make}_set=no;;
3159esac
3160rm -f conftest.make
3161fi
3162if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3164printf "%s\n" "yes" >&6; }
3165  SET_MAKE=
3166else
3167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168printf "%s\n" "no" >&6; }
3169  SET_MAKE="MAKE=${MAKE-make}"
3170fi
3171
3172rm -rf .tst 2>/dev/null
3173mkdir .tst 2>/dev/null
3174if test -d .tst; then
3175  am__leading_dot=.
3176else
3177  am__leading_dot=_
3178fi
3179rmdir .tst 2>/dev/null
3180
3181# Check whether --enable-silent-rules was given.
3182if test ${enable_silent_rules+y}
3183then :
3184  enableval=$enable_silent_rules;
3185fi
3186
3187case $enable_silent_rules in # (((
3188  yes) AM_DEFAULT_VERBOSITY=0;;
3189   no) AM_DEFAULT_VERBOSITY=1;;
3190    *) AM_DEFAULT_VERBOSITY=1;;
3191esac
3192am_make=${MAKE-make}
3193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3194printf %s "checking whether $am_make supports nested variables... " >&6; }
3195if test ${am_cv_make_support_nested_variables+y}
3196then :
3197  printf %s "(cached) " >&6
3198else $as_nop
3199  if printf "%s\n" 'TRUE=$(BAR$(V))
3200BAR0=false
3201BAR1=true
3202V=1
3203am__doit:
3204	@$(TRUE)
3205.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3206  am_cv_make_support_nested_variables=yes
3207else
3208  am_cv_make_support_nested_variables=no
3209fi
3210fi
3211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3212printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3213if test $am_cv_make_support_nested_variables = yes; then
3214    AM_V='$(V)'
3215  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3216else
3217  AM_V=$AM_DEFAULT_VERBOSITY
3218  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3219fi
3220AM_BACKSLASH='\'
3221
3222if test "`cd $srcdir && pwd`" != "`pwd`"; then
3223  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3224  # is not polluted with repeated "-I."
3225  am__isrc=' -I$(srcdir)'
3226  # test to see if srcdir already configured
3227  if test -f $srcdir/config.status; then
3228    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3229  fi
3230fi
3231
3232# test whether we have cygpath
3233if test -z "$CYGPATH_W"; then
3234  if (cygpath --version) >/dev/null 2>/dev/null; then
3235    CYGPATH_W='cygpath -w'
3236  else
3237    CYGPATH_W=echo
3238  fi
3239fi
3240
3241
3242# Define the identity of the package.
3243 PACKAGE='etherape'
3244 VERSION='0.9.20'
3245
3246
3247printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3248
3249
3250printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3251
3252# Some tools Automake needs.
3253
3254ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3255
3256
3257AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3258
3259
3260AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3261
3262
3263AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3264
3265
3266MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3267
3268# For better backward compatibility.  To be removed once Automake 1.9.x
3269# dies out for good.  For more background, see:
3270# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3271# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3272mkdir_p='$(MKDIR_P)'
3273
3274# We need awk for the "check" target (and possibly the TAP driver).  The
3275# system "awk" is bad on some platforms.
3276# Always define AMTAR for backward compatibility.  Yes, it's still used
3277# in the wild :-(  We should find a proper way to deprecate it ...
3278AMTAR='$${TAR-tar}'
3279
3280
3281# We'll loop over all known methods to create a tar archive until one works.
3282_am_tools='gnutar  pax cpio none'
3283
3284am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3285
3286
3287
3288
3289
3290
3291# POSIX will say in a future version that running "rm -f" with no argument
3292# is OK; and we want to be able to make that assumption in our Makefile
3293# recipes.  So use an aggressive probe to check that the usage we want is
3294# actually supported "in the wild" to an acceptable degree.
3295# See automake bug#10828.
3296# To make any issue more visible, cause the running configure to be aborted
3297# by default if the 'rm' program in use doesn't match our expectations; the
3298# user can still override this though.
3299if rm -f && rm -fr && rm -rf; then : OK; else
3300  cat >&2 <<'END'
3301Oops!
3302
3303Your 'rm' program seems unable to run without file operands specified
3304on the command line, even when the '-f' option is present.  This is contrary
3305to the behaviour of most rm programs out there, and not conforming with
3306the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3307
3308Please tell bug-automake@gnu.org about your system, including the value
3309of your $PATH and any error possibly output before this message.  This
3310can help us improve future automake versions.
3311
3312END
3313  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3314    echo 'Configuration will proceed anyway, since you have set the' >&2
3315    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3316    echo >&2
3317  else
3318    cat >&2 <<'END'
3319Aborting the configuration process, to ensure you take notice of the issue.
3320
3321You can download and install GNU coreutils to get an 'rm' implementation
3322that behaves properly: <https://www.gnu.org/software/coreutils/>.
3323
3324If you want to complete the configuration process using your problematic
3325'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3326to "yes", and re-run configure.
3327
3328END
3329    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3330  fi
3331fi
3332
3333
3334# defines
3335
3336printf "%s\n" "#define HAVE_CATGETS /**/" >>confdefs.h
3337
3338
3339printf "%s\n" "#define GETTEXT_PACKAGE /**/" >>confdefs.h
3340
3341
3342printf "%s\n" "#define HAVE_LIBSM /**/" >>confdefs.h
3343
3344
3345printf "%s\n" "#define HAVE_LIBPCAP /**/" >>confdefs.h
3346
3347
3348printf "%s\n" "#define HAVE_U_INT /**/" >>confdefs.h
3349
3350
3351# Checks for programs.
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361ac_ext=c
3362ac_cpp='$CPP $CPPFLAGS'
3363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366if test -n "$ac_tool_prefix"; then
3367  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3368set dummy ${ac_tool_prefix}gcc; ac_word=$2
3369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370printf %s "checking for $ac_word... " >&6; }
3371if test ${ac_cv_prog_CC+y}
3372then :
3373  printf %s "(cached) " >&6
3374else $as_nop
3375  if test -n "$CC"; then
3376  ac_cv_prog_CC="$CC" # Let the user override the test.
3377else
3378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379for as_dir in $PATH
3380do
3381  IFS=$as_save_IFS
3382  case $as_dir in #(((
3383    '') as_dir=./ ;;
3384    */) ;;
3385    *) as_dir=$as_dir/ ;;
3386  esac
3387    for ac_exec_ext in '' $ac_executable_extensions; do
3388  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3389    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3390    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3391    break 2
3392  fi
3393done
3394  done
3395IFS=$as_save_IFS
3396
3397fi
3398fi
3399CC=$ac_cv_prog_CC
3400if test -n "$CC"; then
3401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3402printf "%s\n" "$CC" >&6; }
3403else
3404  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405printf "%s\n" "no" >&6; }
3406fi
3407
3408
3409fi
3410if test -z "$ac_cv_prog_CC"; then
3411  ac_ct_CC=$CC
3412  # Extract the first word of "gcc", so it can be a program name with args.
3413set dummy gcc; ac_word=$2
3414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415printf %s "checking for $ac_word... " >&6; }
3416if test ${ac_cv_prog_ac_ct_CC+y}
3417then :
3418  printf %s "(cached) " >&6
3419else $as_nop
3420  if test -n "$ac_ct_CC"; then
3421  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3422else
3423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424for as_dir in $PATH
3425do
3426  IFS=$as_save_IFS
3427  case $as_dir in #(((
3428    '') as_dir=./ ;;
3429    */) ;;
3430    *) as_dir=$as_dir/ ;;
3431  esac
3432    for ac_exec_ext in '' $ac_executable_extensions; do
3433  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3434    ac_cv_prog_ac_ct_CC="gcc"
3435    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3436    break 2
3437  fi
3438done
3439  done
3440IFS=$as_save_IFS
3441
3442fi
3443fi
3444ac_ct_CC=$ac_cv_prog_ac_ct_CC
3445if test -n "$ac_ct_CC"; then
3446  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3447printf "%s\n" "$ac_ct_CC" >&6; }
3448else
3449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450printf "%s\n" "no" >&6; }
3451fi
3452
3453  if test "x$ac_ct_CC" = x; then
3454    CC=""
3455  else
3456    case $cross_compiling:$ac_tool_warned in
3457yes:)
3458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3459printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3460ac_tool_warned=yes ;;
3461esac
3462    CC=$ac_ct_CC
3463  fi
3464else
3465  CC="$ac_cv_prog_CC"
3466fi
3467
3468if test -z "$CC"; then
3469          if test -n "$ac_tool_prefix"; then
3470    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3471set dummy ${ac_tool_prefix}cc; ac_word=$2
3472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473printf %s "checking for $ac_word... " >&6; }
3474if test ${ac_cv_prog_CC+y}
3475then :
3476  printf %s "(cached) " >&6
3477else $as_nop
3478  if test -n "$CC"; then
3479  ac_cv_prog_CC="$CC" # Let the user override the test.
3480else
3481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482for as_dir in $PATH
3483do
3484  IFS=$as_save_IFS
3485  case $as_dir in #(((
3486    '') as_dir=./ ;;
3487    */) ;;
3488    *) as_dir=$as_dir/ ;;
3489  esac
3490    for ac_exec_ext in '' $ac_executable_extensions; do
3491  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3492    ac_cv_prog_CC="${ac_tool_prefix}cc"
3493    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3494    break 2
3495  fi
3496done
3497  done
3498IFS=$as_save_IFS
3499
3500fi
3501fi
3502CC=$ac_cv_prog_CC
3503if test -n "$CC"; then
3504  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3505printf "%s\n" "$CC" >&6; }
3506else
3507  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508printf "%s\n" "no" >&6; }
3509fi
3510
3511
3512  fi
3513fi
3514if test -z "$CC"; then
3515  # Extract the first word of "cc", so it can be a program name with args.
3516set dummy cc; ac_word=$2
3517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518printf %s "checking for $ac_word... " >&6; }
3519if test ${ac_cv_prog_CC+y}
3520then :
3521  printf %s "(cached) " >&6
3522else $as_nop
3523  if test -n "$CC"; then
3524  ac_cv_prog_CC="$CC" # Let the user override the test.
3525else
3526  ac_prog_rejected=no
3527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528for as_dir in $PATH
3529do
3530  IFS=$as_save_IFS
3531  case $as_dir in #(((
3532    '') as_dir=./ ;;
3533    */) ;;
3534    *) as_dir=$as_dir/ ;;
3535  esac
3536    for ac_exec_ext in '' $ac_executable_extensions; do
3537  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3538    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3539       ac_prog_rejected=yes
3540       continue
3541     fi
3542    ac_cv_prog_CC="cc"
3543    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3544    break 2
3545  fi
3546done
3547  done
3548IFS=$as_save_IFS
3549
3550if test $ac_prog_rejected = yes; then
3551  # We found a bogon in the path, so make sure we never use it.
3552  set dummy $ac_cv_prog_CC
3553  shift
3554  if test $# != 0; then
3555    # We chose a different compiler from the bogus one.
3556    # However, it has the same basename, so the bogon will be chosen
3557    # first if we set CC to just the basename; use the full file name.
3558    shift
3559    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3560  fi
3561fi
3562fi
3563fi
3564CC=$ac_cv_prog_CC
3565if test -n "$CC"; then
3566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567printf "%s\n" "$CC" >&6; }
3568else
3569  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570printf "%s\n" "no" >&6; }
3571fi
3572
3573
3574fi
3575if test -z "$CC"; then
3576  if test -n "$ac_tool_prefix"; then
3577  for ac_prog in cl.exe
3578  do
3579    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3580set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582printf %s "checking for $ac_word... " >&6; }
3583if test ${ac_cv_prog_CC+y}
3584then :
3585  printf %s "(cached) " >&6
3586else $as_nop
3587  if test -n "$CC"; then
3588  ac_cv_prog_CC="$CC" # Let the user override the test.
3589else
3590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591for as_dir in $PATH
3592do
3593  IFS=$as_save_IFS
3594  case $as_dir in #(((
3595    '') as_dir=./ ;;
3596    */) ;;
3597    *) as_dir=$as_dir/ ;;
3598  esac
3599    for ac_exec_ext in '' $ac_executable_extensions; do
3600  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3601    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3602    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3603    break 2
3604  fi
3605done
3606  done
3607IFS=$as_save_IFS
3608
3609fi
3610fi
3611CC=$ac_cv_prog_CC
3612if test -n "$CC"; then
3613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614printf "%s\n" "$CC" >&6; }
3615else
3616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617printf "%s\n" "no" >&6; }
3618fi
3619
3620
3621    test -n "$CC" && break
3622  done
3623fi
3624if test -z "$CC"; then
3625  ac_ct_CC=$CC
3626  for ac_prog in cl.exe
3627do
3628  # Extract the first word of "$ac_prog", so it can be a program name with args.
3629set dummy $ac_prog; ac_word=$2
3630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631printf %s "checking for $ac_word... " >&6; }
3632if test ${ac_cv_prog_ac_ct_CC+y}
3633then :
3634  printf %s "(cached) " >&6
3635else $as_nop
3636  if test -n "$ac_ct_CC"; then
3637  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3638else
3639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640for as_dir in $PATH
3641do
3642  IFS=$as_save_IFS
3643  case $as_dir in #(((
3644    '') as_dir=./ ;;
3645    */) ;;
3646    *) as_dir=$as_dir/ ;;
3647  esac
3648    for ac_exec_ext in '' $ac_executable_extensions; do
3649  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3650    ac_cv_prog_ac_ct_CC="$ac_prog"
3651    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3652    break 2
3653  fi
3654done
3655  done
3656IFS=$as_save_IFS
3657
3658fi
3659fi
3660ac_ct_CC=$ac_cv_prog_ac_ct_CC
3661if test -n "$ac_ct_CC"; then
3662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3663printf "%s\n" "$ac_ct_CC" >&6; }
3664else
3665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666printf "%s\n" "no" >&6; }
3667fi
3668
3669
3670  test -n "$ac_ct_CC" && break
3671done
3672
3673  if test "x$ac_ct_CC" = x; then
3674    CC=""
3675  else
3676    case $cross_compiling:$ac_tool_warned in
3677yes:)
3678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3679printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3680ac_tool_warned=yes ;;
3681esac
3682    CC=$ac_ct_CC
3683  fi
3684fi
3685
3686fi
3687if test -z "$CC"; then
3688  if test -n "$ac_tool_prefix"; then
3689  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3690set dummy ${ac_tool_prefix}clang; ac_word=$2
3691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692printf %s "checking for $ac_word... " >&6; }
3693if test ${ac_cv_prog_CC+y}
3694then :
3695  printf %s "(cached) " >&6
3696else $as_nop
3697  if test -n "$CC"; then
3698  ac_cv_prog_CC="$CC" # Let the user override the test.
3699else
3700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701for as_dir in $PATH
3702do
3703  IFS=$as_save_IFS
3704  case $as_dir in #(((
3705    '') as_dir=./ ;;
3706    */) ;;
3707    *) as_dir=$as_dir/ ;;
3708  esac
3709    for ac_exec_ext in '' $ac_executable_extensions; do
3710  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3711    ac_cv_prog_CC="${ac_tool_prefix}clang"
3712    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3713    break 2
3714  fi
3715done
3716  done
3717IFS=$as_save_IFS
3718
3719fi
3720fi
3721CC=$ac_cv_prog_CC
3722if test -n "$CC"; then
3723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3724printf "%s\n" "$CC" >&6; }
3725else
3726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727printf "%s\n" "no" >&6; }
3728fi
3729
3730
3731fi
3732if test -z "$ac_cv_prog_CC"; then
3733  ac_ct_CC=$CC
3734  # Extract the first word of "clang", so it can be a program name with args.
3735set dummy clang; ac_word=$2
3736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737printf %s "checking for $ac_word... " >&6; }
3738if test ${ac_cv_prog_ac_ct_CC+y}
3739then :
3740  printf %s "(cached) " >&6
3741else $as_nop
3742  if test -n "$ac_ct_CC"; then
3743  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3744else
3745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746for as_dir in $PATH
3747do
3748  IFS=$as_save_IFS
3749  case $as_dir in #(((
3750    '') as_dir=./ ;;
3751    */) ;;
3752    *) as_dir=$as_dir/ ;;
3753  esac
3754    for ac_exec_ext in '' $ac_executable_extensions; do
3755  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3756    ac_cv_prog_ac_ct_CC="clang"
3757    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3758    break 2
3759  fi
3760done
3761  done
3762IFS=$as_save_IFS
3763
3764fi
3765fi
3766ac_ct_CC=$ac_cv_prog_ac_ct_CC
3767if test -n "$ac_ct_CC"; then
3768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3769printf "%s\n" "$ac_ct_CC" >&6; }
3770else
3771  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772printf "%s\n" "no" >&6; }
3773fi
3774
3775  if test "x$ac_ct_CC" = x; then
3776    CC=""
3777  else
3778    case $cross_compiling:$ac_tool_warned in
3779yes:)
3780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3781printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3782ac_tool_warned=yes ;;
3783esac
3784    CC=$ac_ct_CC
3785  fi
3786else
3787  CC="$ac_cv_prog_CC"
3788fi
3789
3790fi
3791
3792
3793test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3794printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3795as_fn_error $? "no acceptable C compiler found in \$PATH
3796See \`config.log' for more details" "$LINENO" 5; }
3797
3798# Provide some information about the compiler.
3799printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3800set X $ac_compile
3801ac_compiler=$2
3802for ac_option in --version -v -V -qversion -version; do
3803  { { ac_try="$ac_compiler $ac_option >&5"
3804case "(($ac_try" in
3805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806  *) ac_try_echo=$ac_try;;
3807esac
3808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809printf "%s\n" "$ac_try_echo"; } >&5
3810  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3811  ac_status=$?
3812  if test -s conftest.err; then
3813    sed '10a\
3814... rest of stderr output deleted ...
3815         10q' conftest.err >conftest.er1
3816    cat conftest.er1 >&5
3817  fi
3818  rm -f conftest.er1 conftest.err
3819  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820  test $ac_status = 0; }
3821done
3822
3823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824/* end confdefs.h.  */
3825
3826int
3827main (void)
3828{
3829
3830  ;
3831  return 0;
3832}
3833_ACEOF
3834ac_clean_files_save=$ac_clean_files
3835ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3836# Try to create an executable without -o first, disregard a.out.
3837# It will help us diagnose broken compilers, and finding out an intuition
3838# of exeext.
3839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3840printf %s "checking whether the C compiler works... " >&6; }
3841ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3842
3843# The possible output files:
3844ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3845
3846ac_rmfiles=
3847for ac_file in $ac_files
3848do
3849  case $ac_file in
3850    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3851    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3852  esac
3853done
3854rm -f $ac_rmfiles
3855
3856if { { ac_try="$ac_link_default"
3857case "(($ac_try" in
3858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859  *) ac_try_echo=$ac_try;;
3860esac
3861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862printf "%s\n" "$ac_try_echo"; } >&5
3863  (eval "$ac_link_default") 2>&5
3864  ac_status=$?
3865  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866  test $ac_status = 0; }
3867then :
3868  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3869# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3870# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3871# so that the user can short-circuit this test for compilers unknown to
3872# Autoconf.
3873for ac_file in $ac_files ''
3874do
3875  test -f "$ac_file" || continue
3876  case $ac_file in
3877    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3878	;;
3879    [ab].out )
3880	# We found the default executable, but exeext='' is most
3881	# certainly right.
3882	break;;
3883    *.* )
3884	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3885	then :; else
3886	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3887	fi
3888	# We set ac_cv_exeext here because the later test for it is not
3889	# safe: cross compilers may not add the suffix if given an `-o'
3890	# argument, so we may need to know it at that point already.
3891	# Even if this section looks crufty: it has the advantage of
3892	# actually working.
3893	break;;
3894    * )
3895	break;;
3896  esac
3897done
3898test "$ac_cv_exeext" = no && ac_cv_exeext=
3899
3900else $as_nop
3901  ac_file=''
3902fi
3903if test -z "$ac_file"
3904then :
3905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906printf "%s\n" "no" >&6; }
3907printf "%s\n" "$as_me: failed program was:" >&5
3908sed 's/^/| /' conftest.$ac_ext >&5
3909
3910{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3912as_fn_error 77 "C compiler cannot create executables
3913See \`config.log' for more details" "$LINENO" 5; }
3914else $as_nop
3915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3916printf "%s\n" "yes" >&6; }
3917fi
3918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3919printf %s "checking for C compiler default output file name... " >&6; }
3920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3921printf "%s\n" "$ac_file" >&6; }
3922ac_exeext=$ac_cv_exeext
3923
3924rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3925ac_clean_files=$ac_clean_files_save
3926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3927printf %s "checking for suffix of executables... " >&6; }
3928if { { ac_try="$ac_link"
3929case "(($ac_try" in
3930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931  *) ac_try_echo=$ac_try;;
3932esac
3933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934printf "%s\n" "$ac_try_echo"; } >&5
3935  (eval "$ac_link") 2>&5
3936  ac_status=$?
3937  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3938  test $ac_status = 0; }
3939then :
3940  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3941# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3942# work properly (i.e., refer to `conftest.exe'), while it won't with
3943# `rm'.
3944for ac_file in conftest.exe conftest conftest.*; do
3945  test -f "$ac_file" || continue
3946  case $ac_file in
3947    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3948    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3949	  break;;
3950    * ) break;;
3951  esac
3952done
3953else $as_nop
3954  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3955printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3956as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3957See \`config.log' for more details" "$LINENO" 5; }
3958fi
3959rm -f conftest conftest$ac_cv_exeext
3960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3961printf "%s\n" "$ac_cv_exeext" >&6; }
3962
3963rm -f conftest.$ac_ext
3964EXEEXT=$ac_cv_exeext
3965ac_exeext=$EXEEXT
3966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967/* end confdefs.h.  */
3968#include <stdio.h>
3969int
3970main (void)
3971{
3972FILE *f = fopen ("conftest.out", "w");
3973 return ferror (f) || fclose (f) != 0;
3974
3975  ;
3976  return 0;
3977}
3978_ACEOF
3979ac_clean_files="$ac_clean_files conftest.out"
3980# Check that the compiler produces executables we can run.  If not, either
3981# the compiler is broken, or we cross compile.
3982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3983printf %s "checking whether we are cross compiling... " >&6; }
3984if test "$cross_compiling" != yes; then
3985  { { ac_try="$ac_link"
3986case "(($ac_try" in
3987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988  *) ac_try_echo=$ac_try;;
3989esac
3990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3991printf "%s\n" "$ac_try_echo"; } >&5
3992  (eval "$ac_link") 2>&5
3993  ac_status=$?
3994  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995  test $ac_status = 0; }
3996  if { ac_try='./conftest$ac_cv_exeext'
3997  { { case "(($ac_try" in
3998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999  *) ac_try_echo=$ac_try;;
4000esac
4001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4002printf "%s\n" "$ac_try_echo"; } >&5
4003  (eval "$ac_try") 2>&5
4004  ac_status=$?
4005  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4006  test $ac_status = 0; }; }; then
4007    cross_compiling=no
4008  else
4009    if test "$cross_compiling" = maybe; then
4010	cross_compiling=yes
4011    else
4012	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4014as_fn_error 77 "cannot run C compiled programs.
4015If you meant to cross compile, use \`--host'.
4016See \`config.log' for more details" "$LINENO" 5; }
4017    fi
4018  fi
4019fi
4020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4021printf "%s\n" "$cross_compiling" >&6; }
4022
4023rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4024ac_clean_files=$ac_clean_files_save
4025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4026printf %s "checking for suffix of object files... " >&6; }
4027if test ${ac_cv_objext+y}
4028then :
4029  printf %s "(cached) " >&6
4030else $as_nop
4031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032/* end confdefs.h.  */
4033
4034int
4035main (void)
4036{
4037
4038  ;
4039  return 0;
4040}
4041_ACEOF
4042rm -f conftest.o conftest.obj
4043if { { ac_try="$ac_compile"
4044case "(($ac_try" in
4045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046  *) ac_try_echo=$ac_try;;
4047esac
4048eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4049printf "%s\n" "$ac_try_echo"; } >&5
4050  (eval "$ac_compile") 2>&5
4051  ac_status=$?
4052  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053  test $ac_status = 0; }
4054then :
4055  for ac_file in conftest.o conftest.obj conftest.*; do
4056  test -f "$ac_file" || continue;
4057  case $ac_file in
4058    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4059    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4060       break;;
4061  esac
4062done
4063else $as_nop
4064  printf "%s\n" "$as_me: failed program was:" >&5
4065sed 's/^/| /' conftest.$ac_ext >&5
4066
4067{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4068printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4069as_fn_error $? "cannot compute suffix of object files: cannot compile
4070See \`config.log' for more details" "$LINENO" 5; }
4071fi
4072rm -f conftest.$ac_cv_objext conftest.$ac_ext
4073fi
4074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4075printf "%s\n" "$ac_cv_objext" >&6; }
4076OBJEXT=$ac_cv_objext
4077ac_objext=$OBJEXT
4078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4079printf %s "checking whether the compiler supports GNU C... " >&6; }
4080if test ${ac_cv_c_compiler_gnu+y}
4081then :
4082  printf %s "(cached) " >&6
4083else $as_nop
4084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085/* end confdefs.h.  */
4086
4087int
4088main (void)
4089{
4090#ifndef __GNUC__
4091       choke me
4092#endif
4093
4094  ;
4095  return 0;
4096}
4097_ACEOF
4098if ac_fn_c_try_compile "$LINENO"
4099then :
4100  ac_compiler_gnu=yes
4101else $as_nop
4102  ac_compiler_gnu=no
4103fi
4104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4105ac_cv_c_compiler_gnu=$ac_compiler_gnu
4106
4107fi
4108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4109printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4110ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111
4112if test $ac_compiler_gnu = yes; then
4113  GCC=yes
4114else
4115  GCC=
4116fi
4117ac_test_CFLAGS=${CFLAGS+y}
4118ac_save_CFLAGS=$CFLAGS
4119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4120printf %s "checking whether $CC accepts -g... " >&6; }
4121if test ${ac_cv_prog_cc_g+y}
4122then :
4123  printf %s "(cached) " >&6
4124else $as_nop
4125  ac_save_c_werror_flag=$ac_c_werror_flag
4126   ac_c_werror_flag=yes
4127   ac_cv_prog_cc_g=no
4128   CFLAGS="-g"
4129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130/* end confdefs.h.  */
4131
4132int
4133main (void)
4134{
4135
4136  ;
4137  return 0;
4138}
4139_ACEOF
4140if ac_fn_c_try_compile "$LINENO"
4141then :
4142  ac_cv_prog_cc_g=yes
4143else $as_nop
4144  CFLAGS=""
4145      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146/* end confdefs.h.  */
4147
4148int
4149main (void)
4150{
4151
4152  ;
4153  return 0;
4154}
4155_ACEOF
4156if ac_fn_c_try_compile "$LINENO"
4157then :
4158
4159else $as_nop
4160  ac_c_werror_flag=$ac_save_c_werror_flag
4161	 CFLAGS="-g"
4162	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163/* end confdefs.h.  */
4164
4165int
4166main (void)
4167{
4168
4169  ;
4170  return 0;
4171}
4172_ACEOF
4173if ac_fn_c_try_compile "$LINENO"
4174then :
4175  ac_cv_prog_cc_g=yes
4176fi
4177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4178fi
4179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4180fi
4181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4182   ac_c_werror_flag=$ac_save_c_werror_flag
4183fi
4184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4185printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4186if test $ac_test_CFLAGS; then
4187  CFLAGS=$ac_save_CFLAGS
4188elif test $ac_cv_prog_cc_g = yes; then
4189  if test "$GCC" = yes; then
4190    CFLAGS="-g -O2"
4191  else
4192    CFLAGS="-g"
4193  fi
4194else
4195  if test "$GCC" = yes; then
4196    CFLAGS="-O2"
4197  else
4198    CFLAGS=
4199  fi
4200fi
4201ac_prog_cc_stdc=no
4202if test x$ac_prog_cc_stdc = xno
4203then :
4204  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4205printf %s "checking for $CC option to enable C11 features... " >&6; }
4206if test ${ac_cv_prog_cc_c11+y}
4207then :
4208  printf %s "(cached) " >&6
4209else $as_nop
4210  ac_cv_prog_cc_c11=no
4211ac_save_CC=$CC
4212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213/* end confdefs.h.  */
4214$ac_c_conftest_c11_program
4215_ACEOF
4216for ac_arg in '' -std=gnu11
4217do
4218  CC="$ac_save_CC $ac_arg"
4219  if ac_fn_c_try_compile "$LINENO"
4220then :
4221  ac_cv_prog_cc_c11=$ac_arg
4222fi
4223rm -f core conftest.err conftest.$ac_objext conftest.beam
4224  test "x$ac_cv_prog_cc_c11" != "xno" && break
4225done
4226rm -f conftest.$ac_ext
4227CC=$ac_save_CC
4228fi
4229
4230if test "x$ac_cv_prog_cc_c11" = xno
4231then :
4232  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4233printf "%s\n" "unsupported" >&6; }
4234else $as_nop
4235  if test "x$ac_cv_prog_cc_c11" = x
4236then :
4237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4238printf "%s\n" "none needed" >&6; }
4239else $as_nop
4240  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4241printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4242     CC="$CC $ac_cv_prog_cc_c11"
4243fi
4244  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4245  ac_prog_cc_stdc=c11
4246fi
4247fi
4248if test x$ac_prog_cc_stdc = xno
4249then :
4250  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4251printf %s "checking for $CC option to enable C99 features... " >&6; }
4252if test ${ac_cv_prog_cc_c99+y}
4253then :
4254  printf %s "(cached) " >&6
4255else $as_nop
4256  ac_cv_prog_cc_c99=no
4257ac_save_CC=$CC
4258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259/* end confdefs.h.  */
4260$ac_c_conftest_c99_program
4261_ACEOF
4262for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4263do
4264  CC="$ac_save_CC $ac_arg"
4265  if ac_fn_c_try_compile "$LINENO"
4266then :
4267  ac_cv_prog_cc_c99=$ac_arg
4268fi
4269rm -f core conftest.err conftest.$ac_objext conftest.beam
4270  test "x$ac_cv_prog_cc_c99" != "xno" && break
4271done
4272rm -f conftest.$ac_ext
4273CC=$ac_save_CC
4274fi
4275
4276if test "x$ac_cv_prog_cc_c99" = xno
4277then :
4278  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4279printf "%s\n" "unsupported" >&6; }
4280else $as_nop
4281  if test "x$ac_cv_prog_cc_c99" = x
4282then :
4283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4284printf "%s\n" "none needed" >&6; }
4285else $as_nop
4286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4287printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4288     CC="$CC $ac_cv_prog_cc_c99"
4289fi
4290  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4291  ac_prog_cc_stdc=c99
4292fi
4293fi
4294if test x$ac_prog_cc_stdc = xno
4295then :
4296  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4297printf %s "checking for $CC option to enable C89 features... " >&6; }
4298if test ${ac_cv_prog_cc_c89+y}
4299then :
4300  printf %s "(cached) " >&6
4301else $as_nop
4302  ac_cv_prog_cc_c89=no
4303ac_save_CC=$CC
4304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305/* end confdefs.h.  */
4306$ac_c_conftest_c89_program
4307_ACEOF
4308for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4309do
4310  CC="$ac_save_CC $ac_arg"
4311  if ac_fn_c_try_compile "$LINENO"
4312then :
4313  ac_cv_prog_cc_c89=$ac_arg
4314fi
4315rm -f core conftest.err conftest.$ac_objext conftest.beam
4316  test "x$ac_cv_prog_cc_c89" != "xno" && break
4317done
4318rm -f conftest.$ac_ext
4319CC=$ac_save_CC
4320fi
4321
4322if test "x$ac_cv_prog_cc_c89" = xno
4323then :
4324  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4325printf "%s\n" "unsupported" >&6; }
4326else $as_nop
4327  if test "x$ac_cv_prog_cc_c89" = x
4328then :
4329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4330printf "%s\n" "none needed" >&6; }
4331else $as_nop
4332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4333printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4334     CC="$CC $ac_cv_prog_cc_c89"
4335fi
4336  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4337  ac_prog_cc_stdc=c89
4338fi
4339fi
4340
4341ac_ext=c
4342ac_cpp='$CPP $CPPFLAGS'
4343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346
4347
4348  ac_ext=c
4349ac_cpp='$CPP $CPPFLAGS'
4350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352ac_compiler_gnu=$ac_cv_c_compiler_gnu
4353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4354printf %s "checking whether $CC understands -c and -o together... " >&6; }
4355if test ${am_cv_prog_cc_c_o+y}
4356then :
4357  printf %s "(cached) " >&6
4358else $as_nop
4359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360/* end confdefs.h.  */
4361
4362int
4363main (void)
4364{
4365
4366  ;
4367  return 0;
4368}
4369_ACEOF
4370  # Make sure it works both with $CC and with simple cc.
4371  # Following AC_PROG_CC_C_O, we do the test twice because some
4372  # compilers refuse to overwrite an existing .o file with -o,
4373  # though they will create one.
4374  am_cv_prog_cc_c_o=yes
4375  for am_i in 1 2; do
4376    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4377   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4378   ac_status=$?
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); } \
4381         && test -f conftest2.$ac_objext; then
4382      : OK
4383    else
4384      am_cv_prog_cc_c_o=no
4385      break
4386    fi
4387  done
4388  rm -f core conftest*
4389  unset am_i
4390fi
4391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4392printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4393if test "$am_cv_prog_cc_c_o" != yes; then
4394   # Losing compiler, so override with the script.
4395   # FIXME: It is wrong to rewrite CC.
4396   # But if we don't then we get into trouble of one sort or another.
4397   # A longer-term fix would be to have automake use am__CC in this case,
4398   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4399   CC="$am_aux_dir/compile $CC"
4400fi
4401ac_ext=c
4402ac_cpp='$CPP $CPPFLAGS'
4403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406
4407DEPDIR="${am__leading_dot}deps"
4408
4409ac_config_commands="$ac_config_commands depfiles"
4410
4411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4412printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4413cat > confinc.mk << 'END'
4414am__doit:
4415	@echo this is the am__doit target >confinc.out
4416.PHONY: am__doit
4417END
4418am__include="#"
4419am__quote=
4420# BSD make does it like this.
4421echo '.include "confinc.mk" # ignored' > confmf.BSD
4422# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4423echo 'include confinc.mk # ignored' > confmf.GNU
4424_am_result=no
4425for s in GNU BSD; do
4426  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4427   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); }
4431  case $?:`cat confinc.out 2>/dev/null` in #(
4432  '0:this is the am__doit target') :
4433    case $s in #(
4434  BSD) :
4435    am__include='.include' am__quote='"' ;; #(
4436  *) :
4437    am__include='include' am__quote='' ;;
4438esac ;; #(
4439  *) :
4440     ;;
4441esac
4442  if test "$am__include" != "#"; then
4443    _am_result="yes ($s style)"
4444    break
4445  fi
4446done
4447rm -f confinc.* confmf.*
4448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4449printf "%s\n" "${_am_result}" >&6; }
4450
4451# Check whether --enable-dependency-tracking was given.
4452if test ${enable_dependency_tracking+y}
4453then :
4454  enableval=$enable_dependency_tracking;
4455fi
4456
4457if test "x$enable_dependency_tracking" != xno; then
4458  am_depcomp="$ac_aux_dir/depcomp"
4459  AMDEPBACKSLASH='\'
4460  am__nodep='_no'
4461fi
4462 if test "x$enable_dependency_tracking" != xno; then
4463  AMDEP_TRUE=
4464  AMDEP_FALSE='#'
4465else
4466  AMDEP_TRUE='#'
4467  AMDEP_FALSE=
4468fi
4469
4470
4471
4472depcc="$CC"   am_compiler_list=
4473
4474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4475printf %s "checking dependency style of $depcc... " >&6; }
4476if test ${am_cv_CC_dependencies_compiler_type+y}
4477then :
4478  printf %s "(cached) " >&6
4479else $as_nop
4480  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4481  # We make a subdir and do the tests there.  Otherwise we can end up
4482  # making bogus files that we don't know about and never remove.  For
4483  # instance it was reported that on HP-UX the gcc test will end up
4484  # making a dummy file named 'D' -- because '-MD' means "put the output
4485  # in D".
4486  rm -rf conftest.dir
4487  mkdir conftest.dir
4488  # Copy depcomp to subdir because otherwise we won't find it if we're
4489  # using a relative directory.
4490  cp "$am_depcomp" conftest.dir
4491  cd conftest.dir
4492  # We will build objects and dependencies in a subdirectory because
4493  # it helps to detect inapplicable dependency modes.  For instance
4494  # both Tru64's cc and ICC support -MD to output dependencies as a
4495  # side effect of compilation, but ICC will put the dependencies in
4496  # the current directory while Tru64 will put them in the object
4497  # directory.
4498  mkdir sub
4499
4500  am_cv_CC_dependencies_compiler_type=none
4501  if test "$am_compiler_list" = ""; then
4502     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4503  fi
4504  am__universal=false
4505  case " $depcc " in #(
4506     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4507     esac
4508
4509  for depmode in $am_compiler_list; do
4510    # Setup a source with many dependencies, because some compilers
4511    # like to wrap large dependency lists on column 80 (with \), and
4512    # we should not choose a depcomp mode which is confused by this.
4513    #
4514    # We need to recreate these files for each test, as the compiler may
4515    # overwrite some of them when testing with obscure command lines.
4516    # This happens at least with the AIX C compiler.
4517    : > sub/conftest.c
4518    for i in 1 2 3 4 5 6; do
4519      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4520      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4521      # Solaris 10 /bin/sh.
4522      echo '/* dummy */' > sub/conftst$i.h
4523    done
4524    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4525
4526    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4527    # mode.  It turns out that the SunPro C++ compiler does not properly
4528    # handle '-M -o', and we need to detect this.  Also, some Intel
4529    # versions had trouble with output in subdirs.
4530    am__obj=sub/conftest.${OBJEXT-o}
4531    am__minus_obj="-o $am__obj"
4532    case $depmode in
4533    gcc)
4534      # This depmode causes a compiler race in universal mode.
4535      test "$am__universal" = false || continue
4536      ;;
4537    nosideeffect)
4538      # After this tag, mechanisms are not by side-effect, so they'll
4539      # only be used when explicitly requested.
4540      if test "x$enable_dependency_tracking" = xyes; then
4541	continue
4542      else
4543	break
4544      fi
4545      ;;
4546    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4547      # This compiler won't grok '-c -o', but also, the minuso test has
4548      # not run yet.  These depmodes are late enough in the game, and
4549      # so weak that their functioning should not be impacted.
4550      am__obj=conftest.${OBJEXT-o}
4551      am__minus_obj=
4552      ;;
4553    none) break ;;
4554    esac
4555    if depmode=$depmode \
4556       source=sub/conftest.c object=$am__obj \
4557       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4558       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4559         >/dev/null 2>conftest.err &&
4560       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4561       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4562       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4563       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4564      # icc doesn't choke on unknown options, it will just issue warnings
4565      # or remarks (even with -Werror).  So we grep stderr for any message
4566      # that says an option was ignored or not supported.
4567      # When given -MP, icc 7.0 and 7.1 complain thusly:
4568      #   icc: Command line warning: ignoring option '-M'; no argument required
4569      # The diagnosis changed in icc 8.0:
4570      #   icc: Command line remark: option '-MP' not supported
4571      if (grep 'ignoring option' conftest.err ||
4572          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4573        am_cv_CC_dependencies_compiler_type=$depmode
4574        break
4575      fi
4576    fi
4577  done
4578
4579  cd ..
4580  rm -rf conftest.dir
4581else
4582  am_cv_CC_dependencies_compiler_type=none
4583fi
4584
4585fi
4586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4587printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4588CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4589
4590 if
4591  test "x$enable_dependency_tracking" != xno \
4592  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4593  am__fastdepCC_TRUE=
4594  am__fastdepCC_FALSE='#'
4595else
4596  am__fastdepCC_TRUE='#'
4597  am__fastdepCC_FALSE=
4598fi
4599
4600
4601ac_ext=c
4602ac_cpp='$CPP $CPPFLAGS'
4603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605ac_compiler_gnu=$ac_cv_c_compiler_gnu
4606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4607printf %s "checking how to run the C preprocessor... " >&6; }
4608# On Suns, sometimes $CPP names a directory.
4609if test -n "$CPP" && test -d "$CPP"; then
4610  CPP=
4611fi
4612if test -z "$CPP"; then
4613  if test ${ac_cv_prog_CPP+y}
4614then :
4615  printf %s "(cached) " >&6
4616else $as_nop
4617      # Double quotes because $CC needs to be expanded
4618    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4619    do
4620      ac_preproc_ok=false
4621for ac_c_preproc_warn_flag in '' yes
4622do
4623  # Use a header file that comes with gcc, so configuring glibc
4624  # with a fresh cross-compiler works.
4625  # On the NeXT, cc -E runs the code through the compiler's parser,
4626  # not just through cpp. "Syntax error" is here to catch this case.
4627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628/* end confdefs.h.  */
4629#include <limits.h>
4630		     Syntax error
4631_ACEOF
4632if ac_fn_c_try_cpp "$LINENO"
4633then :
4634
4635else $as_nop
4636  # Broken: fails on valid input.
4637continue
4638fi
4639rm -f conftest.err conftest.i conftest.$ac_ext
4640
4641  # OK, works on sane cases.  Now check whether nonexistent headers
4642  # can be detected and how.
4643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644/* end confdefs.h.  */
4645#include <ac_nonexistent.h>
4646_ACEOF
4647if ac_fn_c_try_cpp "$LINENO"
4648then :
4649  # Broken: success on invalid input.
4650continue
4651else $as_nop
4652  # Passes both tests.
4653ac_preproc_ok=:
4654break
4655fi
4656rm -f conftest.err conftest.i conftest.$ac_ext
4657
4658done
4659# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4660rm -f conftest.i conftest.err conftest.$ac_ext
4661if $ac_preproc_ok
4662then :
4663  break
4664fi
4665
4666    done
4667    ac_cv_prog_CPP=$CPP
4668
4669fi
4670  CPP=$ac_cv_prog_CPP
4671else
4672  ac_cv_prog_CPP=$CPP
4673fi
4674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4675printf "%s\n" "$CPP" >&6; }
4676ac_preproc_ok=false
4677for ac_c_preproc_warn_flag in '' yes
4678do
4679  # Use a header file that comes with gcc, so configuring glibc
4680  # with a fresh cross-compiler works.
4681  # On the NeXT, cc -E runs the code through the compiler's parser,
4682  # not just through cpp. "Syntax error" is here to catch this case.
4683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684/* end confdefs.h.  */
4685#include <limits.h>
4686		     Syntax error
4687_ACEOF
4688if ac_fn_c_try_cpp "$LINENO"
4689then :
4690
4691else $as_nop
4692  # Broken: fails on valid input.
4693continue
4694fi
4695rm -f conftest.err conftest.i conftest.$ac_ext
4696
4697  # OK, works on sane cases.  Now check whether nonexistent headers
4698  # can be detected and how.
4699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700/* end confdefs.h.  */
4701#include <ac_nonexistent.h>
4702_ACEOF
4703if ac_fn_c_try_cpp "$LINENO"
4704then :
4705  # Broken: success on invalid input.
4706continue
4707else $as_nop
4708  # Passes both tests.
4709ac_preproc_ok=:
4710break
4711fi
4712rm -f conftest.err conftest.i conftest.$ac_ext
4713
4714done
4715# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4716rm -f conftest.i conftest.err conftest.$ac_ext
4717if $ac_preproc_ok
4718then :
4719
4720else $as_nop
4721  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4722printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4723as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4724See \`config.log' for more details" "$LINENO" 5; }
4725fi
4726
4727ac_ext=c
4728ac_cpp='$CPP $CPPFLAGS'
4729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4731ac_compiler_gnu=$ac_cv_c_compiler_gnu
4732
4733
4734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4735printf %s "checking whether ln -s works... " >&6; }
4736LN_S=$as_ln_s
4737if test "$LN_S" = "ln -s"; then
4738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4739printf "%s\n" "yes" >&6; }
4740else
4741  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4742printf "%s\n" "no, using $LN_S" >&6; }
4743fi
4744
4745
4746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4747printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4748set x ${MAKE-make}
4749ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4750if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4751then :
4752  printf %s "(cached) " >&6
4753else $as_nop
4754  cat >conftest.make <<\_ACEOF
4755SHELL = /bin/sh
4756all:
4757	@echo '@@@%%%=$(MAKE)=@@@%%%'
4758_ACEOF
4759# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4760case `${MAKE-make} -f conftest.make 2>/dev/null` in
4761  *@@@%%%=?*=@@@%%%*)
4762    eval ac_cv_prog_make_${ac_make}_set=yes;;
4763  *)
4764    eval ac_cv_prog_make_${ac_make}_set=no;;
4765esac
4766rm -f conftest.make
4767fi
4768if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4770printf "%s\n" "yes" >&6; }
4771  SET_MAKE=
4772else
4773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774printf "%s\n" "no" >&6; }
4775  SET_MAKE="MAKE=${MAKE-make}"
4776fi
4777
4778case `pwd` in
4779  *\ * | *\	*)
4780    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4781printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4782esac
4783
4784
4785
4786macro_version='2.4.6'
4787macro_revision='2.4.6'
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802ltmain=$ac_aux_dir/ltmain.sh
4803
4804
4805
4806  # Make sure we can run config.sub.
4807$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4808  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4809
4810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4811printf %s "checking build system type... " >&6; }
4812if test ${ac_cv_build+y}
4813then :
4814  printf %s "(cached) " >&6
4815else $as_nop
4816  ac_build_alias=$build_alias
4817test "x$ac_build_alias" = x &&
4818  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4819test "x$ac_build_alias" = x &&
4820  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4821ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4822  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4823
4824fi
4825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4826printf "%s\n" "$ac_cv_build" >&6; }
4827case $ac_cv_build in
4828*-*-*) ;;
4829*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4830esac
4831build=$ac_cv_build
4832ac_save_IFS=$IFS; IFS='-'
4833set x $ac_cv_build
4834shift
4835build_cpu=$1
4836build_vendor=$2
4837shift; shift
4838# Remember, the first character of IFS is used to create $*,
4839# except with old shells:
4840build_os=$*
4841IFS=$ac_save_IFS
4842case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4843
4844
4845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4846printf %s "checking host system type... " >&6; }
4847if test ${ac_cv_host+y}
4848then :
4849  printf %s "(cached) " >&6
4850else $as_nop
4851  if test "x$host_alias" = x; then
4852  ac_cv_host=$ac_cv_build
4853else
4854  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4855    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4856fi
4857
4858fi
4859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4860printf "%s\n" "$ac_cv_host" >&6; }
4861case $ac_cv_host in
4862*-*-*) ;;
4863*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4864esac
4865host=$ac_cv_host
4866ac_save_IFS=$IFS; IFS='-'
4867set x $ac_cv_host
4868shift
4869host_cpu=$1
4870host_vendor=$2
4871shift; shift
4872# Remember, the first character of IFS is used to create $*,
4873# except with old shells:
4874host_os=$*
4875IFS=$ac_save_IFS
4876case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4877
4878
4879# Backslashify metacharacters that are still active within
4880# double-quoted strings.
4881sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4882
4883# Same as above, but do not quote variable references.
4884double_quote_subst='s/\(["`\\]\)/\\\1/g'
4885
4886# Sed substitution to delay expansion of an escaped shell variable in a
4887# double_quote_subst'ed string.
4888delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4889
4890# Sed substitution to delay expansion of an escaped single quote.
4891delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4892
4893# Sed substitution to avoid accidental globbing in evaled expressions
4894no_glob_subst='s/\*/\\\*/g'
4895
4896ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4897ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4898ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4899
4900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4901printf %s "checking how to print strings... " >&6; }
4902# Test print first, because it will be a builtin if present.
4903if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4904   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4905  ECHO='print -r --'
4906elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4907  ECHO='printf %s\n'
4908else
4909  # Use this function as a fallback that always works.
4910  func_fallback_echo ()
4911  {
4912    eval 'cat <<_LTECHO_EOF
4913$1
4914_LTECHO_EOF'
4915  }
4916  ECHO='func_fallback_echo'
4917fi
4918
4919# func_echo_all arg...
4920# Invoke $ECHO with all args, space-separated.
4921func_echo_all ()
4922{
4923    $ECHO ""
4924}
4925
4926case $ECHO in
4927  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4928printf "%s\n" "printf" >&6; } ;;
4929  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4930printf "%s\n" "print -r" >&6; } ;;
4931  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4932printf "%s\n" "cat" >&6; } ;;
4933esac
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4949printf %s "checking for a sed that does not truncate output... " >&6; }
4950if test ${ac_cv_path_SED+y}
4951then :
4952  printf %s "(cached) " >&6
4953else $as_nop
4954            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4955     for ac_i in 1 2 3 4 5 6 7; do
4956       ac_script="$ac_script$as_nl$ac_script"
4957     done
4958     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4959     { ac_script=; unset ac_script;}
4960     if test -z "$SED"; then
4961  ac_path_SED_found=false
4962  # Loop through the user's path and test for each of PROGNAME-LIST
4963  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964for as_dir in $PATH
4965do
4966  IFS=$as_save_IFS
4967  case $as_dir in #(((
4968    '') as_dir=./ ;;
4969    */) ;;
4970    *) as_dir=$as_dir/ ;;
4971  esac
4972    for ac_prog in sed gsed
4973   do
4974    for ac_exec_ext in '' $ac_executable_extensions; do
4975      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4976      as_fn_executable_p "$ac_path_SED" || continue
4977# Check for GNU ac_path_SED and select it if it is found.
4978  # Check for GNU $ac_path_SED
4979case `"$ac_path_SED" --version 2>&1` in
4980*GNU*)
4981  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4982*)
4983  ac_count=0
4984  printf %s 0123456789 >"conftest.in"
4985  while :
4986  do
4987    cat "conftest.in" "conftest.in" >"conftest.tmp"
4988    mv "conftest.tmp" "conftest.in"
4989    cp "conftest.in" "conftest.nl"
4990    printf "%s\n" '' >> "conftest.nl"
4991    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4992    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4993    as_fn_arith $ac_count + 1 && ac_count=$as_val
4994    if test $ac_count -gt ${ac_path_SED_max-0}; then
4995      # Best one so far, save it but keep looking for a better one
4996      ac_cv_path_SED="$ac_path_SED"
4997      ac_path_SED_max=$ac_count
4998    fi
4999    # 10*(2^10) chars as input seems more than enough
5000    test $ac_count -gt 10 && break
5001  done
5002  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5003esac
5004
5005      $ac_path_SED_found && break 3
5006    done
5007  done
5008  done
5009IFS=$as_save_IFS
5010  if test -z "$ac_cv_path_SED"; then
5011    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5012  fi
5013else
5014  ac_cv_path_SED=$SED
5015fi
5016
5017fi
5018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5019printf "%s\n" "$ac_cv_path_SED" >&6; }
5020 SED="$ac_cv_path_SED"
5021  rm -f conftest.sed
5022
5023test -z "$SED" && SED=sed
5024Xsed="$SED -e 1s/^X//"
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5037printf %s "checking for grep that handles long lines and -e... " >&6; }
5038if test ${ac_cv_path_GREP+y}
5039then :
5040  printf %s "(cached) " >&6
5041else $as_nop
5042  if test -z "$GREP"; then
5043  ac_path_GREP_found=false
5044  # Loop through the user's path and test for each of PROGNAME-LIST
5045  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5047do
5048  IFS=$as_save_IFS
5049  case $as_dir in #(((
5050    '') as_dir=./ ;;
5051    */) ;;
5052    *) as_dir=$as_dir/ ;;
5053  esac
5054    for ac_prog in grep ggrep
5055   do
5056    for ac_exec_ext in '' $ac_executable_extensions; do
5057      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5058      as_fn_executable_p "$ac_path_GREP" || continue
5059# Check for GNU ac_path_GREP and select it if it is found.
5060  # Check for GNU $ac_path_GREP
5061case `"$ac_path_GREP" --version 2>&1` in
5062*GNU*)
5063  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5064*)
5065  ac_count=0
5066  printf %s 0123456789 >"conftest.in"
5067  while :
5068  do
5069    cat "conftest.in" "conftest.in" >"conftest.tmp"
5070    mv "conftest.tmp" "conftest.in"
5071    cp "conftest.in" "conftest.nl"
5072    printf "%s\n" 'GREP' >> "conftest.nl"
5073    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5074    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5075    as_fn_arith $ac_count + 1 && ac_count=$as_val
5076    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5077      # Best one so far, save it but keep looking for a better one
5078      ac_cv_path_GREP="$ac_path_GREP"
5079      ac_path_GREP_max=$ac_count
5080    fi
5081    # 10*(2^10) chars as input seems more than enough
5082    test $ac_count -gt 10 && break
5083  done
5084  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5085esac
5086
5087      $ac_path_GREP_found && break 3
5088    done
5089  done
5090  done
5091IFS=$as_save_IFS
5092  if test -z "$ac_cv_path_GREP"; then
5093    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5094  fi
5095else
5096  ac_cv_path_GREP=$GREP
5097fi
5098
5099fi
5100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5101printf "%s\n" "$ac_cv_path_GREP" >&6; }
5102 GREP="$ac_cv_path_GREP"
5103
5104
5105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5106printf %s "checking for egrep... " >&6; }
5107if test ${ac_cv_path_EGREP+y}
5108then :
5109  printf %s "(cached) " >&6
5110else $as_nop
5111  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5112   then ac_cv_path_EGREP="$GREP -E"
5113   else
5114     if test -z "$EGREP"; then
5115  ac_path_EGREP_found=false
5116  # Loop through the user's path and test for each of PROGNAME-LIST
5117  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5119do
5120  IFS=$as_save_IFS
5121  case $as_dir in #(((
5122    '') as_dir=./ ;;
5123    */) ;;
5124    *) as_dir=$as_dir/ ;;
5125  esac
5126    for ac_prog in egrep
5127   do
5128    for ac_exec_ext in '' $ac_executable_extensions; do
5129      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5130      as_fn_executable_p "$ac_path_EGREP" || continue
5131# Check for GNU ac_path_EGREP and select it if it is found.
5132  # Check for GNU $ac_path_EGREP
5133case `"$ac_path_EGREP" --version 2>&1` in
5134*GNU*)
5135  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5136*)
5137  ac_count=0
5138  printf %s 0123456789 >"conftest.in"
5139  while :
5140  do
5141    cat "conftest.in" "conftest.in" >"conftest.tmp"
5142    mv "conftest.tmp" "conftest.in"
5143    cp "conftest.in" "conftest.nl"
5144    printf "%s\n" 'EGREP' >> "conftest.nl"
5145    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5146    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5147    as_fn_arith $ac_count + 1 && ac_count=$as_val
5148    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5149      # Best one so far, save it but keep looking for a better one
5150      ac_cv_path_EGREP="$ac_path_EGREP"
5151      ac_path_EGREP_max=$ac_count
5152    fi
5153    # 10*(2^10) chars as input seems more than enough
5154    test $ac_count -gt 10 && break
5155  done
5156  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5157esac
5158
5159      $ac_path_EGREP_found && break 3
5160    done
5161  done
5162  done
5163IFS=$as_save_IFS
5164  if test -z "$ac_cv_path_EGREP"; then
5165    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5166  fi
5167else
5168  ac_cv_path_EGREP=$EGREP
5169fi
5170
5171   fi
5172fi
5173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5174printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5175 EGREP="$ac_cv_path_EGREP"
5176
5177
5178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5179printf %s "checking for fgrep... " >&6; }
5180if test ${ac_cv_path_FGREP+y}
5181then :
5182  printf %s "(cached) " >&6
5183else $as_nop
5184  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5185   then ac_cv_path_FGREP="$GREP -F"
5186   else
5187     if test -z "$FGREP"; then
5188  ac_path_FGREP_found=false
5189  # Loop through the user's path and test for each of PROGNAME-LIST
5190  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5192do
5193  IFS=$as_save_IFS
5194  case $as_dir in #(((
5195    '') as_dir=./ ;;
5196    */) ;;
5197    *) as_dir=$as_dir/ ;;
5198  esac
5199    for ac_prog in fgrep
5200   do
5201    for ac_exec_ext in '' $ac_executable_extensions; do
5202      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5203      as_fn_executable_p "$ac_path_FGREP" || continue
5204# Check for GNU ac_path_FGREP and select it if it is found.
5205  # Check for GNU $ac_path_FGREP
5206case `"$ac_path_FGREP" --version 2>&1` in
5207*GNU*)
5208  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5209*)
5210  ac_count=0
5211  printf %s 0123456789 >"conftest.in"
5212  while :
5213  do
5214    cat "conftest.in" "conftest.in" >"conftest.tmp"
5215    mv "conftest.tmp" "conftest.in"
5216    cp "conftest.in" "conftest.nl"
5217    printf "%s\n" 'FGREP' >> "conftest.nl"
5218    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5219    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5220    as_fn_arith $ac_count + 1 && ac_count=$as_val
5221    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5222      # Best one so far, save it but keep looking for a better one
5223      ac_cv_path_FGREP="$ac_path_FGREP"
5224      ac_path_FGREP_max=$ac_count
5225    fi
5226    # 10*(2^10) chars as input seems more than enough
5227    test $ac_count -gt 10 && break
5228  done
5229  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5230esac
5231
5232      $ac_path_FGREP_found && break 3
5233    done
5234  done
5235  done
5236IFS=$as_save_IFS
5237  if test -z "$ac_cv_path_FGREP"; then
5238    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5239  fi
5240else
5241  ac_cv_path_FGREP=$FGREP
5242fi
5243
5244   fi
5245fi
5246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5247printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5248 FGREP="$ac_cv_path_FGREP"
5249
5250
5251test -z "$GREP" && GREP=grep
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271# Check whether --with-gnu-ld was given.
5272if test ${with_gnu_ld+y}
5273then :
5274  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5275else $as_nop
5276  with_gnu_ld=no
5277fi
5278
5279ac_prog=ld
5280if test yes = "$GCC"; then
5281  # Check if gcc -print-prog-name=ld gives a path.
5282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5283printf %s "checking for ld used by $CC... " >&6; }
5284  case $host in
5285  *-*-mingw*)
5286    # gcc leaves a trailing carriage return, which upsets mingw
5287    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5288  *)
5289    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5290  esac
5291  case $ac_prog in
5292    # Accept absolute paths.
5293    [\\/]* | ?:[\\/]*)
5294      re_direlt='/[^/][^/]*/\.\./'
5295      # Canonicalize the pathname of ld
5296      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5297      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5298	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5299      done
5300      test -z "$LD" && LD=$ac_prog
5301      ;;
5302  "")
5303    # If it fails, then pretend we aren't using GCC.
5304    ac_prog=ld
5305    ;;
5306  *)
5307    # If it is relative, then search for the first ld in PATH.
5308    with_gnu_ld=unknown
5309    ;;
5310  esac
5311elif test yes = "$with_gnu_ld"; then
5312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5313printf %s "checking for GNU ld... " >&6; }
5314else
5315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5316printf %s "checking for non-GNU ld... " >&6; }
5317fi
5318if test ${lt_cv_path_LD+y}
5319then :
5320  printf %s "(cached) " >&6
5321else $as_nop
5322  if test -z "$LD"; then
5323  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5324  for ac_dir in $PATH; do
5325    IFS=$lt_save_ifs
5326    test -z "$ac_dir" && ac_dir=.
5327    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5328      lt_cv_path_LD=$ac_dir/$ac_prog
5329      # Check to see if the program is GNU ld.  I'd rather use --version,
5330      # but apparently some variants of GNU ld only accept -v.
5331      # Break only if it was the GNU/non-GNU ld that we prefer.
5332      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5333      *GNU* | *'with BFD'*)
5334	test no != "$with_gnu_ld" && break
5335	;;
5336      *)
5337	test yes != "$with_gnu_ld" && break
5338	;;
5339      esac
5340    fi
5341  done
5342  IFS=$lt_save_ifs
5343else
5344  lt_cv_path_LD=$LD # Let the user override the test with a path.
5345fi
5346fi
5347
5348LD=$lt_cv_path_LD
5349if test -n "$LD"; then
5350  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5351printf "%s\n" "$LD" >&6; }
5352else
5353  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354printf "%s\n" "no" >&6; }
5355fi
5356test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5358printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5359if test ${lt_cv_prog_gnu_ld+y}
5360then :
5361  printf %s "(cached) " >&6
5362else $as_nop
5363  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5364case `$LD -v 2>&1 </dev/null` in
5365*GNU* | *'with BFD'*)
5366  lt_cv_prog_gnu_ld=yes
5367  ;;
5368*)
5369  lt_cv_prog_gnu_ld=no
5370  ;;
5371esac
5372fi
5373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5374printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5375with_gnu_ld=$lt_cv_prog_gnu_ld
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5386printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5387if test ${lt_cv_path_NM+y}
5388then :
5389  printf %s "(cached) " >&6
5390else $as_nop
5391  if test -n "$NM"; then
5392  # Let the user override the test.
5393  lt_cv_path_NM=$NM
5394else
5395  lt_nm_to_check=${ac_tool_prefix}nm
5396  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5397    lt_nm_to_check="$lt_nm_to_check nm"
5398  fi
5399  for lt_tmp_nm in $lt_nm_to_check; do
5400    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5401    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5402      IFS=$lt_save_ifs
5403      test -z "$ac_dir" && ac_dir=.
5404      tmp_nm=$ac_dir/$lt_tmp_nm
5405      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5406	# Check to see if the nm accepts a BSD-compat flag.
5407	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5408	#   nm: unknown option "B" ignored
5409	# Tru64's nm complains that /dev/null is an invalid object file
5410	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5411	case $build_os in
5412	mingw*) lt_bad_file=conftest.nm/nofile ;;
5413	*) lt_bad_file=/dev/null ;;
5414	esac
5415	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5416	*$lt_bad_file* | *'Invalid file or object type'*)
5417	  lt_cv_path_NM="$tmp_nm -B"
5418	  break 2
5419	  ;;
5420	*)
5421	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5422	  */dev/null*)
5423	    lt_cv_path_NM="$tmp_nm -p"
5424	    break 2
5425	    ;;
5426	  *)
5427	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5428	    continue # so that we can try to find one that supports BSD flags
5429	    ;;
5430	  esac
5431	  ;;
5432	esac
5433      fi
5434    done
5435    IFS=$lt_save_ifs
5436  done
5437  : ${lt_cv_path_NM=no}
5438fi
5439fi
5440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5441printf "%s\n" "$lt_cv_path_NM" >&6; }
5442if test no != "$lt_cv_path_NM"; then
5443  NM=$lt_cv_path_NM
5444else
5445  # Didn't find any BSD compatible name lister, look for dumpbin.
5446  if test -n "$DUMPBIN"; then :
5447    # Let the user override the test.
5448  else
5449    if test -n "$ac_tool_prefix"; then
5450  for ac_prog in dumpbin "link -dump"
5451  do
5452    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5453set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455printf %s "checking for $ac_word... " >&6; }
5456if test ${ac_cv_prog_DUMPBIN+y}
5457then :
5458  printf %s "(cached) " >&6
5459else $as_nop
5460  if test -n "$DUMPBIN"; then
5461  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5462else
5463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464for as_dir in $PATH
5465do
5466  IFS=$as_save_IFS
5467  case $as_dir in #(((
5468    '') as_dir=./ ;;
5469    */) ;;
5470    *) as_dir=$as_dir/ ;;
5471  esac
5472    for ac_exec_ext in '' $ac_executable_extensions; do
5473  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5474    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5475    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5476    break 2
5477  fi
5478done
5479  done
5480IFS=$as_save_IFS
5481
5482fi
5483fi
5484DUMPBIN=$ac_cv_prog_DUMPBIN
5485if test -n "$DUMPBIN"; then
5486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5487printf "%s\n" "$DUMPBIN" >&6; }
5488else
5489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490printf "%s\n" "no" >&6; }
5491fi
5492
5493
5494    test -n "$DUMPBIN" && break
5495  done
5496fi
5497if test -z "$DUMPBIN"; then
5498  ac_ct_DUMPBIN=$DUMPBIN
5499  for ac_prog in dumpbin "link -dump"
5500do
5501  # Extract the first word of "$ac_prog", so it can be a program name with args.
5502set dummy $ac_prog; ac_word=$2
5503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504printf %s "checking for $ac_word... " >&6; }
5505if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5506then :
5507  printf %s "(cached) " >&6
5508else $as_nop
5509  if test -n "$ac_ct_DUMPBIN"; then
5510  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5511else
5512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513for as_dir in $PATH
5514do
5515  IFS=$as_save_IFS
5516  case $as_dir in #(((
5517    '') as_dir=./ ;;
5518    */) ;;
5519    *) as_dir=$as_dir/ ;;
5520  esac
5521    for ac_exec_ext in '' $ac_executable_extensions; do
5522  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5523    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5524    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5525    break 2
5526  fi
5527done
5528  done
5529IFS=$as_save_IFS
5530
5531fi
5532fi
5533ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5534if test -n "$ac_ct_DUMPBIN"; then
5535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5536printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5537else
5538  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539printf "%s\n" "no" >&6; }
5540fi
5541
5542
5543  test -n "$ac_ct_DUMPBIN" && break
5544done
5545
5546  if test "x$ac_ct_DUMPBIN" = x; then
5547    DUMPBIN=":"
5548  else
5549    case $cross_compiling:$ac_tool_warned in
5550yes:)
5551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5552printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5553ac_tool_warned=yes ;;
5554esac
5555    DUMPBIN=$ac_ct_DUMPBIN
5556  fi
5557fi
5558
5559    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5560    *COFF*)
5561      DUMPBIN="$DUMPBIN -symbols -headers"
5562      ;;
5563    *)
5564      DUMPBIN=:
5565      ;;
5566    esac
5567  fi
5568
5569  if test : != "$DUMPBIN"; then
5570    NM=$DUMPBIN
5571  fi
5572fi
5573test -z "$NM" && NM=nm
5574
5575
5576
5577
5578
5579
5580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5581printf %s "checking the name lister ($NM) interface... " >&6; }
5582if test ${lt_cv_nm_interface+y}
5583then :
5584  printf %s "(cached) " >&6
5585else $as_nop
5586  lt_cv_nm_interface="BSD nm"
5587  echo "int some_variable = 0;" > conftest.$ac_ext
5588  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5589  (eval "$ac_compile" 2>conftest.err)
5590  cat conftest.err >&5
5591  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5592  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5593  cat conftest.err >&5
5594  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5595  cat conftest.out >&5
5596  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5597    lt_cv_nm_interface="MS dumpbin"
5598  fi
5599  rm -f conftest*
5600fi
5601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5602printf "%s\n" "$lt_cv_nm_interface" >&6; }
5603
5604# find the maximum length of command line arguments
5605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5606printf %s "checking the maximum length of command line arguments... " >&6; }
5607if test ${lt_cv_sys_max_cmd_len+y}
5608then :
5609  printf %s "(cached) " >&6
5610else $as_nop
5611    i=0
5612  teststring=ABCD
5613
5614  case $build_os in
5615  msdosdjgpp*)
5616    # On DJGPP, this test can blow up pretty badly due to problems in libc
5617    # (any single argument exceeding 2000 bytes causes a buffer overrun
5618    # during glob expansion).  Even if it were fixed, the result of this
5619    # check would be larger than it should be.
5620    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5621    ;;
5622
5623  gnu*)
5624    # Under GNU Hurd, this test is not required because there is
5625    # no limit to the length of command line arguments.
5626    # Libtool will interpret -1 as no limit whatsoever
5627    lt_cv_sys_max_cmd_len=-1;
5628    ;;
5629
5630  cygwin* | mingw* | cegcc*)
5631    # On Win9x/ME, this test blows up -- it succeeds, but takes
5632    # about 5 minutes as the teststring grows exponentially.
5633    # Worse, since 9x/ME are not pre-emptively multitasking,
5634    # you end up with a "frozen" computer, even though with patience
5635    # the test eventually succeeds (with a max line length of 256k).
5636    # Instead, let's just punt: use the minimum linelength reported by
5637    # all of the supported platforms: 8192 (on NT/2K/XP).
5638    lt_cv_sys_max_cmd_len=8192;
5639    ;;
5640
5641  mint*)
5642    # On MiNT this can take a long time and run out of memory.
5643    lt_cv_sys_max_cmd_len=8192;
5644    ;;
5645
5646  amigaos*)
5647    # On AmigaOS with pdksh, this test takes hours, literally.
5648    # So we just punt and use a minimum line length of 8192.
5649    lt_cv_sys_max_cmd_len=8192;
5650    ;;
5651
5652  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5653    # This has been around since 386BSD, at least.  Likely further.
5654    if test -x /sbin/sysctl; then
5655      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5656    elif test -x /usr/sbin/sysctl; then
5657      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5658    else
5659      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5660    fi
5661    # And add a safety zone
5662    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5663    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5664    ;;
5665
5666  interix*)
5667    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5668    lt_cv_sys_max_cmd_len=196608
5669    ;;
5670
5671  os2*)
5672    # The test takes a long time on OS/2.
5673    lt_cv_sys_max_cmd_len=8192
5674    ;;
5675
5676  osf*)
5677    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5678    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5679    # nice to cause kernel panics so lets avoid the loop below.
5680    # First set a reasonable default.
5681    lt_cv_sys_max_cmd_len=16384
5682    #
5683    if test -x /sbin/sysconfig; then
5684      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5685        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5686      esac
5687    fi
5688    ;;
5689  sco3.2v5*)
5690    lt_cv_sys_max_cmd_len=102400
5691    ;;
5692  sysv5* | sco5v6* | sysv4.2uw2*)
5693    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5694    if test -n "$kargmax"; then
5695      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5696    else
5697      lt_cv_sys_max_cmd_len=32768
5698    fi
5699    ;;
5700  *)
5701    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5702    if test -n "$lt_cv_sys_max_cmd_len" && \
5703       test undefined != "$lt_cv_sys_max_cmd_len"; then
5704      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5705      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5706    else
5707      # Make teststring a little bigger before we do anything with it.
5708      # a 1K string should be a reasonable start.
5709      for i in 1 2 3 4 5 6 7 8; do
5710        teststring=$teststring$teststring
5711      done
5712      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5713      # If test is not a shell built-in, we'll probably end up computing a
5714      # maximum length that is only half of the actual maximum length, but
5715      # we can't tell.
5716      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5717	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5718	      test 17 != "$i" # 1/2 MB should be enough
5719      do
5720        i=`expr $i + 1`
5721        teststring=$teststring$teststring
5722      done
5723      # Only check the string length outside the loop.
5724      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5725      teststring=
5726      # Add a significant safety factor because C++ compilers can tack on
5727      # massive amounts of additional arguments before passing them to the
5728      # linker.  It appears as though 1/2 is a usable value.
5729      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5730    fi
5731    ;;
5732  esac
5733
5734fi
5735
5736if test -n "$lt_cv_sys_max_cmd_len"; then
5737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5738printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5739else
5740  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5741printf "%s\n" "none" >&6; }
5742fi
5743max_cmd_len=$lt_cv_sys_max_cmd_len
5744
5745
5746
5747
5748
5749
5750: ${CP="cp -f"}
5751: ${MV="mv -f"}
5752: ${RM="rm -f"}
5753
5754if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5755  lt_unset=unset
5756else
5757  lt_unset=false
5758fi
5759
5760
5761
5762
5763
5764# test EBCDIC or ASCII
5765case `echo X|tr X '\101'` in
5766 A) # ASCII based system
5767    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5768  lt_SP2NL='tr \040 \012'
5769  lt_NL2SP='tr \015\012 \040\040'
5770  ;;
5771 *) # EBCDIC based system
5772  lt_SP2NL='tr \100 \n'
5773  lt_NL2SP='tr \r\n \100\100'
5774  ;;
5775esac
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5786printf %s "checking how to convert $build file names to $host format... " >&6; }
5787if test ${lt_cv_to_host_file_cmd+y}
5788then :
5789  printf %s "(cached) " >&6
5790else $as_nop
5791  case $host in
5792  *-*-mingw* )
5793    case $build in
5794      *-*-mingw* ) # actually msys
5795        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5796        ;;
5797      *-*-cygwin* )
5798        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5799        ;;
5800      * ) # otherwise, assume *nix
5801        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5802        ;;
5803    esac
5804    ;;
5805  *-*-cygwin* )
5806    case $build in
5807      *-*-mingw* ) # actually msys
5808        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5809        ;;
5810      *-*-cygwin* )
5811        lt_cv_to_host_file_cmd=func_convert_file_noop
5812        ;;
5813      * ) # otherwise, assume *nix
5814        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5815        ;;
5816    esac
5817    ;;
5818  * ) # unhandled hosts (and "normal" native builds)
5819    lt_cv_to_host_file_cmd=func_convert_file_noop
5820    ;;
5821esac
5822
5823fi
5824
5825to_host_file_cmd=$lt_cv_to_host_file_cmd
5826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5827printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5828
5829
5830
5831
5832
5833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5834printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5835if test ${lt_cv_to_tool_file_cmd+y}
5836then :
5837  printf %s "(cached) " >&6
5838else $as_nop
5839  #assume ordinary cross tools, or native build.
5840lt_cv_to_tool_file_cmd=func_convert_file_noop
5841case $host in
5842  *-*-mingw* )
5843    case $build in
5844      *-*-mingw* ) # actually msys
5845        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5846        ;;
5847    esac
5848    ;;
5849esac
5850
5851fi
5852
5853to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5855printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5856
5857
5858
5859
5860
5861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5862printf %s "checking for $LD option to reload object files... " >&6; }
5863if test ${lt_cv_ld_reload_flag+y}
5864then :
5865  printf %s "(cached) " >&6
5866else $as_nop
5867  lt_cv_ld_reload_flag='-r'
5868fi
5869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5870printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5871reload_flag=$lt_cv_ld_reload_flag
5872case $reload_flag in
5873"" | " "*) ;;
5874*) reload_flag=" $reload_flag" ;;
5875esac
5876reload_cmds='$LD$reload_flag -o $output$reload_objs'
5877case $host_os in
5878  cygwin* | mingw* | pw32* | cegcc*)
5879    if test yes != "$GCC"; then
5880      reload_cmds=false
5881    fi
5882    ;;
5883  darwin*)
5884    if test yes = "$GCC"; then
5885      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5886    else
5887      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5888    fi
5889    ;;
5890esac
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900if test -n "$ac_tool_prefix"; then
5901  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5902set dummy ${ac_tool_prefix}objdump; ac_word=$2
5903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904printf %s "checking for $ac_word... " >&6; }
5905if test ${ac_cv_prog_OBJDUMP+y}
5906then :
5907  printf %s "(cached) " >&6
5908else $as_nop
5909  if test -n "$OBJDUMP"; then
5910  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5911else
5912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913for as_dir in $PATH
5914do
5915  IFS=$as_save_IFS
5916  case $as_dir in #(((
5917    '') as_dir=./ ;;
5918    */) ;;
5919    *) as_dir=$as_dir/ ;;
5920  esac
5921    for ac_exec_ext in '' $ac_executable_extensions; do
5922  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5923    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5924    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5925    break 2
5926  fi
5927done
5928  done
5929IFS=$as_save_IFS
5930
5931fi
5932fi
5933OBJDUMP=$ac_cv_prog_OBJDUMP
5934if test -n "$OBJDUMP"; then
5935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5936printf "%s\n" "$OBJDUMP" >&6; }
5937else
5938  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939printf "%s\n" "no" >&6; }
5940fi
5941
5942
5943fi
5944if test -z "$ac_cv_prog_OBJDUMP"; then
5945  ac_ct_OBJDUMP=$OBJDUMP
5946  # Extract the first word of "objdump", so it can be a program name with args.
5947set dummy objdump; ac_word=$2
5948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5949printf %s "checking for $ac_word... " >&6; }
5950if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5951then :
5952  printf %s "(cached) " >&6
5953else $as_nop
5954  if test -n "$ac_ct_OBJDUMP"; then
5955  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5956else
5957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958for as_dir in $PATH
5959do
5960  IFS=$as_save_IFS
5961  case $as_dir in #(((
5962    '') as_dir=./ ;;
5963    */) ;;
5964    *) as_dir=$as_dir/ ;;
5965  esac
5966    for ac_exec_ext in '' $ac_executable_extensions; do
5967  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5968    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5969    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5970    break 2
5971  fi
5972done
5973  done
5974IFS=$as_save_IFS
5975
5976fi
5977fi
5978ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5979if test -n "$ac_ct_OBJDUMP"; then
5980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5981printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5982else
5983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984printf "%s\n" "no" >&6; }
5985fi
5986
5987  if test "x$ac_ct_OBJDUMP" = x; then
5988    OBJDUMP="false"
5989  else
5990    case $cross_compiling:$ac_tool_warned in
5991yes:)
5992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5993printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5994ac_tool_warned=yes ;;
5995esac
5996    OBJDUMP=$ac_ct_OBJDUMP
5997  fi
5998else
5999  OBJDUMP="$ac_cv_prog_OBJDUMP"
6000fi
6001
6002test -z "$OBJDUMP" && OBJDUMP=objdump
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6013printf %s "checking how to recognize dependent libraries... " >&6; }
6014if test ${lt_cv_deplibs_check_method+y}
6015then :
6016  printf %s "(cached) " >&6
6017else $as_nop
6018  lt_cv_file_magic_cmd='$MAGIC_CMD'
6019lt_cv_file_magic_test_file=
6020lt_cv_deplibs_check_method='unknown'
6021# Need to set the preceding variable on all platforms that support
6022# interlibrary dependencies.
6023# 'none' -- dependencies not supported.
6024# 'unknown' -- same as none, but documents that we really don't know.
6025# 'pass_all' -- all dependencies passed with no checks.
6026# 'test_compile' -- check by making test program.
6027# 'file_magic [[regex]]' -- check by looking for files in library path
6028# that responds to the $file_magic_cmd with a given extended regex.
6029# If you have 'file' or equivalent on your system and you're not sure
6030# whether 'pass_all' will *always* work, you probably want this one.
6031
6032case $host_os in
6033aix[4-9]*)
6034  lt_cv_deplibs_check_method=pass_all
6035  ;;
6036
6037beos*)
6038  lt_cv_deplibs_check_method=pass_all
6039  ;;
6040
6041bsdi[45]*)
6042  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6043  lt_cv_file_magic_cmd='/usr/bin/file -L'
6044  lt_cv_file_magic_test_file=/shlib/libc.so
6045  ;;
6046
6047cygwin*)
6048  # func_win32_libid is a shell function defined in ltmain.sh
6049  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6050  lt_cv_file_magic_cmd='func_win32_libid'
6051  ;;
6052
6053mingw* | pw32*)
6054  # Base MSYS/MinGW do not provide the 'file' command needed by
6055  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6056  # unless we find 'file', for example because we are cross-compiling.
6057  if ( file / ) >/dev/null 2>&1; then
6058    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6059    lt_cv_file_magic_cmd='func_win32_libid'
6060  else
6061    # Keep this pattern in sync with the one in func_win32_libid.
6062    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6063    lt_cv_file_magic_cmd='$OBJDUMP -f'
6064  fi
6065  ;;
6066
6067cegcc*)
6068  # use the weaker test based on 'objdump'. See mingw*.
6069  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6070  lt_cv_file_magic_cmd='$OBJDUMP -f'
6071  ;;
6072
6073darwin* | rhapsody*)
6074  lt_cv_deplibs_check_method=pass_all
6075  ;;
6076
6077freebsd* | dragonfly*)
6078  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6079    case $host_cpu in
6080    i*86 )
6081      # Not sure whether the presence of OpenBSD here was a mistake.
6082      # Let's accept both of them until this is cleared up.
6083      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6084      lt_cv_file_magic_cmd=/usr/bin/file
6085      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6086      ;;
6087    esac
6088  else
6089    lt_cv_deplibs_check_method=pass_all
6090  fi
6091  ;;
6092
6093haiku*)
6094  lt_cv_deplibs_check_method=pass_all
6095  ;;
6096
6097hpux10.20* | hpux11*)
6098  lt_cv_file_magic_cmd=/usr/bin/file
6099  case $host_cpu in
6100  ia64*)
6101    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6102    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6103    ;;
6104  hppa*64*)
6105    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]'
6106    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6107    ;;
6108  *)
6109    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6110    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6111    ;;
6112  esac
6113  ;;
6114
6115interix[3-9]*)
6116  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6117  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6118  ;;
6119
6120irix5* | irix6* | nonstopux*)
6121  case $LD in
6122  *-32|*"-32 ") libmagic=32-bit;;
6123  *-n32|*"-n32 ") libmagic=N32;;
6124  *-64|*"-64 ") libmagic=64-bit;;
6125  *) libmagic=never-match;;
6126  esac
6127  lt_cv_deplibs_check_method=pass_all
6128  ;;
6129
6130# This must be glibc/ELF.
6131linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6132  lt_cv_deplibs_check_method=pass_all
6133  ;;
6134
6135netbsd*)
6136  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6137    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6138  else
6139    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6140  fi
6141  ;;
6142
6143newos6*)
6144  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6145  lt_cv_file_magic_cmd=/usr/bin/file
6146  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6147  ;;
6148
6149*nto* | *qnx*)
6150  lt_cv_deplibs_check_method=pass_all
6151  ;;
6152
6153openbsd* | bitrig*)
6154  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6155    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6156  else
6157    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6158  fi
6159  ;;
6160
6161osf3* | osf4* | osf5*)
6162  lt_cv_deplibs_check_method=pass_all
6163  ;;
6164
6165rdos*)
6166  lt_cv_deplibs_check_method=pass_all
6167  ;;
6168
6169solaris*)
6170  lt_cv_deplibs_check_method=pass_all
6171  ;;
6172
6173sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6174  lt_cv_deplibs_check_method=pass_all
6175  ;;
6176
6177sysv4 | sysv4.3*)
6178  case $host_vendor in
6179  motorola)
6180    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]'
6181    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6182    ;;
6183  ncr)
6184    lt_cv_deplibs_check_method=pass_all
6185    ;;
6186  sequent)
6187    lt_cv_file_magic_cmd='/bin/file'
6188    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6189    ;;
6190  sni)
6191    lt_cv_file_magic_cmd='/bin/file'
6192    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6193    lt_cv_file_magic_test_file=/lib/libc.so
6194    ;;
6195  siemens)
6196    lt_cv_deplibs_check_method=pass_all
6197    ;;
6198  pc)
6199    lt_cv_deplibs_check_method=pass_all
6200    ;;
6201  esac
6202  ;;
6203
6204tpf*)
6205  lt_cv_deplibs_check_method=pass_all
6206  ;;
6207os2*)
6208  lt_cv_deplibs_check_method=pass_all
6209  ;;
6210esac
6211
6212fi
6213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6214printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6215
6216file_magic_glob=
6217want_nocaseglob=no
6218if test "$build" = "$host"; then
6219  case $host_os in
6220  mingw* | pw32*)
6221    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6222      want_nocaseglob=yes
6223    else
6224      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6225    fi
6226    ;;
6227  esac
6228fi
6229
6230file_magic_cmd=$lt_cv_file_magic_cmd
6231deplibs_check_method=$lt_cv_deplibs_check_method
6232test -z "$deplibs_check_method" && deplibs_check_method=unknown
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255if test -n "$ac_tool_prefix"; then
6256  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6257set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259printf %s "checking for $ac_word... " >&6; }
6260if test ${ac_cv_prog_DLLTOOL+y}
6261then :
6262  printf %s "(cached) " >&6
6263else $as_nop
6264  if test -n "$DLLTOOL"; then
6265  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6266else
6267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268for as_dir in $PATH
6269do
6270  IFS=$as_save_IFS
6271  case $as_dir in #(((
6272    '') as_dir=./ ;;
6273    */) ;;
6274    *) as_dir=$as_dir/ ;;
6275  esac
6276    for ac_exec_ext in '' $ac_executable_extensions; do
6277  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6278    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6279    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6280    break 2
6281  fi
6282done
6283  done
6284IFS=$as_save_IFS
6285
6286fi
6287fi
6288DLLTOOL=$ac_cv_prog_DLLTOOL
6289if test -n "$DLLTOOL"; then
6290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6291printf "%s\n" "$DLLTOOL" >&6; }
6292else
6293  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294printf "%s\n" "no" >&6; }
6295fi
6296
6297
6298fi
6299if test -z "$ac_cv_prog_DLLTOOL"; then
6300  ac_ct_DLLTOOL=$DLLTOOL
6301  # Extract the first word of "dlltool", so it can be a program name with args.
6302set dummy dlltool; ac_word=$2
6303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304printf %s "checking for $ac_word... " >&6; }
6305if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6306then :
6307  printf %s "(cached) " >&6
6308else $as_nop
6309  if test -n "$ac_ct_DLLTOOL"; then
6310  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6311else
6312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313for as_dir in $PATH
6314do
6315  IFS=$as_save_IFS
6316  case $as_dir in #(((
6317    '') as_dir=./ ;;
6318    */) ;;
6319    *) as_dir=$as_dir/ ;;
6320  esac
6321    for ac_exec_ext in '' $ac_executable_extensions; do
6322  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6323    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6324    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6325    break 2
6326  fi
6327done
6328  done
6329IFS=$as_save_IFS
6330
6331fi
6332fi
6333ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6334if test -n "$ac_ct_DLLTOOL"; then
6335  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6336printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6337else
6338  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339printf "%s\n" "no" >&6; }
6340fi
6341
6342  if test "x$ac_ct_DLLTOOL" = x; then
6343    DLLTOOL="false"
6344  else
6345    case $cross_compiling:$ac_tool_warned in
6346yes:)
6347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6348printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6349ac_tool_warned=yes ;;
6350esac
6351    DLLTOOL=$ac_ct_DLLTOOL
6352  fi
6353else
6354  DLLTOOL="$ac_cv_prog_DLLTOOL"
6355fi
6356
6357test -z "$DLLTOOL" && DLLTOOL=dlltool
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6369printf %s "checking how to associate runtime and link libraries... " >&6; }
6370if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6371then :
6372  printf %s "(cached) " >&6
6373else $as_nop
6374  lt_cv_sharedlib_from_linklib_cmd='unknown'
6375
6376case $host_os in
6377cygwin* | mingw* | pw32* | cegcc*)
6378  # two different shell functions defined in ltmain.sh;
6379  # decide which one to use based on capabilities of $DLLTOOL
6380  case `$DLLTOOL --help 2>&1` in
6381  *--identify-strict*)
6382    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6383    ;;
6384  *)
6385    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6386    ;;
6387  esac
6388  ;;
6389*)
6390  # fallback: assume linklib IS sharedlib
6391  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6392  ;;
6393esac
6394
6395fi
6396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6397printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6398sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6399test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6400
6401
6402
6403
6404
6405
6406
6407
6408if test -n "$ac_tool_prefix"; then
6409  for ac_prog in ar
6410  do
6411    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6412set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414printf %s "checking for $ac_word... " >&6; }
6415if test ${ac_cv_prog_AR+y}
6416then :
6417  printf %s "(cached) " >&6
6418else $as_nop
6419  if test -n "$AR"; then
6420  ac_cv_prog_AR="$AR" # Let the user override the test.
6421else
6422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH
6424do
6425  IFS=$as_save_IFS
6426  case $as_dir in #(((
6427    '') as_dir=./ ;;
6428    */) ;;
6429    *) as_dir=$as_dir/ ;;
6430  esac
6431    for ac_exec_ext in '' $ac_executable_extensions; do
6432  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6433    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6434    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6435    break 2
6436  fi
6437done
6438  done
6439IFS=$as_save_IFS
6440
6441fi
6442fi
6443AR=$ac_cv_prog_AR
6444if test -n "$AR"; then
6445  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6446printf "%s\n" "$AR" >&6; }
6447else
6448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449printf "%s\n" "no" >&6; }
6450fi
6451
6452
6453    test -n "$AR" && break
6454  done
6455fi
6456if test -z "$AR"; then
6457  ac_ct_AR=$AR
6458  for ac_prog in ar
6459do
6460  # Extract the first word of "$ac_prog", so it can be a program name with args.
6461set dummy $ac_prog; ac_word=$2
6462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463printf %s "checking for $ac_word... " >&6; }
6464if test ${ac_cv_prog_ac_ct_AR+y}
6465then :
6466  printf %s "(cached) " >&6
6467else $as_nop
6468  if test -n "$ac_ct_AR"; then
6469  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6470else
6471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472for as_dir in $PATH
6473do
6474  IFS=$as_save_IFS
6475  case $as_dir in #(((
6476    '') as_dir=./ ;;
6477    */) ;;
6478    *) as_dir=$as_dir/ ;;
6479  esac
6480    for ac_exec_ext in '' $ac_executable_extensions; do
6481  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6482    ac_cv_prog_ac_ct_AR="$ac_prog"
6483    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6484    break 2
6485  fi
6486done
6487  done
6488IFS=$as_save_IFS
6489
6490fi
6491fi
6492ac_ct_AR=$ac_cv_prog_ac_ct_AR
6493if test -n "$ac_ct_AR"; then
6494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6495printf "%s\n" "$ac_ct_AR" >&6; }
6496else
6497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498printf "%s\n" "no" >&6; }
6499fi
6500
6501
6502  test -n "$ac_ct_AR" && break
6503done
6504
6505  if test "x$ac_ct_AR" = x; then
6506    AR="false"
6507  else
6508    case $cross_compiling:$ac_tool_warned in
6509yes:)
6510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6511printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6512ac_tool_warned=yes ;;
6513esac
6514    AR=$ac_ct_AR
6515  fi
6516fi
6517
6518: ${AR=ar}
6519: ${AR_FLAGS=cru}
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6532printf %s "checking for archiver @FILE support... " >&6; }
6533if test ${lt_cv_ar_at_file+y}
6534then :
6535  printf %s "(cached) " >&6
6536else $as_nop
6537  lt_cv_ar_at_file=no
6538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539/* end confdefs.h.  */
6540
6541int
6542main (void)
6543{
6544
6545  ;
6546  return 0;
6547}
6548_ACEOF
6549if ac_fn_c_try_compile "$LINENO"
6550then :
6551  echo conftest.$ac_objext > conftest.lst
6552      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6553      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6554  (eval $lt_ar_try) 2>&5
6555  ac_status=$?
6556  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6557  test $ac_status = 0; }
6558      if test 0 -eq "$ac_status"; then
6559	# Ensure the archiver fails upon bogus file names.
6560	rm -f conftest.$ac_objext libconftest.a
6561	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6562  (eval $lt_ar_try) 2>&5
6563  ac_status=$?
6564  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6565  test $ac_status = 0; }
6566	if test 0 -ne "$ac_status"; then
6567          lt_cv_ar_at_file=@
6568        fi
6569      fi
6570      rm -f conftest.* libconftest.a
6571
6572fi
6573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6574
6575fi
6576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6577printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6578
6579if test no = "$lt_cv_ar_at_file"; then
6580  archiver_list_spec=
6581else
6582  archiver_list_spec=$lt_cv_ar_at_file
6583fi
6584
6585
6586
6587
6588
6589
6590
6591if test -n "$ac_tool_prefix"; then
6592  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6593set dummy ${ac_tool_prefix}strip; ac_word=$2
6594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6595printf %s "checking for $ac_word... " >&6; }
6596if test ${ac_cv_prog_STRIP+y}
6597then :
6598  printf %s "(cached) " >&6
6599else $as_nop
6600  if test -n "$STRIP"; then
6601  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6602else
6603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604for as_dir in $PATH
6605do
6606  IFS=$as_save_IFS
6607  case $as_dir in #(((
6608    '') as_dir=./ ;;
6609    */) ;;
6610    *) as_dir=$as_dir/ ;;
6611  esac
6612    for ac_exec_ext in '' $ac_executable_extensions; do
6613  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6614    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6615    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6616    break 2
6617  fi
6618done
6619  done
6620IFS=$as_save_IFS
6621
6622fi
6623fi
6624STRIP=$ac_cv_prog_STRIP
6625if test -n "$STRIP"; then
6626  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6627printf "%s\n" "$STRIP" >&6; }
6628else
6629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630printf "%s\n" "no" >&6; }
6631fi
6632
6633
6634fi
6635if test -z "$ac_cv_prog_STRIP"; then
6636  ac_ct_STRIP=$STRIP
6637  # Extract the first word of "strip", so it can be a program name with args.
6638set dummy strip; ac_word=$2
6639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640printf %s "checking for $ac_word... " >&6; }
6641if test ${ac_cv_prog_ac_ct_STRIP+y}
6642then :
6643  printf %s "(cached) " >&6
6644else $as_nop
6645  if test -n "$ac_ct_STRIP"; then
6646  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6647else
6648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649for as_dir in $PATH
6650do
6651  IFS=$as_save_IFS
6652  case $as_dir in #(((
6653    '') as_dir=./ ;;
6654    */) ;;
6655    *) as_dir=$as_dir/ ;;
6656  esac
6657    for ac_exec_ext in '' $ac_executable_extensions; do
6658  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6659    ac_cv_prog_ac_ct_STRIP="strip"
6660    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6661    break 2
6662  fi
6663done
6664  done
6665IFS=$as_save_IFS
6666
6667fi
6668fi
6669ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6670if test -n "$ac_ct_STRIP"; then
6671  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6672printf "%s\n" "$ac_ct_STRIP" >&6; }
6673else
6674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675printf "%s\n" "no" >&6; }
6676fi
6677
6678  if test "x$ac_ct_STRIP" = x; then
6679    STRIP=":"
6680  else
6681    case $cross_compiling:$ac_tool_warned in
6682yes:)
6683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6684printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6685ac_tool_warned=yes ;;
6686esac
6687    STRIP=$ac_ct_STRIP
6688  fi
6689else
6690  STRIP="$ac_cv_prog_STRIP"
6691fi
6692
6693test -z "$STRIP" && STRIP=:
6694
6695
6696
6697
6698
6699
6700if test -n "$ac_tool_prefix"; then
6701  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6702set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704printf %s "checking for $ac_word... " >&6; }
6705if test ${ac_cv_prog_RANLIB+y}
6706then :
6707  printf %s "(cached) " >&6
6708else $as_nop
6709  if test -n "$RANLIB"; then
6710  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6711else
6712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713for as_dir in $PATH
6714do
6715  IFS=$as_save_IFS
6716  case $as_dir in #(((
6717    '') as_dir=./ ;;
6718    */) ;;
6719    *) as_dir=$as_dir/ ;;
6720  esac
6721    for ac_exec_ext in '' $ac_executable_extensions; do
6722  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6723    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6724    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6725    break 2
6726  fi
6727done
6728  done
6729IFS=$as_save_IFS
6730
6731fi
6732fi
6733RANLIB=$ac_cv_prog_RANLIB
6734if test -n "$RANLIB"; then
6735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6736printf "%s\n" "$RANLIB" >&6; }
6737else
6738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739printf "%s\n" "no" >&6; }
6740fi
6741
6742
6743fi
6744if test -z "$ac_cv_prog_RANLIB"; then
6745  ac_ct_RANLIB=$RANLIB
6746  # Extract the first word of "ranlib", so it can be a program name with args.
6747set dummy ranlib; ac_word=$2
6748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749printf %s "checking for $ac_word... " >&6; }
6750if test ${ac_cv_prog_ac_ct_RANLIB+y}
6751then :
6752  printf %s "(cached) " >&6
6753else $as_nop
6754  if test -n "$ac_ct_RANLIB"; then
6755  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6756else
6757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760  IFS=$as_save_IFS
6761  case $as_dir in #(((
6762    '') as_dir=./ ;;
6763    */) ;;
6764    *) as_dir=$as_dir/ ;;
6765  esac
6766    for ac_exec_ext in '' $ac_executable_extensions; do
6767  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6768    ac_cv_prog_ac_ct_RANLIB="ranlib"
6769    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6770    break 2
6771  fi
6772done
6773  done
6774IFS=$as_save_IFS
6775
6776fi
6777fi
6778ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6779if test -n "$ac_ct_RANLIB"; then
6780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6781printf "%s\n" "$ac_ct_RANLIB" >&6; }
6782else
6783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784printf "%s\n" "no" >&6; }
6785fi
6786
6787  if test "x$ac_ct_RANLIB" = x; then
6788    RANLIB=":"
6789  else
6790    case $cross_compiling:$ac_tool_warned in
6791yes:)
6792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6793printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6794ac_tool_warned=yes ;;
6795esac
6796    RANLIB=$ac_ct_RANLIB
6797  fi
6798else
6799  RANLIB="$ac_cv_prog_RANLIB"
6800fi
6801
6802test -z "$RANLIB" && RANLIB=:
6803
6804
6805
6806
6807
6808
6809# Determine commands to create old-style static archives.
6810old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6811old_postinstall_cmds='chmod 644 $oldlib'
6812old_postuninstall_cmds=
6813
6814if test -n "$RANLIB"; then
6815  case $host_os in
6816  bitrig* | openbsd*)
6817    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6818    ;;
6819  *)
6820    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6821    ;;
6822  esac
6823  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6824fi
6825
6826case $host_os in
6827  darwin*)
6828    lock_old_archive_extraction=yes ;;
6829  *)
6830    lock_old_archive_extraction=no ;;
6831esac
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871# If no C compiler was specified, use CC.
6872LTCC=${LTCC-"$CC"}
6873
6874# If no C compiler flags were specified, use CFLAGS.
6875LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6876
6877# Allow CC to be a program name with arguments.
6878compiler=$CC
6879
6880
6881# Check for command to grab the raw symbol name followed by C symbol from nm.
6882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6883printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6884if test ${lt_cv_sys_global_symbol_pipe+y}
6885then :
6886  printf %s "(cached) " >&6
6887else $as_nop
6888
6889# These are sane defaults that work on at least a few old systems.
6890# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6891
6892# Character class describing NM global symbol codes.
6893symcode='[BCDEGRST]'
6894
6895# Regexp to match symbols that can be accessed directly from C.
6896sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6897
6898# Define system-specific variables.
6899case $host_os in
6900aix*)
6901  symcode='[BCDT]'
6902  ;;
6903cygwin* | mingw* | pw32* | cegcc*)
6904  symcode='[ABCDGISTW]'
6905  ;;
6906hpux*)
6907  if test ia64 = "$host_cpu"; then
6908    symcode='[ABCDEGRST]'
6909  fi
6910  ;;
6911irix* | nonstopux*)
6912  symcode='[BCDEGRST]'
6913  ;;
6914osf*)
6915  symcode='[BCDEGQRST]'
6916  ;;
6917solaris*)
6918  symcode='[BDRT]'
6919  ;;
6920sco3.2v5*)
6921  symcode='[DT]'
6922  ;;
6923sysv4.2uw2*)
6924  symcode='[DT]'
6925  ;;
6926sysv5* | sco5v6* | unixware* | OpenUNIX*)
6927  symcode='[ABDT]'
6928  ;;
6929sysv4)
6930  symcode='[DFNSTU]'
6931  ;;
6932esac
6933
6934# If we're using GNU nm, then use its standard symbol codes.
6935case `$NM -V 2>&1` in
6936*GNU* | *'with BFD'*)
6937  symcode='[ABCDGIRSTW]' ;;
6938esac
6939
6940if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6941  # Gets list of data symbols to import.
6942  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6943  # Adjust the below global symbol transforms to fixup imported variables.
6944  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6945  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6946  lt_c_name_lib_hook="\
6947  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6948  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6949else
6950  # Disable hooks by default.
6951  lt_cv_sys_global_symbol_to_import=
6952  lt_cdecl_hook=
6953  lt_c_name_hook=
6954  lt_c_name_lib_hook=
6955fi
6956
6957# Transform an extracted symbol line into a proper C declaration.
6958# Some systems (esp. on ia64) link data and code symbols differently,
6959# so use this general approach.
6960lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6961$lt_cdecl_hook\
6962" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6963" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6964
6965# Transform an extracted symbol line into symbol name and symbol address
6966lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6967$lt_c_name_hook\
6968" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6969" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6970
6971# Transform an extracted symbol line into symbol name with lib prefix and
6972# symbol address.
6973lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6974$lt_c_name_lib_hook\
6975" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6976" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6977" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6978
6979# Handle CRLF in mingw tool chain
6980opt_cr=
6981case $build_os in
6982mingw*)
6983  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6984  ;;
6985esac
6986
6987# Try without a prefix underscore, then with it.
6988for ac_symprfx in "" "_"; do
6989
6990  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6991  symxfrm="\\1 $ac_symprfx\\2 \\2"
6992
6993  # Write the raw and C identifiers.
6994  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6995    # Fake it for dumpbin and say T for any non-static function,
6996    # D for any global variable and I for any imported variable.
6997    # Also find C++ and __fastcall symbols from MSVC++,
6998    # which start with @ or ?.
6999    lt_cv_sys_global_symbol_pipe="$AWK '"\
7000"     {last_section=section; section=\$ 3};"\
7001"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7002"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7003"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7004"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7005"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7006"     \$ 0!~/External *\|/{next};"\
7007"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7008"     {if(hide[section]) next};"\
7009"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7010"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7011"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7012"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7013"     ' prfx=^$ac_symprfx"
7014  else
7015    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7016  fi
7017  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7018
7019  # Check to see that the pipe works correctly.
7020  pipe_works=no
7021
7022  rm -f conftest*
7023  cat > conftest.$ac_ext <<_LT_EOF
7024#ifdef __cplusplus
7025extern "C" {
7026#endif
7027char nm_test_var;
7028void nm_test_func(void);
7029void nm_test_func(void){}
7030#ifdef __cplusplus
7031}
7032#endif
7033int main(){nm_test_var='a';nm_test_func();return(0);}
7034_LT_EOF
7035
7036  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7037  (eval $ac_compile) 2>&5
7038  ac_status=$?
7039  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7040  test $ac_status = 0; }; then
7041    # Now try to grab the symbols.
7042    nlist=conftest.nm
7043    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7044  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7045  ac_status=$?
7046  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7047  test $ac_status = 0; } && test -s "$nlist"; then
7048      # Try sorting and uniquifying the output.
7049      if sort "$nlist" | uniq > "$nlist"T; then
7050	mv -f "$nlist"T "$nlist"
7051      else
7052	rm -f "$nlist"T
7053      fi
7054
7055      # Make sure that we snagged all the symbols we need.
7056      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7057	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7058	  cat <<_LT_EOF > conftest.$ac_ext
7059/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7060#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7061/* DATA imports from DLLs on WIN32 can't be const, because runtime
7062   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7063# define LT_DLSYM_CONST
7064#elif defined __osf__
7065/* This system does not cope well with relocations in const data.  */
7066# define LT_DLSYM_CONST
7067#else
7068# define LT_DLSYM_CONST const
7069#endif
7070
7071#ifdef __cplusplus
7072extern "C" {
7073#endif
7074
7075_LT_EOF
7076	  # Now generate the symbol file.
7077	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7078
7079	  cat <<_LT_EOF >> conftest.$ac_ext
7080
7081/* The mapping between symbol names and symbols.  */
7082LT_DLSYM_CONST struct {
7083  const char *name;
7084  void       *address;
7085}
7086lt__PROGRAM__LTX_preloaded_symbols[] =
7087{
7088  { "@PROGRAM@", (void *) 0 },
7089_LT_EOF
7090	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7091	  cat <<\_LT_EOF >> conftest.$ac_ext
7092  {0, (void *) 0}
7093};
7094
7095/* This works around a problem in FreeBSD linker */
7096#ifdef FREEBSD_WORKAROUND
7097static const void *lt_preloaded_setup() {
7098  return lt__PROGRAM__LTX_preloaded_symbols;
7099}
7100#endif
7101
7102#ifdef __cplusplus
7103}
7104#endif
7105_LT_EOF
7106	  # Now try linking the two files.
7107	  mv conftest.$ac_objext conftstm.$ac_objext
7108	  lt_globsym_save_LIBS=$LIBS
7109	  lt_globsym_save_CFLAGS=$CFLAGS
7110	  LIBS=conftstm.$ac_objext
7111	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7112	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7113  (eval $ac_link) 2>&5
7114  ac_status=$?
7115  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7116  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7117	    pipe_works=yes
7118	  fi
7119	  LIBS=$lt_globsym_save_LIBS
7120	  CFLAGS=$lt_globsym_save_CFLAGS
7121	else
7122	  echo "cannot find nm_test_func in $nlist" >&5
7123	fi
7124      else
7125	echo "cannot find nm_test_var in $nlist" >&5
7126      fi
7127    else
7128      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7129    fi
7130  else
7131    echo "$progname: failed program was:" >&5
7132    cat conftest.$ac_ext >&5
7133  fi
7134  rm -rf conftest* conftst*
7135
7136  # Do not use the global_symbol_pipe unless it works.
7137  if test yes = "$pipe_works"; then
7138    break
7139  else
7140    lt_cv_sys_global_symbol_pipe=
7141  fi
7142done
7143
7144fi
7145
7146if test -z "$lt_cv_sys_global_symbol_pipe"; then
7147  lt_cv_sys_global_symbol_to_cdecl=
7148fi
7149if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7151printf "%s\n" "failed" >&6; }
7152else
7153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7154printf "%s\n" "ok" >&6; }
7155fi
7156
7157# Response file support.
7158if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7159  nm_file_list_spec='@'
7160elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7161  nm_file_list_spec='@'
7162fi
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
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7201printf %s "checking for sysroot... " >&6; }
7202
7203# Check whether --with-sysroot was given.
7204if test ${with_sysroot+y}
7205then :
7206  withval=$with_sysroot;
7207else $as_nop
7208  with_sysroot=no
7209fi
7210
7211
7212lt_sysroot=
7213case $with_sysroot in #(
7214 yes)
7215   if test yes = "$GCC"; then
7216     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7217   fi
7218   ;; #(
7219 /*)
7220   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7221   ;; #(
7222 no|'')
7223   ;; #(
7224 *)
7225   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7226printf "%s\n" "$with_sysroot" >&6; }
7227   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7228   ;;
7229esac
7230
7231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7232printf "%s\n" "${lt_sysroot:-no}" >&6; }
7233
7234
7235
7236
7237
7238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7239printf %s "checking for a working dd... " >&6; }
7240if test ${ac_cv_path_lt_DD+y}
7241then :
7242  printf %s "(cached) " >&6
7243else $as_nop
7244  printf 0123456789abcdef0123456789abcdef >conftest.i
7245cat conftest.i conftest.i >conftest2.i
7246: ${lt_DD:=$DD}
7247if test -z "$lt_DD"; then
7248  ac_path_lt_DD_found=false
7249  # Loop through the user's path and test for each of PROGNAME-LIST
7250  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251for as_dir in $PATH
7252do
7253  IFS=$as_save_IFS
7254  case $as_dir in #(((
7255    '') as_dir=./ ;;
7256    */) ;;
7257    *) as_dir=$as_dir/ ;;
7258  esac
7259    for ac_prog in dd
7260   do
7261    for ac_exec_ext in '' $ac_executable_extensions; do
7262      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7263      as_fn_executable_p "$ac_path_lt_DD" || continue
7264if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7265  cmp -s conftest.i conftest.out \
7266  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7267fi
7268      $ac_path_lt_DD_found && break 3
7269    done
7270  done
7271  done
7272IFS=$as_save_IFS
7273  if test -z "$ac_cv_path_lt_DD"; then
7274    :
7275  fi
7276else
7277  ac_cv_path_lt_DD=$lt_DD
7278fi
7279
7280rm -f conftest.i conftest2.i conftest.out
7281fi
7282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7283printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7284
7285
7286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7287printf %s "checking how to truncate binary pipes... " >&6; }
7288if test ${lt_cv_truncate_bin+y}
7289then :
7290  printf %s "(cached) " >&6
7291else $as_nop
7292  printf 0123456789abcdef0123456789abcdef >conftest.i
7293cat conftest.i conftest.i >conftest2.i
7294lt_cv_truncate_bin=
7295if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7296  cmp -s conftest.i conftest.out \
7297  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7298fi
7299rm -f conftest.i conftest2.i conftest.out
7300test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7301fi
7302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7303printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7304
7305
7306
7307
7308
7309
7310
7311# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7312func_cc_basename ()
7313{
7314    for cc_temp in $*""; do
7315      case $cc_temp in
7316        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7317        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7318        \-*) ;;
7319        *) break;;
7320      esac
7321    done
7322    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7323}
7324
7325# Check whether --enable-libtool-lock was given.
7326if test ${enable_libtool_lock+y}
7327then :
7328  enableval=$enable_libtool_lock;
7329fi
7330
7331test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7332
7333# Some flags need to be propagated to the compiler or linker for good
7334# libtool support.
7335case $host in
7336ia64-*-hpux*)
7337  # Find out what ABI is being produced by ac_compile, and set mode
7338  # options accordingly.
7339  echo 'int i;' > conftest.$ac_ext
7340  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7341  (eval $ac_compile) 2>&5
7342  ac_status=$?
7343  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7344  test $ac_status = 0; }; then
7345    case `/usr/bin/file conftest.$ac_objext` in
7346      *ELF-32*)
7347	HPUX_IA64_MODE=32
7348	;;
7349      *ELF-64*)
7350	HPUX_IA64_MODE=64
7351	;;
7352    esac
7353  fi
7354  rm -rf conftest*
7355  ;;
7356*-*-irix6*)
7357  # Find out what ABI is being produced by ac_compile, and set linker
7358  # options accordingly.
7359  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7360  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7361  (eval $ac_compile) 2>&5
7362  ac_status=$?
7363  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7364  test $ac_status = 0; }; then
7365    if test yes = "$lt_cv_prog_gnu_ld"; then
7366      case `/usr/bin/file conftest.$ac_objext` in
7367	*32-bit*)
7368	  LD="${LD-ld} -melf32bsmip"
7369	  ;;
7370	*N32*)
7371	  LD="${LD-ld} -melf32bmipn32"
7372	  ;;
7373	*64-bit*)
7374	  LD="${LD-ld} -melf64bmip"
7375	;;
7376      esac
7377    else
7378      case `/usr/bin/file conftest.$ac_objext` in
7379	*32-bit*)
7380	  LD="${LD-ld} -32"
7381	  ;;
7382	*N32*)
7383	  LD="${LD-ld} -n32"
7384	  ;;
7385	*64-bit*)
7386	  LD="${LD-ld} -64"
7387	  ;;
7388      esac
7389    fi
7390  fi
7391  rm -rf conftest*
7392  ;;
7393
7394mips64*-*linux*)
7395  # Find out what ABI is being produced by ac_compile, and set linker
7396  # options accordingly.
7397  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7398  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7399  (eval $ac_compile) 2>&5
7400  ac_status=$?
7401  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7402  test $ac_status = 0; }; then
7403    emul=elf
7404    case `/usr/bin/file conftest.$ac_objext` in
7405      *32-bit*)
7406	emul="${emul}32"
7407	;;
7408      *64-bit*)
7409	emul="${emul}64"
7410	;;
7411    esac
7412    case `/usr/bin/file conftest.$ac_objext` in
7413      *MSB*)
7414	emul="${emul}btsmip"
7415	;;
7416      *LSB*)
7417	emul="${emul}ltsmip"
7418	;;
7419    esac
7420    case `/usr/bin/file conftest.$ac_objext` in
7421      *N32*)
7422	emul="${emul}n32"
7423	;;
7424    esac
7425    LD="${LD-ld} -m $emul"
7426  fi
7427  rm -rf conftest*
7428  ;;
7429
7430x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7431s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7432  # Find out what ABI is being produced by ac_compile, and set linker
7433  # options accordingly.  Note that the listed cases only cover the
7434  # situations where additional linker options are needed (such as when
7435  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7436  # vice versa); the common cases where no linker options are needed do
7437  # not appear in the list.
7438  echo 'int i;' > conftest.$ac_ext
7439  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7440  (eval $ac_compile) 2>&5
7441  ac_status=$?
7442  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7443  test $ac_status = 0; }; then
7444    case `/usr/bin/file conftest.o` in
7445      *32-bit*)
7446	case $host in
7447	  x86_64-*kfreebsd*-gnu)
7448	    LD="${LD-ld} -m elf_i386_fbsd"
7449	    ;;
7450	  x86_64-*linux*)
7451	    case `/usr/bin/file conftest.o` in
7452	      *x86-64*)
7453		LD="${LD-ld} -m elf32_x86_64"
7454		;;
7455	      *)
7456		LD="${LD-ld} -m elf_i386"
7457		;;
7458	    esac
7459	    ;;
7460	  powerpc64le-*linux*)
7461	    LD="${LD-ld} -m elf32lppclinux"
7462	    ;;
7463	  powerpc64-*linux*)
7464	    LD="${LD-ld} -m elf32ppclinux"
7465	    ;;
7466	  s390x-*linux*)
7467	    LD="${LD-ld} -m elf_s390"
7468	    ;;
7469	  sparc64-*linux*)
7470	    LD="${LD-ld} -m elf32_sparc"
7471	    ;;
7472	esac
7473	;;
7474      *64-bit*)
7475	case $host in
7476	  x86_64-*kfreebsd*-gnu)
7477	    LD="${LD-ld} -m elf_x86_64_fbsd"
7478	    ;;
7479	  x86_64-*linux*)
7480	    LD="${LD-ld} -m elf_x86_64"
7481	    ;;
7482	  powerpcle-*linux*)
7483	    LD="${LD-ld} -m elf64lppc"
7484	    ;;
7485	  powerpc-*linux*)
7486	    LD="${LD-ld} -m elf64ppc"
7487	    ;;
7488	  s390*-*linux*|s390*-*tpf*)
7489	    LD="${LD-ld} -m elf64_s390"
7490	    ;;
7491	  sparc*-*linux*)
7492	    LD="${LD-ld} -m elf64_sparc"
7493	    ;;
7494	esac
7495	;;
7496    esac
7497  fi
7498  rm -rf conftest*
7499  ;;
7500
7501*-*-sco3.2v5*)
7502  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7503  SAVE_CFLAGS=$CFLAGS
7504  CFLAGS="$CFLAGS -belf"
7505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7506printf %s "checking whether the C compiler needs -belf... " >&6; }
7507if test ${lt_cv_cc_needs_belf+y}
7508then :
7509  printf %s "(cached) " >&6
7510else $as_nop
7511  ac_ext=c
7512ac_cpp='$CPP $CPPFLAGS'
7513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7515ac_compiler_gnu=$ac_cv_c_compiler_gnu
7516
7517     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518/* end confdefs.h.  */
7519
7520int
7521main (void)
7522{
7523
7524  ;
7525  return 0;
7526}
7527_ACEOF
7528if ac_fn_c_try_link "$LINENO"
7529then :
7530  lt_cv_cc_needs_belf=yes
7531else $as_nop
7532  lt_cv_cc_needs_belf=no
7533fi
7534rm -f core conftest.err conftest.$ac_objext conftest.beam \
7535    conftest$ac_exeext conftest.$ac_ext
7536     ac_ext=c
7537ac_cpp='$CPP $CPPFLAGS'
7538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7540ac_compiler_gnu=$ac_cv_c_compiler_gnu
7541
7542fi
7543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7544printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7545  if test yes != "$lt_cv_cc_needs_belf"; then
7546    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7547    CFLAGS=$SAVE_CFLAGS
7548  fi
7549  ;;
7550*-*solaris*)
7551  # Find out what ABI is being produced by ac_compile, and set linker
7552  # options accordingly.
7553  echo 'int i;' > conftest.$ac_ext
7554  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7555  (eval $ac_compile) 2>&5
7556  ac_status=$?
7557  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7558  test $ac_status = 0; }; then
7559    case `/usr/bin/file conftest.o` in
7560    *64-bit*)
7561      case $lt_cv_prog_gnu_ld in
7562      yes*)
7563        case $host in
7564        i?86-*-solaris*|x86_64-*-solaris*)
7565          LD="${LD-ld} -m elf_x86_64"
7566          ;;
7567        sparc*-*-solaris*)
7568          LD="${LD-ld} -m elf64_sparc"
7569          ;;
7570        esac
7571        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7572        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7573          LD=${LD-ld}_sol2
7574        fi
7575        ;;
7576      *)
7577	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7578	  LD="${LD-ld} -64"
7579	fi
7580	;;
7581      esac
7582      ;;
7583    esac
7584  fi
7585  rm -rf conftest*
7586  ;;
7587esac
7588
7589need_locks=$enable_libtool_lock
7590
7591if test -n "$ac_tool_prefix"; then
7592  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7593set dummy ${ac_tool_prefix}mt; ac_word=$2
7594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7595printf %s "checking for $ac_word... " >&6; }
7596if test ${ac_cv_prog_MANIFEST_TOOL+y}
7597then :
7598  printf %s "(cached) " >&6
7599else $as_nop
7600  if test -n "$MANIFEST_TOOL"; then
7601  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7602else
7603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604for as_dir in $PATH
7605do
7606  IFS=$as_save_IFS
7607  case $as_dir in #(((
7608    '') as_dir=./ ;;
7609    */) ;;
7610    *) as_dir=$as_dir/ ;;
7611  esac
7612    for ac_exec_ext in '' $ac_executable_extensions; do
7613  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7614    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7615    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7616    break 2
7617  fi
7618done
7619  done
7620IFS=$as_save_IFS
7621
7622fi
7623fi
7624MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7625if test -n "$MANIFEST_TOOL"; then
7626  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7627printf "%s\n" "$MANIFEST_TOOL" >&6; }
7628else
7629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630printf "%s\n" "no" >&6; }
7631fi
7632
7633
7634fi
7635if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7636  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7637  # Extract the first word of "mt", so it can be a program name with args.
7638set dummy mt; ac_word=$2
7639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640printf %s "checking for $ac_word... " >&6; }
7641if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7642then :
7643  printf %s "(cached) " >&6
7644else $as_nop
7645  if test -n "$ac_ct_MANIFEST_TOOL"; then
7646  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7647else
7648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649for as_dir in $PATH
7650do
7651  IFS=$as_save_IFS
7652  case $as_dir in #(((
7653    '') as_dir=./ ;;
7654    */) ;;
7655    *) as_dir=$as_dir/ ;;
7656  esac
7657    for ac_exec_ext in '' $ac_executable_extensions; do
7658  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7659    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7660    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7661    break 2
7662  fi
7663done
7664  done
7665IFS=$as_save_IFS
7666
7667fi
7668fi
7669ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7670if test -n "$ac_ct_MANIFEST_TOOL"; then
7671  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7672printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7673else
7674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675printf "%s\n" "no" >&6; }
7676fi
7677
7678  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7679    MANIFEST_TOOL=":"
7680  else
7681    case $cross_compiling:$ac_tool_warned in
7682yes:)
7683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7684printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7685ac_tool_warned=yes ;;
7686esac
7687    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7688  fi
7689else
7690  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7691fi
7692
7693test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7695printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7696if test ${lt_cv_path_mainfest_tool+y}
7697then :
7698  printf %s "(cached) " >&6
7699else $as_nop
7700  lt_cv_path_mainfest_tool=no
7701  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7702  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7703  cat conftest.err >&5
7704  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7705    lt_cv_path_mainfest_tool=yes
7706  fi
7707  rm -f conftest*
7708fi
7709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7710printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7711if test yes != "$lt_cv_path_mainfest_tool"; then
7712  MANIFEST_TOOL=:
7713fi
7714
7715
7716
7717
7718
7719
7720  case $host_os in
7721    rhapsody* | darwin*)
7722    if test -n "$ac_tool_prefix"; then
7723  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7724set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7726printf %s "checking for $ac_word... " >&6; }
7727if test ${ac_cv_prog_DSYMUTIL+y}
7728then :
7729  printf %s "(cached) " >&6
7730else $as_nop
7731  if test -n "$DSYMUTIL"; then
7732  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7733else
7734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735for as_dir in $PATH
7736do
7737  IFS=$as_save_IFS
7738  case $as_dir in #(((
7739    '') as_dir=./ ;;
7740    */) ;;
7741    *) as_dir=$as_dir/ ;;
7742  esac
7743    for ac_exec_ext in '' $ac_executable_extensions; do
7744  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7745    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7746    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7747    break 2
7748  fi
7749done
7750  done
7751IFS=$as_save_IFS
7752
7753fi
7754fi
7755DSYMUTIL=$ac_cv_prog_DSYMUTIL
7756if test -n "$DSYMUTIL"; then
7757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7758printf "%s\n" "$DSYMUTIL" >&6; }
7759else
7760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761printf "%s\n" "no" >&6; }
7762fi
7763
7764
7765fi
7766if test -z "$ac_cv_prog_DSYMUTIL"; then
7767  ac_ct_DSYMUTIL=$DSYMUTIL
7768  # Extract the first word of "dsymutil", so it can be a program name with args.
7769set dummy dsymutil; ac_word=$2
7770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771printf %s "checking for $ac_word... " >&6; }
7772if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7773then :
7774  printf %s "(cached) " >&6
7775else $as_nop
7776  if test -n "$ac_ct_DSYMUTIL"; then
7777  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7778else
7779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780for as_dir in $PATH
7781do
7782  IFS=$as_save_IFS
7783  case $as_dir in #(((
7784    '') as_dir=./ ;;
7785    */) ;;
7786    *) as_dir=$as_dir/ ;;
7787  esac
7788    for ac_exec_ext in '' $ac_executable_extensions; do
7789  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7790    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7791    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7792    break 2
7793  fi
7794done
7795  done
7796IFS=$as_save_IFS
7797
7798fi
7799fi
7800ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7801if test -n "$ac_ct_DSYMUTIL"; then
7802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7803printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7804else
7805  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806printf "%s\n" "no" >&6; }
7807fi
7808
7809  if test "x$ac_ct_DSYMUTIL" = x; then
7810    DSYMUTIL=":"
7811  else
7812    case $cross_compiling:$ac_tool_warned in
7813yes:)
7814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7815printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7816ac_tool_warned=yes ;;
7817esac
7818    DSYMUTIL=$ac_ct_DSYMUTIL
7819  fi
7820else
7821  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7822fi
7823
7824    if test -n "$ac_tool_prefix"; then
7825  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7826set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828printf %s "checking for $ac_word... " >&6; }
7829if test ${ac_cv_prog_NMEDIT+y}
7830then :
7831  printf %s "(cached) " >&6
7832else $as_nop
7833  if test -n "$NMEDIT"; then
7834  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7835else
7836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837for as_dir in $PATH
7838do
7839  IFS=$as_save_IFS
7840  case $as_dir in #(((
7841    '') as_dir=./ ;;
7842    */) ;;
7843    *) as_dir=$as_dir/ ;;
7844  esac
7845    for ac_exec_ext in '' $ac_executable_extensions; do
7846  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7847    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7848    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7849    break 2
7850  fi
7851done
7852  done
7853IFS=$as_save_IFS
7854
7855fi
7856fi
7857NMEDIT=$ac_cv_prog_NMEDIT
7858if test -n "$NMEDIT"; then
7859  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7860printf "%s\n" "$NMEDIT" >&6; }
7861else
7862  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863printf "%s\n" "no" >&6; }
7864fi
7865
7866
7867fi
7868if test -z "$ac_cv_prog_NMEDIT"; then
7869  ac_ct_NMEDIT=$NMEDIT
7870  # Extract the first word of "nmedit", so it can be a program name with args.
7871set dummy nmedit; ac_word=$2
7872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873printf %s "checking for $ac_word... " >&6; }
7874if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7875then :
7876  printf %s "(cached) " >&6
7877else $as_nop
7878  if test -n "$ac_ct_NMEDIT"; then
7879  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7880else
7881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882for as_dir in $PATH
7883do
7884  IFS=$as_save_IFS
7885  case $as_dir in #(((
7886    '') as_dir=./ ;;
7887    */) ;;
7888    *) as_dir=$as_dir/ ;;
7889  esac
7890    for ac_exec_ext in '' $ac_executable_extensions; do
7891  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7892    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7893    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7894    break 2
7895  fi
7896done
7897  done
7898IFS=$as_save_IFS
7899
7900fi
7901fi
7902ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7903if test -n "$ac_ct_NMEDIT"; then
7904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7905printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7906else
7907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908printf "%s\n" "no" >&6; }
7909fi
7910
7911  if test "x$ac_ct_NMEDIT" = x; then
7912    NMEDIT=":"
7913  else
7914    case $cross_compiling:$ac_tool_warned in
7915yes:)
7916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7917printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7918ac_tool_warned=yes ;;
7919esac
7920    NMEDIT=$ac_ct_NMEDIT
7921  fi
7922else
7923  NMEDIT="$ac_cv_prog_NMEDIT"
7924fi
7925
7926    if test -n "$ac_tool_prefix"; then
7927  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7928set dummy ${ac_tool_prefix}lipo; ac_word=$2
7929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930printf %s "checking for $ac_word... " >&6; }
7931if test ${ac_cv_prog_LIPO+y}
7932then :
7933  printf %s "(cached) " >&6
7934else $as_nop
7935  if test -n "$LIPO"; then
7936  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7937else
7938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939for as_dir in $PATH
7940do
7941  IFS=$as_save_IFS
7942  case $as_dir in #(((
7943    '') as_dir=./ ;;
7944    */) ;;
7945    *) as_dir=$as_dir/ ;;
7946  esac
7947    for ac_exec_ext in '' $ac_executable_extensions; do
7948  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7949    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7950    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7951    break 2
7952  fi
7953done
7954  done
7955IFS=$as_save_IFS
7956
7957fi
7958fi
7959LIPO=$ac_cv_prog_LIPO
7960if test -n "$LIPO"; then
7961  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7962printf "%s\n" "$LIPO" >&6; }
7963else
7964  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965printf "%s\n" "no" >&6; }
7966fi
7967
7968
7969fi
7970if test -z "$ac_cv_prog_LIPO"; then
7971  ac_ct_LIPO=$LIPO
7972  # Extract the first word of "lipo", so it can be a program name with args.
7973set dummy lipo; ac_word=$2
7974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975printf %s "checking for $ac_word... " >&6; }
7976if test ${ac_cv_prog_ac_ct_LIPO+y}
7977then :
7978  printf %s "(cached) " >&6
7979else $as_nop
7980  if test -n "$ac_ct_LIPO"; then
7981  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7982else
7983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984for as_dir in $PATH
7985do
7986  IFS=$as_save_IFS
7987  case $as_dir in #(((
7988    '') as_dir=./ ;;
7989    */) ;;
7990    *) as_dir=$as_dir/ ;;
7991  esac
7992    for ac_exec_ext in '' $ac_executable_extensions; do
7993  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7994    ac_cv_prog_ac_ct_LIPO="lipo"
7995    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7996    break 2
7997  fi
7998done
7999  done
8000IFS=$as_save_IFS
8001
8002fi
8003fi
8004ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8005if test -n "$ac_ct_LIPO"; then
8006  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8007printf "%s\n" "$ac_ct_LIPO" >&6; }
8008else
8009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010printf "%s\n" "no" >&6; }
8011fi
8012
8013  if test "x$ac_ct_LIPO" = x; then
8014    LIPO=":"
8015  else
8016    case $cross_compiling:$ac_tool_warned in
8017yes:)
8018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8019printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8020ac_tool_warned=yes ;;
8021esac
8022    LIPO=$ac_ct_LIPO
8023  fi
8024else
8025  LIPO="$ac_cv_prog_LIPO"
8026fi
8027
8028    if test -n "$ac_tool_prefix"; then
8029  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8030set dummy ${ac_tool_prefix}otool; ac_word=$2
8031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032printf %s "checking for $ac_word... " >&6; }
8033if test ${ac_cv_prog_OTOOL+y}
8034then :
8035  printf %s "(cached) " >&6
8036else $as_nop
8037  if test -n "$OTOOL"; then
8038  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8039else
8040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041for as_dir in $PATH
8042do
8043  IFS=$as_save_IFS
8044  case $as_dir in #(((
8045    '') as_dir=./ ;;
8046    */) ;;
8047    *) as_dir=$as_dir/ ;;
8048  esac
8049    for ac_exec_ext in '' $ac_executable_extensions; do
8050  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8051    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8052    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8053    break 2
8054  fi
8055done
8056  done
8057IFS=$as_save_IFS
8058
8059fi
8060fi
8061OTOOL=$ac_cv_prog_OTOOL
8062if test -n "$OTOOL"; then
8063  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8064printf "%s\n" "$OTOOL" >&6; }
8065else
8066  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067printf "%s\n" "no" >&6; }
8068fi
8069
8070
8071fi
8072if test -z "$ac_cv_prog_OTOOL"; then
8073  ac_ct_OTOOL=$OTOOL
8074  # Extract the first word of "otool", so it can be a program name with args.
8075set dummy otool; ac_word=$2
8076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077printf %s "checking for $ac_word... " >&6; }
8078if test ${ac_cv_prog_ac_ct_OTOOL+y}
8079then :
8080  printf %s "(cached) " >&6
8081else $as_nop
8082  if test -n "$ac_ct_OTOOL"; then
8083  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8084else
8085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086for as_dir in $PATH
8087do
8088  IFS=$as_save_IFS
8089  case $as_dir in #(((
8090    '') as_dir=./ ;;
8091    */) ;;
8092    *) as_dir=$as_dir/ ;;
8093  esac
8094    for ac_exec_ext in '' $ac_executable_extensions; do
8095  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8096    ac_cv_prog_ac_ct_OTOOL="otool"
8097    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8098    break 2
8099  fi
8100done
8101  done
8102IFS=$as_save_IFS
8103
8104fi
8105fi
8106ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8107if test -n "$ac_ct_OTOOL"; then
8108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8109printf "%s\n" "$ac_ct_OTOOL" >&6; }
8110else
8111  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112printf "%s\n" "no" >&6; }
8113fi
8114
8115  if test "x$ac_ct_OTOOL" = x; then
8116    OTOOL=":"
8117  else
8118    case $cross_compiling:$ac_tool_warned in
8119yes:)
8120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8121printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8122ac_tool_warned=yes ;;
8123esac
8124    OTOOL=$ac_ct_OTOOL
8125  fi
8126else
8127  OTOOL="$ac_cv_prog_OTOOL"
8128fi
8129
8130    if test -n "$ac_tool_prefix"; then
8131  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8132set dummy ${ac_tool_prefix}otool64; ac_word=$2
8133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134printf %s "checking for $ac_word... " >&6; }
8135if test ${ac_cv_prog_OTOOL64+y}
8136then :
8137  printf %s "(cached) " >&6
8138else $as_nop
8139  if test -n "$OTOOL64"; then
8140  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8141else
8142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143for as_dir in $PATH
8144do
8145  IFS=$as_save_IFS
8146  case $as_dir in #(((
8147    '') as_dir=./ ;;
8148    */) ;;
8149    *) as_dir=$as_dir/ ;;
8150  esac
8151    for ac_exec_ext in '' $ac_executable_extensions; do
8152  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8153    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8154    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8155    break 2
8156  fi
8157done
8158  done
8159IFS=$as_save_IFS
8160
8161fi
8162fi
8163OTOOL64=$ac_cv_prog_OTOOL64
8164if test -n "$OTOOL64"; then
8165  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8166printf "%s\n" "$OTOOL64" >&6; }
8167else
8168  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8169printf "%s\n" "no" >&6; }
8170fi
8171
8172
8173fi
8174if test -z "$ac_cv_prog_OTOOL64"; then
8175  ac_ct_OTOOL64=$OTOOL64
8176  # Extract the first word of "otool64", so it can be a program name with args.
8177set dummy otool64; ac_word=$2
8178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8179printf %s "checking for $ac_word... " >&6; }
8180if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8181then :
8182  printf %s "(cached) " >&6
8183else $as_nop
8184  if test -n "$ac_ct_OTOOL64"; then
8185  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8186else
8187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188for as_dir in $PATH
8189do
8190  IFS=$as_save_IFS
8191  case $as_dir in #(((
8192    '') as_dir=./ ;;
8193    */) ;;
8194    *) as_dir=$as_dir/ ;;
8195  esac
8196    for ac_exec_ext in '' $ac_executable_extensions; do
8197  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8198    ac_cv_prog_ac_ct_OTOOL64="otool64"
8199    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8200    break 2
8201  fi
8202done
8203  done
8204IFS=$as_save_IFS
8205
8206fi
8207fi
8208ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8209if test -n "$ac_ct_OTOOL64"; then
8210  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8211printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8212else
8213  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8214printf "%s\n" "no" >&6; }
8215fi
8216
8217  if test "x$ac_ct_OTOOL64" = x; then
8218    OTOOL64=":"
8219  else
8220    case $cross_compiling:$ac_tool_warned in
8221yes:)
8222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8223printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8224ac_tool_warned=yes ;;
8225esac
8226    OTOOL64=$ac_ct_OTOOL64
8227  fi
8228else
8229  OTOOL64="$ac_cv_prog_OTOOL64"
8230fi
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8259printf %s "checking for -single_module linker flag... " >&6; }
8260if test ${lt_cv_apple_cc_single_mod+y}
8261then :
8262  printf %s "(cached) " >&6
8263else $as_nop
8264  lt_cv_apple_cc_single_mod=no
8265      if test -z "$LT_MULTI_MODULE"; then
8266	# By default we will add the -single_module flag. You can override
8267	# by either setting the environment variable LT_MULTI_MODULE
8268	# non-empty at configure time, or by adding -multi_module to the
8269	# link flags.
8270	rm -rf libconftest.dylib*
8271	echo "int foo(void){return 1;}" > conftest.c
8272	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8273-dynamiclib -Wl,-single_module conftest.c" >&5
8274	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8275	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8276        _lt_result=$?
8277	# If there is a non-empty error log, and "single_module"
8278	# appears in it, assume the flag caused a linker warning
8279        if test -s conftest.err && $GREP single_module conftest.err; then
8280	  cat conftest.err >&5
8281	# Otherwise, if the output was created with a 0 exit code from
8282	# the compiler, it worked.
8283	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8284	  lt_cv_apple_cc_single_mod=yes
8285	else
8286	  cat conftest.err >&5
8287	fi
8288	rm -rf libconftest.dylib*
8289	rm -f conftest.*
8290      fi
8291fi
8292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8293printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8294
8295    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8296printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8297if test ${lt_cv_ld_exported_symbols_list+y}
8298then :
8299  printf %s "(cached) " >&6
8300else $as_nop
8301  lt_cv_ld_exported_symbols_list=no
8302      save_LDFLAGS=$LDFLAGS
8303      echo "_main" > conftest.sym
8304      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8305      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306/* end confdefs.h.  */
8307
8308int
8309main (void)
8310{
8311
8312  ;
8313  return 0;
8314}
8315_ACEOF
8316if ac_fn_c_try_link "$LINENO"
8317then :
8318  lt_cv_ld_exported_symbols_list=yes
8319else $as_nop
8320  lt_cv_ld_exported_symbols_list=no
8321fi
8322rm -f core conftest.err conftest.$ac_objext conftest.beam \
8323    conftest$ac_exeext conftest.$ac_ext
8324	LDFLAGS=$save_LDFLAGS
8325
8326fi
8327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8328printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8329
8330    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8331printf %s "checking for -force_load linker flag... " >&6; }
8332if test ${lt_cv_ld_force_load+y}
8333then :
8334  printf %s "(cached) " >&6
8335else $as_nop
8336  lt_cv_ld_force_load=no
8337      cat > conftest.c << _LT_EOF
8338int forced_loaded() { return 2;}
8339_LT_EOF
8340      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8341      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8342      echo "$AR cru libconftest.a conftest.o" >&5
8343      $AR cru libconftest.a conftest.o 2>&5
8344      echo "$RANLIB libconftest.a" >&5
8345      $RANLIB libconftest.a 2>&5
8346      cat > conftest.c << _LT_EOF
8347int main() { return 0;}
8348_LT_EOF
8349      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8350      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8351      _lt_result=$?
8352      if test -s conftest.err && $GREP force_load conftest.err; then
8353	cat conftest.err >&5
8354      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8355	lt_cv_ld_force_load=yes
8356      else
8357	cat conftest.err >&5
8358      fi
8359        rm -f conftest.err libconftest.a conftest conftest.c
8360        rm -rf conftest.dSYM
8361
8362fi
8363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8364printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8365    case $host_os in
8366    rhapsody* | darwin1.[012])
8367      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8368    darwin1.*)
8369      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8370    darwin*) # darwin 5.x on
8371      # if running on 10.5 or later, the deployment target defaults
8372      # to the OS version, if on x86, and 10.4, the deployment
8373      # target defaults to 10.4. Don't you love it?
8374      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8375	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8376	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8377	10.[012][,.]*)
8378	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8379	10.*)
8380	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8381      esac
8382    ;;
8383  esac
8384    if test yes = "$lt_cv_apple_cc_single_mod"; then
8385      _lt_dar_single_mod='$single_module'
8386    fi
8387    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8388      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8389    else
8390      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8391    fi
8392    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8393      _lt_dsymutil='~$DSYMUTIL $lib || :'
8394    else
8395      _lt_dsymutil=
8396    fi
8397    ;;
8398  esac
8399
8400# func_munge_path_list VARIABLE PATH
8401# -----------------------------------
8402# VARIABLE is name of variable containing _space_ separated list of
8403# directories to be munged by the contents of PATH, which is string
8404# having a format:
8405# "DIR[:DIR]:"
8406#       string "DIR[ DIR]" will be prepended to VARIABLE
8407# ":DIR[:DIR]"
8408#       string "DIR[ DIR]" will be appended to VARIABLE
8409# "DIRP[:DIRP]::[DIRA:]DIRA"
8410#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8411#       "DIRA[ DIRA]" will be appended to VARIABLE
8412# "DIR[:DIR]"
8413#       VARIABLE will be replaced by "DIR[ DIR]"
8414func_munge_path_list ()
8415{
8416    case x$2 in
8417    x)
8418        ;;
8419    *:)
8420        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8421        ;;
8422    x:*)
8423        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8424        ;;
8425    *::*)
8426        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8427        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8428        ;;
8429    *)
8430        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8431        ;;
8432    esac
8433}
8434
8435ac_header= ac_cache=
8436for ac_item in $ac_header_c_list
8437do
8438  if test $ac_cache; then
8439    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8440    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8441      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8442    fi
8443    ac_header= ac_cache=
8444  elif test $ac_header; then
8445    ac_cache=$ac_item
8446  else
8447    ac_header=$ac_item
8448  fi
8449done
8450
8451
8452
8453
8454
8455
8456
8457
8458if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8459then :
8460
8461printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8462
8463fi
8464ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8465"
8466if test "x$ac_cv_header_dlfcn_h" = xyes
8467then :
8468  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8469
8470fi
8471
8472
8473
8474
8475
8476# Set options
8477
8478
8479
8480        enable_dlopen=no
8481
8482
8483  enable_win32_dll=no
8484
8485
8486            # Check whether --enable-shared was given.
8487if test ${enable_shared+y}
8488then :
8489  enableval=$enable_shared; p=${PACKAGE-default}
8490    case $enableval in
8491    yes) enable_shared=yes ;;
8492    no) enable_shared=no ;;
8493    *)
8494      enable_shared=no
8495      # Look at the argument we got.  We use all the common list separators.
8496      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8497      for pkg in $enableval; do
8498	IFS=$lt_save_ifs
8499	if test "X$pkg" = "X$p"; then
8500	  enable_shared=yes
8501	fi
8502      done
8503      IFS=$lt_save_ifs
8504      ;;
8505    esac
8506else $as_nop
8507  enable_shared=yes
8508fi
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518  # Check whether --enable-static was given.
8519if test ${enable_static+y}
8520then :
8521  enableval=$enable_static; p=${PACKAGE-default}
8522    case $enableval in
8523    yes) enable_static=yes ;;
8524    no) enable_static=no ;;
8525    *)
8526     enable_static=no
8527      # Look at the argument we got.  We use all the common list separators.
8528      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8529      for pkg in $enableval; do
8530	IFS=$lt_save_ifs
8531	if test "X$pkg" = "X$p"; then
8532	  enable_static=yes
8533	fi
8534      done
8535      IFS=$lt_save_ifs
8536      ;;
8537    esac
8538else $as_nop
8539  enable_static=yes
8540fi
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551# Check whether --with-pic was given.
8552if test ${with_pic+y}
8553then :
8554  withval=$with_pic; lt_p=${PACKAGE-default}
8555    case $withval in
8556    yes|no) pic_mode=$withval ;;
8557    *)
8558      pic_mode=default
8559      # Look at the argument we got.  We use all the common list separators.
8560      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8561      for lt_pkg in $withval; do
8562	IFS=$lt_save_ifs
8563	if test "X$lt_pkg" = "X$lt_p"; then
8564	  pic_mode=yes
8565	fi
8566      done
8567      IFS=$lt_save_ifs
8568      ;;
8569    esac
8570else $as_nop
8571  pic_mode=default
8572fi
8573
8574
8575
8576
8577
8578
8579
8580
8581  # Check whether --enable-fast-install was given.
8582if test ${enable_fast_install+y}
8583then :
8584  enableval=$enable_fast_install; p=${PACKAGE-default}
8585    case $enableval in
8586    yes) enable_fast_install=yes ;;
8587    no) enable_fast_install=no ;;
8588    *)
8589      enable_fast_install=no
8590      # Look at the argument we got.  We use all the common list separators.
8591      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8592      for pkg in $enableval; do
8593	IFS=$lt_save_ifs
8594	if test "X$pkg" = "X$p"; then
8595	  enable_fast_install=yes
8596	fi
8597      done
8598      IFS=$lt_save_ifs
8599      ;;
8600    esac
8601else $as_nop
8602  enable_fast_install=yes
8603fi
8604
8605
8606
8607
8608
8609
8610
8611
8612  shared_archive_member_spec=
8613case $host,$enable_shared in
8614power*-*-aix[5-9]*,yes)
8615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8616printf %s "checking which variant of shared library versioning to provide... " >&6; }
8617
8618# Check whether --with-aix-soname was given.
8619if test ${with_aix_soname+y}
8620then :
8621  withval=$with_aix_soname; case $withval in
8622    aix|svr4|both)
8623      ;;
8624    *)
8625      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8626      ;;
8627    esac
8628    lt_cv_with_aix_soname=$with_aix_soname
8629else $as_nop
8630  if test ${lt_cv_with_aix_soname+y}
8631then :
8632  printf %s "(cached) " >&6
8633else $as_nop
8634  lt_cv_with_aix_soname=aix
8635fi
8636
8637    with_aix_soname=$lt_cv_with_aix_soname
8638fi
8639
8640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8641printf "%s\n" "$with_aix_soname" >&6; }
8642  if test aix != "$with_aix_soname"; then
8643    # For the AIX way of multilib, we name the shared archive member
8644    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8645    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8646    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8647    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8648    if test 64 = "${OBJECT_MODE-32}"; then
8649      shared_archive_member_spec=shr_64
8650    else
8651      shared_archive_member_spec=shr
8652    fi
8653  fi
8654  ;;
8655*)
8656  with_aix_soname=aix
8657  ;;
8658esac
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669# This can be used to rebuild libtool when needed
8670LIBTOOL_DEPS=$ltmain
8671
8672# Always use our own libtool.
8673LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704test -z "$LN_S" && LN_S="ln -s"
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719if test -n "${ZSH_VERSION+set}"; then
8720   setopt NO_GLOB_SUBST
8721fi
8722
8723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8724printf %s "checking for objdir... " >&6; }
8725if test ${lt_cv_objdir+y}
8726then :
8727  printf %s "(cached) " >&6
8728else $as_nop
8729  rm -f .libs 2>/dev/null
8730mkdir .libs 2>/dev/null
8731if test -d .libs; then
8732  lt_cv_objdir=.libs
8733else
8734  # MS-DOS does not allow filenames that begin with a dot.
8735  lt_cv_objdir=_libs
8736fi
8737rmdir .libs 2>/dev/null
8738fi
8739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8740printf "%s\n" "$lt_cv_objdir" >&6; }
8741objdir=$lt_cv_objdir
8742
8743
8744
8745
8746
8747printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8748
8749
8750
8751
8752case $host_os in
8753aix3*)
8754  # AIX sometimes has problems with the GCC collect2 program.  For some
8755  # reason, if we set the COLLECT_NAMES environment variable, the problems
8756  # vanish in a puff of smoke.
8757  if test set != "${COLLECT_NAMES+set}"; then
8758    COLLECT_NAMES=
8759    export COLLECT_NAMES
8760  fi
8761  ;;
8762esac
8763
8764# Global variables:
8765ofile=libtool
8766can_build_shared=yes
8767
8768# All known linkers require a '.a' archive for static linking (except MSVC,
8769# which needs '.lib').
8770libext=a
8771
8772with_gnu_ld=$lt_cv_prog_gnu_ld
8773
8774old_CC=$CC
8775old_CFLAGS=$CFLAGS
8776
8777# Set sane defaults for various variables
8778test -z "$CC" && CC=cc
8779test -z "$LTCC" && LTCC=$CC
8780test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8781test -z "$LD" && LD=ld
8782test -z "$ac_objext" && ac_objext=o
8783
8784func_cc_basename $compiler
8785cc_basename=$func_cc_basename_result
8786
8787
8788# Only perform the check for file, if the check method requires it
8789test -z "$MAGIC_CMD" && MAGIC_CMD=file
8790case $deplibs_check_method in
8791file_magic*)
8792  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8793    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8794printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8795if test ${lt_cv_path_MAGIC_CMD+y}
8796then :
8797  printf %s "(cached) " >&6
8798else $as_nop
8799  case $MAGIC_CMD in
8800[\\/*] |  ?:[\\/]*)
8801  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8802  ;;
8803*)
8804  lt_save_MAGIC_CMD=$MAGIC_CMD
8805  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8806  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8807  for ac_dir in $ac_dummy; do
8808    IFS=$lt_save_ifs
8809    test -z "$ac_dir" && ac_dir=.
8810    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8811      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8812      if test -n "$file_magic_test_file"; then
8813	case $deplibs_check_method in
8814	"file_magic "*)
8815	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8816	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8817	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8818	    $EGREP "$file_magic_regex" > /dev/null; then
8819	    :
8820	  else
8821	    cat <<_LT_EOF 1>&2
8822
8823*** Warning: the command libtool uses to detect shared libraries,
8824*** $file_magic_cmd, produces output that libtool cannot recognize.
8825*** The result is that libtool may fail to recognize shared libraries
8826*** as such.  This will affect the creation of libtool libraries that
8827*** depend on shared libraries, but programs linked with such libtool
8828*** libraries will work regardless of this problem.  Nevertheless, you
8829*** may want to report the problem to your system manager and/or to
8830*** bug-libtool@gnu.org
8831
8832_LT_EOF
8833	  fi ;;
8834	esac
8835      fi
8836      break
8837    fi
8838  done
8839  IFS=$lt_save_ifs
8840  MAGIC_CMD=$lt_save_MAGIC_CMD
8841  ;;
8842esac
8843fi
8844
8845MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8846if test -n "$MAGIC_CMD"; then
8847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8848printf "%s\n" "$MAGIC_CMD" >&6; }
8849else
8850  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851printf "%s\n" "no" >&6; }
8852fi
8853
8854
8855
8856
8857
8858if test -z "$lt_cv_path_MAGIC_CMD"; then
8859  if test -n "$ac_tool_prefix"; then
8860    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8861printf %s "checking for file... " >&6; }
8862if test ${lt_cv_path_MAGIC_CMD+y}
8863then :
8864  printf %s "(cached) " >&6
8865else $as_nop
8866  case $MAGIC_CMD in
8867[\\/*] |  ?:[\\/]*)
8868  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8869  ;;
8870*)
8871  lt_save_MAGIC_CMD=$MAGIC_CMD
8872  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8873  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8874  for ac_dir in $ac_dummy; do
8875    IFS=$lt_save_ifs
8876    test -z "$ac_dir" && ac_dir=.
8877    if test -f "$ac_dir/file"; then
8878      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8879      if test -n "$file_magic_test_file"; then
8880	case $deplibs_check_method in
8881	"file_magic "*)
8882	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8883	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8884	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8885	    $EGREP "$file_magic_regex" > /dev/null; then
8886	    :
8887	  else
8888	    cat <<_LT_EOF 1>&2
8889
8890*** Warning: the command libtool uses to detect shared libraries,
8891*** $file_magic_cmd, produces output that libtool cannot recognize.
8892*** The result is that libtool may fail to recognize shared libraries
8893*** as such.  This will affect the creation of libtool libraries that
8894*** depend on shared libraries, but programs linked with such libtool
8895*** libraries will work regardless of this problem.  Nevertheless, you
8896*** may want to report the problem to your system manager and/or to
8897*** bug-libtool@gnu.org
8898
8899_LT_EOF
8900	  fi ;;
8901	esac
8902      fi
8903      break
8904    fi
8905  done
8906  IFS=$lt_save_ifs
8907  MAGIC_CMD=$lt_save_MAGIC_CMD
8908  ;;
8909esac
8910fi
8911
8912MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8913if test -n "$MAGIC_CMD"; then
8914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8915printf "%s\n" "$MAGIC_CMD" >&6; }
8916else
8917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918printf "%s\n" "no" >&6; }
8919fi
8920
8921
8922  else
8923    MAGIC_CMD=:
8924  fi
8925fi
8926
8927  fi
8928  ;;
8929esac
8930
8931# Use C for the default configuration in the libtool script
8932
8933lt_save_CC=$CC
8934ac_ext=c
8935ac_cpp='$CPP $CPPFLAGS'
8936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8938ac_compiler_gnu=$ac_cv_c_compiler_gnu
8939
8940
8941# Source file extension for C test sources.
8942ac_ext=c
8943
8944# Object file extension for compiled C test sources.
8945objext=o
8946objext=$objext
8947
8948# Code to be used in simple compile tests
8949lt_simple_compile_test_code="int some_variable = 0;"
8950
8951# Code to be used in simple link tests
8952lt_simple_link_test_code='int main(){return(0);}'
8953
8954
8955
8956
8957
8958
8959
8960# If no C compiler was specified, use CC.
8961LTCC=${LTCC-"$CC"}
8962
8963# If no C compiler flags were specified, use CFLAGS.
8964LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8965
8966# Allow CC to be a program name with arguments.
8967compiler=$CC
8968
8969# Save the default compiler, since it gets overwritten when the other
8970# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8971compiler_DEFAULT=$CC
8972
8973# save warnings/boilerplate of simple test code
8974ac_outfile=conftest.$ac_objext
8975echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8976eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8977_lt_compiler_boilerplate=`cat conftest.err`
8978$RM conftest*
8979
8980ac_outfile=conftest.$ac_objext
8981echo "$lt_simple_link_test_code" >conftest.$ac_ext
8982eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8983_lt_linker_boilerplate=`cat conftest.err`
8984$RM -r conftest*
8985
8986
8987## CAVEAT EMPTOR:
8988## There is no encapsulation within the following macros, do not change
8989## the running order or otherwise move them around unless you know exactly
8990## what you are doing...
8991if test -n "$compiler"; then
8992
8993lt_prog_compiler_no_builtin_flag=
8994
8995if test yes = "$GCC"; then
8996  case $cc_basename in
8997  nvcc*)
8998    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8999  *)
9000    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9001  esac
9002
9003  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9004printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9005if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9006then :
9007  printf %s "(cached) " >&6
9008else $as_nop
9009  lt_cv_prog_compiler_rtti_exceptions=no
9010   ac_outfile=conftest.$ac_objext
9011   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9012   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9013   # Insert the option either (1) after the last *FLAGS variable, or
9014   # (2) before a word containing "conftest.", or (3) at the end.
9015   # Note that $ac_compile itself does not contain backslashes and begins
9016   # with a dollar sign (not a hyphen), so the echo should work correctly.
9017   # The option is referenced via a variable to avoid confusing sed.
9018   lt_compile=`echo "$ac_compile" | $SED \
9019   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9020   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9021   -e 's:$: $lt_compiler_flag:'`
9022   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9023   (eval "$lt_compile" 2>conftest.err)
9024   ac_status=$?
9025   cat conftest.err >&5
9026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027   if (exit $ac_status) && test -s "$ac_outfile"; then
9028     # The compiler can only warn and ignore the option if not recognized
9029     # So say no if there are warnings other than the usual output.
9030     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9031     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9032     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9033       lt_cv_prog_compiler_rtti_exceptions=yes
9034     fi
9035   fi
9036   $RM conftest*
9037
9038fi
9039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9040printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9041
9042if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9043    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9044else
9045    :
9046fi
9047
9048fi
9049
9050
9051
9052
9053
9054
9055  lt_prog_compiler_wl=
9056lt_prog_compiler_pic=
9057lt_prog_compiler_static=
9058
9059
9060  if test yes = "$GCC"; then
9061    lt_prog_compiler_wl='-Wl,'
9062    lt_prog_compiler_static='-static'
9063
9064    case $host_os in
9065      aix*)
9066      # All AIX code is PIC.
9067      if test ia64 = "$host_cpu"; then
9068	# AIX 5 now supports IA64 processor
9069	lt_prog_compiler_static='-Bstatic'
9070      fi
9071      lt_prog_compiler_pic='-fPIC'
9072      ;;
9073
9074    amigaos*)
9075      case $host_cpu in
9076      powerpc)
9077            # see comment about AmigaOS4 .so support
9078            lt_prog_compiler_pic='-fPIC'
9079        ;;
9080      m68k)
9081            # FIXME: we need at least 68020 code to build shared libraries, but
9082            # adding the '-m68020' flag to GCC prevents building anything better,
9083            # like '-m68040'.
9084            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9085        ;;
9086      esac
9087      ;;
9088
9089    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9090      # PIC is the default for these OSes.
9091      ;;
9092
9093    mingw* | cygwin* | pw32* | os2* | cegcc*)
9094      # This hack is so that the source file can tell whether it is being
9095      # built for inclusion in a dll (and should export symbols for example).
9096      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9097      # (--disable-auto-import) libraries
9098      lt_prog_compiler_pic='-DDLL_EXPORT'
9099      case $host_os in
9100      os2*)
9101	lt_prog_compiler_static='$wl-static'
9102	;;
9103      esac
9104      ;;
9105
9106    darwin* | rhapsody*)
9107      # PIC is the default on this platform
9108      # Common symbols not allowed in MH_DYLIB files
9109      lt_prog_compiler_pic='-fno-common'
9110      ;;
9111
9112    haiku*)
9113      # PIC is the default for Haiku.
9114      # The "-static" flag exists, but is broken.
9115      lt_prog_compiler_static=
9116      ;;
9117
9118    hpux*)
9119      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9120      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9121      # sets the default TLS model and affects inlining.
9122      case $host_cpu in
9123      hppa*64*)
9124	# +Z the default
9125	;;
9126      *)
9127	lt_prog_compiler_pic='-fPIC'
9128	;;
9129      esac
9130      ;;
9131
9132    interix[3-9]*)
9133      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9134      # Instead, we relocate shared libraries at runtime.
9135      ;;
9136
9137    msdosdjgpp*)
9138      # Just because we use GCC doesn't mean we suddenly get shared libraries
9139      # on systems that don't support them.
9140      lt_prog_compiler_can_build_shared=no
9141      enable_shared=no
9142      ;;
9143
9144    *nto* | *qnx*)
9145      # QNX uses GNU C++, but need to define -shared option too, otherwise
9146      # it will coredump.
9147      lt_prog_compiler_pic='-fPIC -shared'
9148      ;;
9149
9150    sysv4*MP*)
9151      if test -d /usr/nec; then
9152	lt_prog_compiler_pic=-Kconform_pic
9153      fi
9154      ;;
9155
9156    *)
9157      lt_prog_compiler_pic='-fPIC'
9158      ;;
9159    esac
9160
9161    case $cc_basename in
9162    nvcc*) # Cuda Compiler Driver 2.2
9163      lt_prog_compiler_wl='-Xlinker '
9164      if test -n "$lt_prog_compiler_pic"; then
9165        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9166      fi
9167      ;;
9168    esac
9169  else
9170    # PORTME Check for flag to pass linker flags through the system compiler.
9171    case $host_os in
9172    aix*)
9173      lt_prog_compiler_wl='-Wl,'
9174      if test ia64 = "$host_cpu"; then
9175	# AIX 5 now supports IA64 processor
9176	lt_prog_compiler_static='-Bstatic'
9177      else
9178	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9179      fi
9180      ;;
9181
9182    darwin* | rhapsody*)
9183      # PIC is the default on this platform
9184      # Common symbols not allowed in MH_DYLIB files
9185      lt_prog_compiler_pic='-fno-common'
9186      case $cc_basename in
9187      nagfor*)
9188        # NAG Fortran compiler
9189        lt_prog_compiler_wl='-Wl,-Wl,,'
9190        lt_prog_compiler_pic='-PIC'
9191        lt_prog_compiler_static='-Bstatic'
9192        ;;
9193      esac
9194      ;;
9195
9196    mingw* | cygwin* | pw32* | os2* | cegcc*)
9197      # This hack is so that the source file can tell whether it is being
9198      # built for inclusion in a dll (and should export symbols for example).
9199      lt_prog_compiler_pic='-DDLL_EXPORT'
9200      case $host_os in
9201      os2*)
9202	lt_prog_compiler_static='$wl-static'
9203	;;
9204      esac
9205      ;;
9206
9207    hpux9* | hpux10* | hpux11*)
9208      lt_prog_compiler_wl='-Wl,'
9209      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9210      # not for PA HP-UX.
9211      case $host_cpu in
9212      hppa*64*|ia64*)
9213	# +Z the default
9214	;;
9215      *)
9216	lt_prog_compiler_pic='+Z'
9217	;;
9218      esac
9219      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9220      lt_prog_compiler_static='$wl-a ${wl}archive'
9221      ;;
9222
9223    irix5* | irix6* | nonstopux*)
9224      lt_prog_compiler_wl='-Wl,'
9225      # PIC (with -KPIC) is the default.
9226      lt_prog_compiler_static='-non_shared'
9227      ;;
9228
9229    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9230      case $cc_basename in
9231      # old Intel for x86_64, which still supported -KPIC.
9232      ecc*)
9233	lt_prog_compiler_wl='-Wl,'
9234	lt_prog_compiler_pic='-KPIC'
9235	lt_prog_compiler_static='-static'
9236        ;;
9237      # icc used to be incompatible with GCC.
9238      # ICC 10 doesn't accept -KPIC any more.
9239      icc* | ifort*)
9240	lt_prog_compiler_wl='-Wl,'
9241	lt_prog_compiler_pic='-fPIC'
9242	lt_prog_compiler_static='-static'
9243        ;;
9244      # Lahey Fortran 8.1.
9245      lf95*)
9246	lt_prog_compiler_wl='-Wl,'
9247	lt_prog_compiler_pic='--shared'
9248	lt_prog_compiler_static='--static'
9249	;;
9250      nagfor*)
9251	# NAG Fortran compiler
9252	lt_prog_compiler_wl='-Wl,-Wl,,'
9253	lt_prog_compiler_pic='-PIC'
9254	lt_prog_compiler_static='-Bstatic'
9255	;;
9256      tcc*)
9257	# Fabrice Bellard et al's Tiny C Compiler
9258	lt_prog_compiler_wl='-Wl,'
9259	lt_prog_compiler_pic='-fPIC'
9260	lt_prog_compiler_static='-static'
9261	;;
9262      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9263        # Portland Group compilers (*not* the Pentium gcc compiler,
9264	# which looks to be a dead project)
9265	lt_prog_compiler_wl='-Wl,'
9266	lt_prog_compiler_pic='-fpic'
9267	lt_prog_compiler_static='-Bstatic'
9268        ;;
9269      ccc*)
9270        lt_prog_compiler_wl='-Wl,'
9271        # All Alpha code is PIC.
9272        lt_prog_compiler_static='-non_shared'
9273        ;;
9274      xl* | bgxl* | bgf* | mpixl*)
9275	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9276	lt_prog_compiler_wl='-Wl,'
9277	lt_prog_compiler_pic='-qpic'
9278	lt_prog_compiler_static='-qstaticlink'
9279	;;
9280      *)
9281	case `$CC -V 2>&1 | sed 5q` in
9282	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9283	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9284	  lt_prog_compiler_pic='-KPIC'
9285	  lt_prog_compiler_static='-Bstatic'
9286	  lt_prog_compiler_wl=''
9287	  ;;
9288	*Sun\ F* | *Sun*Fortran*)
9289	  lt_prog_compiler_pic='-KPIC'
9290	  lt_prog_compiler_static='-Bstatic'
9291	  lt_prog_compiler_wl='-Qoption ld '
9292	  ;;
9293	*Sun\ C*)
9294	  # Sun C 5.9
9295	  lt_prog_compiler_pic='-KPIC'
9296	  lt_prog_compiler_static='-Bstatic'
9297	  lt_prog_compiler_wl='-Wl,'
9298	  ;;
9299        *Intel*\ [CF]*Compiler*)
9300	  lt_prog_compiler_wl='-Wl,'
9301	  lt_prog_compiler_pic='-fPIC'
9302	  lt_prog_compiler_static='-static'
9303	  ;;
9304	*Portland\ Group*)
9305	  lt_prog_compiler_wl='-Wl,'
9306	  lt_prog_compiler_pic='-fpic'
9307	  lt_prog_compiler_static='-Bstatic'
9308	  ;;
9309	esac
9310	;;
9311      esac
9312      ;;
9313
9314    newsos6)
9315      lt_prog_compiler_pic='-KPIC'
9316      lt_prog_compiler_static='-Bstatic'
9317      ;;
9318
9319    *nto* | *qnx*)
9320      # QNX uses GNU C++, but need to define -shared option too, otherwise
9321      # it will coredump.
9322      lt_prog_compiler_pic='-fPIC -shared'
9323      ;;
9324
9325    osf3* | osf4* | osf5*)
9326      lt_prog_compiler_wl='-Wl,'
9327      # All OSF/1 code is PIC.
9328      lt_prog_compiler_static='-non_shared'
9329      ;;
9330
9331    rdos*)
9332      lt_prog_compiler_static='-non_shared'
9333      ;;
9334
9335    solaris*)
9336      lt_prog_compiler_pic='-KPIC'
9337      lt_prog_compiler_static='-Bstatic'
9338      case $cc_basename in
9339      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9340	lt_prog_compiler_wl='-Qoption ld ';;
9341      *)
9342	lt_prog_compiler_wl='-Wl,';;
9343      esac
9344      ;;
9345
9346    sunos4*)
9347      lt_prog_compiler_wl='-Qoption ld '
9348      lt_prog_compiler_pic='-PIC'
9349      lt_prog_compiler_static='-Bstatic'
9350      ;;
9351
9352    sysv4 | sysv4.2uw2* | sysv4.3*)
9353      lt_prog_compiler_wl='-Wl,'
9354      lt_prog_compiler_pic='-KPIC'
9355      lt_prog_compiler_static='-Bstatic'
9356      ;;
9357
9358    sysv4*MP*)
9359      if test -d /usr/nec; then
9360	lt_prog_compiler_pic='-Kconform_pic'
9361	lt_prog_compiler_static='-Bstatic'
9362      fi
9363      ;;
9364
9365    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9366      lt_prog_compiler_wl='-Wl,'
9367      lt_prog_compiler_pic='-KPIC'
9368      lt_prog_compiler_static='-Bstatic'
9369      ;;
9370
9371    unicos*)
9372      lt_prog_compiler_wl='-Wl,'
9373      lt_prog_compiler_can_build_shared=no
9374      ;;
9375
9376    uts4*)
9377      lt_prog_compiler_pic='-pic'
9378      lt_prog_compiler_static='-Bstatic'
9379      ;;
9380
9381    *)
9382      lt_prog_compiler_can_build_shared=no
9383      ;;
9384    esac
9385  fi
9386
9387case $host_os in
9388  # For platforms that do not support PIC, -DPIC is meaningless:
9389  *djgpp*)
9390    lt_prog_compiler_pic=
9391    ;;
9392  *)
9393    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9394    ;;
9395esac
9396
9397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9398printf %s "checking for $compiler option to produce PIC... " >&6; }
9399if test ${lt_cv_prog_compiler_pic+y}
9400then :
9401  printf %s "(cached) " >&6
9402else $as_nop
9403  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9404fi
9405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9406printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9407lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9408
9409#
9410# Check to make sure the PIC flag actually works.
9411#
9412if test -n "$lt_prog_compiler_pic"; then
9413  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9414printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9415if test ${lt_cv_prog_compiler_pic_works+y}
9416then :
9417  printf %s "(cached) " >&6
9418else $as_nop
9419  lt_cv_prog_compiler_pic_works=no
9420   ac_outfile=conftest.$ac_objext
9421   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9422   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9423   # Insert the option either (1) after the last *FLAGS variable, or
9424   # (2) before a word containing "conftest.", or (3) at the end.
9425   # Note that $ac_compile itself does not contain backslashes and begins
9426   # with a dollar sign (not a hyphen), so the echo should work correctly.
9427   # The option is referenced via a variable to avoid confusing sed.
9428   lt_compile=`echo "$ac_compile" | $SED \
9429   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9430   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9431   -e 's:$: $lt_compiler_flag:'`
9432   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9433   (eval "$lt_compile" 2>conftest.err)
9434   ac_status=$?
9435   cat conftest.err >&5
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   if (exit $ac_status) && test -s "$ac_outfile"; then
9438     # The compiler can only warn and ignore the option if not recognized
9439     # So say no if there are warnings other than the usual output.
9440     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9441     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9442     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9443       lt_cv_prog_compiler_pic_works=yes
9444     fi
9445   fi
9446   $RM conftest*
9447
9448fi
9449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9450printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9451
9452if test yes = "$lt_cv_prog_compiler_pic_works"; then
9453    case $lt_prog_compiler_pic in
9454     "" | " "*) ;;
9455     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9456     esac
9457else
9458    lt_prog_compiler_pic=
9459     lt_prog_compiler_can_build_shared=no
9460fi
9461
9462fi
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474#
9475# Check to make sure the static flag actually works.
9476#
9477wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9479printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9480if test ${lt_cv_prog_compiler_static_works+y}
9481then :
9482  printf %s "(cached) " >&6
9483else $as_nop
9484  lt_cv_prog_compiler_static_works=no
9485   save_LDFLAGS=$LDFLAGS
9486   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9487   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9488   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9489     # The linker can only warn and ignore the option if not recognized
9490     # So say no if there are warnings
9491     if test -s conftest.err; then
9492       # Append any errors to the config.log.
9493       cat conftest.err 1>&5
9494       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9495       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9496       if diff conftest.exp conftest.er2 >/dev/null; then
9497         lt_cv_prog_compiler_static_works=yes
9498       fi
9499     else
9500       lt_cv_prog_compiler_static_works=yes
9501     fi
9502   fi
9503   $RM -r conftest*
9504   LDFLAGS=$save_LDFLAGS
9505
9506fi
9507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9508printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9509
9510if test yes = "$lt_cv_prog_compiler_static_works"; then
9511    :
9512else
9513    lt_prog_compiler_static=
9514fi
9515
9516
9517
9518
9519
9520
9521
9522  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9523printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9524if test ${lt_cv_prog_compiler_c_o+y}
9525then :
9526  printf %s "(cached) " >&6
9527else $as_nop
9528  lt_cv_prog_compiler_c_o=no
9529   $RM -r conftest 2>/dev/null
9530   mkdir conftest
9531   cd conftest
9532   mkdir out
9533   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9534
9535   lt_compiler_flag="-o out/conftest2.$ac_objext"
9536   # Insert the option either (1) after the last *FLAGS variable, or
9537   # (2) before a word containing "conftest.", or (3) at the end.
9538   # Note that $ac_compile itself does not contain backslashes and begins
9539   # with a dollar sign (not a hyphen), so the echo should work correctly.
9540   lt_compile=`echo "$ac_compile" | $SED \
9541   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9542   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9543   -e 's:$: $lt_compiler_flag:'`
9544   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9545   (eval "$lt_compile" 2>out/conftest.err)
9546   ac_status=$?
9547   cat out/conftest.err >&5
9548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9550   then
9551     # The compiler can only warn and ignore the option if not recognized
9552     # So say no if there are warnings
9553     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9554     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9555     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9556       lt_cv_prog_compiler_c_o=yes
9557     fi
9558   fi
9559   chmod u+w . 2>&5
9560   $RM conftest*
9561   # SGI C++ compiler will create directory out/ii_files/ for
9562   # template instantiation
9563   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9564   $RM out/* && rmdir out
9565   cd ..
9566   $RM -r conftest
9567   $RM conftest*
9568
9569fi
9570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9571printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9572
9573
9574
9575
9576
9577
9578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9579printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9580if test ${lt_cv_prog_compiler_c_o+y}
9581then :
9582  printf %s "(cached) " >&6
9583else $as_nop
9584  lt_cv_prog_compiler_c_o=no
9585   $RM -r conftest 2>/dev/null
9586   mkdir conftest
9587   cd conftest
9588   mkdir out
9589   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9590
9591   lt_compiler_flag="-o out/conftest2.$ac_objext"
9592   # Insert the option either (1) after the last *FLAGS variable, or
9593   # (2) before a word containing "conftest.", or (3) at the end.
9594   # Note that $ac_compile itself does not contain backslashes and begins
9595   # with a dollar sign (not a hyphen), so the echo should work correctly.
9596   lt_compile=`echo "$ac_compile" | $SED \
9597   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9598   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9599   -e 's:$: $lt_compiler_flag:'`
9600   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9601   (eval "$lt_compile" 2>out/conftest.err)
9602   ac_status=$?
9603   cat out/conftest.err >&5
9604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9606   then
9607     # The compiler can only warn and ignore the option if not recognized
9608     # So say no if there are warnings
9609     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9610     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9611     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9612       lt_cv_prog_compiler_c_o=yes
9613     fi
9614   fi
9615   chmod u+w . 2>&5
9616   $RM conftest*
9617   # SGI C++ compiler will create directory out/ii_files/ for
9618   # template instantiation
9619   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9620   $RM out/* && rmdir out
9621   cd ..
9622   $RM -r conftest
9623   $RM conftest*
9624
9625fi
9626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9627printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9628
9629
9630
9631
9632hard_links=nottested
9633if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9634  # do not overwrite the value of need_locks provided by the user
9635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9636printf %s "checking if we can lock with hard links... " >&6; }
9637  hard_links=yes
9638  $RM conftest*
9639  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9640  touch conftest.a
9641  ln conftest.a conftest.b 2>&5 || hard_links=no
9642  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9644printf "%s\n" "$hard_links" >&6; }
9645  if test no = "$hard_links"; then
9646    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9647printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9648    need_locks=warn
9649  fi
9650else
9651  need_locks=no
9652fi
9653
9654
9655
9656
9657
9658
9659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9660printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9661
9662  runpath_var=
9663  allow_undefined_flag=
9664  always_export_symbols=no
9665  archive_cmds=
9666  archive_expsym_cmds=
9667  compiler_needs_object=no
9668  enable_shared_with_static_runtimes=no
9669  export_dynamic_flag_spec=
9670  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9671  hardcode_automatic=no
9672  hardcode_direct=no
9673  hardcode_direct_absolute=no
9674  hardcode_libdir_flag_spec=
9675  hardcode_libdir_separator=
9676  hardcode_minus_L=no
9677  hardcode_shlibpath_var=unsupported
9678  inherit_rpath=no
9679  link_all_deplibs=unknown
9680  module_cmds=
9681  module_expsym_cmds=
9682  old_archive_from_new_cmds=
9683  old_archive_from_expsyms_cmds=
9684  thread_safe_flag_spec=
9685  whole_archive_flag_spec=
9686  # include_expsyms should be a list of space-separated symbols to be *always*
9687  # included in the symbol list
9688  include_expsyms=
9689  # exclude_expsyms can be an extended regexp of symbols to exclude
9690  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9691  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9692  # as well as any symbol that contains 'd'.
9693  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9694  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9695  # platforms (ab)use it in PIC code, but their linkers get confused if
9696  # the symbol is explicitly referenced.  Since portable code cannot
9697  # rely on this symbol name, it's probably fine to never include it in
9698  # preloaded symbol tables.
9699  # Exclude shared library initialization/finalization symbols.
9700  extract_expsyms_cmds=
9701
9702  case $host_os in
9703  cygwin* | mingw* | pw32* | cegcc*)
9704    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9705    # When not using gcc, we currently assume that we are using
9706    # Microsoft Visual C++.
9707    if test yes != "$GCC"; then
9708      with_gnu_ld=no
9709    fi
9710    ;;
9711  interix*)
9712    # we just hope/assume this is gcc and not c89 (= MSVC++)
9713    with_gnu_ld=yes
9714    ;;
9715  openbsd* | bitrig*)
9716    with_gnu_ld=no
9717    ;;
9718  esac
9719
9720  ld_shlibs=yes
9721
9722  # On some targets, GNU ld is compatible enough with the native linker
9723  # that we're better off using the native interface for both.
9724  lt_use_gnu_ld_interface=no
9725  if test yes = "$with_gnu_ld"; then
9726    case $host_os in
9727      aix*)
9728	# The AIX port of GNU ld has always aspired to compatibility
9729	# with the native linker.  However, as the warning in the GNU ld
9730	# block says, versions before 2.19.5* couldn't really create working
9731	# shared libraries, regardless of the interface used.
9732	case `$LD -v 2>&1` in
9733	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9734	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9735	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9736	  *)
9737	    lt_use_gnu_ld_interface=yes
9738	    ;;
9739	esac
9740	;;
9741      *)
9742	lt_use_gnu_ld_interface=yes
9743	;;
9744    esac
9745  fi
9746
9747  if test yes = "$lt_use_gnu_ld_interface"; then
9748    # If archive_cmds runs LD, not CC, wlarc should be empty
9749    wlarc='$wl'
9750
9751    # Set some defaults for GNU ld with shared library support. These
9752    # are reset later if shared libraries are not supported. Putting them
9753    # here allows them to be overridden if necessary.
9754    runpath_var=LD_RUN_PATH
9755    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9756    export_dynamic_flag_spec='$wl--export-dynamic'
9757    # ancient GNU ld didn't support --whole-archive et. al.
9758    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9759      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9760    else
9761      whole_archive_flag_spec=
9762    fi
9763    supports_anon_versioning=no
9764    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9765      *GNU\ gold*) supports_anon_versioning=yes ;;
9766      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9767      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9768      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9769      *\ 2.11.*) ;; # other 2.11 versions
9770      *) supports_anon_versioning=yes ;;
9771    esac
9772
9773    # See if GNU ld supports shared libraries.
9774    case $host_os in
9775    aix[3-9]*)
9776      # On AIX/PPC, the GNU linker is very broken
9777      if test ia64 != "$host_cpu"; then
9778	ld_shlibs=no
9779	cat <<_LT_EOF 1>&2
9780
9781*** Warning: the GNU linker, at least up to release 2.19, is reported
9782*** to be unable to reliably create shared libraries on AIX.
9783*** Therefore, libtool is disabling shared libraries support.  If you
9784*** really care for shared libraries, you may want to install binutils
9785*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9786*** You will then need to restart the configuration process.
9787
9788_LT_EOF
9789      fi
9790      ;;
9791
9792    amigaos*)
9793      case $host_cpu in
9794      powerpc)
9795            # see comment about AmigaOS4 .so support
9796            archive_cmds='$CC -shared $libobjs $compiler_flags $deplibs $wl-soname $wl$soname -o $lib'
9797            archive_expsym_cmds=''
9798        ;;
9799      m68k)
9800            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)'
9801            hardcode_libdir_flag_spec='-L$libdir'
9802            hardcode_minus_L=yes
9803        ;;
9804      esac
9805      ;;
9806
9807    beos*)
9808      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9809	allow_undefined_flag=unsupported
9810	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9811	# support --undefined.  This deserves some investigation.  FIXME
9812	archive_cmds='$CC -nostart $libobjs $compiler_flags $deplibs $wl-soname $wl$soname -o $lib'
9813      else
9814	ld_shlibs=no
9815      fi
9816      ;;
9817
9818    cygwin* | mingw* | pw32* | cegcc*)
9819      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9820      # as there is no search path for DLLs.
9821      hardcode_libdir_flag_spec='-L$libdir'
9822      export_dynamic_flag_spec='$wl--export-all-symbols'
9823      allow_undefined_flag=unsupported
9824      always_export_symbols=no
9825      enable_shared_with_static_runtimes=yes
9826      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'
9827      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9828
9829      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9830        archive_cmds='$CC -shared $libobjs $compiler_flags $deplibs -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9831	# If the export-symbols file already is a .def file, use it as
9832	# is; otherwise, prepend EXPORTS...
9833	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9834          cp $export_symbols $output_objdir/$soname.def;
9835        else
9836          echo EXPORTS > $output_objdir/$soname.def;
9837          cat $export_symbols >> $output_objdir/$soname.def;
9838        fi~
9839        $CC -shared $output_objdir/$soname.def $libobjs $compiler_flags $deplibs -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9840      else
9841	ld_shlibs=no
9842      fi
9843      ;;
9844
9845    haiku*)
9846      archive_cmds='$CC -shared $libobjs $compiler_flags $deplibs $wl-soname $wl$soname -o $lib'
9847      link_all_deplibs=yes
9848      ;;
9849
9850    os2*)
9851      hardcode_libdir_flag_spec='-L$libdir'
9852      hardcode_minus_L=yes
9853      allow_undefined_flag=unsupported
9854      shrext_cmds=.dll
9855      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9856	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9857	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9858	$ECHO EXPORTS >> $output_objdir/$libname.def~
9859	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9860	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $compiler_flags $deplibs $output_objdir/$libname.def~
9861	emximp -o $lib $output_objdir/$libname.def'
9862      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9863	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9864	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9865	$ECHO EXPORTS >> $output_objdir/$libname.def~
9866	prefix_cmds="$SED"~
9867	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9868	  prefix_cmds="$prefix_cmds -e 1d";
9869	fi~
9870	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9871	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9872	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $compiler_flags $deplibs $output_objdir/$libname.def~
9873	emximp -o $lib $output_objdir/$libname.def'
9874      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9875      enable_shared_with_static_runtimes=yes
9876      ;;
9877
9878    interix[3-9]*)
9879      hardcode_direct=no
9880      hardcode_shlibpath_var=no
9881      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9882      export_dynamic_flag_spec='$wl-E'
9883      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9884      # Instead, shared libraries are loaded at an image base (0x10000000 by
9885      # default) and relocated if they conflict, which is a slow very memory
9886      # consuming and fragmenting process.  To avoid this, we pick a random,
9887      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9888      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9889      archive_cmds='$CC -shared $pic_flag $libobjs $compiler_flags $deplibs $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9890      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $compiler_flags $deplibs $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9891      ;;
9892
9893    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9894      tmp_diet=no
9895      if test linux-dietlibc = "$host_os"; then
9896	case $cc_basename in
9897	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9898	esac
9899      fi
9900      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9901	 && test no = "$tmp_diet"
9902      then
9903	tmp_addflag=' $pic_flag'
9904	tmp_sharedflag='-shared -Wl,--as-needed'
9905	case $cc_basename,$host_cpu in
9906        pgcc*)				# Portland Group C compiler
9907	  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'
9908	  tmp_addflag=' $pic_flag'
9909	  ;;
9910	pgf77* | pgf90* | pgf95* | pgfortran*)
9911					# Portland Group f77 and f90 compilers
9912	  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'
9913	  tmp_addflag=' $pic_flag -Mnomain' ;;
9914	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9915	  tmp_addflag=' -i_dynamic' ;;
9916	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9917	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9918	ifc* | ifort*)			# Intel Fortran compiler
9919	  tmp_addflag=' -nofor_main' ;;
9920	lf95*)				# Lahey Fortran 8.1
9921	  whole_archive_flag_spec=
9922	  tmp_sharedflag='--shared' ;;
9923        nagfor*)                        # NAGFOR 5.3
9924          tmp_sharedflag='-Wl,-shared' ;;
9925	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9926	  tmp_sharedflag='-qmkshrobj'
9927	  tmp_addflag= ;;
9928	nvcc*)	# Cuda Compiler Driver 2.2
9929	  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'
9930	  compiler_needs_object=yes
9931	  ;;
9932	esac
9933	case `$CC -V 2>&1 | sed 5q` in
9934	*Sun\ C*)			# Sun C 5.9
9935	  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'
9936	  compiler_needs_object=yes
9937	  tmp_sharedflag='-G' ;;
9938	*Sun\ F*)			# Sun Fortran 8.3
9939	  tmp_sharedflag='-G' ;;
9940	esac
9941	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $compiler_flags $deplibs $wl-soname $wl$soname -o $lib'
9942
9943        if test yes = "$supports_anon_versioning"; then
9944          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9945            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9946            echo "local: *; };" >> $output_objdir/$libname.ver~
9947            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $compiler_flags $deplibs $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9948        fi
9949
9950	case $cc_basename in
9951	tcc*)
9952	  export_dynamic_flag_spec='-rdynamic'
9953	  ;;
9954	xlf* | bgf* | bgxlf* | mpixlf*)
9955	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9956	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9957	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9958	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9959	  if test yes = "$supports_anon_versioning"; then
9960	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9961              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9962              echo "local: *; };" >> $output_objdir/$libname.ver~
9963              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9964	  fi
9965	  ;;
9966	esac
9967      else
9968        ld_shlibs=no
9969      fi
9970      ;;
9971
9972    netbsd*)
9973      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9974	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9975	wlarc=
9976      else
9977	archive_cmds='$CC -shared $pic_flag $libobjs $compiler_flags $deplibs $wl-soname $wl$soname -o $lib'
9978	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $compiler_flags $deplibs $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9979      fi
9980      ;;
9981
9982    solaris*)
9983      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9984	ld_shlibs=no
9985	cat <<_LT_EOF 1>&2
9986
9987*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9988*** create shared libraries on Solaris systems.  Therefore, libtool
9989*** is disabling shared libraries support.  We urge you to upgrade GNU
9990*** binutils to release 2.9.1 or newer.  Another option is to modify
9991*** your PATH or compiler configuration so that the native linker is
9992*** used, and then restart.
9993
9994_LT_EOF
9995      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9996	archive_cmds='$CC -shared $pic_flag $libobjs $compiler_flags $deplibs $wl-soname $wl$soname -o $lib'
9997	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $compiler_flags $deplibs $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9998      else
9999	ld_shlibs=no
10000      fi
10001      ;;
10002
10003    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10004      case `$LD -v 2>&1` in
10005        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10006	ld_shlibs=no
10007	cat <<_LT_EOF 1>&2
10008
10009*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10010*** reliably create shared libraries on SCO systems.  Therefore, libtool
10011*** is disabling shared libraries support.  We urge you to upgrade GNU
10012*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10013*** your PATH or compiler configuration so that the native linker is
10014*** used, and then restart.
10015
10016_LT_EOF
10017	;;
10018	*)
10019	  # For security reasons, it is highly recommended that you always
10020	  # use absolute paths for naming shared libraries, and exclude the
10021	  # DT_RUNPATH tag from executables and libraries.  But doing so
10022	  # requires that you compile everything twice, which is a pain.
10023	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10024	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10025	    archive_cmds='$CC -shared $libobjs $compiler_flags $deplibs $wl-soname $wl$soname -o $lib'
10026	    archive_expsym_cmds='$CC -shared $libobjs $compiler_flags $deplibs $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10027	  else
10028	    ld_shlibs=no
10029	  fi
10030	;;
10031      esac
10032      ;;
10033
10034    sunos4*)
10035      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10036      wlarc=
10037      hardcode_direct=yes
10038      hardcode_shlibpath_var=no
10039      ;;
10040
10041    *)
10042      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10043	archive_cmds='$CC -shared $pic_flag $libobjs $compiler_flags $deplibs $wl-soname $wl$soname -o $lib'
10044	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $compiler_flags $deplibs $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10045      else
10046	ld_shlibs=no
10047      fi
10048      ;;
10049    esac
10050
10051    if test no = "$ld_shlibs"; then
10052      runpath_var=
10053      hardcode_libdir_flag_spec=
10054      export_dynamic_flag_spec=
10055      whole_archive_flag_spec=
10056    fi
10057  else
10058    # PORTME fill in a description of your system's linker (not GNU ld)
10059    case $host_os in
10060    aix3*)
10061      allow_undefined_flag=unsupported
10062      always_export_symbols=yes
10063      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'
10064      # Note: this linker hardcodes the directories in LIBPATH if there
10065      # are no directories specified by -L.
10066      hardcode_minus_L=yes
10067      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10068	# Neither direct hardcoding nor static linking is supported with a
10069	# broken collect2.
10070	hardcode_direct=unsupported
10071      fi
10072      ;;
10073
10074    aix[4-9]*)
10075      if test ia64 = "$host_cpu"; then
10076	# On IA64, the linker does run time linking by default, so we don't
10077	# have to do anything special.
10078	aix_use_runtimelinking=no
10079	exp_sym_flag='-Bexport'
10080	no_entry_flag=
10081      else
10082	# If we're using GNU nm, then we don't want the "-C" option.
10083	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10084	# Without the "-l" option, or with the "-B" option, AIX nm treats
10085	# weak defined symbols like other global defined symbols, whereas
10086	# GNU nm marks them as "W".
10087	# While the 'weak' keyword is ignored in the Export File, we need
10088	# it in the Import File for the 'aix-soname' feature, so we have
10089	# to replace the "-B" option with "-P" for AIX nm.
10090	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10091	  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'
10092	else
10093	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10094	fi
10095	aix_use_runtimelinking=no
10096
10097	# Test if we are trying to use run time linking or normal
10098	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10099	# have runtime linking enabled, and use it for executables.
10100	# For shared libraries, we enable/disable runtime linking
10101	# depending on the kind of the shared library created -
10102	# when "with_aix_soname,aix_use_runtimelinking" is:
10103	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10104	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10105	#            lib.a           static archive
10106	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10107	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10108	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10109	#            lib.a(lib.so.V) shared, rtl:no
10110	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10111	#            lib.a           static archive
10112	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10113	  for ld_flag in $LDFLAGS; do
10114	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10115	    aix_use_runtimelinking=yes
10116	    break
10117	  fi
10118	  done
10119	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10120	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10121	    # so we don't have lib.a shared libs to link our executables.
10122	    # We have to force runtime linking in this case.
10123	    aix_use_runtimelinking=yes
10124	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10125	  fi
10126	  ;;
10127	esac
10128
10129	exp_sym_flag='-bexport'
10130	no_entry_flag='-bnoentry'
10131      fi
10132
10133      # When large executables or shared objects are built, AIX ld can
10134      # have problems creating the table of contents.  If linking a library
10135      # or program results in "error TOC overflow" add -mminimal-toc to
10136      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10137      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10138
10139      archive_cmds=''
10140      hardcode_direct=yes
10141      hardcode_direct_absolute=yes
10142      hardcode_libdir_separator=':'
10143      link_all_deplibs=yes
10144      file_list_spec='$wl-f,'
10145      case $with_aix_soname,$aix_use_runtimelinking in
10146      aix,*) ;; # traditional, no import file
10147      svr4,* | *,yes) # use import file
10148	# The Import File defines what to hardcode.
10149	hardcode_direct=no
10150	hardcode_direct_absolute=no
10151	;;
10152      esac
10153
10154      if test yes = "$GCC"; then
10155	case $host_os in aix4.[012]|aix4.[012].*)
10156	# We only want to do this on AIX 4.2 and lower, the check
10157	# below for broken collect2 doesn't work under 4.3+
10158	  collect2name=`$CC -print-prog-name=collect2`
10159	  if test -f "$collect2name" &&
10160	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10161	  then
10162	  # We have reworked collect2
10163	  :
10164	  else
10165	  # We have old collect2
10166	  hardcode_direct=unsupported
10167	  # It fails to find uninstalled libraries when the uninstalled
10168	  # path is not listed in the libpath.  Setting hardcode_minus_L
10169	  # to unsupported forces relinking
10170	  hardcode_minus_L=yes
10171	  hardcode_libdir_flag_spec='-L$libdir'
10172	  hardcode_libdir_separator=
10173	  fi
10174	  ;;
10175	esac
10176	shared_flag='-shared'
10177	if test yes = "$aix_use_runtimelinking"; then
10178	  shared_flag="$shared_flag "'$wl-G'
10179	fi
10180	# Need to ensure runtime linking is disabled for the traditional
10181	# shared library, or the linker may eventually find shared libraries
10182	# /with/ Import File - we do not want to mix them.
10183	shared_flag_aix='-shared'
10184	shared_flag_svr4='-shared $wl-G'
10185      else
10186	# not using gcc
10187	if test ia64 = "$host_cpu"; then
10188	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10189	# chokes on -Wl,-G. The following line is correct:
10190	  shared_flag='-G'
10191	else
10192	  if test yes = "$aix_use_runtimelinking"; then
10193	    shared_flag='$wl-G'
10194	  else
10195	    shared_flag='$wl-bM:SRE'
10196	  fi
10197	  shared_flag_aix='$wl-bM:SRE'
10198	  shared_flag_svr4='$wl-G'
10199	fi
10200      fi
10201
10202      export_dynamic_flag_spec='$wl-bexpall'
10203      # It seems that -bexpall does not export symbols beginning with
10204      # underscore (_), so it is better to generate a list of symbols to export.
10205      always_export_symbols=yes
10206      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10207	# Warning - without using the other runtime loading flags (-brtl),
10208	# -berok will link without error, but may produce a broken library.
10209	allow_undefined_flag='-berok'
10210        # Determine the default libpath from the value encoded in an
10211        # empty executable.
10212        if test set = "${lt_cv_aix_libpath+set}"; then
10213  aix_libpath=$lt_cv_aix_libpath
10214else
10215  if test ${lt_cv_aix_libpath_+y}
10216then :
10217  printf %s "(cached) " >&6
10218else $as_nop
10219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220/* end confdefs.h.  */
10221
10222int
10223main (void)
10224{
10225
10226  ;
10227  return 0;
10228}
10229_ACEOF
10230if ac_fn_c_try_link "$LINENO"
10231then :
10232
10233  lt_aix_libpath_sed='
10234      /Import File Strings/,/^$/ {
10235	  /^0/ {
10236	      s/^0  *\([^ ]*\) *$/\1/
10237	      p
10238	  }
10239      }'
10240  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10241  # Check for a 64-bit object if we didn't find anything.
10242  if test -z "$lt_cv_aix_libpath_"; then
10243    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10244  fi
10245fi
10246rm -f core conftest.err conftest.$ac_objext conftest.beam \
10247    conftest$ac_exeext conftest.$ac_ext
10248  if test -z "$lt_cv_aix_libpath_"; then
10249    lt_cv_aix_libpath_=/usr/lib:/lib
10250  fi
10251
10252fi
10253
10254  aix_libpath=$lt_cv_aix_libpath_
10255fi
10256
10257        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10258        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
10259      else
10260	if test ia64 = "$host_cpu"; then
10261	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10262	  allow_undefined_flag="-z nodefs"
10263	  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"
10264	else
10265	 # Determine the default libpath from the value encoded in an
10266	 # empty executable.
10267	 if test set = "${lt_cv_aix_libpath+set}"; then
10268  aix_libpath=$lt_cv_aix_libpath
10269else
10270  if test ${lt_cv_aix_libpath_+y}
10271then :
10272  printf %s "(cached) " >&6
10273else $as_nop
10274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10275/* end confdefs.h.  */
10276
10277int
10278main (void)
10279{
10280
10281  ;
10282  return 0;
10283}
10284_ACEOF
10285if ac_fn_c_try_link "$LINENO"
10286then :
10287
10288  lt_aix_libpath_sed='
10289      /Import File Strings/,/^$/ {
10290	  /^0/ {
10291	      s/^0  *\([^ ]*\) *$/\1/
10292	      p
10293	  }
10294      }'
10295  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10296  # Check for a 64-bit object if we didn't find anything.
10297  if test -z "$lt_cv_aix_libpath_"; then
10298    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10299  fi
10300fi
10301rm -f core conftest.err conftest.$ac_objext conftest.beam \
10302    conftest$ac_exeext conftest.$ac_ext
10303  if test -z "$lt_cv_aix_libpath_"; then
10304    lt_cv_aix_libpath_=/usr/lib:/lib
10305  fi
10306
10307fi
10308
10309  aix_libpath=$lt_cv_aix_libpath_
10310fi
10311
10312	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10313	  # Warning - without using the other run time loading flags,
10314	  # -berok will link without error, but may produce a broken library.
10315	  no_undefined_flag=' $wl-bernotok'
10316	  allow_undefined_flag=' $wl-berok'
10317	  if test yes = "$with_gnu_ld"; then
10318	    # We only use this code for GNU lds that support --whole-archive.
10319	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10320	  else
10321	    # Exported symbols can be pulled into shared objects from archives
10322	    whole_archive_flag_spec='$convenience'
10323	  fi
10324	  archive_cmds_need_lc=yes
10325	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10326	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10327	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10328	  if test svr4 != "$with_aix_soname"; then
10329	    # This is similar to how AIX traditionally builds its shared libraries.
10330	    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'
10331	  fi
10332	  if test aix != "$with_aix_soname"; then
10333	    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'
10334	  else
10335	    # used by -dlpreopen to get the symbols
10336	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10337	  fi
10338	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10339	fi
10340      fi
10341      ;;
10342
10343    amigaos*)
10344      case $host_cpu in
10345      powerpc)
10346            # see comment about AmigaOS4 .so support
10347            archive_cmds='$CC -shared $libobjs $compiler_flags $deplibs $wl-soname $wl$soname -o $lib'
10348            archive_expsym_cmds=''
10349        ;;
10350      m68k)
10351            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)'
10352            hardcode_libdir_flag_spec='-L$libdir'
10353            hardcode_minus_L=yes
10354        ;;
10355      esac
10356      ;;
10357
10358    bsdi[45]*)
10359      export_dynamic_flag_spec=-rdynamic
10360      ;;
10361
10362    cygwin* | mingw* | pw32* | cegcc*)
10363      # When not using gcc, we currently assume that we are using
10364      # Microsoft Visual C++.
10365      # hardcode_libdir_flag_spec is actually meaningless, as there is
10366      # no search path for DLLs.
10367      case $cc_basename in
10368      cl*)
10369	# Native MSVC
10370	hardcode_libdir_flag_spec=' '
10371	allow_undefined_flag=unsupported
10372	always_export_symbols=yes
10373	file_list_spec='@'
10374	# Tell ltmain to make .lib files, not .a files.
10375	libext=lib
10376	# Tell ltmain to make .dll files, not .so files.
10377	shrext_cmds=.dll
10378	# FIXME: Setting linknames here is a bad hack.
10379	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10380	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10381            cp "$export_symbols" "$output_objdir/$soname.def";
10382            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10383          else
10384            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10385          fi~
10386          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10387          linknames='
10388	# The linker will not automatically build a static lib if we build a DLL.
10389	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10390	enable_shared_with_static_runtimes=yes
10391	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10392	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10393	# Don't use ranlib
10394	old_postinstall_cmds='chmod 644 $oldlib'
10395	postlink_cmds='lt_outputfile="@OUTPUT@"~
10396          lt_tool_outputfile="@TOOL_OUTPUT@"~
10397          case $lt_outputfile in
10398            *.exe|*.EXE) ;;
10399            *)
10400              lt_outputfile=$lt_outputfile.exe
10401              lt_tool_outputfile=$lt_tool_outputfile.exe
10402              ;;
10403          esac~
10404          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10405            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10406            $RM "$lt_outputfile.manifest";
10407          fi'
10408	;;
10409      *)
10410	# Assume MSVC wrapper
10411	hardcode_libdir_flag_spec=' '
10412	allow_undefined_flag=unsupported
10413	# Tell ltmain to make .lib files, not .a files.
10414	libext=lib
10415	# Tell ltmain to make .dll files, not .so files.
10416	shrext_cmds=.dll
10417	# FIXME: Setting linknames here is a bad hack.
10418	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10419	# The linker will automatically build a .lib file if we build a DLL.
10420	old_archive_from_new_cmds='true'
10421	# FIXME: Should let the user specify the lib program.
10422	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10423	enable_shared_with_static_runtimes=yes
10424	;;
10425      esac
10426      ;;
10427
10428    darwin* | rhapsody*)
10429
10430
10431  archive_cmds_need_lc=no
10432  hardcode_direct=no
10433  hardcode_automatic=yes
10434  hardcode_shlibpath_var=unsupported
10435  if test yes = "$lt_cv_ld_force_load"; then
10436    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\"`'
10437
10438  else
10439    whole_archive_flag_spec=''
10440  fi
10441  link_all_deplibs=yes
10442  allow_undefined_flag=$_lt_dar_allow_undefined
10443  case $cc_basename in
10444     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10445     *) _lt_dar_can_shared=$GCC ;;
10446  esac
10447  if test yes = "$_lt_dar_can_shared"; then
10448    output_verbose_link_cmd=func_echo_all
10449    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10450    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10451    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"
10452    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"
10453
10454  else
10455  ld_shlibs=no
10456  fi
10457
10458      ;;
10459
10460    dgux*)
10461      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10462      hardcode_libdir_flag_spec='-L$libdir'
10463      hardcode_shlibpath_var=no
10464      ;;
10465
10466    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10467    # support.  Future versions do this automatically, but an explicit c++rt0.o
10468    # does not break anything, and helps significantly (at the cost of a little
10469    # extra space).
10470    freebsd2.2*)
10471      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10472      hardcode_libdir_flag_spec='-R$libdir'
10473      hardcode_direct=yes
10474      hardcode_shlibpath_var=no
10475      ;;
10476
10477    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10478    freebsd2.*)
10479      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10480      hardcode_direct=yes
10481      hardcode_minus_L=yes
10482      hardcode_shlibpath_var=no
10483      ;;
10484
10485    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10486    freebsd* | dragonfly*)
10487      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $compiler_flags $deplibs'
10488      hardcode_libdir_flag_spec='-R$libdir'
10489      hardcode_direct=yes
10490      hardcode_shlibpath_var=no
10491      ;;
10492
10493    hpux9*)
10494      if test yes = "$GCC"; then
10495	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $compiler_flags $deplibs~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10496      else
10497	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'
10498      fi
10499      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10500      hardcode_libdir_separator=:
10501      hardcode_direct=yes
10502
10503      # hardcode_minus_L: Not really in the search PATH,
10504      # but as the default location of the library.
10505      hardcode_minus_L=yes
10506      export_dynamic_flag_spec='$wl-E'
10507      ;;
10508
10509    hpux10*)
10510      if test yes,no = "$GCC,$with_gnu_ld"; then
10511	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $compiler_flags $deplibs'
10512      else
10513	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10514      fi
10515      if test no = "$with_gnu_ld"; then
10516	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10517	hardcode_libdir_separator=:
10518	hardcode_direct=yes
10519	hardcode_direct_absolute=yes
10520	export_dynamic_flag_spec='$wl-E'
10521	# hardcode_minus_L: Not really in the search PATH,
10522	# but as the default location of the library.
10523	hardcode_minus_L=yes
10524      fi
10525      ;;
10526
10527    hpux11*)
10528      if test yes,no = "$GCC,$with_gnu_ld"; then
10529	case $host_cpu in
10530	hppa*64*)
10531	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $compiler_flags $deplibs'
10532	  ;;
10533	ia64*)
10534	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $compiler_flags $deplibs'
10535	  ;;
10536	*)
10537	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $compiler_flags $deplibs'
10538	  ;;
10539	esac
10540      else
10541	case $host_cpu in
10542	hppa*64*)
10543	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $compiler_flags $deplibs'
10544	  ;;
10545	ia64*)
10546	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $compiler_flags $deplibs'
10547	  ;;
10548	*)
10549
10550	  # Older versions of the 11.00 compiler do not understand -b yet
10551	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10552	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10553printf %s "checking if $CC understands -b... " >&6; }
10554if test ${lt_cv_prog_compiler__b+y}
10555then :
10556  printf %s "(cached) " >&6
10557else $as_nop
10558  lt_cv_prog_compiler__b=no
10559   save_LDFLAGS=$LDFLAGS
10560   LDFLAGS="$LDFLAGS -b"
10561   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10562   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10563     # The linker can only warn and ignore the option if not recognized
10564     # So say no if there are warnings
10565     if test -s conftest.err; then
10566       # Append any errors to the config.log.
10567       cat conftest.err 1>&5
10568       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10569       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10570       if diff conftest.exp conftest.er2 >/dev/null; then
10571         lt_cv_prog_compiler__b=yes
10572       fi
10573     else
10574       lt_cv_prog_compiler__b=yes
10575     fi
10576   fi
10577   $RM -r conftest*
10578   LDFLAGS=$save_LDFLAGS
10579
10580fi
10581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10582printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10583
10584if test yes = "$lt_cv_prog_compiler__b"; then
10585    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $compiler_flags $deplibs'
10586else
10587    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10588fi
10589
10590	  ;;
10591	esac
10592      fi
10593      if test no = "$with_gnu_ld"; then
10594	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10595	hardcode_libdir_separator=:
10596
10597	case $host_cpu in
10598	hppa*64*|ia64*)
10599	  hardcode_direct=no
10600	  hardcode_shlibpath_var=no
10601	  ;;
10602	*)
10603	  hardcode_direct=yes
10604	  hardcode_direct_absolute=yes
10605	  export_dynamic_flag_spec='$wl-E'
10606
10607	  # hardcode_minus_L: Not really in the search PATH,
10608	  # but as the default location of the library.
10609	  hardcode_minus_L=yes
10610	  ;;
10611	esac
10612      fi
10613      ;;
10614
10615    irix5* | irix6* | nonstopux*)
10616      if test yes = "$GCC"; then
10617	archive_cmds='$CC -shared $pic_flag $libobjs $compiler_flags $deplibs $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'
10618	# Try to use the -exported_symbol ld option, if it does not
10619	# work, assume that -exports_file does not work either and
10620	# implicitly export all symbols.
10621	# This should be the same for all languages, so no per-tag cache variable.
10622	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10623printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10624if test ${lt_cv_irix_exported_symbol+y}
10625then :
10626  printf %s "(cached) " >&6
10627else $as_nop
10628  save_LDFLAGS=$LDFLAGS
10629	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10630	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631/* end confdefs.h.  */
10632int foo (void) { return 0; }
10633_ACEOF
10634if ac_fn_c_try_link "$LINENO"
10635then :
10636  lt_cv_irix_exported_symbol=yes
10637else $as_nop
10638  lt_cv_irix_exported_symbol=no
10639fi
10640rm -f core conftest.err conftest.$ac_objext conftest.beam \
10641    conftest$ac_exeext conftest.$ac_ext
10642           LDFLAGS=$save_LDFLAGS
10643fi
10644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10645printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10646	if test yes = "$lt_cv_irix_exported_symbol"; then
10647          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $compiler_flags $deplibs $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'
10648	fi
10649      else
10650	archive_cmds='$CC -shared $libobjs $compiler_flags $deplibs -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10651	archive_expsym_cmds='$CC -shared $libobjs $compiler_flags $deplibs -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10652      fi
10653      archive_cmds_need_lc='no'
10654      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10655      hardcode_libdir_separator=:
10656      inherit_rpath=yes
10657      link_all_deplibs=yes
10658      ;;
10659
10660    linux*)
10661      case $cc_basename in
10662      tcc*)
10663	# Fabrice Bellard et al's Tiny C Compiler
10664	ld_shlibs=yes
10665	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $compiler_flags $deplibs'
10666	;;
10667      esac
10668      ;;
10669
10670    netbsd*)
10671      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10672	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10673      else
10674	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10675      fi
10676      hardcode_libdir_flag_spec='-R$libdir'
10677      hardcode_direct=yes
10678      hardcode_shlibpath_var=no
10679      ;;
10680
10681    newsos6)
10682      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10683      hardcode_direct=yes
10684      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10685      hardcode_libdir_separator=:
10686      hardcode_shlibpath_var=no
10687      ;;
10688
10689    *nto* | *qnx*)
10690      ;;
10691
10692    openbsd* | bitrig*)
10693      if test -f /usr/libexec/ld.so; then
10694	hardcode_direct=yes
10695	hardcode_shlibpath_var=no
10696	hardcode_direct_absolute=yes
10697	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10698	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $compiler_flags $deplibs'
10699	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $compiler_flags $deplibs $wl-retain-symbols-file,$export_symbols'
10700	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10701	  export_dynamic_flag_spec='$wl-E'
10702	else
10703	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $compiler_flags $deplibs'
10704	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10705	fi
10706      else
10707	ld_shlibs=no
10708      fi
10709      ;;
10710
10711    os2*)
10712      hardcode_libdir_flag_spec='-L$libdir'
10713      hardcode_minus_L=yes
10714      allow_undefined_flag=unsupported
10715      shrext_cmds=.dll
10716      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10717	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10718	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10719	$ECHO EXPORTS >> $output_objdir/$libname.def~
10720	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10721	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $compiler_flags $deplibs $output_objdir/$libname.def~
10722	emximp -o $lib $output_objdir/$libname.def'
10723      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10724	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10725	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10726	$ECHO EXPORTS >> $output_objdir/$libname.def~
10727	prefix_cmds="$SED"~
10728	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10729	  prefix_cmds="$prefix_cmds -e 1d";
10730	fi~
10731	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10732	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10733	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $compiler_flags $deplibs $output_objdir/$libname.def~
10734	emximp -o $lib $output_objdir/$libname.def'
10735      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10736      enable_shared_with_static_runtimes=yes
10737      ;;
10738
10739    osf3*)
10740      if test yes = "$GCC"; then
10741	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10742	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $compiler_flags $deplibs $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'
10743      else
10744	allow_undefined_flag=' -expect_unresolved \*'
10745	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $compiler_flags $deplibs -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10746      fi
10747      archive_cmds_need_lc='no'
10748      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10749      hardcode_libdir_separator=:
10750      ;;
10751
10752    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10753      if test yes = "$GCC"; then
10754	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10755	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $compiler_flags $deplibs $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'
10756	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10757      else
10758	allow_undefined_flag=' -expect_unresolved \*'
10759	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $compiler_flags $deplibs -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10760	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~
10761          $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'
10762
10763	# Both c and cxx compiler support -rpath directly
10764	hardcode_libdir_flag_spec='-rpath $libdir'
10765      fi
10766      archive_cmds_need_lc='no'
10767      hardcode_libdir_separator=:
10768      ;;
10769
10770    solaris*)
10771      no_undefined_flag=' -z defs'
10772      if test yes = "$GCC"; then
10773	wlarc='$wl'
10774	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $compiler_flags $deplibs'
10775	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10776          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $compiler_flags $deplibs~$RM $lib.exp'
10777      else
10778	case `$CC -V 2>&1` in
10779	*"Compilers 5.0"*)
10780	  wlarc=''
10781	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10782	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10783            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10784	  ;;
10785	*)
10786	  wlarc='$wl'
10787	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $compiler_flags $deplibs'
10788	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10789            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $compiler_flags $deplibs~$RM $lib.exp'
10790	  ;;
10791	esac
10792      fi
10793      hardcode_libdir_flag_spec='-R$libdir'
10794      hardcode_shlibpath_var=no
10795      case $host_os in
10796      solaris2.[0-5] | solaris2.[0-5].*) ;;
10797      *)
10798	# The compiler driver will combine and reorder linker options,
10799	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10800	# but is careful enough not to reorder.
10801	# Supported since Solaris 2.6 (maybe 2.5.1?)
10802	if test yes = "$GCC"; then
10803	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10804	else
10805	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10806	fi
10807	;;
10808      esac
10809      link_all_deplibs=yes
10810      ;;
10811
10812    sunos4*)
10813      if test sequent = "$host_vendor"; then
10814	# Use $CC to link under sequent, because it throws in some extra .o
10815	# files that make .init and .fini sections work.
10816	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $compiler_flags $deplibs'
10817      else
10818	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10819      fi
10820      hardcode_libdir_flag_spec='-L$libdir'
10821      hardcode_direct=yes
10822      hardcode_minus_L=yes
10823      hardcode_shlibpath_var=no
10824      ;;
10825
10826    sysv4)
10827      case $host_vendor in
10828	sni)
10829	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10830	  hardcode_direct=yes # is this really true???
10831	;;
10832	siemens)
10833	  ## LD is ld it makes a PLAMLIB
10834	  ## CC just makes a GrossModule.
10835	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10836	  reload_cmds='$CC -r -o $output$reload_objs'
10837	  hardcode_direct=no
10838        ;;
10839	motorola)
10840	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10841	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10842	;;
10843      esac
10844      runpath_var='LD_RUN_PATH'
10845      hardcode_shlibpath_var=no
10846      ;;
10847
10848    sysv4.3*)
10849      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10850      hardcode_shlibpath_var=no
10851      export_dynamic_flag_spec='-Bexport'
10852      ;;
10853
10854    sysv4*MP*)
10855      if test -d /usr/nec; then
10856	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10857	hardcode_shlibpath_var=no
10858	runpath_var=LD_RUN_PATH
10859	hardcode_runpath_var=yes
10860	ld_shlibs=yes
10861      fi
10862      ;;
10863
10864    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10865      no_undefined_flag='$wl-z,text'
10866      archive_cmds_need_lc=no
10867      hardcode_shlibpath_var=no
10868      runpath_var='LD_RUN_PATH'
10869
10870      if test yes = "$GCC"; then
10871	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $compiler_flags $deplibs'
10872	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $compiler_flags $deplibs'
10873      else
10874	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $compiler_flags $deplibs'
10875	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $compiler_flags $deplibs'
10876      fi
10877      ;;
10878
10879    sysv5* | sco3.2v5* | sco5v6*)
10880      # Note: We CANNOT use -z defs as we might desire, because we do not
10881      # link with -lc, and that would cause any symbols used from libc to
10882      # always be unresolved, which means just about no library would
10883      # ever link correctly.  If we're not using GNU ld we use -z text
10884      # though, which does catch some bad symbols but isn't as heavy-handed
10885      # as -z defs.
10886      no_undefined_flag='$wl-z,text'
10887      allow_undefined_flag='$wl-z,nodefs'
10888      archive_cmds_need_lc=no
10889      hardcode_shlibpath_var=no
10890      hardcode_libdir_flag_spec='$wl-R,$libdir'
10891      hardcode_libdir_separator=':'
10892      link_all_deplibs=yes
10893      export_dynamic_flag_spec='$wl-Bexport'
10894      runpath_var='LD_RUN_PATH'
10895
10896      if test yes = "$GCC"; then
10897	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $compiler_flags $deplibs'
10898	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $compiler_flags $deplibs'
10899      else
10900	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $compiler_flags $deplibs'
10901	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $compiler_flags $deplibs'
10902      fi
10903      ;;
10904
10905    uts4*)
10906      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10907      hardcode_libdir_flag_spec='-L$libdir'
10908      hardcode_shlibpath_var=no
10909      ;;
10910
10911    *)
10912      ld_shlibs=no
10913      ;;
10914    esac
10915
10916    if test sni = "$host_vendor"; then
10917      case $host in
10918      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10919	export_dynamic_flag_spec='$wl-Blargedynsym'
10920	;;
10921      esac
10922    fi
10923  fi
10924
10925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10926printf "%s\n" "$ld_shlibs" >&6; }
10927test no = "$ld_shlibs" && can_build_shared=no
10928
10929with_gnu_ld=$with_gnu_ld
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945#
10946# Do we need to explicitly link libc?
10947#
10948case "x$archive_cmds_need_lc" in
10949x|xyes)
10950  # Assume -lc should be added
10951  archive_cmds_need_lc=yes
10952
10953  if test yes,yes = "$GCC,$enable_shared"; then
10954    case $archive_cmds in
10955    *'~'*)
10956      # FIXME: we may have to deal with multi-command sequences.
10957      ;;
10958    '$CC '*)
10959      # Test whether the compiler implicitly links with -lc since on some
10960      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10961      # to ld, don't add -lc before -lgcc.
10962      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10963printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10964if test ${lt_cv_archive_cmds_need_lc+y}
10965then :
10966  printf %s "(cached) " >&6
10967else $as_nop
10968  $RM conftest*
10969	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10970
10971	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10972  (eval $ac_compile) 2>&5
10973  ac_status=$?
10974  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10975  test $ac_status = 0; } 2>conftest.err; then
10976	  soname=conftest
10977	  lib=conftest
10978	  libobjs=conftest.$ac_objext
10979	  deplibs=
10980	  wl=$lt_prog_compiler_wl
10981	  pic_flag=$lt_prog_compiler_pic
10982	  compiler_flags=-v
10983	  linker_flags=-v
10984	  verstring=
10985	  output_objdir=.
10986	  libname=conftest
10987	  lt_save_allow_undefined_flag=$allow_undefined_flag
10988	  allow_undefined_flag=
10989	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10990  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10991  ac_status=$?
10992  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10993  test $ac_status = 0; }
10994	  then
10995	    lt_cv_archive_cmds_need_lc=no
10996	  else
10997	    lt_cv_archive_cmds_need_lc=yes
10998	  fi
10999	  allow_undefined_flag=$lt_save_allow_undefined_flag
11000	else
11001	  cat conftest.err 1>&5
11002	fi
11003	$RM conftest*
11004
11005fi
11006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11007printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11008      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11009      ;;
11010    esac
11011  fi
11012  ;;
11013esac
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11167printf %s "checking dynamic linker characteristics... " >&6; }
11168
11169if test yes = "$GCC"; then
11170  case $host_os in
11171    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11172    *) lt_awk_arg='/^libraries:/' ;;
11173  esac
11174  case $host_os in
11175    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11176    *) lt_sed_strip_eq='s|=/|/|g' ;;
11177  esac
11178  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11179  case $lt_search_path_spec in
11180  *\;*)
11181    # if the path contains ";" then we assume it to be the separator
11182    # otherwise default to the standard path separator (i.e. ":") - it is
11183    # assumed that no part of a normal pathname contains ";" but that should
11184    # okay in the real world where ";" in dirpaths is itself problematic.
11185    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11186    ;;
11187  *)
11188    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11189    ;;
11190  esac
11191  # Ok, now we have the path, separated by spaces, we can step through it
11192  # and add multilib dir if necessary...
11193  lt_tmp_lt_search_path_spec=
11194  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11195  # ...but if some path component already ends with the multilib dir we assume
11196  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11197  case "$lt_multi_os_dir; $lt_search_path_spec " in
11198  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11199    lt_multi_os_dir=
11200    ;;
11201  esac
11202  for lt_sys_path in $lt_search_path_spec; do
11203    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11204      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11205    elif test -n "$lt_multi_os_dir"; then
11206      test -d "$lt_sys_path" && \
11207	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11208    fi
11209  done
11210  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11211BEGIN {RS = " "; FS = "/|\n";} {
11212  lt_foo = "";
11213  lt_count = 0;
11214  for (lt_i = NF; lt_i > 0; lt_i--) {
11215    if ($lt_i != "" && $lt_i != ".") {
11216      if ($lt_i == "..") {
11217        lt_count++;
11218      } else {
11219        if (lt_count == 0) {
11220          lt_foo = "/" $lt_i lt_foo;
11221        } else {
11222          lt_count--;
11223        }
11224      }
11225    }
11226  }
11227  if (lt_foo != "") { lt_freq[lt_foo]++; }
11228  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11229}'`
11230  # AWK program above erroneously prepends '/' to C:/dos/paths
11231  # for these hosts.
11232  case $host_os in
11233    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11234      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11235  esac
11236  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11237else
11238  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11239fi
11240library_names_spec=
11241libname_spec='lib$name'
11242soname_spec=
11243shrext_cmds=.so
11244postinstall_cmds=
11245postuninstall_cmds=
11246finish_cmds=
11247finish_eval=
11248shlibpath_var=
11249shlibpath_overrides_runpath=unknown
11250version_type=none
11251dynamic_linker="$host_os ld.so"
11252sys_lib_dlsearch_path_spec="/lib /usr/lib"
11253need_lib_prefix=unknown
11254hardcode_into_libs=no
11255
11256# when you set need_version to no, make sure it does not cause -set_version
11257# flags to be left without arguments
11258need_version=unknown
11259
11260
11261
11262case $host_os in
11263aix3*)
11264  version_type=linux # correct to gnu/linux during the next big refactor
11265  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11266  shlibpath_var=LIBPATH
11267
11268  # AIX 3 has no versioning support, so we append a major version to the name.
11269  soname_spec='$libname$release$shared_ext$major'
11270  ;;
11271
11272aix[4-9]*)
11273  version_type=linux # correct to gnu/linux during the next big refactor
11274  need_lib_prefix=no
11275  need_version=no
11276  hardcode_into_libs=yes
11277  if test ia64 = "$host_cpu"; then
11278    # AIX 5 supports IA64
11279    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11280    shlibpath_var=LD_LIBRARY_PATH
11281  else
11282    # With GCC up to 2.95.x, collect2 would create an import file
11283    # for dependence libraries.  The import file would start with
11284    # the line '#! .'.  This would cause the generated library to
11285    # depend on '.', always an invalid library.  This was fixed in
11286    # development snapshots of GCC prior to 3.0.
11287    case $host_os in
11288      aix4 | aix4.[01] | aix4.[01].*)
11289      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11290	   echo ' yes '
11291	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11292	:
11293      else
11294	can_build_shared=no
11295      fi
11296      ;;
11297    esac
11298    # Using Import Files as archive members, it is possible to support
11299    # filename-based versioning of shared library archives on AIX. While
11300    # this would work for both with and without runtime linking, it will
11301    # prevent static linking of such archives. So we do filename-based
11302    # shared library versioning with .so extension only, which is used
11303    # when both runtime linking and shared linking is enabled.
11304    # Unfortunately, runtime linking may impact performance, so we do
11305    # not want this to be the default eventually. Also, we use the
11306    # versioned .so libs for executables only if there is the -brtl
11307    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11308    # To allow for filename-based versioning support, we need to create
11309    # libNAME.so.V as an archive file, containing:
11310    # *) an Import File, referring to the versioned filename of the
11311    #    archive as well as the shared archive member, telling the
11312    #    bitwidth (32 or 64) of that shared object, and providing the
11313    #    list of exported symbols of that shared object, eventually
11314    #    decorated with the 'weak' keyword
11315    # *) the shared object with the F_LOADONLY flag set, to really avoid
11316    #    it being seen by the linker.
11317    # At run time we better use the real file rather than another symlink,
11318    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11319
11320    case $with_aix_soname,$aix_use_runtimelinking in
11321    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11322    # soname into executable. Probably we can add versioning support to
11323    # collect2, so additional links can be useful in future.
11324    aix,yes) # traditional libtool
11325      dynamic_linker='AIX unversionable lib.so'
11326      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11327      # instead of lib<name>.a to let people know that these are not
11328      # typical AIX shared libraries.
11329      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11330      ;;
11331    aix,no) # traditional AIX only
11332      dynamic_linker='AIX lib.a(lib.so.V)'
11333      # We preserve .a as extension for shared libraries through AIX4.2
11334      # and later when we are not doing run time linking.
11335      library_names_spec='$libname$release.a $libname.a'
11336      soname_spec='$libname$release$shared_ext$major'
11337      ;;
11338    svr4,*) # full svr4 only
11339      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11340      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11341      # We do not specify a path in Import Files, so LIBPATH fires.
11342      shlibpath_overrides_runpath=yes
11343      ;;
11344    *,yes) # both, prefer svr4
11345      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11346      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11347      # unpreferred sharedlib libNAME.a needs extra handling
11348      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"'
11349      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"'
11350      # We do not specify a path in Import Files, so LIBPATH fires.
11351      shlibpath_overrides_runpath=yes
11352      ;;
11353    *,no) # both, prefer aix
11354      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11355      library_names_spec='$libname$release.a $libname.a'
11356      soname_spec='$libname$release$shared_ext$major'
11357      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11358      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)'
11359      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"'
11360      ;;
11361    esac
11362    shlibpath_var=LIBPATH
11363  fi
11364  ;;
11365
11366amigaos*)
11367  case $host_cpu in
11368  powerpc)
11369    # Since July 2007 AmigaOS4 officially supports .so libraries.
11370    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11371    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11372    ;;
11373  m68k)
11374    library_names_spec='$libname.ixlibrary $libname.a'
11375    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11376    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'
11377    ;;
11378  esac
11379  ;;
11380
11381beos*)
11382  library_names_spec='$libname$shared_ext'
11383  dynamic_linker="$host_os ld.so"
11384  shlibpath_var=LIBRARY_PATH
11385  ;;
11386
11387bsdi[45]*)
11388  version_type=linux # correct to gnu/linux during the next big refactor
11389  need_version=no
11390  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11391  soname_spec='$libname$release$shared_ext$major'
11392  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11393  shlibpath_var=LD_LIBRARY_PATH
11394  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11395  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11396  # the default ld.so.conf also contains /usr/contrib/lib and
11397  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11398  # libtool to hard-code these into programs
11399  ;;
11400
11401cygwin* | mingw* | pw32* | cegcc*)
11402  version_type=windows
11403  shrext_cmds=.dll
11404  need_version=no
11405  need_lib_prefix=no
11406
11407  case $GCC,$cc_basename in
11408  yes,*)
11409    # gcc
11410    library_names_spec='$libname.dll.a'
11411    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11412    postinstall_cmds='base_file=`basename \$file`~
11413      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11414      dldir=$destdir/`dirname \$dlpath`~
11415      test -d \$dldir || mkdir -p \$dldir~
11416      $install_prog $dir/$dlname \$dldir/$dlname~
11417      chmod a+x \$dldir/$dlname~
11418      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11419        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11420      fi'
11421    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11422      dlpath=$dir/\$dldll~
11423       $RM \$dlpath'
11424    shlibpath_overrides_runpath=yes
11425
11426    case $host_os in
11427    cygwin*)
11428      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11429      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11430
11431      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11432      ;;
11433    mingw* | cegcc*)
11434      # MinGW DLLs use traditional 'lib' prefix
11435      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11436      ;;
11437    pw32*)
11438      # pw32 DLLs use 'pw' prefix rather than 'lib'
11439      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11440      ;;
11441    esac
11442    dynamic_linker='Win32 ld.exe'
11443    ;;
11444
11445  *,cl*)
11446    # Native MSVC
11447    libname_spec='$name'
11448    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11449    library_names_spec='$libname.dll.lib'
11450
11451    case $build_os in
11452    mingw*)
11453      sys_lib_search_path_spec=
11454      lt_save_ifs=$IFS
11455      IFS=';'
11456      for lt_path in $LIB
11457      do
11458        IFS=$lt_save_ifs
11459        # Let DOS variable expansion print the short 8.3 style file name.
11460        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11461        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11462      done
11463      IFS=$lt_save_ifs
11464      # Convert to MSYS style.
11465      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11466      ;;
11467    cygwin*)
11468      # Convert to unix form, then to dos form, then back to unix form
11469      # but this time dos style (no spaces!) so that the unix form looks
11470      # like /cygdrive/c/PROGRA~1:/cygdr...
11471      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11472      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11473      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11474      ;;
11475    *)
11476      sys_lib_search_path_spec=$LIB
11477      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11478        # It is most probably a Windows format PATH.
11479        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11480      else
11481        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11482      fi
11483      # FIXME: find the short name or the path components, as spaces are
11484      # common. (e.g. "Program Files" -> "PROGRA~1")
11485      ;;
11486    esac
11487
11488    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11489    postinstall_cmds='base_file=`basename \$file`~
11490      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11491      dldir=$destdir/`dirname \$dlpath`~
11492      test -d \$dldir || mkdir -p \$dldir~
11493      $install_prog $dir/$dlname \$dldir/$dlname'
11494    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11495      dlpath=$dir/\$dldll~
11496       $RM \$dlpath'
11497    shlibpath_overrides_runpath=yes
11498    dynamic_linker='Win32 link.exe'
11499    ;;
11500
11501  *)
11502    # Assume MSVC wrapper
11503    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11504    dynamic_linker='Win32 ld.exe'
11505    ;;
11506  esac
11507  # FIXME: first we should search . and the directory the executable is in
11508  shlibpath_var=PATH
11509  ;;
11510
11511darwin* | rhapsody*)
11512  dynamic_linker="$host_os dyld"
11513  version_type=darwin
11514  need_lib_prefix=no
11515  need_version=no
11516  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11517  soname_spec='$libname$release$major$shared_ext'
11518  shlibpath_overrides_runpath=yes
11519  shlibpath_var=DYLD_LIBRARY_PATH
11520  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11521
11522  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11523  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11524  ;;
11525
11526dgux*)
11527  version_type=linux # correct to gnu/linux during the next big refactor
11528  need_lib_prefix=no
11529  need_version=no
11530  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11531  soname_spec='$libname$release$shared_ext$major'
11532  shlibpath_var=LD_LIBRARY_PATH
11533  ;;
11534
11535freebsd* | dragonfly*)
11536  # DragonFly does not have aout.  When/if they implement a new
11537  # versioning mechanism, adjust this.
11538  if test -x /usr/bin/objformat; then
11539    objformat=`/usr/bin/objformat`
11540  else
11541    case $host_os in
11542    freebsd[23].*) objformat=aout ;;
11543    *) objformat=elf ;;
11544    esac
11545  fi
11546  version_type=freebsd-$objformat
11547  case $version_type in
11548    freebsd-elf*)
11549      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11550      soname_spec='$libname$release$shared_ext$major'
11551      need_version=no
11552      need_lib_prefix=no
11553      ;;
11554    freebsd-*)
11555      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11556      need_version=yes
11557      ;;
11558  esac
11559  shlibpath_var=LD_LIBRARY_PATH
11560  case $host_os in
11561  freebsd2.*)
11562    shlibpath_overrides_runpath=yes
11563    ;;
11564  freebsd3.[01]* | freebsdelf3.[01]*)
11565    shlibpath_overrides_runpath=yes
11566    hardcode_into_libs=yes
11567    ;;
11568  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11569  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11570    shlibpath_overrides_runpath=no
11571    hardcode_into_libs=yes
11572    ;;
11573  *) # from 4.6 on, and DragonFly
11574    shlibpath_overrides_runpath=yes
11575    hardcode_into_libs=yes
11576    ;;
11577  esac
11578  ;;
11579
11580haiku*)
11581  version_type=linux # correct to gnu/linux during the next big refactor
11582  need_lib_prefix=no
11583  need_version=no
11584  dynamic_linker="$host_os runtime_loader"
11585  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11586  soname_spec='$libname$release$shared_ext$major'
11587  shlibpath_var=LIBRARY_PATH
11588  shlibpath_overrides_runpath=no
11589  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11590  hardcode_into_libs=yes
11591  ;;
11592
11593hpux9* | hpux10* | hpux11*)
11594  # Give a soname corresponding to the major version so that dld.sl refuses to
11595  # link against other versions.
11596  version_type=sunos
11597  need_lib_prefix=no
11598  need_version=no
11599  case $host_cpu in
11600  ia64*)
11601    shrext_cmds='.so'
11602    hardcode_into_libs=yes
11603    dynamic_linker="$host_os dld.so"
11604    shlibpath_var=LD_LIBRARY_PATH
11605    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11606    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11607    soname_spec='$libname$release$shared_ext$major'
11608    if test 32 = "$HPUX_IA64_MODE"; then
11609      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11610      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11611    else
11612      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11613      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11614    fi
11615    ;;
11616  hppa*64*)
11617    shrext_cmds='.sl'
11618    hardcode_into_libs=yes
11619    dynamic_linker="$host_os dld.sl"
11620    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11621    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11622    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11623    soname_spec='$libname$release$shared_ext$major'
11624    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11625    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11626    ;;
11627  *)
11628    shrext_cmds='.sl'
11629    dynamic_linker="$host_os dld.sl"
11630    shlibpath_var=SHLIB_PATH
11631    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11632    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11633    soname_spec='$libname$release$shared_ext$major'
11634    ;;
11635  esac
11636  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11637  postinstall_cmds='chmod 555 $lib'
11638  # or fails outright, so override atomically:
11639  install_override_mode=555
11640  ;;
11641
11642interix[3-9]*)
11643  version_type=linux # correct to gnu/linux during the next big refactor
11644  need_lib_prefix=no
11645  need_version=no
11646  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11647  soname_spec='$libname$release$shared_ext$major'
11648  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11649  shlibpath_var=LD_LIBRARY_PATH
11650  shlibpath_overrides_runpath=no
11651  hardcode_into_libs=yes
11652  ;;
11653
11654irix5* | irix6* | nonstopux*)
11655  case $host_os in
11656    nonstopux*) version_type=nonstopux ;;
11657    *)
11658	if test yes = "$lt_cv_prog_gnu_ld"; then
11659		version_type=linux # correct to gnu/linux during the next big refactor
11660	else
11661		version_type=irix
11662	fi ;;
11663  esac
11664  need_lib_prefix=no
11665  need_version=no
11666  soname_spec='$libname$release$shared_ext$major'
11667  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11668  case $host_os in
11669  irix5* | nonstopux*)
11670    libsuff= shlibsuff=
11671    ;;
11672  *)
11673    case $LD in # libtool.m4 will add one of these switches to LD
11674    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11675      libsuff= shlibsuff= libmagic=32-bit;;
11676    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11677      libsuff=32 shlibsuff=N32 libmagic=N32;;
11678    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11679      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11680    *) libsuff= shlibsuff= libmagic=never-match;;
11681    esac
11682    ;;
11683  esac
11684  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11685  shlibpath_overrides_runpath=no
11686  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11687  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11688  hardcode_into_libs=yes
11689  ;;
11690
11691# No shared lib support for Linux oldld, aout, or coff.
11692linux*oldld* | linux*aout* | linux*coff*)
11693  dynamic_linker=no
11694  ;;
11695
11696linux*android*)
11697  version_type=none # Android doesn't support versioned libraries.
11698  need_lib_prefix=no
11699  need_version=no
11700  library_names_spec='$libname$release$shared_ext'
11701  soname_spec='$libname$release$shared_ext'
11702  finish_cmds=
11703  shlibpath_var=LD_LIBRARY_PATH
11704  shlibpath_overrides_runpath=yes
11705
11706  # This implies no fast_install, which is unacceptable.
11707  # Some rework will be needed to allow for fast_install
11708  # before this can be enabled.
11709  hardcode_into_libs=yes
11710
11711  dynamic_linker='Android linker'
11712  # Don't embed -rpath directories since the linker doesn't support them.
11713  hardcode_libdir_flag_spec='-L$libdir'
11714  ;;
11715
11716# This must be glibc/ELF.
11717linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11718  version_type=linux # correct to gnu/linux during the next big refactor
11719  need_lib_prefix=no
11720  need_version=no
11721  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11722  soname_spec='$libname$release$shared_ext$major'
11723  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11724  shlibpath_var=LD_LIBRARY_PATH
11725  shlibpath_overrides_runpath=no
11726
11727  # Some binutils ld are patched to set DT_RUNPATH
11728  if test ${lt_cv_shlibpath_overrides_runpath+y}
11729then :
11730  printf %s "(cached) " >&6
11731else $as_nop
11732  lt_cv_shlibpath_overrides_runpath=no
11733    save_LDFLAGS=$LDFLAGS
11734    save_libdir=$libdir
11735    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11736	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11737    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738/* end confdefs.h.  */
11739
11740int
11741main (void)
11742{
11743
11744  ;
11745  return 0;
11746}
11747_ACEOF
11748if ac_fn_c_try_link "$LINENO"
11749then :
11750  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11751then :
11752  lt_cv_shlibpath_overrides_runpath=yes
11753fi
11754fi
11755rm -f core conftest.err conftest.$ac_objext conftest.beam \
11756    conftest$ac_exeext conftest.$ac_ext
11757    LDFLAGS=$save_LDFLAGS
11758    libdir=$save_libdir
11759
11760fi
11761
11762  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11763
11764  # This implies no fast_install, which is unacceptable.
11765  # Some rework will be needed to allow for fast_install
11766  # before this can be enabled.
11767  hardcode_into_libs=yes
11768
11769  # Add ABI-specific directories to the system library path.
11770  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11771
11772  # Ideally, we could use ldconfig to report *all* directores which are
11773  # searched for libraries, however this is still not possible.  Aside from not
11774  # being certain /sbin/ldconfig is available, command
11775  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11776  # even though it is searched at run-time.  Try to do the best guess by
11777  # appending ld.so.conf contents (and includes) to the search path.
11778  if test -f /etc/ld.so.conf; then
11779    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' ' '`
11780    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11781  fi
11782
11783  # We used to test for /lib/ld.so.1 and disable shared libraries on
11784  # powerpc, because MkLinux only supported shared libraries with the
11785  # GNU dynamic linker.  Since this was broken with cross compilers,
11786  # most powerpc-linux boxes support dynamic linking these days and
11787  # people can always --disable-shared, the test was removed, and we
11788  # assume the GNU/Linux dynamic linker is in use.
11789  dynamic_linker='GNU/Linux ld.so'
11790  ;;
11791
11792netbsd*)
11793  version_type=sunos
11794  need_lib_prefix=no
11795  need_version=no
11796  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11797    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11798    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11799    dynamic_linker='NetBSD (a.out) ld.so'
11800  else
11801    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11802    soname_spec='$libname$release$shared_ext$major'
11803    dynamic_linker='NetBSD ld.elf_so'
11804  fi
11805  shlibpath_var=LD_LIBRARY_PATH
11806  shlibpath_overrides_runpath=yes
11807  hardcode_into_libs=yes
11808  ;;
11809
11810newsos6)
11811  version_type=linux # correct to gnu/linux during the next big refactor
11812  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11813  shlibpath_var=LD_LIBRARY_PATH
11814  shlibpath_overrides_runpath=yes
11815  ;;
11816
11817*nto* | *qnx*)
11818  version_type=qnx
11819  need_lib_prefix=no
11820  need_version=no
11821  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11822  soname_spec='$libname$release$shared_ext$major'
11823  shlibpath_var=LD_LIBRARY_PATH
11824  shlibpath_overrides_runpath=no
11825  hardcode_into_libs=yes
11826  dynamic_linker='ldqnx.so'
11827  ;;
11828
11829openbsd* | bitrig*)
11830  version_type=sunos
11831  sys_lib_dlsearch_path_spec=/usr/lib
11832  need_lib_prefix=no
11833  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11834    need_version=no
11835  else
11836    need_version=yes
11837  fi
11838  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11839  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11840  shlibpath_var=LD_LIBRARY_PATH
11841  shlibpath_overrides_runpath=yes
11842  ;;
11843
11844os2*)
11845  libname_spec='$name'
11846  version_type=windows
11847  shrext_cmds=.dll
11848  need_version=no
11849  need_lib_prefix=no
11850  # OS/2 can only load a DLL with a base name of 8 characters or less.
11851  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11852    v=$($ECHO $release$versuffix | tr -d .-);
11853    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11854    $ECHO $n$v`$shared_ext'
11855  library_names_spec='${libname}_dll.$libext'
11856  dynamic_linker='OS/2 ld.exe'
11857  shlibpath_var=BEGINLIBPATH
11858  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11859  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11860  postinstall_cmds='base_file=`basename \$file`~
11861    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11862    dldir=$destdir/`dirname \$dlpath`~
11863    test -d \$dldir || mkdir -p \$dldir~
11864    $install_prog $dir/$dlname \$dldir/$dlname~
11865    chmod a+x \$dldir/$dlname~
11866    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11867      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11868    fi'
11869  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11870    dlpath=$dir/\$dldll~
11871    $RM \$dlpath'
11872  ;;
11873
11874osf3* | osf4* | osf5*)
11875  version_type=osf
11876  need_lib_prefix=no
11877  need_version=no
11878  soname_spec='$libname$release$shared_ext$major'
11879  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11880  shlibpath_var=LD_LIBRARY_PATH
11881  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11882  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11883  ;;
11884
11885rdos*)
11886  dynamic_linker=no
11887  ;;
11888
11889solaris*)
11890  version_type=linux # correct to gnu/linux during the next big refactor
11891  need_lib_prefix=no
11892  need_version=no
11893  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11894  soname_spec='$libname$release$shared_ext$major'
11895  shlibpath_var=LD_LIBRARY_PATH
11896  shlibpath_overrides_runpath=yes
11897  hardcode_into_libs=yes
11898  # ldd complains unless libraries are executable
11899  postinstall_cmds='chmod +x $lib'
11900  ;;
11901
11902sunos4*)
11903  version_type=sunos
11904  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11905  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11906  shlibpath_var=LD_LIBRARY_PATH
11907  shlibpath_overrides_runpath=yes
11908  if test yes = "$with_gnu_ld"; then
11909    need_lib_prefix=no
11910  fi
11911  need_version=yes
11912  ;;
11913
11914sysv4 | sysv4.3*)
11915  version_type=linux # correct to gnu/linux during the next big refactor
11916  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11917  soname_spec='$libname$release$shared_ext$major'
11918  shlibpath_var=LD_LIBRARY_PATH
11919  case $host_vendor in
11920    sni)
11921      shlibpath_overrides_runpath=no
11922      need_lib_prefix=no
11923      runpath_var=LD_RUN_PATH
11924      ;;
11925    siemens)
11926      need_lib_prefix=no
11927      ;;
11928    motorola)
11929      need_lib_prefix=no
11930      need_version=no
11931      shlibpath_overrides_runpath=no
11932      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11933      ;;
11934  esac
11935  ;;
11936
11937sysv4*MP*)
11938  if test -d /usr/nec; then
11939    version_type=linux # correct to gnu/linux during the next big refactor
11940    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11941    soname_spec='$libname$shared_ext.$major'
11942    shlibpath_var=LD_LIBRARY_PATH
11943  fi
11944  ;;
11945
11946sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11947  version_type=sco
11948  need_lib_prefix=no
11949  need_version=no
11950  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11951  soname_spec='$libname$release$shared_ext$major'
11952  shlibpath_var=LD_LIBRARY_PATH
11953  shlibpath_overrides_runpath=yes
11954  hardcode_into_libs=yes
11955  if test yes = "$with_gnu_ld"; then
11956    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11957  else
11958    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11959    case $host_os in
11960      sco3.2v5*)
11961        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11962	;;
11963    esac
11964  fi
11965  sys_lib_dlsearch_path_spec='/usr/lib'
11966  ;;
11967
11968tpf*)
11969  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11970  version_type=linux # correct to gnu/linux during the next big refactor
11971  need_lib_prefix=no
11972  need_version=no
11973  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11974  shlibpath_var=LD_LIBRARY_PATH
11975  shlibpath_overrides_runpath=no
11976  hardcode_into_libs=yes
11977  ;;
11978
11979uts4*)
11980  version_type=linux # correct to gnu/linux during the next big refactor
11981  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11982  soname_spec='$libname$release$shared_ext$major'
11983  shlibpath_var=LD_LIBRARY_PATH
11984  ;;
11985
11986*)
11987  dynamic_linker=no
11988  ;;
11989esac
11990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11991printf "%s\n" "$dynamic_linker" >&6; }
11992test no = "$dynamic_linker" && can_build_shared=no
11993
11994variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11995if test yes = "$GCC"; then
11996  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11997fi
11998
11999if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12000  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12001fi
12002
12003if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12004  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12005fi
12006
12007# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12008configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12009
12010# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12011func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12012
12013# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12014configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12113printf %s "checking how to hardcode library paths into programs... " >&6; }
12114hardcode_action=
12115if test -n "$hardcode_libdir_flag_spec" ||
12116   test -n "$runpath_var" ||
12117   test yes = "$hardcode_automatic"; then
12118
12119  # We can hardcode non-existent directories.
12120  if test no != "$hardcode_direct" &&
12121     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12122     # have to relink, otherwise we might link with an installed library
12123     # when we should be linking with a yet-to-be-installed one
12124     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12125     test no != "$hardcode_minus_L"; then
12126    # Linking always hardcodes the temporary library directory.
12127    hardcode_action=relink
12128  else
12129    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12130    hardcode_action=immediate
12131  fi
12132else
12133  # We cannot hardcode anything, or else we can only hardcode existing
12134  # directories.
12135  hardcode_action=unsupported
12136fi
12137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12138printf "%s\n" "$hardcode_action" >&6; }
12139
12140if test relink = "$hardcode_action" ||
12141   test yes = "$inherit_rpath"; then
12142  # Fast installation is not supported
12143  enable_fast_install=no
12144elif test yes = "$shlibpath_overrides_runpath" ||
12145     test no = "$enable_shared"; then
12146  # Fast installation is not necessary
12147  enable_fast_install=needless
12148fi
12149
12150
12151
12152
12153
12154
12155  if test yes != "$enable_dlopen"; then
12156  enable_dlopen=unknown
12157  enable_dlopen_self=unknown
12158  enable_dlopen_self_static=unknown
12159else
12160  lt_cv_dlopen=no
12161  lt_cv_dlopen_libs=
12162
12163  case $host_os in
12164  beos*)
12165    lt_cv_dlopen=load_add_on
12166    lt_cv_dlopen_libs=
12167    lt_cv_dlopen_self=yes
12168    ;;
12169
12170  mingw* | pw32* | cegcc*)
12171    lt_cv_dlopen=LoadLibrary
12172    lt_cv_dlopen_libs=
12173    ;;
12174
12175  cygwin*)
12176    lt_cv_dlopen=dlopen
12177    lt_cv_dlopen_libs=
12178    ;;
12179
12180  darwin*)
12181    # if libdl is installed we need to link against it
12182    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12183printf %s "checking for dlopen in -ldl... " >&6; }
12184if test ${ac_cv_lib_dl_dlopen+y}
12185then :
12186  printf %s "(cached) " >&6
12187else $as_nop
12188  ac_check_lib_save_LIBS=$LIBS
12189LIBS="-ldl  $LIBS"
12190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191/* end confdefs.h.  */
12192
12193/* Override any GCC internal prototype to avoid an error.
12194   Use char because int might match the return type of a GCC
12195   builtin and then its argument prototype would still apply.  */
12196char dlopen ();
12197int
12198main (void)
12199{
12200return dlopen ();
12201  ;
12202  return 0;
12203}
12204_ACEOF
12205if ac_fn_c_try_link "$LINENO"
12206then :
12207  ac_cv_lib_dl_dlopen=yes
12208else $as_nop
12209  ac_cv_lib_dl_dlopen=no
12210fi
12211rm -f core conftest.err conftest.$ac_objext conftest.beam \
12212    conftest$ac_exeext conftest.$ac_ext
12213LIBS=$ac_check_lib_save_LIBS
12214fi
12215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12216printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12217if test "x$ac_cv_lib_dl_dlopen" = xyes
12218then :
12219  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12220else $as_nop
12221
12222    lt_cv_dlopen=dyld
12223    lt_cv_dlopen_libs=
12224    lt_cv_dlopen_self=yes
12225
12226fi
12227
12228    ;;
12229
12230  tpf*)
12231    # Don't try to run any link tests for TPF.  We know it's impossible
12232    # because TPF is a cross-compiler, and we know how we open DSOs.
12233    lt_cv_dlopen=dlopen
12234    lt_cv_dlopen_libs=
12235    lt_cv_dlopen_self=no
12236    ;;
12237
12238  *)
12239    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12240if test "x$ac_cv_func_shl_load" = xyes
12241then :
12242  lt_cv_dlopen=shl_load
12243else $as_nop
12244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12245printf %s "checking for shl_load in -ldld... " >&6; }
12246if test ${ac_cv_lib_dld_shl_load+y}
12247then :
12248  printf %s "(cached) " >&6
12249else $as_nop
12250  ac_check_lib_save_LIBS=$LIBS
12251LIBS="-ldld  $LIBS"
12252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12253/* end confdefs.h.  */
12254
12255/* Override any GCC internal prototype to avoid an error.
12256   Use char because int might match the return type of a GCC
12257   builtin and then its argument prototype would still apply.  */
12258char shl_load ();
12259int
12260main (void)
12261{
12262return shl_load ();
12263  ;
12264  return 0;
12265}
12266_ACEOF
12267if ac_fn_c_try_link "$LINENO"
12268then :
12269  ac_cv_lib_dld_shl_load=yes
12270else $as_nop
12271  ac_cv_lib_dld_shl_load=no
12272fi
12273rm -f core conftest.err conftest.$ac_objext conftest.beam \
12274    conftest$ac_exeext conftest.$ac_ext
12275LIBS=$ac_check_lib_save_LIBS
12276fi
12277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12278printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12279if test "x$ac_cv_lib_dld_shl_load" = xyes
12280then :
12281  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12282else $as_nop
12283  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12284if test "x$ac_cv_func_dlopen" = xyes
12285then :
12286  lt_cv_dlopen=dlopen
12287else $as_nop
12288  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12289printf %s "checking for dlopen in -ldl... " >&6; }
12290if test ${ac_cv_lib_dl_dlopen+y}
12291then :
12292  printf %s "(cached) " >&6
12293else $as_nop
12294  ac_check_lib_save_LIBS=$LIBS
12295LIBS="-ldl  $LIBS"
12296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297/* end confdefs.h.  */
12298
12299/* Override any GCC internal prototype to avoid an error.
12300   Use char because int might match the return type of a GCC
12301   builtin and then its argument prototype would still apply.  */
12302char dlopen ();
12303int
12304main (void)
12305{
12306return dlopen ();
12307  ;
12308  return 0;
12309}
12310_ACEOF
12311if ac_fn_c_try_link "$LINENO"
12312then :
12313  ac_cv_lib_dl_dlopen=yes
12314else $as_nop
12315  ac_cv_lib_dl_dlopen=no
12316fi
12317rm -f core conftest.err conftest.$ac_objext conftest.beam \
12318    conftest$ac_exeext conftest.$ac_ext
12319LIBS=$ac_check_lib_save_LIBS
12320fi
12321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12322printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12323if test "x$ac_cv_lib_dl_dlopen" = xyes
12324then :
12325  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12326else $as_nop
12327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12328printf %s "checking for dlopen in -lsvld... " >&6; }
12329if test ${ac_cv_lib_svld_dlopen+y}
12330then :
12331  printf %s "(cached) " >&6
12332else $as_nop
12333  ac_check_lib_save_LIBS=$LIBS
12334LIBS="-lsvld  $LIBS"
12335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336/* end confdefs.h.  */
12337
12338/* Override any GCC internal prototype to avoid an error.
12339   Use char because int might match the return type of a GCC
12340   builtin and then its argument prototype would still apply.  */
12341char dlopen ();
12342int
12343main (void)
12344{
12345return dlopen ();
12346  ;
12347  return 0;
12348}
12349_ACEOF
12350if ac_fn_c_try_link "$LINENO"
12351then :
12352  ac_cv_lib_svld_dlopen=yes
12353else $as_nop
12354  ac_cv_lib_svld_dlopen=no
12355fi
12356rm -f core conftest.err conftest.$ac_objext conftest.beam \
12357    conftest$ac_exeext conftest.$ac_ext
12358LIBS=$ac_check_lib_save_LIBS
12359fi
12360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12361printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12362if test "x$ac_cv_lib_svld_dlopen" = xyes
12363then :
12364  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12365else $as_nop
12366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12367printf %s "checking for dld_link in -ldld... " >&6; }
12368if test ${ac_cv_lib_dld_dld_link+y}
12369then :
12370  printf %s "(cached) " >&6
12371else $as_nop
12372  ac_check_lib_save_LIBS=$LIBS
12373LIBS="-ldld  $LIBS"
12374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375/* end confdefs.h.  */
12376
12377/* Override any GCC internal prototype to avoid an error.
12378   Use char because int might match the return type of a GCC
12379   builtin and then its argument prototype would still apply.  */
12380char dld_link ();
12381int
12382main (void)
12383{
12384return dld_link ();
12385  ;
12386  return 0;
12387}
12388_ACEOF
12389if ac_fn_c_try_link "$LINENO"
12390then :
12391  ac_cv_lib_dld_dld_link=yes
12392else $as_nop
12393  ac_cv_lib_dld_dld_link=no
12394fi
12395rm -f core conftest.err conftest.$ac_objext conftest.beam \
12396    conftest$ac_exeext conftest.$ac_ext
12397LIBS=$ac_check_lib_save_LIBS
12398fi
12399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12400printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12401if test "x$ac_cv_lib_dld_dld_link" = xyes
12402then :
12403  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12404fi
12405
12406
12407fi
12408
12409
12410fi
12411
12412
12413fi
12414
12415
12416fi
12417
12418
12419fi
12420
12421    ;;
12422  esac
12423
12424  if test no = "$lt_cv_dlopen"; then
12425    enable_dlopen=no
12426  else
12427    enable_dlopen=yes
12428  fi
12429
12430  case $lt_cv_dlopen in
12431  dlopen)
12432    save_CPPFLAGS=$CPPFLAGS
12433    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12434
12435    save_LDFLAGS=$LDFLAGS
12436    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12437
12438    save_LIBS=$LIBS
12439    LIBS="$lt_cv_dlopen_libs $LIBS"
12440
12441    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12442printf %s "checking whether a program can dlopen itself... " >&6; }
12443if test ${lt_cv_dlopen_self+y}
12444then :
12445  printf %s "(cached) " >&6
12446else $as_nop
12447  	  if test yes = "$cross_compiling"; then :
12448  lt_cv_dlopen_self=cross
12449else
12450  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12451  lt_status=$lt_dlunknown
12452  cat > conftest.$ac_ext <<_LT_EOF
12453#line $LINENO "configure"
12454#include "confdefs.h"
12455
12456#if HAVE_DLFCN_H
12457#include <dlfcn.h>
12458#endif
12459
12460#include <stdio.h>
12461
12462#ifdef RTLD_GLOBAL
12463#  define LT_DLGLOBAL		RTLD_GLOBAL
12464#else
12465#  ifdef DL_GLOBAL
12466#    define LT_DLGLOBAL		DL_GLOBAL
12467#  else
12468#    define LT_DLGLOBAL		0
12469#  endif
12470#endif
12471
12472/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12473   find out it does not work in some platform. */
12474#ifndef LT_DLLAZY_OR_NOW
12475#  ifdef RTLD_LAZY
12476#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12477#  else
12478#    ifdef DL_LAZY
12479#      define LT_DLLAZY_OR_NOW		DL_LAZY
12480#    else
12481#      ifdef RTLD_NOW
12482#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12483#      else
12484#        ifdef DL_NOW
12485#          define LT_DLLAZY_OR_NOW	DL_NOW
12486#        else
12487#          define LT_DLLAZY_OR_NOW	0
12488#        endif
12489#      endif
12490#    endif
12491#  endif
12492#endif
12493
12494/* When -fvisibility=hidden is used, assume the code has been annotated
12495   correspondingly for the symbols needed.  */
12496#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12497int fnord () __attribute__((visibility("default")));
12498#endif
12499
12500int fnord () { return 42; }
12501int main ()
12502{
12503  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12504  int status = $lt_dlunknown;
12505
12506  if (self)
12507    {
12508      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12509      else
12510        {
12511	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12512          else puts (dlerror ());
12513	}
12514      /* dlclose (self); */
12515    }
12516  else
12517    puts (dlerror ());
12518
12519  return status;
12520}
12521_LT_EOF
12522  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12523  (eval $ac_link) 2>&5
12524  ac_status=$?
12525  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12526  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12527    (./conftest; exit; ) >&5 2>/dev/null
12528    lt_status=$?
12529    case x$lt_status in
12530      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12531      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12532      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12533    esac
12534  else :
12535    # compilation failed
12536    lt_cv_dlopen_self=no
12537  fi
12538fi
12539rm -fr conftest*
12540
12541
12542fi
12543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12544printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12545
12546    if test yes = "$lt_cv_dlopen_self"; then
12547      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12548      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12549printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12550if test ${lt_cv_dlopen_self_static+y}
12551then :
12552  printf %s "(cached) " >&6
12553else $as_nop
12554  	  if test yes = "$cross_compiling"; then :
12555  lt_cv_dlopen_self_static=cross
12556else
12557  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12558  lt_status=$lt_dlunknown
12559  cat > conftest.$ac_ext <<_LT_EOF
12560#line $LINENO "configure"
12561#include "confdefs.h"
12562
12563#if HAVE_DLFCN_H
12564#include <dlfcn.h>
12565#endif
12566
12567#include <stdio.h>
12568
12569#ifdef RTLD_GLOBAL
12570#  define LT_DLGLOBAL		RTLD_GLOBAL
12571#else
12572#  ifdef DL_GLOBAL
12573#    define LT_DLGLOBAL		DL_GLOBAL
12574#  else
12575#    define LT_DLGLOBAL		0
12576#  endif
12577#endif
12578
12579/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12580   find out it does not work in some platform. */
12581#ifndef LT_DLLAZY_OR_NOW
12582#  ifdef RTLD_LAZY
12583#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12584#  else
12585#    ifdef DL_LAZY
12586#      define LT_DLLAZY_OR_NOW		DL_LAZY
12587#    else
12588#      ifdef RTLD_NOW
12589#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12590#      else
12591#        ifdef DL_NOW
12592#          define LT_DLLAZY_OR_NOW	DL_NOW
12593#        else
12594#          define LT_DLLAZY_OR_NOW	0
12595#        endif
12596#      endif
12597#    endif
12598#  endif
12599#endif
12600
12601/* When -fvisibility=hidden is used, assume the code has been annotated
12602   correspondingly for the symbols needed.  */
12603#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12604int fnord () __attribute__((visibility("default")));
12605#endif
12606
12607int fnord () { return 42; }
12608int main ()
12609{
12610  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12611  int status = $lt_dlunknown;
12612
12613  if (self)
12614    {
12615      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12616      else
12617        {
12618	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12619          else puts (dlerror ());
12620	}
12621      /* dlclose (self); */
12622    }
12623  else
12624    puts (dlerror ());
12625
12626  return status;
12627}
12628_LT_EOF
12629  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12630  (eval $ac_link) 2>&5
12631  ac_status=$?
12632  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12633  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12634    (./conftest; exit; ) >&5 2>/dev/null
12635    lt_status=$?
12636    case x$lt_status in
12637      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12638      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12639      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12640    esac
12641  else :
12642    # compilation failed
12643    lt_cv_dlopen_self_static=no
12644  fi
12645fi
12646rm -fr conftest*
12647
12648
12649fi
12650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12651printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12652    fi
12653
12654    CPPFLAGS=$save_CPPFLAGS
12655    LDFLAGS=$save_LDFLAGS
12656    LIBS=$save_LIBS
12657    ;;
12658  esac
12659
12660  case $lt_cv_dlopen_self in
12661  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12662  *) enable_dlopen_self=unknown ;;
12663  esac
12664
12665  case $lt_cv_dlopen_self_static in
12666  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12667  *) enable_dlopen_self_static=unknown ;;
12668  esac
12669fi
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687striplib=
12688old_striplib=
12689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12690printf %s "checking whether stripping libraries is possible... " >&6; }
12691if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12692  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12693  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12695printf "%s\n" "yes" >&6; }
12696else
12697# FIXME - insert some real tests, host_os isn't really good enough
12698  case $host_os in
12699  darwin*)
12700    if test -n "$STRIP"; then
12701      striplib="$STRIP -x"
12702      old_striplib="$STRIP -S"
12703      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12704printf "%s\n" "yes" >&6; }
12705    else
12706      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707printf "%s\n" "no" >&6; }
12708    fi
12709    ;;
12710  *)
12711    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712printf "%s\n" "no" >&6; }
12713    ;;
12714  esac
12715fi
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728  # Report what library types will actually be built
12729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12730printf %s "checking if libtool supports shared libraries... " >&6; }
12731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12732printf "%s\n" "$can_build_shared" >&6; }
12733
12734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12735printf %s "checking whether to build shared libraries... " >&6; }
12736  test no = "$can_build_shared" && enable_shared=no
12737
12738  # On AIX, shared libraries and static libraries use the same namespace, and
12739  # are all built from PIC.
12740  case $host_os in
12741  aix3*)
12742    test yes = "$enable_shared" && enable_static=no
12743    if test -n "$RANLIB"; then
12744      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12745      postinstall_cmds='$RANLIB $lib'
12746    fi
12747    ;;
12748
12749  aix[4-9]*)
12750    if test ia64 != "$host_cpu"; then
12751      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12752      yes,aix,yes) ;;			# shared object as lib.so file only
12753      yes,svr4,*) ;;			# shared object as lib.so archive member only
12754      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12755      esac
12756    fi
12757    ;;
12758  esac
12759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12760printf "%s\n" "$enable_shared" >&6; }
12761
12762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12763printf %s "checking whether to build static libraries... " >&6; }
12764  # Make sure either enable_shared or enable_static is yes.
12765  test yes = "$enable_shared" || enable_static=yes
12766  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12767printf "%s\n" "$enable_static" >&6; }
12768
12769
12770
12771
12772fi
12773ac_ext=c
12774ac_cpp='$CPP $CPPFLAGS'
12775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12777ac_compiler_gnu=$ac_cv_c_compiler_gnu
12778
12779CC=$lt_save_CC
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795        ac_config_commands="$ac_config_commands libtool"
12796
12797
12798
12799
12800# Only expand once:
12801
12802
12803#AC_PROG_INTLTOOL(0.27)
12804
12805# Checks for libraries.
12806
12807
12808
12809
12810
12811
12812
12813if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12814	if test -n "$ac_tool_prefix"; then
12815  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12816set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12818printf %s "checking for $ac_word... " >&6; }
12819if test ${ac_cv_path_PKG_CONFIG+y}
12820then :
12821  printf %s "(cached) " >&6
12822else $as_nop
12823  case $PKG_CONFIG in
12824  [\\/]* | ?:[\\/]*)
12825  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12826  ;;
12827  *)
12828  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12829for as_dir in $PATH
12830do
12831  IFS=$as_save_IFS
12832  case $as_dir in #(((
12833    '') as_dir=./ ;;
12834    */) ;;
12835    *) as_dir=$as_dir/ ;;
12836  esac
12837    for ac_exec_ext in '' $ac_executable_extensions; do
12838  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12839    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12840    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12841    break 2
12842  fi
12843done
12844  done
12845IFS=$as_save_IFS
12846
12847  ;;
12848esac
12849fi
12850PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12851if test -n "$PKG_CONFIG"; then
12852  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12853printf "%s\n" "$PKG_CONFIG" >&6; }
12854else
12855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856printf "%s\n" "no" >&6; }
12857fi
12858
12859
12860fi
12861if test -z "$ac_cv_path_PKG_CONFIG"; then
12862  ac_pt_PKG_CONFIG=$PKG_CONFIG
12863  # Extract the first word of "pkg-config", so it can be a program name with args.
12864set dummy pkg-config; ac_word=$2
12865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12866printf %s "checking for $ac_word... " >&6; }
12867if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12868then :
12869  printf %s "(cached) " >&6
12870else $as_nop
12871  case $ac_pt_PKG_CONFIG in
12872  [\\/]* | ?:[\\/]*)
12873  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12874  ;;
12875  *)
12876  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877for as_dir in $PATH
12878do
12879  IFS=$as_save_IFS
12880  case $as_dir in #(((
12881    '') as_dir=./ ;;
12882    */) ;;
12883    *) as_dir=$as_dir/ ;;
12884  esac
12885    for ac_exec_ext in '' $ac_executable_extensions; do
12886  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12887    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12888    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12889    break 2
12890  fi
12891done
12892  done
12893IFS=$as_save_IFS
12894
12895  ;;
12896esac
12897fi
12898ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12899if test -n "$ac_pt_PKG_CONFIG"; then
12900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12901printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12902else
12903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12904printf "%s\n" "no" >&6; }
12905fi
12906
12907  if test "x$ac_pt_PKG_CONFIG" = x; then
12908    PKG_CONFIG=""
12909  else
12910    case $cross_compiling:$ac_tool_warned in
12911yes:)
12912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12913printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12914ac_tool_warned=yes ;;
12915esac
12916    PKG_CONFIG=$ac_pt_PKG_CONFIG
12917  fi
12918else
12919  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12920fi
12921
12922fi
12923if test -n "$PKG_CONFIG"; then
12924	_pkg_min_version=0.9.0
12925	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12926printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12927	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12928		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12929printf "%s\n" "yes" >&6; }
12930	else
12931		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932printf "%s\n" "no" >&6; }
12933		PKG_CONFIG=""
12934	fi
12935fi
12936
12937pkg_failed=no
12938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ETHERAPE" >&5
12939printf %s "checking for ETHERAPE... " >&6; }
12940
12941if test -n "$ETHERAPE_CFLAGS"; then
12942    pkg_cv_ETHERAPE_CFLAGS="$ETHERAPE_CFLAGS"
12943 elif test -n "$PKG_CONFIG"; then
12944    if test -n "$PKG_CONFIG" && \
12945    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 goocanvas-2.0\""; } >&5
12946  ($PKG_CONFIG --exists --print-errors "glib-2.0 goocanvas-2.0") 2>&5
12947  ac_status=$?
12948  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12949  test $ac_status = 0; }; then
12950  pkg_cv_ETHERAPE_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 goocanvas-2.0" 2>/dev/null`
12951		      test "x$?" != "x0" && pkg_failed=yes
12952else
12953  pkg_failed=yes
12954fi
12955 else
12956    pkg_failed=untried
12957fi
12958if test -n "$ETHERAPE_LIBS"; then
12959    pkg_cv_ETHERAPE_LIBS="$ETHERAPE_LIBS"
12960 elif test -n "$PKG_CONFIG"; then
12961    if test -n "$PKG_CONFIG" && \
12962    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 goocanvas-2.0\""; } >&5
12963  ($PKG_CONFIG --exists --print-errors "glib-2.0 goocanvas-2.0") 2>&5
12964  ac_status=$?
12965  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12966  test $ac_status = 0; }; then
12967  pkg_cv_ETHERAPE_LIBS=`$PKG_CONFIG --libs "glib-2.0 goocanvas-2.0" 2>/dev/null`
12968		      test "x$?" != "x0" && pkg_failed=yes
12969else
12970  pkg_failed=yes
12971fi
12972 else
12973    pkg_failed=untried
12974fi
12975
12976
12977
12978if test $pkg_failed = yes; then
12979   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980printf "%s\n" "no" >&6; }
12981
12982if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12983        _pkg_short_errors_supported=yes
12984else
12985        _pkg_short_errors_supported=no
12986fi
12987        if test $_pkg_short_errors_supported = yes; then
12988	        ETHERAPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 goocanvas-2.0" 2>&1`
12989        else
12990	        ETHERAPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 goocanvas-2.0" 2>&1`
12991        fi
12992	# Put the nasty error message in config.log where it belongs
12993	echo "$ETHERAPE_PKG_ERRORS" >&5
12994
12995	as_fn_error $? "Package requirements (glib-2.0 goocanvas-2.0) were not met:
12996
12997$ETHERAPE_PKG_ERRORS
12998
12999Consider adjusting the PKG_CONFIG_PATH environment variable if you
13000installed software in a non-standard prefix.
13001
13002Alternatively, you may set the environment variables ETHERAPE_CFLAGS
13003and ETHERAPE_LIBS to avoid the need to call pkg-config.
13004See the pkg-config man page for more details." "$LINENO" 5
13005elif test $pkg_failed = untried; then
13006     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13007printf "%s\n" "no" >&6; }
13008	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13009printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13010as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13011is in your PATH or set the PKG_CONFIG environment variable to the full
13012path to pkg-config.
13013
13014Alternatively, you may set the environment variables ETHERAPE_CFLAGS
13015and ETHERAPE_LIBS to avoid the need to call pkg-config.
13016See the pkg-config man page for more details.
13017
13018To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13019See \`config.log' for more details" "$LINENO" 5; }
13020else
13021	ETHERAPE_CFLAGS=$pkg_cv_ETHERAPE_CFLAGS
13022	ETHERAPE_LIBS=$pkg_cv_ETHERAPE_LIBS
13023        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13024printf "%s\n" "yes" >&6; }
13025
13026fi
13027
13028
13029
13030
13031
13032
13033
13034
13035ac_ext=c
13036ac_cpp='$CPP $CPPFLAGS'
13037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13039ac_compiler_gnu=$ac_cv_c_compiler_gnu
13040
13041ax_pthread_ok=no
13042
13043# We used to check for pthread.h first, but this fails if pthread.h
13044# requires special compiler flags (e.g. on Tru64 or Sequent).
13045# It gets checked for in the link test anyway.
13046
13047# First of all, check if the user has set any of the PTHREAD_LIBS,
13048# etcetera environment variables, and if threads linking works using
13049# them:
13050if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
13051        ax_pthread_save_CC="$CC"
13052        ax_pthread_save_CFLAGS="$CFLAGS"
13053        ax_pthread_save_LIBS="$LIBS"
13054        if test "x$PTHREAD_CC" != "x"
13055then :
13056  CC="$PTHREAD_CC"
13057fi
13058        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13059        LIBS="$PTHREAD_LIBS $LIBS"
13060        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
13061printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
13062        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063/* end confdefs.h.  */
13064
13065/* Override any GCC internal prototype to avoid an error.
13066   Use char because int might match the return type of a GCC
13067   builtin and then its argument prototype would still apply.  */
13068char pthread_join ();
13069int
13070main (void)
13071{
13072return pthread_join ();
13073  ;
13074  return 0;
13075}
13076_ACEOF
13077if ac_fn_c_try_link "$LINENO"
13078then :
13079  ax_pthread_ok=yes
13080fi
13081rm -f core conftest.err conftest.$ac_objext conftest.beam \
13082    conftest$ac_exeext conftest.$ac_ext
13083        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13084printf "%s\n" "$ax_pthread_ok" >&6; }
13085        if test "x$ax_pthread_ok" = "xno"; then
13086                PTHREAD_LIBS=""
13087                PTHREAD_CFLAGS=""
13088        fi
13089        CC="$ax_pthread_save_CC"
13090        CFLAGS="$ax_pthread_save_CFLAGS"
13091        LIBS="$ax_pthread_save_LIBS"
13092fi
13093
13094# We must check for the threads library under a number of different
13095# names; the ordering is very important because some systems
13096# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13097# libraries is broken (non-POSIX).
13098
13099# Create a list of thread flags to try.  Items starting with a "-" are
13100# C compiler flags, and other items are library names, except for "none"
13101# which indicates that we try without any flags at all, and "pthread-config"
13102# which is a program returning the flags for the Pth emulation library.
13103
13104ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13105
13106# The ordering *is* (sometimes) important.  Some notes on the
13107# individual items follow:
13108
13109# pthreads: AIX (must check this before -lpthread)
13110# none: in case threads are in libc; should be tried before -Kthread and
13111#       other compiler flags to prevent continual compiler warnings
13112# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13113# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
13114#           (Note: HP C rejects this with "bad form for `-t' option")
13115# -pthreads: Solaris/gcc (Note: HP C also rejects)
13116# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13117#      doesn't hurt to check since this sometimes defines pthreads and
13118#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
13119#      is present but should not be used directly; and before -mthreads,
13120#      because the compiler interprets this as "-mt" + "-hreads")
13121# -mthreads: Mingw32/gcc, Lynx/gcc
13122# pthread: Linux, etcetera
13123# --thread-safe: KAI C++
13124# pthread-config: use pthread-config program (for GNU Pth library)
13125
13126case $host_os in
13127
13128        freebsd*)
13129
13130        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13131        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13132
13133        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
13134        ;;
13135
13136        hpux*)
13137
13138        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
13139        # multi-threading and also sets -lpthread."
13140
13141        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
13142        ;;
13143
13144        openedition*)
13145
13146        # IBM z/OS requires a feature-test macro to be defined in order to
13147        # enable POSIX threads at all, so give the user a hint if this is
13148        # not set. (We don't define these ourselves, as they can affect
13149        # other portions of the system API in unpredictable ways.)
13150
13151        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13152/* end confdefs.h.  */
13153
13154#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
13155             AX_PTHREAD_ZOS_MISSING
13156#            endif
13157
13158_ACEOF
13159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13160  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
13161then :
13162  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
13163printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
13164fi
13165rm -rf conftest*
13166
13167        ;;
13168
13169        solaris*)
13170
13171        # On Solaris (at least, for some versions), libc contains stubbed
13172        # (non-functional) versions of the pthreads routines, so link-based
13173        # tests will erroneously succeed. (N.B.: The stubs are missing
13174        # pthread_cleanup_push, or rather a function called by this macro,
13175        # so we could check for that, but who knows whether they'll stub
13176        # that too in a future libc.)  So we'll check first for the
13177        # standard Solaris way of linking pthreads (-mt -lpthread).
13178
13179        ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
13180        ;;
13181esac
13182
13183# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
13184
13185if test "x$GCC" = "xyes"
13186then :
13187  ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
13188fi
13189
13190# The presence of a feature test macro requesting re-entrant function
13191# definitions is, on some systems, a strong hint that pthreads support is
13192# correctly enabled
13193
13194case $host_os in
13195        darwin* | hpux* | linux* | osf* | solaris*)
13196        ax_pthread_check_macro="_REENTRANT"
13197        ;;
13198
13199        aix*)
13200        ax_pthread_check_macro="_THREAD_SAFE"
13201        ;;
13202
13203        *)
13204        ax_pthread_check_macro="--"
13205        ;;
13206esac
13207if test "x$ax_pthread_check_macro" = "x--"
13208then :
13209  ax_pthread_check_cond=0
13210else $as_nop
13211  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
13212fi
13213
13214# Are we compiling with Clang?
13215
13216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
13217printf %s "checking whether $CC is Clang... " >&6; }
13218if test ${ax_cv_PTHREAD_CLANG+y}
13219then :
13220  printf %s "(cached) " >&6
13221else $as_nop
13222  ax_cv_PTHREAD_CLANG=no
13223     # Note that Autoconf sets GCC=yes for Clang as well as GCC
13224     if test "x$GCC" = "xyes"; then
13225        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226/* end confdefs.h.  */
13227/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
13228#            if defined(__clang__) && defined(__llvm__)
13229             AX_PTHREAD_CC_IS_CLANG
13230#            endif
13231
13232_ACEOF
13233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13234  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
13235then :
13236  ax_cv_PTHREAD_CLANG=yes
13237fi
13238rm -rf conftest*
13239
13240     fi
13241
13242fi
13243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
13244printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
13245ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
13246
13247ax_pthread_clang_warning=no
13248
13249# Clang needs special handling, because older versions handle the -pthread
13250# option in a rather... idiosyncratic way
13251
13252if test "x$ax_pthread_clang" = "xyes"; then
13253
13254        # Clang takes -pthread; it has never supported any other flag
13255
13256        # (Note 1: This will need to be revisited if a system that Clang
13257        # supports has POSIX threads in a separate library.  This tends not
13258        # to be the way of modern systems, but it's conceivable.)
13259
13260        # (Note 2: On some systems, notably Darwin, -pthread is not needed
13261        # to get POSIX threads support; the API is always present and
13262        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
13263        # -pthread does define _REENTRANT, and while the Darwin headers
13264        # ignore this macro, third-party headers might not.)
13265
13266        PTHREAD_CFLAGS="-pthread"
13267        PTHREAD_LIBS=
13268
13269        ax_pthread_ok=yes
13270
13271        # However, older versions of Clang make a point of warning the user
13272        # that, in an invocation where only linking and no compilation is
13273        # taking place, the -pthread option has no effect ("argument unused
13274        # during compilation").  They expect -pthread to be passed in only
13275        # when source code is being compiled.
13276        #
13277        # Problem is, this is at odds with the way Automake and most other
13278        # C build frameworks function, which is that the same flags used in
13279        # compilation (CFLAGS) are also used in linking.  Many systems
13280        # supported by AX_PTHREAD require exactly this for POSIX threads
13281        # support, and in fact it is often not straightforward to specify a
13282        # flag that is used only in the compilation phase and not in
13283        # linking.  Such a scenario is extremely rare in practice.
13284        #
13285        # Even though use of the -pthread flag in linking would only print
13286        # a warning, this can be a nuisance for well-run software projects
13287        # that build with -Werror.  So if the active version of Clang has
13288        # this misfeature, we search for an option to squash it.
13289
13290        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
13291printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
13292if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
13293then :
13294  printf %s "(cached) " >&6
13295else $as_nop
13296  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
13297             # Create an alternate version of $ac_link that compiles and
13298             # links in two steps (.c -> .o, .o -> exe) instead of one
13299             # (.c -> exe), because the warning occurs only in the second
13300             # step
13301             ax_pthread_save_ac_link="$ac_link"
13302             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
13303             ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
13304             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
13305             ax_pthread_save_CFLAGS="$CFLAGS"
13306             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
13307                if test "x$ax_pthread_try" = "xunknown"
13308then :
13309  break
13310fi
13311                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
13312                ac_link="$ax_pthread_save_ac_link"
13313                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314/* end confdefs.h.  */
13315int main(void){return 0;}
13316_ACEOF
13317if ac_fn_c_try_link "$LINENO"
13318then :
13319  ac_link="$ax_pthread_2step_ac_link"
13320                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321/* end confdefs.h.  */
13322int main(void){return 0;}
13323_ACEOF
13324if ac_fn_c_try_link "$LINENO"
13325then :
13326  break
13327fi
13328rm -f core conftest.err conftest.$ac_objext conftest.beam \
13329    conftest$ac_exeext conftest.$ac_ext
13330
13331fi
13332rm -f core conftest.err conftest.$ac_objext conftest.beam \
13333    conftest$ac_exeext conftest.$ac_ext
13334             done
13335             ac_link="$ax_pthread_save_ac_link"
13336             CFLAGS="$ax_pthread_save_CFLAGS"
13337             if test "x$ax_pthread_try" = "x"
13338then :
13339  ax_pthread_try=no
13340fi
13341             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
13342
13343fi
13344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
13345printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
13346
13347        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
13348                no | unknown) ;;
13349                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
13350        esac
13351
13352fi # $ax_pthread_clang = yes
13353
13354if test "x$ax_pthread_ok" = "xno"; then
13355for ax_pthread_try_flag in $ax_pthread_flags; do
13356
13357        case $ax_pthread_try_flag in
13358                none)
13359                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
13360printf %s "checking whether pthreads work without any flags... " >&6; }
13361                ;;
13362
13363                -mt,pthread)
13364                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
13365printf %s "checking whether pthreads work with -mt -lpthread... " >&6; }
13366                PTHREAD_CFLAGS="-mt"
13367                PTHREAD_LIBS="-lpthread"
13368                ;;
13369
13370                -*)
13371                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
13372printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
13373                PTHREAD_CFLAGS="$ax_pthread_try_flag"
13374                ;;
13375
13376                pthread-config)
13377                # Extract the first word of "pthread-config", so it can be a program name with args.
13378set dummy pthread-config; ac_word=$2
13379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13380printf %s "checking for $ac_word... " >&6; }
13381if test ${ac_cv_prog_ax_pthread_config+y}
13382then :
13383  printf %s "(cached) " >&6
13384else $as_nop
13385  if test -n "$ax_pthread_config"; then
13386  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
13387else
13388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13389for as_dir in $PATH
13390do
13391  IFS=$as_save_IFS
13392  case $as_dir in #(((
13393    '') as_dir=./ ;;
13394    */) ;;
13395    *) as_dir=$as_dir/ ;;
13396  esac
13397    for ac_exec_ext in '' $ac_executable_extensions; do
13398  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13399    ac_cv_prog_ax_pthread_config="yes"
13400    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13401    break 2
13402  fi
13403done
13404  done
13405IFS=$as_save_IFS
13406
13407  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
13408fi
13409fi
13410ax_pthread_config=$ac_cv_prog_ax_pthread_config
13411if test -n "$ax_pthread_config"; then
13412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
13413printf "%s\n" "$ax_pthread_config" >&6; }
13414else
13415  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416printf "%s\n" "no" >&6; }
13417fi
13418
13419
13420                if test "x$ax_pthread_config" = "xno"
13421then :
13422  continue
13423fi
13424                PTHREAD_CFLAGS="`pthread-config --cflags`"
13425                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13426                ;;
13427
13428                *)
13429                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
13430printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
13431                PTHREAD_LIBS="-l$ax_pthread_try_flag"
13432                ;;
13433        esac
13434
13435        ax_pthread_save_CFLAGS="$CFLAGS"
13436        ax_pthread_save_LIBS="$LIBS"
13437        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13438        LIBS="$PTHREAD_LIBS $LIBS"
13439
13440        # Check for various functions.  We must include pthread.h,
13441        # since some functions may be macros.  (On the Sequent, we
13442        # need a special flag -Kthread to make this header compile.)
13443        # We check for pthread_join because it is in -lpthread on IRIX
13444        # while pthread_create is in libc.  We check for pthread_attr_init
13445        # due to DEC craziness with -lpthreads.  We check for
13446        # pthread_cleanup_push because it is one of the few pthread
13447        # functions on Solaris that doesn't have a non-functional libc stub.
13448        # We try pthread_create on general principles.
13449
13450        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451/* end confdefs.h.  */
13452#include <pthread.h>
13453#                       if $ax_pthread_check_cond
13454#                        error "$ax_pthread_check_macro must be defined"
13455#                       endif
13456                        static void routine(void *a) { a = 0; }
13457                        static void *start_routine(void *a) { return a; }
13458int
13459main (void)
13460{
13461pthread_t th; pthread_attr_t attr;
13462                        pthread_create(&th, 0, start_routine, 0);
13463                        pthread_join(th, 0);
13464                        pthread_attr_init(&attr);
13465                        pthread_cleanup_push(routine, 0);
13466                        pthread_cleanup_pop(0) /* ; */
13467  ;
13468  return 0;
13469}
13470_ACEOF
13471if ac_fn_c_try_link "$LINENO"
13472then :
13473  ax_pthread_ok=yes
13474fi
13475rm -f core conftest.err conftest.$ac_objext conftest.beam \
13476    conftest$ac_exeext conftest.$ac_ext
13477
13478        CFLAGS="$ax_pthread_save_CFLAGS"
13479        LIBS="$ax_pthread_save_LIBS"
13480
13481        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13482printf "%s\n" "$ax_pthread_ok" >&6; }
13483        if test "x$ax_pthread_ok" = "xyes"
13484then :
13485  break
13486fi
13487
13488        PTHREAD_LIBS=""
13489        PTHREAD_CFLAGS=""
13490done
13491fi
13492
13493# Various other checks:
13494if test "x$ax_pthread_ok" = "xyes"; then
13495        ax_pthread_save_CFLAGS="$CFLAGS"
13496        ax_pthread_save_LIBS="$LIBS"
13497        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13498        LIBS="$PTHREAD_LIBS $LIBS"
13499
13500        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
13501        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
13502printf %s "checking for joinable pthread attribute... " >&6; }
13503if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
13504then :
13505  printf %s "(cached) " >&6
13506else $as_nop
13507  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
13508             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
13509                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13510/* end confdefs.h.  */
13511#include <pthread.h>
13512int
13513main (void)
13514{
13515int attr = $ax_pthread_attr; return attr /* ; */
13516  ;
13517  return 0;
13518}
13519_ACEOF
13520if ac_fn_c_try_link "$LINENO"
13521then :
13522  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
13523fi
13524rm -f core conftest.err conftest.$ac_objext conftest.beam \
13525    conftest$ac_exeext conftest.$ac_ext
13526             done
13527
13528fi
13529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
13530printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
13531        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
13532               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
13533               test "x$ax_pthread_joinable_attr_defined" != "xyes"
13534then :
13535
13536printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
13537
13538               ax_pthread_joinable_attr_defined=yes
13539
13540fi
13541
13542        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
13543printf %s "checking whether more special flags are required for pthreads... " >&6; }
13544if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
13545then :
13546  printf %s "(cached) " >&6
13547else $as_nop
13548  ax_cv_PTHREAD_SPECIAL_FLAGS=no
13549             case $host_os in
13550             solaris*)
13551             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
13552             ;;
13553             esac
13554
13555fi
13556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
13557printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
13558        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
13559               test "x$ax_pthread_special_flags_added" != "xyes"
13560then :
13561  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
13562               ax_pthread_special_flags_added=yes
13563fi
13564
13565        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
13566printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
13567if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
13568then :
13569  printf %s "(cached) " >&6
13570else $as_nop
13571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13572/* end confdefs.h.  */
13573#include <pthread.h>
13574int
13575main (void)
13576{
13577int i = PTHREAD_PRIO_INHERIT;
13578  ;
13579  return 0;
13580}
13581_ACEOF
13582if ac_fn_c_try_link "$LINENO"
13583then :
13584  ax_cv_PTHREAD_PRIO_INHERIT=yes
13585else $as_nop
13586  ax_cv_PTHREAD_PRIO_INHERIT=no
13587fi
13588rm -f core conftest.err conftest.$ac_objext conftest.beam \
13589    conftest$ac_exeext conftest.$ac_ext
13590
13591fi
13592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
13593printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
13594        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
13595               test "x$ax_pthread_prio_inherit_defined" != "xyes"
13596then :
13597
13598printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
13599
13600               ax_pthread_prio_inherit_defined=yes
13601
13602fi
13603
13604        CFLAGS="$ax_pthread_save_CFLAGS"
13605        LIBS="$ax_pthread_save_LIBS"
13606
13607        # More AIX lossage: compile with *_r variant
13608        if test "x$GCC" != "xyes"; then
13609            case $host_os in
13610                aix*)
13611                case "x/$CC" in #(
13612  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
13613    #handle absolute path differently from PATH based program lookup
13614                     case "x$CC" in #(
13615  x/*) :
13616    if as_fn_executable_p ${CC}_r
13617then :
13618  PTHREAD_CC="${CC}_r"
13619fi ;; #(
13620  *) :
13621    for ac_prog in ${CC}_r
13622do
13623  # Extract the first word of "$ac_prog", so it can be a program name with args.
13624set dummy $ac_prog; ac_word=$2
13625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13626printf %s "checking for $ac_word... " >&6; }
13627if test ${ac_cv_prog_PTHREAD_CC+y}
13628then :
13629  printf %s "(cached) " >&6
13630else $as_nop
13631  if test -n "$PTHREAD_CC"; then
13632  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13633else
13634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13635for as_dir in $PATH
13636do
13637  IFS=$as_save_IFS
13638  case $as_dir in #(((
13639    '') as_dir=./ ;;
13640    */) ;;
13641    *) as_dir=$as_dir/ ;;
13642  esac
13643    for ac_exec_ext in '' $ac_executable_extensions; do
13644  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13645    ac_cv_prog_PTHREAD_CC="$ac_prog"
13646    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13647    break 2
13648  fi
13649done
13650  done
13651IFS=$as_save_IFS
13652
13653fi
13654fi
13655PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13656if test -n "$PTHREAD_CC"; then
13657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
13658printf "%s\n" "$PTHREAD_CC" >&6; }
13659else
13660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13661printf "%s\n" "no" >&6; }
13662fi
13663
13664
13665  test -n "$PTHREAD_CC" && break
13666done
13667test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
13668 ;;
13669esac ;; #(
13670  *) :
13671     ;;
13672esac
13673                ;;
13674            esac
13675        fi
13676fi
13677
13678test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
13679
13680
13681
13682
13683
13684# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13685if test "x$ax_pthread_ok" = "xyes"; then
13686
13687printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
13688
13689        :
13690else
13691        ax_pthread_ok=no
13692
13693fi
13694ac_ext=c
13695ac_cpp='$CPP $CPPFLAGS'
13696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13698ac_compiler_gnu=$ac_cv_c_compiler_gnu
13699
13700
13701
13702# Checks for header files.
13703# Autoupdate added the next two lines to ensure that your configure
13704# script's behavior did not change.  They are probably safe to remove.
13705
13706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13707printf %s "checking for egrep... " >&6; }
13708if test ${ac_cv_path_EGREP+y}
13709then :
13710  printf %s "(cached) " >&6
13711else $as_nop
13712  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13713   then ac_cv_path_EGREP="$GREP -E"
13714   else
13715     if test -z "$EGREP"; then
13716  ac_path_EGREP_found=false
13717  # Loop through the user's path and test for each of PROGNAME-LIST
13718  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13719for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13720do
13721  IFS=$as_save_IFS
13722  case $as_dir in #(((
13723    '') as_dir=./ ;;
13724    */) ;;
13725    *) as_dir=$as_dir/ ;;
13726  esac
13727    for ac_prog in egrep
13728   do
13729    for ac_exec_ext in '' $ac_executable_extensions; do
13730      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
13731      as_fn_executable_p "$ac_path_EGREP" || continue
13732# Check for GNU ac_path_EGREP and select it if it is found.
13733  # Check for GNU $ac_path_EGREP
13734case `"$ac_path_EGREP" --version 2>&1` in
13735*GNU*)
13736  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13737*)
13738  ac_count=0
13739  printf %s 0123456789 >"conftest.in"
13740  while :
13741  do
13742    cat "conftest.in" "conftest.in" >"conftest.tmp"
13743    mv "conftest.tmp" "conftest.in"
13744    cp "conftest.in" "conftest.nl"
13745    printf "%s\n" 'EGREP' >> "conftest.nl"
13746    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13747    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13748    as_fn_arith $ac_count + 1 && ac_count=$as_val
13749    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13750      # Best one so far, save it but keep looking for a better one
13751      ac_cv_path_EGREP="$ac_path_EGREP"
13752      ac_path_EGREP_max=$ac_count
13753    fi
13754    # 10*(2^10) chars as input seems more than enough
13755    test $ac_count -gt 10 && break
13756  done
13757  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13758esac
13759
13760      $ac_path_EGREP_found && break 3
13761    done
13762  done
13763  done
13764IFS=$as_save_IFS
13765  if test -z "$ac_cv_path_EGREP"; then
13766    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13767  fi
13768else
13769  ac_cv_path_EGREP=$EGREP
13770fi
13771
13772   fi
13773fi
13774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13775printf "%s\n" "$ac_cv_path_EGREP" >&6; }
13776 EGREP="$ac_cv_path_EGREP"
13777
13778
13779
13780ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
13781if test "x$ac_cv_header_arpa_inet_h" = xyes
13782then :
13783  printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
13784
13785fi
13786ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
13787if test "x$ac_cv_header_fcntl_h" = xyes
13788then :
13789  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
13790
13791fi
13792ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
13793if test "x$ac_cv_header_netdb_h" = xyes
13794then :
13795  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
13796
13797fi
13798ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13799if test "x$ac_cv_header_netinet_in_h" = xyes
13800then :
13801  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
13802
13803fi
13804ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13805if test "x$ac_cv_header_stdlib_h" = xyes
13806then :
13807  printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
13808
13809fi
13810ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
13811if test "x$ac_cv_header_string_h" = xyes
13812then :
13813  printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
13814
13815fi
13816ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13817if test "x$ac_cv_header_sys_ioctl_h" = xyes
13818then :
13819  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
13820
13821fi
13822ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
13823if test "x$ac_cv_header_sys_socket_h" = xyes
13824then :
13825  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
13826
13827fi
13828ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
13829if test "x$ac_cv_header_sys_time_h" = xyes
13830then :
13831  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
13832
13833fi
13834ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
13835if test "x$ac_cv_header_sys_wait_h" = xyes
13836then :
13837  printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13838
13839fi
13840ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13841if test "x$ac_cv_header_unistd_h" = xyes
13842then :
13843  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
13844
13845fi
13846ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
13847if test "x$ac_cv_header_math_h" = xyes
13848then :
13849  printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
13850
13851fi
13852
13853
13854ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
13855if test "x$ac_cv_header_sys_socket_h" = xyes
13856then :
13857  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
13858
13859fi
13860
13861ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h>
13862  #if STDC_HEADERS
13863  # include <stdlib.h>
13864  # include <stddef.h>
13865  #else
13866  # if HAVE_STDLIB_H
13867  # include <stdlib.h>
13868  # endif
13869  #endif
13870  #if HAVE_SYS_SOCKET_H
13871  # include <sys/socket.h>
13872  #endif
13873
13874"
13875if test "x$ac_cv_header_net_if_h" = xyes
13876then :
13877  printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
13878
13879fi
13880
13881
13882
13883# Checks for typedefs, structures, and compiler characteristics.
13884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13885printf %s "checking for an ANSI C-conforming const... " >&6; }
13886if test ${ac_cv_c_const+y}
13887then :
13888  printf %s "(cached) " >&6
13889else $as_nop
13890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891/* end confdefs.h.  */
13892
13893int
13894main (void)
13895{
13896
13897#ifndef __cplusplus
13898  /* Ultrix mips cc rejects this sort of thing.  */
13899  typedef int charset[2];
13900  const charset cs = { 0, 0 };
13901  /* SunOS 4.1.1 cc rejects this.  */
13902  char const *const *pcpcc;
13903  char **ppc;
13904  /* NEC SVR4.0.2 mips cc rejects this.  */
13905  struct point {int x, y;};
13906  static struct point const zero = {0,0};
13907  /* IBM XL C 1.02.0.0 rejects this.
13908     It does not let you subtract one const X* pointer from another in
13909     an arm of an if-expression whose if-part is not a constant
13910     expression */
13911  const char *g = "string";
13912  pcpcc = &g + (g ? g-g : 0);
13913  /* HPUX 7.0 cc rejects these. */
13914  ++pcpcc;
13915  ppc = (char**) pcpcc;
13916  pcpcc = (char const *const *) ppc;
13917  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13918    char tx;
13919    char *t = &tx;
13920    char const *s = 0 ? (char *) 0 : (char const *) 0;
13921
13922    *t++ = 0;
13923    if (s) return 0;
13924  }
13925  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13926    int x[] = {25, 17};
13927    const int *foo = &x[0];
13928    ++foo;
13929  }
13930  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13931    typedef const int *iptr;
13932    iptr p = 0;
13933    ++p;
13934  }
13935  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13936       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13937    struct s { int j; const int *ap[3]; } bx;
13938    struct s *b = &bx; b->j = 5;
13939  }
13940  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13941    const int foo = 10;
13942    if (!foo) return 0;
13943  }
13944  return !cs[0] && !zero.x;
13945#endif
13946
13947  ;
13948  return 0;
13949}
13950_ACEOF
13951if ac_fn_c_try_compile "$LINENO"
13952then :
13953  ac_cv_c_const=yes
13954else $as_nop
13955  ac_cv_c_const=no
13956fi
13957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13958fi
13959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13960printf "%s\n" "$ac_cv_c_const" >&6; }
13961if test $ac_cv_c_const = no; then
13962
13963printf "%s\n" "#define const /**/" >>confdefs.h
13964
13965fi
13966
13967ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13968if test "x$ac_cv_type_size_t" = xyes
13969then :
13970
13971else $as_nop
13972
13973printf "%s\n" "#define size_t unsigned int" >>confdefs.h
13974
13975fi
13976
13977
13978
13979# Obsolete code to be removed.
13980if test $ac_cv_header_sys_time_h = yes; then
13981
13982printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13983
13984fi
13985# End of obsolete code.
13986
13987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13988printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13989if test ${ac_cv_struct_tm+y}
13990then :
13991  printf %s "(cached) " >&6
13992else $as_nop
13993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994/* end confdefs.h.  */
13995#include <sys/types.h>
13996#include <time.h>
13997
13998int
13999main (void)
14000{
14001struct tm tm;
14002				     int *p = &tm.tm_sec;
14003				     return !p;
14004  ;
14005  return 0;
14006}
14007_ACEOF
14008if ac_fn_c_try_compile "$LINENO"
14009then :
14010  ac_cv_struct_tm=time.h
14011else $as_nop
14012  ac_cv_struct_tm=sys/time.h
14013fi
14014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14015fi
14016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
14017printf "%s\n" "$ac_cv_struct_tm" >&6; }
14018if test $ac_cv_struct_tm = sys/time.h; then
14019
14020printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
14021
14022fi
14023
14024
14025# Check whether --enable-warnings was given.
14026if test ${enable_warnings+y}
14027then :
14028  enableval=$enable_warnings;
14029fi
14030
14031
14032if test "$enable_warnings" != no; then
14033  ETHERAPE_CFLAGS="$ETHERAPE_CFLAGS -Wall"
14034fi
14035
14036# Check whether --enable-werror was given.
14037if test ${enable_werror+y}
14038then :
14039  enableval=$enable_werror;
14040fi
14041
14042
14043if test "$enable_werror" = yes; then
14044  ETHERAPE_CFLAGS="$ETHERAPE_CFLAGS -Werror"
14045fi
14046
14047# Check whether --enable-asan was given.
14048if test ${enable_asan+y}
14049then :
14050  enableval=$enable_asan;
14051fi
14052
14053
14054if test "$enable_asan" = yes; then
14055  ETHERAPE_CFLAGS="$ETHERAPE_CFLAGS -fsanitize=address"
14056  ETHERAPE_LDFLAGS="$ETHERAPE_LDFLAGS -fsanitize=address"
14057fi
14058
14059# Check whether --enable-ubsan was given.
14060if test ${enable_ubsan+y}
14061then :
14062  enableval=$enable_ubsan;
14063fi
14064
14065
14066if test "$enable_ubsan" = yes; then
14067  ETHERAPE_CFLAGS="$ETHERAPE_CFLAGS -fsanitize=undefined"
14068  ETHERAPE_LDFLAGS="$ETHERAPE_LDFLAGS -fsanitize=undefined"
14069fi
14070
14071# Check whether --enable-tsan was given.
14072if test ${enable_tsan+y}
14073then :
14074  enableval=$enable_tsan;
14075fi
14076
14077
14078if test "$enable_tsan" = yes; then
14079  if test "$enable_asan" = yes; then
14080    as_fn_error $? "--enable-tsan and --enable-asan are mutually incompatible" "$LINENO" 5
14081  fi
14082  ETHERAPE_CFLAGS="$ETHERAPE_CFLAGS -fsanitize=thread"
14083  ETHERAPE_LDFLAGS="$ETHERAPE_LDFLAGS -fsanitize=thread"
14084fi
14085
14086# checks for osx or disable-gdk-input-add
14087# Check whether --enable-gdk-input-add was given.
14088if test ${enable_gdk_input_add+y}
14089then :
14090  enableval=$enable_gdk_input_add; use_gdk_input_add=$enableval
14091else $as_nop
14092  use_gdk_input_add=yes
14093fi
14094
14095
14096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097/* end confdefs.h.  */
14098int main(int argc, char **argv){return __APPLE__ + __MACH__;}
14099_ACEOF
14100if ac_fn_c_try_compile "$LINENO"
14101then :
14102  use_gdk_input_add=no
14103fi
14104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14105
14106if test $use_gdk_input_add = no; then
14107
14108printf "%s\n" "#define DISABLE_GDKINPUTADD 1" >>confdefs.h
14109
14110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: gtk_input_add disabled" >&5
14111printf "%s\n" "$as_me: gtk_input_add disabled" >&6;}
14112fi
14113
14114ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
14115if test "x$ac_cv_func_getnameinfo" = xyes
14116then :
14117  has_getnameinfo=yes
14118else $as_nop
14119  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -lbind" >&5
14120printf %s "checking for getnameinfo in -lbind... " >&6; }
14121if test ${ac_cv_lib_bind_getnameinfo+y}
14122then :
14123  printf %s "(cached) " >&6
14124else $as_nop
14125  ac_check_lib_save_LIBS=$LIBS
14126LIBS="-lbind  $LIBS"
14127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14128/* end confdefs.h.  */
14129
14130/* Override any GCC internal prototype to avoid an error.
14131   Use char because int might match the return type of a GCC
14132   builtin and then its argument prototype would still apply.  */
14133char getnameinfo ();
14134int
14135main (void)
14136{
14137return getnameinfo ();
14138  ;
14139  return 0;
14140}
14141_ACEOF
14142if ac_fn_c_try_link "$LINENO"
14143then :
14144  ac_cv_lib_bind_getnameinfo=yes
14145else $as_nop
14146  ac_cv_lib_bind_getnameinfo=no
14147fi
14148rm -f core conftest.err conftest.$ac_objext conftest.beam \
14149    conftest$ac_exeext conftest.$ac_ext
14150LIBS=$ac_check_lib_save_LIBS
14151fi
14152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_getnameinfo" >&5
14153printf "%s\n" "$ac_cv_lib_bind_getnameinfo" >&6; }
14154if test "x$ac_cv_lib_bind_getnameinfo" = xyes
14155then :
14156  has_getnameinfo=yes
14157else $as_nop
14158  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -lresolv" >&5
14159printf %s "checking for getnameinfo in -lresolv... " >&6; }
14160if test ${ac_cv_lib_resolv_getnameinfo+y}
14161then :
14162  printf %s "(cached) " >&6
14163else $as_nop
14164  ac_check_lib_save_LIBS=$LIBS
14165LIBS="-lresolv  $LIBS"
14166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167/* end confdefs.h.  */
14168
14169/* Override any GCC internal prototype to avoid an error.
14170   Use char because int might match the return type of a GCC
14171   builtin and then its argument prototype would still apply.  */
14172char getnameinfo ();
14173int
14174main (void)
14175{
14176return getnameinfo ();
14177  ;
14178  return 0;
14179}
14180_ACEOF
14181if ac_fn_c_try_link "$LINENO"
14182then :
14183  ac_cv_lib_resolv_getnameinfo=yes
14184else $as_nop
14185  ac_cv_lib_resolv_getnameinfo=no
14186fi
14187rm -f core conftest.err conftest.$ac_objext conftest.beam \
14188    conftest$ac_exeext conftest.$ac_ext
14189LIBS=$ac_check_lib_save_LIBS
14190fi
14191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_getnameinfo" >&5
14192printf "%s\n" "$ac_cv_lib_resolv_getnameinfo" >&6; }
14193if test "x$ac_cv_lib_resolv_getnameinfo" = xyes
14194then :
14195  has_getnameinfo=yes
14196else $as_nop
14197  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -lnsl" >&5
14198printf %s "checking for getnameinfo in -lnsl... " >&6; }
14199if test ${ac_cv_lib_nsl_getnameinfo+y}
14200then :
14201  printf %s "(cached) " >&6
14202else $as_nop
14203  ac_check_lib_save_LIBS=$LIBS
14204LIBS="-lnsl  $LIBS"
14205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14206/* end confdefs.h.  */
14207
14208/* Override any GCC internal prototype to avoid an error.
14209   Use char because int might match the return type of a GCC
14210   builtin and then its argument prototype would still apply.  */
14211char getnameinfo ();
14212int
14213main (void)
14214{
14215return getnameinfo ();
14216  ;
14217  return 0;
14218}
14219_ACEOF
14220if ac_fn_c_try_link "$LINENO"
14221then :
14222  ac_cv_lib_nsl_getnameinfo=yes
14223else $as_nop
14224  ac_cv_lib_nsl_getnameinfo=no
14225fi
14226rm -f core conftest.err conftest.$ac_objext conftest.beam \
14227    conftest$ac_exeext conftest.$ac_ext
14228LIBS=$ac_check_lib_save_LIBS
14229fi
14230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_getnameinfo" >&5
14231printf "%s\n" "$ac_cv_lib_nsl_getnameinfo" >&6; }
14232if test "x$ac_cv_lib_nsl_getnameinfo" = xyes
14233then :
14234  has_getnameinfo=yes
14235else $as_nop
14236  has_getnameinfo=no
14237fi
14238
14239fi
14240
14241fi
14242
14243fi
14244
14245
14246if test $has_getnameinfo = no; then
14247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: getnameinfo not found, trying with gethostbyaddr" >&5
14248printf "%s\n" "$as_me: getnameinfo not found, trying with gethostbyaddr" >&6;}
14249 ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr"
14250if test "x$ac_cv_func_gethostbyaddr" = xyes
14251then :
14252  has_gethostbyaddr=yes
14253else $as_nop
14254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lbind" >&5
14255printf %s "checking for gethostbyaddr in -lbind... " >&6; }
14256if test ${ac_cv_lib_bind_gethostbyaddr+y}
14257then :
14258  printf %s "(cached) " >&6
14259else $as_nop
14260  ac_check_lib_save_LIBS=$LIBS
14261LIBS="-lbind  $LIBS"
14262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263/* end confdefs.h.  */
14264
14265/* Override any GCC internal prototype to avoid an error.
14266   Use char because int might match the return type of a GCC
14267   builtin and then its argument prototype would still apply.  */
14268char gethostbyaddr ();
14269int
14270main (void)
14271{
14272return gethostbyaddr ();
14273  ;
14274  return 0;
14275}
14276_ACEOF
14277if ac_fn_c_try_link "$LINENO"
14278then :
14279  ac_cv_lib_bind_gethostbyaddr=yes
14280else $as_nop
14281  ac_cv_lib_bind_gethostbyaddr=no
14282fi
14283rm -f core conftest.err conftest.$ac_objext conftest.beam \
14284    conftest$ac_exeext conftest.$ac_ext
14285LIBS=$ac_check_lib_save_LIBS
14286fi
14287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_gethostbyaddr" >&5
14288printf "%s\n" "$ac_cv_lib_bind_gethostbyaddr" >&6; }
14289if test "x$ac_cv_lib_bind_gethostbyaddr" = xyes
14290then :
14291  has_gethostbyaddr=yes
14292else $as_nop
14293  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lresolv" >&5
14294printf %s "checking for gethostbyaddr in -lresolv... " >&6; }
14295if test ${ac_cv_lib_resolv_gethostbyaddr+y}
14296then :
14297  printf %s "(cached) " >&6
14298else $as_nop
14299  ac_check_lib_save_LIBS=$LIBS
14300LIBS="-lresolv  $LIBS"
14301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302/* end confdefs.h.  */
14303
14304/* Override any GCC internal prototype to avoid an error.
14305   Use char because int might match the return type of a GCC
14306   builtin and then its argument prototype would still apply.  */
14307char gethostbyaddr ();
14308int
14309main (void)
14310{
14311return gethostbyaddr ();
14312  ;
14313  return 0;
14314}
14315_ACEOF
14316if ac_fn_c_try_link "$LINENO"
14317then :
14318  ac_cv_lib_resolv_gethostbyaddr=yes
14319else $as_nop
14320  ac_cv_lib_resolv_gethostbyaddr=no
14321fi
14322rm -f core conftest.err conftest.$ac_objext conftest.beam \
14323    conftest$ac_exeext conftest.$ac_ext
14324LIBS=$ac_check_lib_save_LIBS
14325fi
14326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyaddr" >&5
14327printf "%s\n" "$ac_cv_lib_resolv_gethostbyaddr" >&6; }
14328if test "x$ac_cv_lib_resolv_gethostbyaddr" = xyes
14329then :
14330  has_gethostbyaddr=yes
14331else $as_nop
14332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnsl" >&5
14333printf %s "checking for gethostbyaddr in -lnsl... " >&6; }
14334if test ${ac_cv_lib_nsl_gethostbyaddr+y}
14335then :
14336  printf %s "(cached) " >&6
14337else $as_nop
14338  ac_check_lib_save_LIBS=$LIBS
14339LIBS="-lnsl  $LIBS"
14340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341/* end confdefs.h.  */
14342
14343/* Override any GCC internal prototype to avoid an error.
14344   Use char because int might match the return type of a GCC
14345   builtin and then its argument prototype would still apply.  */
14346char gethostbyaddr ();
14347int
14348main (void)
14349{
14350return gethostbyaddr ();
14351  ;
14352  return 0;
14353}
14354_ACEOF
14355if ac_fn_c_try_link "$LINENO"
14356then :
14357  ac_cv_lib_nsl_gethostbyaddr=yes
14358else $as_nop
14359  ac_cv_lib_nsl_gethostbyaddr=no
14360fi
14361rm -f core conftest.err conftest.$ac_objext conftest.beam \
14362    conftest$ac_exeext conftest.$ac_ext
14363LIBS=$ac_check_lib_save_LIBS
14364fi
14365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyaddr" >&5
14366printf "%s\n" "$ac_cv_lib_nsl_gethostbyaddr" >&6; }
14367if test "x$ac_cv_lib_nsl_gethostbyaddr" = xyes
14368then :
14369  has_gethostbyaddr=yes
14370else $as_nop
14371  as_fn_error $? "Missing both getnameinfo and gethostbyaddr. Please install a resolver library." "$LINENO" 5
14372
14373fi
14374
14375fi
14376
14377fi
14378
14379fi
14380
14381
14382 if test $has_gethostbyaddr = yes; then
14383   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Found only gethostbyaddr, while getnameinfo does not exists, resolving is restricted to single thread." >&5
14384printf "%s\n" "$as_me: WARNING: Found only gethostbyaddr, while getnameinfo does not exists, resolving is restricted to single thread." >&2;}
14385
14386printf "%s\n" "#define FORCE_SINGLE_THREAD 1" >>confdefs.h
14387
14388 fi
14389fi
14390
14391# Handle --with-c-ares
14392
14393# Check whether --with-c-ares was given.
14394if test ${with_c_ares+y}
14395then :
14396  withval=$with_c_ares;
14397else $as_nop
14398  with_c_ares=no
14399fi
14400
14401
14402if test $with_c_ares = yes; then
14403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ares_init" >&5
14404printf %s "checking for library containing ares_init... " >&6; }
14405if test ${ac_cv_search_ares_init+y}
14406then :
14407  printf %s "(cached) " >&6
14408else $as_nop
14409  ac_func_search_save_LIBS=$LIBS
14410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411/* end confdefs.h.  */
14412
14413/* Override any GCC internal prototype to avoid an error.
14414   Use char because int might match the return type of a GCC
14415   builtin and then its argument prototype would still apply.  */
14416char ares_init ();
14417int
14418main (void)
14419{
14420return ares_init ();
14421  ;
14422  return 0;
14423}
14424_ACEOF
14425for ac_lib in '' cares
14426do
14427  if test -z "$ac_lib"; then
14428    ac_res="none required"
14429  else
14430    ac_res=-l$ac_lib
14431    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14432  fi
14433  if ac_fn_c_try_link "$LINENO"
14434then :
14435  ac_cv_search_ares_init=$ac_res
14436fi
14437rm -f core conftest.err conftest.$ac_objext conftest.beam \
14438    conftest$ac_exeext
14439  if test ${ac_cv_search_ares_init+y}
14440then :
14441  break
14442fi
14443done
14444if test ${ac_cv_search_ares_init+y}
14445then :
14446
14447else $as_nop
14448  ac_cv_search_ares_init=no
14449fi
14450rm conftest.$ac_ext
14451LIBS=$ac_func_search_save_LIBS
14452fi
14453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ares_init" >&5
14454printf "%s\n" "$ac_cv_search_ares_init" >&6; }
14455ac_res=$ac_cv_search_ares_init
14456if test "$ac_res" != no
14457then :
14458  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14459
14460printf "%s\n" "#define HAVE_LIBCARES 1" >>confdefs.h
14461
14462else $as_nop
14463  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14464printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14465as_fn_error $? "--with-c-ares was given, but the c-ares library was not found
14466See \`config.log' for more details" "$LINENO" 5; }
14467fi
14468
14469fi
14470 if test $with_c_ares = yes; then
14471  HAVE_LIBCARES_TRUE=
14472  HAVE_LIBCARES_FALSE='#'
14473else
14474  HAVE_LIBCARES_TRUE='#'
14475  HAVE_LIBCARES_FALSE=
14476fi
14477
14478
14479# Check for the pcap library.
14480# Check whether --enable-static-pcap was given.
14481if test ${enable_static_pcap+y}
14482then :
14483  enableval=$enable_static_pcap; STATIC_PCAP=yes
14484fi
14485
14486
14487	# Evidently, some systems have pcap.h, etc. in */include/pcap
14488	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extraneous pcap header directories" >&5
14489printf %s "checking for extraneous pcap header directories... " >&6; }
14490	found_pcap_dir=""
14491	for pcap_dir in /usr/include/pcap /usr/local/include/pcap $prefix/include
14492	do
14493	  if test -d $pcap_dir ; then
14494	    CFLAGS="$CFLAGS -I$pcap_dir"
14495	    CPPFLAGS="$CPPFLAGS -I$pcap_dir"
14496	    found_pcap_dir=" $found_pcap_dir -I$pcap_dir"
14497	  fi
14498	done
14499
14500	if test "$found_pcap_dir" != "" ; then
14501	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found --$found_pcap_dir added to CFLAGS" >&5
14502printf "%s\n" "found --$found_pcap_dir added to CFLAGS" >&6; }
14503	else
14504	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14505printf "%s\n" "not found" >&6; }
14506	fi
14507
14508	# Pcap header checks
14509	ac_fn_c_check_header_compile "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
14510if test "x$ac_cv_header_pcap_h" = xyes
14511then :
14512
14513else $as_nop
14514  as_fn_error $? "Header file pcap.h not found; You need libcap development package, or if you installed libpcap from source, do \"make install-incl\"" "$LINENO" 5
14515fi
14516
14517
14518	#
14519	# Check to see if we find "pcap_open_live" in "-lpcap".
14520	#
14521	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
14522printf %s "checking for pcap_open_live in -lpcap... " >&6; }
14523if test ${ac_cv_lib_pcap_pcap_open_live+y}
14524then :
14525  printf %s "(cached) " >&6
14526else $as_nop
14527  ac_check_lib_save_LIBS=$LIBS
14528LIBS="-lpcap $SOCKET_LIBS $NSL_LIBS $LIBS"
14529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530/* end confdefs.h.  */
14531
14532/* Override any GCC internal prototype to avoid an error.
14533   Use char because int might match the return type of a GCC
14534   builtin and then its argument prototype would still apply.  */
14535char pcap_open_live ();
14536int
14537main (void)
14538{
14539return pcap_open_live ();
14540  ;
14541  return 0;
14542}
14543_ACEOF
14544if ac_fn_c_try_link "$LINENO"
14545then :
14546  ac_cv_lib_pcap_pcap_open_live=yes
14547else $as_nop
14548  ac_cv_lib_pcap_pcap_open_live=no
14549fi
14550rm -f core conftest.err conftest.$ac_objext conftest.beam \
14551    conftest$ac_exeext conftest.$ac_ext
14552LIBS=$ac_check_lib_save_LIBS
14553fi
14554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
14555printf "%s\n" "$ac_cv_lib_pcap_pcap_open_live" >&6; }
14556if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes
14557then :
14558
14559	    # TODO
14560	    # This is a dirty hack, but I don't know any other way
14561	    # to do it. If you do, please tell me.
14562	    if test "x$STATIC_PCAP" != "xyes"; then
14563	      PCAP_LIBS=-lpcap
14564	    fi
14565	    if test "x$STATIC_PCAP" = "xyes"; then
14566	      PCAP_LIBS="-Wl,-Bstatic -lpcap -Wl,-Bdynamic"
14567	      echo "Forcing static pcap linking"
14568	    fi
14569	    printf "%s\n" "#define HAVE_LIBPCAP 1" >>confdefs.h
14570
14571
14572else $as_nop
14573  as_fn_error $? "Library libpcap not found." "$LINENO" 5
14574fi
14575
14576
14577
14578
14579# check for other libraries (needed for AC_CHECK_FUNCS)
14580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
14581printf %s "checking for library containing pow... " >&6; }
14582if test ${ac_cv_search_pow+y}
14583then :
14584  printf %s "(cached) " >&6
14585else $as_nop
14586  ac_func_search_save_LIBS=$LIBS
14587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14588/* end confdefs.h.  */
14589
14590/* Override any GCC internal prototype to avoid an error.
14591   Use char because int might match the return type of a GCC
14592   builtin and then its argument prototype would still apply.  */
14593char pow ();
14594int
14595main (void)
14596{
14597return pow ();
14598  ;
14599  return 0;
14600}
14601_ACEOF
14602for ac_lib in '' m
14603do
14604  if test -z "$ac_lib"; then
14605    ac_res="none required"
14606  else
14607    ac_res=-l$ac_lib
14608    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14609  fi
14610  if ac_fn_c_try_link "$LINENO"
14611then :
14612  ac_cv_search_pow=$ac_res
14613fi
14614rm -f core conftest.err conftest.$ac_objext conftest.beam \
14615    conftest$ac_exeext
14616  if test ${ac_cv_search_pow+y}
14617then :
14618  break
14619fi
14620done
14621if test ${ac_cv_search_pow+y}
14622then :
14623
14624else $as_nop
14625  ac_cv_search_pow=no
14626fi
14627rm conftest.$ac_ext
14628LIBS=$ac_func_search_save_LIBS
14629fi
14630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
14631printf "%s\n" "$ac_cv_search_pow" >&6; }
14632ac_res=$ac_cv_search_pow
14633if test "$ac_res" != no
14634then :
14635  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14636
14637fi
14638
14639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing glib_check_version" >&5
14640printf %s "checking for library containing glib_check_version... " >&6; }
14641if test ${ac_cv_search_glib_check_version+y}
14642then :
14643  printf %s "(cached) " >&6
14644else $as_nop
14645  ac_func_search_save_LIBS=$LIBS
14646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14647/* end confdefs.h.  */
14648
14649/* Override any GCC internal prototype to avoid an error.
14650   Use char because int might match the return type of a GCC
14651   builtin and then its argument prototype would still apply.  */
14652char glib_check_version ();
14653int
14654main (void)
14655{
14656return glib_check_version ();
14657  ;
14658  return 0;
14659}
14660_ACEOF
14661for ac_lib in '' glib-2.0
14662do
14663  if test -z "$ac_lib"; then
14664    ac_res="none required"
14665  else
14666    ac_res=-l$ac_lib
14667    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14668  fi
14669  if ac_fn_c_try_link "$LINENO"
14670then :
14671  ac_cv_search_glib_check_version=$ac_res
14672fi
14673rm -f core conftest.err conftest.$ac_objext conftest.beam \
14674    conftest$ac_exeext
14675  if test ${ac_cv_search_glib_check_version+y}
14676then :
14677  break
14678fi
14679done
14680if test ${ac_cv_search_glib_check_version+y}
14681then :
14682
14683else $as_nop
14684  ac_cv_search_glib_check_version=no
14685fi
14686rm conftest.$ac_ext
14687LIBS=$ac_func_search_save_LIBS
14688fi
14689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glib_check_version" >&5
14690printf "%s\n" "$ac_cv_search_glib_check_version" >&6; }
14691ac_res=$ac_cv_search_glib_check_version
14692if test "$ac_res" != no
14693then :
14694  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14695
14696fi
14697
14698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing poptGetContext" >&5
14699printf %s "checking for library containing poptGetContext... " >&6; }
14700if test ${ac_cv_search_poptGetContext+y}
14701then :
14702  printf %s "(cached) " >&6
14703else $as_nop
14704  ac_func_search_save_LIBS=$LIBS
14705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14706/* end confdefs.h.  */
14707
14708/* Override any GCC internal prototype to avoid an error.
14709   Use char because int might match the return type of a GCC
14710   builtin and then its argument prototype would still apply.  */
14711char poptGetContext ();
14712int
14713main (void)
14714{
14715return poptGetContext ();
14716  ;
14717  return 0;
14718}
14719_ACEOF
14720for ac_lib in '' popt
14721do
14722  if test -z "$ac_lib"; then
14723    ac_res="none required"
14724  else
14725    ac_res=-l$ac_lib
14726    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14727  fi
14728  if ac_fn_c_try_link "$LINENO"
14729then :
14730  ac_cv_search_poptGetContext=$ac_res
14731fi
14732rm -f core conftest.err conftest.$ac_objext conftest.beam \
14733    conftest$ac_exeext
14734  if test ${ac_cv_search_poptGetContext+y}
14735then :
14736  break
14737fi
14738done
14739if test ${ac_cv_search_poptGetContext+y}
14740then :
14741
14742else $as_nop
14743  ac_cv_search_poptGetContext=no
14744fi
14745rm conftest.$ac_ext
14746LIBS=$ac_func_search_save_LIBS
14747fi
14748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_poptGetContext" >&5
14749printf "%s\n" "$ac_cv_search_poptGetContext" >&6; }
14750ac_res=$ac_cv_search_poptGetContext
14751if test "$ac_res" != no
14752then :
14753  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14754
14755fi
14756
14757
14758# Check for inet_ntop (it's supposed to exists everywhere, but ...)
14759ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
14760if test "x$ac_cv_func_inet_ntop" = xyes
14761then :
14762  printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
14763
14764fi
14765
14766
14767# check for g_list_free_full (glib < 2.28)
14768ac_fn_c_check_func "$LINENO" "g_list_free_full" "ac_cv_func_g_list_free_full"
14769if test "x$ac_cv_func_g_list_free_full" = xyes
14770then :
14771  printf "%s\n" "#define HAVE_G_LIST_FREE_FULL 1" >>confdefs.h
14772
14773fi
14774
14775
14776# check for g_ptr_array_insert (glib < 2.40, RHEL7/CENTOS7 and before)
14777ac_fn_c_check_func "$LINENO" "g_ptr_array_insert" "ac_cv_func_g_ptr_array_insert"
14778if test "x$ac_cv_func_g_ptr_array_insert" = xyes
14779then :
14780  printf "%s\n" "#define HAVE_G_PTR_ARRAY_INSERT 1" >>confdefs.h
14781
14782fi
14783
14784
14785ALL_LINGUAS="es fr nl tr sv it de ru"
14786
14787        MKINSTALLDIRS=
14788  if test -n "$ac_aux_dir"; then
14789    MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
14790  fi
14791  if test -z "$MKINSTALLDIRS"; then
14792    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14793  fi
14794
14795
14796
14797
14798
14799        # Extract the first word of "msgfmt", so it can be a program name with args.
14800set dummy msgfmt; ac_word=$2
14801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14802printf %s "checking for $ac_word... " >&6; }
14803if test ${ac_cv_path_MSGFMT+y}
14804then :
14805  printf %s "(cached) " >&6
14806else $as_nop
14807  case "$MSGFMT" in
14808  /*)
14809  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14810  ;;
14811  *)
14812  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14813  for ac_dir in $PATH; do
14814    test -z "$ac_dir" && ac_dir=.
14815    if test -f $ac_dir/$ac_word; then
14816      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
14817     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14818	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14819	break
14820      fi
14821    fi
14822  done
14823  IFS="$ac_save_ifs"
14824  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14825  ;;
14826esac
14827fi
14828MSGFMT="$ac_cv_path_MSGFMT"
14829if test "$MSGFMT" != ":"; then
14830  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14831printf "%s\n" "$MSGFMT" >&6; }
14832else
14833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14834printf "%s\n" "no" >&6; }
14835fi
14836
14837  # Extract the first word of "gmsgfmt", so it can be a program name with args.
14838set dummy gmsgfmt; ac_word=$2
14839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14840printf %s "checking for $ac_word... " >&6; }
14841if test ${ac_cv_path_GMSGFMT+y}
14842then :
14843  printf %s "(cached) " >&6
14844else $as_nop
14845  case $GMSGFMT in
14846  [\\/]* | ?:[\\/]*)
14847  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14848  ;;
14849  *)
14850  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14851for as_dir in $PATH
14852do
14853  IFS=$as_save_IFS
14854  case $as_dir in #(((
14855    '') as_dir=./ ;;
14856    */) ;;
14857    *) as_dir=$as_dir/ ;;
14858  esac
14859    for ac_exec_ext in '' $ac_executable_extensions; do
14860  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14861    ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
14862    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14863    break 2
14864  fi
14865done
14866  done
14867IFS=$as_save_IFS
14868
14869  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14870  ;;
14871esac
14872fi
14873GMSGFMT=$ac_cv_path_GMSGFMT
14874if test -n "$GMSGFMT"; then
14875  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14876printf "%s\n" "$GMSGFMT" >&6; }
14877else
14878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14879printf "%s\n" "no" >&6; }
14880fi
14881
14882
14883
14884        # Extract the first word of "xgettext", so it can be a program name with args.
14885set dummy xgettext; ac_word=$2
14886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14887printf %s "checking for $ac_word... " >&6; }
14888if test ${ac_cv_path_XGETTEXT+y}
14889then :
14890  printf %s "(cached) " >&6
14891else $as_nop
14892  case "$XGETTEXT" in
14893  /*)
14894  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14895  ;;
14896  *)
14897  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14898  for ac_dir in $PATH; do
14899    test -z "$ac_dir" && ac_dir=.
14900    if test -f $ac_dir/$ac_word; then
14901      if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
14902     (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14903	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
14904	break
14905      fi
14906    fi
14907  done
14908  IFS="$ac_save_ifs"
14909  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14910  ;;
14911esac
14912fi
14913XGETTEXT="$ac_cv_path_XGETTEXT"
14914if test "$XGETTEXT" != ":"; then
14915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14916printf "%s\n" "$XGETTEXT" >&6; }
14917else
14918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14919printf "%s\n" "no" >&6; }
14920fi
14921
14922    rm -f messages.po
14923
14924    # Extract the first word of "msgmerge", so it can be a program name with args.
14925set dummy msgmerge; ac_word=$2
14926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14927printf %s "checking for $ac_word... " >&6; }
14928if test ${ac_cv_path_MSGMERGE+y}
14929then :
14930  printf %s "(cached) " >&6
14931else $as_nop
14932  case "$MSGMERGE" in
14933  /*)
14934  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14935  ;;
14936  *)
14937  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14938  for ac_dir in $PATH; do
14939    test -z "$ac_dir" && ac_dir=.
14940    if test -f $ac_dir/$ac_word; then
14941      if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
14942	ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
14943	break
14944      fi
14945    fi
14946  done
14947  IFS="$ac_save_ifs"
14948  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14949  ;;
14950esac
14951fi
14952MSGMERGE="$ac_cv_path_MSGMERGE"
14953if test "$MSGMERGE" != ":"; then
14954  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14955printf "%s\n" "$MSGMERGE" >&6; }
14956else
14957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14958printf "%s\n" "no" >&6; }
14959fi
14960
14961
14962      if test "$GMSGFMT" != ":"; then
14963            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
14964       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14965      : ;
14966    else
14967      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
14968      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
14969printf "%s\n" "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
14970      GMSGFMT=":"
14971    fi
14972  fi
14973
14974      if test "$XGETTEXT" != ":"; then
14975            if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
14976       (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14977      : ;
14978    else
14979      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
14980printf "%s\n" "found xgettext program is not GNU xgettext; ignore it" >&6; }
14981      XGETTEXT=":"
14982    fi
14983        rm -f messages.po
14984  fi
14985
14986  ac_config_commands="$ac_config_commands default-1"
14987
14988
14989
14990      if test "X$prefix" = "XNONE"; then
14991    acl_final_prefix="$ac_default_prefix"
14992  else
14993    acl_final_prefix="$prefix"
14994  fi
14995  if test "X$exec_prefix" = "XNONE"; then
14996    acl_final_exec_prefix='${prefix}'
14997  else
14998    acl_final_exec_prefix="$exec_prefix"
14999  fi
15000  acl_save_prefix="$prefix"
15001  prefix="$acl_final_prefix"
15002  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15003  prefix="$acl_save_prefix"
15004
15005
15006# Check whether --with-gnu-ld was given.
15007if test ${with_gnu_ld+y}
15008then :
15009  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15010else $as_nop
15011  with_gnu_ld=no
15012fi
15013
15014ac_prog=ld
15015if test "$GCC" = yes; then
15016  # Check if gcc -print-prog-name=ld gives a path.
15017  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
15018printf %s "checking for ld used by GCC... " >&6; }
15019  case $host in
15020  *-*-mingw*)
15021    # gcc leaves a trailing carriage return which upsets mingw
15022    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15023  *)
15024    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15025  esac
15026  case $ac_prog in
15027    # Accept absolute paths.
15028    [\\/]* | [A-Za-z]:[\\/]*)
15029      re_direlt='/[^/][^/]*/\.\./'
15030      # Canonicalize the path of ld
15031      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15032      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15033	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15034      done
15035      test -z "$LD" && LD="$ac_prog"
15036      ;;
15037  "")
15038    # If it fails, then pretend we aren't using GCC.
15039    ac_prog=ld
15040    ;;
15041  *)
15042    # If it is relative, then search for the first ld in PATH.
15043    with_gnu_ld=unknown
15044    ;;
15045  esac
15046elif test "$with_gnu_ld" = yes; then
15047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15048printf %s "checking for GNU ld... " >&6; }
15049else
15050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15051printf %s "checking for non-GNU ld... " >&6; }
15052fi
15053if test ${acl_cv_path_LD+y}
15054then :
15055  printf %s "(cached) " >&6
15056else $as_nop
15057  if test -z "$LD"; then
15058  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15059  for ac_dir in $PATH; do
15060    test -z "$ac_dir" && ac_dir=.
15061    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15062      acl_cv_path_LD="$ac_dir/$ac_prog"
15063      # Check to see if the program is GNU ld.  I'd rather use --version,
15064      # but apparently some GNU ld's only accept -v.
15065      # Break only if it was the GNU/non-GNU ld that we prefer.
15066      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
15067	test "$with_gnu_ld" != no && break
15068      else
15069	test "$with_gnu_ld" != yes && break
15070      fi
15071    fi
15072  done
15073  IFS="$ac_save_ifs"
15074else
15075  acl_cv_path_LD="$LD" # Let the user override the test with a path.
15076fi
15077fi
15078
15079LD="$acl_cv_path_LD"
15080if test -n "$LD"; then
15081  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15082printf "%s\n" "$LD" >&6; }
15083else
15084  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15085printf "%s\n" "no" >&6; }
15086fi
15087test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15089printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15090if test ${acl_cv_prog_gnu_ld+y}
15091then :
15092  printf %s "(cached) " >&6
15093else $as_nop
15094  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15095if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
15096  acl_cv_prog_gnu_ld=yes
15097else
15098  acl_cv_prog_gnu_ld=no
15099fi
15100fi
15101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15102printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
15103with_gnu_ld=$acl_cv_prog_gnu_ld
15104
15105
15106
15107                                                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15108printf %s "checking for shared library run path origin... " >&6; }
15109if test ${acl_cv_rpath+y}
15110then :
15111  printf %s "(cached) " >&6
15112else $as_nop
15113
15114    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15115    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15116    . ./conftest.sh
15117    rm -f ./conftest.sh
15118    acl_cv_rpath=done
15119
15120fi
15121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15122printf "%s\n" "$acl_cv_rpath" >&6; }
15123  wl="$acl_cv_wl"
15124  libext="$acl_cv_libext"
15125  shlibext="$acl_cv_shlibext"
15126  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15127  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15128  hardcode_direct="$acl_cv_hardcode_direct"
15129  hardcode_minus_L="$acl_cv_hardcode_minus_L"
15130  sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
15131  sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
15132    # Check whether --enable-rpath was given.
15133if test ${enable_rpath+y}
15134then :
15135  enableval=$enable_rpath; :
15136else $as_nop
15137  enable_rpath=yes
15138fi
15139
15140
15141
15142
15143
15144
15145
15146
15147    use_additional=yes
15148
15149  acl_save_prefix="$prefix"
15150  prefix="$acl_final_prefix"
15151  acl_save_exec_prefix="$exec_prefix"
15152  exec_prefix="$acl_final_exec_prefix"
15153
15154    eval additional_includedir=\"$includedir\"
15155    eval additional_libdir=\"$libdir\"
15156
15157  exec_prefix="$acl_save_exec_prefix"
15158  prefix="$acl_save_prefix"
15159
15160
15161# Check whether --with-libiconv-prefix was given.
15162if test ${with_libiconv_prefix+y}
15163then :
15164  withval=$with_libiconv_prefix;
15165    if test "X$withval" = "Xno"; then
15166      use_additional=no
15167    else
15168      if test "X$withval" = "X"; then
15169
15170  acl_save_prefix="$prefix"
15171  prefix="$acl_final_prefix"
15172  acl_save_exec_prefix="$exec_prefix"
15173  exec_prefix="$acl_final_exec_prefix"
15174
15175          eval additional_includedir=\"$includedir\"
15176          eval additional_libdir=\"$libdir\"
15177
15178  exec_prefix="$acl_save_exec_prefix"
15179  prefix="$acl_save_prefix"
15180
15181      else
15182        additional_includedir="$withval/include"
15183        additional_libdir="$withval/lib"
15184      fi
15185    fi
15186
15187fi
15188
15189      LIBICONV=
15190  LTLIBICONV=
15191  INCICONV=
15192  rpathdirs=
15193  ltrpathdirs=
15194  names_already_handled=
15195  names_next_round='iconv '
15196  while test -n "$names_next_round"; do
15197    names_this_round="$names_next_round"
15198    names_next_round=
15199    for name in $names_this_round; do
15200      already_handled=
15201      for n in $names_already_handled; do
15202        if test "$n" = "$name"; then
15203          already_handled=yes
15204          break
15205        fi
15206      done
15207      if test -z "$already_handled"; then
15208        names_already_handled="$names_already_handled $name"
15209                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15210        eval value=\"\$HAVE_LIB$uppername\"
15211        if test -n "$value"; then
15212          if test "$value" = yes; then
15213            eval value=\"\$LIB$uppername\"
15214            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15215            eval value=\"\$LTLIB$uppername\"
15216            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15217          else
15218                                    :
15219          fi
15220        else
15221                              found_dir=
15222          found_la=
15223          found_so=
15224          found_a=
15225          if test $use_additional = yes; then
15226            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15227              found_dir="$additional_libdir"
15228              found_so="$additional_libdir/lib$name.$shlibext"
15229              if test -f "$additional_libdir/lib$name.la"; then
15230                found_la="$additional_libdir/lib$name.la"
15231              fi
15232            else
15233              if test -f "$additional_libdir/lib$name.$libext"; then
15234                found_dir="$additional_libdir"
15235                found_a="$additional_libdir/lib$name.$libext"
15236                if test -f "$additional_libdir/lib$name.la"; then
15237                  found_la="$additional_libdir/lib$name.la"
15238                fi
15239              fi
15240            fi
15241          fi
15242          if test "X$found_dir" = "X"; then
15243            for x in $LDFLAGS $LTLIBICONV; do
15244
15245  acl_save_prefix="$prefix"
15246  prefix="$acl_final_prefix"
15247  acl_save_exec_prefix="$exec_prefix"
15248  exec_prefix="$acl_final_exec_prefix"
15249  eval x=\"$x\"
15250  exec_prefix="$acl_save_exec_prefix"
15251  prefix="$acl_save_prefix"
15252
15253              case "$x" in
15254                -L*)
15255                  dir=`echo "X$x" | sed -e 's/^X-L//'`
15256                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15257                    found_dir="$dir"
15258                    found_so="$dir/lib$name.$shlibext"
15259                    if test -f "$dir/lib$name.la"; then
15260                      found_la="$dir/lib$name.la"
15261                    fi
15262                  else
15263                    if test -f "$dir/lib$name.$libext"; then
15264                      found_dir="$dir"
15265                      found_a="$dir/lib$name.$libext"
15266                      if test -f "$dir/lib$name.la"; then
15267                        found_la="$dir/lib$name.la"
15268                      fi
15269                    fi
15270                  fi
15271                  ;;
15272              esac
15273              if test "X$found_dir" != "X"; then
15274                break
15275              fi
15276            done
15277          fi
15278          if test "X$found_dir" != "X"; then
15279                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15280            if test "X$found_so" != "X"; then
15281                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15282                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15283              else
15284                                                                                haveit=
15285                for x in $ltrpathdirs; do
15286                  if test "X$x" = "X$found_dir"; then
15287                    haveit=yes
15288                    break
15289                  fi
15290                done
15291                if test -z "$haveit"; then
15292                  ltrpathdirs="$ltrpathdirs $found_dir"
15293                fi
15294                                if test "$hardcode_direct" = yes; then
15295                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15296                else
15297                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15298                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15299                                                            haveit=
15300                    for x in $rpathdirs; do
15301                      if test "X$x" = "X$found_dir"; then
15302                        haveit=yes
15303                        break
15304                      fi
15305                    done
15306                    if test -z "$haveit"; then
15307                      rpathdirs="$rpathdirs $found_dir"
15308                    fi
15309                  else
15310                                                                                haveit=
15311                    for x in $LDFLAGS $LIBICONV; do
15312
15313  acl_save_prefix="$prefix"
15314  prefix="$acl_final_prefix"
15315  acl_save_exec_prefix="$exec_prefix"
15316  exec_prefix="$acl_final_exec_prefix"
15317  eval x=\"$x\"
15318  exec_prefix="$acl_save_exec_prefix"
15319  prefix="$acl_save_prefix"
15320
15321                      if test "X$x" = "X-L$found_dir"; then
15322                        haveit=yes
15323                        break
15324                      fi
15325                    done
15326                    if test -z "$haveit"; then
15327                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15328                    fi
15329                    if test "$hardcode_minus_L" != no; then
15330                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15331                    else
15332                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15333                    fi
15334                  fi
15335                fi
15336              fi
15337            else
15338              if test "X$found_a" != "X"; then
15339                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15340              else
15341                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15342              fi
15343            fi
15344                        additional_includedir=
15345            case "$found_dir" in
15346              */lib | */lib/)
15347                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15348                additional_includedir="$basedir/include"
15349                ;;
15350            esac
15351            if test "X$additional_includedir" != "X"; then
15352                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
15353                haveit=
15354                if test "X$additional_includedir" = "X/usr/local/include"; then
15355                  if test -n "$GCC"; then
15356                    case $host_os in
15357                      linux*) haveit=yes;;
15358                    esac
15359                  fi
15360                fi
15361                if test -z "$haveit"; then
15362                  for x in $CPPFLAGS $INCICONV; do
15363
15364  acl_save_prefix="$prefix"
15365  prefix="$acl_final_prefix"
15366  acl_save_exec_prefix="$exec_prefix"
15367  exec_prefix="$acl_final_exec_prefix"
15368  eval x=\"$x\"
15369  exec_prefix="$acl_save_exec_prefix"
15370  prefix="$acl_save_prefix"
15371
15372                    if test "X$x" = "X-I$additional_includedir"; then
15373                      haveit=yes
15374                      break
15375                    fi
15376                  done
15377                  if test -z "$haveit"; then
15378                    if test -d "$additional_includedir"; then
15379                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15380                    fi
15381                  fi
15382                fi
15383              fi
15384            fi
15385                        if test -n "$found_la"; then
15386                                                        save_libdir="$libdir"
15387              case "$found_la" in
15388                */* | *\\*) . "$found_la" ;;
15389                *) . "./$found_la" ;;
15390              esac
15391              libdir="$save_libdir"
15392                            for dep in $dependency_libs; do
15393                case "$dep" in
15394                  -L*)
15395                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15396                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
15397                      haveit=
15398                      if test "X$additional_libdir" = "X/usr/local/lib"; then
15399                        if test -n "$GCC"; then
15400                          case $host_os in
15401                            linux*) haveit=yes;;
15402                          esac
15403                        fi
15404                      fi
15405                      if test -z "$haveit"; then
15406                        haveit=
15407                        for x in $LDFLAGS $LIBICONV; do
15408
15409  acl_save_prefix="$prefix"
15410  prefix="$acl_final_prefix"
15411  acl_save_exec_prefix="$exec_prefix"
15412  exec_prefix="$acl_final_exec_prefix"
15413  eval x=\"$x\"
15414  exec_prefix="$acl_save_exec_prefix"
15415  prefix="$acl_save_prefix"
15416
15417                          if test "X$x" = "X-L$additional_libdir"; then
15418                            haveit=yes
15419                            break
15420                          fi
15421                        done
15422                        if test -z "$haveit"; then
15423                          if test -d "$additional_libdir"; then
15424                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15425                          fi
15426                        fi
15427                        haveit=
15428                        for x in $LDFLAGS $LTLIBICONV; do
15429
15430  acl_save_prefix="$prefix"
15431  prefix="$acl_final_prefix"
15432  acl_save_exec_prefix="$exec_prefix"
15433  exec_prefix="$acl_final_exec_prefix"
15434  eval x=\"$x\"
15435  exec_prefix="$acl_save_exec_prefix"
15436  prefix="$acl_save_prefix"
15437
15438                          if test "X$x" = "X-L$additional_libdir"; then
15439                            haveit=yes
15440                            break
15441                          fi
15442                        done
15443                        if test -z "$haveit"; then
15444                          if test -d "$additional_libdir"; then
15445                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15446                          fi
15447                        fi
15448                      fi
15449                    fi
15450                    ;;
15451                  -R*)
15452                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
15453                    if test "$enable_rpath" != no; then
15454                                                                  haveit=
15455                      for x in $rpathdirs; do
15456                        if test "X$x" = "X$dir"; then
15457                          haveit=yes
15458                          break
15459                        fi
15460                      done
15461                      if test -z "$haveit"; then
15462                        rpathdirs="$rpathdirs $dir"
15463                      fi
15464                                                                  haveit=
15465                      for x in $ltrpathdirs; do
15466                        if test "X$x" = "X$dir"; then
15467                          haveit=yes
15468                          break
15469                        fi
15470                      done
15471                      if test -z "$haveit"; then
15472                        ltrpathdirs="$ltrpathdirs $dir"
15473                      fi
15474                    fi
15475                    ;;
15476                  -l*)
15477                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15478                    ;;
15479                  *.la)
15480                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15481                    ;;
15482                  *)
15483                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15484                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15485                    ;;
15486                esac
15487              done
15488            fi
15489          else
15490                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15491            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15492          fi
15493        fi
15494      fi
15495    done
15496  done
15497  if test "X$rpathdirs" != "X"; then
15498    if test -n "$hardcode_libdir_separator"; then
15499                        alldirs=
15500      for found_dir in $rpathdirs; do
15501        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15502      done
15503            acl_save_libdir="$libdir"
15504      libdir="$alldirs"
15505      eval flag=\"$hardcode_libdir_flag_spec\"
15506      libdir="$acl_save_libdir"
15507      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15508    else
15509            for found_dir in $rpathdirs; do
15510        acl_save_libdir="$libdir"
15511        libdir="$found_dir"
15512        eval flag=\"$hardcode_libdir_flag_spec\"
15513        libdir="$acl_save_libdir"
15514        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15515      done
15516    fi
15517  fi
15518  if test "X$ltrpathdirs" != "X"; then
15519            for found_dir in $ltrpathdirs; do
15520      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15521    done
15522  fi
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15541printf %s "checking whether NLS is requested... " >&6; }
15542    # Check whether --enable-nls was given.
15543if test ${enable_nls+y}
15544then :
15545  enableval=$enable_nls; USE_NLS=$enableval
15546else $as_nop
15547  USE_NLS=yes
15548fi
15549
15550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15551printf "%s\n" "$USE_NLS" >&6; }
15552
15553
15554
15555  LIBINTL=
15556  LTLIBINTL=
15557  POSUB=
15558
15559    if test "$USE_NLS" = "yes"; then
15560    gt_use_preinstalled_gnugettext=no
15561
15562
15563
15564
15565
15566
15567        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15568printf %s "checking for GNU gettext in libc... " >&6; }
15569if test ${gt_cv_func_gnugettext1_libc+y}
15570then :
15571  printf %s "(cached) " >&6
15572else $as_nop
15573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15574/* end confdefs.h.  */
15575#include <libintl.h>
15576extern int _nl_msg_cat_cntr;
15577extern int *_nl_domain_bindings;
15578int
15579main (void)
15580{
15581bindtextdomain ("", "");
15582return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
15583  ;
15584  return 0;
15585}
15586_ACEOF
15587if ac_fn_c_try_link "$LINENO"
15588then :
15589  gt_cv_func_gnugettext1_libc=yes
15590else $as_nop
15591  gt_cv_func_gnugettext1_libc=no
15592fi
15593rm -f core conftest.err conftest.$ac_objext conftest.beam \
15594    conftest$ac_exeext conftest.$ac_ext
15595fi
15596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
15597printf "%s\n" "$gt_cv_func_gnugettext1_libc" >&6; }
15598
15599        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
15600
15601
15602
15603
15604
15605          am_save_CPPFLAGS="$CPPFLAGS"
15606
15607  for element in $INCICONV; do
15608    haveit=
15609    for x in $CPPFLAGS; do
15610
15611  acl_save_prefix="$prefix"
15612  prefix="$acl_final_prefix"
15613  acl_save_exec_prefix="$exec_prefix"
15614  exec_prefix="$acl_final_exec_prefix"
15615  eval x=\"$x\"
15616  exec_prefix="$acl_save_exec_prefix"
15617  prefix="$acl_save_prefix"
15618
15619      if test "X$x" = "X$element"; then
15620        haveit=yes
15621        break
15622      fi
15623    done
15624    if test -z "$haveit"; then
15625      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15626    fi
15627  done
15628
15629
15630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15631printf %s "checking for iconv... " >&6; }
15632if test ${am_cv_func_iconv+y}
15633then :
15634  printf %s "(cached) " >&6
15635else $as_nop
15636
15637    am_cv_func_iconv="no, consider installing GNU libiconv"
15638    am_cv_lib_iconv=no
15639    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15640/* end confdefs.h.  */
15641#include <stdlib.h>
15642#include <iconv.h>
15643int
15644main (void)
15645{
15646iconv_t cd = iconv_open("","");
15647       iconv(cd,NULL,NULL,NULL,NULL);
15648       iconv_close(cd);
15649  ;
15650  return 0;
15651}
15652_ACEOF
15653if ac_fn_c_try_link "$LINENO"
15654then :
15655  am_cv_func_iconv=yes
15656fi
15657rm -f core conftest.err conftest.$ac_objext conftest.beam \
15658    conftest$ac_exeext conftest.$ac_ext
15659    if test "$am_cv_func_iconv" != yes; then
15660      am_save_LIBS="$LIBS"
15661      LIBS="$LIBS $LIBICONV"
15662      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663/* end confdefs.h.  */
15664#include <stdlib.h>
15665#include <iconv.h>
15666int
15667main (void)
15668{
15669iconv_t cd = iconv_open("","");
15670         iconv(cd,NULL,NULL,NULL,NULL);
15671         iconv_close(cd);
15672  ;
15673  return 0;
15674}
15675_ACEOF
15676if ac_fn_c_try_link "$LINENO"
15677then :
15678  am_cv_lib_iconv=yes
15679        am_cv_func_iconv=yes
15680fi
15681rm -f core conftest.err conftest.$ac_objext conftest.beam \
15682    conftest$ac_exeext conftest.$ac_ext
15683      LIBS="$am_save_LIBS"
15684    fi
15685
15686fi
15687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15688printf "%s\n" "$am_cv_func_iconv" >&6; }
15689  if test "$am_cv_func_iconv" = yes; then
15690
15691printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
15692
15693  fi
15694  if test "$am_cv_lib_iconv" = yes; then
15695    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15696printf %s "checking how to link with libiconv... " >&6; }
15697    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15698printf "%s\n" "$LIBICONV" >&6; }
15699  else
15700            CPPFLAGS="$am_save_CPPFLAGS"
15701    LIBICONV=
15702    LTLIBICONV=
15703  fi
15704
15705
15706
15707
15708
15709
15710    use_additional=yes
15711
15712  acl_save_prefix="$prefix"
15713  prefix="$acl_final_prefix"
15714  acl_save_exec_prefix="$exec_prefix"
15715  exec_prefix="$acl_final_exec_prefix"
15716
15717    eval additional_includedir=\"$includedir\"
15718    eval additional_libdir=\"$libdir\"
15719
15720  exec_prefix="$acl_save_exec_prefix"
15721  prefix="$acl_save_prefix"
15722
15723
15724# Check whether --with-libintl-prefix was given.
15725if test ${with_libintl_prefix+y}
15726then :
15727  withval=$with_libintl_prefix;
15728    if test "X$withval" = "Xno"; then
15729      use_additional=no
15730    else
15731      if test "X$withval" = "X"; then
15732
15733  acl_save_prefix="$prefix"
15734  prefix="$acl_final_prefix"
15735  acl_save_exec_prefix="$exec_prefix"
15736  exec_prefix="$acl_final_exec_prefix"
15737
15738          eval additional_includedir=\"$includedir\"
15739          eval additional_libdir=\"$libdir\"
15740
15741  exec_prefix="$acl_save_exec_prefix"
15742  prefix="$acl_save_prefix"
15743
15744      else
15745        additional_includedir="$withval/include"
15746        additional_libdir="$withval/lib"
15747      fi
15748    fi
15749
15750fi
15751
15752      LIBINTL=
15753  LTLIBINTL=
15754  INCINTL=
15755  rpathdirs=
15756  ltrpathdirs=
15757  names_already_handled=
15758  names_next_round='intl '
15759  while test -n "$names_next_round"; do
15760    names_this_round="$names_next_round"
15761    names_next_round=
15762    for name in $names_this_round; do
15763      already_handled=
15764      for n in $names_already_handled; do
15765        if test "$n" = "$name"; then
15766          already_handled=yes
15767          break
15768        fi
15769      done
15770      if test -z "$already_handled"; then
15771        names_already_handled="$names_already_handled $name"
15772                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15773        eval value=\"\$HAVE_LIB$uppername\"
15774        if test -n "$value"; then
15775          if test "$value" = yes; then
15776            eval value=\"\$LIB$uppername\"
15777            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15778            eval value=\"\$LTLIB$uppername\"
15779            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15780          else
15781                                    :
15782          fi
15783        else
15784                              found_dir=
15785          found_la=
15786          found_so=
15787          found_a=
15788          if test $use_additional = yes; then
15789            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15790              found_dir="$additional_libdir"
15791              found_so="$additional_libdir/lib$name.$shlibext"
15792              if test -f "$additional_libdir/lib$name.la"; then
15793                found_la="$additional_libdir/lib$name.la"
15794              fi
15795            else
15796              if test -f "$additional_libdir/lib$name.$libext"; then
15797                found_dir="$additional_libdir"
15798                found_a="$additional_libdir/lib$name.$libext"
15799                if test -f "$additional_libdir/lib$name.la"; then
15800                  found_la="$additional_libdir/lib$name.la"
15801                fi
15802              fi
15803            fi
15804          fi
15805          if test "X$found_dir" = "X"; then
15806            for x in $LDFLAGS $LTLIBINTL; do
15807
15808  acl_save_prefix="$prefix"
15809  prefix="$acl_final_prefix"
15810  acl_save_exec_prefix="$exec_prefix"
15811  exec_prefix="$acl_final_exec_prefix"
15812  eval x=\"$x\"
15813  exec_prefix="$acl_save_exec_prefix"
15814  prefix="$acl_save_prefix"
15815
15816              case "$x" in
15817                -L*)
15818                  dir=`echo "X$x" | sed -e 's/^X-L//'`
15819                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15820                    found_dir="$dir"
15821                    found_so="$dir/lib$name.$shlibext"
15822                    if test -f "$dir/lib$name.la"; then
15823                      found_la="$dir/lib$name.la"
15824                    fi
15825                  else
15826                    if test -f "$dir/lib$name.$libext"; then
15827                      found_dir="$dir"
15828                      found_a="$dir/lib$name.$libext"
15829                      if test -f "$dir/lib$name.la"; then
15830                        found_la="$dir/lib$name.la"
15831                      fi
15832                    fi
15833                  fi
15834                  ;;
15835              esac
15836              if test "X$found_dir" != "X"; then
15837                break
15838              fi
15839            done
15840          fi
15841          if test "X$found_dir" != "X"; then
15842                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15843            if test "X$found_so" != "X"; then
15844                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15845                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15846              else
15847                                                                                haveit=
15848                for x in $ltrpathdirs; do
15849                  if test "X$x" = "X$found_dir"; then
15850                    haveit=yes
15851                    break
15852                  fi
15853                done
15854                if test -z "$haveit"; then
15855                  ltrpathdirs="$ltrpathdirs $found_dir"
15856                fi
15857                                if test "$hardcode_direct" = yes; then
15858                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15859                else
15860                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15861                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15862                                                            haveit=
15863                    for x in $rpathdirs; do
15864                      if test "X$x" = "X$found_dir"; then
15865                        haveit=yes
15866                        break
15867                      fi
15868                    done
15869                    if test -z "$haveit"; then
15870                      rpathdirs="$rpathdirs $found_dir"
15871                    fi
15872                  else
15873                                                                                haveit=
15874                    for x in $LDFLAGS $LIBINTL; do
15875
15876  acl_save_prefix="$prefix"
15877  prefix="$acl_final_prefix"
15878  acl_save_exec_prefix="$exec_prefix"
15879  exec_prefix="$acl_final_exec_prefix"
15880  eval x=\"$x\"
15881  exec_prefix="$acl_save_exec_prefix"
15882  prefix="$acl_save_prefix"
15883
15884                      if test "X$x" = "X-L$found_dir"; then
15885                        haveit=yes
15886                        break
15887                      fi
15888                    done
15889                    if test -z "$haveit"; then
15890                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15891                    fi
15892                    if test "$hardcode_minus_L" != no; then
15893                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15894                    else
15895                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15896                    fi
15897                  fi
15898                fi
15899              fi
15900            else
15901              if test "X$found_a" != "X"; then
15902                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15903              else
15904                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15905              fi
15906            fi
15907                        additional_includedir=
15908            case "$found_dir" in
15909              */lib | */lib/)
15910                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15911                additional_includedir="$basedir/include"
15912                ;;
15913            esac
15914            if test "X$additional_includedir" != "X"; then
15915                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
15916                haveit=
15917                if test "X$additional_includedir" = "X/usr/local/include"; then
15918                  if test -n "$GCC"; then
15919                    case $host_os in
15920                      linux*) haveit=yes;;
15921                    esac
15922                  fi
15923                fi
15924                if test -z "$haveit"; then
15925                  for x in $CPPFLAGS $INCINTL; do
15926
15927  acl_save_prefix="$prefix"
15928  prefix="$acl_final_prefix"
15929  acl_save_exec_prefix="$exec_prefix"
15930  exec_prefix="$acl_final_exec_prefix"
15931  eval x=\"$x\"
15932  exec_prefix="$acl_save_exec_prefix"
15933  prefix="$acl_save_prefix"
15934
15935                    if test "X$x" = "X-I$additional_includedir"; then
15936                      haveit=yes
15937                      break
15938                    fi
15939                  done
15940                  if test -z "$haveit"; then
15941                    if test -d "$additional_includedir"; then
15942                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15943                    fi
15944                  fi
15945                fi
15946              fi
15947            fi
15948                        if test -n "$found_la"; then
15949                                                        save_libdir="$libdir"
15950              case "$found_la" in
15951                */* | *\\*) . "$found_la" ;;
15952                *) . "./$found_la" ;;
15953              esac
15954              libdir="$save_libdir"
15955                            for dep in $dependency_libs; do
15956                case "$dep" in
15957                  -L*)
15958                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15959                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
15960                      haveit=
15961                      if test "X$additional_libdir" = "X/usr/local/lib"; then
15962                        if test -n "$GCC"; then
15963                          case $host_os in
15964                            linux*) haveit=yes;;
15965                          esac
15966                        fi
15967                      fi
15968                      if test -z "$haveit"; then
15969                        haveit=
15970                        for x in $LDFLAGS $LIBINTL; do
15971
15972  acl_save_prefix="$prefix"
15973  prefix="$acl_final_prefix"
15974  acl_save_exec_prefix="$exec_prefix"
15975  exec_prefix="$acl_final_exec_prefix"
15976  eval x=\"$x\"
15977  exec_prefix="$acl_save_exec_prefix"
15978  prefix="$acl_save_prefix"
15979
15980                          if test "X$x" = "X-L$additional_libdir"; then
15981                            haveit=yes
15982                            break
15983                          fi
15984                        done
15985                        if test -z "$haveit"; then
15986                          if test -d "$additional_libdir"; then
15987                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15988                          fi
15989                        fi
15990                        haveit=
15991                        for x in $LDFLAGS $LTLIBINTL; do
15992
15993  acl_save_prefix="$prefix"
15994  prefix="$acl_final_prefix"
15995  acl_save_exec_prefix="$exec_prefix"
15996  exec_prefix="$acl_final_exec_prefix"
15997  eval x=\"$x\"
15998  exec_prefix="$acl_save_exec_prefix"
15999  prefix="$acl_save_prefix"
16000
16001                          if test "X$x" = "X-L$additional_libdir"; then
16002                            haveit=yes
16003                            break
16004                          fi
16005                        done
16006                        if test -z "$haveit"; then
16007                          if test -d "$additional_libdir"; then
16008                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16009                          fi
16010                        fi
16011                      fi
16012                    fi
16013                    ;;
16014                  -R*)
16015                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
16016                    if test "$enable_rpath" != no; then
16017                                                                  haveit=
16018                      for x in $rpathdirs; do
16019                        if test "X$x" = "X$dir"; then
16020                          haveit=yes
16021                          break
16022                        fi
16023                      done
16024                      if test -z "$haveit"; then
16025                        rpathdirs="$rpathdirs $dir"
16026                      fi
16027                                                                  haveit=
16028                      for x in $ltrpathdirs; do
16029                        if test "X$x" = "X$dir"; then
16030                          haveit=yes
16031                          break
16032                        fi
16033                      done
16034                      if test -z "$haveit"; then
16035                        ltrpathdirs="$ltrpathdirs $dir"
16036                      fi
16037                    fi
16038                    ;;
16039                  -l*)
16040                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16041                    ;;
16042                  *.la)
16043                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16044                    ;;
16045                  *)
16046                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16047                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16048                    ;;
16049                esac
16050              done
16051            fi
16052          else
16053                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16054            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16055          fi
16056        fi
16057      fi
16058    done
16059  done
16060  if test "X$rpathdirs" != "X"; then
16061    if test -n "$hardcode_libdir_separator"; then
16062                        alldirs=
16063      for found_dir in $rpathdirs; do
16064        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16065      done
16066            acl_save_libdir="$libdir"
16067      libdir="$alldirs"
16068      eval flag=\"$hardcode_libdir_flag_spec\"
16069      libdir="$acl_save_libdir"
16070      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16071    else
16072            for found_dir in $rpathdirs; do
16073        acl_save_libdir="$libdir"
16074        libdir="$found_dir"
16075        eval flag=\"$hardcode_libdir_flag_spec\"
16076        libdir="$acl_save_libdir"
16077        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16078      done
16079    fi
16080  fi
16081  if test "X$ltrpathdirs" != "X"; then
16082            for found_dir in $ltrpathdirs; do
16083      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16084    done
16085  fi
16086
16087          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16088printf %s "checking for GNU gettext in libintl... " >&6; }
16089if test ${gt_cv_func_gnugettext1_libintl+y}
16090then :
16091  printf %s "(cached) " >&6
16092else $as_nop
16093  gt_save_CPPFLAGS="$CPPFLAGS"
16094            CPPFLAGS="$CPPFLAGS $INCINTL"
16095            gt_save_LIBS="$LIBS"
16096            LIBS="$LIBS $LIBINTL"
16097                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16098/* end confdefs.h.  */
16099#include <libintl.h>
16100extern int _nl_msg_cat_cntr;
16101extern
16102#ifdef __cplusplus
16103"C"
16104#endif
16105const char *_nl_expand_alias ();
16106int
16107main (void)
16108{
16109bindtextdomain ("", "");
16110return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
16111  ;
16112  return 0;
16113}
16114_ACEOF
16115if ac_fn_c_try_link "$LINENO"
16116then :
16117  gt_cv_func_gnugettext1_libintl=yes
16118else $as_nop
16119  gt_cv_func_gnugettext1_libintl=no
16120fi
16121rm -f core conftest.err conftest.$ac_objext conftest.beam \
16122    conftest$ac_exeext conftest.$ac_ext
16123                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
16124              LIBS="$LIBS $LIBICONV"
16125              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126/* end confdefs.h.  */
16127#include <libintl.h>
16128extern int _nl_msg_cat_cntr;
16129extern
16130#ifdef __cplusplus
16131"C"
16132#endif
16133const char *_nl_expand_alias ();
16134int
16135main (void)
16136{
16137bindtextdomain ("", "");
16138return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
16139  ;
16140  return 0;
16141}
16142_ACEOF
16143if ac_fn_c_try_link "$LINENO"
16144then :
16145  LIBINTL="$LIBINTL $LIBICONV"
16146                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16147                gt_cv_func_gnugettext1_libintl=yes
16148
16149fi
16150rm -f core conftest.err conftest.$ac_objext conftest.beam \
16151    conftest$ac_exeext conftest.$ac_ext
16152            fi
16153            CPPFLAGS="$gt_save_CPPFLAGS"
16154            LIBS="$gt_save_LIBS"
16155fi
16156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
16157printf "%s\n" "$gt_cv_func_gnugettext1_libintl" >&6; }
16158        fi
16159
16160                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
16161           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
16162                && test "$PACKAGE" != gettext; }; then
16163          gt_use_preinstalled_gnugettext=yes
16164        else
16165                    LIBINTL=
16166          LTLIBINTL=
16167          INCINTL=
16168        fi
16169
16170
16171
16172    if test "$gt_use_preinstalled_gnugettext" = "yes" \
16173       || test "$nls_cv_use_gnu_gettext" = "yes"; then
16174
16175printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
16176
16177    else
16178      USE_NLS=no
16179    fi
16180  fi
16181
16182  if test "$USE_NLS" = "yes"; then
16183
16184    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16185      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
16186        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16187printf %s "checking how to link with libintl... " >&6; }
16188        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16189printf "%s\n" "$LIBINTL" >&6; }
16190
16191  for element in $INCINTL; do
16192    haveit=
16193    for x in $CPPFLAGS; do
16194
16195  acl_save_prefix="$prefix"
16196  prefix="$acl_final_prefix"
16197  acl_save_exec_prefix="$exec_prefix"
16198  exec_prefix="$acl_final_exec_prefix"
16199  eval x=\"$x\"
16200  exec_prefix="$acl_save_exec_prefix"
16201  prefix="$acl_save_prefix"
16202
16203      if test "X$x" = "X$element"; then
16204        haveit=yes
16205        break
16206      fi
16207    done
16208    if test -z "$haveit"; then
16209      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16210    fi
16211  done
16212
16213      fi
16214
16215
16216printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
16217
16218
16219printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
16220
16221    fi
16222
16223        POSUB=po
16224  fi
16225
16226
16227
16228    INTLLIBS="$LIBINTL"
16229
16230
16231
16232
16233
16234
16235
16236GETTEXT_PACKAGE=etherape
16237
16238printf "%s\n" "#define GETTEXT_PACKAGE \"$GETTEXT_PACKAGE\"" >>confdefs.h
16239
16240
16241if test "x${prefix}" = "xNONE"; then
16242
16243printf "%s\n" "#define PACKAGE_LOCALE_DIR \"${ac_default_prefix}/share/locale\"" >>confdefs.h
16244
16245else
16246
16247printf "%s\n" "#define PACKAGE_LOCALE_DIR \"${prefix}/share/locale\"" >>confdefs.h
16248
16249fi
16250
16251if test "x${prefix}" = "xNONE"; then
16252
16253printf "%s\n" "#define PIXMAPS_DIR \"${ac_default_prefix}/share/pixmaps\"" >>confdefs.h
16254
16255else
16256
16257printf "%s\n" "#define PIXMAPS_DIR \"${prefix}/share/pixmaps\"" >>confdefs.h
16258
16259fi
16260
16261
16262
16263
16264
16265
16266
16267YELP_LC_MEDIA_LINKS=true
16268YELP_LC_DIST=true
16269
16270for yelpopt in ; do
16271  case $yelpopt in
16272    lc-media-links)    YELP_LC_MEDIA_LINKS=true ;;
16273    no-lc-media-links) YELP_LC_MEDIA_LINKS= ;;
16274    lc-dist)           YELP_LC_DIST=true ;;
16275    no-lc-dist)        YELP_LC_DIST= ;;
16276    *) as_fn_error $? "Unrecognized YELP_HELP_INIT option $yelpopt\"" "$LINENO" 5 ;;
16277  esac
16278done;
16279
16280
16281
16282
16283# Check whether --with-help-dir was given.
16284if test ${with_help_dir+y}
16285then :
16286  withval=$with_help_dir;
16287else $as_nop
16288  with_help_dir='${datadir}/help'
16289fi
16290
16291HELP_DIR="$with_help_dir"
16292
16293
16294
16295# Extract the first word of "itstool", so it can be a program name with args.
16296set dummy itstool; ac_word=$2
16297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16298printf %s "checking for $ac_word... " >&6; }
16299if test ${ac_cv_prog_ITSTOOL+y}
16300then :
16301  printf %s "(cached) " >&6
16302else $as_nop
16303  if test -n "$ITSTOOL"; then
16304  ac_cv_prog_ITSTOOL="$ITSTOOL" # Let the user override the test.
16305else
16306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16307for as_dir in $PATH
16308do
16309  IFS=$as_save_IFS
16310  case $as_dir in #(((
16311    '') as_dir=./ ;;
16312    */) ;;
16313    *) as_dir=$as_dir/ ;;
16314  esac
16315    for ac_exec_ext in '' $ac_executable_extensions; do
16316  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16317    ac_cv_prog_ITSTOOL="itstool"
16318    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16319    break 2
16320  fi
16321done
16322  done
16323IFS=$as_save_IFS
16324
16325fi
16326fi
16327ITSTOOL=$ac_cv_prog_ITSTOOL
16328if test -n "$ITSTOOL"; then
16329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ITSTOOL" >&5
16330printf "%s\n" "$ITSTOOL" >&6; }
16331else
16332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16333printf "%s\n" "no" >&6; }
16334fi
16335
16336
16337if test x"$ITSTOOL" = x; then
16338  as_fn_error $? "itstool not found" "$LINENO" 5
16339fi
16340
16341
16342# Extract the first word of "xmllint", so it can be a program name with args.
16343set dummy xmllint; ac_word=$2
16344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16345printf %s "checking for $ac_word... " >&6; }
16346if test ${ac_cv_prog_XMLLINT+y}
16347then :
16348  printf %s "(cached) " >&6
16349else $as_nop
16350  if test -n "$XMLLINT"; then
16351  ac_cv_prog_XMLLINT="$XMLLINT" # Let the user override the test.
16352else
16353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16354for as_dir in $PATH
16355do
16356  IFS=$as_save_IFS
16357  case $as_dir in #(((
16358    '') as_dir=./ ;;
16359    */) ;;
16360    *) as_dir=$as_dir/ ;;
16361  esac
16362    for ac_exec_ext in '' $ac_executable_extensions; do
16363  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16364    ac_cv_prog_XMLLINT="xmllint"
16365    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16366    break 2
16367  fi
16368done
16369  done
16370IFS=$as_save_IFS
16371
16372fi
16373fi
16374XMLLINT=$ac_cv_prog_XMLLINT
16375if test -n "$XMLLINT"; then
16376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
16377printf "%s\n" "$XMLLINT" >&6; }
16378else
16379  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16380printf "%s\n" "no" >&6; }
16381fi
16382
16383
16384if test x"$XMLLINT" = x; then
16385  as_fn_error $? "xmllint not found" "$LINENO" 5
16386fi
16387
16388YELP_HELP_RULES='
16389HELP_ID ?=
16390HELP_POT ?=
16391HELP_FILES ?=
16392HELP_EXTRA ?=
16393HELP_MEDIA ?=
16394HELP_LINGUAS ?=
16395
16396_HELP_LINGUAS = $(if $(filter environment,$(origin LINGUAS)),$(filter $(LINGUAS),$(HELP_LINGUAS)),$(HELP_LINGUAS))
16397_HELP_POTFILE = $(if $(HELP_POT),$(HELP_POT),$(if $(HELP_ID),$(HELP_ID).pot))
16398_HELP_POFILES = $(if $(HELP_ID),$(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).po))
16399_HELP_MOFILES = $(patsubst %.po,%.mo,$(_HELP_POFILES))
16400_HELP_C_FILES = $(foreach f,$(HELP_FILES),C/$(f))
16401_HELP_C_EXTRA = $(foreach f,$(HELP_EXTRA),C/$(f))
16402_HELP_C_MEDIA = $(foreach f,$(HELP_MEDIA),C/$(f))
16403_HELP_LC_FILES = $(foreach lc,$(_HELP_LINGUAS),$(foreach f,$(HELP_FILES),$(lc)/$(f)))
16404_HELP_LC_STAMPS = $(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).stamp)
16405
16406_HELP_DEFAULT_V = $(if $(AM_DEFAULT_VERBOSITY),$(AM_DEFAULT_VERBOSITY),1)
16407_HELP_V = $(if $(V),$(V),$(_HELP_DEFAULT_V))
16408_HELP_LC_VERBOSE = $(_HELP_LC_VERBOSE_$(_HELP_V))
16409_HELP_LC_VERBOSE_ = $(_HELP_LC_VERBOSE_$(_HELP_DEFAULT_V))
16410_HELP_LC_VERBOSE_0 = @echo "  GEN    "$(dir $@);
16411
16412all: $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) $(_HELP_LC_FILES) $(_HELP_POFILES)
16413
16414.PHONY: pot
16415pot: $(_HELP_POTFILE)
16416$(_HELP_POTFILE): $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA)
16417	$(AM_V_GEN)if test -d "C"; then d=; else d="$(srcdir)/"; fi; \
16418	$(ITSTOOL) -o "$@" $(foreach f,$(_HELP_C_FILES),"$${d}$(f)")
16419
16420.PHONY: repo
16421repo: $(_HELP_POTFILE)
16422	$(AM_V_at)for po in $(_HELP_POFILES); do \
16423	  if test "x$(_HELP_V)" = "x0"; then echo "  GEN    $${po}"; fi; \
16424	  msgmerge -q -o "$${po}" "$${po}" "$(_HELP_POTFILE)"; \
16425	done
16426
16427$(_HELP_POFILES):
16428	$(AM_V_at)if ! test -d "$(dir $@)"; then mkdir "$(dir $@)"; fi
16429	$(AM_V_at)if test ! -f "$@" -a -f "$(srcdir)/$@"; then cp "$(srcdir)/$@" "$@"; fi
16430	$(AM_V_GEN)if ! test -f "$@"; then \
16431	  (cd "$(dir $@)" && \
16432	    $(ITSTOOL) -o "$(notdir $@).tmp" $(_HELP_C_FILES) && \
16433	    mv "$(notdir $@).tmp" "$(notdir $@)"); \
16434	else \
16435	  (cd "$(dir $@)" && \
16436	    $(ITSTOOL) -o "$(notdir $@).tmp" $(_HELP_C_FILES) && \
16437	    msgmerge -o "$(notdir $@)" "$(notdir $@)" "$(notdir $@).tmp" && \
16438	    rm "$(notdir $@).tmp"); \
16439	fi
16440
16441$(_HELP_MOFILES): %.mo: %.po
16442	$(AM_V_at)if ! test -d "$(dir $@)"; then mkdir "$(dir $@)"; fi
16443	$(AM_V_GEN)msgfmt -o "$@" "$<"
16444
16445$(_HELP_LC_FILES): $(_HELP_LINGUAS)
16446$(_HELP_LINGUAS): $(_HELP_LC_STAMPS)
16447$(_HELP_LC_STAMPS): %.stamp: %.mo
16448$(_HELP_LC_STAMPS): $(_HELP_C_FILES) $(_HELP_C_EXTRA)
16449	$(AM_V_at)if ! test -d "$(dir $@)"; then mkdir "$(dir $@)"; fi
16450	$(_HELP_LC_VERBOSE)if test -d "C"; then d="../"; else d="$(abs_srcdir)/"; fi; \
16451	mo="$(dir $@)$(patsubst %/$(notdir $@),%,$@).mo"; \
16452	if test -f "$${mo}"; then mo="../$${mo}"; else mo="$(abs_srcdir)/$${mo}"; fi; \
16453	(cd "$(dir $@)" && $(ITSTOOL) -m "$${mo}" $(foreach f,$(_HELP_C_FILES),$${d}/$(f))) && \
16454	touch "$@"
16455
16456.PHONY: clean-help
16457mostlyclean-am: $(if $(HELP_ID),clean-help)
16458clean-help:
16459	rm -f $(_HELP_LC_FILES) $(_HELP_LC_STAMPS) $(_HELP_MOFILES)
16460
16461EXTRA_DIST ?=
16462EXTRA_DIST += $(_HELP_C_EXTRA) $(_HELP_C_MEDIA)
16463EXTRA_DIST += $(if $(YELP_LC_DIST),$(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).stamp))
16464EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).po)
16465EXTRA_DIST += $(foreach f,$(HELP_MEDIA),$(foreach lc,$(HELP_LINGUAS),$(wildcard $(lc)/$(f))))
16466
16467distdir: distdir-help-files
16468distdir-help-files: $(_HELP_LC_FILES)
16469	@for lc in C $(if $(YELP_LC_DIST),$(HELP_LINGUAS)) ; do \
16470	  $(MKDIR_P) "$(distdir)/$$lc"; \
16471	  for file in $(HELP_FILES); do \
16472	    if test -f "$$lc/$$file"; then d=./; else d=$(srcdir)/; fi; \
16473	    cp -p "$$d$$lc/$$file" "$(distdir)/$$lc/" || exit 1; \
16474	  done; \
16475	done; \
16476
16477.PHONY: check-help
16478check: check-help
16479check-help:
16480	for lc in C $(_HELP_LINGUAS); do \
16481	  if test -d "$$lc"; \
16482	    then d=; \
16483	    xmlpath="$$lc"; \
16484	  else \
16485	    d="$(srcdir)/"; \
16486	    xmlpath="$$lc:$(srcdir)/$$lc"; \
16487	  fi; \
16488	  for page in $(HELP_FILES); do \
16489	    echo "$(XMLLINT) --nonet --noout --noent --path $$xmlpath --xinclude $$d$$lc/$$page"; \
16490	    $(XMLLINT) --nonet --noout --noent --path "$$xmlpath" --xinclude "$$d$$lc/$$page"; \
16491	  done; \
16492	done
16493
16494
16495.PHONY: install-help
16496install-data-am: $(if $(HELP_ID),install-help)
16497install-help: $(_HELP_LC_FILES)
16498	@for lc in C $(_HELP_LINGUAS); do \
16499	  $(mkinstalldirs) "$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)" || exit 1; \
16500	done
16501	@for lc in C $(_HELP_LINGUAS); do for f in $(HELP_FILES); do \
16502	  if test -f "$$lc/$$f"; then d=; else d="$(srcdir)/"; fi; \
16503	  helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
16504	  if ! test -d "$$helpdir"; then $(mkinstalldirs) "$$helpdir"; fi; \
16505	  echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir`basename $$f`"; \
16506	  $(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir`basename $$f`" || exit 1; \
16507	done; done
16508	@for f in $(_HELP_C_EXTRA); do \
16509	  lc=`dirname "$$f"`; lc=`basename "$$lc"`; \
16510	  if test -f "$$f"; then d=; else d="$(srcdir)/"; fi; \
16511	  helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
16512	  if ! test -d "$$helpdir"; then $(mkinstalldirs) "$$helpdir"; fi; \
16513	  echo "$(INSTALL_DATA) $$d$$f $$helpdir`basename $$f`"; \
16514	  $(INSTALL_DATA) "$$d$$f" "$$helpdir`basename $$f`" || exit 1; \
16515	done
16516	@for f in $(HELP_MEDIA); do \
16517	  for lc in C $(_HELP_LINGUAS); do \
16518	    if test -f "$$lc$$f"; then d=; else d="$(srcdir)/"; fi; \
16519	    helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
16520	    mdir=`dirname "$$f"`; \
16521	    if test "x$mdir" = "x."; then mdir=""; fi; \
16522	    if ! test -d "$$helpdir$$mdir"; then $(mkinstalldirs) "$$helpdir$$mdir"; fi; \
16523	    if test -f "$$d$$lc/$$f"; then \
16524	      echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir$$f"; \
16525	      $(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir$$f" || exit 1; \
16526	    elif test "x$$lc" != "xC"; then \
16527	      if test "x$(YELP_LC_MEDIA_LINKS)" != "x"; then \
16528	        echo "$(LN_S) -f $(HELP_DIR)/C/$(HELP_ID)/$$f $$helpdir$$f"; \
16529	        $(LN_S) -f "$(HELP_DIR)/C/$(HELP_ID)/$$f" "$$helpdir$$f" || exit 1; \
16530	      fi; \
16531	    fi; \
16532	  done; \
16533	done
16534
16535.PHONY: uninstall-help
16536uninstall-am: $(if $(HELP_ID),uninstall-help)
16537uninstall-help:
16538	for lc in C $(_HELP_LINGUAS); do for f in $(HELP_FILES); do \
16539	  helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
16540	  echo "rm -f $$helpdir`basename $$f`"; \
16541	  rm -f "$$helpdir`basename $$f`"; \
16542	done; done
16543	@for f in $(_HELP_C_EXTRA); do \
16544	  lc=`dirname "$$f"`; lc=`basename "$$lc"`; \
16545	  helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
16546	  echo "rm -f $$helpdir`basename $$f`"; \
16547	  rm -f "$$helpdir`basename $$f`"; \
16548	done
16549	@for f in $(HELP_MEDIA); do \
16550	  for lc in C $(_HELP_LINGUAS); do \
16551	    helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
16552	    echo "rm -f $$helpdir$$f"; \
16553	    rm -f "$$helpdir$$f"; \
16554	  done; \
16555	done;
16556'
16557
16558
16559
16560
16561
16562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16563printf %s "checking whether byte ordering is bigendian... " >&6; }
16564if test ${ac_cv_c_bigendian+y}
16565then :
16566  printf %s "(cached) " >&6
16567else $as_nop
16568  ac_cv_c_bigendian=unknown
16569    # See if we're dealing with a universal compiler.
16570    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16571/* end confdefs.h.  */
16572#ifndef __APPLE_CC__
16573	       not a universal capable compiler
16574	     #endif
16575	     typedef int dummy;
16576
16577_ACEOF
16578if ac_fn_c_try_compile "$LINENO"
16579then :
16580
16581	# Check for potential -arch flags.  It is not universal unless
16582	# there are at least two -arch flags with different values.
16583	ac_arch=
16584	ac_prev=
16585	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16586	 if test -n "$ac_prev"; then
16587	   case $ac_word in
16588	     i?86 | x86_64 | ppc | ppc64)
16589	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16590		 ac_arch=$ac_word
16591	       else
16592		 ac_cv_c_bigendian=universal
16593		 break
16594	       fi
16595	       ;;
16596	   esac
16597	   ac_prev=
16598	 elif test "x$ac_word" = "x-arch"; then
16599	   ac_prev=arch
16600	 fi
16601       done
16602fi
16603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16604    if test $ac_cv_c_bigendian = unknown; then
16605      # See if sys/param.h defines the BYTE_ORDER macro.
16606      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16607/* end confdefs.h.  */
16608#include <sys/types.h>
16609	     #include <sys/param.h>
16610
16611int
16612main (void)
16613{
16614#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16615		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16616		     && LITTLE_ENDIAN)
16617	      bogus endian macros
16618	     #endif
16619
16620  ;
16621  return 0;
16622}
16623_ACEOF
16624if ac_fn_c_try_compile "$LINENO"
16625then :
16626  # It does; now see whether it defined to BIG_ENDIAN or not.
16627	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16628/* end confdefs.h.  */
16629#include <sys/types.h>
16630		#include <sys/param.h>
16631
16632int
16633main (void)
16634{
16635#if BYTE_ORDER != BIG_ENDIAN
16636		 not big endian
16637		#endif
16638
16639  ;
16640  return 0;
16641}
16642_ACEOF
16643if ac_fn_c_try_compile "$LINENO"
16644then :
16645  ac_cv_c_bigendian=yes
16646else $as_nop
16647  ac_cv_c_bigendian=no
16648fi
16649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16650fi
16651rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16652    fi
16653    if test $ac_cv_c_bigendian = unknown; then
16654      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16655      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656/* end confdefs.h.  */
16657#include <limits.h>
16658
16659int
16660main (void)
16661{
16662#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16663	      bogus endian macros
16664	     #endif
16665
16666  ;
16667  return 0;
16668}
16669_ACEOF
16670if ac_fn_c_try_compile "$LINENO"
16671then :
16672  # It does; now see whether it defined to _BIG_ENDIAN or not.
16673	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16674/* end confdefs.h.  */
16675#include <limits.h>
16676
16677int
16678main (void)
16679{
16680#ifndef _BIG_ENDIAN
16681		 not big endian
16682		#endif
16683
16684  ;
16685  return 0;
16686}
16687_ACEOF
16688if ac_fn_c_try_compile "$LINENO"
16689then :
16690  ac_cv_c_bigendian=yes
16691else $as_nop
16692  ac_cv_c_bigendian=no
16693fi
16694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16695fi
16696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16697    fi
16698    if test $ac_cv_c_bigendian = unknown; then
16699      # Compile a test program.
16700      if test "$cross_compiling" = yes
16701then :
16702  # Try to guess by grepping values from an object file.
16703	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704/* end confdefs.h.  */
16705unsigned short int ascii_mm[] =
16706		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16707		unsigned short int ascii_ii[] =
16708		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16709		int use_ascii (int i) {
16710		  return ascii_mm[i] + ascii_ii[i];
16711		}
16712		unsigned short int ebcdic_ii[] =
16713		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16714		unsigned short int ebcdic_mm[] =
16715		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16716		int use_ebcdic (int i) {
16717		  return ebcdic_mm[i] + ebcdic_ii[i];
16718		}
16719		extern int foo;
16720
16721int
16722main (void)
16723{
16724return use_ascii (foo) == use_ebcdic (foo);
16725  ;
16726  return 0;
16727}
16728_ACEOF
16729if ac_fn_c_try_compile "$LINENO"
16730then :
16731  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16732	      ac_cv_c_bigendian=yes
16733	    fi
16734	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16735	      if test "$ac_cv_c_bigendian" = unknown; then
16736		ac_cv_c_bigendian=no
16737	      else
16738		# finding both strings is unlikely to happen, but who knows?
16739		ac_cv_c_bigendian=unknown
16740	      fi
16741	    fi
16742fi
16743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16744else $as_nop
16745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16746/* end confdefs.h.  */
16747$ac_includes_default
16748int
16749main (void)
16750{
16751
16752	     /* Are we little or big endian?  From Harbison&Steele.  */
16753	     union
16754	     {
16755	       long int l;
16756	       char c[sizeof (long int)];
16757	     } u;
16758	     u.l = 1;
16759	     return u.c[sizeof (long int) - 1] == 1;
16760
16761  ;
16762  return 0;
16763}
16764_ACEOF
16765if ac_fn_c_try_run "$LINENO"
16766then :
16767  ac_cv_c_bigendian=no
16768else $as_nop
16769  ac_cv_c_bigendian=yes
16770fi
16771rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16772  conftest.$ac_objext conftest.beam conftest.$ac_ext
16773fi
16774
16775    fi
16776fi
16777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16778printf "%s\n" "$ac_cv_c_bigendian" >&6; }
16779 case $ac_cv_c_bigendian in #(
16780   yes)
16781     printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
16782;; #(
16783   no)
16784      ;; #(
16785   universal)
16786
16787printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16788
16789     ;; #(
16790   *)
16791     as_fn_error $? "unknown endianness
16792 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16793 esac
16794
16795
16796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker allows -Wl,--export-dynamic" >&5
16797printf %s "checking if the linker allows -Wl,--export-dynamic... " >&6; }
16798tmp_LDFLAGS=$LDFLAGS
16799LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
16800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801/* end confdefs.h.  */
16802int main(int argc, char **argv){return 0;}
16803_ACEOF
16804if ac_fn_c_try_link "$LINENO"
16805then :
16806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16807printf "%s\n" "yes" >&6; }
16808else $as_nop
16809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16810printf "%s\n" "no" >&6; }
16811  LDFLAGS=$tmp_LDFLAGS
16812fi
16813rm -f core conftest.err conftest.$ac_objext conftest.beam \
16814    conftest$ac_exeext conftest.$ac_ext
16815
16816ac_config_files="$ac_config_files Makefile po/Makefile.in etherape.spec etherape.desktop PKGBUILD glade/Makefile src/Makefile m4/Makefile doc/Makefile"
16817
16818cat >confcache <<\_ACEOF
16819# This file is a shell script that caches the results of configure
16820# tests run on this system so they can be shared between configure
16821# scripts and configure runs, see configure's option --config-cache.
16822# It is not useful on other systems.  If it contains results you don't
16823# want to keep, you may remove or edit it.
16824#
16825# config.status only pays attention to the cache file if you give it
16826# the --recheck option to rerun configure.
16827#
16828# `ac_cv_env_foo' variables (set or unset) will be overridden when
16829# loading this file, other *unset* `ac_cv_foo' will be assigned the
16830# following values.
16831
16832_ACEOF
16833
16834# The following way of writing the cache mishandles newlines in values,
16835# but we know of no workaround that is simple, portable, and efficient.
16836# So, we kill variables containing newlines.
16837# Ultrix sh set writes to stderr and can't be redirected directly,
16838# and sets the high bit in the cache file unless we assign to the vars.
16839(
16840  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16841    eval ac_val=\$$ac_var
16842    case $ac_val in #(
16843    *${as_nl}*)
16844      case $ac_var in #(
16845      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16846printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16847      esac
16848      case $ac_var in #(
16849      _ | IFS | as_nl) ;; #(
16850      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16851      *) { eval $ac_var=; unset $ac_var;} ;;
16852      esac ;;
16853    esac
16854  done
16855
16856  (set) 2>&1 |
16857    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16858    *${as_nl}ac_space=\ *)
16859      # `set' does not quote correctly, so add quotes: double-quote
16860      # substitution turns \\\\ into \\, and sed turns \\ into \.
16861      sed -n \
16862	"s/'/'\\\\''/g;
16863	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16864      ;; #(
16865    *)
16866      # `set' quotes correctly as required by POSIX, so do not add quotes.
16867      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16868      ;;
16869    esac |
16870    sort
16871) |
16872  sed '
16873     /^ac_cv_env_/b end
16874     t clear
16875     :clear
16876     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16877     t end
16878     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16879     :end' >>confcache
16880if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16881  if test -w "$cache_file"; then
16882    if test "x$cache_file" != "x/dev/null"; then
16883      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16884printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16885      if test ! -f "$cache_file" || test -h "$cache_file"; then
16886	cat confcache >"$cache_file"
16887      else
16888        case $cache_file in #(
16889        */* | ?:*)
16890	  mv -f confcache "$cache_file"$$ &&
16891	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16892        *)
16893	  mv -f confcache "$cache_file" ;;
16894	esac
16895      fi
16896    fi
16897  else
16898    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16899printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16900  fi
16901fi
16902rm -f confcache
16903
16904test "x$prefix" = xNONE && prefix=$ac_default_prefix
16905# Let make expand exec_prefix.
16906test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16907
16908DEFS=-DHAVE_CONFIG_H
16909
16910ac_libobjs=
16911ac_ltlibobjs=
16912U=
16913for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16914  # 1. Remove the extension, and $U if already installed.
16915  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16916  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16917  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16918  #    will be set to the directory where LIBOBJS objects are built.
16919  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16920  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16921done
16922LIBOBJS=$ac_libobjs
16923
16924LTLIBOBJS=$ac_ltlibobjs
16925
16926
16927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16928printf %s "checking that generated files are newer than configure... " >&6; }
16929   if test -n "$am_sleep_pid"; then
16930     # Hide warnings about reused PIDs.
16931     wait $am_sleep_pid 2>/dev/null
16932   fi
16933   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
16934printf "%s\n" "done" >&6; }
16935 if test -n "$EXEEXT"; then
16936  am__EXEEXT_TRUE=
16937  am__EXEEXT_FALSE='#'
16938else
16939  am__EXEEXT_TRUE='#'
16940  am__EXEEXT_FALSE=
16941fi
16942
16943if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16944  as_fn_error $? "conditional \"AMDEP\" was never defined.
16945Usually this means the macro was only invoked conditionally." "$LINENO" 5
16946fi
16947if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16948  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16949Usually this means the macro was only invoked conditionally." "$LINENO" 5
16950fi
16951if test -z "${HAVE_LIBCARES_TRUE}" && test -z "${HAVE_LIBCARES_FALSE}"; then
16952  as_fn_error $? "conditional \"HAVE_LIBCARES\" was never defined.
16953Usually this means the macro was only invoked conditionally." "$LINENO" 5
16954fi
16955
16956
16957: "${CONFIG_STATUS=./config.status}"
16958ac_write_fail=0
16959ac_clean_files_save=$ac_clean_files
16960ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16962printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16963as_write_fail=0
16964cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16965#! $SHELL
16966# Generated by $as_me.
16967# Run this file to recreate the current configuration.
16968# Compiler output produced by configure, useful for debugging
16969# configure, is in config.log if it exists.
16970
16971debug=false
16972ac_cs_recheck=false
16973ac_cs_silent=false
16974
16975SHELL=\${CONFIG_SHELL-$SHELL}
16976export SHELL
16977_ASEOF
16978cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16979## -------------------- ##
16980## M4sh Initialization. ##
16981## -------------------- ##
16982
16983# Be more Bourne compatible
16984DUALCASE=1; export DUALCASE # for MKS sh
16985as_nop=:
16986if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16987then :
16988  emulate sh
16989  NULLCMD=:
16990  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16991  # is contrary to our usage.  Disable this feature.
16992  alias -g '${1+"$@"}'='"$@"'
16993  setopt NO_GLOB_SUBST
16994else $as_nop
16995  case `(set -o) 2>/dev/null` in #(
16996  *posix*) :
16997    set -o posix ;; #(
16998  *) :
16999     ;;
17000esac
17001fi
17002
17003
17004
17005# Reset variables that may have inherited troublesome values from
17006# the environment.
17007
17008# IFS needs to be set, to space, tab, and newline, in precisely that order.
17009# (If _AS_PATH_WALK were called with IFS unset, it would have the
17010# side effect of setting IFS to empty, thus disabling word splitting.)
17011# Quoting is to prevent editors from complaining about space-tab.
17012as_nl='
17013'
17014export as_nl
17015IFS=" ""	$as_nl"
17016
17017PS1='$ '
17018PS2='> '
17019PS4='+ '
17020
17021# Ensure predictable behavior from utilities with locale-dependent output.
17022LC_ALL=C
17023export LC_ALL
17024LANGUAGE=C
17025export LANGUAGE
17026
17027# We cannot yet rely on "unset" to work, but we need these variables
17028# to be unset--not just set to an empty or harmless value--now, to
17029# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
17030# also avoids known problems related to "unset" and subshell syntax
17031# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17032for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17033do eval test \${$as_var+y} \
17034  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17035done
17036
17037# Ensure that fds 0, 1, and 2 are open.
17038if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17039if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17040if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
17041
17042# The user is always right.
17043if ${PATH_SEPARATOR+false} :; then
17044  PATH_SEPARATOR=:
17045  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17046    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17047      PATH_SEPARATOR=';'
17048  }
17049fi
17050
17051
17052# Find who we are.  Look in the path if we contain no directory separator.
17053as_myself=
17054case $0 in #((
17055  *[\\/]* ) as_myself=$0 ;;
17056  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17057for as_dir in $PATH
17058do
17059  IFS=$as_save_IFS
17060  case $as_dir in #(((
17061    '') as_dir=./ ;;
17062    */) ;;
17063    *) as_dir=$as_dir/ ;;
17064  esac
17065    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17066  done
17067IFS=$as_save_IFS
17068
17069     ;;
17070esac
17071# We did not find ourselves, most probably we were run as `sh COMMAND'
17072# in which case we are not to be found in the path.
17073if test "x$as_myself" = x; then
17074  as_myself=$0
17075fi
17076if test ! -f "$as_myself"; then
17077  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17078  exit 1
17079fi
17080
17081
17082
17083# as_fn_error STATUS ERROR [LINENO LOG_FD]
17084# ----------------------------------------
17085# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17086# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17087# script with STATUS, using 1 if that was 0.
17088as_fn_error ()
17089{
17090  as_status=$1; test $as_status -eq 0 && as_status=1
17091  if test "$4"; then
17092    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17093    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17094  fi
17095  printf "%s\n" "$as_me: error: $2" >&2
17096  as_fn_exit $as_status
17097} # as_fn_error
17098
17099
17100
17101# as_fn_set_status STATUS
17102# -----------------------
17103# Set $? to STATUS, without forking.
17104as_fn_set_status ()
17105{
17106  return $1
17107} # as_fn_set_status
17108
17109# as_fn_exit STATUS
17110# -----------------
17111# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17112as_fn_exit ()
17113{
17114  set +e
17115  as_fn_set_status $1
17116  exit $1
17117} # as_fn_exit
17118
17119# as_fn_unset VAR
17120# ---------------
17121# Portably unset VAR.
17122as_fn_unset ()
17123{
17124  { eval $1=; unset $1;}
17125}
17126as_unset=as_fn_unset
17127
17128# as_fn_append VAR VALUE
17129# ----------------------
17130# Append the text in VALUE to the end of the definition contained in VAR. Take
17131# advantage of any shell optimizations that allow amortized linear growth over
17132# repeated appends, instead of the typical quadratic growth present in naive
17133# implementations.
17134if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17135then :
17136  eval 'as_fn_append ()
17137  {
17138    eval $1+=\$2
17139  }'
17140else $as_nop
17141  as_fn_append ()
17142  {
17143    eval $1=\$$1\$2
17144  }
17145fi # as_fn_append
17146
17147# as_fn_arith ARG...
17148# ------------------
17149# Perform arithmetic evaluation on the ARGs, and store the result in the
17150# global $as_val. Take advantage of shells that can avoid forks. The arguments
17151# must be portable across $(()) and expr.
17152if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17153then :
17154  eval 'as_fn_arith ()
17155  {
17156    as_val=$(( $* ))
17157  }'
17158else $as_nop
17159  as_fn_arith ()
17160  {
17161    as_val=`expr "$@" || test $? -eq 1`
17162  }
17163fi # as_fn_arith
17164
17165
17166if expr a : '\(a\)' >/dev/null 2>&1 &&
17167   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17168  as_expr=expr
17169else
17170  as_expr=false
17171fi
17172
17173if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17174  as_basename=basename
17175else
17176  as_basename=false
17177fi
17178
17179if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17180  as_dirname=dirname
17181else
17182  as_dirname=false
17183fi
17184
17185as_me=`$as_basename -- "$0" ||
17186$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17187	 X"$0" : 'X\(//\)$' \| \
17188	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17189printf "%s\n" X/"$0" |
17190    sed '/^.*\/\([^/][^/]*\)\/*$/{
17191	    s//\1/
17192	    q
17193	  }
17194	  /^X\/\(\/\/\)$/{
17195	    s//\1/
17196	    q
17197	  }
17198	  /^X\/\(\/\).*/{
17199	    s//\1/
17200	    q
17201	  }
17202	  s/.*/./; q'`
17203
17204# Avoid depending upon Character Ranges.
17205as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17206as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17207as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17208as_cr_digits='0123456789'
17209as_cr_alnum=$as_cr_Letters$as_cr_digits
17210
17211
17212# Determine whether it's possible to make 'echo' print without a newline.
17213# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17214# for compatibility with existing Makefiles.
17215ECHO_C= ECHO_N= ECHO_T=
17216case `echo -n x` in #(((((
17217-n*)
17218  case `echo 'xy\c'` in
17219  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17220  xy)  ECHO_C='\c';;
17221  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17222       ECHO_T='	';;
17223  esac;;
17224*)
17225  ECHO_N='-n';;
17226esac
17227
17228# For backward compatibility with old third-party macros, we provide
17229# the shell variables $as_echo and $as_echo_n.  New code should use
17230# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17231as_echo='printf %s\n'
17232as_echo_n='printf %s'
17233
17234rm -f conf$$ conf$$.exe conf$$.file
17235if test -d conf$$.dir; then
17236  rm -f conf$$.dir/conf$$.file
17237else
17238  rm -f conf$$.dir
17239  mkdir conf$$.dir 2>/dev/null
17240fi
17241if (echo >conf$$.file) 2>/dev/null; then
17242  if ln -s conf$$.file conf$$ 2>/dev/null; then
17243    as_ln_s='ln -s'
17244    # ... but there are two gotchas:
17245    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17246    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17247    # In both cases, we have to default to `cp -pR'.
17248    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17249      as_ln_s='cp -pR'
17250  elif ln conf$$.file conf$$ 2>/dev/null; then
17251    as_ln_s=ln
17252  else
17253    as_ln_s='cp -pR'
17254  fi
17255else
17256  as_ln_s='cp -pR'
17257fi
17258rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17259rmdir conf$$.dir 2>/dev/null
17260
17261
17262# as_fn_mkdir_p
17263# -------------
17264# Create "$as_dir" as a directory, including parents if necessary.
17265as_fn_mkdir_p ()
17266{
17267
17268  case $as_dir in #(
17269  -*) as_dir=./$as_dir;;
17270  esac
17271  test -d "$as_dir" || eval $as_mkdir_p || {
17272    as_dirs=
17273    while :; do
17274      case $as_dir in #(
17275      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17276      *) as_qdir=$as_dir;;
17277      esac
17278      as_dirs="'$as_qdir' $as_dirs"
17279      as_dir=`$as_dirname -- "$as_dir" ||
17280$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17281	 X"$as_dir" : 'X\(//\)[^/]' \| \
17282	 X"$as_dir" : 'X\(//\)$' \| \
17283	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17284printf "%s\n" X"$as_dir" |
17285    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17286	    s//\1/
17287	    q
17288	  }
17289	  /^X\(\/\/\)[^/].*/{
17290	    s//\1/
17291	    q
17292	  }
17293	  /^X\(\/\/\)$/{
17294	    s//\1/
17295	    q
17296	  }
17297	  /^X\(\/\).*/{
17298	    s//\1/
17299	    q
17300	  }
17301	  s/.*/./; q'`
17302      test -d "$as_dir" && break
17303    done
17304    test -z "$as_dirs" || eval "mkdir $as_dirs"
17305  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17306
17307
17308} # as_fn_mkdir_p
17309if mkdir -p . 2>/dev/null; then
17310  as_mkdir_p='mkdir -p "$as_dir"'
17311else
17312  test -d ./-p && rmdir ./-p
17313  as_mkdir_p=false
17314fi
17315
17316
17317# as_fn_executable_p FILE
17318# -----------------------
17319# Test if FILE is an executable regular file.
17320as_fn_executable_p ()
17321{
17322  test -f "$1" && test -x "$1"
17323} # as_fn_executable_p
17324as_test_x='test -x'
17325as_executable_p=as_fn_executable_p
17326
17327# Sed expression to map a string onto a valid CPP name.
17328as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17329
17330# Sed expression to map a string onto a valid variable name.
17331as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17332
17333
17334exec 6>&1
17335## ----------------------------------- ##
17336## Main body of $CONFIG_STATUS script. ##
17337## ----------------------------------- ##
17338_ASEOF
17339test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17340
17341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17342# Save the log message, to keep $0 and so on meaningful, and to
17343# report actual input values of CONFIG_FILES etc. instead of their
17344# values after options handling.
17345ac_log="
17346This file was extended by etherape $as_me 0.9.20, which was
17347generated by GNU Autoconf 2.70.  Invocation command line was
17348
17349  CONFIG_FILES    = $CONFIG_FILES
17350  CONFIG_HEADERS  = $CONFIG_HEADERS
17351  CONFIG_LINKS    = $CONFIG_LINKS
17352  CONFIG_COMMANDS = $CONFIG_COMMANDS
17353  $ $0 $@
17354
17355on `(hostname || uname -n) 2>/dev/null | sed 1q`
17356"
17357
17358_ACEOF
17359
17360case $ac_config_files in *"
17361"*) set x $ac_config_files; shift; ac_config_files=$*;;
17362esac
17363
17364case $ac_config_headers in *"
17365"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17366esac
17367
17368
17369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17370# Files that config.status was made for.
17371config_files="$ac_config_files"
17372config_headers="$ac_config_headers"
17373config_commands="$ac_config_commands"
17374
17375_ACEOF
17376
17377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17378ac_cs_usage="\
17379\`$as_me' instantiates files and other configuration actions
17380from templates according to the current configuration.  Unless the files
17381and actions are specified as TAGs, all are instantiated by default.
17382
17383Usage: $0 [OPTION]... [TAG]...
17384
17385  -h, --help       print this help, then exit
17386  -V, --version    print version number and configuration settings, then exit
17387      --config     print configuration, then exit
17388  -q, --quiet, --silent
17389                   do not print progress messages
17390  -d, --debug      don't remove temporary files
17391      --recheck    update $as_me by reconfiguring in the same conditions
17392      --file=FILE[:TEMPLATE]
17393                   instantiate the configuration file FILE
17394      --header=FILE[:TEMPLATE]
17395                   instantiate the configuration header FILE
17396
17397Configuration files:
17398$config_files
17399
17400Configuration headers:
17401$config_headers
17402
17403Configuration commands:
17404$config_commands
17405
17406Report bugs to the package provider."
17407
17408_ACEOF
17409ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17410ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17412ac_cs_config='$ac_cs_config_escaped'
17413ac_cs_version="\\
17414etherape config.status 0.9.20
17415configured by $0, generated by GNU Autoconf 2.70,
17416  with options \\"\$ac_cs_config\\"
17417
17418Copyright (C) 2020 Free Software Foundation, Inc.
17419This config.status script is free software; the Free Software Foundation
17420gives unlimited permission to copy, distribute and modify it."
17421
17422ac_pwd='$ac_pwd'
17423srcdir='$srcdir'
17424INSTALL='$INSTALL'
17425MKDIR_P='$MKDIR_P'
17426AWK='$AWK'
17427test -n "\$AWK" || AWK=awk
17428_ACEOF
17429
17430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17431# The default lists apply if the user does not specify any file.
17432ac_need_defaults=:
17433while test $# != 0
17434do
17435  case $1 in
17436  --*=?*)
17437    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17438    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17439    ac_shift=:
17440    ;;
17441  --*=)
17442    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17443    ac_optarg=
17444    ac_shift=:
17445    ;;
17446  *)
17447    ac_option=$1
17448    ac_optarg=$2
17449    ac_shift=shift
17450    ;;
17451  esac
17452
17453  case $ac_option in
17454  # Handling of the options.
17455  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17456    ac_cs_recheck=: ;;
17457  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17458    printf "%s\n" "$ac_cs_version"; exit ;;
17459  --config | --confi | --conf | --con | --co | --c )
17460    printf "%s\n" "$ac_cs_config"; exit ;;
17461  --debug | --debu | --deb | --de | --d | -d )
17462    debug=: ;;
17463  --file | --fil | --fi | --f )
17464    $ac_shift
17465    case $ac_optarg in
17466    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17467    '') as_fn_error $? "missing file argument" ;;
17468    esac
17469    as_fn_append CONFIG_FILES " '$ac_optarg'"
17470    ac_need_defaults=false;;
17471  --header | --heade | --head | --hea )
17472    $ac_shift
17473    case $ac_optarg in
17474    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17475    esac
17476    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17477    ac_need_defaults=false;;
17478  --he | --h)
17479    # Conflict between --help and --header
17480    as_fn_error $? "ambiguous option: \`$1'
17481Try \`$0 --help' for more information.";;
17482  --help | --hel | -h )
17483    printf "%s\n" "$ac_cs_usage"; exit ;;
17484  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17485  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17486    ac_cs_silent=: ;;
17487
17488  # This is an error.
17489  -*) as_fn_error $? "unrecognized option: \`$1'
17490Try \`$0 --help' for more information." ;;
17491
17492  *) as_fn_append ac_config_targets " $1"
17493     ac_need_defaults=false ;;
17494
17495  esac
17496  shift
17497done
17498
17499ac_configure_extra_args=
17500
17501if $ac_cs_silent; then
17502  exec 6>/dev/null
17503  ac_configure_extra_args="$ac_configure_extra_args --silent"
17504fi
17505
17506_ACEOF
17507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17508if \$ac_cs_recheck; then
17509  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17510  shift
17511  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17512  CONFIG_SHELL='$SHELL'
17513  export CONFIG_SHELL
17514  exec "\$@"
17515fi
17516
17517_ACEOF
17518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17519exec 5>>config.log
17520{
17521  echo
17522  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17523## Running $as_me. ##
17524_ASBOX
17525  printf "%s\n" "$ac_log"
17526} >&5
17527
17528_ACEOF
17529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17530#
17531# INIT-COMMANDS
17532#
17533AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17534
17535
17536# The HP-UX ksh and POSIX shell print the target directory to stdout
17537# if CDPATH is set.
17538(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17539
17540sed_quote_subst='$sed_quote_subst'
17541double_quote_subst='$double_quote_subst'
17542delay_variable_subst='$delay_variable_subst'
17543macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17544macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17545enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17546enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17547pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17548enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17549shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17550SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17551ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17552PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17553host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17554host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17555host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17556build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17557build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17558build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17559SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17560Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17561GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17562EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17563FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17564LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17565NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17566LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17567max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17568ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17569exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17570lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17571lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17572lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17573lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17574lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17575reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17576reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17577OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17578deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17579file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17580file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17581want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17582DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17583sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17584AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17585AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17586archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17587STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17588RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17589old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17590old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17591old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17592lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17593CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17594CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17595compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17596GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17597lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17598lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17599lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17600lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17601lt_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"`'
17602lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17603nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17604lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17605lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17606objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17607MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17608lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17609lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17610lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17611lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17612lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17613need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17614MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17615DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17616NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17617LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17618OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17619OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17620libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17621shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17622extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17623archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17624enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17625export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17626whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17627compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17628old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17629old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17630archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17631archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17632module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17633module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17634with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17635allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17636no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17637hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17638hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17639hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17640hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17641hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17642hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17643hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17644inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17645link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17646always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17647export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17648exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17649include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17650prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17651postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17652file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17653variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17654need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17655need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17656version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17657runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17658shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17659shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17660libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17661library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17662soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17663install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17664postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17665postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17666finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17667finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17668hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17669sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17670configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17671configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17672hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17673enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17674enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17675enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17676old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17677striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17678
17679LTCC='$LTCC'
17680LTCFLAGS='$LTCFLAGS'
17681compiler='$compiler_DEFAULT'
17682
17683# A function that is used when there is no print builtin or printf.
17684func_fallback_echo ()
17685{
17686  eval 'cat <<_LTECHO_EOF
17687\$1
17688_LTECHO_EOF'
17689}
17690
17691# Quote evaled strings.
17692for var in SHELL \
17693ECHO \
17694PATH_SEPARATOR \
17695SED \
17696GREP \
17697EGREP \
17698FGREP \
17699LD \
17700NM \
17701LN_S \
17702lt_SP2NL \
17703lt_NL2SP \
17704reload_flag \
17705OBJDUMP \
17706deplibs_check_method \
17707file_magic_cmd \
17708file_magic_glob \
17709want_nocaseglob \
17710DLLTOOL \
17711sharedlib_from_linklib_cmd \
17712AR \
17713AR_FLAGS \
17714archiver_list_spec \
17715STRIP \
17716RANLIB \
17717CC \
17718CFLAGS \
17719compiler \
17720lt_cv_sys_global_symbol_pipe \
17721lt_cv_sys_global_symbol_to_cdecl \
17722lt_cv_sys_global_symbol_to_import \
17723lt_cv_sys_global_symbol_to_c_name_address \
17724lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17725lt_cv_nm_interface \
17726nm_file_list_spec \
17727lt_cv_truncate_bin \
17728lt_prog_compiler_no_builtin_flag \
17729lt_prog_compiler_pic \
17730lt_prog_compiler_wl \
17731lt_prog_compiler_static \
17732lt_cv_prog_compiler_c_o \
17733need_locks \
17734MANIFEST_TOOL \
17735DSYMUTIL \
17736NMEDIT \
17737LIPO \
17738OTOOL \
17739OTOOL64 \
17740shrext_cmds \
17741export_dynamic_flag_spec \
17742whole_archive_flag_spec \
17743compiler_needs_object \
17744with_gnu_ld \
17745allow_undefined_flag \
17746no_undefined_flag \
17747hardcode_libdir_flag_spec \
17748hardcode_libdir_separator \
17749exclude_expsyms \
17750include_expsyms \
17751file_list_spec \
17752variables_saved_for_relink \
17753libname_spec \
17754library_names_spec \
17755soname_spec \
17756install_override_mode \
17757finish_eval \
17758old_striplib \
17759striplib; do
17760    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17761    *[\\\\\\\`\\"\\\$]*)
17762      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17763      ;;
17764    *)
17765      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17766      ;;
17767    esac
17768done
17769
17770# Double-quote double-evaled strings.
17771for var in reload_cmds \
17772old_postinstall_cmds \
17773old_postuninstall_cmds \
17774old_archive_cmds \
17775extract_expsyms_cmds \
17776old_archive_from_new_cmds \
17777old_archive_from_expsyms_cmds \
17778archive_cmds \
17779archive_expsym_cmds \
17780module_cmds \
17781module_expsym_cmds \
17782export_symbols_cmds \
17783prelink_cmds \
17784postlink_cmds \
17785postinstall_cmds \
17786postuninstall_cmds \
17787finish_cmds \
17788sys_lib_search_path_spec \
17789configure_time_dlsearch_path \
17790configure_time_lt_sys_library_path; do
17791    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17792    *[\\\\\\\`\\"\\\$]*)
17793      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17794      ;;
17795    *)
17796      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17797      ;;
17798    esac
17799done
17800
17801ac_aux_dir='$ac_aux_dir'
17802
17803# See if we are running on zsh, and set the options that allow our
17804# commands through without removal of \ escapes INIT.
17805if test -n "\${ZSH_VERSION+set}"; then
17806   setopt NO_GLOB_SUBST
17807fi
17808
17809
17810    PACKAGE='$PACKAGE'
17811    VERSION='$VERSION'
17812    RM='$RM'
17813    ofile='$ofile'
17814
17815
17816
17817# Capture the value of obsolete ALL_LINGUAS because we need it to compute
17818    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17819    # from automake.
17820    eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
17821    # Capture the value of LINGUAS because we need it to compute CATALOGS.
17822    LINGUAS="${LINGUAS-%UNSET%}"
17823
17824
17825_ACEOF
17826
17827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17828
17829# Handling of arguments.
17830for ac_config_target in $ac_config_targets
17831do
17832  case $ac_config_target in
17833    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17834    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17835    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17836    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17837    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17838    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17839    "etherape.spec") CONFIG_FILES="$CONFIG_FILES etherape.spec" ;;
17840    "etherape.desktop") CONFIG_FILES="$CONFIG_FILES etherape.desktop" ;;
17841    "PKGBUILD") CONFIG_FILES="$CONFIG_FILES PKGBUILD" ;;
17842    "glade/Makefile") CONFIG_FILES="$CONFIG_FILES glade/Makefile" ;;
17843    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17844    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17845    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17846
17847  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17848  esac
17849done
17850
17851
17852# If the user did not use the arguments to specify the items to instantiate,
17853# then the envvar interface is used.  Set only those that are not.
17854# We use the long form for the default assignment because of an extremely
17855# bizarre bug on SunOS 4.1.3.
17856if $ac_need_defaults; then
17857  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17858  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17859  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17860fi
17861
17862# Have a temporary directory for convenience.  Make it in the build tree
17863# simply because there is no reason against having it here, and in addition,
17864# creating and moving files from /tmp can sometimes cause problems.
17865# Hook for its removal unless debugging.
17866# Note that there is a small window in which the directory will not be cleaned:
17867# after its creation but before its name has been assigned to `$tmp'.
17868$debug ||
17869{
17870  tmp= ac_tmp=
17871  trap 'exit_status=$?
17872  : "${ac_tmp:=$tmp}"
17873  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17874' 0
17875  trap 'as_fn_exit 1' 1 2 13 15
17876}
17877# Create a (secure) tmp directory for tmp files.
17878
17879{
17880  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17881  test -d "$tmp"
17882}  ||
17883{
17884  tmp=./conf$$-$RANDOM
17885  (umask 077 && mkdir "$tmp")
17886} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17887ac_tmp=$tmp
17888
17889# Set up the scripts for CONFIG_FILES section.
17890# No need to generate them if there are no CONFIG_FILES.
17891# This happens for instance with `./config.status config.h'.
17892if test -n "$CONFIG_FILES"; then
17893
17894
17895ac_cr=`echo X | tr X '\015'`
17896# On cygwin, bash can eat \r inside `` if the user requested igncr.
17897# But we know of no other shell where ac_cr would be empty at this
17898# point, so we can use a bashism as a fallback.
17899if test "x$ac_cr" = x; then
17900  eval ac_cr=\$\'\\r\'
17901fi
17902ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17903if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17904  ac_cs_awk_cr='\\r'
17905else
17906  ac_cs_awk_cr=$ac_cr
17907fi
17908
17909echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17910_ACEOF
17911
17912
17913{
17914  echo "cat >conf$$subs.awk <<_ACEOF" &&
17915  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17916  echo "_ACEOF"
17917} >conf$$subs.sh ||
17918  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17919ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17920ac_delim='%!_!# '
17921for ac_last_try in false false false false false :; do
17922  . ./conf$$subs.sh ||
17923    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17924
17925  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17926  if test $ac_delim_n = $ac_delim_num; then
17927    break
17928  elif $ac_last_try; then
17929    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17930  else
17931    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17932  fi
17933done
17934rm -f conf$$subs.sh
17935
17936cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17937cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17938_ACEOF
17939sed -n '
17940h
17941s/^/S["/; s/!.*/"]=/
17942p
17943g
17944s/^[^!]*!//
17945:repl
17946t repl
17947s/'"$ac_delim"'$//
17948t delim
17949:nl
17950h
17951s/\(.\{148\}\)..*/\1/
17952t more1
17953s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17954p
17955n
17956b repl
17957:more1
17958s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17959p
17960g
17961s/.\{148\}//
17962t nl
17963:delim
17964h
17965s/\(.\{148\}\)..*/\1/
17966t more2
17967s/["\\]/\\&/g; s/^/"/; s/$/"/
17968p
17969b
17970:more2
17971s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17972p
17973g
17974s/.\{148\}//
17975t delim
17976' <conf$$subs.awk | sed '
17977/^[^""]/{
17978  N
17979  s/\n//
17980}
17981' >>$CONFIG_STATUS || ac_write_fail=1
17982rm -f conf$$subs.awk
17983cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17984_ACAWK
17985cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17986  for (key in S) S_is_set[key] = 1
17987  FS = ""
17988
17989}
17990{
17991  line = $ 0
17992  nfields = split(line, field, "@")
17993  substed = 0
17994  len = length(field[1])
17995  for (i = 2; i < nfields; i++) {
17996    key = field[i]
17997    keylen = length(key)
17998    if (S_is_set[key]) {
17999      value = S[key]
18000      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18001      len += length(value) + length(field[++i])
18002      substed = 1
18003    } else
18004      len += 1 + keylen
18005  }
18006
18007  print line
18008}
18009
18010_ACAWK
18011_ACEOF
18012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18013if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18014  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18015else
18016  cat
18017fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18018  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18019_ACEOF
18020
18021# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18022# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18023# trailing colons and then remove the whole line if VPATH becomes empty
18024# (actually we leave an empty line to preserve line numbers).
18025if test "x$srcdir" = x.; then
18026  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18027h
18028s///
18029s/^/:/
18030s/[	 ]*$/:/
18031s/:\$(srcdir):/:/g
18032s/:\${srcdir}:/:/g
18033s/:@srcdir@:/:/g
18034s/^:*//
18035s/:*$//
18036x
18037s/\(=[	 ]*\).*/\1/
18038G
18039s/\n//
18040s/^[^=]*=[	 ]*$//
18041}'
18042fi
18043
18044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18045fi # test -n "$CONFIG_FILES"
18046
18047# Set up the scripts for CONFIG_HEADERS section.
18048# No need to generate them if there are no CONFIG_HEADERS.
18049# This happens for instance with `./config.status Makefile'.
18050if test -n "$CONFIG_HEADERS"; then
18051cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18052BEGIN {
18053_ACEOF
18054
18055# Transform confdefs.h into an awk script `defines.awk', embedded as
18056# here-document in config.status, that substitutes the proper values into
18057# config.h.in to produce config.h.
18058
18059# Create a delimiter string that does not exist in confdefs.h, to ease
18060# handling of long lines.
18061ac_delim='%!_!# '
18062for ac_last_try in false false :; do
18063  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18064  if test -z "$ac_tt"; then
18065    break
18066  elif $ac_last_try; then
18067    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18068  else
18069    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18070  fi
18071done
18072
18073# For the awk script, D is an array of macro values keyed by name,
18074# likewise P contains macro parameters if any.  Preserve backslash
18075# newline sequences.
18076
18077ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18078sed -n '
18079s/.\{148\}/&'"$ac_delim"'/g
18080t rset
18081:rset
18082s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18083t def
18084d
18085:def
18086s/\\$//
18087t bsnl
18088s/["\\]/\\&/g
18089s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18090D["\1"]=" \3"/p
18091s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18092d
18093:bsnl
18094s/["\\]/\\&/g
18095s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18096D["\1"]=" \3\\\\\\n"\\/p
18097t cont
18098s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18099t cont
18100d
18101:cont
18102n
18103s/.\{148\}/&'"$ac_delim"'/g
18104t clear
18105:clear
18106s/\\$//
18107t bsnlc
18108s/["\\]/\\&/g; s/^/"/; s/$/"/p
18109d
18110:bsnlc
18111s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18112b cont
18113' <confdefs.h | sed '
18114s/'"$ac_delim"'/"\\\
18115"/g' >>$CONFIG_STATUS || ac_write_fail=1
18116
18117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18118  for (key in D) D_is_set[key] = 1
18119  FS = ""
18120}
18121/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18122  line = \$ 0
18123  split(line, arg, " ")
18124  if (arg[1] == "#") {
18125    defundef = arg[2]
18126    mac1 = arg[3]
18127  } else {
18128    defundef = substr(arg[1], 2)
18129    mac1 = arg[2]
18130  }
18131  split(mac1, mac2, "(") #)
18132  macro = mac2[1]
18133  prefix = substr(line, 1, index(line, defundef) - 1)
18134  if (D_is_set[macro]) {
18135    # Preserve the white space surrounding the "#".
18136    print prefix "define", macro P[macro] D[macro]
18137    next
18138  } else {
18139    # Replace #undef with comments.  This is necessary, for example,
18140    # in the case of _POSIX_SOURCE, which is predefined and required
18141    # on some systems where configure will not decide to define it.
18142    if (defundef == "undef") {
18143      print "/*", prefix defundef, macro, "*/"
18144      next
18145    }
18146  }
18147}
18148{ print }
18149_ACAWK
18150_ACEOF
18151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18152  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18153fi # test -n "$CONFIG_HEADERS"
18154
18155
18156eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18157shift
18158for ac_tag
18159do
18160  case $ac_tag in
18161  :[FHLC]) ac_mode=$ac_tag; continue;;
18162  esac
18163  case $ac_mode$ac_tag in
18164  :[FHL]*:*);;
18165  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18166  :[FH]-) ac_tag=-:-;;
18167  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18168  esac
18169  ac_save_IFS=$IFS
18170  IFS=:
18171  set x $ac_tag
18172  IFS=$ac_save_IFS
18173  shift
18174  ac_file=$1
18175  shift
18176
18177  case $ac_mode in
18178  :L) ac_source=$1;;
18179  :[FH])
18180    ac_file_inputs=
18181    for ac_f
18182    do
18183      case $ac_f in
18184      -) ac_f="$ac_tmp/stdin";;
18185      *) # Look for the file first in the build tree, then in the source tree
18186	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18187	 # because $ac_f cannot contain `:'.
18188	 test -f "$ac_f" ||
18189	   case $ac_f in
18190	   [\\/$]*) false;;
18191	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18192	   esac ||
18193	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18194      esac
18195      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18196      as_fn_append ac_file_inputs " '$ac_f'"
18197    done
18198
18199    # Let's still pretend it is `configure' which instantiates (i.e., don't
18200    # use $as_me), people would be surprised to read:
18201    #    /* config.h.  Generated by config.status.  */
18202    configure_input='Generated from '`
18203	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18204	`' by configure.'
18205    if test x"$ac_file" != x-; then
18206      configure_input="$ac_file.  $configure_input"
18207      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18208printf "%s\n" "$as_me: creating $ac_file" >&6;}
18209    fi
18210    # Neutralize special characters interpreted by sed in replacement strings.
18211    case $configure_input in #(
18212    *\&* | *\|* | *\\* )
18213       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18214       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18215    *) ac_sed_conf_input=$configure_input;;
18216    esac
18217
18218    case $ac_tag in
18219    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18220      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18221    esac
18222    ;;
18223  esac
18224
18225  ac_dir=`$as_dirname -- "$ac_file" ||
18226$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18227	 X"$ac_file" : 'X\(//\)[^/]' \| \
18228	 X"$ac_file" : 'X\(//\)$' \| \
18229	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18230printf "%s\n" X"$ac_file" |
18231    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18232	    s//\1/
18233	    q
18234	  }
18235	  /^X\(\/\/\)[^/].*/{
18236	    s//\1/
18237	    q
18238	  }
18239	  /^X\(\/\/\)$/{
18240	    s//\1/
18241	    q
18242	  }
18243	  /^X\(\/\).*/{
18244	    s//\1/
18245	    q
18246	  }
18247	  s/.*/./; q'`
18248  as_dir="$ac_dir"; as_fn_mkdir_p
18249  ac_builddir=.
18250
18251case "$ac_dir" in
18252.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18253*)
18254  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18255  # A ".." for each directory in $ac_dir_suffix.
18256  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18257  case $ac_top_builddir_sub in
18258  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18259  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18260  esac ;;
18261esac
18262ac_abs_top_builddir=$ac_pwd
18263ac_abs_builddir=$ac_pwd$ac_dir_suffix
18264# for backward compatibility:
18265ac_top_builddir=$ac_top_build_prefix
18266
18267case $srcdir in
18268  .)  # We are building in place.
18269    ac_srcdir=.
18270    ac_top_srcdir=$ac_top_builddir_sub
18271    ac_abs_top_srcdir=$ac_pwd ;;
18272  [\\/]* | ?:[\\/]* )  # Absolute name.
18273    ac_srcdir=$srcdir$ac_dir_suffix;
18274    ac_top_srcdir=$srcdir
18275    ac_abs_top_srcdir=$srcdir ;;
18276  *) # Relative name.
18277    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18278    ac_top_srcdir=$ac_top_build_prefix$srcdir
18279    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18280esac
18281ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18282
18283
18284  case $ac_mode in
18285  :F)
18286  #
18287  # CONFIG_FILE
18288  #
18289
18290  case $INSTALL in
18291  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18292  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18293  esac
18294  ac_MKDIR_P=$MKDIR_P
18295  case $MKDIR_P in
18296  [\\/$]* | ?:[\\/]* ) ;;
18297  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18298  esac
18299_ACEOF
18300
18301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18302# If the template does not know about datarootdir, expand it.
18303# FIXME: This hack should be removed a few years after 2.60.
18304ac_datarootdir_hack=; ac_datarootdir_seen=
18305ac_sed_dataroot='
18306/datarootdir/ {
18307  p
18308  q
18309}
18310/@datadir@/p
18311/@docdir@/p
18312/@infodir@/p
18313/@localedir@/p
18314/@mandir@/p'
18315case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18316*datarootdir*) ac_datarootdir_seen=yes;;
18317*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18319printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18320_ACEOF
18321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18322  ac_datarootdir_hack='
18323  s&@datadir@&$datadir&g
18324  s&@docdir@&$docdir&g
18325  s&@infodir@&$infodir&g
18326  s&@localedir@&$localedir&g
18327  s&@mandir@&$mandir&g
18328  s&\\\${datarootdir}&$datarootdir&g' ;;
18329esac
18330_ACEOF
18331
18332# Neutralize VPATH when `$srcdir' = `.'.
18333# Shell code in configure.ac might set extrasub.
18334# FIXME: do we really want to maintain this feature?
18335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18336ac_sed_extra="$ac_vpsub
18337$extrasub
18338_ACEOF
18339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18340:t
18341/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18342s|@configure_input@|$ac_sed_conf_input|;t t
18343s&@top_builddir@&$ac_top_builddir_sub&;t t
18344s&@top_build_prefix@&$ac_top_build_prefix&;t t
18345s&@srcdir@&$ac_srcdir&;t t
18346s&@abs_srcdir@&$ac_abs_srcdir&;t t
18347s&@top_srcdir@&$ac_top_srcdir&;t t
18348s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18349s&@builddir@&$ac_builddir&;t t
18350s&@abs_builddir@&$ac_abs_builddir&;t t
18351s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18352s&@INSTALL@&$ac_INSTALL&;t t
18353s&@MKDIR_P@&$ac_MKDIR_P&;t t
18354$ac_datarootdir_hack
18355"
18356eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18357  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18358
18359test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18360  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18361  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18362      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18364which seems to be undefined.  Please make sure it is defined" >&5
18365printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18366which seems to be undefined.  Please make sure it is defined" >&2;}
18367
18368  rm -f "$ac_tmp/stdin"
18369  case $ac_file in
18370  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18371  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18372  esac \
18373  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18374 ;;
18375  :H)
18376  #
18377  # CONFIG_HEADER
18378  #
18379  if test x"$ac_file" != x-; then
18380    {
18381      printf "%s\n" "/* $configure_input  */" >&1 \
18382      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18383    } >"$ac_tmp/config.h" \
18384      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18385    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18386      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18387printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18388    else
18389      rm -f "$ac_file"
18390      mv "$ac_tmp/config.h" "$ac_file" \
18391	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18392    fi
18393  else
18394    printf "%s\n" "/* $configure_input  */" >&1 \
18395      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18396      || as_fn_error $? "could not create -" "$LINENO" 5
18397  fi
18398# Compute "$ac_file"'s index in $config_headers.
18399_am_arg="$ac_file"
18400_am_stamp_count=1
18401for _am_header in $config_headers :; do
18402  case $_am_header in
18403    $_am_arg | $_am_arg:* )
18404      break ;;
18405    * )
18406      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18407  esac
18408done
18409echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18410$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18411	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18412	 X"$_am_arg" : 'X\(//\)$' \| \
18413	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18414printf "%s\n" X"$_am_arg" |
18415    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18416	    s//\1/
18417	    q
18418	  }
18419	  /^X\(\/\/\)[^/].*/{
18420	    s//\1/
18421	    q
18422	  }
18423	  /^X\(\/\/\)$/{
18424	    s//\1/
18425	    q
18426	  }
18427	  /^X\(\/\).*/{
18428	    s//\1/
18429	    q
18430	  }
18431	  s/.*/./; q'`/stamp-h$_am_stamp_count
18432 ;;
18433
18434  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18435printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18436 ;;
18437  esac
18438
18439
18440  case $ac_file$ac_mode in
18441    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18442  # Older Autoconf quotes --file arguments for eval, but not when files
18443  # are listed without --file.  Let's play safe and only enable the eval
18444  # if we detect the quoting.
18445  # TODO: see whether this extra hack can be removed once we start
18446  # requiring Autoconf 2.70 or later.
18447  case $CONFIG_FILES in #(
18448  *\'*) :
18449    eval set x "$CONFIG_FILES" ;; #(
18450  *) :
18451    set x $CONFIG_FILES ;; #(
18452  *) :
18453     ;;
18454esac
18455  shift
18456  # Used to flag and report bootstrapping failures.
18457  am_rc=0
18458  for am_mf
18459  do
18460    # Strip MF so we end up with the name of the file.
18461    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
18462    # Check whether this is an Automake generated Makefile which includes
18463    # dependency-tracking related rules and includes.
18464    # Grep'ing the whole file directly is not great: AIX grep has a line
18465    # limit of 2048, but all sed's we know have understand at least 4000.
18466    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18467      || continue
18468    am_dirpart=`$as_dirname -- "$am_mf" ||
18469$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18470	 X"$am_mf" : 'X\(//\)[^/]' \| \
18471	 X"$am_mf" : 'X\(//\)$' \| \
18472	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18473printf "%s\n" X"$am_mf" |
18474    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18475	    s//\1/
18476	    q
18477	  }
18478	  /^X\(\/\/\)[^/].*/{
18479	    s//\1/
18480	    q
18481	  }
18482	  /^X\(\/\/\)$/{
18483	    s//\1/
18484	    q
18485	  }
18486	  /^X\(\/\).*/{
18487	    s//\1/
18488	    q
18489	  }
18490	  s/.*/./; q'`
18491    am_filepart=`$as_basename -- "$am_mf" ||
18492$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18493	 X"$am_mf" : 'X\(//\)$' \| \
18494	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18495printf "%s\n" X/"$am_mf" |
18496    sed '/^.*\/\([^/][^/]*\)\/*$/{
18497	    s//\1/
18498	    q
18499	  }
18500	  /^X\/\(\/\/\)$/{
18501	    s//\1/
18502	    q
18503	  }
18504	  /^X\/\(\/\).*/{
18505	    s//\1/
18506	    q
18507	  }
18508	  s/.*/./; q'`
18509    { echo "$as_me:$LINENO: cd "$am_dirpart" \
18510      && sed -e '/# am--include-marker/d' "$am_filepart" \
18511        | $MAKE -f - am--depfiles" >&5
18512   (cd "$am_dirpart" \
18513      && sed -e '/# am--include-marker/d' "$am_filepart" \
18514        | $MAKE -f - am--depfiles) >&5 2>&5
18515   ac_status=$?
18516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517   (exit $ac_status); } || am_rc=$?
18518  done
18519  if test $am_rc -ne 0; then
18520    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18521printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18522as_fn_error $? "Something went wrong bootstrapping makefile fragments
18523    for automatic dependency tracking.  If GNU make was not used, consider
18524    re-running the configure script with MAKE=\"gmake\" (or whatever is
18525    necessary).  You can also try re-running configure with the
18526    '--disable-dependency-tracking' option to at least be able to build
18527    the package (albeit without support for automatic dependency tracking).
18528See \`config.log' for more details" "$LINENO" 5; }
18529  fi
18530  { am_dirpart=; unset am_dirpart;}
18531  { am_filepart=; unset am_filepart;}
18532  { am_mf=; unset am_mf;}
18533  { am_rc=; unset am_rc;}
18534  rm -f conftest-deps.mk
18535}
18536 ;;
18537    "libtool":C)
18538
18539    # See if we are running on zsh, and set the options that allow our
18540    # commands through without removal of \ escapes.
18541    if test -n "${ZSH_VERSION+set}"; then
18542      setopt NO_GLOB_SUBST
18543    fi
18544
18545    cfgfile=${ofile}T
18546    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18547    $RM "$cfgfile"
18548
18549    cat <<_LT_EOF >> "$cfgfile"
18550#! $SHELL
18551# Generated automatically by $as_me ($PACKAGE) $VERSION
18552# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18553# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18554
18555# Provide generalized library-building support services.
18556# Written by Gordon Matzigkeit, 1996
18557
18558# Copyright (C) 2014 Free Software Foundation, Inc.
18559# This is free software; see the source for copying conditions.  There is NO
18560# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18561
18562# GNU Libtool is free software; you can redistribute it and/or modify
18563# it under the terms of the GNU General Public License as published by
18564# the Free Software Foundation; either version 2 of of the License, or
18565# (at your option) any later version.
18566#
18567# As a special exception to the GNU General Public License, if you
18568# distribute this file as part of a program or library that is built
18569# using GNU Libtool, you may include this file under the  same
18570# distribution terms that you use for the rest of that program.
18571#
18572# GNU Libtool is distributed in the hope that it will be useful, but
18573# WITHOUT ANY WARRANTY; without even the implied warranty of
18574# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18575# GNU General Public License for more details.
18576#
18577# You should have received a copy of the GNU General Public License
18578# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18579
18580
18581# The names of the tagged configurations supported by this script.
18582available_tags=''
18583
18584# Configured defaults for sys_lib_dlsearch_path munging.
18585: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18586
18587# ### BEGIN LIBTOOL CONFIG
18588
18589# Which release of libtool.m4 was used?
18590macro_version=$macro_version
18591macro_revision=$macro_revision
18592
18593# Whether or not to build shared libraries.
18594build_libtool_libs=$enable_shared
18595
18596# Whether or not to build static libraries.
18597build_old_libs=$enable_static
18598
18599# What type of objects to build.
18600pic_mode=$pic_mode
18601
18602# Whether or not to optimize for fast installation.
18603fast_install=$enable_fast_install
18604
18605# Shared archive member basename,for filename based shared library versioning on AIX.
18606shared_archive_member_spec=$shared_archive_member_spec
18607
18608# Shell to use when invoking shell scripts.
18609SHELL=$lt_SHELL
18610
18611# An echo program that protects backslashes.
18612ECHO=$lt_ECHO
18613
18614# The PATH separator for the build system.
18615PATH_SEPARATOR=$lt_PATH_SEPARATOR
18616
18617# The host system.
18618host_alias=$host_alias
18619host=$host
18620host_os=$host_os
18621
18622# The build system.
18623build_alias=$build_alias
18624build=$build
18625build_os=$build_os
18626
18627# A sed program that does not truncate output.
18628SED=$lt_SED
18629
18630# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18631Xsed="\$SED -e 1s/^X//"
18632
18633# A grep program that handles long lines.
18634GREP=$lt_GREP
18635
18636# An ERE matcher.
18637EGREP=$lt_EGREP
18638
18639# A literal string matcher.
18640FGREP=$lt_FGREP
18641
18642# A BSD- or MS-compatible name lister.
18643NM=$lt_NM
18644
18645# Whether we need soft or hard links.
18646LN_S=$lt_LN_S
18647
18648# What is the maximum length of a command?
18649max_cmd_len=$max_cmd_len
18650
18651# Object file suffix (normally "o").
18652objext=$ac_objext
18653
18654# Executable file suffix (normally "").
18655exeext=$exeext
18656
18657# whether the shell understands "unset".
18658lt_unset=$lt_unset
18659
18660# turn spaces into newlines.
18661SP2NL=$lt_lt_SP2NL
18662
18663# turn newlines into spaces.
18664NL2SP=$lt_lt_NL2SP
18665
18666# convert \$build file names to \$host format.
18667to_host_file_cmd=$lt_cv_to_host_file_cmd
18668
18669# convert \$build files to toolchain format.
18670to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18671
18672# An object symbol dumper.
18673OBJDUMP=$lt_OBJDUMP
18674
18675# Method to check whether dependent libraries are shared objects.
18676deplibs_check_method=$lt_deplibs_check_method
18677
18678# Command to use when deplibs_check_method = "file_magic".
18679file_magic_cmd=$lt_file_magic_cmd
18680
18681# How to find potential files when deplibs_check_method = "file_magic".
18682file_magic_glob=$lt_file_magic_glob
18683
18684# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18685want_nocaseglob=$lt_want_nocaseglob
18686
18687# DLL creation program.
18688DLLTOOL=$lt_DLLTOOL
18689
18690# Command to associate shared and link libraries.
18691sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18692
18693# The archiver.
18694AR=$lt_AR
18695
18696# Flags to create an archive.
18697AR_FLAGS=$lt_AR_FLAGS
18698
18699# How to feed a file listing to the archiver.
18700archiver_list_spec=$lt_archiver_list_spec
18701
18702# A symbol stripping program.
18703STRIP=$lt_STRIP
18704
18705# Commands used to install an old-style archive.
18706RANLIB=$lt_RANLIB
18707old_postinstall_cmds=$lt_old_postinstall_cmds
18708old_postuninstall_cmds=$lt_old_postuninstall_cmds
18709
18710# Whether to use a lock for old archive extraction.
18711lock_old_archive_extraction=$lock_old_archive_extraction
18712
18713# A C compiler.
18714LTCC=$lt_CC
18715
18716# LTCC compiler flags.
18717LTCFLAGS=$lt_CFLAGS
18718
18719# Take the output of nm and produce a listing of raw symbols and C names.
18720global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18721
18722# Transform the output of nm in a proper C declaration.
18723global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18724
18725# Transform the output of nm into a list of symbols to manually relocate.
18726global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18727
18728# Transform the output of nm in a C name address pair.
18729global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18730
18731# Transform the output of nm in a C name address pair when lib prefix is needed.
18732global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18733
18734# The name lister interface.
18735nm_interface=$lt_lt_cv_nm_interface
18736
18737# Specify filename containing input files for \$NM.
18738nm_file_list_spec=$lt_nm_file_list_spec
18739
18740# The root where to search for dependent libraries,and where our libraries should be installed.
18741lt_sysroot=$lt_sysroot
18742
18743# Command to truncate a binary pipe.
18744lt_truncate_bin=$lt_lt_cv_truncate_bin
18745
18746# The name of the directory that contains temporary libtool files.
18747objdir=$objdir
18748
18749# Used to examine libraries when file_magic_cmd begins with "file".
18750MAGIC_CMD=$MAGIC_CMD
18751
18752# Must we lock files when doing compilation?
18753need_locks=$lt_need_locks
18754
18755# Manifest tool.
18756MANIFEST_TOOL=$lt_MANIFEST_TOOL
18757
18758# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18759DSYMUTIL=$lt_DSYMUTIL
18760
18761# Tool to change global to local symbols on Mac OS X.
18762NMEDIT=$lt_NMEDIT
18763
18764# Tool to manipulate fat objects and archives on Mac OS X.
18765LIPO=$lt_LIPO
18766
18767# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18768OTOOL=$lt_OTOOL
18769
18770# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18771OTOOL64=$lt_OTOOL64
18772
18773# Old archive suffix (normally "a").
18774libext=$libext
18775
18776# Shared library suffix (normally ".so").
18777shrext_cmds=$lt_shrext_cmds
18778
18779# The commands to extract the exported symbol list from a shared archive.
18780extract_expsyms_cmds=$lt_extract_expsyms_cmds
18781
18782# Variables whose values should be saved in libtool wrapper scripts and
18783# restored at link time.
18784variables_saved_for_relink=$lt_variables_saved_for_relink
18785
18786# Do we need the "lib" prefix for modules?
18787need_lib_prefix=$need_lib_prefix
18788
18789# Do we need a version for libraries?
18790need_version=$need_version
18791
18792# Library versioning type.
18793version_type=$version_type
18794
18795# Shared library runtime path variable.
18796runpath_var=$runpath_var
18797
18798# Shared library path variable.
18799shlibpath_var=$shlibpath_var
18800
18801# Is shlibpath searched before the hard-coded library search path?
18802shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18803
18804# Format of library name prefix.
18805libname_spec=$lt_libname_spec
18806
18807# List of archive names.  First name is the real one, the rest are links.
18808# The last name is the one that the linker finds with -lNAME
18809library_names_spec=$lt_library_names_spec
18810
18811# The coded name of the library, if different from the real name.
18812soname_spec=$lt_soname_spec
18813
18814# Permission mode override for installation of shared libraries.
18815install_override_mode=$lt_install_override_mode
18816
18817# Command to use after installation of a shared archive.
18818postinstall_cmds=$lt_postinstall_cmds
18819
18820# Command to use after uninstallation of a shared archive.
18821postuninstall_cmds=$lt_postuninstall_cmds
18822
18823# Commands used to finish a libtool library installation in a directory.
18824finish_cmds=$lt_finish_cmds
18825
18826# As "finish_cmds", except a single script fragment to be evaled but
18827# not shown.
18828finish_eval=$lt_finish_eval
18829
18830# Whether we should hardcode library paths into libraries.
18831hardcode_into_libs=$hardcode_into_libs
18832
18833# Compile-time system search path for libraries.
18834sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18835
18836# Detected run-time system search path for libraries.
18837sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18838
18839# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18840configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18841
18842# Whether dlopen is supported.
18843dlopen_support=$enable_dlopen
18844
18845# Whether dlopen of programs is supported.
18846dlopen_self=$enable_dlopen_self
18847
18848# Whether dlopen of statically linked programs is supported.
18849dlopen_self_static=$enable_dlopen_self_static
18850
18851# Commands to strip libraries.
18852old_striplib=$lt_old_striplib
18853striplib=$lt_striplib
18854
18855
18856# The linker used to build libraries.
18857LD=$lt_LD
18858
18859# How to create reloadable object files.
18860reload_flag=$lt_reload_flag
18861reload_cmds=$lt_reload_cmds
18862
18863# Commands used to build an old-style archive.
18864old_archive_cmds=$lt_old_archive_cmds
18865
18866# A language specific compiler.
18867CC=$lt_compiler
18868
18869# Is the compiler the GNU compiler?
18870with_gcc=$GCC
18871
18872# Compiler flag to turn off builtin functions.
18873no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18874
18875# Additional compiler flags for building library objects.
18876pic_flag=$lt_lt_prog_compiler_pic
18877
18878# How to pass a linker flag through the compiler.
18879wl=$lt_lt_prog_compiler_wl
18880
18881# Compiler flag to prevent dynamic linking.
18882link_static_flag=$lt_lt_prog_compiler_static
18883
18884# Does compiler simultaneously support -c and -o options?
18885compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18886
18887# Whether or not to add -lc for building shared libraries.
18888build_libtool_need_lc=$archive_cmds_need_lc
18889
18890# Whether or not to disallow shared libs when runtime libs are static.
18891allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18892
18893# Compiler flag to allow reflexive dlopens.
18894export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18895
18896# Compiler flag to generate shared objects directly from archives.
18897whole_archive_flag_spec=$lt_whole_archive_flag_spec
18898
18899# Whether the compiler copes with passing no objects directly.
18900compiler_needs_object=$lt_compiler_needs_object
18901
18902# Create an old-style archive from a shared archive.
18903old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18904
18905# Create a temporary old-style archive to link instead of a shared archive.
18906old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18907
18908# Commands used to build a shared archive.
18909archive_cmds=$lt_archive_cmds
18910archive_expsym_cmds=$lt_archive_expsym_cmds
18911
18912# Commands used to build a loadable module if different from building
18913# a shared archive.
18914module_cmds=$lt_module_cmds
18915module_expsym_cmds=$lt_module_expsym_cmds
18916
18917# Whether we are building with GNU ld or not.
18918with_gnu_ld=$lt_with_gnu_ld
18919
18920# Flag that allows shared libraries with undefined symbols to be built.
18921allow_undefined_flag=$lt_allow_undefined_flag
18922
18923# Flag that enforces no undefined symbols.
18924no_undefined_flag=$lt_no_undefined_flag
18925
18926# Flag to hardcode \$libdir into a binary during linking.
18927# This must work even if \$libdir does not exist
18928hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18929
18930# Whether we need a single "-rpath" flag with a separated argument.
18931hardcode_libdir_separator=$lt_hardcode_libdir_separator
18932
18933# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18934# DIR into the resulting binary.
18935hardcode_direct=$hardcode_direct
18936
18937# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18938# DIR into the resulting binary and the resulting library dependency is
18939# "absolute",i.e impossible to change by setting \$shlibpath_var if the
18940# library is relocated.
18941hardcode_direct_absolute=$hardcode_direct_absolute
18942
18943# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18944# into the resulting binary.
18945hardcode_minus_L=$hardcode_minus_L
18946
18947# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18948# into the resulting binary.
18949hardcode_shlibpath_var=$hardcode_shlibpath_var
18950
18951# Set to "yes" if building a shared library automatically hardcodes DIR
18952# into the library and all subsequent libraries and executables linked
18953# against it.
18954hardcode_automatic=$hardcode_automatic
18955
18956# Set to yes if linker adds runtime paths of dependent libraries
18957# to runtime path list.
18958inherit_rpath=$inherit_rpath
18959
18960# Whether libtool must link a program against all its dependency libraries.
18961link_all_deplibs=$link_all_deplibs
18962
18963# Set to "yes" if exported symbols are required.
18964always_export_symbols=$always_export_symbols
18965
18966# The commands to list exported symbols.
18967export_symbols_cmds=$lt_export_symbols_cmds
18968
18969# Symbols that should not be listed in the preloaded symbols.
18970exclude_expsyms=$lt_exclude_expsyms
18971
18972# Symbols that must always be exported.
18973include_expsyms=$lt_include_expsyms
18974
18975# Commands necessary for linking programs (against libraries) with templates.
18976prelink_cmds=$lt_prelink_cmds
18977
18978# Commands necessary for finishing linking programs.
18979postlink_cmds=$lt_postlink_cmds
18980
18981# Specify filename containing input files.
18982file_list_spec=$lt_file_list_spec
18983
18984# How to hardcode a shared library path into an executable.
18985hardcode_action=$hardcode_action
18986
18987# ### END LIBTOOL CONFIG
18988
18989_LT_EOF
18990
18991    cat <<'_LT_EOF' >> "$cfgfile"
18992
18993# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18994
18995# func_munge_path_list VARIABLE PATH
18996# -----------------------------------
18997# VARIABLE is name of variable containing _space_ separated list of
18998# directories to be munged by the contents of PATH, which is string
18999# having a format:
19000# "DIR[:DIR]:"
19001#       string "DIR[ DIR]" will be prepended to VARIABLE
19002# ":DIR[:DIR]"
19003#       string "DIR[ DIR]" will be appended to VARIABLE
19004# "DIRP[:DIRP]::[DIRA:]DIRA"
19005#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19006#       "DIRA[ DIRA]" will be appended to VARIABLE
19007# "DIR[:DIR]"
19008#       VARIABLE will be replaced by "DIR[ DIR]"
19009func_munge_path_list ()
19010{
19011    case x$2 in
19012    x)
19013        ;;
19014    *:)
19015        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19016        ;;
19017    x:*)
19018        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19019        ;;
19020    *::*)
19021        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19022        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19023        ;;
19024    *)
19025        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19026        ;;
19027    esac
19028}
19029
19030
19031# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19032func_cc_basename ()
19033{
19034    for cc_temp in $*""; do
19035      case $cc_temp in
19036        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19037        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19038        \-*) ;;
19039        *) break;;
19040      esac
19041    done
19042    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19043}
19044
19045
19046# ### END FUNCTIONS SHARED WITH CONFIGURE
19047
19048_LT_EOF
19049
19050  case $host_os in
19051  aix3*)
19052    cat <<\_LT_EOF >> "$cfgfile"
19053# AIX sometimes has problems with the GCC collect2 program.  For some
19054# reason, if we set the COLLECT_NAMES environment variable, the problems
19055# vanish in a puff of smoke.
19056if test set != "${COLLECT_NAMES+set}"; then
19057  COLLECT_NAMES=
19058  export COLLECT_NAMES
19059fi
19060_LT_EOF
19061    ;;
19062  esac
19063
19064
19065
19066ltmain=$ac_aux_dir/ltmain.sh
19067
19068
19069  # We use sed instead of cat because bash on DJGPP gets confused if
19070  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19071  # text mode, it properly converts lines to CR/LF.  This bash problem
19072  # is reportedly fixed, but why not run on old versions too?
19073  sed '$q' "$ltmain" >> "$cfgfile" \
19074     || (rm -f "$cfgfile"; exit 1)
19075
19076   mv -f "$cfgfile" "$ofile" ||
19077    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19078  chmod +x "$ofile"
19079
19080 ;;
19081    "default-1":C)
19082    for ac_file in $CONFIG_FILES; do
19083      # Support "outfile[:infile[:infile...]]"
19084      case "$ac_file" in
19085        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19086      esac
19087      # PO directories have a Makefile.in generated from Makefile.in.in.
19088      case "$ac_file" in */Makefile.in)
19089        # Adjust a relative srcdir.
19090        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19091        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19092        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19093        # In autoconf-2.13 it is called $ac_given_srcdir.
19094        # In autoconf-2.50 it is called $srcdir.
19095        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19096        case "$ac_given_srcdir" in
19097          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19098          /*) top_srcdir="$ac_given_srcdir" ;;
19099          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
19100        esac
19101        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19102          rm -f "$ac_dir/POTFILES"
19103          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19104          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19105          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19106          # on $ac_dir but don't depend on user-specified configuration
19107          # parameters.
19108          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19109            # The LINGUAS file contains the set of available languages.
19110            if test -n "$ALL_LINGUAS"; then
19111              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19112            fi
19113            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19114            # Hide the ALL_LINGUAS assigment from automake.
19115            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19116          fi
19117          case "$ac_given_srcdir" in
19118            .) srcdirpre= ;;
19119            *) srcdirpre='$(srcdir)/' ;;
19120          esac
19121          POFILES=
19122          GMOFILES=
19123          UPDATEPOFILES=
19124          DUMMYPOFILES=
19125          for lang in $ALL_LINGUAS; do
19126            POFILES="$POFILES $srcdirpre$lang.po"
19127            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19128            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19129            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19130          done
19131          # CATALOGS depends on both $ac_dir and the user's LINGUAS
19132          # environment variable.
19133          INST_LINGUAS=
19134          if test -n "$ALL_LINGUAS"; then
19135            for presentlang in $ALL_LINGUAS; do
19136              useit=no
19137              if test "%UNSET%" != "$LINGUAS"; then
19138                desiredlanguages="$LINGUAS"
19139              else
19140                desiredlanguages="$ALL_LINGUAS"
19141              fi
19142              for desiredlang in $desiredlanguages; do
19143                # Use the presentlang catalog if desiredlang is
19144                #   a. equal to presentlang, or
19145                #   b. a variant of presentlang (because in this case,
19146                #      presentlang can be used as a fallback for messages
19147                #      which are not translated in the desiredlang catalog).
19148                case "$desiredlang" in
19149                  "$presentlang"*) useit=yes;;
19150                esac
19151              done
19152              if test $useit = yes; then
19153                INST_LINGUAS="$INST_LINGUAS $presentlang"
19154              fi
19155            done
19156          fi
19157          CATALOGS=
19158          if test -n "$INST_LINGUAS"; then
19159            for lang in $INST_LINGUAS; do
19160              CATALOGS="$CATALOGS $lang.gmo"
19161            done
19162          fi
19163          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19164          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
19165          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19166            if test -f "$f"; then
19167              case "$f" in
19168                *.orig | *.bak | *~) ;;
19169                *) cat "$f" >> "$ac_dir/Makefile" ;;
19170              esac
19171            fi
19172          done
19173        fi
19174        ;;
19175      esac
19176    done ;;
19177
19178  esac
19179done # for ac_tag
19180
19181
19182as_fn_exit 0
19183_ACEOF
19184ac_clean_files=$ac_clean_files_save
19185
19186test $ac_write_fail = 0 ||
19187  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19188
19189
19190# configure is writing to config.log, and then calls config.status.
19191# config.status does its own redirection, appending to config.log.
19192# Unfortunately, on DOS this fails, as config.log is still kept open
19193# by configure, so config.status won't be able to write to it; its
19194# output is simply discarded.  So we exec the FD to /dev/null,
19195# effectively closing config.log, so it can be properly (re)opened and
19196# appended to by config.status.  When coming back to configure, we
19197# need to make the FD available again.
19198if test "$no_create" != yes; then
19199  ac_cs_success=:
19200  ac_config_status_args=
19201  test "$silent" = yes &&
19202    ac_config_status_args="$ac_config_status_args --quiet"
19203  exec 5>/dev/null
19204  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19205  exec 5>>config.log
19206  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19207  # would make configure fail if this is the last instruction.
19208  $ac_cs_success || as_fn_exit 1
19209fi
19210if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19211  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19212printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19213fi
19214
19215
19216