1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for avahi 0.8.
4#
5# Report bugs to <avahi (at) lists (dot) freedesktop (dot) org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and avahi (at) lists
278$0: (dot) freedesktop (dot) org about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='avahi'
592PACKAGE_TARNAME='avahi'
593PACKAGE_VERSION='0.8'
594PACKAGE_STRING='avahi 0.8'
595PACKAGE_BUGREPORT='avahi (at) lists (dot) freedesktop (dot) org'
596PACKAGE_URL=''
597
598ac_unique_file="avahi-core/server.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635gt_needs=
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639HAVE_SYSTEMD_FALSE
640HAVE_SYSTEMD_TRUE
641systemdsystemunitdir
642ENABLE_COMPAT_HOWL_FALSE
643ENABLE_COMPAT_HOWL_TRUE
644ENABLE_COMPAT_LIBDNS_SD_FALSE
645ENABLE_COMPAT_LIBDNS_SD_TRUE
646ENABLE_TESTS_FALSE
647ENABLE_TESTS_TRUE
648BUILD_MANPAGES_FALSE
649BUILD_MANPAGES_TRUE
650USE_XMLTOMAN_FALSE
651USE_XMLTOMAN_TRUE
652have_xmltoman
653ENABLE_CORE_DOCS_FALSE
654ENABLE_CORE_DOCS_TRUE
655DOXYGEN_PAPER_SIZE
656DX_COND_latex_FALSE
657DX_COND_latex_TRUE
658DX_COND_pdf_FALSE
659DX_COND_pdf_TRUE
660DX_PDFLATEX
661DX_FLAG_pdf
662DX_COND_ps_FALSE
663DX_COND_ps_TRUE
664DX_EGREP
665DX_DVIPS
666DX_MAKEINDEX
667DX_LATEX
668DX_FLAG_ps
669DX_COND_html_FALSE
670DX_COND_html_TRUE
671DX_FLAG_html
672DX_COND_chi_FALSE
673DX_COND_chi_TRUE
674DX_FLAG_chi
675DX_COND_chm_FALSE
676DX_COND_chm_TRUE
677DX_HHC
678DX_FLAG_chm
679DX_COND_xml_FALSE
680DX_COND_xml_TRUE
681DX_FLAG_xml
682DX_COND_rtf_FALSE
683DX_COND_rtf_TRUE
684DX_FLAG_rtf
685DX_COND_man_FALSE
686DX_COND_man_TRUE
687DX_FLAG_man
688DX_COND_dot_FALSE
689DX_COND_dot_TRUE
690DX_DOT
691DX_FLAG_dot
692DX_COND_doc_FALSE
693DX_COND_doc_TRUE
694DX_PERL
695DX_DOXYGEN
696DX_FLAG_doc
697DX_ENV
698DX_DOCDIR
699DX_CONFIG
700DX_PROJECT
701interfacesdir
702avahi_socket
703avahi_runtime_dir
704AVAHI_AUTOIPD_GROUP
705AVAHI_AUTOIPD_USER
706AVAHI_PRIV_ACCESS_GROUP
707AVAHI_GROUP
708AVAHI_USER
709ENABLE_AUTOIPD_FALSE
710ENABLE_AUTOIPD_TRUE
711HAVE_MONODOC_FALSE
712HAVE_MONODOC_TRUE
713MONODOC_DIR
714MDASSEMBLER
715MONODOCER
716MONODOC_LIBS
717MONODOC_CFLAGS
718HAVE_MONO_FALSE
719HAVE_MONO_TRUE
720GACUTIL
721MCS
722HAVE_PYTHON_DBUS_FALSE
723HAVE_PYTHON_DBUS_TRUE
724HAVE_PYGOBJECT_FALSE
725HAVE_PYGOBJECT_TRUE
726HAVE_PYTHON_FALSE
727HAVE_PYTHON_TRUE
728PYGOBJECT_LIBS
729PYGOBJECT_CFLAGS
730pkgpyexecdir
731pyexecdir
732pkgpythondir
733pythondir
734PYTHON_PLATFORM
735PYTHON_EXEC_PREFIX
736PYTHON_PREFIX
737PYTHON_VERSION
738PYTHON
739HAVE_LIBDAEMON_FALSE
740HAVE_LIBDAEMON_TRUE
741LIBDAEMON_LIBS
742LIBDAEMON_CFLAGS
743HAVE_DBM_FALSE
744HAVE_DBM_TRUE
745HAVE_GDBM_FALSE
746HAVE_GDBM_TRUE
747HAVE_XML_FALSE
748HAVE_XML_TRUE
749XML_CFLAGS
750XML_LIBS
751HAVE_DBUS_FALSE
752HAVE_DBUS_TRUE
753DBUS_SYSTEM_BUS_DEFAULT_ADDRESS
754DBUS_SYS_DIR
755DBUS_LIBS
756DBUS_CFLAGS
757HAVE_GTK2OR3_FALSE
758HAVE_GTK2OR3_TRUE
759HAVE_GTK3_FALSE
760HAVE_GTK3_TRUE
761GTK30_LIBS
762GTK30_CFLAGS
763HAVE_GTK_FALSE
764HAVE_GTK_TRUE
765GTK20_LIBS
766GTK20_CFLAGS
767HAVE_QT5_FALSE
768HAVE_QT5_TRUE
769MOC_QT5
770QT5_LIBS
771QT5_CFLAGS
772HAVE_QT4_FALSE
773HAVE_QT4_TRUE
774MOC_QT4
775QT4_LIBS
776QT4_CFLAGS
777HAVE_QT3_FALSE
778HAVE_QT3_TRUE
779MOC_QT3
780QT3_LIBS
781QT3_CFLAGS
782HAVE_LIBEVENT_FALSE
783HAVE_LIBEVENT_TRUE
784LIBEVENT_LIBS
785LIBEVENT_CFLAGS
786HAVE_INTROSPECTION_FALSE
787HAVE_INTROSPECTION_TRUE
788INTROSPECTION_MAKEFILE
789INTROSPECTION_LIBS
790INTROSPECTION_CFLAGS
791INTROSPECTION_TYPELIBDIR
792INTROSPECTION_GIRDIR
793INTROSPECTION_GENERATE
794INTROSPECTION_COMPILER
795INTROSPECTION_SCANNER
796HAVE_GOBJECT_FALSE
797HAVE_GOBJECT_TRUE
798GOBJECT_LIBS
799GOBJECT_CFLAGS
800HAVE_GLIB_FALSE
801HAVE_GLIB_TRUE
802GLIB20_LIBS
803GLIB20_CFLAGS
804PKG_CONFIG_LIBDIR
805PKG_CONFIG_PATH
806PKG_CONFIG
807have_pkg_config
808avahilocaledir
809POSUB
810LTLIBINTL
811LIBINTL
812INTLLIBS
813LTLIBICONV
814LIBICONV
815INTL_MACOSX_LIBS
816XGETTEXT_EXTRA_OPTIONS
817MSGMERGE
818XGETTEXT_015
819XGETTEXT
820GMSGFMT_015
821MSGFMT_015
822GMSGFMT
823MSGFMT
824GETTEXT_MACRO_VERSION
825USE_NLS
826GETTEXT_PACKAGE
827HAVE_KQUEUE_FALSE
828HAVE_KQUEUE_TRUE
829HAVE_INOTIFY_FALSE
830HAVE_INOTIFY_TRUE
831HAVE_DLOPEN_FALSE
832HAVE_DLOPEN_TRUE
833ENABLE_CHROOT_FALSE
834ENABLE_CHROOT_TRUE
835VISIBILITY_HIDDEN_CFLAGS
836LIBOBJS
837TARGET_SLACKWARE_FALSE
838TARGET_SLACKWARE_TRUE
839TARGET_FREEBSD_FALSE
840TARGET_FREEBSD_TRUE
841TARGET_NETBSD_FALSE
842TARGET_NETBSD_TRUE
843TARGET_DARWIN_FALSE
844TARGET_DARWIN_TRUE
845TARGET_MANDRIVA_FALSE
846TARGET_MANDRIVA_TRUE
847TARGET_FEDORA_FALSE
848TARGET_FEDORA_TRUE
849TARGET_ARCHLINUX_FALSE
850TARGET_ARCHLINUX_TRUE
851TARGET_DEBIAN_FALSE
852TARGET_DEBIAN_TRUE
853TARGET_GENTOO_FALSE
854TARGET_GENTOO_TRUE
855TARGET_SUSE_FALSE
856TARGET_SUSE_TRUE
857TARGET_LFS_FALSE
858TARGET_LFS_TRUE
859HAVE_SYS_SYSCTL_H_FALSE
860HAVE_SYS_SYSCTL_H_TRUE
861HAVE_SYS_FILIO_H_FALSE
862HAVE_SYS_FILIO_H_TRUE
863HAVE_PF_ROUTE_FALSE
864HAVE_PF_ROUTE_TRUE
865HAVE_NETLINK_FALSE
866HAVE_NETLINK_TRUE
867PTHREAD_CFLAGS
868PTHREAD_LIBS
869PTHREAD_CC
870acx_pthread_config
871CXXCPP
872LT_SYS_LIBRARY_PATH
873OTOOL64
874OTOOL
875LIPO
876NMEDIT
877DSYMUTIL
878MANIFEST_TOOL
879RANLIB
880ac_ct_AR
881AR
882DLLTOOL
883OBJDUMP
884NM
885ac_ct_DUMPBIN
886DUMPBIN
887LD
888FGREP
889SED
890LIBTOOL
891LN_S
892EGREP
893GREP
894CPP
895am__fastdepCXX_FALSE
896am__fastdepCXX_TRUE
897CXXDEPMODE
898ac_ct_CXX
899CXXFLAGS
900CXX
901am__fastdepCC_FALSE
902am__fastdepCC_TRUE
903CCDEPMODE
904am__nodep
905AMDEPBACKSLASH
906AMDEP_FALSE
907AMDEP_TRUE
908am__quote
909am__include
910DEPDIR
911OBJEXT
912EXEEXT
913ac_ct_CC
914CPPFLAGS
915LDFLAGS
916CFLAGS
917CC
918STOW
919host_os
920host_vendor
921host_cpu
922host
923build_os
924build_vendor
925build_cpu
926build
927HOWL_COMPAT_VERSION
928LIBAVAHI_COMPAT_HOWL_VERSION_INFO
929LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO
930LIBAVAHI_UI_VERSION_INFO
931LIBAVAHI_QT5_VERSION_INFO
932LIBAVAHI_QT4_VERSION_INFO
933LIBAVAHI_QT3_VERSION_INFO
934LIBAVAHI_GOBJECT_VERSION_INFO
935LIBAVAHI_LIBEVENT_VERSION_INFO
936LIBAVAHI_GLIB_VERSION_INFO
937LIBAVAHI_CLIENT_VERSION_INFO
938LIBAVAHI_CORE_VERSION_INFO
939LIBAVAHI_COMMON_VERSION_INFO
940AM_BACKSLASH
941AM_DEFAULT_VERBOSITY
942AM_DEFAULT_V
943AM_V
944am__untar
945am__tar
946AMTAR
947am__leading_dot
948SET_MAKE
949AWK
950mkdir_p
951MKDIR_P
952INSTALL_STRIP_PROGRAM
953STRIP
954install_sh
955MAKEINFO
956AUTOHEADER
957AUTOMAKE
958AUTOCONF
959ACLOCAL
960VERSION
961PACKAGE
962CYGPATH_W
963am__isrc
964INSTALL_DATA
965INSTALL_SCRIPT
966INSTALL_PROGRAM
967target_alias
968host_alias
969build_alias
970LIBS
971ECHO_T
972ECHO_N
973ECHO_C
974DEFS
975mandir
976localedir
977libdir
978psdir
979pdfdir
980dvidir
981htmldir
982infodir
983docdir
984oldincludedir
985includedir
986runstatedir
987localstatedir
988sharedstatedir
989sysconfdir
990datadir
991datarootdir
992libexecdir
993sbindir
994bindir
995program_transform_name
996prefix
997exec_prefix
998PACKAGE_URL
999PACKAGE_BUGREPORT
1000PACKAGE_STRING
1001PACKAGE_VERSION
1002PACKAGE_TARNAME
1003PACKAGE_NAME
1004PATH_SEPARATOR
1005SHELL'
1006ac_subst_files=''
1007ac_user_opts='
1008enable_option_checking
1009enable_silent_rules
1010enable_dependency_tracking
1011enable_stack_protector
1012enable_shared
1013enable_static
1014with_pic
1015enable_fast_install
1016with_aix_soname
1017with_gnu_ld
1018with_sysroot
1019enable_libtool_lock
1020with_distro
1021enable_nls
1022enable_rpath
1023with_libiconv_prefix
1024with_libintl_prefix
1025enable_glib
1026enable_gobject
1027enable_introspection
1028enable_libevent
1029enable_qt3
1030enable_qt4
1031enable_qt5
1032enable_gtk
1033enable_gtk3
1034enable_dbus
1035with_dbus_sys
1036with_dbus_system_socket
1037with_xml
1038enable_dbm
1039enable_gdbm
1040enable_libdaemon
1041enable_python
1042enable_pygobject
1043enable_python_dbus
1044enable_mono
1045enable_monodoc
1046enable_autoipd
1047with_avahi_user
1048with_avahi_group
1049with_avahi_priv_access_group
1050with_autoipd_user
1051with_autoipd_group
1052enable_doxygen_doc
1053enable_doxygen_dot
1054enable_doxygen_man
1055enable_doxygen_rtf
1056enable_doxygen_xml
1057enable_doxygen_chm
1058enable_doxygen_chi
1059enable_doxygen_html
1060enable_doxygen_ps
1061enable_doxygen_pdf
1062enable_core_docs
1063enable_manpages
1064enable_xmltoman
1065enable_tests
1066enable_compat_libdns_sd
1067enable_compat_howl
1068with_systemdsystemunitdir
1069'
1070      ac_precious_vars='build_alias
1071host_alias
1072target_alias
1073CC
1074CFLAGS
1075LDFLAGS
1076LIBS
1077CPPFLAGS
1078CXX
1079CXXFLAGS
1080CCC
1081CPP
1082LT_SYS_LIBRARY_PATH
1083CXXCPP
1084PKG_CONFIG
1085PKG_CONFIG_PATH
1086PKG_CONFIG_LIBDIR
1087GLIB20_CFLAGS
1088GLIB20_LIBS
1089GOBJECT_CFLAGS
1090GOBJECT_LIBS
1091LIBEVENT_CFLAGS
1092LIBEVENT_LIBS
1093QT3_CFLAGS
1094QT3_LIBS
1095QT4_CFLAGS
1096QT4_LIBS
1097QT5_CFLAGS
1098QT5_LIBS
1099GTK20_CFLAGS
1100GTK20_LIBS
1101GTK30_CFLAGS
1102GTK30_LIBS
1103DBUS_CFLAGS
1104DBUS_LIBS
1105LIBDAEMON_CFLAGS
1106LIBDAEMON_LIBS
1107PYTHON
1108PYGOBJECT_CFLAGS
1109PYGOBJECT_LIBS
1110MONODOC_CFLAGS
1111MONODOC_LIBS
1112DOXYGEN_PAPER_SIZE'
1113
1114
1115# Initialize some variables set by options.
1116ac_init_help=
1117ac_init_version=false
1118ac_unrecognized_opts=
1119ac_unrecognized_sep=
1120# The variables have the same names as the options, with
1121# dashes changed to underlines.
1122cache_file=/dev/null
1123exec_prefix=NONE
1124no_create=
1125no_recursion=
1126prefix=NONE
1127program_prefix=NONE
1128program_suffix=NONE
1129program_transform_name=s,x,x,
1130silent=
1131site=
1132srcdir=
1133verbose=
1134x_includes=NONE
1135x_libraries=NONE
1136
1137# Installation directory options.
1138# These are left unexpanded so users can "make install exec_prefix=/foo"
1139# and all the variables that are supposed to be based on exec_prefix
1140# by default will actually change.
1141# Use braces instead of parens because sh, perl, etc. also accept them.
1142# (The list follows the same order as the GNU Coding Standards.)
1143bindir='${exec_prefix}/bin'
1144sbindir='${exec_prefix}/sbin'
1145libexecdir='${exec_prefix}/libexec'
1146datarootdir='${prefix}/share'
1147datadir='${datarootdir}'
1148sysconfdir='${prefix}/etc'
1149sharedstatedir='${prefix}/com'
1150localstatedir='${prefix}/var'
1151runstatedir='${localstatedir}/run'
1152includedir='${prefix}/include'
1153oldincludedir='/usr/include'
1154docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1155infodir='${datarootdir}/info'
1156htmldir='${docdir}'
1157dvidir='${docdir}'
1158pdfdir='${docdir}'
1159psdir='${docdir}'
1160libdir='${exec_prefix}/lib'
1161localedir='${datarootdir}/locale'
1162mandir='${datarootdir}/man'
1163
1164ac_prev=
1165ac_dashdash=
1166for ac_option
1167do
1168  # If the previous option needs an argument, assign it.
1169  if test -n "$ac_prev"; then
1170    eval $ac_prev=\$ac_option
1171    ac_prev=
1172    continue
1173  fi
1174
1175  case $ac_option in
1176  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1177  *=)   ac_optarg= ;;
1178  *)    ac_optarg=yes ;;
1179  esac
1180
1181  # Accept the important Cygnus configure options, so we can diagnose typos.
1182
1183  case $ac_dashdash$ac_option in
1184  --)
1185    ac_dashdash=yes ;;
1186
1187  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1188    ac_prev=bindir ;;
1189  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1190    bindir=$ac_optarg ;;
1191
1192  -build | --build | --buil | --bui | --bu)
1193    ac_prev=build_alias ;;
1194  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1195    build_alias=$ac_optarg ;;
1196
1197  -cache-file | --cache-file | --cache-fil | --cache-fi \
1198  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1199    ac_prev=cache_file ;;
1200  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1201  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1202    cache_file=$ac_optarg ;;
1203
1204  --config-cache | -C)
1205    cache_file=config.cache ;;
1206
1207  -datadir | --datadir | --datadi | --datad)
1208    ac_prev=datadir ;;
1209  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1210    datadir=$ac_optarg ;;
1211
1212  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1213  | --dataroo | --dataro | --datar)
1214    ac_prev=datarootdir ;;
1215  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1216  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1217    datarootdir=$ac_optarg ;;
1218
1219  -disable-* | --disable-*)
1220    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1221    # Reject names that are not valid shell variable names.
1222    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223      as_fn_error $? "invalid feature name: $ac_useropt"
1224    ac_useropt_orig=$ac_useropt
1225    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226    case $ac_user_opts in
1227      *"
1228"enable_$ac_useropt"
1229"*) ;;
1230      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1231	 ac_unrecognized_sep=', ';;
1232    esac
1233    eval enable_$ac_useropt=no ;;
1234
1235  -docdir | --docdir | --docdi | --doc | --do)
1236    ac_prev=docdir ;;
1237  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1238    docdir=$ac_optarg ;;
1239
1240  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1241    ac_prev=dvidir ;;
1242  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1243    dvidir=$ac_optarg ;;
1244
1245  -enable-* | --enable-*)
1246    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1247    # Reject names that are not valid shell variable names.
1248    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1249      as_fn_error $? "invalid feature name: $ac_useropt"
1250    ac_useropt_orig=$ac_useropt
1251    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252    case $ac_user_opts in
1253      *"
1254"enable_$ac_useropt"
1255"*) ;;
1256      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1257	 ac_unrecognized_sep=', ';;
1258    esac
1259    eval enable_$ac_useropt=\$ac_optarg ;;
1260
1261  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1262  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1263  | --exec | --exe | --ex)
1264    ac_prev=exec_prefix ;;
1265  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1266  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1267  | --exec=* | --exe=* | --ex=*)
1268    exec_prefix=$ac_optarg ;;
1269
1270  -gas | --gas | --ga | --g)
1271    # Obsolete; use --with-gas.
1272    with_gas=yes ;;
1273
1274  -help | --help | --hel | --he | -h)
1275    ac_init_help=long ;;
1276  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1277    ac_init_help=recursive ;;
1278  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1279    ac_init_help=short ;;
1280
1281  -host | --host | --hos | --ho)
1282    ac_prev=host_alias ;;
1283  -host=* | --host=* | --hos=* | --ho=*)
1284    host_alias=$ac_optarg ;;
1285
1286  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1287    ac_prev=htmldir ;;
1288  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1289  | --ht=*)
1290    htmldir=$ac_optarg ;;
1291
1292  -includedir | --includedir | --includedi | --included | --include \
1293  | --includ | --inclu | --incl | --inc)
1294    ac_prev=includedir ;;
1295  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1296  | --includ=* | --inclu=* | --incl=* | --inc=*)
1297    includedir=$ac_optarg ;;
1298
1299  -infodir | --infodir | --infodi | --infod | --info | --inf)
1300    ac_prev=infodir ;;
1301  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1302    infodir=$ac_optarg ;;
1303
1304  -libdir | --libdir | --libdi | --libd)
1305    ac_prev=libdir ;;
1306  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1307    libdir=$ac_optarg ;;
1308
1309  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1310  | --libexe | --libex | --libe)
1311    ac_prev=libexecdir ;;
1312  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1313  | --libexe=* | --libex=* | --libe=*)
1314    libexecdir=$ac_optarg ;;
1315
1316  -localedir | --localedir | --localedi | --localed | --locale)
1317    ac_prev=localedir ;;
1318  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1319    localedir=$ac_optarg ;;
1320
1321  -localstatedir | --localstatedir | --localstatedi | --localstated \
1322  | --localstate | --localstat | --localsta | --localst | --locals)
1323    ac_prev=localstatedir ;;
1324  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1325  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1326    localstatedir=$ac_optarg ;;
1327
1328  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1329    ac_prev=mandir ;;
1330  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1331    mandir=$ac_optarg ;;
1332
1333  -nfp | --nfp | --nf)
1334    # Obsolete; use --without-fp.
1335    with_fp=no ;;
1336
1337  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1338  | --no-cr | --no-c | -n)
1339    no_create=yes ;;
1340
1341  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1342  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1343    no_recursion=yes ;;
1344
1345  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1346  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1347  | --oldin | --oldi | --old | --ol | --o)
1348    ac_prev=oldincludedir ;;
1349  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1350  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1351  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1352    oldincludedir=$ac_optarg ;;
1353
1354  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1355    ac_prev=prefix ;;
1356  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1357    prefix=$ac_optarg ;;
1358
1359  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1360  | --program-pre | --program-pr | --program-p)
1361    ac_prev=program_prefix ;;
1362  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1363  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1364    program_prefix=$ac_optarg ;;
1365
1366  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1367  | --program-suf | --program-su | --program-s)
1368    ac_prev=program_suffix ;;
1369  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1370  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1371    program_suffix=$ac_optarg ;;
1372
1373  -program-transform-name | --program-transform-name \
1374  | --program-transform-nam | --program-transform-na \
1375  | --program-transform-n | --program-transform- \
1376  | --program-transform | --program-transfor \
1377  | --program-transfo | --program-transf \
1378  | --program-trans | --program-tran \
1379  | --progr-tra | --program-tr | --program-t)
1380    ac_prev=program_transform_name ;;
1381  -program-transform-name=* | --program-transform-name=* \
1382  | --program-transform-nam=* | --program-transform-na=* \
1383  | --program-transform-n=* | --program-transform-=* \
1384  | --program-transform=* | --program-transfor=* \
1385  | --program-transfo=* | --program-transf=* \
1386  | --program-trans=* | --program-tran=* \
1387  | --progr-tra=* | --program-tr=* | --program-t=*)
1388    program_transform_name=$ac_optarg ;;
1389
1390  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1391    ac_prev=pdfdir ;;
1392  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1393    pdfdir=$ac_optarg ;;
1394
1395  -psdir | --psdir | --psdi | --psd | --ps)
1396    ac_prev=psdir ;;
1397  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1398    psdir=$ac_optarg ;;
1399
1400  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1401  | -silent | --silent | --silen | --sile | --sil)
1402    silent=yes ;;
1403
1404  -runstatedir | --runstatedir | --runstatedi | --runstated \
1405  | --runstate | --runstat | --runsta | --runst | --runs \
1406  | --run | --ru | --r)
1407    ac_prev=runstatedir ;;
1408  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1409  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1410  | --run=* | --ru=* | --r=*)
1411    runstatedir=$ac_optarg ;;
1412
1413  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1414    ac_prev=sbindir ;;
1415  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1416  | --sbi=* | --sb=*)
1417    sbindir=$ac_optarg ;;
1418
1419  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1420  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1421  | --sharedst | --shareds | --shared | --share | --shar \
1422  | --sha | --sh)
1423    ac_prev=sharedstatedir ;;
1424  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1425  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1426  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1427  | --sha=* | --sh=*)
1428    sharedstatedir=$ac_optarg ;;
1429
1430  -site | --site | --sit)
1431    ac_prev=site ;;
1432  -site=* | --site=* | --sit=*)
1433    site=$ac_optarg ;;
1434
1435  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1436    ac_prev=srcdir ;;
1437  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1438    srcdir=$ac_optarg ;;
1439
1440  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1441  | --syscon | --sysco | --sysc | --sys | --sy)
1442    ac_prev=sysconfdir ;;
1443  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1444  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1445    sysconfdir=$ac_optarg ;;
1446
1447  -target | --target | --targe | --targ | --tar | --ta | --t)
1448    ac_prev=target_alias ;;
1449  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1450    target_alias=$ac_optarg ;;
1451
1452  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1453    verbose=yes ;;
1454
1455  -version | --version | --versio | --versi | --vers | -V)
1456    ac_init_version=: ;;
1457
1458  -with-* | --with-*)
1459    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1460    # Reject names that are not valid shell variable names.
1461    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1462      as_fn_error $? "invalid package name: $ac_useropt"
1463    ac_useropt_orig=$ac_useropt
1464    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1465    case $ac_user_opts in
1466      *"
1467"with_$ac_useropt"
1468"*) ;;
1469      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1470	 ac_unrecognized_sep=', ';;
1471    esac
1472    eval with_$ac_useropt=\$ac_optarg ;;
1473
1474  -without-* | --without-*)
1475    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1476    # Reject names that are not valid shell variable names.
1477    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1478      as_fn_error $? "invalid package name: $ac_useropt"
1479    ac_useropt_orig=$ac_useropt
1480    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1481    case $ac_user_opts in
1482      *"
1483"with_$ac_useropt"
1484"*) ;;
1485      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1486	 ac_unrecognized_sep=', ';;
1487    esac
1488    eval with_$ac_useropt=no ;;
1489
1490  --x)
1491    # Obsolete; use --with-x.
1492    with_x=yes ;;
1493
1494  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1495  | --x-incl | --x-inc | --x-in | --x-i)
1496    ac_prev=x_includes ;;
1497  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1498  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1499    x_includes=$ac_optarg ;;
1500
1501  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1502  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1503    ac_prev=x_libraries ;;
1504  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1505  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1506    x_libraries=$ac_optarg ;;
1507
1508  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1509Try \`$0 --help' for more information"
1510    ;;
1511
1512  *=*)
1513    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1514    # Reject names that are not valid shell variable names.
1515    case $ac_envvar in #(
1516      '' | [0-9]* | *[!_$as_cr_alnum]* )
1517      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1518    esac
1519    eval $ac_envvar=\$ac_optarg
1520    export $ac_envvar ;;
1521
1522  *)
1523    # FIXME: should be removed in autoconf 3.0.
1524    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1525    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1526      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1527    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1528    ;;
1529
1530  esac
1531done
1532
1533if test -n "$ac_prev"; then
1534  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1535  as_fn_error $? "missing argument to $ac_option"
1536fi
1537
1538if test -n "$ac_unrecognized_opts"; then
1539  case $enable_option_checking in
1540    no) ;;
1541    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1542    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1543  esac
1544fi
1545
1546# Check all directory arguments for consistency.
1547for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1548		datadir sysconfdir sharedstatedir localstatedir includedir \
1549		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1550		libdir localedir mandir runstatedir
1551do
1552  eval ac_val=\$$ac_var
1553  # Remove trailing slashes.
1554  case $ac_val in
1555    */ )
1556      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1557      eval $ac_var=\$ac_val;;
1558  esac
1559  # Be sure to have absolute directory names.
1560  case $ac_val in
1561    [\\/$]* | ?:[\\/]* )  continue;;
1562    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1563  esac
1564  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1565done
1566
1567# There might be people who depend on the old broken behavior: `$host'
1568# used to hold the argument of --host etc.
1569# FIXME: To remove some day.
1570build=$build_alias
1571host=$host_alias
1572target=$target_alias
1573
1574# FIXME: To remove some day.
1575if test "x$host_alias" != x; then
1576  if test "x$build_alias" = x; then
1577    cross_compiling=maybe
1578  elif test "x$build_alias" != "x$host_alias"; then
1579    cross_compiling=yes
1580  fi
1581fi
1582
1583ac_tool_prefix=
1584test -n "$host_alias" && ac_tool_prefix=$host_alias-
1585
1586test "$silent" = yes && exec 6>/dev/null
1587
1588
1589ac_pwd=`pwd` && test -n "$ac_pwd" &&
1590ac_ls_di=`ls -di .` &&
1591ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1592  as_fn_error $? "working directory cannot be determined"
1593test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1594  as_fn_error $? "pwd does not report name of working directory"
1595
1596
1597# Find the source files, if location was not specified.
1598if test -z "$srcdir"; then
1599  ac_srcdir_defaulted=yes
1600  # Try the directory containing this script, then the parent directory.
1601  ac_confdir=`$as_dirname -- "$as_myself" ||
1602$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1603	 X"$as_myself" : 'X\(//\)[^/]' \| \
1604	 X"$as_myself" : 'X\(//\)$' \| \
1605	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1606$as_echo X"$as_myself" |
1607    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1608	    s//\1/
1609	    q
1610	  }
1611	  /^X\(\/\/\)[^/].*/{
1612	    s//\1/
1613	    q
1614	  }
1615	  /^X\(\/\/\)$/{
1616	    s//\1/
1617	    q
1618	  }
1619	  /^X\(\/\).*/{
1620	    s//\1/
1621	    q
1622	  }
1623	  s/.*/./; q'`
1624  srcdir=$ac_confdir
1625  if test ! -r "$srcdir/$ac_unique_file"; then
1626    srcdir=..
1627  fi
1628else
1629  ac_srcdir_defaulted=no
1630fi
1631if test ! -r "$srcdir/$ac_unique_file"; then
1632  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1633  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1634fi
1635ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1636ac_abs_confdir=`(
1637	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1638	pwd)`
1639# When building in place, set srcdir=.
1640if test "$ac_abs_confdir" = "$ac_pwd"; then
1641  srcdir=.
1642fi
1643# Remove unnecessary trailing slashes from srcdir.
1644# Double slashes in file names in object file debugging info
1645# mess up M-x gdb in Emacs.
1646case $srcdir in
1647*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1648esac
1649for ac_var in $ac_precious_vars; do
1650  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1651  eval ac_env_${ac_var}_value=\$${ac_var}
1652  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1653  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1654done
1655
1656#
1657# Report the --help message.
1658#
1659if test "$ac_init_help" = "long"; then
1660  # Omit some internal or obsolete options to make the list less imposing.
1661  # This message is too long to be a string in the A/UX 3.1 sh.
1662  cat <<_ACEOF
1663\`configure' configures avahi 0.8 to adapt to many kinds of systems.
1664
1665Usage: $0 [OPTION]... [VAR=VALUE]...
1666
1667To assign environment variables (e.g., CC, CFLAGS...), specify them as
1668VAR=VALUE.  See below for descriptions of some of the useful variables.
1669
1670Defaults for the options are specified in brackets.
1671
1672Configuration:
1673  -h, --help              display this help and exit
1674      --help=short        display options specific to this package
1675      --help=recursive    display the short help of all the included packages
1676  -V, --version           display version information and exit
1677  -q, --quiet, --silent   do not print \`checking ...' messages
1678      --cache-file=FILE   cache test results in FILE [disabled]
1679  -C, --config-cache      alias for \`--cache-file=config.cache'
1680  -n, --no-create         do not create output files
1681      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1682
1683Installation directories:
1684  --prefix=PREFIX         install architecture-independent files in PREFIX
1685                          [$ac_default_prefix]
1686  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1687                          [PREFIX]
1688
1689By default, \`make install' will install all the files in
1690\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1691an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1692for instance \`--prefix=\$HOME'.
1693
1694For better control, use the options below.
1695
1696Fine tuning of the installation directories:
1697  --bindir=DIR            user executables [EPREFIX/bin]
1698  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1699  --libexecdir=DIR        program executables [EPREFIX/libexec]
1700  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1701  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1702  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1703  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1704  --libdir=DIR            object code libraries [EPREFIX/lib]
1705  --includedir=DIR        C header files [PREFIX/include]
1706  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1707  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1708  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1709  --infodir=DIR           info documentation [DATAROOTDIR/info]
1710  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1711  --mandir=DIR            man documentation [DATAROOTDIR/man]
1712  --docdir=DIR            documentation root [DATAROOTDIR/doc/avahi]
1713  --htmldir=DIR           html documentation [DOCDIR]
1714  --dvidir=DIR            dvi documentation [DOCDIR]
1715  --pdfdir=DIR            pdf documentation [DOCDIR]
1716  --psdir=DIR             ps documentation [DOCDIR]
1717_ACEOF
1718
1719  cat <<\_ACEOF
1720
1721Program names:
1722  --program-prefix=PREFIX            prepend PREFIX to installed program names
1723  --program-suffix=SUFFIX            append SUFFIX to installed program names
1724  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1725
1726System types:
1727  --build=BUILD     configure for building on BUILD [guessed]
1728  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1729_ACEOF
1730fi
1731
1732if test -n "$ac_init_help"; then
1733  case $ac_init_help in
1734     short | recursive ) echo "Configuration of avahi 0.8:";;
1735   esac
1736  cat <<\_ACEOF
1737
1738Optional Features:
1739  --disable-option-checking  ignore unrecognized --enable/--with options
1740  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1741  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1742  --enable-silent-rules   less verbose build output (undo: "make V=1")
1743  --disable-silent-rules  verbose build output (undo: "make V=0")
1744  --enable-dependency-tracking
1745                          do not reject slow dependency extractors
1746  --disable-dependency-tracking
1747                          speeds up one-time build
1748  --disable-stack-protector
1749                          Disable GCC's/libc's stack-smashing protection
1750  --enable-shared[=PKGS]  build shared libraries [default=yes]
1751  --enable-static[=PKGS]  build static libraries [default=yes]
1752  --enable-fast-install[=PKGS]
1753                          optimize for fast installation [default=yes]
1754  --disable-libtool-lock  avoid locking (might break parallel builds)
1755  --disable-nls           do not use Native Language Support
1756  --disable-rpath         do not hardcode runtime library paths
1757  --disable-glib          Disable use of GLib
1758  --disable-gobject       Disable use of GLib GObject
1759  --enable-introspection=[no/auto/yes]
1760                          Enable introspection for this build
1761  --disable-libevent      Disable use of libevent
1762  --enable-qt3            Enable building of Qt3 mainloop integration
1763  --disable-qt4           Disable building of Qt4Core mainloop integration
1764  --disable-qt5           Disable building of Qt5Core mainloop integration
1765  --disable-gtk           Disable use of GTK+ 2
1766  --disable-gtk3          Disable use of GTK+ 3
1767  --disable-dbus          Disable use of D-Bus
1768  --enable-dbm            Enable use of DBM
1769  --disable-gdbm          Disable use of GDBM
1770  --disable-libdaemon     Disable use of libdaemon
1771  --disable-python        Disable scripts that depends on python
1772  --disable-pygobject     Disable use of Python GObject
1773  --disable-python-dbus   Disable use of D-Bus in Python
1774  --disable-mono          Disable mono bindings
1775  --disable-monodoc       Disable documentation for mono bindings
1776  --disable-autoipd       Disable building of avahi-autoipd
1777  --disable-doxygen-doc   don't generate any doxygen documentation
1778  --disable-doxygen-dot   don't generate graphics for doxygen documentation
1779  --enable-doxygen-man    generate doxygen manual pages
1780  --enable-doxygen-rtf    generate doxygen RTF documentation
1781  --disable-doxygen-xml   don't generate doxygen XML documentation
1782  --enable-doxygen-chm    generate doxygen compressed HTML help documentation
1783  --enable-doxygen-chi    generate doxygen seperate compressed HTML help index
1784                          file
1785  --disable-doxygen-html  don't generate doxygen plain HTML documentation
1786  --enable-doxygen-ps     generate doxygen PostScript documentation
1787  --enable-doxygen-pdf    generate doxygen PDF documentation
1788  --enable-core-docs      Enable building of documentation for avahi-core
1789  --disable-manpages      Disable building and installation of man pages
1790  --disable-xmltoman      Disable rebuilding of man pages with xmltoman
1791  --enable-tests          Enable building of tests and examples
1792  --enable-compat-libdns_sd
1793                          Enable compatibility layer for libdns_sd
1794  --enable-compat-howl    Enable compatibility layer for HOWL
1795
1796Optional Packages:
1797  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1798  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1799  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1800                          both]
1801  --with-aix-soname=aix|svr4|both
1802                          shared library versioning (aka "SONAME") variant to
1803                          provide on AIX, [default=aix].
1804  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1805  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1806                          compiler's sysroot if not specified).
1807  --with-distro=DISTRO    Specify the distribution to target: One of lfs,
1808                          debian, gentoo, archlinux, fedora, mandriva, darwin,
1809                          netbsd, freebsd, slackware or none
1810  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1811  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1812  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1813  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1814  --without-libintl-prefix     don't search for libintl in includedir and libdir
1815  --with-dbus-sys=<dir>   Path to D-Bus system.d directory
1816  --with-dbus-system-address=<address>
1817                          Path to the D-Bus system socket, you probably want
1818                          to put unix:path= at the start. Only needed for very
1819                          old D-Bus releases
1820  --with-xml=expat/bsdxml/none
1821                          XML library to use
1822  --with-avahi-user=<user>
1823                          User for running avahi-daemon (avahi)
1824  --with-avahi-group=<group>
1825                          Group for running avahi-daemon (avahi)
1826  --with-avahi-priv-access-group=<group>
1827                          Priviliged access group for Avahi clients (network)
1828  --with-autoipd-user=<user>
1829                          User for running the avahi-autoipd daemon
1830                          (avahi-autoipd)
1831  --with-autoipd-group=<group>
1832                          Group for running the avahi-autoipd daemon
1833                          (avahi-autoipd)
1834  --with-systemdsystemunitdir=DIR
1835                          Directory for systemd service files
1836
1837Some influential environment variables:
1838  CC          C compiler command
1839  CFLAGS      C compiler flags
1840  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1841              nonstandard directory <lib dir>
1842  LIBS        libraries to pass to the linker, e.g. -l<library>
1843  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1844              you have headers in a nonstandard directory <include dir>
1845  CXX         C++ compiler command
1846  CXXFLAGS    C++ compiler flags
1847  CPP         C preprocessor
1848  LT_SYS_LIBRARY_PATH
1849              User-defined run-time library search path.
1850  CXXCPP      C++ preprocessor
1851  PKG_CONFIG  path to pkg-config utility
1852  PKG_CONFIG_PATH
1853              directories to add to pkg-config's search path
1854  PKG_CONFIG_LIBDIR
1855              path overriding pkg-config's built-in search path
1856  GLIB20_CFLAGS
1857              C compiler flags for GLIB20, overriding pkg-config
1858  GLIB20_LIBS linker flags for GLIB20, overriding pkg-config
1859  GOBJECT_CFLAGS
1860              C compiler flags for GOBJECT, overriding pkg-config
1861  GOBJECT_LIBS
1862              linker flags for GOBJECT, overriding pkg-config
1863  LIBEVENT_CFLAGS
1864              C compiler flags for LIBEVENT, overriding pkg-config
1865  LIBEVENT_LIBS
1866              linker flags for LIBEVENT, overriding pkg-config
1867  QT3_CFLAGS  C compiler flags for QT3, overriding pkg-config
1868  QT3_LIBS    linker flags for QT3, overriding pkg-config
1869  QT4_CFLAGS  C compiler flags for QT4, overriding pkg-config
1870  QT4_LIBS    linker flags for QT4, overriding pkg-config
1871  QT5_CFLAGS  C compiler flags for QT5, overriding pkg-config
1872  QT5_LIBS    linker flags for QT5, overriding pkg-config
1873  GTK20_CFLAGS
1874              C compiler flags for GTK20, overriding pkg-config
1875  GTK20_LIBS  linker flags for GTK20, overriding pkg-config
1876  GTK30_CFLAGS
1877              C compiler flags for GTK30, overriding pkg-config
1878  GTK30_LIBS  linker flags for GTK30, overriding pkg-config
1879  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1880  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1881  LIBDAEMON_CFLAGS
1882              C compiler flags for LIBDAEMON, overriding pkg-config
1883  LIBDAEMON_LIBS
1884              linker flags for LIBDAEMON, overriding pkg-config
1885  PYTHON      the Python interpreter
1886  PYGOBJECT_CFLAGS
1887              C compiler flags for PYGOBJECT, overriding pkg-config
1888  PYGOBJECT_LIBS
1889              linker flags for PYGOBJECT, overriding pkg-config
1890  MONODOC_CFLAGS
1891              C compiler flags for MONODOC, overriding pkg-config
1892  MONODOC_LIBS
1893              linker flags for MONODOC, overriding pkg-config
1894  DOXYGEN_PAPER_SIZE
1895              a4wide (default), a4, letter, legal or executive
1896
1897Use these variables to override the choices made by `configure' or to help
1898it to find libraries and programs with nonstandard names/locations.
1899
1900Report bugs to <avahi (at) lists (dot) freedesktop (dot) org>.
1901_ACEOF
1902ac_status=$?
1903fi
1904
1905if test "$ac_init_help" = "recursive"; then
1906  # If there are subdirs, report their specific --help.
1907  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1908    test -d "$ac_dir" ||
1909      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1910      continue
1911    ac_builddir=.
1912
1913case "$ac_dir" in
1914.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1915*)
1916  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1917  # A ".." for each directory in $ac_dir_suffix.
1918  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1919  case $ac_top_builddir_sub in
1920  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1921  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1922  esac ;;
1923esac
1924ac_abs_top_builddir=$ac_pwd
1925ac_abs_builddir=$ac_pwd$ac_dir_suffix
1926# for backward compatibility:
1927ac_top_builddir=$ac_top_build_prefix
1928
1929case $srcdir in
1930  .)  # We are building in place.
1931    ac_srcdir=.
1932    ac_top_srcdir=$ac_top_builddir_sub
1933    ac_abs_top_srcdir=$ac_pwd ;;
1934  [\\/]* | ?:[\\/]* )  # Absolute name.
1935    ac_srcdir=$srcdir$ac_dir_suffix;
1936    ac_top_srcdir=$srcdir
1937    ac_abs_top_srcdir=$srcdir ;;
1938  *) # Relative name.
1939    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1940    ac_top_srcdir=$ac_top_build_prefix$srcdir
1941    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1942esac
1943ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1944
1945    cd "$ac_dir" || { ac_status=$?; continue; }
1946    # Check for guested configure.
1947    if test -f "$ac_srcdir/configure.gnu"; then
1948      echo &&
1949      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1950    elif test -f "$ac_srcdir/configure"; then
1951      echo &&
1952      $SHELL "$ac_srcdir/configure" --help=recursive
1953    else
1954      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1955    fi || ac_status=$?
1956    cd "$ac_pwd" || { ac_status=$?; break; }
1957  done
1958fi
1959
1960test -n "$ac_init_help" && exit $ac_status
1961if $ac_init_version; then
1962  cat <<\_ACEOF
1963avahi configure 0.8
1964generated by GNU Autoconf 2.69
1965
1966Copyright (C) 2012 Free Software Foundation, Inc.
1967This configure script is free software; the Free Software Foundation
1968gives unlimited permission to copy, distribute and modify it.
1969_ACEOF
1970  exit
1971fi
1972
1973## ------------------------ ##
1974## Autoconf initialization. ##
1975## ------------------------ ##
1976
1977# ac_fn_c_try_compile LINENO
1978# --------------------------
1979# Try to compile conftest.$ac_ext, and return whether this succeeded.
1980ac_fn_c_try_compile ()
1981{
1982  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983  rm -f conftest.$ac_objext
1984  if { { ac_try="$ac_compile"
1985case "(($ac_try" in
1986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987  *) ac_try_echo=$ac_try;;
1988esac
1989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990$as_echo "$ac_try_echo"; } >&5
1991  (eval "$ac_compile") 2>conftest.err
1992  ac_status=$?
1993  if test -s conftest.err; then
1994    grep -v '^ *+' conftest.err >conftest.er1
1995    cat conftest.er1 >&5
1996    mv -f conftest.er1 conftest.err
1997  fi
1998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999  test $ac_status = 0; } && {
2000	 test -z "$ac_c_werror_flag" ||
2001	 test ! -s conftest.err
2002       } && test -s conftest.$ac_objext; then :
2003  ac_retval=0
2004else
2005  $as_echo "$as_me: failed program was:" >&5
2006sed 's/^/| /' conftest.$ac_ext >&5
2007
2008	ac_retval=1
2009fi
2010  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011  as_fn_set_status $ac_retval
2012
2013} # ac_fn_c_try_compile
2014
2015# ac_fn_cxx_try_compile LINENO
2016# ----------------------------
2017# Try to compile conftest.$ac_ext, and return whether this succeeded.
2018ac_fn_cxx_try_compile ()
2019{
2020  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021  rm -f conftest.$ac_objext
2022  if { { ac_try="$ac_compile"
2023case "(($ac_try" in
2024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025  *) ac_try_echo=$ac_try;;
2026esac
2027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028$as_echo "$ac_try_echo"; } >&5
2029  (eval "$ac_compile") 2>conftest.err
2030  ac_status=$?
2031  if test -s conftest.err; then
2032    grep -v '^ *+' conftest.err >conftest.er1
2033    cat conftest.er1 >&5
2034    mv -f conftest.er1 conftest.err
2035  fi
2036  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037  test $ac_status = 0; } && {
2038	 test -z "$ac_cxx_werror_flag" ||
2039	 test ! -s conftest.err
2040       } && test -s conftest.$ac_objext; then :
2041  ac_retval=0
2042else
2043  $as_echo "$as_me: failed program was:" >&5
2044sed 's/^/| /' conftest.$ac_ext >&5
2045
2046	ac_retval=1
2047fi
2048  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049  as_fn_set_status $ac_retval
2050
2051} # ac_fn_cxx_try_compile
2052
2053# ac_fn_c_try_cpp LINENO
2054# ----------------------
2055# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2056ac_fn_c_try_cpp ()
2057{
2058  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059  if { { ac_try="$ac_cpp conftest.$ac_ext"
2060case "(($ac_try" in
2061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062  *) ac_try_echo=$ac_try;;
2063esac
2064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065$as_echo "$ac_try_echo"; } >&5
2066  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2067  ac_status=$?
2068  if test -s conftest.err; then
2069    grep -v '^ *+' conftest.err >conftest.er1
2070    cat conftest.er1 >&5
2071    mv -f conftest.er1 conftest.err
2072  fi
2073  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074  test $ac_status = 0; } > conftest.i && {
2075	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2076	 test ! -s conftest.err
2077       }; then :
2078  ac_retval=0
2079else
2080  $as_echo "$as_me: failed program was:" >&5
2081sed 's/^/| /' conftest.$ac_ext >&5
2082
2083    ac_retval=1
2084fi
2085  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086  as_fn_set_status $ac_retval
2087
2088} # ac_fn_c_try_cpp
2089
2090# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2091# -------------------------------------------------------
2092# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2093# the include files in INCLUDES and setting the cache variable VAR
2094# accordingly.
2095ac_fn_c_check_header_mongrel ()
2096{
2097  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098  if eval \${$3+:} false; then :
2099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2100$as_echo_n "checking for $2... " >&6; }
2101if eval \${$3+:} false; then :
2102  $as_echo_n "(cached) " >&6
2103fi
2104eval ac_res=\$$3
2105	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106$as_echo "$ac_res" >&6; }
2107else
2108  # Is the header compilable?
2109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2110$as_echo_n "checking $2 usability... " >&6; }
2111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112/* end confdefs.h.  */
2113$4
2114#include <$2>
2115_ACEOF
2116if ac_fn_c_try_compile "$LINENO"; then :
2117  ac_header_compiler=yes
2118else
2119  ac_header_compiler=no
2120fi
2121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2123$as_echo "$ac_header_compiler" >&6; }
2124
2125# Is the header present?
2126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2127$as_echo_n "checking $2 presence... " >&6; }
2128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129/* end confdefs.h.  */
2130#include <$2>
2131_ACEOF
2132if ac_fn_c_try_cpp "$LINENO"; then :
2133  ac_header_preproc=yes
2134else
2135  ac_header_preproc=no
2136fi
2137rm -f conftest.err conftest.i conftest.$ac_ext
2138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2139$as_echo "$ac_header_preproc" >&6; }
2140
2141# So?  What about this header?
2142case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2143  yes:no: )
2144    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2145$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2146    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2147$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2148    ;;
2149  no:yes:* )
2150    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2151$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2152    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2153$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2154    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2155$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2156    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2157$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2158    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2159$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2160( $as_echo "## ----------------------------------------------------------- ##
2161## Report this to avahi (at) lists (dot) freedesktop (dot) org ##
2162## ----------------------------------------------------------- ##"
2163     ) | sed "s/^/$as_me: WARNING:     /" >&2
2164    ;;
2165esac
2166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2167$as_echo_n "checking for $2... " >&6; }
2168if eval \${$3+:} false; then :
2169  $as_echo_n "(cached) " >&6
2170else
2171  eval "$3=\$ac_header_compiler"
2172fi
2173eval ac_res=\$$3
2174	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175$as_echo "$ac_res" >&6; }
2176fi
2177  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178
2179} # ac_fn_c_check_header_mongrel
2180
2181# ac_fn_c_try_run LINENO
2182# ----------------------
2183# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2184# that executables *can* be run.
2185ac_fn_c_try_run ()
2186{
2187  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188  if { { ac_try="$ac_link"
2189case "(($ac_try" in
2190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191  *) ac_try_echo=$ac_try;;
2192esac
2193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2194$as_echo "$ac_try_echo"; } >&5
2195  (eval "$ac_link") 2>&5
2196  ac_status=$?
2197  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2198  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2199  { { case "(($ac_try" in
2200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201  *) ac_try_echo=$ac_try;;
2202esac
2203eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2204$as_echo "$ac_try_echo"; } >&5
2205  (eval "$ac_try") 2>&5
2206  ac_status=$?
2207  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208  test $ac_status = 0; }; }; then :
2209  ac_retval=0
2210else
2211  $as_echo "$as_me: program exited with status $ac_status" >&5
2212       $as_echo "$as_me: failed program was:" >&5
2213sed 's/^/| /' conftest.$ac_ext >&5
2214
2215       ac_retval=$ac_status
2216fi
2217  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2218  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2219  as_fn_set_status $ac_retval
2220
2221} # ac_fn_c_try_run
2222
2223# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2224# -------------------------------------------------------
2225# Tests whether HEADER exists and can be compiled using the include files in
2226# INCLUDES, setting the cache variable VAR accordingly.
2227ac_fn_c_check_header_compile ()
2228{
2229  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2231$as_echo_n "checking for $2... " >&6; }
2232if eval \${$3+:} false; then :
2233  $as_echo_n "(cached) " >&6
2234else
2235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h.  */
2237$4
2238#include <$2>
2239_ACEOF
2240if ac_fn_c_try_compile "$LINENO"; then :
2241  eval "$3=yes"
2242else
2243  eval "$3=no"
2244fi
2245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246fi
2247eval ac_res=\$$3
2248	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2249$as_echo "$ac_res" >&6; }
2250  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251
2252} # ac_fn_c_check_header_compile
2253
2254# ac_fn_c_try_link LINENO
2255# -----------------------
2256# Try to link conftest.$ac_ext, and return whether this succeeded.
2257ac_fn_c_try_link ()
2258{
2259  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260  rm -f conftest.$ac_objext conftest$ac_exeext
2261  if { { ac_try="$ac_link"
2262case "(($ac_try" in
2263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264  *) ac_try_echo=$ac_try;;
2265esac
2266eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2267$as_echo "$ac_try_echo"; } >&5
2268  (eval "$ac_link") 2>conftest.err
2269  ac_status=$?
2270  if test -s conftest.err; then
2271    grep -v '^ *+' conftest.err >conftest.er1
2272    cat conftest.er1 >&5
2273    mv -f conftest.er1 conftest.err
2274  fi
2275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2276  test $ac_status = 0; } && {
2277	 test -z "$ac_c_werror_flag" ||
2278	 test ! -s conftest.err
2279       } && test -s conftest$ac_exeext && {
2280	 test "$cross_compiling" = yes ||
2281	 test -x conftest$ac_exeext
2282       }; then :
2283  ac_retval=0
2284else
2285  $as_echo "$as_me: failed program was:" >&5
2286sed 's/^/| /' conftest.$ac_ext >&5
2287
2288	ac_retval=1
2289fi
2290  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2291  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2292  # interfere with the next link command; also delete a directory that is
2293  # left behind by Apple's compiler.  We do this before executing the actions.
2294  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2295  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296  as_fn_set_status $ac_retval
2297
2298} # ac_fn_c_try_link
2299
2300# ac_fn_c_check_func LINENO FUNC VAR
2301# ----------------------------------
2302# Tests whether FUNC exists, setting the cache variable VAR accordingly
2303ac_fn_c_check_func ()
2304{
2305  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2307$as_echo_n "checking for $2... " >&6; }
2308if eval \${$3+:} false; then :
2309  $as_echo_n "(cached) " >&6
2310else
2311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312/* end confdefs.h.  */
2313/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2314   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2315#define $2 innocuous_$2
2316
2317/* System header to define __stub macros and hopefully few prototypes,
2318    which can conflict with char $2 (); below.
2319    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2320    <limits.h> exists even on freestanding compilers.  */
2321
2322#ifdef __STDC__
2323# include <limits.h>
2324#else
2325# include <assert.h>
2326#endif
2327
2328#undef $2
2329
2330/* Override any GCC internal prototype to avoid an error.
2331   Use char because int might match the return type of a GCC
2332   builtin and then its argument prototype would still apply.  */
2333#ifdef __cplusplus
2334extern "C"
2335#endif
2336char $2 ();
2337/* The GNU C library defines this for functions which it implements
2338    to always fail with ENOSYS.  Some functions are actually named
2339    something starting with __ and the normal name is an alias.  */
2340#if defined __stub_$2 || defined __stub___$2
2341choke me
2342#endif
2343
2344int
2345main ()
2346{
2347return $2 ();
2348  ;
2349  return 0;
2350}
2351_ACEOF
2352if ac_fn_c_try_link "$LINENO"; then :
2353  eval "$3=yes"
2354else
2355  eval "$3=no"
2356fi
2357rm -f core conftest.err conftest.$ac_objext \
2358    conftest$ac_exeext conftest.$ac_ext
2359fi
2360eval ac_res=\$$3
2361	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2362$as_echo "$ac_res" >&6; }
2363  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364
2365} # ac_fn_c_check_func
2366
2367# ac_fn_cxx_try_cpp LINENO
2368# ------------------------
2369# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2370ac_fn_cxx_try_cpp ()
2371{
2372  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373  if { { ac_try="$ac_cpp conftest.$ac_ext"
2374case "(($ac_try" in
2375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376  *) ac_try_echo=$ac_try;;
2377esac
2378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379$as_echo "$ac_try_echo"; } >&5
2380  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2381  ac_status=$?
2382  if test -s conftest.err; then
2383    grep -v '^ *+' conftest.err >conftest.er1
2384    cat conftest.er1 >&5
2385    mv -f conftest.er1 conftest.err
2386  fi
2387  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2388  test $ac_status = 0; } > conftest.i && {
2389	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2390	 test ! -s conftest.err
2391       }; then :
2392  ac_retval=0
2393else
2394  $as_echo "$as_me: failed program was:" >&5
2395sed 's/^/| /' conftest.$ac_ext >&5
2396
2397    ac_retval=1
2398fi
2399  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2400  as_fn_set_status $ac_retval
2401
2402} # ac_fn_cxx_try_cpp
2403
2404# ac_fn_cxx_try_link LINENO
2405# -------------------------
2406# Try to link conftest.$ac_ext, and return whether this succeeded.
2407ac_fn_cxx_try_link ()
2408{
2409  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410  rm -f conftest.$ac_objext conftest$ac_exeext
2411  if { { ac_try="$ac_link"
2412case "(($ac_try" in
2413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414  *) ac_try_echo=$ac_try;;
2415esac
2416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2417$as_echo "$ac_try_echo"; } >&5
2418  (eval "$ac_link") 2>conftest.err
2419  ac_status=$?
2420  if test -s conftest.err; then
2421    grep -v '^ *+' conftest.err >conftest.er1
2422    cat conftest.er1 >&5
2423    mv -f conftest.er1 conftest.err
2424  fi
2425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2426  test $ac_status = 0; } && {
2427	 test -z "$ac_cxx_werror_flag" ||
2428	 test ! -s conftest.err
2429       } && test -s conftest$ac_exeext && {
2430	 test "$cross_compiling" = yes ||
2431	 test -x conftest$ac_exeext
2432       }; then :
2433  ac_retval=0
2434else
2435  $as_echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438	ac_retval=1
2439fi
2440  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2441  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2442  # interfere with the next link command; also delete a directory that is
2443  # left behind by Apple's compiler.  We do this before executing the actions.
2444  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2445  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2446  as_fn_set_status $ac_retval
2447
2448} # ac_fn_cxx_try_link
2449
2450# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2451# -------------------------------------------
2452# Tests whether TYPE exists after having included INCLUDES, setting cache
2453# variable VAR accordingly.
2454ac_fn_c_check_type ()
2455{
2456  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2457  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2458$as_echo_n "checking for $2... " >&6; }
2459if eval \${$3+:} false; then :
2460  $as_echo_n "(cached) " >&6
2461else
2462  eval "$3=no"
2463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464/* end confdefs.h.  */
2465$4
2466int
2467main ()
2468{
2469if (sizeof ($2))
2470	 return 0;
2471  ;
2472  return 0;
2473}
2474_ACEOF
2475if ac_fn_c_try_compile "$LINENO"; then :
2476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477/* end confdefs.h.  */
2478$4
2479int
2480main ()
2481{
2482if (sizeof (($2)))
2483	    return 0;
2484  ;
2485  return 0;
2486}
2487_ACEOF
2488if ac_fn_c_try_compile "$LINENO"; then :
2489
2490else
2491  eval "$3=yes"
2492fi
2493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494fi
2495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2496fi
2497eval ac_res=\$$3
2498	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2499$as_echo "$ac_res" >&6; }
2500  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2501
2502} # ac_fn_c_check_type
2503
2504# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2505# ---------------------------------------------
2506# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2507# accordingly.
2508ac_fn_c_check_decl ()
2509{
2510  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2511  as_decl_name=`echo $2|sed 's/ *(.*//'`
2512  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2513  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2514$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2515if eval \${$3+:} false; then :
2516  $as_echo_n "(cached) " >&6
2517else
2518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519/* end confdefs.h.  */
2520$4
2521int
2522main ()
2523{
2524#ifndef $as_decl_name
2525#ifdef __cplusplus
2526  (void) $as_decl_use;
2527#else
2528  (void) $as_decl_name;
2529#endif
2530#endif
2531
2532  ;
2533  return 0;
2534}
2535_ACEOF
2536if ac_fn_c_try_compile "$LINENO"; then :
2537  eval "$3=yes"
2538else
2539  eval "$3=no"
2540fi
2541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542fi
2543eval ac_res=\$$3
2544	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2545$as_echo "$ac_res" >&6; }
2546  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2547
2548} # ac_fn_c_check_decl
2549cat >config.log <<_ACEOF
2550This file contains any messages produced by compilers while
2551running configure, to aid debugging if configure makes a mistake.
2552
2553It was created by avahi $as_me 0.8, which was
2554generated by GNU Autoconf 2.69.  Invocation command line was
2555
2556  $ $0 $@
2557
2558_ACEOF
2559exec 5>>config.log
2560{
2561cat <<_ASUNAME
2562## --------- ##
2563## Platform. ##
2564## --------- ##
2565
2566hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2567uname -m = `(uname -m) 2>/dev/null || echo unknown`
2568uname -r = `(uname -r) 2>/dev/null || echo unknown`
2569uname -s = `(uname -s) 2>/dev/null || echo unknown`
2570uname -v = `(uname -v) 2>/dev/null || echo unknown`
2571
2572/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2573/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2574
2575/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2576/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2577/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2578/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2579/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2580/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2581/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2582
2583_ASUNAME
2584
2585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586for as_dir in $PATH
2587do
2588  IFS=$as_save_IFS
2589  test -z "$as_dir" && as_dir=.
2590    $as_echo "PATH: $as_dir"
2591  done
2592IFS=$as_save_IFS
2593
2594} >&5
2595
2596cat >&5 <<_ACEOF
2597
2598
2599## ----------- ##
2600## Core tests. ##
2601## ----------- ##
2602
2603_ACEOF
2604
2605
2606# Keep a trace of the command line.
2607# Strip out --no-create and --no-recursion so they do not pile up.
2608# Strip out --silent because we don't want to record it for future runs.
2609# Also quote any args containing shell meta-characters.
2610# Make two passes to allow for proper duplicate-argument suppression.
2611ac_configure_args=
2612ac_configure_args0=
2613ac_configure_args1=
2614ac_must_keep_next=false
2615for ac_pass in 1 2
2616do
2617  for ac_arg
2618  do
2619    case $ac_arg in
2620    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2621    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2622    | -silent | --silent | --silen | --sile | --sil)
2623      continue ;;
2624    *\'*)
2625      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2626    esac
2627    case $ac_pass in
2628    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2629    2)
2630      as_fn_append ac_configure_args1 " '$ac_arg'"
2631      if test $ac_must_keep_next = true; then
2632	ac_must_keep_next=false # Got value, back to normal.
2633      else
2634	case $ac_arg in
2635	  *=* | --config-cache | -C | -disable-* | --disable-* \
2636	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2637	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2638	  | -with-* | --with-* | -without-* | --without-* | --x)
2639	    case "$ac_configure_args0 " in
2640	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2641	    esac
2642	    ;;
2643	  -* ) ac_must_keep_next=true ;;
2644	esac
2645      fi
2646      as_fn_append ac_configure_args " '$ac_arg'"
2647      ;;
2648    esac
2649  done
2650done
2651{ ac_configure_args0=; unset ac_configure_args0;}
2652{ ac_configure_args1=; unset ac_configure_args1;}
2653
2654# When interrupted or exit'd, cleanup temporary files, and complete
2655# config.log.  We remove comments because anyway the quotes in there
2656# would cause problems or look ugly.
2657# WARNING: Use '\'' to represent an apostrophe within the trap.
2658# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2659trap 'exit_status=$?
2660  # Save into config.log some information that might help in debugging.
2661  {
2662    echo
2663
2664    $as_echo "## ---------------- ##
2665## Cache variables. ##
2666## ---------------- ##"
2667    echo
2668    # The following way of writing the cache mishandles newlines in values,
2669(
2670  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2671    eval ac_val=\$$ac_var
2672    case $ac_val in #(
2673    *${as_nl}*)
2674      case $ac_var in #(
2675      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2676$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2677      esac
2678      case $ac_var in #(
2679      _ | IFS | as_nl) ;; #(
2680      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2681      *) { eval $ac_var=; unset $ac_var;} ;;
2682      esac ;;
2683    esac
2684  done
2685  (set) 2>&1 |
2686    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2687    *${as_nl}ac_space=\ *)
2688      sed -n \
2689	"s/'\''/'\''\\\\'\'''\''/g;
2690	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2691      ;; #(
2692    *)
2693      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2694      ;;
2695    esac |
2696    sort
2697)
2698    echo
2699
2700    $as_echo "## ----------------- ##
2701## Output variables. ##
2702## ----------------- ##"
2703    echo
2704    for ac_var in $ac_subst_vars
2705    do
2706      eval ac_val=\$$ac_var
2707      case $ac_val in
2708      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2709      esac
2710      $as_echo "$ac_var='\''$ac_val'\''"
2711    done | sort
2712    echo
2713
2714    if test -n "$ac_subst_files"; then
2715      $as_echo "## ------------------- ##
2716## File substitutions. ##
2717## ------------------- ##"
2718      echo
2719      for ac_var in $ac_subst_files
2720      do
2721	eval ac_val=\$$ac_var
2722	case $ac_val in
2723	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2724	esac
2725	$as_echo "$ac_var='\''$ac_val'\''"
2726      done | sort
2727      echo
2728    fi
2729
2730    if test -s confdefs.h; then
2731      $as_echo "## ----------- ##
2732## confdefs.h. ##
2733## ----------- ##"
2734      echo
2735      cat confdefs.h
2736      echo
2737    fi
2738    test "$ac_signal" != 0 &&
2739      $as_echo "$as_me: caught signal $ac_signal"
2740    $as_echo "$as_me: exit $exit_status"
2741  } >&5
2742  rm -f core *.core core.conftest.* &&
2743    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2744    exit $exit_status
2745' 0
2746for ac_signal in 1 2 13 15; do
2747  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2748done
2749ac_signal=0
2750
2751# confdefs.h avoids OS command line length limits that DEFS can exceed.
2752rm -f -r conftest* confdefs.h
2753
2754$as_echo "/* confdefs.h */" > confdefs.h
2755
2756# Predefined preprocessor variables.
2757
2758cat >>confdefs.h <<_ACEOF
2759#define PACKAGE_NAME "$PACKAGE_NAME"
2760_ACEOF
2761
2762cat >>confdefs.h <<_ACEOF
2763#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2764_ACEOF
2765
2766cat >>confdefs.h <<_ACEOF
2767#define PACKAGE_VERSION "$PACKAGE_VERSION"
2768_ACEOF
2769
2770cat >>confdefs.h <<_ACEOF
2771#define PACKAGE_STRING "$PACKAGE_STRING"
2772_ACEOF
2773
2774cat >>confdefs.h <<_ACEOF
2775#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2776_ACEOF
2777
2778cat >>confdefs.h <<_ACEOF
2779#define PACKAGE_URL "$PACKAGE_URL"
2780_ACEOF
2781
2782
2783# Let the site file select an alternate cache file if it wants to.
2784# Prefer an explicitly selected file to automatically selected ones.
2785ac_site_file1=NONE
2786ac_site_file2=NONE
2787if test -n "$CONFIG_SITE"; then
2788  # We do not want a PATH search for config.site.
2789  case $CONFIG_SITE in #((
2790    -*)  ac_site_file1=./$CONFIG_SITE;;
2791    */*) ac_site_file1=$CONFIG_SITE;;
2792    *)   ac_site_file1=./$CONFIG_SITE;;
2793  esac
2794elif test "x$prefix" != xNONE; then
2795  ac_site_file1=$prefix/share/config.site
2796  ac_site_file2=$prefix/etc/config.site
2797else
2798  ac_site_file1=$ac_default_prefix/share/config.site
2799  ac_site_file2=$ac_default_prefix/etc/config.site
2800fi
2801for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2802do
2803  test "x$ac_site_file" = xNONE && continue
2804  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2805    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2806$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2807    sed 's/^/| /' "$ac_site_file" >&5
2808    . "$ac_site_file" \
2809      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2811as_fn_error $? "failed to load site script $ac_site_file
2812See \`config.log' for more details" "$LINENO" 5; }
2813  fi
2814done
2815
2816if test -r "$cache_file"; then
2817  # Some versions of bash will fail to source /dev/null (special files
2818  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2819  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2820    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2821$as_echo "$as_me: loading cache $cache_file" >&6;}
2822    case $cache_file in
2823      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2824      *)                      . "./$cache_file";;
2825    esac
2826  fi
2827else
2828  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2829$as_echo "$as_me: creating cache $cache_file" >&6;}
2830  >$cache_file
2831fi
2832
2833gt_needs="$gt_needs "
2834# Check that the precious variables saved in the cache have kept the same
2835# value.
2836ac_cache_corrupted=false
2837for ac_var in $ac_precious_vars; do
2838  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2839  eval ac_new_set=\$ac_env_${ac_var}_set
2840  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2841  eval ac_new_val=\$ac_env_${ac_var}_value
2842  case $ac_old_set,$ac_new_set in
2843    set,)
2844      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2845$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2846      ac_cache_corrupted=: ;;
2847    ,set)
2848      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2849$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2850      ac_cache_corrupted=: ;;
2851    ,);;
2852    *)
2853      if test "x$ac_old_val" != "x$ac_new_val"; then
2854	# differences in whitespace do not lead to failure.
2855	ac_old_val_w=`echo x $ac_old_val`
2856	ac_new_val_w=`echo x $ac_new_val`
2857	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2858	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2859$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2860	  ac_cache_corrupted=:
2861	else
2862	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2863$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2864	  eval $ac_var=\$ac_old_val
2865	fi
2866	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2867$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2868	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2869$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2870      fi;;
2871  esac
2872  # Pass precious variables to config.status.
2873  if test "$ac_new_set" = set; then
2874    case $ac_new_val in
2875    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2876    *) ac_arg=$ac_var=$ac_new_val ;;
2877    esac
2878    case " $ac_configure_args " in
2879      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2880      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2881    esac
2882  fi
2883done
2884if $ac_cache_corrupted; then
2885  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2887  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2888$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2889  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2890fi
2891## -------------------- ##
2892## Main body of script. ##
2893## -------------------- ##
2894
2895ac_ext=c
2896ac_cpp='$CPP $CPPFLAGS'
2897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900
2901
2902
2903
2904ac_config_headers="$ac_config_headers config.h"
2905
2906am__api_version='1.15'
2907
2908ac_aux_dir=
2909for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2910  if test -f "$ac_dir/install-sh"; then
2911    ac_aux_dir=$ac_dir
2912    ac_install_sh="$ac_aux_dir/install-sh -c"
2913    break
2914  elif test -f "$ac_dir/install.sh"; then
2915    ac_aux_dir=$ac_dir
2916    ac_install_sh="$ac_aux_dir/install.sh -c"
2917    break
2918  elif test -f "$ac_dir/shtool"; then
2919    ac_aux_dir=$ac_dir
2920    ac_install_sh="$ac_aux_dir/shtool install -c"
2921    break
2922  fi
2923done
2924if test -z "$ac_aux_dir"; then
2925  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2926fi
2927
2928# These three variables are undocumented and unsupported,
2929# and are intended to be withdrawn in a future Autoconf release.
2930# They can cause serious problems if a builder's source tree is in a directory
2931# whose full name contains unusual characters.
2932ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2933ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2934ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2935
2936
2937# Find a good install program.  We prefer a C program (faster),
2938# so one script is as good as another.  But avoid the broken or
2939# incompatible versions:
2940# SysV /etc/install, /usr/sbin/install
2941# SunOS /usr/etc/install
2942# IRIX /sbin/install
2943# AIX /bin/install
2944# AmigaOS /C/install, which installs bootblocks on floppy discs
2945# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2946# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2947# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2948# OS/2's system install, which has a completely different semantic
2949# ./install, which can be erroneously created by make from ./install.sh.
2950# Reject install programs that cannot install multiple files.
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2952$as_echo_n "checking for a BSD-compatible install... " >&6; }
2953if test -z "$INSTALL"; then
2954if ${ac_cv_path_install+:} false; then :
2955  $as_echo_n "(cached) " >&6
2956else
2957  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958for as_dir in $PATH
2959do
2960  IFS=$as_save_IFS
2961  test -z "$as_dir" && as_dir=.
2962    # Account for people who put trailing slashes in PATH elements.
2963case $as_dir/ in #((
2964  ./ | .// | /[cC]/* | \
2965  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2966  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2967  /usr/ucb/* ) ;;
2968  *)
2969    # OSF1 and SCO ODT 3.0 have their own names for install.
2970    # Don't use installbsd from OSF since it installs stuff as root
2971    # by default.
2972    for ac_prog in ginstall scoinst install; do
2973      for ac_exec_ext in '' $ac_executable_extensions; do
2974	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2975	  if test $ac_prog = install &&
2976	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2977	    # AIX install.  It has an incompatible calling convention.
2978	    :
2979	  elif test $ac_prog = install &&
2980	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2981	    # program-specific install script used by HP pwplus--don't use.
2982	    :
2983	  else
2984	    rm -rf conftest.one conftest.two conftest.dir
2985	    echo one > conftest.one
2986	    echo two > conftest.two
2987	    mkdir conftest.dir
2988	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2989	      test -s conftest.one && test -s conftest.two &&
2990	      test -s conftest.dir/conftest.one &&
2991	      test -s conftest.dir/conftest.two
2992	    then
2993	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2994	      break 3
2995	    fi
2996	  fi
2997	fi
2998      done
2999    done
3000    ;;
3001esac
3002
3003  done
3004IFS=$as_save_IFS
3005
3006rm -rf conftest.one conftest.two conftest.dir
3007
3008fi
3009  if test "${ac_cv_path_install+set}" = set; then
3010    INSTALL=$ac_cv_path_install
3011  else
3012    # As a last resort, use the slow shell script.  Don't cache a
3013    # value for INSTALL within a source directory, because that will
3014    # break other packages using the cache if that directory is
3015    # removed, or if the value is a relative name.
3016    INSTALL=$ac_install_sh
3017  fi
3018fi
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3020$as_echo "$INSTALL" >&6; }
3021
3022# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3023# It thinks the first close brace ends the variable substitution.
3024test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3025
3026test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3027
3028test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3029
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3031$as_echo_n "checking whether build environment is sane... " >&6; }
3032# Reject unsafe characters in $srcdir or the absolute working directory
3033# name.  Accept space and tab only in the latter.
3034am_lf='
3035'
3036case `pwd` in
3037  *[\\\"\#\$\&\'\`$am_lf]*)
3038    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3039esac
3040case $srcdir in
3041  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3042    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3043esac
3044
3045# Do 'set' in a subshell so we don't clobber the current shell's
3046# arguments.  Must try -L first in case configure is actually a
3047# symlink; some systems play weird games with the mod time of symlinks
3048# (eg FreeBSD returns the mod time of the symlink's containing
3049# directory).
3050if (
3051   am_has_slept=no
3052   for am_try in 1 2; do
3053     echo "timestamp, slept: $am_has_slept" > conftest.file
3054     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3055     if test "$*" = "X"; then
3056	# -L didn't work.
3057	set X `ls -t "$srcdir/configure" conftest.file`
3058     fi
3059     if test "$*" != "X $srcdir/configure conftest.file" \
3060	&& test "$*" != "X conftest.file $srcdir/configure"; then
3061
3062	# If neither matched, then we have a broken ls.  This can happen
3063	# if, for instance, CONFIG_SHELL is bash and it inherits a
3064	# broken ls alias from the environment.  This has actually
3065	# happened.  Such a system could not be considered "sane".
3066	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3067  alias in your environment" "$LINENO" 5
3068     fi
3069     if test "$2" = conftest.file || test $am_try -eq 2; then
3070       break
3071     fi
3072     # Just in case.
3073     sleep 1
3074     am_has_slept=yes
3075   done
3076   test "$2" = conftest.file
3077   )
3078then
3079   # Ok.
3080   :
3081else
3082   as_fn_error $? "newly created file is older than distributed files!
3083Check your system clock" "$LINENO" 5
3084fi
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3086$as_echo "yes" >&6; }
3087# If we didn't sleep, we still need to ensure time stamps of config.status and
3088# generated files are strictly newer.
3089am_sleep_pid=
3090if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3091  ( sleep 1 ) &
3092  am_sleep_pid=$!
3093fi
3094
3095rm -f conftest.file
3096
3097test "$program_prefix" != NONE &&
3098  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3099# Use a double $ so make ignores it.
3100test "$program_suffix" != NONE &&
3101  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3102# Double any \ or $.
3103# By default was `s,x,x', remove it if useless.
3104ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3105program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3106
3107# Expand $ac_aux_dir to an absolute path.
3108am_aux_dir=`cd "$ac_aux_dir" && pwd`
3109
3110if test x"${MISSING+set}" != xset; then
3111  case $am_aux_dir in
3112  *\ * | *\	*)
3113    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3114  *)
3115    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3116  esac
3117fi
3118# Use eval to expand $SHELL
3119if eval "$MISSING --is-lightweight"; then
3120  am_missing_run="$MISSING "
3121else
3122  am_missing_run=
3123  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3124$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3125fi
3126
3127if test x"${install_sh+set}" != xset; then
3128  case $am_aux_dir in
3129  *\ * | *\	*)
3130    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3131  *)
3132    install_sh="\${SHELL} $am_aux_dir/install-sh"
3133  esac
3134fi
3135
3136# Installed binaries are usually stripped using 'strip' when the user
3137# run "make install-strip".  However 'strip' might not be the right
3138# tool to use in cross-compilation environments, therefore Automake
3139# will honor the 'STRIP' environment variable to overrule this program.
3140if test "$cross_compiling" != no; then
3141  if test -n "$ac_tool_prefix"; then
3142  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3143set dummy ${ac_tool_prefix}strip; ac_word=$2
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145$as_echo_n "checking for $ac_word... " >&6; }
3146if ${ac_cv_prog_STRIP+:} false; then :
3147  $as_echo_n "(cached) " >&6
3148else
3149  if test -n "$STRIP"; then
3150  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3151else
3152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153for as_dir in $PATH
3154do
3155  IFS=$as_save_IFS
3156  test -z "$as_dir" && as_dir=.
3157    for ac_exec_ext in '' $ac_executable_extensions; do
3158  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3159    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161    break 2
3162  fi
3163done
3164  done
3165IFS=$as_save_IFS
3166
3167fi
3168fi
3169STRIP=$ac_cv_prog_STRIP
3170if test -n "$STRIP"; then
3171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3172$as_echo "$STRIP" >&6; }
3173else
3174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175$as_echo "no" >&6; }
3176fi
3177
3178
3179fi
3180if test -z "$ac_cv_prog_STRIP"; then
3181  ac_ct_STRIP=$STRIP
3182  # Extract the first word of "strip", so it can be a program name with args.
3183set dummy strip; ac_word=$2
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185$as_echo_n "checking for $ac_word... " >&6; }
3186if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3187  $as_echo_n "(cached) " >&6
3188else
3189  if test -n "$ac_ct_STRIP"; then
3190  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3191else
3192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193for as_dir in $PATH
3194do
3195  IFS=$as_save_IFS
3196  test -z "$as_dir" && as_dir=.
3197    for ac_exec_ext in '' $ac_executable_extensions; do
3198  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199    ac_cv_prog_ac_ct_STRIP="strip"
3200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201    break 2
3202  fi
3203done
3204  done
3205IFS=$as_save_IFS
3206
3207fi
3208fi
3209ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3210if test -n "$ac_ct_STRIP"; then
3211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3212$as_echo "$ac_ct_STRIP" >&6; }
3213else
3214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215$as_echo "no" >&6; }
3216fi
3217
3218  if test "x$ac_ct_STRIP" = x; then
3219    STRIP=":"
3220  else
3221    case $cross_compiling:$ac_tool_warned in
3222yes:)
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3225ac_tool_warned=yes ;;
3226esac
3227    STRIP=$ac_ct_STRIP
3228  fi
3229else
3230  STRIP="$ac_cv_prog_STRIP"
3231fi
3232
3233fi
3234INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3235
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3237$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3238if test -z "$MKDIR_P"; then
3239  if ${ac_cv_path_mkdir+:} false; then :
3240  $as_echo_n "(cached) " >&6
3241else
3242  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3244do
3245  IFS=$as_save_IFS
3246  test -z "$as_dir" && as_dir=.
3247    for ac_prog in mkdir gmkdir; do
3248	 for ac_exec_ext in '' $ac_executable_extensions; do
3249	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3250	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3251	     'mkdir (GNU coreutils) '* | \
3252	     'mkdir (coreutils) '* | \
3253	     'mkdir (fileutils) '4.1*)
3254	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3255	       break 3;;
3256	   esac
3257	 done
3258       done
3259  done
3260IFS=$as_save_IFS
3261
3262fi
3263
3264  test -d ./--version && rmdir ./--version
3265  if test "${ac_cv_path_mkdir+set}" = set; then
3266    MKDIR_P="$ac_cv_path_mkdir -p"
3267  else
3268    # As a last resort, use the slow shell script.  Don't cache a
3269    # value for MKDIR_P within a source directory, because that will
3270    # break other packages using the cache if that directory is
3271    # removed, or if the value is a relative name.
3272    MKDIR_P="$ac_install_sh -d"
3273  fi
3274fi
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3276$as_echo "$MKDIR_P" >&6; }
3277
3278for ac_prog in gawk mawk nawk awk
3279do
3280  # Extract the first word of "$ac_prog", so it can be a program name with args.
3281set dummy $ac_prog; ac_word=$2
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283$as_echo_n "checking for $ac_word... " >&6; }
3284if ${ac_cv_prog_AWK+:} false; then :
3285  $as_echo_n "(cached) " >&6
3286else
3287  if test -n "$AWK"; then
3288  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3289else
3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291for as_dir in $PATH
3292do
3293  IFS=$as_save_IFS
3294  test -z "$as_dir" && as_dir=.
3295    for ac_exec_ext in '' $ac_executable_extensions; do
3296  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3297    ac_cv_prog_AWK="$ac_prog"
3298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299    break 2
3300  fi
3301done
3302  done
3303IFS=$as_save_IFS
3304
3305fi
3306fi
3307AWK=$ac_cv_prog_AWK
3308if test -n "$AWK"; then
3309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3310$as_echo "$AWK" >&6; }
3311else
3312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313$as_echo "no" >&6; }
3314fi
3315
3316
3317  test -n "$AWK" && break
3318done
3319
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3321$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3322set x ${MAKE-make}
3323ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3324if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3325  $as_echo_n "(cached) " >&6
3326else
3327  cat >conftest.make <<\_ACEOF
3328SHELL = /bin/sh
3329all:
3330	@echo '@@@%%%=$(MAKE)=@@@%%%'
3331_ACEOF
3332# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3333case `${MAKE-make} -f conftest.make 2>/dev/null` in
3334  *@@@%%%=?*=@@@%%%*)
3335    eval ac_cv_prog_make_${ac_make}_set=yes;;
3336  *)
3337    eval ac_cv_prog_make_${ac_make}_set=no;;
3338esac
3339rm -f conftest.make
3340fi
3341if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3343$as_echo "yes" >&6; }
3344  SET_MAKE=
3345else
3346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347$as_echo "no" >&6; }
3348  SET_MAKE="MAKE=${MAKE-make}"
3349fi
3350
3351rm -rf .tst 2>/dev/null
3352mkdir .tst 2>/dev/null
3353if test -d .tst; then
3354  am__leading_dot=.
3355else
3356  am__leading_dot=_
3357fi
3358rmdir .tst 2>/dev/null
3359
3360# Check whether --enable-silent-rules was given.
3361if test "${enable_silent_rules+set}" = set; then :
3362  enableval=$enable_silent_rules;
3363fi
3364
3365case $enable_silent_rules in # (((
3366  yes) AM_DEFAULT_VERBOSITY=0;;
3367   no) AM_DEFAULT_VERBOSITY=1;;
3368    *) AM_DEFAULT_VERBOSITY=1;;
3369esac
3370am_make=${MAKE-make}
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3372$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3373if ${am_cv_make_support_nested_variables+:} false; then :
3374  $as_echo_n "(cached) " >&6
3375else
3376  if $as_echo 'TRUE=$(BAR$(V))
3377BAR0=false
3378BAR1=true
3379V=1
3380am__doit:
3381	@$(TRUE)
3382.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3383  am_cv_make_support_nested_variables=yes
3384else
3385  am_cv_make_support_nested_variables=no
3386fi
3387fi
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3389$as_echo "$am_cv_make_support_nested_variables" >&6; }
3390if test $am_cv_make_support_nested_variables = yes; then
3391    AM_V='$(V)'
3392  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3393else
3394  AM_V=$AM_DEFAULT_VERBOSITY
3395  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3396fi
3397AM_BACKSLASH='\'
3398
3399if test "`cd $srcdir && pwd`" != "`pwd`"; then
3400  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3401  # is not polluted with repeated "-I."
3402  am__isrc=' -I$(srcdir)'
3403  # test to see if srcdir already configured
3404  if test -f $srcdir/config.status; then
3405    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3406  fi
3407fi
3408
3409# test whether we have cygpath
3410if test -z "$CYGPATH_W"; then
3411  if (cygpath --version) >/dev/null 2>/dev/null; then
3412    CYGPATH_W='cygpath -w'
3413  else
3414    CYGPATH_W=echo
3415  fi
3416fi
3417
3418
3419# Define the identity of the package.
3420 PACKAGE='avahi'
3421 VERSION='0.8'
3422
3423
3424cat >>confdefs.h <<_ACEOF
3425#define PACKAGE "$PACKAGE"
3426_ACEOF
3427
3428
3429cat >>confdefs.h <<_ACEOF
3430#define VERSION "$VERSION"
3431_ACEOF
3432
3433# Some tools Automake needs.
3434
3435ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3436
3437
3438AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3439
3440
3441AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3442
3443
3444AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3445
3446
3447MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3448
3449# For better backward compatibility.  To be removed once Automake 1.9.x
3450# dies out for good.  For more background, see:
3451# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3452# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3453mkdir_p='$(MKDIR_P)'
3454
3455# We need awk for the "check" target (and possibly the TAP driver).  The
3456# system "awk" is bad on some platforms.
3457# Always define AMTAR for backward compatibility.  Yes, it's still used
3458# in the wild :-(  We should find a proper way to deprecate it ...
3459AMTAR='$${TAR-tar}'
3460
3461
3462# We'll loop over all known methods to create a tar archive until one works.
3463_am_tools='gnutar  pax cpio none'
3464
3465
3466
3467  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3468$as_echo_n "checking how to create a pax tar archive... " >&6; }
3469
3470  # Go ahead even if we have the value already cached.  We do so because we
3471  # need to set the values for the 'am__tar' and 'am__untar' variables.
3472  _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3473
3474  for _am_tool in $_am_tools; do
3475    case $_am_tool in
3476    gnutar)
3477      for _am_tar in tar gnutar gtar; do
3478        { echo "$as_me:$LINENO: $_am_tar --version" >&5
3479   ($_am_tar --version) >&5 2>&5
3480   ac_status=$?
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); } && break
3483      done
3484      am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3485      am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3486      am__untar="$_am_tar -xf -"
3487      ;;
3488    plaintar)
3489      # Must skip GNU tar: if it does not support --format= it doesn't create
3490      # ustar tarball either.
3491      (tar --version) >/dev/null 2>&1 && continue
3492      am__tar='tar chf - "$$tardir"'
3493      am__tar_='tar chf - "$tardir"'
3494      am__untar='tar xf -'
3495      ;;
3496    pax)
3497      am__tar='pax -L -x pax -w "$$tardir"'
3498      am__tar_='pax -L -x pax -w "$tardir"'
3499      am__untar='pax -r'
3500      ;;
3501    cpio)
3502      am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3503      am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3504      am__untar='cpio -i -H pax -d'
3505      ;;
3506    none)
3507      am__tar=false
3508      am__tar_=false
3509      am__untar=false
3510      ;;
3511    esac
3512
3513    # If the value was cached, stop now.  We just wanted to have am__tar
3514    # and am__untar set.
3515    test -n "${am_cv_prog_tar_pax}" && break
3516
3517    # tar/untar a dummy directory, and stop if the command works.
3518    rm -rf conftest.dir
3519    mkdir conftest.dir
3520    echo GrepMe > conftest.dir/file
3521    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3522   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3523   ac_status=$?
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); }
3526    rm -rf conftest.dir
3527    if test -s conftest.tar; then
3528      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3529   ($am__untar <conftest.tar) >&5 2>&5
3530   ac_status=$?
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); }
3533      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3534   (cat conftest.dir/file) >&5 2>&5
3535   ac_status=$?
3536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537   (exit $ac_status); }
3538      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3539    fi
3540  done
3541  rm -rf conftest.dir
3542
3543  if ${am_cv_prog_tar_pax+:} false; then :
3544  $as_echo_n "(cached) " >&6
3545else
3546  am_cv_prog_tar_pax=$_am_tool
3547fi
3548
3549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3550$as_echo "$am_cv_prog_tar_pax" >&6; }
3551
3552
3553
3554
3555
3556
3557# POSIX will say in a future version that running "rm -f" with no argument
3558# is OK; and we want to be able to make that assumption in our Makefile
3559# recipes.  So use an aggressive probe to check that the usage we want is
3560# actually supported "in the wild" to an acceptable degree.
3561# See automake bug#10828.
3562# To make any issue more visible, cause the running configure to be aborted
3563# by default if the 'rm' program in use doesn't match our expectations; the
3564# user can still override this though.
3565if rm -f && rm -fr && rm -rf; then : OK; else
3566  cat >&2 <<'END'
3567Oops!
3568
3569Your 'rm' program seems unable to run without file operands specified
3570on the command line, even when the '-f' option is present.  This is contrary
3571to the behaviour of most rm programs out there, and not conforming with
3572the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3573
3574Please tell bug-automake@gnu.org about your system, including the value
3575of your $PATH and any error possibly output before this message.  This
3576can help us improve future automake versions.
3577
3578END
3579  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3580    echo 'Configuration will proceed anyway, since you have set the' >&2
3581    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3582    echo >&2
3583  else
3584    cat >&2 <<'END'
3585Aborting the configuration process, to ensure you take notice of the issue.
3586
3587You can download and install GNU coreutils to get an 'rm' implementation
3588that behaves properly: <http://www.gnu.org/software/coreutils/>.
3589
3590If you want to complete the configuration process using your problematic
3591'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3592to "yes", and re-run configure.
3593
3594END
3595    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3596  fi
3597fi
3598
3599
3600PACKAGE_URL=http://avahi.org/
3601
3602
3603LIBAVAHI_COMMON_VERSION_INFO=8:4:5
3604
3605LIBAVAHI_CORE_VERSION_INFO=8:0:1
3606
3607LIBAVAHI_CLIENT_VERSION_INFO=5:9:2
3608
3609LIBAVAHI_GLIB_VERSION_INFO=1:2:0
3610
3611LIBAVAHI_LIBEVENT_VERSION_INFO=1:0:0
3612
3613LIBAVAHI_GOBJECT_VERSION_INFO=0:5:0
3614
3615LIBAVAHI_QT3_VERSION_INFO=1:2:0
3616
3617LIBAVAHI_QT4_VERSION_INFO=1:2:0
3618
3619LIBAVAHI_QT5_VERSION_INFO=1:2:0
3620
3621LIBAVAHI_UI_VERSION_INFO=1:4:1
3622
3623
3624# Do not touch these, since they we took this version-info from upstream HOWL/Bonjour
3625LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO=1:0:0
3626
3627LIBAVAHI_COMPAT_HOWL_VERSION_INFO=0:0:0
3628
3629HOWL_COMPAT_VERSION=0.9.8
3630
3631
3632# Make sure we can run config.sub.
3633$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3634  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3635
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3637$as_echo_n "checking build system type... " >&6; }
3638if ${ac_cv_build+:} false; then :
3639  $as_echo_n "(cached) " >&6
3640else
3641  ac_build_alias=$build_alias
3642test "x$ac_build_alias" = x &&
3643  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3644test "x$ac_build_alias" = x &&
3645  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3646ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3647  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3648
3649fi
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3651$as_echo "$ac_cv_build" >&6; }
3652case $ac_cv_build in
3653*-*-*) ;;
3654*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3655esac
3656build=$ac_cv_build
3657ac_save_IFS=$IFS; IFS='-'
3658set x $ac_cv_build
3659shift
3660build_cpu=$1
3661build_vendor=$2
3662shift; shift
3663# Remember, the first character of IFS is used to create $*,
3664# except with old shells:
3665build_os=$*
3666IFS=$ac_save_IFS
3667case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3668
3669
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3671$as_echo_n "checking host system type... " >&6; }
3672if ${ac_cv_host+:} false; then :
3673  $as_echo_n "(cached) " >&6
3674else
3675  if test "x$host_alias" = x; then
3676  ac_cv_host=$ac_cv_build
3677else
3678  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3679    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3680fi
3681
3682fi
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3684$as_echo "$ac_cv_host" >&6; }
3685case $ac_cv_host in
3686*-*-*) ;;
3687*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3688esac
3689host=$ac_cv_host
3690ac_save_IFS=$IFS; IFS='-'
3691set x $ac_cv_host
3692shift
3693host_cpu=$1
3694host_vendor=$2
3695shift; shift
3696# Remember, the first character of IFS is used to create $*,
3697# except with old shells:
3698host_os=$*
3699IFS=$ac_save_IFS
3700case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3701
3702
3703
3704# Check whether --enable-silent-rules was given.
3705if test "${enable_silent_rules+set}" = set; then :
3706  enableval=$enable_silent_rules;
3707fi
3708
3709case $enable_silent_rules in # (((
3710  yes) AM_DEFAULT_VERBOSITY=0;;
3711   no) AM_DEFAULT_VERBOSITY=1;;
3712    *) AM_DEFAULT_VERBOSITY=0;;
3713esac
3714am_make=${MAKE-make}
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3716$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3717if ${am_cv_make_support_nested_variables+:} false; then :
3718  $as_echo_n "(cached) " >&6
3719else
3720  if $as_echo 'TRUE=$(BAR$(V))
3721BAR0=false
3722BAR1=true
3723V=1
3724am__doit:
3725	@$(TRUE)
3726.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3727  am_cv_make_support_nested_variables=yes
3728else
3729  am_cv_make_support_nested_variables=no
3730fi
3731fi
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3733$as_echo "$am_cv_make_support_nested_variables" >&6; }
3734if test $am_cv_make_support_nested_variables = yes; then
3735    AM_V='$(V)'
3736  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3737else
3738  AM_V=$AM_DEFAULT_VERBOSITY
3739  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3740fi
3741AM_BACKSLASH='\'
3742
3743
3744# Extract the first word of "stow", so it can be a program name with args.
3745set dummy stow; ac_word=$2
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747$as_echo_n "checking for $ac_word... " >&6; }
3748if ${ac_cv_prog_STOW+:} false; then :
3749  $as_echo_n "(cached) " >&6
3750else
3751  if test -n "$STOW"; then
3752  ac_cv_prog_STOW="$STOW" # Let the user override the test.
3753else
3754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755for as_dir in $PATH
3756do
3757  IFS=$as_save_IFS
3758  test -z "$as_dir" && as_dir=.
3759    for ac_exec_ext in '' $ac_executable_extensions; do
3760  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3761    ac_cv_prog_STOW="yes"
3762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3763    break 2
3764  fi
3765done
3766  done
3767IFS=$as_save_IFS
3768
3769  test -z "$ac_cv_prog_STOW" && ac_cv_prog_STOW="no"
3770fi
3771fi
3772STOW=$ac_cv_prog_STOW
3773if test -n "$STOW"; then
3774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STOW" >&5
3775$as_echo "$STOW" >&6; }
3776else
3777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778$as_echo "no" >&6; }
3779fi
3780
3781
3782
3783if test "x$STOW" = "xyes" && test -d /usr/local/stow; then :
3784
3785        { $as_echo "$as_me:${as_lineno-$LINENO}: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&5
3786$as_echo "$as_me: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&6;}
3787        ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
3788
3789fi
3790
3791# Checks for programs.
3792ac_ext=c
3793ac_cpp='$CPP $CPPFLAGS'
3794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797if test -n "$ac_tool_prefix"; then
3798  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3799set dummy ${ac_tool_prefix}gcc; ac_word=$2
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801$as_echo_n "checking for $ac_word... " >&6; }
3802if ${ac_cv_prog_CC+:} false; then :
3803  $as_echo_n "(cached) " >&6
3804else
3805  if test -n "$CC"; then
3806  ac_cv_prog_CC="$CC" # Let the user override the test.
3807else
3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809for as_dir in $PATH
3810do
3811  IFS=$as_save_IFS
3812  test -z "$as_dir" && as_dir=.
3813    for ac_exec_ext in '' $ac_executable_extensions; do
3814  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3815    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817    break 2
3818  fi
3819done
3820  done
3821IFS=$as_save_IFS
3822
3823fi
3824fi
3825CC=$ac_cv_prog_CC
3826if test -n "$CC"; then
3827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3828$as_echo "$CC" >&6; }
3829else
3830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831$as_echo "no" >&6; }
3832fi
3833
3834
3835fi
3836if test -z "$ac_cv_prog_CC"; then
3837  ac_ct_CC=$CC
3838  # Extract the first word of "gcc", so it can be a program name with args.
3839set dummy gcc; ac_word=$2
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841$as_echo_n "checking for $ac_word... " >&6; }
3842if ${ac_cv_prog_ac_ct_CC+:} false; then :
3843  $as_echo_n "(cached) " >&6
3844else
3845  if test -n "$ac_ct_CC"; then
3846  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3847else
3848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH
3850do
3851  IFS=$as_save_IFS
3852  test -z "$as_dir" && as_dir=.
3853    for ac_exec_ext in '' $ac_executable_extensions; do
3854  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855    ac_cv_prog_ac_ct_CC="gcc"
3856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3857    break 2
3858  fi
3859done
3860  done
3861IFS=$as_save_IFS
3862
3863fi
3864fi
3865ac_ct_CC=$ac_cv_prog_ac_ct_CC
3866if test -n "$ac_ct_CC"; then
3867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3868$as_echo "$ac_ct_CC" >&6; }
3869else
3870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871$as_echo "no" >&6; }
3872fi
3873
3874  if test "x$ac_ct_CC" = x; then
3875    CC=""
3876  else
3877    case $cross_compiling:$ac_tool_warned in
3878yes:)
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3881ac_tool_warned=yes ;;
3882esac
3883    CC=$ac_ct_CC
3884  fi
3885else
3886  CC="$ac_cv_prog_CC"
3887fi
3888
3889if test -z "$CC"; then
3890          if test -n "$ac_tool_prefix"; then
3891    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3892set dummy ${ac_tool_prefix}cc; ac_word=$2
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894$as_echo_n "checking for $ac_word... " >&6; }
3895if ${ac_cv_prog_CC+:} false; then :
3896  $as_echo_n "(cached) " >&6
3897else
3898  if test -n "$CC"; then
3899  ac_cv_prog_CC="$CC" # Let the user override the test.
3900else
3901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH
3903do
3904  IFS=$as_save_IFS
3905  test -z "$as_dir" && as_dir=.
3906    for ac_exec_ext in '' $ac_executable_extensions; do
3907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908    ac_cv_prog_CC="${ac_tool_prefix}cc"
3909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910    break 2
3911  fi
3912done
3913  done
3914IFS=$as_save_IFS
3915
3916fi
3917fi
3918CC=$ac_cv_prog_CC
3919if test -n "$CC"; then
3920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3921$as_echo "$CC" >&6; }
3922else
3923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924$as_echo "no" >&6; }
3925fi
3926
3927
3928  fi
3929fi
3930if test -z "$CC"; then
3931  # Extract the first word of "cc", so it can be a program name with args.
3932set dummy cc; ac_word=$2
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934$as_echo_n "checking for $ac_word... " >&6; }
3935if ${ac_cv_prog_CC+:} false; then :
3936  $as_echo_n "(cached) " >&6
3937else
3938  if test -n "$CC"; then
3939  ac_cv_prog_CC="$CC" # Let the user override the test.
3940else
3941  ac_prog_rejected=no
3942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943for as_dir in $PATH
3944do
3945  IFS=$as_save_IFS
3946  test -z "$as_dir" && as_dir=.
3947    for ac_exec_ext in '' $ac_executable_extensions; do
3948  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3949    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3950       ac_prog_rejected=yes
3951       continue
3952     fi
3953    ac_cv_prog_CC="cc"
3954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955    break 2
3956  fi
3957done
3958  done
3959IFS=$as_save_IFS
3960
3961if test $ac_prog_rejected = yes; then
3962  # We found a bogon in the path, so make sure we never use it.
3963  set dummy $ac_cv_prog_CC
3964  shift
3965  if test $# != 0; then
3966    # We chose a different compiler from the bogus one.
3967    # However, it has the same basename, so the bogon will be chosen
3968    # first if we set CC to just the basename; use the full file name.
3969    shift
3970    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3971  fi
3972fi
3973fi
3974fi
3975CC=$ac_cv_prog_CC
3976if test -n "$CC"; then
3977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3978$as_echo "$CC" >&6; }
3979else
3980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3981$as_echo "no" >&6; }
3982fi
3983
3984
3985fi
3986if test -z "$CC"; then
3987  if test -n "$ac_tool_prefix"; then
3988  for ac_prog in cl.exe
3989  do
3990    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3991set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993$as_echo_n "checking for $ac_word... " >&6; }
3994if ${ac_cv_prog_CC+:} false; then :
3995  $as_echo_n "(cached) " >&6
3996else
3997  if test -n "$CC"; then
3998  ac_cv_prog_CC="$CC" # Let the user override the test.
3999else
4000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001for as_dir in $PATH
4002do
4003  IFS=$as_save_IFS
4004  test -z "$as_dir" && as_dir=.
4005    for ac_exec_ext in '' $ac_executable_extensions; do
4006  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4007    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009    break 2
4010  fi
4011done
4012  done
4013IFS=$as_save_IFS
4014
4015fi
4016fi
4017CC=$ac_cv_prog_CC
4018if test -n "$CC"; then
4019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4020$as_echo "$CC" >&6; }
4021else
4022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023$as_echo "no" >&6; }
4024fi
4025
4026
4027    test -n "$CC" && break
4028  done
4029fi
4030if test -z "$CC"; then
4031  ac_ct_CC=$CC
4032  for ac_prog in cl.exe
4033do
4034  # Extract the first word of "$ac_prog", so it can be a program name with args.
4035set dummy $ac_prog; ac_word=$2
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037$as_echo_n "checking for $ac_word... " >&6; }
4038if ${ac_cv_prog_ac_ct_CC+:} false; then :
4039  $as_echo_n "(cached) " >&6
4040else
4041  if test -n "$ac_ct_CC"; then
4042  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4043else
4044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045for as_dir in $PATH
4046do
4047  IFS=$as_save_IFS
4048  test -z "$as_dir" && as_dir=.
4049    for ac_exec_ext in '' $ac_executable_extensions; do
4050  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4051    ac_cv_prog_ac_ct_CC="$ac_prog"
4052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4053    break 2
4054  fi
4055done
4056  done
4057IFS=$as_save_IFS
4058
4059fi
4060fi
4061ac_ct_CC=$ac_cv_prog_ac_ct_CC
4062if test -n "$ac_ct_CC"; then
4063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4064$as_echo "$ac_ct_CC" >&6; }
4065else
4066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067$as_echo "no" >&6; }
4068fi
4069
4070
4071  test -n "$ac_ct_CC" && break
4072done
4073
4074  if test "x$ac_ct_CC" = x; then
4075    CC=""
4076  else
4077    case $cross_compiling:$ac_tool_warned in
4078yes:)
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4081ac_tool_warned=yes ;;
4082esac
4083    CC=$ac_ct_CC
4084  fi
4085fi
4086
4087fi
4088
4089
4090test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4092as_fn_error $? "no acceptable C compiler found in \$PATH
4093See \`config.log' for more details" "$LINENO" 5; }
4094
4095# Provide some information about the compiler.
4096$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4097set X $ac_compile
4098ac_compiler=$2
4099for ac_option in --version -v -V -qversion; do
4100  { { ac_try="$ac_compiler $ac_option >&5"
4101case "(($ac_try" in
4102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103  *) ac_try_echo=$ac_try;;
4104esac
4105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106$as_echo "$ac_try_echo"; } >&5
4107  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4108  ac_status=$?
4109  if test -s conftest.err; then
4110    sed '10a\
4111... rest of stderr output deleted ...
4112         10q' conftest.err >conftest.er1
4113    cat conftest.er1 >&5
4114  fi
4115  rm -f conftest.er1 conftest.err
4116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4117  test $ac_status = 0; }
4118done
4119
4120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121/* end confdefs.h.  */
4122
4123int
4124main ()
4125{
4126
4127  ;
4128  return 0;
4129}
4130_ACEOF
4131ac_clean_files_save=$ac_clean_files
4132ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4133# Try to create an executable without -o first, disregard a.out.
4134# It will help us diagnose broken compilers, and finding out an intuition
4135# of exeext.
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4137$as_echo_n "checking whether the C compiler works... " >&6; }
4138ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4139
4140# The possible output files:
4141ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4142
4143ac_rmfiles=
4144for ac_file in $ac_files
4145do
4146  case $ac_file in
4147    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4148    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4149  esac
4150done
4151rm -f $ac_rmfiles
4152
4153if { { ac_try="$ac_link_default"
4154case "(($ac_try" in
4155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156  *) ac_try_echo=$ac_try;;
4157esac
4158eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4159$as_echo "$ac_try_echo"; } >&5
4160  (eval "$ac_link_default") 2>&5
4161  ac_status=$?
4162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4163  test $ac_status = 0; }; then :
4164  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4165# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4166# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4167# so that the user can short-circuit this test for compilers unknown to
4168# Autoconf.
4169for ac_file in $ac_files ''
4170do
4171  test -f "$ac_file" || continue
4172  case $ac_file in
4173    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4174	;;
4175    [ab].out )
4176	# We found the default executable, but exeext='' is most
4177	# certainly right.
4178	break;;
4179    *.* )
4180	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4181	then :; else
4182	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4183	fi
4184	# We set ac_cv_exeext here because the later test for it is not
4185	# safe: cross compilers may not add the suffix if given an `-o'
4186	# argument, so we may need to know it at that point already.
4187	# Even if this section looks crufty: it has the advantage of
4188	# actually working.
4189	break;;
4190    * )
4191	break;;
4192  esac
4193done
4194test "$ac_cv_exeext" = no && ac_cv_exeext=
4195
4196else
4197  ac_file=''
4198fi
4199if test -z "$ac_file"; then :
4200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201$as_echo "no" >&6; }
4202$as_echo "$as_me: failed program was:" >&5
4203sed 's/^/| /' conftest.$ac_ext >&5
4204
4205{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4207as_fn_error 77 "C compiler cannot create executables
4208See \`config.log' for more details" "$LINENO" 5; }
4209else
4210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4211$as_echo "yes" >&6; }
4212fi
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4214$as_echo_n "checking for C compiler default output file name... " >&6; }
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4216$as_echo "$ac_file" >&6; }
4217ac_exeext=$ac_cv_exeext
4218
4219rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4220ac_clean_files=$ac_clean_files_save
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4222$as_echo_n "checking for suffix of executables... " >&6; }
4223if { { ac_try="$ac_link"
4224case "(($ac_try" in
4225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226  *) ac_try_echo=$ac_try;;
4227esac
4228eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4229$as_echo "$ac_try_echo"; } >&5
4230  (eval "$ac_link") 2>&5
4231  ac_status=$?
4232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4233  test $ac_status = 0; }; then :
4234  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4235# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4236# work properly (i.e., refer to `conftest.exe'), while it won't with
4237# `rm'.
4238for ac_file in conftest.exe conftest conftest.*; do
4239  test -f "$ac_file" || continue
4240  case $ac_file in
4241    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4242    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4243	  break;;
4244    * ) break;;
4245  esac
4246done
4247else
4248  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4250as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4251See \`config.log' for more details" "$LINENO" 5; }
4252fi
4253rm -f conftest conftest$ac_cv_exeext
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4255$as_echo "$ac_cv_exeext" >&6; }
4256
4257rm -f conftest.$ac_ext
4258EXEEXT=$ac_cv_exeext
4259ac_exeext=$EXEEXT
4260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261/* end confdefs.h.  */
4262#include <stdio.h>
4263int
4264main ()
4265{
4266FILE *f = fopen ("conftest.out", "w");
4267 return ferror (f) || fclose (f) != 0;
4268
4269  ;
4270  return 0;
4271}
4272_ACEOF
4273ac_clean_files="$ac_clean_files conftest.out"
4274# Check that the compiler produces executables we can run.  If not, either
4275# the compiler is broken, or we cross compile.
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4277$as_echo_n "checking whether we are cross compiling... " >&6; }
4278if test "$cross_compiling" != yes; then
4279  { { ac_try="$ac_link"
4280case "(($ac_try" in
4281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282  *) ac_try_echo=$ac_try;;
4283esac
4284eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285$as_echo "$ac_try_echo"; } >&5
4286  (eval "$ac_link") 2>&5
4287  ac_status=$?
4288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4289  test $ac_status = 0; }
4290  if { ac_try='./conftest$ac_cv_exeext'
4291  { { case "(($ac_try" in
4292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293  *) ac_try_echo=$ac_try;;
4294esac
4295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296$as_echo "$ac_try_echo"; } >&5
4297  (eval "$ac_try") 2>&5
4298  ac_status=$?
4299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300  test $ac_status = 0; }; }; then
4301    cross_compiling=no
4302  else
4303    if test "$cross_compiling" = maybe; then
4304	cross_compiling=yes
4305    else
4306	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4308as_fn_error $? "cannot run C compiled programs.
4309If you meant to cross compile, use \`--host'.
4310See \`config.log' for more details" "$LINENO" 5; }
4311    fi
4312  fi
4313fi
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4315$as_echo "$cross_compiling" >&6; }
4316
4317rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4318ac_clean_files=$ac_clean_files_save
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4320$as_echo_n "checking for suffix of object files... " >&6; }
4321if ${ac_cv_objext+:} false; then :
4322  $as_echo_n "(cached) " >&6
4323else
4324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325/* end confdefs.h.  */
4326
4327int
4328main ()
4329{
4330
4331  ;
4332  return 0;
4333}
4334_ACEOF
4335rm -f conftest.o conftest.obj
4336if { { ac_try="$ac_compile"
4337case "(($ac_try" in
4338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339  *) ac_try_echo=$ac_try;;
4340esac
4341eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4342$as_echo "$ac_try_echo"; } >&5
4343  (eval "$ac_compile") 2>&5
4344  ac_status=$?
4345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4346  test $ac_status = 0; }; then :
4347  for ac_file in conftest.o conftest.obj conftest.*; do
4348  test -f "$ac_file" || continue;
4349  case $ac_file in
4350    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4351    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4352       break;;
4353  esac
4354done
4355else
4356  $as_echo "$as_me: failed program was:" >&5
4357sed 's/^/| /' conftest.$ac_ext >&5
4358
4359{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4361as_fn_error $? "cannot compute suffix of object files: cannot compile
4362See \`config.log' for more details" "$LINENO" 5; }
4363fi
4364rm -f conftest.$ac_cv_objext conftest.$ac_ext
4365fi
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4367$as_echo "$ac_cv_objext" >&6; }
4368OBJEXT=$ac_cv_objext
4369ac_objext=$OBJEXT
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4371$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4372if ${ac_cv_c_compiler_gnu+:} false; then :
4373  $as_echo_n "(cached) " >&6
4374else
4375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376/* end confdefs.h.  */
4377
4378int
4379main ()
4380{
4381#ifndef __GNUC__
4382       choke me
4383#endif
4384
4385  ;
4386  return 0;
4387}
4388_ACEOF
4389if ac_fn_c_try_compile "$LINENO"; then :
4390  ac_compiler_gnu=yes
4391else
4392  ac_compiler_gnu=no
4393fi
4394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395ac_cv_c_compiler_gnu=$ac_compiler_gnu
4396
4397fi
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4399$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4400if test $ac_compiler_gnu = yes; then
4401  GCC=yes
4402else
4403  GCC=
4404fi
4405ac_test_CFLAGS=${CFLAGS+set}
4406ac_save_CFLAGS=$CFLAGS
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4408$as_echo_n "checking whether $CC accepts -g... " >&6; }
4409if ${ac_cv_prog_cc_g+:} false; then :
4410  $as_echo_n "(cached) " >&6
4411else
4412  ac_save_c_werror_flag=$ac_c_werror_flag
4413   ac_c_werror_flag=yes
4414   ac_cv_prog_cc_g=no
4415   CFLAGS="-g"
4416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417/* end confdefs.h.  */
4418
4419int
4420main ()
4421{
4422
4423  ;
4424  return 0;
4425}
4426_ACEOF
4427if ac_fn_c_try_compile "$LINENO"; then :
4428  ac_cv_prog_cc_g=yes
4429else
4430  CFLAGS=""
4431      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432/* end confdefs.h.  */
4433
4434int
4435main ()
4436{
4437
4438  ;
4439  return 0;
4440}
4441_ACEOF
4442if ac_fn_c_try_compile "$LINENO"; then :
4443
4444else
4445  ac_c_werror_flag=$ac_save_c_werror_flag
4446	 CFLAGS="-g"
4447	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448/* end confdefs.h.  */
4449
4450int
4451main ()
4452{
4453
4454  ;
4455  return 0;
4456}
4457_ACEOF
4458if ac_fn_c_try_compile "$LINENO"; then :
4459  ac_cv_prog_cc_g=yes
4460fi
4461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4462fi
4463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4464fi
4465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466   ac_c_werror_flag=$ac_save_c_werror_flag
4467fi
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4469$as_echo "$ac_cv_prog_cc_g" >&6; }
4470if test "$ac_test_CFLAGS" = set; then
4471  CFLAGS=$ac_save_CFLAGS
4472elif test $ac_cv_prog_cc_g = yes; then
4473  if test "$GCC" = yes; then
4474    CFLAGS="-g -O2"
4475  else
4476    CFLAGS="-g"
4477  fi
4478else
4479  if test "$GCC" = yes; then
4480    CFLAGS="-O2"
4481  else
4482    CFLAGS=
4483  fi
4484fi
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4486$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4487if ${ac_cv_prog_cc_c89+:} false; then :
4488  $as_echo_n "(cached) " >&6
4489else
4490  ac_cv_prog_cc_c89=no
4491ac_save_CC=$CC
4492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493/* end confdefs.h.  */
4494#include <stdarg.h>
4495#include <stdio.h>
4496struct stat;
4497/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4498struct buf { int x; };
4499FILE * (*rcsopen) (struct buf *, struct stat *, int);
4500static char *e (p, i)
4501     char **p;
4502     int i;
4503{
4504  return p[i];
4505}
4506static char *f (char * (*g) (char **, int), char **p, ...)
4507{
4508  char *s;
4509  va_list v;
4510  va_start (v,p);
4511  s = g (p, va_arg (v,int));
4512  va_end (v);
4513  return s;
4514}
4515
4516/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4517   function prototypes and stuff, but not '\xHH' hex character constants.
4518   These don't provoke an error unfortunately, instead are silently treated
4519   as 'x'.  The following induces an error, until -std is added to get
4520   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4521   array size at least.  It's necessary to write '\x00'==0 to get something
4522   that's true only with -std.  */
4523int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4524
4525/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4526   inside strings and character constants.  */
4527#define FOO(x) 'x'
4528int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4529
4530int test (int i, double x);
4531struct s1 {int (*f) (int a);};
4532struct s2 {int (*f) (double a);};
4533int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4534int argc;
4535char **argv;
4536int
4537main ()
4538{
4539return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4540  ;
4541  return 0;
4542}
4543_ACEOF
4544for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4545	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4546do
4547  CC="$ac_save_CC $ac_arg"
4548  if ac_fn_c_try_compile "$LINENO"; then :
4549  ac_cv_prog_cc_c89=$ac_arg
4550fi
4551rm -f core conftest.err conftest.$ac_objext
4552  test "x$ac_cv_prog_cc_c89" != "xno" && break
4553done
4554rm -f conftest.$ac_ext
4555CC=$ac_save_CC
4556
4557fi
4558# AC_CACHE_VAL
4559case "x$ac_cv_prog_cc_c89" in
4560  x)
4561    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4562$as_echo "none needed" >&6; } ;;
4563  xno)
4564    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4565$as_echo "unsupported" >&6; } ;;
4566  *)
4567    CC="$CC $ac_cv_prog_cc_c89"
4568    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4569$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4570esac
4571if test "x$ac_cv_prog_cc_c89" != xno; then :
4572
4573fi
4574
4575ac_ext=c
4576ac_cpp='$CPP $CPPFLAGS'
4577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579ac_compiler_gnu=$ac_cv_c_compiler_gnu
4580
4581ac_ext=c
4582ac_cpp='$CPP $CPPFLAGS'
4583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4585ac_compiler_gnu=$ac_cv_c_compiler_gnu
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4587$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4588if ${am_cv_prog_cc_c_o+:} false; then :
4589  $as_echo_n "(cached) " >&6
4590else
4591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592/* end confdefs.h.  */
4593
4594int
4595main ()
4596{
4597
4598  ;
4599  return 0;
4600}
4601_ACEOF
4602  # Make sure it works both with $CC and with simple cc.
4603  # Following AC_PROG_CC_C_O, we do the test twice because some
4604  # compilers refuse to overwrite an existing .o file with -o,
4605  # though they will create one.
4606  am_cv_prog_cc_c_o=yes
4607  for am_i in 1 2; do
4608    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4609   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4610   ac_status=$?
4611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612   (exit $ac_status); } \
4613         && test -f conftest2.$ac_objext; then
4614      : OK
4615    else
4616      am_cv_prog_cc_c_o=no
4617      break
4618    fi
4619  done
4620  rm -f core conftest*
4621  unset am_i
4622fi
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4624$as_echo "$am_cv_prog_cc_c_o" >&6; }
4625if test "$am_cv_prog_cc_c_o" != yes; then
4626   # Losing compiler, so override with the script.
4627   # FIXME: It is wrong to rewrite CC.
4628   # But if we don't then we get into trouble of one sort or another.
4629   # A longer-term fix would be to have automake use am__CC in this case,
4630   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4631   CC="$am_aux_dir/compile $CC"
4632fi
4633ac_ext=c
4634ac_cpp='$CPP $CPPFLAGS'
4635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637ac_compiler_gnu=$ac_cv_c_compiler_gnu
4638
4639DEPDIR="${am__leading_dot}deps"
4640
4641ac_config_commands="$ac_config_commands depfiles"
4642
4643
4644am_make=${MAKE-make}
4645cat > confinc << 'END'
4646am__doit:
4647	@echo this is the am__doit target
4648.PHONY: am__doit
4649END
4650# If we don't find an include directive, just comment out the code.
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4652$as_echo_n "checking for style of include used by $am_make... " >&6; }
4653am__include="#"
4654am__quote=
4655_am_result=none
4656# First try GNU make style include.
4657echo "include confinc" > confmf
4658# Ignore all kinds of additional output from 'make'.
4659case `$am_make -s -f confmf 2> /dev/null` in #(
4660*the\ am__doit\ target*)
4661  am__include=include
4662  am__quote=
4663  _am_result=GNU
4664  ;;
4665esac
4666# Now try BSD make style include.
4667if test "$am__include" = "#"; then
4668   echo '.include "confinc"' > confmf
4669   case `$am_make -s -f confmf 2> /dev/null` in #(
4670   *the\ am__doit\ target*)
4671     am__include=.include
4672     am__quote="\""
4673     _am_result=BSD
4674     ;;
4675   esac
4676fi
4677
4678
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4680$as_echo "$_am_result" >&6; }
4681rm -f confinc confmf
4682
4683# Check whether --enable-dependency-tracking was given.
4684if test "${enable_dependency_tracking+set}" = set; then :
4685  enableval=$enable_dependency_tracking;
4686fi
4687
4688if test "x$enable_dependency_tracking" != xno; then
4689  am_depcomp="$ac_aux_dir/depcomp"
4690  AMDEPBACKSLASH='\'
4691  am__nodep='_no'
4692fi
4693 if test "x$enable_dependency_tracking" != xno; then
4694  AMDEP_TRUE=
4695  AMDEP_FALSE='#'
4696else
4697  AMDEP_TRUE='#'
4698  AMDEP_FALSE=
4699fi
4700
4701
4702
4703depcc="$CC"   am_compiler_list=
4704
4705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4706$as_echo_n "checking dependency style of $depcc... " >&6; }
4707if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4708  $as_echo_n "(cached) " >&6
4709else
4710  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4711  # We make a subdir and do the tests there.  Otherwise we can end up
4712  # making bogus files that we don't know about and never remove.  For
4713  # instance it was reported that on HP-UX the gcc test will end up
4714  # making a dummy file named 'D' -- because '-MD' means "put the output
4715  # in D".
4716  rm -rf conftest.dir
4717  mkdir conftest.dir
4718  # Copy depcomp to subdir because otherwise we won't find it if we're
4719  # using a relative directory.
4720  cp "$am_depcomp" conftest.dir
4721  cd conftest.dir
4722  # We will build objects and dependencies in a subdirectory because
4723  # it helps to detect inapplicable dependency modes.  For instance
4724  # both Tru64's cc and ICC support -MD to output dependencies as a
4725  # side effect of compilation, but ICC will put the dependencies in
4726  # the current directory while Tru64 will put them in the object
4727  # directory.
4728  mkdir sub
4729
4730  am_cv_CC_dependencies_compiler_type=none
4731  if test "$am_compiler_list" = ""; then
4732     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4733  fi
4734  am__universal=false
4735  case " $depcc " in #(
4736     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4737     esac
4738
4739  for depmode in $am_compiler_list; do
4740    # Setup a source with many dependencies, because some compilers
4741    # like to wrap large dependency lists on column 80 (with \), and
4742    # we should not choose a depcomp mode which is confused by this.
4743    #
4744    # We need to recreate these files for each test, as the compiler may
4745    # overwrite some of them when testing with obscure command lines.
4746    # This happens at least with the AIX C compiler.
4747    : > sub/conftest.c
4748    for i in 1 2 3 4 5 6; do
4749      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4750      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4751      # Solaris 10 /bin/sh.
4752      echo '/* dummy */' > sub/conftst$i.h
4753    done
4754    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4755
4756    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4757    # mode.  It turns out that the SunPro C++ compiler does not properly
4758    # handle '-M -o', and we need to detect this.  Also, some Intel
4759    # versions had trouble with output in subdirs.
4760    am__obj=sub/conftest.${OBJEXT-o}
4761    am__minus_obj="-o $am__obj"
4762    case $depmode in
4763    gcc)
4764      # This depmode causes a compiler race in universal mode.
4765      test "$am__universal" = false || continue
4766      ;;
4767    nosideeffect)
4768      # After this tag, mechanisms are not by side-effect, so they'll
4769      # only be used when explicitly requested.
4770      if test "x$enable_dependency_tracking" = xyes; then
4771	continue
4772      else
4773	break
4774      fi
4775      ;;
4776    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4777      # This compiler won't grok '-c -o', but also, the minuso test has
4778      # not run yet.  These depmodes are late enough in the game, and
4779      # so weak that their functioning should not be impacted.
4780      am__obj=conftest.${OBJEXT-o}
4781      am__minus_obj=
4782      ;;
4783    none) break ;;
4784    esac
4785    if depmode=$depmode \
4786       source=sub/conftest.c object=$am__obj \
4787       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4788       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4789         >/dev/null 2>conftest.err &&
4790       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4791       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4792       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4793       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4794      # icc doesn't choke on unknown options, it will just issue warnings
4795      # or remarks (even with -Werror).  So we grep stderr for any message
4796      # that says an option was ignored or not supported.
4797      # When given -MP, icc 7.0 and 7.1 complain thusly:
4798      #   icc: Command line warning: ignoring option '-M'; no argument required
4799      # The diagnosis changed in icc 8.0:
4800      #   icc: Command line remark: option '-MP' not supported
4801      if (grep 'ignoring option' conftest.err ||
4802          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4803        am_cv_CC_dependencies_compiler_type=$depmode
4804        break
4805      fi
4806    fi
4807  done
4808
4809  cd ..
4810  rm -rf conftest.dir
4811else
4812  am_cv_CC_dependencies_compiler_type=none
4813fi
4814
4815fi
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4817$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4818CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4819
4820 if
4821  test "x$enable_dependency_tracking" != xno \
4822  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4823  am__fastdepCC_TRUE=
4824  am__fastdepCC_FALSE='#'
4825else
4826  am__fastdepCC_TRUE='#'
4827  am__fastdepCC_FALSE=
4828fi
4829
4830
4831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4832$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4833if ${ac_cv_prog_cc_c99+:} false; then :
4834  $as_echo_n "(cached) " >&6
4835else
4836  ac_cv_prog_cc_c99=no
4837ac_save_CC=$CC
4838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839/* end confdefs.h.  */
4840#include <stdarg.h>
4841#include <stdbool.h>
4842#include <stdlib.h>
4843#include <wchar.h>
4844#include <stdio.h>
4845
4846// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4847#define debug(...) fprintf (stderr, __VA_ARGS__)
4848#define showlist(...) puts (#__VA_ARGS__)
4849#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4850static void
4851test_varargs_macros (void)
4852{
4853  int x = 1234;
4854  int y = 5678;
4855  debug ("Flag");
4856  debug ("X = %d\n", x);
4857  showlist (The first, second, and third items.);
4858  report (x>y, "x is %d but y is %d", x, y);
4859}
4860
4861// Check long long types.
4862#define BIG64 18446744073709551615ull
4863#define BIG32 4294967295ul
4864#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4865#if !BIG_OK
4866  your preprocessor is broken;
4867#endif
4868#if BIG_OK
4869#else
4870  your preprocessor is broken;
4871#endif
4872static long long int bignum = -9223372036854775807LL;
4873static unsigned long long int ubignum = BIG64;
4874
4875struct incomplete_array
4876{
4877  int datasize;
4878  double data[];
4879};
4880
4881struct named_init {
4882  int number;
4883  const wchar_t *name;
4884  double average;
4885};
4886
4887typedef const char *ccp;
4888
4889static inline int
4890test_restrict (ccp restrict text)
4891{
4892  // See if C++-style comments work.
4893  // Iterate through items via the restricted pointer.
4894  // Also check for declarations in for loops.
4895  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4896    continue;
4897  return 0;
4898}
4899
4900// Check varargs and va_copy.
4901static void
4902test_varargs (const char *format, ...)
4903{
4904  va_list args;
4905  va_start (args, format);
4906  va_list args_copy;
4907  va_copy (args_copy, args);
4908
4909  const char *str;
4910  int number;
4911  float fnumber;
4912
4913  while (*format)
4914    {
4915      switch (*format++)
4916	{
4917	case 's': // string
4918	  str = va_arg (args_copy, const char *);
4919	  break;
4920	case 'd': // int
4921	  number = va_arg (args_copy, int);
4922	  break;
4923	case 'f': // float
4924	  fnumber = va_arg (args_copy, double);
4925	  break;
4926	default:
4927	  break;
4928	}
4929    }
4930  va_end (args_copy);
4931  va_end (args);
4932}
4933
4934int
4935main ()
4936{
4937
4938  // Check bool.
4939  _Bool success = false;
4940
4941  // Check restrict.
4942  if (test_restrict ("String literal") == 0)
4943    success = true;
4944  char *restrict newvar = "Another string";
4945
4946  // Check varargs.
4947  test_varargs ("s, d' f .", "string", 65, 34.234);
4948  test_varargs_macros ();
4949
4950  // Check flexible array members.
4951  struct incomplete_array *ia =
4952    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4953  ia->datasize = 10;
4954  for (int i = 0; i < ia->datasize; ++i)
4955    ia->data[i] = i * 1.234;
4956
4957  // Check named initializers.
4958  struct named_init ni = {
4959    .number = 34,
4960    .name = L"Test wide string",
4961    .average = 543.34343,
4962  };
4963
4964  ni.number = 58;
4965
4966  int dynamic_array[ni.number];
4967  dynamic_array[ni.number - 1] = 543;
4968
4969  // work around unused variable warnings
4970  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4971	  || dynamic_array[ni.number - 1] != 543);
4972
4973  ;
4974  return 0;
4975}
4976_ACEOF
4977for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4978do
4979  CC="$ac_save_CC $ac_arg"
4980  if ac_fn_c_try_compile "$LINENO"; then :
4981  ac_cv_prog_cc_c99=$ac_arg
4982fi
4983rm -f core conftest.err conftest.$ac_objext
4984  test "x$ac_cv_prog_cc_c99" != "xno" && break
4985done
4986rm -f conftest.$ac_ext
4987CC=$ac_save_CC
4988
4989fi
4990# AC_CACHE_VAL
4991case "x$ac_cv_prog_cc_c99" in
4992  x)
4993    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4994$as_echo "none needed" >&6; } ;;
4995  xno)
4996    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4997$as_echo "unsupported" >&6; } ;;
4998  *)
4999    CC="$CC $ac_cv_prog_cc_c99"
5000    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5001$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5002esac
5003if test "x$ac_cv_prog_cc_c99" != xno; then :
5004
5005fi
5006
5007
5008ac_ext=cpp
5009ac_cpp='$CXXCPP $CPPFLAGS'
5010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5013if test -z "$CXX"; then
5014  if test -n "$CCC"; then
5015    CXX=$CCC
5016  else
5017    if test -n "$ac_tool_prefix"; then
5018  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5019  do
5020    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5021set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023$as_echo_n "checking for $ac_word... " >&6; }
5024if ${ac_cv_prog_CXX+:} false; then :
5025  $as_echo_n "(cached) " >&6
5026else
5027  if test -n "$CXX"; then
5028  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5029else
5030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031for as_dir in $PATH
5032do
5033  IFS=$as_save_IFS
5034  test -z "$as_dir" && as_dir=.
5035    for ac_exec_ext in '' $ac_executable_extensions; do
5036  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039    break 2
5040  fi
5041done
5042  done
5043IFS=$as_save_IFS
5044
5045fi
5046fi
5047CXX=$ac_cv_prog_CXX
5048if test -n "$CXX"; then
5049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5050$as_echo "$CXX" >&6; }
5051else
5052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053$as_echo "no" >&6; }
5054fi
5055
5056
5057    test -n "$CXX" && break
5058  done
5059fi
5060if test -z "$CXX"; then
5061  ac_ct_CXX=$CXX
5062  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5063do
5064  # Extract the first word of "$ac_prog", so it can be a program name with args.
5065set dummy $ac_prog; ac_word=$2
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067$as_echo_n "checking for $ac_word... " >&6; }
5068if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5069  $as_echo_n "(cached) " >&6
5070else
5071  if test -n "$ac_ct_CXX"; then
5072  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5073else
5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077  IFS=$as_save_IFS
5078  test -z "$as_dir" && as_dir=.
5079    for ac_exec_ext in '' $ac_executable_extensions; do
5080  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081    ac_cv_prog_ac_ct_CXX="$ac_prog"
5082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083    break 2
5084  fi
5085done
5086  done
5087IFS=$as_save_IFS
5088
5089fi
5090fi
5091ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5092if test -n "$ac_ct_CXX"; then
5093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5094$as_echo "$ac_ct_CXX" >&6; }
5095else
5096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097$as_echo "no" >&6; }
5098fi
5099
5100
5101  test -n "$ac_ct_CXX" && break
5102done
5103
5104  if test "x$ac_ct_CXX" = x; then
5105    CXX="g++"
5106  else
5107    case $cross_compiling:$ac_tool_warned in
5108yes:)
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5111ac_tool_warned=yes ;;
5112esac
5113    CXX=$ac_ct_CXX
5114  fi
5115fi
5116
5117  fi
5118fi
5119# Provide some information about the compiler.
5120$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5121set X $ac_compile
5122ac_compiler=$2
5123for ac_option in --version -v -V -qversion; do
5124  { { ac_try="$ac_compiler $ac_option >&5"
5125case "(($ac_try" in
5126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5127  *) ac_try_echo=$ac_try;;
5128esac
5129eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5130$as_echo "$ac_try_echo"; } >&5
5131  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5132  ac_status=$?
5133  if test -s conftest.err; then
5134    sed '10a\
5135... rest of stderr output deleted ...
5136         10q' conftest.err >conftest.er1
5137    cat conftest.er1 >&5
5138  fi
5139  rm -f conftest.er1 conftest.err
5140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5141  test $ac_status = 0; }
5142done
5143
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5145$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5146if ${ac_cv_cxx_compiler_gnu+:} false; then :
5147  $as_echo_n "(cached) " >&6
5148else
5149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150/* end confdefs.h.  */
5151
5152int
5153main ()
5154{
5155#ifndef __GNUC__
5156       choke me
5157#endif
5158
5159  ;
5160  return 0;
5161}
5162_ACEOF
5163if ac_fn_cxx_try_compile "$LINENO"; then :
5164  ac_compiler_gnu=yes
5165else
5166  ac_compiler_gnu=no
5167fi
5168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5169ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5170
5171fi
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5173$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5174if test $ac_compiler_gnu = yes; then
5175  GXX=yes
5176else
5177  GXX=
5178fi
5179ac_test_CXXFLAGS=${CXXFLAGS+set}
5180ac_save_CXXFLAGS=$CXXFLAGS
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5182$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5183if ${ac_cv_prog_cxx_g+:} false; then :
5184  $as_echo_n "(cached) " >&6
5185else
5186  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5187   ac_cxx_werror_flag=yes
5188   ac_cv_prog_cxx_g=no
5189   CXXFLAGS="-g"
5190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191/* end confdefs.h.  */
5192
5193int
5194main ()
5195{
5196
5197  ;
5198  return 0;
5199}
5200_ACEOF
5201if ac_fn_cxx_try_compile "$LINENO"; then :
5202  ac_cv_prog_cxx_g=yes
5203else
5204  CXXFLAGS=""
5205      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206/* end confdefs.h.  */
5207
5208int
5209main ()
5210{
5211
5212  ;
5213  return 0;
5214}
5215_ACEOF
5216if ac_fn_cxx_try_compile "$LINENO"; then :
5217
5218else
5219  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5220	 CXXFLAGS="-g"
5221	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222/* end confdefs.h.  */
5223
5224int
5225main ()
5226{
5227
5228  ;
5229  return 0;
5230}
5231_ACEOF
5232if ac_fn_cxx_try_compile "$LINENO"; then :
5233  ac_cv_prog_cxx_g=yes
5234fi
5235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236fi
5237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238fi
5239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5240   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5241fi
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5243$as_echo "$ac_cv_prog_cxx_g" >&6; }
5244if test "$ac_test_CXXFLAGS" = set; then
5245  CXXFLAGS=$ac_save_CXXFLAGS
5246elif test $ac_cv_prog_cxx_g = yes; then
5247  if test "$GXX" = yes; then
5248    CXXFLAGS="-g -O2"
5249  else
5250    CXXFLAGS="-g"
5251  fi
5252else
5253  if test "$GXX" = yes; then
5254    CXXFLAGS="-O2"
5255  else
5256    CXXFLAGS=
5257  fi
5258fi
5259ac_ext=c
5260ac_cpp='$CPP $CPPFLAGS'
5261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263ac_compiler_gnu=$ac_cv_c_compiler_gnu
5264
5265depcc="$CXX"  am_compiler_list=
5266
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5268$as_echo_n "checking dependency style of $depcc... " >&6; }
5269if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5270  $as_echo_n "(cached) " >&6
5271else
5272  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5273  # We make a subdir and do the tests there.  Otherwise we can end up
5274  # making bogus files that we don't know about and never remove.  For
5275  # instance it was reported that on HP-UX the gcc test will end up
5276  # making a dummy file named 'D' -- because '-MD' means "put the output
5277  # in D".
5278  rm -rf conftest.dir
5279  mkdir conftest.dir
5280  # Copy depcomp to subdir because otherwise we won't find it if we're
5281  # using a relative directory.
5282  cp "$am_depcomp" conftest.dir
5283  cd conftest.dir
5284  # We will build objects and dependencies in a subdirectory because
5285  # it helps to detect inapplicable dependency modes.  For instance
5286  # both Tru64's cc and ICC support -MD to output dependencies as a
5287  # side effect of compilation, but ICC will put the dependencies in
5288  # the current directory while Tru64 will put them in the object
5289  # directory.
5290  mkdir sub
5291
5292  am_cv_CXX_dependencies_compiler_type=none
5293  if test "$am_compiler_list" = ""; then
5294     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5295  fi
5296  am__universal=false
5297  case " $depcc " in #(
5298     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5299     esac
5300
5301  for depmode in $am_compiler_list; do
5302    # Setup a source with many dependencies, because some compilers
5303    # like to wrap large dependency lists on column 80 (with \), and
5304    # we should not choose a depcomp mode which is confused by this.
5305    #
5306    # We need to recreate these files for each test, as the compiler may
5307    # overwrite some of them when testing with obscure command lines.
5308    # This happens at least with the AIX C compiler.
5309    : > sub/conftest.c
5310    for i in 1 2 3 4 5 6; do
5311      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5312      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5313      # Solaris 10 /bin/sh.
5314      echo '/* dummy */' > sub/conftst$i.h
5315    done
5316    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5317
5318    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5319    # mode.  It turns out that the SunPro C++ compiler does not properly
5320    # handle '-M -o', and we need to detect this.  Also, some Intel
5321    # versions had trouble with output in subdirs.
5322    am__obj=sub/conftest.${OBJEXT-o}
5323    am__minus_obj="-o $am__obj"
5324    case $depmode in
5325    gcc)
5326      # This depmode causes a compiler race in universal mode.
5327      test "$am__universal" = false || continue
5328      ;;
5329    nosideeffect)
5330      # After this tag, mechanisms are not by side-effect, so they'll
5331      # only be used when explicitly requested.
5332      if test "x$enable_dependency_tracking" = xyes; then
5333	continue
5334      else
5335	break
5336      fi
5337      ;;
5338    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5339      # This compiler won't grok '-c -o', but also, the minuso test has
5340      # not run yet.  These depmodes are late enough in the game, and
5341      # so weak that their functioning should not be impacted.
5342      am__obj=conftest.${OBJEXT-o}
5343      am__minus_obj=
5344      ;;
5345    none) break ;;
5346    esac
5347    if depmode=$depmode \
5348       source=sub/conftest.c object=$am__obj \
5349       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5350       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5351         >/dev/null 2>conftest.err &&
5352       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5353       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5354       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5355       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5356      # icc doesn't choke on unknown options, it will just issue warnings
5357      # or remarks (even with -Werror).  So we grep stderr for any message
5358      # that says an option was ignored or not supported.
5359      # When given -MP, icc 7.0 and 7.1 complain thusly:
5360      #   icc: Command line warning: ignoring option '-M'; no argument required
5361      # The diagnosis changed in icc 8.0:
5362      #   icc: Command line remark: option '-MP' not supported
5363      if (grep 'ignoring option' conftest.err ||
5364          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5365        am_cv_CXX_dependencies_compiler_type=$depmode
5366        break
5367      fi
5368    fi
5369  done
5370
5371  cd ..
5372  rm -rf conftest.dir
5373else
5374  am_cv_CXX_dependencies_compiler_type=none
5375fi
5376
5377fi
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5379$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5380CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5381
5382 if
5383  test "x$enable_dependency_tracking" != xno \
5384  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5385  am__fastdepCXX_TRUE=
5386  am__fastdepCXX_FALSE='#'
5387else
5388  am__fastdepCXX_TRUE='#'
5389  am__fastdepCXX_FALSE=
5390fi
5391
5392
5393
5394
5395ac_ext=c
5396ac_cpp='$CPP $CPPFLAGS'
5397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5399ac_compiler_gnu=$ac_cv_c_compiler_gnu
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5401$as_echo_n "checking how to run the C preprocessor... " >&6; }
5402# On Suns, sometimes $CPP names a directory.
5403if test -n "$CPP" && test -d "$CPP"; then
5404  CPP=
5405fi
5406if test -z "$CPP"; then
5407  if ${ac_cv_prog_CPP+:} false; then :
5408  $as_echo_n "(cached) " >&6
5409else
5410      # Double quotes because CPP needs to be expanded
5411    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5412    do
5413      ac_preproc_ok=false
5414for ac_c_preproc_warn_flag in '' yes
5415do
5416  # Use a header file that comes with gcc, so configuring glibc
5417  # with a fresh cross-compiler works.
5418  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5419  # <limits.h> exists even on freestanding compilers.
5420  # On the NeXT, cc -E runs the code through the compiler's parser,
5421  # not just through cpp. "Syntax error" is here to catch this case.
5422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423/* end confdefs.h.  */
5424#ifdef __STDC__
5425# include <limits.h>
5426#else
5427# include <assert.h>
5428#endif
5429		     Syntax error
5430_ACEOF
5431if ac_fn_c_try_cpp "$LINENO"; then :
5432
5433else
5434  # Broken: fails on valid input.
5435continue
5436fi
5437rm -f conftest.err conftest.i conftest.$ac_ext
5438
5439  # OK, works on sane cases.  Now check whether nonexistent headers
5440  # can be detected and how.
5441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442/* end confdefs.h.  */
5443#include <ac_nonexistent.h>
5444_ACEOF
5445if ac_fn_c_try_cpp "$LINENO"; then :
5446  # Broken: success on invalid input.
5447continue
5448else
5449  # Passes both tests.
5450ac_preproc_ok=:
5451break
5452fi
5453rm -f conftest.err conftest.i conftest.$ac_ext
5454
5455done
5456# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5457rm -f conftest.i conftest.err conftest.$ac_ext
5458if $ac_preproc_ok; then :
5459  break
5460fi
5461
5462    done
5463    ac_cv_prog_CPP=$CPP
5464
5465fi
5466  CPP=$ac_cv_prog_CPP
5467else
5468  ac_cv_prog_CPP=$CPP
5469fi
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5471$as_echo "$CPP" >&6; }
5472ac_preproc_ok=false
5473for ac_c_preproc_warn_flag in '' yes
5474do
5475  # Use a header file that comes with gcc, so configuring glibc
5476  # with a fresh cross-compiler works.
5477  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5478  # <limits.h> exists even on freestanding compilers.
5479  # On the NeXT, cc -E runs the code through the compiler's parser,
5480  # not just through cpp. "Syntax error" is here to catch this case.
5481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482/* end confdefs.h.  */
5483#ifdef __STDC__
5484# include <limits.h>
5485#else
5486# include <assert.h>
5487#endif
5488		     Syntax error
5489_ACEOF
5490if ac_fn_c_try_cpp "$LINENO"; then :
5491
5492else
5493  # Broken: fails on valid input.
5494continue
5495fi
5496rm -f conftest.err conftest.i conftest.$ac_ext
5497
5498  # OK, works on sane cases.  Now check whether nonexistent headers
5499  # can be detected and how.
5500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501/* end confdefs.h.  */
5502#include <ac_nonexistent.h>
5503_ACEOF
5504if ac_fn_c_try_cpp "$LINENO"; then :
5505  # Broken: success on invalid input.
5506continue
5507else
5508  # Passes both tests.
5509ac_preproc_ok=:
5510break
5511fi
5512rm -f conftest.err conftest.i conftest.$ac_ext
5513
5514done
5515# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5516rm -f conftest.i conftest.err conftest.$ac_ext
5517if $ac_preproc_ok; then :
5518
5519else
5520  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5522as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5523See \`config.log' for more details" "$LINENO" 5; }
5524fi
5525
5526ac_ext=c
5527ac_cpp='$CPP $CPPFLAGS'
5528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5530ac_compiler_gnu=$ac_cv_c_compiler_gnu
5531
5532
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5534$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5535if ${ac_cv_path_GREP+:} false; then :
5536  $as_echo_n "(cached) " >&6
5537else
5538  if test -z "$GREP"; then
5539  ac_path_GREP_found=false
5540  # Loop through the user's path and test for each of PROGNAME-LIST
5541  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5543do
5544  IFS=$as_save_IFS
5545  test -z "$as_dir" && as_dir=.
5546    for ac_prog in grep ggrep; do
5547    for ac_exec_ext in '' $ac_executable_extensions; do
5548      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5549      as_fn_executable_p "$ac_path_GREP" || continue
5550# Check for GNU ac_path_GREP and select it if it is found.
5551  # Check for GNU $ac_path_GREP
5552case `"$ac_path_GREP" --version 2>&1` in
5553*GNU*)
5554  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5555*)
5556  ac_count=0
5557  $as_echo_n 0123456789 >"conftest.in"
5558  while :
5559  do
5560    cat "conftest.in" "conftest.in" >"conftest.tmp"
5561    mv "conftest.tmp" "conftest.in"
5562    cp "conftest.in" "conftest.nl"
5563    $as_echo 'GREP' >> "conftest.nl"
5564    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5565    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5566    as_fn_arith $ac_count + 1 && ac_count=$as_val
5567    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5568      # Best one so far, save it but keep looking for a better one
5569      ac_cv_path_GREP="$ac_path_GREP"
5570      ac_path_GREP_max=$ac_count
5571    fi
5572    # 10*(2^10) chars as input seems more than enough
5573    test $ac_count -gt 10 && break
5574  done
5575  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5576esac
5577
5578      $ac_path_GREP_found && break 3
5579    done
5580  done
5581  done
5582IFS=$as_save_IFS
5583  if test -z "$ac_cv_path_GREP"; then
5584    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5585  fi
5586else
5587  ac_cv_path_GREP=$GREP
5588fi
5589
5590fi
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5592$as_echo "$ac_cv_path_GREP" >&6; }
5593 GREP="$ac_cv_path_GREP"
5594
5595
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5597$as_echo_n "checking for egrep... " >&6; }
5598if ${ac_cv_path_EGREP+:} false; then :
5599  $as_echo_n "(cached) " >&6
5600else
5601  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5602   then ac_cv_path_EGREP="$GREP -E"
5603   else
5604     if test -z "$EGREP"; then
5605  ac_path_EGREP_found=false
5606  # Loop through the user's path and test for each of PROGNAME-LIST
5607  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5609do
5610  IFS=$as_save_IFS
5611  test -z "$as_dir" && as_dir=.
5612    for ac_prog in egrep; do
5613    for ac_exec_ext in '' $ac_executable_extensions; do
5614      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5615      as_fn_executable_p "$ac_path_EGREP" || continue
5616# Check for GNU ac_path_EGREP and select it if it is found.
5617  # Check for GNU $ac_path_EGREP
5618case `"$ac_path_EGREP" --version 2>&1` in
5619*GNU*)
5620  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5621*)
5622  ac_count=0
5623  $as_echo_n 0123456789 >"conftest.in"
5624  while :
5625  do
5626    cat "conftest.in" "conftest.in" >"conftest.tmp"
5627    mv "conftest.tmp" "conftest.in"
5628    cp "conftest.in" "conftest.nl"
5629    $as_echo 'EGREP' >> "conftest.nl"
5630    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5631    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5632    as_fn_arith $ac_count + 1 && ac_count=$as_val
5633    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5634      # Best one so far, save it but keep looking for a better one
5635      ac_cv_path_EGREP="$ac_path_EGREP"
5636      ac_path_EGREP_max=$ac_count
5637    fi
5638    # 10*(2^10) chars as input seems more than enough
5639    test $ac_count -gt 10 && break
5640  done
5641  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5642esac
5643
5644      $ac_path_EGREP_found && break 3
5645    done
5646  done
5647  done
5648IFS=$as_save_IFS
5649  if test -z "$ac_cv_path_EGREP"; then
5650    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5651  fi
5652else
5653  ac_cv_path_EGREP=$EGREP
5654fi
5655
5656   fi
5657fi
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5659$as_echo "$ac_cv_path_EGREP" >&6; }
5660 EGREP="$ac_cv_path_EGREP"
5661
5662
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5664$as_echo_n "checking for ANSI C header files... " >&6; }
5665if ${ac_cv_header_stdc+:} false; then :
5666  $as_echo_n "(cached) " >&6
5667else
5668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669/* end confdefs.h.  */
5670#include <stdlib.h>
5671#include <stdarg.h>
5672#include <string.h>
5673#include <float.h>
5674
5675int
5676main ()
5677{
5678
5679  ;
5680  return 0;
5681}
5682_ACEOF
5683if ac_fn_c_try_compile "$LINENO"; then :
5684  ac_cv_header_stdc=yes
5685else
5686  ac_cv_header_stdc=no
5687fi
5688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689
5690if test $ac_cv_header_stdc = yes; then
5691  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693/* end confdefs.h.  */
5694#include <string.h>
5695
5696_ACEOF
5697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5698  $EGREP "memchr" >/dev/null 2>&1; then :
5699
5700else
5701  ac_cv_header_stdc=no
5702fi
5703rm -f conftest*
5704
5705fi
5706
5707if test $ac_cv_header_stdc = yes; then
5708  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710/* end confdefs.h.  */
5711#include <stdlib.h>
5712
5713_ACEOF
5714if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5715  $EGREP "free" >/dev/null 2>&1; then :
5716
5717else
5718  ac_cv_header_stdc=no
5719fi
5720rm -f conftest*
5721
5722fi
5723
5724if test $ac_cv_header_stdc = yes; then
5725  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5726  if test "$cross_compiling" = yes; then :
5727  :
5728else
5729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730/* end confdefs.h.  */
5731#include <ctype.h>
5732#include <stdlib.h>
5733#if ((' ' & 0x0FF) == 0x020)
5734# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5735# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5736#else
5737# define ISLOWER(c) \
5738		   (('a' <= (c) && (c) <= 'i') \
5739		     || ('j' <= (c) && (c) <= 'r') \
5740		     || ('s' <= (c) && (c) <= 'z'))
5741# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5742#endif
5743
5744#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5745int
5746main ()
5747{
5748  int i;
5749  for (i = 0; i < 256; i++)
5750    if (XOR (islower (i), ISLOWER (i))
5751	|| toupper (i) != TOUPPER (i))
5752      return 2;
5753  return 0;
5754}
5755_ACEOF
5756if ac_fn_c_try_run "$LINENO"; then :
5757
5758else
5759  ac_cv_header_stdc=no
5760fi
5761rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5762  conftest.$ac_objext conftest.beam conftest.$ac_ext
5763fi
5764
5765fi
5766fi
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5768$as_echo "$ac_cv_header_stdc" >&6; }
5769if test $ac_cv_header_stdc = yes; then
5770
5771$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5772
5773fi
5774
5775# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5776for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5777		  inttypes.h stdint.h unistd.h
5778do :
5779  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5780ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5781"
5782if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5783  cat >>confdefs.h <<_ACEOF
5784#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5785_ACEOF
5786
5787fi
5788
5789done
5790
5791
5792
5793  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5794if test "x$ac_cv_header_minix_config_h" = xyes; then :
5795  MINIX=yes
5796else
5797  MINIX=
5798fi
5799
5800
5801  if test "$MINIX" = yes; then
5802
5803$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5804
5805
5806$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5807
5808
5809$as_echo "#define _MINIX 1" >>confdefs.h
5810
5811  fi
5812
5813
5814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5815$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5816if ${ac_cv_safe_to_define___extensions__+:} false; then :
5817  $as_echo_n "(cached) " >&6
5818else
5819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820/* end confdefs.h.  */
5821
5822#         define __EXTENSIONS__ 1
5823          $ac_includes_default
5824int
5825main ()
5826{
5827
5828  ;
5829  return 0;
5830}
5831_ACEOF
5832if ac_fn_c_try_compile "$LINENO"; then :
5833  ac_cv_safe_to_define___extensions__=yes
5834else
5835  ac_cv_safe_to_define___extensions__=no
5836fi
5837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838fi
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5840$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5841  test $ac_cv_safe_to_define___extensions__ = yes &&
5842    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5843
5844  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5845
5846  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5847
5848  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5849
5850  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5851
5852
5853ac_ext=c
5854ac_cpp='$CPP $CPPFLAGS'
5855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857ac_compiler_gnu=$ac_cv_c_compiler_gnu
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5859$as_echo_n "checking how to run the C preprocessor... " >&6; }
5860# On Suns, sometimes $CPP names a directory.
5861if test -n "$CPP" && test -d "$CPP"; then
5862  CPP=
5863fi
5864if test -z "$CPP"; then
5865  if ${ac_cv_prog_CPP+:} false; then :
5866  $as_echo_n "(cached) " >&6
5867else
5868      # Double quotes because CPP needs to be expanded
5869    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5870    do
5871      ac_preproc_ok=false
5872for ac_c_preproc_warn_flag in '' yes
5873do
5874  # Use a header file that comes with gcc, so configuring glibc
5875  # with a fresh cross-compiler works.
5876  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5877  # <limits.h> exists even on freestanding compilers.
5878  # On the NeXT, cc -E runs the code through the compiler's parser,
5879  # not just through cpp. "Syntax error" is here to catch this case.
5880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881/* end confdefs.h.  */
5882#ifdef __STDC__
5883# include <limits.h>
5884#else
5885# include <assert.h>
5886#endif
5887		     Syntax error
5888_ACEOF
5889if ac_fn_c_try_cpp "$LINENO"; then :
5890
5891else
5892  # Broken: fails on valid input.
5893continue
5894fi
5895rm -f conftest.err conftest.i conftest.$ac_ext
5896
5897  # OK, works on sane cases.  Now check whether nonexistent headers
5898  # can be detected and how.
5899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900/* end confdefs.h.  */
5901#include <ac_nonexistent.h>
5902_ACEOF
5903if ac_fn_c_try_cpp "$LINENO"; then :
5904  # Broken: success on invalid input.
5905continue
5906else
5907  # Passes both tests.
5908ac_preproc_ok=:
5909break
5910fi
5911rm -f conftest.err conftest.i conftest.$ac_ext
5912
5913done
5914# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5915rm -f conftest.i conftest.err conftest.$ac_ext
5916if $ac_preproc_ok; then :
5917  break
5918fi
5919
5920    done
5921    ac_cv_prog_CPP=$CPP
5922
5923fi
5924  CPP=$ac_cv_prog_CPP
5925else
5926  ac_cv_prog_CPP=$CPP
5927fi
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5929$as_echo "$CPP" >&6; }
5930ac_preproc_ok=false
5931for ac_c_preproc_warn_flag in '' yes
5932do
5933  # Use a header file that comes with gcc, so configuring glibc
5934  # with a fresh cross-compiler works.
5935  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5936  # <limits.h> exists even on freestanding compilers.
5937  # On the NeXT, cc -E runs the code through the compiler's parser,
5938  # not just through cpp. "Syntax error" is here to catch this case.
5939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940/* end confdefs.h.  */
5941#ifdef __STDC__
5942# include <limits.h>
5943#else
5944# include <assert.h>
5945#endif
5946		     Syntax error
5947_ACEOF
5948if ac_fn_c_try_cpp "$LINENO"; then :
5949
5950else
5951  # Broken: fails on valid input.
5952continue
5953fi
5954rm -f conftest.err conftest.i conftest.$ac_ext
5955
5956  # OK, works on sane cases.  Now check whether nonexistent headers
5957  # can be detected and how.
5958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959/* end confdefs.h.  */
5960#include <ac_nonexistent.h>
5961_ACEOF
5962if ac_fn_c_try_cpp "$LINENO"; then :
5963  # Broken: success on invalid input.
5964continue
5965else
5966  # Passes both tests.
5967ac_preproc_ok=:
5968break
5969fi
5970rm -f conftest.err conftest.i conftest.$ac_ext
5971
5972done
5973# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5974rm -f conftest.i conftest.err conftest.$ac_ext
5975if $ac_preproc_ok; then :
5976
5977else
5978  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5980as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5981See \`config.log' for more details" "$LINENO" 5; }
5982fi
5983
5984ac_ext=c
5985ac_cpp='$CPP $CPPFLAGS'
5986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988ac_compiler_gnu=$ac_cv_c_compiler_gnu
5989
5990
5991
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5993$as_echo_n "checking whether ln -s works... " >&6; }
5994LN_S=$as_ln_s
5995if test "$LN_S" = "ln -s"; then
5996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5997$as_echo "yes" >&6; }
5998else
5999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6000$as_echo "no, using $LN_S" >&6; }
6001fi
6002
6003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6004$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6005set x ${MAKE-make}
6006ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6007if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6008  $as_echo_n "(cached) " >&6
6009else
6010  cat >conftest.make <<\_ACEOF
6011SHELL = /bin/sh
6012all:
6013	@echo '@@@%%%=$(MAKE)=@@@%%%'
6014_ACEOF
6015# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6016case `${MAKE-make} -f conftest.make 2>/dev/null` in
6017  *@@@%%%=?*=@@@%%%*)
6018    eval ac_cv_prog_make_${ac_make}_set=yes;;
6019  *)
6020    eval ac_cv_prog_make_${ac_make}_set=no;;
6021esac
6022rm -f conftest.make
6023fi
6024if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6026$as_echo "yes" >&6; }
6027  SET_MAKE=
6028else
6029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030$as_echo "no" >&6; }
6031  SET_MAKE="MAKE=${MAKE-make}"
6032fi
6033
6034if test $ac_cv_c_compiler_gnu = yes; then
6035    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6036$as_echo_n "checking whether $CC needs -traditional... " >&6; }
6037if ${ac_cv_prog_gcc_traditional+:} false; then :
6038  $as_echo_n "(cached) " >&6
6039else
6040    ac_pattern="Autoconf.*'x'"
6041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042/* end confdefs.h.  */
6043#include <sgtty.h>
6044Autoconf TIOCGETP
6045_ACEOF
6046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6047  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6048  ac_cv_prog_gcc_traditional=yes
6049else
6050  ac_cv_prog_gcc_traditional=no
6051fi
6052rm -f conftest*
6053
6054
6055  if test $ac_cv_prog_gcc_traditional = no; then
6056    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057/* end confdefs.h.  */
6058#include <termio.h>
6059Autoconf TCGETA
6060_ACEOF
6061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6062  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6063  ac_cv_prog_gcc_traditional=yes
6064fi
6065rm -f conftest*
6066
6067  fi
6068fi
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6070$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6071  if test $ac_cv_prog_gcc_traditional = yes; then
6072    CC="$CC -traditional"
6073  fi
6074fi
6075
6076
6077# -fstack-protector
6078# Check whether --enable-stack-protector was given.
6079if test "${enable_stack_protector+set}" = set; then :
6080  enableval=$enable_stack_protector; case "${enableval}" in
6081         yes) enable_ssp=yes ;;
6082          no) enable_ssp=no ;;
6083           *) as_fn_error $? "invalid value ${enableval} for --disable-stack-protector" "$LINENO" 5 ;;
6084     esac
6085else
6086  enable_ssp=yes
6087fi
6088
6089
6090if test x"$enable_ssp" = x"yes" && test x"$GCC" != x"yes"; then
6091    { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling stack-smashing protection because compiler is not GCC" >&5
6092$as_echo "$as_me: Disabling stack-smashing protection because compiler is not GCC" >&6;}
6093    enable_ssp=no
6094fi
6095
6096if test x"$enable_ssp" = x"yes"; then
6097    # Check for broken ssp in libc: http://www.avahi.org/ticket/105
6098    # libc's brokenness will get in the way regardless of whether -lssp is
6099    # provided, but provide it anyway (otherwise non-libc ssp would wrongly
6100    # break here)
6101
6102    # Get -lssp if it exists
6103
6104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
6105$as_echo_n "checking whether libssp exists... " >&6; }
6106if ${ssp_cv_lib+:} false; then :
6107  $as_echo_n "(cached) " >&6
6108else
6109  ssp_old_libs="$LIBS"
6110     LIBS="$LIBS -lssp"
6111     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112/* end confdefs.h.  */
6113
6114int
6115main ()
6116{
6117
6118  ;
6119  return 0;
6120}
6121_ACEOF
6122if ac_fn_c_try_link "$LINENO"; then :
6123  ssp_cv_lib=yes
6124else
6125  ssp_cv_lib=no
6126fi
6127rm -f core conftest.err conftest.$ac_objext \
6128    conftest$ac_exeext conftest.$ac_ext
6129     LIBS="$ssp_old_libs"
6130
6131fi
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
6133$as_echo "$ssp_cv_lib" >&6; }
6134  if test $ssp_cv_lib = yes; then
6135    LIBS="$LIBS -lssp"
6136  fi
6137
6138
6139    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack-smashing protection is available" >&5
6140$as_echo_n "checking whether stack-smashing protection is available... " >&6; }
6141    ssp_old_cflags="$CFLAGS"
6142    ssp_old_ldflags="$LDFLAGS"
6143    CFLAGS="$CFLAGS -Werror -fstack-protector-all -fPIC"
6144    LDFLAGS="$LDFLAGS -Wl,-z,defs"
6145    cat confdefs.h > conftest.c
6146    cat >>conftest.c <<_ACEOF
6147void test_broken_ssp(c)
6148    const char *c;
6149{
6150    char arr[123], *p; /* beware of possible double-braces if copying this */
6151    for (p = arr; *c; ++p) {
6152        *p = *c;
6153        ++c;
6154    }
6155}
6156_ACEOF
6157    rm -f conftest.o
6158
6159    if $CC -c $CFLAGS $CPPFLAGS -o conftest.o conftest.c >/dev/null 2>&1; then
6160        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6161$as_echo "yes" >&6; }
6162        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack-smashing protection is buggy" >&5
6163$as_echo_n "checking whether stack-smashing protection is buggy... " >&6; }
6164        if $CC -o conftest.so $LDFLAGS -shared conftest.o $LIBS >/dev/null 2>&1; then
6165            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166$as_echo "no" >&6; }
6167        else
6168            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6169$as_echo "yes" >&6; }
6170            enable_ssp=no
6171        fi
6172    else
6173        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174$as_echo "no" >&6; }
6175    fi
6176
6177    rm -f conftest.c conftest.o conftest.so
6178
6179    CFLAGS="$ssp_old_cflags"
6180    LDFLAGS="$ssp_old_ldflags"
6181fi
6182
6183if test x"$enable_ssp" = x"yes"; then
6184    # Do this the long way so we don't call GCC_STACK_PROTECT_LIB twice
6185
6186
6187  if test "X$CC" != "X"; then
6188    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
6189$as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
6190if ${ssp_cv_cc+:} false; then :
6191  $as_echo_n "(cached) " >&6
6192else
6193  ssp_old_cflags="$CFLAGS"
6194       CFLAGS="$CFLAGS -fstack-protector -Werror"
6195       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196/* end confdefs.h.  */
6197
6198int
6199main ()
6200{
6201
6202  ;
6203  return 0;
6204}
6205_ACEOF
6206if ac_fn_c_try_compile "$LINENO"; then :
6207  ssp_cv_cc=yes
6208else
6209  ssp_cv_cc=no
6210fi
6211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6212       CFLAGS="$ssp_old_cflags"
6213
6214fi
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
6216$as_echo "$ssp_cv_cc" >&6; }
6217    if test $ssp_cv_cc = yes; then
6218      CFLAGS="$CFLAGS -fstack-protector"
6219
6220$as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
6221
6222    fi
6223  fi
6224
6225
6226    ac_ext=cpp
6227ac_cpp='$CXXCPP $CPPFLAGS'
6228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6231
6232
6233
6234
6235  if test "X$CXX" != "X"; then
6236    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fstack-protector" >&5
6237$as_echo_n "checking whether ${CXX} accepts -fstack-protector... " >&6; }
6238if ${ssp_cv_cxx+:} false; then :
6239  $as_echo_n "(cached) " >&6
6240else
6241  ssp_old_cxxflags="$CXXFLAGS"
6242       CXXFLAGS="$CXXFLAGS -fstack-protector -Werror"
6243       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244/* end confdefs.h.  */
6245
6246int
6247main ()
6248{
6249
6250  ;
6251  return 0;
6252}
6253_ACEOF
6254if ac_fn_cxx_try_compile "$LINENO"; then :
6255  ssp_cv_cxx=yes
6256else
6257  ssp_cv_cxx=no
6258fi
6259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260       CXXFLAGS="$ssp_old_cxxflags"
6261
6262fi
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cxx" >&5
6264$as_echo "$ssp_cv_cxx" >&6; }
6265    if test $ssp_cv_cxx = yes; then
6266      CXXFLAGS="$CXXFLAGS -fstack-protector"
6267
6268$as_echo "#define ENABLE_SSP_CXX 1" >>confdefs.h
6269
6270    fi
6271  fi
6272
6273    ac_ext=c
6274ac_cpp='$CPP $CPPFLAGS'
6275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6277ac_compiler_gnu=$ac_cv_c_compiler_gnu
6278
6279    # XXX: Update the enable_ssp value now for output later?
6280fi
6281
6282# libtool stuff
6283case `pwd` in
6284  *\ * | *\	*)
6285    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6286$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6287esac
6288
6289
6290
6291macro_version='2.4.6'
6292macro_revision='2.4.6'
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306ltmain=$ac_aux_dir/ltmain.sh
6307
6308# Backslashify metacharacters that are still active within
6309# double-quoted strings.
6310sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6311
6312# Same as above, but do not quote variable references.
6313double_quote_subst='s/\(["`\\]\)/\\\1/g'
6314
6315# Sed substitution to delay expansion of an escaped shell variable in a
6316# double_quote_subst'ed string.
6317delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6318
6319# Sed substitution to delay expansion of an escaped single quote.
6320delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6321
6322# Sed substitution to avoid accidental globbing in evaled expressions
6323no_glob_subst='s/\*/\\\*/g'
6324
6325ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6326ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6327ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6328
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6330$as_echo_n "checking how to print strings... " >&6; }
6331# Test print first, because it will be a builtin if present.
6332if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6333   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6334  ECHO='print -r --'
6335elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6336  ECHO='printf %s\n'
6337else
6338  # Use this function as a fallback that always works.
6339  func_fallback_echo ()
6340  {
6341    eval 'cat <<_LTECHO_EOF
6342$1
6343_LTECHO_EOF'
6344  }
6345  ECHO='func_fallback_echo'
6346fi
6347
6348# func_echo_all arg...
6349# Invoke $ECHO with all args, space-separated.
6350func_echo_all ()
6351{
6352    $ECHO ""
6353}
6354
6355case $ECHO in
6356  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6357$as_echo "printf" >&6; } ;;
6358  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6359$as_echo "print -r" >&6; } ;;
6360  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6361$as_echo "cat" >&6; } ;;
6362esac
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6378$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6379if ${ac_cv_path_SED+:} false; then :
6380  $as_echo_n "(cached) " >&6
6381else
6382            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6383     for ac_i in 1 2 3 4 5 6 7; do
6384       ac_script="$ac_script$as_nl$ac_script"
6385     done
6386     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6387     { ac_script=; unset ac_script;}
6388     if test -z "$SED"; then
6389  ac_path_SED_found=false
6390  # Loop through the user's path and test for each of PROGNAME-LIST
6391  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392for as_dir in $PATH
6393do
6394  IFS=$as_save_IFS
6395  test -z "$as_dir" && as_dir=.
6396    for ac_prog in sed gsed; do
6397    for ac_exec_ext in '' $ac_executable_extensions; do
6398      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6399      as_fn_executable_p "$ac_path_SED" || continue
6400# Check for GNU ac_path_SED and select it if it is found.
6401  # Check for GNU $ac_path_SED
6402case `"$ac_path_SED" --version 2>&1` in
6403*GNU*)
6404  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6405*)
6406  ac_count=0
6407  $as_echo_n 0123456789 >"conftest.in"
6408  while :
6409  do
6410    cat "conftest.in" "conftest.in" >"conftest.tmp"
6411    mv "conftest.tmp" "conftest.in"
6412    cp "conftest.in" "conftest.nl"
6413    $as_echo '' >> "conftest.nl"
6414    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6415    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6416    as_fn_arith $ac_count + 1 && ac_count=$as_val
6417    if test $ac_count -gt ${ac_path_SED_max-0}; then
6418      # Best one so far, save it but keep looking for a better one
6419      ac_cv_path_SED="$ac_path_SED"
6420      ac_path_SED_max=$ac_count
6421    fi
6422    # 10*(2^10) chars as input seems more than enough
6423    test $ac_count -gt 10 && break
6424  done
6425  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6426esac
6427
6428      $ac_path_SED_found && break 3
6429    done
6430  done
6431  done
6432IFS=$as_save_IFS
6433  if test -z "$ac_cv_path_SED"; then
6434    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6435  fi
6436else
6437  ac_cv_path_SED=$SED
6438fi
6439
6440fi
6441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6442$as_echo "$ac_cv_path_SED" >&6; }
6443 SED="$ac_cv_path_SED"
6444  rm -f conftest.sed
6445
6446test -z "$SED" && SED=sed
6447Xsed="$SED -e 1s/^X//"
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6460$as_echo_n "checking for fgrep... " >&6; }
6461if ${ac_cv_path_FGREP+:} false; then :
6462  $as_echo_n "(cached) " >&6
6463else
6464  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6465   then ac_cv_path_FGREP="$GREP -F"
6466   else
6467     if test -z "$FGREP"; then
6468  ac_path_FGREP_found=false
6469  # Loop through the user's path and test for each of PROGNAME-LIST
6470  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6472do
6473  IFS=$as_save_IFS
6474  test -z "$as_dir" && as_dir=.
6475    for ac_prog in fgrep; do
6476    for ac_exec_ext in '' $ac_executable_extensions; do
6477      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6478      as_fn_executable_p "$ac_path_FGREP" || continue
6479# Check for GNU ac_path_FGREP and select it if it is found.
6480  # Check for GNU $ac_path_FGREP
6481case `"$ac_path_FGREP" --version 2>&1` in
6482*GNU*)
6483  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6484*)
6485  ac_count=0
6486  $as_echo_n 0123456789 >"conftest.in"
6487  while :
6488  do
6489    cat "conftest.in" "conftest.in" >"conftest.tmp"
6490    mv "conftest.tmp" "conftest.in"
6491    cp "conftest.in" "conftest.nl"
6492    $as_echo 'FGREP' >> "conftest.nl"
6493    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6494    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6495    as_fn_arith $ac_count + 1 && ac_count=$as_val
6496    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6497      # Best one so far, save it but keep looking for a better one
6498      ac_cv_path_FGREP="$ac_path_FGREP"
6499      ac_path_FGREP_max=$ac_count
6500    fi
6501    # 10*(2^10) chars as input seems more than enough
6502    test $ac_count -gt 10 && break
6503  done
6504  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6505esac
6506
6507      $ac_path_FGREP_found && break 3
6508    done
6509  done
6510  done
6511IFS=$as_save_IFS
6512  if test -z "$ac_cv_path_FGREP"; then
6513    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6514  fi
6515else
6516  ac_cv_path_FGREP=$FGREP
6517fi
6518
6519   fi
6520fi
6521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6522$as_echo "$ac_cv_path_FGREP" >&6; }
6523 FGREP="$ac_cv_path_FGREP"
6524
6525
6526test -z "$GREP" && GREP=grep
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546# Check whether --with-gnu-ld was given.
6547if test "${with_gnu_ld+set}" = set; then :
6548  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6549else
6550  with_gnu_ld=no
6551fi
6552
6553ac_prog=ld
6554if test yes = "$GCC"; then
6555  # Check if gcc -print-prog-name=ld gives a path.
6556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6557$as_echo_n "checking for ld used by $CC... " >&6; }
6558  case $host in
6559  *-*-mingw*)
6560    # gcc leaves a trailing carriage return, which upsets mingw
6561    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6562  *)
6563    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6564  esac
6565  case $ac_prog in
6566    # Accept absolute paths.
6567    [\\/]* | ?:[\\/]*)
6568      re_direlt='/[^/][^/]*/\.\./'
6569      # Canonicalize the pathname of ld
6570      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6571      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6572	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6573      done
6574      test -z "$LD" && LD=$ac_prog
6575      ;;
6576  "")
6577    # If it fails, then pretend we aren't using GCC.
6578    ac_prog=ld
6579    ;;
6580  *)
6581    # If it is relative, then search for the first ld in PATH.
6582    with_gnu_ld=unknown
6583    ;;
6584  esac
6585elif test yes = "$with_gnu_ld"; then
6586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6587$as_echo_n "checking for GNU ld... " >&6; }
6588else
6589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6590$as_echo_n "checking for non-GNU ld... " >&6; }
6591fi
6592if ${lt_cv_path_LD+:} false; then :
6593  $as_echo_n "(cached) " >&6
6594else
6595  if test -z "$LD"; then
6596  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6597  for ac_dir in $PATH; do
6598    IFS=$lt_save_ifs
6599    test -z "$ac_dir" && ac_dir=.
6600    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6601      lt_cv_path_LD=$ac_dir/$ac_prog
6602      # Check to see if the program is GNU ld.  I'd rather use --version,
6603      # but apparently some variants of GNU ld only accept -v.
6604      # Break only if it was the GNU/non-GNU ld that we prefer.
6605      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6606      *GNU* | *'with BFD'*)
6607	test no != "$with_gnu_ld" && break
6608	;;
6609      *)
6610	test yes != "$with_gnu_ld" && break
6611	;;
6612      esac
6613    fi
6614  done
6615  IFS=$lt_save_ifs
6616else
6617  lt_cv_path_LD=$LD # Let the user override the test with a path.
6618fi
6619fi
6620
6621LD=$lt_cv_path_LD
6622if test -n "$LD"; then
6623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6624$as_echo "$LD" >&6; }
6625else
6626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627$as_echo "no" >&6; }
6628fi
6629test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6631$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6632if ${lt_cv_prog_gnu_ld+:} false; then :
6633  $as_echo_n "(cached) " >&6
6634else
6635  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6636case `$LD -v 2>&1 </dev/null` in
6637*GNU* | *'with BFD'*)
6638  lt_cv_prog_gnu_ld=yes
6639  ;;
6640*)
6641  lt_cv_prog_gnu_ld=no
6642  ;;
6643esac
6644fi
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6646$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6647with_gnu_ld=$lt_cv_prog_gnu_ld
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6658$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6659if ${lt_cv_path_NM+:} false; then :
6660  $as_echo_n "(cached) " >&6
6661else
6662  if test -n "$NM"; then
6663  # Let the user override the test.
6664  lt_cv_path_NM=$NM
6665else
6666  lt_nm_to_check=${ac_tool_prefix}nm
6667  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6668    lt_nm_to_check="$lt_nm_to_check nm"
6669  fi
6670  for lt_tmp_nm in $lt_nm_to_check; do
6671    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6672    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6673      IFS=$lt_save_ifs
6674      test -z "$ac_dir" && ac_dir=.
6675      tmp_nm=$ac_dir/$lt_tmp_nm
6676      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6677	# Check to see if the nm accepts a BSD-compat flag.
6678	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6679	#   nm: unknown option "B" ignored
6680	# Tru64's nm complains that /dev/null is an invalid object file
6681	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6682	case $build_os in
6683	mingw*) lt_bad_file=conftest.nm/nofile ;;
6684	*) lt_bad_file=/dev/null ;;
6685	esac
6686	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6687	*$lt_bad_file* | *'Invalid file or object type'*)
6688	  lt_cv_path_NM="$tmp_nm -B"
6689	  break 2
6690	  ;;
6691	*)
6692	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6693	  */dev/null*)
6694	    lt_cv_path_NM="$tmp_nm -p"
6695	    break 2
6696	    ;;
6697	  *)
6698	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6699	    continue # so that we can try to find one that supports BSD flags
6700	    ;;
6701	  esac
6702	  ;;
6703	esac
6704      fi
6705    done
6706    IFS=$lt_save_ifs
6707  done
6708  : ${lt_cv_path_NM=no}
6709fi
6710fi
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6712$as_echo "$lt_cv_path_NM" >&6; }
6713if test no != "$lt_cv_path_NM"; then
6714  NM=$lt_cv_path_NM
6715else
6716  # Didn't find any BSD compatible name lister, look for dumpbin.
6717  if test -n "$DUMPBIN"; then :
6718    # Let the user override the test.
6719  else
6720    if test -n "$ac_tool_prefix"; then
6721  for ac_prog in dumpbin "link -dump"
6722  do
6723    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6724set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726$as_echo_n "checking for $ac_word... " >&6; }
6727if ${ac_cv_prog_DUMPBIN+:} false; then :
6728  $as_echo_n "(cached) " >&6
6729else
6730  if test -n "$DUMPBIN"; then
6731  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6732else
6733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734for as_dir in $PATH
6735do
6736  IFS=$as_save_IFS
6737  test -z "$as_dir" && as_dir=.
6738    for ac_exec_ext in '' $ac_executable_extensions; do
6739  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6740    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742    break 2
6743  fi
6744done
6745  done
6746IFS=$as_save_IFS
6747
6748fi
6749fi
6750DUMPBIN=$ac_cv_prog_DUMPBIN
6751if test -n "$DUMPBIN"; then
6752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6753$as_echo "$DUMPBIN" >&6; }
6754else
6755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756$as_echo "no" >&6; }
6757fi
6758
6759
6760    test -n "$DUMPBIN" && break
6761  done
6762fi
6763if test -z "$DUMPBIN"; then
6764  ac_ct_DUMPBIN=$DUMPBIN
6765  for ac_prog in dumpbin "link -dump"
6766do
6767  # Extract the first word of "$ac_prog", so it can be a program name with args.
6768set dummy $ac_prog; ac_word=$2
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770$as_echo_n "checking for $ac_word... " >&6; }
6771if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6772  $as_echo_n "(cached) " >&6
6773else
6774  if test -n "$ac_ct_DUMPBIN"; then
6775  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6776else
6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780  IFS=$as_save_IFS
6781  test -z "$as_dir" && as_dir=.
6782    for ac_exec_ext in '' $ac_executable_extensions; do
6783  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6784    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786    break 2
6787  fi
6788done
6789  done
6790IFS=$as_save_IFS
6791
6792fi
6793fi
6794ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6795if test -n "$ac_ct_DUMPBIN"; then
6796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6797$as_echo "$ac_ct_DUMPBIN" >&6; }
6798else
6799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800$as_echo "no" >&6; }
6801fi
6802
6803
6804  test -n "$ac_ct_DUMPBIN" && break
6805done
6806
6807  if test "x$ac_ct_DUMPBIN" = x; then
6808    DUMPBIN=":"
6809  else
6810    case $cross_compiling:$ac_tool_warned in
6811yes:)
6812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6814ac_tool_warned=yes ;;
6815esac
6816    DUMPBIN=$ac_ct_DUMPBIN
6817  fi
6818fi
6819
6820    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6821    *COFF*)
6822      DUMPBIN="$DUMPBIN -symbols -headers"
6823      ;;
6824    *)
6825      DUMPBIN=:
6826      ;;
6827    esac
6828  fi
6829
6830  if test : != "$DUMPBIN"; then
6831    NM=$DUMPBIN
6832  fi
6833fi
6834test -z "$NM" && NM=nm
6835
6836
6837
6838
6839
6840
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6842$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6843if ${lt_cv_nm_interface+:} false; then :
6844  $as_echo_n "(cached) " >&6
6845else
6846  lt_cv_nm_interface="BSD nm"
6847  echo "int some_variable = 0;" > conftest.$ac_ext
6848  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6849  (eval "$ac_compile" 2>conftest.err)
6850  cat conftest.err >&5
6851  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6852  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6853  cat conftest.err >&5
6854  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6855  cat conftest.out >&5
6856  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6857    lt_cv_nm_interface="MS dumpbin"
6858  fi
6859  rm -f conftest*
6860fi
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6862$as_echo "$lt_cv_nm_interface" >&6; }
6863
6864# find the maximum length of command line arguments
6865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6866$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6867if ${lt_cv_sys_max_cmd_len+:} false; then :
6868  $as_echo_n "(cached) " >&6
6869else
6870    i=0
6871  teststring=ABCD
6872
6873  case $build_os in
6874  msdosdjgpp*)
6875    # On DJGPP, this test can blow up pretty badly due to problems in libc
6876    # (any single argument exceeding 2000 bytes causes a buffer overrun
6877    # during glob expansion).  Even if it were fixed, the result of this
6878    # check would be larger than it should be.
6879    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6880    ;;
6881
6882  gnu*)
6883    # Under GNU Hurd, this test is not required because there is
6884    # no limit to the length of command line arguments.
6885    # Libtool will interpret -1 as no limit whatsoever
6886    lt_cv_sys_max_cmd_len=-1;
6887    ;;
6888
6889  cygwin* | mingw* | cegcc*)
6890    # On Win9x/ME, this test blows up -- it succeeds, but takes
6891    # about 5 minutes as the teststring grows exponentially.
6892    # Worse, since 9x/ME are not pre-emptively multitasking,
6893    # you end up with a "frozen" computer, even though with patience
6894    # the test eventually succeeds (with a max line length of 256k).
6895    # Instead, let's just punt: use the minimum linelength reported by
6896    # all of the supported platforms: 8192 (on NT/2K/XP).
6897    lt_cv_sys_max_cmd_len=8192;
6898    ;;
6899
6900  mint*)
6901    # On MiNT this can take a long time and run out of memory.
6902    lt_cv_sys_max_cmd_len=8192;
6903    ;;
6904
6905  amigaos*)
6906    # On AmigaOS with pdksh, this test takes hours, literally.
6907    # So we just punt and use a minimum line length of 8192.
6908    lt_cv_sys_max_cmd_len=8192;
6909    ;;
6910
6911  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6912    # This has been around since 386BSD, at least.  Likely further.
6913    if test -x /sbin/sysctl; then
6914      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6915    elif test -x /usr/sbin/sysctl; then
6916      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6917    else
6918      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6919    fi
6920    # And add a safety zone
6921    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6922    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6923    ;;
6924
6925  interix*)
6926    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6927    lt_cv_sys_max_cmd_len=196608
6928    ;;
6929
6930  os2*)
6931    # The test takes a long time on OS/2.
6932    lt_cv_sys_max_cmd_len=8192
6933    ;;
6934
6935  osf*)
6936    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6937    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6938    # nice to cause kernel panics so lets avoid the loop below.
6939    # First set a reasonable default.
6940    lt_cv_sys_max_cmd_len=16384
6941    #
6942    if test -x /sbin/sysconfig; then
6943      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6944        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6945      esac
6946    fi
6947    ;;
6948  sco3.2v5*)
6949    lt_cv_sys_max_cmd_len=102400
6950    ;;
6951  sysv5* | sco5v6* | sysv4.2uw2*)
6952    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6953    if test -n "$kargmax"; then
6954      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6955    else
6956      lt_cv_sys_max_cmd_len=32768
6957    fi
6958    ;;
6959  *)
6960    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6961    if test -n "$lt_cv_sys_max_cmd_len" && \
6962       test undefined != "$lt_cv_sys_max_cmd_len"; then
6963      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6964      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6965    else
6966      # Make teststring a little bigger before we do anything with it.
6967      # a 1K string should be a reasonable start.
6968      for i in 1 2 3 4 5 6 7 8; do
6969        teststring=$teststring$teststring
6970      done
6971      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6972      # If test is not a shell built-in, we'll probably end up computing a
6973      # maximum length that is only half of the actual maximum length, but
6974      # we can't tell.
6975      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6976	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6977	      test 17 != "$i" # 1/2 MB should be enough
6978      do
6979        i=`expr $i + 1`
6980        teststring=$teststring$teststring
6981      done
6982      # Only check the string length outside the loop.
6983      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6984      teststring=
6985      # Add a significant safety factor because C++ compilers can tack on
6986      # massive amounts of additional arguments before passing them to the
6987      # linker.  It appears as though 1/2 is a usable value.
6988      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6989    fi
6990    ;;
6991  esac
6992
6993fi
6994
6995if test -n "$lt_cv_sys_max_cmd_len"; then
6996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6997$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6998else
6999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7000$as_echo "none" >&6; }
7001fi
7002max_cmd_len=$lt_cv_sys_max_cmd_len
7003
7004
7005
7006
7007
7008
7009: ${CP="cp -f"}
7010: ${MV="mv -f"}
7011: ${RM="rm -f"}
7012
7013if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7014  lt_unset=unset
7015else
7016  lt_unset=false
7017fi
7018
7019
7020
7021
7022
7023# test EBCDIC or ASCII
7024case `echo X|tr X '\101'` in
7025 A) # ASCII based system
7026    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7027  lt_SP2NL='tr \040 \012'
7028  lt_NL2SP='tr \015\012 \040\040'
7029  ;;
7030 *) # EBCDIC based system
7031  lt_SP2NL='tr \100 \n'
7032  lt_NL2SP='tr \r\n \100\100'
7033  ;;
7034esac
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7045$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7046if ${lt_cv_to_host_file_cmd+:} false; then :
7047  $as_echo_n "(cached) " >&6
7048else
7049  case $host in
7050  *-*-mingw* )
7051    case $build in
7052      *-*-mingw* ) # actually msys
7053        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7054        ;;
7055      *-*-cygwin* )
7056        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7057        ;;
7058      * ) # otherwise, assume *nix
7059        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7060        ;;
7061    esac
7062    ;;
7063  *-*-cygwin* )
7064    case $build in
7065      *-*-mingw* ) # actually msys
7066        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7067        ;;
7068      *-*-cygwin* )
7069        lt_cv_to_host_file_cmd=func_convert_file_noop
7070        ;;
7071      * ) # otherwise, assume *nix
7072        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7073        ;;
7074    esac
7075    ;;
7076  * ) # unhandled hosts (and "normal" native builds)
7077    lt_cv_to_host_file_cmd=func_convert_file_noop
7078    ;;
7079esac
7080
7081fi
7082
7083to_host_file_cmd=$lt_cv_to_host_file_cmd
7084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7085$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7086
7087
7088
7089
7090
7091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7092$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7093if ${lt_cv_to_tool_file_cmd+:} false; then :
7094  $as_echo_n "(cached) " >&6
7095else
7096  #assume ordinary cross tools, or native build.
7097lt_cv_to_tool_file_cmd=func_convert_file_noop
7098case $host in
7099  *-*-mingw* )
7100    case $build in
7101      *-*-mingw* ) # actually msys
7102        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7103        ;;
7104    esac
7105    ;;
7106esac
7107
7108fi
7109
7110to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7112$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7113
7114
7115
7116
7117
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7119$as_echo_n "checking for $LD option to reload object files... " >&6; }
7120if ${lt_cv_ld_reload_flag+:} false; then :
7121  $as_echo_n "(cached) " >&6
7122else
7123  lt_cv_ld_reload_flag='-r'
7124fi
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7126$as_echo "$lt_cv_ld_reload_flag" >&6; }
7127reload_flag=$lt_cv_ld_reload_flag
7128case $reload_flag in
7129"" | " "*) ;;
7130*) reload_flag=" $reload_flag" ;;
7131esac
7132reload_cmds='$LD$reload_flag -o $output$reload_objs'
7133case $host_os in
7134  cygwin* | mingw* | pw32* | cegcc*)
7135    if test yes != "$GCC"; then
7136      reload_cmds=false
7137    fi
7138    ;;
7139  darwin*)
7140    if test yes = "$GCC"; then
7141      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7142    else
7143      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7144    fi
7145    ;;
7146esac
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156if test -n "$ac_tool_prefix"; then
7157  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7158set dummy ${ac_tool_prefix}objdump; ac_word=$2
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160$as_echo_n "checking for $ac_word... " >&6; }
7161if ${ac_cv_prog_OBJDUMP+:} false; then :
7162  $as_echo_n "(cached) " >&6
7163else
7164  if test -n "$OBJDUMP"; then
7165  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7166else
7167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168for as_dir in $PATH
7169do
7170  IFS=$as_save_IFS
7171  test -z "$as_dir" && as_dir=.
7172    for ac_exec_ext in '' $ac_executable_extensions; do
7173  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176    break 2
7177  fi
7178done
7179  done
7180IFS=$as_save_IFS
7181
7182fi
7183fi
7184OBJDUMP=$ac_cv_prog_OBJDUMP
7185if test -n "$OBJDUMP"; then
7186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7187$as_echo "$OBJDUMP" >&6; }
7188else
7189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190$as_echo "no" >&6; }
7191fi
7192
7193
7194fi
7195if test -z "$ac_cv_prog_OBJDUMP"; then
7196  ac_ct_OBJDUMP=$OBJDUMP
7197  # Extract the first word of "objdump", so it can be a program name with args.
7198set dummy objdump; ac_word=$2
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200$as_echo_n "checking for $ac_word... " >&6; }
7201if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7202  $as_echo_n "(cached) " >&6
7203else
7204  if test -n "$ac_ct_OBJDUMP"; then
7205  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7206else
7207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208for as_dir in $PATH
7209do
7210  IFS=$as_save_IFS
7211  test -z "$as_dir" && as_dir=.
7212    for ac_exec_ext in '' $ac_executable_extensions; do
7213  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7215    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216    break 2
7217  fi
7218done
7219  done
7220IFS=$as_save_IFS
7221
7222fi
7223fi
7224ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7225if test -n "$ac_ct_OBJDUMP"; then
7226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7227$as_echo "$ac_ct_OBJDUMP" >&6; }
7228else
7229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230$as_echo "no" >&6; }
7231fi
7232
7233  if test "x$ac_ct_OBJDUMP" = x; then
7234    OBJDUMP="false"
7235  else
7236    case $cross_compiling:$ac_tool_warned in
7237yes:)
7238{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7240ac_tool_warned=yes ;;
7241esac
7242    OBJDUMP=$ac_ct_OBJDUMP
7243  fi
7244else
7245  OBJDUMP="$ac_cv_prog_OBJDUMP"
7246fi
7247
7248test -z "$OBJDUMP" && OBJDUMP=objdump
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7259$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7260if ${lt_cv_deplibs_check_method+:} false; then :
7261  $as_echo_n "(cached) " >&6
7262else
7263  lt_cv_file_magic_cmd='$MAGIC_CMD'
7264lt_cv_file_magic_test_file=
7265lt_cv_deplibs_check_method='unknown'
7266# Need to set the preceding variable on all platforms that support
7267# interlibrary dependencies.
7268# 'none' -- dependencies not supported.
7269# 'unknown' -- same as none, but documents that we really don't know.
7270# 'pass_all' -- all dependencies passed with no checks.
7271# 'test_compile' -- check by making test program.
7272# 'file_magic [[regex]]' -- check by looking for files in library path
7273# that responds to the $file_magic_cmd with a given extended regex.
7274# If you have 'file' or equivalent on your system and you're not sure
7275# whether 'pass_all' will *always* work, you probably want this one.
7276
7277case $host_os in
7278aix[4-9]*)
7279  lt_cv_deplibs_check_method=pass_all
7280  ;;
7281
7282beos*)
7283  lt_cv_deplibs_check_method=pass_all
7284  ;;
7285
7286bsdi[45]*)
7287  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7288  lt_cv_file_magic_cmd='/usr/bin/file -L'
7289  lt_cv_file_magic_test_file=/shlib/libc.so
7290  ;;
7291
7292cygwin*)
7293  # func_win32_libid is a shell function defined in ltmain.sh
7294  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7295  lt_cv_file_magic_cmd='func_win32_libid'
7296  ;;
7297
7298mingw* | pw32*)
7299  # Base MSYS/MinGW do not provide the 'file' command needed by
7300  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7301  # unless we find 'file', for example because we are cross-compiling.
7302  if ( file / ) >/dev/null 2>&1; then
7303    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7304    lt_cv_file_magic_cmd='func_win32_libid'
7305  else
7306    # Keep this pattern in sync with the one in func_win32_libid.
7307    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7308    lt_cv_file_magic_cmd='$OBJDUMP -f'
7309  fi
7310  ;;
7311
7312cegcc*)
7313  # use the weaker test based on 'objdump'. See mingw*.
7314  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7315  lt_cv_file_magic_cmd='$OBJDUMP -f'
7316  ;;
7317
7318darwin* | rhapsody*)
7319  lt_cv_deplibs_check_method=pass_all
7320  ;;
7321
7322freebsd* | dragonfly*)
7323  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7324    case $host_cpu in
7325    i*86 )
7326      # Not sure whether the presence of OpenBSD here was a mistake.
7327      # Let's accept both of them until this is cleared up.
7328      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7329      lt_cv_file_magic_cmd=/usr/bin/file
7330      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7331      ;;
7332    esac
7333  else
7334    lt_cv_deplibs_check_method=pass_all
7335  fi
7336  ;;
7337
7338haiku*)
7339  lt_cv_deplibs_check_method=pass_all
7340  ;;
7341
7342hpux10.20* | hpux11*)
7343  lt_cv_file_magic_cmd=/usr/bin/file
7344  case $host_cpu in
7345  ia64*)
7346    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7347    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7348    ;;
7349  hppa*64*)
7350    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]'
7351    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7352    ;;
7353  *)
7354    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7355    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7356    ;;
7357  esac
7358  ;;
7359
7360interix[3-9]*)
7361  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7362  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7363  ;;
7364
7365irix5* | irix6* | nonstopux*)
7366  case $LD in
7367  *-32|*"-32 ") libmagic=32-bit;;
7368  *-n32|*"-n32 ") libmagic=N32;;
7369  *-64|*"-64 ") libmagic=64-bit;;
7370  *) libmagic=never-match;;
7371  esac
7372  lt_cv_deplibs_check_method=pass_all
7373  ;;
7374
7375# This must be glibc/ELF.
7376linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7377  lt_cv_deplibs_check_method=pass_all
7378  ;;
7379
7380netbsd* | netbsdelf*-gnu)
7381  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7382    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7383  else
7384    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7385  fi
7386  ;;
7387
7388newos6*)
7389  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7390  lt_cv_file_magic_cmd=/usr/bin/file
7391  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7392  ;;
7393
7394*nto* | *qnx*)
7395  lt_cv_deplibs_check_method=pass_all
7396  ;;
7397
7398openbsd* | bitrig*)
7399  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7400    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7401  else
7402    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7403  fi
7404  ;;
7405
7406osf3* | osf4* | osf5*)
7407  lt_cv_deplibs_check_method=pass_all
7408  ;;
7409
7410rdos*)
7411  lt_cv_deplibs_check_method=pass_all
7412  ;;
7413
7414solaris*)
7415  lt_cv_deplibs_check_method=pass_all
7416  ;;
7417
7418sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7419  lt_cv_deplibs_check_method=pass_all
7420  ;;
7421
7422sysv4 | sysv4.3*)
7423  case $host_vendor in
7424  motorola)
7425    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]'
7426    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7427    ;;
7428  ncr)
7429    lt_cv_deplibs_check_method=pass_all
7430    ;;
7431  sequent)
7432    lt_cv_file_magic_cmd='/bin/file'
7433    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7434    ;;
7435  sni)
7436    lt_cv_file_magic_cmd='/bin/file'
7437    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7438    lt_cv_file_magic_test_file=/lib/libc.so
7439    ;;
7440  siemens)
7441    lt_cv_deplibs_check_method=pass_all
7442    ;;
7443  pc)
7444    lt_cv_deplibs_check_method=pass_all
7445    ;;
7446  esac
7447  ;;
7448
7449tpf*)
7450  lt_cv_deplibs_check_method=pass_all
7451  ;;
7452os2*)
7453  lt_cv_deplibs_check_method=pass_all
7454  ;;
7455esac
7456
7457fi
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7459$as_echo "$lt_cv_deplibs_check_method" >&6; }
7460
7461file_magic_glob=
7462want_nocaseglob=no
7463if test "$build" = "$host"; then
7464  case $host_os in
7465  mingw* | pw32*)
7466    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7467      want_nocaseglob=yes
7468    else
7469      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7470    fi
7471    ;;
7472  esac
7473fi
7474
7475file_magic_cmd=$lt_cv_file_magic_cmd
7476deplibs_check_method=$lt_cv_deplibs_check_method
7477test -z "$deplibs_check_method" && deplibs_check_method=unknown
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500if test -n "$ac_tool_prefix"; then
7501  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7502set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504$as_echo_n "checking for $ac_word... " >&6; }
7505if ${ac_cv_prog_DLLTOOL+:} false; then :
7506  $as_echo_n "(cached) " >&6
7507else
7508  if test -n "$DLLTOOL"; then
7509  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7510else
7511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512for as_dir in $PATH
7513do
7514  IFS=$as_save_IFS
7515  test -z "$as_dir" && as_dir=.
7516    for ac_exec_ext in '' $ac_executable_extensions; do
7517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7518    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520    break 2
7521  fi
7522done
7523  done
7524IFS=$as_save_IFS
7525
7526fi
7527fi
7528DLLTOOL=$ac_cv_prog_DLLTOOL
7529if test -n "$DLLTOOL"; then
7530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7531$as_echo "$DLLTOOL" >&6; }
7532else
7533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534$as_echo "no" >&6; }
7535fi
7536
7537
7538fi
7539if test -z "$ac_cv_prog_DLLTOOL"; then
7540  ac_ct_DLLTOOL=$DLLTOOL
7541  # Extract the first word of "dlltool", so it can be a program name with args.
7542set dummy dlltool; ac_word=$2
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544$as_echo_n "checking for $ac_word... " >&6; }
7545if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7546  $as_echo_n "(cached) " >&6
7547else
7548  if test -n "$ac_ct_DLLTOOL"; then
7549  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7550else
7551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552for as_dir in $PATH
7553do
7554  IFS=$as_save_IFS
7555  test -z "$as_dir" && as_dir=.
7556    for ac_exec_ext in '' $ac_executable_extensions; do
7557  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560    break 2
7561  fi
7562done
7563  done
7564IFS=$as_save_IFS
7565
7566fi
7567fi
7568ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7569if test -n "$ac_ct_DLLTOOL"; then
7570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7571$as_echo "$ac_ct_DLLTOOL" >&6; }
7572else
7573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574$as_echo "no" >&6; }
7575fi
7576
7577  if test "x$ac_ct_DLLTOOL" = x; then
7578    DLLTOOL="false"
7579  else
7580    case $cross_compiling:$ac_tool_warned in
7581yes:)
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7584ac_tool_warned=yes ;;
7585esac
7586    DLLTOOL=$ac_ct_DLLTOOL
7587  fi
7588else
7589  DLLTOOL="$ac_cv_prog_DLLTOOL"
7590fi
7591
7592test -z "$DLLTOOL" && DLLTOOL=dlltool
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7604$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7605if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7606  $as_echo_n "(cached) " >&6
7607else
7608  lt_cv_sharedlib_from_linklib_cmd='unknown'
7609
7610case $host_os in
7611cygwin* | mingw* | pw32* | cegcc*)
7612  # two different shell functions defined in ltmain.sh;
7613  # decide which one to use based on capabilities of $DLLTOOL
7614  case `$DLLTOOL --help 2>&1` in
7615  *--identify-strict*)
7616    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7617    ;;
7618  *)
7619    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7620    ;;
7621  esac
7622  ;;
7623*)
7624  # fallback: assume linklib IS sharedlib
7625  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7626  ;;
7627esac
7628
7629fi
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7631$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7632sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7633test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7634
7635
7636
7637
7638
7639
7640
7641if test -n "$ac_tool_prefix"; then
7642  for ac_prog in ar
7643  do
7644    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7645set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647$as_echo_n "checking for $ac_word... " >&6; }
7648if ${ac_cv_prog_AR+:} false; then :
7649  $as_echo_n "(cached) " >&6
7650else
7651  if test -n "$AR"; then
7652  ac_cv_prog_AR="$AR" # Let the user override the test.
7653else
7654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657  IFS=$as_save_IFS
7658  test -z "$as_dir" && as_dir=.
7659    for ac_exec_ext in '' $ac_executable_extensions; do
7660  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663    break 2
7664  fi
7665done
7666  done
7667IFS=$as_save_IFS
7668
7669fi
7670fi
7671AR=$ac_cv_prog_AR
7672if test -n "$AR"; then
7673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7674$as_echo "$AR" >&6; }
7675else
7676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677$as_echo "no" >&6; }
7678fi
7679
7680
7681    test -n "$AR" && break
7682  done
7683fi
7684if test -z "$AR"; then
7685  ac_ct_AR=$AR
7686  for ac_prog in ar
7687do
7688  # Extract the first word of "$ac_prog", so it can be a program name with args.
7689set dummy $ac_prog; ac_word=$2
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691$as_echo_n "checking for $ac_word... " >&6; }
7692if ${ac_cv_prog_ac_ct_AR+:} false; then :
7693  $as_echo_n "(cached) " >&6
7694else
7695  if test -n "$ac_ct_AR"; then
7696  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7697else
7698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699for as_dir in $PATH
7700do
7701  IFS=$as_save_IFS
7702  test -z "$as_dir" && as_dir=.
7703    for ac_exec_ext in '' $ac_executable_extensions; do
7704  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7705    ac_cv_prog_ac_ct_AR="$ac_prog"
7706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7707    break 2
7708  fi
7709done
7710  done
7711IFS=$as_save_IFS
7712
7713fi
7714fi
7715ac_ct_AR=$ac_cv_prog_ac_ct_AR
7716if test -n "$ac_ct_AR"; then
7717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7718$as_echo "$ac_ct_AR" >&6; }
7719else
7720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721$as_echo "no" >&6; }
7722fi
7723
7724
7725  test -n "$ac_ct_AR" && break
7726done
7727
7728  if test "x$ac_ct_AR" = x; then
7729    AR="false"
7730  else
7731    case $cross_compiling:$ac_tool_warned in
7732yes:)
7733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7735ac_tool_warned=yes ;;
7736esac
7737    AR=$ac_ct_AR
7738  fi
7739fi
7740
7741: ${AR=ar}
7742: ${AR_FLAGS=cru}
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7755$as_echo_n "checking for archiver @FILE support... " >&6; }
7756if ${lt_cv_ar_at_file+:} false; then :
7757  $as_echo_n "(cached) " >&6
7758else
7759  lt_cv_ar_at_file=no
7760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761/* end confdefs.h.  */
7762
7763int
7764main ()
7765{
7766
7767  ;
7768  return 0;
7769}
7770_ACEOF
7771if ac_fn_c_try_compile "$LINENO"; then :
7772  echo conftest.$ac_objext > conftest.lst
7773      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7774      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7775  (eval $lt_ar_try) 2>&5
7776  ac_status=$?
7777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7778  test $ac_status = 0; }
7779      if test 0 -eq "$ac_status"; then
7780	# Ensure the archiver fails upon bogus file names.
7781	rm -f conftest.$ac_objext libconftest.a
7782	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7783  (eval $lt_ar_try) 2>&5
7784  ac_status=$?
7785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7786  test $ac_status = 0; }
7787	if test 0 -ne "$ac_status"; then
7788          lt_cv_ar_at_file=@
7789        fi
7790      fi
7791      rm -f conftest.* libconftest.a
7792
7793fi
7794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7795
7796fi
7797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7798$as_echo "$lt_cv_ar_at_file" >&6; }
7799
7800if test no = "$lt_cv_ar_at_file"; then
7801  archiver_list_spec=
7802else
7803  archiver_list_spec=$lt_cv_ar_at_file
7804fi
7805
7806
7807
7808
7809
7810
7811
7812if test -n "$ac_tool_prefix"; then
7813  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7814set dummy ${ac_tool_prefix}strip; ac_word=$2
7815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816$as_echo_n "checking for $ac_word... " >&6; }
7817if ${ac_cv_prog_STRIP+:} false; then :
7818  $as_echo_n "(cached) " >&6
7819else
7820  if test -n "$STRIP"; then
7821  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7822else
7823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824for as_dir in $PATH
7825do
7826  IFS=$as_save_IFS
7827  test -z "$as_dir" && as_dir=.
7828    for ac_exec_ext in '' $ac_executable_extensions; do
7829  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7832    break 2
7833  fi
7834done
7835  done
7836IFS=$as_save_IFS
7837
7838fi
7839fi
7840STRIP=$ac_cv_prog_STRIP
7841if test -n "$STRIP"; then
7842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7843$as_echo "$STRIP" >&6; }
7844else
7845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846$as_echo "no" >&6; }
7847fi
7848
7849
7850fi
7851if test -z "$ac_cv_prog_STRIP"; then
7852  ac_ct_STRIP=$STRIP
7853  # Extract the first word of "strip", so it can be a program name with args.
7854set dummy strip; ac_word=$2
7855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856$as_echo_n "checking for $ac_word... " >&6; }
7857if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7858  $as_echo_n "(cached) " >&6
7859else
7860  if test -n "$ac_ct_STRIP"; then
7861  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7862else
7863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864for as_dir in $PATH
7865do
7866  IFS=$as_save_IFS
7867  test -z "$as_dir" && as_dir=.
7868    for ac_exec_ext in '' $ac_executable_extensions; do
7869  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7870    ac_cv_prog_ac_ct_STRIP="strip"
7871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872    break 2
7873  fi
7874done
7875  done
7876IFS=$as_save_IFS
7877
7878fi
7879fi
7880ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7881if test -n "$ac_ct_STRIP"; then
7882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7883$as_echo "$ac_ct_STRIP" >&6; }
7884else
7885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886$as_echo "no" >&6; }
7887fi
7888
7889  if test "x$ac_ct_STRIP" = x; then
7890    STRIP=":"
7891  else
7892    case $cross_compiling:$ac_tool_warned in
7893yes:)
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7896ac_tool_warned=yes ;;
7897esac
7898    STRIP=$ac_ct_STRIP
7899  fi
7900else
7901  STRIP="$ac_cv_prog_STRIP"
7902fi
7903
7904test -z "$STRIP" && STRIP=:
7905
7906
7907
7908
7909
7910
7911if test -n "$ac_tool_prefix"; then
7912  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7913set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915$as_echo_n "checking for $ac_word... " >&6; }
7916if ${ac_cv_prog_RANLIB+:} false; then :
7917  $as_echo_n "(cached) " >&6
7918else
7919  if test -n "$RANLIB"; then
7920  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7921else
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925  IFS=$as_save_IFS
7926  test -z "$as_dir" && as_dir=.
7927    for ac_exec_ext in '' $ac_executable_extensions; do
7928  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931    break 2
7932  fi
7933done
7934  done
7935IFS=$as_save_IFS
7936
7937fi
7938fi
7939RANLIB=$ac_cv_prog_RANLIB
7940if test -n "$RANLIB"; then
7941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7942$as_echo "$RANLIB" >&6; }
7943else
7944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945$as_echo "no" >&6; }
7946fi
7947
7948
7949fi
7950if test -z "$ac_cv_prog_RANLIB"; then
7951  ac_ct_RANLIB=$RANLIB
7952  # Extract the first word of "ranlib", so it can be a program name with args.
7953set dummy ranlib; ac_word=$2
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955$as_echo_n "checking for $ac_word... " >&6; }
7956if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7957  $as_echo_n "(cached) " >&6
7958else
7959  if test -n "$ac_ct_RANLIB"; then
7960  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7961else
7962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963for as_dir in $PATH
7964do
7965  IFS=$as_save_IFS
7966  test -z "$as_dir" && as_dir=.
7967    for ac_exec_ext in '' $ac_executable_extensions; do
7968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7969    ac_cv_prog_ac_ct_RANLIB="ranlib"
7970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971    break 2
7972  fi
7973done
7974  done
7975IFS=$as_save_IFS
7976
7977fi
7978fi
7979ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7980if test -n "$ac_ct_RANLIB"; then
7981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7982$as_echo "$ac_ct_RANLIB" >&6; }
7983else
7984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985$as_echo "no" >&6; }
7986fi
7987
7988  if test "x$ac_ct_RANLIB" = x; then
7989    RANLIB=":"
7990  else
7991    case $cross_compiling:$ac_tool_warned in
7992yes:)
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7995ac_tool_warned=yes ;;
7996esac
7997    RANLIB=$ac_ct_RANLIB
7998  fi
7999else
8000  RANLIB="$ac_cv_prog_RANLIB"
8001fi
8002
8003test -z "$RANLIB" && RANLIB=:
8004
8005
8006
8007
8008
8009
8010# Determine commands to create old-style static archives.
8011old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8012old_postinstall_cmds='chmod 644 $oldlib'
8013old_postuninstall_cmds=
8014
8015if test -n "$RANLIB"; then
8016  case $host_os in
8017  bitrig* | openbsd*)
8018    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8019    ;;
8020  *)
8021    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8022    ;;
8023  esac
8024  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8025fi
8026
8027case $host_os in
8028  darwin*)
8029    lock_old_archive_extraction=yes ;;
8030  *)
8031    lock_old_archive_extraction=no ;;
8032esac
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072# If no C compiler was specified, use CC.
8073LTCC=${LTCC-"$CC"}
8074
8075# If no C compiler flags were specified, use CFLAGS.
8076LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8077
8078# Allow CC to be a program name with arguments.
8079compiler=$CC
8080
8081
8082# Check for command to grab the raw symbol name followed by C symbol from nm.
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8084$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8085if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8086  $as_echo_n "(cached) " >&6
8087else
8088
8089# These are sane defaults that work on at least a few old systems.
8090# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8091
8092# Character class describing NM global symbol codes.
8093symcode='[BCDEGRST]'
8094
8095# Regexp to match symbols that can be accessed directly from C.
8096sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8097
8098# Define system-specific variables.
8099case $host_os in
8100aix*)
8101  symcode='[BCDT]'
8102  ;;
8103cygwin* | mingw* | pw32* | cegcc*)
8104  symcode='[ABCDGISTW]'
8105  ;;
8106hpux*)
8107  if test ia64 = "$host_cpu"; then
8108    symcode='[ABCDEGRST]'
8109  fi
8110  ;;
8111irix* | nonstopux*)
8112  symcode='[BCDEGRST]'
8113  ;;
8114osf*)
8115  symcode='[BCDEGQRST]'
8116  ;;
8117solaris*)
8118  symcode='[BDRT]'
8119  ;;
8120sco3.2v5*)
8121  symcode='[DT]'
8122  ;;
8123sysv4.2uw2*)
8124  symcode='[DT]'
8125  ;;
8126sysv5* | sco5v6* | unixware* | OpenUNIX*)
8127  symcode='[ABDT]'
8128  ;;
8129sysv4)
8130  symcode='[DFNSTU]'
8131  ;;
8132esac
8133
8134# If we're using GNU nm, then use its standard symbol codes.
8135case `$NM -V 2>&1` in
8136*GNU* | *'with BFD'*)
8137  symcode='[ABCDGIRSTW]' ;;
8138esac
8139
8140if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8141  # Gets list of data symbols to import.
8142  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8143  # Adjust the below global symbol transforms to fixup imported variables.
8144  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8145  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8146  lt_c_name_lib_hook="\
8147  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8148  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8149else
8150  # Disable hooks by default.
8151  lt_cv_sys_global_symbol_to_import=
8152  lt_cdecl_hook=
8153  lt_c_name_hook=
8154  lt_c_name_lib_hook=
8155fi
8156
8157# Transform an extracted symbol line into a proper C declaration.
8158# Some systems (esp. on ia64) link data and code symbols differently,
8159# so use this general approach.
8160lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8161$lt_cdecl_hook\
8162" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8163" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8164
8165# Transform an extracted symbol line into symbol name and symbol address
8166lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8167$lt_c_name_hook\
8168" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8169" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8170
8171# Transform an extracted symbol line into symbol name with lib prefix and
8172# symbol address.
8173lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8174$lt_c_name_lib_hook\
8175" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8176" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8177" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8178
8179# Handle CRLF in mingw tool chain
8180opt_cr=
8181case $build_os in
8182mingw*)
8183  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8184  ;;
8185esac
8186
8187# Try without a prefix underscore, then with it.
8188for ac_symprfx in "" "_"; do
8189
8190  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8191  symxfrm="\\1 $ac_symprfx\\2 \\2"
8192
8193  # Write the raw and C identifiers.
8194  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8195    # Fake it for dumpbin and say T for any non-static function,
8196    # D for any global variable and I for any imported variable.
8197    # Also find C++ and __fastcall symbols from MSVC++,
8198    # which start with @ or ?.
8199    lt_cv_sys_global_symbol_pipe="$AWK '"\
8200"     {last_section=section; section=\$ 3};"\
8201"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8202"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8203"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8204"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8205"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8206"     \$ 0!~/External *\|/{next};"\
8207"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8208"     {if(hide[section]) next};"\
8209"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8210"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8211"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8212"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8213"     ' prfx=^$ac_symprfx"
8214  else
8215    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8216  fi
8217  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8218
8219  # Check to see that the pipe works correctly.
8220  pipe_works=no
8221
8222  rm -f conftest*
8223  cat > conftest.$ac_ext <<_LT_EOF
8224#ifdef __cplusplus
8225extern "C" {
8226#endif
8227char nm_test_var;
8228void nm_test_func(void);
8229void nm_test_func(void){}
8230#ifdef __cplusplus
8231}
8232#endif
8233int main(){nm_test_var='a';nm_test_func();return(0);}
8234_LT_EOF
8235
8236  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8237  (eval $ac_compile) 2>&5
8238  ac_status=$?
8239  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8240  test $ac_status = 0; }; then
8241    # Now try to grab the symbols.
8242    nlist=conftest.nm
8243    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8244  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8245  ac_status=$?
8246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8247  test $ac_status = 0; } && test -s "$nlist"; then
8248      # Try sorting and uniquifying the output.
8249      if sort "$nlist" | uniq > "$nlist"T; then
8250	mv -f "$nlist"T "$nlist"
8251      else
8252	rm -f "$nlist"T
8253      fi
8254
8255      # Make sure that we snagged all the symbols we need.
8256      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8257	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8258	  cat <<_LT_EOF > conftest.$ac_ext
8259/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8260#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8261/* DATA imports from DLLs on WIN32 can't be const, because runtime
8262   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8263# define LT_DLSYM_CONST
8264#elif defined __osf__
8265/* This system does not cope well with relocations in const data.  */
8266# define LT_DLSYM_CONST
8267#else
8268# define LT_DLSYM_CONST const
8269#endif
8270
8271#ifdef __cplusplus
8272extern "C" {
8273#endif
8274
8275_LT_EOF
8276	  # Now generate the symbol file.
8277	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8278
8279	  cat <<_LT_EOF >> conftest.$ac_ext
8280
8281/* The mapping between symbol names and symbols.  */
8282LT_DLSYM_CONST struct {
8283  const char *name;
8284  void       *address;
8285}
8286lt__PROGRAM__LTX_preloaded_symbols[] =
8287{
8288  { "@PROGRAM@", (void *) 0 },
8289_LT_EOF
8290	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8291	  cat <<\_LT_EOF >> conftest.$ac_ext
8292  {0, (void *) 0}
8293};
8294
8295/* This works around a problem in FreeBSD linker */
8296#ifdef FREEBSD_WORKAROUND
8297static const void *lt_preloaded_setup() {
8298  return lt__PROGRAM__LTX_preloaded_symbols;
8299}
8300#endif
8301
8302#ifdef __cplusplus
8303}
8304#endif
8305_LT_EOF
8306	  # Now try linking the two files.
8307	  mv conftest.$ac_objext conftstm.$ac_objext
8308	  lt_globsym_save_LIBS=$LIBS
8309	  lt_globsym_save_CFLAGS=$CFLAGS
8310	  LIBS=conftstm.$ac_objext
8311	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8312	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8313  (eval $ac_link) 2>&5
8314  ac_status=$?
8315  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8316  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8317	    pipe_works=yes
8318	  fi
8319	  LIBS=$lt_globsym_save_LIBS
8320	  CFLAGS=$lt_globsym_save_CFLAGS
8321	else
8322	  echo "cannot find nm_test_func in $nlist" >&5
8323	fi
8324      else
8325	echo "cannot find nm_test_var in $nlist" >&5
8326      fi
8327    else
8328      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8329    fi
8330  else
8331    echo "$progname: failed program was:" >&5
8332    cat conftest.$ac_ext >&5
8333  fi
8334  rm -rf conftest* conftst*
8335
8336  # Do not use the global_symbol_pipe unless it works.
8337  if test yes = "$pipe_works"; then
8338    break
8339  else
8340    lt_cv_sys_global_symbol_pipe=
8341  fi
8342done
8343
8344fi
8345
8346if test -z "$lt_cv_sys_global_symbol_pipe"; then
8347  lt_cv_sys_global_symbol_to_cdecl=
8348fi
8349if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8351$as_echo "failed" >&6; }
8352else
8353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8354$as_echo "ok" >&6; }
8355fi
8356
8357# Response file support.
8358if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8359  nm_file_list_spec='@'
8360elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8361  nm_file_list_spec='@'
8362fi
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8401$as_echo_n "checking for sysroot... " >&6; }
8402
8403# Check whether --with-sysroot was given.
8404if test "${with_sysroot+set}" = set; then :
8405  withval=$with_sysroot;
8406else
8407  with_sysroot=no
8408fi
8409
8410
8411lt_sysroot=
8412case $with_sysroot in #(
8413 yes)
8414   if test yes = "$GCC"; then
8415     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8416   fi
8417   ;; #(
8418 /*)
8419   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8420   ;; #(
8421 no|'')
8422   ;; #(
8423 *)
8424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8425$as_echo "$with_sysroot" >&6; }
8426   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8427   ;;
8428esac
8429
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8431$as_echo "${lt_sysroot:-no}" >&6; }
8432
8433
8434
8435
8436
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8438$as_echo_n "checking for a working dd... " >&6; }
8439if ${ac_cv_path_lt_DD+:} false; then :
8440  $as_echo_n "(cached) " >&6
8441else
8442  printf 0123456789abcdef0123456789abcdef >conftest.i
8443cat conftest.i conftest.i >conftest2.i
8444: ${lt_DD:=$DD}
8445if test -z "$lt_DD"; then
8446  ac_path_lt_DD_found=false
8447  # Loop through the user's path and test for each of PROGNAME-LIST
8448  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449for as_dir in $PATH
8450do
8451  IFS=$as_save_IFS
8452  test -z "$as_dir" && as_dir=.
8453    for ac_prog in dd; do
8454    for ac_exec_ext in '' $ac_executable_extensions; do
8455      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8456      as_fn_executable_p "$ac_path_lt_DD" || continue
8457if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8458  cmp -s conftest.i conftest.out \
8459  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8460fi
8461      $ac_path_lt_DD_found && break 3
8462    done
8463  done
8464  done
8465IFS=$as_save_IFS
8466  if test -z "$ac_cv_path_lt_DD"; then
8467    :
8468  fi
8469else
8470  ac_cv_path_lt_DD=$lt_DD
8471fi
8472
8473rm -f conftest.i conftest2.i conftest.out
8474fi
8475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8476$as_echo "$ac_cv_path_lt_DD" >&6; }
8477
8478
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8480$as_echo_n "checking how to truncate binary pipes... " >&6; }
8481if ${lt_cv_truncate_bin+:} false; then :
8482  $as_echo_n "(cached) " >&6
8483else
8484  printf 0123456789abcdef0123456789abcdef >conftest.i
8485cat conftest.i conftest.i >conftest2.i
8486lt_cv_truncate_bin=
8487if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8488  cmp -s conftest.i conftest.out \
8489  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8490fi
8491rm -f conftest.i conftest2.i conftest.out
8492test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8493fi
8494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8495$as_echo "$lt_cv_truncate_bin" >&6; }
8496
8497
8498
8499
8500
8501
8502
8503# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8504func_cc_basename ()
8505{
8506    for cc_temp in $*""; do
8507      case $cc_temp in
8508        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8509        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8510        \-*) ;;
8511        *) break;;
8512      esac
8513    done
8514    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8515}
8516
8517# Check whether --enable-libtool-lock was given.
8518if test "${enable_libtool_lock+set}" = set; then :
8519  enableval=$enable_libtool_lock;
8520fi
8521
8522test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8523
8524# Some flags need to be propagated to the compiler or linker for good
8525# libtool support.
8526case $host in
8527ia64-*-hpux*)
8528  # Find out what ABI is being produced by ac_compile, and set mode
8529  # options accordingly.
8530  echo 'int i;' > conftest.$ac_ext
8531  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8532  (eval $ac_compile) 2>&5
8533  ac_status=$?
8534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8535  test $ac_status = 0; }; then
8536    case `/usr/bin/file conftest.$ac_objext` in
8537      *ELF-32*)
8538	HPUX_IA64_MODE=32
8539	;;
8540      *ELF-64*)
8541	HPUX_IA64_MODE=64
8542	;;
8543    esac
8544  fi
8545  rm -rf conftest*
8546  ;;
8547*-*-irix6*)
8548  # Find out what ABI is being produced by ac_compile, and set linker
8549  # options accordingly.
8550  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8551  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8552  (eval $ac_compile) 2>&5
8553  ac_status=$?
8554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8555  test $ac_status = 0; }; then
8556    if test yes = "$lt_cv_prog_gnu_ld"; then
8557      case `/usr/bin/file conftest.$ac_objext` in
8558	*32-bit*)
8559	  LD="${LD-ld} -melf32bsmip"
8560	  ;;
8561	*N32*)
8562	  LD="${LD-ld} -melf32bmipn32"
8563	  ;;
8564	*64-bit*)
8565	  LD="${LD-ld} -melf64bmip"
8566	;;
8567      esac
8568    else
8569      case `/usr/bin/file conftest.$ac_objext` in
8570	*32-bit*)
8571	  LD="${LD-ld} -32"
8572	  ;;
8573	*N32*)
8574	  LD="${LD-ld} -n32"
8575	  ;;
8576	*64-bit*)
8577	  LD="${LD-ld} -64"
8578	  ;;
8579      esac
8580    fi
8581  fi
8582  rm -rf conftest*
8583  ;;
8584
8585mips64*-*linux*)
8586  # Find out what ABI is being produced by ac_compile, and set linker
8587  # options accordingly.
8588  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8589  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8590  (eval $ac_compile) 2>&5
8591  ac_status=$?
8592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8593  test $ac_status = 0; }; then
8594    emul=elf
8595    case `/usr/bin/file conftest.$ac_objext` in
8596      *32-bit*)
8597	emul="${emul}32"
8598	;;
8599      *64-bit*)
8600	emul="${emul}64"
8601	;;
8602    esac
8603    case `/usr/bin/file conftest.$ac_objext` in
8604      *MSB*)
8605	emul="${emul}btsmip"
8606	;;
8607      *LSB*)
8608	emul="${emul}ltsmip"
8609	;;
8610    esac
8611    case `/usr/bin/file conftest.$ac_objext` in
8612      *N32*)
8613	emul="${emul}n32"
8614	;;
8615    esac
8616    LD="${LD-ld} -m $emul"
8617  fi
8618  rm -rf conftest*
8619  ;;
8620
8621x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8622s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8623  # Find out what ABI is being produced by ac_compile, and set linker
8624  # options accordingly.  Note that the listed cases only cover the
8625  # situations where additional linker options are needed (such as when
8626  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8627  # vice versa); the common cases where no linker options are needed do
8628  # not appear in the list.
8629  echo 'int i;' > conftest.$ac_ext
8630  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8631  (eval $ac_compile) 2>&5
8632  ac_status=$?
8633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8634  test $ac_status = 0; }; then
8635    case `/usr/bin/file conftest.o` in
8636      *32-bit*)
8637	case $host in
8638	  x86_64-*kfreebsd*-gnu)
8639	    LD="${LD-ld} -m elf_i386_fbsd"
8640	    ;;
8641	  x86_64-*linux*)
8642	    case `/usr/bin/file conftest.o` in
8643	      *x86-64*)
8644		LD="${LD-ld} -m elf32_x86_64"
8645		;;
8646	      *)
8647		LD="${LD-ld} -m elf_i386"
8648		;;
8649	    esac
8650	    ;;
8651	  powerpc64le-*linux*)
8652	    LD="${LD-ld} -m elf32lppclinux"
8653	    ;;
8654	  powerpc64-*linux*)
8655	    LD="${LD-ld} -m elf32ppclinux"
8656	    ;;
8657	  s390x-*linux*)
8658	    LD="${LD-ld} -m elf_s390"
8659	    ;;
8660	  sparc64-*linux*)
8661	    LD="${LD-ld} -m elf32_sparc"
8662	    ;;
8663	esac
8664	;;
8665      *64-bit*)
8666	case $host in
8667	  x86_64-*kfreebsd*-gnu)
8668	    LD="${LD-ld} -m elf_x86_64_fbsd"
8669	    ;;
8670	  x86_64-*linux*)
8671	    LD="${LD-ld} -m elf_x86_64"
8672	    ;;
8673	  powerpcle-*linux*)
8674	    LD="${LD-ld} -m elf64lppc"
8675	    ;;
8676	  powerpc-*linux*)
8677	    LD="${LD-ld} -m elf64ppc"
8678	    ;;
8679	  s390*-*linux*|s390*-*tpf*)
8680	    LD="${LD-ld} -m elf64_s390"
8681	    ;;
8682	  sparc*-*linux*)
8683	    LD="${LD-ld} -m elf64_sparc"
8684	    ;;
8685	esac
8686	;;
8687    esac
8688  fi
8689  rm -rf conftest*
8690  ;;
8691
8692*-*-sco3.2v5*)
8693  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8694  SAVE_CFLAGS=$CFLAGS
8695  CFLAGS="$CFLAGS -belf"
8696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8697$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8698if ${lt_cv_cc_needs_belf+:} false; then :
8699  $as_echo_n "(cached) " >&6
8700else
8701  ac_ext=c
8702ac_cpp='$CPP $CPPFLAGS'
8703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8705ac_compiler_gnu=$ac_cv_c_compiler_gnu
8706
8707     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708/* end confdefs.h.  */
8709
8710int
8711main ()
8712{
8713
8714  ;
8715  return 0;
8716}
8717_ACEOF
8718if ac_fn_c_try_link "$LINENO"; then :
8719  lt_cv_cc_needs_belf=yes
8720else
8721  lt_cv_cc_needs_belf=no
8722fi
8723rm -f core conftest.err conftest.$ac_objext \
8724    conftest$ac_exeext conftest.$ac_ext
8725     ac_ext=c
8726ac_cpp='$CPP $CPPFLAGS'
8727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8729ac_compiler_gnu=$ac_cv_c_compiler_gnu
8730
8731fi
8732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8733$as_echo "$lt_cv_cc_needs_belf" >&6; }
8734  if test yes != "$lt_cv_cc_needs_belf"; then
8735    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8736    CFLAGS=$SAVE_CFLAGS
8737  fi
8738  ;;
8739*-*solaris*)
8740  # Find out what ABI is being produced by ac_compile, and set linker
8741  # options accordingly.
8742  echo 'int i;' > conftest.$ac_ext
8743  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8744  (eval $ac_compile) 2>&5
8745  ac_status=$?
8746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8747  test $ac_status = 0; }; then
8748    case `/usr/bin/file conftest.o` in
8749    *64-bit*)
8750      case $lt_cv_prog_gnu_ld in
8751      yes*)
8752        case $host in
8753        i?86-*-solaris*|x86_64-*-solaris*)
8754          LD="${LD-ld} -m elf_x86_64"
8755          ;;
8756        sparc*-*-solaris*)
8757          LD="${LD-ld} -m elf64_sparc"
8758          ;;
8759        esac
8760        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8761        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8762          LD=${LD-ld}_sol2
8763        fi
8764        ;;
8765      *)
8766	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8767	  LD="${LD-ld} -64"
8768	fi
8769	;;
8770      esac
8771      ;;
8772    esac
8773  fi
8774  rm -rf conftest*
8775  ;;
8776esac
8777
8778need_locks=$enable_libtool_lock
8779
8780if test -n "$ac_tool_prefix"; then
8781  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8782set dummy ${ac_tool_prefix}mt; ac_word=$2
8783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8784$as_echo_n "checking for $ac_word... " >&6; }
8785if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8786  $as_echo_n "(cached) " >&6
8787else
8788  if test -n "$MANIFEST_TOOL"; then
8789  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8790else
8791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8792for as_dir in $PATH
8793do
8794  IFS=$as_save_IFS
8795  test -z "$as_dir" && as_dir=.
8796    for ac_exec_ext in '' $ac_executable_extensions; do
8797  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8798    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8800    break 2
8801  fi
8802done
8803  done
8804IFS=$as_save_IFS
8805
8806fi
8807fi
8808MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8809if test -n "$MANIFEST_TOOL"; then
8810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8811$as_echo "$MANIFEST_TOOL" >&6; }
8812else
8813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8814$as_echo "no" >&6; }
8815fi
8816
8817
8818fi
8819if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8820  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8821  # Extract the first word of "mt", so it can be a program name with args.
8822set dummy mt; ac_word=$2
8823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8824$as_echo_n "checking for $ac_word... " >&6; }
8825if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8826  $as_echo_n "(cached) " >&6
8827else
8828  if test -n "$ac_ct_MANIFEST_TOOL"; then
8829  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8830else
8831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832for as_dir in $PATH
8833do
8834  IFS=$as_save_IFS
8835  test -z "$as_dir" && as_dir=.
8836    for ac_exec_ext in '' $ac_executable_extensions; do
8837  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8838    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8840    break 2
8841  fi
8842done
8843  done
8844IFS=$as_save_IFS
8845
8846fi
8847fi
8848ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8849if test -n "$ac_ct_MANIFEST_TOOL"; then
8850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8851$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8852else
8853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8854$as_echo "no" >&6; }
8855fi
8856
8857  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8858    MANIFEST_TOOL=":"
8859  else
8860    case $cross_compiling:$ac_tool_warned in
8861yes:)
8862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8864ac_tool_warned=yes ;;
8865esac
8866    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8867  fi
8868else
8869  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8870fi
8871
8872test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8874$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8875if ${lt_cv_path_mainfest_tool+:} false; then :
8876  $as_echo_n "(cached) " >&6
8877else
8878  lt_cv_path_mainfest_tool=no
8879  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8880  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8881  cat conftest.err >&5
8882  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8883    lt_cv_path_mainfest_tool=yes
8884  fi
8885  rm -f conftest*
8886fi
8887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8888$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8889if test yes != "$lt_cv_path_mainfest_tool"; then
8890  MANIFEST_TOOL=:
8891fi
8892
8893
8894
8895
8896
8897
8898  case $host_os in
8899    rhapsody* | darwin*)
8900    if test -n "$ac_tool_prefix"; then
8901  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8902set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8904$as_echo_n "checking for $ac_word... " >&6; }
8905if ${ac_cv_prog_DSYMUTIL+:} false; then :
8906  $as_echo_n "(cached) " >&6
8907else
8908  if test -n "$DSYMUTIL"; then
8909  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8910else
8911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8912for as_dir in $PATH
8913do
8914  IFS=$as_save_IFS
8915  test -z "$as_dir" && as_dir=.
8916    for ac_exec_ext in '' $ac_executable_extensions; do
8917  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8918    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8920    break 2
8921  fi
8922done
8923  done
8924IFS=$as_save_IFS
8925
8926fi
8927fi
8928DSYMUTIL=$ac_cv_prog_DSYMUTIL
8929if test -n "$DSYMUTIL"; then
8930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8931$as_echo "$DSYMUTIL" >&6; }
8932else
8933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934$as_echo "no" >&6; }
8935fi
8936
8937
8938fi
8939if test -z "$ac_cv_prog_DSYMUTIL"; then
8940  ac_ct_DSYMUTIL=$DSYMUTIL
8941  # Extract the first word of "dsymutil", so it can be a program name with args.
8942set dummy dsymutil; ac_word=$2
8943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8944$as_echo_n "checking for $ac_word... " >&6; }
8945if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8946  $as_echo_n "(cached) " >&6
8947else
8948  if test -n "$ac_ct_DSYMUTIL"; then
8949  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8950else
8951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8952for as_dir in $PATH
8953do
8954  IFS=$as_save_IFS
8955  test -z "$as_dir" && as_dir=.
8956    for ac_exec_ext in '' $ac_executable_extensions; do
8957  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8958    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8960    break 2
8961  fi
8962done
8963  done
8964IFS=$as_save_IFS
8965
8966fi
8967fi
8968ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8969if test -n "$ac_ct_DSYMUTIL"; then
8970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8971$as_echo "$ac_ct_DSYMUTIL" >&6; }
8972else
8973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974$as_echo "no" >&6; }
8975fi
8976
8977  if test "x$ac_ct_DSYMUTIL" = x; then
8978    DSYMUTIL=":"
8979  else
8980    case $cross_compiling:$ac_tool_warned in
8981yes:)
8982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8984ac_tool_warned=yes ;;
8985esac
8986    DSYMUTIL=$ac_ct_DSYMUTIL
8987  fi
8988else
8989  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8990fi
8991
8992    if test -n "$ac_tool_prefix"; then
8993  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8994set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8996$as_echo_n "checking for $ac_word... " >&6; }
8997if ${ac_cv_prog_NMEDIT+:} false; then :
8998  $as_echo_n "(cached) " >&6
8999else
9000  if test -n "$NMEDIT"; then
9001  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9002else
9003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004for as_dir in $PATH
9005do
9006  IFS=$as_save_IFS
9007  test -z "$as_dir" && as_dir=.
9008    for ac_exec_ext in '' $ac_executable_extensions; do
9009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9010    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9012    break 2
9013  fi
9014done
9015  done
9016IFS=$as_save_IFS
9017
9018fi
9019fi
9020NMEDIT=$ac_cv_prog_NMEDIT
9021if test -n "$NMEDIT"; then
9022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9023$as_echo "$NMEDIT" >&6; }
9024else
9025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026$as_echo "no" >&6; }
9027fi
9028
9029
9030fi
9031if test -z "$ac_cv_prog_NMEDIT"; then
9032  ac_ct_NMEDIT=$NMEDIT
9033  # Extract the first word of "nmedit", so it can be a program name with args.
9034set dummy nmedit; ac_word=$2
9035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9036$as_echo_n "checking for $ac_word... " >&6; }
9037if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9038  $as_echo_n "(cached) " >&6
9039else
9040  if test -n "$ac_ct_NMEDIT"; then
9041  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9042else
9043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9044for as_dir in $PATH
9045do
9046  IFS=$as_save_IFS
9047  test -z "$as_dir" && as_dir=.
9048    for ac_exec_ext in '' $ac_executable_extensions; do
9049  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9050    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9052    break 2
9053  fi
9054done
9055  done
9056IFS=$as_save_IFS
9057
9058fi
9059fi
9060ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9061if test -n "$ac_ct_NMEDIT"; then
9062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9063$as_echo "$ac_ct_NMEDIT" >&6; }
9064else
9065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066$as_echo "no" >&6; }
9067fi
9068
9069  if test "x$ac_ct_NMEDIT" = x; then
9070    NMEDIT=":"
9071  else
9072    case $cross_compiling:$ac_tool_warned in
9073yes:)
9074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9076ac_tool_warned=yes ;;
9077esac
9078    NMEDIT=$ac_ct_NMEDIT
9079  fi
9080else
9081  NMEDIT="$ac_cv_prog_NMEDIT"
9082fi
9083
9084    if test -n "$ac_tool_prefix"; then
9085  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9086set dummy ${ac_tool_prefix}lipo; ac_word=$2
9087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9088$as_echo_n "checking for $ac_word... " >&6; }
9089if ${ac_cv_prog_LIPO+:} false; then :
9090  $as_echo_n "(cached) " >&6
9091else
9092  if test -n "$LIPO"; then
9093  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9094else
9095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096for as_dir in $PATH
9097do
9098  IFS=$as_save_IFS
9099  test -z "$as_dir" && as_dir=.
9100    for ac_exec_ext in '' $ac_executable_extensions; do
9101  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9102    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9104    break 2
9105  fi
9106done
9107  done
9108IFS=$as_save_IFS
9109
9110fi
9111fi
9112LIPO=$ac_cv_prog_LIPO
9113if test -n "$LIPO"; then
9114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9115$as_echo "$LIPO" >&6; }
9116else
9117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9118$as_echo "no" >&6; }
9119fi
9120
9121
9122fi
9123if test -z "$ac_cv_prog_LIPO"; then
9124  ac_ct_LIPO=$LIPO
9125  # Extract the first word of "lipo", so it can be a program name with args.
9126set dummy lipo; ac_word=$2
9127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9128$as_echo_n "checking for $ac_word... " >&6; }
9129if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9130  $as_echo_n "(cached) " >&6
9131else
9132  if test -n "$ac_ct_LIPO"; then
9133  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9134else
9135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9136for as_dir in $PATH
9137do
9138  IFS=$as_save_IFS
9139  test -z "$as_dir" && as_dir=.
9140    for ac_exec_ext in '' $ac_executable_extensions; do
9141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9142    ac_cv_prog_ac_ct_LIPO="lipo"
9143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9144    break 2
9145  fi
9146done
9147  done
9148IFS=$as_save_IFS
9149
9150fi
9151fi
9152ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9153if test -n "$ac_ct_LIPO"; then
9154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9155$as_echo "$ac_ct_LIPO" >&6; }
9156else
9157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9158$as_echo "no" >&6; }
9159fi
9160
9161  if test "x$ac_ct_LIPO" = x; then
9162    LIPO=":"
9163  else
9164    case $cross_compiling:$ac_tool_warned in
9165yes:)
9166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9168ac_tool_warned=yes ;;
9169esac
9170    LIPO=$ac_ct_LIPO
9171  fi
9172else
9173  LIPO="$ac_cv_prog_LIPO"
9174fi
9175
9176    if test -n "$ac_tool_prefix"; then
9177  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9178set dummy ${ac_tool_prefix}otool; ac_word=$2
9179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9180$as_echo_n "checking for $ac_word... " >&6; }
9181if ${ac_cv_prog_OTOOL+:} false; then :
9182  $as_echo_n "(cached) " >&6
9183else
9184  if test -n "$OTOOL"; then
9185  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9186else
9187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188for as_dir in $PATH
9189do
9190  IFS=$as_save_IFS
9191  test -z "$as_dir" && as_dir=.
9192    for ac_exec_ext in '' $ac_executable_extensions; do
9193  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9194    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9196    break 2
9197  fi
9198done
9199  done
9200IFS=$as_save_IFS
9201
9202fi
9203fi
9204OTOOL=$ac_cv_prog_OTOOL
9205if test -n "$OTOOL"; then
9206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9207$as_echo "$OTOOL" >&6; }
9208else
9209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9210$as_echo "no" >&6; }
9211fi
9212
9213
9214fi
9215if test -z "$ac_cv_prog_OTOOL"; then
9216  ac_ct_OTOOL=$OTOOL
9217  # Extract the first word of "otool", so it can be a program name with args.
9218set dummy otool; ac_word=$2
9219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9220$as_echo_n "checking for $ac_word... " >&6; }
9221if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9222  $as_echo_n "(cached) " >&6
9223else
9224  if test -n "$ac_ct_OTOOL"; then
9225  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9226else
9227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9228for as_dir in $PATH
9229do
9230  IFS=$as_save_IFS
9231  test -z "$as_dir" && as_dir=.
9232    for ac_exec_ext in '' $ac_executable_extensions; do
9233  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9234    ac_cv_prog_ac_ct_OTOOL="otool"
9235    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9236    break 2
9237  fi
9238done
9239  done
9240IFS=$as_save_IFS
9241
9242fi
9243fi
9244ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9245if test -n "$ac_ct_OTOOL"; then
9246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9247$as_echo "$ac_ct_OTOOL" >&6; }
9248else
9249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9250$as_echo "no" >&6; }
9251fi
9252
9253  if test "x$ac_ct_OTOOL" = x; then
9254    OTOOL=":"
9255  else
9256    case $cross_compiling:$ac_tool_warned in
9257yes:)
9258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9260ac_tool_warned=yes ;;
9261esac
9262    OTOOL=$ac_ct_OTOOL
9263  fi
9264else
9265  OTOOL="$ac_cv_prog_OTOOL"
9266fi
9267
9268    if test -n "$ac_tool_prefix"; then
9269  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9270set dummy ${ac_tool_prefix}otool64; ac_word=$2
9271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9272$as_echo_n "checking for $ac_word... " >&6; }
9273if ${ac_cv_prog_OTOOL64+:} false; then :
9274  $as_echo_n "(cached) " >&6
9275else
9276  if test -n "$OTOOL64"; then
9277  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9278else
9279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9280for as_dir in $PATH
9281do
9282  IFS=$as_save_IFS
9283  test -z "$as_dir" && as_dir=.
9284    for ac_exec_ext in '' $ac_executable_extensions; do
9285  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9286    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9288    break 2
9289  fi
9290done
9291  done
9292IFS=$as_save_IFS
9293
9294fi
9295fi
9296OTOOL64=$ac_cv_prog_OTOOL64
9297if test -n "$OTOOL64"; then
9298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9299$as_echo "$OTOOL64" >&6; }
9300else
9301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302$as_echo "no" >&6; }
9303fi
9304
9305
9306fi
9307if test -z "$ac_cv_prog_OTOOL64"; then
9308  ac_ct_OTOOL64=$OTOOL64
9309  # Extract the first word of "otool64", so it can be a program name with args.
9310set dummy otool64; ac_word=$2
9311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9312$as_echo_n "checking for $ac_word... " >&6; }
9313if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9314  $as_echo_n "(cached) " >&6
9315else
9316  if test -n "$ac_ct_OTOOL64"; then
9317  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9318else
9319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320for as_dir in $PATH
9321do
9322  IFS=$as_save_IFS
9323  test -z "$as_dir" && as_dir=.
9324    for ac_exec_ext in '' $ac_executable_extensions; do
9325  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9326    ac_cv_prog_ac_ct_OTOOL64="otool64"
9327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9328    break 2
9329  fi
9330done
9331  done
9332IFS=$as_save_IFS
9333
9334fi
9335fi
9336ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9337if test -n "$ac_ct_OTOOL64"; then
9338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9339$as_echo "$ac_ct_OTOOL64" >&6; }
9340else
9341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9342$as_echo "no" >&6; }
9343fi
9344
9345  if test "x$ac_ct_OTOOL64" = x; then
9346    OTOOL64=":"
9347  else
9348    case $cross_compiling:$ac_tool_warned in
9349yes:)
9350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9352ac_tool_warned=yes ;;
9353esac
9354    OTOOL64=$ac_ct_OTOOL64
9355  fi
9356else
9357  OTOOL64="$ac_cv_prog_OTOOL64"
9358fi
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9387$as_echo_n "checking for -single_module linker flag... " >&6; }
9388if ${lt_cv_apple_cc_single_mod+:} false; then :
9389  $as_echo_n "(cached) " >&6
9390else
9391  lt_cv_apple_cc_single_mod=no
9392      if test -z "$LT_MULTI_MODULE"; then
9393	# By default we will add the -single_module flag. You can override
9394	# by either setting the environment variable LT_MULTI_MODULE
9395	# non-empty at configure time, or by adding -multi_module to the
9396	# link flags.
9397	rm -rf libconftest.dylib*
9398	echo "int foo(void){return 1;}" > conftest.c
9399	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9400-dynamiclib -Wl,-single_module conftest.c" >&5
9401	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9402	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9403        _lt_result=$?
9404	# If there is a non-empty error log, and "single_module"
9405	# appears in it, assume the flag caused a linker warning
9406        if test -s conftest.err && $GREP single_module conftest.err; then
9407	  cat conftest.err >&5
9408	# Otherwise, if the output was created with a 0 exit code from
9409	# the compiler, it worked.
9410	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9411	  lt_cv_apple_cc_single_mod=yes
9412	else
9413	  cat conftest.err >&5
9414	fi
9415	rm -rf libconftest.dylib*
9416	rm -f conftest.*
9417      fi
9418fi
9419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9420$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9421
9422    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9423$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9424if ${lt_cv_ld_exported_symbols_list+:} false; then :
9425  $as_echo_n "(cached) " >&6
9426else
9427  lt_cv_ld_exported_symbols_list=no
9428      save_LDFLAGS=$LDFLAGS
9429      echo "_main" > conftest.sym
9430      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9431      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432/* end confdefs.h.  */
9433
9434int
9435main ()
9436{
9437
9438  ;
9439  return 0;
9440}
9441_ACEOF
9442if ac_fn_c_try_link "$LINENO"; then :
9443  lt_cv_ld_exported_symbols_list=yes
9444else
9445  lt_cv_ld_exported_symbols_list=no
9446fi
9447rm -f core conftest.err conftest.$ac_objext \
9448    conftest$ac_exeext conftest.$ac_ext
9449	LDFLAGS=$save_LDFLAGS
9450
9451fi
9452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9453$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9454
9455    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9456$as_echo_n "checking for -force_load linker flag... " >&6; }
9457if ${lt_cv_ld_force_load+:} false; then :
9458  $as_echo_n "(cached) " >&6
9459else
9460  lt_cv_ld_force_load=no
9461      cat > conftest.c << _LT_EOF
9462int forced_loaded() { return 2;}
9463_LT_EOF
9464      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9465      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9466      echo "$AR cru libconftest.a conftest.o" >&5
9467      $AR cru libconftest.a conftest.o 2>&5
9468      echo "$RANLIB libconftest.a" >&5
9469      $RANLIB libconftest.a 2>&5
9470      cat > conftest.c << _LT_EOF
9471int main() { return 0;}
9472_LT_EOF
9473      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9474      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9475      _lt_result=$?
9476      if test -s conftest.err && $GREP force_load conftest.err; then
9477	cat conftest.err >&5
9478      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9479	lt_cv_ld_force_load=yes
9480      else
9481	cat conftest.err >&5
9482      fi
9483        rm -f conftest.err libconftest.a conftest conftest.c
9484        rm -rf conftest.dSYM
9485
9486fi
9487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9488$as_echo "$lt_cv_ld_force_load" >&6; }
9489    case $host_os in
9490    rhapsody* | darwin1.[012])
9491      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9492    darwin1.*)
9493      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9494    darwin*) # darwin 5.x on
9495      # if running on 10.5 or later, the deployment target defaults
9496      # to the OS version, if on x86, and 10.4, the deployment
9497      # target defaults to 10.4. Don't you love it?
9498      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9499	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9500	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9501	10.[012][,.]*)
9502	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9503	10.*)
9504	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9505      esac
9506    ;;
9507  esac
9508    if test yes = "$lt_cv_apple_cc_single_mod"; then
9509      _lt_dar_single_mod='$single_module'
9510    fi
9511    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9512      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9513    else
9514      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9515    fi
9516    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9517      _lt_dsymutil='~$DSYMUTIL $lib || :'
9518    else
9519      _lt_dsymutil=
9520    fi
9521    ;;
9522  esac
9523
9524# func_munge_path_list VARIABLE PATH
9525# -----------------------------------
9526# VARIABLE is name of variable containing _space_ separated list of
9527# directories to be munged by the contents of PATH, which is string
9528# having a format:
9529# "DIR[:DIR]:"
9530#       string "DIR[ DIR]" will be prepended to VARIABLE
9531# ":DIR[:DIR]"
9532#       string "DIR[ DIR]" will be appended to VARIABLE
9533# "DIRP[:DIRP]::[DIRA:]DIRA"
9534#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9535#       "DIRA[ DIRA]" will be appended to VARIABLE
9536# "DIR[:DIR]"
9537#       VARIABLE will be replaced by "DIR[ DIR]"
9538func_munge_path_list ()
9539{
9540    case x$2 in
9541    x)
9542        ;;
9543    *:)
9544        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9545        ;;
9546    x:*)
9547        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9548        ;;
9549    *::*)
9550        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9551        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9552        ;;
9553    *)
9554        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9555        ;;
9556    esac
9557}
9558
9559for ac_header in dlfcn.h
9560do :
9561  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9562"
9563if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9564  cat >>confdefs.h <<_ACEOF
9565#define HAVE_DLFCN_H 1
9566_ACEOF
9567
9568fi
9569
9570done
9571
9572
9573
9574func_stripname_cnf ()
9575{
9576  case $2 in
9577  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9578  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9579  esac
9580} # func_stripname_cnf
9581
9582
9583
9584
9585
9586# Set options
9587
9588
9589
9590        enable_dlopen=no
9591
9592
9593  enable_win32_dll=no
9594
9595
9596            # Check whether --enable-shared was given.
9597if test "${enable_shared+set}" = set; then :
9598  enableval=$enable_shared; p=${PACKAGE-default}
9599    case $enableval in
9600    yes) enable_shared=yes ;;
9601    no) enable_shared=no ;;
9602    *)
9603      enable_shared=no
9604      # Look at the argument we got.  We use all the common list separators.
9605      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9606      for pkg in $enableval; do
9607	IFS=$lt_save_ifs
9608	if test "X$pkg" = "X$p"; then
9609	  enable_shared=yes
9610	fi
9611      done
9612      IFS=$lt_save_ifs
9613      ;;
9614    esac
9615else
9616  enable_shared=yes
9617fi
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627  # Check whether --enable-static was given.
9628if test "${enable_static+set}" = set; then :
9629  enableval=$enable_static; p=${PACKAGE-default}
9630    case $enableval in
9631    yes) enable_static=yes ;;
9632    no) enable_static=no ;;
9633    *)
9634     enable_static=no
9635      # Look at the argument we got.  We use all the common list separators.
9636      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9637      for pkg in $enableval; do
9638	IFS=$lt_save_ifs
9639	if test "X$pkg" = "X$p"; then
9640	  enable_static=yes
9641	fi
9642      done
9643      IFS=$lt_save_ifs
9644      ;;
9645    esac
9646else
9647  enable_static=yes
9648fi
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659# Check whether --with-pic was given.
9660if test "${with_pic+set}" = set; then :
9661  withval=$with_pic; lt_p=${PACKAGE-default}
9662    case $withval in
9663    yes|no) pic_mode=$withval ;;
9664    *)
9665      pic_mode=default
9666      # Look at the argument we got.  We use all the common list separators.
9667      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9668      for lt_pkg in $withval; do
9669	IFS=$lt_save_ifs
9670	if test "X$lt_pkg" = "X$lt_p"; then
9671	  pic_mode=yes
9672	fi
9673      done
9674      IFS=$lt_save_ifs
9675      ;;
9676    esac
9677else
9678  pic_mode=default
9679fi
9680
9681
9682
9683
9684
9685
9686
9687
9688  # Check whether --enable-fast-install was given.
9689if test "${enable_fast_install+set}" = set; then :
9690  enableval=$enable_fast_install; p=${PACKAGE-default}
9691    case $enableval in
9692    yes) enable_fast_install=yes ;;
9693    no) enable_fast_install=no ;;
9694    *)
9695      enable_fast_install=no
9696      # Look at the argument we got.  We use all the common list separators.
9697      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9698      for pkg in $enableval; do
9699	IFS=$lt_save_ifs
9700	if test "X$pkg" = "X$p"; then
9701	  enable_fast_install=yes
9702	fi
9703      done
9704      IFS=$lt_save_ifs
9705      ;;
9706    esac
9707else
9708  enable_fast_install=yes
9709fi
9710
9711
9712
9713
9714
9715
9716
9717
9718  shared_archive_member_spec=
9719case $host,$enable_shared in
9720power*-*-aix[5-9]*,yes)
9721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9722$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9723
9724# Check whether --with-aix-soname was given.
9725if test "${with_aix_soname+set}" = set; then :
9726  withval=$with_aix_soname; case $withval in
9727    aix|svr4|both)
9728      ;;
9729    *)
9730      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9731      ;;
9732    esac
9733    lt_cv_with_aix_soname=$with_aix_soname
9734else
9735  if ${lt_cv_with_aix_soname+:} false; then :
9736  $as_echo_n "(cached) " >&6
9737else
9738  lt_cv_with_aix_soname=aix
9739fi
9740
9741    with_aix_soname=$lt_cv_with_aix_soname
9742fi
9743
9744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9745$as_echo "$with_aix_soname" >&6; }
9746  if test aix != "$with_aix_soname"; then
9747    # For the AIX way of multilib, we name the shared archive member
9748    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9749    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9750    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9751    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9752    if test 64 = "${OBJECT_MODE-32}"; then
9753      shared_archive_member_spec=shr_64
9754    else
9755      shared_archive_member_spec=shr
9756    fi
9757  fi
9758  ;;
9759*)
9760  with_aix_soname=aix
9761  ;;
9762esac
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773# This can be used to rebuild libtool when needed
9774LIBTOOL_DEPS=$ltmain
9775
9776# Always use our own libtool.
9777LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808test -z "$LN_S" && LN_S="ln -s"
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823if test -n "${ZSH_VERSION+set}"; then
9824   setopt NO_GLOB_SUBST
9825fi
9826
9827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9828$as_echo_n "checking for objdir... " >&6; }
9829if ${lt_cv_objdir+:} false; then :
9830  $as_echo_n "(cached) " >&6
9831else
9832  rm -f .libs 2>/dev/null
9833mkdir .libs 2>/dev/null
9834if test -d .libs; then
9835  lt_cv_objdir=.libs
9836else
9837  # MS-DOS does not allow filenames that begin with a dot.
9838  lt_cv_objdir=_libs
9839fi
9840rmdir .libs 2>/dev/null
9841fi
9842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9843$as_echo "$lt_cv_objdir" >&6; }
9844objdir=$lt_cv_objdir
9845
9846
9847
9848
9849
9850cat >>confdefs.h <<_ACEOF
9851#define LT_OBJDIR "$lt_cv_objdir/"
9852_ACEOF
9853
9854
9855
9856
9857case $host_os in
9858aix3*)
9859  # AIX sometimes has problems with the GCC collect2 program.  For some
9860  # reason, if we set the COLLECT_NAMES environment variable, the problems
9861  # vanish in a puff of smoke.
9862  if test set != "${COLLECT_NAMES+set}"; then
9863    COLLECT_NAMES=
9864    export COLLECT_NAMES
9865  fi
9866  ;;
9867esac
9868
9869# Global variables:
9870ofile=libtool
9871can_build_shared=yes
9872
9873# All known linkers require a '.a' archive for static linking (except MSVC,
9874# which needs '.lib').
9875libext=a
9876
9877with_gnu_ld=$lt_cv_prog_gnu_ld
9878
9879old_CC=$CC
9880old_CFLAGS=$CFLAGS
9881
9882# Set sane defaults for various variables
9883test -z "$CC" && CC=cc
9884test -z "$LTCC" && LTCC=$CC
9885test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9886test -z "$LD" && LD=ld
9887test -z "$ac_objext" && ac_objext=o
9888
9889func_cc_basename $compiler
9890cc_basename=$func_cc_basename_result
9891
9892
9893# Only perform the check for file, if the check method requires it
9894test -z "$MAGIC_CMD" && MAGIC_CMD=file
9895case $deplibs_check_method in
9896file_magic*)
9897  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9898    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9899$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9900if ${lt_cv_path_MAGIC_CMD+:} false; then :
9901  $as_echo_n "(cached) " >&6
9902else
9903  case $MAGIC_CMD in
9904[\\/*] |  ?:[\\/]*)
9905  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9906  ;;
9907*)
9908  lt_save_MAGIC_CMD=$MAGIC_CMD
9909  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9910  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9911  for ac_dir in $ac_dummy; do
9912    IFS=$lt_save_ifs
9913    test -z "$ac_dir" && ac_dir=.
9914    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9915      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9916      if test -n "$file_magic_test_file"; then
9917	case $deplibs_check_method in
9918	"file_magic "*)
9919	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9920	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9921	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9922	    $EGREP "$file_magic_regex" > /dev/null; then
9923	    :
9924	  else
9925	    cat <<_LT_EOF 1>&2
9926
9927*** Warning: the command libtool uses to detect shared libraries,
9928*** $file_magic_cmd, produces output that libtool cannot recognize.
9929*** The result is that libtool may fail to recognize shared libraries
9930*** as such.  This will affect the creation of libtool libraries that
9931*** depend on shared libraries, but programs linked with such libtool
9932*** libraries will work regardless of this problem.  Nevertheless, you
9933*** may want to report the problem to your system manager and/or to
9934*** bug-libtool@gnu.org
9935
9936_LT_EOF
9937	  fi ;;
9938	esac
9939      fi
9940      break
9941    fi
9942  done
9943  IFS=$lt_save_ifs
9944  MAGIC_CMD=$lt_save_MAGIC_CMD
9945  ;;
9946esac
9947fi
9948
9949MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9950if test -n "$MAGIC_CMD"; then
9951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9952$as_echo "$MAGIC_CMD" >&6; }
9953else
9954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955$as_echo "no" >&6; }
9956fi
9957
9958
9959
9960
9961
9962if test -z "$lt_cv_path_MAGIC_CMD"; then
9963  if test -n "$ac_tool_prefix"; then
9964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9965$as_echo_n "checking for file... " >&6; }
9966if ${lt_cv_path_MAGIC_CMD+:} false; then :
9967  $as_echo_n "(cached) " >&6
9968else
9969  case $MAGIC_CMD in
9970[\\/*] |  ?:[\\/]*)
9971  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9972  ;;
9973*)
9974  lt_save_MAGIC_CMD=$MAGIC_CMD
9975  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9976  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9977  for ac_dir in $ac_dummy; do
9978    IFS=$lt_save_ifs
9979    test -z "$ac_dir" && ac_dir=.
9980    if test -f "$ac_dir/file"; then
9981      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9982      if test -n "$file_magic_test_file"; then
9983	case $deplibs_check_method in
9984	"file_magic "*)
9985	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9986	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9987	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9988	    $EGREP "$file_magic_regex" > /dev/null; then
9989	    :
9990	  else
9991	    cat <<_LT_EOF 1>&2
9992
9993*** Warning: the command libtool uses to detect shared libraries,
9994*** $file_magic_cmd, produces output that libtool cannot recognize.
9995*** The result is that libtool may fail to recognize shared libraries
9996*** as such.  This will affect the creation of libtool libraries that
9997*** depend on shared libraries, but programs linked with such libtool
9998*** libraries will work regardless of this problem.  Nevertheless, you
9999*** may want to report the problem to your system manager and/or to
10000*** bug-libtool@gnu.org
10001
10002_LT_EOF
10003	  fi ;;
10004	esac
10005      fi
10006      break
10007    fi
10008  done
10009  IFS=$lt_save_ifs
10010  MAGIC_CMD=$lt_save_MAGIC_CMD
10011  ;;
10012esac
10013fi
10014
10015MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10016if test -n "$MAGIC_CMD"; then
10017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10018$as_echo "$MAGIC_CMD" >&6; }
10019else
10020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021$as_echo "no" >&6; }
10022fi
10023
10024
10025  else
10026    MAGIC_CMD=:
10027  fi
10028fi
10029
10030  fi
10031  ;;
10032esac
10033
10034# Use C for the default configuration in the libtool script
10035
10036lt_save_CC=$CC
10037ac_ext=c
10038ac_cpp='$CPP $CPPFLAGS'
10039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10041ac_compiler_gnu=$ac_cv_c_compiler_gnu
10042
10043
10044# Source file extension for C test sources.
10045ac_ext=c
10046
10047# Object file extension for compiled C test sources.
10048objext=o
10049objext=$objext
10050
10051# Code to be used in simple compile tests
10052lt_simple_compile_test_code="int some_variable = 0;"
10053
10054# Code to be used in simple link tests
10055lt_simple_link_test_code='int main(){return(0);}'
10056
10057
10058
10059
10060
10061
10062
10063# If no C compiler was specified, use CC.
10064LTCC=${LTCC-"$CC"}
10065
10066# If no C compiler flags were specified, use CFLAGS.
10067LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10068
10069# Allow CC to be a program name with arguments.
10070compiler=$CC
10071
10072# Save the default compiler, since it gets overwritten when the other
10073# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10074compiler_DEFAULT=$CC
10075
10076# save warnings/boilerplate of simple test code
10077ac_outfile=conftest.$ac_objext
10078echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10079eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10080_lt_compiler_boilerplate=`cat conftest.err`
10081$RM conftest*
10082
10083ac_outfile=conftest.$ac_objext
10084echo "$lt_simple_link_test_code" >conftest.$ac_ext
10085eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10086_lt_linker_boilerplate=`cat conftest.err`
10087$RM -r conftest*
10088
10089
10090## CAVEAT EMPTOR:
10091## There is no encapsulation within the following macros, do not change
10092## the running order or otherwise move them around unless you know exactly
10093## what you are doing...
10094if test -n "$compiler"; then
10095
10096lt_prog_compiler_no_builtin_flag=
10097
10098if test yes = "$GCC"; then
10099  case $cc_basename in
10100  nvcc*)
10101    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10102  *)
10103    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10104  esac
10105
10106  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10107$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10108if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10109  $as_echo_n "(cached) " >&6
10110else
10111  lt_cv_prog_compiler_rtti_exceptions=no
10112   ac_outfile=conftest.$ac_objext
10113   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10114   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10115   # Insert the option either (1) after the last *FLAGS variable, or
10116   # (2) before a word containing "conftest.", or (3) at the end.
10117   # Note that $ac_compile itself does not contain backslashes and begins
10118   # with a dollar sign (not a hyphen), so the echo should work correctly.
10119   # The option is referenced via a variable to avoid confusing sed.
10120   lt_compile=`echo "$ac_compile" | $SED \
10121   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10122   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10123   -e 's:$: $lt_compiler_flag:'`
10124   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10125   (eval "$lt_compile" 2>conftest.err)
10126   ac_status=$?
10127   cat conftest.err >&5
10128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129   if (exit $ac_status) && test -s "$ac_outfile"; then
10130     # The compiler can only warn and ignore the option if not recognized
10131     # So say no if there are warnings other than the usual output.
10132     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10133     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10134     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10135       lt_cv_prog_compiler_rtti_exceptions=yes
10136     fi
10137   fi
10138   $RM conftest*
10139
10140fi
10141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10142$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10143
10144if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10145    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10146else
10147    :
10148fi
10149
10150fi
10151
10152
10153
10154
10155
10156
10157  lt_prog_compiler_wl=
10158lt_prog_compiler_pic=
10159lt_prog_compiler_static=
10160
10161
10162  if test yes = "$GCC"; then
10163    lt_prog_compiler_wl='-Wl,'
10164    lt_prog_compiler_static='-static'
10165
10166    case $host_os in
10167      aix*)
10168      # All AIX code is PIC.
10169      if test ia64 = "$host_cpu"; then
10170	# AIX 5 now supports IA64 processor
10171	lt_prog_compiler_static='-Bstatic'
10172      fi
10173      lt_prog_compiler_pic='-fPIC'
10174      ;;
10175
10176    amigaos*)
10177      case $host_cpu in
10178      powerpc)
10179            # see comment about AmigaOS4 .so support
10180            lt_prog_compiler_pic='-fPIC'
10181        ;;
10182      m68k)
10183            # FIXME: we need at least 68020 code to build shared libraries, but
10184            # adding the '-m68020' flag to GCC prevents building anything better,
10185            # like '-m68040'.
10186            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10187        ;;
10188      esac
10189      ;;
10190
10191    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10192      # PIC is the default for these OSes.
10193      ;;
10194
10195    mingw* | cygwin* | pw32* | os2* | cegcc*)
10196      # This hack is so that the source file can tell whether it is being
10197      # built for inclusion in a dll (and should export symbols for example).
10198      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10199      # (--disable-auto-import) libraries
10200      lt_prog_compiler_pic='-DDLL_EXPORT'
10201      case $host_os in
10202      os2*)
10203	lt_prog_compiler_static='$wl-static'
10204	;;
10205      esac
10206      ;;
10207
10208    darwin* | rhapsody*)
10209      # PIC is the default on this platform
10210      # Common symbols not allowed in MH_DYLIB files
10211      lt_prog_compiler_pic='-fno-common'
10212      ;;
10213
10214    haiku*)
10215      # PIC is the default for Haiku.
10216      # The "-static" flag exists, but is broken.
10217      lt_prog_compiler_static=
10218      ;;
10219
10220    hpux*)
10221      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10222      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10223      # sets the default TLS model and affects inlining.
10224      case $host_cpu in
10225      hppa*64*)
10226	# +Z the default
10227	;;
10228      *)
10229	lt_prog_compiler_pic='-fPIC'
10230	;;
10231      esac
10232      ;;
10233
10234    interix[3-9]*)
10235      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10236      # Instead, we relocate shared libraries at runtime.
10237      ;;
10238
10239    msdosdjgpp*)
10240      # Just because we use GCC doesn't mean we suddenly get shared libraries
10241      # on systems that don't support them.
10242      lt_prog_compiler_can_build_shared=no
10243      enable_shared=no
10244      ;;
10245
10246    *nto* | *qnx*)
10247      # QNX uses GNU C++, but need to define -shared option too, otherwise
10248      # it will coredump.
10249      lt_prog_compiler_pic='-fPIC -shared'
10250      ;;
10251
10252    sysv4*MP*)
10253      if test -d /usr/nec; then
10254	lt_prog_compiler_pic=-Kconform_pic
10255      fi
10256      ;;
10257
10258    *)
10259      lt_prog_compiler_pic='-fPIC'
10260      ;;
10261    esac
10262
10263    case $cc_basename in
10264    nvcc*) # Cuda Compiler Driver 2.2
10265      lt_prog_compiler_wl='-Xlinker '
10266      if test -n "$lt_prog_compiler_pic"; then
10267        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10268      fi
10269      ;;
10270    esac
10271  else
10272    # PORTME Check for flag to pass linker flags through the system compiler.
10273    case $host_os in
10274    aix*)
10275      lt_prog_compiler_wl='-Wl,'
10276      if test ia64 = "$host_cpu"; then
10277	# AIX 5 now supports IA64 processor
10278	lt_prog_compiler_static='-Bstatic'
10279      else
10280	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10281      fi
10282      ;;
10283
10284    darwin* | rhapsody*)
10285      # PIC is the default on this platform
10286      # Common symbols not allowed in MH_DYLIB files
10287      lt_prog_compiler_pic='-fno-common'
10288      case $cc_basename in
10289      nagfor*)
10290        # NAG Fortran compiler
10291        lt_prog_compiler_wl='-Wl,-Wl,,'
10292        lt_prog_compiler_pic='-PIC'
10293        lt_prog_compiler_static='-Bstatic'
10294        ;;
10295      esac
10296      ;;
10297
10298    mingw* | cygwin* | pw32* | os2* | cegcc*)
10299      # This hack is so that the source file can tell whether it is being
10300      # built for inclusion in a dll (and should export symbols for example).
10301      lt_prog_compiler_pic='-DDLL_EXPORT'
10302      case $host_os in
10303      os2*)
10304	lt_prog_compiler_static='$wl-static'
10305	;;
10306      esac
10307      ;;
10308
10309    hpux9* | hpux10* | hpux11*)
10310      lt_prog_compiler_wl='-Wl,'
10311      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10312      # not for PA HP-UX.
10313      case $host_cpu in
10314      hppa*64*|ia64*)
10315	# +Z the default
10316	;;
10317      *)
10318	lt_prog_compiler_pic='+Z'
10319	;;
10320      esac
10321      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10322      lt_prog_compiler_static='$wl-a ${wl}archive'
10323      ;;
10324
10325    irix5* | irix6* | nonstopux*)
10326      lt_prog_compiler_wl='-Wl,'
10327      # PIC (with -KPIC) is the default.
10328      lt_prog_compiler_static='-non_shared'
10329      ;;
10330
10331    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10332      case $cc_basename in
10333      # old Intel for x86_64, which still supported -KPIC.
10334      ecc*)
10335	lt_prog_compiler_wl='-Wl,'
10336	lt_prog_compiler_pic='-KPIC'
10337	lt_prog_compiler_static='-static'
10338        ;;
10339      # icc used to be incompatible with GCC.
10340      # ICC 10 doesn't accept -KPIC any more.
10341      icc* | ifort*)
10342	lt_prog_compiler_wl='-Wl,'
10343	lt_prog_compiler_pic='-fPIC'
10344	lt_prog_compiler_static='-static'
10345        ;;
10346      # Lahey Fortran 8.1.
10347      lf95*)
10348	lt_prog_compiler_wl='-Wl,'
10349	lt_prog_compiler_pic='--shared'
10350	lt_prog_compiler_static='--static'
10351	;;
10352      nagfor*)
10353	# NAG Fortran compiler
10354	lt_prog_compiler_wl='-Wl,-Wl,,'
10355	lt_prog_compiler_pic='-PIC'
10356	lt_prog_compiler_static='-Bstatic'
10357	;;
10358      tcc*)
10359	# Fabrice Bellard et al's Tiny C Compiler
10360	lt_prog_compiler_wl='-Wl,'
10361	lt_prog_compiler_pic='-fPIC'
10362	lt_prog_compiler_static='-static'
10363	;;
10364      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10365        # Portland Group compilers (*not* the Pentium gcc compiler,
10366	# which looks to be a dead project)
10367	lt_prog_compiler_wl='-Wl,'
10368	lt_prog_compiler_pic='-fpic'
10369	lt_prog_compiler_static='-Bstatic'
10370        ;;
10371      ccc*)
10372        lt_prog_compiler_wl='-Wl,'
10373        # All Alpha code is PIC.
10374        lt_prog_compiler_static='-non_shared'
10375        ;;
10376      xl* | bgxl* | bgf* | mpixl*)
10377	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10378	lt_prog_compiler_wl='-Wl,'
10379	lt_prog_compiler_pic='-qpic'
10380	lt_prog_compiler_static='-qstaticlink'
10381	;;
10382      *)
10383	case `$CC -V 2>&1 | sed 5q` in
10384	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10385	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10386	  lt_prog_compiler_pic='-KPIC'
10387	  lt_prog_compiler_static='-Bstatic'
10388	  lt_prog_compiler_wl=''
10389	  ;;
10390	*Sun\ F* | *Sun*Fortran*)
10391	  lt_prog_compiler_pic='-KPIC'
10392	  lt_prog_compiler_static='-Bstatic'
10393	  lt_prog_compiler_wl='-Qoption ld '
10394	  ;;
10395	*Sun\ C*)
10396	  # Sun C 5.9
10397	  lt_prog_compiler_pic='-KPIC'
10398	  lt_prog_compiler_static='-Bstatic'
10399	  lt_prog_compiler_wl='-Wl,'
10400	  ;;
10401        *Intel*\ [CF]*Compiler*)
10402	  lt_prog_compiler_wl='-Wl,'
10403	  lt_prog_compiler_pic='-fPIC'
10404	  lt_prog_compiler_static='-static'
10405	  ;;
10406	*Portland\ Group*)
10407	  lt_prog_compiler_wl='-Wl,'
10408	  lt_prog_compiler_pic='-fpic'
10409	  lt_prog_compiler_static='-Bstatic'
10410	  ;;
10411	esac
10412	;;
10413      esac
10414      ;;
10415
10416    newsos6)
10417      lt_prog_compiler_pic='-KPIC'
10418      lt_prog_compiler_static='-Bstatic'
10419      ;;
10420
10421    *nto* | *qnx*)
10422      # QNX uses GNU C++, but need to define -shared option too, otherwise
10423      # it will coredump.
10424      lt_prog_compiler_pic='-fPIC -shared'
10425      ;;
10426
10427    osf3* | osf4* | osf5*)
10428      lt_prog_compiler_wl='-Wl,'
10429      # All OSF/1 code is PIC.
10430      lt_prog_compiler_static='-non_shared'
10431      ;;
10432
10433    rdos*)
10434      lt_prog_compiler_static='-non_shared'
10435      ;;
10436
10437    solaris*)
10438      lt_prog_compiler_pic='-KPIC'
10439      lt_prog_compiler_static='-Bstatic'
10440      case $cc_basename in
10441      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10442	lt_prog_compiler_wl='-Qoption ld ';;
10443      *)
10444	lt_prog_compiler_wl='-Wl,';;
10445      esac
10446      ;;
10447
10448    sunos4*)
10449      lt_prog_compiler_wl='-Qoption ld '
10450      lt_prog_compiler_pic='-PIC'
10451      lt_prog_compiler_static='-Bstatic'
10452      ;;
10453
10454    sysv4 | sysv4.2uw2* | sysv4.3*)
10455      lt_prog_compiler_wl='-Wl,'
10456      lt_prog_compiler_pic='-KPIC'
10457      lt_prog_compiler_static='-Bstatic'
10458      ;;
10459
10460    sysv4*MP*)
10461      if test -d /usr/nec; then
10462	lt_prog_compiler_pic='-Kconform_pic'
10463	lt_prog_compiler_static='-Bstatic'
10464      fi
10465      ;;
10466
10467    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10468      lt_prog_compiler_wl='-Wl,'
10469      lt_prog_compiler_pic='-KPIC'
10470      lt_prog_compiler_static='-Bstatic'
10471      ;;
10472
10473    unicos*)
10474      lt_prog_compiler_wl='-Wl,'
10475      lt_prog_compiler_can_build_shared=no
10476      ;;
10477
10478    uts4*)
10479      lt_prog_compiler_pic='-pic'
10480      lt_prog_compiler_static='-Bstatic'
10481      ;;
10482
10483    *)
10484      lt_prog_compiler_can_build_shared=no
10485      ;;
10486    esac
10487  fi
10488
10489case $host_os in
10490  # For platforms that do not support PIC, -DPIC is meaningless:
10491  *djgpp*)
10492    lt_prog_compiler_pic=
10493    ;;
10494  *)
10495    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10496    ;;
10497esac
10498
10499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10500$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10501if ${lt_cv_prog_compiler_pic+:} false; then :
10502  $as_echo_n "(cached) " >&6
10503else
10504  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10505fi
10506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10507$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10508lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10509
10510#
10511# Check to make sure the PIC flag actually works.
10512#
10513if test -n "$lt_prog_compiler_pic"; then
10514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10515$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10516if ${lt_cv_prog_compiler_pic_works+:} false; then :
10517  $as_echo_n "(cached) " >&6
10518else
10519  lt_cv_prog_compiler_pic_works=no
10520   ac_outfile=conftest.$ac_objext
10521   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10522   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10523   # Insert the option either (1) after the last *FLAGS variable, or
10524   # (2) before a word containing "conftest.", or (3) at the end.
10525   # Note that $ac_compile itself does not contain backslashes and begins
10526   # with a dollar sign (not a hyphen), so the echo should work correctly.
10527   # The option is referenced via a variable to avoid confusing sed.
10528   lt_compile=`echo "$ac_compile" | $SED \
10529   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10530   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10531   -e 's:$: $lt_compiler_flag:'`
10532   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10533   (eval "$lt_compile" 2>conftest.err)
10534   ac_status=$?
10535   cat conftest.err >&5
10536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537   if (exit $ac_status) && test -s "$ac_outfile"; then
10538     # The compiler can only warn and ignore the option if not recognized
10539     # So say no if there are warnings other than the usual output.
10540     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10541     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10542     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10543       lt_cv_prog_compiler_pic_works=yes
10544     fi
10545   fi
10546   $RM conftest*
10547
10548fi
10549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10550$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10551
10552if test yes = "$lt_cv_prog_compiler_pic_works"; then
10553    case $lt_prog_compiler_pic in
10554     "" | " "*) ;;
10555     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10556     esac
10557else
10558    lt_prog_compiler_pic=
10559     lt_prog_compiler_can_build_shared=no
10560fi
10561
10562fi
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574#
10575# Check to make sure the static flag actually works.
10576#
10577wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10579$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10580if ${lt_cv_prog_compiler_static_works+:} false; then :
10581  $as_echo_n "(cached) " >&6
10582else
10583  lt_cv_prog_compiler_static_works=no
10584   save_LDFLAGS=$LDFLAGS
10585   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10586   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10587   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10588     # The linker can only warn and ignore the option if not recognized
10589     # So say no if there are warnings
10590     if test -s conftest.err; then
10591       # Append any errors to the config.log.
10592       cat conftest.err 1>&5
10593       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10594       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10595       if diff conftest.exp conftest.er2 >/dev/null; then
10596         lt_cv_prog_compiler_static_works=yes
10597       fi
10598     else
10599       lt_cv_prog_compiler_static_works=yes
10600     fi
10601   fi
10602   $RM -r conftest*
10603   LDFLAGS=$save_LDFLAGS
10604
10605fi
10606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10607$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10608
10609if test yes = "$lt_cv_prog_compiler_static_works"; then
10610    :
10611else
10612    lt_prog_compiler_static=
10613fi
10614
10615
10616
10617
10618
10619
10620
10621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10622$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10623if ${lt_cv_prog_compiler_c_o+:} false; then :
10624  $as_echo_n "(cached) " >&6
10625else
10626  lt_cv_prog_compiler_c_o=no
10627   $RM -r conftest 2>/dev/null
10628   mkdir conftest
10629   cd conftest
10630   mkdir out
10631   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10632
10633   lt_compiler_flag="-o out/conftest2.$ac_objext"
10634   # Insert the option either (1) after the last *FLAGS variable, or
10635   # (2) before a word containing "conftest.", or (3) at the end.
10636   # Note that $ac_compile itself does not contain backslashes and begins
10637   # with a dollar sign (not a hyphen), so the echo should work correctly.
10638   lt_compile=`echo "$ac_compile" | $SED \
10639   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10640   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10641   -e 's:$: $lt_compiler_flag:'`
10642   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10643   (eval "$lt_compile" 2>out/conftest.err)
10644   ac_status=$?
10645   cat out/conftest.err >&5
10646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10648   then
10649     # The compiler can only warn and ignore the option if not recognized
10650     # So say no if there are warnings
10651     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10652     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10653     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10654       lt_cv_prog_compiler_c_o=yes
10655     fi
10656   fi
10657   chmod u+w . 2>&5
10658   $RM conftest*
10659   # SGI C++ compiler will create directory out/ii_files/ for
10660   # template instantiation
10661   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10662   $RM out/* && rmdir out
10663   cd ..
10664   $RM -r conftest
10665   $RM conftest*
10666
10667fi
10668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10669$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10670
10671
10672
10673
10674
10675
10676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10677$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10678if ${lt_cv_prog_compiler_c_o+:} false; then :
10679  $as_echo_n "(cached) " >&6
10680else
10681  lt_cv_prog_compiler_c_o=no
10682   $RM -r conftest 2>/dev/null
10683   mkdir conftest
10684   cd conftest
10685   mkdir out
10686   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10687
10688   lt_compiler_flag="-o out/conftest2.$ac_objext"
10689   # Insert the option either (1) after the last *FLAGS variable, or
10690   # (2) before a word containing "conftest.", or (3) at the end.
10691   # Note that $ac_compile itself does not contain backslashes and begins
10692   # with a dollar sign (not a hyphen), so the echo should work correctly.
10693   lt_compile=`echo "$ac_compile" | $SED \
10694   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10695   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10696   -e 's:$: $lt_compiler_flag:'`
10697   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10698   (eval "$lt_compile" 2>out/conftest.err)
10699   ac_status=$?
10700   cat out/conftest.err >&5
10701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10703   then
10704     # The compiler can only warn and ignore the option if not recognized
10705     # So say no if there are warnings
10706     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10707     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10708     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10709       lt_cv_prog_compiler_c_o=yes
10710     fi
10711   fi
10712   chmod u+w . 2>&5
10713   $RM conftest*
10714   # SGI C++ compiler will create directory out/ii_files/ for
10715   # template instantiation
10716   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10717   $RM out/* && rmdir out
10718   cd ..
10719   $RM -r conftest
10720   $RM conftest*
10721
10722fi
10723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10724$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10725
10726
10727
10728
10729hard_links=nottested
10730if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10731  # do not overwrite the value of need_locks provided by the user
10732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10733$as_echo_n "checking if we can lock with hard links... " >&6; }
10734  hard_links=yes
10735  $RM conftest*
10736  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10737  touch conftest.a
10738  ln conftest.a conftest.b 2>&5 || hard_links=no
10739  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10741$as_echo "$hard_links" >&6; }
10742  if test no = "$hard_links"; then
10743    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10744$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10745    need_locks=warn
10746  fi
10747else
10748  need_locks=no
10749fi
10750
10751
10752
10753
10754
10755
10756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10757$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10758
10759  runpath_var=
10760  allow_undefined_flag=
10761  always_export_symbols=no
10762  archive_cmds=
10763  archive_expsym_cmds=
10764  compiler_needs_object=no
10765  enable_shared_with_static_runtimes=no
10766  export_dynamic_flag_spec=
10767  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10768  hardcode_automatic=no
10769  hardcode_direct=no
10770  hardcode_direct_absolute=no
10771  hardcode_libdir_flag_spec=
10772  hardcode_libdir_separator=
10773  hardcode_minus_L=no
10774  hardcode_shlibpath_var=unsupported
10775  inherit_rpath=no
10776  link_all_deplibs=unknown
10777  module_cmds=
10778  module_expsym_cmds=
10779  old_archive_from_new_cmds=
10780  old_archive_from_expsyms_cmds=
10781  thread_safe_flag_spec=
10782  whole_archive_flag_spec=
10783  # include_expsyms should be a list of space-separated symbols to be *always*
10784  # included in the symbol list
10785  include_expsyms=
10786  # exclude_expsyms can be an extended regexp of symbols to exclude
10787  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10788  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10789  # as well as any symbol that contains 'd'.
10790  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10791  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10792  # platforms (ab)use it in PIC code, but their linkers get confused if
10793  # the symbol is explicitly referenced.  Since portable code cannot
10794  # rely on this symbol name, it's probably fine to never include it in
10795  # preloaded symbol tables.
10796  # Exclude shared library initialization/finalization symbols.
10797  extract_expsyms_cmds=
10798
10799  case $host_os in
10800  cygwin* | mingw* | pw32* | cegcc*)
10801    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10802    # When not using gcc, we currently assume that we are using
10803    # Microsoft Visual C++.
10804    if test yes != "$GCC"; then
10805      with_gnu_ld=no
10806    fi
10807    ;;
10808  interix*)
10809    # we just hope/assume this is gcc and not c89 (= MSVC++)
10810    with_gnu_ld=yes
10811    ;;
10812  openbsd* | bitrig*)
10813    with_gnu_ld=no
10814    ;;
10815  linux* | k*bsd*-gnu | gnu*)
10816    link_all_deplibs=no
10817    ;;
10818  esac
10819
10820  ld_shlibs=yes
10821
10822  # On some targets, GNU ld is compatible enough with the native linker
10823  # that we're better off using the native interface for both.
10824  lt_use_gnu_ld_interface=no
10825  if test yes = "$with_gnu_ld"; then
10826    case $host_os in
10827      aix*)
10828	# The AIX port of GNU ld has always aspired to compatibility
10829	# with the native linker.  However, as the warning in the GNU ld
10830	# block says, versions before 2.19.5* couldn't really create working
10831	# shared libraries, regardless of the interface used.
10832	case `$LD -v 2>&1` in
10833	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10834	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10835	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10836	  *)
10837	    lt_use_gnu_ld_interface=yes
10838	    ;;
10839	esac
10840	;;
10841      *)
10842	lt_use_gnu_ld_interface=yes
10843	;;
10844    esac
10845  fi
10846
10847  if test yes = "$lt_use_gnu_ld_interface"; then
10848    # If archive_cmds runs LD, not CC, wlarc should be empty
10849    wlarc='$wl'
10850
10851    # Set some defaults for GNU ld with shared library support. These
10852    # are reset later if shared libraries are not supported. Putting them
10853    # here allows them to be overridden if necessary.
10854    runpath_var=LD_RUN_PATH
10855    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10856    export_dynamic_flag_spec='$wl--export-dynamic'
10857    # ancient GNU ld didn't support --whole-archive et. al.
10858    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10859      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10860    else
10861      whole_archive_flag_spec=
10862    fi
10863    supports_anon_versioning=no
10864    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10865      *GNU\ gold*) supports_anon_versioning=yes ;;
10866      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10867      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10868      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10869      *\ 2.11.*) ;; # other 2.11 versions
10870      *) supports_anon_versioning=yes ;;
10871    esac
10872
10873    # See if GNU ld supports shared libraries.
10874    case $host_os in
10875    aix[3-9]*)
10876      # On AIX/PPC, the GNU linker is very broken
10877      if test ia64 != "$host_cpu"; then
10878	ld_shlibs=no
10879	cat <<_LT_EOF 1>&2
10880
10881*** Warning: the GNU linker, at least up to release 2.19, is reported
10882*** to be unable to reliably create shared libraries on AIX.
10883*** Therefore, libtool is disabling shared libraries support.  If you
10884*** really care for shared libraries, you may want to install binutils
10885*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10886*** You will then need to restart the configuration process.
10887
10888_LT_EOF
10889      fi
10890      ;;
10891
10892    amigaos*)
10893      case $host_cpu in
10894      powerpc)
10895            # see comment about AmigaOS4 .so support
10896            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10897            archive_expsym_cmds=''
10898        ;;
10899      m68k)
10900            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)'
10901            hardcode_libdir_flag_spec='-L$libdir'
10902            hardcode_minus_L=yes
10903        ;;
10904      esac
10905      ;;
10906
10907    beos*)
10908      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10909	allow_undefined_flag=unsupported
10910	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10911	# support --undefined.  This deserves some investigation.  FIXME
10912	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10913      else
10914	ld_shlibs=no
10915      fi
10916      ;;
10917
10918    cygwin* | mingw* | pw32* | cegcc*)
10919      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10920      # as there is no search path for DLLs.
10921      hardcode_libdir_flag_spec='-L$libdir'
10922      export_dynamic_flag_spec='$wl--export-all-symbols'
10923      allow_undefined_flag=unsupported
10924      always_export_symbols=no
10925      enable_shared_with_static_runtimes=yes
10926      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'
10927      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10928
10929      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10930        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10931	# If the export-symbols file already is a .def file, use it as
10932	# is; otherwise, prepend EXPORTS...
10933	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10934          cp $export_symbols $output_objdir/$soname.def;
10935        else
10936          echo EXPORTS > $output_objdir/$soname.def;
10937          cat $export_symbols >> $output_objdir/$soname.def;
10938        fi~
10939        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10940      else
10941	ld_shlibs=no
10942      fi
10943      ;;
10944
10945    haiku*)
10946      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10947      link_all_deplibs=yes
10948      ;;
10949
10950    os2*)
10951      hardcode_libdir_flag_spec='-L$libdir'
10952      hardcode_minus_L=yes
10953      allow_undefined_flag=unsupported
10954      shrext_cmds=.dll
10955      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10956	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10957	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10958	$ECHO EXPORTS >> $output_objdir/$libname.def~
10959	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10960	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10961	emximp -o $lib $output_objdir/$libname.def'
10962      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10963	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10964	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10965	$ECHO EXPORTS >> $output_objdir/$libname.def~
10966	prefix_cmds="$SED"~
10967	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10968	  prefix_cmds="$prefix_cmds -e 1d";
10969	fi~
10970	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10971	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10972	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10973	emximp -o $lib $output_objdir/$libname.def'
10974      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10975      enable_shared_with_static_runtimes=yes
10976      ;;
10977
10978    interix[3-9]*)
10979      hardcode_direct=no
10980      hardcode_shlibpath_var=no
10981      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10982      export_dynamic_flag_spec='$wl-E'
10983      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10984      # Instead, shared libraries are loaded at an image base (0x10000000 by
10985      # default) and relocated if they conflict, which is a slow very memory
10986      # consuming and fragmenting process.  To avoid this, we pick a random,
10987      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10988      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10989      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10990      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10991      ;;
10992
10993    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10994      tmp_diet=no
10995      if test linux-dietlibc = "$host_os"; then
10996	case $cc_basename in
10997	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10998	esac
10999      fi
11000      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11001	 && test no = "$tmp_diet"
11002      then
11003	tmp_addflag=' $pic_flag'
11004	tmp_sharedflag='-shared'
11005	case $cc_basename,$host_cpu in
11006        pgcc*)				# Portland Group C compiler
11007	  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'
11008	  tmp_addflag=' $pic_flag'
11009	  ;;
11010	pgf77* | pgf90* | pgf95* | pgfortran*)
11011					# Portland Group f77 and f90 compilers
11012	  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'
11013	  tmp_addflag=' $pic_flag -Mnomain' ;;
11014	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11015	  tmp_addflag=' -i_dynamic' ;;
11016	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11017	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11018	ifc* | ifort*)			# Intel Fortran compiler
11019	  tmp_addflag=' -nofor_main' ;;
11020	lf95*)				# Lahey Fortran 8.1
11021	  whole_archive_flag_spec=
11022	  tmp_sharedflag='--shared' ;;
11023        nagfor*)                        # NAGFOR 5.3
11024          tmp_sharedflag='-Wl,-shared' ;;
11025	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11026	  tmp_sharedflag='-qmkshrobj'
11027	  tmp_addflag= ;;
11028	nvcc*)	# Cuda Compiler Driver 2.2
11029	  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'
11030	  compiler_needs_object=yes
11031	  ;;
11032	esac
11033	case `$CC -V 2>&1 | sed 5q` in
11034	*Sun\ C*)			# Sun C 5.9
11035	  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'
11036	  compiler_needs_object=yes
11037	  tmp_sharedflag='-G' ;;
11038	*Sun\ F*)			# Sun Fortran 8.3
11039	  tmp_sharedflag='-G' ;;
11040	esac
11041	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11042
11043        if test yes = "$supports_anon_versioning"; then
11044          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11045            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11046            echo "local: *; };" >> $output_objdir/$libname.ver~
11047            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11048        fi
11049
11050	case $cc_basename in
11051	tcc*)
11052	  export_dynamic_flag_spec='-rdynamic'
11053	  ;;
11054	xlf* | bgf* | bgxlf* | mpixlf*)
11055	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11056	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11057	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11058	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11059	  if test yes = "$supports_anon_versioning"; then
11060	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11061              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11062              echo "local: *; };" >> $output_objdir/$libname.ver~
11063              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11064	  fi
11065	  ;;
11066	esac
11067      else
11068        ld_shlibs=no
11069      fi
11070      ;;
11071
11072    netbsd* | netbsdelf*-gnu)
11073      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11074	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11075	wlarc=
11076      else
11077	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11078	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11079      fi
11080      ;;
11081
11082    solaris*)
11083      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11084	ld_shlibs=no
11085	cat <<_LT_EOF 1>&2
11086
11087*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11088*** create shared libraries on Solaris systems.  Therefore, libtool
11089*** is disabling shared libraries support.  We urge you to upgrade GNU
11090*** binutils to release 2.9.1 or newer.  Another option is to modify
11091*** your PATH or compiler configuration so that the native linker is
11092*** used, and then restart.
11093
11094_LT_EOF
11095      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11096	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11097	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11098      else
11099	ld_shlibs=no
11100      fi
11101      ;;
11102
11103    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11104      case `$LD -v 2>&1` in
11105        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11106	ld_shlibs=no
11107	cat <<_LT_EOF 1>&2
11108
11109*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11110*** reliably create shared libraries on SCO systems.  Therefore, libtool
11111*** is disabling shared libraries support.  We urge you to upgrade GNU
11112*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11113*** your PATH or compiler configuration so that the native linker is
11114*** used, and then restart.
11115
11116_LT_EOF
11117	;;
11118	*)
11119	  # For security reasons, it is highly recommended that you always
11120	  # use absolute paths for naming shared libraries, and exclude the
11121	  # DT_RUNPATH tag from executables and libraries.  But doing so
11122	  # requires that you compile everything twice, which is a pain.
11123	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11124	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11125	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11126	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11127	  else
11128	    ld_shlibs=no
11129	  fi
11130	;;
11131      esac
11132      ;;
11133
11134    sunos4*)
11135      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11136      wlarc=
11137      hardcode_direct=yes
11138      hardcode_shlibpath_var=no
11139      ;;
11140
11141    *)
11142      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11143	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11144	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11145      else
11146	ld_shlibs=no
11147      fi
11148      ;;
11149    esac
11150
11151    if test no = "$ld_shlibs"; then
11152      runpath_var=
11153      hardcode_libdir_flag_spec=
11154      export_dynamic_flag_spec=
11155      whole_archive_flag_spec=
11156    fi
11157  else
11158    # PORTME fill in a description of your system's linker (not GNU ld)
11159    case $host_os in
11160    aix3*)
11161      allow_undefined_flag=unsupported
11162      always_export_symbols=yes
11163      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'
11164      # Note: this linker hardcodes the directories in LIBPATH if there
11165      # are no directories specified by -L.
11166      hardcode_minus_L=yes
11167      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11168	# Neither direct hardcoding nor static linking is supported with a
11169	# broken collect2.
11170	hardcode_direct=unsupported
11171      fi
11172      ;;
11173
11174    aix[4-9]*)
11175      if test ia64 = "$host_cpu"; then
11176	# On IA64, the linker does run time linking by default, so we don't
11177	# have to do anything special.
11178	aix_use_runtimelinking=no
11179	exp_sym_flag='-Bexport'
11180	no_entry_flag=
11181      else
11182	# If we're using GNU nm, then we don't want the "-C" option.
11183	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11184	# Without the "-l" option, or with the "-B" option, AIX nm treats
11185	# weak defined symbols like other global defined symbols, whereas
11186	# GNU nm marks them as "W".
11187	# While the 'weak' keyword is ignored in the Export File, we need
11188	# it in the Import File for the 'aix-soname' feature, so we have
11189	# to replace the "-B" option with "-P" for AIX nm.
11190	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11191	  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'
11192	else
11193	  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'
11194	fi
11195	aix_use_runtimelinking=no
11196
11197	# Test if we are trying to use run time linking or normal
11198	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11199	# have runtime linking enabled, and use it for executables.
11200	# For shared libraries, we enable/disable runtime linking
11201	# depending on the kind of the shared library created -
11202	# when "with_aix_soname,aix_use_runtimelinking" is:
11203	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11204	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11205	#            lib.a           static archive
11206	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11207	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11208	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11209	#            lib.a(lib.so.V) shared, rtl:no
11210	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11211	#            lib.a           static archive
11212	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11213	  for ld_flag in $LDFLAGS; do
11214	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11215	    aix_use_runtimelinking=yes
11216	    break
11217	  fi
11218	  done
11219	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11220	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11221	    # so we don't have lib.a shared libs to link our executables.
11222	    # We have to force runtime linking in this case.
11223	    aix_use_runtimelinking=yes
11224	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11225	  fi
11226	  ;;
11227	esac
11228
11229	exp_sym_flag='-bexport'
11230	no_entry_flag='-bnoentry'
11231      fi
11232
11233      # When large executables or shared objects are built, AIX ld can
11234      # have problems creating the table of contents.  If linking a library
11235      # or program results in "error TOC overflow" add -mminimal-toc to
11236      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11237      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11238
11239      archive_cmds=''
11240      hardcode_direct=yes
11241      hardcode_direct_absolute=yes
11242      hardcode_libdir_separator=':'
11243      link_all_deplibs=yes
11244      file_list_spec='$wl-f,'
11245      case $with_aix_soname,$aix_use_runtimelinking in
11246      aix,*) ;; # traditional, no import file
11247      svr4,* | *,yes) # use import file
11248	# The Import File defines what to hardcode.
11249	hardcode_direct=no
11250	hardcode_direct_absolute=no
11251	;;
11252      esac
11253
11254      if test yes = "$GCC"; then
11255	case $host_os in aix4.[012]|aix4.[012].*)
11256	# We only want to do this on AIX 4.2 and lower, the check
11257	# below for broken collect2 doesn't work under 4.3+
11258	  collect2name=`$CC -print-prog-name=collect2`
11259	  if test -f "$collect2name" &&
11260	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11261	  then
11262	  # We have reworked collect2
11263	  :
11264	  else
11265	  # We have old collect2
11266	  hardcode_direct=unsupported
11267	  # It fails to find uninstalled libraries when the uninstalled
11268	  # path is not listed in the libpath.  Setting hardcode_minus_L
11269	  # to unsupported forces relinking
11270	  hardcode_minus_L=yes
11271	  hardcode_libdir_flag_spec='-L$libdir'
11272	  hardcode_libdir_separator=
11273	  fi
11274	  ;;
11275	esac
11276	shared_flag='-shared'
11277	if test yes = "$aix_use_runtimelinking"; then
11278	  shared_flag="$shared_flag "'$wl-G'
11279	fi
11280	# Need to ensure runtime linking is disabled for the traditional
11281	# shared library, or the linker may eventually find shared libraries
11282	# /with/ Import File - we do not want to mix them.
11283	shared_flag_aix='-shared'
11284	shared_flag_svr4='-shared $wl-G'
11285      else
11286	# not using gcc
11287	if test ia64 = "$host_cpu"; then
11288	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11289	# chokes on -Wl,-G. The following line is correct:
11290	  shared_flag='-G'
11291	else
11292	  if test yes = "$aix_use_runtimelinking"; then
11293	    shared_flag='$wl-G'
11294	  else
11295	    shared_flag='$wl-bM:SRE'
11296	  fi
11297	  shared_flag_aix='$wl-bM:SRE'
11298	  shared_flag_svr4='$wl-G'
11299	fi
11300      fi
11301
11302      export_dynamic_flag_spec='$wl-bexpall'
11303      # It seems that -bexpall does not export symbols beginning with
11304      # underscore (_), so it is better to generate a list of symbols to export.
11305      always_export_symbols=yes
11306      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11307	# Warning - without using the other runtime loading flags (-brtl),
11308	# -berok will link without error, but may produce a broken library.
11309	allow_undefined_flag='-berok'
11310        # Determine the default libpath from the value encoded in an
11311        # empty executable.
11312        if test set = "${lt_cv_aix_libpath+set}"; then
11313  aix_libpath=$lt_cv_aix_libpath
11314else
11315  if ${lt_cv_aix_libpath_+:} false; then :
11316  $as_echo_n "(cached) " >&6
11317else
11318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319/* end confdefs.h.  */
11320
11321int
11322main ()
11323{
11324
11325  ;
11326  return 0;
11327}
11328_ACEOF
11329if ac_fn_c_try_link "$LINENO"; then :
11330
11331  lt_aix_libpath_sed='
11332      /Import File Strings/,/^$/ {
11333	  /^0/ {
11334	      s/^0  *\([^ ]*\) *$/\1/
11335	      p
11336	  }
11337      }'
11338  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11339  # Check for a 64-bit object if we didn't find anything.
11340  if test -z "$lt_cv_aix_libpath_"; then
11341    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11342  fi
11343fi
11344rm -f core conftest.err conftest.$ac_objext \
11345    conftest$ac_exeext conftest.$ac_ext
11346  if test -z "$lt_cv_aix_libpath_"; then
11347    lt_cv_aix_libpath_=/usr/lib:/lib
11348  fi
11349
11350fi
11351
11352  aix_libpath=$lt_cv_aix_libpath_
11353fi
11354
11355        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11356        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
11357      else
11358	if test ia64 = "$host_cpu"; then
11359	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11360	  allow_undefined_flag="-z nodefs"
11361	  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"
11362	else
11363	 # Determine the default libpath from the value encoded in an
11364	 # empty executable.
11365	 if test set = "${lt_cv_aix_libpath+set}"; then
11366  aix_libpath=$lt_cv_aix_libpath
11367else
11368  if ${lt_cv_aix_libpath_+:} false; then :
11369  $as_echo_n "(cached) " >&6
11370else
11371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372/* end confdefs.h.  */
11373
11374int
11375main ()
11376{
11377
11378  ;
11379  return 0;
11380}
11381_ACEOF
11382if ac_fn_c_try_link "$LINENO"; then :
11383
11384  lt_aix_libpath_sed='
11385      /Import File Strings/,/^$/ {
11386	  /^0/ {
11387	      s/^0  *\([^ ]*\) *$/\1/
11388	      p
11389	  }
11390      }'
11391  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11392  # Check for a 64-bit object if we didn't find anything.
11393  if test -z "$lt_cv_aix_libpath_"; then
11394    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11395  fi
11396fi
11397rm -f core conftest.err conftest.$ac_objext \
11398    conftest$ac_exeext conftest.$ac_ext
11399  if test -z "$lt_cv_aix_libpath_"; then
11400    lt_cv_aix_libpath_=/usr/lib:/lib
11401  fi
11402
11403fi
11404
11405  aix_libpath=$lt_cv_aix_libpath_
11406fi
11407
11408	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11409	  # Warning - without using the other run time loading flags,
11410	  # -berok will link without error, but may produce a broken library.
11411	  no_undefined_flag=' $wl-bernotok'
11412	  allow_undefined_flag=' $wl-berok'
11413	  if test yes = "$with_gnu_ld"; then
11414	    # We only use this code for GNU lds that support --whole-archive.
11415	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11416	  else
11417	    # Exported symbols can be pulled into shared objects from archives
11418	    whole_archive_flag_spec='$convenience'
11419	  fi
11420	  archive_cmds_need_lc=yes
11421	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11422	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11423	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11424	  if test svr4 != "$with_aix_soname"; then
11425	    # This is similar to how AIX traditionally builds its shared libraries.
11426	    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'
11427	  fi
11428	  if test aix != "$with_aix_soname"; then
11429	    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'
11430	  else
11431	    # used by -dlpreopen to get the symbols
11432	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11433	  fi
11434	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11435	fi
11436      fi
11437      ;;
11438
11439    amigaos*)
11440      case $host_cpu in
11441      powerpc)
11442            # see comment about AmigaOS4 .so support
11443            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11444            archive_expsym_cmds=''
11445        ;;
11446      m68k)
11447            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)'
11448            hardcode_libdir_flag_spec='-L$libdir'
11449            hardcode_minus_L=yes
11450        ;;
11451      esac
11452      ;;
11453
11454    bsdi[45]*)
11455      export_dynamic_flag_spec=-rdynamic
11456      ;;
11457
11458    cygwin* | mingw* | pw32* | cegcc*)
11459      # When not using gcc, we currently assume that we are using
11460      # Microsoft Visual C++.
11461      # hardcode_libdir_flag_spec is actually meaningless, as there is
11462      # no search path for DLLs.
11463      case $cc_basename in
11464      cl*)
11465	# Native MSVC
11466	hardcode_libdir_flag_spec=' '
11467	allow_undefined_flag=unsupported
11468	always_export_symbols=yes
11469	file_list_spec='@'
11470	# Tell ltmain to make .lib files, not .a files.
11471	libext=lib
11472	# Tell ltmain to make .dll files, not .so files.
11473	shrext_cmds=.dll
11474	# FIXME: Setting linknames here is a bad hack.
11475	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11476	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11477            cp "$export_symbols" "$output_objdir/$soname.def";
11478            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11479          else
11480            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11481          fi~
11482          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11483          linknames='
11484	# The linker will not automatically build a static lib if we build a DLL.
11485	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11486	enable_shared_with_static_runtimes=yes
11487	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11488	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11489	# Don't use ranlib
11490	old_postinstall_cmds='chmod 644 $oldlib'
11491	postlink_cmds='lt_outputfile="@OUTPUT@"~
11492          lt_tool_outputfile="@TOOL_OUTPUT@"~
11493          case $lt_outputfile in
11494            *.exe|*.EXE) ;;
11495            *)
11496              lt_outputfile=$lt_outputfile.exe
11497              lt_tool_outputfile=$lt_tool_outputfile.exe
11498              ;;
11499          esac~
11500          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11501            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11502            $RM "$lt_outputfile.manifest";
11503          fi'
11504	;;
11505      *)
11506	# Assume MSVC wrapper
11507	hardcode_libdir_flag_spec=' '
11508	allow_undefined_flag=unsupported
11509	# Tell ltmain to make .lib files, not .a files.
11510	libext=lib
11511	# Tell ltmain to make .dll files, not .so files.
11512	shrext_cmds=.dll
11513	# FIXME: Setting linknames here is a bad hack.
11514	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11515	# The linker will automatically build a .lib file if we build a DLL.
11516	old_archive_from_new_cmds='true'
11517	# FIXME: Should let the user specify the lib program.
11518	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11519	enable_shared_with_static_runtimes=yes
11520	;;
11521      esac
11522      ;;
11523
11524    darwin* | rhapsody*)
11525
11526
11527  archive_cmds_need_lc=no
11528  hardcode_direct=no
11529  hardcode_automatic=yes
11530  hardcode_shlibpath_var=unsupported
11531  if test yes = "$lt_cv_ld_force_load"; then
11532    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\"`'
11533
11534  else
11535    whole_archive_flag_spec=''
11536  fi
11537  link_all_deplibs=yes
11538  allow_undefined_flag=$_lt_dar_allow_undefined
11539  case $cc_basename in
11540     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11541     *) _lt_dar_can_shared=$GCC ;;
11542  esac
11543  if test yes = "$_lt_dar_can_shared"; then
11544    output_verbose_link_cmd=func_echo_all
11545    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11546    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11547    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"
11548    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"
11549
11550  else
11551  ld_shlibs=no
11552  fi
11553
11554      ;;
11555
11556    dgux*)
11557      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11558      hardcode_libdir_flag_spec='-L$libdir'
11559      hardcode_shlibpath_var=no
11560      ;;
11561
11562    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11563    # support.  Future versions do this automatically, but an explicit c++rt0.o
11564    # does not break anything, and helps significantly (at the cost of a little
11565    # extra space).
11566    freebsd2.2*)
11567      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11568      hardcode_libdir_flag_spec='-R$libdir'
11569      hardcode_direct=yes
11570      hardcode_shlibpath_var=no
11571      ;;
11572
11573    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11574    freebsd2.*)
11575      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11576      hardcode_direct=yes
11577      hardcode_minus_L=yes
11578      hardcode_shlibpath_var=no
11579      ;;
11580
11581    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11582    freebsd* | dragonfly*)
11583      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11584      hardcode_libdir_flag_spec='-R$libdir'
11585      hardcode_direct=yes
11586      hardcode_shlibpath_var=no
11587      ;;
11588
11589    hpux9*)
11590      if test yes = "$GCC"; then
11591	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11592      else
11593	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'
11594      fi
11595      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11596      hardcode_libdir_separator=:
11597      hardcode_direct=yes
11598
11599      # hardcode_minus_L: Not really in the search PATH,
11600      # but as the default location of the library.
11601      hardcode_minus_L=yes
11602      export_dynamic_flag_spec='$wl-E'
11603      ;;
11604
11605    hpux10*)
11606      if test yes,no = "$GCC,$with_gnu_ld"; then
11607	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11608      else
11609	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11610      fi
11611      if test no = "$with_gnu_ld"; then
11612	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11613	hardcode_libdir_separator=:
11614	hardcode_direct=yes
11615	hardcode_direct_absolute=yes
11616	export_dynamic_flag_spec='$wl-E'
11617	# hardcode_minus_L: Not really in the search PATH,
11618	# but as the default location of the library.
11619	hardcode_minus_L=yes
11620      fi
11621      ;;
11622
11623    hpux11*)
11624      if test yes,no = "$GCC,$with_gnu_ld"; then
11625	case $host_cpu in
11626	hppa*64*)
11627	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11628	  ;;
11629	ia64*)
11630	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11631	  ;;
11632	*)
11633	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11634	  ;;
11635	esac
11636      else
11637	case $host_cpu in
11638	hppa*64*)
11639	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11640	  ;;
11641	ia64*)
11642	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11643	  ;;
11644	*)
11645
11646	  # Older versions of the 11.00 compiler do not understand -b yet
11647	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11648	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11649$as_echo_n "checking if $CC understands -b... " >&6; }
11650if ${lt_cv_prog_compiler__b+:} false; then :
11651  $as_echo_n "(cached) " >&6
11652else
11653  lt_cv_prog_compiler__b=no
11654   save_LDFLAGS=$LDFLAGS
11655   LDFLAGS="$LDFLAGS -b"
11656   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11657   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11658     # The linker can only warn and ignore the option if not recognized
11659     # So say no if there are warnings
11660     if test -s conftest.err; then
11661       # Append any errors to the config.log.
11662       cat conftest.err 1>&5
11663       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11664       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11665       if diff conftest.exp conftest.er2 >/dev/null; then
11666         lt_cv_prog_compiler__b=yes
11667       fi
11668     else
11669       lt_cv_prog_compiler__b=yes
11670     fi
11671   fi
11672   $RM -r conftest*
11673   LDFLAGS=$save_LDFLAGS
11674
11675fi
11676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11677$as_echo "$lt_cv_prog_compiler__b" >&6; }
11678
11679if test yes = "$lt_cv_prog_compiler__b"; then
11680    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11681else
11682    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11683fi
11684
11685	  ;;
11686	esac
11687      fi
11688      if test no = "$with_gnu_ld"; then
11689	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11690	hardcode_libdir_separator=:
11691
11692	case $host_cpu in
11693	hppa*64*|ia64*)
11694	  hardcode_direct=no
11695	  hardcode_shlibpath_var=no
11696	  ;;
11697	*)
11698	  hardcode_direct=yes
11699	  hardcode_direct_absolute=yes
11700	  export_dynamic_flag_spec='$wl-E'
11701
11702	  # hardcode_minus_L: Not really in the search PATH,
11703	  # but as the default location of the library.
11704	  hardcode_minus_L=yes
11705	  ;;
11706	esac
11707      fi
11708      ;;
11709
11710    irix5* | irix6* | nonstopux*)
11711      if test yes = "$GCC"; then
11712	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11713	# Try to use the -exported_symbol ld option, if it does not
11714	# work, assume that -exports_file does not work either and
11715	# implicitly export all symbols.
11716	# This should be the same for all languages, so no per-tag cache variable.
11717	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11718$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11719if ${lt_cv_irix_exported_symbol+:} false; then :
11720  $as_echo_n "(cached) " >&6
11721else
11722  save_LDFLAGS=$LDFLAGS
11723	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11724	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725/* end confdefs.h.  */
11726int foo (void) { return 0; }
11727_ACEOF
11728if ac_fn_c_try_link "$LINENO"; then :
11729  lt_cv_irix_exported_symbol=yes
11730else
11731  lt_cv_irix_exported_symbol=no
11732fi
11733rm -f core conftest.err conftest.$ac_objext \
11734    conftest$ac_exeext conftest.$ac_ext
11735           LDFLAGS=$save_LDFLAGS
11736fi
11737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11738$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11739	if test yes = "$lt_cv_irix_exported_symbol"; then
11740          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11741	fi
11742	link_all_deplibs=no
11743      else
11744	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11745	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11746      fi
11747      archive_cmds_need_lc='no'
11748      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11749      hardcode_libdir_separator=:
11750      inherit_rpath=yes
11751      link_all_deplibs=yes
11752      ;;
11753
11754    linux*)
11755      case $cc_basename in
11756      tcc*)
11757	# Fabrice Bellard et al's Tiny C Compiler
11758	ld_shlibs=yes
11759	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11760	;;
11761      esac
11762      ;;
11763
11764    netbsd* | netbsdelf*-gnu)
11765      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11766	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11767      else
11768	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11769      fi
11770      hardcode_libdir_flag_spec='-R$libdir'
11771      hardcode_direct=yes
11772      hardcode_shlibpath_var=no
11773      ;;
11774
11775    newsos6)
11776      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11777      hardcode_direct=yes
11778      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11779      hardcode_libdir_separator=:
11780      hardcode_shlibpath_var=no
11781      ;;
11782
11783    *nto* | *qnx*)
11784      ;;
11785
11786    openbsd* | bitrig*)
11787      if test -f /usr/libexec/ld.so; then
11788	hardcode_direct=yes
11789	hardcode_shlibpath_var=no
11790	hardcode_direct_absolute=yes
11791	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11792	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11793	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11794	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11795	  export_dynamic_flag_spec='$wl-E'
11796	else
11797	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11798	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11799	fi
11800      else
11801	ld_shlibs=no
11802      fi
11803      ;;
11804
11805    os2*)
11806      hardcode_libdir_flag_spec='-L$libdir'
11807      hardcode_minus_L=yes
11808      allow_undefined_flag=unsupported
11809      shrext_cmds=.dll
11810      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11811	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11812	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11813	$ECHO EXPORTS >> $output_objdir/$libname.def~
11814	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11815	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11816	emximp -o $lib $output_objdir/$libname.def'
11817      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11818	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11819	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11820	$ECHO EXPORTS >> $output_objdir/$libname.def~
11821	prefix_cmds="$SED"~
11822	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11823	  prefix_cmds="$prefix_cmds -e 1d";
11824	fi~
11825	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11826	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11827	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11828	emximp -o $lib $output_objdir/$libname.def'
11829      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11830      enable_shared_with_static_runtimes=yes
11831      ;;
11832
11833    osf3*)
11834      if test yes = "$GCC"; then
11835	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11836	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11837      else
11838	allow_undefined_flag=' -expect_unresolved \*'
11839	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11840      fi
11841      archive_cmds_need_lc='no'
11842      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11843      hardcode_libdir_separator=:
11844      ;;
11845
11846    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11847      if test yes = "$GCC"; then
11848	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11849	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11850	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11851      else
11852	allow_undefined_flag=' -expect_unresolved \*'
11853	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11854	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~
11855          $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'
11856
11857	# Both c and cxx compiler support -rpath directly
11858	hardcode_libdir_flag_spec='-rpath $libdir'
11859      fi
11860      archive_cmds_need_lc='no'
11861      hardcode_libdir_separator=:
11862      ;;
11863
11864    solaris*)
11865      no_undefined_flag=' -z defs'
11866      if test yes = "$GCC"; then
11867	wlarc='$wl'
11868	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11869	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11870          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11871      else
11872	case `$CC -V 2>&1` in
11873	*"Compilers 5.0"*)
11874	  wlarc=''
11875	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11876	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11877            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11878	  ;;
11879	*)
11880	  wlarc='$wl'
11881	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11882	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11883            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11884	  ;;
11885	esac
11886      fi
11887      hardcode_libdir_flag_spec='-R$libdir'
11888      hardcode_shlibpath_var=no
11889      case $host_os in
11890      solaris2.[0-5] | solaris2.[0-5].*) ;;
11891      *)
11892	# The compiler driver will combine and reorder linker options,
11893	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11894	# but is careful enough not to reorder.
11895	# Supported since Solaris 2.6 (maybe 2.5.1?)
11896	if test yes = "$GCC"; then
11897	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11898	else
11899	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11900	fi
11901	;;
11902      esac
11903      link_all_deplibs=yes
11904      ;;
11905
11906    sunos4*)
11907      if test sequent = "$host_vendor"; then
11908	# Use $CC to link under sequent, because it throws in some extra .o
11909	# files that make .init and .fini sections work.
11910	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11911      else
11912	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11913      fi
11914      hardcode_libdir_flag_spec='-L$libdir'
11915      hardcode_direct=yes
11916      hardcode_minus_L=yes
11917      hardcode_shlibpath_var=no
11918      ;;
11919
11920    sysv4)
11921      case $host_vendor in
11922	sni)
11923	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11924	  hardcode_direct=yes # is this really true???
11925	;;
11926	siemens)
11927	  ## LD is ld it makes a PLAMLIB
11928	  ## CC just makes a GrossModule.
11929	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11930	  reload_cmds='$CC -r -o $output$reload_objs'
11931	  hardcode_direct=no
11932        ;;
11933	motorola)
11934	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11935	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11936	;;
11937      esac
11938      runpath_var='LD_RUN_PATH'
11939      hardcode_shlibpath_var=no
11940      ;;
11941
11942    sysv4.3*)
11943      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11944      hardcode_shlibpath_var=no
11945      export_dynamic_flag_spec='-Bexport'
11946      ;;
11947
11948    sysv4*MP*)
11949      if test -d /usr/nec; then
11950	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11951	hardcode_shlibpath_var=no
11952	runpath_var=LD_RUN_PATH
11953	hardcode_runpath_var=yes
11954	ld_shlibs=yes
11955      fi
11956      ;;
11957
11958    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11959      no_undefined_flag='$wl-z,text'
11960      archive_cmds_need_lc=no
11961      hardcode_shlibpath_var=no
11962      runpath_var='LD_RUN_PATH'
11963
11964      if test yes = "$GCC"; then
11965	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11966	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11967      else
11968	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11969	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11970      fi
11971      ;;
11972
11973    sysv5* | sco3.2v5* | sco5v6*)
11974      # Note: We CANNOT use -z defs as we might desire, because we do not
11975      # link with -lc, and that would cause any symbols used from libc to
11976      # always be unresolved, which means just about no library would
11977      # ever link correctly.  If we're not using GNU ld we use -z text
11978      # though, which does catch some bad symbols but isn't as heavy-handed
11979      # as -z defs.
11980      no_undefined_flag='$wl-z,text'
11981      allow_undefined_flag='$wl-z,nodefs'
11982      archive_cmds_need_lc=no
11983      hardcode_shlibpath_var=no
11984      hardcode_libdir_flag_spec='$wl-R,$libdir'
11985      hardcode_libdir_separator=':'
11986      link_all_deplibs=yes
11987      export_dynamic_flag_spec='$wl-Bexport'
11988      runpath_var='LD_RUN_PATH'
11989
11990      if test yes = "$GCC"; then
11991	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11992	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11993      else
11994	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11995	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11996      fi
11997      ;;
11998
11999    uts4*)
12000      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12001      hardcode_libdir_flag_spec='-L$libdir'
12002      hardcode_shlibpath_var=no
12003      ;;
12004
12005    *)
12006      ld_shlibs=no
12007      ;;
12008    esac
12009
12010    if test sni = "$host_vendor"; then
12011      case $host in
12012      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12013	export_dynamic_flag_spec='$wl-Blargedynsym'
12014	;;
12015      esac
12016    fi
12017  fi
12018
12019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12020$as_echo "$ld_shlibs" >&6; }
12021test no = "$ld_shlibs" && can_build_shared=no
12022
12023with_gnu_ld=$with_gnu_ld
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039#
12040# Do we need to explicitly link libc?
12041#
12042case "x$archive_cmds_need_lc" in
12043x|xyes)
12044  # Assume -lc should be added
12045  archive_cmds_need_lc=yes
12046
12047  if test yes,yes = "$GCC,$enable_shared"; then
12048    case $archive_cmds in
12049    *'~'*)
12050      # FIXME: we may have to deal with multi-command sequences.
12051      ;;
12052    '$CC '*)
12053      # Test whether the compiler implicitly links with -lc since on some
12054      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12055      # to ld, don't add -lc before -lgcc.
12056      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12057$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12058if ${lt_cv_archive_cmds_need_lc+:} false; then :
12059  $as_echo_n "(cached) " >&6
12060else
12061  $RM conftest*
12062	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12063
12064	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12065  (eval $ac_compile) 2>&5
12066  ac_status=$?
12067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12068  test $ac_status = 0; } 2>conftest.err; then
12069	  soname=conftest
12070	  lib=conftest
12071	  libobjs=conftest.$ac_objext
12072	  deplibs=
12073	  wl=$lt_prog_compiler_wl
12074	  pic_flag=$lt_prog_compiler_pic
12075	  compiler_flags=-v
12076	  linker_flags=-v
12077	  verstring=
12078	  output_objdir=.
12079	  libname=conftest
12080	  lt_save_allow_undefined_flag=$allow_undefined_flag
12081	  allow_undefined_flag=
12082	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12083  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12084  ac_status=$?
12085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12086  test $ac_status = 0; }
12087	  then
12088	    lt_cv_archive_cmds_need_lc=no
12089	  else
12090	    lt_cv_archive_cmds_need_lc=yes
12091	  fi
12092	  allow_undefined_flag=$lt_save_allow_undefined_flag
12093	else
12094	  cat conftest.err 1>&5
12095	fi
12096	$RM conftest*
12097
12098fi
12099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12100$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12101      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12102      ;;
12103    esac
12104  fi
12105  ;;
12106esac
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12260$as_echo_n "checking dynamic linker characteristics... " >&6; }
12261
12262if test yes = "$GCC"; then
12263  case $host_os in
12264    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12265    *) lt_awk_arg='/^libraries:/' ;;
12266  esac
12267  case $host_os in
12268    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12269    *) lt_sed_strip_eq='s|=/|/|g' ;;
12270  esac
12271  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12272  case $lt_search_path_spec in
12273  *\;*)
12274    # if the path contains ";" then we assume it to be the separator
12275    # otherwise default to the standard path separator (i.e. ":") - it is
12276    # assumed that no part of a normal pathname contains ";" but that should
12277    # okay in the real world where ";" in dirpaths is itself problematic.
12278    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12279    ;;
12280  *)
12281    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12282    ;;
12283  esac
12284  # Ok, now we have the path, separated by spaces, we can step through it
12285  # and add multilib dir if necessary...
12286  lt_tmp_lt_search_path_spec=
12287  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12288  # ...but if some path component already ends with the multilib dir we assume
12289  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12290  case "$lt_multi_os_dir; $lt_search_path_spec " in
12291  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12292    lt_multi_os_dir=
12293    ;;
12294  esac
12295  for lt_sys_path in $lt_search_path_spec; do
12296    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12297      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12298    elif test -n "$lt_multi_os_dir"; then
12299      test -d "$lt_sys_path" && \
12300	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12301    fi
12302  done
12303  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12304BEGIN {RS = " "; FS = "/|\n";} {
12305  lt_foo = "";
12306  lt_count = 0;
12307  for (lt_i = NF; lt_i > 0; lt_i--) {
12308    if ($lt_i != "" && $lt_i != ".") {
12309      if ($lt_i == "..") {
12310        lt_count++;
12311      } else {
12312        if (lt_count == 0) {
12313          lt_foo = "/" $lt_i lt_foo;
12314        } else {
12315          lt_count--;
12316        }
12317      }
12318    }
12319  }
12320  if (lt_foo != "") { lt_freq[lt_foo]++; }
12321  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12322}'`
12323  # AWK program above erroneously prepends '/' to C:/dos/paths
12324  # for these hosts.
12325  case $host_os in
12326    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12327      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12328  esac
12329  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12330else
12331  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12332fi
12333library_names_spec=
12334libname_spec='lib$name'
12335soname_spec=
12336shrext_cmds=.so
12337postinstall_cmds=
12338postuninstall_cmds=
12339finish_cmds=
12340finish_eval=
12341shlibpath_var=
12342shlibpath_overrides_runpath=unknown
12343version_type=none
12344dynamic_linker="$host_os ld.so"
12345sys_lib_dlsearch_path_spec="/lib /usr/lib"
12346need_lib_prefix=unknown
12347hardcode_into_libs=no
12348
12349# when you set need_version to no, make sure it does not cause -set_version
12350# flags to be left without arguments
12351need_version=unknown
12352
12353
12354
12355case $host_os in
12356aix3*)
12357  version_type=linux # correct to gnu/linux during the next big refactor
12358  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12359  shlibpath_var=LIBPATH
12360
12361  # AIX 3 has no versioning support, so we append a major version to the name.
12362  soname_spec='$libname$release$shared_ext$major'
12363  ;;
12364
12365aix[4-9]*)
12366  version_type=linux # correct to gnu/linux during the next big refactor
12367  need_lib_prefix=no
12368  need_version=no
12369  hardcode_into_libs=yes
12370  if test ia64 = "$host_cpu"; then
12371    # AIX 5 supports IA64
12372    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12373    shlibpath_var=LD_LIBRARY_PATH
12374  else
12375    # With GCC up to 2.95.x, collect2 would create an import file
12376    # for dependence libraries.  The import file would start with
12377    # the line '#! .'.  This would cause the generated library to
12378    # depend on '.', always an invalid library.  This was fixed in
12379    # development snapshots of GCC prior to 3.0.
12380    case $host_os in
12381      aix4 | aix4.[01] | aix4.[01].*)
12382      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12383	   echo ' yes '
12384	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12385	:
12386      else
12387	can_build_shared=no
12388      fi
12389      ;;
12390    esac
12391    # Using Import Files as archive members, it is possible to support
12392    # filename-based versioning of shared library archives on AIX. While
12393    # this would work for both with and without runtime linking, it will
12394    # prevent static linking of such archives. So we do filename-based
12395    # shared library versioning with .so extension only, which is used
12396    # when both runtime linking and shared linking is enabled.
12397    # Unfortunately, runtime linking may impact performance, so we do
12398    # not want this to be the default eventually. Also, we use the
12399    # versioned .so libs for executables only if there is the -brtl
12400    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12401    # To allow for filename-based versioning support, we need to create
12402    # libNAME.so.V as an archive file, containing:
12403    # *) an Import File, referring to the versioned filename of the
12404    #    archive as well as the shared archive member, telling the
12405    #    bitwidth (32 or 64) of that shared object, and providing the
12406    #    list of exported symbols of that shared object, eventually
12407    #    decorated with the 'weak' keyword
12408    # *) the shared object with the F_LOADONLY flag set, to really avoid
12409    #    it being seen by the linker.
12410    # At run time we better use the real file rather than another symlink,
12411    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12412
12413    case $with_aix_soname,$aix_use_runtimelinking in
12414    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12415    # soname into executable. Probably we can add versioning support to
12416    # collect2, so additional links can be useful in future.
12417    aix,yes) # traditional libtool
12418      dynamic_linker='AIX unversionable lib.so'
12419      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12420      # instead of lib<name>.a to let people know that these are not
12421      # typical AIX shared libraries.
12422      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12423      ;;
12424    aix,no) # traditional AIX only
12425      dynamic_linker='AIX lib.a(lib.so.V)'
12426      # We preserve .a as extension for shared libraries through AIX4.2
12427      # and later when we are not doing run time linking.
12428      library_names_spec='$libname$release.a $libname.a'
12429      soname_spec='$libname$release$shared_ext$major'
12430      ;;
12431    svr4,*) # full svr4 only
12432      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12433      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12434      # We do not specify a path in Import Files, so LIBPATH fires.
12435      shlibpath_overrides_runpath=yes
12436      ;;
12437    *,yes) # both, prefer svr4
12438      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12439      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12440      # unpreferred sharedlib libNAME.a needs extra handling
12441      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"'
12442      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"'
12443      # We do not specify a path in Import Files, so LIBPATH fires.
12444      shlibpath_overrides_runpath=yes
12445      ;;
12446    *,no) # both, prefer aix
12447      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12448      library_names_spec='$libname$release.a $libname.a'
12449      soname_spec='$libname$release$shared_ext$major'
12450      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12451      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)'
12452      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"'
12453      ;;
12454    esac
12455    shlibpath_var=LIBPATH
12456  fi
12457  ;;
12458
12459amigaos*)
12460  case $host_cpu in
12461  powerpc)
12462    # Since July 2007 AmigaOS4 officially supports .so libraries.
12463    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12464    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12465    ;;
12466  m68k)
12467    library_names_spec='$libname.ixlibrary $libname.a'
12468    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12469    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'
12470    ;;
12471  esac
12472  ;;
12473
12474beos*)
12475  library_names_spec='$libname$shared_ext'
12476  dynamic_linker="$host_os ld.so"
12477  shlibpath_var=LIBRARY_PATH
12478  ;;
12479
12480bsdi[45]*)
12481  version_type=linux # correct to gnu/linux during the next big refactor
12482  need_version=no
12483  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12484  soname_spec='$libname$release$shared_ext$major'
12485  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12486  shlibpath_var=LD_LIBRARY_PATH
12487  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12488  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12489  # the default ld.so.conf also contains /usr/contrib/lib and
12490  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12491  # libtool to hard-code these into programs
12492  ;;
12493
12494cygwin* | mingw* | pw32* | cegcc*)
12495  version_type=windows
12496  shrext_cmds=.dll
12497  need_version=no
12498  need_lib_prefix=no
12499
12500  case $GCC,$cc_basename in
12501  yes,*)
12502    # gcc
12503    library_names_spec='$libname.dll.a'
12504    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12505    postinstall_cmds='base_file=`basename \$file`~
12506      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12507      dldir=$destdir/`dirname \$dlpath`~
12508      test -d \$dldir || mkdir -p \$dldir~
12509      $install_prog $dir/$dlname \$dldir/$dlname~
12510      chmod a+x \$dldir/$dlname~
12511      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12512        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12513      fi'
12514    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12515      dlpath=$dir/\$dldll~
12516       $RM \$dlpath'
12517    shlibpath_overrides_runpath=yes
12518
12519    case $host_os in
12520    cygwin*)
12521      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12522      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12523
12524      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12525      ;;
12526    mingw* | cegcc*)
12527      # MinGW DLLs use traditional 'lib' prefix
12528      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12529      ;;
12530    pw32*)
12531      # pw32 DLLs use 'pw' prefix rather than 'lib'
12532      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12533      ;;
12534    esac
12535    dynamic_linker='Win32 ld.exe'
12536    ;;
12537
12538  *,cl*)
12539    # Native MSVC
12540    libname_spec='$name'
12541    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12542    library_names_spec='$libname.dll.lib'
12543
12544    case $build_os in
12545    mingw*)
12546      sys_lib_search_path_spec=
12547      lt_save_ifs=$IFS
12548      IFS=';'
12549      for lt_path in $LIB
12550      do
12551        IFS=$lt_save_ifs
12552        # Let DOS variable expansion print the short 8.3 style file name.
12553        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12554        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12555      done
12556      IFS=$lt_save_ifs
12557      # Convert to MSYS style.
12558      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12559      ;;
12560    cygwin*)
12561      # Convert to unix form, then to dos form, then back to unix form
12562      # but this time dos style (no spaces!) so that the unix form looks
12563      # like /cygdrive/c/PROGRA~1:/cygdr...
12564      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12565      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12566      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12567      ;;
12568    *)
12569      sys_lib_search_path_spec=$LIB
12570      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12571        # It is most probably a Windows format PATH.
12572        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12573      else
12574        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12575      fi
12576      # FIXME: find the short name or the path components, as spaces are
12577      # common. (e.g. "Program Files" -> "PROGRA~1")
12578      ;;
12579    esac
12580
12581    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12582    postinstall_cmds='base_file=`basename \$file`~
12583      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12584      dldir=$destdir/`dirname \$dlpath`~
12585      test -d \$dldir || mkdir -p \$dldir~
12586      $install_prog $dir/$dlname \$dldir/$dlname'
12587    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12588      dlpath=$dir/\$dldll~
12589       $RM \$dlpath'
12590    shlibpath_overrides_runpath=yes
12591    dynamic_linker='Win32 link.exe'
12592    ;;
12593
12594  *)
12595    # Assume MSVC wrapper
12596    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12597    dynamic_linker='Win32 ld.exe'
12598    ;;
12599  esac
12600  # FIXME: first we should search . and the directory the executable is in
12601  shlibpath_var=PATH
12602  ;;
12603
12604darwin* | rhapsody*)
12605  dynamic_linker="$host_os dyld"
12606  version_type=darwin
12607  need_lib_prefix=no
12608  need_version=no
12609  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12610  soname_spec='$libname$release$major$shared_ext'
12611  shlibpath_overrides_runpath=yes
12612  shlibpath_var=DYLD_LIBRARY_PATH
12613  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12614
12615  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12616  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12617  ;;
12618
12619dgux*)
12620  version_type=linux # correct to gnu/linux during the next big refactor
12621  need_lib_prefix=no
12622  need_version=no
12623  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12624  soname_spec='$libname$release$shared_ext$major'
12625  shlibpath_var=LD_LIBRARY_PATH
12626  ;;
12627
12628freebsd* | dragonfly*)
12629  # DragonFly does not have aout.  When/if they implement a new
12630  # versioning mechanism, adjust this.
12631  if test -x /usr/bin/objformat; then
12632    objformat=`/usr/bin/objformat`
12633  else
12634    case $host_os in
12635    freebsd[23].*) objformat=aout ;;
12636    *) objformat=elf ;;
12637    esac
12638  fi
12639  version_type=freebsd-$objformat
12640  case $version_type in
12641    freebsd-elf*)
12642      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12643      soname_spec='$libname$release$shared_ext$major'
12644      need_version=no
12645      need_lib_prefix=no
12646      ;;
12647    freebsd-*)
12648      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12649      need_version=yes
12650      ;;
12651  esac
12652  shlibpath_var=LD_LIBRARY_PATH
12653  case $host_os in
12654  freebsd2.*)
12655    shlibpath_overrides_runpath=yes
12656    ;;
12657  freebsd3.[01]* | freebsdelf3.[01]*)
12658    shlibpath_overrides_runpath=yes
12659    hardcode_into_libs=yes
12660    ;;
12661  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12662  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12663    shlibpath_overrides_runpath=no
12664    hardcode_into_libs=yes
12665    ;;
12666  *) # from 4.6 on, and DragonFly
12667    shlibpath_overrides_runpath=yes
12668    hardcode_into_libs=yes
12669    ;;
12670  esac
12671  ;;
12672
12673haiku*)
12674  version_type=linux # correct to gnu/linux during the next big refactor
12675  need_lib_prefix=no
12676  need_version=no
12677  dynamic_linker="$host_os runtime_loader"
12678  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12679  soname_spec='$libname$release$shared_ext$major'
12680  shlibpath_var=LIBRARY_PATH
12681  shlibpath_overrides_runpath=no
12682  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12683  hardcode_into_libs=yes
12684  ;;
12685
12686hpux9* | hpux10* | hpux11*)
12687  # Give a soname corresponding to the major version so that dld.sl refuses to
12688  # link against other versions.
12689  version_type=sunos
12690  need_lib_prefix=no
12691  need_version=no
12692  case $host_cpu in
12693  ia64*)
12694    shrext_cmds='.so'
12695    hardcode_into_libs=yes
12696    dynamic_linker="$host_os dld.so"
12697    shlibpath_var=LD_LIBRARY_PATH
12698    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12699    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12700    soname_spec='$libname$release$shared_ext$major'
12701    if test 32 = "$HPUX_IA64_MODE"; then
12702      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12703      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12704    else
12705      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12706      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12707    fi
12708    ;;
12709  hppa*64*)
12710    shrext_cmds='.sl'
12711    hardcode_into_libs=yes
12712    dynamic_linker="$host_os dld.sl"
12713    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12714    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12715    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12716    soname_spec='$libname$release$shared_ext$major'
12717    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12718    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12719    ;;
12720  *)
12721    shrext_cmds='.sl'
12722    dynamic_linker="$host_os dld.sl"
12723    shlibpath_var=SHLIB_PATH
12724    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12725    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12726    soname_spec='$libname$release$shared_ext$major'
12727    ;;
12728  esac
12729  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12730  postinstall_cmds='chmod 555 $lib'
12731  # or fails outright, so override atomically:
12732  install_override_mode=555
12733  ;;
12734
12735interix[3-9]*)
12736  version_type=linux # correct to gnu/linux during the next big refactor
12737  need_lib_prefix=no
12738  need_version=no
12739  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12740  soname_spec='$libname$release$shared_ext$major'
12741  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12742  shlibpath_var=LD_LIBRARY_PATH
12743  shlibpath_overrides_runpath=no
12744  hardcode_into_libs=yes
12745  ;;
12746
12747irix5* | irix6* | nonstopux*)
12748  case $host_os in
12749    nonstopux*) version_type=nonstopux ;;
12750    *)
12751	if test yes = "$lt_cv_prog_gnu_ld"; then
12752		version_type=linux # correct to gnu/linux during the next big refactor
12753	else
12754		version_type=irix
12755	fi ;;
12756  esac
12757  need_lib_prefix=no
12758  need_version=no
12759  soname_spec='$libname$release$shared_ext$major'
12760  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12761  case $host_os in
12762  irix5* | nonstopux*)
12763    libsuff= shlibsuff=
12764    ;;
12765  *)
12766    case $LD in # libtool.m4 will add one of these switches to LD
12767    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12768      libsuff= shlibsuff= libmagic=32-bit;;
12769    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12770      libsuff=32 shlibsuff=N32 libmagic=N32;;
12771    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12772      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12773    *) libsuff= shlibsuff= libmagic=never-match;;
12774    esac
12775    ;;
12776  esac
12777  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12778  shlibpath_overrides_runpath=no
12779  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12780  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12781  hardcode_into_libs=yes
12782  ;;
12783
12784# No shared lib support for Linux oldld, aout, or coff.
12785linux*oldld* | linux*aout* | linux*coff*)
12786  dynamic_linker=no
12787  ;;
12788
12789linux*android*)
12790  version_type=none # Android doesn't support versioned libraries.
12791  need_lib_prefix=no
12792  need_version=no
12793  library_names_spec='$libname$release$shared_ext'
12794  soname_spec='$libname$release$shared_ext'
12795  finish_cmds=
12796  shlibpath_var=LD_LIBRARY_PATH
12797  shlibpath_overrides_runpath=yes
12798
12799  # This implies no fast_install, which is unacceptable.
12800  # Some rework will be needed to allow for fast_install
12801  # before this can be enabled.
12802  hardcode_into_libs=yes
12803
12804  dynamic_linker='Android linker'
12805  # Don't embed -rpath directories since the linker doesn't support them.
12806  hardcode_libdir_flag_spec='-L$libdir'
12807  ;;
12808
12809# This must be glibc/ELF.
12810linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12811  version_type=linux # correct to gnu/linux during the next big refactor
12812  need_lib_prefix=no
12813  need_version=no
12814  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12815  soname_spec='$libname$release$shared_ext$major'
12816  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12817  shlibpath_var=LD_LIBRARY_PATH
12818  shlibpath_overrides_runpath=no
12819
12820  # Some binutils ld are patched to set DT_RUNPATH
12821  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12822  $as_echo_n "(cached) " >&6
12823else
12824  lt_cv_shlibpath_overrides_runpath=no
12825    save_LDFLAGS=$LDFLAGS
12826    save_libdir=$libdir
12827    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12828	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12829    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830/* end confdefs.h.  */
12831
12832int
12833main ()
12834{
12835
12836  ;
12837  return 0;
12838}
12839_ACEOF
12840if ac_fn_c_try_link "$LINENO"; then :
12841  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12842  lt_cv_shlibpath_overrides_runpath=yes
12843fi
12844fi
12845rm -f core conftest.err conftest.$ac_objext \
12846    conftest$ac_exeext conftest.$ac_ext
12847    LDFLAGS=$save_LDFLAGS
12848    libdir=$save_libdir
12849
12850fi
12851
12852  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12853
12854  # This implies no fast_install, which is unacceptable.
12855  # Some rework will be needed to allow for fast_install
12856  # before this can be enabled.
12857  hardcode_into_libs=yes
12858
12859  # Ideally, we could use ldconfig to report *all* directores which are
12860  # searched for libraries, however this is still not possible.  Aside from not
12861  # being certain /sbin/ldconfig is available, command
12862  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12863  # even though it is searched at run-time.  Try to do the best guess by
12864  # appending ld.so.conf contents (and includes) to the search path.
12865  if test -f /etc/ld.so.conf; then
12866    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' ' '`
12867    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12868  fi
12869
12870  # We used to test for /lib/ld.so.1 and disable shared libraries on
12871  # powerpc, because MkLinux only supported shared libraries with the
12872  # GNU dynamic linker.  Since this was broken with cross compilers,
12873  # most powerpc-linux boxes support dynamic linking these days and
12874  # people can always --disable-shared, the test was removed, and we
12875  # assume the GNU/Linux dynamic linker is in use.
12876  dynamic_linker='GNU/Linux ld.so'
12877  ;;
12878
12879netbsdelf*-gnu)
12880  version_type=linux
12881  need_lib_prefix=no
12882  need_version=no
12883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12884  soname_spec='${libname}${release}${shared_ext}$major'
12885  shlibpath_var=LD_LIBRARY_PATH
12886  shlibpath_overrides_runpath=no
12887  hardcode_into_libs=yes
12888  dynamic_linker='NetBSD ld.elf_so'
12889  ;;
12890
12891netbsd*)
12892  version_type=sunos
12893  need_lib_prefix=no
12894  need_version=no
12895  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12896    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12897    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12898    dynamic_linker='NetBSD (a.out) ld.so'
12899  else
12900    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12901    soname_spec='$libname$release$shared_ext$major'
12902    dynamic_linker='NetBSD ld.elf_so'
12903  fi
12904  shlibpath_var=LD_LIBRARY_PATH
12905  shlibpath_overrides_runpath=yes
12906  hardcode_into_libs=yes
12907  ;;
12908
12909newsos6)
12910  version_type=linux # correct to gnu/linux during the next big refactor
12911  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12912  shlibpath_var=LD_LIBRARY_PATH
12913  shlibpath_overrides_runpath=yes
12914  ;;
12915
12916*nto* | *qnx*)
12917  version_type=qnx
12918  need_lib_prefix=no
12919  need_version=no
12920  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12921  soname_spec='$libname$release$shared_ext$major'
12922  shlibpath_var=LD_LIBRARY_PATH
12923  shlibpath_overrides_runpath=no
12924  hardcode_into_libs=yes
12925  dynamic_linker='ldqnx.so'
12926  ;;
12927
12928openbsd* | bitrig*)
12929  version_type=sunos
12930  sys_lib_dlsearch_path_spec=/usr/lib
12931  need_lib_prefix=no
12932  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12933    need_version=no
12934  else
12935    need_version=yes
12936  fi
12937  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12938  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12939  shlibpath_var=LD_LIBRARY_PATH
12940  shlibpath_overrides_runpath=yes
12941  ;;
12942
12943os2*)
12944  libname_spec='$name'
12945  version_type=windows
12946  shrext_cmds=.dll
12947  need_version=no
12948  need_lib_prefix=no
12949  # OS/2 can only load a DLL with a base name of 8 characters or less.
12950  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12951    v=$($ECHO $release$versuffix | tr -d .-);
12952    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12953    $ECHO $n$v`$shared_ext'
12954  library_names_spec='${libname}_dll.$libext'
12955  dynamic_linker='OS/2 ld.exe'
12956  shlibpath_var=BEGINLIBPATH
12957  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12958  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12959  postinstall_cmds='base_file=`basename \$file`~
12960    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12961    dldir=$destdir/`dirname \$dlpath`~
12962    test -d \$dldir || mkdir -p \$dldir~
12963    $install_prog $dir/$dlname \$dldir/$dlname~
12964    chmod a+x \$dldir/$dlname~
12965    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12966      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12967    fi'
12968  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12969    dlpath=$dir/\$dldll~
12970    $RM \$dlpath'
12971  ;;
12972
12973osf3* | osf4* | osf5*)
12974  version_type=osf
12975  need_lib_prefix=no
12976  need_version=no
12977  soname_spec='$libname$release$shared_ext$major'
12978  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12979  shlibpath_var=LD_LIBRARY_PATH
12980  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12981  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12982  ;;
12983
12984rdos*)
12985  dynamic_linker=no
12986  ;;
12987
12988solaris*)
12989  version_type=linux # correct to gnu/linux during the next big refactor
12990  need_lib_prefix=no
12991  need_version=no
12992  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12993  soname_spec='$libname$release$shared_ext$major'
12994  shlibpath_var=LD_LIBRARY_PATH
12995  shlibpath_overrides_runpath=yes
12996  hardcode_into_libs=yes
12997  # ldd complains unless libraries are executable
12998  postinstall_cmds='chmod +x $lib'
12999  ;;
13000
13001sunos4*)
13002  version_type=sunos
13003  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13004  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13005  shlibpath_var=LD_LIBRARY_PATH
13006  shlibpath_overrides_runpath=yes
13007  if test yes = "$with_gnu_ld"; then
13008    need_lib_prefix=no
13009  fi
13010  need_version=yes
13011  ;;
13012
13013sysv4 | sysv4.3*)
13014  version_type=linux # correct to gnu/linux during the next big refactor
13015  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13016  soname_spec='$libname$release$shared_ext$major'
13017  shlibpath_var=LD_LIBRARY_PATH
13018  case $host_vendor in
13019    sni)
13020      shlibpath_overrides_runpath=no
13021      need_lib_prefix=no
13022      runpath_var=LD_RUN_PATH
13023      ;;
13024    siemens)
13025      need_lib_prefix=no
13026      ;;
13027    motorola)
13028      need_lib_prefix=no
13029      need_version=no
13030      shlibpath_overrides_runpath=no
13031      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13032      ;;
13033  esac
13034  ;;
13035
13036sysv4*MP*)
13037  if test -d /usr/nec; then
13038    version_type=linux # correct to gnu/linux during the next big refactor
13039    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13040    soname_spec='$libname$shared_ext.$major'
13041    shlibpath_var=LD_LIBRARY_PATH
13042  fi
13043  ;;
13044
13045sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13046  version_type=sco
13047  need_lib_prefix=no
13048  need_version=no
13049  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13050  soname_spec='$libname$release$shared_ext$major'
13051  shlibpath_var=LD_LIBRARY_PATH
13052  shlibpath_overrides_runpath=yes
13053  hardcode_into_libs=yes
13054  if test yes = "$with_gnu_ld"; then
13055    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13056  else
13057    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13058    case $host_os in
13059      sco3.2v5*)
13060        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13061	;;
13062    esac
13063  fi
13064  sys_lib_dlsearch_path_spec='/usr/lib'
13065  ;;
13066
13067tpf*)
13068  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13069  version_type=linux # correct to gnu/linux during the next big refactor
13070  need_lib_prefix=no
13071  need_version=no
13072  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13073  shlibpath_var=LD_LIBRARY_PATH
13074  shlibpath_overrides_runpath=no
13075  hardcode_into_libs=yes
13076  ;;
13077
13078uts4*)
13079  version_type=linux # correct to gnu/linux during the next big refactor
13080  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13081  soname_spec='$libname$release$shared_ext$major'
13082  shlibpath_var=LD_LIBRARY_PATH
13083  ;;
13084
13085*)
13086  dynamic_linker=no
13087  ;;
13088esac
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13090$as_echo "$dynamic_linker" >&6; }
13091test no = "$dynamic_linker" && can_build_shared=no
13092
13093variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13094if test yes = "$GCC"; then
13095  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13096fi
13097
13098if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13099  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13100fi
13101
13102if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13103  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13104fi
13105
13106# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13107configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13108
13109# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13110func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13111
13112# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13113configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13212$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13213hardcode_action=
13214if test -n "$hardcode_libdir_flag_spec" ||
13215   test -n "$runpath_var" ||
13216   test yes = "$hardcode_automatic"; then
13217
13218  # We can hardcode non-existent directories.
13219  if test no != "$hardcode_direct" &&
13220     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13221     # have to relink, otherwise we might link with an installed library
13222     # when we should be linking with a yet-to-be-installed one
13223     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13224     test no != "$hardcode_minus_L"; then
13225    # Linking always hardcodes the temporary library directory.
13226    hardcode_action=relink
13227  else
13228    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13229    hardcode_action=immediate
13230  fi
13231else
13232  # We cannot hardcode anything, or else we can only hardcode existing
13233  # directories.
13234  hardcode_action=unsupported
13235fi
13236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13237$as_echo "$hardcode_action" >&6; }
13238
13239if test relink = "$hardcode_action" ||
13240   test yes = "$inherit_rpath"; then
13241  # Fast installation is not supported
13242  enable_fast_install=no
13243elif test yes = "$shlibpath_overrides_runpath" ||
13244     test no = "$enable_shared"; then
13245  # Fast installation is not necessary
13246  enable_fast_install=needless
13247fi
13248
13249
13250
13251
13252
13253
13254  if test yes != "$enable_dlopen"; then
13255  enable_dlopen=unknown
13256  enable_dlopen_self=unknown
13257  enable_dlopen_self_static=unknown
13258else
13259  lt_cv_dlopen=no
13260  lt_cv_dlopen_libs=
13261
13262  case $host_os in
13263  beos*)
13264    lt_cv_dlopen=load_add_on
13265    lt_cv_dlopen_libs=
13266    lt_cv_dlopen_self=yes
13267    ;;
13268
13269  mingw* | pw32* | cegcc*)
13270    lt_cv_dlopen=LoadLibrary
13271    lt_cv_dlopen_libs=
13272    ;;
13273
13274  cygwin*)
13275    lt_cv_dlopen=dlopen
13276    lt_cv_dlopen_libs=
13277    ;;
13278
13279  darwin*)
13280    # if libdl is installed we need to link against it
13281    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in " >&5
13282$as_echo_n "checking for dlopen in ... " >&6; }
13283if ${ac_cv_lib_dl_dlopen+:} false; then :
13284  $as_echo_n "(cached) " >&6
13285else
13286  ac_check_lib_save_LIBS=$LIBS
13287LIBS="  $LIBS"
13288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13289/* end confdefs.h.  */
13290
13291/* Override any GCC internal prototype to avoid an error.
13292   Use char because int might match the return type of a GCC
13293   builtin and then its argument prototype would still apply.  */
13294#ifdef __cplusplus
13295extern "C"
13296#endif
13297char dlopen ();
13298int
13299main ()
13300{
13301return dlopen ();
13302  ;
13303  return 0;
13304}
13305_ACEOF
13306if ac_fn_c_try_link "$LINENO"; then :
13307  ac_cv_lib_dl_dlopen=yes
13308else
13309  ac_cv_lib_dl_dlopen=no
13310fi
13311rm -f core conftest.err conftest.$ac_objext \
13312    conftest$ac_exeext conftest.$ac_ext
13313LIBS=$ac_check_lib_save_LIBS
13314fi
13315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13316$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13317if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13318  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=
13319else
13320
13321    lt_cv_dlopen=dyld
13322    lt_cv_dlopen_libs=
13323    lt_cv_dlopen_self=yes
13324
13325fi
13326
13327    ;;
13328
13329  tpf*)
13330    # Don't try to run any link tests for TPF.  We know it's impossible
13331    # because TPF is a cross-compiler, and we know how we open DSOs.
13332    lt_cv_dlopen=dlopen
13333    lt_cv_dlopen_libs=
13334    lt_cv_dlopen_self=no
13335    ;;
13336
13337  *)
13338    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13339if test "x$ac_cv_func_shl_load" = xyes; then :
13340  lt_cv_dlopen=shl_load
13341else
13342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in d" >&5
13343$as_echo_n "checking for shl_load in d... " >&6; }
13344if ${ac_cv_lib_dld_shl_load+:} false; then :
13345  $as_echo_n "(cached) " >&6
13346else
13347  ac_check_lib_save_LIBS=$LIBS
13348LIBS="d  $LIBS"
13349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13350/* end confdefs.h.  */
13351
13352/* Override any GCC internal prototype to avoid an error.
13353   Use char because int might match the return type of a GCC
13354   builtin and then its argument prototype would still apply.  */
13355#ifdef __cplusplus
13356extern "C"
13357#endif
13358char shl_load ();
13359int
13360main ()
13361{
13362return shl_load ();
13363  ;
13364  return 0;
13365}
13366_ACEOF
13367if ac_fn_c_try_link "$LINENO"; then :
13368  ac_cv_lib_dld_shl_load=yes
13369else
13370  ac_cv_lib_dld_shl_load=no
13371fi
13372rm -f core conftest.err conftest.$ac_objext \
13373    conftest$ac_exeext conftest.$ac_ext
13374LIBS=$ac_check_lib_save_LIBS
13375fi
13376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13377$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13378if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13379  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=d
13380else
13381  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13382if test "x$ac_cv_func_dlopen" = xyes; then :
13383  lt_cv_dlopen=dlopen
13384else
13385  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in " >&5
13386$as_echo_n "checking for dlopen in ... " >&6; }
13387if ${ac_cv_lib_dl_dlopen+:} false; then :
13388  $as_echo_n "(cached) " >&6
13389else
13390  ac_check_lib_save_LIBS=$LIBS
13391LIBS="  $LIBS"
13392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393/* end confdefs.h.  */
13394
13395/* Override any GCC internal prototype to avoid an error.
13396   Use char because int might match the return type of a GCC
13397   builtin and then its argument prototype would still apply.  */
13398#ifdef __cplusplus
13399extern "C"
13400#endif
13401char dlopen ();
13402int
13403main ()
13404{
13405return dlopen ();
13406  ;
13407  return 0;
13408}
13409_ACEOF
13410if ac_fn_c_try_link "$LINENO"; then :
13411  ac_cv_lib_dl_dlopen=yes
13412else
13413  ac_cv_lib_dl_dlopen=no
13414fi
13415rm -f core conftest.err conftest.$ac_objext \
13416    conftest$ac_exeext conftest.$ac_ext
13417LIBS=$ac_check_lib_save_LIBS
13418fi
13419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13420$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13421if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13422  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=
13423else
13424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13425$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13426if ${ac_cv_lib_svld_dlopen+:} false; then :
13427  $as_echo_n "(cached) " >&6
13428else
13429  ac_check_lib_save_LIBS=$LIBS
13430LIBS="-lsvld  $LIBS"
13431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432/* end confdefs.h.  */
13433
13434/* Override any GCC internal prototype to avoid an error.
13435   Use char because int might match the return type of a GCC
13436   builtin and then its argument prototype would still apply.  */
13437#ifdef __cplusplus
13438extern "C"
13439#endif
13440char dlopen ();
13441int
13442main ()
13443{
13444return dlopen ();
13445  ;
13446  return 0;
13447}
13448_ACEOF
13449if ac_fn_c_try_link "$LINENO"; then :
13450  ac_cv_lib_svld_dlopen=yes
13451else
13452  ac_cv_lib_svld_dlopen=no
13453fi
13454rm -f core conftest.err conftest.$ac_objext \
13455    conftest$ac_exeext conftest.$ac_ext
13456LIBS=$ac_check_lib_save_LIBS
13457fi
13458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13459$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13460if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13461  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13462else
13463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in d" >&5
13464$as_echo_n "checking for dld_link in d... " >&6; }
13465if ${ac_cv_lib_dld_dld_link+:} false; then :
13466  $as_echo_n "(cached) " >&6
13467else
13468  ac_check_lib_save_LIBS=$LIBS
13469LIBS="d  $LIBS"
13470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13471/* end confdefs.h.  */
13472
13473/* Override any GCC internal prototype to avoid an error.
13474   Use char because int might match the return type of a GCC
13475   builtin and then its argument prototype would still apply.  */
13476#ifdef __cplusplus
13477extern "C"
13478#endif
13479char dld_link ();
13480int
13481main ()
13482{
13483return dld_link ();
13484  ;
13485  return 0;
13486}
13487_ACEOF
13488if ac_fn_c_try_link "$LINENO"; then :
13489  ac_cv_lib_dld_dld_link=yes
13490else
13491  ac_cv_lib_dld_dld_link=no
13492fi
13493rm -f core conftest.err conftest.$ac_objext \
13494    conftest$ac_exeext conftest.$ac_ext
13495LIBS=$ac_check_lib_save_LIBS
13496fi
13497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13498$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13499if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13500  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=d
13501fi
13502
13503
13504fi
13505
13506
13507fi
13508
13509
13510fi
13511
13512
13513fi
13514
13515
13516fi
13517
13518    ;;
13519  esac
13520
13521  if test no = "$lt_cv_dlopen"; then
13522    enable_dlopen=no
13523  else
13524    enable_dlopen=yes
13525  fi
13526
13527  case $lt_cv_dlopen in
13528  dlopen)
13529    save_CPPFLAGS=$CPPFLAGS
13530    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13531
13532    save_LDFLAGS=$LDFLAGS
13533    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13534
13535    save_LIBS=$LIBS
13536    LIBS="$lt_cv_dlopen_libs $LIBS"
13537
13538    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13539$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13540if ${lt_cv_dlopen_self+:} false; then :
13541  $as_echo_n "(cached) " >&6
13542else
13543  	  if test yes = "$cross_compiling"; then :
13544  lt_cv_dlopen_self=cross
13545else
13546  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13547  lt_status=$lt_dlunknown
13548  cat > conftest.$ac_ext <<_LT_EOF
13549#line $LINENO "configure"
13550#include "confdefs.h"
13551
13552#if HAVE_DLFCN_H
13553#include <dlfcn.h>
13554#endif
13555
13556#include <stdio.h>
13557
13558#ifdef RTLD_GLOBAL
13559#  define LT_DLGLOBAL		RTLD_GLOBAL
13560#else
13561#  ifdef DL_GLOBAL
13562#    define LT_DLGLOBAL		DL_GLOBAL
13563#  else
13564#    define LT_DLGLOBAL		0
13565#  endif
13566#endif
13567
13568/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13569   find out it does not work in some platform. */
13570#ifndef LT_DLLAZY_OR_NOW
13571#  ifdef RTLD_LAZY
13572#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13573#  else
13574#    ifdef DL_LAZY
13575#      define LT_DLLAZY_OR_NOW		DL_LAZY
13576#    else
13577#      ifdef RTLD_NOW
13578#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13579#      else
13580#        ifdef DL_NOW
13581#          define LT_DLLAZY_OR_NOW	DL_NOW
13582#        else
13583#          define LT_DLLAZY_OR_NOW	0
13584#        endif
13585#      endif
13586#    endif
13587#  endif
13588#endif
13589
13590/* When -fvisibility=hidden is used, assume the code has been annotated
13591   correspondingly for the symbols needed.  */
13592#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13593int fnord () __attribute__((visibility("default")));
13594#endif
13595
13596int fnord () { return 42; }
13597int main ()
13598{
13599  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13600  int status = $lt_dlunknown;
13601
13602  if (self)
13603    {
13604      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13605      else
13606        {
13607	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13608          else puts (dlerror ());
13609	}
13610      /* dlclose (self); */
13611    }
13612  else
13613    puts (dlerror ());
13614
13615  return status;
13616}
13617_LT_EOF
13618  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13619  (eval $ac_link) 2>&5
13620  ac_status=$?
13621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13622  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13623    (./conftest; exit; ) >&5 2>/dev/null
13624    lt_status=$?
13625    case x$lt_status in
13626      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13627      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13628      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13629    esac
13630  else :
13631    # compilation failed
13632    lt_cv_dlopen_self=no
13633  fi
13634fi
13635rm -fr conftest*
13636
13637
13638fi
13639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13640$as_echo "$lt_cv_dlopen_self" >&6; }
13641
13642    if test yes = "$lt_cv_dlopen_self"; then
13643      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13644      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13645$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13646if ${lt_cv_dlopen_self_static+:} false; then :
13647  $as_echo_n "(cached) " >&6
13648else
13649  	  if test yes = "$cross_compiling"; then :
13650  lt_cv_dlopen_self_static=cross
13651else
13652  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13653  lt_status=$lt_dlunknown
13654  cat > conftest.$ac_ext <<_LT_EOF
13655#line $LINENO "configure"
13656#include "confdefs.h"
13657
13658#if HAVE_DLFCN_H
13659#include <dlfcn.h>
13660#endif
13661
13662#include <stdio.h>
13663
13664#ifdef RTLD_GLOBAL
13665#  define LT_DLGLOBAL		RTLD_GLOBAL
13666#else
13667#  ifdef DL_GLOBAL
13668#    define LT_DLGLOBAL		DL_GLOBAL
13669#  else
13670#    define LT_DLGLOBAL		0
13671#  endif
13672#endif
13673
13674/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13675   find out it does not work in some platform. */
13676#ifndef LT_DLLAZY_OR_NOW
13677#  ifdef RTLD_LAZY
13678#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13679#  else
13680#    ifdef DL_LAZY
13681#      define LT_DLLAZY_OR_NOW		DL_LAZY
13682#    else
13683#      ifdef RTLD_NOW
13684#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13685#      else
13686#        ifdef DL_NOW
13687#          define LT_DLLAZY_OR_NOW	DL_NOW
13688#        else
13689#          define LT_DLLAZY_OR_NOW	0
13690#        endif
13691#      endif
13692#    endif
13693#  endif
13694#endif
13695
13696/* When -fvisibility=hidden is used, assume the code has been annotated
13697   correspondingly for the symbols needed.  */
13698#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13699int fnord () __attribute__((visibility("default")));
13700#endif
13701
13702int fnord () { return 42; }
13703int main ()
13704{
13705  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13706  int status = $lt_dlunknown;
13707
13708  if (self)
13709    {
13710      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13711      else
13712        {
13713	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13714          else puts (dlerror ());
13715	}
13716      /* dlclose (self); */
13717    }
13718  else
13719    puts (dlerror ());
13720
13721  return status;
13722}
13723_LT_EOF
13724  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13725  (eval $ac_link) 2>&5
13726  ac_status=$?
13727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13728  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13729    (./conftest; exit; ) >&5 2>/dev/null
13730    lt_status=$?
13731    case x$lt_status in
13732      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13733      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13734      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13735    esac
13736  else :
13737    # compilation failed
13738    lt_cv_dlopen_self_static=no
13739  fi
13740fi
13741rm -fr conftest*
13742
13743
13744fi
13745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13746$as_echo "$lt_cv_dlopen_self_static" >&6; }
13747    fi
13748
13749    CPPFLAGS=$save_CPPFLAGS
13750    LDFLAGS=$save_LDFLAGS
13751    LIBS=$save_LIBS
13752    ;;
13753  esac
13754
13755  case $lt_cv_dlopen_self in
13756  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13757  *) enable_dlopen_self=unknown ;;
13758  esac
13759
13760  case $lt_cv_dlopen_self_static in
13761  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13762  *) enable_dlopen_self_static=unknown ;;
13763  esac
13764fi
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782striplib=
13783old_striplib=
13784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13785$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13786if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13787  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13788  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13790$as_echo "yes" >&6; }
13791else
13792# FIXME - insert some real tests, host_os isn't really good enough
13793  case $host_os in
13794  darwin*)
13795    if test -n "$STRIP"; then
13796      striplib="$STRIP -x"
13797      old_striplib="$STRIP -S"
13798      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13799$as_echo "yes" >&6; }
13800    else
13801      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13802$as_echo "no" >&6; }
13803    fi
13804    ;;
13805  *)
13806    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13807$as_echo "no" >&6; }
13808    ;;
13809  esac
13810fi
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823  # Report what library types will actually be built
13824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13825$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13827$as_echo "$can_build_shared" >&6; }
13828
13829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13830$as_echo_n "checking whether to build shared libraries... " >&6; }
13831  test no = "$can_build_shared" && enable_shared=no
13832
13833  # On AIX, shared libraries and static libraries use the same namespace, and
13834  # are all built from PIC.
13835  case $host_os in
13836  aix3*)
13837    test yes = "$enable_shared" && enable_static=no
13838    if test -n "$RANLIB"; then
13839      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13840      postinstall_cmds='$RANLIB $lib'
13841    fi
13842    ;;
13843
13844  aix[4-9]*)
13845    if test ia64 != "$host_cpu"; then
13846      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13847      yes,aix,yes) ;;			# shared object as lib.so file only
13848      yes,svr4,*) ;;			# shared object as lib.so archive member only
13849      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13850      esac
13851    fi
13852    ;;
13853  esac
13854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13855$as_echo "$enable_shared" >&6; }
13856
13857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13858$as_echo_n "checking whether to build static libraries... " >&6; }
13859  # Make sure either enable_shared or enable_static is yes.
13860  test yes = "$enable_shared" || enable_static=yes
13861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13862$as_echo "$enable_static" >&6; }
13863
13864
13865
13866
13867fi
13868ac_ext=c
13869ac_cpp='$CPP $CPPFLAGS'
13870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13872ac_compiler_gnu=$ac_cv_c_compiler_gnu
13873
13874CC=$lt_save_CC
13875
13876      if test -n "$CXX" && ( test no != "$CXX" &&
13877    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13878    (test g++ != "$CXX"))); then
13879  ac_ext=cpp
13880ac_cpp='$CXXCPP $CPPFLAGS'
13881ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13882ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13883ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13885$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13886if test -z "$CXXCPP"; then
13887  if ${ac_cv_prog_CXXCPP+:} false; then :
13888  $as_echo_n "(cached) " >&6
13889else
13890      # Double quotes because CXXCPP needs to be expanded
13891    for CXXCPP in "$CXX -E" "/lib/cpp"
13892    do
13893      ac_preproc_ok=false
13894for ac_cxx_preproc_warn_flag in '' yes
13895do
13896  # Use a header file that comes with gcc, so configuring glibc
13897  # with a fresh cross-compiler works.
13898  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13899  # <limits.h> exists even on freestanding compilers.
13900  # On the NeXT, cc -E runs the code through the compiler's parser,
13901  # not just through cpp. "Syntax error" is here to catch this case.
13902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13903/* end confdefs.h.  */
13904#ifdef __STDC__
13905# include <limits.h>
13906#else
13907# include <assert.h>
13908#endif
13909		     Syntax error
13910_ACEOF
13911if ac_fn_cxx_try_cpp "$LINENO"; then :
13912
13913else
13914  # Broken: fails on valid input.
13915continue
13916fi
13917rm -f conftest.err conftest.i conftest.$ac_ext
13918
13919  # OK, works on sane cases.  Now check whether nonexistent headers
13920  # can be detected and how.
13921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922/* end confdefs.h.  */
13923#include <ac_nonexistent.h>
13924_ACEOF
13925if ac_fn_cxx_try_cpp "$LINENO"; then :
13926  # Broken: success on invalid input.
13927continue
13928else
13929  # Passes both tests.
13930ac_preproc_ok=:
13931break
13932fi
13933rm -f conftest.err conftest.i conftest.$ac_ext
13934
13935done
13936# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13937rm -f conftest.i conftest.err conftest.$ac_ext
13938if $ac_preproc_ok; then :
13939  break
13940fi
13941
13942    done
13943    ac_cv_prog_CXXCPP=$CXXCPP
13944
13945fi
13946  CXXCPP=$ac_cv_prog_CXXCPP
13947else
13948  ac_cv_prog_CXXCPP=$CXXCPP
13949fi
13950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13951$as_echo "$CXXCPP" >&6; }
13952ac_preproc_ok=false
13953for ac_cxx_preproc_warn_flag in '' yes
13954do
13955  # Use a header file that comes with gcc, so configuring glibc
13956  # with a fresh cross-compiler works.
13957  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13958  # <limits.h> exists even on freestanding compilers.
13959  # On the NeXT, cc -E runs the code through the compiler's parser,
13960  # not just through cpp. "Syntax error" is here to catch this case.
13961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962/* end confdefs.h.  */
13963#ifdef __STDC__
13964# include <limits.h>
13965#else
13966# include <assert.h>
13967#endif
13968		     Syntax error
13969_ACEOF
13970if ac_fn_cxx_try_cpp "$LINENO"; then :
13971
13972else
13973  # Broken: fails on valid input.
13974continue
13975fi
13976rm -f conftest.err conftest.i conftest.$ac_ext
13977
13978  # OK, works on sane cases.  Now check whether nonexistent headers
13979  # can be detected and how.
13980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13981/* end confdefs.h.  */
13982#include <ac_nonexistent.h>
13983_ACEOF
13984if ac_fn_cxx_try_cpp "$LINENO"; then :
13985  # Broken: success on invalid input.
13986continue
13987else
13988  # Passes both tests.
13989ac_preproc_ok=:
13990break
13991fi
13992rm -f conftest.err conftest.i conftest.$ac_ext
13993
13994done
13995# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13996rm -f conftest.i conftest.err conftest.$ac_ext
13997if $ac_preproc_ok; then :
13998
13999else
14000  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14002as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14003See \`config.log' for more details" "$LINENO" 5; }
14004fi
14005
14006ac_ext=c
14007ac_cpp='$CPP $CPPFLAGS'
14008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14010ac_compiler_gnu=$ac_cv_c_compiler_gnu
14011
14012else
14013  _lt_caught_CXX_error=yes
14014fi
14015
14016ac_ext=cpp
14017ac_cpp='$CXXCPP $CPPFLAGS'
14018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14021
14022archive_cmds_need_lc_CXX=no
14023allow_undefined_flag_CXX=
14024always_export_symbols_CXX=no
14025archive_expsym_cmds_CXX=
14026compiler_needs_object_CXX=no
14027export_dynamic_flag_spec_CXX=
14028hardcode_direct_CXX=no
14029hardcode_direct_absolute_CXX=no
14030hardcode_libdir_flag_spec_CXX=
14031hardcode_libdir_separator_CXX=
14032hardcode_minus_L_CXX=no
14033hardcode_shlibpath_var_CXX=unsupported
14034hardcode_automatic_CXX=no
14035inherit_rpath_CXX=no
14036module_cmds_CXX=
14037module_expsym_cmds_CXX=
14038link_all_deplibs_CXX=unknown
14039old_archive_cmds_CXX=$old_archive_cmds
14040reload_flag_CXX=$reload_flag
14041reload_cmds_CXX=$reload_cmds
14042no_undefined_flag_CXX=
14043whole_archive_flag_spec_CXX=
14044enable_shared_with_static_runtimes_CXX=no
14045
14046# Source file extension for C++ test sources.
14047ac_ext=cpp
14048
14049# Object file extension for compiled C++ test sources.
14050objext=o
14051objext_CXX=$objext
14052
14053# No sense in running all these tests if we already determined that
14054# the CXX compiler isn't working.  Some variables (like enable_shared)
14055# are currently assumed to apply to all compilers on this platform,
14056# and will be corrupted by setting them based on a non-working compiler.
14057if test yes != "$_lt_caught_CXX_error"; then
14058  # Code to be used in simple compile tests
14059  lt_simple_compile_test_code="int some_variable = 0;"
14060
14061  # Code to be used in simple link tests
14062  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14063
14064  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14065
14066
14067
14068
14069
14070
14071# If no C compiler was specified, use CC.
14072LTCC=${LTCC-"$CC"}
14073
14074# If no C compiler flags were specified, use CFLAGS.
14075LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14076
14077# Allow CC to be a program name with arguments.
14078compiler=$CC
14079
14080
14081  # save warnings/boilerplate of simple test code
14082  ac_outfile=conftest.$ac_objext
14083echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14084eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14085_lt_compiler_boilerplate=`cat conftest.err`
14086$RM conftest*
14087
14088  ac_outfile=conftest.$ac_objext
14089echo "$lt_simple_link_test_code" >conftest.$ac_ext
14090eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14091_lt_linker_boilerplate=`cat conftest.err`
14092$RM -r conftest*
14093
14094
14095  # Allow CC to be a program name with arguments.
14096  lt_save_CC=$CC
14097  lt_save_CFLAGS=$CFLAGS
14098  lt_save_LD=$LD
14099  lt_save_GCC=$GCC
14100  GCC=$GXX
14101  lt_save_with_gnu_ld=$with_gnu_ld
14102  lt_save_path_LD=$lt_cv_path_LD
14103  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14104    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14105  else
14106    $as_unset lt_cv_prog_gnu_ld
14107  fi
14108  if test -n "${lt_cv_path_LDCXX+set}"; then
14109    lt_cv_path_LD=$lt_cv_path_LDCXX
14110  else
14111    $as_unset lt_cv_path_LD
14112  fi
14113  test -z "${LDCXX+set}" || LD=$LDCXX
14114  CC=${CXX-"c++"}
14115  CFLAGS=$CXXFLAGS
14116  compiler=$CC
14117  compiler_CXX=$CC
14118  func_cc_basename $compiler
14119cc_basename=$func_cc_basename_result
14120
14121
14122  if test -n "$compiler"; then
14123    # We don't want -fno-exception when compiling C++ code, so set the
14124    # no_builtin_flag separately
14125    if test yes = "$GXX"; then
14126      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14127    else
14128      lt_prog_compiler_no_builtin_flag_CXX=
14129    fi
14130
14131    if test yes = "$GXX"; then
14132      # Set up default GNU C++ configuration
14133
14134
14135
14136# Check whether --with-gnu-ld was given.
14137if test "${with_gnu_ld+set}" = set; then :
14138  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14139else
14140  with_gnu_ld=no
14141fi
14142
14143ac_prog=ld
14144if test yes = "$GCC"; then
14145  # Check if gcc -print-prog-name=ld gives a path.
14146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14147$as_echo_n "checking for ld used by $CC... " >&6; }
14148  case $host in
14149  *-*-mingw*)
14150    # gcc leaves a trailing carriage return, which upsets mingw
14151    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14152  *)
14153    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14154  esac
14155  case $ac_prog in
14156    # Accept absolute paths.
14157    [\\/]* | ?:[\\/]*)
14158      re_direlt='/[^/][^/]*/\.\./'
14159      # Canonicalize the pathname of ld
14160      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14161      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14162	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14163      done
14164      test -z "$LD" && LD=$ac_prog
14165      ;;
14166  "")
14167    # If it fails, then pretend we aren't using GCC.
14168    ac_prog=ld
14169    ;;
14170  *)
14171    # If it is relative, then search for the first ld in PATH.
14172    with_gnu_ld=unknown
14173    ;;
14174  esac
14175elif test yes = "$with_gnu_ld"; then
14176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14177$as_echo_n "checking for GNU ld... " >&6; }
14178else
14179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14180$as_echo_n "checking for non-GNU ld... " >&6; }
14181fi
14182if ${lt_cv_path_LD+:} false; then :
14183  $as_echo_n "(cached) " >&6
14184else
14185  if test -z "$LD"; then
14186  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14187  for ac_dir in $PATH; do
14188    IFS=$lt_save_ifs
14189    test -z "$ac_dir" && ac_dir=.
14190    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14191      lt_cv_path_LD=$ac_dir/$ac_prog
14192      # Check to see if the program is GNU ld.  I'd rather use --version,
14193      # but apparently some variants of GNU ld only accept -v.
14194      # Break only if it was the GNU/non-GNU ld that we prefer.
14195      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14196      *GNU* | *'with BFD'*)
14197	test no != "$with_gnu_ld" && break
14198	;;
14199      *)
14200	test yes != "$with_gnu_ld" && break
14201	;;
14202      esac
14203    fi
14204  done
14205  IFS=$lt_save_ifs
14206else
14207  lt_cv_path_LD=$LD # Let the user override the test with a path.
14208fi
14209fi
14210
14211LD=$lt_cv_path_LD
14212if test -n "$LD"; then
14213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14214$as_echo "$LD" >&6; }
14215else
14216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14217$as_echo "no" >&6; }
14218fi
14219test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14221$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14222if ${lt_cv_prog_gnu_ld+:} false; then :
14223  $as_echo_n "(cached) " >&6
14224else
14225  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14226case `$LD -v 2>&1 </dev/null` in
14227*GNU* | *'with BFD'*)
14228  lt_cv_prog_gnu_ld=yes
14229  ;;
14230*)
14231  lt_cv_prog_gnu_ld=no
14232  ;;
14233esac
14234fi
14235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14236$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14237with_gnu_ld=$lt_cv_prog_gnu_ld
14238
14239
14240
14241
14242
14243
14244
14245      # Check if GNU C++ uses GNU ld as the underlying linker, since the
14246      # archiving commands below assume that GNU ld is being used.
14247      if test yes = "$with_gnu_ld"; then
14248        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14249        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14250
14251        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14252        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14253
14254        # If archive_cmds runs LD, not CC, wlarc should be empty
14255        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14256        #     investigate it a little bit more. (MM)
14257        wlarc='$wl'
14258
14259        # ancient GNU ld didn't support --whole-archive et. al.
14260        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14261	  $GREP 'no-whole-archive' > /dev/null; then
14262          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14263        else
14264          whole_archive_flag_spec_CXX=
14265        fi
14266      else
14267        with_gnu_ld=no
14268        wlarc=
14269
14270        # A generic and very simple default shared library creation
14271        # command for GNU C++ for the case where it uses the native
14272        # linker, instead of GNU ld.  If possible, this setting should
14273        # overridden to take advantage of the native linker features on
14274        # the platform it is being used on.
14275        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14276      fi
14277
14278      # Commands to make compiler produce verbose output that lists
14279      # what "hidden" libraries, object files and flags are used when
14280      # linking a shared library.
14281      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14282
14283    else
14284      GXX=no
14285      with_gnu_ld=no
14286      wlarc=
14287    fi
14288
14289    # PORTME: fill in a description of your system's C++ link characteristics
14290    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14291$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14292    ld_shlibs_CXX=yes
14293    case $host_os in
14294      aix3*)
14295        # FIXME: insert proper C++ library support
14296        ld_shlibs_CXX=no
14297        ;;
14298      aix[4-9]*)
14299        if test ia64 = "$host_cpu"; then
14300          # On IA64, the linker does run time linking by default, so we don't
14301          # have to do anything special.
14302          aix_use_runtimelinking=no
14303          exp_sym_flag='-Bexport'
14304          no_entry_flag=
14305        else
14306          aix_use_runtimelinking=no
14307
14308          # Test if we are trying to use run time linking or normal
14309          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14310          # have runtime linking enabled, and use it for executables.
14311          # For shared libraries, we enable/disable runtime linking
14312          # depending on the kind of the shared library created -
14313          # when "with_aix_soname,aix_use_runtimelinking" is:
14314          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14315          # "aix,yes"  lib.so          shared, rtl:yes, for executables
14316          #            lib.a           static archive
14317          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14318          #            lib.a(lib.so.V) shared, rtl:no,  for executables
14319          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14320          #            lib.a(lib.so.V) shared, rtl:no
14321          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14322          #            lib.a           static archive
14323          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14324	    for ld_flag in $LDFLAGS; do
14325	      case $ld_flag in
14326	      *-brtl*)
14327	        aix_use_runtimelinking=yes
14328	        break
14329	        ;;
14330	      esac
14331	    done
14332	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14333	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
14334	      # so we don't have lib.a shared libs to link our executables.
14335	      # We have to force runtime linking in this case.
14336	      aix_use_runtimelinking=yes
14337	      LDFLAGS="$LDFLAGS -Wl,-brtl"
14338	    fi
14339	    ;;
14340          esac
14341
14342          exp_sym_flag='-bexport'
14343          no_entry_flag='-bnoentry'
14344        fi
14345
14346        # When large executables or shared objects are built, AIX ld can
14347        # have problems creating the table of contents.  If linking a library
14348        # or program results in "error TOC overflow" add -mminimal-toc to
14349        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14350        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14351
14352        archive_cmds_CXX=''
14353        hardcode_direct_CXX=yes
14354        hardcode_direct_absolute_CXX=yes
14355        hardcode_libdir_separator_CXX=':'
14356        link_all_deplibs_CXX=yes
14357        file_list_spec_CXX='$wl-f,'
14358        case $with_aix_soname,$aix_use_runtimelinking in
14359        aix,*) ;;	# no import file
14360        svr4,* | *,yes) # use import file
14361          # The Import File defines what to hardcode.
14362          hardcode_direct_CXX=no
14363          hardcode_direct_absolute_CXX=no
14364          ;;
14365        esac
14366
14367        if test yes = "$GXX"; then
14368          case $host_os in aix4.[012]|aix4.[012].*)
14369          # We only want to do this on AIX 4.2 and lower, the check
14370          # below for broken collect2 doesn't work under 4.3+
14371	  collect2name=`$CC -print-prog-name=collect2`
14372	  if test -f "$collect2name" &&
14373	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14374	  then
14375	    # We have reworked collect2
14376	    :
14377	  else
14378	    # We have old collect2
14379	    hardcode_direct_CXX=unsupported
14380	    # It fails to find uninstalled libraries when the uninstalled
14381	    # path is not listed in the libpath.  Setting hardcode_minus_L
14382	    # to unsupported forces relinking
14383	    hardcode_minus_L_CXX=yes
14384	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14385	    hardcode_libdir_separator_CXX=
14386	  fi
14387          esac
14388          shared_flag='-shared'
14389	  if test yes = "$aix_use_runtimelinking"; then
14390	    shared_flag=$shared_flag' $wl-G'
14391	  fi
14392	  # Need to ensure runtime linking is disabled for the traditional
14393	  # shared library, or the linker may eventually find shared libraries
14394	  # /with/ Import File - we do not want to mix them.
14395	  shared_flag_aix='-shared'
14396	  shared_flag_svr4='-shared $wl-G'
14397        else
14398          # not using gcc
14399          if test ia64 = "$host_cpu"; then
14400	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14401	  # chokes on -Wl,-G. The following line is correct:
14402	  shared_flag='-G'
14403          else
14404	    if test yes = "$aix_use_runtimelinking"; then
14405	      shared_flag='$wl-G'
14406	    else
14407	      shared_flag='$wl-bM:SRE'
14408	    fi
14409	    shared_flag_aix='$wl-bM:SRE'
14410	    shared_flag_svr4='$wl-G'
14411          fi
14412        fi
14413
14414        export_dynamic_flag_spec_CXX='$wl-bexpall'
14415        # It seems that -bexpall does not export symbols beginning with
14416        # underscore (_), so it is better to generate a list of symbols to
14417	# export.
14418        always_export_symbols_CXX=yes
14419	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14420          # Warning - without using the other runtime loading flags (-brtl),
14421          # -berok will link without error, but may produce a broken library.
14422          # The "-G" linker flag allows undefined symbols.
14423          no_undefined_flag_CXX='-bernotok'
14424          # Determine the default libpath from the value encoded in an empty
14425          # executable.
14426          if test set = "${lt_cv_aix_libpath+set}"; then
14427  aix_libpath=$lt_cv_aix_libpath
14428else
14429  if ${lt_cv_aix_libpath__CXX+:} false; then :
14430  $as_echo_n "(cached) " >&6
14431else
14432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14433/* end confdefs.h.  */
14434
14435int
14436main ()
14437{
14438
14439  ;
14440  return 0;
14441}
14442_ACEOF
14443if ac_fn_cxx_try_link "$LINENO"; then :
14444
14445  lt_aix_libpath_sed='
14446      /Import File Strings/,/^$/ {
14447	  /^0/ {
14448	      s/^0  *\([^ ]*\) *$/\1/
14449	      p
14450	  }
14451      }'
14452  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14453  # Check for a 64-bit object if we didn't find anything.
14454  if test -z "$lt_cv_aix_libpath__CXX"; then
14455    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14456  fi
14457fi
14458rm -f core conftest.err conftest.$ac_objext \
14459    conftest$ac_exeext conftest.$ac_ext
14460  if test -z "$lt_cv_aix_libpath__CXX"; then
14461    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14462  fi
14463
14464fi
14465
14466  aix_libpath=$lt_cv_aix_libpath__CXX
14467fi
14468
14469          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14470
14471          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14472        else
14473          if test ia64 = "$host_cpu"; then
14474	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14475	    allow_undefined_flag_CXX="-z nodefs"
14476	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
14477          else
14478	    # Determine the default libpath from the value encoded in an
14479	    # empty executable.
14480	    if test set = "${lt_cv_aix_libpath+set}"; then
14481  aix_libpath=$lt_cv_aix_libpath
14482else
14483  if ${lt_cv_aix_libpath__CXX+:} false; then :
14484  $as_echo_n "(cached) " >&6
14485else
14486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487/* end confdefs.h.  */
14488
14489int
14490main ()
14491{
14492
14493  ;
14494  return 0;
14495}
14496_ACEOF
14497if ac_fn_cxx_try_link "$LINENO"; then :
14498
14499  lt_aix_libpath_sed='
14500      /Import File Strings/,/^$/ {
14501	  /^0/ {
14502	      s/^0  *\([^ ]*\) *$/\1/
14503	      p
14504	  }
14505      }'
14506  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14507  # Check for a 64-bit object if we didn't find anything.
14508  if test -z "$lt_cv_aix_libpath__CXX"; then
14509    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14510  fi
14511fi
14512rm -f core conftest.err conftest.$ac_objext \
14513    conftest$ac_exeext conftest.$ac_ext
14514  if test -z "$lt_cv_aix_libpath__CXX"; then
14515    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14516  fi
14517
14518fi
14519
14520  aix_libpath=$lt_cv_aix_libpath__CXX
14521fi
14522
14523	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14524	    # Warning - without using the other run time loading flags,
14525	    # -berok will link without error, but may produce a broken library.
14526	    no_undefined_flag_CXX=' $wl-bernotok'
14527	    allow_undefined_flag_CXX=' $wl-berok'
14528	    if test yes = "$with_gnu_ld"; then
14529	      # We only use this code for GNU lds that support --whole-archive.
14530	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14531	    else
14532	      # Exported symbols can be pulled into shared objects from archives
14533	      whole_archive_flag_spec_CXX='$convenience'
14534	    fi
14535	    archive_cmds_need_lc_CXX=yes
14536	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14537	    # -brtl affects multiple linker settings, -berok does not and is overridden later
14538	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14539	    if test svr4 != "$with_aix_soname"; then
14540	      # This is similar to how AIX traditionally builds its shared
14541	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14542	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14543	    fi
14544	    if test aix != "$with_aix_soname"; then
14545	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14546	    else
14547	      # used by -dlpreopen to get the symbols
14548	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14549	    fi
14550	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14551          fi
14552        fi
14553        ;;
14554
14555      beos*)
14556	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14557	  allow_undefined_flag_CXX=unsupported
14558	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14559	  # support --undefined.  This deserves some investigation.  FIXME
14560	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14561	else
14562	  ld_shlibs_CXX=no
14563	fi
14564	;;
14565
14566      chorus*)
14567        case $cc_basename in
14568          *)
14569	  # FIXME: insert proper C++ library support
14570	  ld_shlibs_CXX=no
14571	  ;;
14572        esac
14573        ;;
14574
14575      cygwin* | mingw* | pw32* | cegcc*)
14576	case $GXX,$cc_basename in
14577	,cl* | no,cl*)
14578	  # Native MSVC
14579	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14580	  # no search path for DLLs.
14581	  hardcode_libdir_flag_spec_CXX=' '
14582	  allow_undefined_flag_CXX=unsupported
14583	  always_export_symbols_CXX=yes
14584	  file_list_spec_CXX='@'
14585	  # Tell ltmain to make .lib files, not .a files.
14586	  libext=lib
14587	  # Tell ltmain to make .dll files, not .so files.
14588	  shrext_cmds=.dll
14589	  # FIXME: Setting linknames here is a bad hack.
14590	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14591	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14592              cp "$export_symbols" "$output_objdir/$soname.def";
14593              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14594            else
14595              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14596            fi~
14597            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14598            linknames='
14599	  # The linker will not automatically build a static lib if we build a DLL.
14600	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14601	  enable_shared_with_static_runtimes_CXX=yes
14602	  # Don't use ranlib
14603	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14604	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14605            lt_tool_outputfile="@TOOL_OUTPUT@"~
14606            case $lt_outputfile in
14607              *.exe|*.EXE) ;;
14608              *)
14609                lt_outputfile=$lt_outputfile.exe
14610                lt_tool_outputfile=$lt_tool_outputfile.exe
14611                ;;
14612            esac~
14613            func_to_tool_file "$lt_outputfile"~
14614            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14615              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14616              $RM "$lt_outputfile.manifest";
14617            fi'
14618	  ;;
14619	*)
14620	  # g++
14621	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14622	  # as there is no search path for DLLs.
14623	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14624	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14625	  allow_undefined_flag_CXX=unsupported
14626	  always_export_symbols_CXX=no
14627	  enable_shared_with_static_runtimes_CXX=yes
14628
14629	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14630	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14631	    # If the export-symbols file already is a .def file, use it as
14632	    # is; otherwise, prepend EXPORTS...
14633	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14634              cp $export_symbols $output_objdir/$soname.def;
14635            else
14636              echo EXPORTS > $output_objdir/$soname.def;
14637              cat $export_symbols >> $output_objdir/$soname.def;
14638            fi~
14639            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14640	  else
14641	    ld_shlibs_CXX=no
14642	  fi
14643	  ;;
14644	esac
14645	;;
14646      darwin* | rhapsody*)
14647
14648
14649  archive_cmds_need_lc_CXX=no
14650  hardcode_direct_CXX=no
14651  hardcode_automatic_CXX=yes
14652  hardcode_shlibpath_var_CXX=unsupported
14653  if test yes = "$lt_cv_ld_force_load"; then
14654    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14655
14656  else
14657    whole_archive_flag_spec_CXX=''
14658  fi
14659  link_all_deplibs_CXX=yes
14660  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14661  case $cc_basename in
14662     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14663     *) _lt_dar_can_shared=$GCC ;;
14664  esac
14665  if test yes = "$_lt_dar_can_shared"; then
14666    output_verbose_link_cmd=func_echo_all
14667    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14668    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14669    archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
14670    module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
14671       if test yes != "$lt_cv_apple_cc_single_mod"; then
14672      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
14673      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
14674    fi
14675
14676  else
14677  ld_shlibs_CXX=no
14678  fi
14679
14680	;;
14681
14682      os2*)
14683	hardcode_libdir_flag_spec_CXX='-L$libdir'
14684	hardcode_minus_L_CXX=yes
14685	allow_undefined_flag_CXX=unsupported
14686	shrext_cmds=.dll
14687	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14688	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14689	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14690	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14691	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14692	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14693	  emximp -o $lib $output_objdir/$libname.def'
14694	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14695	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14696	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14697	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14698	  prefix_cmds="$SED"~
14699	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14700	    prefix_cmds="$prefix_cmds -e 1d";
14701	  fi~
14702	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14703	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14704	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14705	  emximp -o $lib $output_objdir/$libname.def'
14706	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14707	enable_shared_with_static_runtimes_CXX=yes
14708	;;
14709
14710      dgux*)
14711        case $cc_basename in
14712          ec++*)
14713	    # FIXME: insert proper C++ library support
14714	    ld_shlibs_CXX=no
14715	    ;;
14716          ghcx*)
14717	    # Green Hills C++ Compiler
14718	    # FIXME: insert proper C++ library support
14719	    ld_shlibs_CXX=no
14720	    ;;
14721          *)
14722	    # FIXME: insert proper C++ library support
14723	    ld_shlibs_CXX=no
14724	    ;;
14725        esac
14726        ;;
14727
14728      freebsd2.*)
14729        # C++ shared libraries reported to be fairly broken before
14730	# switch to ELF
14731        ld_shlibs_CXX=no
14732        ;;
14733
14734      freebsd-elf*)
14735        archive_cmds_need_lc_CXX=no
14736        ;;
14737
14738      freebsd* | dragonfly*)
14739        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14740        # conventions
14741        ld_shlibs_CXX=yes
14742        ;;
14743
14744      haiku*)
14745        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14746        link_all_deplibs_CXX=yes
14747        ;;
14748
14749      hpux9*)
14750        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14751        hardcode_libdir_separator_CXX=:
14752        export_dynamic_flag_spec_CXX='$wl-E'
14753        hardcode_direct_CXX=yes
14754        hardcode_minus_L_CXX=yes # Not in the search PATH,
14755				             # but as the default
14756				             # location of the library.
14757
14758        case $cc_basename in
14759          CC*)
14760            # FIXME: insert proper C++ library support
14761            ld_shlibs_CXX=no
14762            ;;
14763          aCC*)
14764            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14765            # Commands to make compiler produce verbose output that lists
14766            # what "hidden" libraries, object files and flags are used when
14767            # linking a shared library.
14768            #
14769            # There doesn't appear to be a way to prevent this compiler from
14770            # explicitly linking system object files so we need to strip them
14771            # from the output so that they don't get included in the library
14772            # dependencies.
14773            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14774            ;;
14775          *)
14776            if test yes = "$GXX"; then
14777              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14778            else
14779              # FIXME: insert proper C++ library support
14780              ld_shlibs_CXX=no
14781            fi
14782            ;;
14783        esac
14784        ;;
14785
14786      hpux10*|hpux11*)
14787        if test no = "$with_gnu_ld"; then
14788	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14789	  hardcode_libdir_separator_CXX=:
14790
14791          case $host_cpu in
14792            hppa*64*|ia64*)
14793              ;;
14794            *)
14795	      export_dynamic_flag_spec_CXX='$wl-E'
14796              ;;
14797          esac
14798        fi
14799        case $host_cpu in
14800          hppa*64*|ia64*)
14801            hardcode_direct_CXX=no
14802            hardcode_shlibpath_var_CXX=no
14803            ;;
14804          *)
14805            hardcode_direct_CXX=yes
14806            hardcode_direct_absolute_CXX=yes
14807            hardcode_minus_L_CXX=yes # Not in the search PATH,
14808					         # but as the default
14809					         # location of the library.
14810            ;;
14811        esac
14812
14813        case $cc_basename in
14814          CC*)
14815	    # FIXME: insert proper C++ library support
14816	    ld_shlibs_CXX=no
14817	    ;;
14818          aCC*)
14819	    case $host_cpu in
14820	      hppa*64*)
14821	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14822	        ;;
14823	      ia64*)
14824	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14825	        ;;
14826	      *)
14827	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14828	        ;;
14829	    esac
14830	    # Commands to make compiler produce verbose output that lists
14831	    # what "hidden" libraries, object files and flags are used when
14832	    # linking a shared library.
14833	    #
14834	    # There doesn't appear to be a way to prevent this compiler from
14835	    # explicitly linking system object files so we need to strip them
14836	    # from the output so that they don't get included in the library
14837	    # dependencies.
14838	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14839	    ;;
14840          *)
14841	    if test yes = "$GXX"; then
14842	      if test no = "$with_gnu_ld"; then
14843	        case $host_cpu in
14844	          hppa*64*)
14845	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14846	            ;;
14847	          ia64*)
14848	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14849	            ;;
14850	          *)
14851	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14852	            ;;
14853	        esac
14854	      fi
14855	    else
14856	      # FIXME: insert proper C++ library support
14857	      ld_shlibs_CXX=no
14858	    fi
14859	    ;;
14860        esac
14861        ;;
14862
14863      interix[3-9]*)
14864	hardcode_direct_CXX=no
14865	hardcode_shlibpath_var_CXX=no
14866	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14867	export_dynamic_flag_spec_CXX='$wl-E'
14868	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14869	# Instead, shared libraries are loaded at an image base (0x10000000 by
14870	# default) and relocated if they conflict, which is a slow very memory
14871	# consuming and fragmenting process.  To avoid this, we pick a random,
14872	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14873	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14874	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14875	archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14876	;;
14877      irix5* | irix6*)
14878        case $cc_basename in
14879          CC*)
14880	    # SGI C++
14881	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14882
14883	    # Archives containing C++ object files must be created using
14884	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14885	    # necessary to make sure instantiated templates are included
14886	    # in the archive.
14887	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14888	    ;;
14889          *)
14890	    if test yes = "$GXX"; then
14891	      if test no = "$with_gnu_ld"; then
14892	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14893	      else
14894	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
14895	      fi
14896	    fi
14897	    link_all_deplibs_CXX=yes
14898	    ;;
14899        esac
14900        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14901        hardcode_libdir_separator_CXX=:
14902        inherit_rpath_CXX=yes
14903        ;;
14904
14905      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14906        case $cc_basename in
14907          KCC*)
14908	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14909
14910	    # KCC will only create a shared library if the output file
14911	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14912	    # to its proper name (with version) after linking.
14913	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14914	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
14915	    # Commands to make compiler produce verbose output that lists
14916	    # what "hidden" libraries, object files and flags are used when
14917	    # linking a shared library.
14918	    #
14919	    # There doesn't appear to be a way to prevent this compiler from
14920	    # explicitly linking system object files so we need to strip them
14921	    # from the output so that they don't get included in the library
14922	    # dependencies.
14923	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14924
14925	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14926	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14927
14928	    # Archives containing C++ object files must be created using
14929	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14930	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14931	    ;;
14932	  icpc* | ecpc* )
14933	    # Intel C++
14934	    with_gnu_ld=yes
14935	    # version 8.0 and above of icpc choke on multiply defined symbols
14936	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14937	    # earlier do not add the objects themselves.
14938	    case `$CC -V 2>&1` in
14939	      *"Version 7."*)
14940	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14941		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14942		;;
14943	      *)  # Version 8.0 or newer
14944	        tmp_idyn=
14945	        case $host_cpu in
14946		  ia64*) tmp_idyn=' -i_dynamic';;
14947		esac
14948	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14949		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14950		;;
14951	    esac
14952	    archive_cmds_need_lc_CXX=no
14953	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14954	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14955	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14956	    ;;
14957          pgCC* | pgcpp*)
14958            # Portland Group C++ compiler
14959	    case `$CC -V` in
14960	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14961	      prelink_cmds_CXX='tpldir=Template.dir~
14962               rm -rf $tpldir~
14963               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14964               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14965	      old_archive_cmds_CXX='tpldir=Template.dir~
14966                rm -rf $tpldir~
14967                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14968                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14969                $RANLIB $oldlib'
14970	      archive_cmds_CXX='tpldir=Template.dir~
14971                rm -rf $tpldir~
14972                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14973                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14974	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14975                rm -rf $tpldir~
14976                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14977                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14978	      ;;
14979	    *) # Version 6 and above use weak symbols
14980	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14981	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14982	      ;;
14983	    esac
14984
14985	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14986	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14987	    whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14988            ;;
14989	  cxx*)
14990	    # Compaq C++
14991	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14992	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
14993
14994	    runpath_var=LD_RUN_PATH
14995	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14996	    hardcode_libdir_separator_CXX=:
14997
14998	    # Commands to make compiler produce verbose output that lists
14999	    # what "hidden" libraries, object files and flags are used when
15000	    # linking a shared library.
15001	    #
15002	    # There doesn't appear to be a way to prevent this compiler from
15003	    # explicitly linking system object files so we need to strip them
15004	    # from the output so that they don't get included in the library
15005	    # dependencies.
15006	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
15007	    ;;
15008	  xl* | mpixl* | bgxl*)
15009	    # IBM XL 8.0 on PPC, with GNU ld
15010	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15011	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15012	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15013	    if test yes = "$supports_anon_versioning"; then
15014	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15015                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15016                echo "local: *; };" >> $output_objdir/$libname.ver~
15017                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15018	    fi
15019	    ;;
15020	  *)
15021	    case `$CC -V 2>&1 | sed 5q` in
15022	    *Sun\ C*)
15023	      # Sun C++ 5.9
15024	      no_undefined_flag_CXX=' -zdefs'
15025	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15026	      archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
15027	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15028	      whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15029	      compiler_needs_object_CXX=yes
15030
15031	      # Not sure whether something based on
15032	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15033	      # would be better.
15034	      output_verbose_link_cmd='func_echo_all'
15035
15036	      # Archives containing C++ object files must be created using
15037	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15038	      # necessary to make sure instantiated templates are included
15039	      # in the archive.
15040	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15041	      ;;
15042	    esac
15043	    ;;
15044	esac
15045	;;
15046
15047      lynxos*)
15048        # FIXME: insert proper C++ library support
15049	ld_shlibs_CXX=no
15050	;;
15051
15052      m88k*)
15053        # FIXME: insert proper C++ library support
15054        ld_shlibs_CXX=no
15055	;;
15056
15057      mvs*)
15058        case $cc_basename in
15059          cxx*)
15060	    # FIXME: insert proper C++ library support
15061	    ld_shlibs_CXX=no
15062	    ;;
15063	  *)
15064	    # FIXME: insert proper C++ library support
15065	    ld_shlibs_CXX=no
15066	    ;;
15067	esac
15068	;;
15069
15070      netbsd*)
15071        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15072	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15073	  wlarc=
15074	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15075	  hardcode_direct_CXX=yes
15076	  hardcode_shlibpath_var_CXX=no
15077	fi
15078	# Workaround some broken pre-1.5 toolchains
15079	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15080	;;
15081
15082      *nto* | *qnx*)
15083        ld_shlibs_CXX=yes
15084	;;
15085
15086      openbsd* | bitrig*)
15087	if test -f /usr/libexec/ld.so; then
15088	  hardcode_direct_CXX=yes
15089	  hardcode_shlibpath_var_CXX=no
15090	  hardcode_direct_absolute_CXX=yes
15091	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15092	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15093	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15094	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15095	    export_dynamic_flag_spec_CXX='$wl-E'
15096	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15097	  fi
15098	  output_verbose_link_cmd=func_echo_all
15099	else
15100	  ld_shlibs_CXX=no
15101	fi
15102	;;
15103
15104      osf3* | osf4* | osf5*)
15105        case $cc_basename in
15106          KCC*)
15107	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15108
15109	    # KCC will only create a shared library if the output file
15110	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15111	    # to its proper name (with version) after linking.
15112	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15113
15114	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15115	    hardcode_libdir_separator_CXX=:
15116
15117	    # Archives containing C++ object files must be created using
15118	    # the KAI C++ compiler.
15119	    case $host in
15120	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15121	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15122	    esac
15123	    ;;
15124          RCC*)
15125	    # Rational C++ 2.4.1
15126	    # FIXME: insert proper C++ library support
15127	    ld_shlibs_CXX=no
15128	    ;;
15129          cxx*)
15130	    case $host in
15131	      osf3*)
15132	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15133	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15134	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15135		;;
15136	      *)
15137	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15138	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15139	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15140                  echo "-hidden">> $lib.exp~
15141                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
15142                  $RM $lib.exp'
15143	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15144		;;
15145	    esac
15146
15147	    hardcode_libdir_separator_CXX=:
15148
15149	    # Commands to make compiler produce verbose output that lists
15150	    # what "hidden" libraries, object files and flags are used when
15151	    # linking a shared library.
15152	    #
15153	    # There doesn't appear to be a way to prevent this compiler from
15154	    # explicitly linking system object files so we need to strip them
15155	    # from the output so that they don't get included in the library
15156	    # dependencies.
15157	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15158	    ;;
15159	  *)
15160	    if test yes,no = "$GXX,$with_gnu_ld"; then
15161	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15162	      case $host in
15163	        osf3*)
15164	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15165		  ;;
15166	        *)
15167	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15168		  ;;
15169	      esac
15170
15171	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15172	      hardcode_libdir_separator_CXX=:
15173
15174	      # Commands to make compiler produce verbose output that lists
15175	      # what "hidden" libraries, object files and flags are used when
15176	      # linking a shared library.
15177	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15178
15179	    else
15180	      # FIXME: insert proper C++ library support
15181	      ld_shlibs_CXX=no
15182	    fi
15183	    ;;
15184        esac
15185        ;;
15186
15187      psos*)
15188        # FIXME: insert proper C++ library support
15189        ld_shlibs_CXX=no
15190        ;;
15191
15192      sunos4*)
15193        case $cc_basename in
15194          CC*)
15195	    # Sun C++ 4.x
15196	    # FIXME: insert proper C++ library support
15197	    ld_shlibs_CXX=no
15198	    ;;
15199          lcc*)
15200	    # Lucid
15201	    # FIXME: insert proper C++ library support
15202	    ld_shlibs_CXX=no
15203	    ;;
15204          *)
15205	    # FIXME: insert proper C++ library support
15206	    ld_shlibs_CXX=no
15207	    ;;
15208        esac
15209        ;;
15210
15211      solaris*)
15212        case $cc_basename in
15213          CC* | sunCC*)
15214	    # Sun C++ 4.2, 5.x and Centerline C++
15215            archive_cmds_need_lc_CXX=yes
15216	    no_undefined_flag_CXX=' -zdefs'
15217	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15218	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15219              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15220
15221	    hardcode_libdir_flag_spec_CXX='-R$libdir'
15222	    hardcode_shlibpath_var_CXX=no
15223	    case $host_os in
15224	      solaris2.[0-5] | solaris2.[0-5].*) ;;
15225	      *)
15226		# The compiler driver will combine and reorder linker options,
15227		# but understands '-z linker_flag'.
15228	        # Supported since Solaris 2.6 (maybe 2.5.1?)
15229		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15230	        ;;
15231	    esac
15232	    link_all_deplibs_CXX=yes
15233
15234	    output_verbose_link_cmd='func_echo_all'
15235
15236	    # Archives containing C++ object files must be created using
15237	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15238	    # necessary to make sure instantiated templates are included
15239	    # in the archive.
15240	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15241	    ;;
15242          gcx*)
15243	    # Green Hills C++ Compiler
15244	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15245
15246	    # The C++ compiler must be used to create the archive.
15247	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15248	    ;;
15249          *)
15250	    # GNU C++ compiler with Solaris linker
15251	    if test yes,no = "$GXX,$with_gnu_ld"; then
15252	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
15253	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15254	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15255	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15256                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15257
15258	        # Commands to make compiler produce verbose output that lists
15259	        # what "hidden" libraries, object files and flags are used when
15260	        # linking a shared library.
15261	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15262	      else
15263	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
15264	        # platform.
15265	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15266	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15267                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15268
15269	        # Commands to make compiler produce verbose output that lists
15270	        # what "hidden" libraries, object files and flags are used when
15271	        # linking a shared library.
15272	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15273	      fi
15274
15275	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15276	      case $host_os in
15277		solaris2.[0-5] | solaris2.[0-5].*) ;;
15278		*)
15279		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15280		  ;;
15281	      esac
15282	    fi
15283	    ;;
15284        esac
15285        ;;
15286
15287    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15288      no_undefined_flag_CXX='$wl-z,text'
15289      archive_cmds_need_lc_CXX=no
15290      hardcode_shlibpath_var_CXX=no
15291      runpath_var='LD_RUN_PATH'
15292
15293      case $cc_basename in
15294        CC*)
15295	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15296	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15297	  ;;
15298	*)
15299	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15300	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15301	  ;;
15302      esac
15303      ;;
15304
15305      sysv5* | sco3.2v5* | sco5v6*)
15306	# Note: We CANNOT use -z defs as we might desire, because we do not
15307	# link with -lc, and that would cause any symbols used from libc to
15308	# always be unresolved, which means just about no library would
15309	# ever link correctly.  If we're not using GNU ld we use -z text
15310	# though, which does catch some bad symbols but isn't as heavy-handed
15311	# as -z defs.
15312	no_undefined_flag_CXX='$wl-z,text'
15313	allow_undefined_flag_CXX='$wl-z,nodefs'
15314	archive_cmds_need_lc_CXX=no
15315	hardcode_shlibpath_var_CXX=no
15316	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15317	hardcode_libdir_separator_CXX=':'
15318	link_all_deplibs_CXX=yes
15319	export_dynamic_flag_spec_CXX='$wl-Bexport'
15320	runpath_var='LD_RUN_PATH'
15321
15322	case $cc_basename in
15323          CC*)
15324	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15325	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15326	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15327              '"$old_archive_cmds_CXX"
15328	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15329              '"$reload_cmds_CXX"
15330	    ;;
15331	  *)
15332	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15333	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15334	    ;;
15335	esac
15336      ;;
15337
15338      tandem*)
15339        case $cc_basename in
15340          NCC*)
15341	    # NonStop-UX NCC 3.20
15342	    # FIXME: insert proper C++ library support
15343	    ld_shlibs_CXX=no
15344	    ;;
15345          *)
15346	    # FIXME: insert proper C++ library support
15347	    ld_shlibs_CXX=no
15348	    ;;
15349        esac
15350        ;;
15351
15352      vxworks*)
15353        # FIXME: insert proper C++ library support
15354        ld_shlibs_CXX=no
15355        ;;
15356
15357      *)
15358        # FIXME: insert proper C++ library support
15359        ld_shlibs_CXX=no
15360        ;;
15361    esac
15362
15363    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15364$as_echo "$ld_shlibs_CXX" >&6; }
15365    test no = "$ld_shlibs_CXX" && can_build_shared=no
15366
15367    GCC_CXX=$GXX
15368    LD_CXX=$LD
15369
15370    ## CAVEAT EMPTOR:
15371    ## There is no encapsulation within the following macros, do not change
15372    ## the running order or otherwise move them around unless you know exactly
15373    ## what you are doing...
15374    # Dependencies to place before and after the object being linked:
15375predep_objects_CXX=
15376postdep_objects_CXX=
15377predeps_CXX=
15378postdeps_CXX=
15379compiler_lib_search_path_CXX=
15380
15381cat > conftest.$ac_ext <<_LT_EOF
15382class Foo
15383{
15384public:
15385  Foo (void) { a = 0; }
15386private:
15387  int a;
15388};
15389_LT_EOF
15390
15391
15392_lt_libdeps_save_CFLAGS=$CFLAGS
15393case "$CC $CFLAGS " in #(
15394*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15395*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15396*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15397esac
15398
15399if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15400  (eval $ac_compile) 2>&5
15401  ac_status=$?
15402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15403  test $ac_status = 0; }; then
15404  # Parse the compiler output and extract the necessary
15405  # objects, libraries and library flags.
15406
15407  # Sentinel used to keep track of whether or not we are before
15408  # the conftest object file.
15409  pre_test_object_deps_done=no
15410
15411  for p in `eval "$output_verbose_link_cmd"`; do
15412    case $prev$p in
15413
15414    -L* | -R* | -l*)
15415       # Some compilers place space between "-{L,R}" and the path.
15416       # Remove the space.
15417       if test x-L = "$p" ||
15418          test x-R = "$p"; then
15419	 prev=$p
15420	 continue
15421       fi
15422
15423       # Expand the sysroot to ease extracting the directories later.
15424       if test -z "$prev"; then
15425         case $p in
15426         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15427         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15428         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15429         esac
15430       fi
15431       case $p in
15432       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15433       esac
15434       if test no = "$pre_test_object_deps_done"; then
15435	 case $prev in
15436	 -L | -R)
15437	   # Internal compiler library paths should come after those
15438	   # provided the user.  The postdeps already come after the
15439	   # user supplied libs so there is no need to process them.
15440	   if test -z "$compiler_lib_search_path_CXX"; then
15441	     compiler_lib_search_path_CXX=$prev$p
15442	   else
15443	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15444	   fi
15445	   ;;
15446	 # The "-l" case would never come before the object being
15447	 # linked, so don't bother handling this case.
15448	 esac
15449       else
15450	 if test -z "$postdeps_CXX"; then
15451	   postdeps_CXX=$prev$p
15452	 else
15453	   postdeps_CXX="${postdeps_CXX} $prev$p"
15454	 fi
15455       fi
15456       prev=
15457       ;;
15458
15459    *.lto.$objext) ;; # Ignore GCC LTO objects
15460    *.$objext)
15461       # This assumes that the test object file only shows up
15462       # once in the compiler output.
15463       if test "$p" = "conftest.$objext"; then
15464	 pre_test_object_deps_done=yes
15465	 continue
15466       fi
15467
15468       if test no = "$pre_test_object_deps_done"; then
15469	 if test -z "$predep_objects_CXX"; then
15470	   predep_objects_CXX=$p
15471	 else
15472	   predep_objects_CXX="$predep_objects_CXX $p"
15473	 fi
15474       else
15475	 if test -z "$postdep_objects_CXX"; then
15476	   postdep_objects_CXX=$p
15477	 else
15478	   postdep_objects_CXX="$postdep_objects_CXX $p"
15479	 fi
15480       fi
15481       ;;
15482
15483    *) ;; # Ignore the rest.
15484
15485    esac
15486  done
15487
15488  # Clean up.
15489  rm -f a.out a.exe
15490else
15491  echo "libtool.m4: error: problem compiling CXX test program"
15492fi
15493
15494$RM -f confest.$objext
15495CFLAGS=$_lt_libdeps_save_CFLAGS
15496
15497# PORTME: override above test on systems where it is broken
15498case $host_os in
15499interix[3-9]*)
15500  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15501  # hack all around it, let's just trust "g++" to DTRT.
15502  predep_objects_CXX=
15503  postdep_objects_CXX=
15504  postdeps_CXX=
15505  ;;
15506esac
15507
15508
15509case " $postdeps_CXX " in
15510*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15511esac
15512 compiler_lib_search_dirs_CXX=
15513if test -n "${compiler_lib_search_path_CXX}"; then
15514 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15515fi
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547    lt_prog_compiler_wl_CXX=
15548lt_prog_compiler_pic_CXX=
15549lt_prog_compiler_static_CXX=
15550
15551
15552  # C++ specific cases for pic, static, wl, etc.
15553  if test yes = "$GXX"; then
15554    lt_prog_compiler_wl_CXX='-Wl,'
15555    lt_prog_compiler_static_CXX='-static'
15556
15557    case $host_os in
15558    aix*)
15559      # All AIX code is PIC.
15560      if test ia64 = "$host_cpu"; then
15561	# AIX 5 now supports IA64 processor
15562	lt_prog_compiler_static_CXX='-Bstatic'
15563      fi
15564      lt_prog_compiler_pic_CXX='-fPIC'
15565      ;;
15566
15567    amigaos*)
15568      case $host_cpu in
15569      powerpc)
15570            # see comment about AmigaOS4 .so support
15571            lt_prog_compiler_pic_CXX='-fPIC'
15572        ;;
15573      m68k)
15574            # FIXME: we need at least 68020 code to build shared libraries, but
15575            # adding the '-m68020' flag to GCC prevents building anything better,
15576            # like '-m68040'.
15577            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15578        ;;
15579      esac
15580      ;;
15581
15582    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15583      # PIC is the default for these OSes.
15584      ;;
15585    mingw* | cygwin* | os2* | pw32* | cegcc*)
15586      # This hack is so that the source file can tell whether it is being
15587      # built for inclusion in a dll (and should export symbols for example).
15588      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15589      # (--disable-auto-import) libraries
15590      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15591      case $host_os in
15592      os2*)
15593	lt_prog_compiler_static_CXX='$wl-static'
15594	;;
15595      esac
15596      ;;
15597    darwin* | rhapsody*)
15598      # PIC is the default on this platform
15599      # Common symbols not allowed in MH_DYLIB files
15600      lt_prog_compiler_pic_CXX='-fno-common'
15601      ;;
15602    *djgpp*)
15603      # DJGPP does not support shared libraries at all
15604      lt_prog_compiler_pic_CXX=
15605      ;;
15606    haiku*)
15607      # PIC is the default for Haiku.
15608      # The "-static" flag exists, but is broken.
15609      lt_prog_compiler_static_CXX=
15610      ;;
15611    interix[3-9]*)
15612      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15613      # Instead, we relocate shared libraries at runtime.
15614      ;;
15615    sysv4*MP*)
15616      if test -d /usr/nec; then
15617	lt_prog_compiler_pic_CXX=-Kconform_pic
15618      fi
15619      ;;
15620    hpux*)
15621      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15622      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15623      # sets the default TLS model and affects inlining.
15624      case $host_cpu in
15625      hppa*64*)
15626	;;
15627      *)
15628	lt_prog_compiler_pic_CXX='-fPIC'
15629	;;
15630      esac
15631      ;;
15632    *qnx* | *nto*)
15633      # QNX uses GNU C++, but need to define -shared option too, otherwise
15634      # it will coredump.
15635      lt_prog_compiler_pic_CXX='-fPIC -shared'
15636      ;;
15637    *)
15638      lt_prog_compiler_pic_CXX='-fPIC'
15639      ;;
15640    esac
15641  else
15642    case $host_os in
15643      aix[4-9]*)
15644	# All AIX code is PIC.
15645	if test ia64 = "$host_cpu"; then
15646	  # AIX 5 now supports IA64 processor
15647	  lt_prog_compiler_static_CXX='-Bstatic'
15648	else
15649	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15650	fi
15651	;;
15652      chorus*)
15653	case $cc_basename in
15654	cxch68*)
15655	  # Green Hills C++ Compiler
15656	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15657	  ;;
15658	esac
15659	;;
15660      mingw* | cygwin* | os2* | pw32* | cegcc*)
15661	# This hack is so that the source file can tell whether it is being
15662	# built for inclusion in a dll (and should export symbols for example).
15663	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15664	;;
15665      dgux*)
15666	case $cc_basename in
15667	  ec++*)
15668	    lt_prog_compiler_pic_CXX='-KPIC'
15669	    ;;
15670	  ghcx*)
15671	    # Green Hills C++ Compiler
15672	    lt_prog_compiler_pic_CXX='-pic'
15673	    ;;
15674	  *)
15675	    ;;
15676	esac
15677	;;
15678      freebsd* | dragonfly*)
15679	# FreeBSD uses GNU C++
15680	;;
15681      hpux9* | hpux10* | hpux11*)
15682	case $cc_basename in
15683	  CC*)
15684	    lt_prog_compiler_wl_CXX='-Wl,'
15685	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15686	    if test ia64 != "$host_cpu"; then
15687	      lt_prog_compiler_pic_CXX='+Z'
15688	    fi
15689	    ;;
15690	  aCC*)
15691	    lt_prog_compiler_wl_CXX='-Wl,'
15692	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15693	    case $host_cpu in
15694	    hppa*64*|ia64*)
15695	      # +Z the default
15696	      ;;
15697	    *)
15698	      lt_prog_compiler_pic_CXX='+Z'
15699	      ;;
15700	    esac
15701	    ;;
15702	  *)
15703	    ;;
15704	esac
15705	;;
15706      interix*)
15707	# This is c89, which is MS Visual C++ (no shared libs)
15708	# Anyone wants to do a port?
15709	;;
15710      irix5* | irix6* | nonstopux*)
15711	case $cc_basename in
15712	  CC*)
15713	    lt_prog_compiler_wl_CXX='-Wl,'
15714	    lt_prog_compiler_static_CXX='-non_shared'
15715	    # CC pic flag -KPIC is the default.
15716	    ;;
15717	  *)
15718	    ;;
15719	esac
15720	;;
15721      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15722	case $cc_basename in
15723	  KCC*)
15724	    # KAI C++ Compiler
15725	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15726	    lt_prog_compiler_pic_CXX='-fPIC'
15727	    ;;
15728	  ecpc* )
15729	    # old Intel C++ for x86_64, which still supported -KPIC.
15730	    lt_prog_compiler_wl_CXX='-Wl,'
15731	    lt_prog_compiler_pic_CXX='-KPIC'
15732	    lt_prog_compiler_static_CXX='-static'
15733	    ;;
15734	  icpc* )
15735	    # Intel C++, used to be incompatible with GCC.
15736	    # ICC 10 doesn't accept -KPIC any more.
15737	    lt_prog_compiler_wl_CXX='-Wl,'
15738	    lt_prog_compiler_pic_CXX='-fPIC'
15739	    lt_prog_compiler_static_CXX='-static'
15740	    ;;
15741	  pgCC* | pgcpp*)
15742	    # Portland Group C++ compiler
15743	    lt_prog_compiler_wl_CXX='-Wl,'
15744	    lt_prog_compiler_pic_CXX='-fpic'
15745	    lt_prog_compiler_static_CXX='-Bstatic'
15746	    ;;
15747	  cxx*)
15748	    # Compaq C++
15749	    # Make sure the PIC flag is empty.  It appears that all Alpha
15750	    # Linux and Compaq Tru64 Unix objects are PIC.
15751	    lt_prog_compiler_pic_CXX=
15752	    lt_prog_compiler_static_CXX='-non_shared'
15753	    ;;
15754	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15755	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15756	    lt_prog_compiler_wl_CXX='-Wl,'
15757	    lt_prog_compiler_pic_CXX='-qpic'
15758	    lt_prog_compiler_static_CXX='-qstaticlink'
15759	    ;;
15760	  *)
15761	    case `$CC -V 2>&1 | sed 5q` in
15762	    *Sun\ C*)
15763	      # Sun C++ 5.9
15764	      lt_prog_compiler_pic_CXX='-KPIC'
15765	      lt_prog_compiler_static_CXX='-Bstatic'
15766	      lt_prog_compiler_wl_CXX='-Qoption ld '
15767	      ;;
15768	    esac
15769	    ;;
15770	esac
15771	;;
15772      lynxos*)
15773	;;
15774      m88k*)
15775	;;
15776      mvs*)
15777	case $cc_basename in
15778	  cxx*)
15779	    lt_prog_compiler_pic_CXX='-W c,exportall'
15780	    ;;
15781	  *)
15782	    ;;
15783	esac
15784	;;
15785      netbsd* | netbsdelf*-gnu)
15786	;;
15787      *qnx* | *nto*)
15788        # QNX uses GNU C++, but need to define -shared option too, otherwise
15789        # it will coredump.
15790        lt_prog_compiler_pic_CXX='-fPIC -shared'
15791        ;;
15792      osf3* | osf4* | osf5*)
15793	case $cc_basename in
15794	  KCC*)
15795	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15796	    ;;
15797	  RCC*)
15798	    # Rational C++ 2.4.1
15799	    lt_prog_compiler_pic_CXX='-pic'
15800	    ;;
15801	  cxx*)
15802	    # Digital/Compaq C++
15803	    lt_prog_compiler_wl_CXX='-Wl,'
15804	    # Make sure the PIC flag is empty.  It appears that all Alpha
15805	    # Linux and Compaq Tru64 Unix objects are PIC.
15806	    lt_prog_compiler_pic_CXX=
15807	    lt_prog_compiler_static_CXX='-non_shared'
15808	    ;;
15809	  *)
15810	    ;;
15811	esac
15812	;;
15813      psos*)
15814	;;
15815      solaris*)
15816	case $cc_basename in
15817	  CC* | sunCC*)
15818	    # Sun C++ 4.2, 5.x and Centerline C++
15819	    lt_prog_compiler_pic_CXX='-KPIC'
15820	    lt_prog_compiler_static_CXX='-Bstatic'
15821	    lt_prog_compiler_wl_CXX='-Qoption ld '
15822	    ;;
15823	  gcx*)
15824	    # Green Hills C++ Compiler
15825	    lt_prog_compiler_pic_CXX='-PIC'
15826	    ;;
15827	  *)
15828	    ;;
15829	esac
15830	;;
15831      sunos4*)
15832	case $cc_basename in
15833	  CC*)
15834	    # Sun C++ 4.x
15835	    lt_prog_compiler_pic_CXX='-pic'
15836	    lt_prog_compiler_static_CXX='-Bstatic'
15837	    ;;
15838	  lcc*)
15839	    # Lucid
15840	    lt_prog_compiler_pic_CXX='-pic'
15841	    ;;
15842	  *)
15843	    ;;
15844	esac
15845	;;
15846      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15847	case $cc_basename in
15848	  CC*)
15849	    lt_prog_compiler_wl_CXX='-Wl,'
15850	    lt_prog_compiler_pic_CXX='-KPIC'
15851	    lt_prog_compiler_static_CXX='-Bstatic'
15852	    ;;
15853	esac
15854	;;
15855      tandem*)
15856	case $cc_basename in
15857	  NCC*)
15858	    # NonStop-UX NCC 3.20
15859	    lt_prog_compiler_pic_CXX='-KPIC'
15860	    ;;
15861	  *)
15862	    ;;
15863	esac
15864	;;
15865      vxworks*)
15866	;;
15867      *)
15868	lt_prog_compiler_can_build_shared_CXX=no
15869	;;
15870    esac
15871  fi
15872
15873case $host_os in
15874  # For platforms that do not support PIC, -DPIC is meaningless:
15875  *djgpp*)
15876    lt_prog_compiler_pic_CXX=
15877    ;;
15878  *)
15879    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15880    ;;
15881esac
15882
15883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15884$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15885if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15886  $as_echo_n "(cached) " >&6
15887else
15888  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15889fi
15890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15891$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15892lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15893
15894#
15895# Check to make sure the PIC flag actually works.
15896#
15897if test -n "$lt_prog_compiler_pic_CXX"; then
15898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15899$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15900if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15901  $as_echo_n "(cached) " >&6
15902else
15903  lt_cv_prog_compiler_pic_works_CXX=no
15904   ac_outfile=conftest.$ac_objext
15905   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15906   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15907   # Insert the option either (1) after the last *FLAGS variable, or
15908   # (2) before a word containing "conftest.", or (3) at the end.
15909   # Note that $ac_compile itself does not contain backslashes and begins
15910   # with a dollar sign (not a hyphen), so the echo should work correctly.
15911   # The option is referenced via a variable to avoid confusing sed.
15912   lt_compile=`echo "$ac_compile" | $SED \
15913   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15914   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15915   -e 's:$: $lt_compiler_flag:'`
15916   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15917   (eval "$lt_compile" 2>conftest.err)
15918   ac_status=$?
15919   cat conftest.err >&5
15920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921   if (exit $ac_status) && test -s "$ac_outfile"; then
15922     # The compiler can only warn and ignore the option if not recognized
15923     # So say no if there are warnings other than the usual output.
15924     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15925     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15926     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15927       lt_cv_prog_compiler_pic_works_CXX=yes
15928     fi
15929   fi
15930   $RM conftest*
15931
15932fi
15933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15934$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15935
15936if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15937    case $lt_prog_compiler_pic_CXX in
15938     "" | " "*) ;;
15939     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15940     esac
15941else
15942    lt_prog_compiler_pic_CXX=
15943     lt_prog_compiler_can_build_shared_CXX=no
15944fi
15945
15946fi
15947
15948
15949
15950
15951
15952#
15953# Check to make sure the static flag actually works.
15954#
15955wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15957$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15958if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15959  $as_echo_n "(cached) " >&6
15960else
15961  lt_cv_prog_compiler_static_works_CXX=no
15962   save_LDFLAGS=$LDFLAGS
15963   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15964   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15965   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15966     # The linker can only warn and ignore the option if not recognized
15967     # So say no if there are warnings
15968     if test -s conftest.err; then
15969       # Append any errors to the config.log.
15970       cat conftest.err 1>&5
15971       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15972       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15973       if diff conftest.exp conftest.er2 >/dev/null; then
15974         lt_cv_prog_compiler_static_works_CXX=yes
15975       fi
15976     else
15977       lt_cv_prog_compiler_static_works_CXX=yes
15978     fi
15979   fi
15980   $RM -r conftest*
15981   LDFLAGS=$save_LDFLAGS
15982
15983fi
15984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15985$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15986
15987if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15988    :
15989else
15990    lt_prog_compiler_static_CXX=
15991fi
15992
15993
15994
15995
15996    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15997$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15998if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15999  $as_echo_n "(cached) " >&6
16000else
16001  lt_cv_prog_compiler_c_o_CXX=no
16002   $RM -r conftest 2>/dev/null
16003   mkdir conftest
16004   cd conftest
16005   mkdir out
16006   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16007
16008   lt_compiler_flag="-o out/conftest2.$ac_objext"
16009   # Insert the option either (1) after the last *FLAGS variable, or
16010   # (2) before a word containing "conftest.", or (3) at the end.
16011   # Note that $ac_compile itself does not contain backslashes and begins
16012   # with a dollar sign (not a hyphen), so the echo should work correctly.
16013   lt_compile=`echo "$ac_compile" | $SED \
16014   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16015   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16016   -e 's:$: $lt_compiler_flag:'`
16017   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16018   (eval "$lt_compile" 2>out/conftest.err)
16019   ac_status=$?
16020   cat out/conftest.err >&5
16021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16023   then
16024     # The compiler can only warn and ignore the option if not recognized
16025     # So say no if there are warnings
16026     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16027     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16028     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16029       lt_cv_prog_compiler_c_o_CXX=yes
16030     fi
16031   fi
16032   chmod u+w . 2>&5
16033   $RM conftest*
16034   # SGI C++ compiler will create directory out/ii_files/ for
16035   # template instantiation
16036   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16037   $RM out/* && rmdir out
16038   cd ..
16039   $RM -r conftest
16040   $RM conftest*
16041
16042fi
16043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16044$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16045
16046
16047
16048    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16049$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16050if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16051  $as_echo_n "(cached) " >&6
16052else
16053  lt_cv_prog_compiler_c_o_CXX=no
16054   $RM -r conftest 2>/dev/null
16055   mkdir conftest
16056   cd conftest
16057   mkdir out
16058   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16059
16060   lt_compiler_flag="-o out/conftest2.$ac_objext"
16061   # Insert the option either (1) after the last *FLAGS variable, or
16062   # (2) before a word containing "conftest.", or (3) at the end.
16063   # Note that $ac_compile itself does not contain backslashes and begins
16064   # with a dollar sign (not a hyphen), so the echo should work correctly.
16065   lt_compile=`echo "$ac_compile" | $SED \
16066   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16067   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16068   -e 's:$: $lt_compiler_flag:'`
16069   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16070   (eval "$lt_compile" 2>out/conftest.err)
16071   ac_status=$?
16072   cat out/conftest.err >&5
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16075   then
16076     # The compiler can only warn and ignore the option if not recognized
16077     # So say no if there are warnings
16078     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16079     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16080     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16081       lt_cv_prog_compiler_c_o_CXX=yes
16082     fi
16083   fi
16084   chmod u+w . 2>&5
16085   $RM conftest*
16086   # SGI C++ compiler will create directory out/ii_files/ for
16087   # template instantiation
16088   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16089   $RM out/* && rmdir out
16090   cd ..
16091   $RM -r conftest
16092   $RM conftest*
16093
16094fi
16095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16096$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16097
16098
16099
16100
16101hard_links=nottested
16102if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16103  # do not overwrite the value of need_locks provided by the user
16104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16105$as_echo_n "checking if we can lock with hard links... " >&6; }
16106  hard_links=yes
16107  $RM conftest*
16108  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16109  touch conftest.a
16110  ln conftest.a conftest.b 2>&5 || hard_links=no
16111  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16113$as_echo "$hard_links" >&6; }
16114  if test no = "$hard_links"; then
16115    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16116$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16117    need_locks=warn
16118  fi
16119else
16120  need_locks=no
16121fi
16122
16123
16124
16125    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16126$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16127
16128  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16129  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16130  case $host_os in
16131  aix[4-9]*)
16132    # If we're using GNU nm, then we don't want the "-C" option.
16133    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16134    # Without the "-l" option, or with the "-B" option, AIX nm treats
16135    # weak defined symbols like other global defined symbols, whereas
16136    # GNU nm marks them as "W".
16137    # While the 'weak' keyword is ignored in the Export File, we need
16138    # it in the Import File for the 'aix-soname' feature, so we have
16139    # to replace the "-B" option with "-P" for AIX nm.
16140    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16141      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16142    else
16143      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16144    fi
16145    ;;
16146  pw32*)
16147    export_symbols_cmds_CXX=$ltdll_cmds
16148    ;;
16149  cygwin* | mingw* | cegcc*)
16150    case $cc_basename in
16151    cl*)
16152      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16153      ;;
16154    *)
16155      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16156      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16157      ;;
16158    esac
16159    ;;
16160  linux* | k*bsd*-gnu | gnu*)
16161    link_all_deplibs_CXX=no
16162    ;;
16163  *)
16164    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16165    ;;
16166  esac
16167
16168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16169$as_echo "$ld_shlibs_CXX" >&6; }
16170test no = "$ld_shlibs_CXX" && can_build_shared=no
16171
16172with_gnu_ld_CXX=$with_gnu_ld
16173
16174
16175
16176
16177
16178
16179#
16180# Do we need to explicitly link libc?
16181#
16182case "x$archive_cmds_need_lc_CXX" in
16183x|xyes)
16184  # Assume -lc should be added
16185  archive_cmds_need_lc_CXX=yes
16186
16187  if test yes,yes = "$GCC,$enable_shared"; then
16188    case $archive_cmds_CXX in
16189    *'~'*)
16190      # FIXME: we may have to deal with multi-command sequences.
16191      ;;
16192    '$CC '*)
16193      # Test whether the compiler implicitly links with -lc since on some
16194      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16195      # to ld, don't add -lc before -lgcc.
16196      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16197$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16198if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16199  $as_echo_n "(cached) " >&6
16200else
16201  $RM conftest*
16202	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16203
16204	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16205  (eval $ac_compile) 2>&5
16206  ac_status=$?
16207  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16208  test $ac_status = 0; } 2>conftest.err; then
16209	  soname=conftest
16210	  lib=conftest
16211	  libobjs=conftest.$ac_objext
16212	  deplibs=
16213	  wl=$lt_prog_compiler_wl_CXX
16214	  pic_flag=$lt_prog_compiler_pic_CXX
16215	  compiler_flags=-v
16216	  linker_flags=-v
16217	  verstring=
16218	  output_objdir=.
16219	  libname=conftest
16220	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16221	  allow_undefined_flag_CXX=
16222	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16223  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16224  ac_status=$?
16225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16226  test $ac_status = 0; }
16227	  then
16228	    lt_cv_archive_cmds_need_lc_CXX=no
16229	  else
16230	    lt_cv_archive_cmds_need_lc_CXX=yes
16231	  fi
16232	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16233	else
16234	  cat conftest.err 1>&5
16235	fi
16236	$RM conftest*
16237
16238fi
16239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16240$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16241      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16242      ;;
16243    esac
16244  fi
16245  ;;
16246esac
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16310$as_echo_n "checking dynamic linker characteristics... " >&6; }
16311
16312library_names_spec=
16313libname_spec='lib$name'
16314soname_spec=
16315shrext_cmds=.so
16316postinstall_cmds=
16317postuninstall_cmds=
16318finish_cmds=
16319finish_eval=
16320shlibpath_var=
16321shlibpath_overrides_runpath=unknown
16322version_type=none
16323dynamic_linker="$host_os ld.so"
16324sys_lib_dlsearch_path_spec="/lib /usr/lib"
16325need_lib_prefix=unknown
16326hardcode_into_libs=no
16327
16328# when you set need_version to no, make sure it does not cause -set_version
16329# flags to be left without arguments
16330need_version=unknown
16331
16332
16333
16334case $host_os in
16335aix3*)
16336  version_type=linux # correct to gnu/linux during the next big refactor
16337  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16338  shlibpath_var=LIBPATH
16339
16340  # AIX 3 has no versioning support, so we append a major version to the name.
16341  soname_spec='$libname$release$shared_ext$major'
16342  ;;
16343
16344aix[4-9]*)
16345  version_type=linux # correct to gnu/linux during the next big refactor
16346  need_lib_prefix=no
16347  need_version=no
16348  hardcode_into_libs=yes
16349  if test ia64 = "$host_cpu"; then
16350    # AIX 5 supports IA64
16351    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16352    shlibpath_var=LD_LIBRARY_PATH
16353  else
16354    # With GCC up to 2.95.x, collect2 would create an import file
16355    # for dependence libraries.  The import file would start with
16356    # the line '#! .'.  This would cause the generated library to
16357    # depend on '.', always an invalid library.  This was fixed in
16358    # development snapshots of GCC prior to 3.0.
16359    case $host_os in
16360      aix4 | aix4.[01] | aix4.[01].*)
16361      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16362	   echo ' yes '
16363	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16364	:
16365      else
16366	can_build_shared=no
16367      fi
16368      ;;
16369    esac
16370    # Using Import Files as archive members, it is possible to support
16371    # filename-based versioning of shared library archives on AIX. While
16372    # this would work for both with and without runtime linking, it will
16373    # prevent static linking of such archives. So we do filename-based
16374    # shared library versioning with .so extension only, which is used
16375    # when both runtime linking and shared linking is enabled.
16376    # Unfortunately, runtime linking may impact performance, so we do
16377    # not want this to be the default eventually. Also, we use the
16378    # versioned .so libs for executables only if there is the -brtl
16379    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16380    # To allow for filename-based versioning support, we need to create
16381    # libNAME.so.V as an archive file, containing:
16382    # *) an Import File, referring to the versioned filename of the
16383    #    archive as well as the shared archive member, telling the
16384    #    bitwidth (32 or 64) of that shared object, and providing the
16385    #    list of exported symbols of that shared object, eventually
16386    #    decorated with the 'weak' keyword
16387    # *) the shared object with the F_LOADONLY flag set, to really avoid
16388    #    it being seen by the linker.
16389    # At run time we better use the real file rather than another symlink,
16390    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16391
16392    case $with_aix_soname,$aix_use_runtimelinking in
16393    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16394    # soname into executable. Probably we can add versioning support to
16395    # collect2, so additional links can be useful in future.
16396    aix,yes) # traditional libtool
16397      dynamic_linker='AIX unversionable lib.so'
16398      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16399      # instead of lib<name>.a to let people know that these are not
16400      # typical AIX shared libraries.
16401      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16402      ;;
16403    aix,no) # traditional AIX only
16404      dynamic_linker='AIX lib.a(lib.so.V)'
16405      # We preserve .a as extension for shared libraries through AIX4.2
16406      # and later when we are not doing run time linking.
16407      library_names_spec='$libname$release.a $libname.a'
16408      soname_spec='$libname$release$shared_ext$major'
16409      ;;
16410    svr4,*) # full svr4 only
16411      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16412      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16413      # We do not specify a path in Import Files, so LIBPATH fires.
16414      shlibpath_overrides_runpath=yes
16415      ;;
16416    *,yes) # both, prefer svr4
16417      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16418      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16419      # unpreferred sharedlib libNAME.a needs extra handling
16420      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"'
16421      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"'
16422      # We do not specify a path in Import Files, so LIBPATH fires.
16423      shlibpath_overrides_runpath=yes
16424      ;;
16425    *,no) # both, prefer aix
16426      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16427      library_names_spec='$libname$release.a $libname.a'
16428      soname_spec='$libname$release$shared_ext$major'
16429      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16430      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)'
16431      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"'
16432      ;;
16433    esac
16434    shlibpath_var=LIBPATH
16435  fi
16436  ;;
16437
16438amigaos*)
16439  case $host_cpu in
16440  powerpc)
16441    # Since July 2007 AmigaOS4 officially supports .so libraries.
16442    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16443    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16444    ;;
16445  m68k)
16446    library_names_spec='$libname.ixlibrary $libname.a'
16447    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16448    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'
16449    ;;
16450  esac
16451  ;;
16452
16453beos*)
16454  library_names_spec='$libname$shared_ext'
16455  dynamic_linker="$host_os ld.so"
16456  shlibpath_var=LIBRARY_PATH
16457  ;;
16458
16459bsdi[45]*)
16460  version_type=linux # correct to gnu/linux during the next big refactor
16461  need_version=no
16462  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16463  soname_spec='$libname$release$shared_ext$major'
16464  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16465  shlibpath_var=LD_LIBRARY_PATH
16466  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16467  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16468  # the default ld.so.conf also contains /usr/contrib/lib and
16469  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16470  # libtool to hard-code these into programs
16471  ;;
16472
16473cygwin* | mingw* | pw32* | cegcc*)
16474  version_type=windows
16475  shrext_cmds=.dll
16476  need_version=no
16477  need_lib_prefix=no
16478
16479  case $GCC,$cc_basename in
16480  yes,*)
16481    # gcc
16482    library_names_spec='$libname.dll.a'
16483    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16484    postinstall_cmds='base_file=`basename \$file`~
16485      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16486      dldir=$destdir/`dirname \$dlpath`~
16487      test -d \$dldir || mkdir -p \$dldir~
16488      $install_prog $dir/$dlname \$dldir/$dlname~
16489      chmod a+x \$dldir/$dlname~
16490      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16491        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16492      fi'
16493    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16494      dlpath=$dir/\$dldll~
16495       $RM \$dlpath'
16496    shlibpath_overrides_runpath=yes
16497
16498    case $host_os in
16499    cygwin*)
16500      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16501      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16502
16503      ;;
16504    mingw* | cegcc*)
16505      # MinGW DLLs use traditional 'lib' prefix
16506      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16507      ;;
16508    pw32*)
16509      # pw32 DLLs use 'pw' prefix rather than 'lib'
16510      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16511      ;;
16512    esac
16513    dynamic_linker='Win32 ld.exe'
16514    ;;
16515
16516  *,cl*)
16517    # Native MSVC
16518    libname_spec='$name'
16519    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16520    library_names_spec='$libname.dll.lib'
16521
16522    case $build_os in
16523    mingw*)
16524      sys_lib_search_path_spec=
16525      lt_save_ifs=$IFS
16526      IFS=';'
16527      for lt_path in $LIB
16528      do
16529        IFS=$lt_save_ifs
16530        # Let DOS variable expansion print the short 8.3 style file name.
16531        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16532        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16533      done
16534      IFS=$lt_save_ifs
16535      # Convert to MSYS style.
16536      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16537      ;;
16538    cygwin*)
16539      # Convert to unix form, then to dos form, then back to unix form
16540      # but this time dos style (no spaces!) so that the unix form looks
16541      # like /cygdrive/c/PROGRA~1:/cygdr...
16542      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16543      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16544      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16545      ;;
16546    *)
16547      sys_lib_search_path_spec=$LIB
16548      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16549        # It is most probably a Windows format PATH.
16550        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16551      else
16552        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16553      fi
16554      # FIXME: find the short name or the path components, as spaces are
16555      # common. (e.g. "Program Files" -> "PROGRA~1")
16556      ;;
16557    esac
16558
16559    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16560    postinstall_cmds='base_file=`basename \$file`~
16561      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16562      dldir=$destdir/`dirname \$dlpath`~
16563      test -d \$dldir || mkdir -p \$dldir~
16564      $install_prog $dir/$dlname \$dldir/$dlname'
16565    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16566      dlpath=$dir/\$dldll~
16567       $RM \$dlpath'
16568    shlibpath_overrides_runpath=yes
16569    dynamic_linker='Win32 link.exe'
16570    ;;
16571
16572  *)
16573    # Assume MSVC wrapper
16574    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16575    dynamic_linker='Win32 ld.exe'
16576    ;;
16577  esac
16578  # FIXME: first we should search . and the directory the executable is in
16579  shlibpath_var=PATH
16580  ;;
16581
16582darwin* | rhapsody*)
16583  dynamic_linker="$host_os dyld"
16584  version_type=darwin
16585  need_lib_prefix=no
16586  need_version=no
16587  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16588  soname_spec='$libname$release$major$shared_ext'
16589  shlibpath_overrides_runpath=yes
16590  shlibpath_var=DYLD_LIBRARY_PATH
16591  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16592
16593  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16594  ;;
16595
16596dgux*)
16597  version_type=linux # correct to gnu/linux during the next big refactor
16598  need_lib_prefix=no
16599  need_version=no
16600  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16601  soname_spec='$libname$release$shared_ext$major'
16602  shlibpath_var=LD_LIBRARY_PATH
16603  ;;
16604
16605freebsd* | dragonfly*)
16606  # DragonFly does not have aout.  When/if they implement a new
16607  # versioning mechanism, adjust this.
16608  if test -x /usr/bin/objformat; then
16609    objformat=`/usr/bin/objformat`
16610  else
16611    case $host_os in
16612    freebsd[23].*) objformat=aout ;;
16613    *) objformat=elf ;;
16614    esac
16615  fi
16616  version_type=freebsd-$objformat
16617  case $version_type in
16618    freebsd-elf*)
16619      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16620      soname_spec='$libname$release$shared_ext$major'
16621      need_version=no
16622      need_lib_prefix=no
16623      ;;
16624    freebsd-*)
16625      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16626      need_version=yes
16627      ;;
16628  esac
16629  shlibpath_var=LD_LIBRARY_PATH
16630  case $host_os in
16631  freebsd2.*)
16632    shlibpath_overrides_runpath=yes
16633    ;;
16634  freebsd3.[01]* | freebsdelf3.[01]*)
16635    shlibpath_overrides_runpath=yes
16636    hardcode_into_libs=yes
16637    ;;
16638  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16639  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16640    shlibpath_overrides_runpath=no
16641    hardcode_into_libs=yes
16642    ;;
16643  *) # from 4.6 on, and DragonFly
16644    shlibpath_overrides_runpath=yes
16645    hardcode_into_libs=yes
16646    ;;
16647  esac
16648  ;;
16649
16650haiku*)
16651  version_type=linux # correct to gnu/linux during the next big refactor
16652  need_lib_prefix=no
16653  need_version=no
16654  dynamic_linker="$host_os runtime_loader"
16655  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16656  soname_spec='$libname$release$shared_ext$major'
16657  shlibpath_var=LIBRARY_PATH
16658  shlibpath_overrides_runpath=no
16659  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16660  hardcode_into_libs=yes
16661  ;;
16662
16663hpux9* | hpux10* | hpux11*)
16664  # Give a soname corresponding to the major version so that dld.sl refuses to
16665  # link against other versions.
16666  version_type=sunos
16667  need_lib_prefix=no
16668  need_version=no
16669  case $host_cpu in
16670  ia64*)
16671    shrext_cmds='.so'
16672    hardcode_into_libs=yes
16673    dynamic_linker="$host_os dld.so"
16674    shlibpath_var=LD_LIBRARY_PATH
16675    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16676    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16677    soname_spec='$libname$release$shared_ext$major'
16678    if test 32 = "$HPUX_IA64_MODE"; then
16679      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16680      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16681    else
16682      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16683      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16684    fi
16685    ;;
16686  hppa*64*)
16687    shrext_cmds='.sl'
16688    hardcode_into_libs=yes
16689    dynamic_linker="$host_os dld.sl"
16690    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16691    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16692    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16693    soname_spec='$libname$release$shared_ext$major'
16694    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16695    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16696    ;;
16697  *)
16698    shrext_cmds='.sl'
16699    dynamic_linker="$host_os dld.sl"
16700    shlibpath_var=SHLIB_PATH
16701    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16702    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16703    soname_spec='$libname$release$shared_ext$major'
16704    ;;
16705  esac
16706  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16707  postinstall_cmds='chmod 555 $lib'
16708  # or fails outright, so override atomically:
16709  install_override_mode=555
16710  ;;
16711
16712interix[3-9]*)
16713  version_type=linux # correct to gnu/linux during the next big refactor
16714  need_lib_prefix=no
16715  need_version=no
16716  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16717  soname_spec='$libname$release$shared_ext$major'
16718  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16719  shlibpath_var=LD_LIBRARY_PATH
16720  shlibpath_overrides_runpath=no
16721  hardcode_into_libs=yes
16722  ;;
16723
16724irix5* | irix6* | nonstopux*)
16725  case $host_os in
16726    nonstopux*) version_type=nonstopux ;;
16727    *)
16728	if test yes = "$lt_cv_prog_gnu_ld"; then
16729		version_type=linux # correct to gnu/linux during the next big refactor
16730	else
16731		version_type=irix
16732	fi ;;
16733  esac
16734  need_lib_prefix=no
16735  need_version=no
16736  soname_spec='$libname$release$shared_ext$major'
16737  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16738  case $host_os in
16739  irix5* | nonstopux*)
16740    libsuff= shlibsuff=
16741    ;;
16742  *)
16743    case $LD in # libtool.m4 will add one of these switches to LD
16744    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16745      libsuff= shlibsuff= libmagic=32-bit;;
16746    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16747      libsuff=32 shlibsuff=N32 libmagic=N32;;
16748    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16749      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16750    *) libsuff= shlibsuff= libmagic=never-match;;
16751    esac
16752    ;;
16753  esac
16754  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16755  shlibpath_overrides_runpath=no
16756  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16757  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16758  hardcode_into_libs=yes
16759  ;;
16760
16761# No shared lib support for Linux oldld, aout, or coff.
16762linux*oldld* | linux*aout* | linux*coff*)
16763  dynamic_linker=no
16764  ;;
16765
16766linux*android*)
16767  version_type=none # Android doesn't support versioned libraries.
16768  need_lib_prefix=no
16769  need_version=no
16770  library_names_spec='$libname$release$shared_ext'
16771  soname_spec='$libname$release$shared_ext'
16772  finish_cmds=
16773  shlibpath_var=LD_LIBRARY_PATH
16774  shlibpath_overrides_runpath=yes
16775
16776  # This implies no fast_install, which is unacceptable.
16777  # Some rework will be needed to allow for fast_install
16778  # before this can be enabled.
16779  hardcode_into_libs=yes
16780
16781  dynamic_linker='Android linker'
16782  # Don't embed -rpath directories since the linker doesn't support them.
16783  hardcode_libdir_flag_spec_CXX='-L$libdir'
16784  ;;
16785
16786# This must be glibc/ELF.
16787linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16788  version_type=linux # correct to gnu/linux during the next big refactor
16789  need_lib_prefix=no
16790  need_version=no
16791  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16792  soname_spec='$libname$release$shared_ext$major'
16793  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16794  shlibpath_var=LD_LIBRARY_PATH
16795  shlibpath_overrides_runpath=no
16796
16797  # Some binutils ld are patched to set DT_RUNPATH
16798  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16799  $as_echo_n "(cached) " >&6
16800else
16801  lt_cv_shlibpath_overrides_runpath=no
16802    save_LDFLAGS=$LDFLAGS
16803    save_libdir=$libdir
16804    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16805	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16806    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16807/* end confdefs.h.  */
16808
16809int
16810main ()
16811{
16812
16813  ;
16814  return 0;
16815}
16816_ACEOF
16817if ac_fn_cxx_try_link "$LINENO"; then :
16818  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16819  lt_cv_shlibpath_overrides_runpath=yes
16820fi
16821fi
16822rm -f core conftest.err conftest.$ac_objext \
16823    conftest$ac_exeext conftest.$ac_ext
16824    LDFLAGS=$save_LDFLAGS
16825    libdir=$save_libdir
16826
16827fi
16828
16829  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16830
16831  # This implies no fast_install, which is unacceptable.
16832  # Some rework will be needed to allow for fast_install
16833  # before this can be enabled.
16834  hardcode_into_libs=yes
16835
16836  # Ideally, we could use ldconfig to report *all* directores which are
16837  # searched for libraries, however this is still not possible.  Aside from not
16838  # being certain /sbin/ldconfig is available, command
16839  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16840  # even though it is searched at run-time.  Try to do the best guess by
16841  # appending ld.so.conf contents (and includes) to the search path.
16842  if test -f /etc/ld.so.conf; then
16843    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' ' '`
16844    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16845  fi
16846
16847  # We used to test for /lib/ld.so.1 and disable shared libraries on
16848  # powerpc, because MkLinux only supported shared libraries with the
16849  # GNU dynamic linker.  Since this was broken with cross compilers,
16850  # most powerpc-linux boxes support dynamic linking these days and
16851  # people can always --disable-shared, the test was removed, and we
16852  # assume the GNU/Linux dynamic linker is in use.
16853  dynamic_linker='GNU/Linux ld.so'
16854  ;;
16855
16856netbsdelf*-gnu)
16857  version_type=linux
16858  need_lib_prefix=no
16859  need_version=no
16860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16861  soname_spec='${libname}${release}${shared_ext}$major'
16862  shlibpath_var=LD_LIBRARY_PATH
16863  shlibpath_overrides_runpath=no
16864  hardcode_into_libs=yes
16865  dynamic_linker='NetBSD ld.elf_so'
16866  ;;
16867
16868netbsd*)
16869  version_type=sunos
16870  need_lib_prefix=no
16871  need_version=no
16872  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16873    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16874    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16875    dynamic_linker='NetBSD (a.out) ld.so'
16876  else
16877    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16878    soname_spec='$libname$release$shared_ext$major'
16879    dynamic_linker='NetBSD ld.elf_so'
16880  fi
16881  shlibpath_var=LD_LIBRARY_PATH
16882  shlibpath_overrides_runpath=yes
16883  hardcode_into_libs=yes
16884  ;;
16885
16886newsos6)
16887  version_type=linux # correct to gnu/linux during the next big refactor
16888  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16889  shlibpath_var=LD_LIBRARY_PATH
16890  shlibpath_overrides_runpath=yes
16891  ;;
16892
16893*nto* | *qnx*)
16894  version_type=qnx
16895  need_lib_prefix=no
16896  need_version=no
16897  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16898  soname_spec='$libname$release$shared_ext$major'
16899  shlibpath_var=LD_LIBRARY_PATH
16900  shlibpath_overrides_runpath=no
16901  hardcode_into_libs=yes
16902  dynamic_linker='ldqnx.so'
16903  ;;
16904
16905openbsd* | bitrig*)
16906  version_type=sunos
16907  sys_lib_dlsearch_path_spec=/usr/lib
16908  need_lib_prefix=no
16909  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16910    need_version=no
16911  else
16912    need_version=yes
16913  fi
16914  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16915  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16916  shlibpath_var=LD_LIBRARY_PATH
16917  shlibpath_overrides_runpath=yes
16918  ;;
16919
16920os2*)
16921  libname_spec='$name'
16922  version_type=windows
16923  shrext_cmds=.dll
16924  need_version=no
16925  need_lib_prefix=no
16926  # OS/2 can only load a DLL with a base name of 8 characters or less.
16927  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16928    v=$($ECHO $release$versuffix | tr -d .-);
16929    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16930    $ECHO $n$v`$shared_ext'
16931  library_names_spec='${libname}_dll.$libext'
16932  dynamic_linker='OS/2 ld.exe'
16933  shlibpath_var=BEGINLIBPATH
16934  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16935  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16936  postinstall_cmds='base_file=`basename \$file`~
16937    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16938    dldir=$destdir/`dirname \$dlpath`~
16939    test -d \$dldir || mkdir -p \$dldir~
16940    $install_prog $dir/$dlname \$dldir/$dlname~
16941    chmod a+x \$dldir/$dlname~
16942    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16943      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16944    fi'
16945  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16946    dlpath=$dir/\$dldll~
16947    $RM \$dlpath'
16948  ;;
16949
16950osf3* | osf4* | osf5*)
16951  version_type=osf
16952  need_lib_prefix=no
16953  need_version=no
16954  soname_spec='$libname$release$shared_ext$major'
16955  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16956  shlibpath_var=LD_LIBRARY_PATH
16957  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16958  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16959  ;;
16960
16961rdos*)
16962  dynamic_linker=no
16963  ;;
16964
16965solaris*)
16966  version_type=linux # correct to gnu/linux during the next big refactor
16967  need_lib_prefix=no
16968  need_version=no
16969  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16970  soname_spec='$libname$release$shared_ext$major'
16971  shlibpath_var=LD_LIBRARY_PATH
16972  shlibpath_overrides_runpath=yes
16973  hardcode_into_libs=yes
16974  # ldd complains unless libraries are executable
16975  postinstall_cmds='chmod +x $lib'
16976  ;;
16977
16978sunos4*)
16979  version_type=sunos
16980  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16981  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16982  shlibpath_var=LD_LIBRARY_PATH
16983  shlibpath_overrides_runpath=yes
16984  if test yes = "$with_gnu_ld"; then
16985    need_lib_prefix=no
16986  fi
16987  need_version=yes
16988  ;;
16989
16990sysv4 | sysv4.3*)
16991  version_type=linux # correct to gnu/linux during the next big refactor
16992  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16993  soname_spec='$libname$release$shared_ext$major'
16994  shlibpath_var=LD_LIBRARY_PATH
16995  case $host_vendor in
16996    sni)
16997      shlibpath_overrides_runpath=no
16998      need_lib_prefix=no
16999      runpath_var=LD_RUN_PATH
17000      ;;
17001    siemens)
17002      need_lib_prefix=no
17003      ;;
17004    motorola)
17005      need_lib_prefix=no
17006      need_version=no
17007      shlibpath_overrides_runpath=no
17008      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17009      ;;
17010  esac
17011  ;;
17012
17013sysv4*MP*)
17014  if test -d /usr/nec; then
17015    version_type=linux # correct to gnu/linux during the next big refactor
17016    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17017    soname_spec='$libname$shared_ext.$major'
17018    shlibpath_var=LD_LIBRARY_PATH
17019  fi
17020  ;;
17021
17022sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17023  version_type=sco
17024  need_lib_prefix=no
17025  need_version=no
17026  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17027  soname_spec='$libname$release$shared_ext$major'
17028  shlibpath_var=LD_LIBRARY_PATH
17029  shlibpath_overrides_runpath=yes
17030  hardcode_into_libs=yes
17031  if test yes = "$with_gnu_ld"; then
17032    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17033  else
17034    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17035    case $host_os in
17036      sco3.2v5*)
17037        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17038	;;
17039    esac
17040  fi
17041  sys_lib_dlsearch_path_spec='/usr/lib'
17042  ;;
17043
17044tpf*)
17045  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17046  version_type=linux # correct to gnu/linux during the next big refactor
17047  need_lib_prefix=no
17048  need_version=no
17049  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17050  shlibpath_var=LD_LIBRARY_PATH
17051  shlibpath_overrides_runpath=no
17052  hardcode_into_libs=yes
17053  ;;
17054
17055uts4*)
17056  version_type=linux # correct to gnu/linux during the next big refactor
17057  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17058  soname_spec='$libname$release$shared_ext$major'
17059  shlibpath_var=LD_LIBRARY_PATH
17060  ;;
17061
17062*)
17063  dynamic_linker=no
17064  ;;
17065esac
17066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17067$as_echo "$dynamic_linker" >&6; }
17068test no = "$dynamic_linker" && can_build_shared=no
17069
17070variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17071if test yes = "$GCC"; then
17072  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17073fi
17074
17075if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17076  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17077fi
17078
17079if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17080  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17081fi
17082
17083# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17084configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17085
17086# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17087func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17088
17089# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17090configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17132$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17133hardcode_action_CXX=
17134if test -n "$hardcode_libdir_flag_spec_CXX" ||
17135   test -n "$runpath_var_CXX" ||
17136   test yes = "$hardcode_automatic_CXX"; then
17137
17138  # We can hardcode non-existent directories.
17139  if test no != "$hardcode_direct_CXX" &&
17140     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17141     # have to relink, otherwise we might link with an installed library
17142     # when we should be linking with a yet-to-be-installed one
17143     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17144     test no != "$hardcode_minus_L_CXX"; then
17145    # Linking always hardcodes the temporary library directory.
17146    hardcode_action_CXX=relink
17147  else
17148    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17149    hardcode_action_CXX=immediate
17150  fi
17151else
17152  # We cannot hardcode anything, or else we can only hardcode existing
17153  # directories.
17154  hardcode_action_CXX=unsupported
17155fi
17156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17157$as_echo "$hardcode_action_CXX" >&6; }
17158
17159if test relink = "$hardcode_action_CXX" ||
17160   test yes = "$inherit_rpath_CXX"; then
17161  # Fast installation is not supported
17162  enable_fast_install=no
17163elif test yes = "$shlibpath_overrides_runpath" ||
17164     test no = "$enable_shared"; then
17165  # Fast installation is not necessary
17166  enable_fast_install=needless
17167fi
17168
17169
17170
17171
17172
17173
17174
17175  fi # test -n "$compiler"
17176
17177  CC=$lt_save_CC
17178  CFLAGS=$lt_save_CFLAGS
17179  LDCXX=$LD
17180  LD=$lt_save_LD
17181  GCC=$lt_save_GCC
17182  with_gnu_ld=$lt_save_with_gnu_ld
17183  lt_cv_path_LDCXX=$lt_cv_path_LD
17184  lt_cv_path_LD=$lt_save_path_LD
17185  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17186  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17187fi # test yes != "$_lt_caught_CXX_error"
17188
17189ac_ext=c
17190ac_cpp='$CPP $CPPFLAGS'
17191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17193ac_compiler_gnu=$ac_cv_c_compiler_gnu
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209        ac_config_commands="$ac_config_commands libtool"
17210
17211
17212
17213
17214# Only expand once:
17215
17216
17217
17218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
17219$as_echo_n "checking whether the C++ compiler works... " >&6; }
17220if ${avahi_cv_sys_cxx_works+:} false; then :
17221  $as_echo_n "(cached) " >&6
17222else
17223
17224    ac_ext=cpp
17225ac_cpp='$CXXCPP $CPPFLAGS'
17226ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17227ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17228ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17229
17230    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17231/* end confdefs.h.  */
17232int main() { return 0; }
17233_ACEOF
17234if ac_fn_cxx_try_compile "$LINENO"; then :
17235  avahi_cv_sys_cxx_works=yes
17236else
17237  avahi_cv_sys_cxx_works=no
17238fi
17239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17240    ac_ext=c
17241ac_cpp='$CPP $CPPFLAGS'
17242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17244ac_compiler_gnu=$ac_cv_c_compiler_gnu
17245
17246
17247fi
17248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $avahi_cv_sys_cxx_works" >&5
17249$as_echo "$avahi_cv_sys_cxx_works" >&6; }
17250 if [ "x$avahi_cv_sys_cxx_works" = "xno" ]; then
17251    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17253as_fn_error $? "The C++ compiler does not work
17254See \`config.log' for more details" "$LINENO" 5; }
17255 fi
17256
17257
17258
17259
17260ac_ext=c
17261ac_cpp='$CPP $CPPFLAGS'
17262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17264ac_compiler_gnu=$ac_cv_c_compiler_gnu
17265
17266acx_pthread_ok=no
17267
17268# We used to check for pthread.h first, but this fails if pthread.h
17269# requires special compiler flags (e.g. on True64 or Sequent).
17270# It gets checked for in the link test anyway.
17271
17272# First of all, check if the user has set any of the PTHREAD_LIBS,
17273# etcetera environment variables, and if threads linking works using
17274# them:
17275if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17276        save_CFLAGS="$CFLAGS"
17277        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17278        save_LIBS="$LIBS"
17279        LIBS="$PTHREAD_LIBS $LIBS"
17280        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17281$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17282        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17283/* end confdefs.h.  */
17284
17285/* Override any GCC internal prototype to avoid an error.
17286   Use char because int might match the return type of a GCC
17287   builtin and then its argument prototype would still apply.  */
17288#ifdef __cplusplus
17289extern "C"
17290#endif
17291char pthread_join ();
17292int
17293main ()
17294{
17295return pthread_join ();
17296  ;
17297  return 0;
17298}
17299_ACEOF
17300if ac_fn_c_try_link "$LINENO"; then :
17301  acx_pthread_ok=yes
17302fi
17303rm -f core conftest.err conftest.$ac_objext \
17304    conftest$ac_exeext conftest.$ac_ext
17305        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17306$as_echo "$acx_pthread_ok" >&6; }
17307        if test x"$acx_pthread_ok" = xno; then
17308                PTHREAD_LIBS=""
17309                PTHREAD_CFLAGS=""
17310        fi
17311        LIBS="$save_LIBS"
17312        CFLAGS="$save_CFLAGS"
17313fi
17314
17315# We must check for the threads library under a number of different
17316# names; the ordering is very important because some systems
17317# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17318# libraries is broken (non-POSIX).
17319
17320# Create a list of thread flags to try.  Items starting with a "-" are
17321# C compiler flags, and other items are library names, except for "none"
17322# which indicates that we try without any flags at all, and "pthread-config"
17323# which is a program returning the flags for the Pth emulation library.
17324
17325acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17326
17327# The ordering *is* (sometimes) important.  Some notes on the
17328# individual items follow:
17329
17330# pthreads: AIX (must check this before -lpthread)
17331# none: in case threads are in libc; should be tried before -Kthread and
17332#       other compiler flags to prevent continual compiler warnings
17333# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17334# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17335# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17336# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17337# -pthreads: Solaris/gcc
17338# -mthreads: Mingw32/gcc, Lynx/gcc
17339# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17340#      doesn't hurt to check since this sometimes defines pthreads too;
17341#      also defines -D_REENTRANT)
17342#      ... -mt is also the pthreads flag for HP/aCC
17343# pthread: Linux, etcetera
17344# --thread-safe: KAI C++
17345# pthread-config: use pthread-config program (for GNU Pth library)
17346
17347case "${host_cpu}-${host_os}" in
17348        *solaris*)
17349
17350        # On Solaris (at least, for some versions), libc contains stubbed
17351        # (non-functional) versions of the pthreads routines, so link-based
17352        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
17353        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
17354        # a function called by this macro, so we could check for that, but
17355        # who knows whether they'll stub that too in a future libc.)  So,
17356        # we'll just look for -pthreads and -lpthread first:
17357
17358        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
17359        ;;
17360esac
17361
17362if test x"$acx_pthread_ok" = xno; then
17363for flag in $acx_pthread_flags; do
17364
17365        case $flag in
17366                none)
17367                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17368$as_echo_n "checking whether pthreads work without any flags... " >&6; }
17369                ;;
17370
17371                -*)
17372                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17373$as_echo_n "checking whether pthreads work with $flag... " >&6; }
17374                PTHREAD_CFLAGS="$flag"
17375                ;;
17376
17377		pthread-config)
17378		# Extract the first word of "pthread-config", so it can be a program name with args.
17379set dummy pthread-config; ac_word=$2
17380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17381$as_echo_n "checking for $ac_word... " >&6; }
17382if ${ac_cv_prog_acx_pthread_config+:} false; then :
17383  $as_echo_n "(cached) " >&6
17384else
17385  if test -n "$acx_pthread_config"; then
17386  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17387else
17388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17389for as_dir in $PATH
17390do
17391  IFS=$as_save_IFS
17392  test -z "$as_dir" && as_dir=.
17393    for ac_exec_ext in '' $ac_executable_extensions; do
17394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17395    ac_cv_prog_acx_pthread_config="yes"
17396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17397    break 2
17398  fi
17399done
17400  done
17401IFS=$as_save_IFS
17402
17403  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17404fi
17405fi
17406acx_pthread_config=$ac_cv_prog_acx_pthread_config
17407if test -n "$acx_pthread_config"; then
17408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
17409$as_echo "$acx_pthread_config" >&6; }
17410else
17411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17412$as_echo "no" >&6; }
17413fi
17414
17415
17416		if test x"$acx_pthread_config" = xno; then continue; fi
17417		PTHREAD_CFLAGS="`pthread-config --cflags`"
17418		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17419		;;
17420
17421                *)
17422                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17423$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17424                PTHREAD_LIBS="-l$flag"
17425                ;;
17426        esac
17427
17428        save_LIBS="$LIBS"
17429        save_CFLAGS="$CFLAGS"
17430        LIBS="$PTHREAD_LIBS $LIBS"
17431        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17432
17433        # Check for various functions.  We must include pthread.h,
17434        # since some functions may be macros.  (On the Sequent, we
17435        # need a special flag -Kthread to make this header compile.)
17436        # We check for pthread_join because it is in -lpthread on IRIX
17437        # while pthread_create is in libc.  We check for pthread_attr_init
17438        # due to DEC craziness with -lpthreads.  We check for
17439        # pthread_cleanup_push because it is one of the few pthread
17440        # functions on Solaris that doesn't have a non-functional libc stub.
17441        # We try pthread_create on general principles.
17442        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443/* end confdefs.h.  */
17444#include <pthread.h>
17445int
17446main ()
17447{
17448pthread_t th; pthread_join(th, 0);
17449                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
17450                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17451  ;
17452  return 0;
17453}
17454_ACEOF
17455if ac_fn_c_try_link "$LINENO"; then :
17456  acx_pthread_ok=yes
17457fi
17458rm -f core conftest.err conftest.$ac_objext \
17459    conftest$ac_exeext conftest.$ac_ext
17460
17461        LIBS="$save_LIBS"
17462        CFLAGS="$save_CFLAGS"
17463
17464        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17465$as_echo "$acx_pthread_ok" >&6; }
17466        if test "x$acx_pthread_ok" = xyes; then
17467                break;
17468        fi
17469
17470        PTHREAD_LIBS=""
17471        PTHREAD_CFLAGS=""
17472done
17473fi
17474
17475# Various other checks:
17476if test "x$acx_pthread_ok" = xyes; then
17477        save_LIBS="$LIBS"
17478        LIBS="$PTHREAD_LIBS $LIBS"
17479        save_CFLAGS="$CFLAGS"
17480        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17481
17482        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17483	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17484$as_echo_n "checking for joinable pthread attribute... " >&6; }
17485	attr_name=unknown
17486	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17487	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17488/* end confdefs.h.  */
17489#include <pthread.h>
17490int
17491main ()
17492{
17493int attr=$attr; return attr;
17494  ;
17495  return 0;
17496}
17497_ACEOF
17498if ac_fn_c_try_link "$LINENO"; then :
17499  attr_name=$attr; break
17500fi
17501rm -f core conftest.err conftest.$ac_objext \
17502    conftest$ac_exeext conftest.$ac_ext
17503	done
17504        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17505$as_echo "$attr_name" >&6; }
17506        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17507
17508cat >>confdefs.h <<_ACEOF
17509#define PTHREAD_CREATE_JOINABLE $attr_name
17510_ACEOF
17511
17512        fi
17513
17514        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17515$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17516        flag=no
17517        case "${host_cpu}-${host_os}" in
17518            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
17519            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
17520        esac
17521        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17522$as_echo "${flag}" >&6; }
17523        if test "x$flag" != xno; then
17524            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17525        fi
17526
17527        LIBS="$save_LIBS"
17528        CFLAGS="$save_CFLAGS"
17529        # More AIX lossage: must compile with xlc_r or cc_r
17530	if test x"$GCC" != xyes; then
17531          for ac_prog in xlc_r cc_r
17532do
17533  # Extract the first word of "$ac_prog", so it can be a program name with args.
17534set dummy $ac_prog; ac_word=$2
17535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17536$as_echo_n "checking for $ac_word... " >&6; }
17537if ${ac_cv_prog_PTHREAD_CC+:} false; then :
17538  $as_echo_n "(cached) " >&6
17539else
17540  if test -n "$PTHREAD_CC"; then
17541  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17542else
17543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17544for as_dir in $PATH
17545do
17546  IFS=$as_save_IFS
17547  test -z "$as_dir" && as_dir=.
17548    for ac_exec_ext in '' $ac_executable_extensions; do
17549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17550    ac_cv_prog_PTHREAD_CC="$ac_prog"
17551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17552    break 2
17553  fi
17554done
17555  done
17556IFS=$as_save_IFS
17557
17558fi
17559fi
17560PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17561if test -n "$PTHREAD_CC"; then
17562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17563$as_echo "$PTHREAD_CC" >&6; }
17564else
17565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17566$as_echo "no" >&6; }
17567fi
17568
17569
17570  test -n "$PTHREAD_CC" && break
17571done
17572test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17573
17574        else
17575          PTHREAD_CC=$CC
17576	fi
17577
17578   # The next part tries to detect GCC inconsistency with -shared on some
17579   # architectures and systems. The problem is that in certain
17580   # configurations, when -shared is specified, GCC "forgets" to
17581   # internally use various flags which are still necessary.
17582
17583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
17584$as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
17585   check_inconsistencies=yes
17586   case "${host_cpu}-${host_os}" in
17587     *-darwin*) check_inconsistencies=no ;;
17588   esac
17589   if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then
17590      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17591$as_echo "no" >&6; }
17592   else
17593      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17594$as_echo "yes" >&6; }
17595
17596      # In order not to create several levels of indentation, we test
17597      # the value of "$ok" until we find out the cure or run out of
17598      # ideas.
17599      ok="no"
17600
17601      #
17602      # Prepare the flags
17603      #
17604      save_CFLAGS="$CFLAGS"
17605      save_LIBS="$LIBS"
17606      save_CC="$CC"
17607      # Try with the flags determined by the earlier checks.
17608      #
17609      # -Wl,-z,defs forces link-time symbol resolution, so that the
17610      # linking checks with -shared actually have any value
17611      #
17612      # FIXME: -fPIC is required for -shared on many architectures,
17613      # so we specify it here, but the right way would probably be to
17614      # properly detect whether it is actually required.
17615      CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
17616      LIBS="$PTHREAD_LIBS $LIBS"
17617      CC="$PTHREAD_CC"
17618
17619      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
17620$as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
17621      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17622/* end confdefs.h.  */
17623#include <pthread.h>
17624int
17625main ()
17626{
17627pthread_t th; pthread_join(th, 0);
17628         pthread_attr_init(0); pthread_cleanup_push(0, 0);
17629         pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17630  ;
17631  return 0;
17632}
17633_ACEOF
17634if ac_fn_c_try_link "$LINENO"; then :
17635  ok=yes
17636fi
17637rm -f core conftest.err conftest.$ac_objext \
17638    conftest$ac_exeext conftest.$ac_ext
17639
17640      if test "x$ok" = xyes; then
17641         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17642$as_echo "yes" >&6; }
17643      else
17644         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17645$as_echo "no" >&6; }
17646      fi
17647
17648      #
17649      # Linux gcc on some architectures such as mips/mipsel forgets
17650      # about -lpthread
17651      #
17652      if test x"$ok" = xno; then
17653         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
17654$as_echo_n "checking whether -lpthread fixes that... " >&6; }
17655         LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
17656         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17657/* end confdefs.h.  */
17658#include <pthread.h>
17659int
17660main ()
17661{
17662pthread_t th; pthread_join(th, 0);
17663            pthread_attr_init(0); pthread_cleanup_push(0, 0);
17664            pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17665  ;
17666  return 0;
17667}
17668_ACEOF
17669if ac_fn_c_try_link "$LINENO"; then :
17670  ok=yes
17671fi
17672rm -f core conftest.err conftest.$ac_objext \
17673    conftest$ac_exeext conftest.$ac_ext
17674
17675         if test "x$ok" = xyes; then
17676            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17677$as_echo "yes" >&6; }
17678            PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
17679         else
17680            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17681$as_echo "no" >&6; }
17682         fi
17683      fi
17684      #
17685      # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
17686      #
17687      if test x"$ok" = xno; then
17688         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
17689$as_echo_n "checking whether -lc_r fixes that... " >&6; }
17690         LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
17691         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692/* end confdefs.h.  */
17693#include <pthread.h>
17694int
17695main ()
17696{
17697pthread_t th; pthread_join(th, 0);
17698              pthread_attr_init(0); pthread_cleanup_push(0, 0);
17699              pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17700  ;
17701  return 0;
17702}
17703_ACEOF
17704if ac_fn_c_try_link "$LINENO"; then :
17705  ok=yes
17706fi
17707rm -f core conftest.err conftest.$ac_objext \
17708    conftest$ac_exeext conftest.$ac_ext
17709
17710         if test "x$ok" = xyes; then
17711            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17712$as_echo "yes" >&6; }
17713            PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
17714         else
17715            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17716$as_echo "no" >&6; }
17717         fi
17718      fi
17719      if test x"$ok" = xno; then
17720         # OK, we have run out of ideas
17721         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
17722$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
17723
17724         # so it's not safe to assume that we may use pthreads
17725         acx_pthread_ok=no
17726      fi
17727
17728      CFLAGS="$save_CFLAGS"
17729      LIBS="$save_LIBS"
17730      CC="$save_CC"
17731   fi
17732else
17733        PTHREAD_CC="$CC"
17734fi
17735
17736
17737
17738
17739
17740# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17741if test x"$acx_pthread_ok" = xyes; then
17742
17743$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17744
17745        :
17746else
17747        acx_pthread_ok=no
17748        as_fn_error $? "Missing POSIX Threads support" "$LINENO" 5
17749fi
17750ac_ext=c
17751ac_cpp='$CPP $CPPFLAGS'
17752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17754ac_compiler_gnu=$ac_cv_c_compiler_gnu
17755
17756
17757
17758#
17759# Check for netlink.h
17760#
17761ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
17762#include <sys/socket.h>
17763#include <asm/types.h>
17764
17765"
17766if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
17767  HAVE_NETLINK=yes
17768
17769$as_echo "#define HAVE_NETLINK /**/" >>confdefs.h
17770
17771
17772fi
17773
17774
17775
17776 if  test x"$HAVE_NETLINK" = xyes ; then
17777  HAVE_NETLINK_TRUE=
17778  HAVE_NETLINK_FALSE='#'
17779else
17780  HAVE_NETLINK_TRUE='#'
17781  HAVE_NETLINK_FALSE=
17782fi
17783
17784
17785#
17786# Check for net/route.h
17787#
17788ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
17789#include <sys/types.h>
17790#include <sys/socket.h>
17791#include <net/if_dl.h>
17792
17793"
17794if test "x$ac_cv_header_net_route_h" = xyes; then :
17795  HAVE_PF_ROUTE=yes
17796
17797$as_echo "#define HAVE_PF_ROUTE /**/" >>confdefs.h
17798
17799
17800fi
17801
17802
17803
17804 if  test x"$HAVE_PF_ROUTE" = xyes ; then
17805  HAVE_PF_ROUTE_TRUE=
17806  HAVE_PF_ROUTE_FALSE='#'
17807else
17808  HAVE_PF_ROUTE_TRUE='#'
17809  HAVE_PF_ROUTE_FALSE=
17810fi
17811
17812
17813#
17814# Check for sys/filio.h; needed for FIONREAD on Solaris
17815#
17816ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "
17817
17818"
17819if test "x$ac_cv_header_sys_filio_h" = xyes; then :
17820  HAVE_SYS_FILIO_H=yes
17821
17822$as_echo "#define HAVE_SYS_FILIO_H /**/" >>confdefs.h
17823
17824
17825fi
17826
17827
17828
17829 if  test x"$HAVE_SYS_FILIO_H" = xyes ; then
17830  HAVE_SYS_FILIO_H_TRUE=
17831  HAVE_SYS_FILIO_H_FALSE='#'
17832else
17833  HAVE_SYS_FILIO_H_TRUE='#'
17834  HAVE_SYS_FILIO_H_FALSE=
17835fi
17836
17837
17838#
17839# Check for sys/sysctl.h; not present on Solaris
17840#
17841ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
17842#include <sys/types.h>
17843#include <sys/socket.h>
17844#include <sys/param.h>
17845
17846"
17847if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
17848  HAVE_SYS_SYSCTL=yes
17849
17850$as_echo "#define HAVE_SYS_SYSCTL_H /**/" >>confdefs.h
17851
17852
17853fi
17854
17855
17856
17857 if  test x"$HAVE_SYS_SYSCTL_H" = xyes ; then
17858  HAVE_SYS_SYSCTL_H_TRUE=
17859  HAVE_SYS_SYSCTL_H_FALSE='#'
17860else
17861  HAVE_SYS_SYSCTL_H_TRUE='#'
17862  HAVE_SYS_SYSCTL_H_FALSE=
17863fi
17864
17865
17866#
17867# Check for lifconf struct; only present on Solaris
17868#
17869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifconf" >&5
17870$as_echo_n "checking for struct lifconf... " >&6; }
17871if ${avahi_cv_has_struct_lifconf+:} false; then :
17872  $as_echo_n "(cached) " >&6
17873else
17874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17875/* end confdefs.h.  */
17876#include <sys/socket.h>
17877#include <net/if.h>
17878
17879int
17880main ()
17881{
17882sizeof (struct lifconf);
17883  ;
17884  return 0;
17885}
17886_ACEOF
17887if ac_fn_c_try_compile "$LINENO"; then :
17888  avahi_cv_has_struct_lifconf=yes
17889else
17890  avahi_cv_has_struct_lifconf=no
17891fi
17892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17893fi
17894
17895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $avahi_cv_has_struct_lifconf" >&5
17896$as_echo "$avahi_cv_has_struct_lifconf" >&6; }
17897if test $avahi_cv_has_struct_lifconf = yes; then
17898
17899$as_echo "#define HAVE_STRUCT_LIFCONF 1" >>confdefs.h
17900
17901fi
17902
17903#
17904# Check for struct ip_mreqn
17905#
17906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreqn" >&5
17907$as_echo_n "checking for struct ip_mreqn... " >&6; }
17908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17909/* end confdefs.h.  */
17910#include <netinet/in.h>
17911int
17912main ()
17913{
17914
17915	struct ip_mreqn mreq;
17916	mreq.imr_address.s_addr = 0;
17917
17918  ;
17919  return 0;
17920}
17921_ACEOF
17922if ac_fn_c_try_compile "$LINENO"; then :
17923
17924	# Yes, we have it...
17925	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17926$as_echo "yes" >&6; }
17927
17928$as_echo "#define HAVE_STRUCT_IP_MREQN /**/" >>confdefs.h
17929
17930
17931else
17932
17933	# We'll just have to try and use struct ip_mreq
17934	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17935$as_echo "no" >&6; }
17936	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreq" >&5
17937$as_echo_n "checking for struct ip_mreq... " >&6; }
17938	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939/* end confdefs.h.  */
17940#include <netinet/in.h>
17941int
17942main ()
17943{
17944
17945		struct ip_mreq mreq;
17946		mreq.imr_interface.s_addr = 0;
17947
17948  ;
17949  return 0;
17950}
17951_ACEOF
17952if ac_fn_c_try_compile "$LINENO"; then :
17953
17954		# Yes, we have it...
17955		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17956$as_echo "yes" >&6; }
17957
17958$as_echo "#define HAVE_STRUCT_IP_MREQ /**/" >>confdefs.h
17959
17960
17961else
17962
17963		# No multicast support
17964			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17965$as_echo "no" >&6; }
17966
17967fi
17968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17969
17970fi
17971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17972
17973#
17974# Detecting the linux distribution for specific things like init scripts.
17975#
17976
17977# Check whether --with-distro was given.
17978if test "${with_distro+set}" = set; then :
17979  withval=$with_distro;
17980fi
17981
17982if test "z$with_distro" = "z"; then
17983    if test "$cross_compiling" = yes; then
17984        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Target distribution cannot be reliably detected when cross-compiling. You should specify it with --with-distro (see $0 --help for recognized distros)" >&5
17985$as_echo "$as_me: WARNING: Target distribution cannot be reliably detected when cross-compiling. You should specify it with --with-distro (see $0 --help for recognized distros)" >&2;}
17986    else
17987        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/lfs-release" >&5
17988$as_echo_n "checking for /etc/lfs-release... " >&6; }
17989if ${ac_cv_file__etc_lfs_release+:} false; then :
17990  $as_echo_n "(cached) " >&6
17991else
17992  test "$cross_compiling" = yes &&
17993  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17994if test -r "/etc/lfs-release"; then
17995  ac_cv_file__etc_lfs_release=yes
17996else
17997  ac_cv_file__etc_lfs_release=no
17998fi
17999fi
18000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_lfs_release" >&5
18001$as_echo "$ac_cv_file__etc_lfs_release" >&6; }
18002if test "x$ac_cv_file__etc_lfs_release" = xyes; then :
18003  with_distro="lfs"
18004fi
18005
18006        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/SuSE-release" >&5
18007$as_echo_n "checking for /etc/SuSE-release... " >&6; }
18008if ${ac_cv_file__etc_SuSE_release+:} false; then :
18009  $as_echo_n "(cached) " >&6
18010else
18011  test "$cross_compiling" = yes &&
18012  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18013if test -r "/etc/SuSE-release"; then
18014  ac_cv_file__etc_SuSE_release=yes
18015else
18016  ac_cv_file__etc_SuSE_release=no
18017fi
18018fi
18019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_SuSE_release" >&5
18020$as_echo "$ac_cv_file__etc_SuSE_release" >&6; }
18021if test "x$ac_cv_file__etc_SuSE_release" = xyes; then :
18022  with_distro="suse"
18023fi
18024
18025        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/gentoo-release" >&5
18026$as_echo_n "checking for /etc/gentoo-release... " >&6; }
18027if ${ac_cv_file__etc_gentoo_release+:} false; then :
18028  $as_echo_n "(cached) " >&6
18029else
18030  test "$cross_compiling" = yes &&
18031  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18032if test -r "/etc/gentoo-release"; then
18033  ac_cv_file__etc_gentoo_release=yes
18034else
18035  ac_cv_file__etc_gentoo_release=no
18036fi
18037fi
18038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_gentoo_release" >&5
18039$as_echo "$ac_cv_file__etc_gentoo_release" >&6; }
18040if test "x$ac_cv_file__etc_gentoo_release" = xyes; then :
18041  with_distro="gentoo"
18042fi
18043
18044        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/arch-release" >&5
18045$as_echo_n "checking for /etc/arch-release... " >&6; }
18046if ${ac_cv_file__etc_arch_release+:} false; then :
18047  $as_echo_n "(cached) " >&6
18048else
18049  test "$cross_compiling" = yes &&
18050  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18051if test -r "/etc/arch-release"; then
18052  ac_cv_file__etc_arch_release=yes
18053else
18054  ac_cv_file__etc_arch_release=no
18055fi
18056fi
18057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_arch_release" >&5
18058$as_echo "$ac_cv_file__etc_arch_release" >&6; }
18059if test "x$ac_cv_file__etc_arch_release" = xyes; then :
18060  with_distro="archlinux"
18061fi
18062
18063        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/debian_version" >&5
18064$as_echo_n "checking for /etc/debian_version... " >&6; }
18065if ${ac_cv_file__etc_debian_version+:} false; then :
18066  $as_echo_n "(cached) " >&6
18067else
18068  test "$cross_compiling" = yes &&
18069  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18070if test -r "/etc/debian_version"; then
18071  ac_cv_file__etc_debian_version=yes
18072else
18073  ac_cv_file__etc_debian_version=no
18074fi
18075fi
18076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_debian_version" >&5
18077$as_echo "$ac_cv_file__etc_debian_version" >&6; }
18078if test "x$ac_cv_file__etc_debian_version" = xyes; then :
18079  with_distro="debian"
18080fi
18081
18082        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/redhat-release" >&5
18083$as_echo_n "checking for /etc/redhat-release... " >&6; }
18084if ${ac_cv_file__etc_redhat_release+:} false; then :
18085  $as_echo_n "(cached) " >&6
18086else
18087  test "$cross_compiling" = yes &&
18088  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18089if test -r "/etc/redhat-release"; then
18090  ac_cv_file__etc_redhat_release=yes
18091else
18092  ac_cv_file__etc_redhat_release=no
18093fi
18094fi
18095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_redhat_release" >&5
18096$as_echo "$ac_cv_file__etc_redhat_release" >&6; }
18097if test "x$ac_cv_file__etc_redhat_release" = xyes; then :
18098  with_distro="fedora"
18099fi
18100
18101        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/mandriva-release" >&5
18102$as_echo_n "checking for /etc/mandriva-release... " >&6; }
18103if ${ac_cv_file__etc_mandriva_release+:} false; then :
18104  $as_echo_n "(cached) " >&6
18105else
18106  test "$cross_compiling" = yes &&
18107  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18108if test -r "/etc/mandriva-release"; then
18109  ac_cv_file__etc_mandriva_release=yes
18110else
18111  ac_cv_file__etc_mandriva_release=no
18112fi
18113fi
18114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_mandriva_release" >&5
18115$as_echo "$ac_cv_file__etc_mandriva_release" >&6; }
18116if test "x$ac_cv_file__etc_mandriva_release" = xyes; then :
18117  with_distro="mandriva"
18118fi
18119
18120        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/slackware-version" >&5
18121$as_echo_n "checking for /etc/slackware-version... " >&6; }
18122if ${ac_cv_file__etc_slackware_version+:} false; then :
18123  $as_echo_n "(cached) " >&6
18124else
18125  test "$cross_compiling" = yes &&
18126  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18127if test -r "/etc/slackware-version"; then
18128  ac_cv_file__etc_slackware_version=yes
18129else
18130  ac_cv_file__etc_slackware_version=no
18131fi
18132fi
18133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_slackware_version" >&5
18134$as_echo "$ac_cv_file__etc_slackware_version" >&6; }
18135if test "x$ac_cv_file__etc_slackware_version" = xyes; then :
18136  with_distro="slackware"
18137fi
18138
18139    fi
18140    if test "z$with_distro" = "z"; then
18141        with_distro=`uname -s`
18142    fi
18143fi
18144with_distro=`echo ${with_distro} | tr '[:upper:]' '[:lower:]' `
18145
18146case $with_distro in
18147    lfs|debian|gentoo|archlinux|suse|fedora|mandriva|darwin|freebsd|slackware|none)
18148     ;;
18149    netbsd)
18150     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your distribution (${with_distro}) is supported but no init script exist yet! (patches welcome)" >&5
18151$as_echo "$as_me: WARNING: Your distribution (${with_distro}) is supported but no init script exist yet! (patches welcome)" >&2;}
18152     ;;
18153    linux)
18154     as_fn_error $? "Linux distribution autodetection failed, you must specify the distribution to target using --with-distro=DISTRO, set DISTRO to none if your distribution is not supported." "$LINENO" 5
18155     ;;
18156    *)
18157     as_fn_error $? "Your distribution (${with_distro}) is not yet supported, init scripts and D-Bus configuration will not be installed! (patches welcome), you can specify --with-distro=none to skip this check" "$LINENO" 5
18158     ;;
18159esac
18160
18161 if test x"$with_distro" = xlfs; then
18162  TARGET_LFS_TRUE=
18163  TARGET_LFS_FALSE='#'
18164else
18165  TARGET_LFS_TRUE='#'
18166  TARGET_LFS_FALSE=
18167fi
18168
18169 if test x"$with_distro" = xsuse; then
18170  TARGET_SUSE_TRUE=
18171  TARGET_SUSE_FALSE='#'
18172else
18173  TARGET_SUSE_TRUE='#'
18174  TARGET_SUSE_FALSE=
18175fi
18176
18177 if test x"$with_distro" = xgentoo; then
18178  TARGET_GENTOO_TRUE=
18179  TARGET_GENTOO_FALSE='#'
18180else
18181  TARGET_GENTOO_TRUE='#'
18182  TARGET_GENTOO_FALSE=
18183fi
18184
18185 if test x"$with_distro" = xdebian; then
18186  TARGET_DEBIAN_TRUE=
18187  TARGET_DEBIAN_FALSE='#'
18188else
18189  TARGET_DEBIAN_TRUE='#'
18190  TARGET_DEBIAN_FALSE=
18191fi
18192
18193 if test x"$with_distro" = xarchlinux; then
18194  TARGET_ARCHLINUX_TRUE=
18195  TARGET_ARCHLINUX_FALSE='#'
18196else
18197  TARGET_ARCHLINUX_TRUE='#'
18198  TARGET_ARCHLINUX_FALSE=
18199fi
18200
18201 if test x"$with_distro" = xfedora; then
18202  TARGET_FEDORA_TRUE=
18203  TARGET_FEDORA_FALSE='#'
18204else
18205  TARGET_FEDORA_TRUE='#'
18206  TARGET_FEDORA_FALSE=
18207fi
18208
18209 if test x"$with_distro" = xmandriva; then
18210  TARGET_MANDRIVA_TRUE=
18211  TARGET_MANDRIVA_FALSE='#'
18212else
18213  TARGET_MANDRIVA_TRUE='#'
18214  TARGET_MANDRIVA_FALSE=
18215fi
18216
18217 if test x"$with_distro" = xdarwin; then
18218  TARGET_DARWIN_TRUE=
18219  TARGET_DARWIN_FALSE='#'
18220else
18221  TARGET_DARWIN_TRUE='#'
18222  TARGET_DARWIN_FALSE=
18223fi
18224
18225 if test x"$with_distro" = xnetbsd; then
18226  TARGET_NETBSD_TRUE=
18227  TARGET_NETBSD_FALSE='#'
18228else
18229  TARGET_NETBSD_TRUE='#'
18230  TARGET_NETBSD_FALSE=
18231fi
18232
18233 if test x"$with_distro" = xfreebsd; then
18234  TARGET_FREEBSD_TRUE=
18235  TARGET_FREEBSD_FALSE='#'
18236else
18237  TARGET_FREEBSD_TRUE='#'
18238  TARGET_FREEBSD_FALSE=
18239fi
18240
18241 if test x"$with_distro" = xslackware; then
18242  TARGET_SLACKWARE_TRUE=
18243  TARGET_SLACKWARE_FALSE='#'
18244else
18245  TARGET_SLACKWARE_TRUE='#'
18246  TARGET_SLACKWARE_FALSE=
18247fi
18248
18249
18250test_gcc_flag() {
18251    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18252/* end confdefs.h.  */
18253int main() {}
18254_ACEOF
18255    $CC -c conftest.c $CFLAGS $@ > /dev/null 2> /dev/null
18256    ret=$?
18257    rm -f conftest.o
18258    return $ret
18259}
18260
18261# If using GCC specify some additional parameters
18262if test "x$GCC" = "xyes" ; then
18263
18264    DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -fdiagnostics-show-option -Wno-cast-qual -fno-strict-aliasing"
18265
18266    if test "x$HAVE_NETLINK" = "xyes" ; then
18267        # Test whether rtnetlink.h can be included when compiled with -std=c99
18268        # some distributions (e.g. archlinux) have broken headers that dont
18269        # define __u64 with -std=c99
18270        { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking whether rtnetlink.h can be included with -std=c99" >&5
18271$as_echo_n "checking checking whether rtnetlink.h can be included with -std=c99... " >&6; }
18272        OLDCFLAGS="$CFLAGS"
18273        CFLAGS="-std=c99"
18274        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18275/* end confdefs.h.  */
18276#include <linux/rtnetlink.h>
18277int
18278main ()
18279{
18280
18281  ;
18282  return 0;
18283}
18284_ACEOF
18285if ac_fn_c_try_compile "$LINENO"; then :
18286  use_stdc99=yes
18287else
18288  use_stdc99=no
18289fi
18290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18291
18292        if test x"$use_stdc99" = xyes; then
18293            DESIRED_FLAGS="-std=c99 $DESIRED_FLAGS"
18294            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18295$as_echo "yes" >&6; }
18296        else
18297            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18298$as_echo "no" >&6; }
18299        fi
18300
18301        CFLAGS="$OLDCFLAGS"
18302    else
18303        DESIRED_FLAGS="-std=c99 $DESIRED_FLAGS"
18304    fi
18305
18306    for flag in $DESIRED_FLAGS ; do
18307        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $flag" >&5
18308$as_echo_n "checking whether $CC accepts $flag... " >&6; }
18309        if test_gcc_flag $flag ; then
18310           CFLAGS="$CFLAGS $flag"
18311           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18312$as_echo "yes" >&6; }
18313        else
18314           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18315$as_echo "no" >&6; }
18316        fi
18317    done
18318fi
18319
18320# Checks for header files.
18321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18322$as_echo_n "checking for ANSI C header files... " >&6; }
18323if ${ac_cv_header_stdc+:} false; then :
18324  $as_echo_n "(cached) " >&6
18325else
18326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18327/* end confdefs.h.  */
18328#include <stdlib.h>
18329#include <stdarg.h>
18330#include <string.h>
18331#include <float.h>
18332
18333int
18334main ()
18335{
18336
18337  ;
18338  return 0;
18339}
18340_ACEOF
18341if ac_fn_c_try_compile "$LINENO"; then :
18342  ac_cv_header_stdc=yes
18343else
18344  ac_cv_header_stdc=no
18345fi
18346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18347
18348if test $ac_cv_header_stdc = yes; then
18349  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18351/* end confdefs.h.  */
18352#include <string.h>
18353
18354_ACEOF
18355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18356  $EGREP "memchr" >/dev/null 2>&1; then :
18357
18358else
18359  ac_cv_header_stdc=no
18360fi
18361rm -f conftest*
18362
18363fi
18364
18365if test $ac_cv_header_stdc = yes; then
18366  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368/* end confdefs.h.  */
18369#include <stdlib.h>
18370
18371_ACEOF
18372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18373  $EGREP "free" >/dev/null 2>&1; then :
18374
18375else
18376  ac_cv_header_stdc=no
18377fi
18378rm -f conftest*
18379
18380fi
18381
18382if test $ac_cv_header_stdc = yes; then
18383  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18384  if test "$cross_compiling" = yes; then :
18385  :
18386else
18387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18388/* end confdefs.h.  */
18389#include <ctype.h>
18390#include <stdlib.h>
18391#if ((' ' & 0x0FF) == 0x020)
18392# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18393# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18394#else
18395# define ISLOWER(c) \
18396		   (('a' <= (c) && (c) <= 'i') \
18397		     || ('j' <= (c) && (c) <= 'r') \
18398		     || ('s' <= (c) && (c) <= 'z'))
18399# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18400#endif
18401
18402#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18403int
18404main ()
18405{
18406  int i;
18407  for (i = 0; i < 256; i++)
18408    if (XOR (islower (i), ISLOWER (i))
18409	|| toupper (i) != TOUPPER (i))
18410      return 2;
18411  return 0;
18412}
18413_ACEOF
18414if ac_fn_c_try_run "$LINENO"; then :
18415
18416else
18417  ac_cv_header_stdc=no
18418fi
18419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18420  conftest.$ac_objext conftest.beam conftest.$ac_ext
18421fi
18422
18423fi
18424fi
18425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18426$as_echo "$ac_cv_header_stdc" >&6; }
18427if test $ac_cv_header_stdc = yes; then
18428
18429$as_echo "#define STDC_HEADERS 1" >>confdefs.h
18430
18431fi
18432
18433for ac_header in arpa/inet.h fcntl.h inttypes.h limits.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h netdb.h syslog.h
18434do :
18435  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18436ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18437if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18438  cat >>confdefs.h <<_ACEOF
18439#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18440_ACEOF
18441
18442fi
18443
18444done
18445
18446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18447$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18448if ${ac_cv_header_stdbool_h+:} false; then :
18449  $as_echo_n "(cached) " >&6
18450else
18451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18452/* end confdefs.h.  */
18453
18454             #include <stdbool.h>
18455             #ifndef bool
18456              "error: bool is not defined"
18457             #endif
18458             #ifndef false
18459              "error: false is not defined"
18460             #endif
18461             #if false
18462              "error: false is not 0"
18463             #endif
18464             #ifndef true
18465              "error: true is not defined"
18466             #endif
18467             #if true != 1
18468              "error: true is not 1"
18469             #endif
18470             #ifndef __bool_true_false_are_defined
18471              "error: __bool_true_false_are_defined is not defined"
18472             #endif
18473
18474             struct s { _Bool s: 1; _Bool t; } s;
18475
18476             char a[true == 1 ? 1 : -1];
18477             char b[false == 0 ? 1 : -1];
18478             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18479             char d[(bool) 0.5 == true ? 1 : -1];
18480             /* See body of main program for 'e'.  */
18481             char f[(_Bool) 0.0 == false ? 1 : -1];
18482             char g[true];
18483             char h[sizeof (_Bool)];
18484             char i[sizeof s.t];
18485             enum { j = false, k = true, l = false * true, m = true * 256 };
18486             /* The following fails for
18487                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18488             _Bool n[m];
18489             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18490             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18491             /* Catch a bug in an HP-UX C compiler.  See
18492                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18493                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18494              */
18495             _Bool q = true;
18496             _Bool *pq = &q;
18497
18498int
18499main ()
18500{
18501
18502             bool e = &s;
18503             *pq |= q;
18504             *pq |= ! q;
18505             /* Refer to every declared value, to avoid compiler optimizations.  */
18506             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18507                     + !m + !n + !o + !p + !q + !pq);
18508
18509  ;
18510  return 0;
18511}
18512_ACEOF
18513if ac_fn_c_try_compile "$LINENO"; then :
18514  ac_cv_header_stdbool_h=yes
18515else
18516  ac_cv_header_stdbool_h=no
18517fi
18518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18519fi
18520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18521$as_echo "$ac_cv_header_stdbool_h" >&6; }
18522   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18523if test "x$ac_cv_type__Bool" = xyes; then :
18524
18525cat >>confdefs.h <<_ACEOF
18526#define HAVE__BOOL 1
18527_ACEOF
18528
18529
18530fi
18531
18532
18533if test $ac_cv_header_stdbool_h = yes; then
18534
18535$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
18536
18537fi
18538
18539
18540# Checks for typedefs, structures, and compiler characteristics.
18541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18542$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18543if ${ac_cv_c_const+:} false; then :
18544  $as_echo_n "(cached) " >&6
18545else
18546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18547/* end confdefs.h.  */
18548
18549int
18550main ()
18551{
18552
18553#ifndef __cplusplus
18554  /* Ultrix mips cc rejects this sort of thing.  */
18555  typedef int charset[2];
18556  const charset cs = { 0, 0 };
18557  /* SunOS 4.1.1 cc rejects this.  */
18558  char const *const *pcpcc;
18559  char **ppc;
18560  /* NEC SVR4.0.2 mips cc rejects this.  */
18561  struct point {int x, y;};
18562  static struct point const zero = {0,0};
18563  /* AIX XL C 1.02.0.0 rejects this.
18564     It does not let you subtract one const X* pointer from another in
18565     an arm of an if-expression whose if-part is not a constant
18566     expression */
18567  const char *g = "string";
18568  pcpcc = &g + (g ? g-g : 0);
18569  /* HPUX 7.0 cc rejects these. */
18570  ++pcpcc;
18571  ppc = (char**) pcpcc;
18572  pcpcc = (char const *const *) ppc;
18573  { /* SCO 3.2v4 cc rejects this sort of thing.  */
18574    char tx;
18575    char *t = &tx;
18576    char const *s = 0 ? (char *) 0 : (char const *) 0;
18577
18578    *t++ = 0;
18579    if (s) return 0;
18580  }
18581  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18582    int x[] = {25, 17};
18583    const int *foo = &x[0];
18584    ++foo;
18585  }
18586  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18587    typedef const int *iptr;
18588    iptr p = 0;
18589    ++p;
18590  }
18591  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
18592       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18593    struct s { int j; const int *ap[3]; } bx;
18594    struct s *b = &bx; b->j = 5;
18595  }
18596  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18597    const int foo = 10;
18598    if (!foo) return 0;
18599  }
18600  return !cs[0] && !zero.x;
18601#endif
18602
18603  ;
18604  return 0;
18605}
18606_ACEOF
18607if ac_fn_c_try_compile "$LINENO"; then :
18608  ac_cv_c_const=yes
18609else
18610  ac_cv_c_const=no
18611fi
18612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18613fi
18614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18615$as_echo "$ac_cv_c_const" >&6; }
18616if test $ac_cv_c_const = no; then
18617
18618$as_echo "#define const /**/" >>confdefs.h
18619
18620fi
18621
18622ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18623if test "x$ac_cv_type_size_t" = xyes; then :
18624
18625else
18626
18627cat >>confdefs.h <<_ACEOF
18628#define size_t unsigned int
18629_ACEOF
18630
18631fi
18632
18633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18634$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18635if ${ac_cv_header_time+:} false; then :
18636  $as_echo_n "(cached) " >&6
18637else
18638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18639/* end confdefs.h.  */
18640#include <sys/types.h>
18641#include <sys/time.h>
18642#include <time.h>
18643
18644int
18645main ()
18646{
18647if ((struct tm *) 0)
18648return 0;
18649  ;
18650  return 0;
18651}
18652_ACEOF
18653if ac_fn_c_try_compile "$LINENO"; then :
18654  ac_cv_header_time=yes
18655else
18656  ac_cv_header_time=no
18657fi
18658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18659fi
18660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18661$as_echo "$ac_cv_header_time" >&6; }
18662if test $ac_cv_header_time = yes; then
18663
18664$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18665
18666fi
18667
18668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
18669$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
18670if ${ac_cv_header_sys_wait_h+:} false; then :
18671  $as_echo_n "(cached) " >&6
18672else
18673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18674/* end confdefs.h.  */
18675#include <sys/types.h>
18676#include <sys/wait.h>
18677#ifndef WEXITSTATUS
18678# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
18679#endif
18680#ifndef WIFEXITED
18681# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18682#endif
18683
18684int
18685main ()
18686{
18687  int s;
18688  wait (&s);
18689  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18690  ;
18691  return 0;
18692}
18693_ACEOF
18694if ac_fn_c_try_compile "$LINENO"; then :
18695  ac_cv_header_sys_wait_h=yes
18696else
18697  ac_cv_header_sys_wait_h=no
18698fi
18699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18700fi
18701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
18702$as_echo "$ac_cv_header_sys_wait_h" >&6; }
18703if test $ac_cv_header_sys_wait_h = yes; then
18704
18705$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
18706
18707fi
18708
18709
18710 # Solaris stuff
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
18712$as_echo_n "checking for library containing inet_ntop... " >&6; }
18713if ${ac_cv_search_inet_ntop+:} false; then :
18714  $as_echo_n "(cached) " >&6
18715else
18716  ac_func_search_save_LIBS=$LIBS
18717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18718/* end confdefs.h.  */
18719
18720/* Override any GCC internal prototype to avoid an error.
18721   Use char because int might match the return type of a GCC
18722   builtin and then its argument prototype would still apply.  */
18723#ifdef __cplusplus
18724extern "C"
18725#endif
18726char inet_ntop ();
18727int
18728main ()
18729{
18730return inet_ntop ();
18731  ;
18732  return 0;
18733}
18734_ACEOF
18735for ac_lib in '' nsl; do
18736  if test -z "$ac_lib"; then
18737    ac_res="none required"
18738  else
18739    ac_res=-l$ac_lib
18740    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18741  fi
18742  if ac_fn_c_try_link "$LINENO"; then :
18743  ac_cv_search_inet_ntop=$ac_res
18744fi
18745rm -f core conftest.err conftest.$ac_objext \
18746    conftest$ac_exeext
18747  if ${ac_cv_search_inet_ntop+:} false; then :
18748  break
18749fi
18750done
18751if ${ac_cv_search_inet_ntop+:} false; then :
18752
18753else
18754  ac_cv_search_inet_ntop=no
18755fi
18756rm conftest.$ac_ext
18757LIBS=$ac_func_search_save_LIBS
18758fi
18759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
18760$as_echo "$ac_cv_search_inet_ntop" >&6; }
18761ac_res=$ac_cv_search_inet_ntop
18762if test "$ac_res" != no; then :
18763  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18764
18765fi
18766
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing recv" >&5
18768$as_echo_n "checking for library containing recv... " >&6; }
18769if ${ac_cv_search_recv+:} false; then :
18770  $as_echo_n "(cached) " >&6
18771else
18772  ac_func_search_save_LIBS=$LIBS
18773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18774/* end confdefs.h.  */
18775
18776/* Override any GCC internal prototype to avoid an error.
18777   Use char because int might match the return type of a GCC
18778   builtin and then its argument prototype would still apply.  */
18779#ifdef __cplusplus
18780extern "C"
18781#endif
18782char recv ();
18783int
18784main ()
18785{
18786return recv ();
18787  ;
18788  return 0;
18789}
18790_ACEOF
18791for ac_lib in '' socket; do
18792  if test -z "$ac_lib"; then
18793    ac_res="none required"
18794  else
18795    ac_res=-l$ac_lib
18796    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18797  fi
18798  if ac_fn_c_try_link "$LINENO"; then :
18799  ac_cv_search_recv=$ac_res
18800fi
18801rm -f core conftest.err conftest.$ac_objext \
18802    conftest$ac_exeext
18803  if ${ac_cv_search_recv+:} false; then :
18804  break
18805fi
18806done
18807if ${ac_cv_search_recv+:} false; then :
18808
18809else
18810  ac_cv_search_recv=no
18811fi
18812rm conftest.$ac_ext
18813LIBS=$ac_func_search_save_LIBS
18814fi
18815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_recv" >&5
18816$as_echo "$ac_cv_search_recv" >&6; }
18817ac_res=$ac_cv_search_recv
18818if test "$ac_res" != no; then :
18819  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18820
18821fi
18822
18823 ac_fn_c_check_decl "$LINENO" "CMSG_SPACE" "ac_cv_have_decl_CMSG_SPACE" "#include <sys/socket.h>
18824"
18825if test "x$ac_cv_have_decl_CMSG_SPACE" = xyes; then :
18826
18827else
18828  CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
18829fi
18830
18831
18832# Checks for library functions.
18833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
18834$as_echo_n "checking for working memcmp... " >&6; }
18835if ${ac_cv_func_memcmp_working+:} false; then :
18836  $as_echo_n "(cached) " >&6
18837else
18838  if test "$cross_compiling" = yes; then :
18839  ac_cv_func_memcmp_working=no
18840else
18841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18842/* end confdefs.h.  */
18843$ac_includes_default
18844int
18845main ()
18846{
18847
18848  /* Some versions of memcmp are not 8-bit clean.  */
18849  char c0 = '\100', c1 = '\200', c2 = '\201';
18850  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
18851    return 1;
18852
18853  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
18854     or more and with at least one buffer not starting on a 4-byte boundary.
18855     William Lewis provided this test program.   */
18856  {
18857    char foo[21];
18858    char bar[21];
18859    int i;
18860    for (i = 0; i < 4; i++)
18861      {
18862	char *a = foo + i;
18863	char *b = bar + i;
18864	strcpy (a, "--------01111111");
18865	strcpy (b, "--------10000000");
18866	if (memcmp (a, b, 16) >= 0)
18867	  return 1;
18868      }
18869    return 0;
18870  }
18871
18872  ;
18873  return 0;
18874}
18875_ACEOF
18876if ac_fn_c_try_run "$LINENO"; then :
18877  ac_cv_func_memcmp_working=yes
18878else
18879  ac_cv_func_memcmp_working=no
18880fi
18881rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18882  conftest.$ac_objext conftest.beam conftest.$ac_ext
18883fi
18884
18885fi
18886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
18887$as_echo "$ac_cv_func_memcmp_working" >&6; }
18888test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
18889  *" memcmp.$ac_objext "* ) ;;
18890  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
18891 ;;
18892esac
18893
18894
18895for ac_header in sys/select.h sys/socket.h
18896do :
18897  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18898ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18899if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18900  cat >>confdefs.h <<_ACEOF
18901#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18902_ACEOF
18903
18904fi
18905
18906done
18907
18908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
18909$as_echo_n "checking types of arguments for select... " >&6; }
18910if ${ac_cv_func_select_args+:} false; then :
18911  $as_echo_n "(cached) " >&6
18912else
18913  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
18914 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
18915  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
18916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18917/* end confdefs.h.  */
18918$ac_includes_default
18919#ifdef HAVE_SYS_SELECT_H
18920# include <sys/select.h>
18921#endif
18922#ifdef HAVE_SYS_SOCKET_H
18923# include <sys/socket.h>
18924#endif
18925
18926int
18927main ()
18928{
18929extern int select ($ac_arg1,
18930					    $ac_arg234, $ac_arg234, $ac_arg234,
18931					    $ac_arg5);
18932  ;
18933  return 0;
18934}
18935_ACEOF
18936if ac_fn_c_try_compile "$LINENO"; then :
18937  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
18938fi
18939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18940  done
18941 done
18942done
18943# Provide a safe default value.
18944: "${ac_cv_func_select_args=int,int *,struct timeval *}"
18945
18946fi
18947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
18948$as_echo "$ac_cv_func_select_args" >&6; }
18949ac_save_IFS=$IFS; IFS=','
18950set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
18951IFS=$ac_save_IFS
18952shift
18953
18954cat >>confdefs.h <<_ACEOF
18955#define SELECT_TYPE_ARG1 $1
18956_ACEOF
18957
18958
18959cat >>confdefs.h <<_ACEOF
18960#define SELECT_TYPE_ARG234 ($2)
18961_ACEOF
18962
18963
18964cat >>confdefs.h <<_ACEOF
18965#define SELECT_TYPE_ARG5 ($3)
18966_ACEOF
18967
18968rm -f conftest*
18969
18970# avahi_malloc actually returns NULL for avahi_malloc(0), so it does not matter
18971# whether libc's malloc does too. (Same for realloc.)
18972#AC_FUNC_MALLOC
18973#AC_FUNC_REALLOC
18974for ac_func in gethostname memchr memmove memset mkdir select socket strchr strcspn strdup strerror strrchr strspn strstr uname setresuid setreuid setresgid setregid strcasecmp gettimeofday putenv strncasecmp strlcpy gethostbyname seteuid setegid setproctitle getprogname
18975do :
18976  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18977ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18978if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18979  cat >>confdefs.h <<_ACEOF
18980#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18981_ACEOF
18982
18983fi
18984done
18985
18986
18987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
18988$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18989if ${ac_cv_type_uid_t+:} false; then :
18990  $as_echo_n "(cached) " >&6
18991else
18992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18993/* end confdefs.h.  */
18994#include <sys/types.h>
18995
18996_ACEOF
18997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18998  $EGREP "uid_t" >/dev/null 2>&1; then :
18999  ac_cv_type_uid_t=yes
19000else
19001  ac_cv_type_uid_t=no
19002fi
19003rm -f conftest*
19004
19005fi
19006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
19007$as_echo "$ac_cv_type_uid_t" >&6; }
19008if test $ac_cv_type_uid_t = no; then
19009
19010$as_echo "#define uid_t int" >>confdefs.h
19011
19012
19013$as_echo "#define gid_t int" >>confdefs.h
19014
19015fi
19016
19017for ac_header in unistd.h
19018do :
19019  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
19020if test "x$ac_cv_header_unistd_h" = xyes; then :
19021  cat >>confdefs.h <<_ACEOF
19022#define HAVE_UNISTD_H 1
19023_ACEOF
19024
19025fi
19026
19027done
19028
19029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
19030$as_echo_n "checking for working chown... " >&6; }
19031if ${ac_cv_func_chown_works+:} false; then :
19032  $as_echo_n "(cached) " >&6
19033else
19034  if test "$cross_compiling" = yes; then :
19035  ac_cv_func_chown_works=no
19036else
19037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19038/* end confdefs.h.  */
19039$ac_includes_default
19040#include <fcntl.h>
19041
19042int
19043main ()
19044{
19045  char *f = "conftest.chown";
19046  struct stat before, after;
19047
19048  if (creat (f, 0600) < 0)
19049    return 1;
19050  if (stat (f, &before) < 0)
19051    return 1;
19052  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
19053    return 1;
19054  if (stat (f, &after) < 0)
19055    return 1;
19056  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
19057
19058  ;
19059  return 0;
19060}
19061_ACEOF
19062if ac_fn_c_try_run "$LINENO"; then :
19063  ac_cv_func_chown_works=yes
19064else
19065  ac_cv_func_chown_works=no
19066fi
19067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19068  conftest.$ac_objext conftest.beam conftest.$ac_ext
19069fi
19070
19071rm -f conftest.chown
19072
19073fi
19074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
19075$as_echo "$ac_cv_func_chown_works" >&6; }
19076if test $ac_cv_func_chown_works = yes; then
19077
19078$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
19079
19080fi
19081
19082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19083$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19084if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
19085  $as_echo_n "(cached) " >&6
19086else
19087  rm -f conftest.sym conftest.file
19088echo >conftest.file
19089if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19090  if test "$cross_compiling" = yes; then :
19091  ac_cv_func_lstat_dereferences_slashed_symlink=no
19092else
19093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19094/* end confdefs.h.  */
19095$ac_includes_default
19096int
19097main ()
19098{
19099struct stat sbuf;
19100     /* Linux will dereference the symlink and fail, as required by POSIX.
19101	That is better in the sense that it means we will not
19102	have to compile and use the lstat wrapper.  */
19103     return lstat ("conftest.sym/", &sbuf) == 0;
19104  ;
19105  return 0;
19106}
19107_ACEOF
19108if ac_fn_c_try_run "$LINENO"; then :
19109  ac_cv_func_lstat_dereferences_slashed_symlink=yes
19110else
19111  ac_cv_func_lstat_dereferences_slashed_symlink=no
19112fi
19113rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19114  conftest.$ac_objext conftest.beam conftest.$ac_ext
19115fi
19116
19117else
19118  # If the `ln -s' command failed, then we probably don't even
19119  # have an lstat function.
19120  ac_cv_func_lstat_dereferences_slashed_symlink=no
19121fi
19122rm -f conftest.sym conftest.file
19123
19124fi
19125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
19126$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19127
19128test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
19129
19130cat >>confdefs.h <<_ACEOF
19131#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19132_ACEOF
19133
19134
19135if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
19136  case " $LIBOBJS " in
19137  *" lstat.$ac_objext "* ) ;;
19138  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
19139 ;;
19140esac
19141
19142fi
19143
19144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
19145$as_echo_n "checking whether stat accepts an empty string... " >&6; }
19146if ${ac_cv_func_stat_empty_string_bug+:} false; then :
19147  $as_echo_n "(cached) " >&6
19148else
19149  if test "$cross_compiling" = yes; then :
19150  ac_cv_func_stat_empty_string_bug=yes
19151else
19152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19153/* end confdefs.h.  */
19154$ac_includes_default
19155int
19156main ()
19157{
19158struct stat sbuf;
19159  return stat ("", &sbuf) == 0;
19160  ;
19161  return 0;
19162}
19163_ACEOF
19164if ac_fn_c_try_run "$LINENO"; then :
19165  ac_cv_func_stat_empty_string_bug=no
19166else
19167  ac_cv_func_stat_empty_string_bug=yes
19168fi
19169rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19170  conftest.$ac_objext conftest.beam conftest.$ac_ext
19171fi
19172
19173fi
19174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
19175$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
19176if test $ac_cv_func_stat_empty_string_bug = yes; then
19177  case " $LIBOBJS " in
19178  *" stat.$ac_objext "* ) ;;
19179  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
19180 ;;
19181esac
19182
19183
19184cat >>confdefs.h <<_ACEOF
19185#define HAVE_STAT_EMPTY_STRING_BUG 1
19186_ACEOF
19187
19188fi
19189
19190ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19191if test "x$ac_cv_type_mode_t" = xyes; then :
19192
19193else
19194
19195cat >>confdefs.h <<_ACEOF
19196#define mode_t int
19197_ACEOF
19198
19199fi
19200
19201ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19202if test "x$ac_cv_type_pid_t" = xyes; then :
19203
19204else
19205
19206cat >>confdefs.h <<_ACEOF
19207#define pid_t int
19208_ACEOF
19209
19210fi
19211
19212
19213ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
19214if test "x$ac_cv_have_decl_environ" = xyes; then :
19215  ac_have_decl=1
19216else
19217  ac_have_decl=0
19218fi
19219
19220cat >>confdefs.h <<_ACEOF
19221#define HAVE_DECL_ENVIRON $ac_have_decl
19222_ACEOF
19223
19224
19225# check if gcc's -fvisibility is supported
19226
19227  save_CFLAGS="$CFLAGS"
19228  VISIBILITY_HIDDEN_CFLAGS=""
19229  OPTION=-fvisibility=hidden
19230
19231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc $OPTION support" >&5
19232$as_echo_n "checking for gcc $OPTION support... " >&6; }
19233
19234  CFLAGS="$CFLAGS $OPTION"
19235
19236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19237/* end confdefs.h.  */
19238
19239      int default_vis __attribute__ ((visibility("default")));
19240      int hidden_vis __attribute__ ((visibility("hidden")));
19241
19242int
19243main ()
19244{
19245
19246  ;
19247  return 0;
19248}
19249_ACEOF
19250if ac_fn_c_try_compile "$LINENO"; then :
19251  ac_visibility_supported=yes
19252else
19253  ac_visibility_supported=no
19254fi
19255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_visibility_supported" >&5
19257$as_echo "$ac_visibility_supported" >&6; }
19258
19259  if test x"$ac_visibility_supported" = xyes; then
19260
19261$as_echo "#define HAVE_GCC_VISIBILITY 1" >>confdefs.h
19262
19263    VISIBILITY_HIDDEN_CFLAGS="$OPTION -DHAVE_VISIBILITY_HIDDEN"
19264
19265$as_echo "#define HAVE_VISIBILITY_HIDDEN /**/" >>confdefs.h
19266
19267  else
19268
19269    :
19270  fi
19271
19272
19273
19274  CFLAGS="$save_CFLAGS"
19275
19276
19277enable_chroot=yes
19278for ac_header in sys/capability.h
19279do :
19280  ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
19281if test "x$ac_cv_header_sys_capability_h" = xyes; then :
19282  cat >>confdefs.h <<_ACEOF
19283#define HAVE_SYS_CAPABILITY_H 1
19284_ACEOF
19285
19286else
19287  enable_chroot=no
19288fi
19289
19290done
19291
19292for ac_header in sys/prctl.h
19293do :
19294  ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
19295if test "x$ac_cv_header_sys_prctl_h" = xyes; then :
19296  cat >>confdefs.h <<_ACEOF
19297#define HAVE_SYS_PRCTL_H 1
19298_ACEOF
19299
19300else
19301  enable_chroot=no
19302fi
19303
19304done
19305
19306for ac_func in chroot
19307do :
19308  ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
19309if test "x$ac_cv_func_chroot" = xyes; then :
19310  cat >>confdefs.h <<_ACEOF
19311#define HAVE_CHROOT 1
19312_ACEOF
19313
19314else
19315  enable_chroot=no
19316fi
19317done
19318
19319
19320 if test "x$enable_chroot" = "xyes"; then
19321  ENABLE_CHROOT_TRUE=
19322  ENABLE_CHROOT_FALSE='#'
19323else
19324  ENABLE_CHROOT_TRUE='#'
19325  ENABLE_CHROOT_FALSE=
19326fi
19327
19328
19329if test "x$enable_chroot" = "xyes" ; then
19330
19331$as_echo "#define ENABLE_CHROOT 1" >>confdefs.h
19332
19333fi
19334
19335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in " >&5
19336$as_echo_n "checking for dlopen in ... " >&6; }
19337if ${ac_cv_lib_dl_dlopen+:} false; then :
19338  $as_echo_n "(cached) " >&6
19339else
19340  ac_check_lib_save_LIBS=$LIBS
19341LIBS="  $LIBS"
19342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19343/* end confdefs.h.  */
19344
19345/* Override any GCC internal prototype to avoid an error.
19346   Use char because int might match the return type of a GCC
19347   builtin and then its argument prototype would still apply.  */
19348#ifdef __cplusplus
19349extern "C"
19350#endif
19351char dlopen ();
19352int
19353main ()
19354{
19355return dlopen ();
19356  ;
19357  return 0;
19358}
19359_ACEOF
19360if ac_fn_c_try_link "$LINENO"; then :
19361  ac_cv_lib_dl_dlopen=yes
19362else
19363  ac_cv_lib_dl_dlopen=no
19364fi
19365rm -f core conftest.err conftest.$ac_objext \
19366    conftest$ac_exeext conftest.$ac_ext
19367LIBS=$ac_check_lib_save_LIBS
19368fi
19369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19370$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19371if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19372   for ac_header in dlfcn.h
19373do :
19374  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
19375if test "x$ac_cv_header_dlfcn_h" = xyes; then :
19376  cat >>confdefs.h <<_ACEOF
19377#define HAVE_DLFCN_H 1
19378_ACEOF
19379 HAVE_DLOPEN=yes
19380else
19381  HAVE_DLOPEN=no
19382fi
19383
19384done
19385
19386else
19387  HAVE_DLOPEN=no
19388fi
19389
19390if test "x$HAVE_DLOPEN" = "xyes" ; then
19391
19392$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
19393
19394fi
19395 if test "x$HAVE_DLOPEN" = "xyes"; then
19396  HAVE_DLOPEN_TRUE=
19397  HAVE_DLOPEN_FALSE='#'
19398else
19399  HAVE_DLOPEN_TRUE='#'
19400  HAVE_DLOPEN_FALSE=
19401fi
19402
19403
19404have_inotify=no
19405for ac_header in sys/inotify.h
19406do :
19407  ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
19408if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
19409  cat >>confdefs.h <<_ACEOF
19410#define HAVE_SYS_INOTIFY_H 1
19411_ACEOF
19412 have_inotify=no
19413fi
19414
19415done
19416
19417
19418 if test "x$have_inotify" = "xyes"; then
19419  HAVE_INOTIFY_TRUE=
19420  HAVE_INOTIFY_FALSE='#'
19421else
19422  HAVE_INOTIFY_TRUE='#'
19423  HAVE_INOTIFY_FALSE=
19424fi
19425
19426
19427if test "x$have_inotify" = "xyes" ; then
19428
19429$as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
19430
19431fi
19432
19433have_kqueue=yes
19434for ac_func in kqueue
19435do :
19436  ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
19437if test "x$ac_cv_func_kqueue" = xyes; then :
19438  cat >>confdefs.h <<_ACEOF
19439#define HAVE_KQUEUE 1
19440_ACEOF
19441
19442else
19443  have_kqueue=no
19444fi
19445done
19446
19447
19448 if test "x$have_kqueue" = "xyes"; then
19449  HAVE_KQUEUE_TRUE=
19450  HAVE_KQUEUE_FALSE='#'
19451else
19452  HAVE_KQUEUE_TRUE='#'
19453  HAVE_KQUEUE_FALSE=
19454fi
19455
19456
19457if test "x$have_kqueue" = "xyes" ; then
19458
19459$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
19460
19461fi
19462
19463GETTEXT_PACKAGE=avahi
19464
19465
19466cat >>confdefs.h <<_ACEOF
19467#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
19468_ACEOF
19469
19470
19471
19472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19473$as_echo_n "checking whether NLS is requested... " >&6; }
19474    # Check whether --enable-nls was given.
19475if test "${enable_nls+set}" = set; then :
19476  enableval=$enable_nls; USE_NLS=$enableval
19477else
19478  USE_NLS=yes
19479fi
19480
19481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19482$as_echo "$USE_NLS" >&6; }
19483
19484
19485
19486
19487      GETTEXT_MACRO_VERSION=0.19
19488
19489
19490
19491
19492# Prepare PATH_SEPARATOR.
19493# The user is always right.
19494if test "${PATH_SEPARATOR+set}" != set; then
19495  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
19496  # contains only /bin. Note that ksh looks also at the FPATH variable,
19497  # so we have to set that as well for the test.
19498  PATH_SEPARATOR=:
19499  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19500    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19501           || PATH_SEPARATOR=';'
19502       }
19503fi
19504
19505# Find out how to test for executable files. Don't use a zero-byte file,
19506# as systems may use methods other than mode bits to determine executability.
19507cat >conf$$.file <<_ASEOF
19508#! /bin/sh
19509exit 0
19510_ASEOF
19511chmod +x conf$$.file
19512if test -x conf$$.file >/dev/null 2>&1; then
19513  ac_executable_p="test -x"
19514else
19515  ac_executable_p="test -f"
19516fi
19517rm -f conf$$.file
19518
19519# Extract the first word of "msgfmt", so it can be a program name with args.
19520set dummy msgfmt; ac_word=$2
19521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19522$as_echo_n "checking for $ac_word... " >&6; }
19523if ${ac_cv_path_MSGFMT+:} false; then :
19524  $as_echo_n "(cached) " >&6
19525else
19526  case "$MSGFMT" in
19527  [\\/]* | ?:[\\/]*)
19528    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19529    ;;
19530  *)
19531    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
19532    for ac_dir in $PATH; do
19533      IFS="$ac_save_IFS"
19534      test -z "$ac_dir" && ac_dir=.
19535      for ac_exec_ext in '' $ac_executable_extensions; do
19536        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
19537          echo "$as_me: trying $ac_dir/$ac_word..." >&5
19538          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
19539     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
19540            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
19541            break 2
19542          fi
19543        fi
19544      done
19545    done
19546    IFS="$ac_save_IFS"
19547  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
19548    ;;
19549esac
19550fi
19551MSGFMT="$ac_cv_path_MSGFMT"
19552if test "$MSGFMT" != ":"; then
19553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19554$as_echo "$MSGFMT" >&6; }
19555else
19556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19557$as_echo "no" >&6; }
19558fi
19559
19560  # Extract the first word of "gmsgfmt", so it can be a program name with args.
19561set dummy gmsgfmt; ac_word=$2
19562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19563$as_echo_n "checking for $ac_word... " >&6; }
19564if ${ac_cv_path_GMSGFMT+:} false; then :
19565  $as_echo_n "(cached) " >&6
19566else
19567  case $GMSGFMT in
19568  [\\/]* | ?:[\\/]*)
19569  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
19570  ;;
19571  *)
19572  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19573for as_dir in $PATH
19574do
19575  IFS=$as_save_IFS
19576  test -z "$as_dir" && as_dir=.
19577    for ac_exec_ext in '' $ac_executable_extensions; do
19578  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19579    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
19580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19581    break 2
19582  fi
19583done
19584  done
19585IFS=$as_save_IFS
19586
19587  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
19588  ;;
19589esac
19590fi
19591GMSGFMT=$ac_cv_path_GMSGFMT
19592if test -n "$GMSGFMT"; then
19593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
19594$as_echo "$GMSGFMT" >&6; }
19595else
19596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19597$as_echo "no" >&6; }
19598fi
19599
19600
19601
19602    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
19603    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
19604    *) MSGFMT_015=$MSGFMT ;;
19605  esac
19606
19607  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
19608    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
19609    *) GMSGFMT_015=$GMSGFMT ;;
19610  esac
19611
19612
19613
19614# Prepare PATH_SEPARATOR.
19615# The user is always right.
19616if test "${PATH_SEPARATOR+set}" != set; then
19617  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
19618  # contains only /bin. Note that ksh looks also at the FPATH variable,
19619  # so we have to set that as well for the test.
19620  PATH_SEPARATOR=:
19621  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19622    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19623           || PATH_SEPARATOR=';'
19624       }
19625fi
19626
19627# Find out how to test for executable files. Don't use a zero-byte file,
19628# as systems may use methods other than mode bits to determine executability.
19629cat >conf$$.file <<_ASEOF
19630#! /bin/sh
19631exit 0
19632_ASEOF
19633chmod +x conf$$.file
19634if test -x conf$$.file >/dev/null 2>&1; then
19635  ac_executable_p="test -x"
19636else
19637  ac_executable_p="test -f"
19638fi
19639rm -f conf$$.file
19640
19641# Extract the first word of "xgettext", so it can be a program name with args.
19642set dummy xgettext; ac_word=$2
19643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19644$as_echo_n "checking for $ac_word... " >&6; }
19645if ${ac_cv_path_XGETTEXT+:} false; then :
19646  $as_echo_n "(cached) " >&6
19647else
19648  case "$XGETTEXT" in
19649  [\\/]* | ?:[\\/]*)
19650    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19651    ;;
19652  *)
19653    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
19654    for ac_dir in $PATH; do
19655      IFS="$ac_save_IFS"
19656      test -z "$ac_dir" && ac_dir=.
19657      for ac_exec_ext in '' $ac_executable_extensions; do
19658        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
19659          echo "$as_me: trying $ac_dir/$ac_word..." >&5
19660          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
19661     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
19662            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
19663            break 2
19664          fi
19665        fi
19666      done
19667    done
19668    IFS="$ac_save_IFS"
19669  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
19670    ;;
19671esac
19672fi
19673XGETTEXT="$ac_cv_path_XGETTEXT"
19674if test "$XGETTEXT" != ":"; then
19675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19676$as_echo "$XGETTEXT" >&6; }
19677else
19678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19679$as_echo "no" >&6; }
19680fi
19681
19682    rm -f messages.po
19683
19684    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
19685    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
19686    *) XGETTEXT_015=$XGETTEXT ;;
19687  esac
19688
19689
19690
19691# Prepare PATH_SEPARATOR.
19692# The user is always right.
19693if test "${PATH_SEPARATOR+set}" != set; then
19694  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
19695  # contains only /bin. Note that ksh looks also at the FPATH variable,
19696  # so we have to set that as well for the test.
19697  PATH_SEPARATOR=:
19698  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19699    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19700           || PATH_SEPARATOR=';'
19701       }
19702fi
19703
19704# Find out how to test for executable files. Don't use a zero-byte file,
19705# as systems may use methods other than mode bits to determine executability.
19706cat >conf$$.file <<_ASEOF
19707#! /bin/sh
19708exit 0
19709_ASEOF
19710chmod +x conf$$.file
19711if test -x conf$$.file >/dev/null 2>&1; then
19712  ac_executable_p="test -x"
19713else
19714  ac_executable_p="test -f"
19715fi
19716rm -f conf$$.file
19717
19718# Extract the first word of "msgmerge", so it can be a program name with args.
19719set dummy msgmerge; ac_word=$2
19720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19721$as_echo_n "checking for $ac_word... " >&6; }
19722if ${ac_cv_path_MSGMERGE+:} false; then :
19723  $as_echo_n "(cached) " >&6
19724else
19725  case "$MSGMERGE" in
19726  [\\/]* | ?:[\\/]*)
19727    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
19728    ;;
19729  *)
19730    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
19731    for ac_dir in $PATH; do
19732      IFS="$ac_save_IFS"
19733      test -z "$ac_dir" && ac_dir=.
19734      for ac_exec_ext in '' $ac_executable_extensions; do
19735        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
19736          echo "$as_me: trying $ac_dir/$ac_word..." >&5
19737          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
19738            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
19739            break 2
19740          fi
19741        fi
19742      done
19743    done
19744    IFS="$ac_save_IFS"
19745  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
19746    ;;
19747esac
19748fi
19749MSGMERGE="$ac_cv_path_MSGMERGE"
19750if test "$MSGMERGE" != ":"; then
19751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
19752$as_echo "$MSGMERGE" >&6; }
19753else
19754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19755$as_echo "no" >&6; }
19756fi
19757
19758
19759        test -n "$localedir" || localedir='${datadir}/locale'
19760
19761
19762    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
19763
19764
19765  ac_config_commands="$ac_config_commands po-directories"
19766
19767
19768
19769      if test "X$prefix" = "XNONE"; then
19770    acl_final_prefix="$ac_default_prefix"
19771  else
19772    acl_final_prefix="$prefix"
19773  fi
19774  if test "X$exec_prefix" = "XNONE"; then
19775    acl_final_exec_prefix='${prefix}'
19776  else
19777    acl_final_exec_prefix="$exec_prefix"
19778  fi
19779  acl_save_prefix="$prefix"
19780  prefix="$acl_final_prefix"
19781  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
19782  prefix="$acl_save_prefix"
19783
19784
19785
19786# Check whether --with-gnu-ld was given.
19787if test "${with_gnu_ld+set}" = set; then :
19788  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19789else
19790  with_gnu_ld=no
19791fi
19792
19793# Prepare PATH_SEPARATOR.
19794# The user is always right.
19795if test "${PATH_SEPARATOR+set}" != set; then
19796  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
19797  # contains only /bin. Note that ksh looks also at the FPATH variable,
19798  # so we have to set that as well for the test.
19799  PATH_SEPARATOR=:
19800  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19801    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19802           || PATH_SEPARATOR=';'
19803       }
19804fi
19805
19806ac_prog=ld
19807if test "$GCC" = yes; then
19808  # Check if gcc -print-prog-name=ld gives a path.
19809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19810$as_echo_n "checking for ld used by $CC... " >&6; }
19811  case $host in
19812  *-*-mingw*)
19813    # gcc leaves a trailing carriage return which upsets mingw
19814    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19815  *)
19816    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19817  esac
19818  case $ac_prog in
19819    # Accept absolute paths.
19820    [\\/]* | ?:[\\/]*)
19821      re_direlt='/[^/][^/]*/\.\./'
19822      # Canonicalize the pathname of ld
19823      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
19824      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
19825        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
19826      done
19827      test -z "$LD" && LD="$ac_prog"
19828      ;;
19829  "")
19830    # If it fails, then pretend we aren't using GCC.
19831    ac_prog=ld
19832    ;;
19833  *)
19834    # If it is relative, then search for the first ld in PATH.
19835    with_gnu_ld=unknown
19836    ;;
19837  esac
19838elif test "$with_gnu_ld" = yes; then
19839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19840$as_echo_n "checking for GNU ld... " >&6; }
19841else
19842  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19843$as_echo_n "checking for non-GNU ld... " >&6; }
19844fi
19845if ${acl_cv_path_LD+:} false; then :
19846  $as_echo_n "(cached) " >&6
19847else
19848  if test -z "$LD"; then
19849  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19850  for ac_dir in $PATH; do
19851    IFS="$acl_save_ifs"
19852    test -z "$ac_dir" && ac_dir=.
19853    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19854      acl_cv_path_LD="$ac_dir/$ac_prog"
19855      # Check to see if the program is GNU ld.  I'd rather use --version,
19856      # but apparently some variants of GNU ld only accept -v.
19857      # Break only if it was the GNU/non-GNU ld that we prefer.
19858      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
19859      *GNU* | *'with BFD'*)
19860        test "$with_gnu_ld" != no && break
19861        ;;
19862      *)
19863        test "$with_gnu_ld" != yes && break
19864        ;;
19865      esac
19866    fi
19867  done
19868  IFS="$acl_save_ifs"
19869else
19870  acl_cv_path_LD="$LD" # Let the user override the test with a path.
19871fi
19872fi
19873
19874LD="$acl_cv_path_LD"
19875if test -n "$LD"; then
19876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19877$as_echo "$LD" >&6; }
19878else
19879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19880$as_echo "no" >&6; }
19881fi
19882test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19884$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19885if ${acl_cv_prog_gnu_ld+:} false; then :
19886  $as_echo_n "(cached) " >&6
19887else
19888  # I'd rather use --version here, but apparently some GNU lds only accept -v.
19889case `$LD -v 2>&1 </dev/null` in
19890*GNU* | *'with BFD'*)
19891  acl_cv_prog_gnu_ld=yes
19892  ;;
19893*)
19894  acl_cv_prog_gnu_ld=no
19895  ;;
19896esac
19897fi
19898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
19899$as_echo "$acl_cv_prog_gnu_ld" >&6; }
19900with_gnu_ld=$acl_cv_prog_gnu_ld
19901
19902
19903
19904
19905                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
19906$as_echo_n "checking for shared library run path origin... " >&6; }
19907if ${acl_cv_rpath+:} false; then :
19908  $as_echo_n "(cached) " >&6
19909else
19910
19911    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
19912    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19913    . ./conftest.sh
19914    rm -f ./conftest.sh
19915    acl_cv_rpath=done
19916
19917fi
19918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
19919$as_echo "$acl_cv_rpath" >&6; }
19920  wl="$acl_cv_wl"
19921  acl_libext="$acl_cv_libext"
19922  acl_shlibext="$acl_cv_shlibext"
19923  acl_libname_spec="$acl_cv_libname_spec"
19924  acl_library_names_spec="$acl_cv_library_names_spec"
19925  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19926  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19927  acl_hardcode_direct="$acl_cv_hardcode_direct"
19928  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
19929    # Check whether --enable-rpath was given.
19930if test "${enable_rpath+set}" = set; then :
19931  enableval=$enable_rpath; :
19932else
19933  enable_rpath=yes
19934fi
19935
19936
19937
19938
19939  acl_libdirstem=lib
19940  acl_libdirstem2=
19941  case "$host_os" in
19942    solaris*)
19943                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
19944$as_echo_n "checking for 64-bit host... " >&6; }
19945if ${gl_cv_solaris_64bit+:} false; then :
19946  $as_echo_n "(cached) " >&6
19947else
19948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19949/* end confdefs.h.  */
19950
19951#ifdef _LP64
19952sixtyfour bits
19953#endif
19954
19955_ACEOF
19956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19957  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
19958  gl_cv_solaris_64bit=yes
19959else
19960  gl_cv_solaris_64bit=no
19961fi
19962rm -f conftest*
19963
19964
19965fi
19966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
19967$as_echo "$gl_cv_solaris_64bit" >&6; }
19968      if test $gl_cv_solaris_64bit = yes; then
19969        acl_libdirstem=lib/64
19970        case "$host_cpu" in
19971          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
19972          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
19973        esac
19974      fi
19975      ;;
19976    *)
19977      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
19978      if test -n "$searchpath"; then
19979        acl_save_IFS="${IFS= 	}"; IFS=":"
19980        for searchdir in $searchpath; do
19981          if test -d "$searchdir"; then
19982            case "$searchdir" in
19983              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
19984              */../ | */.. )
19985                # Better ignore directories of this form. They are misleading.
19986                ;;
19987              *) searchdir=`cd "$searchdir" && pwd`
19988                 case "$searchdir" in
19989                   */lib64 ) acl_libdirstem=lib64 ;;
19990                 esac ;;
19991            esac
19992          fi
19993        done
19994        IFS="$acl_save_IFS"
19995      fi
19996      ;;
19997  esac
19998  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011    use_additional=yes
20012
20013  acl_save_prefix="$prefix"
20014  prefix="$acl_final_prefix"
20015  acl_save_exec_prefix="$exec_prefix"
20016  exec_prefix="$acl_final_exec_prefix"
20017
20018    eval additional_includedir=\"$includedir\"
20019    eval additional_libdir=\"$libdir\"
20020
20021  exec_prefix="$acl_save_exec_prefix"
20022  prefix="$acl_save_prefix"
20023
20024
20025# Check whether --with-libiconv-prefix was given.
20026if test "${with_libiconv_prefix+set}" = set; then :
20027  withval=$with_libiconv_prefix;
20028    if test "X$withval" = "Xno"; then
20029      use_additional=no
20030    else
20031      if test "X$withval" = "X"; then
20032
20033  acl_save_prefix="$prefix"
20034  prefix="$acl_final_prefix"
20035  acl_save_exec_prefix="$exec_prefix"
20036  exec_prefix="$acl_final_exec_prefix"
20037
20038          eval additional_includedir=\"$includedir\"
20039          eval additional_libdir=\"$libdir\"
20040
20041  exec_prefix="$acl_save_exec_prefix"
20042  prefix="$acl_save_prefix"
20043
20044      else
20045        additional_includedir="$withval/include"
20046        additional_libdir="$withval/$acl_libdirstem"
20047        if test "$acl_libdirstem2" != "$acl_libdirstem" \
20048           && ! test -d "$withval/$acl_libdirstem"; then
20049          additional_libdir="$withval/$acl_libdirstem2"
20050        fi
20051      fi
20052    fi
20053
20054fi
20055
20056      LIBICONV=
20057  LTLIBICONV=
20058  INCICONV=
20059  LIBICONV_PREFIX=
20060      HAVE_LIBICONV=
20061  rpathdirs=
20062  ltrpathdirs=
20063  names_already_handled=
20064  names_next_round='iconv '
20065  while test -n "$names_next_round"; do
20066    names_this_round="$names_next_round"
20067    names_next_round=
20068    for name in $names_this_round; do
20069      already_handled=
20070      for n in $names_already_handled; do
20071        if test "$n" = "$name"; then
20072          already_handled=yes
20073          break
20074        fi
20075      done
20076      if test -z "$already_handled"; then
20077        names_already_handled="$names_already_handled $name"
20078                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
20079        eval value=\"\$HAVE_LIB$uppername\"
20080        if test -n "$value"; then
20081          if test "$value" = yes; then
20082            eval value=\"\$LIB$uppername\"
20083            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
20084            eval value=\"\$LTLIB$uppername\"
20085            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
20086          else
20087                                    :
20088          fi
20089        else
20090                              found_dir=
20091          found_la=
20092          found_so=
20093          found_a=
20094          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
20095          if test -n "$acl_shlibext"; then
20096            shrext=".$acl_shlibext"             # typically: shrext=.so
20097          else
20098            shrext=
20099          fi
20100          if test $use_additional = yes; then
20101            dir="$additional_libdir"
20102                                    if test -n "$acl_shlibext"; then
20103              if test -f "$dir/$libname$shrext"; then
20104                found_dir="$dir"
20105                found_so="$dir/$libname$shrext"
20106              else
20107                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20108                  ver=`(cd "$dir" && \
20109                        for f in "$libname$shrext".*; do echo "$f"; done \
20110                        | sed -e "s,^$libname$shrext\\\\.,," \
20111                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20112                        | sed 1q ) 2>/dev/null`
20113                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20114                    found_dir="$dir"
20115                    found_so="$dir/$libname$shrext.$ver"
20116                  fi
20117                else
20118                  eval library_names=\"$acl_library_names_spec\"
20119                  for f in $library_names; do
20120                    if test -f "$dir/$f"; then
20121                      found_dir="$dir"
20122                      found_so="$dir/$f"
20123                      break
20124                    fi
20125                  done
20126                fi
20127              fi
20128            fi
20129                        if test "X$found_dir" = "X"; then
20130              if test -f "$dir/$libname.$acl_libext"; then
20131                found_dir="$dir"
20132                found_a="$dir/$libname.$acl_libext"
20133              fi
20134            fi
20135            if test "X$found_dir" != "X"; then
20136              if test -f "$dir/$libname.la"; then
20137                found_la="$dir/$libname.la"
20138              fi
20139            fi
20140          fi
20141          if test "X$found_dir" = "X"; then
20142            for x in $LDFLAGS $LTLIBICONV; do
20143
20144  acl_save_prefix="$prefix"
20145  prefix="$acl_final_prefix"
20146  acl_save_exec_prefix="$exec_prefix"
20147  exec_prefix="$acl_final_exec_prefix"
20148  eval x=\"$x\"
20149  exec_prefix="$acl_save_exec_prefix"
20150  prefix="$acl_save_prefix"
20151
20152              case "$x" in
20153                -L*)
20154                  dir=`echo "X$x" | sed -e 's/^X-L//'`
20155                                    if test -n "$acl_shlibext"; then
20156                    if test -f "$dir/$libname$shrext"; then
20157                      found_dir="$dir"
20158                      found_so="$dir/$libname$shrext"
20159                    else
20160                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20161                        ver=`(cd "$dir" && \
20162                              for f in "$libname$shrext".*; do echo "$f"; done \
20163                              | sed -e "s,^$libname$shrext\\\\.,," \
20164                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20165                              | sed 1q ) 2>/dev/null`
20166                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20167                          found_dir="$dir"
20168                          found_so="$dir/$libname$shrext.$ver"
20169                        fi
20170                      else
20171                        eval library_names=\"$acl_library_names_spec\"
20172                        for f in $library_names; do
20173                          if test -f "$dir/$f"; then
20174                            found_dir="$dir"
20175                            found_so="$dir/$f"
20176                            break
20177                          fi
20178                        done
20179                      fi
20180                    fi
20181                  fi
20182                                    if test "X$found_dir" = "X"; then
20183                    if test -f "$dir/$libname.$acl_libext"; then
20184                      found_dir="$dir"
20185                      found_a="$dir/$libname.$acl_libext"
20186                    fi
20187                  fi
20188                  if test "X$found_dir" != "X"; then
20189                    if test -f "$dir/$libname.la"; then
20190                      found_la="$dir/$libname.la"
20191                    fi
20192                  fi
20193                  ;;
20194              esac
20195              if test "X$found_dir" != "X"; then
20196                break
20197              fi
20198            done
20199          fi
20200          if test "X$found_dir" != "X"; then
20201                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20202            if test "X$found_so" != "X"; then
20203                                                        if test "$enable_rpath" = no \
20204                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20205                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
20206                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20207              else
20208                                                                                haveit=
20209                for x in $ltrpathdirs; do
20210                  if test "X$x" = "X$found_dir"; then
20211                    haveit=yes
20212                    break
20213                  fi
20214                done
20215                if test -z "$haveit"; then
20216                  ltrpathdirs="$ltrpathdirs $found_dir"
20217                fi
20218                                if test "$acl_hardcode_direct" = yes; then
20219                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20220                else
20221                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20222                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20223                                                            haveit=
20224                    for x in $rpathdirs; do
20225                      if test "X$x" = "X$found_dir"; then
20226                        haveit=yes
20227                        break
20228                      fi
20229                    done
20230                    if test -z "$haveit"; then
20231                      rpathdirs="$rpathdirs $found_dir"
20232                    fi
20233                  else
20234                                                                                haveit=
20235                    for x in $LDFLAGS $LIBICONV; do
20236
20237  acl_save_prefix="$prefix"
20238  prefix="$acl_final_prefix"
20239  acl_save_exec_prefix="$exec_prefix"
20240  exec_prefix="$acl_final_exec_prefix"
20241  eval x=\"$x\"
20242  exec_prefix="$acl_save_exec_prefix"
20243  prefix="$acl_save_prefix"
20244
20245                      if test "X$x" = "X-L$found_dir"; then
20246                        haveit=yes
20247                        break
20248                      fi
20249                    done
20250                    if test -z "$haveit"; then
20251                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20252                    fi
20253                    if test "$acl_hardcode_minus_L" != no; then
20254                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20255                    else
20256                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20257                    fi
20258                  fi
20259                fi
20260              fi
20261            else
20262              if test "X$found_a" != "X"; then
20263                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20264              else
20265                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20266              fi
20267            fi
20268                        additional_includedir=
20269            case "$found_dir" in
20270              */$acl_libdirstem | */$acl_libdirstem/)
20271                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20272                if test "$name" = 'iconv'; then
20273                  LIBICONV_PREFIX="$basedir"
20274                fi
20275                additional_includedir="$basedir/include"
20276                ;;
20277              */$acl_libdirstem2 | */$acl_libdirstem2/)
20278                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20279                if test "$name" = 'iconv'; then
20280                  LIBICONV_PREFIX="$basedir"
20281                fi
20282                additional_includedir="$basedir/include"
20283                ;;
20284            esac
20285            if test "X$additional_includedir" != "X"; then
20286                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
20287                haveit=
20288                if test "X$additional_includedir" = "X/usr/local/include"; then
20289                  if test -n "$GCC"; then
20290                    case $host_os in
20291                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20292                    esac
20293                  fi
20294                fi
20295                if test -z "$haveit"; then
20296                  for x in $CPPFLAGS $INCICONV; do
20297
20298  acl_save_prefix="$prefix"
20299  prefix="$acl_final_prefix"
20300  acl_save_exec_prefix="$exec_prefix"
20301  exec_prefix="$acl_final_exec_prefix"
20302  eval x=\"$x\"
20303  exec_prefix="$acl_save_exec_prefix"
20304  prefix="$acl_save_prefix"
20305
20306                    if test "X$x" = "X-I$additional_includedir"; then
20307                      haveit=yes
20308                      break
20309                    fi
20310                  done
20311                  if test -z "$haveit"; then
20312                    if test -d "$additional_includedir"; then
20313                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20314                    fi
20315                  fi
20316                fi
20317              fi
20318            fi
20319                        if test -n "$found_la"; then
20320                                                        save_libdir="$libdir"
20321              case "$found_la" in
20322                */* | *\\*) . "$found_la" ;;
20323                *) . "./$found_la" ;;
20324              esac
20325              libdir="$save_libdir"
20326                            for dep in $dependency_libs; do
20327                case "$dep" in
20328                  -L*)
20329                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20330                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
20331                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
20332                      haveit=
20333                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
20334                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
20335                        if test -n "$GCC"; then
20336                          case $host_os in
20337                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20338                          esac
20339                        fi
20340                      fi
20341                      if test -z "$haveit"; then
20342                        haveit=
20343                        for x in $LDFLAGS $LIBICONV; do
20344
20345  acl_save_prefix="$prefix"
20346  prefix="$acl_final_prefix"
20347  acl_save_exec_prefix="$exec_prefix"
20348  exec_prefix="$acl_final_exec_prefix"
20349  eval x=\"$x\"
20350  exec_prefix="$acl_save_exec_prefix"
20351  prefix="$acl_save_prefix"
20352
20353                          if test "X$x" = "X-L$additional_libdir"; then
20354                            haveit=yes
20355                            break
20356                          fi
20357                        done
20358                        if test -z "$haveit"; then
20359                          if test -d "$additional_libdir"; then
20360                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20361                          fi
20362                        fi
20363                        haveit=
20364                        for x in $LDFLAGS $LTLIBICONV; do
20365
20366  acl_save_prefix="$prefix"
20367  prefix="$acl_final_prefix"
20368  acl_save_exec_prefix="$exec_prefix"
20369  exec_prefix="$acl_final_exec_prefix"
20370  eval x=\"$x\"
20371  exec_prefix="$acl_save_exec_prefix"
20372  prefix="$acl_save_prefix"
20373
20374                          if test "X$x" = "X-L$additional_libdir"; then
20375                            haveit=yes
20376                            break
20377                          fi
20378                        done
20379                        if test -z "$haveit"; then
20380                          if test -d "$additional_libdir"; then
20381                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20382                          fi
20383                        fi
20384                      fi
20385                    fi
20386                    ;;
20387                  -R*)
20388                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
20389                    if test "$enable_rpath" != no; then
20390                                                                  haveit=
20391                      for x in $rpathdirs; do
20392                        if test "X$x" = "X$dir"; then
20393                          haveit=yes
20394                          break
20395                        fi
20396                      done
20397                      if test -z "$haveit"; then
20398                        rpathdirs="$rpathdirs $dir"
20399                      fi
20400                                                                  haveit=
20401                      for x in $ltrpathdirs; do
20402                        if test "X$x" = "X$dir"; then
20403                          haveit=yes
20404                          break
20405                        fi
20406                      done
20407                      if test -z "$haveit"; then
20408                        ltrpathdirs="$ltrpathdirs $dir"
20409                      fi
20410                    fi
20411                    ;;
20412                  -l*)
20413                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20414                    ;;
20415                  *.la)
20416                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20417                    ;;
20418                  *)
20419                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20420                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20421                    ;;
20422                esac
20423              done
20424            fi
20425          else
20426                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20427            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20428          fi
20429        fi
20430      fi
20431    done
20432  done
20433  if test "X$rpathdirs" != "X"; then
20434    if test -n "$acl_hardcode_libdir_separator"; then
20435                        alldirs=
20436      for found_dir in $rpathdirs; do
20437        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20438      done
20439            acl_save_libdir="$libdir"
20440      libdir="$alldirs"
20441      eval flag=\"$acl_hardcode_libdir_flag_spec\"
20442      libdir="$acl_save_libdir"
20443      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20444    else
20445            for found_dir in $rpathdirs; do
20446        acl_save_libdir="$libdir"
20447        libdir="$found_dir"
20448        eval flag=\"$acl_hardcode_libdir_flag_spec\"
20449        libdir="$acl_save_libdir"
20450        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20451      done
20452    fi
20453  fi
20454  if test "X$ltrpathdirs" != "X"; then
20455            for found_dir in $ltrpathdirs; do
20456      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20457    done
20458  fi
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20491$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20492if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20493  $as_echo_n "(cached) " >&6
20494else
20495  gt_save_LIBS="$LIBS"
20496     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
20497     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20498/* end confdefs.h.  */
20499#include <CoreFoundation/CFPreferences.h>
20500int
20501main ()
20502{
20503CFPreferencesCopyAppValue(NULL, NULL)
20504  ;
20505  return 0;
20506}
20507_ACEOF
20508if ac_fn_c_try_link "$LINENO"; then :
20509  gt_cv_func_CFPreferencesCopyAppValue=yes
20510else
20511  gt_cv_func_CFPreferencesCopyAppValue=no
20512fi
20513rm -f core conftest.err conftest.$ac_objext \
20514    conftest$ac_exeext conftest.$ac_ext
20515     LIBS="$gt_save_LIBS"
20516fi
20517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20518$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20519  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20520
20521$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
20522
20523  fi
20524    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
20525$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20526if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
20527  $as_echo_n "(cached) " >&6
20528else
20529  gt_save_LIBS="$LIBS"
20530     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
20531     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20532/* end confdefs.h.  */
20533#include <CoreFoundation/CFLocale.h>
20534int
20535main ()
20536{
20537CFLocaleCopyCurrent();
20538  ;
20539  return 0;
20540}
20541_ACEOF
20542if ac_fn_c_try_link "$LINENO"; then :
20543  gt_cv_func_CFLocaleCopyCurrent=yes
20544else
20545  gt_cv_func_CFLocaleCopyCurrent=no
20546fi
20547rm -f core conftest.err conftest.$ac_objext \
20548    conftest$ac_exeext conftest.$ac_ext
20549     LIBS="$gt_save_LIBS"
20550fi
20551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
20552$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
20553  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20554
20555$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
20556
20557  fi
20558  INTL_MACOSX_LIBS=
20559  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20560    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
20561  fi
20562
20563
20564
20565
20566
20567
20568  LIBINTL=
20569  LTLIBINTL=
20570  POSUB=
20571
20572    case " $gt_needs " in
20573    *" need-formatstring-macros "*) gt_api_version=3 ;;
20574    *" need-ngettext "*) gt_api_version=2 ;;
20575    *) gt_api_version=1 ;;
20576  esac
20577  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
20578  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
20579
20580    if test "$USE_NLS" = "yes"; then
20581    gt_use_preinstalled_gnugettext=no
20582
20583
20584        if test $gt_api_version -ge 3; then
20585          gt_revision_test_code='
20586#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
20587#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
20588#endif
20589typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
20590'
20591        else
20592          gt_revision_test_code=
20593        fi
20594        if test $gt_api_version -ge 2; then
20595          gt_expression_test_code=' + * ngettext ("", "", 0)'
20596        else
20597          gt_expression_test_code=
20598        fi
20599
20600        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20601$as_echo_n "checking for GNU gettext in libc... " >&6; }
20602if eval \${$gt_func_gnugettext_libc+:} false; then :
20603  $as_echo_n "(cached) " >&6
20604else
20605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20606/* end confdefs.h.  */
20607
20608#include <libintl.h>
20609#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
20610extern int _nl_msg_cat_cntr;
20611extern int *_nl_domain_bindings;
20612#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
20613#else
20614#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
20615#endif
20616$gt_revision_test_code
20617
20618int
20619main ()
20620{
20621
20622bindtextdomain ("", "");
20623return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
20624
20625  ;
20626  return 0;
20627}
20628_ACEOF
20629if ac_fn_c_try_link "$LINENO"; then :
20630  eval "$gt_func_gnugettext_libc=yes"
20631else
20632  eval "$gt_func_gnugettext_libc=no"
20633fi
20634rm -f core conftest.err conftest.$ac_objext \
20635    conftest$ac_exeext conftest.$ac_ext
20636fi
20637eval ac_res=\$$gt_func_gnugettext_libc
20638	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20639$as_echo "$ac_res" >&6; }
20640
20641        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
20642
20643
20644
20645
20646
20647          am_save_CPPFLAGS="$CPPFLAGS"
20648
20649  for element in $INCICONV; do
20650    haveit=
20651    for x in $CPPFLAGS; do
20652
20653  acl_save_prefix="$prefix"
20654  prefix="$acl_final_prefix"
20655  acl_save_exec_prefix="$exec_prefix"
20656  exec_prefix="$acl_final_exec_prefix"
20657  eval x=\"$x\"
20658  exec_prefix="$acl_save_exec_prefix"
20659  prefix="$acl_save_prefix"
20660
20661      if test "X$x" = "X$element"; then
20662        haveit=yes
20663        break
20664      fi
20665    done
20666    if test -z "$haveit"; then
20667      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20668    fi
20669  done
20670
20671
20672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20673$as_echo_n "checking for iconv... " >&6; }
20674if ${am_cv_func_iconv+:} false; then :
20675  $as_echo_n "(cached) " >&6
20676else
20677
20678    am_cv_func_iconv="no, consider installing GNU libiconv"
20679    am_cv_lib_iconv=no
20680    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20681/* end confdefs.h.  */
20682
20683#include <stdlib.h>
20684#include <iconv.h>
20685
20686int
20687main ()
20688{
20689iconv_t cd = iconv_open("","");
20690           iconv(cd,NULL,NULL,NULL,NULL);
20691           iconv_close(cd);
20692  ;
20693  return 0;
20694}
20695_ACEOF
20696if ac_fn_c_try_link "$LINENO"; then :
20697  am_cv_func_iconv=yes
20698fi
20699rm -f core conftest.err conftest.$ac_objext \
20700    conftest$ac_exeext conftest.$ac_ext
20701    if test "$am_cv_func_iconv" != yes; then
20702      am_save_LIBS="$LIBS"
20703      LIBS="$LIBS $LIBICONV"
20704      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20705/* end confdefs.h.  */
20706
20707#include <stdlib.h>
20708#include <iconv.h>
20709
20710int
20711main ()
20712{
20713iconv_t cd = iconv_open("","");
20714             iconv(cd,NULL,NULL,NULL,NULL);
20715             iconv_close(cd);
20716  ;
20717  return 0;
20718}
20719_ACEOF
20720if ac_fn_c_try_link "$LINENO"; then :
20721  am_cv_lib_iconv=yes
20722        am_cv_func_iconv=yes
20723fi
20724rm -f core conftest.err conftest.$ac_objext \
20725    conftest$ac_exeext conftest.$ac_ext
20726      LIBS="$am_save_LIBS"
20727    fi
20728
20729fi
20730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20731$as_echo "$am_cv_func_iconv" >&6; }
20732  if test "$am_cv_func_iconv" = yes; then
20733    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
20734$as_echo_n "checking for working iconv... " >&6; }
20735if ${am_cv_func_iconv_works+:} false; then :
20736  $as_echo_n "(cached) " >&6
20737else
20738
20739                  am_save_LIBS="$LIBS"
20740      if test $am_cv_lib_iconv = yes; then
20741        LIBS="$LIBS $LIBICONV"
20742      fi
20743      am_cv_func_iconv_works=no
20744      for ac_iconv_const in '' 'const'; do
20745        if test "$cross_compiling" = yes; then :
20746  case "$host_os" in
20747             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
20748             *)            am_cv_func_iconv_works="guessing yes" ;;
20749           esac
20750else
20751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20752/* end confdefs.h.  */
20753
20754#include <iconv.h>
20755#include <string.h>
20756
20757#ifndef ICONV_CONST
20758# define ICONV_CONST $ac_iconv_const
20759#endif
20760
20761int
20762main ()
20763{
20764int result = 0;
20765  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
20766     returns.  */
20767  {
20768    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
20769    if (cd_utf8_to_88591 != (iconv_t)(-1))
20770      {
20771        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
20772        char buf[10];
20773        ICONV_CONST char *inptr = input;
20774        size_t inbytesleft = strlen (input);
20775        char *outptr = buf;
20776        size_t outbytesleft = sizeof (buf);
20777        size_t res = iconv (cd_utf8_to_88591,
20778                            &inptr, &inbytesleft,
20779                            &outptr, &outbytesleft);
20780        if (res == 0)
20781          result |= 1;
20782        iconv_close (cd_utf8_to_88591);
20783      }
20784  }
20785  /* Test against Solaris 10 bug: Failures are not distinguishable from
20786     successful returns.  */
20787  {
20788    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
20789    if (cd_ascii_to_88591 != (iconv_t)(-1))
20790      {
20791        static ICONV_CONST char input[] = "\263";
20792        char buf[10];
20793        ICONV_CONST char *inptr = input;
20794        size_t inbytesleft = strlen (input);
20795        char *outptr = buf;
20796        size_t outbytesleft = sizeof (buf);
20797        size_t res = iconv (cd_ascii_to_88591,
20798                            &inptr, &inbytesleft,
20799                            &outptr, &outbytesleft);
20800        if (res == 0)
20801          result |= 2;
20802        iconv_close (cd_ascii_to_88591);
20803      }
20804  }
20805  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
20806  {
20807    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
20808    if (cd_88591_to_utf8 != (iconv_t)(-1))
20809      {
20810        static ICONV_CONST char input[] = "\304";
20811        static char buf[2] = { (char)0xDE, (char)0xAD };
20812        ICONV_CONST char *inptr = input;
20813        size_t inbytesleft = 1;
20814        char *outptr = buf;
20815        size_t outbytesleft = 1;
20816        size_t res = iconv (cd_88591_to_utf8,
20817                            &inptr, &inbytesleft,
20818                            &outptr, &outbytesleft);
20819        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
20820          result |= 4;
20821        iconv_close (cd_88591_to_utf8);
20822      }
20823  }
20824#if 0 /* This bug could be worked around by the caller.  */
20825  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
20826  {
20827    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
20828    if (cd_88591_to_utf8 != (iconv_t)(-1))
20829      {
20830        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
20831        char buf[50];
20832        ICONV_CONST char *inptr = input;
20833        size_t inbytesleft = strlen (input);
20834        char *outptr = buf;
20835        size_t outbytesleft = sizeof (buf);
20836        size_t res = iconv (cd_88591_to_utf8,
20837                            &inptr, &inbytesleft,
20838                            &outptr, &outbytesleft);
20839        if ((int)res > 0)
20840          result |= 8;
20841        iconv_close (cd_88591_to_utf8);
20842      }
20843  }
20844#endif
20845  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
20846     provided.  */
20847  if (/* Try standardized names.  */
20848      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
20849      /* Try IRIX, OSF/1 names.  */
20850      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
20851      /* Try AIX names.  */
20852      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
20853      /* Try HP-UX names.  */
20854      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
20855    result |= 16;
20856  return result;
20857
20858  ;
20859  return 0;
20860}
20861_ACEOF
20862if ac_fn_c_try_run "$LINENO"; then :
20863  am_cv_func_iconv_works=yes
20864fi
20865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20866  conftest.$ac_objext conftest.beam conftest.$ac_ext
20867fi
20868
20869        test "$am_cv_func_iconv_works" = no || break
20870      done
20871      LIBS="$am_save_LIBS"
20872
20873fi
20874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
20875$as_echo "$am_cv_func_iconv_works" >&6; }
20876    case "$am_cv_func_iconv_works" in
20877      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
20878      *)   am_func_iconv=yes ;;
20879    esac
20880  else
20881    am_func_iconv=no am_cv_lib_iconv=no
20882  fi
20883  if test "$am_func_iconv" = yes; then
20884
20885$as_echo "#define HAVE_ICONV 1" >>confdefs.h
20886
20887  fi
20888  if test "$am_cv_lib_iconv" = yes; then
20889    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20890$as_echo_n "checking how to link with libiconv... " >&6; }
20891    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20892$as_echo "$LIBICONV" >&6; }
20893  else
20894            CPPFLAGS="$am_save_CPPFLAGS"
20895    LIBICONV=
20896    LTLIBICONV=
20897  fi
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909    use_additional=yes
20910
20911  acl_save_prefix="$prefix"
20912  prefix="$acl_final_prefix"
20913  acl_save_exec_prefix="$exec_prefix"
20914  exec_prefix="$acl_final_exec_prefix"
20915
20916    eval additional_includedir=\"$includedir\"
20917    eval additional_libdir=\"$libdir\"
20918
20919  exec_prefix="$acl_save_exec_prefix"
20920  prefix="$acl_save_prefix"
20921
20922
20923# Check whether --with-libintl-prefix was given.
20924if test "${with_libintl_prefix+set}" = set; then :
20925  withval=$with_libintl_prefix;
20926    if test "X$withval" = "Xno"; then
20927      use_additional=no
20928    else
20929      if test "X$withval" = "X"; then
20930
20931  acl_save_prefix="$prefix"
20932  prefix="$acl_final_prefix"
20933  acl_save_exec_prefix="$exec_prefix"
20934  exec_prefix="$acl_final_exec_prefix"
20935
20936          eval additional_includedir=\"$includedir\"
20937          eval additional_libdir=\"$libdir\"
20938
20939  exec_prefix="$acl_save_exec_prefix"
20940  prefix="$acl_save_prefix"
20941
20942      else
20943        additional_includedir="$withval/include"
20944        additional_libdir="$withval/$acl_libdirstem"
20945        if test "$acl_libdirstem2" != "$acl_libdirstem" \
20946           && ! test -d "$withval/$acl_libdirstem"; then
20947          additional_libdir="$withval/$acl_libdirstem2"
20948        fi
20949      fi
20950    fi
20951
20952fi
20953
20954      LIBINTL=
20955  LTLIBINTL=
20956  INCINTL=
20957  LIBINTL_PREFIX=
20958      HAVE_LIBINTL=
20959  rpathdirs=
20960  ltrpathdirs=
20961  names_already_handled=
20962  names_next_round='intl '
20963  while test -n "$names_next_round"; do
20964    names_this_round="$names_next_round"
20965    names_next_round=
20966    for name in $names_this_round; do
20967      already_handled=
20968      for n in $names_already_handled; do
20969        if test "$n" = "$name"; then
20970          already_handled=yes
20971          break
20972        fi
20973      done
20974      if test -z "$already_handled"; then
20975        names_already_handled="$names_already_handled $name"
20976                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
20977        eval value=\"\$HAVE_LIB$uppername\"
20978        if test -n "$value"; then
20979          if test "$value" = yes; then
20980            eval value=\"\$LIB$uppername\"
20981            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20982            eval value=\"\$LTLIB$uppername\"
20983            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20984          else
20985                                    :
20986          fi
20987        else
20988                              found_dir=
20989          found_la=
20990          found_so=
20991          found_a=
20992          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
20993          if test -n "$acl_shlibext"; then
20994            shrext=".$acl_shlibext"             # typically: shrext=.so
20995          else
20996            shrext=
20997          fi
20998          if test $use_additional = yes; then
20999            dir="$additional_libdir"
21000                                    if test -n "$acl_shlibext"; then
21001              if test -f "$dir/$libname$shrext"; then
21002                found_dir="$dir"
21003                found_so="$dir/$libname$shrext"
21004              else
21005                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21006                  ver=`(cd "$dir" && \
21007                        for f in "$libname$shrext".*; do echo "$f"; done \
21008                        | sed -e "s,^$libname$shrext\\\\.,," \
21009                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21010                        | sed 1q ) 2>/dev/null`
21011                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21012                    found_dir="$dir"
21013                    found_so="$dir/$libname$shrext.$ver"
21014                  fi
21015                else
21016                  eval library_names=\"$acl_library_names_spec\"
21017                  for f in $library_names; do
21018                    if test -f "$dir/$f"; then
21019                      found_dir="$dir"
21020                      found_so="$dir/$f"
21021                      break
21022                    fi
21023                  done
21024                fi
21025              fi
21026            fi
21027                        if test "X$found_dir" = "X"; then
21028              if test -f "$dir/$libname.$acl_libext"; then
21029                found_dir="$dir"
21030                found_a="$dir/$libname.$acl_libext"
21031              fi
21032            fi
21033            if test "X$found_dir" != "X"; then
21034              if test -f "$dir/$libname.la"; then
21035                found_la="$dir/$libname.la"
21036              fi
21037            fi
21038          fi
21039          if test "X$found_dir" = "X"; then
21040            for x in $LDFLAGS $LTLIBINTL; do
21041
21042  acl_save_prefix="$prefix"
21043  prefix="$acl_final_prefix"
21044  acl_save_exec_prefix="$exec_prefix"
21045  exec_prefix="$acl_final_exec_prefix"
21046  eval x=\"$x\"
21047  exec_prefix="$acl_save_exec_prefix"
21048  prefix="$acl_save_prefix"
21049
21050              case "$x" in
21051                -L*)
21052                  dir=`echo "X$x" | sed -e 's/^X-L//'`
21053                                    if test -n "$acl_shlibext"; then
21054                    if test -f "$dir/$libname$shrext"; then
21055                      found_dir="$dir"
21056                      found_so="$dir/$libname$shrext"
21057                    else
21058                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21059                        ver=`(cd "$dir" && \
21060                              for f in "$libname$shrext".*; do echo "$f"; done \
21061                              | sed -e "s,^$libname$shrext\\\\.,," \
21062                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21063                              | sed 1q ) 2>/dev/null`
21064                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21065                          found_dir="$dir"
21066                          found_so="$dir/$libname$shrext.$ver"
21067                        fi
21068                      else
21069                        eval library_names=\"$acl_library_names_spec\"
21070                        for f in $library_names; do
21071                          if test -f "$dir/$f"; then
21072                            found_dir="$dir"
21073                            found_so="$dir/$f"
21074                            break
21075                          fi
21076                        done
21077                      fi
21078                    fi
21079                  fi
21080                                    if test "X$found_dir" = "X"; then
21081                    if test -f "$dir/$libname.$acl_libext"; then
21082                      found_dir="$dir"
21083                      found_a="$dir/$libname.$acl_libext"
21084                    fi
21085                  fi
21086                  if test "X$found_dir" != "X"; then
21087                    if test -f "$dir/$libname.la"; then
21088                      found_la="$dir/$libname.la"
21089                    fi
21090                  fi
21091                  ;;
21092              esac
21093              if test "X$found_dir" != "X"; then
21094                break
21095              fi
21096            done
21097          fi
21098          if test "X$found_dir" != "X"; then
21099                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21100            if test "X$found_so" != "X"; then
21101                                                        if test "$enable_rpath" = no \
21102                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
21103                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
21104                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21105              else
21106                                                                                haveit=
21107                for x in $ltrpathdirs; do
21108                  if test "X$x" = "X$found_dir"; then
21109                    haveit=yes
21110                    break
21111                  fi
21112                done
21113                if test -z "$haveit"; then
21114                  ltrpathdirs="$ltrpathdirs $found_dir"
21115                fi
21116                                if test "$acl_hardcode_direct" = yes; then
21117                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21118                else
21119                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
21120                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21121                                                            haveit=
21122                    for x in $rpathdirs; do
21123                      if test "X$x" = "X$found_dir"; then
21124                        haveit=yes
21125                        break
21126                      fi
21127                    done
21128                    if test -z "$haveit"; then
21129                      rpathdirs="$rpathdirs $found_dir"
21130                    fi
21131                  else
21132                                                                                haveit=
21133                    for x in $LDFLAGS $LIBINTL; do
21134
21135  acl_save_prefix="$prefix"
21136  prefix="$acl_final_prefix"
21137  acl_save_exec_prefix="$exec_prefix"
21138  exec_prefix="$acl_final_exec_prefix"
21139  eval x=\"$x\"
21140  exec_prefix="$acl_save_exec_prefix"
21141  prefix="$acl_save_prefix"
21142
21143                      if test "X$x" = "X-L$found_dir"; then
21144                        haveit=yes
21145                        break
21146                      fi
21147                    done
21148                    if test -z "$haveit"; then
21149                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21150                    fi
21151                    if test "$acl_hardcode_minus_L" != no; then
21152                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21153                    else
21154                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21155                    fi
21156                  fi
21157                fi
21158              fi
21159            else
21160              if test "X$found_a" != "X"; then
21161                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21162              else
21163                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21164              fi
21165            fi
21166                        additional_includedir=
21167            case "$found_dir" in
21168              */$acl_libdirstem | */$acl_libdirstem/)
21169                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
21170                if test "$name" = 'intl'; then
21171                  LIBINTL_PREFIX="$basedir"
21172                fi
21173                additional_includedir="$basedir/include"
21174                ;;
21175              */$acl_libdirstem2 | */$acl_libdirstem2/)
21176                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
21177                if test "$name" = 'intl'; then
21178                  LIBINTL_PREFIX="$basedir"
21179                fi
21180                additional_includedir="$basedir/include"
21181                ;;
21182            esac
21183            if test "X$additional_includedir" != "X"; then
21184                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
21185                haveit=
21186                if test "X$additional_includedir" = "X/usr/local/include"; then
21187                  if test -n "$GCC"; then
21188                    case $host_os in
21189                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21190                    esac
21191                  fi
21192                fi
21193                if test -z "$haveit"; then
21194                  for x in $CPPFLAGS $INCINTL; do
21195
21196  acl_save_prefix="$prefix"
21197  prefix="$acl_final_prefix"
21198  acl_save_exec_prefix="$exec_prefix"
21199  exec_prefix="$acl_final_exec_prefix"
21200  eval x=\"$x\"
21201  exec_prefix="$acl_save_exec_prefix"
21202  prefix="$acl_save_prefix"
21203
21204                    if test "X$x" = "X-I$additional_includedir"; then
21205                      haveit=yes
21206                      break
21207                    fi
21208                  done
21209                  if test -z "$haveit"; then
21210                    if test -d "$additional_includedir"; then
21211                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21212                    fi
21213                  fi
21214                fi
21215              fi
21216            fi
21217                        if test -n "$found_la"; then
21218                                                        save_libdir="$libdir"
21219              case "$found_la" in
21220                */* | *\\*) . "$found_la" ;;
21221                *) . "./$found_la" ;;
21222              esac
21223              libdir="$save_libdir"
21224                            for dep in $dependency_libs; do
21225                case "$dep" in
21226                  -L*)
21227                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21228                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
21229                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
21230                      haveit=
21231                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
21232                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
21233                        if test -n "$GCC"; then
21234                          case $host_os in
21235                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21236                          esac
21237                        fi
21238                      fi
21239                      if test -z "$haveit"; then
21240                        haveit=
21241                        for x in $LDFLAGS $LIBINTL; do
21242
21243  acl_save_prefix="$prefix"
21244  prefix="$acl_final_prefix"
21245  acl_save_exec_prefix="$exec_prefix"
21246  exec_prefix="$acl_final_exec_prefix"
21247  eval x=\"$x\"
21248  exec_prefix="$acl_save_exec_prefix"
21249  prefix="$acl_save_prefix"
21250
21251                          if test "X$x" = "X-L$additional_libdir"; then
21252                            haveit=yes
21253                            break
21254                          fi
21255                        done
21256                        if test -z "$haveit"; then
21257                          if test -d "$additional_libdir"; then
21258                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21259                          fi
21260                        fi
21261                        haveit=
21262                        for x in $LDFLAGS $LTLIBINTL; do
21263
21264  acl_save_prefix="$prefix"
21265  prefix="$acl_final_prefix"
21266  acl_save_exec_prefix="$exec_prefix"
21267  exec_prefix="$acl_final_exec_prefix"
21268  eval x=\"$x\"
21269  exec_prefix="$acl_save_exec_prefix"
21270  prefix="$acl_save_prefix"
21271
21272                          if test "X$x" = "X-L$additional_libdir"; then
21273                            haveit=yes
21274                            break
21275                          fi
21276                        done
21277                        if test -z "$haveit"; then
21278                          if test -d "$additional_libdir"; then
21279                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21280                          fi
21281                        fi
21282                      fi
21283                    fi
21284                    ;;
21285                  -R*)
21286                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
21287                    if test "$enable_rpath" != no; then
21288                                                                  haveit=
21289                      for x in $rpathdirs; do
21290                        if test "X$x" = "X$dir"; then
21291                          haveit=yes
21292                          break
21293                        fi
21294                      done
21295                      if test -z "$haveit"; then
21296                        rpathdirs="$rpathdirs $dir"
21297                      fi
21298                                                                  haveit=
21299                      for x in $ltrpathdirs; do
21300                        if test "X$x" = "X$dir"; then
21301                          haveit=yes
21302                          break
21303                        fi
21304                      done
21305                      if test -z "$haveit"; then
21306                        ltrpathdirs="$ltrpathdirs $dir"
21307                      fi
21308                    fi
21309                    ;;
21310                  -l*)
21311                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21312                    ;;
21313                  *.la)
21314                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21315                    ;;
21316                  *)
21317                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21318                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21319                    ;;
21320                esac
21321              done
21322            fi
21323          else
21324                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21325            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21326          fi
21327        fi
21328      fi
21329    done
21330  done
21331  if test "X$rpathdirs" != "X"; then
21332    if test -n "$acl_hardcode_libdir_separator"; then
21333                        alldirs=
21334      for found_dir in $rpathdirs; do
21335        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
21336      done
21337            acl_save_libdir="$libdir"
21338      libdir="$alldirs"
21339      eval flag=\"$acl_hardcode_libdir_flag_spec\"
21340      libdir="$acl_save_libdir"
21341      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21342    else
21343            for found_dir in $rpathdirs; do
21344        acl_save_libdir="$libdir"
21345        libdir="$found_dir"
21346        eval flag=\"$acl_hardcode_libdir_flag_spec\"
21347        libdir="$acl_save_libdir"
21348        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21349      done
21350    fi
21351  fi
21352  if test "X$ltrpathdirs" != "X"; then
21353            for found_dir in $ltrpathdirs; do
21354      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21355    done
21356  fi
21357
21358
21359
21360
21361
21362
21363          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21364$as_echo_n "checking for GNU gettext in libintl... " >&6; }
21365if eval \${$gt_func_gnugettext_libintl+:} false; then :
21366  $as_echo_n "(cached) " >&6
21367else
21368  gt_save_CPPFLAGS="$CPPFLAGS"
21369            CPPFLAGS="$CPPFLAGS $INCINTL"
21370            gt_save_LIBS="$LIBS"
21371            LIBS="$LIBS $LIBINTL"
21372                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21373/* end confdefs.h.  */
21374
21375#include <libintl.h>
21376#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
21377extern int _nl_msg_cat_cntr;
21378extern
21379#ifdef __cplusplus
21380"C"
21381#endif
21382const char *_nl_expand_alias (const char *);
21383#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
21384#else
21385#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
21386#endif
21387$gt_revision_test_code
21388
21389int
21390main ()
21391{
21392
21393bindtextdomain ("", "");
21394return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
21395
21396  ;
21397  return 0;
21398}
21399_ACEOF
21400if ac_fn_c_try_link "$LINENO"; then :
21401  eval "$gt_func_gnugettext_libintl=yes"
21402else
21403  eval "$gt_func_gnugettext_libintl=no"
21404fi
21405rm -f core conftest.err conftest.$ac_objext \
21406    conftest$ac_exeext conftest.$ac_ext
21407                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
21408              LIBS="$LIBS $LIBICONV"
21409              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21410/* end confdefs.h.  */
21411
21412#include <libintl.h>
21413#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
21414extern int _nl_msg_cat_cntr;
21415extern
21416#ifdef __cplusplus
21417"C"
21418#endif
21419const char *_nl_expand_alias (const char *);
21420#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
21421#else
21422#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
21423#endif
21424$gt_revision_test_code
21425
21426int
21427main ()
21428{
21429
21430bindtextdomain ("", "");
21431return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
21432
21433  ;
21434  return 0;
21435}
21436_ACEOF
21437if ac_fn_c_try_link "$LINENO"; then :
21438  LIBINTL="$LIBINTL $LIBICONV"
21439                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21440                 eval "$gt_func_gnugettext_libintl=yes"
21441
21442fi
21443rm -f core conftest.err conftest.$ac_objext \
21444    conftest$ac_exeext conftest.$ac_ext
21445            fi
21446            CPPFLAGS="$gt_save_CPPFLAGS"
21447            LIBS="$gt_save_LIBS"
21448fi
21449eval ac_res=\$$gt_func_gnugettext_libintl
21450	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21451$as_echo "$ac_res" >&6; }
21452        fi
21453
21454                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
21455           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
21456                && test "$PACKAGE" != gettext-runtime \
21457                && test "$PACKAGE" != gettext-tools; }; then
21458          gt_use_preinstalled_gnugettext=yes
21459        else
21460                    LIBINTL=
21461          LTLIBINTL=
21462          INCINTL=
21463        fi
21464
21465
21466
21467    if test -n "$INTL_MACOSX_LIBS"; then
21468      if test "$gt_use_preinstalled_gnugettext" = "yes" \
21469         || test "$nls_cv_use_gnu_gettext" = "yes"; then
21470                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21471        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21472      fi
21473    fi
21474
21475    if test "$gt_use_preinstalled_gnugettext" = "yes" \
21476       || test "$nls_cv_use_gnu_gettext" = "yes"; then
21477
21478$as_echo "#define ENABLE_NLS 1" >>confdefs.h
21479
21480    else
21481      USE_NLS=no
21482    fi
21483  fi
21484
21485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21486$as_echo_n "checking whether to use NLS... " >&6; }
21487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21488$as_echo "$USE_NLS" >&6; }
21489  if test "$USE_NLS" = "yes"; then
21490    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21491$as_echo_n "checking where the gettext function comes from... " >&6; }
21492    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21493      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
21494        gt_source="external libintl"
21495      else
21496        gt_source="libc"
21497      fi
21498    else
21499      gt_source="included intl directory"
21500    fi
21501    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21502$as_echo "$gt_source" >&6; }
21503  fi
21504
21505  if test "$USE_NLS" = "yes"; then
21506
21507    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21508      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
21509        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21510$as_echo_n "checking how to link with libintl... " >&6; }
21511        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21512$as_echo "$LIBINTL" >&6; }
21513
21514  for element in $INCINTL; do
21515    haveit=
21516    for x in $CPPFLAGS; do
21517
21518  acl_save_prefix="$prefix"
21519  prefix="$acl_final_prefix"
21520  acl_save_exec_prefix="$exec_prefix"
21521  exec_prefix="$acl_final_exec_prefix"
21522  eval x=\"$x\"
21523  exec_prefix="$acl_save_exec_prefix"
21524  prefix="$acl_save_prefix"
21525
21526      if test "X$x" = "X$element"; then
21527        haveit=yes
21528        break
21529      fi
21530    done
21531    if test -z "$haveit"; then
21532      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21533    fi
21534  done
21535
21536      fi
21537
21538
21539$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21540
21541
21542$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21543
21544    fi
21545
21546        POSUB=po
21547  fi
21548
21549
21550
21551    INTLLIBS="$LIBINTL"
21552
21553
21554
21555
21556
21557
21558
21559avahilocaledir='${prefix}/${DATADIRNAME}/locale'
21560
21561
21562# Check for pkg-config manually first, as if its not installed the
21563# PKG_PROG_PKG_CONFIG macro won't be defined.
21564# Extract the first word of "pkg-config", so it can be a program name with args.
21565set dummy pkg-config; ac_word=$2
21566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21567$as_echo_n "checking for $ac_word... " >&6; }
21568if ${ac_cv_prog_have_pkg_config+:} false; then :
21569  $as_echo_n "(cached) " >&6
21570else
21571  if test -n "$have_pkg_config"; then
21572  ac_cv_prog_have_pkg_config="$have_pkg_config" # Let the user override the test.
21573else
21574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21575for as_dir in $PATH
21576do
21577  IFS=$as_save_IFS
21578  test -z "$as_dir" && as_dir=.
21579    for ac_exec_ext in '' $ac_executable_extensions; do
21580  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21581    ac_cv_prog_have_pkg_config="yes"
21582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21583    break 2
21584  fi
21585done
21586  done
21587IFS=$as_save_IFS
21588
21589  test -z "$ac_cv_prog_have_pkg_config" && ac_cv_prog_have_pkg_config="no"
21590fi
21591fi
21592have_pkg_config=$ac_cv_prog_have_pkg_config
21593if test -n "$have_pkg_config"; then
21594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pkg_config" >&5
21595$as_echo "$have_pkg_config" >&6; }
21596else
21597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21598$as_echo "no" >&6; }
21599fi
21600
21601
21602
21603if test x"$have_pkg_config" = "xno"; then
21604    as_fn_error $? "pkg-config is required to install this program" "$LINENO" 5
21605fi
21606
21607
21608
21609
21610
21611
21612
21613
21614if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21615	if test -n "$ac_tool_prefix"; then
21616  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21617set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21619$as_echo_n "checking for $ac_word... " >&6; }
21620if ${ac_cv_path_PKG_CONFIG+:} false; then :
21621  $as_echo_n "(cached) " >&6
21622else
21623  case $PKG_CONFIG in
21624  [\\/]* | ?:[\\/]*)
21625  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21626  ;;
21627  *)
21628  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21629for as_dir in $PATH
21630do
21631  IFS=$as_save_IFS
21632  test -z "$as_dir" && as_dir=.
21633    for ac_exec_ext in '' $ac_executable_extensions; do
21634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21635    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21637    break 2
21638  fi
21639done
21640  done
21641IFS=$as_save_IFS
21642
21643  ;;
21644esac
21645fi
21646PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21647if test -n "$PKG_CONFIG"; then
21648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21649$as_echo "$PKG_CONFIG" >&6; }
21650else
21651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21652$as_echo "no" >&6; }
21653fi
21654
21655
21656fi
21657if test -z "$ac_cv_path_PKG_CONFIG"; then
21658  ac_pt_PKG_CONFIG=$PKG_CONFIG
21659  # Extract the first word of "pkg-config", so it can be a program name with args.
21660set dummy pkg-config; ac_word=$2
21661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21662$as_echo_n "checking for $ac_word... " >&6; }
21663if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
21664  $as_echo_n "(cached) " >&6
21665else
21666  case $ac_pt_PKG_CONFIG in
21667  [\\/]* | ?:[\\/]*)
21668  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21669  ;;
21670  *)
21671  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21672for as_dir in $PATH
21673do
21674  IFS=$as_save_IFS
21675  test -z "$as_dir" && as_dir=.
21676    for ac_exec_ext in '' $ac_executable_extensions; do
21677  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21678    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21680    break 2
21681  fi
21682done
21683  done
21684IFS=$as_save_IFS
21685
21686  ;;
21687esac
21688fi
21689ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21690if test -n "$ac_pt_PKG_CONFIG"; then
21691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21692$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21693else
21694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21695$as_echo "no" >&6; }
21696fi
21697
21698  if test "x$ac_pt_PKG_CONFIG" = x; then
21699    PKG_CONFIG=""
21700  else
21701    case $cross_compiling:$ac_tool_warned in
21702yes:)
21703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21705ac_tool_warned=yes ;;
21706esac
21707    PKG_CONFIG=$ac_pt_PKG_CONFIG
21708  fi
21709else
21710  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21711fi
21712
21713fi
21714if test -n "$PKG_CONFIG"; then
21715	_pkg_min_version=0.9.0
21716	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21717$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21718	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21719		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21720$as_echo "yes" >&6; }
21721	else
21722		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21723$as_echo "no" >&6; }
21724		PKG_CONFIG=""
21725	fi
21726fi
21727
21728#
21729# Check for GLIB 2.0
21730#
21731# Check whether --enable-glib was given.
21732if test "${enable_glib+set}" = set; then :
21733  enableval=$enable_glib; case "${enableval}" in
21734                yes) HAVE_GLIB=yes ;;
21735                no)  HAVE_GLIB=no ;;
21736                *) as_fn_error $? "bad value ${enableval} for --enable-glib" "$LINENO" 5 ;;
21737        esac
21738else
21739  HAVE_GLIB=yes
21740fi
21741
21742
21743if test "x$HAVE_GLIB" = "xyes" ; then
21744
21745pkg_failed=no
21746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB20" >&5
21747$as_echo_n "checking for GLIB20... " >&6; }
21748
21749if test -n "$GLIB20_CFLAGS"; then
21750    pkg_cv_GLIB20_CFLAGS="$GLIB20_CFLAGS"
21751 elif test -n "$PKG_CONFIG"; then
21752    if test -n "$PKG_CONFIG" && \
21753    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.4.0 \""; } >&5
21754  ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.4.0 ") 2>&5
21755  ac_status=$?
21756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21757  test $ac_status = 0; }; then
21758  pkg_cv_GLIB20_CFLAGS=`$PKG_CONFIG --cflags " glib-2.0 >= 2.4.0 " 2>/dev/null`
21759		      test "x$?" != "x0" && pkg_failed=yes
21760else
21761  pkg_failed=yes
21762fi
21763 else
21764    pkg_failed=untried
21765fi
21766if test -n "$GLIB20_LIBS"; then
21767    pkg_cv_GLIB20_LIBS="$GLIB20_LIBS"
21768 elif test -n "$PKG_CONFIG"; then
21769    if test -n "$PKG_CONFIG" && \
21770    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.4.0 \""; } >&5
21771  ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.4.0 ") 2>&5
21772  ac_status=$?
21773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21774  test $ac_status = 0; }; then
21775  pkg_cv_GLIB20_LIBS=`$PKG_CONFIG --libs " glib-2.0 >= 2.4.0 " 2>/dev/null`
21776		      test "x$?" != "x0" && pkg_failed=yes
21777else
21778  pkg_failed=yes
21779fi
21780 else
21781    pkg_failed=untried
21782fi
21783
21784
21785
21786if test $pkg_failed = yes; then
21787   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21788$as_echo "no" >&6; }
21789
21790if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21791        _pkg_short_errors_supported=yes
21792else
21793        _pkg_short_errors_supported=no
21794fi
21795        if test $_pkg_short_errors_supported = yes; then
21796	        GLIB20_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " glib-2.0 >= 2.4.0 " 2>&1`
21797        else
21798	        GLIB20_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " glib-2.0 >= 2.4.0 " 2>&1`
21799        fi
21800	# Put the nasty error message in config.log where it belongs
21801	echo "$GLIB20_PKG_ERRORS" >&5
21802
21803	as_fn_error $? "Package requirements ( glib-2.0 >= 2.4.0 ) were not met:
21804
21805$GLIB20_PKG_ERRORS
21806
21807Consider adjusting the PKG_CONFIG_PATH environment variable if you
21808installed software in a non-standard prefix.
21809
21810Alternatively, you may set the environment variables GLIB20_CFLAGS
21811and GLIB20_LIBS to avoid the need to call pkg-config.
21812See the pkg-config man page for more details." "$LINENO" 5
21813elif test $pkg_failed = untried; then
21814     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21815$as_echo "no" >&6; }
21816	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21818as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21819is in your PATH or set the PKG_CONFIG environment variable to the full
21820path to pkg-config.
21821
21822Alternatively, you may set the environment variables GLIB20_CFLAGS
21823and GLIB20_LIBS to avoid the need to call pkg-config.
21824See the pkg-config man page for more details.
21825
21826To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21827See \`config.log' for more details" "$LINENO" 5; }
21828else
21829	GLIB20_CFLAGS=$pkg_cv_GLIB20_CFLAGS
21830	GLIB20_LIBS=$pkg_cv_GLIB20_LIBS
21831        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21832$as_echo "yes" >&6; }
21833
21834fi
21835
21836
21837fi
21838 if test "x$HAVE_GLIB" = "xyes"; then
21839  HAVE_GLIB_TRUE=
21840  HAVE_GLIB_FALSE='#'
21841else
21842  HAVE_GLIB_TRUE='#'
21843  HAVE_GLIB_FALSE=
21844fi
21845
21846
21847#
21848# Check for GLIB's gobject 2.0
21849#
21850# Check whether --enable-gobject was given.
21851if test "${enable_gobject+set}" = set; then :
21852  enableval=$enable_gobject; case "${enableval}" in
21853                yes) HAVE_GOBJECT=yes ;;
21854                no)  HAVE_GOBJECT=no ;;
21855                *) as_fn_error $? "bad value ${enableval} for --enable-gobject" "$LINENO" 5 ;;
21856        esac
21857else
21858  HAVE_GOBJECT=yes
21859fi
21860
21861
21862if test "x$HAVE_GOBJECT" = "xyes" ; then
21863
21864pkg_failed=no
21865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
21866$as_echo_n "checking for GOBJECT... " >&6; }
21867
21868if test -n "$GOBJECT_CFLAGS"; then
21869    pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
21870 elif test -n "$PKG_CONFIG"; then
21871    if test -n "$PKG_CONFIG" && \
21872    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.4.0 gobject-2.0 \""; } >&5
21873  ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.4.0 gobject-2.0 ") 2>&5
21874  ac_status=$?
21875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21876  test $ac_status = 0; }; then
21877  pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags " glib-2.0 >= 2.4.0 gobject-2.0 " 2>/dev/null`
21878		      test "x$?" != "x0" && pkg_failed=yes
21879else
21880  pkg_failed=yes
21881fi
21882 else
21883    pkg_failed=untried
21884fi
21885if test -n "$GOBJECT_LIBS"; then
21886    pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
21887 elif test -n "$PKG_CONFIG"; then
21888    if test -n "$PKG_CONFIG" && \
21889    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.4.0 gobject-2.0 \""; } >&5
21890  ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.4.0 gobject-2.0 ") 2>&5
21891  ac_status=$?
21892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21893  test $ac_status = 0; }; then
21894  pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs " glib-2.0 >= 2.4.0 gobject-2.0 " 2>/dev/null`
21895		      test "x$?" != "x0" && pkg_failed=yes
21896else
21897  pkg_failed=yes
21898fi
21899 else
21900    pkg_failed=untried
21901fi
21902
21903
21904
21905if test $pkg_failed = yes; then
21906   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21907$as_echo "no" >&6; }
21908
21909if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21910        _pkg_short_errors_supported=yes
21911else
21912        _pkg_short_errors_supported=no
21913fi
21914        if test $_pkg_short_errors_supported = yes; then
21915	        GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " glib-2.0 >= 2.4.0 gobject-2.0 " 2>&1`
21916        else
21917	        GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " glib-2.0 >= 2.4.0 gobject-2.0 " 2>&1`
21918        fi
21919	# Put the nasty error message in config.log where it belongs
21920	echo "$GOBJECT_PKG_ERRORS" >&5
21921
21922	as_fn_error $? "Package requirements ( glib-2.0 >= 2.4.0 gobject-2.0 ) were not met:
21923
21924$GOBJECT_PKG_ERRORS
21925
21926Consider adjusting the PKG_CONFIG_PATH environment variable if you
21927installed software in a non-standard prefix.
21928
21929Alternatively, you may set the environment variables GOBJECT_CFLAGS
21930and GOBJECT_LIBS to avoid the need to call pkg-config.
21931See the pkg-config man page for more details." "$LINENO" 5
21932elif test $pkg_failed = untried; then
21933     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21934$as_echo "no" >&6; }
21935	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21937as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21938is in your PATH or set the PKG_CONFIG environment variable to the full
21939path to pkg-config.
21940
21941Alternatively, you may set the environment variables GOBJECT_CFLAGS
21942and GOBJECT_LIBS to avoid the need to call pkg-config.
21943See the pkg-config man page for more details.
21944
21945To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21946See \`config.log' for more details" "$LINENO" 5; }
21947else
21948	GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
21949	GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
21950        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21951$as_echo "yes" >&6; }
21952
21953fi
21954
21955
21956fi
21957 if test "x$HAVE_GOBJECT" = "xyes"; then
21958  HAVE_GOBJECT_TRUE=
21959  HAVE_GOBJECT_FALSE='#'
21960else
21961  HAVE_GOBJECT_TRUE='#'
21962  HAVE_GOBJECT_FALSE=
21963fi
21964
21965
21966#
21967# Introspection support.
21968#
21969
21970
21971
21972                # Check whether --enable-introspection was given.
21973if test "${enable_introspection+set}" = set; then :
21974  enableval=$enable_introspection;
21975else
21976  enable_introspection=auto
21977fi
21978
21979
21980    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
21981$as_echo_n "checking for gobject-introspection... " >&6; }
21982
21983        case $enable_introspection in #(
21984  no) :
21985            found_introspection="no (disabled, use --enable-introspection to enable)"
21986     ;; #(
21987      yes) :
21988            if test -n "$PKG_CONFIG" && \
21989    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
21990  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
21991  ac_status=$?
21992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21993  test $ac_status = 0; }; then
21994  :
21995else
21996  as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
21997fi
21998        if test -n "$PKG_CONFIG" && \
21999    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
22000  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
22001  ac_status=$?
22002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22003  test $ac_status = 0; }; then
22004  found_introspection=yes
22005else
22006  as_fn_error $? "You need to have gobject-introspection >= 0.9.5 installed to build avahi" "$LINENO" 5
22007fi
22008     ;; #(
22009      auto) :
22010            if test -n "$PKG_CONFIG" && \
22011    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
22012  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
22013  ac_status=$?
22014  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22015  test $ac_status = 0; }; then
22016  found_introspection=yes
22017else
22018  found_introspection=no
22019fi
22020     ;; #(
22021  *) :
22022                as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
22023     ;;
22024esac
22025    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
22026$as_echo "$found_introspection" >&6; }
22027
22028    INTROSPECTION_SCANNER=
22029    INTROSPECTION_COMPILER=
22030    INTROSPECTION_GENERATE=
22031    INTROSPECTION_GIRDIR=
22032    INTROSPECTION_TYPELIBDIR=
22033    if test "x$found_introspection" = "xyes"; then
22034       INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
22035       INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
22036       INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
22037       INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
22038       INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
22039       INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
22040       INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
22041       INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
22042    fi
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052     if test "x$found_introspection" = "xyes"; then
22053  HAVE_INTROSPECTION_TRUE=
22054  HAVE_INTROSPECTION_FALSE='#'
22055else
22056  HAVE_INTROSPECTION_TRUE='#'
22057  HAVE_INTROSPECTION_FALSE=
22058fi
22059
22060
22061
22062
22063#
22064# Check for libevent 2.0.21
22065#
22066# Check whether --enable-libevent was given.
22067if test "${enable_libevent+set}" = set; then :
22068  enableval=$enable_libevent; case "${enableval}" in
22069		yes) HAVE_LIBEVENT=yes ;;
22070		no)  HAVE_LIBEVENT=no ;;
22071		*) as_fn_error $? "bad value ${enableval} for --enable-libevent" "$LINENO" 5 ;;
22072	esac
22073else
22074  HAVE_LIBEVENT=yes
22075fi
22076
22077
22078if test "x$HAVE_LIBEVENT" = "xyes" ; then
22079
22080pkg_failed=no
22081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEVENT" >&5
22082$as_echo_n "checking for LIBEVENT... " >&6; }
22083
22084if test -n "$LIBEVENT_CFLAGS"; then
22085    pkg_cv_LIBEVENT_CFLAGS="$LIBEVENT_CFLAGS"
22086 elif test -n "$PKG_CONFIG"; then
22087    if test -n "$PKG_CONFIG" && \
22088    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libevent >= 2.0.21 \""; } >&5
22089  ($PKG_CONFIG --exists --print-errors " libevent >= 2.0.21 ") 2>&5
22090  ac_status=$?
22091  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22092  test $ac_status = 0; }; then
22093  pkg_cv_LIBEVENT_CFLAGS=`$PKG_CONFIG --cflags " libevent >= 2.0.21 " 2>/dev/null`
22094		      test "x$?" != "x0" && pkg_failed=yes
22095else
22096  pkg_failed=yes
22097fi
22098 else
22099    pkg_failed=untried
22100fi
22101if test -n "$LIBEVENT_LIBS"; then
22102    pkg_cv_LIBEVENT_LIBS="$LIBEVENT_LIBS"
22103 elif test -n "$PKG_CONFIG"; then
22104    if test -n "$PKG_CONFIG" && \
22105    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libevent >= 2.0.21 \""; } >&5
22106  ($PKG_CONFIG --exists --print-errors " libevent >= 2.0.21 ") 2>&5
22107  ac_status=$?
22108  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22109  test $ac_status = 0; }; then
22110  pkg_cv_LIBEVENT_LIBS=`$PKG_CONFIG --libs " libevent >= 2.0.21 " 2>/dev/null`
22111		      test "x$?" != "x0" && pkg_failed=yes
22112else
22113  pkg_failed=yes
22114fi
22115 else
22116    pkg_failed=untried
22117fi
22118
22119
22120
22121if test $pkg_failed = yes; then
22122   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22123$as_echo "no" >&6; }
22124
22125if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22126        _pkg_short_errors_supported=yes
22127else
22128        _pkg_short_errors_supported=no
22129fi
22130        if test $_pkg_short_errors_supported = yes; then
22131	        LIBEVENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " libevent >= 2.0.21 " 2>&1`
22132        else
22133	        LIBEVENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " libevent >= 2.0.21 " 2>&1`
22134        fi
22135	# Put the nasty error message in config.log where it belongs
22136	echo "$LIBEVENT_PKG_ERRORS" >&5
22137
22138	as_fn_error $? "Package requirements ( libevent >= 2.0.21 ) were not met:
22139
22140$LIBEVENT_PKG_ERRORS
22141
22142Consider adjusting the PKG_CONFIG_PATH environment variable if you
22143installed software in a non-standard prefix.
22144
22145Alternatively, you may set the environment variables LIBEVENT_CFLAGS
22146and LIBEVENT_LIBS to avoid the need to call pkg-config.
22147See the pkg-config man page for more details." "$LINENO" 5
22148elif test $pkg_failed = untried; then
22149     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22150$as_echo "no" >&6; }
22151	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22153as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22154is in your PATH or set the PKG_CONFIG environment variable to the full
22155path to pkg-config.
22156
22157Alternatively, you may set the environment variables LIBEVENT_CFLAGS
22158and LIBEVENT_LIBS to avoid the need to call pkg-config.
22159See the pkg-config man page for more details.
22160
22161To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22162See \`config.log' for more details" "$LINENO" 5; }
22163else
22164	LIBEVENT_CFLAGS=$pkg_cv_LIBEVENT_CFLAGS
22165	LIBEVENT_LIBS=$pkg_cv_LIBEVENT_LIBS
22166        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22167$as_echo "yes" >&6; }
22168
22169fi
22170
22171
22172fi
22173 if test "x$HAVE_LIBEVENT" = "xyes"; then
22174  HAVE_LIBEVENT_TRUE=
22175  HAVE_LIBEVENT_FALSE='#'
22176else
22177  HAVE_LIBEVENT_TRUE='#'
22178  HAVE_LIBEVENT_FALSE=
22179fi
22180
22181
22182#
22183# Check for Qt 3
22184#
22185# Check whether --enable-qt3 was given.
22186if test "${enable_qt3+set}" = set; then :
22187  enableval=$enable_qt3; case "${enableval}" in
22188                yes) HAVE_QT3=yes ;;
22189                no)  HAVE_QT3=no ;;
22190                *) as_fn_error $? "bad value ${enableval} for --enable-qt3" "$LINENO" 5 ;;
22191        esac
22192else
22193  HAVE_QT3=no
22194fi
22195
22196
22197if test "x$HAVE_QT3" = "xyes" ; then
22198
22199pkg_failed=no
22200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT3" >&5
22201$as_echo_n "checking for QT3... " >&6; }
22202
22203if test -n "$QT3_CFLAGS"; then
22204    pkg_cv_QT3_CFLAGS="$QT3_CFLAGS"
22205 elif test -n "$PKG_CONFIG"; then
22206    if test -n "$PKG_CONFIG" && \
22207    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" qt-mt >= 3.0.0 \""; } >&5
22208  ($PKG_CONFIG --exists --print-errors " qt-mt >= 3.0.0 ") 2>&5
22209  ac_status=$?
22210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22211  test $ac_status = 0; }; then
22212  pkg_cv_QT3_CFLAGS=`$PKG_CONFIG --cflags " qt-mt >= 3.0.0 " 2>/dev/null`
22213		      test "x$?" != "x0" && pkg_failed=yes
22214else
22215  pkg_failed=yes
22216fi
22217 else
22218    pkg_failed=untried
22219fi
22220if test -n "$QT3_LIBS"; then
22221    pkg_cv_QT3_LIBS="$QT3_LIBS"
22222 elif test -n "$PKG_CONFIG"; then
22223    if test -n "$PKG_CONFIG" && \
22224    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" qt-mt >= 3.0.0 \""; } >&5
22225  ($PKG_CONFIG --exists --print-errors " qt-mt >= 3.0.0 ") 2>&5
22226  ac_status=$?
22227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22228  test $ac_status = 0; }; then
22229  pkg_cv_QT3_LIBS=`$PKG_CONFIG --libs " qt-mt >= 3.0.0 " 2>/dev/null`
22230		      test "x$?" != "x0" && pkg_failed=yes
22231else
22232  pkg_failed=yes
22233fi
22234 else
22235    pkg_failed=untried
22236fi
22237
22238
22239
22240if test $pkg_failed = yes; then
22241   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22242$as_echo "no" >&6; }
22243
22244if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22245        _pkg_short_errors_supported=yes
22246else
22247        _pkg_short_errors_supported=no
22248fi
22249        if test $_pkg_short_errors_supported = yes; then
22250	        QT3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " qt-mt >= 3.0.0 " 2>&1`
22251        else
22252	        QT3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " qt-mt >= 3.0.0 " 2>&1`
22253        fi
22254	# Put the nasty error message in config.log where it belongs
22255	echo "$QT3_PKG_ERRORS" >&5
22256
22257	as_fn_error $? "Package requirements ( qt-mt >= 3.0.0 ) were not met:
22258
22259$QT3_PKG_ERRORS
22260
22261Consider adjusting the PKG_CONFIG_PATH environment variable if you
22262installed software in a non-standard prefix.
22263
22264Alternatively, you may set the environment variables QT3_CFLAGS
22265and QT3_LIBS to avoid the need to call pkg-config.
22266See the pkg-config man page for more details." "$LINENO" 5
22267elif test $pkg_failed = untried; then
22268     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22269$as_echo "no" >&6; }
22270	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22272as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22273is in your PATH or set the PKG_CONFIG environment variable to the full
22274path to pkg-config.
22275
22276Alternatively, you may set the environment variables QT3_CFLAGS
22277and QT3_LIBS to avoid the need to call pkg-config.
22278See the pkg-config man page for more details.
22279
22280To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22281See \`config.log' for more details" "$LINENO" 5; }
22282else
22283	QT3_CFLAGS=$pkg_cv_QT3_CFLAGS
22284	QT3_LIBS=$pkg_cv_QT3_LIBS
22285        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22286$as_echo "yes" >&6; }
22287
22288fi
22289
22290
22291	    QT3_PREFIX="`$PKG_CONFIG --variable=prefix qt-mt`/bin"
22292        for ac_prog in moc-qt3 moc
22293do
22294  # Extract the first word of "$ac_prog", so it can be a program name with args.
22295set dummy $ac_prog; ac_word=$2
22296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22297$as_echo_n "checking for $ac_word... " >&6; }
22298if ${ac_cv_path_MOC_QT3+:} false; then :
22299  $as_echo_n "(cached) " >&6
22300else
22301  case $MOC_QT3 in
22302  [\\/]* | ?:[\\/]*)
22303  ac_cv_path_MOC_QT3="$MOC_QT3" # Let the user override the test with a path.
22304  ;;
22305  *)
22306  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22307for as_dir in $QT3_PREFIX
22308do
22309  IFS=$as_save_IFS
22310  test -z "$as_dir" && as_dir=.
22311    for ac_exec_ext in '' $ac_executable_extensions; do
22312  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22313    ac_cv_path_MOC_QT3="$as_dir/$ac_word$ac_exec_ext"
22314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22315    break 2
22316  fi
22317done
22318  done
22319IFS=$as_save_IFS
22320
22321  ;;
22322esac
22323fi
22324MOC_QT3=$ac_cv_path_MOC_QT3
22325if test -n "$MOC_QT3"; then
22326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC_QT3" >&5
22327$as_echo "$MOC_QT3" >&6; }
22328else
22329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22330$as_echo "no" >&6; }
22331fi
22332
22333
22334  test -n "$MOC_QT3" && break
22335done
22336test -n "$MOC_QT3" || MOC_QT3="no"
22337
22338        if test "$MOC_QT3" = no; then
22339            as_fn_error $? "Could not find QT3 moc" "$LINENO" 5
22340        fi
22341
22342fi
22343 if test "x$HAVE_QT3" = "xyes"; then
22344  HAVE_QT3_TRUE=
22345  HAVE_QT3_FALSE='#'
22346else
22347  HAVE_QT3_TRUE='#'
22348  HAVE_QT3_FALSE=
22349fi
22350
22351
22352#
22353# Check for Qt 4
22354#
22355# Check whether --enable-qt4 was given.
22356if test "${enable_qt4+set}" = set; then :
22357  enableval=$enable_qt4; case "${enableval}" in
22358                yes) HAVE_QT4=yes ;;
22359                no)  HAVE_QT4=no ;;
22360                *) as_fn_error $? "bad value ${enableval} for --enable-qt4" "$LINENO" 5 ;;
22361        esac
22362else
22363  HAVE_QT4=no
22364fi
22365
22366
22367if test "x$HAVE_QT4" = "xyes" ; then
22368
22369pkg_failed=no
22370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT4" >&5
22371$as_echo_n "checking for QT4... " >&6; }
22372
22373if test -n "$QT4_CFLAGS"; then
22374    pkg_cv_QT4_CFLAGS="$QT4_CFLAGS"
22375 elif test -n "$PKG_CONFIG"; then
22376    if test -n "$PKG_CONFIG" && \
22377    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" QtCore >= 4.0.0 \""; } >&5
22378  ($PKG_CONFIG --exists --print-errors " QtCore >= 4.0.0 ") 2>&5
22379  ac_status=$?
22380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22381  test $ac_status = 0; }; then
22382  pkg_cv_QT4_CFLAGS=`$PKG_CONFIG --cflags " QtCore >= 4.0.0 " 2>/dev/null`
22383		      test "x$?" != "x0" && pkg_failed=yes
22384else
22385  pkg_failed=yes
22386fi
22387 else
22388    pkg_failed=untried
22389fi
22390if test -n "$QT4_LIBS"; then
22391    pkg_cv_QT4_LIBS="$QT4_LIBS"
22392 elif test -n "$PKG_CONFIG"; then
22393    if test -n "$PKG_CONFIG" && \
22394    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" QtCore >= 4.0.0 \""; } >&5
22395  ($PKG_CONFIG --exists --print-errors " QtCore >= 4.0.0 ") 2>&5
22396  ac_status=$?
22397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22398  test $ac_status = 0; }; then
22399  pkg_cv_QT4_LIBS=`$PKG_CONFIG --libs " QtCore >= 4.0.0 " 2>/dev/null`
22400		      test "x$?" != "x0" && pkg_failed=yes
22401else
22402  pkg_failed=yes
22403fi
22404 else
22405    pkg_failed=untried
22406fi
22407
22408
22409
22410if test $pkg_failed = yes; then
22411   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22412$as_echo "no" >&6; }
22413
22414if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22415        _pkg_short_errors_supported=yes
22416else
22417        _pkg_short_errors_supported=no
22418fi
22419        if test $_pkg_short_errors_supported = yes; then
22420	        QT4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " QtCore >= 4.0.0 " 2>&1`
22421        else
22422	        QT4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " QtCore >= 4.0.0 " 2>&1`
22423        fi
22424	# Put the nasty error message in config.log where it belongs
22425	echo "$QT4_PKG_ERRORS" >&5
22426
22427	as_fn_error $? "Package requirements ( QtCore >= 4.0.0 ) were not met:
22428
22429$QT4_PKG_ERRORS
22430
22431Consider adjusting the PKG_CONFIG_PATH environment variable if you
22432installed software in a non-standard prefix.
22433
22434Alternatively, you may set the environment variables QT4_CFLAGS
22435and QT4_LIBS to avoid the need to call pkg-config.
22436See the pkg-config man page for more details." "$LINENO" 5
22437elif test $pkg_failed = untried; then
22438     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22439$as_echo "no" >&6; }
22440	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22442as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22443is in your PATH or set the PKG_CONFIG environment variable to the full
22444path to pkg-config.
22445
22446Alternatively, you may set the environment variables QT4_CFLAGS
22447and QT4_LIBS to avoid the need to call pkg-config.
22448See the pkg-config man page for more details.
22449
22450To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22451See \`config.log' for more details" "$LINENO" 5; }
22452else
22453	QT4_CFLAGS=$pkg_cv_QT4_CFLAGS
22454	QT4_LIBS=$pkg_cv_QT4_LIBS
22455        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22456$as_echo "yes" >&6; }
22457
22458fi
22459
22460
22461	    QT4_PREFIX="`$PKG_CONFIG --variable=prefix QtCore`/bin"
22462        for ac_prog in moc-qt4 moc
22463do
22464  # Extract the first word of "$ac_prog", so it can be a program name with args.
22465set dummy $ac_prog; ac_word=$2
22466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22467$as_echo_n "checking for $ac_word... " >&6; }
22468if ${ac_cv_path_MOC_QT4+:} false; then :
22469  $as_echo_n "(cached) " >&6
22470else
22471  case $MOC_QT4 in
22472  [\\/]* | ?:[\\/]*)
22473  ac_cv_path_MOC_QT4="$MOC_QT4" # Let the user override the test with a path.
22474  ;;
22475  *)
22476  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22477for as_dir in $QT4_PREFIX
22478do
22479  IFS=$as_save_IFS
22480  test -z "$as_dir" && as_dir=.
22481    for ac_exec_ext in '' $ac_executable_extensions; do
22482  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22483    ac_cv_path_MOC_QT4="$as_dir/$ac_word$ac_exec_ext"
22484    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22485    break 2
22486  fi
22487done
22488  done
22489IFS=$as_save_IFS
22490
22491  ;;
22492esac
22493fi
22494MOC_QT4=$ac_cv_path_MOC_QT4
22495if test -n "$MOC_QT4"; then
22496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC_QT4" >&5
22497$as_echo "$MOC_QT4" >&6; }
22498else
22499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22500$as_echo "no" >&6; }
22501fi
22502
22503
22504  test -n "$MOC_QT4" && break
22505done
22506test -n "$MOC_QT4" || MOC_QT4="no"
22507
22508        if test "$MOC_QT4" = no; then
22509            as_fn_error $? "Could not find QT4 moc" "$LINENO" 5
22510        fi
22511
22512fi
22513 if test "x$HAVE_QT4" = "xyes"; then
22514  HAVE_QT4_TRUE=
22515  HAVE_QT4_FALSE='#'
22516else
22517  HAVE_QT4_TRUE='#'
22518  HAVE_QT4_FALSE=
22519fi
22520
22521
22522#
22523# Check for Qt 5
22524#
22525# Check whether --enable-qt5 was given.
22526if test "${enable_qt5+set}" = set; then :
22527  enableval=$enable_qt5; case "${enableval}" in
22528                yes) HAVE_QT5=yes ;;
22529                no)  HAVE_QT5=no ;;
22530                *) as_fn_error $? "bad value ${enableval} for --enable-qt5" "$LINENO" 5 ;;
22531        esac
22532else
22533  HAVE_QT5=yes
22534fi
22535
22536
22537if test "x$HAVE_QT5" = "xyes" ; then
22538
22539pkg_failed=no
22540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT5" >&5
22541$as_echo_n "checking for QT5... " >&6; }
22542
22543if test -n "$QT5_CFLAGS"; then
22544    pkg_cv_QT5_CFLAGS="$QT5_CFLAGS"
22545 elif test -n "$PKG_CONFIG"; then
22546    if test -n "$PKG_CONFIG" && \
22547    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" Qt5Core >= 5.0.0 \""; } >&5
22548  ($PKG_CONFIG --exists --print-errors " Qt5Core >= 5.0.0 ") 2>&5
22549  ac_status=$?
22550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22551  test $ac_status = 0; }; then
22552  pkg_cv_QT5_CFLAGS=`$PKG_CONFIG --cflags " Qt5Core >= 5.0.0 " 2>/dev/null`
22553		      test "x$?" != "x0" && pkg_failed=yes
22554else
22555  pkg_failed=yes
22556fi
22557 else
22558    pkg_failed=untried
22559fi
22560if test -n "$QT5_LIBS"; then
22561    pkg_cv_QT5_LIBS="$QT5_LIBS"
22562 elif test -n "$PKG_CONFIG"; then
22563    if test -n "$PKG_CONFIG" && \
22564    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" Qt5Core >= 5.0.0 \""; } >&5
22565  ($PKG_CONFIG --exists --print-errors " Qt5Core >= 5.0.0 ") 2>&5
22566  ac_status=$?
22567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22568  test $ac_status = 0; }; then
22569  pkg_cv_QT5_LIBS=`$PKG_CONFIG --libs " Qt5Core >= 5.0.0 " 2>/dev/null`
22570		      test "x$?" != "x0" && pkg_failed=yes
22571else
22572  pkg_failed=yes
22573fi
22574 else
22575    pkg_failed=untried
22576fi
22577
22578
22579
22580if test $pkg_failed = yes; then
22581   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22582$as_echo "no" >&6; }
22583
22584if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22585        _pkg_short_errors_supported=yes
22586else
22587        _pkg_short_errors_supported=no
22588fi
22589        if test $_pkg_short_errors_supported = yes; then
22590	        QT5_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " Qt5Core >= 5.0.0 " 2>&1`
22591        else
22592	        QT5_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " Qt5Core >= 5.0.0 " 2>&1`
22593        fi
22594	# Put the nasty error message in config.log where it belongs
22595	echo "$QT5_PKG_ERRORS" >&5
22596
22597	as_fn_error $? "Package requirements ( Qt5Core >= 5.0.0 ) were not met:
22598
22599$QT5_PKG_ERRORS
22600
22601Consider adjusting the PKG_CONFIG_PATH environment variable if you
22602installed software in a non-standard prefix.
22603
22604Alternatively, you may set the environment variables QT5_CFLAGS
22605and QT5_LIBS to avoid the need to call pkg-config.
22606See the pkg-config man page for more details." "$LINENO" 5
22607elif test $pkg_failed = untried; then
22608     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22609$as_echo "no" >&6; }
22610	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22612as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22613is in your PATH or set the PKG_CONFIG environment variable to the full
22614path to pkg-config.
22615
22616Alternatively, you may set the environment variables QT5_CFLAGS
22617and QT5_LIBS to avoid the need to call pkg-config.
22618See the pkg-config man page for more details.
22619
22620To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22621See \`config.log' for more details" "$LINENO" 5; }
22622else
22623	QT5_CFLAGS=$pkg_cv_QT5_CFLAGS
22624	QT5_LIBS=$pkg_cv_QT5_LIBS
22625        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22626$as_echo "yes" >&6; }
22627
22628fi
22629
22630
22631    ac_ext=cpp
22632ac_cpp='$CXXCPP $CPPFLAGS'
22633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22636
22637	save_CPPFLAGS="$CPPFLAGS"
22638	CPPFLAGS="$CPPFLAGS $QT5_CFLAGS"
22639	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Qt works without -fPIC" >&5
22640$as_echo_n "checking whether Qt works without -fPIC... " >&6; }
22641	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22642/* end confdefs.h.  */
22643#include <QtCore>
22644_ACEOF
22645if ac_fn_cxx_try_cpp "$LINENO"; then :
22646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22647$as_echo "yes" >&6; }
22648else
22649
22650			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22651$as_echo "no" >&6; }
22652			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Qt works with -fPIC" >&5
22653$as_echo_n "checking whether Qt works with -fPIC... " >&6; }
22654			CPPFLAGS="$CPPFLAGS -fPIC"
22655			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22656/* end confdefs.h.  */
22657#include <QtCore>
22658_ACEOF
22659if ac_fn_cxx_try_cpp "$LINENO"; then :
22660
22661					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22662$as_echo "yes" >&6; }
22663					QT5_CFLAGS="$QT5_CFLAGS -fPIC"
22664
22665else
22666
22667					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22668$as_echo "no" >&6; }
22669					as_fn_error $? "Couldn't compile Qt without -fPIC nor with -fPIC" "$LINENO" 5
22670
22671fi
22672rm -f conftest.err conftest.i conftest.$ac_ext
22673
22674fi
22675rm -f conftest.err conftest.i conftest.$ac_ext
22676	CPPFLAGS="$save_CPPFLAGS"
22677    ac_ext=c
22678ac_cpp='$CPP $CPPFLAGS'
22679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22681ac_compiler_gnu=$ac_cv_c_compiler_gnu
22682
22683
22684
22685
22686        QT5_PREFIX="`$PKG_CONFIG --variable=host_bins Qt5Core`"
22687        for ac_prog in moc-qt5 moc
22688do
22689  # Extract the first word of "$ac_prog", so it can be a program name with args.
22690set dummy $ac_prog; ac_word=$2
22691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22692$as_echo_n "checking for $ac_word... " >&6; }
22693if ${ac_cv_path_MOC_QT5+:} false; then :
22694  $as_echo_n "(cached) " >&6
22695else
22696  case $MOC_QT5 in
22697  [\\/]* | ?:[\\/]*)
22698  ac_cv_path_MOC_QT5="$MOC_QT5" # Let the user override the test with a path.
22699  ;;
22700  *)
22701  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22702for as_dir in $QT5_PREFIX
22703do
22704  IFS=$as_save_IFS
22705  test -z "$as_dir" && as_dir=.
22706    for ac_exec_ext in '' $ac_executable_extensions; do
22707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22708    ac_cv_path_MOC_QT5="$as_dir/$ac_word$ac_exec_ext"
22709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22710    break 2
22711  fi
22712done
22713  done
22714IFS=$as_save_IFS
22715
22716  ;;
22717esac
22718fi
22719MOC_QT5=$ac_cv_path_MOC_QT5
22720if test -n "$MOC_QT5"; then
22721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC_QT5" >&5
22722$as_echo "$MOC_QT5" >&6; }
22723else
22724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22725$as_echo "no" >&6; }
22726fi
22727
22728
22729  test -n "$MOC_QT5" && break
22730done
22731test -n "$MOC_QT5" || MOC_QT5="no"
22732
22733        if test "$MOC_QT5" = no; then
22734            as_fn_error $? "Could not find QT5 moc" "$LINENO" 5
22735        fi
22736
22737fi
22738 if test "x$HAVE_QT5" = "xyes"; then
22739  HAVE_QT5_TRUE=
22740  HAVE_QT5_FALSE='#'
22741else
22742  HAVE_QT5_TRUE='#'
22743  HAVE_QT5_FALSE=
22744fi
22745
22746
22747#
22748# Check for GTK+ 2.0
22749#
22750# Check whether --enable-gtk was given.
22751if test "${enable_gtk+set}" = set; then :
22752  enableval=$enable_gtk; case "${enableval}" in
22753                yes) HAVE_GTK=yes ;;
22754                no)  HAVE_GTK=no ;;
22755                *) as_fn_error $? "bad value ${enableval} for --enable-gtk" "$LINENO" 5 ;;
22756        esac
22757else
22758  HAVE_GTK=no
22759fi
22760
22761
22762if test "x$HAVE_GTK" = "xyes" ; then
22763        # Check for GTK 2.0
22764
22765pkg_failed=no
22766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK20" >&5
22767$as_echo_n "checking for GTK20... " >&6; }
22768
22769if test -n "$GTK20_CFLAGS"; then
22770    pkg_cv_GTK20_CFLAGS="$GTK20_CFLAGS"
22771 elif test -n "$PKG_CONFIG"; then
22772    if test -n "$PKG_CONFIG" && \
22773    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0 >= 2.14.0 \""; } >&5
22774  ($PKG_CONFIG --exists --print-errors " gtk+-2.0 >= 2.14.0 ") 2>&5
22775  ac_status=$?
22776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22777  test $ac_status = 0; }; then
22778  pkg_cv_GTK20_CFLAGS=`$PKG_CONFIG --cflags " gtk+-2.0 >= 2.14.0 " 2>/dev/null`
22779		      test "x$?" != "x0" && pkg_failed=yes
22780else
22781  pkg_failed=yes
22782fi
22783 else
22784    pkg_failed=untried
22785fi
22786if test -n "$GTK20_LIBS"; then
22787    pkg_cv_GTK20_LIBS="$GTK20_LIBS"
22788 elif test -n "$PKG_CONFIG"; then
22789    if test -n "$PKG_CONFIG" && \
22790    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0 >= 2.14.0 \""; } >&5
22791  ($PKG_CONFIG --exists --print-errors " gtk+-2.0 >= 2.14.0 ") 2>&5
22792  ac_status=$?
22793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22794  test $ac_status = 0; }; then
22795  pkg_cv_GTK20_LIBS=`$PKG_CONFIG --libs " gtk+-2.0 >= 2.14.0 " 2>/dev/null`
22796		      test "x$?" != "x0" && pkg_failed=yes
22797else
22798  pkg_failed=yes
22799fi
22800 else
22801    pkg_failed=untried
22802fi
22803
22804
22805
22806if test $pkg_failed = yes; then
22807   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22808$as_echo "no" >&6; }
22809
22810if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22811        _pkg_short_errors_supported=yes
22812else
22813        _pkg_short_errors_supported=no
22814fi
22815        if test $_pkg_short_errors_supported = yes; then
22816	        GTK20_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " gtk+-2.0 >= 2.14.0 " 2>&1`
22817        else
22818	        GTK20_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " gtk+-2.0 >= 2.14.0 " 2>&1`
22819        fi
22820	# Put the nasty error message in config.log where it belongs
22821	echo "$GTK20_PKG_ERRORS" >&5
22822
22823	as_fn_error $? "Package requirements ( gtk+-2.0 >= 2.14.0 ) were not met:
22824
22825$GTK20_PKG_ERRORS
22826
22827Consider adjusting the PKG_CONFIG_PATH environment variable if you
22828installed software in a non-standard prefix.
22829
22830Alternatively, you may set the environment variables GTK20_CFLAGS
22831and GTK20_LIBS to avoid the need to call pkg-config.
22832See the pkg-config man page for more details." "$LINENO" 5
22833elif test $pkg_failed = untried; then
22834     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22835$as_echo "no" >&6; }
22836	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22838as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22839is in your PATH or set the PKG_CONFIG environment variable to the full
22840path to pkg-config.
22841
22842Alternatively, you may set the environment variables GTK20_CFLAGS
22843and GTK20_LIBS to avoid the need to call pkg-config.
22844See the pkg-config man page for more details.
22845
22846To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22847See \`config.log' for more details" "$LINENO" 5; }
22848else
22849	GTK20_CFLAGS=$pkg_cv_GTK20_CFLAGS
22850	GTK20_LIBS=$pkg_cv_GTK20_LIBS
22851        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22852$as_echo "yes" >&6; }
22853
22854fi
22855
22856
22857fi
22858 if test "x$HAVE_GTK" = "xyes"; then
22859  HAVE_GTK_TRUE=
22860  HAVE_GTK_FALSE='#'
22861else
22862  HAVE_GTK_TRUE='#'
22863  HAVE_GTK_FALSE=
22864fi
22865
22866
22867#
22868# Check for GTK+ 3.0
22869#
22870# Check whether --enable-gtk3 was given.
22871if test "${enable_gtk3+set}" = set; then :
22872  enableval=$enable_gtk3; case "${enableval}" in
22873                yes) HAVE_GTK3=yes ;;
22874                no)  HAVE_GTK3=no ;;
22875                *) as_fn_error $? "bad value ${enableval} for --enable-gtk3" "$LINENO" 5 ;;
22876        esac
22877else
22878  HAVE_GTK3=yes
22879fi
22880
22881
22882if test "x$HAVE_GTK3" = "xyes" ; then
22883        # Check for GTK 3.0
22884
22885pkg_failed=no
22886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK30" >&5
22887$as_echo_n "checking for GTK30... " >&6; }
22888
22889if test -n "$GTK30_CFLAGS"; then
22890    pkg_cv_GTK30_CFLAGS="$GTK30_CFLAGS"
22891 elif test -n "$PKG_CONFIG"; then
22892    if test -n "$PKG_CONFIG" && \
22893    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" gtk+-3.0 \""; } >&5
22894  ($PKG_CONFIG --exists --print-errors " gtk+-3.0 ") 2>&5
22895  ac_status=$?
22896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22897  test $ac_status = 0; }; then
22898  pkg_cv_GTK30_CFLAGS=`$PKG_CONFIG --cflags " gtk+-3.0 " 2>/dev/null`
22899		      test "x$?" != "x0" && pkg_failed=yes
22900else
22901  pkg_failed=yes
22902fi
22903 else
22904    pkg_failed=untried
22905fi
22906if test -n "$GTK30_LIBS"; then
22907    pkg_cv_GTK30_LIBS="$GTK30_LIBS"
22908 elif test -n "$PKG_CONFIG"; then
22909    if test -n "$PKG_CONFIG" && \
22910    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" gtk+-3.0 \""; } >&5
22911  ($PKG_CONFIG --exists --print-errors " gtk+-3.0 ") 2>&5
22912  ac_status=$?
22913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22914  test $ac_status = 0; }; then
22915  pkg_cv_GTK30_LIBS=`$PKG_CONFIG --libs " gtk+-3.0 " 2>/dev/null`
22916		      test "x$?" != "x0" && pkg_failed=yes
22917else
22918  pkg_failed=yes
22919fi
22920 else
22921    pkg_failed=untried
22922fi
22923
22924
22925
22926if test $pkg_failed = yes; then
22927   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22928$as_echo "no" >&6; }
22929
22930if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22931        _pkg_short_errors_supported=yes
22932else
22933        _pkg_short_errors_supported=no
22934fi
22935        if test $_pkg_short_errors_supported = yes; then
22936	        GTK30_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " gtk+-3.0 " 2>&1`
22937        else
22938	        GTK30_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " gtk+-3.0 " 2>&1`
22939        fi
22940	# Put the nasty error message in config.log where it belongs
22941	echo "$GTK30_PKG_ERRORS" >&5
22942
22943	as_fn_error $? "Package requirements ( gtk+-3.0 ) were not met:
22944
22945$GTK30_PKG_ERRORS
22946
22947Consider adjusting the PKG_CONFIG_PATH environment variable if you
22948installed software in a non-standard prefix.
22949
22950Alternatively, you may set the environment variables GTK30_CFLAGS
22951and GTK30_LIBS to avoid the need to call pkg-config.
22952See the pkg-config man page for more details." "$LINENO" 5
22953elif test $pkg_failed = untried; then
22954     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22955$as_echo "no" >&6; }
22956	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22958as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22959is in your PATH or set the PKG_CONFIG environment variable to the full
22960path to pkg-config.
22961
22962Alternatively, you may set the environment variables GTK30_CFLAGS
22963and GTK30_LIBS to avoid the need to call pkg-config.
22964See the pkg-config man page for more details.
22965
22966To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22967See \`config.log' for more details" "$LINENO" 5; }
22968else
22969	GTK30_CFLAGS=$pkg_cv_GTK30_CFLAGS
22970	GTK30_LIBS=$pkg_cv_GTK30_LIBS
22971        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22972$as_echo "yes" >&6; }
22973
22974fi
22975
22976
22977fi
22978 if test "x$HAVE_GTK3" = "xyes"; then
22979  HAVE_GTK3_TRUE=
22980  HAVE_GTK3_FALSE='#'
22981else
22982  HAVE_GTK3_TRUE='#'
22983  HAVE_GTK3_FALSE=
22984fi
22985
22986
22987 if test "x$HAVE_GTK3" = "xyes" -o "x$HAVE_GTK" = "xyes" ; then
22988  HAVE_GTK2OR3_TRUE=
22989  HAVE_GTK2OR3_FALSE='#'
22990else
22991  HAVE_GTK2OR3_TRUE='#'
22992  HAVE_GTK2OR3_FALSE=
22993fi
22994
22995
22996#
22997# D-Bus
22998#
22999# Check whether --enable-dbus was given.
23000if test "${enable_dbus+set}" = set; then :
23001  enableval=$enable_dbus; case "${enableval}" in
23002                yes) HAVE_DBUS=yes ;;
23003                no)  HAVE_DBUS=no ;;
23004                *) as_fn_error $? "bad value ${enableval} for --enable-dbus" "$LINENO" 5 ;;
23005        esac
23006else
23007  HAVE_DBUS=yes
23008fi
23009
23010
23011
23012# Check whether --with-dbus-sys was given.
23013if test "${with_dbus_sys+set}" = set; then :
23014  withval=$with_dbus_sys;
23015fi
23016
23017
23018# Check whether --with-dbus-system-socket was given.
23019if test "${with_dbus_system_socket+set}" = set; then :
23020  withval=$with_dbus_system_socket;
23021fi
23022
23023
23024DBUS_VERSION="Disabled"
23025DBUS_SYS_DIR="Disabled"
23026DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="Disabled"
23027if test "x$HAVE_DBUS" = "xyes" ; then
23028
23029pkg_failed=no
23030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
23031$as_echo_n "checking for DBUS... " >&6; }
23032
23033if test -n "$DBUS_CFLAGS"; then
23034    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
23035 elif test -n "$PKG_CONFIG"; then
23036    if test -n "$PKG_CONFIG" && \
23037    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" dbus-1 >= 0.34 \""; } >&5
23038  ($PKG_CONFIG --exists --print-errors " dbus-1 >= 0.34 ") 2>&5
23039  ac_status=$?
23040  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23041  test $ac_status = 0; }; then
23042  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags " dbus-1 >= 0.34 " 2>/dev/null`
23043		      test "x$?" != "x0" && pkg_failed=yes
23044else
23045  pkg_failed=yes
23046fi
23047 else
23048    pkg_failed=untried
23049fi
23050if test -n "$DBUS_LIBS"; then
23051    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
23052 elif test -n "$PKG_CONFIG"; then
23053    if test -n "$PKG_CONFIG" && \
23054    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" dbus-1 >= 0.34 \""; } >&5
23055  ($PKG_CONFIG --exists --print-errors " dbus-1 >= 0.34 ") 2>&5
23056  ac_status=$?
23057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23058  test $ac_status = 0; }; then
23059  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs " dbus-1 >= 0.34 " 2>/dev/null`
23060		      test "x$?" != "x0" && pkg_failed=yes
23061else
23062  pkg_failed=yes
23063fi
23064 else
23065    pkg_failed=untried
23066fi
23067
23068
23069
23070if test $pkg_failed = yes; then
23071   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23072$as_echo "no" >&6; }
23073
23074if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23075        _pkg_short_errors_supported=yes
23076else
23077        _pkg_short_errors_supported=no
23078fi
23079        if test $_pkg_short_errors_supported = yes; then
23080	        DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " dbus-1 >= 0.34 " 2>&1`
23081        else
23082	        DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " dbus-1 >= 0.34 " 2>&1`
23083        fi
23084	# Put the nasty error message in config.log where it belongs
23085	echo "$DBUS_PKG_ERRORS" >&5
23086
23087	as_fn_error $? "Package requirements ( dbus-1 >= 0.34 ) were not met:
23088
23089$DBUS_PKG_ERRORS
23090
23091Consider adjusting the PKG_CONFIG_PATH environment variable if you
23092installed software in a non-standard prefix.
23093
23094Alternatively, you may set the environment variables DBUS_CFLAGS
23095and DBUS_LIBS to avoid the need to call pkg-config.
23096See the pkg-config man page for more details." "$LINENO" 5
23097elif test $pkg_failed = untried; then
23098     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23099$as_echo "no" >&6; }
23100	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23102as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23103is in your PATH or set the PKG_CONFIG environment variable to the full
23104path to pkg-config.
23105
23106Alternatively, you may set the environment variables DBUS_CFLAGS
23107and DBUS_LIBS to avoid the need to call pkg-config.
23108See the pkg-config man page for more details.
23109
23110To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23111See \`config.log' for more details" "$LINENO" 5; }
23112else
23113	DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
23114	DBUS_LIBS=$pkg_cv_DBUS_LIBS
23115        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23116$as_echo "yes" >&6; }
23117
23118fi
23119
23120
23121$as_echo "#define HAVE_DBUS 1" >>confdefs.h
23122
23123
23124    DBUS_VERSION=`$PKG_CONFIG dbus-1 --modversion`
23125    DBUS_VERSION_MAJOR=`echo $DBUS_VERSION | awk -F. '{print $1}'`
23126    DBUS_VERSION_MINOR=`echo $DBUS_VERSION | awk -F. '{print $2}'`
23127    DBUS_VERSION_MICRO=`echo $DBUS_VERSION | awk -F. '{print $3}'`
23128    if test "z$DBUS_VERSION_MAJOR" = "z"; then
23129        DBUS_VERSION_MAJOR="0"
23130    fi
23131    if test "z$DBUS_VERSION_MINOR" = "z"; then
23132        DBUS_VERSION_MINOR="0"
23133    fi
23134    if test "z$DBUS_VERSION_MICRO" = "z"; then
23135        DBUS_VERSION_MICRO="0"
23136    fi
23137
23138    if test "z$DBUS_VERSION_MAJOR" = "z0" -a "z$DBUS_VERSION_MINOR" = "z0" -a "z$DBUS_VERSION_MICRO" = "z0"; then
23139        echo "Error: Couldn't determine the version of your D-Bus package."
23140        echo "  This is probably an error in this script, please report it"
23141        echo "  along with the following information:"
23142        echo "      Base D-Buss version ='$DBUS_VERSION'"
23143        echo "      DBUS_VERSION_MAJOR='$DBUS_VERSION_MAJOR'"
23144        echo "      DBUS_VERSION_MINOR='$DBUS_VERSION_MINOR'"
23145        echo "      DBUS_VERSION_MICRO='$DBUS_VERSION_MICRO'"
23146        exit 1
23147    else
23148        echo "Your D-Bus version is $DBUS_VERSION_MAJOR,$DBUS_VERSION_MINOR,$DBUS_VERSION_MICRO."
23149        DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MAJOR=$DBUS_VERSION_MAJOR"
23150        DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MINOR=$DBUS_VERSION_MINOR"
23151        DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MICRO=$DBUS_VERSION_MICRO"
23152    fi
23153
23154    DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
23155
23156
23157
23158    if ! test -z "$with_dbus_sys" ; then
23159        DBUS_SYS_DIR="$with_dbus_sys"
23160    else
23161        DBUS_SYS_DIR="${sysconfdir}/dbus-1/system.d"
23162    fi
23163
23164
23165    if ! test -z "$with_dbus_system_address" ; then
23166        DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="$with_dbus_system_address"
23167    else
23168        # This is ugly, but D-Bus doesn't export this address for us
23169        # so we have to guess, pretty much all setups i've seen have
23170        # it in /var/lib/dbus or /var/run/dbus, and its defaulted to
23171        # /var/run upstream so we will try guess first then default
23172        # to /var/run/dbus.
23173
23174        DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="unix:path=/var/run/dbus/system_bus_socket"
23175        TRY_SOCKETS="/var/lib/dbus/system_bus_socket /var/run/dbus/system_bus_socket ${localstatedir}/run/dbus/system_bus_socket ${prefix}/var/run/dbus/system_bus_socket"
23176        for sock in $TRY_SOCKETS; do
23177            if test -S $sock; then
23178                DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="unix:path=$sock"
23179            fi
23180        done
23181    fi
23182
23183
23184    SAVED_LIBS="$LIBS"
23185    LIBS="$LIBS $DBUS_LIBS"
23186    for ac_func in dbus_connection_close dbus_bus_get_private
23187do :
23188  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23189ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23190if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23191  cat >>confdefs.h <<_ACEOF
23192#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23193_ACEOF
23194
23195fi
23196done
23197
23198    LIBS="$SAVED_LIBS"
23199fi
23200 if test "x$HAVE_DBUS" = "xyes"; then
23201  HAVE_DBUS_TRUE=
23202  HAVE_DBUS_FALSE='#'
23203else
23204  HAVE_DBUS_TRUE='#'
23205  HAVE_DBUS_FALSE=
23206fi
23207
23208
23209#
23210# Expat
23211#
23212
23213# Check whether --with-xml was given.
23214if test "${with_xml+set}" = set; then :
23215  withval=$with_xml;
23216fi
23217
23218use_expat=false
23219use_bsdxml=false
23220
23221# See what we have
23222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
23223$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
23224if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
23225  $as_echo_n "(cached) " >&6
23226else
23227  ac_check_lib_save_LIBS=$LIBS
23228LIBS="-lexpat  $LIBS"
23229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23230/* end confdefs.h.  */
23231
23232/* Override any GCC internal prototype to avoid an error.
23233   Use char because int might match the return type of a GCC
23234   builtin and then its argument prototype would still apply.  */
23235#ifdef __cplusplus
23236extern "C"
23237#endif
23238char XML_ParserCreate ();
23239int
23240main ()
23241{
23242return XML_ParserCreate ();
23243  ;
23244  return 0;
23245}
23246_ACEOF
23247if ac_fn_c_try_link "$LINENO"; then :
23248  ac_cv_lib_expat_XML_ParserCreate=yes
23249else
23250  ac_cv_lib_expat_XML_ParserCreate=no
23251fi
23252rm -f core conftest.err conftest.$ac_objext \
23253    conftest$ac_exeext conftest.$ac_ext
23254LIBS=$ac_check_lib_save_LIBS
23255fi
23256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23257$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
23258if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
23259   for ac_header in expat.h
23260do :
23261  ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
23262if test "x$ac_cv_header_expat_h" = xyes; then :
23263  cat >>confdefs.h <<_ACEOF
23264#define HAVE_EXPAT_H 1
23265_ACEOF
23266 have_expat=true
23267else
23268  have_expat=false
23269fi
23270
23271done
23272
23273else
23274  have_expat=false
23275fi
23276
23277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lbsdxml" >&5
23278$as_echo_n "checking for XML_ParserCreate in -lbsdxml... " >&6; }
23279if ${ac_cv_lib_bsdxml_XML_ParserCreate+:} false; then :
23280  $as_echo_n "(cached) " >&6
23281else
23282  ac_check_lib_save_LIBS=$LIBS
23283LIBS="-lbsdxml  $LIBS"
23284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23285/* end confdefs.h.  */
23286
23287/* Override any GCC internal prototype to avoid an error.
23288   Use char because int might match the return type of a GCC
23289   builtin and then its argument prototype would still apply.  */
23290#ifdef __cplusplus
23291extern "C"
23292#endif
23293char XML_ParserCreate ();
23294int
23295main ()
23296{
23297return XML_ParserCreate ();
23298  ;
23299  return 0;
23300}
23301_ACEOF
23302if ac_fn_c_try_link "$LINENO"; then :
23303  ac_cv_lib_bsdxml_XML_ParserCreate=yes
23304else
23305  ac_cv_lib_bsdxml_XML_ParserCreate=no
23306fi
23307rm -f core conftest.err conftest.$ac_objext \
23308    conftest$ac_exeext conftest.$ac_ext
23309LIBS=$ac_check_lib_save_LIBS
23310fi
23311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsdxml_XML_ParserCreate" >&5
23312$as_echo "$ac_cv_lib_bsdxml_XML_ParserCreate" >&6; }
23313if test "x$ac_cv_lib_bsdxml_XML_ParserCreate" = xyes; then :
23314   for ac_header in bsdxml.h
23315do :
23316  ac_fn_c_check_header_mongrel "$LINENO" "bsdxml.h" "ac_cv_header_bsdxml_h" "$ac_includes_default"
23317if test "x$ac_cv_header_bsdxml_h" = xyes; then :
23318  cat >>confdefs.h <<_ACEOF
23319#define HAVE_BSDXML_H 1
23320_ACEOF
23321 have_bsdxml=true
23322else
23323  have_bsdxml=false
23324fi
23325
23326done
23327
23328else
23329  have_bsdxml=false
23330fi
23331
23332
23333if test "x$with_xml" = "xnone"; then
23334        :
23335elif test "x$with_xml" = "xexpat"; then
23336	use_expat=true
23337	if ! $have_expat ; then
23338		as_fn_error $? "*** libexpat requested, but not found ***" "$LINENO" 5
23339	fi
23340elif test "x$with_xml" = "xbsdxml"; then
23341	use_bsdxml=true
23342	if ! $have_bsdxml ; then
23343		as_fn_error $? "*** libbsdxml requested, but not found ***" "$LINENO" 5
23344	fi
23345elif test "x$with_xml" != "x"; then
23346	as_fn_error $? "*** unknown with-xml option ***" "$LINENO" 5
23347else
23348	if $have_expat ; then
23349		use_expat=true
23350	elif $have_bsdxml ; then
23351		use_bsdxml=true
23352	else
23353		as_fn_error $? "*** neither libexpat not libbsdxml could be found ***" "$LINENO" 5
23354	fi
23355fi
23356
23357if $use_expat; then
23358	with_xml=expat
23359	XML_CFLAGS=-DUSE_EXPAT_H
23360	XML_LIBS=-lexpat
23361fi
23362if $use_bsdxml; then
23363	with_xml=bsdxml
23364	XML_CFLAGS=-DUSE_BSDXML_H
23365	XML_LIBS=-lbsdxml
23366fi
23367
23368
23369
23370if $use_expat || $use_bsdxml; then
23371	HAVE_XML=yes
23372fi
23373
23374 if test "x$HAVE_XML" = "xyes"; then
23375  HAVE_XML_TRUE=
23376  HAVE_XML_FALSE='#'
23377else
23378  HAVE_XML_TRUE='#'
23379  HAVE_XML_FALSE=
23380fi
23381
23382
23383#
23384# GDBM
23385#
23386#
23387# Check for dbm
23388#
23389# Check whether --enable-dbm was given.
23390if test "${enable_dbm+set}" = set; then :
23391  enableval=$enable_dbm; case "${enableval}" in
23392                yes) HAVE_DBM=yes ;;
23393                no)  HAVE_DBM=no ;;
23394                *) as_fn_error $? "bad value ${enableval} for --enable-dbm" "$LINENO" 5 ;;
23395        esac
23396else
23397  HAVE_DBM=no
23398fi
23399
23400
23401# Check whether --enable-gdbm was given.
23402if test "${enable_gdbm+set}" = set; then :
23403  enableval=$enable_gdbm; case "${enableval}" in
23404                yes) HAVE_GDBM=yes ;;
23405                no)  HAVE_GDBM=no ;;
23406                *) as_fn_error $? "bad value ${enableval} for --disable-gdbm" "$LINENO" 5 ;;
23407        esac
23408else
23409  HAVE_GDBM=yes
23410fi
23411
23412
23413if test "x$HAVE_GDBM" = "xyes" ; then
23414    if test "x$HAVE_DBM" = "xyes" ; then
23415        as_fn_error $? "*** --enable-gdbm and --enable-dbm both specified ***" "$LINENO" 5
23416    fi
23417    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
23418$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
23419if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
23420  $as_echo_n "(cached) " >&6
23421else
23422  ac_check_lib_save_LIBS=$LIBS
23423LIBS="-lgdbm  $LIBS"
23424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23425/* end confdefs.h.  */
23426
23427/* Override any GCC internal prototype to avoid an error.
23428   Use char because int might match the return type of a GCC
23429   builtin and then its argument prototype would still apply.  */
23430#ifdef __cplusplus
23431extern "C"
23432#endif
23433char gdbm_open ();
23434int
23435main ()
23436{
23437return gdbm_open ();
23438  ;
23439  return 0;
23440}
23441_ACEOF
23442if ac_fn_c_try_link "$LINENO"; then :
23443  ac_cv_lib_gdbm_gdbm_open=yes
23444else
23445  ac_cv_lib_gdbm_gdbm_open=no
23446fi
23447rm -f core conftest.err conftest.$ac_objext \
23448    conftest$ac_exeext conftest.$ac_ext
23449LIBS=$ac_check_lib_save_LIBS
23450fi
23451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
23452$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
23453if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
23454   for ac_header in gdbm.h
23455do :
23456  ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
23457if test "x$ac_cv_header_gdbm_h" = xyes; then :
23458  cat >>confdefs.h <<_ACEOF
23459#define HAVE_GDBM_H 1
23460_ACEOF
23461 have_gdbm=true
23462else
23463  have_gdbm=false
23464fi
23465
23466done
23467
23468else
23469  have_gdbm=false
23470fi
23471
23472
23473    if ! $have_gdbm ; then
23474        as_fn_error $? "*** libgdbm not found ***" "$LINENO" 5
23475    fi
23476
23477$as_echo "#define HAVE_GDBM /**/" >>confdefs.h
23478
23479else
23480    if test "x$HAVE_DBM" = "xyes" ; then
23481        for ac_header in ndbm.h
23482do :
23483  ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
23484if test "x$ac_cv_header_ndbm_h" = xyes; then :
23485  cat >>confdefs.h <<_ACEOF
23486#define HAVE_NDBM_H 1
23487_ACEOF
23488 have_dbm=true
23489else
23490  have_dbm=false
23491fi
23492
23493done
23494
23495
23496        if ! $have_dbm ; then
23497            as_fn_error $? "*** dbm not found ***" "$LINENO" 5
23498        fi
23499
23500$as_echo "#define HAVE_DBM /**/" >>confdefs.h
23501
23502    fi
23503fi
23504 if test "x$HAVE_GDBM" = "xyes"; then
23505  HAVE_GDBM_TRUE=
23506  HAVE_GDBM_FALSE='#'
23507else
23508  HAVE_GDBM_TRUE='#'
23509  HAVE_GDBM_FALSE=
23510fi
23511
23512 if test "x$HAVE_DBM" = "xyes"; then
23513  HAVE_DBM_TRUE=
23514  HAVE_DBM_FALSE='#'
23515else
23516  HAVE_DBM_TRUE='#'
23517  HAVE_DBM_FALSE=
23518fi
23519
23520
23521#
23522# libdaemon
23523#
23524# Check whether --enable-libdaemon was given.
23525if test "${enable_libdaemon+set}" = set; then :
23526  enableval=$enable_libdaemon; case "${enableval}" in
23527                yes) HAVE_LIBDAEMON=yes ;;
23528                no)  HAVE_LIBDAEMON=no ;;
23529                *) as_fn_error $? "bad value ${enableval} for --enable-libdaemon" "$LINENO" 5 ;;
23530        esac
23531else
23532  HAVE_LIBDAEMON=yes
23533fi
23534
23535
23536if test "x$HAVE_LIBDAEMON" = "xyes" ; then
23537
23538pkg_failed=no
23539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDAEMON" >&5
23540$as_echo_n "checking for LIBDAEMON... " >&6; }
23541
23542if test -n "$LIBDAEMON_CFLAGS"; then
23543    pkg_cv_LIBDAEMON_CFLAGS="$LIBDAEMON_CFLAGS"
23544 elif test -n "$PKG_CONFIG"; then
23545    if test -n "$PKG_CONFIG" && \
23546    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libdaemon >= 0.14 \""; } >&5
23547  ($PKG_CONFIG --exists --print-errors " libdaemon >= 0.14 ") 2>&5
23548  ac_status=$?
23549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23550  test $ac_status = 0; }; then
23551  pkg_cv_LIBDAEMON_CFLAGS=`$PKG_CONFIG --cflags " libdaemon >= 0.14 " 2>/dev/null`
23552		      test "x$?" != "x0" && pkg_failed=yes
23553else
23554  pkg_failed=yes
23555fi
23556 else
23557    pkg_failed=untried
23558fi
23559if test -n "$LIBDAEMON_LIBS"; then
23560    pkg_cv_LIBDAEMON_LIBS="$LIBDAEMON_LIBS"
23561 elif test -n "$PKG_CONFIG"; then
23562    if test -n "$PKG_CONFIG" && \
23563    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libdaemon >= 0.14 \""; } >&5
23564  ($PKG_CONFIG --exists --print-errors " libdaemon >= 0.14 ") 2>&5
23565  ac_status=$?
23566  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23567  test $ac_status = 0; }; then
23568  pkg_cv_LIBDAEMON_LIBS=`$PKG_CONFIG --libs " libdaemon >= 0.14 " 2>/dev/null`
23569		      test "x$?" != "x0" && pkg_failed=yes
23570else
23571  pkg_failed=yes
23572fi
23573 else
23574    pkg_failed=untried
23575fi
23576
23577
23578
23579if test $pkg_failed = yes; then
23580   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23581$as_echo "no" >&6; }
23582
23583if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23584        _pkg_short_errors_supported=yes
23585else
23586        _pkg_short_errors_supported=no
23587fi
23588        if test $_pkg_short_errors_supported = yes; then
23589	        LIBDAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " libdaemon >= 0.14 " 2>&1`
23590        else
23591	        LIBDAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " libdaemon >= 0.14 " 2>&1`
23592        fi
23593	# Put the nasty error message in config.log where it belongs
23594	echo "$LIBDAEMON_PKG_ERRORS" >&5
23595
23596	as_fn_error $? "Package requirements ( libdaemon >= 0.14 ) were not met:
23597
23598$LIBDAEMON_PKG_ERRORS
23599
23600Consider adjusting the PKG_CONFIG_PATH environment variable if you
23601installed software in a non-standard prefix.
23602
23603Alternatively, you may set the environment variables LIBDAEMON_CFLAGS
23604and LIBDAEMON_LIBS to avoid the need to call pkg-config.
23605See the pkg-config man page for more details." "$LINENO" 5
23606elif test $pkg_failed = untried; then
23607     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23608$as_echo "no" >&6; }
23609	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23611as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23612is in your PATH or set the PKG_CONFIG environment variable to the full
23613path to pkg-config.
23614
23615Alternatively, you may set the environment variables LIBDAEMON_CFLAGS
23616and LIBDAEMON_LIBS to avoid the need to call pkg-config.
23617See the pkg-config man page for more details.
23618
23619To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23620See \`config.log' for more details" "$LINENO" 5; }
23621else
23622	LIBDAEMON_CFLAGS=$pkg_cv_LIBDAEMON_CFLAGS
23623	LIBDAEMON_LIBS=$pkg_cv_LIBDAEMON_LIBS
23624        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23625$as_echo "yes" >&6; }
23626
23627fi
23628
23629
23630fi
23631 if test "x$HAVE_LIBDAEMON" = "xyes"; then
23632  HAVE_LIBDAEMON_TRUE=
23633  HAVE_LIBDAEMON_FALSE='#'
23634else
23635  HAVE_LIBDAEMON_TRUE='#'
23636  HAVE_LIBDAEMON_FALSE=
23637fi
23638
23639
23640#
23641# Python stuff
23642#
23643# Check whether --enable-python was given.
23644if test "${enable_python+set}" = set; then :
23645  enableval=$enable_python; case "${enableval}" in
23646          yes) HAVE_PYTHON=yes ;;
23647          no)  HAVE_PYTHON=no ;;
23648          *) as_fn_error $? "bad value ${enableval} for --enable-python" "$LINENO" 5 ;;
23649    esac
23650else
23651  HAVE_PYTHON=yes
23652fi
23653
23654
23655HAVE_PYTHON_DBUS=no
23656HAVE_PYGOBJECT=no
23657
23658if test "x$HAVE_PYTHON" = "xyes" ; then
23659
23660
23661
23662
23663
23664
23665        if test -n "$PYTHON"; then
23666      # If the user set $PYTHON, use it and don't search something else.
23667      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
23668$as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
23669      prog="import sys
23670# split strings by '.' and convert to numeric.  Append some zeros
23671# because we need at least 4 digits for the hex conversion.
23672# map returns an iterator in Python 3.0 and a list in 2.x
23673minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
23674minverhex = 0
23675# xrange is not present in Python 3.0 and range returns an iterator
23676for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23677sys.exit(sys.hexversion < minverhex)"
23678  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
23679   ($PYTHON -c "$prog") >&5 2>&5
23680   ac_status=$?
23681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682   (exit $ac_status); }; then :
23683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23684$as_echo "yes" >&6; }
23685else
23686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23687$as_echo "no" >&6; }
23688			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
23689fi
23690      am_display_PYTHON=$PYTHON
23691    else
23692      # Otherwise, try each interpreter until we find one that satisfies
23693      # VERSION.
23694      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
23695$as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
23696if ${am_cv_pathless_PYTHON+:} false; then :
23697  $as_echo_n "(cached) " >&6
23698else
23699
23700	for am_cv_pathless_PYTHON in python python2 python3 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
23701	  test "$am_cv_pathless_PYTHON" = none && break
23702	  prog="import sys
23703# split strings by '.' and convert to numeric.  Append some zeros
23704# because we need at least 4 digits for the hex conversion.
23705# map returns an iterator in Python 3.0 and a list in 2.x
23706minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
23707minverhex = 0
23708# xrange is not present in Python 3.0 and range returns an iterator
23709for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23710sys.exit(sys.hexversion < minverhex)"
23711  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
23712   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
23713   ac_status=$?
23714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715   (exit $ac_status); }; then :
23716  break
23717fi
23718	done
23719fi
23720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
23721$as_echo "$am_cv_pathless_PYTHON" >&6; }
23722      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
23723      if test "$am_cv_pathless_PYTHON" = none; then
23724	PYTHON=:
23725      else
23726        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
23727set dummy $am_cv_pathless_PYTHON; ac_word=$2
23728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23729$as_echo_n "checking for $ac_word... " >&6; }
23730if ${ac_cv_path_PYTHON+:} false; then :
23731  $as_echo_n "(cached) " >&6
23732else
23733  case $PYTHON in
23734  [\\/]* | ?:[\\/]*)
23735  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23736  ;;
23737  *)
23738  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23739for as_dir in $PATH
23740do
23741  IFS=$as_save_IFS
23742  test -z "$as_dir" && as_dir=.
23743    for ac_exec_ext in '' $ac_executable_extensions; do
23744  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23745    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23747    break 2
23748  fi
23749done
23750  done
23751IFS=$as_save_IFS
23752
23753  ;;
23754esac
23755fi
23756PYTHON=$ac_cv_path_PYTHON
23757if test -n "$PYTHON"; then
23758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23759$as_echo "$PYTHON" >&6; }
23760else
23761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23762$as_echo "no" >&6; }
23763fi
23764
23765
23766      fi
23767      am_display_PYTHON=$am_cv_pathless_PYTHON
23768    fi
23769
23770
23771  if test "$PYTHON" = :; then
23772      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
23773  else
23774
23775
23776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
23777$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
23778if ${am_cv_python_version+:} false; then :
23779  $as_echo_n "(cached) " >&6
23780else
23781  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
23782fi
23783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
23784$as_echo "$am_cv_python_version" >&6; }
23785  PYTHON_VERSION=$am_cv_python_version
23786
23787
23788
23789  PYTHON_PREFIX='${prefix}'
23790
23791  PYTHON_EXEC_PREFIX='${exec_prefix}'
23792
23793
23794
23795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
23796$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
23797if ${am_cv_python_platform+:} false; then :
23798  $as_echo_n "(cached) " >&6
23799else
23800  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
23801fi
23802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
23803$as_echo "$am_cv_python_platform" >&6; }
23804  PYTHON_PLATFORM=$am_cv_python_platform
23805
23806
23807  # Just factor out some code duplication.
23808  am_python_setup_sysconfig="\
23809import sys
23810# Prefer sysconfig over distutils.sysconfig, for better compatibility
23811# with python 3.x.  See automake bug#10227.
23812try:
23813    import sysconfig
23814except ImportError:
23815    can_use_sysconfig = 0
23816else:
23817    can_use_sysconfig = 1
23818# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
23819# <https://github.com/pypa/virtualenv/issues/118>
23820try:
23821    from platform import python_implementation
23822    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
23823        can_use_sysconfig = 0
23824except ImportError:
23825    pass"
23826
23827
23828            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
23829$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
23830if ${am_cv_python_pythondir+:} false; then :
23831  $as_echo_n "(cached) " >&6
23832else
23833  if test "x$prefix" = xNONE
23834     then
23835       am_py_prefix=$ac_default_prefix
23836     else
23837       am_py_prefix=$prefix
23838     fi
23839     am_cv_python_pythondir=`$PYTHON -c "
23840$am_python_setup_sysconfig
23841if can_use_sysconfig:
23842    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
23843else:
23844    from distutils import sysconfig
23845    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
23846sys.stdout.write(sitedir)"`
23847     case $am_cv_python_pythondir in
23848     $am_py_prefix*)
23849       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
23850       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
23851       ;;
23852     *)
23853       case $am_py_prefix in
23854         /usr|/System*) ;;
23855         *)
23856	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
23857	  ;;
23858       esac
23859       ;;
23860     esac
23861
23862fi
23863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
23864$as_echo "$am_cv_python_pythondir" >&6; }
23865  pythondir=$am_cv_python_pythondir
23866
23867
23868
23869  pkgpythondir=\${pythondir}/$PACKAGE
23870
23871
23872        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
23873$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
23874if ${am_cv_python_pyexecdir+:} false; then :
23875  $as_echo_n "(cached) " >&6
23876else
23877  if test "x$exec_prefix" = xNONE
23878     then
23879       am_py_exec_prefix=$am_py_prefix
23880     else
23881       am_py_exec_prefix=$exec_prefix
23882     fi
23883     am_cv_python_pyexecdir=`$PYTHON -c "
23884$am_python_setup_sysconfig
23885if can_use_sysconfig:
23886    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
23887else:
23888    from distutils import sysconfig
23889    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
23890sys.stdout.write(sitedir)"`
23891     case $am_cv_python_pyexecdir in
23892     $am_py_exec_prefix*)
23893       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
23894       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
23895       ;;
23896     *)
23897       case $am_py_exec_prefix in
23898         /usr|/System*) ;;
23899         *)
23900	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
23901	   ;;
23902       esac
23903       ;;
23904     esac
23905
23906fi
23907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
23908$as_echo "$am_cv_python_pyexecdir" >&6; }
23909  pyexecdir=$am_cv_python_pyexecdir
23910
23911
23912
23913  pkgpyexecdir=\${pyexecdir}/$PACKAGE
23914
23915
23916
23917  fi
23918
23919
23920
23921    # Check whether --enable-pygobject was given.
23922if test "${enable_pygobject+set}" = set; then :
23923  enableval=$enable_pygobject; case "${enableval}" in
23924                yes) HAVE_PYGOBJECT=yes ;;
23925                no)  HAVE_PYGOBJECT=no ;;
23926                *) as_fn_error $? "bad value ${enableval} for --enable-pygobject" "$LINENO" 5 ;;
23927        esac
23928else
23929  HAVE_PYGOBJECT=yes
23930fi
23931
23932
23933    if test "x$HAVE_PYGOBJECT" = "xyes" ; then
23934
23935pkg_failed=no
23936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYGOBJECT" >&5
23937$as_echo_n "checking for PYGOBJECT... " >&6; }
23938
23939if test -n "$PYGOBJECT_CFLAGS"; then
23940    pkg_cv_PYGOBJECT_CFLAGS="$PYGOBJECT_CFLAGS"
23941 elif test -n "$PKG_CONFIG"; then
23942    if test -n "$PKG_CONFIG" && \
23943    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygobject-3.0\""; } >&5
23944  ($PKG_CONFIG --exists --print-errors "pygobject-3.0") 2>&5
23945  ac_status=$?
23946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23947  test $ac_status = 0; }; then
23948  pkg_cv_PYGOBJECT_CFLAGS=`$PKG_CONFIG --cflags "pygobject-3.0" 2>/dev/null`
23949		      test "x$?" != "x0" && pkg_failed=yes
23950else
23951  pkg_failed=yes
23952fi
23953 else
23954    pkg_failed=untried
23955fi
23956if test -n "$PYGOBJECT_LIBS"; then
23957    pkg_cv_PYGOBJECT_LIBS="$PYGOBJECT_LIBS"
23958 elif test -n "$PKG_CONFIG"; then
23959    if test -n "$PKG_CONFIG" && \
23960    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygobject-3.0\""; } >&5
23961  ($PKG_CONFIG --exists --print-errors "pygobject-3.0") 2>&5
23962  ac_status=$?
23963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23964  test $ac_status = 0; }; then
23965  pkg_cv_PYGOBJECT_LIBS=`$PKG_CONFIG --libs "pygobject-3.0" 2>/dev/null`
23966		      test "x$?" != "x0" && pkg_failed=yes
23967else
23968  pkg_failed=yes
23969fi
23970 else
23971    pkg_failed=untried
23972fi
23973
23974
23975
23976if test $pkg_failed = yes; then
23977   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23978$as_echo "no" >&6; }
23979
23980if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23981        _pkg_short_errors_supported=yes
23982else
23983        _pkg_short_errors_supported=no
23984fi
23985        if test $_pkg_short_errors_supported = yes; then
23986	        PYGOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pygobject-3.0" 2>&1`
23987        else
23988	        PYGOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pygobject-3.0" 2>&1`
23989        fi
23990	# Put the nasty error message in config.log where it belongs
23991	echo "$PYGOBJECT_PKG_ERRORS" >&5
23992
23993	as_fn_error $? "Could not find Python GObject" "$LINENO" 5
23994elif test $pkg_failed = untried; then
23995     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23996$as_echo "no" >&6; }
23997	as_fn_error $? "Could not find Python GObject" "$LINENO" 5
23998else
23999	PYGOBJECT_CFLAGS=$pkg_cv_PYGOBJECT_CFLAGS
24000	PYGOBJECT_LIBS=$pkg_cv_PYGOBJECT_LIBS
24001        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24002$as_echo "yes" >&6; }
24003
24004fi
24005    fi
24006
24007
24008    if test "x$HAVE_DBUS" = "xyes" ; then
24009        # Check whether --enable-python-dbus was given.
24010if test "${enable_python_dbus+set}" = set; then :
24011  enableval=$enable_python_dbus; case "${enableval}" in
24012                   yes) HAVE_PYTHON_DBUS=yes ;;
24013                   no)  HAVE_PYTHON_DBUS=no ;;
24014                   *) as_fn_error $? "bad value ${enableval} for --enable-python-dbus" "$LINENO" 5 ;;
24015            esac
24016else
24017  HAVE_PYTHON_DBUS=yes
24018fi
24019
24020
24021        if test "x$HAVE_PYTHON_DBUS" = "xyes"; then
24022
24023py_mod_var=`echo dbus'_' | sed 'y%./+-%__p_%'`
24024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module dbus" >&5
24025$as_echo_n "checking for python module dbus... " >&6; }
24026if eval \${py_cv_mod_$py_mod_var+:} false; then :
24027  $as_echo_n "(cached) " >&6
24028else
24029
24030prog="
24031import sys
24032try:
24033        import dbus
24034except ImportError:
24035        sys.exit(1)
24036except:
24037        sys.exit(0)
24038sys.exit(0)"
24039if $PYTHON -c "$prog" 1>&5 2>&5
24040  then
24041    eval "py_cv_mod_$py_mod_var=yes"
24042  else
24043    eval "py_cv_mod_$py_mod_var=no"
24044  fi
24045
24046fi
24047
24048py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
24049if test "x$py_val" != xno; then
24050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24051$as_echo "yes" >&6; }
24052  else
24053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24054$as_echo "no" >&6; }
24055  as_fn_error $? "Could not find Python module dbus" "$LINENO" 5
24056fi
24057
24058        fi
24059
24060
24061py_mod_var=`echo socket'_' | sed 'y%./+-%__p_%'`
24062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module socket" >&5
24063$as_echo_n "checking for python module socket... " >&6; }
24064if eval \${py_cv_mod_$py_mod_var+:} false; then :
24065  $as_echo_n "(cached) " >&6
24066else
24067
24068prog="
24069import sys
24070try:
24071        import socket
24072except ImportError:
24073        sys.exit(1)
24074except:
24075        sys.exit(0)
24076sys.exit(0)"
24077if $PYTHON -c "$prog" 1>&5 2>&5
24078  then
24079    eval "py_cv_mod_$py_mod_var=yes"
24080  else
24081    eval "py_cv_mod_$py_mod_var=no"
24082  fi
24083
24084fi
24085
24086py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
24087if test "x$py_val" != xno; then
24088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24089$as_echo "yes" >&6; }
24090  else
24091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24092$as_echo "no" >&6; }
24093  as_fn_error $? "Could not find Python module socket" "$LINENO" 5
24094fi
24095
24096        if test "x$HAVE_GDBM" = "xyes" || test "x$HAVE_DBM" = "xyes"; then
24097
24098py_mod_var=`echo anydbm'_' | sed 'y%./+-%__p_%'`
24099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module anydbm" >&5
24100$as_echo_n "checking for python module anydbm... " >&6; }
24101if eval \${py_cv_mod_$py_mod_var+:} false; then :
24102  $as_echo_n "(cached) " >&6
24103else
24104
24105prog="
24106import sys
24107try:
24108        import anydbm
24109except ImportError:
24110        sys.exit(1)
24111except:
24112        sys.exit(0)
24113sys.exit(0)"
24114if $PYTHON -c "$prog" 1>&5 2>&5
24115  then
24116    eval "py_cv_mod_$py_mod_var=yes"
24117  else
24118    eval "py_cv_mod_$py_mod_var=no"
24119  fi
24120
24121fi
24122
24123py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
24124if test "x$py_val" != xno; then
24125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24126$as_echo "yes" >&6; }
24127  else
24128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24129$as_echo "no" >&6; }
24130
24131
24132py_mod_var=`echo dbm'_' | sed 'y%./+-%__p_%'`
24133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module dbm" >&5
24134$as_echo_n "checking for python module dbm... " >&6; }
24135if eval \${py_cv_mod_$py_mod_var+:} false; then :
24136  $as_echo_n "(cached) " >&6
24137else
24138
24139prog="
24140import sys
24141try:
24142        import dbm
24143except ImportError:
24144        sys.exit(1)
24145except:
24146        sys.exit(0)
24147sys.exit(0)"
24148if $PYTHON -c "$prog" 1>&5 2>&5
24149  then
24150    eval "py_cv_mod_$py_mod_var=yes"
24151  else
24152    eval "py_cv_mod_$py_mod_var=no"
24153  fi
24154
24155fi
24156
24157py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
24158if test "x$py_val" != xno; then
24159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24160$as_echo "yes" >&6; }
24161  else
24162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24163$as_echo "no" >&6; }
24164  as_fn_error $? "Could not find Python module dbm" "$LINENO" 5
24165fi
24166
24167
24168fi
24169
24170        fi
24171    fi
24172fi
24173 if test "x$HAVE_PYTHON" = "xyes" ; then
24174  HAVE_PYTHON_TRUE=
24175  HAVE_PYTHON_FALSE='#'
24176else
24177  HAVE_PYTHON_TRUE='#'
24178  HAVE_PYTHON_FALSE=
24179fi
24180
24181 if test "x$HAVE_PYGOBJECT" = "xyes"; then
24182  HAVE_PYGOBJECT_TRUE=
24183  HAVE_PYGOBJECT_FALSE='#'
24184else
24185  HAVE_PYGOBJECT_TRUE='#'
24186  HAVE_PYGOBJECT_FALSE=
24187fi
24188
24189 if test "x$HAVE_PYTHON_DBUS" = "xyes"; then
24190  HAVE_PYTHON_DBUS_TRUE=
24191  HAVE_PYTHON_DBUS_FALSE='#'
24192else
24193  HAVE_PYTHON_DBUS_TRUE='#'
24194  HAVE_PYTHON_DBUS_FALSE=
24195fi
24196
24197
24198#
24199# Check for mono stuff
24200#
24201HAVE_MONO=no
24202if test "x$HAVE_DBUS" = "xyes" ; then
24203    # Check whether --enable-mono was given.
24204if test "${enable_mono+set}" = set; then :
24205  enableval=$enable_mono; case "${enableval}" in
24206                    yes) HAVE_MONO=yes ;;
24207                    no)  HAVE_MONO=no ;;
24208                    *) as_fn_error $? "bad value ${enableval} for --enable-mono" "$LINENO" 5 ;;
24209            esac
24210else
24211  HAVE_MONO=yes
24212fi
24213
24214
24215    if test "x$HAVE_MONO" = "xyes" ; then
24216        # Extract the first word of "mcs", so it can be a program name with args.
24217set dummy mcs; ac_word=$2
24218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24219$as_echo_n "checking for $ac_word... " >&6; }
24220if ${ac_cv_path_MCS+:} false; then :
24221  $as_echo_n "(cached) " >&6
24222else
24223  case $MCS in
24224  [\\/]* | ?:[\\/]*)
24225  ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
24226  ;;
24227  *)
24228  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24229for as_dir in $PATH
24230do
24231  IFS=$as_save_IFS
24232  test -z "$as_dir" && as_dir=.
24233    for ac_exec_ext in '' $ac_executable_extensions; do
24234  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24235    ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
24236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24237    break 2
24238  fi
24239done
24240  done
24241IFS=$as_save_IFS
24242
24243  ;;
24244esac
24245fi
24246MCS=$ac_cv_path_MCS
24247if test -n "$MCS"; then
24248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
24249$as_echo "$MCS" >&6; }
24250else
24251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24252$as_echo "no" >&6; }
24253fi
24254
24255
24256        if test "x$MCS" = "x" ; then
24257            as_fn_error $? "Can not find \"mcs\" - The Mono C-Sharp Compiler) in your PATH" "$LINENO" 5
24258        fi
24259
24260        # Extract the first word of "gacutil", so it can be a program name with args.
24261set dummy gacutil; ac_word=$2
24262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24263$as_echo_n "checking for $ac_word... " >&6; }
24264if ${ac_cv_path_GACUTIL+:} false; then :
24265  $as_echo_n "(cached) " >&6
24266else
24267  case $GACUTIL in
24268  [\\/]* | ?:[\\/]*)
24269  ac_cv_path_GACUTIL="$GACUTIL" # Let the user override the test with a path.
24270  ;;
24271  *)
24272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24273for as_dir in $PATH
24274do
24275  IFS=$as_save_IFS
24276  test -z "$as_dir" && as_dir=.
24277    for ac_exec_ext in '' $ac_executable_extensions; do
24278  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24279    ac_cv_path_GACUTIL="$as_dir/$ac_word$ac_exec_ext"
24280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24281    break 2
24282  fi
24283done
24284  done
24285IFS=$as_save_IFS
24286
24287  ;;
24288esac
24289fi
24290GACUTIL=$ac_cv_path_GACUTIL
24291if test -n "$GACUTIL"; then
24292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GACUTIL" >&5
24293$as_echo "$GACUTIL" >&6; }
24294else
24295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24296$as_echo "no" >&6; }
24297fi
24298
24299
24300        if test "x$GACUTIL" = "x" ; then
24301            as_fn_error $? "Can not find \"gacutil\" in your PATH" "$LINENO" 5
24302        fi
24303
24304
24305
24306    fi
24307fi
24308 if test "x$HAVE_MONO" = "xyes"; then
24309  HAVE_MONO_TRUE=
24310  HAVE_MONO_FALSE='#'
24311else
24312  HAVE_MONO_TRUE='#'
24313  HAVE_MONO_FALSE=
24314fi
24315
24316
24317#
24318# Check for monodoc stuff
24319#
24320HAVE_MONODOC=no
24321# Check whether --enable-monodoc was given.
24322if test "${enable_monodoc+set}" = set; then :
24323  enableval=$enable_monodoc; case "${enableval}" in
24324                yes) HAVE_MONODOC=yes ;;
24325                no)  HAVE_MONODOC=no ;;
24326                *) as_fn_error $? "bad value ${enableval} for --enable-monodoc" "$LINENO" 5 ;;
24327        esac
24328else
24329  HAVE_MONODOC=yes
24330fi
24331
24332
24333if test "x$HAVE_MONO" = "xyes" && test "x$HAVE_MONODOC" = "xyes" ; then
24334
24335pkg_failed=no
24336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MONODOC" >&5
24337$as_echo_n "checking for MONODOC... " >&6; }
24338
24339if test -n "$MONODOC_CFLAGS"; then
24340    pkg_cv_MONODOC_CFLAGS="$MONODOC_CFLAGS"
24341 elif test -n "$PKG_CONFIG"; then
24342    if test -n "$PKG_CONFIG" && \
24343    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"monodoc >= 1.1.8\""; } >&5
24344  ($PKG_CONFIG --exists --print-errors "monodoc >= 1.1.8") 2>&5
24345  ac_status=$?
24346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24347  test $ac_status = 0; }; then
24348  pkg_cv_MONODOC_CFLAGS=`$PKG_CONFIG --cflags "monodoc >= 1.1.8" 2>/dev/null`
24349		      test "x$?" != "x0" && pkg_failed=yes
24350else
24351  pkg_failed=yes
24352fi
24353 else
24354    pkg_failed=untried
24355fi
24356if test -n "$MONODOC_LIBS"; then
24357    pkg_cv_MONODOC_LIBS="$MONODOC_LIBS"
24358 elif test -n "$PKG_CONFIG"; then
24359    if test -n "$PKG_CONFIG" && \
24360    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"monodoc >= 1.1.8\""; } >&5
24361  ($PKG_CONFIG --exists --print-errors "monodoc >= 1.1.8") 2>&5
24362  ac_status=$?
24363  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24364  test $ac_status = 0; }; then
24365  pkg_cv_MONODOC_LIBS=`$PKG_CONFIG --libs "monodoc >= 1.1.8" 2>/dev/null`
24366		      test "x$?" != "x0" && pkg_failed=yes
24367else
24368  pkg_failed=yes
24369fi
24370 else
24371    pkg_failed=untried
24372fi
24373
24374
24375
24376if test $pkg_failed = yes; then
24377   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24378$as_echo "no" >&6; }
24379
24380if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24381        _pkg_short_errors_supported=yes
24382else
24383        _pkg_short_errors_supported=no
24384fi
24385        if test $_pkg_short_errors_supported = yes; then
24386	        MONODOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "monodoc >= 1.1.8" 2>&1`
24387        else
24388	        MONODOC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "monodoc >= 1.1.8" 2>&1`
24389        fi
24390	# Put the nasty error message in config.log where it belongs
24391	echo "$MONODOC_PKG_ERRORS" >&5
24392
24393	as_fn_error $? "Package requirements (monodoc >= 1.1.8) were not met:
24394
24395$MONODOC_PKG_ERRORS
24396
24397Consider adjusting the PKG_CONFIG_PATH environment variable if you
24398installed software in a non-standard prefix.
24399
24400Alternatively, you may set the environment variables MONODOC_CFLAGS
24401and MONODOC_LIBS to avoid the need to call pkg-config.
24402See the pkg-config man page for more details." "$LINENO" 5
24403elif test $pkg_failed = untried; then
24404     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24405$as_echo "no" >&6; }
24406	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24408as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24409is in your PATH or set the PKG_CONFIG environment variable to the full
24410path to pkg-config.
24411
24412Alternatively, you may set the environment variables MONODOC_CFLAGS
24413and MONODOC_LIBS to avoid the need to call pkg-config.
24414See the pkg-config man page for more details.
24415
24416To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24417See \`config.log' for more details" "$LINENO" 5; }
24418else
24419	MONODOC_CFLAGS=$pkg_cv_MONODOC_CFLAGS
24420	MONODOC_LIBS=$pkg_cv_MONODOC_LIBS
24421        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24422$as_echo "yes" >&6; }
24423
24424fi
24425        MONODOC_DIR=`$PKG_CONFIG --variable=sourcesdir monodoc`
24426
24427        # Extract the first word of "monodocer", so it can be a program name with args.
24428set dummy monodocer; ac_word=$2
24429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24430$as_echo_n "checking for $ac_word... " >&6; }
24431if ${ac_cv_path_MONODOCER+:} false; then :
24432  $as_echo_n "(cached) " >&6
24433else
24434  case $MONODOCER in
24435  [\\/]* | ?:[\\/]*)
24436  ac_cv_path_MONODOCER="$MONODOCER" # Let the user override the test with a path.
24437  ;;
24438  *)
24439  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24440for as_dir in $PATH
24441do
24442  IFS=$as_save_IFS
24443  test -z "$as_dir" && as_dir=.
24444    for ac_exec_ext in '' $ac_executable_extensions; do
24445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24446    ac_cv_path_MONODOCER="$as_dir/$ac_word$ac_exec_ext"
24447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24448    break 2
24449  fi
24450done
24451  done
24452IFS=$as_save_IFS
24453
24454  ;;
24455esac
24456fi
24457MONODOCER=$ac_cv_path_MONODOCER
24458if test -n "$MONODOCER"; then
24459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MONODOCER" >&5
24460$as_echo "$MONODOCER" >&6; }
24461else
24462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24463$as_echo "no" >&6; }
24464fi
24465
24466
24467        # Extract the first word of "mdassembler", so it can be a program name with args.
24468set dummy mdassembler; ac_word=$2
24469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24470$as_echo_n "checking for $ac_word... " >&6; }
24471if ${ac_cv_path_MDASSEMBLER+:} false; then :
24472  $as_echo_n "(cached) " >&6
24473else
24474  case $MDASSEMBLER in
24475  [\\/]* | ?:[\\/]*)
24476  ac_cv_path_MDASSEMBLER="$MDASSEMBLER" # Let the user override the test with a path.
24477  ;;
24478  *)
24479  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24480for as_dir in $PATH
24481do
24482  IFS=$as_save_IFS
24483  test -z "$as_dir" && as_dir=.
24484    for ac_exec_ext in '' $ac_executable_extensions; do
24485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24486    ac_cv_path_MDASSEMBLER="$as_dir/$ac_word$ac_exec_ext"
24487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24488    break 2
24489  fi
24490done
24491  done
24492IFS=$as_save_IFS
24493
24494  ;;
24495esac
24496fi
24497MDASSEMBLER=$ac_cv_path_MDASSEMBLER
24498if test -n "$MDASSEMBLER"; then
24499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MDASSEMBLER" >&5
24500$as_echo "$MDASSEMBLER" >&6; }
24501else
24502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24503$as_echo "no" >&6; }
24504fi
24505
24506
24507
24508
24509
24510
24511fi
24512 if test "x$HAVE_MONODOC" = "xyes"; then
24513  HAVE_MONODOC_TRUE=
24514  HAVE_MONODOC_FALSE='#'
24515else
24516  HAVE_MONODOC_TRUE='#'
24517  HAVE_MONODOC_FALSE=
24518fi
24519
24520
24521#
24522# Build autoipd?
24523#
24524# Check whether --enable-autoipd was given.
24525if test "${enable_autoipd+set}" = set; then :
24526  enableval=$enable_autoipd; case "${enableval}" in
24527                yes) ENABLE_AUTOIPD=yes ;;
24528                no)  ENABLE_AUTOIPD=no ;;
24529                *) as_fn_error $? "bad value ${enableval} for --disable-autoipd" "$LINENO" 5 ;;
24530        esac
24531else
24532  ENABLE_AUTOIPD=yes
24533fi
24534
24535
24536 if test "x$ENABLE_AUTOIPD" = "xyes"; then
24537  ENABLE_AUTOIPD_TRUE=
24538  ENABLE_AUTOIPD_FALSE='#'
24539else
24540  ENABLE_AUTOIPD_TRUE='#'
24541  ENABLE_AUTOIPD_FALSE=
24542fi
24543
24544
24545#
24546# Defining users and groups
24547#
24548
24549# Check whether --with-avahi_user was given.
24550if test "${with_avahi_user+set}" = set; then :
24551  withval=$with_avahi_user;
24552fi
24553
24554if test -z "$with_avahi_user" ; then
24555    AVAHI_USER=avahi
24556else
24557    AVAHI_USER=$with_avahi_user
24558fi
24559
24560
24561cat >>confdefs.h <<_ACEOF
24562#define AVAHI_USER "$AVAHI_USER"
24563_ACEOF
24564
24565
24566
24567# Check whether --with-avahi_group was given.
24568if test "${with_avahi_group+set}" = set; then :
24569  withval=$with_avahi_group;
24570fi
24571
24572if test -z "$with_avahi_group" ; then
24573    AVAHI_GROUP=avahi
24574else
24575    AVAHI_GROUP=$with_avahi_group
24576fi
24577
24578
24579cat >>confdefs.h <<_ACEOF
24580#define AVAHI_GROUP "$AVAHI_GROUP"
24581_ACEOF
24582
24583
24584
24585# Check whether --with-avahi_priv_access_group was given.
24586if test "${with_avahi_priv_access_group+set}" = set; then :
24587  withval=$with_avahi_priv_access_group;
24588fi
24589
24590if test -z "$with_avahi_priv_access_group" ; then
24591    AVAHI_PRIV_ACCESS_GROUP=network
24592else
24593    AVAHI_PRIV_ACCESS_GROUP=$with_avahi_priv_access_group
24594fi
24595
24596
24597cat >>confdefs.h <<_ACEOF
24598#define AVAHI_PRIV_ACCESS_GROUP "$AVAHI_PRIV_ACCESS_GROUP"
24599_ACEOF
24600
24601
24602
24603# Check whether --with-autoipd_user was given.
24604if test "${with_autoipd_user+set}" = set; then :
24605  withval=$with_autoipd_user;
24606fi
24607
24608if test -z "$with_autoipd_user" ; then
24609    AVAHI_AUTOIPD_USER=avahi-autoipd
24610else
24611    AVAHI_AUTOIPD_USER=$with_autoipd_user
24612fi
24613
24614
24615cat >>confdefs.h <<_ACEOF
24616#define AVAHI_AUTOIPD_USER "$AVAHI_AUTOIPD_USER"
24617_ACEOF
24618
24619
24620
24621# Check whether --with-autoipd_group was given.
24622if test "${with_autoipd_group+set}" = set; then :
24623  withval=$with_autoipd_group;
24624fi
24625
24626if test -z "$with_autoipd_group" ; then
24627    AVAHI_AUTOIPD_GROUP=avahi-autoipd
24628else
24629    AVAHI_AUTOIPD_GROUP=$with_autoipd_group
24630fi
24631
24632
24633cat >>confdefs.h <<_ACEOF
24634#define AVAHI_AUTOIPD_GROUP "$AVAHI_AUTOIPD_GROUP"
24635_ACEOF
24636
24637
24638#
24639# Avahi runtime dir
24640#
24641avahi_runtime_dir="/var/run"
24642avahi_socket="${avahi_runtime_dir}/avahi-daemon/socket"
24643
24644
24645
24646#
24647# Avahi interfaces dir
24648#
24649if test "x$HAVE_PYTHON_DBUS" = "xyes" -o "x$HAVE_GTK" = "xyes" -o "x$HAVE_GTK3" = "xyes"; then
24650	interfacesdir="${datadir}/${PACKAGE}/interfaces/"
24651
24652fi
24653
24654#
24655# Doxygen
24656#
24657
24658
24659
24660
24661
24662
24663
24664
24665
24666
24667# Files:
24668DX_PROJECT=avahi
24669
24670DX_CONFIG=doxygen.cfg
24671
24672DX_DOCDIR=doxygen
24673
24674
24675# Environment variables used inside doxygen.cfg:
24676DX_ENV="$DX_ENV SRCDIR='$srcdir'"
24677
24678DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
24679
24680DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
24681
24682DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
24683
24684
24685# Doxygen itself:
24686
24687
24688
24689    # Check whether --enable-doxygen-doc was given.
24690if test "${enable_doxygen_doc+set}" = set; then :
24691  enableval=$enable_doxygen_doc;
24692case "$enableval" in
24693#(
24694y|Y|yes|Yes|YES)
24695    DX_FLAG_doc=1
24696
24697
24698;; #(
24699n|N|no|No|NO)
24700    DX_FLAG_doc=0
24701
24702;; #(
24703*)
24704    as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
24705;;
24706esac
24707
24708else
24709
24710DX_FLAG_doc=1
24711
24712
24713
24714fi
24715
24716if test "$DX_FLAG_doc" = 1; then
24717
24718if test -n "$ac_tool_prefix"; then
24719  # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
24720set dummy ${ac_tool_prefix}doxygen; ac_word=$2
24721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24722$as_echo_n "checking for $ac_word... " >&6; }
24723if ${ac_cv_path_DX_DOXYGEN+:} false; then :
24724  $as_echo_n "(cached) " >&6
24725else
24726  case $DX_DOXYGEN in
24727  [\\/]* | ?:[\\/]*)
24728  ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
24729  ;;
24730  *)
24731  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24732for as_dir in $PATH
24733do
24734  IFS=$as_save_IFS
24735  test -z "$as_dir" && as_dir=.
24736    for ac_exec_ext in '' $ac_executable_extensions; do
24737  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24738    ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
24739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24740    break 2
24741  fi
24742done
24743  done
24744IFS=$as_save_IFS
24745
24746  ;;
24747esac
24748fi
24749DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
24750if test -n "$DX_DOXYGEN"; then
24751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
24752$as_echo "$DX_DOXYGEN" >&6; }
24753else
24754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24755$as_echo "no" >&6; }
24756fi
24757
24758
24759fi
24760if test -z "$ac_cv_path_DX_DOXYGEN"; then
24761  ac_pt_DX_DOXYGEN=$DX_DOXYGEN
24762  # Extract the first word of "doxygen", so it can be a program name with args.
24763set dummy doxygen; ac_word=$2
24764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24765$as_echo_n "checking for $ac_word... " >&6; }
24766if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then :
24767  $as_echo_n "(cached) " >&6
24768else
24769  case $ac_pt_DX_DOXYGEN in
24770  [\\/]* | ?:[\\/]*)
24771  ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
24772  ;;
24773  *)
24774  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24775for as_dir in $PATH
24776do
24777  IFS=$as_save_IFS
24778  test -z "$as_dir" && as_dir=.
24779    for ac_exec_ext in '' $ac_executable_extensions; do
24780  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24781    ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
24782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24783    break 2
24784  fi
24785done
24786  done
24787IFS=$as_save_IFS
24788
24789  ;;
24790esac
24791fi
24792ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
24793if test -n "$ac_pt_DX_DOXYGEN"; then
24794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
24795$as_echo "$ac_pt_DX_DOXYGEN" >&6; }
24796else
24797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24798$as_echo "no" >&6; }
24799fi
24800
24801  if test "x$ac_pt_DX_DOXYGEN" = x; then
24802    DX_DOXYGEN=""
24803  else
24804    case $cross_compiling:$ac_tool_warned in
24805yes:)
24806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24808ac_tool_warned=yes ;;
24809esac
24810    DX_DOXYGEN=$ac_pt_DX_DOXYGEN
24811  fi
24812else
24813  DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
24814fi
24815
24816if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
24817    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
24818$as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
24819    DX_FLAG_doc=0
24820
24821fi
24822
24823
24824if test -n "$ac_tool_prefix"; then
24825  # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
24826set dummy ${ac_tool_prefix}perl; ac_word=$2
24827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24828$as_echo_n "checking for $ac_word... " >&6; }
24829if ${ac_cv_path_DX_PERL+:} false; then :
24830  $as_echo_n "(cached) " >&6
24831else
24832  case $DX_PERL in
24833  [\\/]* | ?:[\\/]*)
24834  ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
24835  ;;
24836  *)
24837  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24838for as_dir in $PATH
24839do
24840  IFS=$as_save_IFS
24841  test -z "$as_dir" && as_dir=.
24842    for ac_exec_ext in '' $ac_executable_extensions; do
24843  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24844    ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
24845    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24846    break 2
24847  fi
24848done
24849  done
24850IFS=$as_save_IFS
24851
24852  ;;
24853esac
24854fi
24855DX_PERL=$ac_cv_path_DX_PERL
24856if test -n "$DX_PERL"; then
24857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
24858$as_echo "$DX_PERL" >&6; }
24859else
24860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24861$as_echo "no" >&6; }
24862fi
24863
24864
24865fi
24866if test -z "$ac_cv_path_DX_PERL"; then
24867  ac_pt_DX_PERL=$DX_PERL
24868  # Extract the first word of "perl", so it can be a program name with args.
24869set dummy perl; ac_word=$2
24870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24871$as_echo_n "checking for $ac_word... " >&6; }
24872if ${ac_cv_path_ac_pt_DX_PERL+:} false; then :
24873  $as_echo_n "(cached) " >&6
24874else
24875  case $ac_pt_DX_PERL in
24876  [\\/]* | ?:[\\/]*)
24877  ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
24878  ;;
24879  *)
24880  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24881for as_dir in $PATH
24882do
24883  IFS=$as_save_IFS
24884  test -z "$as_dir" && as_dir=.
24885    for ac_exec_ext in '' $ac_executable_extensions; do
24886  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24887    ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
24888    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24889    break 2
24890  fi
24891done
24892  done
24893IFS=$as_save_IFS
24894
24895  ;;
24896esac
24897fi
24898ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
24899if test -n "$ac_pt_DX_PERL"; then
24900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
24901$as_echo "$ac_pt_DX_PERL" >&6; }
24902else
24903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24904$as_echo "no" >&6; }
24905fi
24906
24907  if test "x$ac_pt_DX_PERL" = x; then
24908    DX_PERL=""
24909  else
24910    case $cross_compiling:$ac_tool_warned in
24911yes:)
24912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24914ac_tool_warned=yes ;;
24915esac
24916    DX_PERL=$ac_pt_DX_PERL
24917  fi
24918else
24919  DX_PERL="$ac_cv_path_DX_PERL"
24920fi
24921
24922if test "$DX_FLAG_doc$DX_PERL" = 1; then
24923    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
24924$as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
24925    DX_FLAG_doc=0
24926
24927fi
24928
24929    :
24930fi
24931if test "$DX_FLAG_doc" = 1; then
24932     if :; then
24933  DX_COND_doc_TRUE=
24934  DX_COND_doc_FALSE='#'
24935else
24936  DX_COND_doc_TRUE='#'
24937  DX_COND_doc_FALSE=
24938fi
24939
24940    DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
24941
24942    :
24943else
24944     if false; then
24945  DX_COND_doc_TRUE=
24946  DX_COND_doc_FALSE='#'
24947else
24948  DX_COND_doc_TRUE='#'
24949  DX_COND_doc_FALSE=
24950fi
24951
24952
24953    :
24954fi
24955
24956
24957# Dot for graphics:
24958
24959
24960
24961    # Check whether --enable-doxygen-dot was given.
24962if test "${enable_doxygen_dot+set}" = set; then :
24963  enableval=$enable_doxygen_dot;
24964case "$enableval" in
24965#(
24966y|Y|yes|Yes|YES)
24967    DX_FLAG_dot=1
24968
24969
24970test "$DX_FLAG_doc" = "1" \
24971|| as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
24972
24973;; #(
24974n|N|no|No|NO)
24975    DX_FLAG_dot=0
24976
24977;; #(
24978*)
24979    as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
24980;;
24981esac
24982
24983else
24984
24985DX_FLAG_dot=1
24986
24987
24988test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
24989
24990
24991
24992fi
24993
24994if test "$DX_FLAG_dot" = 1; then
24995
24996if test -n "$ac_tool_prefix"; then
24997  # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
24998set dummy ${ac_tool_prefix}dot; ac_word=$2
24999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25000$as_echo_n "checking for $ac_word... " >&6; }
25001if ${ac_cv_path_DX_DOT+:} false; then :
25002  $as_echo_n "(cached) " >&6
25003else
25004  case $DX_DOT in
25005  [\\/]* | ?:[\\/]*)
25006  ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
25007  ;;
25008  *)
25009  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25010for as_dir in $PATH
25011do
25012  IFS=$as_save_IFS
25013  test -z "$as_dir" && as_dir=.
25014    for ac_exec_ext in '' $ac_executable_extensions; do
25015  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25016    ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
25017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25018    break 2
25019  fi
25020done
25021  done
25022IFS=$as_save_IFS
25023
25024  ;;
25025esac
25026fi
25027DX_DOT=$ac_cv_path_DX_DOT
25028if test -n "$DX_DOT"; then
25029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
25030$as_echo "$DX_DOT" >&6; }
25031else
25032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25033$as_echo "no" >&6; }
25034fi
25035
25036
25037fi
25038if test -z "$ac_cv_path_DX_DOT"; then
25039  ac_pt_DX_DOT=$DX_DOT
25040  # Extract the first word of "dot", so it can be a program name with args.
25041set dummy dot; ac_word=$2
25042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25043$as_echo_n "checking for $ac_word... " >&6; }
25044if ${ac_cv_path_ac_pt_DX_DOT+:} false; then :
25045  $as_echo_n "(cached) " >&6
25046else
25047  case $ac_pt_DX_DOT in
25048  [\\/]* | ?:[\\/]*)
25049  ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
25050  ;;
25051  *)
25052  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25053for as_dir in $PATH
25054do
25055  IFS=$as_save_IFS
25056  test -z "$as_dir" && as_dir=.
25057    for ac_exec_ext in '' $ac_executable_extensions; do
25058  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25059    ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
25060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25061    break 2
25062  fi
25063done
25064  done
25065IFS=$as_save_IFS
25066
25067  ;;
25068esac
25069fi
25070ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
25071if test -n "$ac_pt_DX_DOT"; then
25072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
25073$as_echo "$ac_pt_DX_DOT" >&6; }
25074else
25075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25076$as_echo "no" >&6; }
25077fi
25078
25079  if test "x$ac_pt_DX_DOT" = x; then
25080    DX_DOT=""
25081  else
25082    case $cross_compiling:$ac_tool_warned in
25083yes:)
25084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25086ac_tool_warned=yes ;;
25087esac
25088    DX_DOT=$ac_pt_DX_DOT
25089  fi
25090else
25091  DX_DOT="$ac_cv_path_DX_DOT"
25092fi
25093
25094if test "$DX_FLAG_dot$DX_DOT" = 1; then
25095    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
25096$as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
25097    DX_FLAG_dot=0
25098
25099fi
25100
25101    :
25102fi
25103if test "$DX_FLAG_dot" = 1; then
25104     if :; then
25105  DX_COND_dot_TRUE=
25106  DX_COND_dot_FALSE='#'
25107else
25108  DX_COND_dot_TRUE='#'
25109  DX_COND_dot_FALSE=
25110fi
25111
25112    DX_ENV="$DX_ENV HAVE_DOT='YES'"
25113
25114             DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
25115
25116    :
25117else
25118     if false; then
25119  DX_COND_dot_TRUE=
25120  DX_COND_dot_FALSE='#'
25121else
25122  DX_COND_dot_TRUE='#'
25123  DX_COND_dot_FALSE=
25124fi
25125
25126    DX_ENV="$DX_ENV HAVE_DOT='NO'"
25127
25128    :
25129fi
25130
25131
25132# Man pages generation:
25133
25134
25135
25136    # Check whether --enable-doxygen-man was given.
25137if test "${enable_doxygen_man+set}" = set; then :
25138  enableval=$enable_doxygen_man;
25139case "$enableval" in
25140#(
25141y|Y|yes|Yes|YES)
25142    DX_FLAG_man=1
25143
25144
25145test "$DX_FLAG_doc" = "1" \
25146|| as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
25147
25148;; #(
25149n|N|no|No|NO)
25150    DX_FLAG_man=0
25151
25152;; #(
25153*)
25154    as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
25155;;
25156esac
25157
25158else
25159
25160DX_FLAG_man=0
25161
25162
25163test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
25164
25165
25166
25167fi
25168
25169if test "$DX_FLAG_man" = 1; then
25170
25171    :
25172fi
25173if test "$DX_FLAG_man" = 1; then
25174     if :; then
25175  DX_COND_man_TRUE=
25176  DX_COND_man_FALSE='#'
25177else
25178  DX_COND_man_TRUE='#'
25179  DX_COND_man_FALSE=
25180fi
25181
25182    DX_ENV="$DX_ENV GENERATE_MAN='YES'"
25183
25184    :
25185else
25186     if false; then
25187  DX_COND_man_TRUE=
25188  DX_COND_man_FALSE='#'
25189else
25190  DX_COND_man_TRUE='#'
25191  DX_COND_man_FALSE=
25192fi
25193
25194    DX_ENV="$DX_ENV GENERATE_MAN='NO'"
25195
25196    :
25197fi
25198
25199
25200# RTF file generation:
25201
25202
25203
25204    # Check whether --enable-doxygen-rtf was given.
25205if test "${enable_doxygen_rtf+set}" = set; then :
25206  enableval=$enable_doxygen_rtf;
25207case "$enableval" in
25208#(
25209y|Y|yes|Yes|YES)
25210    DX_FLAG_rtf=1
25211
25212
25213test "$DX_FLAG_doc" = "1" \
25214|| as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
25215
25216;; #(
25217n|N|no|No|NO)
25218    DX_FLAG_rtf=0
25219
25220;; #(
25221*)
25222    as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
25223;;
25224esac
25225
25226else
25227
25228DX_FLAG_rtf=0
25229
25230
25231test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
25232
25233
25234
25235fi
25236
25237if test "$DX_FLAG_rtf" = 1; then
25238
25239    :
25240fi
25241if test "$DX_FLAG_rtf" = 1; then
25242     if :; then
25243  DX_COND_rtf_TRUE=
25244  DX_COND_rtf_FALSE='#'
25245else
25246  DX_COND_rtf_TRUE='#'
25247  DX_COND_rtf_FALSE=
25248fi
25249
25250    DX_ENV="$DX_ENV GENERATE_RTF='YES'"
25251
25252    :
25253else
25254     if false; then
25255  DX_COND_rtf_TRUE=
25256  DX_COND_rtf_FALSE='#'
25257else
25258  DX_COND_rtf_TRUE='#'
25259  DX_COND_rtf_FALSE=
25260fi
25261
25262    DX_ENV="$DX_ENV GENERATE_RTF='NO'"
25263
25264    :
25265fi
25266
25267
25268# XML file generation:
25269
25270
25271
25272    # Check whether --enable-doxygen-xml was given.
25273if test "${enable_doxygen_xml+set}" = set; then :
25274  enableval=$enable_doxygen_xml;
25275case "$enableval" in
25276#(
25277y|Y|yes|Yes|YES)
25278    DX_FLAG_xml=1
25279
25280
25281test "$DX_FLAG_doc" = "1" \
25282|| as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
25283
25284;; #(
25285n|N|no|No|NO)
25286    DX_FLAG_xml=0
25287
25288;; #(
25289*)
25290    as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
25291;;
25292esac
25293
25294else
25295
25296DX_FLAG_xml=1
25297
25298
25299test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
25300
25301
25302
25303fi
25304
25305if test "$DX_FLAG_xml" = 1; then
25306
25307    :
25308fi
25309if test "$DX_FLAG_xml" = 1; then
25310     if :; then
25311  DX_COND_xml_TRUE=
25312  DX_COND_xml_FALSE='#'
25313else
25314  DX_COND_xml_TRUE='#'
25315  DX_COND_xml_FALSE=
25316fi
25317
25318    DX_ENV="$DX_ENV GENERATE_XML='YES'"
25319
25320    :
25321else
25322     if false; then
25323  DX_COND_xml_TRUE=
25324  DX_COND_xml_FALSE='#'
25325else
25326  DX_COND_xml_TRUE='#'
25327  DX_COND_xml_FALSE=
25328fi
25329
25330    DX_ENV="$DX_ENV GENERATE_XML='NO'"
25331
25332    :
25333fi
25334
25335
25336# (Compressed) HTML help generation:
25337
25338
25339
25340    # Check whether --enable-doxygen-chm was given.
25341if test "${enable_doxygen_chm+set}" = set; then :
25342  enableval=$enable_doxygen_chm;
25343case "$enableval" in
25344#(
25345y|Y|yes|Yes|YES)
25346    DX_FLAG_chm=1
25347
25348
25349test "$DX_FLAG_doc" = "1" \
25350|| as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
25351
25352;; #(
25353n|N|no|No|NO)
25354    DX_FLAG_chm=0
25355
25356;; #(
25357*)
25358    as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
25359;;
25360esac
25361
25362else
25363
25364DX_FLAG_chm=0
25365
25366
25367test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
25368
25369
25370
25371fi
25372
25373if test "$DX_FLAG_chm" = 1; then
25374
25375if test -n "$ac_tool_prefix"; then
25376  # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
25377set dummy ${ac_tool_prefix}hhc; ac_word=$2
25378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25379$as_echo_n "checking for $ac_word... " >&6; }
25380if ${ac_cv_path_DX_HHC+:} false; then :
25381  $as_echo_n "(cached) " >&6
25382else
25383  case $DX_HHC in
25384  [\\/]* | ?:[\\/]*)
25385  ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
25386  ;;
25387  *)
25388  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25389for as_dir in $PATH
25390do
25391  IFS=$as_save_IFS
25392  test -z "$as_dir" && as_dir=.
25393    for ac_exec_ext in '' $ac_executable_extensions; do
25394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25395    ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
25396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25397    break 2
25398  fi
25399done
25400  done
25401IFS=$as_save_IFS
25402
25403  ;;
25404esac
25405fi
25406DX_HHC=$ac_cv_path_DX_HHC
25407if test -n "$DX_HHC"; then
25408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
25409$as_echo "$DX_HHC" >&6; }
25410else
25411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25412$as_echo "no" >&6; }
25413fi
25414
25415
25416fi
25417if test -z "$ac_cv_path_DX_HHC"; then
25418  ac_pt_DX_HHC=$DX_HHC
25419  # Extract the first word of "hhc", so it can be a program name with args.
25420set dummy hhc; ac_word=$2
25421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25422$as_echo_n "checking for $ac_word... " >&6; }
25423if ${ac_cv_path_ac_pt_DX_HHC+:} false; then :
25424  $as_echo_n "(cached) " >&6
25425else
25426  case $ac_pt_DX_HHC in
25427  [\\/]* | ?:[\\/]*)
25428  ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
25429  ;;
25430  *)
25431  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25432for as_dir in $PATH
25433do
25434  IFS=$as_save_IFS
25435  test -z "$as_dir" && as_dir=.
25436    for ac_exec_ext in '' $ac_executable_extensions; do
25437  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25438    ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
25439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25440    break 2
25441  fi
25442done
25443  done
25444IFS=$as_save_IFS
25445
25446  ;;
25447esac
25448fi
25449ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
25450if test -n "$ac_pt_DX_HHC"; then
25451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
25452$as_echo "$ac_pt_DX_HHC" >&6; }
25453else
25454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25455$as_echo "no" >&6; }
25456fi
25457
25458  if test "x$ac_pt_DX_HHC" = x; then
25459    DX_HHC=""
25460  else
25461    case $cross_compiling:$ac_tool_warned in
25462yes:)
25463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25465ac_tool_warned=yes ;;
25466esac
25467    DX_HHC=$ac_pt_DX_HHC
25468  fi
25469else
25470  DX_HHC="$ac_cv_path_DX_HHC"
25471fi
25472
25473if test "$DX_FLAG_chm$DX_HHC" = 1; then
25474    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
25475$as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
25476    DX_FLAG_chm=0
25477
25478fi
25479
25480    :
25481fi
25482if test "$DX_FLAG_chm" = 1; then
25483     if :; then
25484  DX_COND_chm_TRUE=
25485  DX_COND_chm_FALSE='#'
25486else
25487  DX_COND_chm_TRUE='#'
25488  DX_COND_chm_FALSE=
25489fi
25490
25491    DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
25492
25493             DX_ENV="$DX_ENV GENERATE_HTML='YES'"
25494
25495             DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
25496
25497    :
25498else
25499     if false; then
25500  DX_COND_chm_TRUE=
25501  DX_COND_chm_FALSE='#'
25502else
25503  DX_COND_chm_TRUE='#'
25504  DX_COND_chm_FALSE=
25505fi
25506
25507    DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
25508
25509    :
25510fi
25511
25512
25513# Seperate CHI file generation.
25514
25515
25516
25517    # Check whether --enable-doxygen-chi was given.
25518if test "${enable_doxygen_chi+set}" = set; then :
25519  enableval=$enable_doxygen_chi;
25520case "$enableval" in
25521#(
25522y|Y|yes|Yes|YES)
25523    DX_FLAG_chi=1
25524
25525
25526test "$DX_FLAG_chm" = "1" \
25527|| as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
25528
25529;; #(
25530n|N|no|No|NO)
25531    DX_FLAG_chi=0
25532
25533;; #(
25534*)
25535    as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
25536;;
25537esac
25538
25539else
25540
25541DX_FLAG_chi=0
25542
25543
25544test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
25545
25546
25547
25548fi
25549
25550if test "$DX_FLAG_chi" = 1; then
25551
25552    :
25553fi
25554if test "$DX_FLAG_chi" = 1; then
25555     if :; then
25556  DX_COND_chi_TRUE=
25557  DX_COND_chi_FALSE='#'
25558else
25559  DX_COND_chi_TRUE='#'
25560  DX_COND_chi_FALSE=
25561fi
25562
25563    DX_ENV="$DX_ENV GENERATE_CHI='YES'"
25564
25565    :
25566else
25567     if false; then
25568  DX_COND_chi_TRUE=
25569  DX_COND_chi_FALSE='#'
25570else
25571  DX_COND_chi_TRUE='#'
25572  DX_COND_chi_FALSE=
25573fi
25574
25575    DX_ENV="$DX_ENV GENERATE_CHI='NO'"
25576
25577    :
25578fi
25579
25580
25581# Plain HTML pages generation:
25582
25583
25584
25585    # Check whether --enable-doxygen-html was given.
25586if test "${enable_doxygen_html+set}" = set; then :
25587  enableval=$enable_doxygen_html;
25588case "$enableval" in
25589#(
25590y|Y|yes|Yes|YES)
25591    DX_FLAG_html=1
25592
25593
25594test "$DX_FLAG_doc" = "1" \
25595|| as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
25596
25597test "$DX_FLAG_chm" = "0" \
25598|| as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
25599
25600;; #(
25601n|N|no|No|NO)
25602    DX_FLAG_html=0
25603
25604;; #(
25605*)
25606    as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
25607;;
25608esac
25609
25610else
25611
25612DX_FLAG_html=1
25613
25614
25615test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
25616
25617
25618test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
25619
25620
25621
25622fi
25623
25624if test "$DX_FLAG_html" = 1; then
25625
25626    :
25627fi
25628if test "$DX_FLAG_html" = 1; then
25629     if :; then
25630  DX_COND_html_TRUE=
25631  DX_COND_html_FALSE='#'
25632else
25633  DX_COND_html_TRUE='#'
25634  DX_COND_html_FALSE=
25635fi
25636
25637    DX_ENV="$DX_ENV GENERATE_HTML='YES'"
25638
25639    :
25640else
25641     if false; then
25642  DX_COND_html_TRUE=
25643  DX_COND_html_FALSE='#'
25644else
25645  DX_COND_html_TRUE='#'
25646  DX_COND_html_FALSE=
25647fi
25648
25649    test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
25650
25651    :
25652fi
25653
25654
25655# PostScript file generation:
25656
25657
25658
25659    # Check whether --enable-doxygen-ps was given.
25660if test "${enable_doxygen_ps+set}" = set; then :
25661  enableval=$enable_doxygen_ps;
25662case "$enableval" in
25663#(
25664y|Y|yes|Yes|YES)
25665    DX_FLAG_ps=1
25666
25667
25668test "$DX_FLAG_doc" = "1" \
25669|| as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
25670
25671;; #(
25672n|N|no|No|NO)
25673    DX_FLAG_ps=0
25674
25675;; #(
25676*)
25677    as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
25678;;
25679esac
25680
25681else
25682
25683DX_FLAG_ps=0
25684
25685
25686test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
25687
25688
25689
25690fi
25691
25692if test "$DX_FLAG_ps" = 1; then
25693
25694if test -n "$ac_tool_prefix"; then
25695  # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
25696set dummy ${ac_tool_prefix}latex; ac_word=$2
25697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25698$as_echo_n "checking for $ac_word... " >&6; }
25699if ${ac_cv_path_DX_LATEX+:} false; then :
25700  $as_echo_n "(cached) " >&6
25701else
25702  case $DX_LATEX in
25703  [\\/]* | ?:[\\/]*)
25704  ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
25705  ;;
25706  *)
25707  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25708for as_dir in $PATH
25709do
25710  IFS=$as_save_IFS
25711  test -z "$as_dir" && as_dir=.
25712    for ac_exec_ext in '' $ac_executable_extensions; do
25713  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25714    ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
25715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25716    break 2
25717  fi
25718done
25719  done
25720IFS=$as_save_IFS
25721
25722  ;;
25723esac
25724fi
25725DX_LATEX=$ac_cv_path_DX_LATEX
25726if test -n "$DX_LATEX"; then
25727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
25728$as_echo "$DX_LATEX" >&6; }
25729else
25730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25731$as_echo "no" >&6; }
25732fi
25733
25734
25735fi
25736if test -z "$ac_cv_path_DX_LATEX"; then
25737  ac_pt_DX_LATEX=$DX_LATEX
25738  # Extract the first word of "latex", so it can be a program name with args.
25739set dummy latex; ac_word=$2
25740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25741$as_echo_n "checking for $ac_word... " >&6; }
25742if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then :
25743  $as_echo_n "(cached) " >&6
25744else
25745  case $ac_pt_DX_LATEX in
25746  [\\/]* | ?:[\\/]*)
25747  ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
25748  ;;
25749  *)
25750  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25751for as_dir in $PATH
25752do
25753  IFS=$as_save_IFS
25754  test -z "$as_dir" && as_dir=.
25755    for ac_exec_ext in '' $ac_executable_extensions; do
25756  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25757    ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
25758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25759    break 2
25760  fi
25761done
25762  done
25763IFS=$as_save_IFS
25764
25765  ;;
25766esac
25767fi
25768ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
25769if test -n "$ac_pt_DX_LATEX"; then
25770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
25771$as_echo "$ac_pt_DX_LATEX" >&6; }
25772else
25773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25774$as_echo "no" >&6; }
25775fi
25776
25777  if test "x$ac_pt_DX_LATEX" = x; then
25778    DX_LATEX=""
25779  else
25780    case $cross_compiling:$ac_tool_warned in
25781yes:)
25782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25784ac_tool_warned=yes ;;
25785esac
25786    DX_LATEX=$ac_pt_DX_LATEX
25787  fi
25788else
25789  DX_LATEX="$ac_cv_path_DX_LATEX"
25790fi
25791
25792if test "$DX_FLAG_ps$DX_LATEX" = 1; then
25793    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
25794$as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
25795    DX_FLAG_ps=0
25796
25797fi
25798
25799
25800if test -n "$ac_tool_prefix"; then
25801  # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
25802set dummy ${ac_tool_prefix}makeindex; ac_word=$2
25803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25804$as_echo_n "checking for $ac_word... " >&6; }
25805if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
25806  $as_echo_n "(cached) " >&6
25807else
25808  case $DX_MAKEINDEX in
25809  [\\/]* | ?:[\\/]*)
25810  ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
25811  ;;
25812  *)
25813  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25814for as_dir in $PATH
25815do
25816  IFS=$as_save_IFS
25817  test -z "$as_dir" && as_dir=.
25818    for ac_exec_ext in '' $ac_executable_extensions; do
25819  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25820    ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
25821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25822    break 2
25823  fi
25824done
25825  done
25826IFS=$as_save_IFS
25827
25828  ;;
25829esac
25830fi
25831DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
25832if test -n "$DX_MAKEINDEX"; then
25833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
25834$as_echo "$DX_MAKEINDEX" >&6; }
25835else
25836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25837$as_echo "no" >&6; }
25838fi
25839
25840
25841fi
25842if test -z "$ac_cv_path_DX_MAKEINDEX"; then
25843  ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
25844  # Extract the first word of "makeindex", so it can be a program name with args.
25845set dummy makeindex; ac_word=$2
25846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25847$as_echo_n "checking for $ac_word... " >&6; }
25848if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
25849  $as_echo_n "(cached) " >&6
25850else
25851  case $ac_pt_DX_MAKEINDEX in
25852  [\\/]* | ?:[\\/]*)
25853  ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
25854  ;;
25855  *)
25856  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25857for as_dir in $PATH
25858do
25859  IFS=$as_save_IFS
25860  test -z "$as_dir" && as_dir=.
25861    for ac_exec_ext in '' $ac_executable_extensions; do
25862  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25863    ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
25864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25865    break 2
25866  fi
25867done
25868  done
25869IFS=$as_save_IFS
25870
25871  ;;
25872esac
25873fi
25874ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
25875if test -n "$ac_pt_DX_MAKEINDEX"; then
25876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
25877$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
25878else
25879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25880$as_echo "no" >&6; }
25881fi
25882
25883  if test "x$ac_pt_DX_MAKEINDEX" = x; then
25884    DX_MAKEINDEX=""
25885  else
25886    case $cross_compiling:$ac_tool_warned in
25887yes:)
25888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25890ac_tool_warned=yes ;;
25891esac
25892    DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
25893  fi
25894else
25895  DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
25896fi
25897
25898if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
25899    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
25900$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
25901    DX_FLAG_ps=0
25902
25903fi
25904
25905
25906if test -n "$ac_tool_prefix"; then
25907  # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
25908set dummy ${ac_tool_prefix}dvips; ac_word=$2
25909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25910$as_echo_n "checking for $ac_word... " >&6; }
25911if ${ac_cv_path_DX_DVIPS+:} false; then :
25912  $as_echo_n "(cached) " >&6
25913else
25914  case $DX_DVIPS in
25915  [\\/]* | ?:[\\/]*)
25916  ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
25917  ;;
25918  *)
25919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25920for as_dir in $PATH
25921do
25922  IFS=$as_save_IFS
25923  test -z "$as_dir" && as_dir=.
25924    for ac_exec_ext in '' $ac_executable_extensions; do
25925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25926    ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
25927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25928    break 2
25929  fi
25930done
25931  done
25932IFS=$as_save_IFS
25933
25934  ;;
25935esac
25936fi
25937DX_DVIPS=$ac_cv_path_DX_DVIPS
25938if test -n "$DX_DVIPS"; then
25939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
25940$as_echo "$DX_DVIPS" >&6; }
25941else
25942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25943$as_echo "no" >&6; }
25944fi
25945
25946
25947fi
25948if test -z "$ac_cv_path_DX_DVIPS"; then
25949  ac_pt_DX_DVIPS=$DX_DVIPS
25950  # Extract the first word of "dvips", so it can be a program name with args.
25951set dummy dvips; ac_word=$2
25952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25953$as_echo_n "checking for $ac_word... " >&6; }
25954if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then :
25955  $as_echo_n "(cached) " >&6
25956else
25957  case $ac_pt_DX_DVIPS in
25958  [\\/]* | ?:[\\/]*)
25959  ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
25960  ;;
25961  *)
25962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25963for as_dir in $PATH
25964do
25965  IFS=$as_save_IFS
25966  test -z "$as_dir" && as_dir=.
25967    for ac_exec_ext in '' $ac_executable_extensions; do
25968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25969    ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
25970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25971    break 2
25972  fi
25973done
25974  done
25975IFS=$as_save_IFS
25976
25977  ;;
25978esac
25979fi
25980ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
25981if test -n "$ac_pt_DX_DVIPS"; then
25982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
25983$as_echo "$ac_pt_DX_DVIPS" >&6; }
25984else
25985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25986$as_echo "no" >&6; }
25987fi
25988
25989  if test "x$ac_pt_DX_DVIPS" = x; then
25990    DX_DVIPS=""
25991  else
25992    case $cross_compiling:$ac_tool_warned in
25993yes:)
25994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25996ac_tool_warned=yes ;;
25997esac
25998    DX_DVIPS=$ac_pt_DX_DVIPS
25999  fi
26000else
26001  DX_DVIPS="$ac_cv_path_DX_DVIPS"
26002fi
26003
26004if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
26005    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
26006$as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
26007    DX_FLAG_ps=0
26008
26009fi
26010
26011
26012if test -n "$ac_tool_prefix"; then
26013  # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
26014set dummy ${ac_tool_prefix}egrep; ac_word=$2
26015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26016$as_echo_n "checking for $ac_word... " >&6; }
26017if ${ac_cv_path_DX_EGREP+:} false; then :
26018  $as_echo_n "(cached) " >&6
26019else
26020  case $DX_EGREP in
26021  [\\/]* | ?:[\\/]*)
26022  ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
26023  ;;
26024  *)
26025  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26026for as_dir in $PATH
26027do
26028  IFS=$as_save_IFS
26029  test -z "$as_dir" && as_dir=.
26030    for ac_exec_ext in '' $ac_executable_extensions; do
26031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26032    ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
26033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26034    break 2
26035  fi
26036done
26037  done
26038IFS=$as_save_IFS
26039
26040  ;;
26041esac
26042fi
26043DX_EGREP=$ac_cv_path_DX_EGREP
26044if test -n "$DX_EGREP"; then
26045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
26046$as_echo "$DX_EGREP" >&6; }
26047else
26048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26049$as_echo "no" >&6; }
26050fi
26051
26052
26053fi
26054if test -z "$ac_cv_path_DX_EGREP"; then
26055  ac_pt_DX_EGREP=$DX_EGREP
26056  # Extract the first word of "egrep", so it can be a program name with args.
26057set dummy egrep; ac_word=$2
26058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26059$as_echo_n "checking for $ac_word... " >&6; }
26060if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
26061  $as_echo_n "(cached) " >&6
26062else
26063  case $ac_pt_DX_EGREP in
26064  [\\/]* | ?:[\\/]*)
26065  ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
26066  ;;
26067  *)
26068  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26069for as_dir in $PATH
26070do
26071  IFS=$as_save_IFS
26072  test -z "$as_dir" && as_dir=.
26073    for ac_exec_ext in '' $ac_executable_extensions; do
26074  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26075    ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
26076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26077    break 2
26078  fi
26079done
26080  done
26081IFS=$as_save_IFS
26082
26083  ;;
26084esac
26085fi
26086ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
26087if test -n "$ac_pt_DX_EGREP"; then
26088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
26089$as_echo "$ac_pt_DX_EGREP" >&6; }
26090else
26091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26092$as_echo "no" >&6; }
26093fi
26094
26095  if test "x$ac_pt_DX_EGREP" = x; then
26096    DX_EGREP=""
26097  else
26098    case $cross_compiling:$ac_tool_warned in
26099yes:)
26100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26102ac_tool_warned=yes ;;
26103esac
26104    DX_EGREP=$ac_pt_DX_EGREP
26105  fi
26106else
26107  DX_EGREP="$ac_cv_path_DX_EGREP"
26108fi
26109
26110if test "$DX_FLAG_ps$DX_EGREP" = 1; then
26111    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
26112$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
26113    DX_FLAG_ps=0
26114
26115fi
26116
26117    :
26118fi
26119if test "$DX_FLAG_ps" = 1; then
26120     if :; then
26121  DX_COND_ps_TRUE=
26122  DX_COND_ps_FALSE='#'
26123else
26124  DX_COND_ps_TRUE='#'
26125  DX_COND_ps_FALSE=
26126fi
26127
26128
26129    :
26130else
26131     if false; then
26132  DX_COND_ps_TRUE=
26133  DX_COND_ps_FALSE='#'
26134else
26135  DX_COND_ps_TRUE='#'
26136  DX_COND_ps_FALSE=
26137fi
26138
26139
26140    :
26141fi
26142
26143
26144# PDF file generation:
26145
26146
26147
26148    # Check whether --enable-doxygen-pdf was given.
26149if test "${enable_doxygen_pdf+set}" = set; then :
26150  enableval=$enable_doxygen_pdf;
26151case "$enableval" in
26152#(
26153y|Y|yes|Yes|YES)
26154    DX_FLAG_pdf=1
26155
26156
26157test "$DX_FLAG_doc" = "1" \
26158|| as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
26159
26160;; #(
26161n|N|no|No|NO)
26162    DX_FLAG_pdf=0
26163
26164;; #(
26165*)
26166    as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
26167;;
26168esac
26169
26170else
26171
26172DX_FLAG_pdf=0
26173
26174
26175test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
26176
26177
26178
26179fi
26180
26181if test "$DX_FLAG_pdf" = 1; then
26182
26183if test -n "$ac_tool_prefix"; then
26184  # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
26185set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
26186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26187$as_echo_n "checking for $ac_word... " >&6; }
26188if ${ac_cv_path_DX_PDFLATEX+:} false; then :
26189  $as_echo_n "(cached) " >&6
26190else
26191  case $DX_PDFLATEX in
26192  [\\/]* | ?:[\\/]*)
26193  ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
26194  ;;
26195  *)
26196  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26197for as_dir in $PATH
26198do
26199  IFS=$as_save_IFS
26200  test -z "$as_dir" && as_dir=.
26201    for ac_exec_ext in '' $ac_executable_extensions; do
26202  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26203    ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
26204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26205    break 2
26206  fi
26207done
26208  done
26209IFS=$as_save_IFS
26210
26211  ;;
26212esac
26213fi
26214DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
26215if test -n "$DX_PDFLATEX"; then
26216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
26217$as_echo "$DX_PDFLATEX" >&6; }
26218else
26219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26220$as_echo "no" >&6; }
26221fi
26222
26223
26224fi
26225if test -z "$ac_cv_path_DX_PDFLATEX"; then
26226  ac_pt_DX_PDFLATEX=$DX_PDFLATEX
26227  # Extract the first word of "pdflatex", so it can be a program name with args.
26228set dummy pdflatex; ac_word=$2
26229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26230$as_echo_n "checking for $ac_word... " >&6; }
26231if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then :
26232  $as_echo_n "(cached) " >&6
26233else
26234  case $ac_pt_DX_PDFLATEX in
26235  [\\/]* | ?:[\\/]*)
26236  ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
26237  ;;
26238  *)
26239  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26240for as_dir in $PATH
26241do
26242  IFS=$as_save_IFS
26243  test -z "$as_dir" && as_dir=.
26244    for ac_exec_ext in '' $ac_executable_extensions; do
26245  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26246    ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
26247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26248    break 2
26249  fi
26250done
26251  done
26252IFS=$as_save_IFS
26253
26254  ;;
26255esac
26256fi
26257ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
26258if test -n "$ac_pt_DX_PDFLATEX"; then
26259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
26260$as_echo "$ac_pt_DX_PDFLATEX" >&6; }
26261else
26262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26263$as_echo "no" >&6; }
26264fi
26265
26266  if test "x$ac_pt_DX_PDFLATEX" = x; then
26267    DX_PDFLATEX=""
26268  else
26269    case $cross_compiling:$ac_tool_warned in
26270yes:)
26271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26273ac_tool_warned=yes ;;
26274esac
26275    DX_PDFLATEX=$ac_pt_DX_PDFLATEX
26276  fi
26277else
26278  DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
26279fi
26280
26281if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
26282    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
26283$as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
26284    DX_FLAG_pdf=0
26285
26286fi
26287
26288
26289if test -n "$ac_tool_prefix"; then
26290  # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
26291set dummy ${ac_tool_prefix}makeindex; ac_word=$2
26292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26293$as_echo_n "checking for $ac_word... " >&6; }
26294if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
26295  $as_echo_n "(cached) " >&6
26296else
26297  case $DX_MAKEINDEX in
26298  [\\/]* | ?:[\\/]*)
26299  ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
26300  ;;
26301  *)
26302  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26303for as_dir in $PATH
26304do
26305  IFS=$as_save_IFS
26306  test -z "$as_dir" && as_dir=.
26307    for ac_exec_ext in '' $ac_executable_extensions; do
26308  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26309    ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
26310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26311    break 2
26312  fi
26313done
26314  done
26315IFS=$as_save_IFS
26316
26317  ;;
26318esac
26319fi
26320DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
26321if test -n "$DX_MAKEINDEX"; then
26322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
26323$as_echo "$DX_MAKEINDEX" >&6; }
26324else
26325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26326$as_echo "no" >&6; }
26327fi
26328
26329
26330fi
26331if test -z "$ac_cv_path_DX_MAKEINDEX"; then
26332  ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
26333  # Extract the first word of "makeindex", so it can be a program name with args.
26334set dummy makeindex; ac_word=$2
26335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26336$as_echo_n "checking for $ac_word... " >&6; }
26337if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
26338  $as_echo_n "(cached) " >&6
26339else
26340  case $ac_pt_DX_MAKEINDEX in
26341  [\\/]* | ?:[\\/]*)
26342  ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
26343  ;;
26344  *)
26345  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26346for as_dir in $PATH
26347do
26348  IFS=$as_save_IFS
26349  test -z "$as_dir" && as_dir=.
26350    for ac_exec_ext in '' $ac_executable_extensions; do
26351  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26352    ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
26353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26354    break 2
26355  fi
26356done
26357  done
26358IFS=$as_save_IFS
26359
26360  ;;
26361esac
26362fi
26363ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
26364if test -n "$ac_pt_DX_MAKEINDEX"; then
26365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
26366$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
26367else
26368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26369$as_echo "no" >&6; }
26370fi
26371
26372  if test "x$ac_pt_DX_MAKEINDEX" = x; then
26373    DX_MAKEINDEX=""
26374  else
26375    case $cross_compiling:$ac_tool_warned in
26376yes:)
26377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26379ac_tool_warned=yes ;;
26380esac
26381    DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
26382  fi
26383else
26384  DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
26385fi
26386
26387if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
26388    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
26389$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
26390    DX_FLAG_pdf=0
26391
26392fi
26393
26394
26395if test -n "$ac_tool_prefix"; then
26396  # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
26397set dummy ${ac_tool_prefix}egrep; ac_word=$2
26398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26399$as_echo_n "checking for $ac_word... " >&6; }
26400if ${ac_cv_path_DX_EGREP+:} false; then :
26401  $as_echo_n "(cached) " >&6
26402else
26403  case $DX_EGREP in
26404  [\\/]* | ?:[\\/]*)
26405  ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
26406  ;;
26407  *)
26408  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26409for as_dir in $PATH
26410do
26411  IFS=$as_save_IFS
26412  test -z "$as_dir" && as_dir=.
26413    for ac_exec_ext in '' $ac_executable_extensions; do
26414  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26415    ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
26416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26417    break 2
26418  fi
26419done
26420  done
26421IFS=$as_save_IFS
26422
26423  ;;
26424esac
26425fi
26426DX_EGREP=$ac_cv_path_DX_EGREP
26427if test -n "$DX_EGREP"; then
26428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
26429$as_echo "$DX_EGREP" >&6; }
26430else
26431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26432$as_echo "no" >&6; }
26433fi
26434
26435
26436fi
26437if test -z "$ac_cv_path_DX_EGREP"; then
26438  ac_pt_DX_EGREP=$DX_EGREP
26439  # Extract the first word of "egrep", so it can be a program name with args.
26440set dummy egrep; ac_word=$2
26441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26442$as_echo_n "checking for $ac_word... " >&6; }
26443if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
26444  $as_echo_n "(cached) " >&6
26445else
26446  case $ac_pt_DX_EGREP in
26447  [\\/]* | ?:[\\/]*)
26448  ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
26449  ;;
26450  *)
26451  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26452for as_dir in $PATH
26453do
26454  IFS=$as_save_IFS
26455  test -z "$as_dir" && as_dir=.
26456    for ac_exec_ext in '' $ac_executable_extensions; do
26457  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26458    ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
26459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26460    break 2
26461  fi
26462done
26463  done
26464IFS=$as_save_IFS
26465
26466  ;;
26467esac
26468fi
26469ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
26470if test -n "$ac_pt_DX_EGREP"; then
26471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
26472$as_echo "$ac_pt_DX_EGREP" >&6; }
26473else
26474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26475$as_echo "no" >&6; }
26476fi
26477
26478  if test "x$ac_pt_DX_EGREP" = x; then
26479    DX_EGREP=""
26480  else
26481    case $cross_compiling:$ac_tool_warned in
26482yes:)
26483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26485ac_tool_warned=yes ;;
26486esac
26487    DX_EGREP=$ac_pt_DX_EGREP
26488  fi
26489else
26490  DX_EGREP="$ac_cv_path_DX_EGREP"
26491fi
26492
26493if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
26494    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
26495$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
26496    DX_FLAG_pdf=0
26497
26498fi
26499
26500    :
26501fi
26502if test "$DX_FLAG_pdf" = 1; then
26503     if :; then
26504  DX_COND_pdf_TRUE=
26505  DX_COND_pdf_FALSE='#'
26506else
26507  DX_COND_pdf_TRUE='#'
26508  DX_COND_pdf_FALSE=
26509fi
26510
26511
26512    :
26513else
26514     if false; then
26515  DX_COND_pdf_TRUE=
26516  DX_COND_pdf_FALSE='#'
26517else
26518  DX_COND_pdf_TRUE='#'
26519  DX_COND_pdf_FALSE=
26520fi
26521
26522
26523    :
26524fi
26525
26526
26527# LaTeX generation for PS and/or PDF:
26528if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
26529     if :; then
26530  DX_COND_latex_TRUE=
26531  DX_COND_latex_FALSE='#'
26532else
26533  DX_COND_latex_TRUE='#'
26534  DX_COND_latex_FALSE=
26535fi
26536
26537    DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
26538
26539else
26540     if false; then
26541  DX_COND_latex_TRUE=
26542  DX_COND_latex_FALSE='#'
26543else
26544  DX_COND_latex_TRUE='#'
26545  DX_COND_latex_FALSE=
26546fi
26547
26548    DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
26549
26550fi
26551
26552# Paper size for PS and/or PDF:
26553
26554case "$DOXYGEN_PAPER_SIZE" in
26555#(
26556"")
26557    DOXYGEN_PAPER_SIZE=""
26558
26559;; #(
26560a4wide|a4|letter|legal|executive)
26561    DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
26562
26563;; #(
26564*)
26565    as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
26566;;
26567esac
26568
26569#For debugging:
26570#echo DX_FLAG_doc=$DX_FLAG_doc
26571#echo DX_FLAG_dot=$DX_FLAG_dot
26572#echo DX_FLAG_man=$DX_FLAG_man
26573#echo DX_FLAG_html=$DX_FLAG_html
26574#echo DX_FLAG_chm=$DX_FLAG_chm
26575#echo DX_FLAG_chi=$DX_FLAG_chi
26576#echo DX_FLAG_rtf=$DX_FLAG_rtf
26577#echo DX_FLAG_xml=$DX_FLAG_xml
26578#echo DX_FLAG_pdf=$DX_FLAG_pdf
26579#echo DX_FLAG_ps=$DX_FLAG_ps
26580#echo DX_ENV=$DX_ENV
26581
26582
26583# Check whether --enable-core-docs was given.
26584if test "${enable_core_docs+set}" = set; then :
26585  enableval=$enable_core_docs; case "${enableval}" in
26586  yes) ENABLE_CORE_DOCS=yes ;;
26587  no)  ENABLE_CORE_DOCS=no ;;
26588  *) as_fn_error $? "bad value ${enableval} for --enable-core-docs" "$LINENO" 5 ;;
26589esac
26590else
26591  ENABLE_CORE_DOCS=no
26592fi
26593
26594
26595 if test "x$ENABLE_CORE_DOCS" = xyes; then
26596  ENABLE_CORE_DOCS_TRUE=
26597  ENABLE_CORE_DOCS_FALSE='#'
26598else
26599  ENABLE_CORE_DOCS_TRUE='#'
26600  ENABLE_CORE_DOCS_FALSE=
26601fi
26602
26603
26604#
26605# Build and Install man pages
26606#
26607# Check whether --enable-manpages was given.
26608if test "${enable_manpages+set}" = set; then :
26609  enableval=$enable_manpages; case "${enableval}" in
26610  yes) manpages=yes ;;
26611  no)  manpages=no ;;
26612  *) as_fn_error $? "bad value ${enableval} for --disable-manpages" "$LINENO" 5 ;;
26613esac
26614else
26615  manpages=yes
26616fi
26617
26618
26619if test x$manpages = xyes ; then
26620    #
26621    # XMLTOMAN manpage generation
26622    #
26623    # Check whether --enable-xmltoman was given.
26624if test "${enable_xmltoman+set}" = set; then :
26625  enableval=$enable_xmltoman; case "${enableval}" in
26626      yes) xmltoman=yes ;;
26627      no)  xmltoman=no ;;
26628      *) as_fn_error $? "bad value ${enableval} for --disable-xmltoman" "$LINENO" 5 ;;
26629    esac
26630else
26631  xmltoman=yes
26632fi
26633
26634
26635    if test x$xmltoman = xyes ; then
26636        # Extract the first word of "xmltoman", so it can be a program name with args.
26637set dummy xmltoman; ac_word=$2
26638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26639$as_echo_n "checking for $ac_word... " >&6; }
26640if ${ac_cv_prog_have_xmltoman+:} false; then :
26641  $as_echo_n "(cached) " >&6
26642else
26643  if test -n "$have_xmltoman"; then
26644  ac_cv_prog_have_xmltoman="$have_xmltoman" # Let the user override the test.
26645else
26646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26647for as_dir in $PATH
26648do
26649  IFS=$as_save_IFS
26650  test -z "$as_dir" && as_dir=.
26651    for ac_exec_ext in '' $ac_executable_extensions; do
26652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26653    ac_cv_prog_have_xmltoman="yes"
26654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26655    break 2
26656  fi
26657done
26658  done
26659IFS=$as_save_IFS
26660
26661  test -z "$ac_cv_prog_have_xmltoman" && ac_cv_prog_have_xmltoman="no"
26662fi
26663fi
26664have_xmltoman=$ac_cv_prog_have_xmltoman
26665if test -n "$have_xmltoman"; then
26666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xmltoman" >&5
26667$as_echo "$have_xmltoman" >&6; }
26668else
26669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26670$as_echo "no" >&6; }
26671fi
26672
26673
26674    fi
26675
26676    if test x$have_xmltoman = xno -o x$xmltoman = xno; then
26677        if ! test -e $srcdir/man/avahi-daemon.8 ; then
26678            as_fn_error $? "*** xmltoman was not found or was disabled, it is required to build the manpages as they have not been pre-built, install xmltoman, pass --disable-manpages or dont pass --disable-xmltoman" "$LINENO" 5
26679            exit 1
26680        fi
26681        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Not rebuilding man pages as xmltoman is not found ***" >&5
26682$as_echo "$as_me: WARNING: *** Not rebuilding man pages as xmltoman is not found ***" >&2;}
26683        xmltoman=no
26684    fi
26685fi
26686 if test "x$xmltoman" = xyes; then
26687  USE_XMLTOMAN_TRUE=
26688  USE_XMLTOMAN_FALSE='#'
26689else
26690  USE_XMLTOMAN_TRUE='#'
26691  USE_XMLTOMAN_FALSE=
26692fi
26693
26694 if test "x$manpages" = xyes; then
26695  BUILD_MANPAGES_TRUE=
26696  BUILD_MANPAGES_FALSE='#'
26697else
26698  BUILD_MANPAGES_TRUE='#'
26699  BUILD_MANPAGES_FALSE=
26700fi
26701
26702
26703#
26704# Conditionally compile test and example programs
26705#
26706# Check whether --enable-tests was given.
26707if test "${enable_tests+set}" = set; then :
26708  enableval=$enable_tests; case "${enableval}" in
26709                yes) ENABLE_TESTS=yes ;;
26710                no)  ENABLE_TESTS=no ;;
26711                *) as_fn_error $? "bad value ${enableval} for --enable-tests" "$LINENO" 5 ;;
26712        esac
26713else
26714  ENABLE_TESTS=no
26715fi
26716
26717
26718 if test "x$ENABLE_TESTS" = "xyes"; then
26719  ENABLE_TESTS_TRUE=
26720  ENABLE_TESTS_FALSE='#'
26721else
26722  ENABLE_TESTS_TRUE='#'
26723  ENABLE_TESTS_FALSE=
26724fi
26725
26726
26727#
26728# Optionally enable libdns_sd compatibility support
26729#
26730# Check whether --enable-compat-libdns_sd was given.
26731if test "${enable_compat_libdns_sd+set}" = set; then :
26732  enableval=$enable_compat_libdns_sd; case "${enableval}" in
26733                yes) ENABLE_COMPAT_LIBDNS_SD=yes ;;
26734                no)  ENABLE_COMPAT_LIBDNS_SD=no ;;
26735                *) as_fn_error $? "bad value ${enableval} for --enable-compat-libdns_sd" "$LINENO" 5 ;;
26736        esac
26737else
26738  ENABLE_COMPAT_LIBDNS_SD=no
26739fi
26740
26741
26742 if test "x$ENABLE_COMPAT_LIBDNS_SD" = "xyes"; then
26743  ENABLE_COMPAT_LIBDNS_SD_TRUE=
26744  ENABLE_COMPAT_LIBDNS_SD_FALSE='#'
26745else
26746  ENABLE_COMPAT_LIBDNS_SD_TRUE='#'
26747  ENABLE_COMPAT_LIBDNS_SD_FALSE=
26748fi
26749
26750
26751#
26752# Optionally enable HOWL compatibility support
26753#
26754# Check whether --enable-compat-howl was given.
26755if test "${enable_compat_howl+set}" = set; then :
26756  enableval=$enable_compat_howl; case "${enableval}" in
26757                yes) ENABLE_COMPAT_HOWL=yes ;;
26758                no)  ENABLE_COMPAT_HOWL=no ;;
26759                *) as_fn_error $? "bad value ${enableval} for --enable-compat-howl" "$LINENO" 5 ;;
26760        esac
26761else
26762  ENABLE_COMPAT_HOWL=no
26763fi
26764
26765
26766 if test "x$ENABLE_COMPAT_HOWL" = "xyes"; then
26767  ENABLE_COMPAT_HOWL_TRUE=
26768  ENABLE_COMPAT_HOWL_FALSE='#'
26769else
26770  ENABLE_COMPAT_HOWL_TRUE='#'
26771  ENABLE_COMPAT_HOWL_FALSE=
26772fi
26773
26774
26775#
26776# systemd
26777#
26778
26779# Check whether --with-systemdsystemunitdir was given.
26780if test "${with_systemdsystemunitdir+set}" = set; then :
26781  withval=$with_systemdsystemunitdir;
26782else
26783  with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
26784fi
26785
26786if test "x$with_systemdsystemunitdir" != xno; then
26787        systemdsystemunitdir=$with_systemdsystemunitdir
26788
26789fi
26790 if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then
26791  HAVE_SYSTEMD_TRUE=
26792  HAVE_SYSTEMD_FALSE='#'
26793else
26794  HAVE_SYSTEMD_TRUE='#'
26795  HAVE_SYSTEMD_FALSE=
26796fi
26797
26798
26799# ==========================================================================
26800ac_config_files="$ac_config_files Makefile avahi-common/Makefile avahi-core/Makefile avahi-glib/Makefile avahi-gobject/Makefile avahi-qt/Makefile avahi-daemon/Makefile avahi-daemon/avahi-dbus.conf avahi-discover-standalone/Makefile avahi-client/Makefile initscript/Makefile initscript/debian/Makefile initscript/gentoo/Makefile initscript/suse/Makefile initscript/fedora/Makefile initscript/lfs/Makefile initscript/mandriva/Makefile initscript/darwin/Makefile initscript/freebsd/Makefile initscript/slackware/Makefile avahi-dnsconfd/Makefile avahi-utils/Makefile avahi-python/Makefile avahi-python/avahi/Makefile avahi-python/avahi-discover/Makefile examples/Makefile common/Makefile man/Makefile tests/Makefile service-type-database/Makefile avahi-sharp/Makefile avahi-ui-sharp/Makefile avahi-compat-libdns_sd/Makefile avahi-compat-howl/Makefile avahi-compat-howl/samples/Makefile avahi-autoipd/Makefile avahi-ui/Makefile avahi-libevent/Makefile po/Makefile.in"
26801
26802cat >confcache <<\_ACEOF
26803# This file is a shell script that caches the results of configure
26804# tests run on this system so they can be shared between configure
26805# scripts and configure runs, see configure's option --config-cache.
26806# It is not useful on other systems.  If it contains results you don't
26807# want to keep, you may remove or edit it.
26808#
26809# config.status only pays attention to the cache file if you give it
26810# the --recheck option to rerun configure.
26811#
26812# `ac_cv_env_foo' variables (set or unset) will be overridden when
26813# loading this file, other *unset* `ac_cv_foo' will be assigned the
26814# following values.
26815
26816_ACEOF
26817
26818# The following way of writing the cache mishandles newlines in values,
26819# but we know of no workaround that is simple, portable, and efficient.
26820# So, we kill variables containing newlines.
26821# Ultrix sh set writes to stderr and can't be redirected directly,
26822# and sets the high bit in the cache file unless we assign to the vars.
26823(
26824  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26825    eval ac_val=\$$ac_var
26826    case $ac_val in #(
26827    *${as_nl}*)
26828      case $ac_var in #(
26829      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26830$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26831      esac
26832      case $ac_var in #(
26833      _ | IFS | as_nl) ;; #(
26834      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26835      *) { eval $ac_var=; unset $ac_var;} ;;
26836      esac ;;
26837    esac
26838  done
26839
26840  (set) 2>&1 |
26841    case $as_nl`(ac_space=' '; set) 2>&1` in #(
26842    *${as_nl}ac_space=\ *)
26843      # `set' does not quote correctly, so add quotes: double-quote
26844      # substitution turns \\\\ into \\, and sed turns \\ into \.
26845      sed -n \
26846	"s/'/'\\\\''/g;
26847	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26848      ;; #(
26849    *)
26850      # `set' quotes correctly as required by POSIX, so do not add quotes.
26851      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26852      ;;
26853    esac |
26854    sort
26855) |
26856  sed '
26857     /^ac_cv_env_/b end
26858     t clear
26859     :clear
26860     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26861     t end
26862     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26863     :end' >>confcache
26864if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26865  if test -w "$cache_file"; then
26866    if test "x$cache_file" != "x/dev/null"; then
26867      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26868$as_echo "$as_me: updating cache $cache_file" >&6;}
26869      if test ! -f "$cache_file" || test -h "$cache_file"; then
26870	cat confcache >"$cache_file"
26871      else
26872        case $cache_file in #(
26873        */* | ?:*)
26874	  mv -f confcache "$cache_file"$$ &&
26875	  mv -f "$cache_file"$$ "$cache_file" ;; #(
26876        *)
26877	  mv -f confcache "$cache_file" ;;
26878	esac
26879      fi
26880    fi
26881  else
26882    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26883$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26884  fi
26885fi
26886rm -f confcache
26887
26888test "x$prefix" = xNONE && prefix=$ac_default_prefix
26889# Let make expand exec_prefix.
26890test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26891
26892DEFS=-DHAVE_CONFIG_H
26893
26894ac_libobjs=
26895ac_ltlibobjs=
26896U=
26897for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26898  # 1. Remove the extension, and $U if already installed.
26899  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26900  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26901  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26902  #    will be set to the directory where LIBOBJS objects are built.
26903  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26904  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26905done
26906LIBOBJS=$ac_libobjs
26907
26908LTLIBOBJS=$ac_ltlibobjs
26909
26910
26911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26912$as_echo_n "checking that generated files are newer than configure... " >&6; }
26913   if test -n "$am_sleep_pid"; then
26914     # Hide warnings about reused PIDs.
26915     wait $am_sleep_pid 2>/dev/null
26916   fi
26917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26918$as_echo "done" >&6; }
26919 if test -n "$EXEEXT"; then
26920  am__EXEEXT_TRUE=
26921  am__EXEEXT_FALSE='#'
26922else
26923  am__EXEEXT_TRUE='#'
26924  am__EXEEXT_FALSE=
26925fi
26926
26927if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26928  as_fn_error $? "conditional \"AMDEP\" was never defined.
26929Usually this means the macro was only invoked conditionally." "$LINENO" 5
26930fi
26931if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26932  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26933Usually this means the macro was only invoked conditionally." "$LINENO" 5
26934fi
26935if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26936  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26937Usually this means the macro was only invoked conditionally." "$LINENO" 5
26938fi
26939if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then
26940  as_fn_error $? "conditional \"HAVE_NETLINK\" was never defined.
26941Usually this means the macro was only invoked conditionally." "$LINENO" 5
26942fi
26943if test -z "${HAVE_PF_ROUTE_TRUE}" && test -z "${HAVE_PF_ROUTE_FALSE}"; then
26944  as_fn_error $? "conditional \"HAVE_PF_ROUTE\" was never defined.
26945Usually this means the macro was only invoked conditionally." "$LINENO" 5
26946fi
26947if test -z "${HAVE_SYS_FILIO_H_TRUE}" && test -z "${HAVE_SYS_FILIO_H_FALSE}"; then
26948  as_fn_error $? "conditional \"HAVE_SYS_FILIO_H\" was never defined.
26949Usually this means the macro was only invoked conditionally." "$LINENO" 5
26950fi
26951if test -z "${HAVE_SYS_SYSCTL_H_TRUE}" && test -z "${HAVE_SYS_SYSCTL_H_FALSE}"; then
26952  as_fn_error $? "conditional \"HAVE_SYS_SYSCTL_H\" was never defined.
26953Usually this means the macro was only invoked conditionally." "$LINENO" 5
26954fi
26955if test -z "${TARGET_LFS_TRUE}" && test -z "${TARGET_LFS_FALSE}"; then
26956  as_fn_error $? "conditional \"TARGET_LFS\" was never defined.
26957Usually this means the macro was only invoked conditionally." "$LINENO" 5
26958fi
26959if test -z "${TARGET_SUSE_TRUE}" && test -z "${TARGET_SUSE_FALSE}"; then
26960  as_fn_error $? "conditional \"TARGET_SUSE\" was never defined.
26961Usually this means the macro was only invoked conditionally." "$LINENO" 5
26962fi
26963if test -z "${TARGET_GENTOO_TRUE}" && test -z "${TARGET_GENTOO_FALSE}"; then
26964  as_fn_error $? "conditional \"TARGET_GENTOO\" was never defined.
26965Usually this means the macro was only invoked conditionally." "$LINENO" 5
26966fi
26967if test -z "${TARGET_DEBIAN_TRUE}" && test -z "${TARGET_DEBIAN_FALSE}"; then
26968  as_fn_error $? "conditional \"TARGET_DEBIAN\" was never defined.
26969Usually this means the macro was only invoked conditionally." "$LINENO" 5
26970fi
26971if test -z "${TARGET_ARCHLINUX_TRUE}" && test -z "${TARGET_ARCHLINUX_FALSE}"; then
26972  as_fn_error $? "conditional \"TARGET_ARCHLINUX\" was never defined.
26973Usually this means the macro was only invoked conditionally." "$LINENO" 5
26974fi
26975if test -z "${TARGET_FEDORA_TRUE}" && test -z "${TARGET_FEDORA_FALSE}"; then
26976  as_fn_error $? "conditional \"TARGET_FEDORA\" was never defined.
26977Usually this means the macro was only invoked conditionally." "$LINENO" 5
26978fi
26979if test -z "${TARGET_MANDRIVA_TRUE}" && test -z "${TARGET_MANDRIVA_FALSE}"; then
26980  as_fn_error $? "conditional \"TARGET_MANDRIVA\" was never defined.
26981Usually this means the macro was only invoked conditionally." "$LINENO" 5
26982fi
26983if test -z "${TARGET_DARWIN_TRUE}" && test -z "${TARGET_DARWIN_FALSE}"; then
26984  as_fn_error $? "conditional \"TARGET_DARWIN\" was never defined.
26985Usually this means the macro was only invoked conditionally." "$LINENO" 5
26986fi
26987if test -z "${TARGET_NETBSD_TRUE}" && test -z "${TARGET_NETBSD_FALSE}"; then
26988  as_fn_error $? "conditional \"TARGET_NETBSD\" was never defined.
26989Usually this means the macro was only invoked conditionally." "$LINENO" 5
26990fi
26991if test -z "${TARGET_FREEBSD_TRUE}" && test -z "${TARGET_FREEBSD_FALSE}"; then
26992  as_fn_error $? "conditional \"TARGET_FREEBSD\" was never defined.
26993Usually this means the macro was only invoked conditionally." "$LINENO" 5
26994fi
26995if test -z "${TARGET_SLACKWARE_TRUE}" && test -z "${TARGET_SLACKWARE_FALSE}"; then
26996  as_fn_error $? "conditional \"TARGET_SLACKWARE\" was never defined.
26997Usually this means the macro was only invoked conditionally." "$LINENO" 5
26998fi
26999if test -z "${ENABLE_CHROOT_TRUE}" && test -z "${ENABLE_CHROOT_FALSE}"; then
27000  as_fn_error $? "conditional \"ENABLE_CHROOT\" was never defined.
27001Usually this means the macro was only invoked conditionally." "$LINENO" 5
27002fi
27003if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
27004  as_fn_error $? "conditional \"HAVE_DLOPEN\" was never defined.
27005Usually this means the macro was only invoked conditionally." "$LINENO" 5
27006fi
27007if test -z "${HAVE_INOTIFY_TRUE}" && test -z "${HAVE_INOTIFY_FALSE}"; then
27008  as_fn_error $? "conditional \"HAVE_INOTIFY\" was never defined.
27009Usually this means the macro was only invoked conditionally." "$LINENO" 5
27010fi
27011if test -z "${HAVE_KQUEUE_TRUE}" && test -z "${HAVE_KQUEUE_FALSE}"; then
27012  as_fn_error $? "conditional \"HAVE_KQUEUE\" was never defined.
27013Usually this means the macro was only invoked conditionally." "$LINENO" 5
27014fi
27015if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
27016  as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
27017Usually this means the macro was only invoked conditionally." "$LINENO" 5
27018fi
27019if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
27020  as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
27021Usually this means the macro was only invoked conditionally." "$LINENO" 5
27022fi
27023if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
27024  as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
27025Usually this means the macro was only invoked conditionally." "$LINENO" 5
27026fi
27027if test -z "${HAVE_LIBEVENT_TRUE}" && test -z "${HAVE_LIBEVENT_FALSE}"; then
27028  as_fn_error $? "conditional \"HAVE_LIBEVENT\" was never defined.
27029Usually this means the macro was only invoked conditionally." "$LINENO" 5
27030fi
27031if test -z "${HAVE_QT3_TRUE}" && test -z "${HAVE_QT3_FALSE}"; then
27032  as_fn_error $? "conditional \"HAVE_QT3\" was never defined.
27033Usually this means the macro was only invoked conditionally." "$LINENO" 5
27034fi
27035if test -z "${HAVE_QT4_TRUE}" && test -z "${HAVE_QT4_FALSE}"; then
27036  as_fn_error $? "conditional \"HAVE_QT4\" was never defined.
27037Usually this means the macro was only invoked conditionally." "$LINENO" 5
27038fi
27039if test -z "${HAVE_QT5_TRUE}" && test -z "${HAVE_QT5_FALSE}"; then
27040  as_fn_error $? "conditional \"HAVE_QT5\" was never defined.
27041Usually this means the macro was only invoked conditionally." "$LINENO" 5
27042fi
27043if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
27044  as_fn_error $? "conditional \"HAVE_GTK\" was never defined.
27045Usually this means the macro was only invoked conditionally." "$LINENO" 5
27046fi
27047if test -z "${HAVE_GTK3_TRUE}" && test -z "${HAVE_GTK3_FALSE}"; then
27048  as_fn_error $? "conditional \"HAVE_GTK3\" was never defined.
27049Usually this means the macro was only invoked conditionally." "$LINENO" 5
27050fi
27051if test -z "${HAVE_GTK2OR3_TRUE}" && test -z "${HAVE_GTK2OR3_FALSE}"; then
27052  as_fn_error $? "conditional \"HAVE_GTK2OR3\" was never defined.
27053Usually this means the macro was only invoked conditionally." "$LINENO" 5
27054fi
27055if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
27056  as_fn_error $? "conditional \"HAVE_DBUS\" was never defined.
27057Usually this means the macro was only invoked conditionally." "$LINENO" 5
27058fi
27059if test -z "${HAVE_XML_TRUE}" && test -z "${HAVE_XML_FALSE}"; then
27060  as_fn_error $? "conditional \"HAVE_XML\" was never defined.
27061Usually this means the macro was only invoked conditionally." "$LINENO" 5
27062fi
27063if test -z "${HAVE_GDBM_TRUE}" && test -z "${HAVE_GDBM_FALSE}"; then
27064  as_fn_error $? "conditional \"HAVE_GDBM\" was never defined.
27065Usually this means the macro was only invoked conditionally." "$LINENO" 5
27066fi
27067if test -z "${HAVE_DBM_TRUE}" && test -z "${HAVE_DBM_FALSE}"; then
27068  as_fn_error $? "conditional \"HAVE_DBM\" was never defined.
27069Usually this means the macro was only invoked conditionally." "$LINENO" 5
27070fi
27071if test -z "${HAVE_LIBDAEMON_TRUE}" && test -z "${HAVE_LIBDAEMON_FALSE}"; then
27072  as_fn_error $? "conditional \"HAVE_LIBDAEMON\" was never defined.
27073Usually this means the macro was only invoked conditionally." "$LINENO" 5
27074fi
27075if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
27076  as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
27077Usually this means the macro was only invoked conditionally." "$LINENO" 5
27078fi
27079if test -z "${HAVE_PYGOBJECT_TRUE}" && test -z "${HAVE_PYGOBJECT_FALSE}"; then
27080  as_fn_error $? "conditional \"HAVE_PYGOBJECT\" was never defined.
27081Usually this means the macro was only invoked conditionally." "$LINENO" 5
27082fi
27083if test -z "${HAVE_PYTHON_DBUS_TRUE}" && test -z "${HAVE_PYTHON_DBUS_FALSE}"; then
27084  as_fn_error $? "conditional \"HAVE_PYTHON_DBUS\" was never defined.
27085Usually this means the macro was only invoked conditionally." "$LINENO" 5
27086fi
27087if test -z "${HAVE_MONO_TRUE}" && test -z "${HAVE_MONO_FALSE}"; then
27088  as_fn_error $? "conditional \"HAVE_MONO\" was never defined.
27089Usually this means the macro was only invoked conditionally." "$LINENO" 5
27090fi
27091if test -z "${HAVE_MONODOC_TRUE}" && test -z "${HAVE_MONODOC_FALSE}"; then
27092  as_fn_error $? "conditional \"HAVE_MONODOC\" was never defined.
27093Usually this means the macro was only invoked conditionally." "$LINENO" 5
27094fi
27095if test -z "${ENABLE_AUTOIPD_TRUE}" && test -z "${ENABLE_AUTOIPD_FALSE}"; then
27096  as_fn_error $? "conditional \"ENABLE_AUTOIPD\" was never defined.
27097Usually this means the macro was only invoked conditionally." "$LINENO" 5
27098fi
27099if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
27100  as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
27101Usually this means the macro was only invoked conditionally." "$LINENO" 5
27102fi
27103if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
27104  as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
27105Usually this means the macro was only invoked conditionally." "$LINENO" 5
27106fi
27107if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
27108  as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
27109Usually this means the macro was only invoked conditionally." "$LINENO" 5
27110fi
27111if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
27112  as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
27113Usually this means the macro was only invoked conditionally." "$LINENO" 5
27114fi
27115if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
27116  as_fn_error $? "conditional \"DX_COND_man\" was never defined.
27117Usually this means the macro was only invoked conditionally." "$LINENO" 5
27118fi
27119if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
27120  as_fn_error $? "conditional \"DX_COND_man\" was never defined.
27121Usually this means the macro was only invoked conditionally." "$LINENO" 5
27122fi
27123if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
27124  as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
27125Usually this means the macro was only invoked conditionally." "$LINENO" 5
27126fi
27127if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
27128  as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
27129Usually this means the macro was only invoked conditionally." "$LINENO" 5
27130fi
27131if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
27132  as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
27133Usually this means the macro was only invoked conditionally." "$LINENO" 5
27134fi
27135if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
27136  as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
27137Usually this means the macro was only invoked conditionally." "$LINENO" 5
27138fi
27139if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
27140  as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
27141Usually this means the macro was only invoked conditionally." "$LINENO" 5
27142fi
27143if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
27144  as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
27145Usually this means the macro was only invoked conditionally." "$LINENO" 5
27146fi
27147if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
27148  as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
27149Usually this means the macro was only invoked conditionally." "$LINENO" 5
27150fi
27151if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
27152  as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
27153Usually this means the macro was only invoked conditionally." "$LINENO" 5
27154fi
27155if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
27156  as_fn_error $? "conditional \"DX_COND_html\" was never defined.
27157Usually this means the macro was only invoked conditionally." "$LINENO" 5
27158fi
27159if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
27160  as_fn_error $? "conditional \"DX_COND_html\" was never defined.
27161Usually this means the macro was only invoked conditionally." "$LINENO" 5
27162fi
27163if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
27164  as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
27165Usually this means the macro was only invoked conditionally." "$LINENO" 5
27166fi
27167if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
27168  as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
27169Usually this means the macro was only invoked conditionally." "$LINENO" 5
27170fi
27171if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
27172  as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
27173Usually this means the macro was only invoked conditionally." "$LINENO" 5
27174fi
27175if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
27176  as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
27177Usually this means the macro was only invoked conditionally." "$LINENO" 5
27178fi
27179if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
27180  as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
27181Usually this means the macro was only invoked conditionally." "$LINENO" 5
27182fi
27183if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
27184  as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
27185Usually this means the macro was only invoked conditionally." "$LINENO" 5
27186fi
27187if test -z "${ENABLE_CORE_DOCS_TRUE}" && test -z "${ENABLE_CORE_DOCS_FALSE}"; then
27188  as_fn_error $? "conditional \"ENABLE_CORE_DOCS\" was never defined.
27189Usually this means the macro was only invoked conditionally." "$LINENO" 5
27190fi
27191if test -z "${USE_XMLTOMAN_TRUE}" && test -z "${USE_XMLTOMAN_FALSE}"; then
27192  as_fn_error $? "conditional \"USE_XMLTOMAN\" was never defined.
27193Usually this means the macro was only invoked conditionally." "$LINENO" 5
27194fi
27195if test -z "${BUILD_MANPAGES_TRUE}" && test -z "${BUILD_MANPAGES_FALSE}"; then
27196  as_fn_error $? "conditional \"BUILD_MANPAGES\" was never defined.
27197Usually this means the macro was only invoked conditionally." "$LINENO" 5
27198fi
27199if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
27200  as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
27201Usually this means the macro was only invoked conditionally." "$LINENO" 5
27202fi
27203if test -z "${ENABLE_COMPAT_LIBDNS_SD_TRUE}" && test -z "${ENABLE_COMPAT_LIBDNS_SD_FALSE}"; then
27204  as_fn_error $? "conditional \"ENABLE_COMPAT_LIBDNS_SD\" was never defined.
27205Usually this means the macro was only invoked conditionally." "$LINENO" 5
27206fi
27207if test -z "${ENABLE_COMPAT_HOWL_TRUE}" && test -z "${ENABLE_COMPAT_HOWL_FALSE}"; then
27208  as_fn_error $? "conditional \"ENABLE_COMPAT_HOWL\" was never defined.
27209Usually this means the macro was only invoked conditionally." "$LINENO" 5
27210fi
27211if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
27212  as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
27213Usually this means the macro was only invoked conditionally." "$LINENO" 5
27214fi
27215
27216: "${CONFIG_STATUS=./config.status}"
27217ac_write_fail=0
27218ac_clean_files_save=$ac_clean_files
27219ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27220{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27221$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27222as_write_fail=0
27223cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27224#! $SHELL
27225# Generated by $as_me.
27226# Run this file to recreate the current configuration.
27227# Compiler output produced by configure, useful for debugging
27228# configure, is in config.log if it exists.
27229
27230debug=false
27231ac_cs_recheck=false
27232ac_cs_silent=false
27233
27234SHELL=\${CONFIG_SHELL-$SHELL}
27235export SHELL
27236_ASEOF
27237cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27238## -------------------- ##
27239## M4sh Initialization. ##
27240## -------------------- ##
27241
27242# Be more Bourne compatible
27243DUALCASE=1; export DUALCASE # for MKS sh
27244if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27245  emulate sh
27246  NULLCMD=:
27247  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27248  # is contrary to our usage.  Disable this feature.
27249  alias -g '${1+"$@"}'='"$@"'
27250  setopt NO_GLOB_SUBST
27251else
27252  case `(set -o) 2>/dev/null` in #(
27253  *posix*) :
27254    set -o posix ;; #(
27255  *) :
27256     ;;
27257esac
27258fi
27259
27260
27261as_nl='
27262'
27263export as_nl
27264# Printing a long string crashes Solaris 7 /usr/bin/printf.
27265as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27266as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27267as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27268# Prefer a ksh shell builtin over an external printf program on Solaris,
27269# but without wasting forks for bash or zsh.
27270if test -z "$BASH_VERSION$ZSH_VERSION" \
27271    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27272  as_echo='print -r --'
27273  as_echo_n='print -rn --'
27274elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27275  as_echo='printf %s\n'
27276  as_echo_n='printf %s'
27277else
27278  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27279    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27280    as_echo_n='/usr/ucb/echo -n'
27281  else
27282    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27283    as_echo_n_body='eval
27284      arg=$1;
27285      case $arg in #(
27286      *"$as_nl"*)
27287	expr "X$arg" : "X\\(.*\\)$as_nl";
27288	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27289      esac;
27290      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27291    '
27292    export as_echo_n_body
27293    as_echo_n='sh -c $as_echo_n_body as_echo'
27294  fi
27295  export as_echo_body
27296  as_echo='sh -c $as_echo_body as_echo'
27297fi
27298
27299# The user is always right.
27300if test "${PATH_SEPARATOR+set}" != set; then
27301  PATH_SEPARATOR=:
27302  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27303    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27304      PATH_SEPARATOR=';'
27305  }
27306fi
27307
27308
27309# IFS
27310# We need space, tab and new line, in precisely that order.  Quoting is
27311# there to prevent editors from complaining about space-tab.
27312# (If _AS_PATH_WALK were called with IFS unset, it would disable word
27313# splitting by setting IFS to empty value.)
27314IFS=" ""	$as_nl"
27315
27316# Find who we are.  Look in the path if we contain no directory separator.
27317as_myself=
27318case $0 in #((
27319  *[\\/]* ) as_myself=$0 ;;
27320  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27321for as_dir in $PATH
27322do
27323  IFS=$as_save_IFS
27324  test -z "$as_dir" && as_dir=.
27325    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27326  done
27327IFS=$as_save_IFS
27328
27329     ;;
27330esac
27331# We did not find ourselves, most probably we were run as `sh COMMAND'
27332# in which case we are not to be found in the path.
27333if test "x$as_myself" = x; then
27334  as_myself=$0
27335fi
27336if test ! -f "$as_myself"; then
27337  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27338  exit 1
27339fi
27340
27341# Unset variables that we do not need and which cause bugs (e.g. in
27342# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27343# suppresses any "Segmentation fault" message there.  '((' could
27344# trigger a bug in pdksh 5.2.14.
27345for as_var in BASH_ENV ENV MAIL MAILPATH
27346do eval test x\${$as_var+set} = xset \
27347  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27348done
27349PS1='$ '
27350PS2='> '
27351PS4='+ '
27352
27353# NLS nuisances.
27354LC_ALL=C
27355export LC_ALL
27356LANGUAGE=C
27357export LANGUAGE
27358
27359# CDPATH.
27360(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27361
27362
27363# as_fn_error STATUS ERROR [LINENO LOG_FD]
27364# ----------------------------------------
27365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27367# script with STATUS, using 1 if that was 0.
27368as_fn_error ()
27369{
27370  as_status=$1; test $as_status -eq 0 && as_status=1
27371  if test "$4"; then
27372    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27373    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27374  fi
27375  $as_echo "$as_me: error: $2" >&2
27376  as_fn_exit $as_status
27377} # as_fn_error
27378
27379
27380# as_fn_set_status STATUS
27381# -----------------------
27382# Set $? to STATUS, without forking.
27383as_fn_set_status ()
27384{
27385  return $1
27386} # as_fn_set_status
27387
27388# as_fn_exit STATUS
27389# -----------------
27390# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27391as_fn_exit ()
27392{
27393  set +e
27394  as_fn_set_status $1
27395  exit $1
27396} # as_fn_exit
27397
27398# as_fn_unset VAR
27399# ---------------
27400# Portably unset VAR.
27401as_fn_unset ()
27402{
27403  { eval $1=; unset $1;}
27404}
27405as_unset=as_fn_unset
27406# as_fn_append VAR VALUE
27407# ----------------------
27408# Append the text in VALUE to the end of the definition contained in VAR. Take
27409# advantage of any shell optimizations that allow amortized linear growth over
27410# repeated appends, instead of the typical quadratic growth present in naive
27411# implementations.
27412if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27413  eval 'as_fn_append ()
27414  {
27415    eval $1+=\$2
27416  }'
27417else
27418  as_fn_append ()
27419  {
27420    eval $1=\$$1\$2
27421  }
27422fi # as_fn_append
27423
27424# as_fn_arith ARG...
27425# ------------------
27426# Perform arithmetic evaluation on the ARGs, and store the result in the
27427# global $as_val. Take advantage of shells that can avoid forks. The arguments
27428# must be portable across $(()) and expr.
27429if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27430  eval 'as_fn_arith ()
27431  {
27432    as_val=$(( $* ))
27433  }'
27434else
27435  as_fn_arith ()
27436  {
27437    as_val=`expr "$@" || test $? -eq 1`
27438  }
27439fi # as_fn_arith
27440
27441
27442if expr a : '\(a\)' >/dev/null 2>&1 &&
27443   test "X`expr 00001 : '.*\(...\)'`" = X001; then
27444  as_expr=expr
27445else
27446  as_expr=false
27447fi
27448
27449if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27450  as_basename=basename
27451else
27452  as_basename=false
27453fi
27454
27455if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27456  as_dirname=dirname
27457else
27458  as_dirname=false
27459fi
27460
27461as_me=`$as_basename -- "$0" ||
27462$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27463	 X"$0" : 'X\(//\)$' \| \
27464	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27465$as_echo X/"$0" |
27466    sed '/^.*\/\([^/][^/]*\)\/*$/{
27467	    s//\1/
27468	    q
27469	  }
27470	  /^X\/\(\/\/\)$/{
27471	    s//\1/
27472	    q
27473	  }
27474	  /^X\/\(\/\).*/{
27475	    s//\1/
27476	    q
27477	  }
27478	  s/.*/./; q'`
27479
27480# Avoid depending upon Character Ranges.
27481as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27482as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27483as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27484as_cr_digits='0123456789'
27485as_cr_alnum=$as_cr_Letters$as_cr_digits
27486
27487ECHO_C= ECHO_N= ECHO_T=
27488case `echo -n x` in #(((((
27489-n*)
27490  case `echo 'xy\c'` in
27491  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
27492  xy)  ECHO_C='\c';;
27493  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27494       ECHO_T='	';;
27495  esac;;
27496*)
27497  ECHO_N='-n';;
27498esac
27499
27500rm -f conf$$ conf$$.exe conf$$.file
27501if test -d conf$$.dir; then
27502  rm -f conf$$.dir/conf$$.file
27503else
27504  rm -f conf$$.dir
27505  mkdir conf$$.dir 2>/dev/null
27506fi
27507if (echo >conf$$.file) 2>/dev/null; then
27508  if ln -s conf$$.file conf$$ 2>/dev/null; then
27509    as_ln_s='ln -s'
27510    # ... but there are two gotchas:
27511    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27512    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27513    # In both cases, we have to default to `cp -pR'.
27514    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27515      as_ln_s='cp -pR'
27516  elif ln conf$$.file conf$$ 2>/dev/null; then
27517    as_ln_s=ln
27518  else
27519    as_ln_s='cp -pR'
27520  fi
27521else
27522  as_ln_s='cp -pR'
27523fi
27524rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27525rmdir conf$$.dir 2>/dev/null
27526
27527
27528# as_fn_mkdir_p
27529# -------------
27530# Create "$as_dir" as a directory, including parents if necessary.
27531as_fn_mkdir_p ()
27532{
27533
27534  case $as_dir in #(
27535  -*) as_dir=./$as_dir;;
27536  esac
27537  test -d "$as_dir" || eval $as_mkdir_p || {
27538    as_dirs=
27539    while :; do
27540      case $as_dir in #(
27541      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27542      *) as_qdir=$as_dir;;
27543      esac
27544      as_dirs="'$as_qdir' $as_dirs"
27545      as_dir=`$as_dirname -- "$as_dir" ||
27546$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27547	 X"$as_dir" : 'X\(//\)[^/]' \| \
27548	 X"$as_dir" : 'X\(//\)$' \| \
27549	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27550$as_echo X"$as_dir" |
27551    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27552	    s//\1/
27553	    q
27554	  }
27555	  /^X\(\/\/\)[^/].*/{
27556	    s//\1/
27557	    q
27558	  }
27559	  /^X\(\/\/\)$/{
27560	    s//\1/
27561	    q
27562	  }
27563	  /^X\(\/\).*/{
27564	    s//\1/
27565	    q
27566	  }
27567	  s/.*/./; q'`
27568      test -d "$as_dir" && break
27569    done
27570    test -z "$as_dirs" || eval "mkdir $as_dirs"
27571  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27572
27573
27574} # as_fn_mkdir_p
27575if mkdir -p . 2>/dev/null; then
27576  as_mkdir_p='mkdir -p "$as_dir"'
27577else
27578  test -d ./-p && rmdir ./-p
27579  as_mkdir_p=false
27580fi
27581
27582
27583# as_fn_executable_p FILE
27584# -----------------------
27585# Test if FILE is an executable regular file.
27586as_fn_executable_p ()
27587{
27588  test -f "$1" && test -x "$1"
27589} # as_fn_executable_p
27590as_test_x='test -x'
27591as_executable_p=as_fn_executable_p
27592
27593# Sed expression to map a string onto a valid CPP name.
27594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27595
27596# Sed expression to map a string onto a valid variable name.
27597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27598
27599
27600exec 6>&1
27601## ----------------------------------- ##
27602## Main body of $CONFIG_STATUS script. ##
27603## ----------------------------------- ##
27604_ASEOF
27605test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27606
27607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27608# Save the log message, to keep $0 and so on meaningful, and to
27609# report actual input values of CONFIG_FILES etc. instead of their
27610# values after options handling.
27611ac_log="
27612This file was extended by avahi $as_me 0.8, which was
27613generated by GNU Autoconf 2.69.  Invocation command line was
27614
27615  CONFIG_FILES    = $CONFIG_FILES
27616  CONFIG_HEADERS  = $CONFIG_HEADERS
27617  CONFIG_LINKS    = $CONFIG_LINKS
27618  CONFIG_COMMANDS = $CONFIG_COMMANDS
27619  $ $0 $@
27620
27621on `(hostname || uname -n) 2>/dev/null | sed 1q`
27622"
27623
27624_ACEOF
27625
27626case $ac_config_files in *"
27627"*) set x $ac_config_files; shift; ac_config_files=$*;;
27628esac
27629
27630case $ac_config_headers in *"
27631"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27632esac
27633
27634
27635cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27636# Files that config.status was made for.
27637config_files="$ac_config_files"
27638config_headers="$ac_config_headers"
27639config_commands="$ac_config_commands"
27640
27641_ACEOF
27642
27643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27644ac_cs_usage="\
27645\`$as_me' instantiates files and other configuration actions
27646from templates according to the current configuration.  Unless the files
27647and actions are specified as TAGs, all are instantiated by default.
27648
27649Usage: $0 [OPTION]... [TAG]...
27650
27651  -h, --help       print this help, then exit
27652  -V, --version    print version number and configuration settings, then exit
27653      --config     print configuration, then exit
27654  -q, --quiet, --silent
27655                   do not print progress messages
27656  -d, --debug      don't remove temporary files
27657      --recheck    update $as_me by reconfiguring in the same conditions
27658      --file=FILE[:TEMPLATE]
27659                   instantiate the configuration file FILE
27660      --header=FILE[:TEMPLATE]
27661                   instantiate the configuration header FILE
27662
27663Configuration files:
27664$config_files
27665
27666Configuration headers:
27667$config_headers
27668
27669Configuration commands:
27670$config_commands
27671
27672Report bugs to <avahi (at) lists (dot) freedesktop (dot) org>."
27673
27674_ACEOF
27675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27676ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27677ac_cs_version="\\
27678avahi config.status 0.8
27679configured by $0, generated by GNU Autoconf 2.69,
27680  with options \\"\$ac_cs_config\\"
27681
27682Copyright (C) 2012 Free Software Foundation, Inc.
27683This config.status script is free software; the Free Software Foundation
27684gives unlimited permission to copy, distribute and modify it."
27685
27686ac_pwd='$ac_pwd'
27687srcdir='$srcdir'
27688INSTALL='$INSTALL'
27689MKDIR_P='$MKDIR_P'
27690AWK='$AWK'
27691test -n "\$AWK" || AWK=awk
27692_ACEOF
27693
27694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27695# The default lists apply if the user does not specify any file.
27696ac_need_defaults=:
27697while test $# != 0
27698do
27699  case $1 in
27700  --*=?*)
27701    ac_option=`expr "X$1" : 'X\([^=]*\)='`
27702    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27703    ac_shift=:
27704    ;;
27705  --*=)
27706    ac_option=`expr "X$1" : 'X\([^=]*\)='`
27707    ac_optarg=
27708    ac_shift=:
27709    ;;
27710  *)
27711    ac_option=$1
27712    ac_optarg=$2
27713    ac_shift=shift
27714    ;;
27715  esac
27716
27717  case $ac_option in
27718  # Handling of the options.
27719  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27720    ac_cs_recheck=: ;;
27721  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27722    $as_echo "$ac_cs_version"; exit ;;
27723  --config | --confi | --conf | --con | --co | --c )
27724    $as_echo "$ac_cs_config"; exit ;;
27725  --debug | --debu | --deb | --de | --d | -d )
27726    debug=: ;;
27727  --file | --fil | --fi | --f )
27728    $ac_shift
27729    case $ac_optarg in
27730    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27731    '') as_fn_error $? "missing file argument" ;;
27732    esac
27733    as_fn_append CONFIG_FILES " '$ac_optarg'"
27734    ac_need_defaults=false;;
27735  --header | --heade | --head | --hea )
27736    $ac_shift
27737    case $ac_optarg in
27738    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27739    esac
27740    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27741    ac_need_defaults=false;;
27742  --he | --h)
27743    # Conflict between --help and --header
27744    as_fn_error $? "ambiguous option: \`$1'
27745Try \`$0 --help' for more information.";;
27746  --help | --hel | -h )
27747    $as_echo "$ac_cs_usage"; exit ;;
27748  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27749  | -silent | --silent | --silen | --sile | --sil | --si | --s)
27750    ac_cs_silent=: ;;
27751
27752  # This is an error.
27753  -*) as_fn_error $? "unrecognized option: \`$1'
27754Try \`$0 --help' for more information." ;;
27755
27756  *) as_fn_append ac_config_targets " $1"
27757     ac_need_defaults=false ;;
27758
27759  esac
27760  shift
27761done
27762
27763ac_configure_extra_args=
27764
27765if $ac_cs_silent; then
27766  exec 6>/dev/null
27767  ac_configure_extra_args="$ac_configure_extra_args --silent"
27768fi
27769
27770_ACEOF
27771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27772if \$ac_cs_recheck; then
27773  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27774  shift
27775  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27776  CONFIG_SHELL='$SHELL'
27777  export CONFIG_SHELL
27778  exec "\$@"
27779fi
27780
27781_ACEOF
27782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27783exec 5>>config.log
27784{
27785  echo
27786  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27787## Running $as_me. ##
27788_ASBOX
27789  $as_echo "$ac_log"
27790} >&5
27791
27792_ACEOF
27793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27794#
27795# INIT-COMMANDS
27796#
27797AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27798
27799
27800# The HP-UX ksh and POSIX shell print the target directory to stdout
27801# if CDPATH is set.
27802(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27803
27804sed_quote_subst='$sed_quote_subst'
27805double_quote_subst='$double_quote_subst'
27806delay_variable_subst='$delay_variable_subst'
27807macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27808macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27809enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27810enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27811pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27812enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27813shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27814SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27815ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27816PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27817host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27818host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27819host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27820build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27821build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27822build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27823SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27824Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27825GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27826EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27827FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27828LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27829NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27830LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27831max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27832ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27833exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27834lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27835lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27836lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27837lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27838lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27839reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27840reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27841OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27842deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27843file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27844file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27845want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27846DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27847sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27848AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27849AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27850archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27851STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27852RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27853old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27854old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27855old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27856lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27857CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27858CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27859compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27860GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27861lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27862lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27863lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27864lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27865lt_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"`'
27866lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27867nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27868lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27869lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27870objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27871MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27872lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27873lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27874lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27875lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27876lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27877need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27878MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27879DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27880NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27881LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27882OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27883OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27884libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27885shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27886extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27887archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27888enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27889export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27890whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27891compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27892old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27893old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27894archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27895archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27896module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27897module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27898with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27899allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27900no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27901hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27902hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27903hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27904hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27905hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27906hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27907hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27908inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27909link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27910always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27911export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27912exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27913include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27914prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27915postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27916file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27917variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27918need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27919need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27920version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27921runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27922shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27923shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27924libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27925library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27926soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27927install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27928postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27929postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27930finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27931finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27932hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27933sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27934configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27935configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27936hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27937enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27938enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27939enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27940old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27941striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27942compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27943predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27944postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27945predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27946postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27947compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27948LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27949reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27950reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27951old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27952compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27953GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27954lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27955lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27956lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27957lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27958lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27959archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27960enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27961export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27962whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27963compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27964old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27965old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27966archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27967archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27968module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27969module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27970with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27971allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27972no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27973hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27974hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27975hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27976hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27977hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27978hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27979hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27980inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27981link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27982always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27983export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27984exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27985include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27986prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27987postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27988file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27989hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27990compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27991predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27992postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27993predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27994postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27995compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27996
27997LTCC='$LTCC'
27998LTCFLAGS='$LTCFLAGS'
27999compiler='$compiler_DEFAULT'
28000
28001# A function that is used when there is no print builtin or printf.
28002func_fallback_echo ()
28003{
28004  eval 'cat <<_LTECHO_EOF
28005\$1
28006_LTECHO_EOF'
28007}
28008
28009# Quote evaled strings.
28010for var in SHELL \
28011ECHO \
28012PATH_SEPARATOR \
28013SED \
28014GREP \
28015EGREP \
28016FGREP \
28017LD \
28018NM \
28019LN_S \
28020lt_SP2NL \
28021lt_NL2SP \
28022reload_flag \
28023OBJDUMP \
28024deplibs_check_method \
28025file_magic_cmd \
28026file_magic_glob \
28027want_nocaseglob \
28028DLLTOOL \
28029sharedlib_from_linklib_cmd \
28030AR \
28031AR_FLAGS \
28032archiver_list_spec \
28033STRIP \
28034RANLIB \
28035CC \
28036CFLAGS \
28037compiler \
28038lt_cv_sys_global_symbol_pipe \
28039lt_cv_sys_global_symbol_to_cdecl \
28040lt_cv_sys_global_symbol_to_import \
28041lt_cv_sys_global_symbol_to_c_name_address \
28042lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28043lt_cv_nm_interface \
28044nm_file_list_spec \
28045lt_cv_truncate_bin \
28046lt_prog_compiler_no_builtin_flag \
28047lt_prog_compiler_pic \
28048lt_prog_compiler_wl \
28049lt_prog_compiler_static \
28050lt_cv_prog_compiler_c_o \
28051need_locks \
28052MANIFEST_TOOL \
28053DSYMUTIL \
28054NMEDIT \
28055LIPO \
28056OTOOL \
28057OTOOL64 \
28058shrext_cmds \
28059export_dynamic_flag_spec \
28060whole_archive_flag_spec \
28061compiler_needs_object \
28062with_gnu_ld \
28063allow_undefined_flag \
28064no_undefined_flag \
28065hardcode_libdir_flag_spec \
28066hardcode_libdir_separator \
28067exclude_expsyms \
28068include_expsyms \
28069file_list_spec \
28070variables_saved_for_relink \
28071libname_spec \
28072library_names_spec \
28073soname_spec \
28074install_override_mode \
28075finish_eval \
28076old_striplib \
28077striplib \
28078compiler_lib_search_dirs \
28079predep_objects \
28080postdep_objects \
28081predeps \
28082postdeps \
28083compiler_lib_search_path \
28084LD_CXX \
28085reload_flag_CXX \
28086compiler_CXX \
28087lt_prog_compiler_no_builtin_flag_CXX \
28088lt_prog_compiler_pic_CXX \
28089lt_prog_compiler_wl_CXX \
28090lt_prog_compiler_static_CXX \
28091lt_cv_prog_compiler_c_o_CXX \
28092export_dynamic_flag_spec_CXX \
28093whole_archive_flag_spec_CXX \
28094compiler_needs_object_CXX \
28095with_gnu_ld_CXX \
28096allow_undefined_flag_CXX \
28097no_undefined_flag_CXX \
28098hardcode_libdir_flag_spec_CXX \
28099hardcode_libdir_separator_CXX \
28100exclude_expsyms_CXX \
28101include_expsyms_CXX \
28102file_list_spec_CXX \
28103compiler_lib_search_dirs_CXX \
28104predep_objects_CXX \
28105postdep_objects_CXX \
28106predeps_CXX \
28107postdeps_CXX \
28108compiler_lib_search_path_CXX; do
28109    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28110    *[\\\\\\\`\\"\\\$]*)
28111      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28112      ;;
28113    *)
28114      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28115      ;;
28116    esac
28117done
28118
28119# Double-quote double-evaled strings.
28120for var in reload_cmds \
28121old_postinstall_cmds \
28122old_postuninstall_cmds \
28123old_archive_cmds \
28124extract_expsyms_cmds \
28125old_archive_from_new_cmds \
28126old_archive_from_expsyms_cmds \
28127archive_cmds \
28128archive_expsym_cmds \
28129module_cmds \
28130module_expsym_cmds \
28131export_symbols_cmds \
28132prelink_cmds \
28133postlink_cmds \
28134postinstall_cmds \
28135postuninstall_cmds \
28136finish_cmds \
28137sys_lib_search_path_spec \
28138configure_time_dlsearch_path \
28139configure_time_lt_sys_library_path \
28140reload_cmds_CXX \
28141old_archive_cmds_CXX \
28142old_archive_from_new_cmds_CXX \
28143old_archive_from_expsyms_cmds_CXX \
28144archive_cmds_CXX \
28145archive_expsym_cmds_CXX \
28146module_cmds_CXX \
28147module_expsym_cmds_CXX \
28148export_symbols_cmds_CXX \
28149prelink_cmds_CXX \
28150postlink_cmds_CXX; do
28151    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28152    *[\\\\\\\`\\"\\\$]*)
28153      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28154      ;;
28155    *)
28156      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28157      ;;
28158    esac
28159done
28160
28161ac_aux_dir='$ac_aux_dir'
28162
28163# See if we are running on zsh, and set the options that allow our
28164# commands through without removal of \ escapes INIT.
28165if test -n "\${ZSH_VERSION+set}"; then
28166   setopt NO_GLOB_SUBST
28167fi
28168
28169
28170    PACKAGE='$PACKAGE'
28171    VERSION='$VERSION'
28172    RM='$RM'
28173    ofile='$ofile'
28174
28175
28176
28177
28178
28179# Capture the value of obsolete ALL_LINGUAS because we need it to compute
28180    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
28181    # from automake < 1.5.
28182    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
28183    # Capture the value of LINGUAS because we need it to compute CATALOGS.
28184    LINGUAS="${LINGUAS-%UNSET%}"
28185
28186
28187_ACEOF
28188
28189cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28190
28191# Handling of arguments.
28192for ac_config_target in $ac_config_targets
28193do
28194  case $ac_config_target in
28195    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28196    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28197    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28198    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
28199    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28200    "avahi-common/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-common/Makefile" ;;
28201    "avahi-core/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-core/Makefile" ;;
28202    "avahi-glib/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-glib/Makefile" ;;
28203    "avahi-gobject/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-gobject/Makefile" ;;
28204    "avahi-qt/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-qt/Makefile" ;;
28205    "avahi-daemon/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-daemon/Makefile" ;;
28206    "avahi-daemon/avahi-dbus.conf") CONFIG_FILES="$CONFIG_FILES avahi-daemon/avahi-dbus.conf" ;;
28207    "avahi-discover-standalone/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-discover-standalone/Makefile" ;;
28208    "avahi-client/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-client/Makefile" ;;
28209    "initscript/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/Makefile" ;;
28210    "initscript/debian/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/debian/Makefile" ;;
28211    "initscript/gentoo/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/gentoo/Makefile" ;;
28212    "initscript/suse/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/suse/Makefile" ;;
28213    "initscript/fedora/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/fedora/Makefile" ;;
28214    "initscript/lfs/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/lfs/Makefile" ;;
28215    "initscript/mandriva/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/mandriva/Makefile" ;;
28216    "initscript/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/darwin/Makefile" ;;
28217    "initscript/freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/freebsd/Makefile" ;;
28218    "initscript/slackware/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/slackware/Makefile" ;;
28219    "avahi-dnsconfd/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-dnsconfd/Makefile" ;;
28220    "avahi-utils/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-utils/Makefile" ;;
28221    "avahi-python/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-python/Makefile" ;;
28222    "avahi-python/avahi/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-python/avahi/Makefile" ;;
28223    "avahi-python/avahi-discover/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-python/avahi-discover/Makefile" ;;
28224    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
28225    "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
28226    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
28227    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
28228    "service-type-database/Makefile") CONFIG_FILES="$CONFIG_FILES service-type-database/Makefile" ;;
28229    "avahi-sharp/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-sharp/Makefile" ;;
28230    "avahi-ui-sharp/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-ui-sharp/Makefile" ;;
28231    "avahi-compat-libdns_sd/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-compat-libdns_sd/Makefile" ;;
28232    "avahi-compat-howl/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-compat-howl/Makefile" ;;
28233    "avahi-compat-howl/samples/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-compat-howl/samples/Makefile" ;;
28234    "avahi-autoipd/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-autoipd/Makefile" ;;
28235    "avahi-ui/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-ui/Makefile" ;;
28236    "avahi-libevent/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-libevent/Makefile" ;;
28237    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
28238
28239  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28240  esac
28241done
28242
28243
28244# If the user did not use the arguments to specify the items to instantiate,
28245# then the envvar interface is used.  Set only those that are not.
28246# We use the long form for the default assignment because of an extremely
28247# bizarre bug on SunOS 4.1.3.
28248if $ac_need_defaults; then
28249  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28250  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28251  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28252fi
28253
28254# Have a temporary directory for convenience.  Make it in the build tree
28255# simply because there is no reason against having it here, and in addition,
28256# creating and moving files from /tmp can sometimes cause problems.
28257# Hook for its removal unless debugging.
28258# Note that there is a small window in which the directory will not be cleaned:
28259# after its creation but before its name has been assigned to `$tmp'.
28260$debug ||
28261{
28262  tmp= ac_tmp=
28263  trap 'exit_status=$?
28264  : "${ac_tmp:=$tmp}"
28265  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28266' 0
28267  trap 'as_fn_exit 1' 1 2 13 15
28268}
28269# Create a (secure) tmp directory for tmp files.
28270
28271{
28272  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28273  test -d "$tmp"
28274}  ||
28275{
28276  tmp=./conf$$-$RANDOM
28277  (umask 077 && mkdir "$tmp")
28278} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28279ac_tmp=$tmp
28280
28281# Set up the scripts for CONFIG_FILES section.
28282# No need to generate them if there are no CONFIG_FILES.
28283# This happens for instance with `./config.status config.h'.
28284if test -n "$CONFIG_FILES"; then
28285
28286
28287ac_cr=`echo X | tr X '\015'`
28288# On cygwin, bash can eat \r inside `` if the user requested igncr.
28289# But we know of no other shell where ac_cr would be empty at this
28290# point, so we can use a bashism as a fallback.
28291if test "x$ac_cr" = x; then
28292  eval ac_cr=\$\'\\r\'
28293fi
28294ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28295if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28296  ac_cs_awk_cr='\\r'
28297else
28298  ac_cs_awk_cr=$ac_cr
28299fi
28300
28301echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28302_ACEOF
28303
28304
28305{
28306  echo "cat >conf$$subs.awk <<_ACEOF" &&
28307  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28308  echo "_ACEOF"
28309} >conf$$subs.sh ||
28310  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28311ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28312ac_delim='%!_!# '
28313for ac_last_try in false false false false false :; do
28314  . ./conf$$subs.sh ||
28315    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28316
28317  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28318  if test $ac_delim_n = $ac_delim_num; then
28319    break
28320  elif $ac_last_try; then
28321    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28322  else
28323    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28324  fi
28325done
28326rm -f conf$$subs.sh
28327
28328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28329cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28330_ACEOF
28331sed -n '
28332h
28333s/^/S["/; s/!.*/"]=/
28334p
28335g
28336s/^[^!]*!//
28337:repl
28338t repl
28339s/'"$ac_delim"'$//
28340t delim
28341:nl
28342h
28343s/\(.\{148\}\)..*/\1/
28344t more1
28345s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28346p
28347n
28348b repl
28349:more1
28350s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28351p
28352g
28353s/.\{148\}//
28354t nl
28355:delim
28356h
28357s/\(.\{148\}\)..*/\1/
28358t more2
28359s/["\\]/\\&/g; s/^/"/; s/$/"/
28360p
28361b
28362:more2
28363s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28364p
28365g
28366s/.\{148\}//
28367t delim
28368' <conf$$subs.awk | sed '
28369/^[^""]/{
28370  N
28371  s/\n//
28372}
28373' >>$CONFIG_STATUS || ac_write_fail=1
28374rm -f conf$$subs.awk
28375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28376_ACAWK
28377cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28378  for (key in S) S_is_set[key] = 1
28379  FS = ""
28380
28381}
28382{
28383  line = $ 0
28384  nfields = split(line, field, "@")
28385  substed = 0
28386  len = length(field[1])
28387  for (i = 2; i < nfields; i++) {
28388    key = field[i]
28389    keylen = length(key)
28390    if (S_is_set[key]) {
28391      value = S[key]
28392      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28393      len += length(value) + length(field[++i])
28394      substed = 1
28395    } else
28396      len += 1 + keylen
28397  }
28398
28399  print line
28400}
28401
28402_ACAWK
28403_ACEOF
28404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28405if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28406  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28407else
28408  cat
28409fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28410  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28411_ACEOF
28412
28413# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28414# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28415# trailing colons and then remove the whole line if VPATH becomes empty
28416# (actually we leave an empty line to preserve line numbers).
28417if test "x$srcdir" = x.; then
28418  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
28419h
28420s///
28421s/^/:/
28422s/[	 ]*$/:/
28423s/:\$(srcdir):/:/g
28424s/:\${srcdir}:/:/g
28425s/:@srcdir@:/:/g
28426s/^:*//
28427s/:*$//
28428x
28429s/\(=[	 ]*\).*/\1/
28430G
28431s/\n//
28432s/^[^=]*=[	 ]*$//
28433}'
28434fi
28435
28436cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28437fi # test -n "$CONFIG_FILES"
28438
28439# Set up the scripts for CONFIG_HEADERS section.
28440# No need to generate them if there are no CONFIG_HEADERS.
28441# This happens for instance with `./config.status Makefile'.
28442if test -n "$CONFIG_HEADERS"; then
28443cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28444BEGIN {
28445_ACEOF
28446
28447# Transform confdefs.h into an awk script `defines.awk', embedded as
28448# here-document in config.status, that substitutes the proper values into
28449# config.h.in to produce config.h.
28450
28451# Create a delimiter string that does not exist in confdefs.h, to ease
28452# handling of long lines.
28453ac_delim='%!_!# '
28454for ac_last_try in false false :; do
28455  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28456  if test -z "$ac_tt"; then
28457    break
28458  elif $ac_last_try; then
28459    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28460  else
28461    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28462  fi
28463done
28464
28465# For the awk script, D is an array of macro values keyed by name,
28466# likewise P contains macro parameters if any.  Preserve backslash
28467# newline sequences.
28468
28469ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28470sed -n '
28471s/.\{148\}/&'"$ac_delim"'/g
28472t rset
28473:rset
28474s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
28475t def
28476d
28477:def
28478s/\\$//
28479t bsnl
28480s/["\\]/\\&/g
28481s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
28482D["\1"]=" \3"/p
28483s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
28484d
28485:bsnl
28486s/["\\]/\\&/g
28487s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
28488D["\1"]=" \3\\\\\\n"\\/p
28489t cont
28490s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28491t cont
28492d
28493:cont
28494n
28495s/.\{148\}/&'"$ac_delim"'/g
28496t clear
28497:clear
28498s/\\$//
28499t bsnlc
28500s/["\\]/\\&/g; s/^/"/; s/$/"/p
28501d
28502:bsnlc
28503s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28504b cont
28505' <confdefs.h | sed '
28506s/'"$ac_delim"'/"\\\
28507"/g' >>$CONFIG_STATUS || ac_write_fail=1
28508
28509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28510  for (key in D) D_is_set[key] = 1
28511  FS = ""
28512}
28513/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28514  line = \$ 0
28515  split(line, arg, " ")
28516  if (arg[1] == "#") {
28517    defundef = arg[2]
28518    mac1 = arg[3]
28519  } else {
28520    defundef = substr(arg[1], 2)
28521    mac1 = arg[2]
28522  }
28523  split(mac1, mac2, "(") #)
28524  macro = mac2[1]
28525  prefix = substr(line, 1, index(line, defundef) - 1)
28526  if (D_is_set[macro]) {
28527    # Preserve the white space surrounding the "#".
28528    print prefix "define", macro P[macro] D[macro]
28529    next
28530  } else {
28531    # Replace #undef with comments.  This is necessary, for example,
28532    # in the case of _POSIX_SOURCE, which is predefined and required
28533    # on some systems where configure will not decide to define it.
28534    if (defundef == "undef") {
28535      print "/*", prefix defundef, macro, "*/"
28536      next
28537    }
28538  }
28539}
28540{ print }
28541_ACAWK
28542_ACEOF
28543cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28544  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28545fi # test -n "$CONFIG_HEADERS"
28546
28547
28548eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28549shift
28550for ac_tag
28551do
28552  case $ac_tag in
28553  :[FHLC]) ac_mode=$ac_tag; continue;;
28554  esac
28555  case $ac_mode$ac_tag in
28556  :[FHL]*:*);;
28557  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28558  :[FH]-) ac_tag=-:-;;
28559  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28560  esac
28561  ac_save_IFS=$IFS
28562  IFS=:
28563  set x $ac_tag
28564  IFS=$ac_save_IFS
28565  shift
28566  ac_file=$1
28567  shift
28568
28569  case $ac_mode in
28570  :L) ac_source=$1;;
28571  :[FH])
28572    ac_file_inputs=
28573    for ac_f
28574    do
28575      case $ac_f in
28576      -) ac_f="$ac_tmp/stdin";;
28577      *) # Look for the file first in the build tree, then in the source tree
28578	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
28579	 # because $ac_f cannot contain `:'.
28580	 test -f "$ac_f" ||
28581	   case $ac_f in
28582	   [\\/$]*) false;;
28583	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28584	   esac ||
28585	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28586      esac
28587      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28588      as_fn_append ac_file_inputs " '$ac_f'"
28589    done
28590
28591    # Let's still pretend it is `configure' which instantiates (i.e., don't
28592    # use $as_me), people would be surprised to read:
28593    #    /* config.h.  Generated by config.status.  */
28594    configure_input='Generated from '`
28595	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28596	`' by configure.'
28597    if test x"$ac_file" != x-; then
28598      configure_input="$ac_file.  $configure_input"
28599      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28600$as_echo "$as_me: creating $ac_file" >&6;}
28601    fi
28602    # Neutralize special characters interpreted by sed in replacement strings.
28603    case $configure_input in #(
28604    *\&* | *\|* | *\\* )
28605       ac_sed_conf_input=`$as_echo "$configure_input" |
28606       sed 's/[\\\\&|]/\\\\&/g'`;; #(
28607    *) ac_sed_conf_input=$configure_input;;
28608    esac
28609
28610    case $ac_tag in
28611    *:-:* | *:-) cat >"$ac_tmp/stdin" \
28612      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28613    esac
28614    ;;
28615  esac
28616
28617  ac_dir=`$as_dirname -- "$ac_file" ||
28618$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28619	 X"$ac_file" : 'X\(//\)[^/]' \| \
28620	 X"$ac_file" : 'X\(//\)$' \| \
28621	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28622$as_echo X"$ac_file" |
28623    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28624	    s//\1/
28625	    q
28626	  }
28627	  /^X\(\/\/\)[^/].*/{
28628	    s//\1/
28629	    q
28630	  }
28631	  /^X\(\/\/\)$/{
28632	    s//\1/
28633	    q
28634	  }
28635	  /^X\(\/\).*/{
28636	    s//\1/
28637	    q
28638	  }
28639	  s/.*/./; q'`
28640  as_dir="$ac_dir"; as_fn_mkdir_p
28641  ac_builddir=.
28642
28643case "$ac_dir" in
28644.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28645*)
28646  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28647  # A ".." for each directory in $ac_dir_suffix.
28648  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28649  case $ac_top_builddir_sub in
28650  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28651  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28652  esac ;;
28653esac
28654ac_abs_top_builddir=$ac_pwd
28655ac_abs_builddir=$ac_pwd$ac_dir_suffix
28656# for backward compatibility:
28657ac_top_builddir=$ac_top_build_prefix
28658
28659case $srcdir in
28660  .)  # We are building in place.
28661    ac_srcdir=.
28662    ac_top_srcdir=$ac_top_builddir_sub
28663    ac_abs_top_srcdir=$ac_pwd ;;
28664  [\\/]* | ?:[\\/]* )  # Absolute name.
28665    ac_srcdir=$srcdir$ac_dir_suffix;
28666    ac_top_srcdir=$srcdir
28667    ac_abs_top_srcdir=$srcdir ;;
28668  *) # Relative name.
28669    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28670    ac_top_srcdir=$ac_top_build_prefix$srcdir
28671    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28672esac
28673ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28674
28675
28676  case $ac_mode in
28677  :F)
28678  #
28679  # CONFIG_FILE
28680  #
28681
28682  case $INSTALL in
28683  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28684  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28685  esac
28686  ac_MKDIR_P=$MKDIR_P
28687  case $MKDIR_P in
28688  [\\/$]* | ?:[\\/]* ) ;;
28689  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28690  esac
28691_ACEOF
28692
28693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28694# If the template does not know about datarootdir, expand it.
28695# FIXME: This hack should be removed a few years after 2.60.
28696ac_datarootdir_hack=; ac_datarootdir_seen=
28697ac_sed_dataroot='
28698/datarootdir/ {
28699  p
28700  q
28701}
28702/@datadir@/p
28703/@docdir@/p
28704/@infodir@/p
28705/@localedir@/p
28706/@mandir@/p'
28707case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28708*datarootdir*) ac_datarootdir_seen=yes;;
28709*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28710  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28711$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28712_ACEOF
28713cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28714  ac_datarootdir_hack='
28715  s&@datadir@&$datadir&g
28716  s&@docdir@&$docdir&g
28717  s&@infodir@&$infodir&g
28718  s&@localedir@&$localedir&g
28719  s&@mandir@&$mandir&g
28720  s&\\\${datarootdir}&$datarootdir&g' ;;
28721esac
28722_ACEOF
28723
28724# Neutralize VPATH when `$srcdir' = `.'.
28725# Shell code in configure.ac might set extrasub.
28726# FIXME: do we really want to maintain this feature?
28727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28728ac_sed_extra="$ac_vpsub
28729$extrasub
28730_ACEOF
28731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28732:t
28733/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28734s|@configure_input@|$ac_sed_conf_input|;t t
28735s&@top_builddir@&$ac_top_builddir_sub&;t t
28736s&@top_build_prefix@&$ac_top_build_prefix&;t t
28737s&@srcdir@&$ac_srcdir&;t t
28738s&@abs_srcdir@&$ac_abs_srcdir&;t t
28739s&@top_srcdir@&$ac_top_srcdir&;t t
28740s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28741s&@builddir@&$ac_builddir&;t t
28742s&@abs_builddir@&$ac_abs_builddir&;t t
28743s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28744s&@INSTALL@&$ac_INSTALL&;t t
28745s&@MKDIR_P@&$ac_MKDIR_P&;t t
28746$ac_datarootdir_hack
28747"
28748eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28749  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28750
28751test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28752  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28753  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
28754      "$ac_tmp/out"`; test -z "$ac_out"; } &&
28755  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28756which seems to be undefined.  Please make sure it is defined" >&5
28757$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28758which seems to be undefined.  Please make sure it is defined" >&2;}
28759
28760  rm -f "$ac_tmp/stdin"
28761  case $ac_file in
28762  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28763  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28764  esac \
28765  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28766 ;;
28767  :H)
28768  #
28769  # CONFIG_HEADER
28770  #
28771  if test x"$ac_file" != x-; then
28772    {
28773      $as_echo "/* $configure_input  */" \
28774      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28775    } >"$ac_tmp/config.h" \
28776      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28777    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28778      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28779$as_echo "$as_me: $ac_file is unchanged" >&6;}
28780    else
28781      rm -f "$ac_file"
28782      mv "$ac_tmp/config.h" "$ac_file" \
28783	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
28784    fi
28785  else
28786    $as_echo "/* $configure_input  */" \
28787      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28788      || as_fn_error $? "could not create -" "$LINENO" 5
28789  fi
28790# Compute "$ac_file"'s index in $config_headers.
28791_am_arg="$ac_file"
28792_am_stamp_count=1
28793for _am_header in $config_headers :; do
28794  case $_am_header in
28795    $_am_arg | $_am_arg:* )
28796      break ;;
28797    * )
28798      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28799  esac
28800done
28801echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28802$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28803	 X"$_am_arg" : 'X\(//\)[^/]' \| \
28804	 X"$_am_arg" : 'X\(//\)$' \| \
28805	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28806$as_echo X"$_am_arg" |
28807    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28808	    s//\1/
28809	    q
28810	  }
28811	  /^X\(\/\/\)[^/].*/{
28812	    s//\1/
28813	    q
28814	  }
28815	  /^X\(\/\/\)$/{
28816	    s//\1/
28817	    q
28818	  }
28819	  /^X\(\/\).*/{
28820	    s//\1/
28821	    q
28822	  }
28823	  s/.*/./; q'`/stamp-h$_am_stamp_count
28824 ;;
28825
28826  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28827$as_echo "$as_me: executing $ac_file commands" >&6;}
28828 ;;
28829  esac
28830
28831
28832  case $ac_file$ac_mode in
28833    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28834  # Older Autoconf quotes --file arguments for eval, but not when files
28835  # are listed without --file.  Let's play safe and only enable the eval
28836  # if we detect the quoting.
28837  case $CONFIG_FILES in
28838  *\'*) eval set x "$CONFIG_FILES" ;;
28839  *)   set x $CONFIG_FILES ;;
28840  esac
28841  shift
28842  for mf
28843  do
28844    # Strip MF so we end up with the name of the file.
28845    mf=`echo "$mf" | sed -e 's/:.*$//'`
28846    # Check whether this is an Automake generated Makefile or not.
28847    # We used to match only the files named 'Makefile.in', but
28848    # some people rename them; so instead we look at the file content.
28849    # Grep'ing the first line is not enough: some people post-process
28850    # each Makefile.in and add a new line on top of each file to say so.
28851    # Grep'ing the whole file is not good either: AIX grep has a line
28852    # limit of 2048, but all sed's we know have understand at least 4000.
28853    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28854      dirpart=`$as_dirname -- "$mf" ||
28855$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28856	 X"$mf" : 'X\(//\)[^/]' \| \
28857	 X"$mf" : 'X\(//\)$' \| \
28858	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28859$as_echo X"$mf" |
28860    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28861	    s//\1/
28862	    q
28863	  }
28864	  /^X\(\/\/\)[^/].*/{
28865	    s//\1/
28866	    q
28867	  }
28868	  /^X\(\/\/\)$/{
28869	    s//\1/
28870	    q
28871	  }
28872	  /^X\(\/\).*/{
28873	    s//\1/
28874	    q
28875	  }
28876	  s/.*/./; q'`
28877    else
28878      continue
28879    fi
28880    # Extract the definition of DEPDIR, am__include, and am__quote
28881    # from the Makefile without running 'make'.
28882    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28883    test -z "$DEPDIR" && continue
28884    am__include=`sed -n 's/^am__include = //p' < "$mf"`
28885    test -z "$am__include" && continue
28886    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28887    # Find all dependency output files, they are included files with
28888    # $(DEPDIR) in their names.  We invoke sed twice because it is the
28889    # simplest approach to changing $(DEPDIR) to its actual value in the
28890    # expansion.
28891    for file in `sed -n "
28892      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28893	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28894      # Make sure the directory exists.
28895      test -f "$dirpart/$file" && continue
28896      fdir=`$as_dirname -- "$file" ||
28897$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28898	 X"$file" : 'X\(//\)[^/]' \| \
28899	 X"$file" : 'X\(//\)$' \| \
28900	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28901$as_echo X"$file" |
28902    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28903	    s//\1/
28904	    q
28905	  }
28906	  /^X\(\/\/\)[^/].*/{
28907	    s//\1/
28908	    q
28909	  }
28910	  /^X\(\/\/\)$/{
28911	    s//\1/
28912	    q
28913	  }
28914	  /^X\(\/\).*/{
28915	    s//\1/
28916	    q
28917	  }
28918	  s/.*/./; q'`
28919      as_dir=$dirpart/$fdir; as_fn_mkdir_p
28920      # echo "creating $dirpart/$file"
28921      echo '# dummy' > "$dirpart/$file"
28922    done
28923  done
28924}
28925 ;;
28926    "libtool":C)
28927
28928    # See if we are running on zsh, and set the options that allow our
28929    # commands through without removal of \ escapes.
28930    if test -n "${ZSH_VERSION+set}"; then
28931      setopt NO_GLOB_SUBST
28932    fi
28933
28934    cfgfile=${ofile}T
28935    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28936    $RM "$cfgfile"
28937
28938    cat <<_LT_EOF >> "$cfgfile"
28939#! $SHELL
28940# Generated automatically by $as_me ($PACKAGE) $VERSION
28941# NOTE: Changes made to this file will be lost: look at ltmain.sh.
28942
28943# Provide generalized library-building support services.
28944# Written by Gordon Matzigkeit, 1996
28945
28946# Copyright (C) 2014 Free Software Foundation, Inc.
28947# This is free software; see the source for copying conditions.  There is NO
28948# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28949
28950# GNU Libtool is free software; you can redistribute it and/or modify
28951# it under the terms of the GNU General Public License as published by
28952# the Free Software Foundation; either version 2 of of the License, or
28953# (at your option) any later version.
28954#
28955# As a special exception to the GNU General Public License, if you
28956# distribute this file as part of a program or library that is built
28957# using GNU Libtool, you may include this file under the  same
28958# distribution terms that you use for the rest of that program.
28959#
28960# GNU Libtool is distributed in the hope that it will be useful, but
28961# WITHOUT ANY WARRANTY; without even the implied warranty of
28962# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28963# GNU General Public License for more details.
28964#
28965# You should have received a copy of the GNU General Public License
28966# along with this program.  If not, see <http://www.gnu.org/licenses/>.
28967
28968
28969# The names of the tagged configurations supported by this script.
28970available_tags='CXX '
28971
28972# Configured defaults for sys_lib_dlsearch_path munging.
28973: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28974
28975# ### BEGIN LIBTOOL CONFIG
28976
28977# Which release of libtool.m4 was used?
28978macro_version=$macro_version
28979macro_revision=$macro_revision
28980
28981# Whether or not to build shared libraries.
28982build_libtool_libs=$enable_shared
28983
28984# Whether or not to build static libraries.
28985build_old_libs=$enable_static
28986
28987# What type of objects to build.
28988pic_mode=$pic_mode
28989
28990# Whether or not to optimize for fast installation.
28991fast_install=$enable_fast_install
28992
28993# Shared archive member basename,for filename based shared library versioning on AIX.
28994shared_archive_member_spec=$shared_archive_member_spec
28995
28996# Shell to use when invoking shell scripts.
28997SHELL=$lt_SHELL
28998
28999# An echo program that protects backslashes.
29000ECHO=$lt_ECHO
29001
29002# The PATH separator for the build system.
29003PATH_SEPARATOR=$lt_PATH_SEPARATOR
29004
29005# The host system.
29006host_alias=$host_alias
29007host=$host
29008host_os=$host_os
29009
29010# The build system.
29011build_alias=$build_alias
29012build=$build
29013build_os=$build_os
29014
29015# A sed program that does not truncate output.
29016SED=$lt_SED
29017
29018# Sed that helps us avoid accidentally triggering echo(1) options like -n.
29019Xsed="\$SED -e 1s/^X//"
29020
29021# A grep program that handles long lines.
29022GREP=$lt_GREP
29023
29024# An ERE matcher.
29025EGREP=$lt_EGREP
29026
29027# A literal string matcher.
29028FGREP=$lt_FGREP
29029
29030# A BSD- or MS-compatible name lister.
29031NM=$lt_NM
29032
29033# Whether we need soft or hard links.
29034LN_S=$lt_LN_S
29035
29036# What is the maximum length of a command?
29037max_cmd_len=$max_cmd_len
29038
29039# Object file suffix (normally "o").
29040objext=$ac_objext
29041
29042# Executable file suffix (normally "").
29043exeext=$exeext
29044
29045# whether the shell understands "unset".
29046lt_unset=$lt_unset
29047
29048# turn spaces into newlines.
29049SP2NL=$lt_lt_SP2NL
29050
29051# turn newlines into spaces.
29052NL2SP=$lt_lt_NL2SP
29053
29054# convert \$build file names to \$host format.
29055to_host_file_cmd=$lt_cv_to_host_file_cmd
29056
29057# convert \$build files to toolchain format.
29058to_tool_file_cmd=$lt_cv_to_tool_file_cmd
29059
29060# An object symbol dumper.
29061OBJDUMP=$lt_OBJDUMP
29062
29063# Method to check whether dependent libraries are shared objects.
29064deplibs_check_method=$lt_deplibs_check_method
29065
29066# Command to use when deplibs_check_method = "file_magic".
29067file_magic_cmd=$lt_file_magic_cmd
29068
29069# How to find potential files when deplibs_check_method = "file_magic".
29070file_magic_glob=$lt_file_magic_glob
29071
29072# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
29073want_nocaseglob=$lt_want_nocaseglob
29074
29075# DLL creation program.
29076DLLTOOL=$lt_DLLTOOL
29077
29078# Command to associate shared and link libraries.
29079sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
29080
29081# The archiver.
29082AR=$lt_AR
29083
29084# Flags to create an archive.
29085AR_FLAGS=$lt_AR_FLAGS
29086
29087# How to feed a file listing to the archiver.
29088archiver_list_spec=$lt_archiver_list_spec
29089
29090# A symbol stripping program.
29091STRIP=$lt_STRIP
29092
29093# Commands used to install an old-style archive.
29094RANLIB=$lt_RANLIB
29095old_postinstall_cmds=$lt_old_postinstall_cmds
29096old_postuninstall_cmds=$lt_old_postuninstall_cmds
29097
29098# Whether to use a lock for old archive extraction.
29099lock_old_archive_extraction=$lock_old_archive_extraction
29100
29101# A C compiler.
29102LTCC=$lt_CC
29103
29104# LTCC compiler flags.
29105LTCFLAGS=$lt_CFLAGS
29106
29107# Take the output of nm and produce a listing of raw symbols and C names.
29108global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29109
29110# Transform the output of nm in a proper C declaration.
29111global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29112
29113# Transform the output of nm into a list of symbols to manually relocate.
29114global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
29115
29116# Transform the output of nm in a C name address pair.
29117global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29118
29119# Transform the output of nm in a C name address pair when lib prefix is needed.
29120global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29121
29122# The name lister interface.
29123nm_interface=$lt_lt_cv_nm_interface
29124
29125# Specify filename containing input files for \$NM.
29126nm_file_list_spec=$lt_nm_file_list_spec
29127
29128# The root where to search for dependent libraries,and where our libraries should be installed.
29129lt_sysroot=$lt_sysroot
29130
29131# Command to truncate a binary pipe.
29132lt_truncate_bin=$lt_lt_cv_truncate_bin
29133
29134# The name of the directory that contains temporary libtool files.
29135objdir=$objdir
29136
29137# Used to examine libraries when file_magic_cmd begins with "file".
29138MAGIC_CMD=$MAGIC_CMD
29139
29140# Must we lock files when doing compilation?
29141need_locks=$lt_need_locks
29142
29143# Manifest tool.
29144MANIFEST_TOOL=$lt_MANIFEST_TOOL
29145
29146# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29147DSYMUTIL=$lt_DSYMUTIL
29148
29149# Tool to change global to local symbols on Mac OS X.
29150NMEDIT=$lt_NMEDIT
29151
29152# Tool to manipulate fat objects and archives on Mac OS X.
29153LIPO=$lt_LIPO
29154
29155# ldd/readelf like tool for Mach-O binaries on Mac OS X.
29156OTOOL=$lt_OTOOL
29157
29158# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29159OTOOL64=$lt_OTOOL64
29160
29161# Old archive suffix (normally "a").
29162libext=$libext
29163
29164# Shared library suffix (normally ".so").
29165shrext_cmds=$lt_shrext_cmds
29166
29167# The commands to extract the exported symbol list from a shared archive.
29168extract_expsyms_cmds=$lt_extract_expsyms_cmds
29169
29170# Variables whose values should be saved in libtool wrapper scripts and
29171# restored at link time.
29172variables_saved_for_relink=$lt_variables_saved_for_relink
29173
29174# Do we need the "lib" prefix for modules?
29175need_lib_prefix=$need_lib_prefix
29176
29177# Do we need a version for libraries?
29178need_version=$need_version
29179
29180# Library versioning type.
29181version_type=$version_type
29182
29183# Shared library runtime path variable.
29184runpath_var=$runpath_var
29185
29186# Shared library path variable.
29187shlibpath_var=$shlibpath_var
29188
29189# Is shlibpath searched before the hard-coded library search path?
29190shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29191
29192# Format of library name prefix.
29193libname_spec=$lt_libname_spec
29194
29195# List of archive names.  First name is the real one, the rest are links.
29196# The last name is the one that the linker finds with -lNAME
29197library_names_spec=$lt_library_names_spec
29198
29199# The coded name of the library, if different from the real name.
29200soname_spec=$lt_soname_spec
29201
29202# Permission mode override for installation of shared libraries.
29203install_override_mode=$lt_install_override_mode
29204
29205# Command to use after installation of a shared archive.
29206postinstall_cmds=$lt_postinstall_cmds
29207
29208# Command to use after uninstallation of a shared archive.
29209postuninstall_cmds=$lt_postuninstall_cmds
29210
29211# Commands used to finish a libtool library installation in a directory.
29212finish_cmds=$lt_finish_cmds
29213
29214# As "finish_cmds", except a single script fragment to be evaled but
29215# not shown.
29216finish_eval=$lt_finish_eval
29217
29218# Whether we should hardcode library paths into libraries.
29219hardcode_into_libs=$hardcode_into_libs
29220
29221# Compile-time system search path for libraries.
29222sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29223
29224# Detected run-time system search path for libraries.
29225sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
29226
29227# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
29228configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
29229
29230# Whether dlopen is supported.
29231dlopen_support=$enable_dlopen
29232
29233# Whether dlopen of programs is supported.
29234dlopen_self=$enable_dlopen_self
29235
29236# Whether dlopen of statically linked programs is supported.
29237dlopen_self_static=$enable_dlopen_self_static
29238
29239# Commands to strip libraries.
29240old_striplib=$lt_old_striplib
29241striplib=$lt_striplib
29242
29243
29244# The linker used to build libraries.
29245LD=$lt_LD
29246
29247# How to create reloadable object files.
29248reload_flag=$lt_reload_flag
29249reload_cmds=$lt_reload_cmds
29250
29251# Commands used to build an old-style archive.
29252old_archive_cmds=$lt_old_archive_cmds
29253
29254# A language specific compiler.
29255CC=$lt_compiler
29256
29257# Is the compiler the GNU compiler?
29258with_gcc=$GCC
29259
29260# Compiler flag to turn off builtin functions.
29261no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29262
29263# Additional compiler flags for building library objects.
29264pic_flag=$lt_lt_prog_compiler_pic
29265
29266# How to pass a linker flag through the compiler.
29267wl=$lt_lt_prog_compiler_wl
29268
29269# Compiler flag to prevent dynamic linking.
29270link_static_flag=$lt_lt_prog_compiler_static
29271
29272# Does compiler simultaneously support -c and -o options?
29273compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29274
29275# Whether or not to add -lc for building shared libraries.
29276build_libtool_need_lc=$archive_cmds_need_lc
29277
29278# Whether or not to disallow shared libs when runtime libs are static.
29279allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29280
29281# Compiler flag to allow reflexive dlopens.
29282export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29283
29284# Compiler flag to generate shared objects directly from archives.
29285whole_archive_flag_spec=$lt_whole_archive_flag_spec
29286
29287# Whether the compiler copes with passing no objects directly.
29288compiler_needs_object=$lt_compiler_needs_object
29289
29290# Create an old-style archive from a shared archive.
29291old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29292
29293# Create a temporary old-style archive to link instead of a shared archive.
29294old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29295
29296# Commands used to build a shared archive.
29297archive_cmds=$lt_archive_cmds
29298archive_expsym_cmds=$lt_archive_expsym_cmds
29299
29300# Commands used to build a loadable module if different from building
29301# a shared archive.
29302module_cmds=$lt_module_cmds
29303module_expsym_cmds=$lt_module_expsym_cmds
29304
29305# Whether we are building with GNU ld or not.
29306with_gnu_ld=$lt_with_gnu_ld
29307
29308# Flag that allows shared libraries with undefined symbols to be built.
29309allow_undefined_flag=$lt_allow_undefined_flag
29310
29311# Flag that enforces no undefined symbols.
29312no_undefined_flag=$lt_no_undefined_flag
29313
29314# Flag to hardcode \$libdir into a binary during linking.
29315# This must work even if \$libdir does not exist
29316hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29317
29318# Whether we need a single "-rpath" flag with a separated argument.
29319hardcode_libdir_separator=$lt_hardcode_libdir_separator
29320
29321# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29322# DIR into the resulting binary.
29323hardcode_direct=$hardcode_direct
29324
29325# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29326# DIR into the resulting binary and the resulting library dependency is
29327# "absolute",i.e impossible to change by setting \$shlibpath_var if the
29328# library is relocated.
29329hardcode_direct_absolute=$hardcode_direct_absolute
29330
29331# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29332# into the resulting binary.
29333hardcode_minus_L=$hardcode_minus_L
29334
29335# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29336# into the resulting binary.
29337hardcode_shlibpath_var=$hardcode_shlibpath_var
29338
29339# Set to "yes" if building a shared library automatically hardcodes DIR
29340# into the library and all subsequent libraries and executables linked
29341# against it.
29342hardcode_automatic=$hardcode_automatic
29343
29344# Set to yes if linker adds runtime paths of dependent libraries
29345# to runtime path list.
29346inherit_rpath=$inherit_rpath
29347
29348# Whether libtool must link a program against all its dependency libraries.
29349link_all_deplibs=$link_all_deplibs
29350
29351# Set to "yes" if exported symbols are required.
29352always_export_symbols=$always_export_symbols
29353
29354# The commands to list exported symbols.
29355export_symbols_cmds=$lt_export_symbols_cmds
29356
29357# Symbols that should not be listed in the preloaded symbols.
29358exclude_expsyms=$lt_exclude_expsyms
29359
29360# Symbols that must always be exported.
29361include_expsyms=$lt_include_expsyms
29362
29363# Commands necessary for linking programs (against libraries) with templates.
29364prelink_cmds=$lt_prelink_cmds
29365
29366# Commands necessary for finishing linking programs.
29367postlink_cmds=$lt_postlink_cmds
29368
29369# Specify filename containing input files.
29370file_list_spec=$lt_file_list_spec
29371
29372# How to hardcode a shared library path into an executable.
29373hardcode_action=$hardcode_action
29374
29375# The directories searched by this compiler when creating a shared library.
29376compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29377
29378# Dependencies to place before and after the objects being linked to
29379# create a shared library.
29380predep_objects=$lt_predep_objects
29381postdep_objects=$lt_postdep_objects
29382predeps=$lt_predeps
29383postdeps=$lt_postdeps
29384
29385# The library search path used internally by the compiler when linking
29386# a shared library.
29387compiler_lib_search_path=$lt_compiler_lib_search_path
29388
29389# ### END LIBTOOL CONFIG
29390
29391_LT_EOF
29392
29393    cat <<'_LT_EOF' >> "$cfgfile"
29394
29395# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
29396
29397# func_munge_path_list VARIABLE PATH
29398# -----------------------------------
29399# VARIABLE is name of variable containing _space_ separated list of
29400# directories to be munged by the contents of PATH, which is string
29401# having a format:
29402# "DIR[:DIR]:"
29403#       string "DIR[ DIR]" will be prepended to VARIABLE
29404# ":DIR[:DIR]"
29405#       string "DIR[ DIR]" will be appended to VARIABLE
29406# "DIRP[:DIRP]::[DIRA:]DIRA"
29407#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
29408#       "DIRA[ DIRA]" will be appended to VARIABLE
29409# "DIR[:DIR]"
29410#       VARIABLE will be replaced by "DIR[ DIR]"
29411func_munge_path_list ()
29412{
29413    case x$2 in
29414    x)
29415        ;;
29416    *:)
29417        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
29418        ;;
29419    x:*)
29420        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
29421        ;;
29422    *::*)
29423        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
29424        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
29425        ;;
29426    *)
29427        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
29428        ;;
29429    esac
29430}
29431
29432
29433# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
29434func_cc_basename ()
29435{
29436    for cc_temp in $*""; do
29437      case $cc_temp in
29438        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
29439        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
29440        \-*) ;;
29441        *) break;;
29442      esac
29443    done
29444    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
29445}
29446
29447
29448# ### END FUNCTIONS SHARED WITH CONFIGURE
29449
29450_LT_EOF
29451
29452  case $host_os in
29453  aix3*)
29454    cat <<\_LT_EOF >> "$cfgfile"
29455# AIX sometimes has problems with the GCC collect2 program.  For some
29456# reason, if we set the COLLECT_NAMES environment variable, the problems
29457# vanish in a puff of smoke.
29458if test set != "${COLLECT_NAMES+set}"; then
29459  COLLECT_NAMES=
29460  export COLLECT_NAMES
29461fi
29462_LT_EOF
29463    ;;
29464  esac
29465
29466
29467ltmain=$ac_aux_dir/ltmain.sh
29468
29469
29470  # We use sed instead of cat because bash on DJGPP gets confused if
29471  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
29472  # text mode, it properly converts lines to CR/LF.  This bash problem
29473  # is reportedly fixed, but why not run on old versions too?
29474  sed '$q' "$ltmain" >> "$cfgfile" \
29475     || (rm -f "$cfgfile"; exit 1)
29476
29477   mv -f "$cfgfile" "$ofile" ||
29478    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29479  chmod +x "$ofile"
29480
29481
29482    cat <<_LT_EOF >> "$ofile"
29483
29484# ### BEGIN LIBTOOL TAG CONFIG: CXX
29485
29486# The linker used to build libraries.
29487LD=$lt_LD_CXX
29488
29489# How to create reloadable object files.
29490reload_flag=$lt_reload_flag_CXX
29491reload_cmds=$lt_reload_cmds_CXX
29492
29493# Commands used to build an old-style archive.
29494old_archive_cmds=$lt_old_archive_cmds_CXX
29495
29496# A language specific compiler.
29497CC=$lt_compiler_CXX
29498
29499# Is the compiler the GNU compiler?
29500with_gcc=$GCC_CXX
29501
29502# Compiler flag to turn off builtin functions.
29503no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
29504
29505# Additional compiler flags for building library objects.
29506pic_flag=$lt_lt_prog_compiler_pic_CXX
29507
29508# How to pass a linker flag through the compiler.
29509wl=$lt_lt_prog_compiler_wl_CXX
29510
29511# Compiler flag to prevent dynamic linking.
29512link_static_flag=$lt_lt_prog_compiler_static_CXX
29513
29514# Does compiler simultaneously support -c and -o options?
29515compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
29516
29517# Whether or not to add -lc for building shared libraries.
29518build_libtool_need_lc=$archive_cmds_need_lc_CXX
29519
29520# Whether or not to disallow shared libs when runtime libs are static.
29521allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
29522
29523# Compiler flag to allow reflexive dlopens.
29524export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
29525
29526# Compiler flag to generate shared objects directly from archives.
29527whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
29528
29529# Whether the compiler copes with passing no objects directly.
29530compiler_needs_object=$lt_compiler_needs_object_CXX
29531
29532# Create an old-style archive from a shared archive.
29533old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29534
29535# Create a temporary old-style archive to link instead of a shared archive.
29536old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29537
29538# Commands used to build a shared archive.
29539archive_cmds=$lt_archive_cmds_CXX
29540archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29541
29542# Commands used to build a loadable module if different from building
29543# a shared archive.
29544module_cmds=$lt_module_cmds_CXX
29545module_expsym_cmds=$lt_module_expsym_cmds_CXX
29546
29547# Whether we are building with GNU ld or not.
29548with_gnu_ld=$lt_with_gnu_ld_CXX
29549
29550# Flag that allows shared libraries with undefined symbols to be built.
29551allow_undefined_flag=$lt_allow_undefined_flag_CXX
29552
29553# Flag that enforces no undefined symbols.
29554no_undefined_flag=$lt_no_undefined_flag_CXX
29555
29556# Flag to hardcode \$libdir into a binary during linking.
29557# This must work even if \$libdir does not exist
29558hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29559
29560# Whether we need a single "-rpath" flag with a separated argument.
29561hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29562
29563# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29564# DIR into the resulting binary.
29565hardcode_direct=$hardcode_direct_CXX
29566
29567# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29568# DIR into the resulting binary and the resulting library dependency is
29569# "absolute",i.e impossible to change by setting \$shlibpath_var if the
29570# library is relocated.
29571hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29572
29573# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29574# into the resulting binary.
29575hardcode_minus_L=$hardcode_minus_L_CXX
29576
29577# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29578# into the resulting binary.
29579hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29580
29581# Set to "yes" if building a shared library automatically hardcodes DIR
29582# into the library and all subsequent libraries and executables linked
29583# against it.
29584hardcode_automatic=$hardcode_automatic_CXX
29585
29586# Set to yes if linker adds runtime paths of dependent libraries
29587# to runtime path list.
29588inherit_rpath=$inherit_rpath_CXX
29589
29590# Whether libtool must link a program against all its dependency libraries.
29591link_all_deplibs=$link_all_deplibs_CXX
29592
29593# Set to "yes" if exported symbols are required.
29594always_export_symbols=$always_export_symbols_CXX
29595
29596# The commands to list exported symbols.
29597export_symbols_cmds=$lt_export_symbols_cmds_CXX
29598
29599# Symbols that should not be listed in the preloaded symbols.
29600exclude_expsyms=$lt_exclude_expsyms_CXX
29601
29602# Symbols that must always be exported.
29603include_expsyms=$lt_include_expsyms_CXX
29604
29605# Commands necessary for linking programs (against libraries) with templates.
29606prelink_cmds=$lt_prelink_cmds_CXX
29607
29608# Commands necessary for finishing linking programs.
29609postlink_cmds=$lt_postlink_cmds_CXX
29610
29611# Specify filename containing input files.
29612file_list_spec=$lt_file_list_spec_CXX
29613
29614# How to hardcode a shared library path into an executable.
29615hardcode_action=$hardcode_action_CXX
29616
29617# The directories searched by this compiler when creating a shared library.
29618compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29619
29620# Dependencies to place before and after the objects being linked to
29621# create a shared library.
29622predep_objects=$lt_predep_objects_CXX
29623postdep_objects=$lt_postdep_objects_CXX
29624predeps=$lt_predeps_CXX
29625postdeps=$lt_postdeps_CXX
29626
29627# The library search path used internally by the compiler when linking
29628# a shared library.
29629compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29630
29631# ### END LIBTOOL TAG CONFIG: CXX
29632_LT_EOF
29633
29634 ;;
29635    "po-directories":C)
29636    for ac_file in $CONFIG_FILES; do
29637      # Support "outfile[:infile[:infile...]]"
29638      case "$ac_file" in
29639        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
29640      esac
29641      # PO directories have a Makefile.in generated from Makefile.in.in.
29642      case "$ac_file" in */Makefile.in)
29643        # Adjust a relative srcdir.
29644        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
29645        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
29646        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
29647        # In autoconf-2.13 it is called $ac_given_srcdir.
29648        # In autoconf-2.50 it is called $srcdir.
29649        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
29650        case "$ac_given_srcdir" in
29651          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
29652          /*) top_srcdir="$ac_given_srcdir" ;;
29653          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
29654        esac
29655        # Treat a directory as a PO directory if and only if it has a
29656        # POTFILES.in file. This allows packages to have multiple PO
29657        # directories under different names or in different locations.
29658        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
29659          rm -f "$ac_dir/POTFILES"
29660          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
29661          gt_tab=`printf '\t'`
29662          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
29663          POMAKEFILEDEPS="POTFILES.in"
29664          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
29665          # on $ac_dir but don't depend on user-specified configuration
29666          # parameters.
29667          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
29668            # The LINGUAS file contains the set of available languages.
29669            if test -n "$OBSOLETE_ALL_LINGUAS"; then
29670              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
29671            fi
29672            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
29673            # Hide the ALL_LINGUAS assignment from automake < 1.5.
29674            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
29675            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
29676          else
29677            # The set of available languages was given in configure.in.
29678            # Hide the ALL_LINGUAS assignment from automake < 1.5.
29679            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
29680          fi
29681          # Compute POFILES
29682          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
29683          # Compute UPDATEPOFILES
29684          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
29685          # Compute DUMMYPOFILES
29686          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
29687          # Compute GMOFILES
29688          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
29689          case "$ac_given_srcdir" in
29690            .) srcdirpre= ;;
29691            *) srcdirpre='$(srcdir)/' ;;
29692          esac
29693          POFILES=
29694          UPDATEPOFILES=
29695          DUMMYPOFILES=
29696          GMOFILES=
29697          for lang in $ALL_LINGUAS; do
29698            POFILES="$POFILES $srcdirpre$lang.po"
29699            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
29700            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
29701            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
29702          done
29703          # CATALOGS depends on both $ac_dir and the user's LINGUAS
29704          # environment variable.
29705          INST_LINGUAS=
29706          if test -n "$ALL_LINGUAS"; then
29707            for presentlang in $ALL_LINGUAS; do
29708              useit=no
29709              if test "%UNSET%" != "$LINGUAS"; then
29710                desiredlanguages="$LINGUAS"
29711              else
29712                desiredlanguages="$ALL_LINGUAS"
29713              fi
29714              for desiredlang in $desiredlanguages; do
29715                # Use the presentlang catalog if desiredlang is
29716                #   a. equal to presentlang, or
29717                #   b. a variant of presentlang (because in this case,
29718                #      presentlang can be used as a fallback for messages
29719                #      which are not translated in the desiredlang catalog).
29720                case "$desiredlang" in
29721                  "$presentlang"*) useit=yes;;
29722                esac
29723              done
29724              if test $useit = yes; then
29725                INST_LINGUAS="$INST_LINGUAS $presentlang"
29726              fi
29727            done
29728          fi
29729          CATALOGS=
29730          if test -n "$INST_LINGUAS"; then
29731            for lang in $INST_LINGUAS; do
29732              CATALOGS="$CATALOGS $lang.gmo"
29733            done
29734          fi
29735          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
29736          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
29737          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
29738            if test -f "$f"; then
29739              case "$f" in
29740                *.orig | *.bak | *~) ;;
29741                *) cat "$f" >> "$ac_dir/Makefile" ;;
29742              esac
29743            fi
29744          done
29745        fi
29746        ;;
29747      esac
29748    done ;;
29749
29750  esac
29751done # for ac_tag
29752
29753
29754as_fn_exit 0
29755_ACEOF
29756ac_clean_files=$ac_clean_files_save
29757
29758test $ac_write_fail = 0 ||
29759  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29760
29761
29762# configure is writing to config.log, and then calls config.status.
29763# config.status does its own redirection, appending to config.log.
29764# Unfortunately, on DOS this fails, as config.log is still kept open
29765# by configure, so config.status won't be able to write to it; its
29766# output is simply discarded.  So we exec the FD to /dev/null,
29767# effectively closing config.log, so it can be properly (re)opened and
29768# appended to by config.status.  When coming back to configure, we
29769# need to make the FD available again.
29770if test "$no_create" != yes; then
29771  ac_cs_success=:
29772  ac_config_status_args=
29773  test "$silent" = yes &&
29774    ac_config_status_args="$ac_config_status_args --quiet"
29775  exec 5>/dev/null
29776  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29777  exec 5>>config.log
29778  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29779  # would make configure fail if this is the last instruction.
29780  $ac_cs_success || as_fn_exit 1
29781fi
29782if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29783  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29784$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29785fi
29786
29787
29788# ==========================================================================
29789echo "
29790 ---{ $PACKAGE_NAME $VERSION }---
29791
29792    prefix:                                    ${prefix}
29793    sysconfdir:                                ${sysconfdir}
29794    localstatedir:                             ${localstatedir}
29795    avahi socket:                              ${avahi_socket}
29796    dbus-1 system.d dir:                       ${DBUS_SYS_DIR}
29797    dbus-1 version:                            ${DBUS_VERSION}
29798    dbus-1 system socket:                      ${DBUS_SYSTEM_BUS_DEFAULT_ADDRESS}
29799    C Compiler:                                ${CC}
29800    CFLAGS:                                    ${CFLAGS}
29801    Enable GLIB:                               ${HAVE_GLIB}
29802    Enable GLIB GObject:                       ${HAVE_GOBJECT}
29803    Enable GObject Introspection:              ${found_introspection}
29804    Enable GTK 2.0:                            ${HAVE_GTK}
29805    Enable GTK 3.0:                            ${HAVE_GTK3}
29806    Enable D-Bus:                              ${HAVE_DBUS}
29807    With XML:                                  ${with_xml}
29808    Enable GDBM:                               ${HAVE_GDBM}
29809    Enable DBM:                                ${HAVE_DBM}
29810    Enable libdaemon:                          ${HAVE_LIBDAEMON}
29811    Enable Python:                             ${HAVE_PYTHON}
29812    Enable pygobject:                          ${HAVE_PYGOBJECT}
29813    Enable python-dbus:                        ${HAVE_PYTHON_DBUS}
29814    Enable QT3:                                ${HAVE_QT3}
29815    Enable QT4:                                ${HAVE_QT4}
29816    Enable QT5:                                ${HAVE_QT5}
29817    Enable Mono:                               ${HAVE_MONO}
29818    Enable Monodoc:                            ${HAVE_MONODOC}
29819    Distribution/OS:                           ${with_distro}
29820    User for avahi-daemon:                     ${AVAHI_USER}
29821    Group for avahi-daemon:                    ${AVAHI_GROUP}
29822    Priviliged access group for Avahi clients: ${AVAHI_PRIV_ACCESS_GROUP}
29823    User for avahi-autoipd:                    ${AVAHI_AUTOIPD_USER}
29824    Group for avahi-autoipd:                   ${AVAHI_AUTOIPD_GROUP}
29825    Enable chroot():                           ${enable_chroot}
29826    Enable Linux inotify:                      ${have_inotify}
29827    Enable stack-smashing protection:          ${enable_ssp}
29828    systemd unit directory:                    ${with_systemdsystemunitdir}
29829"
29830
29831BUILD_DAEMON="no   (You need libdaemon and expat/bsdxml!)"
29832
29833if test "x$HAVE_XML" = "xyes" -a "x$HAVE_LIBDAEMON" = "xyes" ; then
29834    BUILD_DAEMON=yes
29835fi
29836
29837BUILD_PYTHON="no   (You need python, pygobject and python-dbus!)"
29838
29839if test "x$BUILD_DAEMON" = "xyes" -a "x$HAVE_DBUS" = "xyes" -a "x$HAVE_PYTHON" = "xyes" -a "x$HAVE_PYTHON_DBUS" = "xyes" -a "x$HAVE_PYGOBJECT" = "xyes" ; then
29840    BUILD_PYTHON=yes
29841fi
29842
29843BUILD_CLIENT="no   (You need avahi-daemon and D-Bus!)"
29844
29845if test "x$HAVE_DBUS" = "xyes" ; then
29846    BUILD_CLIENT=yes
29847fi
29848
29849if test "x$ENABLE_COMPAT_LIBDNS_SD" = "xyes" -a "x$BUILD_CLIENT" != "xyes" ; then
29850   ENABLE_COMPAT_LIBDNS_SD="no   (You need libavahi-client!)"
29851fi
29852if test "x$ENABLE_COMPAT_HOWL" = "xyes" -a "x$BUILD_CLIENT" != "xyes" ; then
29853   ENABLE_COMPAT_HOWL="no   (You need libavahi-client!)"
29854fi
29855if test "x$ENABLE_AUTOIPD" = "xyes" -a "x$HAVE_LIBDAEMON" != "xyes" ; then
29856   ENABLE_AUTOIPD="no   (You need libdaemon!)"
29857fi
29858
29859HAVE_GTK2OR3=no
29860if test "x$HAVE_GTK" = "xyes" -o "x$HAVE_GTK3" = "xyes" ; then
29861   HAVE_GTK2OR3=yes
29862fi
29863
29864BUILD_UI="no"
29865if test "x$HAVE_GTK2OR3" = "xyes" -a "x$BUILD_CLIENT" = "xyes" ; then
29866   BUILD_UI="yes"
29867fi
29868
29869BUILD_GOBJECT="no"
29870if test "x$BUILD_CLIENT" = "xyes" -a "x$HAVE_GOBJECT" = "xyes" ; then
29871   BUILD_GOBJECT="yes"
29872fi
29873
29874echo "\
29875    Building libavahi-core              yes
29876    Building avahi-daemon:              ${BUILD_DAEMON}
29877    Building avahi-dnsconfd:            ${BUILD_DAEMON}
29878    Building libavahi-client:           ${BUILD_CLIENT}
29879    Building avahi-utils:               ${BUILD_CLIENT}
29880    Building avahi-python:              ${BUILD_PYTHON}
29881    Building libavahi-glib:             ${HAVE_GLIB}
29882    Building libavahi-gobject:          ${BUILD_GOBJECT}
29883    Building avahi-discover-standalone: ${HAVE_GTK2OR3}
29884    Building libavahi-qt3:              ${HAVE_QT3}
29885    Building libavahi-qt4:              ${HAVE_QT4}
29886    Building libavahi-qt5:              ${HAVE_QT5}
29887    Building avahi-sharp:               ${HAVE_MONO}
29888    Building avahi-compat-libdns_sd:    ${ENABLE_COMPAT_LIBDNS_SD}
29889    Building avahi-compat-howl:         ${ENABLE_COMPAT_HOWL}
29890    Building tests:                     ${ENABLE_TESTS}
29891    Building avahi-core documentation:  ${ENABLE_CORE_DOCS}
29892    Building avahi-autoipd:             ${ENABLE_AUTOIPD}
29893    Building libavahi-ui:               ${BUILD_UI}
29894    Building libavahi-libevent:		${HAVE_LIBEVENT}
29895"
29896