1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for avahi 0.6.25.
4#
5# Report bugs to <avahi (at) lists (dot) freedesktop (dot) org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (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# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$lt_ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587ECHO=${lt_ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $ECHO works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<_LT_EOF
606$*
607_LT_EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$lt_ECHO"; then
616  if test "X${echo_test_string+set}" != Xset; then
617    # find a string as large as possible, as long as the shell can cope with it
618    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622      then
623        break
624      fi
625    done
626  fi
627
628  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630     test "X$echo_testing_string" = "X$echo_test_string"; then
631    :
632  else
633    # The Solaris, AIX, and Digital Unix default echo programs unquote
634    # backslashes.  This makes it impossible to quote backslashes using
635    #   echo "$something" | sed 's/\\/\\\\/g'
636    #
637    # So, first we look for a working echo in the user's PATH.
638
639    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640    for dir in $PATH /usr/ucb; do
641      IFS="$lt_save_ifs"
642      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645         test "X$echo_testing_string" = "X$echo_test_string"; then
646        ECHO="$dir/echo"
647        break
648      fi
649    done
650    IFS="$lt_save_ifs"
651
652    if test "X$ECHO" = Xecho; then
653      # We didn't find a better echo, so look for alternatives.
654      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656         test "X$echo_testing_string" = "X$echo_test_string"; then
657        # This shell has a builtin print -r that does the trick.
658        ECHO='print -r'
659      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660	   test "X$CONFIG_SHELL" != X/bin/ksh; then
661        # If we have ksh, try running configure again with it.
662        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663        export ORIGINAL_CONFIG_SHELL
664        CONFIG_SHELL=/bin/ksh
665        export CONFIG_SHELL
666        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667      else
668        # Try using printf.
669        ECHO='printf %s\n'
670        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672	   test "X$echo_testing_string" = "X$echo_test_string"; then
673	  # Cool, printf works
674	  :
675        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676	     test "X$echo_testing_string" = 'X\t' &&
677	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678	     test "X$echo_testing_string" = "X$echo_test_string"; then
679	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680	  export CONFIG_SHELL
681	  SHELL="$CONFIG_SHELL"
682	  export SHELL
683	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
684        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685	     test "X$echo_testing_string" = 'X\t' &&
686	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687	     test "X$echo_testing_string" = "X$echo_test_string"; then
688	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
689        else
690	  # maybe with a smaller string...
691	  prev=:
692
693	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695	    then
696	      break
697	    fi
698	    prev="$cmd"
699	  done
700
701	  if test "$prev" != 'sed 50q "$0"'; then
702	    echo_test_string=`eval $prev`
703	    export echo_test_string
704	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705	  else
706	    # Oops.  We lost completely, so just stick with echo.
707	    ECHO=echo
708	  fi
709        fi
710      fi
711    fi
712  fi
713fi
714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720fi
721
722
723
724
725exec 7<&0 </dev/null 6>&1
726
727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
736ac_clean_files=
737ac_config_libobj_dir=.
738LIBOBJS=
739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
745# Identity of this package.
746PACKAGE_NAME='avahi'
747PACKAGE_TARNAME='avahi'
748PACKAGE_VERSION='0.6.25'
749PACKAGE_STRING='avahi 0.6.25'
750PACKAGE_BUGREPORT='avahi (at) lists (dot) freedesktop (dot) org'
751
752ac_unique_file="avahi-core/server.c"
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
756#ifdef HAVE_SYS_TYPES_H
757# include <sys/types.h>
758#endif
759#ifdef HAVE_SYS_STAT_H
760# include <sys/stat.h>
761#endif
762#ifdef STDC_HEADERS
763# include <stdlib.h>
764# include <stddef.h>
765#else
766# ifdef HAVE_STDLIB_H
767#  include <stdlib.h>
768# endif
769#endif
770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772#  include <memory.h>
773# endif
774# include <string.h>
775#endif
776#ifdef HAVE_STRINGS_H
777# include <strings.h>
778#endif
779#ifdef HAVE_INTTYPES_H
780# include <inttypes.h>
781#endif
782#ifdef HAVE_STDINT_H
783# include <stdint.h>
784#endif
785#ifdef HAVE_UNISTD_H
786# include <unistd.h>
787#endif"
788
789ac_subst_vars='am__EXEEXT_FALSE
790am__EXEEXT_TRUE
791LTLIBOBJS
792ENABLE_COMPAT_HOWL_FALSE
793ENABLE_COMPAT_HOWL_TRUE
794ENABLE_COMPAT_LIBDNS_SD_FALSE
795ENABLE_COMPAT_LIBDNS_SD_TRUE
796ENABLE_TESTS_FALSE
797ENABLE_TESTS_TRUE
798BUILD_MANPAGES_FALSE
799BUILD_MANPAGES_TRUE
800USE_XMLTOMAN_FALSE
801USE_XMLTOMAN_TRUE
802have_xmltoman
803ENABLE_CORE_DOCS_FALSE
804ENABLE_CORE_DOCS_TRUE
805DOXYGEN_PAPER_SIZE
806DX_COND_latex_FALSE
807DX_COND_latex_TRUE
808DX_COND_pdf_FALSE
809DX_COND_pdf_TRUE
810DX_PDFLATEX
811DX_FLAG_pdf
812DX_COND_ps_FALSE
813DX_COND_ps_TRUE
814DX_EGREP
815DX_DVIPS
816DX_MAKEINDEX
817DX_LATEX
818DX_FLAG_ps
819DX_COND_html_FALSE
820DX_COND_html_TRUE
821DX_FLAG_html
822DX_COND_chi_FALSE
823DX_COND_chi_TRUE
824DX_FLAG_chi
825DX_COND_chm_FALSE
826DX_COND_chm_TRUE
827DX_HHC
828DX_FLAG_chm
829DX_COND_xml_FALSE
830DX_COND_xml_TRUE
831DX_FLAG_xml
832DX_COND_rtf_FALSE
833DX_COND_rtf_TRUE
834DX_FLAG_rtf
835DX_COND_man_FALSE
836DX_COND_man_TRUE
837DX_FLAG_man
838DX_COND_dot_FALSE
839DX_COND_dot_TRUE
840DX_DOT
841DX_FLAG_dot
842DX_COND_doc_FALSE
843DX_COND_doc_TRUE
844DX_PERL
845DX_DOXYGEN
846DX_FLAG_doc
847DX_ENV
848DX_DOCDIR
849DX_CONFIG
850DX_PROJECT
851interfacesdir
852avahi_socket
853avahi_runtime_dir
854AVAHI_AUTOIPD_GROUP
855AVAHI_AUTOIPD_USER
856AVAHI_PRIV_ACCESS_GROUP
857AVAHI_GROUP
858AVAHI_USER
859ENABLE_AUTOIPD_FALSE
860ENABLE_AUTOIPD_TRUE
861HAVE_MONODOC_FALSE
862HAVE_MONODOC_TRUE
863MONODOC_DIR
864MDASSEMBLER
865MONODOCER
866MONODOC_LIBS
867MONODOC_CFLAGS
868HAVE_MONO_FALSE
869HAVE_MONO_TRUE
870GACUTIL
871MCS
872HAVE_PYTHON_DBUS_FALSE
873HAVE_PYTHON_DBUS_TRUE
874HAVE_PYGTK_FALSE
875HAVE_PYGTK_TRUE
876HAVE_PYTHON_FALSE
877HAVE_PYTHON_TRUE
878pkgpyexecdir
879pyexecdir
880pkgpythondir
881pythondir
882PYTHON_PLATFORM
883PYTHON_EXEC_PREFIX
884PYTHON_PREFIX
885PYTHON_VERSION
886PYTHON
887HAVE_LIBDAEMON_FALSE
888HAVE_LIBDAEMON_TRUE
889LIBDAEMON_LIBS
890LIBDAEMON_CFLAGS
891HAVE_DBM_FALSE
892HAVE_DBM_TRUE
893HAVE_GDBM_FALSE
894HAVE_GDBM_TRUE
895HAVE_XML_FALSE
896HAVE_XML_TRUE
897XML_CFLAGS
898XML_LIBS
899HAVE_DBUS_FALSE
900HAVE_DBUS_TRUE
901DBUS_SYSTEM_BUS_DEFAULT_ADDRESS
902DBUS_SYS_DIR
903DBUS_LIBS
904DBUS_CFLAGS
905HAVE_GTK_FALSE
906HAVE_GTK_TRUE
907GLADE20_LIBS
908GLADE20_CFLAGS
909GTK20_LIBS
910GTK20_CFLAGS
911HAVE_QT4_FALSE
912HAVE_QT4_TRUE
913MOC_QT4
914QT4_LIBS
915QT4_CFLAGS
916HAVE_QT3_FALSE
917HAVE_QT3_TRUE
918MOC_QT3
919QT3_LIBS
920QT3_CFLAGS
921HAVE_GOBJECT_FALSE
922HAVE_GOBJECT_TRUE
923GOBJECT_LIBS
924GOBJECT_CFLAGS
925HAVE_GLIB_FALSE
926HAVE_GLIB_TRUE
927GLIB20_LIBS
928GLIB20_CFLAGS
929PKG_CONFIG
930have_pkg_config
931avahilocaledir
932HAVE_KQUEUE_FALSE
933HAVE_KQUEUE_TRUE
934HAVE_INOTIFY_FALSE
935HAVE_INOTIFY_TRUE
936HAVE_DLOPEN_FALSE
937HAVE_DLOPEN_TRUE
938ENABLE_CHROOT_FALSE
939ENABLE_CHROOT_TRUE
940VISIBILITY_HIDDEN_CFLAGS
941LIBOBJS
942TARGET_SLACKWARE_FALSE
943TARGET_SLACKWARE_TRUE
944TARGET_FREEBSD_FALSE
945TARGET_FREEBSD_TRUE
946TARGET_NETBSD_FALSE
947TARGET_NETBSD_TRUE
948TARGET_DARWIN_FALSE
949TARGET_DARWIN_TRUE
950TARGET_MANDRIVA_FALSE
951TARGET_MANDRIVA_TRUE
952TARGET_FEDORA_FALSE
953TARGET_FEDORA_TRUE
954TARGET_ARCHLINUX_FALSE
955TARGET_ARCHLINUX_TRUE
956TARGET_DEBIAN_FALSE
957TARGET_DEBIAN_TRUE
958TARGET_GENTOO_FALSE
959TARGET_GENTOO_TRUE
960TARGET_SUSE_FALSE
961TARGET_SUSE_TRUE
962TARGET_LFS_FALSE
963TARGET_LFS_TRUE
964HAVE_SYS_SYSCTL_H_FALSE
965HAVE_SYS_SYSCTL_H_TRUE
966HAVE_SYS_FILIO_H_FALSE
967HAVE_SYS_FILIO_H_TRUE
968HAVE_PF_ROUTE_FALSE
969HAVE_PF_ROUTE_TRUE
970HAVE_NETLINK_FALSE
971HAVE_NETLINK_TRUE
972PTHREAD_CFLAGS
973PTHREAD_LIBS
974PTHREAD_CC
975acx_pthread_config
976CXXCPP
977OTOOL64
978OTOOL
979LIPO
980NMEDIT
981DSYMUTIL
982lt_ECHO
983RANLIB
984AR
985OBJDUMP
986NM
987ac_ct_DUMPBIN
988DUMPBIN
989LD
990FGREP
991SED
992host_os
993host_vendor
994host_cpu
995host
996build_os
997build_vendor
998build_cpu
999build
1000LIBTOOL
1001LN_S
1002EGREP
1003GREP
1004CPP
1005am__fastdepCXX_FALSE
1006am__fastdepCXX_TRUE
1007CXXDEPMODE
1008ac_ct_CXX
1009CXXFLAGS
1010CXX
1011am__fastdepCC_FALSE
1012am__fastdepCC_TRUE
1013CCDEPMODE
1014AMDEPBACKSLASH
1015AMDEP_FALSE
1016AMDEP_TRUE
1017am__quote
1018am__include
1019DEPDIR
1020OBJEXT
1021EXEEXT
1022ac_ct_CC
1023CPPFLAGS
1024LDFLAGS
1025CFLAGS
1026CC
1027HOWL_COMPAT_VERSION
1028LIBAVAHI_COMPAT_HOWL_VERSION_INFO
1029LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO
1030LIBAVAHI_UI_VERSION_INFO
1031LIBAVAHI_QT4_VERSION_INFO
1032LIBAVAHI_QT3_VERSION_INFO
1033LIBAVAHI_GOBJECT_VERSION_INFO
1034LIBAVAHI_GLIB_VERSION_INFO
1035LIBAVAHI_CLIENT_VERSION_INFO
1036LIBAVAHI_CORE_VERSION_INFO
1037LIBAVAHI_COMMON_VERSION_INFO
1038PACKAGE_URL
1039am__untar
1040am__tar
1041AMTAR
1042am__leading_dot
1043SET_MAKE
1044AWK
1045mkdir_p
1046MKDIR_P
1047INSTALL_STRIP_PROGRAM
1048STRIP
1049install_sh
1050MAKEINFO
1051AUTOHEADER
1052AUTOMAKE
1053AUTOCONF
1054ACLOCAL
1055VERSION
1056PACKAGE
1057CYGPATH_W
1058am__isrc
1059INSTALL_DATA
1060INSTALL_SCRIPT
1061INSTALL_PROGRAM
1062target_alias
1063host_alias
1064build_alias
1065LIBS
1066ECHO_T
1067ECHO_N
1068ECHO_C
1069DEFS
1070mandir
1071localedir
1072libdir
1073psdir
1074pdfdir
1075dvidir
1076htmldir
1077infodir
1078docdir
1079oldincludedir
1080includedir
1081localstatedir
1082sharedstatedir
1083sysconfdir
1084datadir
1085datarootdir
1086libexecdir
1087sbindir
1088bindir
1089program_transform_name
1090prefix
1091exec_prefix
1092PACKAGE_BUGREPORT
1093PACKAGE_STRING
1094PACKAGE_VERSION
1095PACKAGE_TARNAME
1096PACKAGE_NAME
1097PATH_SEPARATOR
1098SHELL'
1099ac_subst_files=''
1100ac_user_opts='
1101enable_option_checking
1102enable_dependency_tracking
1103enable_stack_protector
1104enable_shared
1105enable_static
1106with_pic
1107enable_fast_install
1108with_gnu_ld
1109enable_libtool_lock
1110with_distro
1111enable_glib
1112enable_gobject
1113enable_qt3
1114enable_qt4
1115enable_gtk
1116enable_dbus
1117with_dbus_sys
1118with_dbus_system_socket
1119with_xml
1120enable_dbm
1121enable_gdbm
1122enable_libdaemon
1123enable_python
1124enable_pygtk
1125enable_python_dbus
1126enable_mono
1127enable_monodoc
1128enable_autoipd
1129with_avahi_user
1130with_avahi_group
1131with_avahi_priv_access_group
1132with_autoipd_user
1133with_autoipd_group
1134enable_doxygen_doc
1135enable_doxygen_dot
1136enable_doxygen_man
1137enable_doxygen_rtf
1138enable_doxygen_xml
1139enable_doxygen_chm
1140enable_doxygen_chi
1141enable_doxygen_html
1142enable_doxygen_ps
1143enable_doxygen_pdf
1144enable_core_docs
1145enable_manpages
1146enable_xmltoman
1147enable_tests
1148enable_compat_libdns_sd
1149enable_compat_howl
1150'
1151      ac_precious_vars='build_alias
1152host_alias
1153target_alias
1154CC
1155CFLAGS
1156LDFLAGS
1157LIBS
1158CPPFLAGS
1159CXX
1160CXXFLAGS
1161CCC
1162CPP
1163CXXCPP
1164PKG_CONFIG
1165GLIB20_CFLAGS
1166GLIB20_LIBS
1167GOBJECT_CFLAGS
1168GOBJECT_LIBS
1169QT3_CFLAGS
1170QT3_LIBS
1171QT4_CFLAGS
1172QT4_LIBS
1173GTK20_CFLAGS
1174GTK20_LIBS
1175GLADE20_CFLAGS
1176GLADE20_LIBS
1177DBUS_CFLAGS
1178DBUS_LIBS
1179LIBDAEMON_CFLAGS
1180LIBDAEMON_LIBS
1181MONODOC_CFLAGS
1182MONODOC_LIBS
1183DOXYGEN_PAPER_SIZE'
1184
1185
1186# Initialize some variables set by options.
1187ac_init_help=
1188ac_init_version=false
1189ac_unrecognized_opts=
1190ac_unrecognized_sep=
1191# The variables have the same names as the options, with
1192# dashes changed to underlines.
1193cache_file=/dev/null
1194exec_prefix=NONE
1195no_create=
1196no_recursion=
1197prefix=NONE
1198program_prefix=NONE
1199program_suffix=NONE
1200program_transform_name=s,x,x,
1201silent=
1202site=
1203srcdir=
1204verbose=
1205x_includes=NONE
1206x_libraries=NONE
1207
1208# Installation directory options.
1209# These are left unexpanded so users can "make install exec_prefix=/foo"
1210# and all the variables that are supposed to be based on exec_prefix
1211# by default will actually change.
1212# Use braces instead of parens because sh, perl, etc. also accept them.
1213# (The list follows the same order as the GNU Coding Standards.)
1214bindir='${exec_prefix}/bin'
1215sbindir='${exec_prefix}/sbin'
1216libexecdir='${exec_prefix}/libexec'
1217datarootdir='${prefix}/share'
1218datadir='${datarootdir}'
1219sysconfdir='${prefix}/etc'
1220sharedstatedir='${prefix}/com'
1221localstatedir='${prefix}/var'
1222includedir='${prefix}/include'
1223oldincludedir='/usr/include'
1224docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1225infodir='${datarootdir}/info'
1226htmldir='${docdir}'
1227dvidir='${docdir}'
1228pdfdir='${docdir}'
1229psdir='${docdir}'
1230libdir='${exec_prefix}/lib'
1231localedir='${datarootdir}/locale'
1232mandir='${datarootdir}/man'
1233
1234ac_prev=
1235ac_dashdash=
1236for ac_option
1237do
1238  # If the previous option needs an argument, assign it.
1239  if test -n "$ac_prev"; then
1240    eval $ac_prev=\$ac_option
1241    ac_prev=
1242    continue
1243  fi
1244
1245  case $ac_option in
1246  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1247  *)	ac_optarg=yes ;;
1248  esac
1249
1250  # Accept the important Cygnus configure options, so we can diagnose typos.
1251
1252  case $ac_dashdash$ac_option in
1253  --)
1254    ac_dashdash=yes ;;
1255
1256  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1257    ac_prev=bindir ;;
1258  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1259    bindir=$ac_optarg ;;
1260
1261  -build | --build | --buil | --bui | --bu)
1262    ac_prev=build_alias ;;
1263  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1264    build_alias=$ac_optarg ;;
1265
1266  -cache-file | --cache-file | --cache-fil | --cache-fi \
1267  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1268    ac_prev=cache_file ;;
1269  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1270  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1271    cache_file=$ac_optarg ;;
1272
1273  --config-cache | -C)
1274    cache_file=config.cache ;;
1275
1276  -datadir | --datadir | --datadi | --datad)
1277    ac_prev=datadir ;;
1278  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1279    datadir=$ac_optarg ;;
1280
1281  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1282  | --dataroo | --dataro | --datar)
1283    ac_prev=datarootdir ;;
1284  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1285  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1286    datarootdir=$ac_optarg ;;
1287
1288  -disable-* | --disable-*)
1289    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1290    # Reject names that are not valid shell variable names.
1291    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1293   { (exit 1); exit 1; }; }
1294    ac_useropt_orig=$ac_useropt
1295    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296    case $ac_user_opts in
1297      *"
1298"enable_$ac_useropt"
1299"*) ;;
1300      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1301	 ac_unrecognized_sep=', ';;
1302    esac
1303    eval enable_$ac_useropt=no ;;
1304
1305  -docdir | --docdir | --docdi | --doc | --do)
1306    ac_prev=docdir ;;
1307  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1308    docdir=$ac_optarg ;;
1309
1310  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1311    ac_prev=dvidir ;;
1312  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1313    dvidir=$ac_optarg ;;
1314
1315  -enable-* | --enable-*)
1316    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1317    # Reject names that are not valid shell variable names.
1318    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1320   { (exit 1); exit 1; }; }
1321    ac_useropt_orig=$ac_useropt
1322    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1323    case $ac_user_opts in
1324      *"
1325"enable_$ac_useropt"
1326"*) ;;
1327      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1328	 ac_unrecognized_sep=', ';;
1329    esac
1330    eval enable_$ac_useropt=\$ac_optarg ;;
1331
1332  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1333  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1334  | --exec | --exe | --ex)
1335    ac_prev=exec_prefix ;;
1336  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1337  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1338  | --exec=* | --exe=* | --ex=*)
1339    exec_prefix=$ac_optarg ;;
1340
1341  -gas | --gas | --ga | --g)
1342    # Obsolete; use --with-gas.
1343    with_gas=yes ;;
1344
1345  -help | --help | --hel | --he | -h)
1346    ac_init_help=long ;;
1347  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1348    ac_init_help=recursive ;;
1349  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1350    ac_init_help=short ;;
1351
1352  -host | --host | --hos | --ho)
1353    ac_prev=host_alias ;;
1354  -host=* | --host=* | --hos=* | --ho=*)
1355    host_alias=$ac_optarg ;;
1356
1357  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1358    ac_prev=htmldir ;;
1359  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1360  | --ht=*)
1361    htmldir=$ac_optarg ;;
1362
1363  -includedir | --includedir | --includedi | --included | --include \
1364  | --includ | --inclu | --incl | --inc)
1365    ac_prev=includedir ;;
1366  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1367  | --includ=* | --inclu=* | --incl=* | --inc=*)
1368    includedir=$ac_optarg ;;
1369
1370  -infodir | --infodir | --infodi | --infod | --info | --inf)
1371    ac_prev=infodir ;;
1372  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1373    infodir=$ac_optarg ;;
1374
1375  -libdir | --libdir | --libdi | --libd)
1376    ac_prev=libdir ;;
1377  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1378    libdir=$ac_optarg ;;
1379
1380  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1381  | --libexe | --libex | --libe)
1382    ac_prev=libexecdir ;;
1383  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1384  | --libexe=* | --libex=* | --libe=*)
1385    libexecdir=$ac_optarg ;;
1386
1387  -localedir | --localedir | --localedi | --localed | --locale)
1388    ac_prev=localedir ;;
1389  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1390    localedir=$ac_optarg ;;
1391
1392  -localstatedir | --localstatedir | --localstatedi | --localstated \
1393  | --localstate | --localstat | --localsta | --localst | --locals)
1394    ac_prev=localstatedir ;;
1395  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1396  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1397    localstatedir=$ac_optarg ;;
1398
1399  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1400    ac_prev=mandir ;;
1401  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1402    mandir=$ac_optarg ;;
1403
1404  -nfp | --nfp | --nf)
1405    # Obsolete; use --without-fp.
1406    with_fp=no ;;
1407
1408  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1409  | --no-cr | --no-c | -n)
1410    no_create=yes ;;
1411
1412  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1413  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1414    no_recursion=yes ;;
1415
1416  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1417  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1418  | --oldin | --oldi | --old | --ol | --o)
1419    ac_prev=oldincludedir ;;
1420  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1421  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1422  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1423    oldincludedir=$ac_optarg ;;
1424
1425  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1426    ac_prev=prefix ;;
1427  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1428    prefix=$ac_optarg ;;
1429
1430  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1431  | --program-pre | --program-pr | --program-p)
1432    ac_prev=program_prefix ;;
1433  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1434  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1435    program_prefix=$ac_optarg ;;
1436
1437  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1438  | --program-suf | --program-su | --program-s)
1439    ac_prev=program_suffix ;;
1440  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1441  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1442    program_suffix=$ac_optarg ;;
1443
1444  -program-transform-name | --program-transform-name \
1445  | --program-transform-nam | --program-transform-na \
1446  | --program-transform-n | --program-transform- \
1447  | --program-transform | --program-transfor \
1448  | --program-transfo | --program-transf \
1449  | --program-trans | --program-tran \
1450  | --progr-tra | --program-tr | --program-t)
1451    ac_prev=program_transform_name ;;
1452  -program-transform-name=* | --program-transform-name=* \
1453  | --program-transform-nam=* | --program-transform-na=* \
1454  | --program-transform-n=* | --program-transform-=* \
1455  | --program-transform=* | --program-transfor=* \
1456  | --program-transfo=* | --program-transf=* \
1457  | --program-trans=* | --program-tran=* \
1458  | --progr-tra=* | --program-tr=* | --program-t=*)
1459    program_transform_name=$ac_optarg ;;
1460
1461  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1462    ac_prev=pdfdir ;;
1463  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1464    pdfdir=$ac_optarg ;;
1465
1466  -psdir | --psdir | --psdi | --psd | --ps)
1467    ac_prev=psdir ;;
1468  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1469    psdir=$ac_optarg ;;
1470
1471  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1472  | -silent | --silent | --silen | --sile | --sil)
1473    silent=yes ;;
1474
1475  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1476    ac_prev=sbindir ;;
1477  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1478  | --sbi=* | --sb=*)
1479    sbindir=$ac_optarg ;;
1480
1481  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1482  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1483  | --sharedst | --shareds | --shared | --share | --shar \
1484  | --sha | --sh)
1485    ac_prev=sharedstatedir ;;
1486  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1487  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1488  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1489  | --sha=* | --sh=*)
1490    sharedstatedir=$ac_optarg ;;
1491
1492  -site | --site | --sit)
1493    ac_prev=site ;;
1494  -site=* | --site=* | --sit=*)
1495    site=$ac_optarg ;;
1496
1497  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1498    ac_prev=srcdir ;;
1499  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1500    srcdir=$ac_optarg ;;
1501
1502  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1503  | --syscon | --sysco | --sysc | --sys | --sy)
1504    ac_prev=sysconfdir ;;
1505  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1506  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1507    sysconfdir=$ac_optarg ;;
1508
1509  -target | --target | --targe | --targ | --tar | --ta | --t)
1510    ac_prev=target_alias ;;
1511  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1512    target_alias=$ac_optarg ;;
1513
1514  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1515    verbose=yes ;;
1516
1517  -version | --version | --versio | --versi | --vers | -V)
1518    ac_init_version=: ;;
1519
1520  -with-* | --with-*)
1521    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1522    # Reject names that are not valid shell variable names.
1523    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1524      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1525   { (exit 1); exit 1; }; }
1526    ac_useropt_orig=$ac_useropt
1527    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1528    case $ac_user_opts in
1529      *"
1530"with_$ac_useropt"
1531"*) ;;
1532      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1533	 ac_unrecognized_sep=', ';;
1534    esac
1535    eval with_$ac_useropt=\$ac_optarg ;;
1536
1537  -without-* | --without-*)
1538    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1539    # Reject names that are not valid shell variable names.
1540    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1541      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1542   { (exit 1); exit 1; }; }
1543    ac_useropt_orig=$ac_useropt
1544    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1545    case $ac_user_opts in
1546      *"
1547"with_$ac_useropt"
1548"*) ;;
1549      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1550	 ac_unrecognized_sep=', ';;
1551    esac
1552    eval with_$ac_useropt=no ;;
1553
1554  --x)
1555    # Obsolete; use --with-x.
1556    with_x=yes ;;
1557
1558  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1559  | --x-incl | --x-inc | --x-in | --x-i)
1560    ac_prev=x_includes ;;
1561  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1562  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1563    x_includes=$ac_optarg ;;
1564
1565  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1566  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1567    ac_prev=x_libraries ;;
1568  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1569  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1570    x_libraries=$ac_optarg ;;
1571
1572  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1573Try \`$0 --help' for more information." >&2
1574   { (exit 1); exit 1; }; }
1575    ;;
1576
1577  *=*)
1578    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1579    # Reject names that are not valid shell variable names.
1580    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1581      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1582   { (exit 1); exit 1; }; }
1583    eval $ac_envvar=\$ac_optarg
1584    export $ac_envvar ;;
1585
1586  *)
1587    # FIXME: should be removed in autoconf 3.0.
1588    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1589    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1590      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1591    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1592    ;;
1593
1594  esac
1595done
1596
1597if test -n "$ac_prev"; then
1598  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1599  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1600   { (exit 1); exit 1; }; }
1601fi
1602
1603if test -n "$ac_unrecognized_opts"; then
1604  case $enable_option_checking in
1605    no) ;;
1606    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1607   { (exit 1); exit 1; }; } ;;
1608    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1609  esac
1610fi
1611
1612# Check all directory arguments for consistency.
1613for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1614		datadir sysconfdir sharedstatedir localstatedir includedir \
1615		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1616		libdir localedir mandir
1617do
1618  eval ac_val=\$$ac_var
1619  # Remove trailing slashes.
1620  case $ac_val in
1621    */ )
1622      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1623      eval $ac_var=\$ac_val;;
1624  esac
1625  # Be sure to have absolute directory names.
1626  case $ac_val in
1627    [\\/$]* | ?:[\\/]* )  continue;;
1628    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1629  esac
1630  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1631   { (exit 1); exit 1; }; }
1632done
1633
1634# There might be people who depend on the old broken behavior: `$host'
1635# used to hold the argument of --host etc.
1636# FIXME: To remove some day.
1637build=$build_alias
1638host=$host_alias
1639target=$target_alias
1640
1641# FIXME: To remove some day.
1642if test "x$host_alias" != x; then
1643  if test "x$build_alias" = x; then
1644    cross_compiling=maybe
1645    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1646    If a cross compiler is detected then cross compile mode will be used." >&2
1647  elif test "x$build_alias" != "x$host_alias"; then
1648    cross_compiling=yes
1649  fi
1650fi
1651
1652ac_tool_prefix=
1653test -n "$host_alias" && ac_tool_prefix=$host_alias-
1654
1655test "$silent" = yes && exec 6>/dev/null
1656
1657
1658ac_pwd=`pwd` && test -n "$ac_pwd" &&
1659ac_ls_di=`ls -di .` &&
1660ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1661  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1662   { (exit 1); exit 1; }; }
1663test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1664  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1665   { (exit 1); exit 1; }; }
1666
1667
1668# Find the source files, if location was not specified.
1669if test -z "$srcdir"; then
1670  ac_srcdir_defaulted=yes
1671  # Try the directory containing this script, then the parent directory.
1672  ac_confdir=`$as_dirname -- "$as_myself" ||
1673$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1674	 X"$as_myself" : 'X\(//\)[^/]' \| \
1675	 X"$as_myself" : 'X\(//\)$' \| \
1676	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1677$as_echo X"$as_myself" |
1678    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1679	    s//\1/
1680	    q
1681	  }
1682	  /^X\(\/\/\)[^/].*/{
1683	    s//\1/
1684	    q
1685	  }
1686	  /^X\(\/\/\)$/{
1687	    s//\1/
1688	    q
1689	  }
1690	  /^X\(\/\).*/{
1691	    s//\1/
1692	    q
1693	  }
1694	  s/.*/./; q'`
1695  srcdir=$ac_confdir
1696  if test ! -r "$srcdir/$ac_unique_file"; then
1697    srcdir=..
1698  fi
1699else
1700  ac_srcdir_defaulted=no
1701fi
1702if test ! -r "$srcdir/$ac_unique_file"; then
1703  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1704  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1705   { (exit 1); exit 1; }; }
1706fi
1707ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1708ac_abs_confdir=`(
1709	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1710   { (exit 1); exit 1; }; }
1711	pwd)`
1712# When building in place, set srcdir=.
1713if test "$ac_abs_confdir" = "$ac_pwd"; then
1714  srcdir=.
1715fi
1716# Remove unnecessary trailing slashes from srcdir.
1717# Double slashes in file names in object file debugging info
1718# mess up M-x gdb in Emacs.
1719case $srcdir in
1720*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1721esac
1722for ac_var in $ac_precious_vars; do
1723  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1724  eval ac_env_${ac_var}_value=\$${ac_var}
1725  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1726  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1727done
1728
1729#
1730# Report the --help message.
1731#
1732if test "$ac_init_help" = "long"; then
1733  # Omit some internal or obsolete options to make the list less imposing.
1734  # This message is too long to be a string in the A/UX 3.1 sh.
1735  cat <<_ACEOF
1736\`configure' configures avahi 0.6.25 to adapt to many kinds of systems.
1737
1738Usage: $0 [OPTION]... [VAR=VALUE]...
1739
1740To assign environment variables (e.g., CC, CFLAGS...), specify them as
1741VAR=VALUE.  See below for descriptions of some of the useful variables.
1742
1743Defaults for the options are specified in brackets.
1744
1745Configuration:
1746  -h, --help              display this help and exit
1747      --help=short        display options specific to this package
1748      --help=recursive    display the short help of all the included packages
1749  -V, --version           display version information and exit
1750  -q, --quiet, --silent   do not print \`checking...' messages
1751      --cache-file=FILE   cache test results in FILE [disabled]
1752  -C, --config-cache      alias for \`--cache-file=config.cache'
1753  -n, --no-create         do not create output files
1754      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1755
1756Installation directories:
1757  --prefix=PREFIX         install architecture-independent files in PREFIX
1758                          [$ac_default_prefix]
1759  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1760                          [PREFIX]
1761
1762By default, \`make install' will install all the files in
1763\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1764an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1765for instance \`--prefix=\$HOME'.
1766
1767For better control, use the options below.
1768
1769Fine tuning of the installation directories:
1770  --bindir=DIR            user executables [EPREFIX/bin]
1771  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1772  --libexecdir=DIR        program executables [EPREFIX/libexec]
1773  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1774  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1775  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1776  --libdir=DIR            object code libraries [EPREFIX/lib]
1777  --includedir=DIR        C header files [PREFIX/include]
1778  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1779  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1780  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1781  --infodir=DIR           info documentation [DATAROOTDIR/info]
1782  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1783  --mandir=DIR            man documentation [DATAROOTDIR/man]
1784  --docdir=DIR            documentation root [DATAROOTDIR/doc/avahi]
1785  --htmldir=DIR           html documentation [DOCDIR]
1786  --dvidir=DIR            dvi documentation [DOCDIR]
1787  --pdfdir=DIR            pdf documentation [DOCDIR]
1788  --psdir=DIR             ps documentation [DOCDIR]
1789_ACEOF
1790
1791  cat <<\_ACEOF
1792
1793Program names:
1794  --program-prefix=PREFIX            prepend PREFIX to installed program names
1795  --program-suffix=SUFFIX            append SUFFIX to installed program names
1796  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1797
1798System types:
1799  --build=BUILD     configure for building on BUILD [guessed]
1800  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1801_ACEOF
1802fi
1803
1804if test -n "$ac_init_help"; then
1805  case $ac_init_help in
1806     short | recursive ) echo "Configuration of avahi 0.6.25:";;
1807   esac
1808  cat <<\_ACEOF
1809
1810Optional Features:
1811  --disable-option-checking  ignore unrecognized --enable/--with options
1812  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1813  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1814  --disable-dependency-tracking  speeds up one-time build
1815  --enable-dependency-tracking   do not reject slow dependency extractors
1816  --disable-stack-protector
1817                          Disable GCC's/libc's stack-smashing protection
1818  --enable-shared[=PKGS]  build shared libraries [default=yes]
1819  --enable-static[=PKGS]  build static libraries [default=yes]
1820  --enable-fast-install[=PKGS]
1821                          optimize for fast installation [default=yes]
1822  --disable-libtool-lock  avoid locking (might break parallel builds)
1823  --disable-glib          Disable use of GLib
1824  --disable-gobject       Disable use of GLib GObject
1825  --disable-qt3           Disable building of Qt3 mainloop integration
1826  --disable-qt4           Disable building of Qt4Core mainloop integration
1827  --disable-gtk           Disable use of GTK+
1828  --disable-dbus          Disable use of D-Bus
1829  --enable-dbm            Enable use of DBM
1830  --disable-gdbm          Disable use of GDBM
1831  --disable-libdaemon     Disable use of libdaemon
1832  --disable-python        Disable scripts that depends on python
1833  --disable-pygtk         Disable use of GTK in Python
1834  --disable-python-dbus   Disable use of D-Bus in Python
1835  --disable-mono          Disable mono bindings
1836  --disable-monodoc       Disable documentation for mono bindings
1837  --disable-autoipd       Disable building of avahi-autoipd
1838  --disable-doxygen-doc   don't generate any doxygen documentation
1839  --disable-doxygen-dot   don't generate graphics for doxygen documentation
1840  --enable-doxygen-man    generate doxygen manual pages
1841  --enable-doxygen-rtf    generate doxygen RTF documentation
1842  --disable-doxygen-xml   don't generate doxygen XML documentation
1843  --enable-doxygen-chm    generate doxygen compressed HTML help documentation
1844  --enable-doxygen-chi    generate doxygen seperate compressed HTML help index
1845                          file
1846  --disable-doxygen-html  don't generate doxygen plain HTML documentation
1847  --enable-doxygen-ps     generate doxygen PostScript documentation
1848  --enable-doxygen-pdf    generate doxygen PDF documentation
1849  --enable-core-docs      Enable building of documentation for avahi-core
1850  --disable-manpages      Disable building and installation of man pages
1851  --disable-xmltoman      Disable rebuilding of man pages with xmltoman
1852  --enable-tests          Enable building of tests and examples
1853  --enable-compat-libdns_sd
1854                          Enable compatibility layer for libdns_sd
1855  --enable-compat-howl    Enable compatibility layer for HOWL
1856
1857Optional Packages:
1858  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1859  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1860  --with-pic              try to use only PIC/non-PIC objects [default=use
1861                          both]
1862  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1863  --with-distro=DISTRO    Specify the distribution to target: One of lfs,
1864                          debian, gentoo, archlinux, fedora, mandriva, darwin,
1865                          netbsd, freebsd, slackware or none
1866  --with-dbus-sys=<dir>   Path to D-Bus system.d directory
1867  --with-dbus-system-address=<address>
1868                          Path to the D-Bus system socket, you probably want
1869                          to put unix:path= at the start. Only needed for very
1870                          old D-Bus releases
1871  --with-xml=expat/bsdxml/none
1872                          XML library to use
1873  --with-avahi-user=<user>
1874                          User for running avahi-daemon (avahi)
1875  --with-avahi-group=<group>
1876                          Group for running avahi-daemon (avahi)
1877  --with-avahi-priv-access-group=<group>
1878                          Priviliged access group for Avahi clients (netdev)
1879  --with-autoipd-user=<user>
1880                          User for running the avahi-autoipd daemon
1881                          (avahi-autoipd)
1882  --with-autoipd-group=<group>
1883                          Group for running the avahi-autoipd daemon
1884                          (avahi-autoipd)
1885
1886Some influential environment variables:
1887  CC          C compiler command
1888  CFLAGS      C compiler flags
1889  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1890              nonstandard directory <lib dir>
1891  LIBS        libraries to pass to the linker, e.g. -l<library>
1892  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1893              you have headers in a nonstandard directory <include dir>
1894  CXX         C++ compiler command
1895  CXXFLAGS    C++ compiler flags
1896  CPP         C preprocessor
1897  CXXCPP      C++ preprocessor
1898  PKG_CONFIG  path to pkg-config utility
1899  GLIB20_CFLAGS
1900              C compiler flags for GLIB20, overriding pkg-config
1901  GLIB20_LIBS linker flags for GLIB20, overriding pkg-config
1902  GOBJECT_CFLAGS
1903              C compiler flags for GOBJECT, overriding pkg-config
1904  GOBJECT_LIBS
1905              linker flags for GOBJECT, overriding pkg-config
1906  QT3_CFLAGS  C compiler flags for QT3, overriding pkg-config
1907  QT3_LIBS    linker flags for QT3, overriding pkg-config
1908  QT4_CFLAGS  C compiler flags for QT4, overriding pkg-config
1909  QT4_LIBS    linker flags for QT4, overriding pkg-config
1910  GTK20_CFLAGS
1911              C compiler flags for GTK20, overriding pkg-config
1912  GTK20_LIBS  linker flags for GTK20, overriding pkg-config
1913  GLADE20_CFLAGS
1914              C compiler flags for GLADE20, overriding pkg-config
1915  GLADE20_LIBS
1916              linker flags for GLADE20, overriding pkg-config
1917  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1918  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1919  LIBDAEMON_CFLAGS
1920              C compiler flags for LIBDAEMON, overriding pkg-config
1921  LIBDAEMON_LIBS
1922              linker flags for LIBDAEMON, overriding pkg-config
1923  MONODOC_CFLAGS
1924              C compiler flags for MONODOC, overriding pkg-config
1925  MONODOC_LIBS
1926              linker flags for MONODOC, overriding pkg-config
1927  DOXYGEN_PAPER_SIZE
1928              a4wide (default), a4, letter, legal or executive
1929
1930Use these variables to override the choices made by `configure' or to help
1931it to find libraries and programs with nonstandard names/locations.
1932
1933Report bugs to <avahi (at) lists (dot) freedesktop (dot) org>.
1934_ACEOF
1935ac_status=$?
1936fi
1937
1938if test "$ac_init_help" = "recursive"; then
1939  # If there are subdirs, report their specific --help.
1940  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1941    test -d "$ac_dir" ||
1942      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1943      continue
1944    ac_builddir=.
1945
1946case "$ac_dir" in
1947.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1948*)
1949  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1950  # A ".." for each directory in $ac_dir_suffix.
1951  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1952  case $ac_top_builddir_sub in
1953  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1954  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1955  esac ;;
1956esac
1957ac_abs_top_builddir=$ac_pwd
1958ac_abs_builddir=$ac_pwd$ac_dir_suffix
1959# for backward compatibility:
1960ac_top_builddir=$ac_top_build_prefix
1961
1962case $srcdir in
1963  .)  # We are building in place.
1964    ac_srcdir=.
1965    ac_top_srcdir=$ac_top_builddir_sub
1966    ac_abs_top_srcdir=$ac_pwd ;;
1967  [\\/]* | ?:[\\/]* )  # Absolute name.
1968    ac_srcdir=$srcdir$ac_dir_suffix;
1969    ac_top_srcdir=$srcdir
1970    ac_abs_top_srcdir=$srcdir ;;
1971  *) # Relative name.
1972    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1973    ac_top_srcdir=$ac_top_build_prefix$srcdir
1974    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1975esac
1976ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1977
1978    cd "$ac_dir" || { ac_status=$?; continue; }
1979    # Check for guested configure.
1980    if test -f "$ac_srcdir/configure.gnu"; then
1981      echo &&
1982      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1983    elif test -f "$ac_srcdir/configure"; then
1984      echo &&
1985      $SHELL "$ac_srcdir/configure" --help=recursive
1986    else
1987      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1988    fi || ac_status=$?
1989    cd "$ac_pwd" || { ac_status=$?; break; }
1990  done
1991fi
1992
1993test -n "$ac_init_help" && exit $ac_status
1994if $ac_init_version; then
1995  cat <<\_ACEOF
1996avahi configure 0.6.25
1997generated by GNU Autoconf 2.63
1998
1999Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
20002002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2001This configure script is free software; the Free Software Foundation
2002gives unlimited permission to copy, distribute and modify it.
2003_ACEOF
2004  exit
2005fi
2006cat >config.log <<_ACEOF
2007This file contains any messages produced by compilers while
2008running configure, to aid debugging if configure makes a mistake.
2009
2010It was created by avahi $as_me 0.6.25, which was
2011generated by GNU Autoconf 2.63.  Invocation command line was
2012
2013  $ $0 $@
2014
2015_ACEOF
2016exec 5>>config.log
2017{
2018cat <<_ASUNAME
2019## --------- ##
2020## Platform. ##
2021## --------- ##
2022
2023hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2024uname -m = `(uname -m) 2>/dev/null || echo unknown`
2025uname -r = `(uname -r) 2>/dev/null || echo unknown`
2026uname -s = `(uname -s) 2>/dev/null || echo unknown`
2027uname -v = `(uname -v) 2>/dev/null || echo unknown`
2028
2029/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2030/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2031
2032/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2033/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2034/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2035/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2036/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2037/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2038/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2039
2040_ASUNAME
2041
2042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043for as_dir in $PATH
2044do
2045  IFS=$as_save_IFS
2046  test -z "$as_dir" && as_dir=.
2047  $as_echo "PATH: $as_dir"
2048done
2049IFS=$as_save_IFS
2050
2051} >&5
2052
2053cat >&5 <<_ACEOF
2054
2055
2056## ----------- ##
2057## Core tests. ##
2058## ----------- ##
2059
2060_ACEOF
2061
2062
2063# Keep a trace of the command line.
2064# Strip out --no-create and --no-recursion so they do not pile up.
2065# Strip out --silent because we don't want to record it for future runs.
2066# Also quote any args containing shell meta-characters.
2067# Make two passes to allow for proper duplicate-argument suppression.
2068ac_configure_args=
2069ac_configure_args0=
2070ac_configure_args1=
2071ac_must_keep_next=false
2072for ac_pass in 1 2
2073do
2074  for ac_arg
2075  do
2076    case $ac_arg in
2077    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2078    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2079    | -silent | --silent | --silen | --sile | --sil)
2080      continue ;;
2081    *\'*)
2082      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2083    esac
2084    case $ac_pass in
2085    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2086    2)
2087      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2088      if test $ac_must_keep_next = true; then
2089	ac_must_keep_next=false # Got value, back to normal.
2090      else
2091	case $ac_arg in
2092	  *=* | --config-cache | -C | -disable-* | --disable-* \
2093	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2094	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2095	  | -with-* | --with-* | -without-* | --without-* | --x)
2096	    case "$ac_configure_args0 " in
2097	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2098	    esac
2099	    ;;
2100	  -* ) ac_must_keep_next=true ;;
2101	esac
2102      fi
2103      ac_configure_args="$ac_configure_args '$ac_arg'"
2104      ;;
2105    esac
2106  done
2107done
2108$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2109$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2110
2111# When interrupted or exit'd, cleanup temporary files, and complete
2112# config.log.  We remove comments because anyway the quotes in there
2113# would cause problems or look ugly.
2114# WARNING: Use '\'' to represent an apostrophe within the trap.
2115# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2116trap 'exit_status=$?
2117  # Save into config.log some information that might help in debugging.
2118  {
2119    echo
2120
2121    cat <<\_ASBOX
2122## ---------------- ##
2123## Cache variables. ##
2124## ---------------- ##
2125_ASBOX
2126    echo
2127    # The following way of writing the cache mishandles newlines in values,
2128(
2129  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2130    eval ac_val=\$$ac_var
2131    case $ac_val in #(
2132    *${as_nl}*)
2133      case $ac_var in #(
2134      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2135$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2136      esac
2137      case $ac_var in #(
2138      _ | IFS | as_nl) ;; #(
2139      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2140      *) $as_unset $ac_var ;;
2141      esac ;;
2142    esac
2143  done
2144  (set) 2>&1 |
2145    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2146    *${as_nl}ac_space=\ *)
2147      sed -n \
2148	"s/'\''/'\''\\\\'\'''\''/g;
2149	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2150      ;; #(
2151    *)
2152      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2153      ;;
2154    esac |
2155    sort
2156)
2157    echo
2158
2159    cat <<\_ASBOX
2160## ----------------- ##
2161## Output variables. ##
2162## ----------------- ##
2163_ASBOX
2164    echo
2165    for ac_var in $ac_subst_vars
2166    do
2167      eval ac_val=\$$ac_var
2168      case $ac_val in
2169      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2170      esac
2171      $as_echo "$ac_var='\''$ac_val'\''"
2172    done | sort
2173    echo
2174
2175    if test -n "$ac_subst_files"; then
2176      cat <<\_ASBOX
2177## ------------------- ##
2178## File substitutions. ##
2179## ------------------- ##
2180_ASBOX
2181      echo
2182      for ac_var in $ac_subst_files
2183      do
2184	eval ac_val=\$$ac_var
2185	case $ac_val in
2186	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2187	esac
2188	$as_echo "$ac_var='\''$ac_val'\''"
2189      done | sort
2190      echo
2191    fi
2192
2193    if test -s confdefs.h; then
2194      cat <<\_ASBOX
2195## ----------- ##
2196## confdefs.h. ##
2197## ----------- ##
2198_ASBOX
2199      echo
2200      cat confdefs.h
2201      echo
2202    fi
2203    test "$ac_signal" != 0 &&
2204      $as_echo "$as_me: caught signal $ac_signal"
2205    $as_echo "$as_me: exit $exit_status"
2206  } >&5
2207  rm -f core *.core core.conftest.* &&
2208    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2209    exit $exit_status
2210' 0
2211for ac_signal in 1 2 13 15; do
2212  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2213done
2214ac_signal=0
2215
2216# confdefs.h avoids OS command line length limits that DEFS can exceed.
2217rm -f -r conftest* confdefs.h
2218
2219# Predefined preprocessor variables.
2220
2221cat >>confdefs.h <<_ACEOF
2222#define PACKAGE_NAME "$PACKAGE_NAME"
2223_ACEOF
2224
2225
2226cat >>confdefs.h <<_ACEOF
2227#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2228_ACEOF
2229
2230
2231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_VERSION "$PACKAGE_VERSION"
2233_ACEOF
2234
2235
2236cat >>confdefs.h <<_ACEOF
2237#define PACKAGE_STRING "$PACKAGE_STRING"
2238_ACEOF
2239
2240
2241cat >>confdefs.h <<_ACEOF
2242#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2243_ACEOF
2244
2245
2246# Let the site file select an alternate cache file if it wants to.
2247# Prefer an explicitly selected file to automatically selected ones.
2248ac_site_file1=NONE
2249ac_site_file2=NONE
2250if test -n "$CONFIG_SITE"; then
2251  ac_site_file1=$CONFIG_SITE
2252elif test "x$prefix" != xNONE; then
2253  ac_site_file1=$prefix/share/config.site
2254  ac_site_file2=$prefix/etc/config.site
2255else
2256  ac_site_file1=$ac_default_prefix/share/config.site
2257  ac_site_file2=$ac_default_prefix/etc/config.site
2258fi
2259for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2260do
2261  test "x$ac_site_file" = xNONE && continue
2262  if test -r "$ac_site_file"; then
2263    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2264$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2265    sed 's/^/| /' "$ac_site_file" >&5
2266    . "$ac_site_file"
2267  fi
2268done
2269
2270if test -r "$cache_file"; then
2271  # Some versions of bash will fail to source /dev/null (special
2272  # files actually), so we avoid doing that.
2273  if test -f "$cache_file"; then
2274    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2275$as_echo "$as_me: loading cache $cache_file" >&6;}
2276    case $cache_file in
2277      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2278      *)                      . "./$cache_file";;
2279    esac
2280  fi
2281else
2282  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2283$as_echo "$as_me: creating cache $cache_file" >&6;}
2284  >$cache_file
2285fi
2286
2287# Check that the precious variables saved in the cache have kept the same
2288# value.
2289ac_cache_corrupted=false
2290for ac_var in $ac_precious_vars; do
2291  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2292  eval ac_new_set=\$ac_env_${ac_var}_set
2293  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2294  eval ac_new_val=\$ac_env_${ac_var}_value
2295  case $ac_old_set,$ac_new_set in
2296    set,)
2297      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2298$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2299      ac_cache_corrupted=: ;;
2300    ,set)
2301      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2302$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2303      ac_cache_corrupted=: ;;
2304    ,);;
2305    *)
2306      if test "x$ac_old_val" != "x$ac_new_val"; then
2307	# differences in whitespace do not lead to failure.
2308	ac_old_val_w=`echo x $ac_old_val`
2309	ac_new_val_w=`echo x $ac_new_val`
2310	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2311	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2312$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2313	  ac_cache_corrupted=:
2314	else
2315	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2316$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2317	  eval $ac_var=\$ac_old_val
2318	fi
2319	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2320$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2321	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2322$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2323      fi;;
2324  esac
2325  # Pass precious variables to config.status.
2326  if test "$ac_new_set" = set; then
2327    case $ac_new_val in
2328    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2329    *) ac_arg=$ac_var=$ac_new_val ;;
2330    esac
2331    case " $ac_configure_args " in
2332      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2333      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2334    esac
2335  fi
2336done
2337if $ac_cache_corrupted; then
2338  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2340  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2341$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2342  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2343$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2344   { (exit 1); exit 1; }; }
2345fi
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371ac_ext=c
2372ac_cpp='$CPP $CPPFLAGS'
2373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375ac_compiler_gnu=$ac_cv_c_compiler_gnu
2376
2377
2378
2379ac_config_headers="$ac_config_headers config.h"
2380
2381am__api_version='1.11'
2382
2383ac_aux_dir=
2384for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2385  if test -f "$ac_dir/install-sh"; then
2386    ac_aux_dir=$ac_dir
2387    ac_install_sh="$ac_aux_dir/install-sh -c"
2388    break
2389  elif test -f "$ac_dir/install.sh"; then
2390    ac_aux_dir=$ac_dir
2391    ac_install_sh="$ac_aux_dir/install.sh -c"
2392    break
2393  elif test -f "$ac_dir/shtool"; then
2394    ac_aux_dir=$ac_dir
2395    ac_install_sh="$ac_aux_dir/shtool install -c"
2396    break
2397  fi
2398done
2399if test -z "$ac_aux_dir"; then
2400  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2401$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2402   { (exit 1); exit 1; }; }
2403fi
2404
2405# These three variables are undocumented and unsupported,
2406# and are intended to be withdrawn in a future Autoconf release.
2407# They can cause serious problems if a builder's source tree is in a directory
2408# whose full name contains unusual characters.
2409ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2410ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2411ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2412
2413
2414# Find a good install program.  We prefer a C program (faster),
2415# so one script is as good as another.  But avoid the broken or
2416# incompatible versions:
2417# SysV /etc/install, /usr/sbin/install
2418# SunOS /usr/etc/install
2419# IRIX /sbin/install
2420# AIX /bin/install
2421# AmigaOS /C/install, which installs bootblocks on floppy discs
2422# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2423# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2424# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2425# OS/2's system install, which has a completely different semantic
2426# ./install, which can be erroneously created by make from ./install.sh.
2427# Reject install programs that cannot install multiple files.
2428{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2429$as_echo_n "checking for a BSD-compatible install... " >&6; }
2430if test -z "$INSTALL"; then
2431if test "${ac_cv_path_install+set}" = set; then
2432  $as_echo_n "(cached) " >&6
2433else
2434  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435for as_dir in $PATH
2436do
2437  IFS=$as_save_IFS
2438  test -z "$as_dir" && as_dir=.
2439  # Account for people who put trailing slashes in PATH elements.
2440case $as_dir/ in
2441  ./ | .// | /cC/* | \
2442  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2443  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2444  /usr/ucb/* ) ;;
2445  *)
2446    # OSF1 and SCO ODT 3.0 have their own names for install.
2447    # Don't use installbsd from OSF since it installs stuff as root
2448    # by default.
2449    for ac_prog in ginstall scoinst install; do
2450      for ac_exec_ext in '' $ac_executable_extensions; do
2451	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2452	  if test $ac_prog = install &&
2453	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2454	    # AIX install.  It has an incompatible calling convention.
2455	    :
2456	  elif test $ac_prog = install &&
2457	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2458	    # program-specific install script used by HP pwplus--don't use.
2459	    :
2460	  else
2461	    rm -rf conftest.one conftest.two conftest.dir
2462	    echo one > conftest.one
2463	    echo two > conftest.two
2464	    mkdir conftest.dir
2465	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2466	      test -s conftest.one && test -s conftest.two &&
2467	      test -s conftest.dir/conftest.one &&
2468	      test -s conftest.dir/conftest.two
2469	    then
2470	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2471	      break 3
2472	    fi
2473	  fi
2474	fi
2475      done
2476    done
2477    ;;
2478esac
2479
2480done
2481IFS=$as_save_IFS
2482
2483rm -rf conftest.one conftest.two conftest.dir
2484
2485fi
2486  if test "${ac_cv_path_install+set}" = set; then
2487    INSTALL=$ac_cv_path_install
2488  else
2489    # As a last resort, use the slow shell script.  Don't cache a
2490    # value for INSTALL within a source directory, because that will
2491    # break other packages using the cache if that directory is
2492    # removed, or if the value is a relative name.
2493    INSTALL=$ac_install_sh
2494  fi
2495fi
2496{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2497$as_echo "$INSTALL" >&6; }
2498
2499# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2500# It thinks the first close brace ends the variable substitution.
2501test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2502
2503test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2504
2505test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2506
2507{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2508$as_echo_n "checking whether build environment is sane... " >&6; }
2509# Just in case
2510sleep 1
2511echo timestamp > conftest.file
2512# Reject unsafe characters in $srcdir or the absolute working directory
2513# name.  Accept space and tab only in the latter.
2514am_lf='
2515'
2516case `pwd` in
2517  *[\\\"\#\$\&\'\`$am_lf]*)
2518    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2519$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2520   { (exit 1); exit 1; }; };;
2521esac
2522case $srcdir in
2523  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2524    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2525$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2526   { (exit 1); exit 1; }; };;
2527esac
2528
2529# Do `set' in a subshell so we don't clobber the current shell's
2530# arguments.  Must try -L first in case configure is actually a
2531# symlink; some systems play weird games with the mod time of symlinks
2532# (eg FreeBSD returns the mod time of the symlink's containing
2533# directory).
2534if (
2535   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2536   if test "$*" = "X"; then
2537      # -L didn't work.
2538      set X `ls -t "$srcdir/configure" conftest.file`
2539   fi
2540   rm -f conftest.file
2541   if test "$*" != "X $srcdir/configure conftest.file" \
2542      && test "$*" != "X conftest.file $srcdir/configure"; then
2543
2544      # If neither matched, then we have a broken ls.  This can happen
2545      # if, for instance, CONFIG_SHELL is bash and it inherits a
2546      # broken ls alias from the environment.  This has actually
2547      # happened.  Such a system could not be considered "sane".
2548      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2549alias in your environment" >&5
2550$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2551alias in your environment" >&2;}
2552   { (exit 1); exit 1; }; }
2553   fi
2554
2555   test "$2" = conftest.file
2556   )
2557then
2558   # Ok.
2559   :
2560else
2561   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2562Check your system clock" >&5
2563$as_echo "$as_me: error: newly created file is older than distributed files!
2564Check your system clock" >&2;}
2565   { (exit 1); exit 1; }; }
2566fi
2567{ $as_echo "$as_me:$LINENO: result: yes" >&5
2568$as_echo "yes" >&6; }
2569test "$program_prefix" != NONE &&
2570  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2571# Use a double $ so make ignores it.
2572test "$program_suffix" != NONE &&
2573  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2574# Double any \ or $.
2575# By default was `s,x,x', remove it if useless.
2576ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2577program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2578
2579# expand $ac_aux_dir to an absolute path
2580am_aux_dir=`cd $ac_aux_dir && pwd`
2581
2582if test x"${MISSING+set}" != xset; then
2583  case $am_aux_dir in
2584  *\ * | *\	*)
2585    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2586  *)
2587    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2588  esac
2589fi
2590# Use eval to expand $SHELL
2591if eval "$MISSING --run true"; then
2592  am_missing_run="$MISSING --run "
2593else
2594  am_missing_run=
2595  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2596$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2597fi
2598
2599if test x"${install_sh}" != xset; then
2600  case $am_aux_dir in
2601  *\ * | *\	*)
2602    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2603  *)
2604    install_sh="\${SHELL} $am_aux_dir/install-sh"
2605  esac
2606fi
2607
2608# Installed binaries are usually stripped using `strip' when the user
2609# run `make install-strip'.  However `strip' might not be the right
2610# tool to use in cross-compilation environments, therefore Automake
2611# will honor the `STRIP' environment variable to overrule this program.
2612if test "$cross_compiling" != no; then
2613  if test -n "$ac_tool_prefix"; then
2614  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2615set dummy ${ac_tool_prefix}strip; ac_word=$2
2616{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2617$as_echo_n "checking for $ac_word... " >&6; }
2618if test "${ac_cv_prog_STRIP+set}" = set; then
2619  $as_echo_n "(cached) " >&6
2620else
2621  if test -n "$STRIP"; then
2622  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2623else
2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625for as_dir in $PATH
2626do
2627  IFS=$as_save_IFS
2628  test -z "$as_dir" && as_dir=.
2629  for ac_exec_ext in '' $ac_executable_extensions; do
2630  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2631    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2632    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633    break 2
2634  fi
2635done
2636done
2637IFS=$as_save_IFS
2638
2639fi
2640fi
2641STRIP=$ac_cv_prog_STRIP
2642if test -n "$STRIP"; then
2643  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2644$as_echo "$STRIP" >&6; }
2645else
2646  { $as_echo "$as_me:$LINENO: result: no" >&5
2647$as_echo "no" >&6; }
2648fi
2649
2650
2651fi
2652if test -z "$ac_cv_prog_STRIP"; then
2653  ac_ct_STRIP=$STRIP
2654  # Extract the first word of "strip", so it can be a program name with args.
2655set dummy strip; ac_word=$2
2656{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2657$as_echo_n "checking for $ac_word... " >&6; }
2658if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2659  $as_echo_n "(cached) " >&6
2660else
2661  if test -n "$ac_ct_STRIP"; then
2662  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2663else
2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
2667  IFS=$as_save_IFS
2668  test -z "$as_dir" && as_dir=.
2669  for ac_exec_ext in '' $ac_executable_extensions; do
2670  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671    ac_cv_prog_ac_ct_STRIP="strip"
2672    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673    break 2
2674  fi
2675done
2676done
2677IFS=$as_save_IFS
2678
2679fi
2680fi
2681ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2682if test -n "$ac_ct_STRIP"; then
2683  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2684$as_echo "$ac_ct_STRIP" >&6; }
2685else
2686  { $as_echo "$as_me:$LINENO: result: no" >&5
2687$as_echo "no" >&6; }
2688fi
2689
2690  if test "x$ac_ct_STRIP" = x; then
2691    STRIP=":"
2692  else
2693    case $cross_compiling:$ac_tool_warned in
2694yes:)
2695{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2697ac_tool_warned=yes ;;
2698esac
2699    STRIP=$ac_ct_STRIP
2700  fi
2701else
2702  STRIP="$ac_cv_prog_STRIP"
2703fi
2704
2705fi
2706INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2707
2708{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2709$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2710if test -z "$MKDIR_P"; then
2711  if test "${ac_cv_path_mkdir+set}" = set; then
2712  $as_echo_n "(cached) " >&6
2713else
2714  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2716do
2717  IFS=$as_save_IFS
2718  test -z "$as_dir" && as_dir=.
2719  for ac_prog in mkdir gmkdir; do
2720	 for ac_exec_ext in '' $ac_executable_extensions; do
2721	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2722	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2723	     'mkdir (GNU coreutils) '* | \
2724	     'mkdir (coreutils) '* | \
2725	     'mkdir (fileutils) '4.1*)
2726	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2727	       break 3;;
2728	   esac
2729	 done
2730       done
2731done
2732IFS=$as_save_IFS
2733
2734fi
2735
2736  if test "${ac_cv_path_mkdir+set}" = set; then
2737    MKDIR_P="$ac_cv_path_mkdir -p"
2738  else
2739    # As a last resort, use the slow shell script.  Don't cache a
2740    # value for MKDIR_P within a source directory, because that will
2741    # break other packages using the cache if that directory is
2742    # removed, or if the value is a relative name.
2743    test -d ./--version && rmdir ./--version
2744    MKDIR_P="$ac_install_sh -d"
2745  fi
2746fi
2747{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2748$as_echo "$MKDIR_P" >&6; }
2749
2750mkdir_p="$MKDIR_P"
2751case $mkdir_p in
2752  [\\/$]* | ?:[\\/]*) ;;
2753  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2754esac
2755
2756for ac_prog in gawk mawk nawk awk
2757do
2758  # Extract the first word of "$ac_prog", so it can be a program name with args.
2759set dummy $ac_prog; ac_word=$2
2760{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2761$as_echo_n "checking for $ac_word... " >&6; }
2762if test "${ac_cv_prog_AWK+set}" = set; then
2763  $as_echo_n "(cached) " >&6
2764else
2765  if test -n "$AWK"; then
2766  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2767else
2768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769for as_dir in $PATH
2770do
2771  IFS=$as_save_IFS
2772  test -z "$as_dir" && as_dir=.
2773  for ac_exec_ext in '' $ac_executable_extensions; do
2774  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775    ac_cv_prog_AWK="$ac_prog"
2776    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777    break 2
2778  fi
2779done
2780done
2781IFS=$as_save_IFS
2782
2783fi
2784fi
2785AWK=$ac_cv_prog_AWK
2786if test -n "$AWK"; then
2787  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2788$as_echo "$AWK" >&6; }
2789else
2790  { $as_echo "$as_me:$LINENO: result: no" >&5
2791$as_echo "no" >&6; }
2792fi
2793
2794
2795  test -n "$AWK" && break
2796done
2797
2798{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2799$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2800set x ${MAKE-make}
2801ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2802if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2803  $as_echo_n "(cached) " >&6
2804else
2805  cat >conftest.make <<\_ACEOF
2806SHELL = /bin/sh
2807all:
2808	@echo '@@@%%%=$(MAKE)=@@@%%%'
2809_ACEOF
2810# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2811case `${MAKE-make} -f conftest.make 2>/dev/null` in
2812  *@@@%%%=?*=@@@%%%*)
2813    eval ac_cv_prog_make_${ac_make}_set=yes;;
2814  *)
2815    eval ac_cv_prog_make_${ac_make}_set=no;;
2816esac
2817rm -f conftest.make
2818fi
2819if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2820  { $as_echo "$as_me:$LINENO: result: yes" >&5
2821$as_echo "yes" >&6; }
2822  SET_MAKE=
2823else
2824  { $as_echo "$as_me:$LINENO: result: no" >&5
2825$as_echo "no" >&6; }
2826  SET_MAKE="MAKE=${MAKE-make}"
2827fi
2828
2829rm -rf .tst 2>/dev/null
2830mkdir .tst 2>/dev/null
2831if test -d .tst; then
2832  am__leading_dot=.
2833else
2834  am__leading_dot=_
2835fi
2836rmdir .tst 2>/dev/null
2837
2838if test "`cd $srcdir && pwd`" != "`pwd`"; then
2839  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2840  # is not polluted with repeated "-I."
2841  am__isrc=' -I$(srcdir)'
2842  # test to see if srcdir already configured
2843  if test -f $srcdir/config.status; then
2844    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2845$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2846   { (exit 1); exit 1; }; }
2847  fi
2848fi
2849
2850# test whether we have cygpath
2851if test -z "$CYGPATH_W"; then
2852  if (cygpath --version) >/dev/null 2>/dev/null; then
2853    CYGPATH_W='cygpath -w'
2854  else
2855    CYGPATH_W=echo
2856  fi
2857fi
2858
2859
2860# Define the identity of the package.
2861 PACKAGE='avahi'
2862 VERSION='0.6.25'
2863
2864
2865cat >>confdefs.h <<_ACEOF
2866#define PACKAGE "$PACKAGE"
2867_ACEOF
2868
2869
2870cat >>confdefs.h <<_ACEOF
2871#define VERSION "$VERSION"
2872_ACEOF
2873
2874# Some tools Automake needs.
2875
2876ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2877
2878
2879AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2880
2881
2882AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2883
2884
2885AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2886
2887
2888MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2889
2890# We need awk for the "check" target.  The system "awk" is bad on
2891# some platforms.
2892# Always define AMTAR for backward compatibility.
2893
2894AMTAR=${AMTAR-"${am_missing_run}tar"}
2895
2896am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2897
2898
2899
2900
2901
2902
2903PACKAGE_URL=http://avahi.org/
2904
2905
2906LIBAVAHI_COMMON_VERSION_INFO=8:1:5
2907
2908LIBAVAHI_CORE_VERSION_INFO=6:1:0
2909
2910LIBAVAHI_CLIENT_VERSION_INFO=5:5:2
2911
2912LIBAVAHI_GLIB_VERSION_INFO=1:1:0
2913
2914LIBAVAHI_GOBJECT_VERSION_INFO=0:1:0
2915
2916LIBAVAHI_QT3_VERSION_INFO=1:2:0
2917
2918LIBAVAHI_QT4_VERSION_INFO=1:2:0
2919
2920LIBAVAHI_UI_VERSION_INFO=1:1:1
2921
2922
2923# Do not touch these, since they we took this version-info from upstream HOWL/Bonjour
2924LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO=1:0:0
2925
2926LIBAVAHI_COMPAT_HOWL_VERSION_INFO=0:0:0
2927
2928HOWL_COMPAT_VERSION=0.9.8
2929
2930
2931if type -p stow > /dev/null && test -d /usr/local/stow ; then
2932    { $as_echo "$as_me:$LINENO: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&5
2933$as_echo "$as_me: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&6;}
2934    ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
2935fi
2936
2937# Checks for programs.
2938ac_ext=c
2939ac_cpp='$CPP $CPPFLAGS'
2940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942ac_compiler_gnu=$ac_cv_c_compiler_gnu
2943if test -n "$ac_tool_prefix"; then
2944  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2945set dummy ${ac_tool_prefix}gcc; ac_word=$2
2946{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2947$as_echo_n "checking for $ac_word... " >&6; }
2948if test "${ac_cv_prog_CC+set}" = set; then
2949  $as_echo_n "(cached) " >&6
2950else
2951  if test -n "$CC"; then
2952  ac_cv_prog_CC="$CC" # Let the user override the test.
2953else
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957  IFS=$as_save_IFS
2958  test -z "$as_dir" && as_dir=.
2959  for ac_exec_ext in '' $ac_executable_extensions; do
2960  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2962    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963    break 2
2964  fi
2965done
2966done
2967IFS=$as_save_IFS
2968
2969fi
2970fi
2971CC=$ac_cv_prog_CC
2972if test -n "$CC"; then
2973  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2974$as_echo "$CC" >&6; }
2975else
2976  { $as_echo "$as_me:$LINENO: result: no" >&5
2977$as_echo "no" >&6; }
2978fi
2979
2980
2981fi
2982if test -z "$ac_cv_prog_CC"; then
2983  ac_ct_CC=$CC
2984  # Extract the first word of "gcc", so it can be a program name with args.
2985set dummy gcc; ac_word=$2
2986{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2987$as_echo_n "checking for $ac_word... " >&6; }
2988if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2989  $as_echo_n "(cached) " >&6
2990else
2991  if test -n "$ac_ct_CC"; then
2992  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2993else
2994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997  IFS=$as_save_IFS
2998  test -z "$as_dir" && as_dir=.
2999  for ac_exec_ext in '' $ac_executable_extensions; do
3000  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3001    ac_cv_prog_ac_ct_CC="gcc"
3002    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003    break 2
3004  fi
3005done
3006done
3007IFS=$as_save_IFS
3008
3009fi
3010fi
3011ac_ct_CC=$ac_cv_prog_ac_ct_CC
3012if test -n "$ac_ct_CC"; then
3013  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3014$as_echo "$ac_ct_CC" >&6; }
3015else
3016  { $as_echo "$as_me:$LINENO: result: no" >&5
3017$as_echo "no" >&6; }
3018fi
3019
3020  if test "x$ac_ct_CC" = x; then
3021    CC=""
3022  else
3023    case $cross_compiling:$ac_tool_warned in
3024yes:)
3025{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3027ac_tool_warned=yes ;;
3028esac
3029    CC=$ac_ct_CC
3030  fi
3031else
3032  CC="$ac_cv_prog_CC"
3033fi
3034
3035if test -z "$CC"; then
3036          if test -n "$ac_tool_prefix"; then
3037    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3038set dummy ${ac_tool_prefix}cc; ac_word=$2
3039{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3040$as_echo_n "checking for $ac_word... " >&6; }
3041if test "${ac_cv_prog_CC+set}" = set; then
3042  $as_echo_n "(cached) " >&6
3043else
3044  if test -n "$CC"; then
3045  ac_cv_prog_CC="$CC" # Let the user override the test.
3046else
3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048for as_dir in $PATH
3049do
3050  IFS=$as_save_IFS
3051  test -z "$as_dir" && as_dir=.
3052  for ac_exec_ext in '' $ac_executable_extensions; do
3053  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054    ac_cv_prog_CC="${ac_tool_prefix}cc"
3055    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056    break 2
3057  fi
3058done
3059done
3060IFS=$as_save_IFS
3061
3062fi
3063fi
3064CC=$ac_cv_prog_CC
3065if test -n "$CC"; then
3066  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3067$as_echo "$CC" >&6; }
3068else
3069  { $as_echo "$as_me:$LINENO: result: no" >&5
3070$as_echo "no" >&6; }
3071fi
3072
3073
3074  fi
3075fi
3076if test -z "$CC"; then
3077  # Extract the first word of "cc", so it can be a program name with args.
3078set dummy cc; ac_word=$2
3079{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3080$as_echo_n "checking for $ac_word... " >&6; }
3081if test "${ac_cv_prog_CC+set}" = set; then
3082  $as_echo_n "(cached) " >&6
3083else
3084  if test -n "$CC"; then
3085  ac_cv_prog_CC="$CC" # Let the user override the test.
3086else
3087  ac_prog_rejected=no
3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089for as_dir in $PATH
3090do
3091  IFS=$as_save_IFS
3092  test -z "$as_dir" && as_dir=.
3093  for ac_exec_ext in '' $ac_executable_extensions; do
3094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3096       ac_prog_rejected=yes
3097       continue
3098     fi
3099    ac_cv_prog_CC="cc"
3100    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101    break 2
3102  fi
3103done
3104done
3105IFS=$as_save_IFS
3106
3107if test $ac_prog_rejected = yes; then
3108  # We found a bogon in the path, so make sure we never use it.
3109  set dummy $ac_cv_prog_CC
3110  shift
3111  if test $# != 0; then
3112    # We chose a different compiler from the bogus one.
3113    # However, it has the same basename, so the bogon will be chosen
3114    # first if we set CC to just the basename; use the full file name.
3115    shift
3116    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3117  fi
3118fi
3119fi
3120fi
3121CC=$ac_cv_prog_CC
3122if test -n "$CC"; then
3123  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3124$as_echo "$CC" >&6; }
3125else
3126  { $as_echo "$as_me:$LINENO: result: no" >&5
3127$as_echo "no" >&6; }
3128fi
3129
3130
3131fi
3132if test -z "$CC"; then
3133  if test -n "$ac_tool_prefix"; then
3134  for ac_prog in cl.exe
3135  do
3136    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3137set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3138{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3139$as_echo_n "checking for $ac_word... " >&6; }
3140if test "${ac_cv_prog_CC+set}" = set; then
3141  $as_echo_n "(cached) " >&6
3142else
3143  if test -n "$CC"; then
3144  ac_cv_prog_CC="$CC" # Let the user override the test.
3145else
3146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147for as_dir in $PATH
3148do
3149  IFS=$as_save_IFS
3150  test -z "$as_dir" && as_dir=.
3151  for ac_exec_ext in '' $ac_executable_extensions; do
3152  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3154    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155    break 2
3156  fi
3157done
3158done
3159IFS=$as_save_IFS
3160
3161fi
3162fi
3163CC=$ac_cv_prog_CC
3164if test -n "$CC"; then
3165  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3166$as_echo "$CC" >&6; }
3167else
3168  { $as_echo "$as_me:$LINENO: result: no" >&5
3169$as_echo "no" >&6; }
3170fi
3171
3172
3173    test -n "$CC" && break
3174  done
3175fi
3176if test -z "$CC"; then
3177  ac_ct_CC=$CC
3178  for ac_prog in cl.exe
3179do
3180  # Extract the first word of "$ac_prog", so it can be a program name with args.
3181set dummy $ac_prog; ac_word=$2
3182{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3183$as_echo_n "checking for $ac_word... " >&6; }
3184if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3185  $as_echo_n "(cached) " >&6
3186else
3187  if test -n "$ac_ct_CC"; then
3188  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3189else
3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191for as_dir in $PATH
3192do
3193  IFS=$as_save_IFS
3194  test -z "$as_dir" && as_dir=.
3195  for ac_exec_ext in '' $ac_executable_extensions; do
3196  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197    ac_cv_prog_ac_ct_CC="$ac_prog"
3198    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199    break 2
3200  fi
3201done
3202done
3203IFS=$as_save_IFS
3204
3205fi
3206fi
3207ac_ct_CC=$ac_cv_prog_ac_ct_CC
3208if test -n "$ac_ct_CC"; then
3209  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3210$as_echo "$ac_ct_CC" >&6; }
3211else
3212  { $as_echo "$as_me:$LINENO: result: no" >&5
3213$as_echo "no" >&6; }
3214fi
3215
3216
3217  test -n "$ac_ct_CC" && break
3218done
3219
3220  if test "x$ac_ct_CC" = x; then
3221    CC=""
3222  else
3223    case $cross_compiling:$ac_tool_warned in
3224yes:)
3225{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3227ac_tool_warned=yes ;;
3228esac
3229    CC=$ac_ct_CC
3230  fi
3231fi
3232
3233fi
3234
3235
3236test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3238{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3239See \`config.log' for more details." >&5
3240$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3241See \`config.log' for more details." >&2;}
3242   { (exit 1); exit 1; }; }; }
3243
3244# Provide some information about the compiler.
3245$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3246set X $ac_compile
3247ac_compiler=$2
3248{ (ac_try="$ac_compiler --version >&5"
3249case "(($ac_try" in
3250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251  *) ac_try_echo=$ac_try;;
3252esac
3253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3254$as_echo "$ac_try_echo") >&5
3255  (eval "$ac_compiler --version >&5") 2>&5
3256  ac_status=$?
3257  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258  (exit $ac_status); }
3259{ (ac_try="$ac_compiler -v >&5"
3260case "(($ac_try" in
3261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262  *) ac_try_echo=$ac_try;;
3263esac
3264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3265$as_echo "$ac_try_echo") >&5
3266  (eval "$ac_compiler -v >&5") 2>&5
3267  ac_status=$?
3268  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269  (exit $ac_status); }
3270{ (ac_try="$ac_compiler -V >&5"
3271case "(($ac_try" in
3272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273  *) ac_try_echo=$ac_try;;
3274esac
3275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3276$as_echo "$ac_try_echo") >&5
3277  (eval "$ac_compiler -V >&5") 2>&5
3278  ac_status=$?
3279  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280  (exit $ac_status); }
3281
3282cat >conftest.$ac_ext <<_ACEOF
3283/* confdefs.h.  */
3284_ACEOF
3285cat confdefs.h >>conftest.$ac_ext
3286cat >>conftest.$ac_ext <<_ACEOF
3287/* end confdefs.h.  */
3288
3289int
3290main ()
3291{
3292
3293  ;
3294  return 0;
3295}
3296_ACEOF
3297ac_clean_files_save=$ac_clean_files
3298ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3299# Try to create an executable without -o first, disregard a.out.
3300# It will help us diagnose broken compilers, and finding out an intuition
3301# of exeext.
3302{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3303$as_echo_n "checking for C compiler default output file name... " >&6; }
3304ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3305
3306# The possible output files:
3307ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3308
3309ac_rmfiles=
3310for ac_file in $ac_files
3311do
3312  case $ac_file in
3313    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3314    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3315  esac
3316done
3317rm -f $ac_rmfiles
3318
3319if { (ac_try="$ac_link_default"
3320case "(($ac_try" in
3321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322  *) ac_try_echo=$ac_try;;
3323esac
3324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3325$as_echo "$ac_try_echo") >&5
3326  (eval "$ac_link_default") 2>&5
3327  ac_status=$?
3328  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329  (exit $ac_status); }; then
3330  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3331# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3332# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3333# so that the user can short-circuit this test for compilers unknown to
3334# Autoconf.
3335for ac_file in $ac_files ''
3336do
3337  test -f "$ac_file" || continue
3338  case $ac_file in
3339    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3340	;;
3341    [ab].out )
3342	# We found the default executable, but exeext='' is most
3343	# certainly right.
3344	break;;
3345    *.* )
3346        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3347	then :; else
3348	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349	fi
3350	# We set ac_cv_exeext here because the later test for it is not
3351	# safe: cross compilers may not add the suffix if given an `-o'
3352	# argument, so we may need to know it at that point already.
3353	# Even if this section looks crufty: it has the advantage of
3354	# actually working.
3355	break;;
3356    * )
3357	break;;
3358  esac
3359done
3360test "$ac_cv_exeext" = no && ac_cv_exeext=
3361
3362else
3363  ac_file=''
3364fi
3365
3366{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3367$as_echo "$ac_file" >&6; }
3368if test -z "$ac_file"; then
3369  $as_echo "$as_me: failed program was:" >&5
3370sed 's/^/| /' conftest.$ac_ext >&5
3371
3372{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3375See \`config.log' for more details." >&5
3376$as_echo "$as_me: error: C compiler cannot create executables
3377See \`config.log' for more details." >&2;}
3378   { (exit 77); exit 77; }; }; }
3379fi
3380
3381ac_exeext=$ac_cv_exeext
3382
3383# Check that the compiler produces executables we can run.  If not, either
3384# the compiler is broken, or we cross compile.
3385{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3386$as_echo_n "checking whether the C compiler works... " >&6; }
3387# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3388# If not cross compiling, check that we can run a simple program.
3389if test "$cross_compiling" != yes; then
3390  if { ac_try='./$ac_file'
3391  { (case "(($ac_try" in
3392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393  *) ac_try_echo=$ac_try;;
3394esac
3395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3396$as_echo "$ac_try_echo") >&5
3397  (eval "$ac_try") 2>&5
3398  ac_status=$?
3399  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400  (exit $ac_status); }; }; then
3401    cross_compiling=no
3402  else
3403    if test "$cross_compiling" = maybe; then
3404	cross_compiling=yes
3405    else
3406	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3409If you meant to cross compile, use \`--host'.
3410See \`config.log' for more details." >&5
3411$as_echo "$as_me: error: cannot run C compiled programs.
3412If you meant to cross compile, use \`--host'.
3413See \`config.log' for more details." >&2;}
3414   { (exit 1); exit 1; }; }; }
3415    fi
3416  fi
3417fi
3418{ $as_echo "$as_me:$LINENO: result: yes" >&5
3419$as_echo "yes" >&6; }
3420
3421rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3422ac_clean_files=$ac_clean_files_save
3423# Check that the compiler produces executables we can run.  If not, either
3424# the compiler is broken, or we cross compile.
3425{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3426$as_echo_n "checking whether we are cross compiling... " >&6; }
3427{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3428$as_echo "$cross_compiling" >&6; }
3429
3430{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3431$as_echo_n "checking for suffix of executables... " >&6; }
3432if { (ac_try="$ac_link"
3433case "(($ac_try" in
3434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435  *) ac_try_echo=$ac_try;;
3436esac
3437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3438$as_echo "$ac_try_echo") >&5
3439  (eval "$ac_link") 2>&5
3440  ac_status=$?
3441  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442  (exit $ac_status); }; then
3443  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3444# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3445# work properly (i.e., refer to `conftest.exe'), while it won't with
3446# `rm'.
3447for ac_file in conftest.exe conftest conftest.*; do
3448  test -f "$ac_file" || continue
3449  case $ac_file in
3450    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3451    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3452	  break;;
3453    * ) break;;
3454  esac
3455done
3456else
3457  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3460See \`config.log' for more details." >&5
3461$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3462See \`config.log' for more details." >&2;}
3463   { (exit 1); exit 1; }; }; }
3464fi
3465
3466rm -f conftest$ac_cv_exeext
3467{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3468$as_echo "$ac_cv_exeext" >&6; }
3469
3470rm -f conftest.$ac_ext
3471EXEEXT=$ac_cv_exeext
3472ac_exeext=$EXEEXT
3473{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3474$as_echo_n "checking for suffix of object files... " >&6; }
3475if test "${ac_cv_objext+set}" = set; then
3476  $as_echo_n "(cached) " >&6
3477else
3478  cat >conftest.$ac_ext <<_ACEOF
3479/* confdefs.h.  */
3480_ACEOF
3481cat confdefs.h >>conftest.$ac_ext
3482cat >>conftest.$ac_ext <<_ACEOF
3483/* end confdefs.h.  */
3484
3485int
3486main ()
3487{
3488
3489  ;
3490  return 0;
3491}
3492_ACEOF
3493rm -f conftest.o conftest.obj
3494if { (ac_try="$ac_compile"
3495case "(($ac_try" in
3496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497  *) ac_try_echo=$ac_try;;
3498esac
3499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3500$as_echo "$ac_try_echo") >&5
3501  (eval "$ac_compile") 2>&5
3502  ac_status=$?
3503  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504  (exit $ac_status); }; then
3505  for ac_file in conftest.o conftest.obj conftest.*; do
3506  test -f "$ac_file" || continue;
3507  case $ac_file in
3508    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3509    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3510       break;;
3511  esac
3512done
3513else
3514  $as_echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3520See \`config.log' for more details." >&5
3521$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3522See \`config.log' for more details." >&2;}
3523   { (exit 1); exit 1; }; }; }
3524fi
3525
3526rm -f conftest.$ac_cv_objext conftest.$ac_ext
3527fi
3528{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3529$as_echo "$ac_cv_objext" >&6; }
3530OBJEXT=$ac_cv_objext
3531ac_objext=$OBJEXT
3532{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3533$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3534if test "${ac_cv_c_compiler_gnu+set}" = set; then
3535  $as_echo_n "(cached) " >&6
3536else
3537  cat >conftest.$ac_ext <<_ACEOF
3538/* confdefs.h.  */
3539_ACEOF
3540cat confdefs.h >>conftest.$ac_ext
3541cat >>conftest.$ac_ext <<_ACEOF
3542/* end confdefs.h.  */
3543
3544int
3545main ()
3546{
3547#ifndef __GNUC__
3548       choke me
3549#endif
3550
3551  ;
3552  return 0;
3553}
3554_ACEOF
3555rm -f conftest.$ac_objext
3556if { (ac_try="$ac_compile"
3557case "(($ac_try" in
3558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559  *) ac_try_echo=$ac_try;;
3560esac
3561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3562$as_echo "$ac_try_echo") >&5
3563  (eval "$ac_compile") 2>conftest.er1
3564  ac_status=$?
3565  grep -v '^ *+' conftest.er1 >conftest.err
3566  rm -f conftest.er1
3567  cat conftest.err >&5
3568  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569  (exit $ac_status); } && {
3570	 test -z "$ac_c_werror_flag" ||
3571	 test ! -s conftest.err
3572       } && test -s conftest.$ac_objext; then
3573  ac_compiler_gnu=yes
3574else
3575  $as_echo "$as_me: failed program was:" >&5
3576sed 's/^/| /' conftest.$ac_ext >&5
3577
3578	ac_compiler_gnu=no
3579fi
3580
3581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582ac_cv_c_compiler_gnu=$ac_compiler_gnu
3583
3584fi
3585{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3586$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3587if test $ac_compiler_gnu = yes; then
3588  GCC=yes
3589else
3590  GCC=
3591fi
3592ac_test_CFLAGS=${CFLAGS+set}
3593ac_save_CFLAGS=$CFLAGS
3594{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3595$as_echo_n "checking whether $CC accepts -g... " >&6; }
3596if test "${ac_cv_prog_cc_g+set}" = set; then
3597  $as_echo_n "(cached) " >&6
3598else
3599  ac_save_c_werror_flag=$ac_c_werror_flag
3600   ac_c_werror_flag=yes
3601   ac_cv_prog_cc_g=no
3602   CFLAGS="-g"
3603   cat >conftest.$ac_ext <<_ACEOF
3604/* confdefs.h.  */
3605_ACEOF
3606cat confdefs.h >>conftest.$ac_ext
3607cat >>conftest.$ac_ext <<_ACEOF
3608/* end confdefs.h.  */
3609
3610int
3611main ()
3612{
3613
3614  ;
3615  return 0;
3616}
3617_ACEOF
3618rm -f conftest.$ac_objext
3619if { (ac_try="$ac_compile"
3620case "(($ac_try" in
3621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622  *) ac_try_echo=$ac_try;;
3623esac
3624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3625$as_echo "$ac_try_echo") >&5
3626  (eval "$ac_compile") 2>conftest.er1
3627  ac_status=$?
3628  grep -v '^ *+' conftest.er1 >conftest.err
3629  rm -f conftest.er1
3630  cat conftest.err >&5
3631  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632  (exit $ac_status); } && {
3633	 test -z "$ac_c_werror_flag" ||
3634	 test ! -s conftest.err
3635       } && test -s conftest.$ac_objext; then
3636  ac_cv_prog_cc_g=yes
3637else
3638  $as_echo "$as_me: failed program was:" >&5
3639sed 's/^/| /' conftest.$ac_ext >&5
3640
3641	CFLAGS=""
3642      cat >conftest.$ac_ext <<_ACEOF
3643/* confdefs.h.  */
3644_ACEOF
3645cat confdefs.h >>conftest.$ac_ext
3646cat >>conftest.$ac_ext <<_ACEOF
3647/* end confdefs.h.  */
3648
3649int
3650main ()
3651{
3652
3653  ;
3654  return 0;
3655}
3656_ACEOF
3657rm -f conftest.$ac_objext
3658if { (ac_try="$ac_compile"
3659case "(($ac_try" in
3660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661  *) ac_try_echo=$ac_try;;
3662esac
3663eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3664$as_echo "$ac_try_echo") >&5
3665  (eval "$ac_compile") 2>conftest.er1
3666  ac_status=$?
3667  grep -v '^ *+' conftest.er1 >conftest.err
3668  rm -f conftest.er1
3669  cat conftest.err >&5
3670  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671  (exit $ac_status); } && {
3672	 test -z "$ac_c_werror_flag" ||
3673	 test ! -s conftest.err
3674       } && test -s conftest.$ac_objext; then
3675  :
3676else
3677  $as_echo "$as_me: failed program was:" >&5
3678sed 's/^/| /' conftest.$ac_ext >&5
3679
3680	ac_c_werror_flag=$ac_save_c_werror_flag
3681	 CFLAGS="-g"
3682	 cat >conftest.$ac_ext <<_ACEOF
3683/* confdefs.h.  */
3684_ACEOF
3685cat confdefs.h >>conftest.$ac_ext
3686cat >>conftest.$ac_ext <<_ACEOF
3687/* end confdefs.h.  */
3688
3689int
3690main ()
3691{
3692
3693  ;
3694  return 0;
3695}
3696_ACEOF
3697rm -f conftest.$ac_objext
3698if { (ac_try="$ac_compile"
3699case "(($ac_try" in
3700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701  *) ac_try_echo=$ac_try;;
3702esac
3703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3704$as_echo "$ac_try_echo") >&5
3705  (eval "$ac_compile") 2>conftest.er1
3706  ac_status=$?
3707  grep -v '^ *+' conftest.er1 >conftest.err
3708  rm -f conftest.er1
3709  cat conftest.err >&5
3710  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711  (exit $ac_status); } && {
3712	 test -z "$ac_c_werror_flag" ||
3713	 test ! -s conftest.err
3714       } && test -s conftest.$ac_objext; then
3715  ac_cv_prog_cc_g=yes
3716else
3717  $as_echo "$as_me: failed program was:" >&5
3718sed 's/^/| /' conftest.$ac_ext >&5
3719
3720
3721fi
3722
3723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724fi
3725
3726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727fi
3728
3729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730   ac_c_werror_flag=$ac_save_c_werror_flag
3731fi
3732{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3733$as_echo "$ac_cv_prog_cc_g" >&6; }
3734if test "$ac_test_CFLAGS" = set; then
3735  CFLAGS=$ac_save_CFLAGS
3736elif test $ac_cv_prog_cc_g = yes; then
3737  if test "$GCC" = yes; then
3738    CFLAGS="-g -O2"
3739  else
3740    CFLAGS="-g"
3741  fi
3742else
3743  if test "$GCC" = yes; then
3744    CFLAGS="-O2"
3745  else
3746    CFLAGS=
3747  fi
3748fi
3749{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3750$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3751if test "${ac_cv_prog_cc_c89+set}" = set; then
3752  $as_echo_n "(cached) " >&6
3753else
3754  ac_cv_prog_cc_c89=no
3755ac_save_CC=$CC
3756cat >conftest.$ac_ext <<_ACEOF
3757/* confdefs.h.  */
3758_ACEOF
3759cat confdefs.h >>conftest.$ac_ext
3760cat >>conftest.$ac_ext <<_ACEOF
3761/* end confdefs.h.  */
3762#include <stdarg.h>
3763#include <stdio.h>
3764#include <sys/types.h>
3765#include <sys/stat.h>
3766/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3767struct buf { int x; };
3768FILE * (*rcsopen) (struct buf *, struct stat *, int);
3769static char *e (p, i)
3770     char **p;
3771     int i;
3772{
3773  return p[i];
3774}
3775static char *f (char * (*g) (char **, int), char **p, ...)
3776{
3777  char *s;
3778  va_list v;
3779  va_start (v,p);
3780  s = g (p, va_arg (v,int));
3781  va_end (v);
3782  return s;
3783}
3784
3785/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3786   function prototypes and stuff, but not '\xHH' hex character constants.
3787   These don't provoke an error unfortunately, instead are silently treated
3788   as 'x'.  The following induces an error, until -std is added to get
3789   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3790   array size at least.  It's necessary to write '\x00'==0 to get something
3791   that's true only with -std.  */
3792int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3793
3794/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3795   inside strings and character constants.  */
3796#define FOO(x) 'x'
3797int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3798
3799int test (int i, double x);
3800struct s1 {int (*f) (int a);};
3801struct s2 {int (*f) (double a);};
3802int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3803int argc;
3804char **argv;
3805int
3806main ()
3807{
3808return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3809  ;
3810  return 0;
3811}
3812_ACEOF
3813for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3814	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3815do
3816  CC="$ac_save_CC $ac_arg"
3817  rm -f conftest.$ac_objext
3818if { (ac_try="$ac_compile"
3819case "(($ac_try" in
3820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821  *) ac_try_echo=$ac_try;;
3822esac
3823eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3824$as_echo "$ac_try_echo") >&5
3825  (eval "$ac_compile") 2>conftest.er1
3826  ac_status=$?
3827  grep -v '^ *+' conftest.er1 >conftest.err
3828  rm -f conftest.er1
3829  cat conftest.err >&5
3830  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831  (exit $ac_status); } && {
3832	 test -z "$ac_c_werror_flag" ||
3833	 test ! -s conftest.err
3834       } && test -s conftest.$ac_objext; then
3835  ac_cv_prog_cc_c89=$ac_arg
3836else
3837  $as_echo "$as_me: failed program was:" >&5
3838sed 's/^/| /' conftest.$ac_ext >&5
3839
3840
3841fi
3842
3843rm -f core conftest.err conftest.$ac_objext
3844  test "x$ac_cv_prog_cc_c89" != "xno" && break
3845done
3846rm -f conftest.$ac_ext
3847CC=$ac_save_CC
3848
3849fi
3850# AC_CACHE_VAL
3851case "x$ac_cv_prog_cc_c89" in
3852  x)
3853    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3854$as_echo "none needed" >&6; } ;;
3855  xno)
3856    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3857$as_echo "unsupported" >&6; } ;;
3858  *)
3859    CC="$CC $ac_cv_prog_cc_c89"
3860    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3861$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3862esac
3863
3864
3865ac_ext=c
3866ac_cpp='$CPP $CPPFLAGS'
3867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870DEPDIR="${am__leading_dot}deps"
3871
3872ac_config_commands="$ac_config_commands depfiles"
3873
3874
3875am_make=${MAKE-make}
3876cat > confinc << 'END'
3877am__doit:
3878	@echo this is the am__doit target
3879.PHONY: am__doit
3880END
3881# If we don't find an include directive, just comment out the code.
3882{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3883$as_echo_n "checking for style of include used by $am_make... " >&6; }
3884am__include="#"
3885am__quote=
3886_am_result=none
3887# First try GNU make style include.
3888echo "include confinc" > confmf
3889# Ignore all kinds of additional output from `make'.
3890case `$am_make -s -f confmf 2> /dev/null` in #(
3891*the\ am__doit\ target*)
3892  am__include=include
3893  am__quote=
3894  _am_result=GNU
3895  ;;
3896esac
3897# Now try BSD make style include.
3898if test "$am__include" = "#"; then
3899   echo '.include "confinc"' > confmf
3900   case `$am_make -s -f confmf 2> /dev/null` in #(
3901   *the\ am__doit\ target*)
3902     am__include=.include
3903     am__quote="\""
3904     _am_result=BSD
3905     ;;
3906   esac
3907fi
3908
3909
3910{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3911$as_echo "$_am_result" >&6; }
3912rm -f confinc confmf
3913
3914# Check whether --enable-dependency-tracking was given.
3915if test "${enable_dependency_tracking+set}" = set; then
3916  enableval=$enable_dependency_tracking;
3917fi
3918
3919if test "x$enable_dependency_tracking" != xno; then
3920  am_depcomp="$ac_aux_dir/depcomp"
3921  AMDEPBACKSLASH='\'
3922fi
3923 if test "x$enable_dependency_tracking" != xno; then
3924  AMDEP_TRUE=
3925  AMDEP_FALSE='#'
3926else
3927  AMDEP_TRUE='#'
3928  AMDEP_FALSE=
3929fi
3930
3931
3932
3933depcc="$CC"   am_compiler_list=
3934
3935{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3936$as_echo_n "checking dependency style of $depcc... " >&6; }
3937if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3938  $as_echo_n "(cached) " >&6
3939else
3940  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3941  # We make a subdir and do the tests there.  Otherwise we can end up
3942  # making bogus files that we don't know about and never remove.  For
3943  # instance it was reported that on HP-UX the gcc test will end up
3944  # making a dummy file named `D' -- because `-MD' means `put the output
3945  # in D'.
3946  mkdir conftest.dir
3947  # Copy depcomp to subdir because otherwise we won't find it if we're
3948  # using a relative directory.
3949  cp "$am_depcomp" conftest.dir
3950  cd conftest.dir
3951  # We will build objects and dependencies in a subdirectory because
3952  # it helps to detect inapplicable dependency modes.  For instance
3953  # both Tru64's cc and ICC support -MD to output dependencies as a
3954  # side effect of compilation, but ICC will put the dependencies in
3955  # the current directory while Tru64 will put them in the object
3956  # directory.
3957  mkdir sub
3958
3959  am_cv_CC_dependencies_compiler_type=none
3960  if test "$am_compiler_list" = ""; then
3961     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3962  fi
3963  am__universal=false
3964  case " $depcc " in #(
3965     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3966     esac
3967
3968  for depmode in $am_compiler_list; do
3969    # Setup a source with many dependencies, because some compilers
3970    # like to wrap large dependency lists on column 80 (with \), and
3971    # we should not choose a depcomp mode which is confused by this.
3972    #
3973    # We need to recreate these files for each test, as the compiler may
3974    # overwrite some of them when testing with obscure command lines.
3975    # This happens at least with the AIX C compiler.
3976    : > sub/conftest.c
3977    for i in 1 2 3 4 5 6; do
3978      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3979      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3980      # Solaris 8's {/usr,}/bin/sh.
3981      touch sub/conftst$i.h
3982    done
3983    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3984
3985    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3986    # mode.  It turns out that the SunPro C++ compiler does not properly
3987    # handle `-M -o', and we need to detect this.  Also, some Intel
3988    # versions had trouble with output in subdirs
3989    am__obj=sub/conftest.${OBJEXT-o}
3990    am__minus_obj="-o $am__obj"
3991    case $depmode in
3992    gcc)
3993      # This depmode causes a compiler race in universal mode.
3994      test "$am__universal" = false || continue
3995      ;;
3996    nosideeffect)
3997      # after this tag, mechanisms are not by side-effect, so they'll
3998      # only be used when explicitly requested
3999      if test "x$enable_dependency_tracking" = xyes; then
4000	continue
4001      else
4002	break
4003      fi
4004      ;;
4005    msvisualcpp | msvcmsys)
4006      # This compiler won't grok `-c -o', but also, the minuso test has
4007      # not run yet.  These depmodes are late enough in the game, and
4008      # so weak that their functioning should not be impacted.
4009      am__obj=conftest.${OBJEXT-o}
4010      am__minus_obj=
4011      ;;
4012    none) break ;;
4013    esac
4014    if depmode=$depmode \
4015       source=sub/conftest.c object=$am__obj \
4016       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4017       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4018         >/dev/null 2>conftest.err &&
4019       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4020       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4021       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4022       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4023      # icc doesn't choke on unknown options, it will just issue warnings
4024      # or remarks (even with -Werror).  So we grep stderr for any message
4025      # that says an option was ignored or not supported.
4026      # When given -MP, icc 7.0 and 7.1 complain thusly:
4027      #   icc: Command line warning: ignoring option '-M'; no argument required
4028      # The diagnosis changed in icc 8.0:
4029      #   icc: Command line remark: option '-MP' not supported
4030      if (grep 'ignoring option' conftest.err ||
4031          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4032        am_cv_CC_dependencies_compiler_type=$depmode
4033        break
4034      fi
4035    fi
4036  done
4037
4038  cd ..
4039  rm -rf conftest.dir
4040else
4041  am_cv_CC_dependencies_compiler_type=none
4042fi
4043
4044fi
4045{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4046$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4047CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4048
4049 if
4050  test "x$enable_dependency_tracking" != xno \
4051  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4052  am__fastdepCC_TRUE=
4053  am__fastdepCC_FALSE='#'
4054else
4055  am__fastdepCC_TRUE='#'
4056  am__fastdepCC_FALSE=
4057fi
4058
4059
4060ac_ext=cpp
4061ac_cpp='$CXXCPP $CPPFLAGS'
4062ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4063ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4065if test -z "$CXX"; then
4066  if test -n "$CCC"; then
4067    CXX=$CCC
4068  else
4069    if test -n "$ac_tool_prefix"; then
4070  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4071  do
4072    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4073set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4074{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4075$as_echo_n "checking for $ac_word... " >&6; }
4076if test "${ac_cv_prog_CXX+set}" = set; then
4077  $as_echo_n "(cached) " >&6
4078else
4079  if test -n "$CXX"; then
4080  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4081else
4082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083for as_dir in $PATH
4084do
4085  IFS=$as_save_IFS
4086  test -z "$as_dir" && as_dir=.
4087  for ac_exec_ext in '' $ac_executable_extensions; do
4088  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4089    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4090    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4091    break 2
4092  fi
4093done
4094done
4095IFS=$as_save_IFS
4096
4097fi
4098fi
4099CXX=$ac_cv_prog_CXX
4100if test -n "$CXX"; then
4101  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4102$as_echo "$CXX" >&6; }
4103else
4104  { $as_echo "$as_me:$LINENO: result: no" >&5
4105$as_echo "no" >&6; }
4106fi
4107
4108
4109    test -n "$CXX" && break
4110  done
4111fi
4112if test -z "$CXX"; then
4113  ac_ct_CXX=$CXX
4114  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4115do
4116  # Extract the first word of "$ac_prog", so it can be a program name with args.
4117set dummy $ac_prog; ac_word=$2
4118{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4119$as_echo_n "checking for $ac_word... " >&6; }
4120if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4121  $as_echo_n "(cached) " >&6
4122else
4123  if test -n "$ac_ct_CXX"; then
4124  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4125else
4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH
4128do
4129  IFS=$as_save_IFS
4130  test -z "$as_dir" && as_dir=.
4131  for ac_exec_ext in '' $ac_executable_extensions; do
4132  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4133    ac_cv_prog_ac_ct_CXX="$ac_prog"
4134    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135    break 2
4136  fi
4137done
4138done
4139IFS=$as_save_IFS
4140
4141fi
4142fi
4143ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4144if test -n "$ac_ct_CXX"; then
4145  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4146$as_echo "$ac_ct_CXX" >&6; }
4147else
4148  { $as_echo "$as_me:$LINENO: result: no" >&5
4149$as_echo "no" >&6; }
4150fi
4151
4152
4153  test -n "$ac_ct_CXX" && break
4154done
4155
4156  if test "x$ac_ct_CXX" = x; then
4157    CXX="g++"
4158  else
4159    case $cross_compiling:$ac_tool_warned in
4160yes:)
4161{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4163ac_tool_warned=yes ;;
4164esac
4165    CXX=$ac_ct_CXX
4166  fi
4167fi
4168
4169  fi
4170fi
4171# Provide some information about the compiler.
4172$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4173set X $ac_compile
4174ac_compiler=$2
4175{ (ac_try="$ac_compiler --version >&5"
4176case "(($ac_try" in
4177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178  *) ac_try_echo=$ac_try;;
4179esac
4180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4181$as_echo "$ac_try_echo") >&5
4182  (eval "$ac_compiler --version >&5") 2>&5
4183  ac_status=$?
4184  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185  (exit $ac_status); }
4186{ (ac_try="$ac_compiler -v >&5"
4187case "(($ac_try" in
4188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189  *) ac_try_echo=$ac_try;;
4190esac
4191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4192$as_echo "$ac_try_echo") >&5
4193  (eval "$ac_compiler -v >&5") 2>&5
4194  ac_status=$?
4195  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196  (exit $ac_status); }
4197{ (ac_try="$ac_compiler -V >&5"
4198case "(($ac_try" in
4199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200  *) ac_try_echo=$ac_try;;
4201esac
4202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4203$as_echo "$ac_try_echo") >&5
4204  (eval "$ac_compiler -V >&5") 2>&5
4205  ac_status=$?
4206  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207  (exit $ac_status); }
4208
4209{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4210$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4211if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4212  $as_echo_n "(cached) " >&6
4213else
4214  cat >conftest.$ac_ext <<_ACEOF
4215/* confdefs.h.  */
4216_ACEOF
4217cat confdefs.h >>conftest.$ac_ext
4218cat >>conftest.$ac_ext <<_ACEOF
4219/* end confdefs.h.  */
4220
4221int
4222main ()
4223{
4224#ifndef __GNUC__
4225       choke me
4226#endif
4227
4228  ;
4229  return 0;
4230}
4231_ACEOF
4232rm -f conftest.$ac_objext
4233if { (ac_try="$ac_compile"
4234case "(($ac_try" in
4235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236  *) ac_try_echo=$ac_try;;
4237esac
4238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4239$as_echo "$ac_try_echo") >&5
4240  (eval "$ac_compile") 2>conftest.er1
4241  ac_status=$?
4242  grep -v '^ *+' conftest.er1 >conftest.err
4243  rm -f conftest.er1
4244  cat conftest.err >&5
4245  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246  (exit $ac_status); } && {
4247	 test -z "$ac_cxx_werror_flag" ||
4248	 test ! -s conftest.err
4249       } && test -s conftest.$ac_objext; then
4250  ac_compiler_gnu=yes
4251else
4252  $as_echo "$as_me: failed program was:" >&5
4253sed 's/^/| /' conftest.$ac_ext >&5
4254
4255	ac_compiler_gnu=no
4256fi
4257
4258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4260
4261fi
4262{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4263$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4264if test $ac_compiler_gnu = yes; then
4265  GXX=yes
4266else
4267  GXX=
4268fi
4269ac_test_CXXFLAGS=${CXXFLAGS+set}
4270ac_save_CXXFLAGS=$CXXFLAGS
4271{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4272$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4273if test "${ac_cv_prog_cxx_g+set}" = set; then
4274  $as_echo_n "(cached) " >&6
4275else
4276  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4277   ac_cxx_werror_flag=yes
4278   ac_cv_prog_cxx_g=no
4279   CXXFLAGS="-g"
4280   cat >conftest.$ac_ext <<_ACEOF
4281/* confdefs.h.  */
4282_ACEOF
4283cat confdefs.h >>conftest.$ac_ext
4284cat >>conftest.$ac_ext <<_ACEOF
4285/* end confdefs.h.  */
4286
4287int
4288main ()
4289{
4290
4291  ;
4292  return 0;
4293}
4294_ACEOF
4295rm -f conftest.$ac_objext
4296if { (ac_try="$ac_compile"
4297case "(($ac_try" in
4298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299  *) ac_try_echo=$ac_try;;
4300esac
4301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4302$as_echo "$ac_try_echo") >&5
4303  (eval "$ac_compile") 2>conftest.er1
4304  ac_status=$?
4305  grep -v '^ *+' conftest.er1 >conftest.err
4306  rm -f conftest.er1
4307  cat conftest.err >&5
4308  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309  (exit $ac_status); } && {
4310	 test -z "$ac_cxx_werror_flag" ||
4311	 test ! -s conftest.err
4312       } && test -s conftest.$ac_objext; then
4313  ac_cv_prog_cxx_g=yes
4314else
4315  $as_echo "$as_me: failed program was:" >&5
4316sed 's/^/| /' conftest.$ac_ext >&5
4317
4318	CXXFLAGS=""
4319      cat >conftest.$ac_ext <<_ACEOF
4320/* confdefs.h.  */
4321_ACEOF
4322cat confdefs.h >>conftest.$ac_ext
4323cat >>conftest.$ac_ext <<_ACEOF
4324/* end confdefs.h.  */
4325
4326int
4327main ()
4328{
4329
4330  ;
4331  return 0;
4332}
4333_ACEOF
4334rm -f conftest.$ac_objext
4335if { (ac_try="$ac_compile"
4336case "(($ac_try" in
4337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338  *) ac_try_echo=$ac_try;;
4339esac
4340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4341$as_echo "$ac_try_echo") >&5
4342  (eval "$ac_compile") 2>conftest.er1
4343  ac_status=$?
4344  grep -v '^ *+' conftest.er1 >conftest.err
4345  rm -f conftest.er1
4346  cat conftest.err >&5
4347  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348  (exit $ac_status); } && {
4349	 test -z "$ac_cxx_werror_flag" ||
4350	 test ! -s conftest.err
4351       } && test -s conftest.$ac_objext; then
4352  :
4353else
4354  $as_echo "$as_me: failed program was:" >&5
4355sed 's/^/| /' conftest.$ac_ext >&5
4356
4357	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4358	 CXXFLAGS="-g"
4359	 cat >conftest.$ac_ext <<_ACEOF
4360/* confdefs.h.  */
4361_ACEOF
4362cat confdefs.h >>conftest.$ac_ext
4363cat >>conftest.$ac_ext <<_ACEOF
4364/* end confdefs.h.  */
4365
4366int
4367main ()
4368{
4369
4370  ;
4371  return 0;
4372}
4373_ACEOF
4374rm -f conftest.$ac_objext
4375if { (ac_try="$ac_compile"
4376case "(($ac_try" in
4377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378  *) ac_try_echo=$ac_try;;
4379esac
4380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4381$as_echo "$ac_try_echo") >&5
4382  (eval "$ac_compile") 2>conftest.er1
4383  ac_status=$?
4384  grep -v '^ *+' conftest.er1 >conftest.err
4385  rm -f conftest.er1
4386  cat conftest.err >&5
4387  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388  (exit $ac_status); } && {
4389	 test -z "$ac_cxx_werror_flag" ||
4390	 test ! -s conftest.err
4391       } && test -s conftest.$ac_objext; then
4392  ac_cv_prog_cxx_g=yes
4393else
4394  $as_echo "$as_me: failed program was:" >&5
4395sed 's/^/| /' conftest.$ac_ext >&5
4396
4397
4398fi
4399
4400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401fi
4402
4403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404fi
4405
4406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4408fi
4409{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4410$as_echo "$ac_cv_prog_cxx_g" >&6; }
4411if test "$ac_test_CXXFLAGS" = set; then
4412  CXXFLAGS=$ac_save_CXXFLAGS
4413elif test $ac_cv_prog_cxx_g = yes; then
4414  if test "$GXX" = yes; then
4415    CXXFLAGS="-g -O2"
4416  else
4417    CXXFLAGS="-g"
4418  fi
4419else
4420  if test "$GXX" = yes; then
4421    CXXFLAGS="-O2"
4422  else
4423    CXXFLAGS=
4424  fi
4425fi
4426ac_ext=c
4427ac_cpp='$CPP $CPPFLAGS'
4428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4430ac_compiler_gnu=$ac_cv_c_compiler_gnu
4431
4432depcc="$CXX"  am_compiler_list=
4433
4434{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4435$as_echo_n "checking dependency style of $depcc... " >&6; }
4436if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4437  $as_echo_n "(cached) " >&6
4438else
4439  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4440  # We make a subdir and do the tests there.  Otherwise we can end up
4441  # making bogus files that we don't know about and never remove.  For
4442  # instance it was reported that on HP-UX the gcc test will end up
4443  # making a dummy file named `D' -- because `-MD' means `put the output
4444  # in D'.
4445  mkdir conftest.dir
4446  # Copy depcomp to subdir because otherwise we won't find it if we're
4447  # using a relative directory.
4448  cp "$am_depcomp" conftest.dir
4449  cd conftest.dir
4450  # We will build objects and dependencies in a subdirectory because
4451  # it helps to detect inapplicable dependency modes.  For instance
4452  # both Tru64's cc and ICC support -MD to output dependencies as a
4453  # side effect of compilation, but ICC will put the dependencies in
4454  # the current directory while Tru64 will put them in the object
4455  # directory.
4456  mkdir sub
4457
4458  am_cv_CXX_dependencies_compiler_type=none
4459  if test "$am_compiler_list" = ""; then
4460     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4461  fi
4462  am__universal=false
4463  case " $depcc " in #(
4464     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4465     esac
4466
4467  for depmode in $am_compiler_list; do
4468    # Setup a source with many dependencies, because some compilers
4469    # like to wrap large dependency lists on column 80 (with \), and
4470    # we should not choose a depcomp mode which is confused by this.
4471    #
4472    # We need to recreate these files for each test, as the compiler may
4473    # overwrite some of them when testing with obscure command lines.
4474    # This happens at least with the AIX C compiler.
4475    : > sub/conftest.c
4476    for i in 1 2 3 4 5 6; do
4477      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4478      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4479      # Solaris 8's {/usr,}/bin/sh.
4480      touch sub/conftst$i.h
4481    done
4482    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4483
4484    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4485    # mode.  It turns out that the SunPro C++ compiler does not properly
4486    # handle `-M -o', and we need to detect this.  Also, some Intel
4487    # versions had trouble with output in subdirs
4488    am__obj=sub/conftest.${OBJEXT-o}
4489    am__minus_obj="-o $am__obj"
4490    case $depmode in
4491    gcc)
4492      # This depmode causes a compiler race in universal mode.
4493      test "$am__universal" = false || continue
4494      ;;
4495    nosideeffect)
4496      # after this tag, mechanisms are not by side-effect, so they'll
4497      # only be used when explicitly requested
4498      if test "x$enable_dependency_tracking" = xyes; then
4499	continue
4500      else
4501	break
4502      fi
4503      ;;
4504    msvisualcpp | msvcmsys)
4505      # This compiler won't grok `-c -o', but also, the minuso test has
4506      # not run yet.  These depmodes are late enough in the game, and
4507      # so weak that their functioning should not be impacted.
4508      am__obj=conftest.${OBJEXT-o}
4509      am__minus_obj=
4510      ;;
4511    none) break ;;
4512    esac
4513    if depmode=$depmode \
4514       source=sub/conftest.c object=$am__obj \
4515       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4516       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4517         >/dev/null 2>conftest.err &&
4518       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4519       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4520       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4521       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4522      # icc doesn't choke on unknown options, it will just issue warnings
4523      # or remarks (even with -Werror).  So we grep stderr for any message
4524      # that says an option was ignored or not supported.
4525      # When given -MP, icc 7.0 and 7.1 complain thusly:
4526      #   icc: Command line warning: ignoring option '-M'; no argument required
4527      # The diagnosis changed in icc 8.0:
4528      #   icc: Command line remark: option '-MP' not supported
4529      if (grep 'ignoring option' conftest.err ||
4530          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4531        am_cv_CXX_dependencies_compiler_type=$depmode
4532        break
4533      fi
4534    fi
4535  done
4536
4537  cd ..
4538  rm -rf conftest.dir
4539else
4540  am_cv_CXX_dependencies_compiler_type=none
4541fi
4542
4543fi
4544{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4545$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4546CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4547
4548 if
4549  test "x$enable_dependency_tracking" != xno \
4550  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4551  am__fastdepCXX_TRUE=
4552  am__fastdepCXX_FALSE='#'
4553else
4554  am__fastdepCXX_TRUE='#'
4555  am__fastdepCXX_FALSE=
4556fi
4557
4558
4559
4560ac_ext=c
4561ac_cpp='$CPP $CPPFLAGS'
4562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4564ac_compiler_gnu=$ac_cv_c_compiler_gnu
4565{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4566$as_echo_n "checking how to run the C preprocessor... " >&6; }
4567# On Suns, sometimes $CPP names a directory.
4568if test -n "$CPP" && test -d "$CPP"; then
4569  CPP=
4570fi
4571if test -z "$CPP"; then
4572  if test "${ac_cv_prog_CPP+set}" = set; then
4573  $as_echo_n "(cached) " >&6
4574else
4575      # Double quotes because CPP needs to be expanded
4576    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4577    do
4578      ac_preproc_ok=false
4579for ac_c_preproc_warn_flag in '' yes
4580do
4581  # Use a header file that comes with gcc, so configuring glibc
4582  # with a fresh cross-compiler works.
4583  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4584  # <limits.h> exists even on freestanding compilers.
4585  # On the NeXT, cc -E runs the code through the compiler's parser,
4586  # not just through cpp. "Syntax error" is here to catch this case.
4587  cat >conftest.$ac_ext <<_ACEOF
4588/* confdefs.h.  */
4589_ACEOF
4590cat confdefs.h >>conftest.$ac_ext
4591cat >>conftest.$ac_ext <<_ACEOF
4592/* end confdefs.h.  */
4593#ifdef __STDC__
4594# include <limits.h>
4595#else
4596# include <assert.h>
4597#endif
4598		     Syntax error
4599_ACEOF
4600if { (ac_try="$ac_cpp conftest.$ac_ext"
4601case "(($ac_try" in
4602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603  *) ac_try_echo=$ac_try;;
4604esac
4605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4606$as_echo "$ac_try_echo") >&5
4607  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4608  ac_status=$?
4609  grep -v '^ *+' conftest.er1 >conftest.err
4610  rm -f conftest.er1
4611  cat conftest.err >&5
4612  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613  (exit $ac_status); } >/dev/null && {
4614	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4615	 test ! -s conftest.err
4616       }; then
4617  :
4618else
4619  $as_echo "$as_me: failed program was:" >&5
4620sed 's/^/| /' conftest.$ac_ext >&5
4621
4622  # Broken: fails on valid input.
4623continue
4624fi
4625
4626rm -f conftest.err conftest.$ac_ext
4627
4628  # OK, works on sane cases.  Now check whether nonexistent headers
4629  # can be detected and how.
4630  cat >conftest.$ac_ext <<_ACEOF
4631/* confdefs.h.  */
4632_ACEOF
4633cat confdefs.h >>conftest.$ac_ext
4634cat >>conftest.$ac_ext <<_ACEOF
4635/* end confdefs.h.  */
4636#include <ac_nonexistent.h>
4637_ACEOF
4638if { (ac_try="$ac_cpp conftest.$ac_ext"
4639case "(($ac_try" in
4640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641  *) ac_try_echo=$ac_try;;
4642esac
4643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4644$as_echo "$ac_try_echo") >&5
4645  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4646  ac_status=$?
4647  grep -v '^ *+' conftest.er1 >conftest.err
4648  rm -f conftest.er1
4649  cat conftest.err >&5
4650  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651  (exit $ac_status); } >/dev/null && {
4652	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4653	 test ! -s conftest.err
4654       }; then
4655  # Broken: success on invalid input.
4656continue
4657else
4658  $as_echo "$as_me: failed program was:" >&5
4659sed 's/^/| /' conftest.$ac_ext >&5
4660
4661  # Passes both tests.
4662ac_preproc_ok=:
4663break
4664fi
4665
4666rm -f conftest.err conftest.$ac_ext
4667
4668done
4669# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4670rm -f conftest.err conftest.$ac_ext
4671if $ac_preproc_ok; then
4672  break
4673fi
4674
4675    done
4676    ac_cv_prog_CPP=$CPP
4677
4678fi
4679  CPP=$ac_cv_prog_CPP
4680else
4681  ac_cv_prog_CPP=$CPP
4682fi
4683{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4684$as_echo "$CPP" >&6; }
4685ac_preproc_ok=false
4686for ac_c_preproc_warn_flag in '' yes
4687do
4688  # Use a header file that comes with gcc, so configuring glibc
4689  # with a fresh cross-compiler works.
4690  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4691  # <limits.h> exists even on freestanding compilers.
4692  # On the NeXT, cc -E runs the code through the compiler's parser,
4693  # not just through cpp. "Syntax error" is here to catch this case.
4694  cat >conftest.$ac_ext <<_ACEOF
4695/* confdefs.h.  */
4696_ACEOF
4697cat confdefs.h >>conftest.$ac_ext
4698cat >>conftest.$ac_ext <<_ACEOF
4699/* end confdefs.h.  */
4700#ifdef __STDC__
4701# include <limits.h>
4702#else
4703# include <assert.h>
4704#endif
4705		     Syntax error
4706_ACEOF
4707if { (ac_try="$ac_cpp conftest.$ac_ext"
4708case "(($ac_try" in
4709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710  *) ac_try_echo=$ac_try;;
4711esac
4712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4713$as_echo "$ac_try_echo") >&5
4714  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4715  ac_status=$?
4716  grep -v '^ *+' conftest.er1 >conftest.err
4717  rm -f conftest.er1
4718  cat conftest.err >&5
4719  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720  (exit $ac_status); } >/dev/null && {
4721	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4722	 test ! -s conftest.err
4723       }; then
4724  :
4725else
4726  $as_echo "$as_me: failed program was:" >&5
4727sed 's/^/| /' conftest.$ac_ext >&5
4728
4729  # Broken: fails on valid input.
4730continue
4731fi
4732
4733rm -f conftest.err conftest.$ac_ext
4734
4735  # OK, works on sane cases.  Now check whether nonexistent headers
4736  # can be detected and how.
4737  cat >conftest.$ac_ext <<_ACEOF
4738/* confdefs.h.  */
4739_ACEOF
4740cat confdefs.h >>conftest.$ac_ext
4741cat >>conftest.$ac_ext <<_ACEOF
4742/* end confdefs.h.  */
4743#include <ac_nonexistent.h>
4744_ACEOF
4745if { (ac_try="$ac_cpp conftest.$ac_ext"
4746case "(($ac_try" in
4747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748  *) ac_try_echo=$ac_try;;
4749esac
4750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4751$as_echo "$ac_try_echo") >&5
4752  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4753  ac_status=$?
4754  grep -v '^ *+' conftest.er1 >conftest.err
4755  rm -f conftest.er1
4756  cat conftest.err >&5
4757  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758  (exit $ac_status); } >/dev/null && {
4759	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4760	 test ! -s conftest.err
4761       }; then
4762  # Broken: success on invalid input.
4763continue
4764else
4765  $as_echo "$as_me: failed program was:" >&5
4766sed 's/^/| /' conftest.$ac_ext >&5
4767
4768  # Passes both tests.
4769ac_preproc_ok=:
4770break
4771fi
4772
4773rm -f conftest.err conftest.$ac_ext
4774
4775done
4776# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4777rm -f conftest.err conftest.$ac_ext
4778if $ac_preproc_ok; then
4779  :
4780else
4781  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4782$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4783{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4784See \`config.log' for more details." >&5
4785$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4786See \`config.log' for more details." >&2;}
4787   { (exit 1); exit 1; }; }; }
4788fi
4789
4790ac_ext=c
4791ac_cpp='$CPP $CPPFLAGS'
4792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794ac_compiler_gnu=$ac_cv_c_compiler_gnu
4795
4796
4797{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4798$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4799if test "${ac_cv_path_GREP+set}" = set; then
4800  $as_echo_n "(cached) " >&6
4801else
4802  if test -z "$GREP"; then
4803  ac_path_GREP_found=false
4804  # Loop through the user's path and test for each of PROGNAME-LIST
4805  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4807do
4808  IFS=$as_save_IFS
4809  test -z "$as_dir" && as_dir=.
4810  for ac_prog in grep ggrep; do
4811    for ac_exec_ext in '' $ac_executable_extensions; do
4812      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4813      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4814# Check for GNU ac_path_GREP and select it if it is found.
4815  # Check for GNU $ac_path_GREP
4816case `"$ac_path_GREP" --version 2>&1` in
4817*GNU*)
4818  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4819*)
4820  ac_count=0
4821  $as_echo_n 0123456789 >"conftest.in"
4822  while :
4823  do
4824    cat "conftest.in" "conftest.in" >"conftest.tmp"
4825    mv "conftest.tmp" "conftest.in"
4826    cp "conftest.in" "conftest.nl"
4827    $as_echo 'GREP' >> "conftest.nl"
4828    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4829    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4830    ac_count=`expr $ac_count + 1`
4831    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4832      # Best one so far, save it but keep looking for a better one
4833      ac_cv_path_GREP="$ac_path_GREP"
4834      ac_path_GREP_max=$ac_count
4835    fi
4836    # 10*(2^10) chars as input seems more than enough
4837    test $ac_count -gt 10 && break
4838  done
4839  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4840esac
4841
4842      $ac_path_GREP_found && break 3
4843    done
4844  done
4845done
4846IFS=$as_save_IFS
4847  if test -z "$ac_cv_path_GREP"; then
4848    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4849$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4850   { (exit 1); exit 1; }; }
4851  fi
4852else
4853  ac_cv_path_GREP=$GREP
4854fi
4855
4856fi
4857{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4858$as_echo "$ac_cv_path_GREP" >&6; }
4859 GREP="$ac_cv_path_GREP"
4860
4861
4862{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4863$as_echo_n "checking for egrep... " >&6; }
4864if test "${ac_cv_path_EGREP+set}" = set; then
4865  $as_echo_n "(cached) " >&6
4866else
4867  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4868   then ac_cv_path_EGREP="$GREP -E"
4869   else
4870     if test -z "$EGREP"; then
4871  ac_path_EGREP_found=false
4872  # Loop through the user's path and test for each of PROGNAME-LIST
4873  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4875do
4876  IFS=$as_save_IFS
4877  test -z "$as_dir" && as_dir=.
4878  for ac_prog in egrep; do
4879    for ac_exec_ext in '' $ac_executable_extensions; do
4880      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4881      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4882# Check for GNU ac_path_EGREP and select it if it is found.
4883  # Check for GNU $ac_path_EGREP
4884case `"$ac_path_EGREP" --version 2>&1` in
4885*GNU*)
4886  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4887*)
4888  ac_count=0
4889  $as_echo_n 0123456789 >"conftest.in"
4890  while :
4891  do
4892    cat "conftest.in" "conftest.in" >"conftest.tmp"
4893    mv "conftest.tmp" "conftest.in"
4894    cp "conftest.in" "conftest.nl"
4895    $as_echo 'EGREP' >> "conftest.nl"
4896    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4897    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4898    ac_count=`expr $ac_count + 1`
4899    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4900      # Best one so far, save it but keep looking for a better one
4901      ac_cv_path_EGREP="$ac_path_EGREP"
4902      ac_path_EGREP_max=$ac_count
4903    fi
4904    # 10*(2^10) chars as input seems more than enough
4905    test $ac_count -gt 10 && break
4906  done
4907  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4908esac
4909
4910      $ac_path_EGREP_found && break 3
4911    done
4912  done
4913done
4914IFS=$as_save_IFS
4915  if test -z "$ac_cv_path_EGREP"; then
4916    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4917$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4918   { (exit 1); exit 1; }; }
4919  fi
4920else
4921  ac_cv_path_EGREP=$EGREP
4922fi
4923
4924   fi
4925fi
4926{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4927$as_echo "$ac_cv_path_EGREP" >&6; }
4928 EGREP="$ac_cv_path_EGREP"
4929
4930
4931{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4932$as_echo_n "checking for ANSI C header files... " >&6; }
4933if test "${ac_cv_header_stdc+set}" = set; then
4934  $as_echo_n "(cached) " >&6
4935else
4936  cat >conftest.$ac_ext <<_ACEOF
4937/* confdefs.h.  */
4938_ACEOF
4939cat confdefs.h >>conftest.$ac_ext
4940cat >>conftest.$ac_ext <<_ACEOF
4941/* end confdefs.h.  */
4942#include <stdlib.h>
4943#include <stdarg.h>
4944#include <string.h>
4945#include <float.h>
4946
4947int
4948main ()
4949{
4950
4951  ;
4952  return 0;
4953}
4954_ACEOF
4955rm -f conftest.$ac_objext
4956if { (ac_try="$ac_compile"
4957case "(($ac_try" in
4958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4959  *) ac_try_echo=$ac_try;;
4960esac
4961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4962$as_echo "$ac_try_echo") >&5
4963  (eval "$ac_compile") 2>conftest.er1
4964  ac_status=$?
4965  grep -v '^ *+' conftest.er1 >conftest.err
4966  rm -f conftest.er1
4967  cat conftest.err >&5
4968  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969  (exit $ac_status); } && {
4970	 test -z "$ac_c_werror_flag" ||
4971	 test ! -s conftest.err
4972       } && test -s conftest.$ac_objext; then
4973  ac_cv_header_stdc=yes
4974else
4975  $as_echo "$as_me: failed program was:" >&5
4976sed 's/^/| /' conftest.$ac_ext >&5
4977
4978	ac_cv_header_stdc=no
4979fi
4980
4981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4982
4983if test $ac_cv_header_stdc = yes; then
4984  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4985  cat >conftest.$ac_ext <<_ACEOF
4986/* confdefs.h.  */
4987_ACEOF
4988cat confdefs.h >>conftest.$ac_ext
4989cat >>conftest.$ac_ext <<_ACEOF
4990/* end confdefs.h.  */
4991#include <string.h>
4992
4993_ACEOF
4994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4995  $EGREP "memchr" >/dev/null 2>&1; then
4996  :
4997else
4998  ac_cv_header_stdc=no
4999fi
5000rm -f conftest*
5001
5002fi
5003
5004if test $ac_cv_header_stdc = yes; then
5005  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5006  cat >conftest.$ac_ext <<_ACEOF
5007/* confdefs.h.  */
5008_ACEOF
5009cat confdefs.h >>conftest.$ac_ext
5010cat >>conftest.$ac_ext <<_ACEOF
5011/* end confdefs.h.  */
5012#include <stdlib.h>
5013
5014_ACEOF
5015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5016  $EGREP "free" >/dev/null 2>&1; then
5017  :
5018else
5019  ac_cv_header_stdc=no
5020fi
5021rm -f conftest*
5022
5023fi
5024
5025if test $ac_cv_header_stdc = yes; then
5026  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5027  if test "$cross_compiling" = yes; then
5028  :
5029else
5030  cat >conftest.$ac_ext <<_ACEOF
5031/* confdefs.h.  */
5032_ACEOF
5033cat confdefs.h >>conftest.$ac_ext
5034cat >>conftest.$ac_ext <<_ACEOF
5035/* end confdefs.h.  */
5036#include <ctype.h>
5037#include <stdlib.h>
5038#if ((' ' & 0x0FF) == 0x020)
5039# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5040# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5041#else
5042# define ISLOWER(c) \
5043		   (('a' <= (c) && (c) <= 'i') \
5044		     || ('j' <= (c) && (c) <= 'r') \
5045		     || ('s' <= (c) && (c) <= 'z'))
5046# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5047#endif
5048
5049#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5050int
5051main ()
5052{
5053  int i;
5054  for (i = 0; i < 256; i++)
5055    if (XOR (islower (i), ISLOWER (i))
5056	|| toupper (i) != TOUPPER (i))
5057      return 2;
5058  return 0;
5059}
5060_ACEOF
5061rm -f conftest$ac_exeext
5062if { (ac_try="$ac_link"
5063case "(($ac_try" in
5064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065  *) ac_try_echo=$ac_try;;
5066esac
5067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5068$as_echo "$ac_try_echo") >&5
5069  (eval "$ac_link") 2>&5
5070  ac_status=$?
5071  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5073  { (case "(($ac_try" in
5074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075  *) ac_try_echo=$ac_try;;
5076esac
5077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5078$as_echo "$ac_try_echo") >&5
5079  (eval "$ac_try") 2>&5
5080  ac_status=$?
5081  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082  (exit $ac_status); }; }; then
5083  :
5084else
5085  $as_echo "$as_me: program exited with status $ac_status" >&5
5086$as_echo "$as_me: failed program was:" >&5
5087sed 's/^/| /' conftest.$ac_ext >&5
5088
5089( exit $ac_status )
5090ac_cv_header_stdc=no
5091fi
5092rm -rf conftest.dSYM
5093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5094fi
5095
5096
5097fi
5098fi
5099{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5100$as_echo "$ac_cv_header_stdc" >&6; }
5101if test $ac_cv_header_stdc = yes; then
5102
5103cat >>confdefs.h <<\_ACEOF
5104#define STDC_HEADERS 1
5105_ACEOF
5106
5107fi
5108
5109# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5120		  inttypes.h stdint.h unistd.h
5121do
5122as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5123{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5124$as_echo_n "checking for $ac_header... " >&6; }
5125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5126  $as_echo_n "(cached) " >&6
5127else
5128  cat >conftest.$ac_ext <<_ACEOF
5129/* confdefs.h.  */
5130_ACEOF
5131cat confdefs.h >>conftest.$ac_ext
5132cat >>conftest.$ac_ext <<_ACEOF
5133/* end confdefs.h.  */
5134$ac_includes_default
5135
5136#include <$ac_header>
5137_ACEOF
5138rm -f conftest.$ac_objext
5139if { (ac_try="$ac_compile"
5140case "(($ac_try" in
5141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142  *) ac_try_echo=$ac_try;;
5143esac
5144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5145$as_echo "$ac_try_echo") >&5
5146  (eval "$ac_compile") 2>conftest.er1
5147  ac_status=$?
5148  grep -v '^ *+' conftest.er1 >conftest.err
5149  rm -f conftest.er1
5150  cat conftest.err >&5
5151  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152  (exit $ac_status); } && {
5153	 test -z "$ac_c_werror_flag" ||
5154	 test ! -s conftest.err
5155       } && test -s conftest.$ac_objext; then
5156  eval "$as_ac_Header=yes"
5157else
5158  $as_echo "$as_me: failed program was:" >&5
5159sed 's/^/| /' conftest.$ac_ext >&5
5160
5161	eval "$as_ac_Header=no"
5162fi
5163
5164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165fi
5166ac_res=`eval 'as_val=${'$as_ac_Header'}
5167		 $as_echo "$as_val"'`
5168	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5169$as_echo "$ac_res" >&6; }
5170as_val=`eval 'as_val=${'$as_ac_Header'}
5171		 $as_echo "$as_val"'`
5172   if test "x$as_val" = x""yes; then
5173  cat >>confdefs.h <<_ACEOF
5174#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5175_ACEOF
5176
5177fi
5178
5179done
5180
5181
5182
5183  if test "${ac_cv_header_minix_config_h+set}" = set; then
5184  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5185$as_echo_n "checking for minix/config.h... " >&6; }
5186if test "${ac_cv_header_minix_config_h+set}" = set; then
5187  $as_echo_n "(cached) " >&6
5188fi
5189{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5190$as_echo "$ac_cv_header_minix_config_h" >&6; }
5191else
5192  # Is the header compilable?
5193{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5194$as_echo_n "checking minix/config.h usability... " >&6; }
5195cat >conftest.$ac_ext <<_ACEOF
5196/* confdefs.h.  */
5197_ACEOF
5198cat confdefs.h >>conftest.$ac_ext
5199cat >>conftest.$ac_ext <<_ACEOF
5200/* end confdefs.h.  */
5201$ac_includes_default
5202#include <minix/config.h>
5203_ACEOF
5204rm -f conftest.$ac_objext
5205if { (ac_try="$ac_compile"
5206case "(($ac_try" in
5207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208  *) ac_try_echo=$ac_try;;
5209esac
5210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5211$as_echo "$ac_try_echo") >&5
5212  (eval "$ac_compile") 2>conftest.er1
5213  ac_status=$?
5214  grep -v '^ *+' conftest.er1 >conftest.err
5215  rm -f conftest.er1
5216  cat conftest.err >&5
5217  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218  (exit $ac_status); } && {
5219	 test -z "$ac_c_werror_flag" ||
5220	 test ! -s conftest.err
5221       } && test -s conftest.$ac_objext; then
5222  ac_header_compiler=yes
5223else
5224  $as_echo "$as_me: failed program was:" >&5
5225sed 's/^/| /' conftest.$ac_ext >&5
5226
5227	ac_header_compiler=no
5228fi
5229
5230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5232$as_echo "$ac_header_compiler" >&6; }
5233
5234# Is the header present?
5235{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5236$as_echo_n "checking minix/config.h presence... " >&6; }
5237cat >conftest.$ac_ext <<_ACEOF
5238/* confdefs.h.  */
5239_ACEOF
5240cat confdefs.h >>conftest.$ac_ext
5241cat >>conftest.$ac_ext <<_ACEOF
5242/* end confdefs.h.  */
5243#include <minix/config.h>
5244_ACEOF
5245if { (ac_try="$ac_cpp conftest.$ac_ext"
5246case "(($ac_try" in
5247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5248  *) ac_try_echo=$ac_try;;
5249esac
5250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5251$as_echo "$ac_try_echo") >&5
5252  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5253  ac_status=$?
5254  grep -v '^ *+' conftest.er1 >conftest.err
5255  rm -f conftest.er1
5256  cat conftest.err >&5
5257  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258  (exit $ac_status); } >/dev/null && {
5259	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5260	 test ! -s conftest.err
5261       }; then
5262  ac_header_preproc=yes
5263else
5264  $as_echo "$as_me: failed program was:" >&5
5265sed 's/^/| /' conftest.$ac_ext >&5
5266
5267  ac_header_preproc=no
5268fi
5269
5270rm -f conftest.err conftest.$ac_ext
5271{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5272$as_echo "$ac_header_preproc" >&6; }
5273
5274# So?  What about this header?
5275case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5276  yes:no: )
5277    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5278$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5279    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5280$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5281    ac_header_preproc=yes
5282    ;;
5283  no:yes:* )
5284    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5285$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5286    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
5287$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
5288    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5289$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5290    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
5291$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5292    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5293$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5294    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5295$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5296    ( cat <<\_ASBOX
5297## ----------------------------------------------------------- ##
5298## Report this to avahi (at) lists (dot) freedesktop (dot) org ##
5299## ----------------------------------------------------------- ##
5300_ASBOX
5301     ) | sed "s/^/$as_me: WARNING:     /" >&2
5302    ;;
5303esac
5304{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5305$as_echo_n "checking for minix/config.h... " >&6; }
5306if test "${ac_cv_header_minix_config_h+set}" = set; then
5307  $as_echo_n "(cached) " >&6
5308else
5309  ac_cv_header_minix_config_h=$ac_header_preproc
5310fi
5311{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5312$as_echo "$ac_cv_header_minix_config_h" >&6; }
5313
5314fi
5315if test "x$ac_cv_header_minix_config_h" = x""yes; then
5316  MINIX=yes
5317else
5318  MINIX=
5319fi
5320
5321
5322  if test "$MINIX" = yes; then
5323
5324cat >>confdefs.h <<\_ACEOF
5325#define _POSIX_SOURCE 1
5326_ACEOF
5327
5328
5329cat >>confdefs.h <<\_ACEOF
5330#define _POSIX_1_SOURCE 2
5331_ACEOF
5332
5333
5334cat >>confdefs.h <<\_ACEOF
5335#define _MINIX 1
5336_ACEOF
5337
5338  fi
5339
5340
5341
5342  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5343$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5344if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5345  $as_echo_n "(cached) " >&6
5346else
5347  cat >conftest.$ac_ext <<_ACEOF
5348/* confdefs.h.  */
5349_ACEOF
5350cat confdefs.h >>conftest.$ac_ext
5351cat >>conftest.$ac_ext <<_ACEOF
5352/* end confdefs.h.  */
5353
5354#	  define __EXTENSIONS__ 1
5355	  $ac_includes_default
5356int
5357main ()
5358{
5359
5360  ;
5361  return 0;
5362}
5363_ACEOF
5364rm -f conftest.$ac_objext
5365if { (ac_try="$ac_compile"
5366case "(($ac_try" in
5367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368  *) ac_try_echo=$ac_try;;
5369esac
5370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5371$as_echo "$ac_try_echo") >&5
5372  (eval "$ac_compile") 2>conftest.er1
5373  ac_status=$?
5374  grep -v '^ *+' conftest.er1 >conftest.err
5375  rm -f conftest.er1
5376  cat conftest.err >&5
5377  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378  (exit $ac_status); } && {
5379	 test -z "$ac_c_werror_flag" ||
5380	 test ! -s conftest.err
5381       } && test -s conftest.$ac_objext; then
5382  ac_cv_safe_to_define___extensions__=yes
5383else
5384  $as_echo "$as_me: failed program was:" >&5
5385sed 's/^/| /' conftest.$ac_ext >&5
5386
5387	ac_cv_safe_to_define___extensions__=no
5388fi
5389
5390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391fi
5392{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5393$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5394  test $ac_cv_safe_to_define___extensions__ = yes &&
5395    cat >>confdefs.h <<\_ACEOF
5396#define __EXTENSIONS__ 1
5397_ACEOF
5398
5399  cat >>confdefs.h <<\_ACEOF
5400#define _ALL_SOURCE 1
5401_ACEOF
5402
5403  cat >>confdefs.h <<\_ACEOF
5404#define _GNU_SOURCE 1
5405_ACEOF
5406
5407  cat >>confdefs.h <<\_ACEOF
5408#define _POSIX_PTHREAD_SEMANTICS 1
5409_ACEOF
5410
5411  cat >>confdefs.h <<\_ACEOF
5412#define _TANDEM_SOURCE 1
5413_ACEOF
5414
5415
5416ac_ext=c
5417ac_cpp='$CPP $CPPFLAGS'
5418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5420ac_compiler_gnu=$ac_cv_c_compiler_gnu
5421{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5422$as_echo_n "checking how to run the C preprocessor... " >&6; }
5423# On Suns, sometimes $CPP names a directory.
5424if test -n "$CPP" && test -d "$CPP"; then
5425  CPP=
5426fi
5427if test -z "$CPP"; then
5428  if test "${ac_cv_prog_CPP+set}" = set; then
5429  $as_echo_n "(cached) " >&6
5430else
5431      # Double quotes because CPP needs to be expanded
5432    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5433    do
5434      ac_preproc_ok=false
5435for ac_c_preproc_warn_flag in '' yes
5436do
5437  # Use a header file that comes with gcc, so configuring glibc
5438  # with a fresh cross-compiler works.
5439  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5440  # <limits.h> exists even on freestanding compilers.
5441  # On the NeXT, cc -E runs the code through the compiler's parser,
5442  # not just through cpp. "Syntax error" is here to catch this case.
5443  cat >conftest.$ac_ext <<_ACEOF
5444/* confdefs.h.  */
5445_ACEOF
5446cat confdefs.h >>conftest.$ac_ext
5447cat >>conftest.$ac_ext <<_ACEOF
5448/* end confdefs.h.  */
5449#ifdef __STDC__
5450# include <limits.h>
5451#else
5452# include <assert.h>
5453#endif
5454		     Syntax error
5455_ACEOF
5456if { (ac_try="$ac_cpp conftest.$ac_ext"
5457case "(($ac_try" in
5458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459  *) ac_try_echo=$ac_try;;
5460esac
5461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5462$as_echo "$ac_try_echo") >&5
5463  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5464  ac_status=$?
5465  grep -v '^ *+' conftest.er1 >conftest.err
5466  rm -f conftest.er1
5467  cat conftest.err >&5
5468  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469  (exit $ac_status); } >/dev/null && {
5470	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5471	 test ! -s conftest.err
5472       }; then
5473  :
5474else
5475  $as_echo "$as_me: failed program was:" >&5
5476sed 's/^/| /' conftest.$ac_ext >&5
5477
5478  # Broken: fails on valid input.
5479continue
5480fi
5481
5482rm -f conftest.err conftest.$ac_ext
5483
5484  # OK, works on sane cases.  Now check whether nonexistent headers
5485  # can be detected and how.
5486  cat >conftest.$ac_ext <<_ACEOF
5487/* confdefs.h.  */
5488_ACEOF
5489cat confdefs.h >>conftest.$ac_ext
5490cat >>conftest.$ac_ext <<_ACEOF
5491/* end confdefs.h.  */
5492#include <ac_nonexistent.h>
5493_ACEOF
5494if { (ac_try="$ac_cpp conftest.$ac_ext"
5495case "(($ac_try" in
5496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497  *) ac_try_echo=$ac_try;;
5498esac
5499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5500$as_echo "$ac_try_echo") >&5
5501  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5502  ac_status=$?
5503  grep -v '^ *+' conftest.er1 >conftest.err
5504  rm -f conftest.er1
5505  cat conftest.err >&5
5506  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507  (exit $ac_status); } >/dev/null && {
5508	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5509	 test ! -s conftest.err
5510       }; then
5511  # Broken: success on invalid input.
5512continue
5513else
5514  $as_echo "$as_me: failed program was:" >&5
5515sed 's/^/| /' conftest.$ac_ext >&5
5516
5517  # Passes both tests.
5518ac_preproc_ok=:
5519break
5520fi
5521
5522rm -f conftest.err conftest.$ac_ext
5523
5524done
5525# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5526rm -f conftest.err conftest.$ac_ext
5527if $ac_preproc_ok; then
5528  break
5529fi
5530
5531    done
5532    ac_cv_prog_CPP=$CPP
5533
5534fi
5535  CPP=$ac_cv_prog_CPP
5536else
5537  ac_cv_prog_CPP=$CPP
5538fi
5539{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5540$as_echo "$CPP" >&6; }
5541ac_preproc_ok=false
5542for ac_c_preproc_warn_flag in '' yes
5543do
5544  # Use a header file that comes with gcc, so configuring glibc
5545  # with a fresh cross-compiler works.
5546  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5547  # <limits.h> exists even on freestanding compilers.
5548  # On the NeXT, cc -E runs the code through the compiler's parser,
5549  # not just through cpp. "Syntax error" is here to catch this case.
5550  cat >conftest.$ac_ext <<_ACEOF
5551/* confdefs.h.  */
5552_ACEOF
5553cat confdefs.h >>conftest.$ac_ext
5554cat >>conftest.$ac_ext <<_ACEOF
5555/* end confdefs.h.  */
5556#ifdef __STDC__
5557# include <limits.h>
5558#else
5559# include <assert.h>
5560#endif
5561		     Syntax error
5562_ACEOF
5563if { (ac_try="$ac_cpp conftest.$ac_ext"
5564case "(($ac_try" in
5565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566  *) ac_try_echo=$ac_try;;
5567esac
5568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5569$as_echo "$ac_try_echo") >&5
5570  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5571  ac_status=$?
5572  grep -v '^ *+' conftest.er1 >conftest.err
5573  rm -f conftest.er1
5574  cat conftest.err >&5
5575  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576  (exit $ac_status); } >/dev/null && {
5577	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5578	 test ! -s conftest.err
5579       }; then
5580  :
5581else
5582  $as_echo "$as_me: failed program was:" >&5
5583sed 's/^/| /' conftest.$ac_ext >&5
5584
5585  # Broken: fails on valid input.
5586continue
5587fi
5588
5589rm -f conftest.err conftest.$ac_ext
5590
5591  # OK, works on sane cases.  Now check whether nonexistent headers
5592  # can be detected and how.
5593  cat >conftest.$ac_ext <<_ACEOF
5594/* confdefs.h.  */
5595_ACEOF
5596cat confdefs.h >>conftest.$ac_ext
5597cat >>conftest.$ac_ext <<_ACEOF
5598/* end confdefs.h.  */
5599#include <ac_nonexistent.h>
5600_ACEOF
5601if { (ac_try="$ac_cpp conftest.$ac_ext"
5602case "(($ac_try" in
5603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604  *) ac_try_echo=$ac_try;;
5605esac
5606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5607$as_echo "$ac_try_echo") >&5
5608  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5609  ac_status=$?
5610  grep -v '^ *+' conftest.er1 >conftest.err
5611  rm -f conftest.er1
5612  cat conftest.err >&5
5613  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614  (exit $ac_status); } >/dev/null && {
5615	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5616	 test ! -s conftest.err
5617       }; then
5618  # Broken: success on invalid input.
5619continue
5620else
5621  $as_echo "$as_me: failed program was:" >&5
5622sed 's/^/| /' conftest.$ac_ext >&5
5623
5624  # Passes both tests.
5625ac_preproc_ok=:
5626break
5627fi
5628
5629rm -f conftest.err conftest.$ac_ext
5630
5631done
5632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5633rm -f conftest.err conftest.$ac_ext
5634if $ac_preproc_ok; then
5635  :
5636else
5637  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5639{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5640See \`config.log' for more details." >&5
5641$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5642See \`config.log' for more details." >&2;}
5643   { (exit 1); exit 1; }; }; }
5644fi
5645
5646ac_ext=c
5647ac_cpp='$CPP $CPPFLAGS'
5648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650ac_compiler_gnu=$ac_cv_c_compiler_gnu
5651
5652# Find a good install program.  We prefer a C program (faster),
5653# so one script is as good as another.  But avoid the broken or
5654# incompatible versions:
5655# SysV /etc/install, /usr/sbin/install
5656# SunOS /usr/etc/install
5657# IRIX /sbin/install
5658# AIX /bin/install
5659# AmigaOS /C/install, which installs bootblocks on floppy discs
5660# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5661# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5662# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5663# OS/2's system install, which has a completely different semantic
5664# ./install, which can be erroneously created by make from ./install.sh.
5665# Reject install programs that cannot install multiple files.
5666{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5667$as_echo_n "checking for a BSD-compatible install... " >&6; }
5668if test -z "$INSTALL"; then
5669if test "${ac_cv_path_install+set}" = set; then
5670  $as_echo_n "(cached) " >&6
5671else
5672  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673for as_dir in $PATH
5674do
5675  IFS=$as_save_IFS
5676  test -z "$as_dir" && as_dir=.
5677  # Account for people who put trailing slashes in PATH elements.
5678case $as_dir/ in
5679  ./ | .// | /cC/* | \
5680  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5681  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5682  /usr/ucb/* ) ;;
5683  *)
5684    # OSF1 and SCO ODT 3.0 have their own names for install.
5685    # Don't use installbsd from OSF since it installs stuff as root
5686    # by default.
5687    for ac_prog in ginstall scoinst install; do
5688      for ac_exec_ext in '' $ac_executable_extensions; do
5689	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5690	  if test $ac_prog = install &&
5691	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5692	    # AIX install.  It has an incompatible calling convention.
5693	    :
5694	  elif test $ac_prog = install &&
5695	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5696	    # program-specific install script used by HP pwplus--don't use.
5697	    :
5698	  else
5699	    rm -rf conftest.one conftest.two conftest.dir
5700	    echo one > conftest.one
5701	    echo two > conftest.two
5702	    mkdir conftest.dir
5703	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5704	      test -s conftest.one && test -s conftest.two &&
5705	      test -s conftest.dir/conftest.one &&
5706	      test -s conftest.dir/conftest.two
5707	    then
5708	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5709	      break 3
5710	    fi
5711	  fi
5712	fi
5713      done
5714    done
5715    ;;
5716esac
5717
5718done
5719IFS=$as_save_IFS
5720
5721rm -rf conftest.one conftest.two conftest.dir
5722
5723fi
5724  if test "${ac_cv_path_install+set}" = set; then
5725    INSTALL=$ac_cv_path_install
5726  else
5727    # As a last resort, use the slow shell script.  Don't cache a
5728    # value for INSTALL within a source directory, because that will
5729    # break other packages using the cache if that directory is
5730    # removed, or if the value is a relative name.
5731    INSTALL=$ac_install_sh
5732  fi
5733fi
5734{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5735$as_echo "$INSTALL" >&6; }
5736
5737# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5738# It thinks the first close brace ends the variable substitution.
5739test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5740
5741test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5742
5743test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5744
5745{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5746$as_echo_n "checking whether ln -s works... " >&6; }
5747LN_S=$as_ln_s
5748if test "$LN_S" = "ln -s"; then
5749  { $as_echo "$as_me:$LINENO: result: yes" >&5
5750$as_echo "yes" >&6; }
5751else
5752  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5753$as_echo "no, using $LN_S" >&6; }
5754fi
5755
5756{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5757$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5758set x ${MAKE-make}
5759ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5760if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5761  $as_echo_n "(cached) " >&6
5762else
5763  cat >conftest.make <<\_ACEOF
5764SHELL = /bin/sh
5765all:
5766	@echo '@@@%%%=$(MAKE)=@@@%%%'
5767_ACEOF
5768# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5769case `${MAKE-make} -f conftest.make 2>/dev/null` in
5770  *@@@%%%=?*=@@@%%%*)
5771    eval ac_cv_prog_make_${ac_make}_set=yes;;
5772  *)
5773    eval ac_cv_prog_make_${ac_make}_set=no;;
5774esac
5775rm -f conftest.make
5776fi
5777if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5778  { $as_echo "$as_me:$LINENO: result: yes" >&5
5779$as_echo "yes" >&6; }
5780  SET_MAKE=
5781else
5782  { $as_echo "$as_me:$LINENO: result: no" >&5
5783$as_echo "no" >&6; }
5784  SET_MAKE="MAKE=${MAKE-make}"
5785fi
5786
5787if test $ac_cv_c_compiler_gnu = yes; then
5788    { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5789$as_echo_n "checking whether $CC needs -traditional... " >&6; }
5790if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5791  $as_echo_n "(cached) " >&6
5792else
5793    ac_pattern="Autoconf.*'x'"
5794  cat >conftest.$ac_ext <<_ACEOF
5795/* confdefs.h.  */
5796_ACEOF
5797cat confdefs.h >>conftest.$ac_ext
5798cat >>conftest.$ac_ext <<_ACEOF
5799/* end confdefs.h.  */
5800#include <sgtty.h>
5801Autoconf TIOCGETP
5802_ACEOF
5803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5804  $EGREP "$ac_pattern" >/dev/null 2>&1; then
5805  ac_cv_prog_gcc_traditional=yes
5806else
5807  ac_cv_prog_gcc_traditional=no
5808fi
5809rm -f conftest*
5810
5811
5812  if test $ac_cv_prog_gcc_traditional = no; then
5813    cat >conftest.$ac_ext <<_ACEOF
5814/* confdefs.h.  */
5815_ACEOF
5816cat confdefs.h >>conftest.$ac_ext
5817cat >>conftest.$ac_ext <<_ACEOF
5818/* end confdefs.h.  */
5819#include <termio.h>
5820Autoconf TCGETA
5821_ACEOF
5822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5823  $EGREP "$ac_pattern" >/dev/null 2>&1; then
5824  ac_cv_prog_gcc_traditional=yes
5825fi
5826rm -f conftest*
5827
5828  fi
5829fi
5830{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5831$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5832  if test $ac_cv_prog_gcc_traditional = yes; then
5833    CC="$CC -traditional"
5834  fi
5835fi
5836
5837
5838if test "x$CC" != xcc; then
5839  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5840$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5841else
5842  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5843$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5844fi
5845set dummy $CC; ac_cc=`$as_echo "$2" |
5846		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5847if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5848  $as_echo_n "(cached) " >&6
5849else
5850  cat >conftest.$ac_ext <<_ACEOF
5851/* confdefs.h.  */
5852_ACEOF
5853cat confdefs.h >>conftest.$ac_ext
5854cat >>conftest.$ac_ext <<_ACEOF
5855/* end confdefs.h.  */
5856
5857int
5858main ()
5859{
5860
5861  ;
5862  return 0;
5863}
5864_ACEOF
5865# Make sure it works both with $CC and with simple cc.
5866# We do the test twice because some compilers refuse to overwrite an
5867# existing .o file with -o, though they will create one.
5868ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5869rm -f conftest2.*
5870if { (case "(($ac_try" in
5871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872  *) ac_try_echo=$ac_try;;
5873esac
5874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5875$as_echo "$ac_try_echo") >&5
5876  (eval "$ac_try") 2>&5
5877  ac_status=$?
5878  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879  (exit $ac_status); } &&
5880   test -f conftest2.$ac_objext && { (case "(($ac_try" in
5881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882  *) ac_try_echo=$ac_try;;
5883esac
5884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5885$as_echo "$ac_try_echo") >&5
5886  (eval "$ac_try") 2>&5
5887  ac_status=$?
5888  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889  (exit $ac_status); };
5890then
5891  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5892  if test "x$CC" != xcc; then
5893    # Test first that cc exists at all.
5894    if { ac_try='cc -c conftest.$ac_ext >&5'
5895  { (case "(($ac_try" in
5896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897  *) ac_try_echo=$ac_try;;
5898esac
5899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5900$as_echo "$ac_try_echo") >&5
5901  (eval "$ac_try") 2>&5
5902  ac_status=$?
5903  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904  (exit $ac_status); }; }; then
5905      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5906      rm -f conftest2.*
5907      if { (case "(($ac_try" in
5908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909  *) ac_try_echo=$ac_try;;
5910esac
5911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5912$as_echo "$ac_try_echo") >&5
5913  (eval "$ac_try") 2>&5
5914  ac_status=$?
5915  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916  (exit $ac_status); } &&
5917	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919  *) ac_try_echo=$ac_try;;
5920esac
5921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5922$as_echo "$ac_try_echo") >&5
5923  (eval "$ac_try") 2>&5
5924  ac_status=$?
5925  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926  (exit $ac_status); };
5927      then
5928	# cc works too.
5929	:
5930      else
5931	# cc exists but doesn't like -o.
5932	eval ac_cv_prog_cc_${ac_cc}_c_o=no
5933      fi
5934    fi
5935  fi
5936else
5937  eval ac_cv_prog_cc_${ac_cc}_c_o=no
5938fi
5939rm -f core conftest*
5940
5941fi
5942if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5943  { $as_echo "$as_me:$LINENO: result: yes" >&5
5944$as_echo "yes" >&6; }
5945else
5946  { $as_echo "$as_me:$LINENO: result: no" >&5
5947$as_echo "no" >&6; }
5948
5949cat >>confdefs.h <<\_ACEOF
5950#define NO_MINUS_C_MINUS_O 1
5951_ACEOF
5952
5953fi
5954
5955# FIXME: we rely on the cache variable name because
5956# there is no other way.
5957set dummy $CC
5958am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5959eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5960if test "$am_t" != yes; then
5961   # Losing compiler, so override with the script.
5962   # FIXME: It is wrong to rewrite CC.
5963   # But if we don't then we get into trouble of one sort or another.
5964   # A longer-term fix would be to have automake use am__CC in this case,
5965   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5966   CC="$am_aux_dir/compile $CC"
5967fi
5968
5969
5970
5971# -fstack-protector
5972# Check whether --enable-stack-protector was given.
5973if test "${enable_stack_protector+set}" = set; then
5974  enableval=$enable_stack_protector; case "${enableval}" in
5975         yes) enable_ssp=yes ;;
5976          no) enable_ssp=no ;;
5977           *) { { $as_echo "$as_me:$LINENO: error: invalid value ${enableval} for --disable-stack-protector" >&5
5978$as_echo "$as_me: error: invalid value ${enableval} for --disable-stack-protector" >&2;}
5979   { (exit 1); exit 1; }; } ;;
5980     esac
5981else
5982  enable_ssp=yes
5983fi
5984
5985
5986if test x"$enable_ssp" = x"yes" && test x"$GCC" != x"yes"; then
5987    { $as_echo "$as_me:$LINENO: Disabling stack-smashing protection because compiler is not GCC" >&5
5988$as_echo "$as_me: Disabling stack-smashing protection because compiler is not GCC" >&6;}
5989    enable_ssp=no
5990fi
5991
5992if test x"$enable_ssp" = x"yes"; then
5993    # Check for broken ssp in libc: http://www.avahi.org/ticket/105
5994    # libc's brokenness will get in the way regardless of whether -lssp is
5995    # provided, but provide it anyway (otherwise non-libc ssp would wrongly
5996    # break here)
5997
5998    # Get -lssp if it exists
5999
6000  { $as_echo "$as_me:$LINENO: checking whether libssp exists" >&5
6001$as_echo_n "checking whether libssp exists... " >&6; }
6002if test "${ssp_cv_lib+set}" = set; then
6003  $as_echo_n "(cached) " >&6
6004else
6005  ssp_old_libs="$LIBS"
6006     LIBS="$LIBS -lssp"
6007     cat >conftest.$ac_ext <<_ACEOF
6008/* confdefs.h.  */
6009_ACEOF
6010cat confdefs.h >>conftest.$ac_ext
6011cat >>conftest.$ac_ext <<_ACEOF
6012/* end confdefs.h.  */
6013
6014int
6015main ()
6016{
6017
6018  ;
6019  return 0;
6020}
6021_ACEOF
6022rm -f conftest.$ac_objext conftest$ac_exeext
6023if { (ac_try="$ac_link"
6024case "(($ac_try" in
6025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026  *) ac_try_echo=$ac_try;;
6027esac
6028eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6029$as_echo "$ac_try_echo") >&5
6030  (eval "$ac_link") 2>conftest.er1
6031  ac_status=$?
6032  grep -v '^ *+' conftest.er1 >conftest.err
6033  rm -f conftest.er1
6034  cat conftest.err >&5
6035  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036  (exit $ac_status); } && {
6037	 test -z "$ac_c_werror_flag" ||
6038	 test ! -s conftest.err
6039       } && test -s conftest$ac_exeext && {
6040	 test "$cross_compiling" = yes ||
6041	 $as_test_x conftest$ac_exeext
6042       }; then
6043  ssp_cv_lib=yes
6044else
6045  $as_echo "$as_me: failed program was:" >&5
6046sed 's/^/| /' conftest.$ac_ext >&5
6047
6048	ssp_cv_lib=no
6049fi
6050
6051rm -rf conftest.dSYM
6052rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6053      conftest$ac_exeext conftest.$ac_ext
6054     LIBS="$ssp_old_libs"
6055
6056fi
6057{ $as_echo "$as_me:$LINENO: result: $ssp_cv_lib" >&5
6058$as_echo "$ssp_cv_lib" >&6; }
6059  if test $ssp_cv_lib = yes; then
6060    LIBS="$LIBS -lssp"
6061  fi
6062
6063
6064    { $as_echo "$as_me:$LINENO: checking whether stack-smashing protection is available" >&5
6065$as_echo_n "checking whether stack-smashing protection is available... " >&6; }
6066    ssp_old_cflags="$CFLAGS"
6067    ssp_old_ldflags="$LDFLAGS"
6068    CFLAGS="$CFLAGS -Werror -fstack-protector-all -fPIC"
6069    LDFLAGS="$LDFLAGS -Wl,-z,defs"
6070    cat confdefs.h > conftest.c
6071    cat >>conftest.c <<_ACEOF
6072void test_broken_ssp(c)
6073    const char *c;
6074{
6075    char arr[123], *p; /* beware of possible double-braces if copying this */
6076    for (p = arr; *c; ++p) {
6077        *p = *c;
6078        ++c;
6079    }
6080}
6081_ACEOF
6082    rm -f conftest.o
6083
6084    if $CC -c $CFLAGS $CPPFLAGS -o conftest.o conftest.c >/dev/null 2>&1; then
6085        { $as_echo "$as_me:$LINENO: result: yes" >&5
6086$as_echo "yes" >&6; }
6087        { $as_echo "$as_me:$LINENO: checking whether stack-smashing protection is buggy" >&5
6088$as_echo_n "checking whether stack-smashing protection is buggy... " >&6; }
6089        if $CC -o conftest.so $LDFLAGS -shared conftest.o $LIBS >/dev/null 2>&1; then
6090            { $as_echo "$as_me:$LINENO: result: no" >&5
6091$as_echo "no" >&6; }
6092        else
6093            { $as_echo "$as_me:$LINENO: result: yes" >&5
6094$as_echo "yes" >&6; }
6095            enable_ssp=no
6096        fi
6097    else
6098        { $as_echo "$as_me:$LINENO: result: no" >&5
6099$as_echo "no" >&6; }
6100    fi
6101
6102    rm -f conftest.c conftest.o conftest.so
6103
6104    CFLAGS="$ssp_old_cflags"
6105    LDFLAGS="$ssp_old_ldflags"
6106fi
6107
6108if test x"$enable_ssp" = x"yes"; then
6109    # Do this the long way so we don't call GCC_STACK_PROTECT_LIB twice
6110
6111
6112  if test "X$CC" != "X"; then
6113    { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -fstack-protector" >&5
6114$as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
6115if test "${ssp_cv_cc+set}" = set; then
6116  $as_echo_n "(cached) " >&6
6117else
6118  ssp_old_cflags="$CFLAGS"
6119       CFLAGS="$CFLAGS -fstack-protector -Werror"
6120       cat >conftest.$ac_ext <<_ACEOF
6121/* confdefs.h.  */
6122_ACEOF
6123cat confdefs.h >>conftest.$ac_ext
6124cat >>conftest.$ac_ext <<_ACEOF
6125/* end confdefs.h.  */
6126
6127int
6128main ()
6129{
6130
6131  ;
6132  return 0;
6133}
6134_ACEOF
6135rm -f conftest.$ac_objext
6136if { (ac_try="$ac_compile"
6137case "(($ac_try" in
6138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139  *) ac_try_echo=$ac_try;;
6140esac
6141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6142$as_echo "$ac_try_echo") >&5
6143  (eval "$ac_compile") 2>conftest.er1
6144  ac_status=$?
6145  grep -v '^ *+' conftest.er1 >conftest.err
6146  rm -f conftest.er1
6147  cat conftest.err >&5
6148  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149  (exit $ac_status); } && {
6150	 test -z "$ac_c_werror_flag" ||
6151	 test ! -s conftest.err
6152       } && test -s conftest.$ac_objext; then
6153  ssp_cv_cc=yes
6154else
6155  $as_echo "$as_me: failed program was:" >&5
6156sed 's/^/| /' conftest.$ac_ext >&5
6157
6158	ssp_cv_cc=no
6159fi
6160
6161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162       CFLAGS="$ssp_old_cflags"
6163
6164fi
6165{ $as_echo "$as_me:$LINENO: result: $ssp_cv_cc" >&5
6166$as_echo "$ssp_cv_cc" >&6; }
6167    if test $ssp_cv_cc = yes; then
6168      CFLAGS="$CFLAGS -fstack-protector"
6169
6170cat >>confdefs.h <<\_ACEOF
6171#define ENABLE_SSP_CC 1
6172_ACEOF
6173
6174    fi
6175  fi
6176
6177
6178    ac_ext=cpp
6179ac_cpp='$CXXCPP $CPPFLAGS'
6180ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6181ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6182ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6183
6184
6185
6186
6187  if test "X$CXX" != "X"; then
6188    { $as_echo "$as_me:$LINENO: checking whether ${CXX} accepts -fstack-protector" >&5
6189$as_echo_n "checking whether ${CXX} accepts -fstack-protector... " >&6; }
6190if test "${ssp_cv_cxx+set}" = set; then
6191  $as_echo_n "(cached) " >&6
6192else
6193  ssp_old_cxxflags="$CXXFLAGS"
6194       CXXFLAGS="$CXXFLAGS -fstack-protector -Werror"
6195       cat >conftest.$ac_ext <<_ACEOF
6196/* confdefs.h.  */
6197_ACEOF
6198cat confdefs.h >>conftest.$ac_ext
6199cat >>conftest.$ac_ext <<_ACEOF
6200/* end confdefs.h.  */
6201
6202int
6203main ()
6204{
6205
6206  ;
6207  return 0;
6208}
6209_ACEOF
6210rm -f conftest.$ac_objext
6211if { (ac_try="$ac_compile"
6212case "(($ac_try" in
6213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214  *) ac_try_echo=$ac_try;;
6215esac
6216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6217$as_echo "$ac_try_echo") >&5
6218  (eval "$ac_compile") 2>conftest.er1
6219  ac_status=$?
6220  grep -v '^ *+' conftest.er1 >conftest.err
6221  rm -f conftest.er1
6222  cat conftest.err >&5
6223  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224  (exit $ac_status); } && {
6225	 test -z "$ac_cxx_werror_flag" ||
6226	 test ! -s conftest.err
6227       } && test -s conftest.$ac_objext; then
6228  ssp_cv_cxx=yes
6229else
6230  $as_echo "$as_me: failed program was:" >&5
6231sed 's/^/| /' conftest.$ac_ext >&5
6232
6233	ssp_cv_cxx=no
6234fi
6235
6236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237       CXXFLAGS="$ssp_old_cxxflags"
6238
6239fi
6240{ $as_echo "$as_me:$LINENO: result: $ssp_cv_cxx" >&5
6241$as_echo "$ssp_cv_cxx" >&6; }
6242    if test $ssp_cv_cxx = yes; then
6243      CXXFLAGS="$CXXFLAGS -fstack-protector"
6244
6245cat >>confdefs.h <<\_ACEOF
6246#define ENABLE_SSP_CXX 1
6247_ACEOF
6248
6249    fi
6250  fi
6251
6252    ac_ext=c
6253ac_cpp='$CPP $CPPFLAGS'
6254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6256ac_compiler_gnu=$ac_cv_c_compiler_gnu
6257
6258    # XXX: Update the enable_ssp value now for output later?
6259fi
6260
6261# libtool stuff
6262case `pwd` in
6263  *\ * | *\	*)
6264    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6265$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6266esac
6267
6268
6269
6270macro_version='2.2.6'
6271macro_revision='1.3012'
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285ltmain="$ac_aux_dir/ltmain.sh"
6286
6287# Make sure we can run config.sub.
6288$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6289  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6290$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6291   { (exit 1); exit 1; }; }
6292
6293{ $as_echo "$as_me:$LINENO: checking build system type" >&5
6294$as_echo_n "checking build system type... " >&6; }
6295if test "${ac_cv_build+set}" = set; then
6296  $as_echo_n "(cached) " >&6
6297else
6298  ac_build_alias=$build_alias
6299test "x$ac_build_alias" = x &&
6300  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6301test "x$ac_build_alias" = x &&
6302  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6303$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6304   { (exit 1); exit 1; }; }
6305ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6306  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6307$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6308   { (exit 1); exit 1; }; }
6309
6310fi
6311{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6312$as_echo "$ac_cv_build" >&6; }
6313case $ac_cv_build in
6314*-*-*) ;;
6315*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6316$as_echo "$as_me: error: invalid value of canonical build" >&2;}
6317   { (exit 1); exit 1; }; };;
6318esac
6319build=$ac_cv_build
6320ac_save_IFS=$IFS; IFS='-'
6321set x $ac_cv_build
6322shift
6323build_cpu=$1
6324build_vendor=$2
6325shift; shift
6326# Remember, the first character of IFS is used to create $*,
6327# except with old shells:
6328build_os=$*
6329IFS=$ac_save_IFS
6330case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6331
6332
6333{ $as_echo "$as_me:$LINENO: checking host system type" >&5
6334$as_echo_n "checking host system type... " >&6; }
6335if test "${ac_cv_host+set}" = set; then
6336  $as_echo_n "(cached) " >&6
6337else
6338  if test "x$host_alias" = x; then
6339  ac_cv_host=$ac_cv_build
6340else
6341  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6342    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6343$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6344   { (exit 1); exit 1; }; }
6345fi
6346
6347fi
6348{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6349$as_echo "$ac_cv_host" >&6; }
6350case $ac_cv_host in
6351*-*-*) ;;
6352*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6353$as_echo "$as_me: error: invalid value of canonical host" >&2;}
6354   { (exit 1); exit 1; }; };;
6355esac
6356host=$ac_cv_host
6357ac_save_IFS=$IFS; IFS='-'
6358set x $ac_cv_host
6359shift
6360host_cpu=$1
6361host_vendor=$2
6362shift; shift
6363# Remember, the first character of IFS is used to create $*,
6364# except with old shells:
6365host_os=$*
6366IFS=$ac_save_IFS
6367case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6368
6369
6370{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6371$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6372if test "${ac_cv_path_SED+set}" = set; then
6373  $as_echo_n "(cached) " >&6
6374else
6375            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6376     for ac_i in 1 2 3 4 5 6 7; do
6377       ac_script="$ac_script$as_nl$ac_script"
6378     done
6379     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6380     $as_unset ac_script || ac_script=
6381     if test -z "$SED"; then
6382  ac_path_SED_found=false
6383  # Loop through the user's path and test for each of PROGNAME-LIST
6384  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385for as_dir in $PATH
6386do
6387  IFS=$as_save_IFS
6388  test -z "$as_dir" && as_dir=.
6389  for ac_prog in sed gsed; do
6390    for ac_exec_ext in '' $ac_executable_extensions; do
6391      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6392      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6393# Check for GNU ac_path_SED and select it if it is found.
6394  # Check for GNU $ac_path_SED
6395case `"$ac_path_SED" --version 2>&1` in
6396*GNU*)
6397  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6398*)
6399  ac_count=0
6400  $as_echo_n 0123456789 >"conftest.in"
6401  while :
6402  do
6403    cat "conftest.in" "conftest.in" >"conftest.tmp"
6404    mv "conftest.tmp" "conftest.in"
6405    cp "conftest.in" "conftest.nl"
6406    $as_echo '' >> "conftest.nl"
6407    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6408    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6409    ac_count=`expr $ac_count + 1`
6410    if test $ac_count -gt ${ac_path_SED_max-0}; then
6411      # Best one so far, save it but keep looking for a better one
6412      ac_cv_path_SED="$ac_path_SED"
6413      ac_path_SED_max=$ac_count
6414    fi
6415    # 10*(2^10) chars as input seems more than enough
6416    test $ac_count -gt 10 && break
6417  done
6418  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6419esac
6420
6421      $ac_path_SED_found && break 3
6422    done
6423  done
6424done
6425IFS=$as_save_IFS
6426  if test -z "$ac_cv_path_SED"; then
6427    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
6428$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
6429   { (exit 1); exit 1; }; }
6430  fi
6431else
6432  ac_cv_path_SED=$SED
6433fi
6434
6435fi
6436{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6437$as_echo "$ac_cv_path_SED" >&6; }
6438 SED="$ac_cv_path_SED"
6439  rm -f conftest.sed
6440
6441test -z "$SED" && SED=sed
6442Xsed="$SED -e 1s/^X//"
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
6455$as_echo_n "checking for fgrep... " >&6; }
6456if test "${ac_cv_path_FGREP+set}" = set; then
6457  $as_echo_n "(cached) " >&6
6458else
6459  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6460   then ac_cv_path_FGREP="$GREP -F"
6461   else
6462     if test -z "$FGREP"; then
6463  ac_path_FGREP_found=false
6464  # Loop through the user's path and test for each of PROGNAME-LIST
6465  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6467do
6468  IFS=$as_save_IFS
6469  test -z "$as_dir" && as_dir=.
6470  for ac_prog in fgrep; do
6471    for ac_exec_ext in '' $ac_executable_extensions; do
6472      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6473      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6474# Check for GNU ac_path_FGREP and select it if it is found.
6475  # Check for GNU $ac_path_FGREP
6476case `"$ac_path_FGREP" --version 2>&1` in
6477*GNU*)
6478  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6479*)
6480  ac_count=0
6481  $as_echo_n 0123456789 >"conftest.in"
6482  while :
6483  do
6484    cat "conftest.in" "conftest.in" >"conftest.tmp"
6485    mv "conftest.tmp" "conftest.in"
6486    cp "conftest.in" "conftest.nl"
6487    $as_echo 'FGREP' >> "conftest.nl"
6488    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6489    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6490    ac_count=`expr $ac_count + 1`
6491    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6492      # Best one so far, save it but keep looking for a better one
6493      ac_cv_path_FGREP="$ac_path_FGREP"
6494      ac_path_FGREP_max=$ac_count
6495    fi
6496    # 10*(2^10) chars as input seems more than enough
6497    test $ac_count -gt 10 && break
6498  done
6499  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6500esac
6501
6502      $ac_path_FGREP_found && break 3
6503    done
6504  done
6505done
6506IFS=$as_save_IFS
6507  if test -z "$ac_cv_path_FGREP"; then
6508    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6509$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6510   { (exit 1); exit 1; }; }
6511  fi
6512else
6513  ac_cv_path_FGREP=$FGREP
6514fi
6515
6516   fi
6517fi
6518{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
6519$as_echo "$ac_cv_path_FGREP" >&6; }
6520 FGREP="$ac_cv_path_FGREP"
6521
6522
6523test -z "$GREP" && GREP=grep
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543# Check whether --with-gnu-ld was given.
6544if test "${with_gnu_ld+set}" = set; then
6545  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6546else
6547  with_gnu_ld=no
6548fi
6549
6550ac_prog=ld
6551if test "$GCC" = yes; then
6552  # Check if gcc -print-prog-name=ld gives a path.
6553  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6554$as_echo_n "checking for ld used by $CC... " >&6; }
6555  case $host in
6556  *-*-mingw*)
6557    # gcc leaves a trailing carriage return which upsets mingw
6558    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6559  *)
6560    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6561  esac
6562  case $ac_prog in
6563    # Accept absolute paths.
6564    [\\/]* | ?:[\\/]*)
6565      re_direlt='/[^/][^/]*/\.\./'
6566      # Canonicalize the pathname of ld
6567      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6568      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6569	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6570      done
6571      test -z "$LD" && LD="$ac_prog"
6572      ;;
6573  "")
6574    # If it fails, then pretend we aren't using GCC.
6575    ac_prog=ld
6576    ;;
6577  *)
6578    # If it is relative, then search for the first ld in PATH.
6579    with_gnu_ld=unknown
6580    ;;
6581  esac
6582elif test "$with_gnu_ld" = yes; then
6583  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6584$as_echo_n "checking for GNU ld... " >&6; }
6585else
6586  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6587$as_echo_n "checking for non-GNU ld... " >&6; }
6588fi
6589if test "${lt_cv_path_LD+set}" = set; then
6590  $as_echo_n "(cached) " >&6
6591else
6592  if test -z "$LD"; then
6593  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6594  for ac_dir in $PATH; do
6595    IFS="$lt_save_ifs"
6596    test -z "$ac_dir" && ac_dir=.
6597    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6598      lt_cv_path_LD="$ac_dir/$ac_prog"
6599      # Check to see if the program is GNU ld.  I'd rather use --version,
6600      # but apparently some variants of GNU ld only accept -v.
6601      # Break only if it was the GNU/non-GNU ld that we prefer.
6602      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6603      *GNU* | *'with BFD'*)
6604	test "$with_gnu_ld" != no && break
6605	;;
6606      *)
6607	test "$with_gnu_ld" != yes && break
6608	;;
6609      esac
6610    fi
6611  done
6612  IFS="$lt_save_ifs"
6613else
6614  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6615fi
6616fi
6617
6618LD="$lt_cv_path_LD"
6619if test -n "$LD"; then
6620  { $as_echo "$as_me:$LINENO: result: $LD" >&5
6621$as_echo "$LD" >&6; }
6622else
6623  { $as_echo "$as_me:$LINENO: result: no" >&5
6624$as_echo "no" >&6; }
6625fi
6626test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6627$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6628   { (exit 1); exit 1; }; }
6629{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6630$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6631if test "${lt_cv_prog_gnu_ld+set}" = set; then
6632  $as_echo_n "(cached) " >&6
6633else
6634  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6635case `$LD -v 2>&1 </dev/null` in
6636*GNU* | *'with BFD'*)
6637  lt_cv_prog_gnu_ld=yes
6638  ;;
6639*)
6640  lt_cv_prog_gnu_ld=no
6641  ;;
6642esac
6643fi
6644{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6645$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6646with_gnu_ld=$lt_cv_prog_gnu_ld
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6657$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6658if test "${lt_cv_path_NM+set}" = set; then
6659  $as_echo_n "(cached) " >&6
6660else
6661  if test -n "$NM"; then
6662  # Let the user override the test.
6663  lt_cv_path_NM="$NM"
6664else
6665  lt_nm_to_check="${ac_tool_prefix}nm"
6666  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6667    lt_nm_to_check="$lt_nm_to_check nm"
6668  fi
6669  for lt_tmp_nm in $lt_nm_to_check; do
6670    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6671    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6672      IFS="$lt_save_ifs"
6673      test -z "$ac_dir" && ac_dir=.
6674      tmp_nm="$ac_dir/$lt_tmp_nm"
6675      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6676	# Check to see if the nm accepts a BSD-compat flag.
6677	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6678	#   nm: unknown option "B" ignored
6679	# Tru64's nm complains that /dev/null is an invalid object file
6680	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6681	*/dev/null* | *'Invalid file or object type'*)
6682	  lt_cv_path_NM="$tmp_nm -B"
6683	  break
6684	  ;;
6685	*)
6686	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6687	  */dev/null*)
6688	    lt_cv_path_NM="$tmp_nm -p"
6689	    break
6690	    ;;
6691	  *)
6692	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6693	    continue # so that we can try to find one that supports BSD flags
6694	    ;;
6695	  esac
6696	  ;;
6697	esac
6698      fi
6699    done
6700    IFS="$lt_save_ifs"
6701  done
6702  : ${lt_cv_path_NM=no}
6703fi
6704fi
6705{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6706$as_echo "$lt_cv_path_NM" >&6; }
6707if test "$lt_cv_path_NM" != "no"; then
6708  NM="$lt_cv_path_NM"
6709else
6710  # Didn't find any BSD compatible name lister, look for dumpbin.
6711  if test -n "$ac_tool_prefix"; then
6712  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6713  do
6714    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6715set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6716{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6717$as_echo_n "checking for $ac_word... " >&6; }
6718if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6719  $as_echo_n "(cached) " >&6
6720else
6721  if test -n "$DUMPBIN"; then
6722  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6723else
6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725for as_dir in $PATH
6726do
6727  IFS=$as_save_IFS
6728  test -z "$as_dir" && as_dir=.
6729  for ac_exec_ext in '' $ac_executable_extensions; do
6730  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6732    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733    break 2
6734  fi
6735done
6736done
6737IFS=$as_save_IFS
6738
6739fi
6740fi
6741DUMPBIN=$ac_cv_prog_DUMPBIN
6742if test -n "$DUMPBIN"; then
6743  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6744$as_echo "$DUMPBIN" >&6; }
6745else
6746  { $as_echo "$as_me:$LINENO: result: no" >&5
6747$as_echo "no" >&6; }
6748fi
6749
6750
6751    test -n "$DUMPBIN" && break
6752  done
6753fi
6754if test -z "$DUMPBIN"; then
6755  ac_ct_DUMPBIN=$DUMPBIN
6756  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6757do
6758  # Extract the first word of "$ac_prog", so it can be a program name with args.
6759set dummy $ac_prog; ac_word=$2
6760{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6761$as_echo_n "checking for $ac_word... " >&6; }
6762if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6763  $as_echo_n "(cached) " >&6
6764else
6765  if test -n "$ac_ct_DUMPBIN"; then
6766  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6767else
6768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769for as_dir in $PATH
6770do
6771  IFS=$as_save_IFS
6772  test -z "$as_dir" && as_dir=.
6773  for ac_exec_ext in '' $ac_executable_extensions; do
6774  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6776    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777    break 2
6778  fi
6779done
6780done
6781IFS=$as_save_IFS
6782
6783fi
6784fi
6785ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6786if test -n "$ac_ct_DUMPBIN"; then
6787  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6788$as_echo "$ac_ct_DUMPBIN" >&6; }
6789else
6790  { $as_echo "$as_me:$LINENO: result: no" >&5
6791$as_echo "no" >&6; }
6792fi
6793
6794
6795  test -n "$ac_ct_DUMPBIN" && break
6796done
6797
6798  if test "x$ac_ct_DUMPBIN" = x; then
6799    DUMPBIN=":"
6800  else
6801    case $cross_compiling:$ac_tool_warned in
6802yes:)
6803{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6805ac_tool_warned=yes ;;
6806esac
6807    DUMPBIN=$ac_ct_DUMPBIN
6808  fi
6809fi
6810
6811
6812  if test "$DUMPBIN" != ":"; then
6813    NM="$DUMPBIN"
6814  fi
6815fi
6816test -z "$NM" && NM=nm
6817
6818
6819
6820
6821
6822
6823{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6824$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6825if test "${lt_cv_nm_interface+set}" = set; then
6826  $as_echo_n "(cached) " >&6
6827else
6828  lt_cv_nm_interface="BSD nm"
6829  echo "int some_variable = 0;" > conftest.$ac_ext
6830  (eval echo "\"\$as_me:6830: $ac_compile\"" >&5)
6831  (eval "$ac_compile" 2>conftest.err)
6832  cat conftest.err >&5
6833  (eval echo "\"\$as_me:6833: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6834  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6835  cat conftest.err >&5
6836  (eval echo "\"\$as_me:6836: output\"" >&5)
6837  cat conftest.out >&5
6838  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6839    lt_cv_nm_interface="MS dumpbin"
6840  fi
6841  rm -f conftest*
6842fi
6843{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6844$as_echo "$lt_cv_nm_interface" >&6; }
6845
6846# find the maximum length of command line arguments
6847{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6848$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6849if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6850  $as_echo_n "(cached) " >&6
6851else
6852    i=0
6853  teststring="ABCD"
6854
6855  case $build_os in
6856  msdosdjgpp*)
6857    # On DJGPP, this test can blow up pretty badly due to problems in libc
6858    # (any single argument exceeding 2000 bytes causes a buffer overrun
6859    # during glob expansion).  Even if it were fixed, the result of this
6860    # check would be larger than it should be.
6861    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6862    ;;
6863
6864  gnu*)
6865    # Under GNU Hurd, this test is not required because there is
6866    # no limit to the length of command line arguments.
6867    # Libtool will interpret -1 as no limit whatsoever
6868    lt_cv_sys_max_cmd_len=-1;
6869    ;;
6870
6871  cygwin* | mingw* | cegcc*)
6872    # On Win9x/ME, this test blows up -- it succeeds, but takes
6873    # about 5 minutes as the teststring grows exponentially.
6874    # Worse, since 9x/ME are not pre-emptively multitasking,
6875    # you end up with a "frozen" computer, even though with patience
6876    # the test eventually succeeds (with a max line length of 256k).
6877    # Instead, let's just punt: use the minimum linelength reported by
6878    # all of the supported platforms: 8192 (on NT/2K/XP).
6879    lt_cv_sys_max_cmd_len=8192;
6880    ;;
6881
6882  amigaos*)
6883    # On AmigaOS with pdksh, this test takes hours, literally.
6884    # So we just punt and use a minimum line length of 8192.
6885    lt_cv_sys_max_cmd_len=8192;
6886    ;;
6887
6888  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6889    # This has been around since 386BSD, at least.  Likely further.
6890    if test -x /sbin/sysctl; then
6891      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6892    elif test -x /usr/sbin/sysctl; then
6893      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6894    else
6895      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6896    fi
6897    # And add a safety zone
6898    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6899    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6900    ;;
6901
6902  interix*)
6903    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6904    lt_cv_sys_max_cmd_len=196608
6905    ;;
6906
6907  osf*)
6908    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6909    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6910    # nice to cause kernel panics so lets avoid the loop below.
6911    # First set a reasonable default.
6912    lt_cv_sys_max_cmd_len=16384
6913    #
6914    if test -x /sbin/sysconfig; then
6915      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6916        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6917      esac
6918    fi
6919    ;;
6920  sco3.2v5*)
6921    lt_cv_sys_max_cmd_len=102400
6922    ;;
6923  sysv5* | sco5v6* | sysv4.2uw2*)
6924    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6925    if test -n "$kargmax"; then
6926      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6927    else
6928      lt_cv_sys_max_cmd_len=32768
6929    fi
6930    ;;
6931  *)
6932    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6933    if test -n "$lt_cv_sys_max_cmd_len"; then
6934      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6935      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6936    else
6937      # Make teststring a little bigger before we do anything with it.
6938      # a 1K string should be a reasonable start.
6939      for i in 1 2 3 4 5 6 7 8 ; do
6940        teststring=$teststring$teststring
6941      done
6942      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6943      # If test is not a shell built-in, we'll probably end up computing a
6944      # maximum length that is only half of the actual maximum length, but
6945      # we can't tell.
6946      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6947	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6948	      test $i != 17 # 1/2 MB should be enough
6949      do
6950        i=`expr $i + 1`
6951        teststring=$teststring$teststring
6952      done
6953      # Only check the string length outside the loop.
6954      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6955      teststring=
6956      # Add a significant safety factor because C++ compilers can tack on
6957      # massive amounts of additional arguments before passing them to the
6958      # linker.  It appears as though 1/2 is a usable value.
6959      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6960    fi
6961    ;;
6962  esac
6963
6964fi
6965
6966if test -n $lt_cv_sys_max_cmd_len ; then
6967  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6968$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6969else
6970  { $as_echo "$as_me:$LINENO: result: none" >&5
6971$as_echo "none" >&6; }
6972fi
6973max_cmd_len=$lt_cv_sys_max_cmd_len
6974
6975
6976
6977
6978
6979
6980: ${CP="cp -f"}
6981: ${MV="mv -f"}
6982: ${RM="rm -f"}
6983
6984{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6985$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6986# Try some XSI features
6987xsi_shell=no
6988( _lt_dummy="a/b/c"
6989  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6990      = c,a/b,, \
6991    && eval 'test $(( 1 + 1 )) -eq 2 \
6992    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6993  && xsi_shell=yes
6994{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6995$as_echo "$xsi_shell" >&6; }
6996
6997
6998{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6999$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7000lt_shell_append=no
7001( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7002    >/dev/null 2>&1 \
7003  && lt_shell_append=yes
7004{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
7005$as_echo "$lt_shell_append" >&6; }
7006
7007
7008if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7009  lt_unset=unset
7010else
7011  lt_unset=false
7012fi
7013
7014
7015
7016
7017
7018# test EBCDIC or ASCII
7019case `echo X|tr X '\101'` in
7020 A) # ASCII based system
7021    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7022  lt_SP2NL='tr \040 \012'
7023  lt_NL2SP='tr \015\012 \040\040'
7024  ;;
7025 *) # EBCDIC based system
7026  lt_SP2NL='tr \100 \n'
7027  lt_NL2SP='tr \r\n \100\100'
7028  ;;
7029esac
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7040$as_echo_n "checking for $LD option to reload object files... " >&6; }
7041if test "${lt_cv_ld_reload_flag+set}" = set; then
7042  $as_echo_n "(cached) " >&6
7043else
7044  lt_cv_ld_reload_flag='-r'
7045fi
7046{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7047$as_echo "$lt_cv_ld_reload_flag" >&6; }
7048reload_flag=$lt_cv_ld_reload_flag
7049case $reload_flag in
7050"" | " "*) ;;
7051*) reload_flag=" $reload_flag" ;;
7052esac
7053reload_cmds='$LD$reload_flag -o $output$reload_objs'
7054case $host_os in
7055  darwin*)
7056    if test "$GCC" = yes; then
7057      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7058    else
7059      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7060    fi
7061    ;;
7062esac
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072if test -n "$ac_tool_prefix"; then
7073  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7074set dummy ${ac_tool_prefix}objdump; ac_word=$2
7075{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7076$as_echo_n "checking for $ac_word... " >&6; }
7077if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7078  $as_echo_n "(cached) " >&6
7079else
7080  if test -n "$OBJDUMP"; then
7081  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7082else
7083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084for as_dir in $PATH
7085do
7086  IFS=$as_save_IFS
7087  test -z "$as_dir" && as_dir=.
7088  for ac_exec_ext in '' $ac_executable_extensions; do
7089  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7090    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7091    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092    break 2
7093  fi
7094done
7095done
7096IFS=$as_save_IFS
7097
7098fi
7099fi
7100OBJDUMP=$ac_cv_prog_OBJDUMP
7101if test -n "$OBJDUMP"; then
7102  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7103$as_echo "$OBJDUMP" >&6; }
7104else
7105  { $as_echo "$as_me:$LINENO: result: no" >&5
7106$as_echo "no" >&6; }
7107fi
7108
7109
7110fi
7111if test -z "$ac_cv_prog_OBJDUMP"; then
7112  ac_ct_OBJDUMP=$OBJDUMP
7113  # Extract the first word of "objdump", so it can be a program name with args.
7114set dummy objdump; ac_word=$2
7115{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7116$as_echo_n "checking for $ac_word... " >&6; }
7117if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7118  $as_echo_n "(cached) " >&6
7119else
7120  if test -n "$ac_ct_OBJDUMP"; then
7121  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7122else
7123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124for as_dir in $PATH
7125do
7126  IFS=$as_save_IFS
7127  test -z "$as_dir" && as_dir=.
7128  for ac_exec_ext in '' $ac_executable_extensions; do
7129  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7130    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7131    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7132    break 2
7133  fi
7134done
7135done
7136IFS=$as_save_IFS
7137
7138fi
7139fi
7140ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7141if test -n "$ac_ct_OBJDUMP"; then
7142  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7143$as_echo "$ac_ct_OBJDUMP" >&6; }
7144else
7145  { $as_echo "$as_me:$LINENO: result: no" >&5
7146$as_echo "no" >&6; }
7147fi
7148
7149  if test "x$ac_ct_OBJDUMP" = x; then
7150    OBJDUMP="false"
7151  else
7152    case $cross_compiling:$ac_tool_warned in
7153yes:)
7154{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7156ac_tool_warned=yes ;;
7157esac
7158    OBJDUMP=$ac_ct_OBJDUMP
7159  fi
7160else
7161  OBJDUMP="$ac_cv_prog_OBJDUMP"
7162fi
7163
7164test -z "$OBJDUMP" && OBJDUMP=objdump
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
7175$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7176if test "${lt_cv_deplibs_check_method+set}" = set; then
7177  $as_echo_n "(cached) " >&6
7178else
7179  lt_cv_file_magic_cmd='$MAGIC_CMD'
7180lt_cv_file_magic_test_file=
7181lt_cv_deplibs_check_method='unknown'
7182# Need to set the preceding variable on all platforms that support
7183# interlibrary dependencies.
7184# 'none' -- dependencies not supported.
7185# `unknown' -- same as none, but documents that we really don't know.
7186# 'pass_all' -- all dependencies passed with no checks.
7187# 'test_compile' -- check by making test program.
7188# 'file_magic [[regex]]' -- check by looking for files in library path
7189# which responds to the $file_magic_cmd with a given extended regex.
7190# If you have `file' or equivalent on your system and you're not sure
7191# whether `pass_all' will *always* work, you probably want this one.
7192
7193case $host_os in
7194aix[4-9]*)
7195  lt_cv_deplibs_check_method=pass_all
7196  ;;
7197
7198beos*)
7199  lt_cv_deplibs_check_method=pass_all
7200  ;;
7201
7202bsdi[45]*)
7203  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7204  lt_cv_file_magic_cmd='/usr/bin/file -L'
7205  lt_cv_file_magic_test_file=/shlib/libc.so
7206  ;;
7207
7208cygwin*)
7209  # func_win32_libid is a shell function defined in ltmain.sh
7210  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7211  lt_cv_file_magic_cmd='func_win32_libid'
7212  ;;
7213
7214mingw* | pw32*)
7215  # Base MSYS/MinGW do not provide the 'file' command needed by
7216  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7217  # unless we find 'file', for example because we are cross-compiling.
7218  if ( file / ) >/dev/null 2>&1; then
7219    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7220    lt_cv_file_magic_cmd='func_win32_libid'
7221  else
7222    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7223    lt_cv_file_magic_cmd='$OBJDUMP -f'
7224  fi
7225  ;;
7226
7227cegcc)
7228  # use the weaker test based on 'objdump'. See mingw*.
7229  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7230  lt_cv_file_magic_cmd='$OBJDUMP -f'
7231  ;;
7232
7233darwin* | rhapsody*)
7234  lt_cv_deplibs_check_method=pass_all
7235  ;;
7236
7237freebsd* | dragonfly*)
7238  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7239    case $host_cpu in
7240    i*86 )
7241      # Not sure whether the presence of OpenBSD here was a mistake.
7242      # Let's accept both of them until this is cleared up.
7243      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7244      lt_cv_file_magic_cmd=/usr/bin/file
7245      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7246      ;;
7247    esac
7248  else
7249    lt_cv_deplibs_check_method=pass_all
7250  fi
7251  ;;
7252
7253gnu*)
7254  lt_cv_deplibs_check_method=pass_all
7255  ;;
7256
7257hpux10.20* | hpux11*)
7258  lt_cv_file_magic_cmd=/usr/bin/file
7259  case $host_cpu in
7260  ia64*)
7261    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7262    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7263    ;;
7264  hppa*64*)
7265    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7266    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7267    ;;
7268  *)
7269    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7270    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7271    ;;
7272  esac
7273  ;;
7274
7275interix[3-9]*)
7276  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7277  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7278  ;;
7279
7280irix5* | irix6* | nonstopux*)
7281  case $LD in
7282  *-32|*"-32 ") libmagic=32-bit;;
7283  *-n32|*"-n32 ") libmagic=N32;;
7284  *-64|*"-64 ") libmagic=64-bit;;
7285  *) libmagic=never-match;;
7286  esac
7287  lt_cv_deplibs_check_method=pass_all
7288  ;;
7289
7290# This must be Linux ELF.
7291linux* | k*bsd*-gnu)
7292  lt_cv_deplibs_check_method=pass_all
7293  ;;
7294
7295netbsd*)
7296  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7297    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7298  else
7299    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7300  fi
7301  ;;
7302
7303newos6*)
7304  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7305  lt_cv_file_magic_cmd=/usr/bin/file
7306  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7307  ;;
7308
7309*nto* | *qnx*)
7310  lt_cv_deplibs_check_method=pass_all
7311  ;;
7312
7313openbsd*)
7314  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7315    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7316  else
7317    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7318  fi
7319  ;;
7320
7321osf3* | osf4* | osf5*)
7322  lt_cv_deplibs_check_method=pass_all
7323  ;;
7324
7325rdos*)
7326  lt_cv_deplibs_check_method=pass_all
7327  ;;
7328
7329solaris*)
7330  lt_cv_deplibs_check_method=pass_all
7331  ;;
7332
7333sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7334  lt_cv_deplibs_check_method=pass_all
7335  ;;
7336
7337sysv4 | sysv4.3*)
7338  case $host_vendor in
7339  motorola)
7340    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]'
7341    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7342    ;;
7343  ncr)
7344    lt_cv_deplibs_check_method=pass_all
7345    ;;
7346  sequent)
7347    lt_cv_file_magic_cmd='/bin/file'
7348    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7349    ;;
7350  sni)
7351    lt_cv_file_magic_cmd='/bin/file'
7352    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7353    lt_cv_file_magic_test_file=/lib/libc.so
7354    ;;
7355  siemens)
7356    lt_cv_deplibs_check_method=pass_all
7357    ;;
7358  pc)
7359    lt_cv_deplibs_check_method=pass_all
7360    ;;
7361  esac
7362  ;;
7363
7364tpf*)
7365  lt_cv_deplibs_check_method=pass_all
7366  ;;
7367esac
7368
7369fi
7370{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7371$as_echo "$lt_cv_deplibs_check_method" >&6; }
7372file_magic_cmd=$lt_cv_file_magic_cmd
7373deplibs_check_method=$lt_cv_deplibs_check_method
7374test -z "$deplibs_check_method" && deplibs_check_method=unknown
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387if test -n "$ac_tool_prefix"; then
7388  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7389set dummy ${ac_tool_prefix}ar; ac_word=$2
7390{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7391$as_echo_n "checking for $ac_word... " >&6; }
7392if test "${ac_cv_prog_AR+set}" = set; then
7393  $as_echo_n "(cached) " >&6
7394else
7395  if test -n "$AR"; then
7396  ac_cv_prog_AR="$AR" # Let the user override the test.
7397else
7398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399for as_dir in $PATH
7400do
7401  IFS=$as_save_IFS
7402  test -z "$as_dir" && as_dir=.
7403  for ac_exec_ext in '' $ac_executable_extensions; do
7404  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7405    ac_cv_prog_AR="${ac_tool_prefix}ar"
7406    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7407    break 2
7408  fi
7409done
7410done
7411IFS=$as_save_IFS
7412
7413fi
7414fi
7415AR=$ac_cv_prog_AR
7416if test -n "$AR"; then
7417  { $as_echo "$as_me:$LINENO: result: $AR" >&5
7418$as_echo "$AR" >&6; }
7419else
7420  { $as_echo "$as_me:$LINENO: result: no" >&5
7421$as_echo "no" >&6; }
7422fi
7423
7424
7425fi
7426if test -z "$ac_cv_prog_AR"; then
7427  ac_ct_AR=$AR
7428  # Extract the first word of "ar", so it can be a program name with args.
7429set dummy ar; ac_word=$2
7430{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7431$as_echo_n "checking for $ac_word... " >&6; }
7432if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7433  $as_echo_n "(cached) " >&6
7434else
7435  if test -n "$ac_ct_AR"; then
7436  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7437else
7438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439for as_dir in $PATH
7440do
7441  IFS=$as_save_IFS
7442  test -z "$as_dir" && as_dir=.
7443  for ac_exec_ext in '' $ac_executable_extensions; do
7444  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7445    ac_cv_prog_ac_ct_AR="ar"
7446    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7447    break 2
7448  fi
7449done
7450done
7451IFS=$as_save_IFS
7452
7453fi
7454fi
7455ac_ct_AR=$ac_cv_prog_ac_ct_AR
7456if test -n "$ac_ct_AR"; then
7457  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7458$as_echo "$ac_ct_AR" >&6; }
7459else
7460  { $as_echo "$as_me:$LINENO: result: no" >&5
7461$as_echo "no" >&6; }
7462fi
7463
7464  if test "x$ac_ct_AR" = x; then
7465    AR="false"
7466  else
7467    case $cross_compiling:$ac_tool_warned in
7468yes:)
7469{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7471ac_tool_warned=yes ;;
7472esac
7473    AR=$ac_ct_AR
7474  fi
7475else
7476  AR="$ac_cv_prog_AR"
7477fi
7478
7479test -z "$AR" && AR=ar
7480test -z "$AR_FLAGS" && AR_FLAGS=cru
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492if test -n "$ac_tool_prefix"; then
7493  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7494set dummy ${ac_tool_prefix}strip; ac_word=$2
7495{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7496$as_echo_n "checking for $ac_word... " >&6; }
7497if test "${ac_cv_prog_STRIP+set}" = set; then
7498  $as_echo_n "(cached) " >&6
7499else
7500  if test -n "$STRIP"; then
7501  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7502else
7503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504for as_dir in $PATH
7505do
7506  IFS=$as_save_IFS
7507  test -z "$as_dir" && as_dir=.
7508  for ac_exec_ext in '' $ac_executable_extensions; do
7509  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7510    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7511    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512    break 2
7513  fi
7514done
7515done
7516IFS=$as_save_IFS
7517
7518fi
7519fi
7520STRIP=$ac_cv_prog_STRIP
7521if test -n "$STRIP"; then
7522  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7523$as_echo "$STRIP" >&6; }
7524else
7525  { $as_echo "$as_me:$LINENO: result: no" >&5
7526$as_echo "no" >&6; }
7527fi
7528
7529
7530fi
7531if test -z "$ac_cv_prog_STRIP"; then
7532  ac_ct_STRIP=$STRIP
7533  # Extract the first word of "strip", so it can be a program name with args.
7534set dummy strip; ac_word=$2
7535{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7536$as_echo_n "checking for $ac_word... " >&6; }
7537if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7538  $as_echo_n "(cached) " >&6
7539else
7540  if test -n "$ac_ct_STRIP"; then
7541  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7542else
7543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544for as_dir in $PATH
7545do
7546  IFS=$as_save_IFS
7547  test -z "$as_dir" && as_dir=.
7548  for ac_exec_ext in '' $ac_executable_extensions; do
7549  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7550    ac_cv_prog_ac_ct_STRIP="strip"
7551    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7552    break 2
7553  fi
7554done
7555done
7556IFS=$as_save_IFS
7557
7558fi
7559fi
7560ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7561if test -n "$ac_ct_STRIP"; then
7562  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7563$as_echo "$ac_ct_STRIP" >&6; }
7564else
7565  { $as_echo "$as_me:$LINENO: result: no" >&5
7566$as_echo "no" >&6; }
7567fi
7568
7569  if test "x$ac_ct_STRIP" = x; then
7570    STRIP=":"
7571  else
7572    case $cross_compiling:$ac_tool_warned in
7573yes:)
7574{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576ac_tool_warned=yes ;;
7577esac
7578    STRIP=$ac_ct_STRIP
7579  fi
7580else
7581  STRIP="$ac_cv_prog_STRIP"
7582fi
7583
7584test -z "$STRIP" && STRIP=:
7585
7586
7587
7588
7589
7590
7591if test -n "$ac_tool_prefix"; then
7592  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7593set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7594{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7595$as_echo_n "checking for $ac_word... " >&6; }
7596if test "${ac_cv_prog_RANLIB+set}" = set; then
7597  $as_echo_n "(cached) " >&6
7598else
7599  if test -n "$RANLIB"; then
7600  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7601else
7602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603for as_dir in $PATH
7604do
7605  IFS=$as_save_IFS
7606  test -z "$as_dir" && as_dir=.
7607  for ac_exec_ext in '' $ac_executable_extensions; do
7608  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7609    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7610    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611    break 2
7612  fi
7613done
7614done
7615IFS=$as_save_IFS
7616
7617fi
7618fi
7619RANLIB=$ac_cv_prog_RANLIB
7620if test -n "$RANLIB"; then
7621  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7622$as_echo "$RANLIB" >&6; }
7623else
7624  { $as_echo "$as_me:$LINENO: result: no" >&5
7625$as_echo "no" >&6; }
7626fi
7627
7628
7629fi
7630if test -z "$ac_cv_prog_RANLIB"; then
7631  ac_ct_RANLIB=$RANLIB
7632  # Extract the first word of "ranlib", so it can be a program name with args.
7633set dummy ranlib; ac_word=$2
7634{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7635$as_echo_n "checking for $ac_word... " >&6; }
7636if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7637  $as_echo_n "(cached) " >&6
7638else
7639  if test -n "$ac_ct_RANLIB"; then
7640  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7641else
7642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643for as_dir in $PATH
7644do
7645  IFS=$as_save_IFS
7646  test -z "$as_dir" && as_dir=.
7647  for ac_exec_ext in '' $ac_executable_extensions; do
7648  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7649    ac_cv_prog_ac_ct_RANLIB="ranlib"
7650    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651    break 2
7652  fi
7653done
7654done
7655IFS=$as_save_IFS
7656
7657fi
7658fi
7659ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7660if test -n "$ac_ct_RANLIB"; then
7661  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7662$as_echo "$ac_ct_RANLIB" >&6; }
7663else
7664  { $as_echo "$as_me:$LINENO: result: no" >&5
7665$as_echo "no" >&6; }
7666fi
7667
7668  if test "x$ac_ct_RANLIB" = x; then
7669    RANLIB=":"
7670  else
7671    case $cross_compiling:$ac_tool_warned in
7672yes:)
7673{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7675ac_tool_warned=yes ;;
7676esac
7677    RANLIB=$ac_ct_RANLIB
7678  fi
7679else
7680  RANLIB="$ac_cv_prog_RANLIB"
7681fi
7682
7683test -z "$RANLIB" && RANLIB=:
7684
7685
7686
7687
7688
7689
7690# Determine commands to create old-style static archives.
7691old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7692old_postinstall_cmds='chmod 644 $oldlib'
7693old_postuninstall_cmds=
7694
7695if test -n "$RANLIB"; then
7696  case $host_os in
7697  openbsd*)
7698    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7699    ;;
7700  *)
7701    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7702    ;;
7703  esac
7704  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7705fi
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740# If no C compiler was specified, use CC.
7741LTCC=${LTCC-"$CC"}
7742
7743# If no C compiler flags were specified, use CFLAGS.
7744LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7745
7746# Allow CC to be a program name with arguments.
7747compiler=$CC
7748
7749
7750# Check for command to grab the raw symbol name followed by C symbol from nm.
7751{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7752$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7753if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7754  $as_echo_n "(cached) " >&6
7755else
7756
7757# These are sane defaults that work on at least a few old systems.
7758# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7759
7760# Character class describing NM global symbol codes.
7761symcode='[BCDEGRST]'
7762
7763# Regexp to match symbols that can be accessed directly from C.
7764sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7765
7766# Define system-specific variables.
7767case $host_os in
7768aix*)
7769  symcode='[BCDT]'
7770  ;;
7771cygwin* | mingw* | pw32* | cegcc*)
7772  symcode='[ABCDGISTW]'
7773  ;;
7774hpux*)
7775  if test "$host_cpu" = ia64; then
7776    symcode='[ABCDEGRST]'
7777  fi
7778  ;;
7779irix* | nonstopux*)
7780  symcode='[BCDEGRST]'
7781  ;;
7782osf*)
7783  symcode='[BCDEGQRST]'
7784  ;;
7785solaris*)
7786  symcode='[BDRT]'
7787  ;;
7788sco3.2v5*)
7789  symcode='[DT]'
7790  ;;
7791sysv4.2uw2*)
7792  symcode='[DT]'
7793  ;;
7794sysv5* | sco5v6* | unixware* | OpenUNIX*)
7795  symcode='[ABDT]'
7796  ;;
7797sysv4)
7798  symcode='[DFNSTU]'
7799  ;;
7800esac
7801
7802# If we're using GNU nm, then use its standard symbol codes.
7803case `$NM -V 2>&1` in
7804*GNU* | *'with BFD'*)
7805  symcode='[ABCDGIRSTW]' ;;
7806esac
7807
7808# Transform an extracted symbol line into a proper C declaration.
7809# Some systems (esp. on ia64) link data and code symbols differently,
7810# so use this general approach.
7811lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7812
7813# Transform an extracted symbol line into symbol name and symbol address
7814lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7815lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7816
7817# Handle CRLF in mingw tool chain
7818opt_cr=
7819case $build_os in
7820mingw*)
7821  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7822  ;;
7823esac
7824
7825# Try without a prefix underscore, then with it.
7826for ac_symprfx in "" "_"; do
7827
7828  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7829  symxfrm="\\1 $ac_symprfx\\2 \\2"
7830
7831  # Write the raw and C identifiers.
7832  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7833    # Fake it for dumpbin and say T for any non-static function
7834    # and D for any global variable.
7835    # Also find C++ and __fastcall symbols from MSVC++,
7836    # which start with @ or ?.
7837    lt_cv_sys_global_symbol_pipe="$AWK '"\
7838"     {last_section=section; section=\$ 3};"\
7839"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7840"     \$ 0!~/External *\|/{next};"\
7841"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7842"     {if(hide[section]) next};"\
7843"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7844"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7845"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7846"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7847"     ' prfx=^$ac_symprfx"
7848  else
7849    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7850  fi
7851
7852  # Check to see that the pipe works correctly.
7853  pipe_works=no
7854
7855  rm -f conftest*
7856  cat > conftest.$ac_ext <<_LT_EOF
7857#ifdef __cplusplus
7858extern "C" {
7859#endif
7860char nm_test_var;
7861void nm_test_func(void);
7862void nm_test_func(void){}
7863#ifdef __cplusplus
7864}
7865#endif
7866int main(){nm_test_var='a';nm_test_func();return(0);}
7867_LT_EOF
7868
7869  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7870  (eval $ac_compile) 2>&5
7871  ac_status=$?
7872  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873  (exit $ac_status); }; then
7874    # Now try to grab the symbols.
7875    nlist=conftest.nm
7876    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7877  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7878  ac_status=$?
7879  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880  (exit $ac_status); } && test -s "$nlist"; then
7881      # Try sorting and uniquifying the output.
7882      if sort "$nlist" | uniq > "$nlist"T; then
7883	mv -f "$nlist"T "$nlist"
7884      else
7885	rm -f "$nlist"T
7886      fi
7887
7888      # Make sure that we snagged all the symbols we need.
7889      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7890	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7891	  cat <<_LT_EOF > conftest.$ac_ext
7892#ifdef __cplusplus
7893extern "C" {
7894#endif
7895
7896_LT_EOF
7897	  # Now generate the symbol file.
7898	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7899
7900	  cat <<_LT_EOF >> conftest.$ac_ext
7901
7902/* The mapping between symbol names and symbols.  */
7903const struct {
7904  const char *name;
7905  void       *address;
7906}
7907lt__PROGRAM__LTX_preloaded_symbols[] =
7908{
7909  { "@PROGRAM@", (void *) 0 },
7910_LT_EOF
7911	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7912	  cat <<\_LT_EOF >> conftest.$ac_ext
7913  {0, (void *) 0}
7914};
7915
7916/* This works around a problem in FreeBSD linker */
7917#ifdef FREEBSD_WORKAROUND
7918static const void *lt_preloaded_setup() {
7919  return lt__PROGRAM__LTX_preloaded_symbols;
7920}
7921#endif
7922
7923#ifdef __cplusplus
7924}
7925#endif
7926_LT_EOF
7927	  # Now try linking the two files.
7928	  mv conftest.$ac_objext conftstm.$ac_objext
7929	  lt_save_LIBS="$LIBS"
7930	  lt_save_CFLAGS="$CFLAGS"
7931	  LIBS="conftstm.$ac_objext"
7932	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7933	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7934  (eval $ac_link) 2>&5
7935  ac_status=$?
7936  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7938	    pipe_works=yes
7939	  fi
7940	  LIBS="$lt_save_LIBS"
7941	  CFLAGS="$lt_save_CFLAGS"
7942	else
7943	  echo "cannot find nm_test_func in $nlist" >&5
7944	fi
7945      else
7946	echo "cannot find nm_test_var in $nlist" >&5
7947      fi
7948    else
7949      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7950    fi
7951  else
7952    echo "$progname: failed program was:" >&5
7953    cat conftest.$ac_ext >&5
7954  fi
7955  rm -rf conftest* conftst*
7956
7957  # Do not use the global_symbol_pipe unless it works.
7958  if test "$pipe_works" = yes; then
7959    break
7960  else
7961    lt_cv_sys_global_symbol_pipe=
7962  fi
7963done
7964
7965fi
7966
7967if test -z "$lt_cv_sys_global_symbol_pipe"; then
7968  lt_cv_sys_global_symbol_to_cdecl=
7969fi
7970if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7971  { $as_echo "$as_me:$LINENO: result: failed" >&5
7972$as_echo "failed" >&6; }
7973else
7974  { $as_echo "$as_me:$LINENO: result: ok" >&5
7975$as_echo "ok" >&6; }
7976fi
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999# Check whether --enable-libtool-lock was given.
8000if test "${enable_libtool_lock+set}" = set; then
8001  enableval=$enable_libtool_lock;
8002fi
8003
8004test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8005
8006# Some flags need to be propagated to the compiler or linker for good
8007# libtool support.
8008case $host in
8009ia64-*-hpux*)
8010  # Find out which ABI we are using.
8011  echo 'int i;' > conftest.$ac_ext
8012  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8013  (eval $ac_compile) 2>&5
8014  ac_status=$?
8015  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016  (exit $ac_status); }; then
8017    case `/usr/bin/file conftest.$ac_objext` in
8018      *ELF-32*)
8019	HPUX_IA64_MODE="32"
8020	;;
8021      *ELF-64*)
8022	HPUX_IA64_MODE="64"
8023	;;
8024    esac
8025  fi
8026  rm -rf conftest*
8027  ;;
8028*-*-irix6*)
8029  # Find out which ABI we are using.
8030  echo '#line 8030 "configure"' > conftest.$ac_ext
8031  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8032  (eval $ac_compile) 2>&5
8033  ac_status=$?
8034  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035  (exit $ac_status); }; then
8036    if test "$lt_cv_prog_gnu_ld" = yes; then
8037      case `/usr/bin/file conftest.$ac_objext` in
8038	*32-bit*)
8039	  LD="${LD-ld} -melf32bsmip"
8040	  ;;
8041	*N32*)
8042	  LD="${LD-ld} -melf32bmipn32"
8043	  ;;
8044	*64-bit*)
8045	  LD="${LD-ld} -melf64bmip"
8046	;;
8047      esac
8048    else
8049      case `/usr/bin/file conftest.$ac_objext` in
8050	*32-bit*)
8051	  LD="${LD-ld} -32"
8052	  ;;
8053	*N32*)
8054	  LD="${LD-ld} -n32"
8055	  ;;
8056	*64-bit*)
8057	  LD="${LD-ld} -64"
8058	  ;;
8059      esac
8060    fi
8061  fi
8062  rm -rf conftest*
8063  ;;
8064
8065x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8066s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8067  # Find out which ABI we are using.
8068  echo 'int i;' > conftest.$ac_ext
8069  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8070  (eval $ac_compile) 2>&5
8071  ac_status=$?
8072  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073  (exit $ac_status); }; then
8074    case `/usr/bin/file conftest.o` in
8075      *32-bit*)
8076	case $host in
8077	  x86_64-*kfreebsd*-gnu)
8078	    LD="${LD-ld} -m elf_i386_fbsd"
8079	    ;;
8080	  x86_64-*linux*)
8081	    LD="${LD-ld} -m elf_i386"
8082	    ;;
8083	  ppc64-*linux*|powerpc64-*linux*)
8084	    LD="${LD-ld} -m elf32ppclinux"
8085	    ;;
8086	  s390x-*linux*)
8087	    LD="${LD-ld} -m elf_s390"
8088	    ;;
8089	  sparc64-*linux*)
8090	    LD="${LD-ld} -m elf32_sparc"
8091	    ;;
8092	esac
8093	;;
8094      *64-bit*)
8095	case $host in
8096	  x86_64-*kfreebsd*-gnu)
8097	    LD="${LD-ld} -m elf_x86_64_fbsd"
8098	    ;;
8099	  x86_64-*linux*)
8100	    LD="${LD-ld} -m elf_x86_64"
8101	    ;;
8102	  ppc*-*linux*|powerpc*-*linux*)
8103	    LD="${LD-ld} -m elf64ppc"
8104	    ;;
8105	  s390*-*linux*|s390*-*tpf*)
8106	    LD="${LD-ld} -m elf64_s390"
8107	    ;;
8108	  sparc*-*linux*)
8109	    LD="${LD-ld} -m elf64_sparc"
8110	    ;;
8111	esac
8112	;;
8113    esac
8114  fi
8115  rm -rf conftest*
8116  ;;
8117
8118*-*-sco3.2v5*)
8119  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8120  SAVE_CFLAGS="$CFLAGS"
8121  CFLAGS="$CFLAGS -belf"
8122  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8123$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8124if test "${lt_cv_cc_needs_belf+set}" = set; then
8125  $as_echo_n "(cached) " >&6
8126else
8127  ac_ext=c
8128ac_cpp='$CPP $CPPFLAGS'
8129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8131ac_compiler_gnu=$ac_cv_c_compiler_gnu
8132
8133     cat >conftest.$ac_ext <<_ACEOF
8134/* confdefs.h.  */
8135_ACEOF
8136cat confdefs.h >>conftest.$ac_ext
8137cat >>conftest.$ac_ext <<_ACEOF
8138/* end confdefs.h.  */
8139
8140int
8141main ()
8142{
8143
8144  ;
8145  return 0;
8146}
8147_ACEOF
8148rm -f conftest.$ac_objext conftest$ac_exeext
8149if { (ac_try="$ac_link"
8150case "(($ac_try" in
8151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8152  *) ac_try_echo=$ac_try;;
8153esac
8154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8155$as_echo "$ac_try_echo") >&5
8156  (eval "$ac_link") 2>conftest.er1
8157  ac_status=$?
8158  grep -v '^ *+' conftest.er1 >conftest.err
8159  rm -f conftest.er1
8160  cat conftest.err >&5
8161  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162  (exit $ac_status); } && {
8163	 test -z "$ac_c_werror_flag" ||
8164	 test ! -s conftest.err
8165       } && test -s conftest$ac_exeext && {
8166	 test "$cross_compiling" = yes ||
8167	 $as_test_x conftest$ac_exeext
8168       }; then
8169  lt_cv_cc_needs_belf=yes
8170else
8171  $as_echo "$as_me: failed program was:" >&5
8172sed 's/^/| /' conftest.$ac_ext >&5
8173
8174	lt_cv_cc_needs_belf=no
8175fi
8176
8177rm -rf conftest.dSYM
8178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8179      conftest$ac_exeext conftest.$ac_ext
8180     ac_ext=c
8181ac_cpp='$CPP $CPPFLAGS'
8182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8184ac_compiler_gnu=$ac_cv_c_compiler_gnu
8185
8186fi
8187{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8188$as_echo "$lt_cv_cc_needs_belf" >&6; }
8189  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8190    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8191    CFLAGS="$SAVE_CFLAGS"
8192  fi
8193  ;;
8194sparc*-*solaris*)
8195  # Find out which ABI we are using.
8196  echo 'int i;' > conftest.$ac_ext
8197  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8198  (eval $ac_compile) 2>&5
8199  ac_status=$?
8200  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201  (exit $ac_status); }; then
8202    case `/usr/bin/file conftest.o` in
8203    *64-bit*)
8204      case $lt_cv_prog_gnu_ld in
8205      yes*) LD="${LD-ld} -m elf64_sparc" ;;
8206      *)
8207	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8208	  LD="${LD-ld} -64"
8209	fi
8210	;;
8211      esac
8212      ;;
8213    esac
8214  fi
8215  rm -rf conftest*
8216  ;;
8217esac
8218
8219need_locks="$enable_libtool_lock"
8220
8221
8222  case $host_os in
8223    rhapsody* | darwin*)
8224    if test -n "$ac_tool_prefix"; then
8225  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8226set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8227{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8228$as_echo_n "checking for $ac_word... " >&6; }
8229if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8230  $as_echo_n "(cached) " >&6
8231else
8232  if test -n "$DSYMUTIL"; then
8233  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8234else
8235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236for as_dir in $PATH
8237do
8238  IFS=$as_save_IFS
8239  test -z "$as_dir" && as_dir=.
8240  for ac_exec_ext in '' $ac_executable_extensions; do
8241  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8242    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8243    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8244    break 2
8245  fi
8246done
8247done
8248IFS=$as_save_IFS
8249
8250fi
8251fi
8252DSYMUTIL=$ac_cv_prog_DSYMUTIL
8253if test -n "$DSYMUTIL"; then
8254  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8255$as_echo "$DSYMUTIL" >&6; }
8256else
8257  { $as_echo "$as_me:$LINENO: result: no" >&5
8258$as_echo "no" >&6; }
8259fi
8260
8261
8262fi
8263if test -z "$ac_cv_prog_DSYMUTIL"; then
8264  ac_ct_DSYMUTIL=$DSYMUTIL
8265  # Extract the first word of "dsymutil", so it can be a program name with args.
8266set dummy dsymutil; ac_word=$2
8267{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8268$as_echo_n "checking for $ac_word... " >&6; }
8269if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8270  $as_echo_n "(cached) " >&6
8271else
8272  if test -n "$ac_ct_DSYMUTIL"; then
8273  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8274else
8275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276for as_dir in $PATH
8277do
8278  IFS=$as_save_IFS
8279  test -z "$as_dir" && as_dir=.
8280  for ac_exec_ext in '' $ac_executable_extensions; do
8281  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8282    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8283    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8284    break 2
8285  fi
8286done
8287done
8288IFS=$as_save_IFS
8289
8290fi
8291fi
8292ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8293if test -n "$ac_ct_DSYMUTIL"; then
8294  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8295$as_echo "$ac_ct_DSYMUTIL" >&6; }
8296else
8297  { $as_echo "$as_me:$LINENO: result: no" >&5
8298$as_echo "no" >&6; }
8299fi
8300
8301  if test "x$ac_ct_DSYMUTIL" = x; then
8302    DSYMUTIL=":"
8303  else
8304    case $cross_compiling:$ac_tool_warned in
8305yes:)
8306{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8308ac_tool_warned=yes ;;
8309esac
8310    DSYMUTIL=$ac_ct_DSYMUTIL
8311  fi
8312else
8313  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8314fi
8315
8316    if test -n "$ac_tool_prefix"; then
8317  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8318set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8319{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8320$as_echo_n "checking for $ac_word... " >&6; }
8321if test "${ac_cv_prog_NMEDIT+set}" = set; then
8322  $as_echo_n "(cached) " >&6
8323else
8324  if test -n "$NMEDIT"; then
8325  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8326else
8327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328for as_dir in $PATH
8329do
8330  IFS=$as_save_IFS
8331  test -z "$as_dir" && as_dir=.
8332  for ac_exec_ext in '' $ac_executable_extensions; do
8333  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8334    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8335    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8336    break 2
8337  fi
8338done
8339done
8340IFS=$as_save_IFS
8341
8342fi
8343fi
8344NMEDIT=$ac_cv_prog_NMEDIT
8345if test -n "$NMEDIT"; then
8346  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8347$as_echo "$NMEDIT" >&6; }
8348else
8349  { $as_echo "$as_me:$LINENO: result: no" >&5
8350$as_echo "no" >&6; }
8351fi
8352
8353
8354fi
8355if test -z "$ac_cv_prog_NMEDIT"; then
8356  ac_ct_NMEDIT=$NMEDIT
8357  # Extract the first word of "nmedit", so it can be a program name with args.
8358set dummy nmedit; ac_word=$2
8359{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8360$as_echo_n "checking for $ac_word... " >&6; }
8361if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8362  $as_echo_n "(cached) " >&6
8363else
8364  if test -n "$ac_ct_NMEDIT"; then
8365  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8366else
8367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368for as_dir in $PATH
8369do
8370  IFS=$as_save_IFS
8371  test -z "$as_dir" && as_dir=.
8372  for ac_exec_ext in '' $ac_executable_extensions; do
8373  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8375    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8376    break 2
8377  fi
8378done
8379done
8380IFS=$as_save_IFS
8381
8382fi
8383fi
8384ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8385if test -n "$ac_ct_NMEDIT"; then
8386  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8387$as_echo "$ac_ct_NMEDIT" >&6; }
8388else
8389  { $as_echo "$as_me:$LINENO: result: no" >&5
8390$as_echo "no" >&6; }
8391fi
8392
8393  if test "x$ac_ct_NMEDIT" = x; then
8394    NMEDIT=":"
8395  else
8396    case $cross_compiling:$ac_tool_warned in
8397yes:)
8398{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8400ac_tool_warned=yes ;;
8401esac
8402    NMEDIT=$ac_ct_NMEDIT
8403  fi
8404else
8405  NMEDIT="$ac_cv_prog_NMEDIT"
8406fi
8407
8408    if test -n "$ac_tool_prefix"; then
8409  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8410set dummy ${ac_tool_prefix}lipo; ac_word=$2
8411{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8412$as_echo_n "checking for $ac_word... " >&6; }
8413if test "${ac_cv_prog_LIPO+set}" = set; then
8414  $as_echo_n "(cached) " >&6
8415else
8416  if test -n "$LIPO"; then
8417  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8418else
8419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420for as_dir in $PATH
8421do
8422  IFS=$as_save_IFS
8423  test -z "$as_dir" && as_dir=.
8424  for ac_exec_ext in '' $ac_executable_extensions; do
8425  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8426    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8427    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8428    break 2
8429  fi
8430done
8431done
8432IFS=$as_save_IFS
8433
8434fi
8435fi
8436LIPO=$ac_cv_prog_LIPO
8437if test -n "$LIPO"; then
8438  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
8439$as_echo "$LIPO" >&6; }
8440else
8441  { $as_echo "$as_me:$LINENO: result: no" >&5
8442$as_echo "no" >&6; }
8443fi
8444
8445
8446fi
8447if test -z "$ac_cv_prog_LIPO"; then
8448  ac_ct_LIPO=$LIPO
8449  # Extract the first word of "lipo", so it can be a program name with args.
8450set dummy lipo; ac_word=$2
8451{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8452$as_echo_n "checking for $ac_word... " >&6; }
8453if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
8454  $as_echo_n "(cached) " >&6
8455else
8456  if test -n "$ac_ct_LIPO"; then
8457  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8458else
8459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460for as_dir in $PATH
8461do
8462  IFS=$as_save_IFS
8463  test -z "$as_dir" && as_dir=.
8464  for ac_exec_ext in '' $ac_executable_extensions; do
8465  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8466    ac_cv_prog_ac_ct_LIPO="lipo"
8467    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8468    break 2
8469  fi
8470done
8471done
8472IFS=$as_save_IFS
8473
8474fi
8475fi
8476ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8477if test -n "$ac_ct_LIPO"; then
8478  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
8479$as_echo "$ac_ct_LIPO" >&6; }
8480else
8481  { $as_echo "$as_me:$LINENO: result: no" >&5
8482$as_echo "no" >&6; }
8483fi
8484
8485  if test "x$ac_ct_LIPO" = x; then
8486    LIPO=":"
8487  else
8488    case $cross_compiling:$ac_tool_warned in
8489yes:)
8490{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8492ac_tool_warned=yes ;;
8493esac
8494    LIPO=$ac_ct_LIPO
8495  fi
8496else
8497  LIPO="$ac_cv_prog_LIPO"
8498fi
8499
8500    if test -n "$ac_tool_prefix"; then
8501  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8502set dummy ${ac_tool_prefix}otool; ac_word=$2
8503{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8504$as_echo_n "checking for $ac_word... " >&6; }
8505if test "${ac_cv_prog_OTOOL+set}" = set; then
8506  $as_echo_n "(cached) " >&6
8507else
8508  if test -n "$OTOOL"; then
8509  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8510else
8511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512for as_dir in $PATH
8513do
8514  IFS=$as_save_IFS
8515  test -z "$as_dir" && as_dir=.
8516  for ac_exec_ext in '' $ac_executable_extensions; do
8517  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8518    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8519    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8520    break 2
8521  fi
8522done
8523done
8524IFS=$as_save_IFS
8525
8526fi
8527fi
8528OTOOL=$ac_cv_prog_OTOOL
8529if test -n "$OTOOL"; then
8530  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
8531$as_echo "$OTOOL" >&6; }
8532else
8533  { $as_echo "$as_me:$LINENO: result: no" >&5
8534$as_echo "no" >&6; }
8535fi
8536
8537
8538fi
8539if test -z "$ac_cv_prog_OTOOL"; then
8540  ac_ct_OTOOL=$OTOOL
8541  # Extract the first word of "otool", so it can be a program name with args.
8542set dummy otool; ac_word=$2
8543{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8544$as_echo_n "checking for $ac_word... " >&6; }
8545if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
8546  $as_echo_n "(cached) " >&6
8547else
8548  if test -n "$ac_ct_OTOOL"; then
8549  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8550else
8551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552for as_dir in $PATH
8553do
8554  IFS=$as_save_IFS
8555  test -z "$as_dir" && as_dir=.
8556  for ac_exec_ext in '' $ac_executable_extensions; do
8557  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8558    ac_cv_prog_ac_ct_OTOOL="otool"
8559    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8560    break 2
8561  fi
8562done
8563done
8564IFS=$as_save_IFS
8565
8566fi
8567fi
8568ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8569if test -n "$ac_ct_OTOOL"; then
8570  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
8571$as_echo "$ac_ct_OTOOL" >&6; }
8572else
8573  { $as_echo "$as_me:$LINENO: result: no" >&5
8574$as_echo "no" >&6; }
8575fi
8576
8577  if test "x$ac_ct_OTOOL" = x; then
8578    OTOOL=":"
8579  else
8580    case $cross_compiling:$ac_tool_warned in
8581yes:)
8582{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8584ac_tool_warned=yes ;;
8585esac
8586    OTOOL=$ac_ct_OTOOL
8587  fi
8588else
8589  OTOOL="$ac_cv_prog_OTOOL"
8590fi
8591
8592    if test -n "$ac_tool_prefix"; then
8593  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8594set dummy ${ac_tool_prefix}otool64; ac_word=$2
8595{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8596$as_echo_n "checking for $ac_word... " >&6; }
8597if test "${ac_cv_prog_OTOOL64+set}" = set; then
8598  $as_echo_n "(cached) " >&6
8599else
8600  if test -n "$OTOOL64"; then
8601  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8602else
8603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604for as_dir in $PATH
8605do
8606  IFS=$as_save_IFS
8607  test -z "$as_dir" && as_dir=.
8608  for ac_exec_ext in '' $ac_executable_extensions; do
8609  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8610    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8611    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8612    break 2
8613  fi
8614done
8615done
8616IFS=$as_save_IFS
8617
8618fi
8619fi
8620OTOOL64=$ac_cv_prog_OTOOL64
8621if test -n "$OTOOL64"; then
8622  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
8623$as_echo "$OTOOL64" >&6; }
8624else
8625  { $as_echo "$as_me:$LINENO: result: no" >&5
8626$as_echo "no" >&6; }
8627fi
8628
8629
8630fi
8631if test -z "$ac_cv_prog_OTOOL64"; then
8632  ac_ct_OTOOL64=$OTOOL64
8633  # Extract the first word of "otool64", so it can be a program name with args.
8634set dummy otool64; ac_word=$2
8635{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8636$as_echo_n "checking for $ac_word... " >&6; }
8637if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
8638  $as_echo_n "(cached) " >&6
8639else
8640  if test -n "$ac_ct_OTOOL64"; then
8641  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8642else
8643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644for as_dir in $PATH
8645do
8646  IFS=$as_save_IFS
8647  test -z "$as_dir" && as_dir=.
8648  for ac_exec_ext in '' $ac_executable_extensions; do
8649  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8650    ac_cv_prog_ac_ct_OTOOL64="otool64"
8651    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8652    break 2
8653  fi
8654done
8655done
8656IFS=$as_save_IFS
8657
8658fi
8659fi
8660ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8661if test -n "$ac_ct_OTOOL64"; then
8662  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8663$as_echo "$ac_ct_OTOOL64" >&6; }
8664else
8665  { $as_echo "$as_me:$LINENO: result: no" >&5
8666$as_echo "no" >&6; }
8667fi
8668
8669  if test "x$ac_ct_OTOOL64" = x; then
8670    OTOOL64=":"
8671  else
8672    case $cross_compiling:$ac_tool_warned in
8673yes:)
8674{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8676ac_tool_warned=yes ;;
8677esac
8678    OTOOL64=$ac_ct_OTOOL64
8679  fi
8680else
8681  OTOOL64="$ac_cv_prog_OTOOL64"
8682fi
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8711$as_echo_n "checking for -single_module linker flag... " >&6; }
8712if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8713  $as_echo_n "(cached) " >&6
8714else
8715  lt_cv_apple_cc_single_mod=no
8716      if test -z "${LT_MULTI_MODULE}"; then
8717	# By default we will add the -single_module flag. You can override
8718	# by either setting the environment variable LT_MULTI_MODULE
8719	# non-empty at configure time, or by adding -multi_module to the
8720	# link flags.
8721	rm -rf libconftest.dylib*
8722	echo "int foo(void){return 1;}" > conftest.c
8723	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8724-dynamiclib -Wl,-single_module conftest.c" >&5
8725	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8726	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8727        _lt_result=$?
8728	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8729	  lt_cv_apple_cc_single_mod=yes
8730	else
8731	  cat conftest.err >&5
8732	fi
8733	rm -rf libconftest.dylib*
8734	rm -f conftest.*
8735      fi
8736fi
8737{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8738$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8739    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8740$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8741if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8742  $as_echo_n "(cached) " >&6
8743else
8744  lt_cv_ld_exported_symbols_list=no
8745      save_LDFLAGS=$LDFLAGS
8746      echo "_main" > conftest.sym
8747      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8748      cat >conftest.$ac_ext <<_ACEOF
8749/* confdefs.h.  */
8750_ACEOF
8751cat confdefs.h >>conftest.$ac_ext
8752cat >>conftest.$ac_ext <<_ACEOF
8753/* end confdefs.h.  */
8754
8755int
8756main ()
8757{
8758
8759  ;
8760  return 0;
8761}
8762_ACEOF
8763rm -f conftest.$ac_objext conftest$ac_exeext
8764if { (ac_try="$ac_link"
8765case "(($ac_try" in
8766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767  *) ac_try_echo=$ac_try;;
8768esac
8769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8770$as_echo "$ac_try_echo") >&5
8771  (eval "$ac_link") 2>conftest.er1
8772  ac_status=$?
8773  grep -v '^ *+' conftest.er1 >conftest.err
8774  rm -f conftest.er1
8775  cat conftest.err >&5
8776  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777  (exit $ac_status); } && {
8778	 test -z "$ac_c_werror_flag" ||
8779	 test ! -s conftest.err
8780       } && test -s conftest$ac_exeext && {
8781	 test "$cross_compiling" = yes ||
8782	 $as_test_x conftest$ac_exeext
8783       }; then
8784  lt_cv_ld_exported_symbols_list=yes
8785else
8786  $as_echo "$as_me: failed program was:" >&5
8787sed 's/^/| /' conftest.$ac_ext >&5
8788
8789	lt_cv_ld_exported_symbols_list=no
8790fi
8791
8792rm -rf conftest.dSYM
8793rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8794      conftest$ac_exeext conftest.$ac_ext
8795	LDFLAGS="$save_LDFLAGS"
8796
8797fi
8798{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8799$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8800    case $host_os in
8801    rhapsody* | darwin1.[012])
8802      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8803    darwin1.*)
8804      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8805    darwin*) # darwin 5.x on
8806      # if running on 10.5 or later, the deployment target defaults
8807      # to the OS version, if on x86, and 10.4, the deployment
8808      # target defaults to 10.4. Don't you love it?
8809      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8810	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8811	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8812	10.[012]*)
8813	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8814	10.*)
8815	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8816      esac
8817    ;;
8818  esac
8819    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8820      _lt_dar_single_mod='$single_module'
8821    fi
8822    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8823      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8824    else
8825      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8826    fi
8827    if test "$DSYMUTIL" != ":"; then
8828      _lt_dsymutil='~$DSYMUTIL $lib || :'
8829    else
8830      _lt_dsymutil=
8831    fi
8832    ;;
8833  esac
8834
8835
8836for ac_header in dlfcn.h
8837do
8838as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8839{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8840$as_echo_n "checking for $ac_header... " >&6; }
8841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8842  $as_echo_n "(cached) " >&6
8843else
8844  cat >conftest.$ac_ext <<_ACEOF
8845/* confdefs.h.  */
8846_ACEOF
8847cat confdefs.h >>conftest.$ac_ext
8848cat >>conftest.$ac_ext <<_ACEOF
8849/* end confdefs.h.  */
8850$ac_includes_default
8851
8852#include <$ac_header>
8853_ACEOF
8854rm -f conftest.$ac_objext
8855if { (ac_try="$ac_compile"
8856case "(($ac_try" in
8857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8858  *) ac_try_echo=$ac_try;;
8859esac
8860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8861$as_echo "$ac_try_echo") >&5
8862  (eval "$ac_compile") 2>conftest.er1
8863  ac_status=$?
8864  grep -v '^ *+' conftest.er1 >conftest.err
8865  rm -f conftest.er1
8866  cat conftest.err >&5
8867  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868  (exit $ac_status); } && {
8869	 test -z "$ac_c_werror_flag" ||
8870	 test ! -s conftest.err
8871       } && test -s conftest.$ac_objext; then
8872  eval "$as_ac_Header=yes"
8873else
8874  $as_echo "$as_me: failed program was:" >&5
8875sed 's/^/| /' conftest.$ac_ext >&5
8876
8877	eval "$as_ac_Header=no"
8878fi
8879
8880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881fi
8882ac_res=`eval 'as_val=${'$as_ac_Header'}
8883		 $as_echo "$as_val"'`
8884	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8885$as_echo "$ac_res" >&6; }
8886as_val=`eval 'as_val=${'$as_ac_Header'}
8887		 $as_echo "$as_val"'`
8888   if test "x$as_val" = x""yes; then
8889  cat >>confdefs.h <<_ACEOF
8890#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8891_ACEOF
8892
8893fi
8894
8895done
8896
8897
8898
8899ac_ext=cpp
8900ac_cpp='$CXXCPP $CPPFLAGS'
8901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8904if test -z "$CXX"; then
8905  if test -n "$CCC"; then
8906    CXX=$CCC
8907  else
8908    if test -n "$ac_tool_prefix"; then
8909  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8910  do
8911    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8912set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8913{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8914$as_echo_n "checking for $ac_word... " >&6; }
8915if test "${ac_cv_prog_CXX+set}" = set; then
8916  $as_echo_n "(cached) " >&6
8917else
8918  if test -n "$CXX"; then
8919  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8920else
8921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8922for as_dir in $PATH
8923do
8924  IFS=$as_save_IFS
8925  test -z "$as_dir" && as_dir=.
8926  for ac_exec_ext in '' $ac_executable_extensions; do
8927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8928    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8929    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8930    break 2
8931  fi
8932done
8933done
8934IFS=$as_save_IFS
8935
8936fi
8937fi
8938CXX=$ac_cv_prog_CXX
8939if test -n "$CXX"; then
8940  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
8941$as_echo "$CXX" >&6; }
8942else
8943  { $as_echo "$as_me:$LINENO: result: no" >&5
8944$as_echo "no" >&6; }
8945fi
8946
8947
8948    test -n "$CXX" && break
8949  done
8950fi
8951if test -z "$CXX"; then
8952  ac_ct_CXX=$CXX
8953  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8954do
8955  # Extract the first word of "$ac_prog", so it can be a program name with args.
8956set dummy $ac_prog; ac_word=$2
8957{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8958$as_echo_n "checking for $ac_word... " >&6; }
8959if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8960  $as_echo_n "(cached) " >&6
8961else
8962  if test -n "$ac_ct_CXX"; then
8963  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8964else
8965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966for as_dir in $PATH
8967do
8968  IFS=$as_save_IFS
8969  test -z "$as_dir" && as_dir=.
8970  for ac_exec_ext in '' $ac_executable_extensions; do
8971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8972    ac_cv_prog_ac_ct_CXX="$ac_prog"
8973    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8974    break 2
8975  fi
8976done
8977done
8978IFS=$as_save_IFS
8979
8980fi
8981fi
8982ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8983if test -n "$ac_ct_CXX"; then
8984  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8985$as_echo "$ac_ct_CXX" >&6; }
8986else
8987  { $as_echo "$as_me:$LINENO: result: no" >&5
8988$as_echo "no" >&6; }
8989fi
8990
8991
8992  test -n "$ac_ct_CXX" && break
8993done
8994
8995  if test "x$ac_ct_CXX" = x; then
8996    CXX="g++"
8997  else
8998    case $cross_compiling:$ac_tool_warned in
8999yes:)
9000{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9002ac_tool_warned=yes ;;
9003esac
9004    CXX=$ac_ct_CXX
9005  fi
9006fi
9007
9008  fi
9009fi
9010# Provide some information about the compiler.
9011$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
9012set X $ac_compile
9013ac_compiler=$2
9014{ (ac_try="$ac_compiler --version >&5"
9015case "(($ac_try" in
9016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9017  *) ac_try_echo=$ac_try;;
9018esac
9019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9020$as_echo "$ac_try_echo") >&5
9021  (eval "$ac_compiler --version >&5") 2>&5
9022  ac_status=$?
9023  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024  (exit $ac_status); }
9025{ (ac_try="$ac_compiler -v >&5"
9026case "(($ac_try" in
9027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9028  *) ac_try_echo=$ac_try;;
9029esac
9030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9031$as_echo "$ac_try_echo") >&5
9032  (eval "$ac_compiler -v >&5") 2>&5
9033  ac_status=$?
9034  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035  (exit $ac_status); }
9036{ (ac_try="$ac_compiler -V >&5"
9037case "(($ac_try" in
9038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9039  *) ac_try_echo=$ac_try;;
9040esac
9041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9042$as_echo "$ac_try_echo") >&5
9043  (eval "$ac_compiler -V >&5") 2>&5
9044  ac_status=$?
9045  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046  (exit $ac_status); }
9047
9048{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
9049$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9050if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
9051  $as_echo_n "(cached) " >&6
9052else
9053  cat >conftest.$ac_ext <<_ACEOF
9054/* confdefs.h.  */
9055_ACEOF
9056cat confdefs.h >>conftest.$ac_ext
9057cat >>conftest.$ac_ext <<_ACEOF
9058/* end confdefs.h.  */
9059
9060int
9061main ()
9062{
9063#ifndef __GNUC__
9064       choke me
9065#endif
9066
9067  ;
9068  return 0;
9069}
9070_ACEOF
9071rm -f conftest.$ac_objext
9072if { (ac_try="$ac_compile"
9073case "(($ac_try" in
9074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075  *) ac_try_echo=$ac_try;;
9076esac
9077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9078$as_echo "$ac_try_echo") >&5
9079  (eval "$ac_compile") 2>conftest.er1
9080  ac_status=$?
9081  grep -v '^ *+' conftest.er1 >conftest.err
9082  rm -f conftest.er1
9083  cat conftest.err >&5
9084  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085  (exit $ac_status); } && {
9086	 test -z "$ac_cxx_werror_flag" ||
9087	 test ! -s conftest.err
9088       } && test -s conftest.$ac_objext; then
9089  ac_compiler_gnu=yes
9090else
9091  $as_echo "$as_me: failed program was:" >&5
9092sed 's/^/| /' conftest.$ac_ext >&5
9093
9094	ac_compiler_gnu=no
9095fi
9096
9097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9099
9100fi
9101{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
9102$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9103if test $ac_compiler_gnu = yes; then
9104  GXX=yes
9105else
9106  GXX=
9107fi
9108ac_test_CXXFLAGS=${CXXFLAGS+set}
9109ac_save_CXXFLAGS=$CXXFLAGS
9110{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
9111$as_echo_n "checking whether $CXX accepts -g... " >&6; }
9112if test "${ac_cv_prog_cxx_g+set}" = set; then
9113  $as_echo_n "(cached) " >&6
9114else
9115  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9116   ac_cxx_werror_flag=yes
9117   ac_cv_prog_cxx_g=no
9118   CXXFLAGS="-g"
9119   cat >conftest.$ac_ext <<_ACEOF
9120/* confdefs.h.  */
9121_ACEOF
9122cat confdefs.h >>conftest.$ac_ext
9123cat >>conftest.$ac_ext <<_ACEOF
9124/* end confdefs.h.  */
9125
9126int
9127main ()
9128{
9129
9130  ;
9131  return 0;
9132}
9133_ACEOF
9134rm -f conftest.$ac_objext
9135if { (ac_try="$ac_compile"
9136case "(($ac_try" in
9137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138  *) ac_try_echo=$ac_try;;
9139esac
9140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9141$as_echo "$ac_try_echo") >&5
9142  (eval "$ac_compile") 2>conftest.er1
9143  ac_status=$?
9144  grep -v '^ *+' conftest.er1 >conftest.err
9145  rm -f conftest.er1
9146  cat conftest.err >&5
9147  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148  (exit $ac_status); } && {
9149	 test -z "$ac_cxx_werror_flag" ||
9150	 test ! -s conftest.err
9151       } && test -s conftest.$ac_objext; then
9152  ac_cv_prog_cxx_g=yes
9153else
9154  $as_echo "$as_me: failed program was:" >&5
9155sed 's/^/| /' conftest.$ac_ext >&5
9156
9157	CXXFLAGS=""
9158      cat >conftest.$ac_ext <<_ACEOF
9159/* confdefs.h.  */
9160_ACEOF
9161cat confdefs.h >>conftest.$ac_ext
9162cat >>conftest.$ac_ext <<_ACEOF
9163/* end confdefs.h.  */
9164
9165int
9166main ()
9167{
9168
9169  ;
9170  return 0;
9171}
9172_ACEOF
9173rm -f conftest.$ac_objext
9174if { (ac_try="$ac_compile"
9175case "(($ac_try" in
9176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177  *) ac_try_echo=$ac_try;;
9178esac
9179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9180$as_echo "$ac_try_echo") >&5
9181  (eval "$ac_compile") 2>conftest.er1
9182  ac_status=$?
9183  grep -v '^ *+' conftest.er1 >conftest.err
9184  rm -f conftest.er1
9185  cat conftest.err >&5
9186  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187  (exit $ac_status); } && {
9188	 test -z "$ac_cxx_werror_flag" ||
9189	 test ! -s conftest.err
9190       } && test -s conftest.$ac_objext; then
9191  :
9192else
9193  $as_echo "$as_me: failed program was:" >&5
9194sed 's/^/| /' conftest.$ac_ext >&5
9195
9196	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9197	 CXXFLAGS="-g"
9198	 cat >conftest.$ac_ext <<_ACEOF
9199/* confdefs.h.  */
9200_ACEOF
9201cat confdefs.h >>conftest.$ac_ext
9202cat >>conftest.$ac_ext <<_ACEOF
9203/* end confdefs.h.  */
9204
9205int
9206main ()
9207{
9208
9209  ;
9210  return 0;
9211}
9212_ACEOF
9213rm -f conftest.$ac_objext
9214if { (ac_try="$ac_compile"
9215case "(($ac_try" in
9216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217  *) ac_try_echo=$ac_try;;
9218esac
9219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9220$as_echo "$ac_try_echo") >&5
9221  (eval "$ac_compile") 2>conftest.er1
9222  ac_status=$?
9223  grep -v '^ *+' conftest.er1 >conftest.err
9224  rm -f conftest.er1
9225  cat conftest.err >&5
9226  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227  (exit $ac_status); } && {
9228	 test -z "$ac_cxx_werror_flag" ||
9229	 test ! -s conftest.err
9230       } && test -s conftest.$ac_objext; then
9231  ac_cv_prog_cxx_g=yes
9232else
9233  $as_echo "$as_me: failed program was:" >&5
9234sed 's/^/| /' conftest.$ac_ext >&5
9235
9236
9237fi
9238
9239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9240fi
9241
9242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9243fi
9244
9245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9246   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9247fi
9248{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
9249$as_echo "$ac_cv_prog_cxx_g" >&6; }
9250if test "$ac_test_CXXFLAGS" = set; then
9251  CXXFLAGS=$ac_save_CXXFLAGS
9252elif test $ac_cv_prog_cxx_g = yes; then
9253  if test "$GXX" = yes; then
9254    CXXFLAGS="-g -O2"
9255  else
9256    CXXFLAGS="-g"
9257  fi
9258else
9259  if test "$GXX" = yes; then
9260    CXXFLAGS="-O2"
9261  else
9262    CXXFLAGS=
9263  fi
9264fi
9265ac_ext=c
9266ac_cpp='$CPP $CPPFLAGS'
9267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9269ac_compiler_gnu=$ac_cv_c_compiler_gnu
9270
9271depcc="$CXX"  am_compiler_list=
9272
9273{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9274$as_echo_n "checking dependency style of $depcc... " >&6; }
9275if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
9276  $as_echo_n "(cached) " >&6
9277else
9278  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9279  # We make a subdir and do the tests there.  Otherwise we can end up
9280  # making bogus files that we don't know about and never remove.  For
9281  # instance it was reported that on HP-UX the gcc test will end up
9282  # making a dummy file named `D' -- because `-MD' means `put the output
9283  # in D'.
9284  mkdir conftest.dir
9285  # Copy depcomp to subdir because otherwise we won't find it if we're
9286  # using a relative directory.
9287  cp "$am_depcomp" conftest.dir
9288  cd conftest.dir
9289  # We will build objects and dependencies in a subdirectory because
9290  # it helps to detect inapplicable dependency modes.  For instance
9291  # both Tru64's cc and ICC support -MD to output dependencies as a
9292  # side effect of compilation, but ICC will put the dependencies in
9293  # the current directory while Tru64 will put them in the object
9294  # directory.
9295  mkdir sub
9296
9297  am_cv_CXX_dependencies_compiler_type=none
9298  if test "$am_compiler_list" = ""; then
9299     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9300  fi
9301  am__universal=false
9302  case " $depcc " in #(
9303     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9304     esac
9305
9306  for depmode in $am_compiler_list; do
9307    # Setup a source with many dependencies, because some compilers
9308    # like to wrap large dependency lists on column 80 (with \), and
9309    # we should not choose a depcomp mode which is confused by this.
9310    #
9311    # We need to recreate these files for each test, as the compiler may
9312    # overwrite some of them when testing with obscure command lines.
9313    # This happens at least with the AIX C compiler.
9314    : > sub/conftest.c
9315    for i in 1 2 3 4 5 6; do
9316      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9317      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9318      # Solaris 8's {/usr,}/bin/sh.
9319      touch sub/conftst$i.h
9320    done
9321    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9322
9323    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9324    # mode.  It turns out that the SunPro C++ compiler does not properly
9325    # handle `-M -o', and we need to detect this.  Also, some Intel
9326    # versions had trouble with output in subdirs
9327    am__obj=sub/conftest.${OBJEXT-o}
9328    am__minus_obj="-o $am__obj"
9329    case $depmode in
9330    gcc)
9331      # This depmode causes a compiler race in universal mode.
9332      test "$am__universal" = false || continue
9333      ;;
9334    nosideeffect)
9335      # after this tag, mechanisms are not by side-effect, so they'll
9336      # only be used when explicitly requested
9337      if test "x$enable_dependency_tracking" = xyes; then
9338	continue
9339      else
9340	break
9341      fi
9342      ;;
9343    msvisualcpp | msvcmsys)
9344      # This compiler won't grok `-c -o', but also, the minuso test has
9345      # not run yet.  These depmodes are late enough in the game, and
9346      # so weak that their functioning should not be impacted.
9347      am__obj=conftest.${OBJEXT-o}
9348      am__minus_obj=
9349      ;;
9350    none) break ;;
9351    esac
9352    if depmode=$depmode \
9353       source=sub/conftest.c object=$am__obj \
9354       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9355       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9356         >/dev/null 2>conftest.err &&
9357       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9358       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9359       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9360       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9361      # icc doesn't choke on unknown options, it will just issue warnings
9362      # or remarks (even with -Werror).  So we grep stderr for any message
9363      # that says an option was ignored or not supported.
9364      # When given -MP, icc 7.0 and 7.1 complain thusly:
9365      #   icc: Command line warning: ignoring option '-M'; no argument required
9366      # The diagnosis changed in icc 8.0:
9367      #   icc: Command line remark: option '-MP' not supported
9368      if (grep 'ignoring option' conftest.err ||
9369          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9370        am_cv_CXX_dependencies_compiler_type=$depmode
9371        break
9372      fi
9373    fi
9374  done
9375
9376  cd ..
9377  rm -rf conftest.dir
9378else
9379  am_cv_CXX_dependencies_compiler_type=none
9380fi
9381
9382fi
9383{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
9384$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9385CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9386
9387 if
9388  test "x$enable_dependency_tracking" != xno \
9389  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9390  am__fastdepCXX_TRUE=
9391  am__fastdepCXX_FALSE='#'
9392else
9393  am__fastdepCXX_TRUE='#'
9394  am__fastdepCXX_FALSE=
9395fi
9396
9397
9398if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9399    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9400    (test "X$CXX" != "Xg++"))) ; then
9401  ac_ext=cpp
9402ac_cpp='$CXXCPP $CPPFLAGS'
9403ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9404ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9405ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9406{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
9407$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9408if test -z "$CXXCPP"; then
9409  if test "${ac_cv_prog_CXXCPP+set}" = set; then
9410  $as_echo_n "(cached) " >&6
9411else
9412      # Double quotes because CXXCPP needs to be expanded
9413    for CXXCPP in "$CXX -E" "/lib/cpp"
9414    do
9415      ac_preproc_ok=false
9416for ac_cxx_preproc_warn_flag in '' yes
9417do
9418  # Use a header file that comes with gcc, so configuring glibc
9419  # with a fresh cross-compiler works.
9420  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9421  # <limits.h> exists even on freestanding compilers.
9422  # On the NeXT, cc -E runs the code through the compiler's parser,
9423  # not just through cpp. "Syntax error" is here to catch this case.
9424  cat >conftest.$ac_ext <<_ACEOF
9425/* confdefs.h.  */
9426_ACEOF
9427cat confdefs.h >>conftest.$ac_ext
9428cat >>conftest.$ac_ext <<_ACEOF
9429/* end confdefs.h.  */
9430#ifdef __STDC__
9431# include <limits.h>
9432#else
9433# include <assert.h>
9434#endif
9435		     Syntax error
9436_ACEOF
9437if { (ac_try="$ac_cpp conftest.$ac_ext"
9438case "(($ac_try" in
9439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440  *) ac_try_echo=$ac_try;;
9441esac
9442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9443$as_echo "$ac_try_echo") >&5
9444  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9445  ac_status=$?
9446  grep -v '^ *+' conftest.er1 >conftest.err
9447  rm -f conftest.er1
9448  cat conftest.err >&5
9449  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450  (exit $ac_status); } >/dev/null && {
9451	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9452	 test ! -s conftest.err
9453       }; then
9454  :
9455else
9456  $as_echo "$as_me: failed program was:" >&5
9457sed 's/^/| /' conftest.$ac_ext >&5
9458
9459  # Broken: fails on valid input.
9460continue
9461fi
9462
9463rm -f conftest.err conftest.$ac_ext
9464
9465  # OK, works on sane cases.  Now check whether nonexistent headers
9466  # can be detected and how.
9467  cat >conftest.$ac_ext <<_ACEOF
9468/* confdefs.h.  */
9469_ACEOF
9470cat confdefs.h >>conftest.$ac_ext
9471cat >>conftest.$ac_ext <<_ACEOF
9472/* end confdefs.h.  */
9473#include <ac_nonexistent.h>
9474_ACEOF
9475if { (ac_try="$ac_cpp conftest.$ac_ext"
9476case "(($ac_try" in
9477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9478  *) ac_try_echo=$ac_try;;
9479esac
9480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9481$as_echo "$ac_try_echo") >&5
9482  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9483  ac_status=$?
9484  grep -v '^ *+' conftest.er1 >conftest.err
9485  rm -f conftest.er1
9486  cat conftest.err >&5
9487  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488  (exit $ac_status); } >/dev/null && {
9489	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9490	 test ! -s conftest.err
9491       }; then
9492  # Broken: success on invalid input.
9493continue
9494else
9495  $as_echo "$as_me: failed program was:" >&5
9496sed 's/^/| /' conftest.$ac_ext >&5
9497
9498  # Passes both tests.
9499ac_preproc_ok=:
9500break
9501fi
9502
9503rm -f conftest.err conftest.$ac_ext
9504
9505done
9506# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9507rm -f conftest.err conftest.$ac_ext
9508if $ac_preproc_ok; then
9509  break
9510fi
9511
9512    done
9513    ac_cv_prog_CXXCPP=$CXXCPP
9514
9515fi
9516  CXXCPP=$ac_cv_prog_CXXCPP
9517else
9518  ac_cv_prog_CXXCPP=$CXXCPP
9519fi
9520{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
9521$as_echo "$CXXCPP" >&6; }
9522ac_preproc_ok=false
9523for ac_cxx_preproc_warn_flag in '' yes
9524do
9525  # Use a header file that comes with gcc, so configuring glibc
9526  # with a fresh cross-compiler works.
9527  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9528  # <limits.h> exists even on freestanding compilers.
9529  # On the NeXT, cc -E runs the code through the compiler's parser,
9530  # not just through cpp. "Syntax error" is here to catch this case.
9531  cat >conftest.$ac_ext <<_ACEOF
9532/* confdefs.h.  */
9533_ACEOF
9534cat confdefs.h >>conftest.$ac_ext
9535cat >>conftest.$ac_ext <<_ACEOF
9536/* end confdefs.h.  */
9537#ifdef __STDC__
9538# include <limits.h>
9539#else
9540# include <assert.h>
9541#endif
9542		     Syntax error
9543_ACEOF
9544if { (ac_try="$ac_cpp conftest.$ac_ext"
9545case "(($ac_try" in
9546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547  *) ac_try_echo=$ac_try;;
9548esac
9549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9550$as_echo "$ac_try_echo") >&5
9551  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9552  ac_status=$?
9553  grep -v '^ *+' conftest.er1 >conftest.err
9554  rm -f conftest.er1
9555  cat conftest.err >&5
9556  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557  (exit $ac_status); } >/dev/null && {
9558	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9559	 test ! -s conftest.err
9560       }; then
9561  :
9562else
9563  $as_echo "$as_me: failed program was:" >&5
9564sed 's/^/| /' conftest.$ac_ext >&5
9565
9566  # Broken: fails on valid input.
9567continue
9568fi
9569
9570rm -f conftest.err conftest.$ac_ext
9571
9572  # OK, works on sane cases.  Now check whether nonexistent headers
9573  # can be detected and how.
9574  cat >conftest.$ac_ext <<_ACEOF
9575/* confdefs.h.  */
9576_ACEOF
9577cat confdefs.h >>conftest.$ac_ext
9578cat >>conftest.$ac_ext <<_ACEOF
9579/* end confdefs.h.  */
9580#include <ac_nonexistent.h>
9581_ACEOF
9582if { (ac_try="$ac_cpp conftest.$ac_ext"
9583case "(($ac_try" in
9584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585  *) ac_try_echo=$ac_try;;
9586esac
9587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9588$as_echo "$ac_try_echo") >&5
9589  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9590  ac_status=$?
9591  grep -v '^ *+' conftest.er1 >conftest.err
9592  rm -f conftest.er1
9593  cat conftest.err >&5
9594  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595  (exit $ac_status); } >/dev/null && {
9596	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9597	 test ! -s conftest.err
9598       }; then
9599  # Broken: success on invalid input.
9600continue
9601else
9602  $as_echo "$as_me: failed program was:" >&5
9603sed 's/^/| /' conftest.$ac_ext >&5
9604
9605  # Passes both tests.
9606ac_preproc_ok=:
9607break
9608fi
9609
9610rm -f conftest.err conftest.$ac_ext
9611
9612done
9613# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9614rm -f conftest.err conftest.$ac_ext
9615if $ac_preproc_ok; then
9616  :
9617else
9618  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9620_lt_caught_CXX_error=yes; }
9621fi
9622
9623ac_ext=c
9624ac_cpp='$CPP $CPPFLAGS'
9625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9627ac_compiler_gnu=$ac_cv_c_compiler_gnu
9628
9629else
9630  _lt_caught_CXX_error=yes
9631fi
9632
9633
9634
9635
9636# Set options
9637
9638
9639
9640        enable_dlopen=no
9641
9642
9643  enable_win32_dll=no
9644
9645
9646            # Check whether --enable-shared was given.
9647if test "${enable_shared+set}" = set; then
9648  enableval=$enable_shared; p=${PACKAGE-default}
9649    case $enableval in
9650    yes) enable_shared=yes ;;
9651    no) enable_shared=no ;;
9652    *)
9653      enable_shared=no
9654      # Look at the argument we got.  We use all the common list separators.
9655      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9656      for pkg in $enableval; do
9657	IFS="$lt_save_ifs"
9658	if test "X$pkg" = "X$p"; then
9659	  enable_shared=yes
9660	fi
9661      done
9662      IFS="$lt_save_ifs"
9663      ;;
9664    esac
9665else
9666  enable_shared=yes
9667fi
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677  # Check whether --enable-static was given.
9678if test "${enable_static+set}" = set; then
9679  enableval=$enable_static; p=${PACKAGE-default}
9680    case $enableval in
9681    yes) enable_static=yes ;;
9682    no) enable_static=no ;;
9683    *)
9684     enable_static=no
9685      # Look at the argument we got.  We use all the common list separators.
9686      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9687      for pkg in $enableval; do
9688	IFS="$lt_save_ifs"
9689	if test "X$pkg" = "X$p"; then
9690	  enable_static=yes
9691	fi
9692      done
9693      IFS="$lt_save_ifs"
9694      ;;
9695    esac
9696else
9697  enable_static=yes
9698fi
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709# Check whether --with-pic was given.
9710if test "${with_pic+set}" = set; then
9711  withval=$with_pic; pic_mode="$withval"
9712else
9713  pic_mode=default
9714fi
9715
9716
9717test -z "$pic_mode" && pic_mode=default
9718
9719
9720
9721
9722
9723
9724
9725  # Check whether --enable-fast-install was given.
9726if test "${enable_fast_install+set}" = set; then
9727  enableval=$enable_fast_install; p=${PACKAGE-default}
9728    case $enableval in
9729    yes) enable_fast_install=yes ;;
9730    no) enable_fast_install=no ;;
9731    *)
9732      enable_fast_install=no
9733      # Look at the argument we got.  We use all the common list separators.
9734      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9735      for pkg in $enableval; do
9736	IFS="$lt_save_ifs"
9737	if test "X$pkg" = "X$p"; then
9738	  enable_fast_install=yes
9739	fi
9740      done
9741      IFS="$lt_save_ifs"
9742      ;;
9743    esac
9744else
9745  enable_fast_install=yes
9746fi
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758# This can be used to rebuild libtool when needed
9759LIBTOOL_DEPS="$ltmain"
9760
9761# Always use our own libtool.
9762LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788test -z "$LN_S" && LN_S="ln -s"
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803if test -n "${ZSH_VERSION+set}" ; then
9804   setopt NO_GLOB_SUBST
9805fi
9806
9807{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
9808$as_echo_n "checking for objdir... " >&6; }
9809if test "${lt_cv_objdir+set}" = set; then
9810  $as_echo_n "(cached) " >&6
9811else
9812  rm -f .libs 2>/dev/null
9813mkdir .libs 2>/dev/null
9814if test -d .libs; then
9815  lt_cv_objdir=.libs
9816else
9817  # MS-DOS does not allow filenames that begin with a dot.
9818  lt_cv_objdir=_libs
9819fi
9820rmdir .libs 2>/dev/null
9821fi
9822{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9823$as_echo "$lt_cv_objdir" >&6; }
9824objdir=$lt_cv_objdir
9825
9826
9827
9828
9829
9830cat >>confdefs.h <<_ACEOF
9831#define LT_OBJDIR "$lt_cv_objdir/"
9832_ACEOF
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850case $host_os in
9851aix3*)
9852  # AIX sometimes has problems with the GCC collect2 program.  For some
9853  # reason, if we set the COLLECT_NAMES environment variable, the problems
9854  # vanish in a puff of smoke.
9855  if test "X${COLLECT_NAMES+set}" != Xset; then
9856    COLLECT_NAMES=
9857    export COLLECT_NAMES
9858  fi
9859  ;;
9860esac
9861
9862# Sed substitution that helps us do robust quoting.  It backslashifies
9863# metacharacters that are still active within double-quoted strings.
9864sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9865
9866# Same as above, but do not quote variable references.
9867double_quote_subst='s/\(["`\\]\)/\\\1/g'
9868
9869# Sed substitution to delay expansion of an escaped shell variable in a
9870# double_quote_subst'ed string.
9871delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9872
9873# Sed substitution to delay expansion of an escaped single quote.
9874delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9875
9876# Sed substitution to avoid accidental globbing in evaled expressions
9877no_glob_subst='s/\*/\\\*/g'
9878
9879# Global variables:
9880ofile=libtool
9881can_build_shared=yes
9882
9883# All known linkers require a `.a' archive for static linking (except MSVC,
9884# which needs '.lib').
9885libext=a
9886
9887with_gnu_ld="$lt_cv_prog_gnu_ld"
9888
9889old_CC="$CC"
9890old_CFLAGS="$CFLAGS"
9891
9892# Set sane defaults for various variables
9893test -z "$CC" && CC=cc
9894test -z "$LTCC" && LTCC=$CC
9895test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9896test -z "$LD" && LD=ld
9897test -z "$ac_objext" && ac_objext=o
9898
9899for cc_temp in $compiler""; do
9900  case $cc_temp in
9901    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9902    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9903    \-*) ;;
9904    *) break;;
9905  esac
9906done
9907cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9908
9909
9910# Only perform the check for file, if the check method requires it
9911test -z "$MAGIC_CMD" && MAGIC_CMD=file
9912case $deplibs_check_method in
9913file_magic*)
9914  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9915    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9916$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9917if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9918  $as_echo_n "(cached) " >&6
9919else
9920  case $MAGIC_CMD in
9921[\\/*] |  ?:[\\/]*)
9922  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9923  ;;
9924*)
9925  lt_save_MAGIC_CMD="$MAGIC_CMD"
9926  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9927  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9928  for ac_dir in $ac_dummy; do
9929    IFS="$lt_save_ifs"
9930    test -z "$ac_dir" && ac_dir=.
9931    if test -f $ac_dir/${ac_tool_prefix}file; then
9932      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9933      if test -n "$file_magic_test_file"; then
9934	case $deplibs_check_method in
9935	"file_magic "*)
9936	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9937	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9938	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9939	    $EGREP "$file_magic_regex" > /dev/null; then
9940	    :
9941	  else
9942	    cat <<_LT_EOF 1>&2
9943
9944*** Warning: the command libtool uses to detect shared libraries,
9945*** $file_magic_cmd, produces output that libtool cannot recognize.
9946*** The result is that libtool may fail to recognize shared libraries
9947*** as such.  This will affect the creation of libtool libraries that
9948*** depend on shared libraries, but programs linked with such libtool
9949*** libraries will work regardless of this problem.  Nevertheless, you
9950*** may want to report the problem to your system manager and/or to
9951*** bug-libtool@gnu.org
9952
9953_LT_EOF
9954	  fi ;;
9955	esac
9956      fi
9957      break
9958    fi
9959  done
9960  IFS="$lt_save_ifs"
9961  MAGIC_CMD="$lt_save_MAGIC_CMD"
9962  ;;
9963esac
9964fi
9965
9966MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9967if test -n "$MAGIC_CMD"; then
9968  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9969$as_echo "$MAGIC_CMD" >&6; }
9970else
9971  { $as_echo "$as_me:$LINENO: result: no" >&5
9972$as_echo "no" >&6; }
9973fi
9974
9975
9976
9977
9978
9979if test -z "$lt_cv_path_MAGIC_CMD"; then
9980  if test -n "$ac_tool_prefix"; then
9981    { $as_echo "$as_me:$LINENO: checking for file" >&5
9982$as_echo_n "checking for file... " >&6; }
9983if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9984  $as_echo_n "(cached) " >&6
9985else
9986  case $MAGIC_CMD in
9987[\\/*] |  ?:[\\/]*)
9988  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9989  ;;
9990*)
9991  lt_save_MAGIC_CMD="$MAGIC_CMD"
9992  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9993  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9994  for ac_dir in $ac_dummy; do
9995    IFS="$lt_save_ifs"
9996    test -z "$ac_dir" && ac_dir=.
9997    if test -f $ac_dir/file; then
9998      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9999      if test -n "$file_magic_test_file"; then
10000	case $deplibs_check_method in
10001	"file_magic "*)
10002	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10003	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10004	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10005	    $EGREP "$file_magic_regex" > /dev/null; then
10006	    :
10007	  else
10008	    cat <<_LT_EOF 1>&2
10009
10010*** Warning: the command libtool uses to detect shared libraries,
10011*** $file_magic_cmd, produces output that libtool cannot recognize.
10012*** The result is that libtool may fail to recognize shared libraries
10013*** as such.  This will affect the creation of libtool libraries that
10014*** depend on shared libraries, but programs linked with such libtool
10015*** libraries will work regardless of this problem.  Nevertheless, you
10016*** may want to report the problem to your system manager and/or to
10017*** bug-libtool@gnu.org
10018
10019_LT_EOF
10020	  fi ;;
10021	esac
10022      fi
10023      break
10024    fi
10025  done
10026  IFS="$lt_save_ifs"
10027  MAGIC_CMD="$lt_save_MAGIC_CMD"
10028  ;;
10029esac
10030fi
10031
10032MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10033if test -n "$MAGIC_CMD"; then
10034  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10035$as_echo "$MAGIC_CMD" >&6; }
10036else
10037  { $as_echo "$as_me:$LINENO: result: no" >&5
10038$as_echo "no" >&6; }
10039fi
10040
10041
10042  else
10043    MAGIC_CMD=:
10044  fi
10045fi
10046
10047  fi
10048  ;;
10049esac
10050
10051# Use C for the default configuration in the libtool script
10052
10053lt_save_CC="$CC"
10054ac_ext=c
10055ac_cpp='$CPP $CPPFLAGS'
10056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10058ac_compiler_gnu=$ac_cv_c_compiler_gnu
10059
10060
10061# Source file extension for C test sources.
10062ac_ext=c
10063
10064# Object file extension for compiled C test sources.
10065objext=o
10066objext=$objext
10067
10068# Code to be used in simple compile tests
10069lt_simple_compile_test_code="int some_variable = 0;"
10070
10071# Code to be used in simple link tests
10072lt_simple_link_test_code='int main(){return(0);}'
10073
10074
10075
10076
10077
10078
10079
10080# If no C compiler was specified, use CC.
10081LTCC=${LTCC-"$CC"}
10082
10083# If no C compiler flags were specified, use CFLAGS.
10084LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10085
10086# Allow CC to be a program name with arguments.
10087compiler=$CC
10088
10089# Save the default compiler, since it gets overwritten when the other
10090# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10091compiler_DEFAULT=$CC
10092
10093# save warnings/boilerplate of simple test code
10094ac_outfile=conftest.$ac_objext
10095echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10096eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10097_lt_compiler_boilerplate=`cat conftest.err`
10098$RM conftest*
10099
10100ac_outfile=conftest.$ac_objext
10101echo "$lt_simple_link_test_code" >conftest.$ac_ext
10102eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10103_lt_linker_boilerplate=`cat conftest.err`
10104$RM -r conftest*
10105
10106
10107## CAVEAT EMPTOR:
10108## There is no encapsulation within the following macros, do not change
10109## the running order or otherwise move them around unless you know exactly
10110## what you are doing...
10111if test -n "$compiler"; then
10112
10113lt_prog_compiler_no_builtin_flag=
10114
10115if test "$GCC" = yes; then
10116  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10117
10118  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10119$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10120if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10121  $as_echo_n "(cached) " >&6
10122else
10123  lt_cv_prog_compiler_rtti_exceptions=no
10124   ac_outfile=conftest.$ac_objext
10125   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10126   lt_compiler_flag="-fno-rtti -fno-exceptions"
10127   # Insert the option either (1) after the last *FLAGS variable, or
10128   # (2) before a word containing "conftest.", or (3) at the end.
10129   # Note that $ac_compile itself does not contain backslashes and begins
10130   # with a dollar sign (not a hyphen), so the echo should work correctly.
10131   # The option is referenced via a variable to avoid confusing sed.
10132   lt_compile=`echo "$ac_compile" | $SED \
10133   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10134   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10135   -e 's:$: $lt_compiler_flag:'`
10136   (eval echo "\"\$as_me:10136: $lt_compile\"" >&5)
10137   (eval "$lt_compile" 2>conftest.err)
10138   ac_status=$?
10139   cat conftest.err >&5
10140   echo "$as_me:10140: \$? = $ac_status" >&5
10141   if (exit $ac_status) && test -s "$ac_outfile"; then
10142     # The compiler can only warn and ignore the option if not recognized
10143     # So say no if there are warnings other than the usual output.
10144     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10145     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10146     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10147       lt_cv_prog_compiler_rtti_exceptions=yes
10148     fi
10149   fi
10150   $RM conftest*
10151
10152fi
10153{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10154$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10155
10156if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10157    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10158else
10159    :
10160fi
10161
10162fi
10163
10164
10165
10166
10167
10168
10169  lt_prog_compiler_wl=
10170lt_prog_compiler_pic=
10171lt_prog_compiler_static=
10172
10173{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10174$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10175
10176  if test "$GCC" = yes; then
10177    lt_prog_compiler_wl='-Wl,'
10178    lt_prog_compiler_static='-static'
10179
10180    case $host_os in
10181      aix*)
10182      # All AIX code is PIC.
10183      if test "$host_cpu" = ia64; then
10184	# AIX 5 now supports IA64 processor
10185	lt_prog_compiler_static='-Bstatic'
10186      fi
10187      ;;
10188
10189    amigaos*)
10190      case $host_cpu in
10191      powerpc)
10192            # see comment about AmigaOS4 .so support
10193            lt_prog_compiler_pic='-fPIC'
10194        ;;
10195      m68k)
10196            # FIXME: we need at least 68020 code to build shared libraries, but
10197            # adding the `-m68020' flag to GCC prevents building anything better,
10198            # like `-m68040'.
10199            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10200        ;;
10201      esac
10202      ;;
10203
10204    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10205      # PIC is the default for these OSes.
10206      ;;
10207
10208    mingw* | cygwin* | pw32* | os2* | cegcc*)
10209      # This hack is so that the source file can tell whether it is being
10210      # built for inclusion in a dll (and should export symbols for example).
10211      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10212      # (--disable-auto-import) libraries
10213      lt_prog_compiler_pic='-DDLL_EXPORT'
10214      ;;
10215
10216    darwin* | rhapsody*)
10217      # PIC is the default on this platform
10218      # Common symbols not allowed in MH_DYLIB files
10219      lt_prog_compiler_pic='-fno-common'
10220      ;;
10221
10222    hpux*)
10223      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10224      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10225      # sets the default TLS model and affects inlining.
10226      case $host_cpu in
10227      hppa*64*)
10228	# +Z the default
10229	;;
10230      *)
10231	lt_prog_compiler_pic='-fPIC'
10232	;;
10233      esac
10234      ;;
10235
10236    interix[3-9]*)
10237      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10238      # Instead, we relocate shared libraries at runtime.
10239      ;;
10240
10241    msdosdjgpp*)
10242      # Just because we use GCC doesn't mean we suddenly get shared libraries
10243      # on systems that don't support them.
10244      lt_prog_compiler_can_build_shared=no
10245      enable_shared=no
10246      ;;
10247
10248    *nto* | *qnx*)
10249      # QNX uses GNU C++, but need to define -shared option too, otherwise
10250      # it will coredump.
10251      lt_prog_compiler_pic='-fPIC -shared'
10252      ;;
10253
10254    sysv4*MP*)
10255      if test -d /usr/nec; then
10256	lt_prog_compiler_pic=-Kconform_pic
10257      fi
10258      ;;
10259
10260    *)
10261      lt_prog_compiler_pic='-fPIC'
10262      ;;
10263    esac
10264  else
10265    # PORTME Check for flag to pass linker flags through the system compiler.
10266    case $host_os in
10267    aix*)
10268      lt_prog_compiler_wl='-Wl,'
10269      if test "$host_cpu" = ia64; then
10270	# AIX 5 now supports IA64 processor
10271	lt_prog_compiler_static='-Bstatic'
10272      else
10273	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10274      fi
10275      ;;
10276
10277    mingw* | cygwin* | pw32* | os2* | cegcc*)
10278      # This hack is so that the source file can tell whether it is being
10279      # built for inclusion in a dll (and should export symbols for example).
10280      lt_prog_compiler_pic='-DDLL_EXPORT'
10281      ;;
10282
10283    hpux9* | hpux10* | hpux11*)
10284      lt_prog_compiler_wl='-Wl,'
10285      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10286      # not for PA HP-UX.
10287      case $host_cpu in
10288      hppa*64*|ia64*)
10289	# +Z the default
10290	;;
10291      *)
10292	lt_prog_compiler_pic='+Z'
10293	;;
10294      esac
10295      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10296      lt_prog_compiler_static='${wl}-a ${wl}archive'
10297      ;;
10298
10299    irix5* | irix6* | nonstopux*)
10300      lt_prog_compiler_wl='-Wl,'
10301      # PIC (with -KPIC) is the default.
10302      lt_prog_compiler_static='-non_shared'
10303      ;;
10304
10305    linux* | k*bsd*-gnu)
10306      case $cc_basename in
10307      # old Intel for x86_64 which still supported -KPIC.
10308      ecc*)
10309	lt_prog_compiler_wl='-Wl,'
10310	lt_prog_compiler_pic='-KPIC'
10311	lt_prog_compiler_static='-static'
10312        ;;
10313      # icc used to be incompatible with GCC.
10314      # ICC 10 doesn't accept -KPIC any more.
10315      icc* | ifort*)
10316	lt_prog_compiler_wl='-Wl,'
10317	lt_prog_compiler_pic='-fPIC'
10318	lt_prog_compiler_static='-static'
10319        ;;
10320      # Lahey Fortran 8.1.
10321      lf95*)
10322	lt_prog_compiler_wl='-Wl,'
10323	lt_prog_compiler_pic='--shared'
10324	lt_prog_compiler_static='--static'
10325	;;
10326      pgcc* | pgf77* | pgf90* | pgf95*)
10327        # Portland Group compilers (*not* the Pentium gcc compiler,
10328	# which looks to be a dead project)
10329	lt_prog_compiler_wl='-Wl,'
10330	lt_prog_compiler_pic='-fpic'
10331	lt_prog_compiler_static='-Bstatic'
10332        ;;
10333      ccc*)
10334        lt_prog_compiler_wl='-Wl,'
10335        # All Alpha code is PIC.
10336        lt_prog_compiler_static='-non_shared'
10337        ;;
10338      xl*)
10339	# IBM XL C 8.0/Fortran 10.1 on PPC
10340	lt_prog_compiler_wl='-Wl,'
10341	lt_prog_compiler_pic='-qpic'
10342	lt_prog_compiler_static='-qstaticlink'
10343	;;
10344      *)
10345	case `$CC -V 2>&1 | sed 5q` in
10346	*Sun\ C*)
10347	  # Sun C 5.9
10348	  lt_prog_compiler_pic='-KPIC'
10349	  lt_prog_compiler_static='-Bstatic'
10350	  lt_prog_compiler_wl='-Wl,'
10351	  ;;
10352	*Sun\ F*)
10353	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10354	  lt_prog_compiler_pic='-KPIC'
10355	  lt_prog_compiler_static='-Bstatic'
10356	  lt_prog_compiler_wl=''
10357	  ;;
10358	esac
10359	;;
10360      esac
10361      ;;
10362
10363    newsos6)
10364      lt_prog_compiler_pic='-KPIC'
10365      lt_prog_compiler_static='-Bstatic'
10366      ;;
10367
10368    *nto* | *qnx*)
10369      # QNX uses GNU C++, but need to define -shared option too, otherwise
10370      # it will coredump.
10371      lt_prog_compiler_pic='-fPIC -shared'
10372      ;;
10373
10374    osf3* | osf4* | osf5*)
10375      lt_prog_compiler_wl='-Wl,'
10376      # All OSF/1 code is PIC.
10377      lt_prog_compiler_static='-non_shared'
10378      ;;
10379
10380    rdos*)
10381      lt_prog_compiler_static='-non_shared'
10382      ;;
10383
10384    solaris*)
10385      lt_prog_compiler_pic='-KPIC'
10386      lt_prog_compiler_static='-Bstatic'
10387      case $cc_basename in
10388      f77* | f90* | f95*)
10389	lt_prog_compiler_wl='-Qoption ld ';;
10390      *)
10391	lt_prog_compiler_wl='-Wl,';;
10392      esac
10393      ;;
10394
10395    sunos4*)
10396      lt_prog_compiler_wl='-Qoption ld '
10397      lt_prog_compiler_pic='-PIC'
10398      lt_prog_compiler_static='-Bstatic'
10399      ;;
10400
10401    sysv4 | sysv4.2uw2* | sysv4.3*)
10402      lt_prog_compiler_wl='-Wl,'
10403      lt_prog_compiler_pic='-KPIC'
10404      lt_prog_compiler_static='-Bstatic'
10405      ;;
10406
10407    sysv4*MP*)
10408      if test -d /usr/nec ;then
10409	lt_prog_compiler_pic='-Kconform_pic'
10410	lt_prog_compiler_static='-Bstatic'
10411      fi
10412      ;;
10413
10414    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10415      lt_prog_compiler_wl='-Wl,'
10416      lt_prog_compiler_pic='-KPIC'
10417      lt_prog_compiler_static='-Bstatic'
10418      ;;
10419
10420    unicos*)
10421      lt_prog_compiler_wl='-Wl,'
10422      lt_prog_compiler_can_build_shared=no
10423      ;;
10424
10425    uts4*)
10426      lt_prog_compiler_pic='-pic'
10427      lt_prog_compiler_static='-Bstatic'
10428      ;;
10429
10430    *)
10431      lt_prog_compiler_can_build_shared=no
10432      ;;
10433    esac
10434  fi
10435
10436case $host_os in
10437  # For platforms which do not support PIC, -DPIC is meaningless:
10438  *djgpp*)
10439    lt_prog_compiler_pic=
10440    ;;
10441  *)
10442    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10443    ;;
10444esac
10445{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10446$as_echo "$lt_prog_compiler_pic" >&6; }
10447
10448
10449
10450
10451
10452
10453#
10454# Check to make sure the PIC flag actually works.
10455#
10456if test -n "$lt_prog_compiler_pic"; then
10457  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10458$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10459if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10460  $as_echo_n "(cached) " >&6
10461else
10462  lt_cv_prog_compiler_pic_works=no
10463   ac_outfile=conftest.$ac_objext
10464   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10465   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10466   # Insert the option either (1) after the last *FLAGS variable, or
10467   # (2) before a word containing "conftest.", or (3) at the end.
10468   # Note that $ac_compile itself does not contain backslashes and begins
10469   # with a dollar sign (not a hyphen), so the echo should work correctly.
10470   # The option is referenced via a variable to avoid confusing sed.
10471   lt_compile=`echo "$ac_compile" | $SED \
10472   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10473   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10474   -e 's:$: $lt_compiler_flag:'`
10475   (eval echo "\"\$as_me:10475: $lt_compile\"" >&5)
10476   (eval "$lt_compile" 2>conftest.err)
10477   ac_status=$?
10478   cat conftest.err >&5
10479   echo "$as_me:10479: \$? = $ac_status" >&5
10480   if (exit $ac_status) && test -s "$ac_outfile"; then
10481     # The compiler can only warn and ignore the option if not recognized
10482     # So say no if there are warnings other than the usual output.
10483     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10484     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10485     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10486       lt_cv_prog_compiler_pic_works=yes
10487     fi
10488   fi
10489   $RM conftest*
10490
10491fi
10492{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10493$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10494
10495if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10496    case $lt_prog_compiler_pic in
10497     "" | " "*) ;;
10498     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10499     esac
10500else
10501    lt_prog_compiler_pic=
10502     lt_prog_compiler_can_build_shared=no
10503fi
10504
10505fi
10506
10507
10508
10509
10510
10511
10512#
10513# Check to make sure the static flag actually works.
10514#
10515wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10516{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10517$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10518if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10519  $as_echo_n "(cached) " >&6
10520else
10521  lt_cv_prog_compiler_static_works=no
10522   save_LDFLAGS="$LDFLAGS"
10523   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10524   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10525   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10526     # The linker can only warn and ignore the option if not recognized
10527     # So say no if there are warnings
10528     if test -s conftest.err; then
10529       # Append any errors to the config.log.
10530       cat conftest.err 1>&5
10531       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10532       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10533       if diff conftest.exp conftest.er2 >/dev/null; then
10534         lt_cv_prog_compiler_static_works=yes
10535       fi
10536     else
10537       lt_cv_prog_compiler_static_works=yes
10538     fi
10539   fi
10540   $RM -r conftest*
10541   LDFLAGS="$save_LDFLAGS"
10542
10543fi
10544{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10545$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10546
10547if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10548    :
10549else
10550    lt_prog_compiler_static=
10551fi
10552
10553
10554
10555
10556
10557
10558
10559  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10560$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10561if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10562  $as_echo_n "(cached) " >&6
10563else
10564  lt_cv_prog_compiler_c_o=no
10565   $RM -r conftest 2>/dev/null
10566   mkdir conftest
10567   cd conftest
10568   mkdir out
10569   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10570
10571   lt_compiler_flag="-o out/conftest2.$ac_objext"
10572   # Insert the option either (1) after the last *FLAGS variable, or
10573   # (2) before a word containing "conftest.", or (3) at the end.
10574   # Note that $ac_compile itself does not contain backslashes and begins
10575   # with a dollar sign (not a hyphen), so the echo should work correctly.
10576   lt_compile=`echo "$ac_compile" | $SED \
10577   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10578   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10579   -e 's:$: $lt_compiler_flag:'`
10580   (eval echo "\"\$as_me:10580: $lt_compile\"" >&5)
10581   (eval "$lt_compile" 2>out/conftest.err)
10582   ac_status=$?
10583   cat out/conftest.err >&5
10584   echo "$as_me:10584: \$? = $ac_status" >&5
10585   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10586   then
10587     # The compiler can only warn and ignore the option if not recognized
10588     # So say no if there are warnings
10589     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10590     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10591     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10592       lt_cv_prog_compiler_c_o=yes
10593     fi
10594   fi
10595   chmod u+w . 2>&5
10596   $RM conftest*
10597   # SGI C++ compiler will create directory out/ii_files/ for
10598   # template instantiation
10599   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10600   $RM out/* && rmdir out
10601   cd ..
10602   $RM -r conftest
10603   $RM conftest*
10604
10605fi
10606{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10607$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10608
10609
10610
10611
10612
10613
10614  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10615$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10616if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10617  $as_echo_n "(cached) " >&6
10618else
10619  lt_cv_prog_compiler_c_o=no
10620   $RM -r conftest 2>/dev/null
10621   mkdir conftest
10622   cd conftest
10623   mkdir out
10624   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10625
10626   lt_compiler_flag="-o out/conftest2.$ac_objext"
10627   # Insert the option either (1) after the last *FLAGS variable, or
10628   # (2) before a word containing "conftest.", or (3) at the end.
10629   # Note that $ac_compile itself does not contain backslashes and begins
10630   # with a dollar sign (not a hyphen), so the echo should work correctly.
10631   lt_compile=`echo "$ac_compile" | $SED \
10632   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10633   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10634   -e 's:$: $lt_compiler_flag:'`
10635   (eval echo "\"\$as_me:10635: $lt_compile\"" >&5)
10636   (eval "$lt_compile" 2>out/conftest.err)
10637   ac_status=$?
10638   cat out/conftest.err >&5
10639   echo "$as_me:10639: \$? = $ac_status" >&5
10640   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10641   then
10642     # The compiler can only warn and ignore the option if not recognized
10643     # So say no if there are warnings
10644     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10645     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10646     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10647       lt_cv_prog_compiler_c_o=yes
10648     fi
10649   fi
10650   chmod u+w . 2>&5
10651   $RM conftest*
10652   # SGI C++ compiler will create directory out/ii_files/ for
10653   # template instantiation
10654   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10655   $RM out/* && rmdir out
10656   cd ..
10657   $RM -r conftest
10658   $RM conftest*
10659
10660fi
10661{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10662$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10663
10664
10665
10666
10667hard_links="nottested"
10668if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10669  # do not overwrite the value of need_locks provided by the user
10670  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10671$as_echo_n "checking if we can lock with hard links... " >&6; }
10672  hard_links=yes
10673  $RM conftest*
10674  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10675  touch conftest.a
10676  ln conftest.a conftest.b 2>&5 || hard_links=no
10677  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10678  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10679$as_echo "$hard_links" >&6; }
10680  if test "$hard_links" = no; then
10681    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10682$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10683    need_locks=warn
10684  fi
10685else
10686  need_locks=no
10687fi
10688
10689
10690
10691
10692
10693
10694  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10695$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10696
10697  runpath_var=
10698  allow_undefined_flag=
10699  always_export_symbols=no
10700  archive_cmds=
10701  archive_expsym_cmds=
10702  compiler_needs_object=no
10703  enable_shared_with_static_runtimes=no
10704  export_dynamic_flag_spec=
10705  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10706  hardcode_automatic=no
10707  hardcode_direct=no
10708  hardcode_direct_absolute=no
10709  hardcode_libdir_flag_spec=
10710  hardcode_libdir_flag_spec_ld=
10711  hardcode_libdir_separator=
10712  hardcode_minus_L=no
10713  hardcode_shlibpath_var=unsupported
10714  inherit_rpath=no
10715  link_all_deplibs=unknown
10716  module_cmds=
10717  module_expsym_cmds=
10718  old_archive_from_new_cmds=
10719  old_archive_from_expsyms_cmds=
10720  thread_safe_flag_spec=
10721  whole_archive_flag_spec=
10722  # include_expsyms should be a list of space-separated symbols to be *always*
10723  # included in the symbol list
10724  include_expsyms=
10725  # exclude_expsyms can be an extended regexp of symbols to exclude
10726  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10727  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10728  # as well as any symbol that contains `d'.
10729  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10730  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10731  # platforms (ab)use it in PIC code, but their linkers get confused if
10732  # the symbol is explicitly referenced.  Since portable code cannot
10733  # rely on this symbol name, it's probably fine to never include it in
10734  # preloaded symbol tables.
10735  # Exclude shared library initialization/finalization symbols.
10736  extract_expsyms_cmds=
10737
10738  case $host_os in
10739  cygwin* | mingw* | pw32* | cegcc*)
10740    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10741    # When not using gcc, we currently assume that we are using
10742    # Microsoft Visual C++.
10743    if test "$GCC" != yes; then
10744      with_gnu_ld=no
10745    fi
10746    ;;
10747  interix*)
10748    # we just hope/assume this is gcc and not c89 (= MSVC++)
10749    with_gnu_ld=yes
10750    ;;
10751  openbsd*)
10752    with_gnu_ld=no
10753    ;;
10754  esac
10755
10756  ld_shlibs=yes
10757  if test "$with_gnu_ld" = yes; then
10758    # If archive_cmds runs LD, not CC, wlarc should be empty
10759    wlarc='${wl}'
10760
10761    # Set some defaults for GNU ld with shared library support. These
10762    # are reset later if shared libraries are not supported. Putting them
10763    # here allows them to be overridden if necessary.
10764    runpath_var=LD_RUN_PATH
10765    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10766    export_dynamic_flag_spec='${wl}--export-dynamic'
10767    # ancient GNU ld didn't support --whole-archive et. al.
10768    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10769      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10770    else
10771      whole_archive_flag_spec=
10772    fi
10773    supports_anon_versioning=no
10774    case `$LD -v 2>&1` in
10775      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10776      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10777      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10778      *\ 2.11.*) ;; # other 2.11 versions
10779      *) supports_anon_versioning=yes ;;
10780    esac
10781
10782    # See if GNU ld supports shared libraries.
10783    case $host_os in
10784    aix[3-9]*)
10785      # On AIX/PPC, the GNU linker is very broken
10786      if test "$host_cpu" != ia64; then
10787	ld_shlibs=no
10788	cat <<_LT_EOF 1>&2
10789
10790*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10791*** to be unable to reliably create shared libraries on AIX.
10792*** Therefore, libtool is disabling shared libraries support.  If you
10793*** really care for shared libraries, you may want to modify your PATH
10794*** so that a non-GNU linker is found, and then restart.
10795
10796_LT_EOF
10797      fi
10798      ;;
10799
10800    amigaos*)
10801      case $host_cpu in
10802      powerpc)
10803            # see comment about AmigaOS4 .so support
10804            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10805            archive_expsym_cmds=''
10806        ;;
10807      m68k)
10808            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)'
10809            hardcode_libdir_flag_spec='-L$libdir'
10810            hardcode_minus_L=yes
10811        ;;
10812      esac
10813      ;;
10814
10815    beos*)
10816      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10817	allow_undefined_flag=unsupported
10818	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10819	# support --undefined.  This deserves some investigation.  FIXME
10820	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10821      else
10822	ld_shlibs=no
10823      fi
10824      ;;
10825
10826    cygwin* | mingw* | pw32* | cegcc*)
10827      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10828      # as there is no search path for DLLs.
10829      hardcode_libdir_flag_spec='-L$libdir'
10830      allow_undefined_flag=unsupported
10831      always_export_symbols=no
10832      enable_shared_with_static_runtimes=yes
10833      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10834
10835      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10836        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10837	# If the export-symbols file already is a .def file (1st line
10838	# is EXPORTS), use it as is; otherwise, prepend...
10839	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10840	  cp $export_symbols $output_objdir/$soname.def;
10841	else
10842	  echo EXPORTS > $output_objdir/$soname.def;
10843	  cat $export_symbols >> $output_objdir/$soname.def;
10844	fi~
10845	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10846      else
10847	ld_shlibs=no
10848      fi
10849      ;;
10850
10851    interix[3-9]*)
10852      hardcode_direct=no
10853      hardcode_shlibpath_var=no
10854      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10855      export_dynamic_flag_spec='${wl}-E'
10856      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10857      # Instead, shared libraries are loaded at an image base (0x10000000 by
10858      # default) and relocated if they conflict, which is a slow very memory
10859      # consuming and fragmenting process.  To avoid this, we pick a random,
10860      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10861      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10862      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10863      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'
10864      ;;
10865
10866    gnu* | linux* | tpf* | k*bsd*-gnu)
10867      tmp_diet=no
10868      if test "$host_os" = linux-dietlibc; then
10869	case $cc_basename in
10870	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10871	esac
10872      fi
10873      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10874	 && test "$tmp_diet" = no
10875      then
10876	tmp_addflag=
10877	tmp_sharedflag='-shared'
10878	case $cc_basename,$host_cpu in
10879        pgcc*)				# Portland Group C compiler
10880	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10881	  tmp_addflag=' $pic_flag'
10882	  ;;
10883	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
10884	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10885	  tmp_addflag=' $pic_flag -Mnomain' ;;
10886	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10887	  tmp_addflag=' -i_dynamic' ;;
10888	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10889	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10890	ifc* | ifort*)			# Intel Fortran compiler
10891	  tmp_addflag=' -nofor_main' ;;
10892	lf95*)				# Lahey Fortran 8.1
10893	  whole_archive_flag_spec=
10894	  tmp_sharedflag='--shared' ;;
10895	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
10896	  tmp_sharedflag='-qmkshrobj'
10897	  tmp_addflag= ;;
10898	esac
10899	case `$CC -V 2>&1 | sed 5q` in
10900	*Sun\ C*)			# Sun C 5.9
10901	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10902	  compiler_needs_object=yes
10903	  tmp_sharedflag='-G' ;;
10904	*Sun\ F*)			# Sun Fortran 8.3
10905	  tmp_sharedflag='-G' ;;
10906	esac
10907	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10908
10909        if test "x$supports_anon_versioning" = xyes; then
10910          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10911	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10912	    echo "local: *; };" >> $output_objdir/$libname.ver~
10913	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10914        fi
10915
10916	case $cc_basename in
10917	xlf*)
10918	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10919	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10920	  hardcode_libdir_flag_spec=
10921	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
10922	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10923	  if test "x$supports_anon_versioning" = xyes; then
10924	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10925	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10926	      echo "local: *; };" >> $output_objdir/$libname.ver~
10927	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10928	  fi
10929	  ;;
10930	esac
10931      else
10932        ld_shlibs=no
10933      fi
10934      ;;
10935
10936    netbsd*)
10937      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10938	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10939	wlarc=
10940      else
10941	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10942	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10943      fi
10944      ;;
10945
10946    solaris*)
10947      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10948	ld_shlibs=no
10949	cat <<_LT_EOF 1>&2
10950
10951*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10952*** create shared libraries on Solaris systems.  Therefore, libtool
10953*** is disabling shared libraries support.  We urge you to upgrade GNU
10954*** binutils to release 2.9.1 or newer.  Another option is to modify
10955*** your PATH or compiler configuration so that the native linker is
10956*** used, and then restart.
10957
10958_LT_EOF
10959      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10960	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10961	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10962      else
10963	ld_shlibs=no
10964      fi
10965      ;;
10966
10967    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10968      case `$LD -v 2>&1` in
10969        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10970	ld_shlibs=no
10971	cat <<_LT_EOF 1>&2
10972
10973*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10974*** reliably create shared libraries on SCO systems.  Therefore, libtool
10975*** is disabling shared libraries support.  We urge you to upgrade GNU
10976*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10977*** your PATH or compiler configuration so that the native linker is
10978*** used, and then restart.
10979
10980_LT_EOF
10981	;;
10982	*)
10983	  # For security reasons, it is highly recommended that you always
10984	  # use absolute paths for naming shared libraries, and exclude the
10985	  # DT_RUNPATH tag from executables and libraries.  But doing so
10986	  # requires that you compile everything twice, which is a pain.
10987	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10988	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10989	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10990	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10991	  else
10992	    ld_shlibs=no
10993	  fi
10994	;;
10995      esac
10996      ;;
10997
10998    sunos4*)
10999      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11000      wlarc=
11001      hardcode_direct=yes
11002      hardcode_shlibpath_var=no
11003      ;;
11004
11005    *)
11006      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11007	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11008	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11009      else
11010	ld_shlibs=no
11011      fi
11012      ;;
11013    esac
11014
11015    if test "$ld_shlibs" = no; then
11016      runpath_var=
11017      hardcode_libdir_flag_spec=
11018      export_dynamic_flag_spec=
11019      whole_archive_flag_spec=
11020    fi
11021  else
11022    # PORTME fill in a description of your system's linker (not GNU ld)
11023    case $host_os in
11024    aix3*)
11025      allow_undefined_flag=unsupported
11026      always_export_symbols=yes
11027      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'
11028      # Note: this linker hardcodes the directories in LIBPATH if there
11029      # are no directories specified by -L.
11030      hardcode_minus_L=yes
11031      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11032	# Neither direct hardcoding nor static linking is supported with a
11033	# broken collect2.
11034	hardcode_direct=unsupported
11035      fi
11036      ;;
11037
11038    aix[4-9]*)
11039      if test "$host_cpu" = ia64; then
11040	# On IA64, the linker does run time linking by default, so we don't
11041	# have to do anything special.
11042	aix_use_runtimelinking=no
11043	exp_sym_flag='-Bexport'
11044	no_entry_flag=""
11045      else
11046	# If we're using GNU nm, then we don't want the "-C" option.
11047	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11048	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11049	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11050	else
11051	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11052	fi
11053	aix_use_runtimelinking=no
11054
11055	# Test if we are trying to use run time linking or normal
11056	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11057	# need to do runtime linking.
11058	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11059	  for ld_flag in $LDFLAGS; do
11060	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11061	    aix_use_runtimelinking=yes
11062	    break
11063	  fi
11064	  done
11065	  ;;
11066	esac
11067
11068	exp_sym_flag='-bexport'
11069	no_entry_flag='-bnoentry'
11070      fi
11071
11072      # When large executables or shared objects are built, AIX ld can
11073      # have problems creating the table of contents.  If linking a library
11074      # or program results in "error TOC overflow" add -mminimal-toc to
11075      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11076      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11077
11078      archive_cmds=''
11079      hardcode_direct=yes
11080      hardcode_direct_absolute=yes
11081      hardcode_libdir_separator=':'
11082      link_all_deplibs=yes
11083      file_list_spec='${wl}-f,'
11084
11085      if test "$GCC" = yes; then
11086	case $host_os in aix4.[012]|aix4.[012].*)
11087	# We only want to do this on AIX 4.2 and lower, the check
11088	# below for broken collect2 doesn't work under 4.3+
11089	  collect2name=`${CC} -print-prog-name=collect2`
11090	  if test -f "$collect2name" &&
11091	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11092	  then
11093	  # We have reworked collect2
11094	  :
11095	  else
11096	  # We have old collect2
11097	  hardcode_direct=unsupported
11098	  # It fails to find uninstalled libraries when the uninstalled
11099	  # path is not listed in the libpath.  Setting hardcode_minus_L
11100	  # to unsupported forces relinking
11101	  hardcode_minus_L=yes
11102	  hardcode_libdir_flag_spec='-L$libdir'
11103	  hardcode_libdir_separator=
11104	  fi
11105	  ;;
11106	esac
11107	shared_flag='-shared'
11108	if test "$aix_use_runtimelinking" = yes; then
11109	  shared_flag="$shared_flag "'${wl}-G'
11110	fi
11111      else
11112	# not using gcc
11113	if test "$host_cpu" = ia64; then
11114	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11115	# chokes on -Wl,-G. The following line is correct:
11116	  shared_flag='-G'
11117	else
11118	  if test "$aix_use_runtimelinking" = yes; then
11119	    shared_flag='${wl}-G'
11120	  else
11121	    shared_flag='${wl}-bM:SRE'
11122	  fi
11123	fi
11124      fi
11125
11126      export_dynamic_flag_spec='${wl}-bexpall'
11127      # It seems that -bexpall does not export symbols beginning with
11128      # underscore (_), so it is better to generate a list of symbols to export.
11129      always_export_symbols=yes
11130      if test "$aix_use_runtimelinking" = yes; then
11131	# Warning - without using the other runtime loading flags (-brtl),
11132	# -berok will link without error, but may produce a broken library.
11133	allow_undefined_flag='-berok'
11134        # Determine the default libpath from the value encoded in an
11135        # empty executable.
11136        cat >conftest.$ac_ext <<_ACEOF
11137/* confdefs.h.  */
11138_ACEOF
11139cat confdefs.h >>conftest.$ac_ext
11140cat >>conftest.$ac_ext <<_ACEOF
11141/* end confdefs.h.  */
11142
11143int
11144main ()
11145{
11146
11147  ;
11148  return 0;
11149}
11150_ACEOF
11151rm -f conftest.$ac_objext conftest$ac_exeext
11152if { (ac_try="$ac_link"
11153case "(($ac_try" in
11154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155  *) ac_try_echo=$ac_try;;
11156esac
11157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11158$as_echo "$ac_try_echo") >&5
11159  (eval "$ac_link") 2>conftest.er1
11160  ac_status=$?
11161  grep -v '^ *+' conftest.er1 >conftest.err
11162  rm -f conftest.er1
11163  cat conftest.err >&5
11164  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165  (exit $ac_status); } && {
11166	 test -z "$ac_c_werror_flag" ||
11167	 test ! -s conftest.err
11168       } && test -s conftest$ac_exeext && {
11169	 test "$cross_compiling" = yes ||
11170	 $as_test_x conftest$ac_exeext
11171       }; then
11172
11173lt_aix_libpath_sed='
11174    /Import File Strings/,/^$/ {
11175	/^0/ {
11176	    s/^0  *\(.*\)$/\1/
11177	    p
11178	}
11179    }'
11180aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11181# Check for a 64-bit object if we didn't find anything.
11182if test -z "$aix_libpath"; then
11183  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11184fi
11185else
11186  $as_echo "$as_me: failed program was:" >&5
11187sed 's/^/| /' conftest.$ac_ext >&5
11188
11189
11190fi
11191
11192rm -rf conftest.dSYM
11193rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11194      conftest$ac_exeext conftest.$ac_ext
11195if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11196
11197        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11198        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11199      else
11200	if test "$host_cpu" = ia64; then
11201	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11202	  allow_undefined_flag="-z nodefs"
11203	  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"
11204	else
11205	 # Determine the default libpath from the value encoded in an
11206	 # empty executable.
11207	 cat >conftest.$ac_ext <<_ACEOF
11208/* confdefs.h.  */
11209_ACEOF
11210cat confdefs.h >>conftest.$ac_ext
11211cat >>conftest.$ac_ext <<_ACEOF
11212/* end confdefs.h.  */
11213
11214int
11215main ()
11216{
11217
11218  ;
11219  return 0;
11220}
11221_ACEOF
11222rm -f conftest.$ac_objext conftest$ac_exeext
11223if { (ac_try="$ac_link"
11224case "(($ac_try" in
11225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226  *) ac_try_echo=$ac_try;;
11227esac
11228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11229$as_echo "$ac_try_echo") >&5
11230  (eval "$ac_link") 2>conftest.er1
11231  ac_status=$?
11232  grep -v '^ *+' conftest.er1 >conftest.err
11233  rm -f conftest.er1
11234  cat conftest.err >&5
11235  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236  (exit $ac_status); } && {
11237	 test -z "$ac_c_werror_flag" ||
11238	 test ! -s conftest.err
11239       } && test -s conftest$ac_exeext && {
11240	 test "$cross_compiling" = yes ||
11241	 $as_test_x conftest$ac_exeext
11242       }; then
11243
11244lt_aix_libpath_sed='
11245    /Import File Strings/,/^$/ {
11246	/^0/ {
11247	    s/^0  *\(.*\)$/\1/
11248	    p
11249	}
11250    }'
11251aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11252# Check for a 64-bit object if we didn't find anything.
11253if test -z "$aix_libpath"; then
11254  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11255fi
11256else
11257  $as_echo "$as_me: failed program was:" >&5
11258sed 's/^/| /' conftest.$ac_ext >&5
11259
11260
11261fi
11262
11263rm -rf conftest.dSYM
11264rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11265      conftest$ac_exeext conftest.$ac_ext
11266if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11267
11268	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11269	  # Warning - without using the other run time loading flags,
11270	  # -berok will link without error, but may produce a broken library.
11271	  no_undefined_flag=' ${wl}-bernotok'
11272	  allow_undefined_flag=' ${wl}-berok'
11273	  # Exported symbols can be pulled into shared objects from archives
11274	  whole_archive_flag_spec='$convenience'
11275	  archive_cmds_need_lc=yes
11276	  # This is similar to how AIX traditionally builds its shared libraries.
11277	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11278	fi
11279      fi
11280      ;;
11281
11282    amigaos*)
11283      case $host_cpu in
11284      powerpc)
11285            # see comment about AmigaOS4 .so support
11286            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11287            archive_expsym_cmds=''
11288        ;;
11289      m68k)
11290            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)'
11291            hardcode_libdir_flag_spec='-L$libdir'
11292            hardcode_minus_L=yes
11293        ;;
11294      esac
11295      ;;
11296
11297    bsdi[45]*)
11298      export_dynamic_flag_spec=-rdynamic
11299      ;;
11300
11301    cygwin* | mingw* | pw32* | cegcc*)
11302      # When not using gcc, we currently assume that we are using
11303      # Microsoft Visual C++.
11304      # hardcode_libdir_flag_spec is actually meaningless, as there is
11305      # no search path for DLLs.
11306      hardcode_libdir_flag_spec=' '
11307      allow_undefined_flag=unsupported
11308      # Tell ltmain to make .lib files, not .a files.
11309      libext=lib
11310      # Tell ltmain to make .dll files, not .so files.
11311      shrext_cmds=".dll"
11312      # FIXME: Setting linknames here is a bad hack.
11313      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11314      # The linker will automatically build a .lib file if we build a DLL.
11315      old_archive_from_new_cmds='true'
11316      # FIXME: Should let the user specify the lib program.
11317      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11318      fix_srcfile_path='`cygpath -w "$srcfile"`'
11319      enable_shared_with_static_runtimes=yes
11320      ;;
11321
11322    darwin* | rhapsody*)
11323
11324
11325  archive_cmds_need_lc=no
11326  hardcode_direct=no
11327  hardcode_automatic=yes
11328  hardcode_shlibpath_var=unsupported
11329  whole_archive_flag_spec=''
11330  link_all_deplibs=yes
11331  allow_undefined_flag="$_lt_dar_allow_undefined"
11332  case $cc_basename in
11333     ifort*) _lt_dar_can_shared=yes ;;
11334     *) _lt_dar_can_shared=$GCC ;;
11335  esac
11336  if test "$_lt_dar_can_shared" = "yes"; then
11337    output_verbose_link_cmd=echo
11338    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11339    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11340    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}"
11341    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}"
11342
11343  else
11344  ld_shlibs=no
11345  fi
11346
11347      ;;
11348
11349    dgux*)
11350      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11351      hardcode_libdir_flag_spec='-L$libdir'
11352      hardcode_shlibpath_var=no
11353      ;;
11354
11355    freebsd1*)
11356      ld_shlibs=no
11357      ;;
11358
11359    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11360    # support.  Future versions do this automatically, but an explicit c++rt0.o
11361    # does not break anything, and helps significantly (at the cost of a little
11362    # extra space).
11363    freebsd2.2*)
11364      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11365      hardcode_libdir_flag_spec='-R$libdir'
11366      hardcode_direct=yes
11367      hardcode_shlibpath_var=no
11368      ;;
11369
11370    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11371    freebsd2*)
11372      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11373      hardcode_direct=yes
11374      hardcode_minus_L=yes
11375      hardcode_shlibpath_var=no
11376      ;;
11377
11378    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11379    freebsd* | dragonfly*)
11380      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11381      hardcode_libdir_flag_spec='-R$libdir'
11382      hardcode_direct=yes
11383      hardcode_shlibpath_var=no
11384      ;;
11385
11386    hpux9*)
11387      if test "$GCC" = yes; then
11388	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11389      else
11390	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11391      fi
11392      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11393      hardcode_libdir_separator=:
11394      hardcode_direct=yes
11395
11396      # hardcode_minus_L: Not really in the search PATH,
11397      # but as the default location of the library.
11398      hardcode_minus_L=yes
11399      export_dynamic_flag_spec='${wl}-E'
11400      ;;
11401
11402    hpux10*)
11403      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11404	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11405      else
11406	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11407      fi
11408      if test "$with_gnu_ld" = no; then
11409	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11410	hardcode_libdir_flag_spec_ld='+b $libdir'
11411	hardcode_libdir_separator=:
11412	hardcode_direct=yes
11413	hardcode_direct_absolute=yes
11414	export_dynamic_flag_spec='${wl}-E'
11415	# hardcode_minus_L: Not really in the search PATH,
11416	# but as the default location of the library.
11417	hardcode_minus_L=yes
11418      fi
11419      ;;
11420
11421    hpux11*)
11422      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11423	case $host_cpu in
11424	hppa*64*)
11425	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11426	  ;;
11427	ia64*)
11428	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11429	  ;;
11430	*)
11431	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11432	  ;;
11433	esac
11434      else
11435	case $host_cpu in
11436	hppa*64*)
11437	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11438	  ;;
11439	ia64*)
11440	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11441	  ;;
11442	*)
11443	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11444	  ;;
11445	esac
11446      fi
11447      if test "$with_gnu_ld" = no; then
11448	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11449	hardcode_libdir_separator=:
11450
11451	case $host_cpu in
11452	hppa*64*|ia64*)
11453	  hardcode_direct=no
11454	  hardcode_shlibpath_var=no
11455	  ;;
11456	*)
11457	  hardcode_direct=yes
11458	  hardcode_direct_absolute=yes
11459	  export_dynamic_flag_spec='${wl}-E'
11460
11461	  # hardcode_minus_L: Not really in the search PATH,
11462	  # but as the default location of the library.
11463	  hardcode_minus_L=yes
11464	  ;;
11465	esac
11466      fi
11467      ;;
11468
11469    irix5* | irix6* | nonstopux*)
11470      if test "$GCC" = yes; then
11471	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11472	# Try to use the -exported_symbol ld option, if it does not
11473	# work, assume that -exports_file does not work either and
11474	# implicitly export all symbols.
11475        save_LDFLAGS="$LDFLAGS"
11476        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11477        cat >conftest.$ac_ext <<_ACEOF
11478int foo(void) {}
11479_ACEOF
11480rm -f conftest.$ac_objext conftest$ac_exeext
11481if { (ac_try="$ac_link"
11482case "(($ac_try" in
11483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484  *) ac_try_echo=$ac_try;;
11485esac
11486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11487$as_echo "$ac_try_echo") >&5
11488  (eval "$ac_link") 2>conftest.er1
11489  ac_status=$?
11490  grep -v '^ *+' conftest.er1 >conftest.err
11491  rm -f conftest.er1
11492  cat conftest.err >&5
11493  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494  (exit $ac_status); } && {
11495	 test -z "$ac_c_werror_flag" ||
11496	 test ! -s conftest.err
11497       } && test -s conftest$ac_exeext && {
11498	 test "$cross_compiling" = yes ||
11499	 $as_test_x conftest$ac_exeext
11500       }; then
11501  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11502
11503else
11504  $as_echo "$as_me: failed program was:" >&5
11505sed 's/^/| /' conftest.$ac_ext >&5
11506
11507
11508fi
11509
11510rm -rf conftest.dSYM
11511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11512      conftest$ac_exeext conftest.$ac_ext
11513        LDFLAGS="$save_LDFLAGS"
11514      else
11515	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11516	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11517      fi
11518      archive_cmds_need_lc='no'
11519      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11520      hardcode_libdir_separator=:
11521      inherit_rpath=yes
11522      link_all_deplibs=yes
11523      ;;
11524
11525    netbsd*)
11526      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11527	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11528      else
11529	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11530      fi
11531      hardcode_libdir_flag_spec='-R$libdir'
11532      hardcode_direct=yes
11533      hardcode_shlibpath_var=no
11534      ;;
11535
11536    newsos6)
11537      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11538      hardcode_direct=yes
11539      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11540      hardcode_libdir_separator=:
11541      hardcode_shlibpath_var=no
11542      ;;
11543
11544    *nto* | *qnx*)
11545      ;;
11546
11547    openbsd*)
11548      if test -f /usr/libexec/ld.so; then
11549	hardcode_direct=yes
11550	hardcode_shlibpath_var=no
11551	hardcode_direct_absolute=yes
11552	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11553	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11554	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11555	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11556	  export_dynamic_flag_spec='${wl}-E'
11557	else
11558	  case $host_os in
11559	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11560	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11561	     hardcode_libdir_flag_spec='-R$libdir'
11562	     ;;
11563	   *)
11564	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11565	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11566	     ;;
11567	  esac
11568	fi
11569      else
11570	ld_shlibs=no
11571      fi
11572      ;;
11573
11574    os2*)
11575      hardcode_libdir_flag_spec='-L$libdir'
11576      hardcode_minus_L=yes
11577      allow_undefined_flag=unsupported
11578      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11579      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11580      ;;
11581
11582    osf3*)
11583      if test "$GCC" = yes; then
11584	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11585	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11586      else
11587	allow_undefined_flag=' -expect_unresolved \*'
11588	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11589      fi
11590      archive_cmds_need_lc='no'
11591      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11592      hardcode_libdir_separator=:
11593      ;;
11594
11595    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11596      if test "$GCC" = yes; then
11597	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11598	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11599	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11600      else
11601	allow_undefined_flag=' -expect_unresolved \*'
11602	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11603	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~
11604	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11605
11606	# Both c and cxx compiler support -rpath directly
11607	hardcode_libdir_flag_spec='-rpath $libdir'
11608      fi
11609      archive_cmds_need_lc='no'
11610      hardcode_libdir_separator=:
11611      ;;
11612
11613    solaris*)
11614      no_undefined_flag=' -z defs'
11615      if test "$GCC" = yes; then
11616	wlarc='${wl}'
11617	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11618	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11619	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11620      else
11621	case `$CC -V 2>&1` in
11622	*"Compilers 5.0"*)
11623	  wlarc=''
11624	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11625	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11626	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11627	  ;;
11628	*)
11629	  wlarc='${wl}'
11630	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11631	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11632	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11633	  ;;
11634	esac
11635      fi
11636      hardcode_libdir_flag_spec='-R$libdir'
11637      hardcode_shlibpath_var=no
11638      case $host_os in
11639      solaris2.[0-5] | solaris2.[0-5].*) ;;
11640      *)
11641	# The compiler driver will combine and reorder linker options,
11642	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11643	# but is careful enough not to reorder.
11644	# Supported since Solaris 2.6 (maybe 2.5.1?)
11645	if test "$GCC" = yes; then
11646	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11647	else
11648	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11649	fi
11650	;;
11651      esac
11652      link_all_deplibs=yes
11653      ;;
11654
11655    sunos4*)
11656      if test "x$host_vendor" = xsequent; then
11657	# Use $CC to link under sequent, because it throws in some extra .o
11658	# files that make .init and .fini sections work.
11659	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11660      else
11661	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11662      fi
11663      hardcode_libdir_flag_spec='-L$libdir'
11664      hardcode_direct=yes
11665      hardcode_minus_L=yes
11666      hardcode_shlibpath_var=no
11667      ;;
11668
11669    sysv4)
11670      case $host_vendor in
11671	sni)
11672	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11673	  hardcode_direct=yes # is this really true???
11674	;;
11675	siemens)
11676	  ## LD is ld it makes a PLAMLIB
11677	  ## CC just makes a GrossModule.
11678	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11679	  reload_cmds='$CC -r -o $output$reload_objs'
11680	  hardcode_direct=no
11681        ;;
11682	motorola)
11683	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11684	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11685	;;
11686      esac
11687      runpath_var='LD_RUN_PATH'
11688      hardcode_shlibpath_var=no
11689      ;;
11690
11691    sysv4.3*)
11692      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11693      hardcode_shlibpath_var=no
11694      export_dynamic_flag_spec='-Bexport'
11695      ;;
11696
11697    sysv4*MP*)
11698      if test -d /usr/nec; then
11699	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11700	hardcode_shlibpath_var=no
11701	runpath_var=LD_RUN_PATH
11702	hardcode_runpath_var=yes
11703	ld_shlibs=yes
11704      fi
11705      ;;
11706
11707    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11708      no_undefined_flag='${wl}-z,text'
11709      archive_cmds_need_lc=no
11710      hardcode_shlibpath_var=no
11711      runpath_var='LD_RUN_PATH'
11712
11713      if test "$GCC" = yes; then
11714	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11715	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11716      else
11717	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11718	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11719      fi
11720      ;;
11721
11722    sysv5* | sco3.2v5* | sco5v6*)
11723      # Note: We can NOT use -z defs as we might desire, because we do not
11724      # link with -lc, and that would cause any symbols used from libc to
11725      # always be unresolved, which means just about no library would
11726      # ever link correctly.  If we're not using GNU ld we use -z text
11727      # though, which does catch some bad symbols but isn't as heavy-handed
11728      # as -z defs.
11729      no_undefined_flag='${wl}-z,text'
11730      allow_undefined_flag='${wl}-z,nodefs'
11731      archive_cmds_need_lc=no
11732      hardcode_shlibpath_var=no
11733      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11734      hardcode_libdir_separator=':'
11735      link_all_deplibs=yes
11736      export_dynamic_flag_spec='${wl}-Bexport'
11737      runpath_var='LD_RUN_PATH'
11738
11739      if test "$GCC" = yes; then
11740	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11741	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11742      else
11743	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11744	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11745      fi
11746      ;;
11747
11748    uts4*)
11749      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11750      hardcode_libdir_flag_spec='-L$libdir'
11751      hardcode_shlibpath_var=no
11752      ;;
11753
11754    *)
11755      ld_shlibs=no
11756      ;;
11757    esac
11758
11759    if test x$host_vendor = xsni; then
11760      case $host in
11761      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11762	export_dynamic_flag_spec='${wl}-Blargedynsym'
11763	;;
11764      esac
11765    fi
11766  fi
11767
11768{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11769$as_echo "$ld_shlibs" >&6; }
11770test "$ld_shlibs" = no && can_build_shared=no
11771
11772with_gnu_ld=$with_gnu_ld
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788#
11789# Do we need to explicitly link libc?
11790#
11791case "x$archive_cmds_need_lc" in
11792x|xyes)
11793  # Assume -lc should be added
11794  archive_cmds_need_lc=yes
11795
11796  if test "$enable_shared" = yes && test "$GCC" = yes; then
11797    case $archive_cmds in
11798    *'~'*)
11799      # FIXME: we may have to deal with multi-command sequences.
11800      ;;
11801    '$CC '*)
11802      # Test whether the compiler implicitly links with -lc since on some
11803      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11804      # to ld, don't add -lc before -lgcc.
11805      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11806$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11807      $RM conftest*
11808      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11809
11810      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11811  (eval $ac_compile) 2>&5
11812  ac_status=$?
11813  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814  (exit $ac_status); } 2>conftest.err; then
11815        soname=conftest
11816        lib=conftest
11817        libobjs=conftest.$ac_objext
11818        deplibs=
11819        wl=$lt_prog_compiler_wl
11820	pic_flag=$lt_prog_compiler_pic
11821        compiler_flags=-v
11822        linker_flags=-v
11823        verstring=
11824        output_objdir=.
11825        libname=conftest
11826        lt_save_allow_undefined_flag=$allow_undefined_flag
11827        allow_undefined_flag=
11828        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11829  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11830  ac_status=$?
11831  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832  (exit $ac_status); }
11833        then
11834	  archive_cmds_need_lc=no
11835        else
11836	  archive_cmds_need_lc=yes
11837        fi
11838        allow_undefined_flag=$lt_save_allow_undefined_flag
11839      else
11840        cat conftest.err 1>&5
11841      fi
11842      $RM conftest*
11843      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11844$as_echo "$archive_cmds_need_lc" >&6; }
11845      ;;
11846    esac
11847  fi
11848  ;;
11849esac
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12008$as_echo_n "checking dynamic linker characteristics... " >&6; }
12009
12010if test "$GCC" = yes; then
12011  case $host_os in
12012    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12013    *) lt_awk_arg="/^libraries:/" ;;
12014  esac
12015  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12016  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12017    # if the path contains ";" then we assume it to be the separator
12018    # otherwise default to the standard path separator (i.e. ":") - it is
12019    # assumed that no part of a normal pathname contains ";" but that should
12020    # okay in the real world where ";" in dirpaths is itself problematic.
12021    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12022  else
12023    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12024  fi
12025  # Ok, now we have the path, separated by spaces, we can step through it
12026  # and add multilib dir if necessary.
12027  lt_tmp_lt_search_path_spec=
12028  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12029  for lt_sys_path in $lt_search_path_spec; do
12030    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12031      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12032    else
12033      test -d "$lt_sys_path" && \
12034	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12035    fi
12036  done
12037  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12038BEGIN {RS=" "; FS="/|\n";} {
12039  lt_foo="";
12040  lt_count=0;
12041  for (lt_i = NF; lt_i > 0; lt_i--) {
12042    if ($lt_i != "" && $lt_i != ".") {
12043      if ($lt_i == "..") {
12044        lt_count++;
12045      } else {
12046        if (lt_count == 0) {
12047          lt_foo="/" $lt_i lt_foo;
12048        } else {
12049          lt_count--;
12050        }
12051      }
12052    }
12053  }
12054  if (lt_foo != "") { lt_freq[lt_foo]++; }
12055  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12056}'`
12057  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12058else
12059  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12060fi
12061library_names_spec=
12062libname_spec='lib$name'
12063soname_spec=
12064shrext_cmds=".so"
12065postinstall_cmds=
12066postuninstall_cmds=
12067finish_cmds=
12068finish_eval=
12069shlibpath_var=
12070shlibpath_overrides_runpath=unknown
12071version_type=none
12072dynamic_linker="$host_os ld.so"
12073sys_lib_dlsearch_path_spec="/lib /usr/lib"
12074need_lib_prefix=unknown
12075hardcode_into_libs=no
12076
12077# when you set need_version to no, make sure it does not cause -set_version
12078# flags to be left without arguments
12079need_version=unknown
12080
12081case $host_os in
12082aix3*)
12083  version_type=linux
12084  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12085  shlibpath_var=LIBPATH
12086
12087  # AIX 3 has no versioning support, so we append a major version to the name.
12088  soname_spec='${libname}${release}${shared_ext}$major'
12089  ;;
12090
12091aix[4-9]*)
12092  version_type=linux
12093  need_lib_prefix=no
12094  need_version=no
12095  hardcode_into_libs=yes
12096  if test "$host_cpu" = ia64; then
12097    # AIX 5 supports IA64
12098    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12099    shlibpath_var=LD_LIBRARY_PATH
12100  else
12101    # With GCC up to 2.95.x, collect2 would create an import file
12102    # for dependence libraries.  The import file would start with
12103    # the line `#! .'.  This would cause the generated library to
12104    # depend on `.', always an invalid library.  This was fixed in
12105    # development snapshots of GCC prior to 3.0.
12106    case $host_os in
12107      aix4 | aix4.[01] | aix4.[01].*)
12108      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12109	   echo ' yes '
12110	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12111	:
12112      else
12113	can_build_shared=no
12114      fi
12115      ;;
12116    esac
12117    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12118    # soname into executable. Probably we can add versioning support to
12119    # collect2, so additional links can be useful in future.
12120    if test "$aix_use_runtimelinking" = yes; then
12121      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12122      # instead of lib<name>.a to let people know that these are not
12123      # typical AIX shared libraries.
12124      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12125    else
12126      # We preserve .a as extension for shared libraries through AIX4.2
12127      # and later when we are not doing run time linking.
12128      library_names_spec='${libname}${release}.a $libname.a'
12129      soname_spec='${libname}${release}${shared_ext}$major'
12130    fi
12131    shlibpath_var=LIBPATH
12132  fi
12133  ;;
12134
12135amigaos*)
12136  case $host_cpu in
12137  powerpc)
12138    # Since July 2007 AmigaOS4 officially supports .so libraries.
12139    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12140    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12141    ;;
12142  m68k)
12143    library_names_spec='$libname.ixlibrary $libname.a'
12144    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12145    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
12146    ;;
12147  esac
12148  ;;
12149
12150beos*)
12151  library_names_spec='${libname}${shared_ext}'
12152  dynamic_linker="$host_os ld.so"
12153  shlibpath_var=LIBRARY_PATH
12154  ;;
12155
12156bsdi[45]*)
12157  version_type=linux
12158  need_version=no
12159  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12160  soname_spec='${libname}${release}${shared_ext}$major'
12161  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12162  shlibpath_var=LD_LIBRARY_PATH
12163  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12164  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12165  # the default ld.so.conf also contains /usr/contrib/lib and
12166  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12167  # libtool to hard-code these into programs
12168  ;;
12169
12170cygwin* | mingw* | pw32* | cegcc*)
12171  version_type=windows
12172  shrext_cmds=".dll"
12173  need_version=no
12174  need_lib_prefix=no
12175
12176  case $GCC,$host_os in
12177  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12178    library_names_spec='$libname.dll.a'
12179    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12180    postinstall_cmds='base_file=`basename \${file}`~
12181      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12182      dldir=$destdir/`dirname \$dlpath`~
12183      test -d \$dldir || mkdir -p \$dldir~
12184      $install_prog $dir/$dlname \$dldir/$dlname~
12185      chmod a+x \$dldir/$dlname~
12186      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12187        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12188      fi'
12189    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12190      dlpath=$dir/\$dldll~
12191       $RM \$dlpath'
12192    shlibpath_overrides_runpath=yes
12193
12194    case $host_os in
12195    cygwin*)
12196      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12197      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12198      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12199      ;;
12200    mingw* | cegcc*)
12201      # MinGW DLLs use traditional 'lib' prefix
12202      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12203      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12204      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12205        # It is most probably a Windows format PATH printed by
12206        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12207        # path with ; separators, and with drive letters. We can handle the
12208        # drive letters (cygwin fileutils understands them), so leave them,
12209        # especially as we might pass files found there to a mingw objdump,
12210        # which wouldn't understand a cygwinified path. Ahh.
12211        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12212      else
12213        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12214      fi
12215      ;;
12216    pw32*)
12217      # pw32 DLLs use 'pw' prefix rather than 'lib'
12218      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12219      ;;
12220    esac
12221    ;;
12222
12223  *)
12224    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12225    ;;
12226  esac
12227  dynamic_linker='Win32 ld.exe'
12228  # FIXME: first we should search . and the directory the executable is in
12229  shlibpath_var=PATH
12230  ;;
12231
12232darwin* | rhapsody*)
12233  dynamic_linker="$host_os dyld"
12234  version_type=darwin
12235  need_lib_prefix=no
12236  need_version=no
12237  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12238  soname_spec='${libname}${release}${major}$shared_ext'
12239  shlibpath_overrides_runpath=yes
12240  shlibpath_var=DYLD_LIBRARY_PATH
12241  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12242
12243  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12244  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12245  ;;
12246
12247dgux*)
12248  version_type=linux
12249  need_lib_prefix=no
12250  need_version=no
12251  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12252  soname_spec='${libname}${release}${shared_ext}$major'
12253  shlibpath_var=LD_LIBRARY_PATH
12254  ;;
12255
12256freebsd1*)
12257  dynamic_linker=no
12258  ;;
12259
12260freebsd* | dragonfly*)
12261  # DragonFly does not have aout.  When/if they implement a new
12262  # versioning mechanism, adjust this.
12263  if test -x /usr/bin/objformat; then
12264    objformat=`/usr/bin/objformat`
12265  else
12266    case $host_os in
12267    freebsd[123]*) objformat=aout ;;
12268    *) objformat=elf ;;
12269    esac
12270  fi
12271  version_type=freebsd-$objformat
12272  case $version_type in
12273    freebsd-elf*)
12274      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12275      need_version=no
12276      need_lib_prefix=no
12277      ;;
12278    freebsd-*)
12279      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12280      need_version=yes
12281      ;;
12282  esac
12283  shlibpath_var=LD_LIBRARY_PATH
12284  case $host_os in
12285  freebsd2*)
12286    shlibpath_overrides_runpath=yes
12287    ;;
12288  freebsd3.[01]* | freebsdelf3.[01]*)
12289    shlibpath_overrides_runpath=yes
12290    hardcode_into_libs=yes
12291    ;;
12292  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12293  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12294    shlibpath_overrides_runpath=no
12295    hardcode_into_libs=yes
12296    ;;
12297  *) # from 4.6 on, and DragonFly
12298    shlibpath_overrides_runpath=yes
12299    hardcode_into_libs=yes
12300    ;;
12301  esac
12302  ;;
12303
12304gnu*)
12305  version_type=linux
12306  need_lib_prefix=no
12307  need_version=no
12308  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12309  soname_spec='${libname}${release}${shared_ext}$major'
12310  shlibpath_var=LD_LIBRARY_PATH
12311  hardcode_into_libs=yes
12312  ;;
12313
12314hpux9* | hpux10* | hpux11*)
12315  # Give a soname corresponding to the major version so that dld.sl refuses to
12316  # link against other versions.
12317  version_type=sunos
12318  need_lib_prefix=no
12319  need_version=no
12320  case $host_cpu in
12321  ia64*)
12322    shrext_cmds='.so'
12323    hardcode_into_libs=yes
12324    dynamic_linker="$host_os dld.so"
12325    shlibpath_var=LD_LIBRARY_PATH
12326    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12327    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12328    soname_spec='${libname}${release}${shared_ext}$major'
12329    if test "X$HPUX_IA64_MODE" = X32; then
12330      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12331    else
12332      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12333    fi
12334    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12335    ;;
12336  hppa*64*)
12337    shrext_cmds='.sl'
12338    hardcode_into_libs=yes
12339    dynamic_linker="$host_os dld.sl"
12340    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12341    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12342    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12343    soname_spec='${libname}${release}${shared_ext}$major'
12344    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12345    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12346    ;;
12347  *)
12348    shrext_cmds='.sl'
12349    dynamic_linker="$host_os dld.sl"
12350    shlibpath_var=SHLIB_PATH
12351    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12352    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12353    soname_spec='${libname}${release}${shared_ext}$major'
12354    ;;
12355  esac
12356  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12357  postinstall_cmds='chmod 555 $lib'
12358  ;;
12359
12360interix[3-9]*)
12361  version_type=linux
12362  need_lib_prefix=no
12363  need_version=no
12364  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12365  soname_spec='${libname}${release}${shared_ext}$major'
12366  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12367  shlibpath_var=LD_LIBRARY_PATH
12368  shlibpath_overrides_runpath=no
12369  hardcode_into_libs=yes
12370  ;;
12371
12372irix5* | irix6* | nonstopux*)
12373  case $host_os in
12374    nonstopux*) version_type=nonstopux ;;
12375    *)
12376	if test "$lt_cv_prog_gnu_ld" = yes; then
12377		version_type=linux
12378	else
12379		version_type=irix
12380	fi ;;
12381  esac
12382  need_lib_prefix=no
12383  need_version=no
12384  soname_spec='${libname}${release}${shared_ext}$major'
12385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12386  case $host_os in
12387  irix5* | nonstopux*)
12388    libsuff= shlibsuff=
12389    ;;
12390  *)
12391    case $LD in # libtool.m4 will add one of these switches to LD
12392    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12393      libsuff= shlibsuff= libmagic=32-bit;;
12394    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12395      libsuff=32 shlibsuff=N32 libmagic=N32;;
12396    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12397      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12398    *) libsuff= shlibsuff= libmagic=never-match;;
12399    esac
12400    ;;
12401  esac
12402  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12403  shlibpath_overrides_runpath=no
12404  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12405  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12406  hardcode_into_libs=yes
12407  ;;
12408
12409# No shared lib support for Linux oldld, aout, or coff.
12410linux*oldld* | linux*aout* | linux*coff*)
12411  dynamic_linker=no
12412  ;;
12413
12414# This must be Linux ELF.
12415linux* | k*bsd*-gnu)
12416  version_type=linux
12417  need_lib_prefix=no
12418  need_version=no
12419  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12420  soname_spec='${libname}${release}${shared_ext}$major'
12421  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12422  shlibpath_var=LD_LIBRARY_PATH
12423  shlibpath_overrides_runpath=no
12424  # Some binutils ld are patched to set DT_RUNPATH
12425  save_LDFLAGS=$LDFLAGS
12426  save_libdir=$libdir
12427  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12428       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12429  cat >conftest.$ac_ext <<_ACEOF
12430/* confdefs.h.  */
12431_ACEOF
12432cat confdefs.h >>conftest.$ac_ext
12433cat >>conftest.$ac_ext <<_ACEOF
12434/* end confdefs.h.  */
12435
12436int
12437main ()
12438{
12439
12440  ;
12441  return 0;
12442}
12443_ACEOF
12444rm -f conftest.$ac_objext conftest$ac_exeext
12445if { (ac_try="$ac_link"
12446case "(($ac_try" in
12447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448  *) ac_try_echo=$ac_try;;
12449esac
12450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12451$as_echo "$ac_try_echo") >&5
12452  (eval "$ac_link") 2>conftest.er1
12453  ac_status=$?
12454  grep -v '^ *+' conftest.er1 >conftest.err
12455  rm -f conftest.er1
12456  cat conftest.err >&5
12457  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458  (exit $ac_status); } && {
12459	 test -z "$ac_c_werror_flag" ||
12460	 test ! -s conftest.err
12461       } && test -s conftest$ac_exeext && {
12462	 test "$cross_compiling" = yes ||
12463	 $as_test_x conftest$ac_exeext
12464       }; then
12465  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
12466  shlibpath_overrides_runpath=yes
12467fi
12468
12469else
12470  $as_echo "$as_me: failed program was:" >&5
12471sed 's/^/| /' conftest.$ac_ext >&5
12472
12473
12474fi
12475
12476rm -rf conftest.dSYM
12477rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12478      conftest$ac_exeext conftest.$ac_ext
12479  LDFLAGS=$save_LDFLAGS
12480  libdir=$save_libdir
12481
12482  # This implies no fast_install, which is unacceptable.
12483  # Some rework will be needed to allow for fast_install
12484  # before this can be enabled.
12485  hardcode_into_libs=yes
12486
12487  # Add ABI-specific directories to the system library path.
12488  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12489
12490  # Append ld.so.conf contents to the search path
12491  if test -f /etc/ld.so.conf; then
12492    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;/^$/d' | tr '\n' ' '`
12493    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12494  fi
12495
12496  # We used to test for /lib/ld.so.1 and disable shared libraries on
12497  # powerpc, because MkLinux only supported shared libraries with the
12498  # GNU dynamic linker.  Since this was broken with cross compilers,
12499  # most powerpc-linux boxes support dynamic linking these days and
12500  # people can always --disable-shared, the test was removed, and we
12501  # assume the GNU/Linux dynamic linker is in use.
12502  dynamic_linker='GNU/Linux ld.so'
12503  ;;
12504
12505netbsd*)
12506  version_type=sunos
12507  need_lib_prefix=no
12508  need_version=no
12509  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12510    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12511    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12512    dynamic_linker='NetBSD (a.out) ld.so'
12513  else
12514    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12515    soname_spec='${libname}${release}${shared_ext}$major'
12516    dynamic_linker='NetBSD ld.elf_so'
12517  fi
12518  shlibpath_var=LD_LIBRARY_PATH
12519  shlibpath_overrides_runpath=yes
12520  hardcode_into_libs=yes
12521  ;;
12522
12523newsos6)
12524  version_type=linux
12525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12526  shlibpath_var=LD_LIBRARY_PATH
12527  shlibpath_overrides_runpath=yes
12528  ;;
12529
12530*nto* | *qnx*)
12531  version_type=qnx
12532  need_lib_prefix=no
12533  need_version=no
12534  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12535  soname_spec='${libname}${release}${shared_ext}$major'
12536  shlibpath_var=LD_LIBRARY_PATH
12537  shlibpath_overrides_runpath=no
12538  hardcode_into_libs=yes
12539  dynamic_linker='ldqnx.so'
12540  ;;
12541
12542openbsd*)
12543  version_type=sunos
12544  sys_lib_dlsearch_path_spec="/usr/lib"
12545  need_lib_prefix=no
12546  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12547  case $host_os in
12548    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12549    *)				need_version=no  ;;
12550  esac
12551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12552  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12553  shlibpath_var=LD_LIBRARY_PATH
12554  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12555    case $host_os in
12556      openbsd2.[89] | openbsd2.[89].*)
12557	shlibpath_overrides_runpath=no
12558	;;
12559      *)
12560	shlibpath_overrides_runpath=yes
12561	;;
12562      esac
12563  else
12564    shlibpath_overrides_runpath=yes
12565  fi
12566  ;;
12567
12568os2*)
12569  libname_spec='$name'
12570  shrext_cmds=".dll"
12571  need_lib_prefix=no
12572  library_names_spec='$libname${shared_ext} $libname.a'
12573  dynamic_linker='OS/2 ld.exe'
12574  shlibpath_var=LIBPATH
12575  ;;
12576
12577osf3* | osf4* | osf5*)
12578  version_type=osf
12579  need_lib_prefix=no
12580  need_version=no
12581  soname_spec='${libname}${release}${shared_ext}$major'
12582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12583  shlibpath_var=LD_LIBRARY_PATH
12584  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12585  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12586  ;;
12587
12588rdos*)
12589  dynamic_linker=no
12590  ;;
12591
12592solaris*)
12593  version_type=linux
12594  need_lib_prefix=no
12595  need_version=no
12596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12597  soname_spec='${libname}${release}${shared_ext}$major'
12598  shlibpath_var=LD_LIBRARY_PATH
12599  shlibpath_overrides_runpath=yes
12600  hardcode_into_libs=yes
12601  # ldd complains unless libraries are executable
12602  postinstall_cmds='chmod +x $lib'
12603  ;;
12604
12605sunos4*)
12606  version_type=sunos
12607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12608  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12609  shlibpath_var=LD_LIBRARY_PATH
12610  shlibpath_overrides_runpath=yes
12611  if test "$with_gnu_ld" = yes; then
12612    need_lib_prefix=no
12613  fi
12614  need_version=yes
12615  ;;
12616
12617sysv4 | sysv4.3*)
12618  version_type=linux
12619  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12620  soname_spec='${libname}${release}${shared_ext}$major'
12621  shlibpath_var=LD_LIBRARY_PATH
12622  case $host_vendor in
12623    sni)
12624      shlibpath_overrides_runpath=no
12625      need_lib_prefix=no
12626      runpath_var=LD_RUN_PATH
12627      ;;
12628    siemens)
12629      need_lib_prefix=no
12630      ;;
12631    motorola)
12632      need_lib_prefix=no
12633      need_version=no
12634      shlibpath_overrides_runpath=no
12635      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12636      ;;
12637  esac
12638  ;;
12639
12640sysv4*MP*)
12641  if test -d /usr/nec ;then
12642    version_type=linux
12643    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12644    soname_spec='$libname${shared_ext}.$major'
12645    shlibpath_var=LD_LIBRARY_PATH
12646  fi
12647  ;;
12648
12649sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12650  version_type=freebsd-elf
12651  need_lib_prefix=no
12652  need_version=no
12653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12654  soname_spec='${libname}${release}${shared_ext}$major'
12655  shlibpath_var=LD_LIBRARY_PATH
12656  shlibpath_overrides_runpath=yes
12657  hardcode_into_libs=yes
12658  if test "$with_gnu_ld" = yes; then
12659    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12660  else
12661    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12662    case $host_os in
12663      sco3.2v5*)
12664        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12665	;;
12666    esac
12667  fi
12668  sys_lib_dlsearch_path_spec='/usr/lib'
12669  ;;
12670
12671tpf*)
12672  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12673  version_type=linux
12674  need_lib_prefix=no
12675  need_version=no
12676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12677  shlibpath_var=LD_LIBRARY_PATH
12678  shlibpath_overrides_runpath=no
12679  hardcode_into_libs=yes
12680  ;;
12681
12682uts4*)
12683  version_type=linux
12684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12685  soname_spec='${libname}${release}${shared_ext}$major'
12686  shlibpath_var=LD_LIBRARY_PATH
12687  ;;
12688
12689*)
12690  dynamic_linker=no
12691  ;;
12692esac
12693{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12694$as_echo "$dynamic_linker" >&6; }
12695test "$dynamic_linker" = no && can_build_shared=no
12696
12697variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12698if test "$GCC" = yes; then
12699  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12700fi
12701
12702if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12703  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12704fi
12705if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12706  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12707fi
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12796$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12797hardcode_action=
12798if test -n "$hardcode_libdir_flag_spec" ||
12799   test -n "$runpath_var" ||
12800   test "X$hardcode_automatic" = "Xyes" ; then
12801
12802  # We can hardcode non-existent directories.
12803  if test "$hardcode_direct" != no &&
12804     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12805     # have to relink, otherwise we might link with an installed library
12806     # when we should be linking with a yet-to-be-installed one
12807     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12808     test "$hardcode_minus_L" != no; then
12809    # Linking always hardcodes the temporary library directory.
12810    hardcode_action=relink
12811  else
12812    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12813    hardcode_action=immediate
12814  fi
12815else
12816  # We cannot hardcode anything, or else we can only hardcode existing
12817  # directories.
12818  hardcode_action=unsupported
12819fi
12820{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12821$as_echo "$hardcode_action" >&6; }
12822
12823if test "$hardcode_action" = relink ||
12824   test "$inherit_rpath" = yes; then
12825  # Fast installation is not supported
12826  enable_fast_install=no
12827elif test "$shlibpath_overrides_runpath" = yes ||
12828     test "$enable_shared" = no; then
12829  # Fast installation is not necessary
12830  enable_fast_install=needless
12831fi
12832
12833
12834
12835
12836
12837
12838  if test "x$enable_dlopen" != xyes; then
12839  enable_dlopen=unknown
12840  enable_dlopen_self=unknown
12841  enable_dlopen_self_static=unknown
12842else
12843  lt_cv_dlopen=no
12844  lt_cv_dlopen_libs=
12845
12846  case $host_os in
12847  beos*)
12848    lt_cv_dlopen="load_add_on"
12849    lt_cv_dlopen_libs=
12850    lt_cv_dlopen_self=yes
12851    ;;
12852
12853  mingw* | pw32* | cegcc*)
12854    lt_cv_dlopen="LoadLibrary"
12855    lt_cv_dlopen_libs=
12856    ;;
12857
12858  cygwin*)
12859    lt_cv_dlopen="dlopen"
12860    lt_cv_dlopen_libs=
12861    ;;
12862
12863  darwin*)
12864  # if libdl is installed we need to link against it
12865    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12866$as_echo_n "checking for dlopen in -ldl... " >&6; }
12867if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12868  $as_echo_n "(cached) " >&6
12869else
12870  ac_check_lib_save_LIBS=$LIBS
12871LIBS="-ldl  $LIBS"
12872cat >conftest.$ac_ext <<_ACEOF
12873/* confdefs.h.  */
12874_ACEOF
12875cat confdefs.h >>conftest.$ac_ext
12876cat >>conftest.$ac_ext <<_ACEOF
12877/* end confdefs.h.  */
12878
12879/* Override any GCC internal prototype to avoid an error.
12880   Use char because int might match the return type of a GCC
12881   builtin and then its argument prototype would still apply.  */
12882#ifdef __cplusplus
12883extern "C"
12884#endif
12885char dlopen ();
12886int
12887main ()
12888{
12889return dlopen ();
12890  ;
12891  return 0;
12892}
12893_ACEOF
12894rm -f conftest.$ac_objext conftest$ac_exeext
12895if { (ac_try="$ac_link"
12896case "(($ac_try" in
12897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898  *) ac_try_echo=$ac_try;;
12899esac
12900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12901$as_echo "$ac_try_echo") >&5
12902  (eval "$ac_link") 2>conftest.er1
12903  ac_status=$?
12904  grep -v '^ *+' conftest.er1 >conftest.err
12905  rm -f conftest.er1
12906  cat conftest.err >&5
12907  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908  (exit $ac_status); } && {
12909	 test -z "$ac_c_werror_flag" ||
12910	 test ! -s conftest.err
12911       } && test -s conftest$ac_exeext && {
12912	 test "$cross_compiling" = yes ||
12913	 $as_test_x conftest$ac_exeext
12914       }; then
12915  ac_cv_lib_dl_dlopen=yes
12916else
12917  $as_echo "$as_me: failed program was:" >&5
12918sed 's/^/| /' conftest.$ac_ext >&5
12919
12920	ac_cv_lib_dl_dlopen=no
12921fi
12922
12923rm -rf conftest.dSYM
12924rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12925      conftest$ac_exeext conftest.$ac_ext
12926LIBS=$ac_check_lib_save_LIBS
12927fi
12928{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12929$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12930if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12931  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12932else
12933
12934    lt_cv_dlopen="dyld"
12935    lt_cv_dlopen_libs=
12936    lt_cv_dlopen_self=yes
12937
12938fi
12939
12940    ;;
12941
12942  *)
12943    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12944$as_echo_n "checking for shl_load... " >&6; }
12945if test "${ac_cv_func_shl_load+set}" = set; then
12946  $as_echo_n "(cached) " >&6
12947else
12948  cat >conftest.$ac_ext <<_ACEOF
12949/* confdefs.h.  */
12950_ACEOF
12951cat confdefs.h >>conftest.$ac_ext
12952cat >>conftest.$ac_ext <<_ACEOF
12953/* end confdefs.h.  */
12954/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12955   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12956#define shl_load innocuous_shl_load
12957
12958/* System header to define __stub macros and hopefully few prototypes,
12959    which can conflict with char shl_load (); below.
12960    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12961    <limits.h> exists even on freestanding compilers.  */
12962
12963#ifdef __STDC__
12964# include <limits.h>
12965#else
12966# include <assert.h>
12967#endif
12968
12969#undef shl_load
12970
12971/* Override any GCC internal prototype to avoid an error.
12972   Use char because int might match the return type of a GCC
12973   builtin and then its argument prototype would still apply.  */
12974#ifdef __cplusplus
12975extern "C"
12976#endif
12977char shl_load ();
12978/* The GNU C library defines this for functions which it implements
12979    to always fail with ENOSYS.  Some functions are actually named
12980    something starting with __ and the normal name is an alias.  */
12981#if defined __stub_shl_load || defined __stub___shl_load
12982choke me
12983#endif
12984
12985int
12986main ()
12987{
12988return shl_load ();
12989  ;
12990  return 0;
12991}
12992_ACEOF
12993rm -f conftest.$ac_objext conftest$ac_exeext
12994if { (ac_try="$ac_link"
12995case "(($ac_try" in
12996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997  *) ac_try_echo=$ac_try;;
12998esac
12999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13000$as_echo "$ac_try_echo") >&5
13001  (eval "$ac_link") 2>conftest.er1
13002  ac_status=$?
13003  grep -v '^ *+' conftest.er1 >conftest.err
13004  rm -f conftest.er1
13005  cat conftest.err >&5
13006  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007  (exit $ac_status); } && {
13008	 test -z "$ac_c_werror_flag" ||
13009	 test ! -s conftest.err
13010       } && test -s conftest$ac_exeext && {
13011	 test "$cross_compiling" = yes ||
13012	 $as_test_x conftest$ac_exeext
13013       }; then
13014  ac_cv_func_shl_load=yes
13015else
13016  $as_echo "$as_me: failed program was:" >&5
13017sed 's/^/| /' conftest.$ac_ext >&5
13018
13019	ac_cv_func_shl_load=no
13020fi
13021
13022rm -rf conftest.dSYM
13023rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13024      conftest$ac_exeext conftest.$ac_ext
13025fi
13026{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13027$as_echo "$ac_cv_func_shl_load" >&6; }
13028if test "x$ac_cv_func_shl_load" = x""yes; then
13029  lt_cv_dlopen="shl_load"
13030else
13031  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13032$as_echo_n "checking for shl_load in -ldld... " >&6; }
13033if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13034  $as_echo_n "(cached) " >&6
13035else
13036  ac_check_lib_save_LIBS=$LIBS
13037LIBS="-ldld  $LIBS"
13038cat >conftest.$ac_ext <<_ACEOF
13039/* confdefs.h.  */
13040_ACEOF
13041cat confdefs.h >>conftest.$ac_ext
13042cat >>conftest.$ac_ext <<_ACEOF
13043/* end confdefs.h.  */
13044
13045/* Override any GCC internal prototype to avoid an error.
13046   Use char because int might match the return type of a GCC
13047   builtin and then its argument prototype would still apply.  */
13048#ifdef __cplusplus
13049extern "C"
13050#endif
13051char shl_load ();
13052int
13053main ()
13054{
13055return shl_load ();
13056  ;
13057  return 0;
13058}
13059_ACEOF
13060rm -f conftest.$ac_objext conftest$ac_exeext
13061if { (ac_try="$ac_link"
13062case "(($ac_try" in
13063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064  *) ac_try_echo=$ac_try;;
13065esac
13066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13067$as_echo "$ac_try_echo") >&5
13068  (eval "$ac_link") 2>conftest.er1
13069  ac_status=$?
13070  grep -v '^ *+' conftest.er1 >conftest.err
13071  rm -f conftest.er1
13072  cat conftest.err >&5
13073  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074  (exit $ac_status); } && {
13075	 test -z "$ac_c_werror_flag" ||
13076	 test ! -s conftest.err
13077       } && test -s conftest$ac_exeext && {
13078	 test "$cross_compiling" = yes ||
13079	 $as_test_x conftest$ac_exeext
13080       }; then
13081  ac_cv_lib_dld_shl_load=yes
13082else
13083  $as_echo "$as_me: failed program was:" >&5
13084sed 's/^/| /' conftest.$ac_ext >&5
13085
13086	ac_cv_lib_dld_shl_load=no
13087fi
13088
13089rm -rf conftest.dSYM
13090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13091      conftest$ac_exeext conftest.$ac_ext
13092LIBS=$ac_check_lib_save_LIBS
13093fi
13094{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13095$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13096if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
13097  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13098else
13099  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
13100$as_echo_n "checking for dlopen... " >&6; }
13101if test "${ac_cv_func_dlopen+set}" = set; then
13102  $as_echo_n "(cached) " >&6
13103else
13104  cat >conftest.$ac_ext <<_ACEOF
13105/* confdefs.h.  */
13106_ACEOF
13107cat confdefs.h >>conftest.$ac_ext
13108cat >>conftest.$ac_ext <<_ACEOF
13109/* end confdefs.h.  */
13110/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13111   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13112#define dlopen innocuous_dlopen
13113
13114/* System header to define __stub macros and hopefully few prototypes,
13115    which can conflict with char dlopen (); below.
13116    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13117    <limits.h> exists even on freestanding compilers.  */
13118
13119#ifdef __STDC__
13120# include <limits.h>
13121#else
13122# include <assert.h>
13123#endif
13124
13125#undef dlopen
13126
13127/* Override any GCC internal prototype to avoid an error.
13128   Use char because int might match the return type of a GCC
13129   builtin and then its argument prototype would still apply.  */
13130#ifdef __cplusplus
13131extern "C"
13132#endif
13133char dlopen ();
13134/* The GNU C library defines this for functions which it implements
13135    to always fail with ENOSYS.  Some functions are actually named
13136    something starting with __ and the normal name is an alias.  */
13137#if defined __stub_dlopen || defined __stub___dlopen
13138choke me
13139#endif
13140
13141int
13142main ()
13143{
13144return dlopen ();
13145  ;
13146  return 0;
13147}
13148_ACEOF
13149rm -f conftest.$ac_objext conftest$ac_exeext
13150if { (ac_try="$ac_link"
13151case "(($ac_try" in
13152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153  *) ac_try_echo=$ac_try;;
13154esac
13155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13156$as_echo "$ac_try_echo") >&5
13157  (eval "$ac_link") 2>conftest.er1
13158  ac_status=$?
13159  grep -v '^ *+' conftest.er1 >conftest.err
13160  rm -f conftest.er1
13161  cat conftest.err >&5
13162  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163  (exit $ac_status); } && {
13164	 test -z "$ac_c_werror_flag" ||
13165	 test ! -s conftest.err
13166       } && test -s conftest$ac_exeext && {
13167	 test "$cross_compiling" = yes ||
13168	 $as_test_x conftest$ac_exeext
13169       }; then
13170  ac_cv_func_dlopen=yes
13171else
13172  $as_echo "$as_me: failed program was:" >&5
13173sed 's/^/| /' conftest.$ac_ext >&5
13174
13175	ac_cv_func_dlopen=no
13176fi
13177
13178rm -rf conftest.dSYM
13179rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13180      conftest$ac_exeext conftest.$ac_ext
13181fi
13182{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13183$as_echo "$ac_cv_func_dlopen" >&6; }
13184if test "x$ac_cv_func_dlopen" = x""yes; then
13185  lt_cv_dlopen="dlopen"
13186else
13187  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13188$as_echo_n "checking for dlopen in -ldl... " >&6; }
13189if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13190  $as_echo_n "(cached) " >&6
13191else
13192  ac_check_lib_save_LIBS=$LIBS
13193LIBS="-ldl  $LIBS"
13194cat >conftest.$ac_ext <<_ACEOF
13195/* confdefs.h.  */
13196_ACEOF
13197cat confdefs.h >>conftest.$ac_ext
13198cat >>conftest.$ac_ext <<_ACEOF
13199/* end confdefs.h.  */
13200
13201/* Override any GCC internal prototype to avoid an error.
13202   Use char because int might match the return type of a GCC
13203   builtin and then its argument prototype would still apply.  */
13204#ifdef __cplusplus
13205extern "C"
13206#endif
13207char dlopen ();
13208int
13209main ()
13210{
13211return dlopen ();
13212  ;
13213  return 0;
13214}
13215_ACEOF
13216rm -f conftest.$ac_objext conftest$ac_exeext
13217if { (ac_try="$ac_link"
13218case "(($ac_try" in
13219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220  *) ac_try_echo=$ac_try;;
13221esac
13222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13223$as_echo "$ac_try_echo") >&5
13224  (eval "$ac_link") 2>conftest.er1
13225  ac_status=$?
13226  grep -v '^ *+' conftest.er1 >conftest.err
13227  rm -f conftest.er1
13228  cat conftest.err >&5
13229  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230  (exit $ac_status); } && {
13231	 test -z "$ac_c_werror_flag" ||
13232	 test ! -s conftest.err
13233       } && test -s conftest$ac_exeext && {
13234	 test "$cross_compiling" = yes ||
13235	 $as_test_x conftest$ac_exeext
13236       }; then
13237  ac_cv_lib_dl_dlopen=yes
13238else
13239  $as_echo "$as_me: failed program was:" >&5
13240sed 's/^/| /' conftest.$ac_ext >&5
13241
13242	ac_cv_lib_dl_dlopen=no
13243fi
13244
13245rm -rf conftest.dSYM
13246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13247      conftest$ac_exeext conftest.$ac_ext
13248LIBS=$ac_check_lib_save_LIBS
13249fi
13250{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13251$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13252if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
13253  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13254else
13255  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13256$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13257if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13258  $as_echo_n "(cached) " >&6
13259else
13260  ac_check_lib_save_LIBS=$LIBS
13261LIBS="-lsvld  $LIBS"
13262cat >conftest.$ac_ext <<_ACEOF
13263/* confdefs.h.  */
13264_ACEOF
13265cat confdefs.h >>conftest.$ac_ext
13266cat >>conftest.$ac_ext <<_ACEOF
13267/* end confdefs.h.  */
13268
13269/* Override any GCC internal prototype to avoid an error.
13270   Use char because int might match the return type of a GCC
13271   builtin and then its argument prototype would still apply.  */
13272#ifdef __cplusplus
13273extern "C"
13274#endif
13275char dlopen ();
13276int
13277main ()
13278{
13279return dlopen ();
13280  ;
13281  return 0;
13282}
13283_ACEOF
13284rm -f conftest.$ac_objext conftest$ac_exeext
13285if { (ac_try="$ac_link"
13286case "(($ac_try" in
13287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13288  *) ac_try_echo=$ac_try;;
13289esac
13290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13291$as_echo "$ac_try_echo") >&5
13292  (eval "$ac_link") 2>conftest.er1
13293  ac_status=$?
13294  grep -v '^ *+' conftest.er1 >conftest.err
13295  rm -f conftest.er1
13296  cat conftest.err >&5
13297  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298  (exit $ac_status); } && {
13299	 test -z "$ac_c_werror_flag" ||
13300	 test ! -s conftest.err
13301       } && test -s conftest$ac_exeext && {
13302	 test "$cross_compiling" = yes ||
13303	 $as_test_x conftest$ac_exeext
13304       }; then
13305  ac_cv_lib_svld_dlopen=yes
13306else
13307  $as_echo "$as_me: failed program was:" >&5
13308sed 's/^/| /' conftest.$ac_ext >&5
13309
13310	ac_cv_lib_svld_dlopen=no
13311fi
13312
13313rm -rf conftest.dSYM
13314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13315      conftest$ac_exeext conftest.$ac_ext
13316LIBS=$ac_check_lib_save_LIBS
13317fi
13318{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13319$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13320if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
13321  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13322else
13323  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13324$as_echo_n "checking for dld_link in -ldld... " >&6; }
13325if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13326  $as_echo_n "(cached) " >&6
13327else
13328  ac_check_lib_save_LIBS=$LIBS
13329LIBS="-ldld  $LIBS"
13330cat >conftest.$ac_ext <<_ACEOF
13331/* confdefs.h.  */
13332_ACEOF
13333cat confdefs.h >>conftest.$ac_ext
13334cat >>conftest.$ac_ext <<_ACEOF
13335/* end confdefs.h.  */
13336
13337/* Override any GCC internal prototype to avoid an error.
13338   Use char because int might match the return type of a GCC
13339   builtin and then its argument prototype would still apply.  */
13340#ifdef __cplusplus
13341extern "C"
13342#endif
13343char dld_link ();
13344int
13345main ()
13346{
13347return dld_link ();
13348  ;
13349  return 0;
13350}
13351_ACEOF
13352rm -f conftest.$ac_objext conftest$ac_exeext
13353if { (ac_try="$ac_link"
13354case "(($ac_try" in
13355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356  *) ac_try_echo=$ac_try;;
13357esac
13358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13359$as_echo "$ac_try_echo") >&5
13360  (eval "$ac_link") 2>conftest.er1
13361  ac_status=$?
13362  grep -v '^ *+' conftest.er1 >conftest.err
13363  rm -f conftest.er1
13364  cat conftest.err >&5
13365  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366  (exit $ac_status); } && {
13367	 test -z "$ac_c_werror_flag" ||
13368	 test ! -s conftest.err
13369       } && test -s conftest$ac_exeext && {
13370	 test "$cross_compiling" = yes ||
13371	 $as_test_x conftest$ac_exeext
13372       }; then
13373  ac_cv_lib_dld_dld_link=yes
13374else
13375  $as_echo "$as_me: failed program was:" >&5
13376sed 's/^/| /' conftest.$ac_ext >&5
13377
13378	ac_cv_lib_dld_dld_link=no
13379fi
13380
13381rm -rf conftest.dSYM
13382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13383      conftest$ac_exeext conftest.$ac_ext
13384LIBS=$ac_check_lib_save_LIBS
13385fi
13386{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13387$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13388if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
13389  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13390fi
13391
13392
13393fi
13394
13395
13396fi
13397
13398
13399fi
13400
13401
13402fi
13403
13404
13405fi
13406
13407    ;;
13408  esac
13409
13410  if test "x$lt_cv_dlopen" != xno; then
13411    enable_dlopen=yes
13412  else
13413    enable_dlopen=no
13414  fi
13415
13416  case $lt_cv_dlopen in
13417  dlopen)
13418    save_CPPFLAGS="$CPPFLAGS"
13419    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13420
13421    save_LDFLAGS="$LDFLAGS"
13422    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13423
13424    save_LIBS="$LIBS"
13425    LIBS="$lt_cv_dlopen_libs $LIBS"
13426
13427    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13428$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13429if test "${lt_cv_dlopen_self+set}" = set; then
13430  $as_echo_n "(cached) " >&6
13431else
13432  	  if test "$cross_compiling" = yes; then :
13433  lt_cv_dlopen_self=cross
13434else
13435  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13436  lt_status=$lt_dlunknown
13437  cat > conftest.$ac_ext <<_LT_EOF
13438#line 13438 "configure"
13439#include "confdefs.h"
13440
13441#if HAVE_DLFCN_H
13442#include <dlfcn.h>
13443#endif
13444
13445#include <stdio.h>
13446
13447#ifdef RTLD_GLOBAL
13448#  define LT_DLGLOBAL		RTLD_GLOBAL
13449#else
13450#  ifdef DL_GLOBAL
13451#    define LT_DLGLOBAL		DL_GLOBAL
13452#  else
13453#    define LT_DLGLOBAL		0
13454#  endif
13455#endif
13456
13457/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13458   find out it does not work in some platform. */
13459#ifndef LT_DLLAZY_OR_NOW
13460#  ifdef RTLD_LAZY
13461#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13462#  else
13463#    ifdef DL_LAZY
13464#      define LT_DLLAZY_OR_NOW		DL_LAZY
13465#    else
13466#      ifdef RTLD_NOW
13467#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13468#      else
13469#        ifdef DL_NOW
13470#          define LT_DLLAZY_OR_NOW	DL_NOW
13471#        else
13472#          define LT_DLLAZY_OR_NOW	0
13473#        endif
13474#      endif
13475#    endif
13476#  endif
13477#endif
13478
13479void fnord() { int i=42;}
13480int main ()
13481{
13482  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13483  int status = $lt_dlunknown;
13484
13485  if (self)
13486    {
13487      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13488      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13489      /* dlclose (self); */
13490    }
13491  else
13492    puts (dlerror ());
13493
13494  return status;
13495}
13496_LT_EOF
13497  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13498  (eval $ac_link) 2>&5
13499  ac_status=$?
13500  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13502    (./conftest; exit; ) >&5 2>/dev/null
13503    lt_status=$?
13504    case x$lt_status in
13505      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13506      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13507      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13508    esac
13509  else :
13510    # compilation failed
13511    lt_cv_dlopen_self=no
13512  fi
13513fi
13514rm -fr conftest*
13515
13516
13517fi
13518{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13519$as_echo "$lt_cv_dlopen_self" >&6; }
13520
13521    if test "x$lt_cv_dlopen_self" = xyes; then
13522      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13523      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13524$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13525if test "${lt_cv_dlopen_self_static+set}" = set; then
13526  $as_echo_n "(cached) " >&6
13527else
13528  	  if test "$cross_compiling" = yes; then :
13529  lt_cv_dlopen_self_static=cross
13530else
13531  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13532  lt_status=$lt_dlunknown
13533  cat > conftest.$ac_ext <<_LT_EOF
13534#line 13534 "configure"
13535#include "confdefs.h"
13536
13537#if HAVE_DLFCN_H
13538#include <dlfcn.h>
13539#endif
13540
13541#include <stdio.h>
13542
13543#ifdef RTLD_GLOBAL
13544#  define LT_DLGLOBAL		RTLD_GLOBAL
13545#else
13546#  ifdef DL_GLOBAL
13547#    define LT_DLGLOBAL		DL_GLOBAL
13548#  else
13549#    define LT_DLGLOBAL		0
13550#  endif
13551#endif
13552
13553/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13554   find out it does not work in some platform. */
13555#ifndef LT_DLLAZY_OR_NOW
13556#  ifdef RTLD_LAZY
13557#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13558#  else
13559#    ifdef DL_LAZY
13560#      define LT_DLLAZY_OR_NOW		DL_LAZY
13561#    else
13562#      ifdef RTLD_NOW
13563#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13564#      else
13565#        ifdef DL_NOW
13566#          define LT_DLLAZY_OR_NOW	DL_NOW
13567#        else
13568#          define LT_DLLAZY_OR_NOW	0
13569#        endif
13570#      endif
13571#    endif
13572#  endif
13573#endif
13574
13575void fnord() { int i=42;}
13576int main ()
13577{
13578  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13579  int status = $lt_dlunknown;
13580
13581  if (self)
13582    {
13583      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13584      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13585      /* dlclose (self); */
13586    }
13587  else
13588    puts (dlerror ());
13589
13590  return status;
13591}
13592_LT_EOF
13593  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13594  (eval $ac_link) 2>&5
13595  ac_status=$?
13596  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13598    (./conftest; exit; ) >&5 2>/dev/null
13599    lt_status=$?
13600    case x$lt_status in
13601      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13602      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13603      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13604    esac
13605  else :
13606    # compilation failed
13607    lt_cv_dlopen_self_static=no
13608  fi
13609fi
13610rm -fr conftest*
13611
13612
13613fi
13614{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13615$as_echo "$lt_cv_dlopen_self_static" >&6; }
13616    fi
13617
13618    CPPFLAGS="$save_CPPFLAGS"
13619    LDFLAGS="$save_LDFLAGS"
13620    LIBS="$save_LIBS"
13621    ;;
13622  esac
13623
13624  case $lt_cv_dlopen_self in
13625  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13626  *) enable_dlopen_self=unknown ;;
13627  esac
13628
13629  case $lt_cv_dlopen_self_static in
13630  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13631  *) enable_dlopen_self_static=unknown ;;
13632  esac
13633fi
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651striplib=
13652old_striplib=
13653{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13654$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13655if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13656  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13657  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13658  { $as_echo "$as_me:$LINENO: result: yes" >&5
13659$as_echo "yes" >&6; }
13660else
13661# FIXME - insert some real tests, host_os isn't really good enough
13662  case $host_os in
13663  darwin*)
13664    if test -n "$STRIP" ; then
13665      striplib="$STRIP -x"
13666      old_striplib="$STRIP -S"
13667      { $as_echo "$as_me:$LINENO: result: yes" >&5
13668$as_echo "yes" >&6; }
13669    else
13670      { $as_echo "$as_me:$LINENO: result: no" >&5
13671$as_echo "no" >&6; }
13672    fi
13673    ;;
13674  *)
13675    { $as_echo "$as_me:$LINENO: result: no" >&5
13676$as_echo "no" >&6; }
13677    ;;
13678  esac
13679fi
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692  # Report which library types will actually be built
13693  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13694$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13695  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13696$as_echo "$can_build_shared" >&6; }
13697
13698  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13699$as_echo_n "checking whether to build shared libraries... " >&6; }
13700  test "$can_build_shared" = "no" && enable_shared=no
13701
13702  # On AIX, shared libraries and static libraries use the same namespace, and
13703  # are all built from PIC.
13704  case $host_os in
13705  aix3*)
13706    test "$enable_shared" = yes && enable_static=no
13707    if test -n "$RANLIB"; then
13708      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13709      postinstall_cmds='$RANLIB $lib'
13710    fi
13711    ;;
13712
13713  aix[4-9]*)
13714    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13715      test "$enable_shared" = yes && enable_static=no
13716    fi
13717    ;;
13718  esac
13719  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13720$as_echo "$enable_shared" >&6; }
13721
13722  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13723$as_echo_n "checking whether to build static libraries... " >&6; }
13724  # Make sure either enable_shared or enable_static is yes.
13725  test "$enable_shared" = yes || enable_static=yes
13726  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13727$as_echo "$enable_static" >&6; }
13728
13729
13730
13731
13732fi
13733ac_ext=c
13734ac_cpp='$CPP $CPPFLAGS'
13735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13737ac_compiler_gnu=$ac_cv_c_compiler_gnu
13738
13739CC="$lt_save_CC"
13740
13741
13742ac_ext=cpp
13743ac_cpp='$CXXCPP $CPPFLAGS'
13744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13747
13748archive_cmds_need_lc_CXX=no
13749allow_undefined_flag_CXX=
13750always_export_symbols_CXX=no
13751archive_expsym_cmds_CXX=
13752compiler_needs_object_CXX=no
13753export_dynamic_flag_spec_CXX=
13754hardcode_direct_CXX=no
13755hardcode_direct_absolute_CXX=no
13756hardcode_libdir_flag_spec_CXX=
13757hardcode_libdir_flag_spec_ld_CXX=
13758hardcode_libdir_separator_CXX=
13759hardcode_minus_L_CXX=no
13760hardcode_shlibpath_var_CXX=unsupported
13761hardcode_automatic_CXX=no
13762inherit_rpath_CXX=no
13763module_cmds_CXX=
13764module_expsym_cmds_CXX=
13765link_all_deplibs_CXX=unknown
13766old_archive_cmds_CXX=$old_archive_cmds
13767no_undefined_flag_CXX=
13768whole_archive_flag_spec_CXX=
13769enable_shared_with_static_runtimes_CXX=no
13770
13771# Source file extension for C++ test sources.
13772ac_ext=cpp
13773
13774# Object file extension for compiled C++ test sources.
13775objext=o
13776objext_CXX=$objext
13777
13778# No sense in running all these tests if we already determined that
13779# the CXX compiler isn't working.  Some variables (like enable_shared)
13780# are currently assumed to apply to all compilers on this platform,
13781# and will be corrupted by setting them based on a non-working compiler.
13782if test "$_lt_caught_CXX_error" != yes; then
13783  # Code to be used in simple compile tests
13784  lt_simple_compile_test_code="int some_variable = 0;"
13785
13786  # Code to be used in simple link tests
13787  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13788
13789  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13790
13791
13792
13793
13794
13795
13796# If no C compiler was specified, use CC.
13797LTCC=${LTCC-"$CC"}
13798
13799# If no C compiler flags were specified, use CFLAGS.
13800LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13801
13802# Allow CC to be a program name with arguments.
13803compiler=$CC
13804
13805
13806  # save warnings/boilerplate of simple test code
13807  ac_outfile=conftest.$ac_objext
13808echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13809eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13810_lt_compiler_boilerplate=`cat conftest.err`
13811$RM conftest*
13812
13813  ac_outfile=conftest.$ac_objext
13814echo "$lt_simple_link_test_code" >conftest.$ac_ext
13815eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13816_lt_linker_boilerplate=`cat conftest.err`
13817$RM -r conftest*
13818
13819
13820  # Allow CC to be a program name with arguments.
13821  lt_save_CC=$CC
13822  lt_save_LD=$LD
13823  lt_save_GCC=$GCC
13824  GCC=$GXX
13825  lt_save_with_gnu_ld=$with_gnu_ld
13826  lt_save_path_LD=$lt_cv_path_LD
13827  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13828    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13829  else
13830    $as_unset lt_cv_prog_gnu_ld
13831  fi
13832  if test -n "${lt_cv_path_LDCXX+set}"; then
13833    lt_cv_path_LD=$lt_cv_path_LDCXX
13834  else
13835    $as_unset lt_cv_path_LD
13836  fi
13837  test -z "${LDCXX+set}" || LD=$LDCXX
13838  CC=${CXX-"c++"}
13839  compiler=$CC
13840  compiler_CXX=$CC
13841  for cc_temp in $compiler""; do
13842  case $cc_temp in
13843    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13844    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13845    \-*) ;;
13846    *) break;;
13847  esac
13848done
13849cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13850
13851
13852  if test -n "$compiler"; then
13853    # We don't want -fno-exception when compiling C++ code, so set the
13854    # no_builtin_flag separately
13855    if test "$GXX" = yes; then
13856      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13857    else
13858      lt_prog_compiler_no_builtin_flag_CXX=
13859    fi
13860
13861    if test "$GXX" = yes; then
13862      # Set up default GNU C++ configuration
13863
13864
13865
13866# Check whether --with-gnu-ld was given.
13867if test "${with_gnu_ld+set}" = set; then
13868  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13869else
13870  with_gnu_ld=no
13871fi
13872
13873ac_prog=ld
13874if test "$GCC" = yes; then
13875  # Check if gcc -print-prog-name=ld gives a path.
13876  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13877$as_echo_n "checking for ld used by $CC... " >&6; }
13878  case $host in
13879  *-*-mingw*)
13880    # gcc leaves a trailing carriage return which upsets mingw
13881    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13882  *)
13883    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13884  esac
13885  case $ac_prog in
13886    # Accept absolute paths.
13887    [\\/]* | ?:[\\/]*)
13888      re_direlt='/[^/][^/]*/\.\./'
13889      # Canonicalize the pathname of ld
13890      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13891      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13892	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13893      done
13894      test -z "$LD" && LD="$ac_prog"
13895      ;;
13896  "")
13897    # If it fails, then pretend we aren't using GCC.
13898    ac_prog=ld
13899    ;;
13900  *)
13901    # If it is relative, then search for the first ld in PATH.
13902    with_gnu_ld=unknown
13903    ;;
13904  esac
13905elif test "$with_gnu_ld" = yes; then
13906  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13907$as_echo_n "checking for GNU ld... " >&6; }
13908else
13909  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13910$as_echo_n "checking for non-GNU ld... " >&6; }
13911fi
13912if test "${lt_cv_path_LD+set}" = set; then
13913  $as_echo_n "(cached) " >&6
13914else
13915  if test -z "$LD"; then
13916  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13917  for ac_dir in $PATH; do
13918    IFS="$lt_save_ifs"
13919    test -z "$ac_dir" && ac_dir=.
13920    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13921      lt_cv_path_LD="$ac_dir/$ac_prog"
13922      # Check to see if the program is GNU ld.  I'd rather use --version,
13923      # but apparently some variants of GNU ld only accept -v.
13924      # Break only if it was the GNU/non-GNU ld that we prefer.
13925      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13926      *GNU* | *'with BFD'*)
13927	test "$with_gnu_ld" != no && break
13928	;;
13929      *)
13930	test "$with_gnu_ld" != yes && break
13931	;;
13932      esac
13933    fi
13934  done
13935  IFS="$lt_save_ifs"
13936else
13937  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13938fi
13939fi
13940
13941LD="$lt_cv_path_LD"
13942if test -n "$LD"; then
13943  { $as_echo "$as_me:$LINENO: result: $LD" >&5
13944$as_echo "$LD" >&6; }
13945else
13946  { $as_echo "$as_me:$LINENO: result: no" >&5
13947$as_echo "no" >&6; }
13948fi
13949test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13950$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13951   { (exit 1); exit 1; }; }
13952{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13953$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13954if test "${lt_cv_prog_gnu_ld+set}" = set; then
13955  $as_echo_n "(cached) " >&6
13956else
13957  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13958case `$LD -v 2>&1 </dev/null` in
13959*GNU* | *'with BFD'*)
13960  lt_cv_prog_gnu_ld=yes
13961  ;;
13962*)
13963  lt_cv_prog_gnu_ld=no
13964  ;;
13965esac
13966fi
13967{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13968$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13969with_gnu_ld=$lt_cv_prog_gnu_ld
13970
13971
13972
13973
13974
13975
13976
13977      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13978      # archiving commands below assume that GNU ld is being used.
13979      if test "$with_gnu_ld" = yes; then
13980        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13981        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13982
13983        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13984        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13985
13986        # If archive_cmds runs LD, not CC, wlarc should be empty
13987        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13988        #     investigate it a little bit more. (MM)
13989        wlarc='${wl}'
13990
13991        # ancient GNU ld didn't support --whole-archive et. al.
13992        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13993	  $GREP 'no-whole-archive' > /dev/null; then
13994          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13995        else
13996          whole_archive_flag_spec_CXX=
13997        fi
13998      else
13999        with_gnu_ld=no
14000        wlarc=
14001
14002        # A generic and very simple default shared library creation
14003        # command for GNU C++ for the case where it uses the native
14004        # linker, instead of GNU ld.  If possible, this setting should
14005        # overridden to take advantage of the native linker features on
14006        # the platform it is being used on.
14007        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14008      fi
14009
14010      # Commands to make compiler produce verbose output that lists
14011      # what "hidden" libraries, object files and flags are used when
14012      # linking a shared library.
14013      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14014
14015    else
14016      GXX=no
14017      with_gnu_ld=no
14018      wlarc=
14019    fi
14020
14021    # PORTME: fill in a description of your system's C++ link characteristics
14022    { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14023$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14024    ld_shlibs_CXX=yes
14025    case $host_os in
14026      aix3*)
14027        # FIXME: insert proper C++ library support
14028        ld_shlibs_CXX=no
14029        ;;
14030      aix[4-9]*)
14031        if test "$host_cpu" = ia64; then
14032          # On IA64, the linker does run time linking by default, so we don't
14033          # have to do anything special.
14034          aix_use_runtimelinking=no
14035          exp_sym_flag='-Bexport'
14036          no_entry_flag=""
14037        else
14038          aix_use_runtimelinking=no
14039
14040          # Test if we are trying to use run time linking or normal
14041          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14042          # need to do runtime linking.
14043          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14044	    for ld_flag in $LDFLAGS; do
14045	      case $ld_flag in
14046	      *-brtl*)
14047	        aix_use_runtimelinking=yes
14048	        break
14049	        ;;
14050	      esac
14051	    done
14052	    ;;
14053          esac
14054
14055          exp_sym_flag='-bexport'
14056          no_entry_flag='-bnoentry'
14057        fi
14058
14059        # When large executables or shared objects are built, AIX ld can
14060        # have problems creating the table of contents.  If linking a library
14061        # or program results in "error TOC overflow" add -mminimal-toc to
14062        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14063        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14064
14065        archive_cmds_CXX=''
14066        hardcode_direct_CXX=yes
14067        hardcode_direct_absolute_CXX=yes
14068        hardcode_libdir_separator_CXX=':'
14069        link_all_deplibs_CXX=yes
14070        file_list_spec_CXX='${wl}-f,'
14071
14072        if test "$GXX" = yes; then
14073          case $host_os in aix4.[012]|aix4.[012].*)
14074          # We only want to do this on AIX 4.2 and lower, the check
14075          # below for broken collect2 doesn't work under 4.3+
14076	  collect2name=`${CC} -print-prog-name=collect2`
14077	  if test -f "$collect2name" &&
14078	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14079	  then
14080	    # We have reworked collect2
14081	    :
14082	  else
14083	    # We have old collect2
14084	    hardcode_direct_CXX=unsupported
14085	    # It fails to find uninstalled libraries when the uninstalled
14086	    # path is not listed in the libpath.  Setting hardcode_minus_L
14087	    # to unsupported forces relinking
14088	    hardcode_minus_L_CXX=yes
14089	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14090	    hardcode_libdir_separator_CXX=
14091	  fi
14092          esac
14093          shared_flag='-shared'
14094	  if test "$aix_use_runtimelinking" = yes; then
14095	    shared_flag="$shared_flag "'${wl}-G'
14096	  fi
14097        else
14098          # not using gcc
14099          if test "$host_cpu" = ia64; then
14100	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14101	  # chokes on -Wl,-G. The following line is correct:
14102	  shared_flag='-G'
14103          else
14104	    if test "$aix_use_runtimelinking" = yes; then
14105	      shared_flag='${wl}-G'
14106	    else
14107	      shared_flag='${wl}-bM:SRE'
14108	    fi
14109          fi
14110        fi
14111
14112        export_dynamic_flag_spec_CXX='${wl}-bexpall'
14113        # It seems that -bexpall does not export symbols beginning with
14114        # underscore (_), so it is better to generate a list of symbols to
14115	# export.
14116        always_export_symbols_CXX=yes
14117        if test "$aix_use_runtimelinking" = yes; then
14118          # Warning - without using the other runtime loading flags (-brtl),
14119          # -berok will link without error, but may produce a broken library.
14120          allow_undefined_flag_CXX='-berok'
14121          # Determine the default libpath from the value encoded in an empty
14122          # executable.
14123          cat >conftest.$ac_ext <<_ACEOF
14124/* confdefs.h.  */
14125_ACEOF
14126cat confdefs.h >>conftest.$ac_ext
14127cat >>conftest.$ac_ext <<_ACEOF
14128/* end confdefs.h.  */
14129
14130int
14131main ()
14132{
14133
14134  ;
14135  return 0;
14136}
14137_ACEOF
14138rm -f conftest.$ac_objext conftest$ac_exeext
14139if { (ac_try="$ac_link"
14140case "(($ac_try" in
14141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142  *) ac_try_echo=$ac_try;;
14143esac
14144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14145$as_echo "$ac_try_echo") >&5
14146  (eval "$ac_link") 2>conftest.er1
14147  ac_status=$?
14148  grep -v '^ *+' conftest.er1 >conftest.err
14149  rm -f conftest.er1
14150  cat conftest.err >&5
14151  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152  (exit $ac_status); } && {
14153	 test -z "$ac_cxx_werror_flag" ||
14154	 test ! -s conftest.err
14155       } && test -s conftest$ac_exeext && {
14156	 test "$cross_compiling" = yes ||
14157	 $as_test_x conftest$ac_exeext
14158       }; then
14159
14160lt_aix_libpath_sed='
14161    /Import File Strings/,/^$/ {
14162	/^0/ {
14163	    s/^0  *\(.*\)$/\1/
14164	    p
14165	}
14166    }'
14167aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14168# Check for a 64-bit object if we didn't find anything.
14169if test -z "$aix_libpath"; then
14170  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14171fi
14172else
14173  $as_echo "$as_me: failed program was:" >&5
14174sed 's/^/| /' conftest.$ac_ext >&5
14175
14176
14177fi
14178
14179rm -rf conftest.dSYM
14180rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14181      conftest$ac_exeext conftest.$ac_ext
14182if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14183
14184          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14185
14186          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14187        else
14188          if test "$host_cpu" = ia64; then
14189	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14190	    allow_undefined_flag_CXX="-z nodefs"
14191	    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"
14192          else
14193	    # Determine the default libpath from the value encoded in an
14194	    # empty executable.
14195	    cat >conftest.$ac_ext <<_ACEOF
14196/* confdefs.h.  */
14197_ACEOF
14198cat confdefs.h >>conftest.$ac_ext
14199cat >>conftest.$ac_ext <<_ACEOF
14200/* end confdefs.h.  */
14201
14202int
14203main ()
14204{
14205
14206  ;
14207  return 0;
14208}
14209_ACEOF
14210rm -f conftest.$ac_objext conftest$ac_exeext
14211if { (ac_try="$ac_link"
14212case "(($ac_try" in
14213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214  *) ac_try_echo=$ac_try;;
14215esac
14216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14217$as_echo "$ac_try_echo") >&5
14218  (eval "$ac_link") 2>conftest.er1
14219  ac_status=$?
14220  grep -v '^ *+' conftest.er1 >conftest.err
14221  rm -f conftest.er1
14222  cat conftest.err >&5
14223  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224  (exit $ac_status); } && {
14225	 test -z "$ac_cxx_werror_flag" ||
14226	 test ! -s conftest.err
14227       } && test -s conftest$ac_exeext && {
14228	 test "$cross_compiling" = yes ||
14229	 $as_test_x conftest$ac_exeext
14230       }; then
14231
14232lt_aix_libpath_sed='
14233    /Import File Strings/,/^$/ {
14234	/^0/ {
14235	    s/^0  *\(.*\)$/\1/
14236	    p
14237	}
14238    }'
14239aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14240# Check for a 64-bit object if we didn't find anything.
14241if test -z "$aix_libpath"; then
14242  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14243fi
14244else
14245  $as_echo "$as_me: failed program was:" >&5
14246sed 's/^/| /' conftest.$ac_ext >&5
14247
14248
14249fi
14250
14251rm -rf conftest.dSYM
14252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14253      conftest$ac_exeext conftest.$ac_ext
14254if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14255
14256	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14257	    # Warning - without using the other run time loading flags,
14258	    # -berok will link without error, but may produce a broken library.
14259	    no_undefined_flag_CXX=' ${wl}-bernotok'
14260	    allow_undefined_flag_CXX=' ${wl}-berok'
14261	    # Exported symbols can be pulled into shared objects from archives
14262	    whole_archive_flag_spec_CXX='$convenience'
14263	    archive_cmds_need_lc_CXX=yes
14264	    # This is similar to how AIX traditionally builds its shared
14265	    # libraries.
14266	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14267          fi
14268        fi
14269        ;;
14270
14271      beos*)
14272	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14273	  allow_undefined_flag_CXX=unsupported
14274	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14275	  # support --undefined.  This deserves some investigation.  FIXME
14276	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14277	else
14278	  ld_shlibs_CXX=no
14279	fi
14280	;;
14281
14282      chorus*)
14283        case $cc_basename in
14284          *)
14285	  # FIXME: insert proper C++ library support
14286	  ld_shlibs_CXX=no
14287	  ;;
14288        esac
14289        ;;
14290
14291      cygwin* | mingw* | pw32* | cegcc*)
14292        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14293        # as there is no search path for DLLs.
14294        hardcode_libdir_flag_spec_CXX='-L$libdir'
14295        allow_undefined_flag_CXX=unsupported
14296        always_export_symbols_CXX=no
14297        enable_shared_with_static_runtimes_CXX=yes
14298
14299        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14300          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'
14301          # If the export-symbols file already is a .def file (1st line
14302          # is EXPORTS), use it as is; otherwise, prepend...
14303          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14304	    cp $export_symbols $output_objdir/$soname.def;
14305          else
14306	    echo EXPORTS > $output_objdir/$soname.def;
14307	    cat $export_symbols >> $output_objdir/$soname.def;
14308          fi~
14309          $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'
14310        else
14311          ld_shlibs_CXX=no
14312        fi
14313        ;;
14314      darwin* | rhapsody*)
14315
14316
14317  archive_cmds_need_lc_CXX=no
14318  hardcode_direct_CXX=no
14319  hardcode_automatic_CXX=yes
14320  hardcode_shlibpath_var_CXX=unsupported
14321  whole_archive_flag_spec_CXX=''
14322  link_all_deplibs_CXX=yes
14323  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14324  case $cc_basename in
14325     ifort*) _lt_dar_can_shared=yes ;;
14326     *) _lt_dar_can_shared=$GCC ;;
14327  esac
14328  if test "$_lt_dar_can_shared" = "yes"; then
14329    output_verbose_link_cmd=echo
14330    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}"
14331    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14332    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}"
14333    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}"
14334       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14335      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}"
14336      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}"
14337    fi
14338
14339  else
14340  ld_shlibs_CXX=no
14341  fi
14342
14343	;;
14344
14345      dgux*)
14346        case $cc_basename in
14347          ec++*)
14348	    # FIXME: insert proper C++ library support
14349	    ld_shlibs_CXX=no
14350	    ;;
14351          ghcx*)
14352	    # Green Hills C++ Compiler
14353	    # FIXME: insert proper C++ library support
14354	    ld_shlibs_CXX=no
14355	    ;;
14356          *)
14357	    # FIXME: insert proper C++ library support
14358	    ld_shlibs_CXX=no
14359	    ;;
14360        esac
14361        ;;
14362
14363      freebsd[12]*)
14364        # C++ shared libraries reported to be fairly broken before
14365	# switch to ELF
14366        ld_shlibs_CXX=no
14367        ;;
14368
14369      freebsd-elf*)
14370        archive_cmds_need_lc_CXX=no
14371        ;;
14372
14373      freebsd* | dragonfly*)
14374        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14375        # conventions
14376        ld_shlibs_CXX=yes
14377        ;;
14378
14379      gnu*)
14380        ;;
14381
14382      hpux9*)
14383        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14384        hardcode_libdir_separator_CXX=:
14385        export_dynamic_flag_spec_CXX='${wl}-E'
14386        hardcode_direct_CXX=yes
14387        hardcode_minus_L_CXX=yes # Not in the search PATH,
14388				             # but as the default
14389				             # location of the library.
14390
14391        case $cc_basename in
14392          CC*)
14393            # FIXME: insert proper C++ library support
14394            ld_shlibs_CXX=no
14395            ;;
14396          aCC*)
14397            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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14398            # Commands to make compiler produce verbose output that lists
14399            # what "hidden" libraries, object files and flags are used when
14400            # linking a shared library.
14401            #
14402            # There doesn't appear to be a way to prevent this compiler from
14403            # explicitly linking system object files so we need to strip them
14404            # from the output so that they don't get included in the library
14405            # dependencies.
14406            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; $ECHO "X$list" | $Xsed'
14407            ;;
14408          *)
14409            if test "$GXX" = yes; then
14410              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14411            else
14412              # FIXME: insert proper C++ library support
14413              ld_shlibs_CXX=no
14414            fi
14415            ;;
14416        esac
14417        ;;
14418
14419      hpux10*|hpux11*)
14420        if test $with_gnu_ld = no; then
14421	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14422	  hardcode_libdir_separator_CXX=:
14423
14424          case $host_cpu in
14425            hppa*64*|ia64*)
14426              ;;
14427            *)
14428	      export_dynamic_flag_spec_CXX='${wl}-E'
14429              ;;
14430          esac
14431        fi
14432        case $host_cpu in
14433          hppa*64*|ia64*)
14434            hardcode_direct_CXX=no
14435            hardcode_shlibpath_var_CXX=no
14436            ;;
14437          *)
14438            hardcode_direct_CXX=yes
14439            hardcode_direct_absolute_CXX=yes
14440            hardcode_minus_L_CXX=yes # Not in the search PATH,
14441					         # but as the default
14442					         # location of the library.
14443            ;;
14444        esac
14445
14446        case $cc_basename in
14447          CC*)
14448	    # FIXME: insert proper C++ library support
14449	    ld_shlibs_CXX=no
14450	    ;;
14451          aCC*)
14452	    case $host_cpu in
14453	      hppa*64*)
14454	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14455	        ;;
14456	      ia64*)
14457	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14458	        ;;
14459	      *)
14460	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14461	        ;;
14462	    esac
14463	    # Commands to make compiler produce verbose output that lists
14464	    # what "hidden" libraries, object files and flags are used when
14465	    # linking a shared library.
14466	    #
14467	    # There doesn't appear to be a way to prevent this compiler from
14468	    # explicitly linking system object files so we need to strip them
14469	    # from the output so that they don't get included in the library
14470	    # dependencies.
14471	    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; $ECHO "X$list" | $Xsed'
14472	    ;;
14473          *)
14474	    if test "$GXX" = yes; then
14475	      if test $with_gnu_ld = no; then
14476	        case $host_cpu in
14477	          hppa*64*)
14478	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14479	            ;;
14480	          ia64*)
14481	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14482	            ;;
14483	          *)
14484	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14485	            ;;
14486	        esac
14487	      fi
14488	    else
14489	      # FIXME: insert proper C++ library support
14490	      ld_shlibs_CXX=no
14491	    fi
14492	    ;;
14493        esac
14494        ;;
14495
14496      interix[3-9]*)
14497	hardcode_direct_CXX=no
14498	hardcode_shlibpath_var_CXX=no
14499	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14500	export_dynamic_flag_spec_CXX='${wl}-E'
14501	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14502	# Instead, shared libraries are loaded at an image base (0x10000000 by
14503	# default) and relocated if they conflict, which is a slow very memory
14504	# consuming and fragmenting process.  To avoid this, we pick a random,
14505	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14506	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14507	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'
14508	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'
14509	;;
14510      irix5* | irix6*)
14511        case $cc_basename in
14512          CC*)
14513	    # SGI C++
14514	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14515
14516	    # Archives containing C++ object files must be created using
14517	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14518	    # necessary to make sure instantiated templates are included
14519	    # in the archive.
14520	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14521	    ;;
14522          *)
14523	    if test "$GXX" = yes; then
14524	      if test "$with_gnu_ld" = no; then
14525	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14526	      else
14527	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
14528	      fi
14529	    fi
14530	    link_all_deplibs_CXX=yes
14531	    ;;
14532        esac
14533        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14534        hardcode_libdir_separator_CXX=:
14535        inherit_rpath_CXX=yes
14536        ;;
14537
14538      linux* | k*bsd*-gnu)
14539        case $cc_basename in
14540          KCC*)
14541	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14542
14543	    # KCC will only create a shared library if the output file
14544	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14545	    # to its proper name (with version) after linking.
14546	    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'
14547	    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'
14548	    # Commands to make compiler produce verbose output that lists
14549	    # what "hidden" libraries, object files and flags are used when
14550	    # linking a shared library.
14551	    #
14552	    # There doesn't appear to be a way to prevent this compiler from
14553	    # explicitly linking system object files so we need to strip them
14554	    # from the output so that they don't get included in the library
14555	    # dependencies.
14556	    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; $ECHO "X$list" | $Xsed'
14557
14558	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14559	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14560
14561	    # Archives containing C++ object files must be created using
14562	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14563	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14564	    ;;
14565	  icpc* | ecpc* )
14566	    # Intel C++
14567	    with_gnu_ld=yes
14568	    # version 8.0 and above of icpc choke on multiply defined symbols
14569	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14570	    # earlier do not add the objects themselves.
14571	    case `$CC -V 2>&1` in
14572	      *"Version 7."*)
14573	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14574		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'
14575		;;
14576	      *)  # Version 8.0 or newer
14577	        tmp_idyn=
14578	        case $host_cpu in
14579		  ia64*) tmp_idyn=' -i_dynamic';;
14580		esac
14581	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14582		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'
14583		;;
14584	    esac
14585	    archive_cmds_need_lc_CXX=no
14586	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14587	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14588	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14589	    ;;
14590          pgCC* | pgcpp*)
14591            # Portland Group C++ compiler
14592	    case `$CC -V` in
14593	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14594	      prelink_cmds_CXX='tpldir=Template.dir~
14595		rm -rf $tpldir~
14596		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14597		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14598	      old_archive_cmds_CXX='tpldir=Template.dir~
14599		rm -rf $tpldir~
14600		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14601		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14602		$RANLIB $oldlib'
14603	      archive_cmds_CXX='tpldir=Template.dir~
14604		rm -rf $tpldir~
14605		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14606		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14607	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14608		rm -rf $tpldir~
14609		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14610		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14611	      ;;
14612	    *) # Version 6 will use weak symbols
14613	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14614	      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'
14615	      ;;
14616	    esac
14617
14618	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14619	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14620	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14621            ;;
14622	  cxx*)
14623	    # Compaq C++
14624	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14625	    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'
14626
14627	    runpath_var=LD_RUN_PATH
14628	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14629	    hardcode_libdir_separator_CXX=:
14630
14631	    # Commands to make compiler produce verbose output that lists
14632	    # what "hidden" libraries, object files and flags are used when
14633	    # linking a shared library.
14634	    #
14635	    # There doesn't appear to be a way to prevent this compiler from
14636	    # explicitly linking system object files so we need to strip them
14637	    # from the output so that they don't get included in the library
14638	    # dependencies.
14639	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14640	    ;;
14641	  xl*)
14642	    # IBM XL 8.0 on PPC, with GNU ld
14643	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14644	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14645	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14646	    if test "x$supports_anon_versioning" = xyes; then
14647	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14648		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14649		echo "local: *; };" >> $output_objdir/$libname.ver~
14650		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14651	    fi
14652	    ;;
14653	  *)
14654	    case `$CC -V 2>&1 | sed 5q` in
14655	    *Sun\ C*)
14656	      # Sun C++ 5.9
14657	      no_undefined_flag_CXX=' -zdefs'
14658	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14659	      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'
14660	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14661	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14662	      compiler_needs_object_CXX=yes
14663
14664	      # Not sure whether something based on
14665	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14666	      # would be better.
14667	      output_verbose_link_cmd='echo'
14668
14669	      # Archives containing C++ object files must be created using
14670	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14671	      # necessary to make sure instantiated templates are included
14672	      # in the archive.
14673	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14674	      ;;
14675	    esac
14676	    ;;
14677	esac
14678	;;
14679
14680      lynxos*)
14681        # FIXME: insert proper C++ library support
14682	ld_shlibs_CXX=no
14683	;;
14684
14685      m88k*)
14686        # FIXME: insert proper C++ library support
14687        ld_shlibs_CXX=no
14688	;;
14689
14690      mvs*)
14691        case $cc_basename in
14692          cxx*)
14693	    # FIXME: insert proper C++ library support
14694	    ld_shlibs_CXX=no
14695	    ;;
14696	  *)
14697	    # FIXME: insert proper C++ library support
14698	    ld_shlibs_CXX=no
14699	    ;;
14700	esac
14701	;;
14702
14703      netbsd*)
14704        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14705	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14706	  wlarc=
14707	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14708	  hardcode_direct_CXX=yes
14709	  hardcode_shlibpath_var_CXX=no
14710	fi
14711	# Workaround some broken pre-1.5 toolchains
14712	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14713	;;
14714
14715      *nto* | *qnx*)
14716        ld_shlibs_CXX=yes
14717	;;
14718
14719      openbsd2*)
14720        # C++ shared libraries are fairly broken
14721	ld_shlibs_CXX=no
14722	;;
14723
14724      openbsd*)
14725	if test -f /usr/libexec/ld.so; then
14726	  hardcode_direct_CXX=yes
14727	  hardcode_shlibpath_var_CXX=no
14728	  hardcode_direct_absolute_CXX=yes
14729	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14730	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14731	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14732	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14733	    export_dynamic_flag_spec_CXX='${wl}-E'
14734	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14735	  fi
14736	  output_verbose_link_cmd=echo
14737	else
14738	  ld_shlibs_CXX=no
14739	fi
14740	;;
14741
14742      osf3* | osf4* | osf5*)
14743        case $cc_basename in
14744          KCC*)
14745	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14746
14747	    # KCC will only create a shared library if the output file
14748	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14749	    # to its proper name (with version) after linking.
14750	    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'
14751
14752	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14753	    hardcode_libdir_separator_CXX=:
14754
14755	    # Archives containing C++ object files must be created using
14756	    # the KAI C++ compiler.
14757	    case $host in
14758	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14759	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14760	    esac
14761	    ;;
14762          RCC*)
14763	    # Rational C++ 2.4.1
14764	    # FIXME: insert proper C++ library support
14765	    ld_shlibs_CXX=no
14766	    ;;
14767          cxx*)
14768	    case $host in
14769	      osf3*)
14770	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14771	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14772	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14773		;;
14774	      *)
14775	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14776	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14777	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14778	          echo "-hidden">> $lib.exp~
14779	          $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14780	          $RM $lib.exp'
14781	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14782		;;
14783	    esac
14784
14785	    hardcode_libdir_separator_CXX=:
14786
14787	    # Commands to make compiler produce verbose output that lists
14788	    # what "hidden" libraries, object files and flags are used when
14789	    # linking a shared library.
14790	    #
14791	    # There doesn't appear to be a way to prevent this compiler from
14792	    # explicitly linking system object files so we need to strip them
14793	    # from the output so that they don't get included in the library
14794	    # dependencies.
14795	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14796	    ;;
14797	  *)
14798	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14799	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14800	      case $host in
14801	        osf3*)
14802	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14803		  ;;
14804	        *)
14805	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14806		  ;;
14807	      esac
14808
14809	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14810	      hardcode_libdir_separator_CXX=:
14811
14812	      # Commands to make compiler produce verbose output that lists
14813	      # what "hidden" libraries, object files and flags are used when
14814	      # linking a shared library.
14815	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14816
14817	    else
14818	      # FIXME: insert proper C++ library support
14819	      ld_shlibs_CXX=no
14820	    fi
14821	    ;;
14822        esac
14823        ;;
14824
14825      psos*)
14826        # FIXME: insert proper C++ library support
14827        ld_shlibs_CXX=no
14828        ;;
14829
14830      sunos4*)
14831        case $cc_basename in
14832          CC*)
14833	    # Sun C++ 4.x
14834	    # FIXME: insert proper C++ library support
14835	    ld_shlibs_CXX=no
14836	    ;;
14837          lcc*)
14838	    # Lucid
14839	    # FIXME: insert proper C++ library support
14840	    ld_shlibs_CXX=no
14841	    ;;
14842          *)
14843	    # FIXME: insert proper C++ library support
14844	    ld_shlibs_CXX=no
14845	    ;;
14846        esac
14847        ;;
14848
14849      solaris*)
14850        case $cc_basename in
14851          CC*)
14852	    # Sun C++ 4.2, 5.x and Centerline C++
14853            archive_cmds_need_lc_CXX=yes
14854	    no_undefined_flag_CXX=' -zdefs'
14855	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14856	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14857	      $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'
14858
14859	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14860	    hardcode_shlibpath_var_CXX=no
14861	    case $host_os in
14862	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14863	      *)
14864		# The compiler driver will combine and reorder linker options,
14865		# but understands `-z linker_flag'.
14866	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14867		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14868	        ;;
14869	    esac
14870	    link_all_deplibs_CXX=yes
14871
14872	    output_verbose_link_cmd='echo'
14873
14874	    # Archives containing C++ object files must be created using
14875	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14876	    # necessary to make sure instantiated templates are included
14877	    # in the archive.
14878	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14879	    ;;
14880          gcx*)
14881	    # Green Hills C++ Compiler
14882	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14883
14884	    # The C++ compiler must be used to create the archive.
14885	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14886	    ;;
14887          *)
14888	    # GNU C++ compiler with Solaris linker
14889	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14890	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14891	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14892	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14893	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14894		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14895
14896	        # Commands to make compiler produce verbose output that lists
14897	        # what "hidden" libraries, object files and flags are used when
14898	        # linking a shared library.
14899	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14900	      else
14901	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
14902	        # platform.
14903	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14904	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14905		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14906
14907	        # Commands to make compiler produce verbose output that lists
14908	        # what "hidden" libraries, object files and flags are used when
14909	        # linking a shared library.
14910	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14911	      fi
14912
14913	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14914	      case $host_os in
14915		solaris2.[0-5] | solaris2.[0-5].*) ;;
14916		*)
14917		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14918		  ;;
14919	      esac
14920	    fi
14921	    ;;
14922        esac
14923        ;;
14924
14925    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14926      no_undefined_flag_CXX='${wl}-z,text'
14927      archive_cmds_need_lc_CXX=no
14928      hardcode_shlibpath_var_CXX=no
14929      runpath_var='LD_RUN_PATH'
14930
14931      case $cc_basename in
14932        CC*)
14933	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14934	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14935	  ;;
14936	*)
14937	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14938	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14939	  ;;
14940      esac
14941      ;;
14942
14943      sysv5* | sco3.2v5* | sco5v6*)
14944	# Note: We can NOT use -z defs as we might desire, because we do not
14945	# link with -lc, and that would cause any symbols used from libc to
14946	# always be unresolved, which means just about no library would
14947	# ever link correctly.  If we're not using GNU ld we use -z text
14948	# though, which does catch some bad symbols but isn't as heavy-handed
14949	# as -z defs.
14950	no_undefined_flag_CXX='${wl}-z,text'
14951	allow_undefined_flag_CXX='${wl}-z,nodefs'
14952	archive_cmds_need_lc_CXX=no
14953	hardcode_shlibpath_var_CXX=no
14954	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14955	hardcode_libdir_separator_CXX=':'
14956	link_all_deplibs_CXX=yes
14957	export_dynamic_flag_spec_CXX='${wl}-Bexport'
14958	runpath_var='LD_RUN_PATH'
14959
14960	case $cc_basename in
14961          CC*)
14962	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14963	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14964	    ;;
14965	  *)
14966	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14967	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14968	    ;;
14969	esac
14970      ;;
14971
14972      tandem*)
14973        case $cc_basename in
14974          NCC*)
14975	    # NonStop-UX NCC 3.20
14976	    # FIXME: insert proper C++ library support
14977	    ld_shlibs_CXX=no
14978	    ;;
14979          *)
14980	    # FIXME: insert proper C++ library support
14981	    ld_shlibs_CXX=no
14982	    ;;
14983        esac
14984        ;;
14985
14986      vxworks*)
14987        # FIXME: insert proper C++ library support
14988        ld_shlibs_CXX=no
14989        ;;
14990
14991      *)
14992        # FIXME: insert proper C++ library support
14993        ld_shlibs_CXX=no
14994        ;;
14995    esac
14996
14997    { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14998$as_echo "$ld_shlibs_CXX" >&6; }
14999    test "$ld_shlibs_CXX" = no && can_build_shared=no
15000
15001    GCC_CXX="$GXX"
15002    LD_CXX="$LD"
15003
15004    ## CAVEAT EMPTOR:
15005    ## There is no encapsulation within the following macros, do not change
15006    ## the running order or otherwise move them around unless you know exactly
15007    ## what you are doing...
15008    # Dependencies to place before and after the object being linked:
15009predep_objects_CXX=
15010postdep_objects_CXX=
15011predeps_CXX=
15012postdeps_CXX=
15013compiler_lib_search_path_CXX=
15014
15015cat > conftest.$ac_ext <<_LT_EOF
15016class Foo
15017{
15018public:
15019  Foo (void) { a = 0; }
15020private:
15021  int a;
15022};
15023_LT_EOF
15024
15025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15026  (eval $ac_compile) 2>&5
15027  ac_status=$?
15028  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029  (exit $ac_status); }; then
15030  # Parse the compiler output and extract the necessary
15031  # objects, libraries and library flags.
15032
15033  # Sentinel used to keep track of whether or not we are before
15034  # the conftest object file.
15035  pre_test_object_deps_done=no
15036
15037  for p in `eval "$output_verbose_link_cmd"`; do
15038    case $p in
15039
15040    -L* | -R* | -l*)
15041       # Some compilers place space between "-{L,R}" and the path.
15042       # Remove the space.
15043       if test $p = "-L" ||
15044          test $p = "-R"; then
15045	 prev=$p
15046	 continue
15047       else
15048	 prev=
15049       fi
15050
15051       if test "$pre_test_object_deps_done" = no; then
15052	 case $p in
15053	 -L* | -R*)
15054	   # Internal compiler library paths should come after those
15055	   # provided the user.  The postdeps already come after the
15056	   # user supplied libs so there is no need to process them.
15057	   if test -z "$compiler_lib_search_path_CXX"; then
15058	     compiler_lib_search_path_CXX="${prev}${p}"
15059	   else
15060	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15061	   fi
15062	   ;;
15063	 # The "-l" case would never come before the object being
15064	 # linked, so don't bother handling this case.
15065	 esac
15066       else
15067	 if test -z "$postdeps_CXX"; then
15068	   postdeps_CXX="${prev}${p}"
15069	 else
15070	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15071	 fi
15072       fi
15073       ;;
15074
15075    *.$objext)
15076       # This assumes that the test object file only shows up
15077       # once in the compiler output.
15078       if test "$p" = "conftest.$objext"; then
15079	 pre_test_object_deps_done=yes
15080	 continue
15081       fi
15082
15083       if test "$pre_test_object_deps_done" = no; then
15084	 if test -z "$predep_objects_CXX"; then
15085	   predep_objects_CXX="$p"
15086	 else
15087	   predep_objects_CXX="$predep_objects_CXX $p"
15088	 fi
15089       else
15090	 if test -z "$postdep_objects_CXX"; then
15091	   postdep_objects_CXX="$p"
15092	 else
15093	   postdep_objects_CXX="$postdep_objects_CXX $p"
15094	 fi
15095       fi
15096       ;;
15097
15098    *) ;; # Ignore the rest.
15099
15100    esac
15101  done
15102
15103  # Clean up.
15104  rm -f a.out a.exe
15105else
15106  echo "libtool.m4: error: problem compiling CXX test program"
15107fi
15108
15109$RM -f confest.$objext
15110
15111# PORTME: override above test on systems where it is broken
15112case $host_os in
15113interix[3-9]*)
15114  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15115  # hack all around it, let's just trust "g++" to DTRT.
15116  predep_objects_CXX=
15117  postdep_objects_CXX=
15118  postdeps_CXX=
15119  ;;
15120
15121linux*)
15122  case `$CC -V 2>&1 | sed 5q` in
15123  *Sun\ C*)
15124    # Sun C++ 5.9
15125
15126    # The more standards-conforming stlport4 library is
15127    # incompatible with the Cstd library. Avoid specifying
15128    # it if it's in CXXFLAGS. Ignore libCrun as
15129    # -library=stlport4 depends on it.
15130    case " $CXX $CXXFLAGS " in
15131    *" -library=stlport4 "*)
15132      solaris_use_stlport4=yes
15133      ;;
15134    esac
15135
15136    if test "$solaris_use_stlport4" != yes; then
15137      postdeps_CXX='-library=Cstd -library=Crun'
15138    fi
15139    ;;
15140  esac
15141  ;;
15142
15143solaris*)
15144  case $cc_basename in
15145  CC*)
15146    # The more standards-conforming stlport4 library is
15147    # incompatible with the Cstd library. Avoid specifying
15148    # it if it's in CXXFLAGS. Ignore libCrun as
15149    # -library=stlport4 depends on it.
15150    case " $CXX $CXXFLAGS " in
15151    *" -library=stlport4 "*)
15152      solaris_use_stlport4=yes
15153      ;;
15154    esac
15155
15156    # Adding this requires a known-good setup of shared libraries for
15157    # Sun compiler versions before 5.6, else PIC objects from an old
15158    # archive will be linked into the output, leading to subtle bugs.
15159    if test "$solaris_use_stlport4" != yes; then
15160      postdeps_CXX='-library=Cstd -library=Crun'
15161    fi
15162    ;;
15163  esac
15164  ;;
15165esac
15166
15167
15168case " $postdeps_CXX " in
15169*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15170esac
15171 compiler_lib_search_dirs_CXX=
15172if test -n "${compiler_lib_search_path_CXX}"; then
15173 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15174fi
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206    lt_prog_compiler_wl_CXX=
15207lt_prog_compiler_pic_CXX=
15208lt_prog_compiler_static_CXX=
15209
15210{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15211$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15212
15213  # C++ specific cases for pic, static, wl, etc.
15214  if test "$GXX" = yes; then
15215    lt_prog_compiler_wl_CXX='-Wl,'
15216    lt_prog_compiler_static_CXX='-static'
15217
15218    case $host_os in
15219    aix*)
15220      # All AIX code is PIC.
15221      if test "$host_cpu" = ia64; then
15222	# AIX 5 now supports IA64 processor
15223	lt_prog_compiler_static_CXX='-Bstatic'
15224      fi
15225      ;;
15226
15227    amigaos*)
15228      case $host_cpu in
15229      powerpc)
15230            # see comment about AmigaOS4 .so support
15231            lt_prog_compiler_pic_CXX='-fPIC'
15232        ;;
15233      m68k)
15234            # FIXME: we need at least 68020 code to build shared libraries, but
15235            # adding the `-m68020' flag to GCC prevents building anything better,
15236            # like `-m68040'.
15237            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15238        ;;
15239      esac
15240      ;;
15241
15242    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15243      # PIC is the default for these OSes.
15244      ;;
15245    mingw* | cygwin* | os2* | pw32* | cegcc*)
15246      # This hack is so that the source file can tell whether it is being
15247      # built for inclusion in a dll (and should export symbols for example).
15248      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15249      # (--disable-auto-import) libraries
15250      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15251      ;;
15252    darwin* | rhapsody*)
15253      # PIC is the default on this platform
15254      # Common symbols not allowed in MH_DYLIB files
15255      lt_prog_compiler_pic_CXX='-fno-common'
15256      ;;
15257    *djgpp*)
15258      # DJGPP does not support shared libraries at all
15259      lt_prog_compiler_pic_CXX=
15260      ;;
15261    interix[3-9]*)
15262      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15263      # Instead, we relocate shared libraries at runtime.
15264      ;;
15265    sysv4*MP*)
15266      if test -d /usr/nec; then
15267	lt_prog_compiler_pic_CXX=-Kconform_pic
15268      fi
15269      ;;
15270    hpux*)
15271      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15272      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15273      # sets the default TLS model and affects inlining.
15274      case $host_cpu in
15275      hppa*64*)
15276	;;
15277      *)
15278	lt_prog_compiler_pic_CXX='-fPIC'
15279	;;
15280      esac
15281      ;;
15282    *qnx* | *nto*)
15283      # QNX uses GNU C++, but need to define -shared option too, otherwise
15284      # it will coredump.
15285      lt_prog_compiler_pic_CXX='-fPIC -shared'
15286      ;;
15287    *)
15288      lt_prog_compiler_pic_CXX='-fPIC'
15289      ;;
15290    esac
15291  else
15292    case $host_os in
15293      aix[4-9]*)
15294	# All AIX code is PIC.
15295	if test "$host_cpu" = ia64; then
15296	  # AIX 5 now supports IA64 processor
15297	  lt_prog_compiler_static_CXX='-Bstatic'
15298	else
15299	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15300	fi
15301	;;
15302      chorus*)
15303	case $cc_basename in
15304	cxch68*)
15305	  # Green Hills C++ Compiler
15306	  # _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"
15307	  ;;
15308	esac
15309	;;
15310      dgux*)
15311	case $cc_basename in
15312	  ec++*)
15313	    lt_prog_compiler_pic_CXX='-KPIC'
15314	    ;;
15315	  ghcx*)
15316	    # Green Hills C++ Compiler
15317	    lt_prog_compiler_pic_CXX='-pic'
15318	    ;;
15319	  *)
15320	    ;;
15321	esac
15322	;;
15323      freebsd* | dragonfly*)
15324	# FreeBSD uses GNU C++
15325	;;
15326      hpux9* | hpux10* | hpux11*)
15327	case $cc_basename in
15328	  CC*)
15329	    lt_prog_compiler_wl_CXX='-Wl,'
15330	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15331	    if test "$host_cpu" != ia64; then
15332	      lt_prog_compiler_pic_CXX='+Z'
15333	    fi
15334	    ;;
15335	  aCC*)
15336	    lt_prog_compiler_wl_CXX='-Wl,'
15337	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15338	    case $host_cpu in
15339	    hppa*64*|ia64*)
15340	      # +Z the default
15341	      ;;
15342	    *)
15343	      lt_prog_compiler_pic_CXX='+Z'
15344	      ;;
15345	    esac
15346	    ;;
15347	  *)
15348	    ;;
15349	esac
15350	;;
15351      interix*)
15352	# This is c89, which is MS Visual C++ (no shared libs)
15353	# Anyone wants to do a port?
15354	;;
15355      irix5* | irix6* | nonstopux*)
15356	case $cc_basename in
15357	  CC*)
15358	    lt_prog_compiler_wl_CXX='-Wl,'
15359	    lt_prog_compiler_static_CXX='-non_shared'
15360	    # CC pic flag -KPIC is the default.
15361	    ;;
15362	  *)
15363	    ;;
15364	esac
15365	;;
15366      linux* | k*bsd*-gnu)
15367	case $cc_basename in
15368	  KCC*)
15369	    # KAI C++ Compiler
15370	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15371	    lt_prog_compiler_pic_CXX='-fPIC'
15372	    ;;
15373	  ecpc* )
15374	    # old Intel C++ for x86_64 which still supported -KPIC.
15375	    lt_prog_compiler_wl_CXX='-Wl,'
15376	    lt_prog_compiler_pic_CXX='-KPIC'
15377	    lt_prog_compiler_static_CXX='-static'
15378	    ;;
15379	  icpc* )
15380	    # Intel C++, used to be incompatible with GCC.
15381	    # ICC 10 doesn't accept -KPIC any more.
15382	    lt_prog_compiler_wl_CXX='-Wl,'
15383	    lt_prog_compiler_pic_CXX='-fPIC'
15384	    lt_prog_compiler_static_CXX='-static'
15385	    ;;
15386	  pgCC* | pgcpp*)
15387	    # Portland Group C++ compiler
15388	    lt_prog_compiler_wl_CXX='-Wl,'
15389	    lt_prog_compiler_pic_CXX='-fpic'
15390	    lt_prog_compiler_static_CXX='-Bstatic'
15391	    ;;
15392	  cxx*)
15393	    # Compaq C++
15394	    # Make sure the PIC flag is empty.  It appears that all Alpha
15395	    # Linux and Compaq Tru64 Unix objects are PIC.
15396	    lt_prog_compiler_pic_CXX=
15397	    lt_prog_compiler_static_CXX='-non_shared'
15398	    ;;
15399	  xlc* | xlC*)
15400	    # IBM XL 8.0 on PPC
15401	    lt_prog_compiler_wl_CXX='-Wl,'
15402	    lt_prog_compiler_pic_CXX='-qpic'
15403	    lt_prog_compiler_static_CXX='-qstaticlink'
15404	    ;;
15405	  *)
15406	    case `$CC -V 2>&1 | sed 5q` in
15407	    *Sun\ C*)
15408	      # Sun C++ 5.9
15409	      lt_prog_compiler_pic_CXX='-KPIC'
15410	      lt_prog_compiler_static_CXX='-Bstatic'
15411	      lt_prog_compiler_wl_CXX='-Qoption ld '
15412	      ;;
15413	    esac
15414	    ;;
15415	esac
15416	;;
15417      lynxos*)
15418	;;
15419      m88k*)
15420	;;
15421      mvs*)
15422	case $cc_basename in
15423	  cxx*)
15424	    lt_prog_compiler_pic_CXX='-W c,exportall'
15425	    ;;
15426	  *)
15427	    ;;
15428	esac
15429	;;
15430      netbsd*)
15431	;;
15432      *qnx* | *nto*)
15433        # QNX uses GNU C++, but need to define -shared option too, otherwise
15434        # it will coredump.
15435        lt_prog_compiler_pic_CXX='-fPIC -shared'
15436        ;;
15437      osf3* | osf4* | osf5*)
15438	case $cc_basename in
15439	  KCC*)
15440	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15441	    ;;
15442	  RCC*)
15443	    # Rational C++ 2.4.1
15444	    lt_prog_compiler_pic_CXX='-pic'
15445	    ;;
15446	  cxx*)
15447	    # Digital/Compaq C++
15448	    lt_prog_compiler_wl_CXX='-Wl,'
15449	    # Make sure the PIC flag is empty.  It appears that all Alpha
15450	    # Linux and Compaq Tru64 Unix objects are PIC.
15451	    lt_prog_compiler_pic_CXX=
15452	    lt_prog_compiler_static_CXX='-non_shared'
15453	    ;;
15454	  *)
15455	    ;;
15456	esac
15457	;;
15458      psos*)
15459	;;
15460      solaris*)
15461	case $cc_basename in
15462	  CC*)
15463	    # Sun C++ 4.2, 5.x and Centerline C++
15464	    lt_prog_compiler_pic_CXX='-KPIC'
15465	    lt_prog_compiler_static_CXX='-Bstatic'
15466	    lt_prog_compiler_wl_CXX='-Qoption ld '
15467	    ;;
15468	  gcx*)
15469	    # Green Hills C++ Compiler
15470	    lt_prog_compiler_pic_CXX='-PIC'
15471	    ;;
15472	  *)
15473	    ;;
15474	esac
15475	;;
15476      sunos4*)
15477	case $cc_basename in
15478	  CC*)
15479	    # Sun C++ 4.x
15480	    lt_prog_compiler_pic_CXX='-pic'
15481	    lt_prog_compiler_static_CXX='-Bstatic'
15482	    ;;
15483	  lcc*)
15484	    # Lucid
15485	    lt_prog_compiler_pic_CXX='-pic'
15486	    ;;
15487	  *)
15488	    ;;
15489	esac
15490	;;
15491      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15492	case $cc_basename in
15493	  CC*)
15494	    lt_prog_compiler_wl_CXX='-Wl,'
15495	    lt_prog_compiler_pic_CXX='-KPIC'
15496	    lt_prog_compiler_static_CXX='-Bstatic'
15497	    ;;
15498	esac
15499	;;
15500      tandem*)
15501	case $cc_basename in
15502	  NCC*)
15503	    # NonStop-UX NCC 3.20
15504	    lt_prog_compiler_pic_CXX='-KPIC'
15505	    ;;
15506	  *)
15507	    ;;
15508	esac
15509	;;
15510      vxworks*)
15511	;;
15512      *)
15513	lt_prog_compiler_can_build_shared_CXX=no
15514	;;
15515    esac
15516  fi
15517
15518case $host_os in
15519  # For platforms which do not support PIC, -DPIC is meaningless:
15520  *djgpp*)
15521    lt_prog_compiler_pic_CXX=
15522    ;;
15523  *)
15524    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15525    ;;
15526esac
15527{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15528$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15529
15530
15531
15532#
15533# Check to make sure the PIC flag actually works.
15534#
15535if test -n "$lt_prog_compiler_pic_CXX"; then
15536  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15537$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15538if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15539  $as_echo_n "(cached) " >&6
15540else
15541  lt_cv_prog_compiler_pic_works_CXX=no
15542   ac_outfile=conftest.$ac_objext
15543   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15544   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15545   # Insert the option either (1) after the last *FLAGS variable, or
15546   # (2) before a word containing "conftest.", or (3) at the end.
15547   # Note that $ac_compile itself does not contain backslashes and begins
15548   # with a dollar sign (not a hyphen), so the echo should work correctly.
15549   # The option is referenced via a variable to avoid confusing sed.
15550   lt_compile=`echo "$ac_compile" | $SED \
15551   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15552   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15553   -e 's:$: $lt_compiler_flag:'`
15554   (eval echo "\"\$as_me:15554: $lt_compile\"" >&5)
15555   (eval "$lt_compile" 2>conftest.err)
15556   ac_status=$?
15557   cat conftest.err >&5
15558   echo "$as_me:15558: \$? = $ac_status" >&5
15559   if (exit $ac_status) && test -s "$ac_outfile"; then
15560     # The compiler can only warn and ignore the option if not recognized
15561     # So say no if there are warnings other than the usual output.
15562     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15563     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15564     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15565       lt_cv_prog_compiler_pic_works_CXX=yes
15566     fi
15567   fi
15568   $RM conftest*
15569
15570fi
15571{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15572$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15573
15574if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15575    case $lt_prog_compiler_pic_CXX in
15576     "" | " "*) ;;
15577     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15578     esac
15579else
15580    lt_prog_compiler_pic_CXX=
15581     lt_prog_compiler_can_build_shared_CXX=no
15582fi
15583
15584fi
15585
15586
15587
15588#
15589# Check to make sure the static flag actually works.
15590#
15591wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15592{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15593$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15594if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15595  $as_echo_n "(cached) " >&6
15596else
15597  lt_cv_prog_compiler_static_works_CXX=no
15598   save_LDFLAGS="$LDFLAGS"
15599   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15600   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15601   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15602     # The linker can only warn and ignore the option if not recognized
15603     # So say no if there are warnings
15604     if test -s conftest.err; then
15605       # Append any errors to the config.log.
15606       cat conftest.err 1>&5
15607       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15608       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15609       if diff conftest.exp conftest.er2 >/dev/null; then
15610         lt_cv_prog_compiler_static_works_CXX=yes
15611       fi
15612     else
15613       lt_cv_prog_compiler_static_works_CXX=yes
15614     fi
15615   fi
15616   $RM -r conftest*
15617   LDFLAGS="$save_LDFLAGS"
15618
15619fi
15620{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15621$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15622
15623if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15624    :
15625else
15626    lt_prog_compiler_static_CXX=
15627fi
15628
15629
15630
15631
15632    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15633$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15634if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15635  $as_echo_n "(cached) " >&6
15636else
15637  lt_cv_prog_compiler_c_o_CXX=no
15638   $RM -r conftest 2>/dev/null
15639   mkdir conftest
15640   cd conftest
15641   mkdir out
15642   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15643
15644   lt_compiler_flag="-o out/conftest2.$ac_objext"
15645   # Insert the option either (1) after the last *FLAGS variable, or
15646   # (2) before a word containing "conftest.", or (3) at the end.
15647   # Note that $ac_compile itself does not contain backslashes and begins
15648   # with a dollar sign (not a hyphen), so the echo should work correctly.
15649   lt_compile=`echo "$ac_compile" | $SED \
15650   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15651   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15652   -e 's:$: $lt_compiler_flag:'`
15653   (eval echo "\"\$as_me:15653: $lt_compile\"" >&5)
15654   (eval "$lt_compile" 2>out/conftest.err)
15655   ac_status=$?
15656   cat out/conftest.err >&5
15657   echo "$as_me:15657: \$? = $ac_status" >&5
15658   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15659   then
15660     # The compiler can only warn and ignore the option if not recognized
15661     # So say no if there are warnings
15662     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15663     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15664     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15665       lt_cv_prog_compiler_c_o_CXX=yes
15666     fi
15667   fi
15668   chmod u+w . 2>&5
15669   $RM conftest*
15670   # SGI C++ compiler will create directory out/ii_files/ for
15671   # template instantiation
15672   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15673   $RM out/* && rmdir out
15674   cd ..
15675   $RM -r conftest
15676   $RM conftest*
15677
15678fi
15679{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15680$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15681
15682
15683
15684    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15685$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15686if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15687  $as_echo_n "(cached) " >&6
15688else
15689  lt_cv_prog_compiler_c_o_CXX=no
15690   $RM -r conftest 2>/dev/null
15691   mkdir conftest
15692   cd conftest
15693   mkdir out
15694   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15695
15696   lt_compiler_flag="-o out/conftest2.$ac_objext"
15697   # Insert the option either (1) after the last *FLAGS variable, or
15698   # (2) before a word containing "conftest.", or (3) at the end.
15699   # Note that $ac_compile itself does not contain backslashes and begins
15700   # with a dollar sign (not a hyphen), so the echo should work correctly.
15701   lt_compile=`echo "$ac_compile" | $SED \
15702   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15703   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15704   -e 's:$: $lt_compiler_flag:'`
15705   (eval echo "\"\$as_me:15705: $lt_compile\"" >&5)
15706   (eval "$lt_compile" 2>out/conftest.err)
15707   ac_status=$?
15708   cat out/conftest.err >&5
15709   echo "$as_me:15709: \$? = $ac_status" >&5
15710   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15711   then
15712     # The compiler can only warn and ignore the option if not recognized
15713     # So say no if there are warnings
15714     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15715     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15716     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15717       lt_cv_prog_compiler_c_o_CXX=yes
15718     fi
15719   fi
15720   chmod u+w . 2>&5
15721   $RM conftest*
15722   # SGI C++ compiler will create directory out/ii_files/ for
15723   # template instantiation
15724   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15725   $RM out/* && rmdir out
15726   cd ..
15727   $RM -r conftest
15728   $RM conftest*
15729
15730fi
15731{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15732$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15733
15734
15735
15736
15737hard_links="nottested"
15738if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15739  # do not overwrite the value of need_locks provided by the user
15740  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15741$as_echo_n "checking if we can lock with hard links... " >&6; }
15742  hard_links=yes
15743  $RM conftest*
15744  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15745  touch conftest.a
15746  ln conftest.a conftest.b 2>&5 || hard_links=no
15747  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15748  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15749$as_echo "$hard_links" >&6; }
15750  if test "$hard_links" = no; then
15751    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15752$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15753    need_locks=warn
15754  fi
15755else
15756  need_locks=no
15757fi
15758
15759
15760
15761    { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15762$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15763
15764  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15765  case $host_os in
15766  aix[4-9]*)
15767    # If we're using GNU nm, then we don't want the "-C" option.
15768    # -C means demangle to AIX nm, but means don't demangle with GNU nm
15769    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15770      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15771    else
15772      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15773    fi
15774    ;;
15775  pw32*)
15776    export_symbols_cmds_CXX="$ltdll_cmds"
15777  ;;
15778  cygwin* | mingw* | cegcc*)
15779    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15780  ;;
15781  *)
15782    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15783  ;;
15784  esac
15785  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15786
15787{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15788$as_echo "$ld_shlibs_CXX" >&6; }
15789test "$ld_shlibs_CXX" = no && can_build_shared=no
15790
15791with_gnu_ld_CXX=$with_gnu_ld
15792
15793
15794
15795
15796
15797
15798#
15799# Do we need to explicitly link libc?
15800#
15801case "x$archive_cmds_need_lc_CXX" in
15802x|xyes)
15803  # Assume -lc should be added
15804  archive_cmds_need_lc_CXX=yes
15805
15806  if test "$enable_shared" = yes && test "$GCC" = yes; then
15807    case $archive_cmds_CXX in
15808    *'~'*)
15809      # FIXME: we may have to deal with multi-command sequences.
15810      ;;
15811    '$CC '*)
15812      # Test whether the compiler implicitly links with -lc since on some
15813      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15814      # to ld, don't add -lc before -lgcc.
15815      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15816$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15817      $RM conftest*
15818      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15819
15820      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15821  (eval $ac_compile) 2>&5
15822  ac_status=$?
15823  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824  (exit $ac_status); } 2>conftest.err; then
15825        soname=conftest
15826        lib=conftest
15827        libobjs=conftest.$ac_objext
15828        deplibs=
15829        wl=$lt_prog_compiler_wl_CXX
15830	pic_flag=$lt_prog_compiler_pic_CXX
15831        compiler_flags=-v
15832        linker_flags=-v
15833        verstring=
15834        output_objdir=.
15835        libname=conftest
15836        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15837        allow_undefined_flag_CXX=
15838        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15839  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15840  ac_status=$?
15841  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842  (exit $ac_status); }
15843        then
15844	  archive_cmds_need_lc_CXX=no
15845        else
15846	  archive_cmds_need_lc_CXX=yes
15847        fi
15848        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15849      else
15850        cat conftest.err 1>&5
15851      fi
15852      $RM conftest*
15853      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15854$as_echo "$archive_cmds_need_lc_CXX" >&6; }
15855      ;;
15856    esac
15857  fi
15858  ;;
15859esac
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924    { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15925$as_echo_n "checking dynamic linker characteristics... " >&6; }
15926
15927library_names_spec=
15928libname_spec='lib$name'
15929soname_spec=
15930shrext_cmds=".so"
15931postinstall_cmds=
15932postuninstall_cmds=
15933finish_cmds=
15934finish_eval=
15935shlibpath_var=
15936shlibpath_overrides_runpath=unknown
15937version_type=none
15938dynamic_linker="$host_os ld.so"
15939sys_lib_dlsearch_path_spec="/lib /usr/lib"
15940need_lib_prefix=unknown
15941hardcode_into_libs=no
15942
15943# when you set need_version to no, make sure it does not cause -set_version
15944# flags to be left without arguments
15945need_version=unknown
15946
15947case $host_os in
15948aix3*)
15949  version_type=linux
15950  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15951  shlibpath_var=LIBPATH
15952
15953  # AIX 3 has no versioning support, so we append a major version to the name.
15954  soname_spec='${libname}${release}${shared_ext}$major'
15955  ;;
15956
15957aix[4-9]*)
15958  version_type=linux
15959  need_lib_prefix=no
15960  need_version=no
15961  hardcode_into_libs=yes
15962  if test "$host_cpu" = ia64; then
15963    # AIX 5 supports IA64
15964    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15965    shlibpath_var=LD_LIBRARY_PATH
15966  else
15967    # With GCC up to 2.95.x, collect2 would create an import file
15968    # for dependence libraries.  The import file would start with
15969    # the line `#! .'.  This would cause the generated library to
15970    # depend on `.', always an invalid library.  This was fixed in
15971    # development snapshots of GCC prior to 3.0.
15972    case $host_os in
15973      aix4 | aix4.[01] | aix4.[01].*)
15974      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15975	   echo ' yes '
15976	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15977	:
15978      else
15979	can_build_shared=no
15980      fi
15981      ;;
15982    esac
15983    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15984    # soname into executable. Probably we can add versioning support to
15985    # collect2, so additional links can be useful in future.
15986    if test "$aix_use_runtimelinking" = yes; then
15987      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15988      # instead of lib<name>.a to let people know that these are not
15989      # typical AIX shared libraries.
15990      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15991    else
15992      # We preserve .a as extension for shared libraries through AIX4.2
15993      # and later when we are not doing run time linking.
15994      library_names_spec='${libname}${release}.a $libname.a'
15995      soname_spec='${libname}${release}${shared_ext}$major'
15996    fi
15997    shlibpath_var=LIBPATH
15998  fi
15999  ;;
16000
16001amigaos*)
16002  case $host_cpu in
16003  powerpc)
16004    # Since July 2007 AmigaOS4 officially supports .so libraries.
16005    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16006    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16007    ;;
16008  m68k)
16009    library_names_spec='$libname.ixlibrary $libname.a'
16010    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16011    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
16012    ;;
16013  esac
16014  ;;
16015
16016beos*)
16017  library_names_spec='${libname}${shared_ext}'
16018  dynamic_linker="$host_os ld.so"
16019  shlibpath_var=LIBRARY_PATH
16020  ;;
16021
16022bsdi[45]*)
16023  version_type=linux
16024  need_version=no
16025  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16026  soname_spec='${libname}${release}${shared_ext}$major'
16027  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16028  shlibpath_var=LD_LIBRARY_PATH
16029  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16030  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16031  # the default ld.so.conf also contains /usr/contrib/lib and
16032  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16033  # libtool to hard-code these into programs
16034  ;;
16035
16036cygwin* | mingw* | pw32* | cegcc*)
16037  version_type=windows
16038  shrext_cmds=".dll"
16039  need_version=no
16040  need_lib_prefix=no
16041
16042  case $GCC,$host_os in
16043  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16044    library_names_spec='$libname.dll.a'
16045    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16046    postinstall_cmds='base_file=`basename \${file}`~
16047      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16048      dldir=$destdir/`dirname \$dlpath`~
16049      test -d \$dldir || mkdir -p \$dldir~
16050      $install_prog $dir/$dlname \$dldir/$dlname~
16051      chmod a+x \$dldir/$dlname~
16052      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16053        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16054      fi'
16055    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16056      dlpath=$dir/\$dldll~
16057       $RM \$dlpath'
16058    shlibpath_overrides_runpath=yes
16059
16060    case $host_os in
16061    cygwin*)
16062      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16063      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16064      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16065      ;;
16066    mingw* | cegcc*)
16067      # MinGW DLLs use traditional 'lib' prefix
16068      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16069      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16070      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16071        # It is most probably a Windows format PATH printed by
16072        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16073        # path with ; separators, and with drive letters. We can handle the
16074        # drive letters (cygwin fileutils understands them), so leave them,
16075        # especially as we might pass files found there to a mingw objdump,
16076        # which wouldn't understand a cygwinified path. Ahh.
16077        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16078      else
16079        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16080      fi
16081      ;;
16082    pw32*)
16083      # pw32 DLLs use 'pw' prefix rather than 'lib'
16084      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16085      ;;
16086    esac
16087    ;;
16088
16089  *)
16090    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16091    ;;
16092  esac
16093  dynamic_linker='Win32 ld.exe'
16094  # FIXME: first we should search . and the directory the executable is in
16095  shlibpath_var=PATH
16096  ;;
16097
16098darwin* | rhapsody*)
16099  dynamic_linker="$host_os dyld"
16100  version_type=darwin
16101  need_lib_prefix=no
16102  need_version=no
16103  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16104  soname_spec='${libname}${release}${major}$shared_ext'
16105  shlibpath_overrides_runpath=yes
16106  shlibpath_var=DYLD_LIBRARY_PATH
16107  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16108
16109  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16110  ;;
16111
16112dgux*)
16113  version_type=linux
16114  need_lib_prefix=no
16115  need_version=no
16116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16117  soname_spec='${libname}${release}${shared_ext}$major'
16118  shlibpath_var=LD_LIBRARY_PATH
16119  ;;
16120
16121freebsd1*)
16122  dynamic_linker=no
16123  ;;
16124
16125freebsd* | dragonfly*)
16126  # DragonFly does not have aout.  When/if they implement a new
16127  # versioning mechanism, adjust this.
16128  if test -x /usr/bin/objformat; then
16129    objformat=`/usr/bin/objformat`
16130  else
16131    case $host_os in
16132    freebsd[123]*) objformat=aout ;;
16133    *) objformat=elf ;;
16134    esac
16135  fi
16136  version_type=freebsd-$objformat
16137  case $version_type in
16138    freebsd-elf*)
16139      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16140      need_version=no
16141      need_lib_prefix=no
16142      ;;
16143    freebsd-*)
16144      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16145      need_version=yes
16146      ;;
16147  esac
16148  shlibpath_var=LD_LIBRARY_PATH
16149  case $host_os in
16150  freebsd2*)
16151    shlibpath_overrides_runpath=yes
16152    ;;
16153  freebsd3.[01]* | freebsdelf3.[01]*)
16154    shlibpath_overrides_runpath=yes
16155    hardcode_into_libs=yes
16156    ;;
16157  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16158  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16159    shlibpath_overrides_runpath=no
16160    hardcode_into_libs=yes
16161    ;;
16162  *) # from 4.6 on, and DragonFly
16163    shlibpath_overrides_runpath=yes
16164    hardcode_into_libs=yes
16165    ;;
16166  esac
16167  ;;
16168
16169gnu*)
16170  version_type=linux
16171  need_lib_prefix=no
16172  need_version=no
16173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16174  soname_spec='${libname}${release}${shared_ext}$major'
16175  shlibpath_var=LD_LIBRARY_PATH
16176  hardcode_into_libs=yes
16177  ;;
16178
16179hpux9* | hpux10* | hpux11*)
16180  # Give a soname corresponding to the major version so that dld.sl refuses to
16181  # link against other versions.
16182  version_type=sunos
16183  need_lib_prefix=no
16184  need_version=no
16185  case $host_cpu in
16186  ia64*)
16187    shrext_cmds='.so'
16188    hardcode_into_libs=yes
16189    dynamic_linker="$host_os dld.so"
16190    shlibpath_var=LD_LIBRARY_PATH
16191    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16192    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16193    soname_spec='${libname}${release}${shared_ext}$major'
16194    if test "X$HPUX_IA64_MODE" = X32; then
16195      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16196    else
16197      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16198    fi
16199    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16200    ;;
16201  hppa*64*)
16202    shrext_cmds='.sl'
16203    hardcode_into_libs=yes
16204    dynamic_linker="$host_os dld.sl"
16205    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16206    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16207    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16208    soname_spec='${libname}${release}${shared_ext}$major'
16209    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16210    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16211    ;;
16212  *)
16213    shrext_cmds='.sl'
16214    dynamic_linker="$host_os dld.sl"
16215    shlibpath_var=SHLIB_PATH
16216    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16217    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16218    soname_spec='${libname}${release}${shared_ext}$major'
16219    ;;
16220  esac
16221  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16222  postinstall_cmds='chmod 555 $lib'
16223  ;;
16224
16225interix[3-9]*)
16226  version_type=linux
16227  need_lib_prefix=no
16228  need_version=no
16229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16230  soname_spec='${libname}${release}${shared_ext}$major'
16231  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16232  shlibpath_var=LD_LIBRARY_PATH
16233  shlibpath_overrides_runpath=no
16234  hardcode_into_libs=yes
16235  ;;
16236
16237irix5* | irix6* | nonstopux*)
16238  case $host_os in
16239    nonstopux*) version_type=nonstopux ;;
16240    *)
16241	if test "$lt_cv_prog_gnu_ld" = yes; then
16242		version_type=linux
16243	else
16244		version_type=irix
16245	fi ;;
16246  esac
16247  need_lib_prefix=no
16248  need_version=no
16249  soname_spec='${libname}${release}${shared_ext}$major'
16250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16251  case $host_os in
16252  irix5* | nonstopux*)
16253    libsuff= shlibsuff=
16254    ;;
16255  *)
16256    case $LD in # libtool.m4 will add one of these switches to LD
16257    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16258      libsuff= shlibsuff= libmagic=32-bit;;
16259    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16260      libsuff=32 shlibsuff=N32 libmagic=N32;;
16261    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16262      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16263    *) libsuff= shlibsuff= libmagic=never-match;;
16264    esac
16265    ;;
16266  esac
16267  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16268  shlibpath_overrides_runpath=no
16269  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16270  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16271  hardcode_into_libs=yes
16272  ;;
16273
16274# No shared lib support for Linux oldld, aout, or coff.
16275linux*oldld* | linux*aout* | linux*coff*)
16276  dynamic_linker=no
16277  ;;
16278
16279# This must be Linux ELF.
16280linux* | k*bsd*-gnu)
16281  version_type=linux
16282  need_lib_prefix=no
16283  need_version=no
16284  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16285  soname_spec='${libname}${release}${shared_ext}$major'
16286  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16287  shlibpath_var=LD_LIBRARY_PATH
16288  shlibpath_overrides_runpath=no
16289  # Some binutils ld are patched to set DT_RUNPATH
16290  save_LDFLAGS=$LDFLAGS
16291  save_libdir=$libdir
16292  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16293       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16294  cat >conftest.$ac_ext <<_ACEOF
16295/* confdefs.h.  */
16296_ACEOF
16297cat confdefs.h >>conftest.$ac_ext
16298cat >>conftest.$ac_ext <<_ACEOF
16299/* end confdefs.h.  */
16300
16301int
16302main ()
16303{
16304
16305  ;
16306  return 0;
16307}
16308_ACEOF
16309rm -f conftest.$ac_objext conftest$ac_exeext
16310if { (ac_try="$ac_link"
16311case "(($ac_try" in
16312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313  *) ac_try_echo=$ac_try;;
16314esac
16315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16316$as_echo "$ac_try_echo") >&5
16317  (eval "$ac_link") 2>conftest.er1
16318  ac_status=$?
16319  grep -v '^ *+' conftest.er1 >conftest.err
16320  rm -f conftest.er1
16321  cat conftest.err >&5
16322  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323  (exit $ac_status); } && {
16324	 test -z "$ac_cxx_werror_flag" ||
16325	 test ! -s conftest.err
16326       } && test -s conftest$ac_exeext && {
16327	 test "$cross_compiling" = yes ||
16328	 $as_test_x conftest$ac_exeext
16329       }; then
16330  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
16331  shlibpath_overrides_runpath=yes
16332fi
16333
16334else
16335  $as_echo "$as_me: failed program was:" >&5
16336sed 's/^/| /' conftest.$ac_ext >&5
16337
16338
16339fi
16340
16341rm -rf conftest.dSYM
16342rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16343      conftest$ac_exeext conftest.$ac_ext
16344  LDFLAGS=$save_LDFLAGS
16345  libdir=$save_libdir
16346
16347  # This implies no fast_install, which is unacceptable.
16348  # Some rework will be needed to allow for fast_install
16349  # before this can be enabled.
16350  hardcode_into_libs=yes
16351
16352  # Add ABI-specific directories to the system library path.
16353  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16354
16355  # Append ld.so.conf contents to the search path
16356  if test -f /etc/ld.so.conf; then
16357    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;/^$/d' | tr '\n' ' '`
16358    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16359  fi
16360
16361  # We used to test for /lib/ld.so.1 and disable shared libraries on
16362  # powerpc, because MkLinux only supported shared libraries with the
16363  # GNU dynamic linker.  Since this was broken with cross compilers,
16364  # most powerpc-linux boxes support dynamic linking these days and
16365  # people can always --disable-shared, the test was removed, and we
16366  # assume the GNU/Linux dynamic linker is in use.
16367  dynamic_linker='GNU/Linux ld.so'
16368  ;;
16369
16370netbsd*)
16371  version_type=sunos
16372  need_lib_prefix=no
16373  need_version=no
16374  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16375    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16376    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16377    dynamic_linker='NetBSD (a.out) ld.so'
16378  else
16379    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16380    soname_spec='${libname}${release}${shared_ext}$major'
16381    dynamic_linker='NetBSD ld.elf_so'
16382  fi
16383  shlibpath_var=LD_LIBRARY_PATH
16384  shlibpath_overrides_runpath=yes
16385  hardcode_into_libs=yes
16386  ;;
16387
16388newsos6)
16389  version_type=linux
16390  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391  shlibpath_var=LD_LIBRARY_PATH
16392  shlibpath_overrides_runpath=yes
16393  ;;
16394
16395*nto* | *qnx*)
16396  version_type=qnx
16397  need_lib_prefix=no
16398  need_version=no
16399  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16400  soname_spec='${libname}${release}${shared_ext}$major'
16401  shlibpath_var=LD_LIBRARY_PATH
16402  shlibpath_overrides_runpath=no
16403  hardcode_into_libs=yes
16404  dynamic_linker='ldqnx.so'
16405  ;;
16406
16407openbsd*)
16408  version_type=sunos
16409  sys_lib_dlsearch_path_spec="/usr/lib"
16410  need_lib_prefix=no
16411  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16412  case $host_os in
16413    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16414    *)				need_version=no  ;;
16415  esac
16416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16417  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16418  shlibpath_var=LD_LIBRARY_PATH
16419  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16420    case $host_os in
16421      openbsd2.[89] | openbsd2.[89].*)
16422	shlibpath_overrides_runpath=no
16423	;;
16424      *)
16425	shlibpath_overrides_runpath=yes
16426	;;
16427      esac
16428  else
16429    shlibpath_overrides_runpath=yes
16430  fi
16431  ;;
16432
16433os2*)
16434  libname_spec='$name'
16435  shrext_cmds=".dll"
16436  need_lib_prefix=no
16437  library_names_spec='$libname${shared_ext} $libname.a'
16438  dynamic_linker='OS/2 ld.exe'
16439  shlibpath_var=LIBPATH
16440  ;;
16441
16442osf3* | osf4* | osf5*)
16443  version_type=osf
16444  need_lib_prefix=no
16445  need_version=no
16446  soname_spec='${libname}${release}${shared_ext}$major'
16447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16448  shlibpath_var=LD_LIBRARY_PATH
16449  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16450  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16451  ;;
16452
16453rdos*)
16454  dynamic_linker=no
16455  ;;
16456
16457solaris*)
16458  version_type=linux
16459  need_lib_prefix=no
16460  need_version=no
16461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16462  soname_spec='${libname}${release}${shared_ext}$major'
16463  shlibpath_var=LD_LIBRARY_PATH
16464  shlibpath_overrides_runpath=yes
16465  hardcode_into_libs=yes
16466  # ldd complains unless libraries are executable
16467  postinstall_cmds='chmod +x $lib'
16468  ;;
16469
16470sunos4*)
16471  version_type=sunos
16472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16473  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16474  shlibpath_var=LD_LIBRARY_PATH
16475  shlibpath_overrides_runpath=yes
16476  if test "$with_gnu_ld" = yes; then
16477    need_lib_prefix=no
16478  fi
16479  need_version=yes
16480  ;;
16481
16482sysv4 | sysv4.3*)
16483  version_type=linux
16484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16485  soname_spec='${libname}${release}${shared_ext}$major'
16486  shlibpath_var=LD_LIBRARY_PATH
16487  case $host_vendor in
16488    sni)
16489      shlibpath_overrides_runpath=no
16490      need_lib_prefix=no
16491      runpath_var=LD_RUN_PATH
16492      ;;
16493    siemens)
16494      need_lib_prefix=no
16495      ;;
16496    motorola)
16497      need_lib_prefix=no
16498      need_version=no
16499      shlibpath_overrides_runpath=no
16500      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16501      ;;
16502  esac
16503  ;;
16504
16505sysv4*MP*)
16506  if test -d /usr/nec ;then
16507    version_type=linux
16508    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16509    soname_spec='$libname${shared_ext}.$major'
16510    shlibpath_var=LD_LIBRARY_PATH
16511  fi
16512  ;;
16513
16514sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16515  version_type=freebsd-elf
16516  need_lib_prefix=no
16517  need_version=no
16518  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16519  soname_spec='${libname}${release}${shared_ext}$major'
16520  shlibpath_var=LD_LIBRARY_PATH
16521  shlibpath_overrides_runpath=yes
16522  hardcode_into_libs=yes
16523  if test "$with_gnu_ld" = yes; then
16524    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16525  else
16526    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16527    case $host_os in
16528      sco3.2v5*)
16529        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16530	;;
16531    esac
16532  fi
16533  sys_lib_dlsearch_path_spec='/usr/lib'
16534  ;;
16535
16536tpf*)
16537  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16538  version_type=linux
16539  need_lib_prefix=no
16540  need_version=no
16541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16542  shlibpath_var=LD_LIBRARY_PATH
16543  shlibpath_overrides_runpath=no
16544  hardcode_into_libs=yes
16545  ;;
16546
16547uts4*)
16548  version_type=linux
16549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16550  soname_spec='${libname}${release}${shared_ext}$major'
16551  shlibpath_var=LD_LIBRARY_PATH
16552  ;;
16553
16554*)
16555  dynamic_linker=no
16556  ;;
16557esac
16558{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16559$as_echo "$dynamic_linker" >&6; }
16560test "$dynamic_linker" = no && can_build_shared=no
16561
16562variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16563if test "$GCC" = yes; then
16564  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16565fi
16566
16567if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16568  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16569fi
16570if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16571  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16572fi
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609    { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16610$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16611hardcode_action_CXX=
16612if test -n "$hardcode_libdir_flag_spec_CXX" ||
16613   test -n "$runpath_var_CXX" ||
16614   test "X$hardcode_automatic_CXX" = "Xyes" ; then
16615
16616  # We can hardcode non-existent directories.
16617  if test "$hardcode_direct_CXX" != no &&
16618     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16619     # have to relink, otherwise we might link with an installed library
16620     # when we should be linking with a yet-to-be-installed one
16621     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16622     test "$hardcode_minus_L_CXX" != no; then
16623    # Linking always hardcodes the temporary library directory.
16624    hardcode_action_CXX=relink
16625  else
16626    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16627    hardcode_action_CXX=immediate
16628  fi
16629else
16630  # We cannot hardcode anything, or else we can only hardcode existing
16631  # directories.
16632  hardcode_action_CXX=unsupported
16633fi
16634{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16635$as_echo "$hardcode_action_CXX" >&6; }
16636
16637if test "$hardcode_action_CXX" = relink ||
16638   test "$inherit_rpath_CXX" = yes; then
16639  # Fast installation is not supported
16640  enable_fast_install=no
16641elif test "$shlibpath_overrides_runpath" = yes ||
16642     test "$enable_shared" = no; then
16643  # Fast installation is not necessary
16644  enable_fast_install=needless
16645fi
16646
16647
16648
16649
16650
16651
16652
16653  fi # test -n "$compiler"
16654
16655  CC=$lt_save_CC
16656  LDCXX=$LD
16657  LD=$lt_save_LD
16658  GCC=$lt_save_GCC
16659  with_gnu_ld=$lt_save_with_gnu_ld
16660  lt_cv_path_LDCXX=$lt_cv_path_LD
16661  lt_cv_path_LD=$lt_save_path_LD
16662  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16663  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16664fi # test "$_lt_caught_CXX_error" != yes
16665
16666ac_ext=c
16667ac_cpp='$CPP $CPPFLAGS'
16668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16670ac_compiler_gnu=$ac_cv_c_compiler_gnu
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684        ac_config_commands="$ac_config_commands libtool"
16685
16686
16687
16688
16689# Only expand once:
16690
16691
16692
16693{ $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
16694$as_echo_n "checking whether the C++ compiler works... " >&6; }
16695if test "${avahi_cv_sys_cxx_works+set}" = set; then
16696  $as_echo_n "(cached) " >&6
16697else
16698
16699    ac_ext=cpp
16700ac_cpp='$CXXCPP $CPPFLAGS'
16701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16704
16705    cat >conftest.$ac_ext <<_ACEOF
16706int main() { return 0; }
16707_ACEOF
16708rm -f conftest.$ac_objext
16709if { (ac_try="$ac_compile"
16710case "(($ac_try" in
16711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712  *) ac_try_echo=$ac_try;;
16713esac
16714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16715$as_echo "$ac_try_echo") >&5
16716  (eval "$ac_compile") 2>conftest.er1
16717  ac_status=$?
16718  grep -v '^ *+' conftest.er1 >conftest.err
16719  rm -f conftest.er1
16720  cat conftest.err >&5
16721  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722  (exit $ac_status); } && {
16723	 test -z "$ac_cxx_werror_flag" ||
16724	 test ! -s conftest.err
16725       } && test -s conftest.$ac_objext; then
16726  avahi_cv_sys_cxx_works=yes
16727else
16728  $as_echo "$as_me: failed program was:" >&5
16729sed 's/^/| /' conftest.$ac_ext >&5
16730
16731	avahi_cv_sys_cxx_works=no
16732fi
16733
16734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16735    ac_ext=c
16736ac_cpp='$CPP $CPPFLAGS'
16737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16739ac_compiler_gnu=$ac_cv_c_compiler_gnu
16740
16741
16742fi
16743{ $as_echo "$as_me:$LINENO: result: $avahi_cv_sys_cxx_works" >&5
16744$as_echo "$avahi_cv_sys_cxx_works" >&6; }
16745 if [ "x$avahi_cv_sys_cxx_works" = "xno" ]; then
16746    { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16748{ { $as_echo "$as_me:$LINENO: error: The C++ compiler does not work
16749See \`config.log' for more details." >&5
16750$as_echo "$as_me: error: The C++ compiler does not work
16751See \`config.log' for more details." >&2;}
16752   { (exit 1); exit 1; }; }; }
16753 fi
16754
16755
16756
16757
16758ac_ext=c
16759ac_cpp='$CPP $CPPFLAGS'
16760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16762ac_compiler_gnu=$ac_cv_c_compiler_gnu
16763
16764acx_pthread_ok=no
16765
16766# We used to check for pthread.h first, but this fails if pthread.h
16767# requires special compiler flags (e.g. on True64 or Sequent).
16768# It gets checked for in the link test anyway.
16769
16770# First of all, check if the user has set any of the PTHREAD_LIBS,
16771# etcetera environment variables, and if threads linking works using
16772# them:
16773if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16774        save_CFLAGS="$CFLAGS"
16775        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16776        save_LIBS="$LIBS"
16777        LIBS="$PTHREAD_LIBS $LIBS"
16778        { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16779$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16780        cat >conftest.$ac_ext <<_ACEOF
16781/* confdefs.h.  */
16782_ACEOF
16783cat confdefs.h >>conftest.$ac_ext
16784cat >>conftest.$ac_ext <<_ACEOF
16785/* end confdefs.h.  */
16786
16787/* Override any GCC internal prototype to avoid an error.
16788   Use char because int might match the return type of a GCC
16789   builtin and then its argument prototype would still apply.  */
16790#ifdef __cplusplus
16791extern "C"
16792#endif
16793char pthread_join ();
16794int
16795main ()
16796{
16797return pthread_join ();
16798  ;
16799  return 0;
16800}
16801_ACEOF
16802rm -f conftest.$ac_objext conftest$ac_exeext
16803if { (ac_try="$ac_link"
16804case "(($ac_try" in
16805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806  *) ac_try_echo=$ac_try;;
16807esac
16808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16809$as_echo "$ac_try_echo") >&5
16810  (eval "$ac_link") 2>conftest.er1
16811  ac_status=$?
16812  grep -v '^ *+' conftest.er1 >conftest.err
16813  rm -f conftest.er1
16814  cat conftest.err >&5
16815  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816  (exit $ac_status); } && {
16817	 test -z "$ac_c_werror_flag" ||
16818	 test ! -s conftest.err
16819       } && test -s conftest$ac_exeext && {
16820	 test "$cross_compiling" = yes ||
16821	 $as_test_x conftest$ac_exeext
16822       }; then
16823  acx_pthread_ok=yes
16824else
16825  $as_echo "$as_me: failed program was:" >&5
16826sed 's/^/| /' conftest.$ac_ext >&5
16827
16828
16829fi
16830
16831rm -rf conftest.dSYM
16832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16833      conftest$ac_exeext conftest.$ac_ext
16834        { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16835$as_echo "$acx_pthread_ok" >&6; }
16836        if test x"$acx_pthread_ok" = xno; then
16837                PTHREAD_LIBS=""
16838                PTHREAD_CFLAGS=""
16839        fi
16840        LIBS="$save_LIBS"
16841        CFLAGS="$save_CFLAGS"
16842fi
16843
16844# We must check for the threads library under a number of different
16845# names; the ordering is very important because some systems
16846# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16847# libraries is broken (non-POSIX).
16848
16849# Create a list of thread flags to try.  Items starting with a "-" are
16850# C compiler flags, and other items are library names, except for "none"
16851# which indicates that we try without any flags at all, and "pthread-config"
16852# which is a program returning the flags for the Pth emulation library.
16853
16854acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16855
16856# The ordering *is* (sometimes) important.  Some notes on the
16857# individual items follow:
16858
16859# pthreads: AIX (must check this before -lpthread)
16860# none: in case threads are in libc; should be tried before -Kthread and
16861#       other compiler flags to prevent continual compiler warnings
16862# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16863# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16864# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16865# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16866# -pthreads: Solaris/gcc
16867# -mthreads: Mingw32/gcc, Lynx/gcc
16868# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16869#      doesn't hurt to check since this sometimes defines pthreads too;
16870#      also defines -D_REENTRANT)
16871#      ... -mt is also the pthreads flag for HP/aCC
16872# pthread: Linux, etcetera
16873# --thread-safe: KAI C++
16874# pthread-config: use pthread-config program (for GNU Pth library)
16875
16876case "${host_cpu}-${host_os}" in
16877        *solaris*)
16878
16879        # On Solaris (at least, for some versions), libc contains stubbed
16880        # (non-functional) versions of the pthreads routines, so link-based
16881        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16882        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16883        # a function called by this macro, so we could check for that, but
16884        # who knows whether they'll stub that too in a future libc.)  So,
16885        # we'll just look for -pthreads and -lpthread first:
16886
16887        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16888        ;;
16889esac
16890
16891if test x"$acx_pthread_ok" = xno; then
16892for flag in $acx_pthread_flags; do
16893
16894        case $flag in
16895                none)
16896                { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
16897$as_echo_n "checking whether pthreads work without any flags... " >&6; }
16898                ;;
16899
16900                -*)
16901                { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
16902$as_echo_n "checking whether pthreads work with $flag... " >&6; }
16903                PTHREAD_CFLAGS="$flag"
16904                ;;
16905
16906		pthread-config)
16907		# Extract the first word of "pthread-config", so it can be a program name with args.
16908set dummy pthread-config; ac_word=$2
16909{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16910$as_echo_n "checking for $ac_word... " >&6; }
16911if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
16912  $as_echo_n "(cached) " >&6
16913else
16914  if test -n "$acx_pthread_config"; then
16915  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16916else
16917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16918for as_dir in $PATH
16919do
16920  IFS=$as_save_IFS
16921  test -z "$as_dir" && as_dir=.
16922  for ac_exec_ext in '' $ac_executable_extensions; do
16923  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16924    ac_cv_prog_acx_pthread_config="yes"
16925    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16926    break 2
16927  fi
16928done
16929done
16930IFS=$as_save_IFS
16931
16932  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16933fi
16934fi
16935acx_pthread_config=$ac_cv_prog_acx_pthread_config
16936if test -n "$acx_pthread_config"; then
16937  { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
16938$as_echo "$acx_pthread_config" >&6; }
16939else
16940  { $as_echo "$as_me:$LINENO: result: no" >&5
16941$as_echo "no" >&6; }
16942fi
16943
16944
16945		if test x"$acx_pthread_config" = xno; then continue; fi
16946		PTHREAD_CFLAGS="`pthread-config --cflags`"
16947		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16948		;;
16949
16950                *)
16951                { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
16952$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16953                PTHREAD_LIBS="-l$flag"
16954                ;;
16955        esac
16956
16957        save_LIBS="$LIBS"
16958        save_CFLAGS="$CFLAGS"
16959        LIBS="$PTHREAD_LIBS $LIBS"
16960        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16961
16962        # Check for various functions.  We must include pthread.h,
16963        # since some functions may be macros.  (On the Sequent, we
16964        # need a special flag -Kthread to make this header compile.)
16965        # We check for pthread_join because it is in -lpthread on IRIX
16966        # while pthread_create is in libc.  We check for pthread_attr_init
16967        # due to DEC craziness with -lpthreads.  We check for
16968        # pthread_cleanup_push because it is one of the few pthread
16969        # functions on Solaris that doesn't have a non-functional libc stub.
16970        # We try pthread_create on general principles.
16971        cat >conftest.$ac_ext <<_ACEOF
16972/* confdefs.h.  */
16973_ACEOF
16974cat confdefs.h >>conftest.$ac_ext
16975cat >>conftest.$ac_ext <<_ACEOF
16976/* end confdefs.h.  */
16977#include <pthread.h>
16978int
16979main ()
16980{
16981pthread_t th; pthread_join(th, 0);
16982                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
16983                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16984  ;
16985  return 0;
16986}
16987_ACEOF
16988rm -f conftest.$ac_objext conftest$ac_exeext
16989if { (ac_try="$ac_link"
16990case "(($ac_try" in
16991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992  *) ac_try_echo=$ac_try;;
16993esac
16994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16995$as_echo "$ac_try_echo") >&5
16996  (eval "$ac_link") 2>conftest.er1
16997  ac_status=$?
16998  grep -v '^ *+' conftest.er1 >conftest.err
16999  rm -f conftest.er1
17000  cat conftest.err >&5
17001  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002  (exit $ac_status); } && {
17003	 test -z "$ac_c_werror_flag" ||
17004	 test ! -s conftest.err
17005       } && test -s conftest$ac_exeext && {
17006	 test "$cross_compiling" = yes ||
17007	 $as_test_x conftest$ac_exeext
17008       }; then
17009  acx_pthread_ok=yes
17010else
17011  $as_echo "$as_me: failed program was:" >&5
17012sed 's/^/| /' conftest.$ac_ext >&5
17013
17014
17015fi
17016
17017rm -rf conftest.dSYM
17018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17019      conftest$ac_exeext conftest.$ac_ext
17020
17021        LIBS="$save_LIBS"
17022        CFLAGS="$save_CFLAGS"
17023
17024        { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
17025$as_echo "$acx_pthread_ok" >&6; }
17026        if test "x$acx_pthread_ok" = xyes; then
17027                break;
17028        fi
17029
17030        PTHREAD_LIBS=""
17031        PTHREAD_CFLAGS=""
17032done
17033fi
17034
17035# Various other checks:
17036if test "x$acx_pthread_ok" = xyes; then
17037        save_LIBS="$LIBS"
17038        LIBS="$PTHREAD_LIBS $LIBS"
17039        save_CFLAGS="$CFLAGS"
17040        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17041
17042        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17043	{ $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
17044$as_echo_n "checking for joinable pthread attribute... " >&6; }
17045	attr_name=unknown
17046	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17047	    cat >conftest.$ac_ext <<_ACEOF
17048/* confdefs.h.  */
17049_ACEOF
17050cat confdefs.h >>conftest.$ac_ext
17051cat >>conftest.$ac_ext <<_ACEOF
17052/* end confdefs.h.  */
17053#include <pthread.h>
17054int
17055main ()
17056{
17057int attr=$attr; return attr;
17058  ;
17059  return 0;
17060}
17061_ACEOF
17062rm -f conftest.$ac_objext conftest$ac_exeext
17063if { (ac_try="$ac_link"
17064case "(($ac_try" in
17065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066  *) ac_try_echo=$ac_try;;
17067esac
17068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17069$as_echo "$ac_try_echo") >&5
17070  (eval "$ac_link") 2>conftest.er1
17071  ac_status=$?
17072  grep -v '^ *+' conftest.er1 >conftest.err
17073  rm -f conftest.er1
17074  cat conftest.err >&5
17075  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076  (exit $ac_status); } && {
17077	 test -z "$ac_c_werror_flag" ||
17078	 test ! -s conftest.err
17079       } && test -s conftest$ac_exeext && {
17080	 test "$cross_compiling" = yes ||
17081	 $as_test_x conftest$ac_exeext
17082       }; then
17083  attr_name=$attr; break
17084else
17085  $as_echo "$as_me: failed program was:" >&5
17086sed 's/^/| /' conftest.$ac_ext >&5
17087
17088
17089fi
17090
17091rm -rf conftest.dSYM
17092rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17093      conftest$ac_exeext conftest.$ac_ext
17094	done
17095        { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
17096$as_echo "$attr_name" >&6; }
17097        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17098
17099cat >>confdefs.h <<_ACEOF
17100#define PTHREAD_CREATE_JOINABLE $attr_name
17101_ACEOF
17102
17103        fi
17104
17105        { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
17106$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17107        flag=no
17108        case "${host_cpu}-${host_os}" in
17109            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
17110            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
17111        esac
17112        { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
17113$as_echo "${flag}" >&6; }
17114        if test "x$flag" != xno; then
17115            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17116        fi
17117
17118        LIBS="$save_LIBS"
17119        CFLAGS="$save_CFLAGS"
17120        # More AIX lossage: must compile with xlc_r or cc_r
17121	if test x"$GCC" != xyes; then
17122          for ac_prog in xlc_r cc_r
17123do
17124  # Extract the first word of "$ac_prog", so it can be a program name with args.
17125set dummy $ac_prog; ac_word=$2
17126{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17127$as_echo_n "checking for $ac_word... " >&6; }
17128if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
17129  $as_echo_n "(cached) " >&6
17130else
17131  if test -n "$PTHREAD_CC"; then
17132  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17133else
17134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17135for as_dir in $PATH
17136do
17137  IFS=$as_save_IFS
17138  test -z "$as_dir" && as_dir=.
17139  for ac_exec_ext in '' $ac_executable_extensions; do
17140  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17141    ac_cv_prog_PTHREAD_CC="$ac_prog"
17142    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17143    break 2
17144  fi
17145done
17146done
17147IFS=$as_save_IFS
17148
17149fi
17150fi
17151PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17152if test -n "$PTHREAD_CC"; then
17153  { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
17154$as_echo "$PTHREAD_CC" >&6; }
17155else
17156  { $as_echo "$as_me:$LINENO: result: no" >&5
17157$as_echo "no" >&6; }
17158fi
17159
17160
17161  test -n "$PTHREAD_CC" && break
17162done
17163test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17164
17165        else
17166          PTHREAD_CC=$CC
17167	fi
17168
17169   # The next part tries to detect GCC inconsistency with -shared on some
17170   # architectures and systems. The problem is that in certain
17171   # configurations, when -shared is specified, GCC "forgets" to
17172   # internally use various flags which are still necessary.
17173
17174   { $as_echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
17175$as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
17176   check_inconsistencies=yes
17177   case "${host_cpu}-${host_os}" in
17178     *-darwin*) check_inconsistencies=no ;;
17179   esac
17180   if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then
17181      { $as_echo "$as_me:$LINENO: result: no" >&5
17182$as_echo "no" >&6; }
17183   else
17184      { $as_echo "$as_me:$LINENO: result: yes" >&5
17185$as_echo "yes" >&6; }
17186
17187      # In order not to create several levels of indentation, we test
17188      # the value of "$ok" until we find out the cure or run out of
17189      # ideas.
17190      ok="no"
17191
17192      #
17193      # Prepare the flags
17194      #
17195      save_CFLAGS="$CFLAGS"
17196      save_LIBS="$LIBS"
17197      save_CC="$CC"
17198      # Try with the flags determined by the earlier checks.
17199      #
17200      # -Wl,-z,defs forces link-time symbol resolution, so that the
17201      # linking checks with -shared actually have any value
17202      #
17203      # FIXME: -fPIC is required for -shared on many architectures,
17204      # so we specify it here, but the right way would probably be to
17205      # properly detect whether it is actually required.
17206      CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
17207      LIBS="$PTHREAD_LIBS $LIBS"
17208      CC="$PTHREAD_CC"
17209
17210      { $as_echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
17211$as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
17212      cat >conftest.$ac_ext <<_ACEOF
17213/* confdefs.h.  */
17214_ACEOF
17215cat confdefs.h >>conftest.$ac_ext
17216cat >>conftest.$ac_ext <<_ACEOF
17217/* end confdefs.h.  */
17218#include <pthread.h>
17219int
17220main ()
17221{
17222pthread_t th; pthread_join(th, 0);
17223         pthread_attr_init(0); pthread_cleanup_push(0, 0);
17224         pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17225  ;
17226  return 0;
17227}
17228_ACEOF
17229rm -f conftest.$ac_objext conftest$ac_exeext
17230if { (ac_try="$ac_link"
17231case "(($ac_try" in
17232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233  *) ac_try_echo=$ac_try;;
17234esac
17235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17236$as_echo "$ac_try_echo") >&5
17237  (eval "$ac_link") 2>conftest.er1
17238  ac_status=$?
17239  grep -v '^ *+' conftest.er1 >conftest.err
17240  rm -f conftest.er1
17241  cat conftest.err >&5
17242  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243  (exit $ac_status); } && {
17244	 test -z "$ac_c_werror_flag" ||
17245	 test ! -s conftest.err
17246       } && test -s conftest$ac_exeext && {
17247	 test "$cross_compiling" = yes ||
17248	 $as_test_x conftest$ac_exeext
17249       }; then
17250  ok=yes
17251else
17252  $as_echo "$as_me: failed program was:" >&5
17253sed 's/^/| /' conftest.$ac_ext >&5
17254
17255
17256fi
17257
17258rm -rf conftest.dSYM
17259rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17260      conftest$ac_exeext conftest.$ac_ext
17261
17262      if test "x$ok" = xyes; then
17263         { $as_echo "$as_me:$LINENO: result: yes" >&5
17264$as_echo "yes" >&6; }
17265      else
17266         { $as_echo "$as_me:$LINENO: result: no" >&5
17267$as_echo "no" >&6; }
17268      fi
17269
17270      #
17271      # Linux gcc on some architectures such as mips/mipsel forgets
17272      # about -lpthread
17273      #
17274      if test x"$ok" = xno; then
17275         { $as_echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
17276$as_echo_n "checking whether -lpthread fixes that... " >&6; }
17277         LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
17278         cat >conftest.$ac_ext <<_ACEOF
17279/* confdefs.h.  */
17280_ACEOF
17281cat confdefs.h >>conftest.$ac_ext
17282cat >>conftest.$ac_ext <<_ACEOF
17283/* end confdefs.h.  */
17284#include <pthread.h>
17285int
17286main ()
17287{
17288pthread_t th; pthread_join(th, 0);
17289            pthread_attr_init(0); pthread_cleanup_push(0, 0);
17290            pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17291  ;
17292  return 0;
17293}
17294_ACEOF
17295rm -f conftest.$ac_objext conftest$ac_exeext
17296if { (ac_try="$ac_link"
17297case "(($ac_try" in
17298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17299  *) ac_try_echo=$ac_try;;
17300esac
17301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17302$as_echo "$ac_try_echo") >&5
17303  (eval "$ac_link") 2>conftest.er1
17304  ac_status=$?
17305  grep -v '^ *+' conftest.er1 >conftest.err
17306  rm -f conftest.er1
17307  cat conftest.err >&5
17308  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309  (exit $ac_status); } && {
17310	 test -z "$ac_c_werror_flag" ||
17311	 test ! -s conftest.err
17312       } && test -s conftest$ac_exeext && {
17313	 test "$cross_compiling" = yes ||
17314	 $as_test_x conftest$ac_exeext
17315       }; then
17316  ok=yes
17317else
17318  $as_echo "$as_me: failed program was:" >&5
17319sed 's/^/| /' conftest.$ac_ext >&5
17320
17321
17322fi
17323
17324rm -rf conftest.dSYM
17325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17326      conftest$ac_exeext conftest.$ac_ext
17327
17328         if test "x$ok" = xyes; then
17329            { $as_echo "$as_me:$LINENO: result: yes" >&5
17330$as_echo "yes" >&6; }
17331            PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
17332         else
17333            { $as_echo "$as_me:$LINENO: result: no" >&5
17334$as_echo "no" >&6; }
17335         fi
17336      fi
17337      #
17338      # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
17339      #
17340      if test x"$ok" = xno; then
17341         { $as_echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
17342$as_echo_n "checking whether -lc_r fixes that... " >&6; }
17343         LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
17344         cat >conftest.$ac_ext <<_ACEOF
17345/* confdefs.h.  */
17346_ACEOF
17347cat confdefs.h >>conftest.$ac_ext
17348cat >>conftest.$ac_ext <<_ACEOF
17349/* end confdefs.h.  */
17350#include <pthread.h>
17351int
17352main ()
17353{
17354pthread_t th; pthread_join(th, 0);
17355              pthread_attr_init(0); pthread_cleanup_push(0, 0);
17356              pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17357  ;
17358  return 0;
17359}
17360_ACEOF
17361rm -f conftest.$ac_objext conftest$ac_exeext
17362if { (ac_try="$ac_link"
17363case "(($ac_try" in
17364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365  *) ac_try_echo=$ac_try;;
17366esac
17367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17368$as_echo "$ac_try_echo") >&5
17369  (eval "$ac_link") 2>conftest.er1
17370  ac_status=$?
17371  grep -v '^ *+' conftest.er1 >conftest.err
17372  rm -f conftest.er1
17373  cat conftest.err >&5
17374  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375  (exit $ac_status); } && {
17376	 test -z "$ac_c_werror_flag" ||
17377	 test ! -s conftest.err
17378       } && test -s conftest$ac_exeext && {
17379	 test "$cross_compiling" = yes ||
17380	 $as_test_x conftest$ac_exeext
17381       }; then
17382  ok=yes
17383else
17384  $as_echo "$as_me: failed program was:" >&5
17385sed 's/^/| /' conftest.$ac_ext >&5
17386
17387
17388fi
17389
17390rm -rf conftest.dSYM
17391rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17392      conftest$ac_exeext conftest.$ac_ext
17393
17394         if test "x$ok" = xyes; then
17395            { $as_echo "$as_me:$LINENO: result: yes" >&5
17396$as_echo "yes" >&6; }
17397            PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
17398         else
17399            { $as_echo "$as_me:$LINENO: result: no" >&5
17400$as_echo "no" >&6; }
17401         fi
17402      fi
17403      if test x"$ok" = xno; then
17404         # OK, we have run out of ideas
17405         { $as_echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
17406$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
17407
17408         # so it's not safe to assume that we may use pthreads
17409         acx_pthread_ok=no
17410      fi
17411
17412      CFLAGS="$save_CFLAGS"
17413      LIBS="$save_LIBS"
17414      CC="$save_CC"
17415   fi
17416else
17417        PTHREAD_CC="$CC"
17418fi
17419
17420
17421
17422
17423
17424# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17425if test x"$acx_pthread_ok" = xyes; then
17426
17427cat >>confdefs.h <<\_ACEOF
17428#define HAVE_PTHREAD 1
17429_ACEOF
17430
17431        :
17432else
17433        acx_pthread_ok=no
17434        { { $as_echo "$as_me:$LINENO: error: Missing POSIX Threads support" >&5
17435$as_echo "$as_me: error: Missing POSIX Threads support" >&2;}
17436   { (exit 1); exit 1; }; }
17437fi
17438ac_ext=c
17439ac_cpp='$CPP $CPPFLAGS'
17440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17442ac_compiler_gnu=$ac_cv_c_compiler_gnu
17443
17444
17445
17446#
17447# Check for netlink.h
17448#
17449{ $as_echo "$as_me:$LINENO: checking for linux/netlink.h" >&5
17450$as_echo_n "checking for linux/netlink.h... " >&6; }
17451if test "${ac_cv_header_linux_netlink_h+set}" = set; then
17452  $as_echo_n "(cached) " >&6
17453else
17454  cat >conftest.$ac_ext <<_ACEOF
17455/* confdefs.h.  */
17456_ACEOF
17457cat confdefs.h >>conftest.$ac_ext
17458cat >>conftest.$ac_ext <<_ACEOF
17459/* end confdefs.h.  */
17460
17461#include <sys/socket.h>
17462#include <asm/types.h>
17463
17464
17465#include <linux/netlink.h>
17466_ACEOF
17467rm -f conftest.$ac_objext
17468if { (ac_try="$ac_compile"
17469case "(($ac_try" in
17470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471  *) ac_try_echo=$ac_try;;
17472esac
17473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17474$as_echo "$ac_try_echo") >&5
17475  (eval "$ac_compile") 2>conftest.er1
17476  ac_status=$?
17477  grep -v '^ *+' conftest.er1 >conftest.err
17478  rm -f conftest.er1
17479  cat conftest.err >&5
17480  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481  (exit $ac_status); } && {
17482	 test -z "$ac_c_werror_flag" ||
17483	 test ! -s conftest.err
17484       } && test -s conftest.$ac_objext; then
17485  ac_cv_header_linux_netlink_h=yes
17486else
17487  $as_echo "$as_me: failed program was:" >&5
17488sed 's/^/| /' conftest.$ac_ext >&5
17489
17490	ac_cv_header_linux_netlink_h=no
17491fi
17492
17493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17494fi
17495{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_netlink_h" >&5
17496$as_echo "$ac_cv_header_linux_netlink_h" >&6; }
17497if test "x$ac_cv_header_linux_netlink_h" = x""yes; then
17498  HAVE_NETLINK=yes
17499
17500cat >>confdefs.h <<\_ACEOF
17501#define HAVE_NETLINK /**/
17502_ACEOF
17503
17504
17505fi
17506
17507
17508
17509 if  test x"$HAVE_NETLINK" = xyes ; then
17510  HAVE_NETLINK_TRUE=
17511  HAVE_NETLINK_FALSE='#'
17512else
17513  HAVE_NETLINK_TRUE='#'
17514  HAVE_NETLINK_FALSE=
17515fi
17516
17517
17518#
17519# Check for net/route.h
17520#
17521{ $as_echo "$as_me:$LINENO: checking for net/route.h" >&5
17522$as_echo_n "checking for net/route.h... " >&6; }
17523if test "${ac_cv_header_net_route_h+set}" = set; then
17524  $as_echo_n "(cached) " >&6
17525else
17526  cat >conftest.$ac_ext <<_ACEOF
17527/* confdefs.h.  */
17528_ACEOF
17529cat confdefs.h >>conftest.$ac_ext
17530cat >>conftest.$ac_ext <<_ACEOF
17531/* end confdefs.h.  */
17532
17533#include <sys/types.h>
17534#include <sys/socket.h>
17535
17536
17537#include <net/route.h>
17538_ACEOF
17539rm -f conftest.$ac_objext
17540if { (ac_try="$ac_compile"
17541case "(($ac_try" in
17542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543  *) ac_try_echo=$ac_try;;
17544esac
17545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17546$as_echo "$ac_try_echo") >&5
17547  (eval "$ac_compile") 2>conftest.er1
17548  ac_status=$?
17549  grep -v '^ *+' conftest.er1 >conftest.err
17550  rm -f conftest.er1
17551  cat conftest.err >&5
17552  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553  (exit $ac_status); } && {
17554	 test -z "$ac_c_werror_flag" ||
17555	 test ! -s conftest.err
17556       } && test -s conftest.$ac_objext; then
17557  ac_cv_header_net_route_h=yes
17558else
17559  $as_echo "$as_me: failed program was:" >&5
17560sed 's/^/| /' conftest.$ac_ext >&5
17561
17562	ac_cv_header_net_route_h=no
17563fi
17564
17565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17566fi
17567{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_net_route_h" >&5
17568$as_echo "$ac_cv_header_net_route_h" >&6; }
17569if test "x$ac_cv_header_net_route_h" = x""yes; then
17570  HAVE_PF_ROUTE=yes
17571
17572cat >>confdefs.h <<\_ACEOF
17573#define HAVE_PF_ROUTE /**/
17574_ACEOF
17575
17576
17577fi
17578
17579
17580
17581 if  test x"$HAVE_PF_ROUTE" = xyes ; then
17582  HAVE_PF_ROUTE_TRUE=
17583  HAVE_PF_ROUTE_FALSE='#'
17584else
17585  HAVE_PF_ROUTE_TRUE='#'
17586  HAVE_PF_ROUTE_FALSE=
17587fi
17588
17589
17590#
17591# Check for sys/filio.h; needed for FIONREAD on Solaris
17592#
17593{ $as_echo "$as_me:$LINENO: checking for sys/filio.h" >&5
17594$as_echo_n "checking for sys/filio.h... " >&6; }
17595if test "${ac_cv_header_sys_filio_h+set}" = set; then
17596  $as_echo_n "(cached) " >&6
17597else
17598  cat >conftest.$ac_ext <<_ACEOF
17599/* confdefs.h.  */
17600_ACEOF
17601cat confdefs.h >>conftest.$ac_ext
17602cat >>conftest.$ac_ext <<_ACEOF
17603/* end confdefs.h.  */
17604
17605
17606
17607#include <sys/filio.h>
17608_ACEOF
17609rm -f conftest.$ac_objext
17610if { (ac_try="$ac_compile"
17611case "(($ac_try" in
17612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613  *) ac_try_echo=$ac_try;;
17614esac
17615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17616$as_echo "$ac_try_echo") >&5
17617  (eval "$ac_compile") 2>conftest.er1
17618  ac_status=$?
17619  grep -v '^ *+' conftest.er1 >conftest.err
17620  rm -f conftest.er1
17621  cat conftest.err >&5
17622  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623  (exit $ac_status); } && {
17624	 test -z "$ac_c_werror_flag" ||
17625	 test ! -s conftest.err
17626       } && test -s conftest.$ac_objext; then
17627  ac_cv_header_sys_filio_h=yes
17628else
17629  $as_echo "$as_me: failed program was:" >&5
17630sed 's/^/| /' conftest.$ac_ext >&5
17631
17632	ac_cv_header_sys_filio_h=no
17633fi
17634
17635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17636fi
17637{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
17638$as_echo "$ac_cv_header_sys_filio_h" >&6; }
17639if test "x$ac_cv_header_sys_filio_h" = x""yes; then
17640  HAVE_SYS_FILIO_H=yes
17641
17642cat >>confdefs.h <<\_ACEOF
17643#define HAVE_SYS_FILIO_H /**/
17644_ACEOF
17645
17646
17647fi
17648
17649
17650
17651 if  test x"$HAVE_SYS_FILIO_H" = xyes ; then
17652  HAVE_SYS_FILIO_H_TRUE=
17653  HAVE_SYS_FILIO_H_FALSE='#'
17654else
17655  HAVE_SYS_FILIO_H_TRUE='#'
17656  HAVE_SYS_FILIO_H_FALSE=
17657fi
17658
17659
17660#
17661# Check for sys/sysctl.h; not present on Solaris
17662#
17663{ $as_echo "$as_me:$LINENO: checking for sys/sysctl.h" >&5
17664$as_echo_n "checking for sys/sysctl.h... " >&6; }
17665if test "${ac_cv_header_sys_sysctl_h+set}" = set; then
17666  $as_echo_n "(cached) " >&6
17667else
17668  cat >conftest.$ac_ext <<_ACEOF
17669/* confdefs.h.  */
17670_ACEOF
17671cat confdefs.h >>conftest.$ac_ext
17672cat >>conftest.$ac_ext <<_ACEOF
17673/* end confdefs.h.  */
17674
17675#include <sys/types.h>
17676#include <sys/socket.h>
17677#include <sys/param.h>
17678
17679
17680#include <sys/sysctl.h>
17681_ACEOF
17682rm -f conftest.$ac_objext
17683if { (ac_try="$ac_compile"
17684case "(($ac_try" in
17685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686  *) ac_try_echo=$ac_try;;
17687esac
17688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17689$as_echo "$ac_try_echo") >&5
17690  (eval "$ac_compile") 2>conftest.er1
17691  ac_status=$?
17692  grep -v '^ *+' conftest.er1 >conftest.err
17693  rm -f conftest.er1
17694  cat conftest.err >&5
17695  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696  (exit $ac_status); } && {
17697	 test -z "$ac_c_werror_flag" ||
17698	 test ! -s conftest.err
17699       } && test -s conftest.$ac_objext; then
17700  ac_cv_header_sys_sysctl_h=yes
17701else
17702  $as_echo "$as_me: failed program was:" >&5
17703sed 's/^/| /' conftest.$ac_ext >&5
17704
17705	ac_cv_header_sys_sysctl_h=no
17706fi
17707
17708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17709fi
17710{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysctl_h" >&5
17711$as_echo "$ac_cv_header_sys_sysctl_h" >&6; }
17712if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then
17713  HAVE_SYS_SYSCTL=yes
17714
17715cat >>confdefs.h <<\_ACEOF
17716#define HAVE_SYS_SYSCTL_H /**/
17717_ACEOF
17718
17719
17720fi
17721
17722
17723
17724 if  test x"$HAVE_SYS_SYSCTL_H" = xyes ; then
17725  HAVE_SYS_SYSCTL_H_TRUE=
17726  HAVE_SYS_SYSCTL_H_FALSE='#'
17727else
17728  HAVE_SYS_SYSCTL_H_TRUE='#'
17729  HAVE_SYS_SYSCTL_H_FALSE=
17730fi
17731
17732
17733#
17734# Check for lifconf struct; only present on Solaris
17735#
17736{ $as_echo "$as_me:$LINENO: checking for struct lifconf" >&5
17737$as_echo_n "checking for struct lifconf... " >&6; }
17738if test "${avahi_cv_has_struct_lifconf+set}" = set; then
17739  $as_echo_n "(cached) " >&6
17740else
17741  cat >conftest.$ac_ext <<_ACEOF
17742/* confdefs.h.  */
17743_ACEOF
17744cat confdefs.h >>conftest.$ac_ext
17745cat >>conftest.$ac_ext <<_ACEOF
17746/* end confdefs.h.  */
17747#include <sys/socket.h>
17748#include <net/if.h>
17749
17750int
17751main ()
17752{
17753sizeof (struct lifconf);
17754  ;
17755  return 0;
17756}
17757_ACEOF
17758rm -f conftest.$ac_objext
17759if { (ac_try="$ac_compile"
17760case "(($ac_try" in
17761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762  *) ac_try_echo=$ac_try;;
17763esac
17764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17765$as_echo "$ac_try_echo") >&5
17766  (eval "$ac_compile") 2>conftest.er1
17767  ac_status=$?
17768  grep -v '^ *+' conftest.er1 >conftest.err
17769  rm -f conftest.er1
17770  cat conftest.err >&5
17771  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772  (exit $ac_status); } && {
17773	 test -z "$ac_c_werror_flag" ||
17774	 test ! -s conftest.err
17775       } && test -s conftest.$ac_objext; then
17776  avahi_cv_has_struct_lifconf=yes
17777else
17778  $as_echo "$as_me: failed program was:" >&5
17779sed 's/^/| /' conftest.$ac_ext >&5
17780
17781	avahi_cv_has_struct_lifconf=no
17782fi
17783
17784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17785fi
17786
17787{ $as_echo "$as_me:$LINENO: result: $avahi_cv_has_struct_lifconf" >&5
17788$as_echo "$avahi_cv_has_struct_lifconf" >&6; }
17789if test $avahi_cv_has_struct_lifconf = yes; then
17790
17791cat >>confdefs.h <<\_ACEOF
17792#define HAVE_STRUCT_LIFCONF 1
17793_ACEOF
17794
17795fi
17796
17797#
17798# Check for struct ip_mreqn
17799#
17800{ $as_echo "$as_me:$LINENO: checking for struct ip_mreqn" >&5
17801$as_echo_n "checking for struct ip_mreqn... " >&6; }
17802cat >conftest.$ac_ext <<_ACEOF
17803/* confdefs.h.  */
17804_ACEOF
17805cat confdefs.h >>conftest.$ac_ext
17806cat >>conftest.$ac_ext <<_ACEOF
17807/* end confdefs.h.  */
17808#include <netinet/in.h>
17809int
17810main ()
17811{
17812
17813	struct ip_mreqn mreq;
17814	mreq.imr_address.s_addr = 0;
17815
17816  ;
17817  return 0;
17818}
17819_ACEOF
17820rm -f conftest.$ac_objext
17821if { (ac_try="$ac_compile"
17822case "(($ac_try" in
17823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824  *) ac_try_echo=$ac_try;;
17825esac
17826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17827$as_echo "$ac_try_echo") >&5
17828  (eval "$ac_compile") 2>conftest.er1
17829  ac_status=$?
17830  grep -v '^ *+' conftest.er1 >conftest.err
17831  rm -f conftest.er1
17832  cat conftest.err >&5
17833  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834  (exit $ac_status); } && {
17835	 test -z "$ac_c_werror_flag" ||
17836	 test ! -s conftest.err
17837       } && test -s conftest.$ac_objext; then
17838
17839	# Yes, we have it...
17840	{ $as_echo "$as_me:$LINENO: result: yes" >&5
17841$as_echo "yes" >&6; }
17842
17843cat >>confdefs.h <<\_ACEOF
17844#define HAVE_STRUCT_IP_MREQN /**/
17845_ACEOF
17846
17847
17848else
17849  $as_echo "$as_me: failed program was:" >&5
17850sed 's/^/| /' conftest.$ac_ext >&5
17851
17852
17853	# We'll just have to try and use struct ip_mreq
17854	{ $as_echo "$as_me:$LINENO: result: no" >&5
17855$as_echo "no" >&6; }
17856	{ $as_echo "$as_me:$LINENO: checking for struct ip_mreq" >&5
17857$as_echo_n "checking for struct ip_mreq... " >&6; }
17858	cat >conftest.$ac_ext <<_ACEOF
17859/* confdefs.h.  */
17860_ACEOF
17861cat confdefs.h >>conftest.$ac_ext
17862cat >>conftest.$ac_ext <<_ACEOF
17863/* end confdefs.h.  */
17864#include <netinet/in.h>
17865int
17866main ()
17867{
17868
17869		struct ip_mreq mreq;
17870		mreq.imr_interface.s_addr = 0;
17871
17872  ;
17873  return 0;
17874}
17875_ACEOF
17876rm -f conftest.$ac_objext
17877if { (ac_try="$ac_compile"
17878case "(($ac_try" in
17879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880  *) ac_try_echo=$ac_try;;
17881esac
17882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17883$as_echo "$ac_try_echo") >&5
17884  (eval "$ac_compile") 2>conftest.er1
17885  ac_status=$?
17886  grep -v '^ *+' conftest.er1 >conftest.err
17887  rm -f conftest.er1
17888  cat conftest.err >&5
17889  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890  (exit $ac_status); } && {
17891	 test -z "$ac_c_werror_flag" ||
17892	 test ! -s conftest.err
17893       } && test -s conftest.$ac_objext; then
17894
17895		# Yes, we have it...
17896		{ $as_echo "$as_me:$LINENO: result: yes" >&5
17897$as_echo "yes" >&6; }
17898
17899cat >>confdefs.h <<\_ACEOF
17900#define HAVE_STRUCT_IP_MREQ /**/
17901_ACEOF
17902
17903
17904else
17905  $as_echo "$as_me: failed program was:" >&5
17906sed 's/^/| /' conftest.$ac_ext >&5
17907
17908
17909		# No multicast support
17910			{ $as_echo "$as_me:$LINENO: result: no" >&5
17911$as_echo "no" >&6; }
17912
17913fi
17914
17915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17916
17917fi
17918
17919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17920
17921#
17922# Detecting the linux distribution for specific things like init scripts.
17923#
17924
17925# Check whether --with-distro was given.
17926if test "${with_distro+set}" = set; then
17927  withval=$with_distro;
17928fi
17929
17930if test "z$with_distro" = "z"; then
17931    if test "$cross_compiling" = yes; then
17932        { $as_echo "$as_me:$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
17933$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;}
17934    else
17935        { $as_echo "$as_me:$LINENO: checking for /etc/lfs-release" >&5
17936$as_echo_n "checking for /etc/lfs-release... " >&6; }
17937if test "${ac_cv_file__etc_lfs_release+set}" = set; then
17938  $as_echo_n "(cached) " >&6
17939else
17940  test "$cross_compiling" = yes &&
17941  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
17942$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
17943   { (exit 1); exit 1; }; }
17944if test -r "/etc/lfs-release"; then
17945  ac_cv_file__etc_lfs_release=yes
17946else
17947  ac_cv_file__etc_lfs_release=no
17948fi
17949fi
17950{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__etc_lfs_release" >&5
17951$as_echo "$ac_cv_file__etc_lfs_release" >&6; }
17952if test "x$ac_cv_file__etc_lfs_release" = x""yes; then
17953  with_distro="lfs"
17954fi
17955
17956        { $as_echo "$as_me:$LINENO: checking for /etc/SuSE-release" >&5
17957$as_echo_n "checking for /etc/SuSE-release... " >&6; }
17958if test "${ac_cv_file__etc_SuSE_release+set}" = set; then
17959  $as_echo_n "(cached) " >&6
17960else
17961  test "$cross_compiling" = yes &&
17962  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
17963$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
17964   { (exit 1); exit 1; }; }
17965if test -r "/etc/SuSE-release"; then
17966  ac_cv_file__etc_SuSE_release=yes
17967else
17968  ac_cv_file__etc_SuSE_release=no
17969fi
17970fi
17971{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__etc_SuSE_release" >&5
17972$as_echo "$ac_cv_file__etc_SuSE_release" >&6; }
17973if test "x$ac_cv_file__etc_SuSE_release" = x""yes; then
17974  with_distro="suse"
17975fi
17976
17977        { $as_echo "$as_me:$LINENO: checking for /etc/gentoo-release" >&5
17978$as_echo_n "checking for /etc/gentoo-release... " >&6; }
17979if test "${ac_cv_file__etc_gentoo_release+set}" = set; then
17980  $as_echo_n "(cached) " >&6
17981else
17982  test "$cross_compiling" = yes &&
17983  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
17984$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
17985   { (exit 1); exit 1; }; }
17986if test -r "/etc/gentoo-release"; then
17987  ac_cv_file__etc_gentoo_release=yes
17988else
17989  ac_cv_file__etc_gentoo_release=no
17990fi
17991fi
17992{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__etc_gentoo_release" >&5
17993$as_echo "$ac_cv_file__etc_gentoo_release" >&6; }
17994if test "x$ac_cv_file__etc_gentoo_release" = x""yes; then
17995  with_distro="gentoo"
17996fi
17997
17998        { $as_echo "$as_me:$LINENO: checking for /etc/arch-release" >&5
17999$as_echo_n "checking for /etc/arch-release... " >&6; }
18000if test "${ac_cv_file__etc_arch_release+set}" = set; then
18001  $as_echo_n "(cached) " >&6
18002else
18003  test "$cross_compiling" = yes &&
18004  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
18005$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
18006   { (exit 1); exit 1; }; }
18007if test -r "/etc/arch-release"; then
18008  ac_cv_file__etc_arch_release=yes
18009else
18010  ac_cv_file__etc_arch_release=no
18011fi
18012fi
18013{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__etc_arch_release" >&5
18014$as_echo "$ac_cv_file__etc_arch_release" >&6; }
18015if test "x$ac_cv_file__etc_arch_release" = x""yes; then
18016  with_distro="archlinux"
18017fi
18018
18019        { $as_echo "$as_me:$LINENO: checking for /etc/debian_version" >&5
18020$as_echo_n "checking for /etc/debian_version... " >&6; }
18021if test "${ac_cv_file__etc_debian_version+set}" = set; then
18022  $as_echo_n "(cached) " >&6
18023else
18024  test "$cross_compiling" = yes &&
18025  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
18026$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
18027   { (exit 1); exit 1; }; }
18028if test -r "/etc/debian_version"; then
18029  ac_cv_file__etc_debian_version=yes
18030else
18031  ac_cv_file__etc_debian_version=no
18032fi
18033fi
18034{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__etc_debian_version" >&5
18035$as_echo "$ac_cv_file__etc_debian_version" >&6; }
18036if test "x$ac_cv_file__etc_debian_version" = x""yes; then
18037  with_distro="debian"
18038fi
18039
18040        { $as_echo "$as_me:$LINENO: checking for /etc/redhat-release" >&5
18041$as_echo_n "checking for /etc/redhat-release... " >&6; }
18042if test "${ac_cv_file__etc_redhat_release+set}" = set; then
18043  $as_echo_n "(cached) " >&6
18044else
18045  test "$cross_compiling" = yes &&
18046  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
18047$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
18048   { (exit 1); exit 1; }; }
18049if test -r "/etc/redhat-release"; then
18050  ac_cv_file__etc_redhat_release=yes
18051else
18052  ac_cv_file__etc_redhat_release=no
18053fi
18054fi
18055{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__etc_redhat_release" >&5
18056$as_echo "$ac_cv_file__etc_redhat_release" >&6; }
18057if test "x$ac_cv_file__etc_redhat_release" = x""yes; then
18058  with_distro="fedora"
18059fi
18060
18061        { $as_echo "$as_me:$LINENO: checking for /etc/mandriva-release" >&5
18062$as_echo_n "checking for /etc/mandriva-release... " >&6; }
18063if test "${ac_cv_file__etc_mandriva_release+set}" = set; then
18064  $as_echo_n "(cached) " >&6
18065else
18066  test "$cross_compiling" = yes &&
18067  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
18068$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
18069   { (exit 1); exit 1; }; }
18070if test -r "/etc/mandriva-release"; then
18071  ac_cv_file__etc_mandriva_release=yes
18072else
18073  ac_cv_file__etc_mandriva_release=no
18074fi
18075fi
18076{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__etc_mandriva_release" >&5
18077$as_echo "$ac_cv_file__etc_mandriva_release" >&6; }
18078if test "x$ac_cv_file__etc_mandriva_release" = x""yes; then
18079  with_distro="mandriva"
18080fi
18081
18082        { $as_echo "$as_me:$LINENO: checking for /etc/slackware-version" >&5
18083$as_echo_n "checking for /etc/slackware-version... " >&6; }
18084if test "${ac_cv_file__etc_slackware_version+set}" = set; then
18085  $as_echo_n "(cached) " >&6
18086else
18087  test "$cross_compiling" = yes &&
18088  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
18089$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
18090   { (exit 1); exit 1; }; }
18091if test -r "/etc/slackware-version"; then
18092  ac_cv_file__etc_slackware_version=yes
18093else
18094  ac_cv_file__etc_slackware_version=no
18095fi
18096fi
18097{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__etc_slackware_version" >&5
18098$as_echo "$ac_cv_file__etc_slackware_version" >&6; }
18099if test "x$ac_cv_file__etc_slackware_version" = x""yes; then
18100  with_distro="slackware"
18101fi
18102
18103    fi
18104    if test "z$with_distro" = "z"; then
18105        with_distro=`uname -s`
18106    fi
18107fi
18108with_distro=`echo ${with_distro} | tr '[:upper:]' '[:lower:]' `
18109
18110case $with_distro in
18111    lfs|debian|gentoo|archlinux|suse|fedora|mandriva|darwin|freebsd|slackware|none)
18112     ;;
18113    netbsd)
18114     { $as_echo "$as_me:$LINENO: WARNING: Your distribution (${with_distro}) is supported but no init script exist yet! (patches welcome)" >&5
18115$as_echo "$as_me: WARNING: Your distribution (${with_distro}) is supported but no init script exist yet! (patches welcome)" >&2;}
18116     ;;
18117    linux)
18118     { { $as_echo "$as_me:$LINENO: 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." >&5
18119$as_echo "$as_me: 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." >&2;}
18120   { (exit 1); exit 1; }; }
18121     ;;
18122    *)
18123     { { $as_echo "$as_me:$LINENO: 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" >&5
18124$as_echo "$as_me: 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" >&2;}
18125   { (exit 1); exit 1; }; }
18126     ;;
18127esac
18128
18129 if test x"$with_distro" = xlfs; then
18130  TARGET_LFS_TRUE=
18131  TARGET_LFS_FALSE='#'
18132else
18133  TARGET_LFS_TRUE='#'
18134  TARGET_LFS_FALSE=
18135fi
18136
18137 if test x"$with_distro" = xsuse; then
18138  TARGET_SUSE_TRUE=
18139  TARGET_SUSE_FALSE='#'
18140else
18141  TARGET_SUSE_TRUE='#'
18142  TARGET_SUSE_FALSE=
18143fi
18144
18145 if test x"$with_distro" = xgentoo; then
18146  TARGET_GENTOO_TRUE=
18147  TARGET_GENTOO_FALSE='#'
18148else
18149  TARGET_GENTOO_TRUE='#'
18150  TARGET_GENTOO_FALSE=
18151fi
18152
18153 if test x"$with_distro" = xdebian; then
18154  TARGET_DEBIAN_TRUE=
18155  TARGET_DEBIAN_FALSE='#'
18156else
18157  TARGET_DEBIAN_TRUE='#'
18158  TARGET_DEBIAN_FALSE=
18159fi
18160
18161 if test x"$with_distro" = xarchlinux; then
18162  TARGET_ARCHLINUX_TRUE=
18163  TARGET_ARCHLINUX_FALSE='#'
18164else
18165  TARGET_ARCHLINUX_TRUE='#'
18166  TARGET_ARCHLINUX_FALSE=
18167fi
18168
18169 if test x"$with_distro" = xfedora; then
18170  TARGET_FEDORA_TRUE=
18171  TARGET_FEDORA_FALSE='#'
18172else
18173  TARGET_FEDORA_TRUE='#'
18174  TARGET_FEDORA_FALSE=
18175fi
18176
18177 if test x"$with_distro" = xmandriva; then
18178  TARGET_MANDRIVA_TRUE=
18179  TARGET_MANDRIVA_FALSE='#'
18180else
18181  TARGET_MANDRIVA_TRUE='#'
18182  TARGET_MANDRIVA_FALSE=
18183fi
18184
18185 if test x"$with_distro" = xdarwin; then
18186  TARGET_DARWIN_TRUE=
18187  TARGET_DARWIN_FALSE='#'
18188else
18189  TARGET_DARWIN_TRUE='#'
18190  TARGET_DARWIN_FALSE=
18191fi
18192
18193 if test x"$with_distro" = xnetbsd; then
18194  TARGET_NETBSD_TRUE=
18195  TARGET_NETBSD_FALSE='#'
18196else
18197  TARGET_NETBSD_TRUE='#'
18198  TARGET_NETBSD_FALSE=
18199fi
18200
18201 if test x"$with_distro" = xfreebsd; then
18202  TARGET_FREEBSD_TRUE=
18203  TARGET_FREEBSD_FALSE='#'
18204else
18205  TARGET_FREEBSD_TRUE='#'
18206  TARGET_FREEBSD_FALSE=
18207fi
18208
18209 if test x"$with_distro" = xslackware; then
18210  TARGET_SLACKWARE_TRUE=
18211  TARGET_SLACKWARE_FALSE='#'
18212else
18213  TARGET_SLACKWARE_TRUE='#'
18214  TARGET_SLACKWARE_FALSE=
18215fi
18216
18217
18218test_gcc_flag() {
18219    cat >conftest.$ac_ext <<_ACEOF
18220int main() {}
18221_ACEOF
18222    $CC -c conftest.c $CFLAGS $@ > /dev/null 2> /dev/null
18223    ret=$?
18224    rm -f conftest.o
18225    return $ret
18226}
18227
18228# If using GCC specify some additional parameters
18229if test "x$GCC" = "xyes" ; then
18230
18231    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 -Winline"
18232
18233    if test "x$HAVE_NETLINK" = "xyes" ; then
18234        # Test whether rtnetlink.h can be included when compiled with -std=c99
18235        # some distributions (e.g. archlinux) have broken headers that dont
18236        # define __u64 with -std=c99
18237        { $as_echo "$as_me:$LINENO: checking checking whether rtnetlink.h can be included with -std=c99" >&5
18238$as_echo_n "checking checking whether rtnetlink.h can be included with -std=c99... " >&6; }
18239        OLDCFLAGS="$CFLAGS"
18240        CFLAGS="-std=c99"
18241        cat >conftest.$ac_ext <<_ACEOF
18242/* confdefs.h.  */
18243_ACEOF
18244cat confdefs.h >>conftest.$ac_ext
18245cat >>conftest.$ac_ext <<_ACEOF
18246/* end confdefs.h.  */
18247#include <linux/rtnetlink.h>
18248int
18249main ()
18250{
18251
18252  ;
18253  return 0;
18254}
18255_ACEOF
18256rm -f conftest.$ac_objext
18257if { (ac_try="$ac_compile"
18258case "(($ac_try" in
18259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260  *) ac_try_echo=$ac_try;;
18261esac
18262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18263$as_echo "$ac_try_echo") >&5
18264  (eval "$ac_compile") 2>conftest.er1
18265  ac_status=$?
18266  grep -v '^ *+' conftest.er1 >conftest.err
18267  rm -f conftest.er1
18268  cat conftest.err >&5
18269  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270  (exit $ac_status); } && {
18271	 test -z "$ac_c_werror_flag" ||
18272	 test ! -s conftest.err
18273       } && test -s conftest.$ac_objext; then
18274  use_stdc99=yes
18275else
18276  $as_echo "$as_me: failed program was:" >&5
18277sed 's/^/| /' conftest.$ac_ext >&5
18278
18279	use_stdc99=no
18280fi
18281
18282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18283
18284        if test x"$use_stdc99" = xyes; then
18285            DESIRED_FLAGS="-std=c99 $DESIRED_FLAGS"
18286            { $as_echo "$as_me:$LINENO: result: yes" >&5
18287$as_echo "yes" >&6; }
18288        else
18289            { $as_echo "$as_me:$LINENO: result: no" >&5
18290$as_echo "no" >&6; }
18291        fi
18292
18293        CFLAGS="$OLDCFLAGS"
18294    else
18295        DESIRED_FLAGS="-std=c99 $DESIRED_FLAGS"
18296    fi
18297
18298    for flag in $DESIRED_FLAGS ; do
18299        { $as_echo "$as_me:$LINENO: checking whether $CC accepts $flag" >&5
18300$as_echo_n "checking whether $CC accepts $flag... " >&6; }
18301        if test_gcc_flag $flag ; then
18302           CFLAGS="$CFLAGS $flag"
18303           { $as_echo "$as_me:$LINENO: result: yes" >&5
18304$as_echo "yes" >&6; }
18305        else
18306           { $as_echo "$as_me:$LINENO: result: no" >&5
18307$as_echo "no" >&6; }
18308        fi
18309    done
18310fi
18311
18312# Checks for header files.
18313{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18314$as_echo_n "checking for ANSI C header files... " >&6; }
18315if test "${ac_cv_header_stdc+set}" = set; then
18316  $as_echo_n "(cached) " >&6
18317else
18318  cat >conftest.$ac_ext <<_ACEOF
18319/* confdefs.h.  */
18320_ACEOF
18321cat confdefs.h >>conftest.$ac_ext
18322cat >>conftest.$ac_ext <<_ACEOF
18323/* end confdefs.h.  */
18324#include <stdlib.h>
18325#include <stdarg.h>
18326#include <string.h>
18327#include <float.h>
18328
18329int
18330main ()
18331{
18332
18333  ;
18334  return 0;
18335}
18336_ACEOF
18337rm -f conftest.$ac_objext
18338if { (ac_try="$ac_compile"
18339case "(($ac_try" in
18340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341  *) ac_try_echo=$ac_try;;
18342esac
18343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18344$as_echo "$ac_try_echo") >&5
18345  (eval "$ac_compile") 2>conftest.er1
18346  ac_status=$?
18347  grep -v '^ *+' conftest.er1 >conftest.err
18348  rm -f conftest.er1
18349  cat conftest.err >&5
18350  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351  (exit $ac_status); } && {
18352	 test -z "$ac_c_werror_flag" ||
18353	 test ! -s conftest.err
18354       } && test -s conftest.$ac_objext; then
18355  ac_cv_header_stdc=yes
18356else
18357  $as_echo "$as_me: failed program was:" >&5
18358sed 's/^/| /' conftest.$ac_ext >&5
18359
18360	ac_cv_header_stdc=no
18361fi
18362
18363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18364
18365if test $ac_cv_header_stdc = yes; then
18366  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18367  cat >conftest.$ac_ext <<_ACEOF
18368/* confdefs.h.  */
18369_ACEOF
18370cat confdefs.h >>conftest.$ac_ext
18371cat >>conftest.$ac_ext <<_ACEOF
18372/* end confdefs.h.  */
18373#include <string.h>
18374
18375_ACEOF
18376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18377  $EGREP "memchr" >/dev/null 2>&1; then
18378  :
18379else
18380  ac_cv_header_stdc=no
18381fi
18382rm -f conftest*
18383
18384fi
18385
18386if test $ac_cv_header_stdc = yes; then
18387  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18388  cat >conftest.$ac_ext <<_ACEOF
18389/* confdefs.h.  */
18390_ACEOF
18391cat confdefs.h >>conftest.$ac_ext
18392cat >>conftest.$ac_ext <<_ACEOF
18393/* end confdefs.h.  */
18394#include <stdlib.h>
18395
18396_ACEOF
18397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18398  $EGREP "free" >/dev/null 2>&1; then
18399  :
18400else
18401  ac_cv_header_stdc=no
18402fi
18403rm -f conftest*
18404
18405fi
18406
18407if test $ac_cv_header_stdc = yes; then
18408  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18409  if test "$cross_compiling" = yes; then
18410  :
18411else
18412  cat >conftest.$ac_ext <<_ACEOF
18413/* confdefs.h.  */
18414_ACEOF
18415cat confdefs.h >>conftest.$ac_ext
18416cat >>conftest.$ac_ext <<_ACEOF
18417/* end confdefs.h.  */
18418#include <ctype.h>
18419#include <stdlib.h>
18420#if ((' ' & 0x0FF) == 0x020)
18421# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18422# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18423#else
18424# define ISLOWER(c) \
18425		   (('a' <= (c) && (c) <= 'i') \
18426		     || ('j' <= (c) && (c) <= 'r') \
18427		     || ('s' <= (c) && (c) <= 'z'))
18428# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18429#endif
18430
18431#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18432int
18433main ()
18434{
18435  int i;
18436  for (i = 0; i < 256; i++)
18437    if (XOR (islower (i), ISLOWER (i))
18438	|| toupper (i) != TOUPPER (i))
18439      return 2;
18440  return 0;
18441}
18442_ACEOF
18443rm -f conftest$ac_exeext
18444if { (ac_try="$ac_link"
18445case "(($ac_try" in
18446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447  *) ac_try_echo=$ac_try;;
18448esac
18449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18450$as_echo "$ac_try_echo") >&5
18451  (eval "$ac_link") 2>&5
18452  ac_status=$?
18453  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18455  { (case "(($ac_try" in
18456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457  *) ac_try_echo=$ac_try;;
18458esac
18459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18460$as_echo "$ac_try_echo") >&5
18461  (eval "$ac_try") 2>&5
18462  ac_status=$?
18463  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464  (exit $ac_status); }; }; then
18465  :
18466else
18467  $as_echo "$as_me: program exited with status $ac_status" >&5
18468$as_echo "$as_me: failed program was:" >&5
18469sed 's/^/| /' conftest.$ac_ext >&5
18470
18471( exit $ac_status )
18472ac_cv_header_stdc=no
18473fi
18474rm -rf conftest.dSYM
18475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18476fi
18477
18478
18479fi
18480fi
18481{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18482$as_echo "$ac_cv_header_stdc" >&6; }
18483if test $ac_cv_header_stdc = yes; then
18484
18485cat >>confdefs.h <<\_ACEOF
18486#define STDC_HEADERS 1
18487_ACEOF
18488
18489fi
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504for 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
18505do
18506as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18508  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18509$as_echo_n "checking for $ac_header... " >&6; }
18510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18511  $as_echo_n "(cached) " >&6
18512fi
18513ac_res=`eval 'as_val=${'$as_ac_Header'}
18514		 $as_echo "$as_val"'`
18515	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18516$as_echo "$ac_res" >&6; }
18517else
18518  # Is the header compilable?
18519{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18520$as_echo_n "checking $ac_header usability... " >&6; }
18521cat >conftest.$ac_ext <<_ACEOF
18522/* confdefs.h.  */
18523_ACEOF
18524cat confdefs.h >>conftest.$ac_ext
18525cat >>conftest.$ac_ext <<_ACEOF
18526/* end confdefs.h.  */
18527$ac_includes_default
18528#include <$ac_header>
18529_ACEOF
18530rm -f conftest.$ac_objext
18531if { (ac_try="$ac_compile"
18532case "(($ac_try" in
18533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534  *) ac_try_echo=$ac_try;;
18535esac
18536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18537$as_echo "$ac_try_echo") >&5
18538  (eval "$ac_compile") 2>conftest.er1
18539  ac_status=$?
18540  grep -v '^ *+' conftest.er1 >conftest.err
18541  rm -f conftest.er1
18542  cat conftest.err >&5
18543  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544  (exit $ac_status); } && {
18545	 test -z "$ac_c_werror_flag" ||
18546	 test ! -s conftest.err
18547       } && test -s conftest.$ac_objext; then
18548  ac_header_compiler=yes
18549else
18550  $as_echo "$as_me: failed program was:" >&5
18551sed 's/^/| /' conftest.$ac_ext >&5
18552
18553	ac_header_compiler=no
18554fi
18555
18556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18557{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18558$as_echo "$ac_header_compiler" >&6; }
18559
18560# Is the header present?
18561{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18562$as_echo_n "checking $ac_header presence... " >&6; }
18563cat >conftest.$ac_ext <<_ACEOF
18564/* confdefs.h.  */
18565_ACEOF
18566cat confdefs.h >>conftest.$ac_ext
18567cat >>conftest.$ac_ext <<_ACEOF
18568/* end confdefs.h.  */
18569#include <$ac_header>
18570_ACEOF
18571if { (ac_try="$ac_cpp conftest.$ac_ext"
18572case "(($ac_try" in
18573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574  *) ac_try_echo=$ac_try;;
18575esac
18576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18577$as_echo "$ac_try_echo") >&5
18578  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18579  ac_status=$?
18580  grep -v '^ *+' conftest.er1 >conftest.err
18581  rm -f conftest.er1
18582  cat conftest.err >&5
18583  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584  (exit $ac_status); } >/dev/null && {
18585	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18586	 test ! -s conftest.err
18587       }; then
18588  ac_header_preproc=yes
18589else
18590  $as_echo "$as_me: failed program was:" >&5
18591sed 's/^/| /' conftest.$ac_ext >&5
18592
18593  ac_header_preproc=no
18594fi
18595
18596rm -f conftest.err conftest.$ac_ext
18597{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18598$as_echo "$ac_header_preproc" >&6; }
18599
18600# So?  What about this header?
18601case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18602  yes:no: )
18603    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18604$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18605    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18606$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18607    ac_header_preproc=yes
18608    ;;
18609  no:yes:* )
18610    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18611$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18612    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18613$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18614    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18615$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18616    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18617$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18618    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18619$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18620    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18621$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18622    ( cat <<\_ASBOX
18623## ----------------------------------------------------------- ##
18624## Report this to avahi (at) lists (dot) freedesktop (dot) org ##
18625## ----------------------------------------------------------- ##
18626_ASBOX
18627     ) | sed "s/^/$as_me: WARNING:     /" >&2
18628    ;;
18629esac
18630{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18631$as_echo_n "checking for $ac_header... " >&6; }
18632if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18633  $as_echo_n "(cached) " >&6
18634else
18635  eval "$as_ac_Header=\$ac_header_preproc"
18636fi
18637ac_res=`eval 'as_val=${'$as_ac_Header'}
18638		 $as_echo "$as_val"'`
18639	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18640$as_echo "$ac_res" >&6; }
18641
18642fi
18643as_val=`eval 'as_val=${'$as_ac_Header'}
18644		 $as_echo "$as_val"'`
18645   if test "x$as_val" = x""yes; then
18646  cat >>confdefs.h <<_ACEOF
18647#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18648_ACEOF
18649
18650fi
18651
18652done
18653
18654{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
18655$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18656if test "${ac_cv_header_stdbool_h+set}" = set; then
18657  $as_echo_n "(cached) " >&6
18658else
18659  cat >conftest.$ac_ext <<_ACEOF
18660/* confdefs.h.  */
18661_ACEOF
18662cat confdefs.h >>conftest.$ac_ext
18663cat >>conftest.$ac_ext <<_ACEOF
18664/* end confdefs.h.  */
18665
18666#include <stdbool.h>
18667#ifndef bool
18668 "error: bool is not defined"
18669#endif
18670#ifndef false
18671 "error: false is not defined"
18672#endif
18673#if false
18674 "error: false is not 0"
18675#endif
18676#ifndef true
18677 "error: true is not defined"
18678#endif
18679#if true != 1
18680 "error: true is not 1"
18681#endif
18682#ifndef __bool_true_false_are_defined
18683 "error: __bool_true_false_are_defined is not defined"
18684#endif
18685
18686	struct s { _Bool s: 1; _Bool t; } s;
18687
18688	char a[true == 1 ? 1 : -1];
18689	char b[false == 0 ? 1 : -1];
18690	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18691	char d[(bool) 0.5 == true ? 1 : -1];
18692	bool e = &s;
18693	char f[(_Bool) 0.0 == false ? 1 : -1];
18694	char g[true];
18695	char h[sizeof (_Bool)];
18696	char i[sizeof s.t];
18697	enum { j = false, k = true, l = false * true, m = true * 256 };
18698	/* The following fails for
18699	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18700	_Bool n[m];
18701	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18702	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18703#	if defined __xlc__ || defined __GNUC__
18704	 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
18705	    reported by James Lemley on 2005-10-05; see
18706	    http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
18707	    This test is not quite right, since xlc is allowed to
18708	    reject this program, as the initializer for xlcbug is
18709	    not one of the forms that C requires support for.
18710	    However, doing the test right would require a runtime
18711	    test, and that would make cross-compilation harder.
18712	    Let us hope that IBM fixes the xlc bug, and also adds
18713	    support for this kind of constant expression.  In the
18714	    meantime, this test will reject xlc, which is OK, since
18715	    our stdbool.h substitute should suffice.  We also test
18716	    this with GCC, where it should work, to detect more
18717	    quickly whether someone messes up the test in the
18718	    future.  */
18719	 char digs[] = "0123456789";
18720	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
18721#	endif
18722	/* Catch a bug in an HP-UX C compiler.  See
18723	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18724	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18725	 */
18726	_Bool q = true;
18727	_Bool *pq = &q;
18728
18729int
18730main ()
18731{
18732
18733	*pq |= q;
18734	*pq |= ! q;
18735	/* Refer to every declared value, to avoid compiler optimizations.  */
18736	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18737		+ !m + !n + !o + !p + !q + !pq);
18738
18739  ;
18740  return 0;
18741}
18742_ACEOF
18743rm -f conftest.$ac_objext
18744if { (ac_try="$ac_compile"
18745case "(($ac_try" in
18746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747  *) ac_try_echo=$ac_try;;
18748esac
18749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18750$as_echo "$ac_try_echo") >&5
18751  (eval "$ac_compile") 2>conftest.er1
18752  ac_status=$?
18753  grep -v '^ *+' conftest.er1 >conftest.err
18754  rm -f conftest.er1
18755  cat conftest.err >&5
18756  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757  (exit $ac_status); } && {
18758	 test -z "$ac_c_werror_flag" ||
18759	 test ! -s conftest.err
18760       } && test -s conftest.$ac_objext; then
18761  ac_cv_header_stdbool_h=yes
18762else
18763  $as_echo "$as_me: failed program was:" >&5
18764sed 's/^/| /' conftest.$ac_ext >&5
18765
18766	ac_cv_header_stdbool_h=no
18767fi
18768
18769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18770fi
18771{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
18772$as_echo "$ac_cv_header_stdbool_h" >&6; }
18773{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5
18774$as_echo_n "checking for _Bool... " >&6; }
18775if test "${ac_cv_type__Bool+set}" = set; then
18776  $as_echo_n "(cached) " >&6
18777else
18778  ac_cv_type__Bool=no
18779cat >conftest.$ac_ext <<_ACEOF
18780/* confdefs.h.  */
18781_ACEOF
18782cat confdefs.h >>conftest.$ac_ext
18783cat >>conftest.$ac_ext <<_ACEOF
18784/* end confdefs.h.  */
18785$ac_includes_default
18786int
18787main ()
18788{
18789if (sizeof (_Bool))
18790       return 0;
18791  ;
18792  return 0;
18793}
18794_ACEOF
18795rm -f conftest.$ac_objext
18796if { (ac_try="$ac_compile"
18797case "(($ac_try" in
18798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799  *) ac_try_echo=$ac_try;;
18800esac
18801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18802$as_echo "$ac_try_echo") >&5
18803  (eval "$ac_compile") 2>conftest.er1
18804  ac_status=$?
18805  grep -v '^ *+' conftest.er1 >conftest.err
18806  rm -f conftest.er1
18807  cat conftest.err >&5
18808  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809  (exit $ac_status); } && {
18810	 test -z "$ac_c_werror_flag" ||
18811	 test ! -s conftest.err
18812       } && test -s conftest.$ac_objext; then
18813  cat >conftest.$ac_ext <<_ACEOF
18814/* confdefs.h.  */
18815_ACEOF
18816cat confdefs.h >>conftest.$ac_ext
18817cat >>conftest.$ac_ext <<_ACEOF
18818/* end confdefs.h.  */
18819$ac_includes_default
18820int
18821main ()
18822{
18823if (sizeof ((_Bool)))
18824	  return 0;
18825  ;
18826  return 0;
18827}
18828_ACEOF
18829rm -f conftest.$ac_objext
18830if { (ac_try="$ac_compile"
18831case "(($ac_try" in
18832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833  *) ac_try_echo=$ac_try;;
18834esac
18835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18836$as_echo "$ac_try_echo") >&5
18837  (eval "$ac_compile") 2>conftest.er1
18838  ac_status=$?
18839  grep -v '^ *+' conftest.er1 >conftest.err
18840  rm -f conftest.er1
18841  cat conftest.err >&5
18842  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843  (exit $ac_status); } && {
18844	 test -z "$ac_c_werror_flag" ||
18845	 test ! -s conftest.err
18846       } && test -s conftest.$ac_objext; then
18847  :
18848else
18849  $as_echo "$as_me: failed program was:" >&5
18850sed 's/^/| /' conftest.$ac_ext >&5
18851
18852	ac_cv_type__Bool=yes
18853fi
18854
18855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18856else
18857  $as_echo "$as_me: failed program was:" >&5
18858sed 's/^/| /' conftest.$ac_ext >&5
18859
18860
18861fi
18862
18863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18864fi
18865{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
18866$as_echo "$ac_cv_type__Bool" >&6; }
18867if test "x$ac_cv_type__Bool" = x""yes; then
18868
18869cat >>confdefs.h <<_ACEOF
18870#define HAVE__BOOL 1
18871_ACEOF
18872
18873
18874fi
18875
18876if test $ac_cv_header_stdbool_h = yes; then
18877
18878cat >>confdefs.h <<\_ACEOF
18879#define HAVE_STDBOOL_H 1
18880_ACEOF
18881
18882fi
18883
18884
18885# Checks for typedefs, structures, and compiler characteristics.
18886{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18887$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18888if test "${ac_cv_c_const+set}" = set; then
18889  $as_echo_n "(cached) " >&6
18890else
18891  cat >conftest.$ac_ext <<_ACEOF
18892/* confdefs.h.  */
18893_ACEOF
18894cat confdefs.h >>conftest.$ac_ext
18895cat >>conftest.$ac_ext <<_ACEOF
18896/* end confdefs.h.  */
18897
18898int
18899main ()
18900{
18901/* FIXME: Include the comments suggested by Paul. */
18902#ifndef __cplusplus
18903  /* Ultrix mips cc rejects this.  */
18904  typedef int charset[2];
18905  const charset cs;
18906  /* SunOS 4.1.1 cc rejects this.  */
18907  char const *const *pcpcc;
18908  char **ppc;
18909  /* NEC SVR4.0.2 mips cc rejects this.  */
18910  struct point {int x, y;};
18911  static struct point const zero = {0,0};
18912  /* AIX XL C 1.02.0.0 rejects this.
18913     It does not let you subtract one const X* pointer from another in
18914     an arm of an if-expression whose if-part is not a constant
18915     expression */
18916  const char *g = "string";
18917  pcpcc = &g + (g ? g-g : 0);
18918  /* HPUX 7.0 cc rejects these. */
18919  ++pcpcc;
18920  ppc = (char**) pcpcc;
18921  pcpcc = (char const *const *) ppc;
18922  { /* SCO 3.2v4 cc rejects this.  */
18923    char *t;
18924    char const *s = 0 ? (char *) 0 : (char const *) 0;
18925
18926    *t++ = 0;
18927    if (s) return 0;
18928  }
18929  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18930    int x[] = {25, 17};
18931    const int *foo = &x[0];
18932    ++foo;
18933  }
18934  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18935    typedef const int *iptr;
18936    iptr p = 0;
18937    ++p;
18938  }
18939  { /* AIX XL C 1.02.0.0 rejects this saying
18940       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18941    struct s { int j; const int *ap[3]; };
18942    struct s *b; b->j = 5;
18943  }
18944  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18945    const int foo = 10;
18946    if (!foo) return 0;
18947  }
18948  return !cs[0] && !zero.x;
18949#endif
18950
18951  ;
18952  return 0;
18953}
18954_ACEOF
18955rm -f conftest.$ac_objext
18956if { (ac_try="$ac_compile"
18957case "(($ac_try" in
18958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959  *) ac_try_echo=$ac_try;;
18960esac
18961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18962$as_echo "$ac_try_echo") >&5
18963  (eval "$ac_compile") 2>conftest.er1
18964  ac_status=$?
18965  grep -v '^ *+' conftest.er1 >conftest.err
18966  rm -f conftest.er1
18967  cat conftest.err >&5
18968  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969  (exit $ac_status); } && {
18970	 test -z "$ac_c_werror_flag" ||
18971	 test ! -s conftest.err
18972       } && test -s conftest.$ac_objext; then
18973  ac_cv_c_const=yes
18974else
18975  $as_echo "$as_me: failed program was:" >&5
18976sed 's/^/| /' conftest.$ac_ext >&5
18977
18978	ac_cv_c_const=no
18979fi
18980
18981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18982fi
18983{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18984$as_echo "$ac_cv_c_const" >&6; }
18985if test $ac_cv_c_const = no; then
18986
18987cat >>confdefs.h <<\_ACEOF
18988#define const /**/
18989_ACEOF
18990
18991fi
18992
18993{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
18994$as_echo_n "checking for size_t... " >&6; }
18995if test "${ac_cv_type_size_t+set}" = set; then
18996  $as_echo_n "(cached) " >&6
18997else
18998  ac_cv_type_size_t=no
18999cat >conftest.$ac_ext <<_ACEOF
19000/* confdefs.h.  */
19001_ACEOF
19002cat confdefs.h >>conftest.$ac_ext
19003cat >>conftest.$ac_ext <<_ACEOF
19004/* end confdefs.h.  */
19005$ac_includes_default
19006int
19007main ()
19008{
19009if (sizeof (size_t))
19010       return 0;
19011  ;
19012  return 0;
19013}
19014_ACEOF
19015rm -f conftest.$ac_objext
19016if { (ac_try="$ac_compile"
19017case "(($ac_try" in
19018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019  *) ac_try_echo=$ac_try;;
19020esac
19021eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19022$as_echo "$ac_try_echo") >&5
19023  (eval "$ac_compile") 2>conftest.er1
19024  ac_status=$?
19025  grep -v '^ *+' conftest.er1 >conftest.err
19026  rm -f conftest.er1
19027  cat conftest.err >&5
19028  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029  (exit $ac_status); } && {
19030	 test -z "$ac_c_werror_flag" ||
19031	 test ! -s conftest.err
19032       } && test -s conftest.$ac_objext; then
19033  cat >conftest.$ac_ext <<_ACEOF
19034/* confdefs.h.  */
19035_ACEOF
19036cat confdefs.h >>conftest.$ac_ext
19037cat >>conftest.$ac_ext <<_ACEOF
19038/* end confdefs.h.  */
19039$ac_includes_default
19040int
19041main ()
19042{
19043if (sizeof ((size_t)))
19044	  return 0;
19045  ;
19046  return 0;
19047}
19048_ACEOF
19049rm -f conftest.$ac_objext
19050if { (ac_try="$ac_compile"
19051case "(($ac_try" in
19052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053  *) ac_try_echo=$ac_try;;
19054esac
19055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19056$as_echo "$ac_try_echo") >&5
19057  (eval "$ac_compile") 2>conftest.er1
19058  ac_status=$?
19059  grep -v '^ *+' conftest.er1 >conftest.err
19060  rm -f conftest.er1
19061  cat conftest.err >&5
19062  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063  (exit $ac_status); } && {
19064	 test -z "$ac_c_werror_flag" ||
19065	 test ! -s conftest.err
19066       } && test -s conftest.$ac_objext; then
19067  :
19068else
19069  $as_echo "$as_me: failed program was:" >&5
19070sed 's/^/| /' conftest.$ac_ext >&5
19071
19072	ac_cv_type_size_t=yes
19073fi
19074
19075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19076else
19077  $as_echo "$as_me: failed program was:" >&5
19078sed 's/^/| /' conftest.$ac_ext >&5
19079
19080
19081fi
19082
19083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19084fi
19085{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19086$as_echo "$ac_cv_type_size_t" >&6; }
19087if test "x$ac_cv_type_size_t" = x""yes; then
19088  :
19089else
19090
19091cat >>confdefs.h <<_ACEOF
19092#define size_t unsigned int
19093_ACEOF
19094
19095fi
19096
19097{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19098$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19099if test "${ac_cv_header_time+set}" = set; then
19100  $as_echo_n "(cached) " >&6
19101else
19102  cat >conftest.$ac_ext <<_ACEOF
19103/* confdefs.h.  */
19104_ACEOF
19105cat confdefs.h >>conftest.$ac_ext
19106cat >>conftest.$ac_ext <<_ACEOF
19107/* end confdefs.h.  */
19108#include <sys/types.h>
19109#include <sys/time.h>
19110#include <time.h>
19111
19112int
19113main ()
19114{
19115if ((struct tm *) 0)
19116return 0;
19117  ;
19118  return 0;
19119}
19120_ACEOF
19121rm -f conftest.$ac_objext
19122if { (ac_try="$ac_compile"
19123case "(($ac_try" in
19124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125  *) ac_try_echo=$ac_try;;
19126esac
19127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19128$as_echo "$ac_try_echo") >&5
19129  (eval "$ac_compile") 2>conftest.er1
19130  ac_status=$?
19131  grep -v '^ *+' conftest.er1 >conftest.err
19132  rm -f conftest.er1
19133  cat conftest.err >&5
19134  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135  (exit $ac_status); } && {
19136	 test -z "$ac_c_werror_flag" ||
19137	 test ! -s conftest.err
19138       } && test -s conftest.$ac_objext; then
19139  ac_cv_header_time=yes
19140else
19141  $as_echo "$as_me: failed program was:" >&5
19142sed 's/^/| /' conftest.$ac_ext >&5
19143
19144	ac_cv_header_time=no
19145fi
19146
19147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19148fi
19149{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19150$as_echo "$ac_cv_header_time" >&6; }
19151if test $ac_cv_header_time = yes; then
19152
19153cat >>confdefs.h <<\_ACEOF
19154#define TIME_WITH_SYS_TIME 1
19155_ACEOF
19156
19157fi
19158
19159{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19160$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
19161if test "${ac_cv_header_sys_wait_h+set}" = set; then
19162  $as_echo_n "(cached) " >&6
19163else
19164  cat >conftest.$ac_ext <<_ACEOF
19165/* confdefs.h.  */
19166_ACEOF
19167cat confdefs.h >>conftest.$ac_ext
19168cat >>conftest.$ac_ext <<_ACEOF
19169/* end confdefs.h.  */
19170#include <sys/types.h>
19171#include <sys/wait.h>
19172#ifndef WEXITSTATUS
19173# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19174#endif
19175#ifndef WIFEXITED
19176# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19177#endif
19178
19179int
19180main ()
19181{
19182  int s;
19183  wait (&s);
19184  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19185  ;
19186  return 0;
19187}
19188_ACEOF
19189rm -f conftest.$ac_objext
19190if { (ac_try="$ac_compile"
19191case "(($ac_try" in
19192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193  *) ac_try_echo=$ac_try;;
19194esac
19195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19196$as_echo "$ac_try_echo") >&5
19197  (eval "$ac_compile") 2>conftest.er1
19198  ac_status=$?
19199  grep -v '^ *+' conftest.er1 >conftest.err
19200  rm -f conftest.er1
19201  cat conftest.err >&5
19202  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203  (exit $ac_status); } && {
19204	 test -z "$ac_c_werror_flag" ||
19205	 test ! -s conftest.err
19206       } && test -s conftest.$ac_objext; then
19207  ac_cv_header_sys_wait_h=yes
19208else
19209  $as_echo "$as_me: failed program was:" >&5
19210sed 's/^/| /' conftest.$ac_ext >&5
19211
19212	ac_cv_header_sys_wait_h=no
19213fi
19214
19215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19216fi
19217{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19218$as_echo "$ac_cv_header_sys_wait_h" >&6; }
19219if test $ac_cv_header_sys_wait_h = yes; then
19220
19221cat >>confdefs.h <<\_ACEOF
19222#define HAVE_SYS_WAIT_H 1
19223_ACEOF
19224
19225fi
19226
19227
19228 # Solaris stuff
19229 { $as_echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
19230$as_echo_n "checking for library containing inet_ntop... " >&6; }
19231if test "${ac_cv_search_inet_ntop+set}" = set; then
19232  $as_echo_n "(cached) " >&6
19233else
19234  ac_func_search_save_LIBS=$LIBS
19235cat >conftest.$ac_ext <<_ACEOF
19236/* confdefs.h.  */
19237_ACEOF
19238cat confdefs.h >>conftest.$ac_ext
19239cat >>conftest.$ac_ext <<_ACEOF
19240/* end confdefs.h.  */
19241
19242/* Override any GCC internal prototype to avoid an error.
19243   Use char because int might match the return type of a GCC
19244   builtin and then its argument prototype would still apply.  */
19245#ifdef __cplusplus
19246extern "C"
19247#endif
19248char inet_ntop ();
19249int
19250main ()
19251{
19252return inet_ntop ();
19253  ;
19254  return 0;
19255}
19256_ACEOF
19257for ac_lib in '' nsl; do
19258  if test -z "$ac_lib"; then
19259    ac_res="none required"
19260  else
19261    ac_res=-l$ac_lib
19262    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19263  fi
19264  rm -f conftest.$ac_objext conftest$ac_exeext
19265if { (ac_try="$ac_link"
19266case "(($ac_try" in
19267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268  *) ac_try_echo=$ac_try;;
19269esac
19270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19271$as_echo "$ac_try_echo") >&5
19272  (eval "$ac_link") 2>conftest.er1
19273  ac_status=$?
19274  grep -v '^ *+' conftest.er1 >conftest.err
19275  rm -f conftest.er1
19276  cat conftest.err >&5
19277  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278  (exit $ac_status); } && {
19279	 test -z "$ac_c_werror_flag" ||
19280	 test ! -s conftest.err
19281       } && test -s conftest$ac_exeext && {
19282	 test "$cross_compiling" = yes ||
19283	 $as_test_x conftest$ac_exeext
19284       }; then
19285  ac_cv_search_inet_ntop=$ac_res
19286else
19287  $as_echo "$as_me: failed program was:" >&5
19288sed 's/^/| /' conftest.$ac_ext >&5
19289
19290
19291fi
19292
19293rm -rf conftest.dSYM
19294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19295      conftest$ac_exeext
19296  if test "${ac_cv_search_inet_ntop+set}" = set; then
19297  break
19298fi
19299done
19300if test "${ac_cv_search_inet_ntop+set}" = set; then
19301  :
19302else
19303  ac_cv_search_inet_ntop=no
19304fi
19305rm conftest.$ac_ext
19306LIBS=$ac_func_search_save_LIBS
19307fi
19308{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
19309$as_echo "$ac_cv_search_inet_ntop" >&6; }
19310ac_res=$ac_cv_search_inet_ntop
19311if test "$ac_res" != no; then
19312  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19313
19314fi
19315
19316 { $as_echo "$as_me:$LINENO: checking for library containing recv" >&5
19317$as_echo_n "checking for library containing recv... " >&6; }
19318if test "${ac_cv_search_recv+set}" = set; then
19319  $as_echo_n "(cached) " >&6
19320else
19321  ac_func_search_save_LIBS=$LIBS
19322cat >conftest.$ac_ext <<_ACEOF
19323/* confdefs.h.  */
19324_ACEOF
19325cat confdefs.h >>conftest.$ac_ext
19326cat >>conftest.$ac_ext <<_ACEOF
19327/* end confdefs.h.  */
19328
19329/* Override any GCC internal prototype to avoid an error.
19330   Use char because int might match the return type of a GCC
19331   builtin and then its argument prototype would still apply.  */
19332#ifdef __cplusplus
19333extern "C"
19334#endif
19335char recv ();
19336int
19337main ()
19338{
19339return recv ();
19340  ;
19341  return 0;
19342}
19343_ACEOF
19344for ac_lib in '' socket; do
19345  if test -z "$ac_lib"; then
19346    ac_res="none required"
19347  else
19348    ac_res=-l$ac_lib
19349    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19350  fi
19351  rm -f conftest.$ac_objext conftest$ac_exeext
19352if { (ac_try="$ac_link"
19353case "(($ac_try" in
19354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355  *) ac_try_echo=$ac_try;;
19356esac
19357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19358$as_echo "$ac_try_echo") >&5
19359  (eval "$ac_link") 2>conftest.er1
19360  ac_status=$?
19361  grep -v '^ *+' conftest.er1 >conftest.err
19362  rm -f conftest.er1
19363  cat conftest.err >&5
19364  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365  (exit $ac_status); } && {
19366	 test -z "$ac_c_werror_flag" ||
19367	 test ! -s conftest.err
19368       } && test -s conftest$ac_exeext && {
19369	 test "$cross_compiling" = yes ||
19370	 $as_test_x conftest$ac_exeext
19371       }; then
19372  ac_cv_search_recv=$ac_res
19373else
19374  $as_echo "$as_me: failed program was:" >&5
19375sed 's/^/| /' conftest.$ac_ext >&5
19376
19377
19378fi
19379
19380rm -rf conftest.dSYM
19381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19382      conftest$ac_exeext
19383  if test "${ac_cv_search_recv+set}" = set; then
19384  break
19385fi
19386done
19387if test "${ac_cv_search_recv+set}" = set; then
19388  :
19389else
19390  ac_cv_search_recv=no
19391fi
19392rm conftest.$ac_ext
19393LIBS=$ac_func_search_save_LIBS
19394fi
19395{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_recv" >&5
19396$as_echo "$ac_cv_search_recv" >&6; }
19397ac_res=$ac_cv_search_recv
19398if test "$ac_res" != no; then
19399  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19400
19401fi
19402
19403 { $as_echo "$as_me:$LINENO: checking whether CMSG_SPACE is declared" >&5
19404$as_echo_n "checking whether CMSG_SPACE is declared... " >&6; }
19405if test "${ac_cv_have_decl_CMSG_SPACE+set}" = set; then
19406  $as_echo_n "(cached) " >&6
19407else
19408  cat >conftest.$ac_ext <<_ACEOF
19409/* confdefs.h.  */
19410_ACEOF
19411cat confdefs.h >>conftest.$ac_ext
19412cat >>conftest.$ac_ext <<_ACEOF
19413/* end confdefs.h.  */
19414$ac_includes_default
19415int
19416main ()
19417{
19418#ifndef CMSG_SPACE
19419  (void) CMSG_SPACE;
19420#endif
19421
19422  ;
19423  return 0;
19424}
19425_ACEOF
19426rm -f conftest.$ac_objext
19427if { (ac_try="$ac_compile"
19428case "(($ac_try" in
19429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430  *) ac_try_echo=$ac_try;;
19431esac
19432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19433$as_echo "$ac_try_echo") >&5
19434  (eval "$ac_compile") 2>conftest.er1
19435  ac_status=$?
19436  grep -v '^ *+' conftest.er1 >conftest.err
19437  rm -f conftest.er1
19438  cat conftest.err >&5
19439  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440  (exit $ac_status); } && {
19441	 test -z "$ac_c_werror_flag" ||
19442	 test ! -s conftest.err
19443       } && test -s conftest.$ac_objext; then
19444  ac_cv_have_decl_CMSG_SPACE=yes
19445else
19446  $as_echo "$as_me: failed program was:" >&5
19447sed 's/^/| /' conftest.$ac_ext >&5
19448
19449	ac_cv_have_decl_CMSG_SPACE=no
19450fi
19451
19452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19453fi
19454{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_CMSG_SPACE" >&5
19455$as_echo "$ac_cv_have_decl_CMSG_SPACE" >&6; }
19456if test "x$ac_cv_have_decl_CMSG_SPACE" = x""yes; then
19457  :
19458else
19459  CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
19460fi
19461
19462
19463# Checks for library functions.
19464{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
19465$as_echo_n "checking for working memcmp... " >&6; }
19466if test "${ac_cv_func_memcmp_working+set}" = set; then
19467  $as_echo_n "(cached) " >&6
19468else
19469  if test "$cross_compiling" = yes; then
19470  ac_cv_func_memcmp_working=no
19471else
19472  cat >conftest.$ac_ext <<_ACEOF
19473/* confdefs.h.  */
19474_ACEOF
19475cat confdefs.h >>conftest.$ac_ext
19476cat >>conftest.$ac_ext <<_ACEOF
19477/* end confdefs.h.  */
19478$ac_includes_default
19479int
19480main ()
19481{
19482
19483  /* Some versions of memcmp are not 8-bit clean.  */
19484  char c0 = '\100', c1 = '\200', c2 = '\201';
19485  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
19486    return 1;
19487
19488  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
19489     or more and with at least one buffer not starting on a 4-byte boundary.
19490     William Lewis provided this test program.   */
19491  {
19492    char foo[21];
19493    char bar[21];
19494    int i;
19495    for (i = 0; i < 4; i++)
19496      {
19497	char *a = foo + i;
19498	char *b = bar + i;
19499	strcpy (a, "--------01111111");
19500	strcpy (b, "--------10000000");
19501	if (memcmp (a, b, 16) >= 0)
19502	  return 1;
19503      }
19504    return 0;
19505  }
19506
19507  ;
19508  return 0;
19509}
19510_ACEOF
19511rm -f conftest$ac_exeext
19512if { (ac_try="$ac_link"
19513case "(($ac_try" in
19514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515  *) ac_try_echo=$ac_try;;
19516esac
19517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19518$as_echo "$ac_try_echo") >&5
19519  (eval "$ac_link") 2>&5
19520  ac_status=$?
19521  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19523  { (case "(($ac_try" in
19524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525  *) ac_try_echo=$ac_try;;
19526esac
19527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19528$as_echo "$ac_try_echo") >&5
19529  (eval "$ac_try") 2>&5
19530  ac_status=$?
19531  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532  (exit $ac_status); }; }; then
19533  ac_cv_func_memcmp_working=yes
19534else
19535  $as_echo "$as_me: program exited with status $ac_status" >&5
19536$as_echo "$as_me: failed program was:" >&5
19537sed 's/^/| /' conftest.$ac_ext >&5
19538
19539( exit $ac_status )
19540ac_cv_func_memcmp_working=no
19541fi
19542rm -rf conftest.dSYM
19543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19544fi
19545
19546
19547fi
19548{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
19549$as_echo "$ac_cv_func_memcmp_working" >&6; }
19550test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
19551  *" memcmp.$ac_objext "* ) ;;
19552  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
19553 ;;
19554esac
19555
19556
19557
19558
19559for ac_header in sys/select.h sys/socket.h
19560do
19561as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19563  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19564$as_echo_n "checking for $ac_header... " >&6; }
19565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19566  $as_echo_n "(cached) " >&6
19567fi
19568ac_res=`eval 'as_val=${'$as_ac_Header'}
19569		 $as_echo "$as_val"'`
19570	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19571$as_echo "$ac_res" >&6; }
19572else
19573  # Is the header compilable?
19574{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19575$as_echo_n "checking $ac_header usability... " >&6; }
19576cat >conftest.$ac_ext <<_ACEOF
19577/* confdefs.h.  */
19578_ACEOF
19579cat confdefs.h >>conftest.$ac_ext
19580cat >>conftest.$ac_ext <<_ACEOF
19581/* end confdefs.h.  */
19582$ac_includes_default
19583#include <$ac_header>
19584_ACEOF
19585rm -f conftest.$ac_objext
19586if { (ac_try="$ac_compile"
19587case "(($ac_try" in
19588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19589  *) ac_try_echo=$ac_try;;
19590esac
19591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19592$as_echo "$ac_try_echo") >&5
19593  (eval "$ac_compile") 2>conftest.er1
19594  ac_status=$?
19595  grep -v '^ *+' conftest.er1 >conftest.err
19596  rm -f conftest.er1
19597  cat conftest.err >&5
19598  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599  (exit $ac_status); } && {
19600	 test -z "$ac_c_werror_flag" ||
19601	 test ! -s conftest.err
19602       } && test -s conftest.$ac_objext; then
19603  ac_header_compiler=yes
19604else
19605  $as_echo "$as_me: failed program was:" >&5
19606sed 's/^/| /' conftest.$ac_ext >&5
19607
19608	ac_header_compiler=no
19609fi
19610
19611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19612{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19613$as_echo "$ac_header_compiler" >&6; }
19614
19615# Is the header present?
19616{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19617$as_echo_n "checking $ac_header presence... " >&6; }
19618cat >conftest.$ac_ext <<_ACEOF
19619/* confdefs.h.  */
19620_ACEOF
19621cat confdefs.h >>conftest.$ac_ext
19622cat >>conftest.$ac_ext <<_ACEOF
19623/* end confdefs.h.  */
19624#include <$ac_header>
19625_ACEOF
19626if { (ac_try="$ac_cpp conftest.$ac_ext"
19627case "(($ac_try" in
19628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629  *) ac_try_echo=$ac_try;;
19630esac
19631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19632$as_echo "$ac_try_echo") >&5
19633  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19634  ac_status=$?
19635  grep -v '^ *+' conftest.er1 >conftest.err
19636  rm -f conftest.er1
19637  cat conftest.err >&5
19638  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639  (exit $ac_status); } >/dev/null && {
19640	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19641	 test ! -s conftest.err
19642       }; then
19643  ac_header_preproc=yes
19644else
19645  $as_echo "$as_me: failed program was:" >&5
19646sed 's/^/| /' conftest.$ac_ext >&5
19647
19648  ac_header_preproc=no
19649fi
19650
19651rm -f conftest.err conftest.$ac_ext
19652{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19653$as_echo "$ac_header_preproc" >&6; }
19654
19655# So?  What about this header?
19656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19657  yes:no: )
19658    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19659$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19660    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19661$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19662    ac_header_preproc=yes
19663    ;;
19664  no:yes:* )
19665    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19666$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19667    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19668$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19669    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19670$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19671    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19672$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19673    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19674$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19675    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19676$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19677    ( cat <<\_ASBOX
19678## ----------------------------------------------------------- ##
19679## Report this to avahi (at) lists (dot) freedesktop (dot) org ##
19680## ----------------------------------------------------------- ##
19681_ASBOX
19682     ) | sed "s/^/$as_me: WARNING:     /" >&2
19683    ;;
19684esac
19685{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19686$as_echo_n "checking for $ac_header... " >&6; }
19687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19688  $as_echo_n "(cached) " >&6
19689else
19690  eval "$as_ac_Header=\$ac_header_preproc"
19691fi
19692ac_res=`eval 'as_val=${'$as_ac_Header'}
19693		 $as_echo "$as_val"'`
19694	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19695$as_echo "$ac_res" >&6; }
19696
19697fi
19698as_val=`eval 'as_val=${'$as_ac_Header'}
19699		 $as_echo "$as_val"'`
19700   if test "x$as_val" = x""yes; then
19701  cat >>confdefs.h <<_ACEOF
19702#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19703_ACEOF
19704
19705fi
19706
19707done
19708
19709{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
19710$as_echo_n "checking types of arguments for select... " >&6; }
19711if test "${ac_cv_func_select_args+set}" = set; then
19712  $as_echo_n "(cached) " >&6
19713else
19714  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
19715 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
19716  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
19717   cat >conftest.$ac_ext <<_ACEOF
19718/* confdefs.h.  */
19719_ACEOF
19720cat confdefs.h >>conftest.$ac_ext
19721cat >>conftest.$ac_ext <<_ACEOF
19722/* end confdefs.h.  */
19723$ac_includes_default
19724#ifdef HAVE_SYS_SELECT_H
19725# include <sys/select.h>
19726#endif
19727#ifdef HAVE_SYS_SOCKET_H
19728# include <sys/socket.h>
19729#endif
19730
19731int
19732main ()
19733{
19734extern int select ($ac_arg1,
19735					    $ac_arg234, $ac_arg234, $ac_arg234,
19736					    $ac_arg5);
19737  ;
19738  return 0;
19739}
19740_ACEOF
19741rm -f conftest.$ac_objext
19742if { (ac_try="$ac_compile"
19743case "(($ac_try" in
19744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745  *) ac_try_echo=$ac_try;;
19746esac
19747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19748$as_echo "$ac_try_echo") >&5
19749  (eval "$ac_compile") 2>conftest.er1
19750  ac_status=$?
19751  grep -v '^ *+' conftest.er1 >conftest.err
19752  rm -f conftest.er1
19753  cat conftest.err >&5
19754  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755  (exit $ac_status); } && {
19756	 test -z "$ac_c_werror_flag" ||
19757	 test ! -s conftest.err
19758       } && test -s conftest.$ac_objext; then
19759  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
19760else
19761  $as_echo "$as_me: failed program was:" >&5
19762sed 's/^/| /' conftest.$ac_ext >&5
19763
19764
19765fi
19766
19767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19768  done
19769 done
19770done
19771# Provide a safe default value.
19772: ${ac_cv_func_select_args='int,int *,struct timeval *'}
19773
19774fi
19775{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
19776$as_echo "$ac_cv_func_select_args" >&6; }
19777ac_save_IFS=$IFS; IFS=','
19778set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
19779IFS=$ac_save_IFS
19780shift
19781
19782cat >>confdefs.h <<_ACEOF
19783#define SELECT_TYPE_ARG1 $1
19784_ACEOF
19785
19786
19787cat >>confdefs.h <<_ACEOF
19788#define SELECT_TYPE_ARG234 ($2)
19789_ACEOF
19790
19791
19792cat >>confdefs.h <<_ACEOF
19793#define SELECT_TYPE_ARG5 ($3)
19794_ACEOF
19795
19796rm -f conftest*
19797
19798# avahi_malloc actually returns NULL for avahi_malloc(0), so it does not matter
19799# whether libc's malloc does too. (Same for realloc.)
19800#AC_FUNC_MALLOC
19801#AC_FUNC_REALLOC
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831for 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
19832do
19833as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19834{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19835$as_echo_n "checking for $ac_func... " >&6; }
19836if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19837  $as_echo_n "(cached) " >&6
19838else
19839  cat >conftest.$ac_ext <<_ACEOF
19840/* confdefs.h.  */
19841_ACEOF
19842cat confdefs.h >>conftest.$ac_ext
19843cat >>conftest.$ac_ext <<_ACEOF
19844/* end confdefs.h.  */
19845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19846   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19847#define $ac_func innocuous_$ac_func
19848
19849/* System header to define __stub macros and hopefully few prototypes,
19850    which can conflict with char $ac_func (); below.
19851    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19852    <limits.h> exists even on freestanding compilers.  */
19853
19854#ifdef __STDC__
19855# include <limits.h>
19856#else
19857# include <assert.h>
19858#endif
19859
19860#undef $ac_func
19861
19862/* Override any GCC internal prototype to avoid an error.
19863   Use char because int might match the return type of a GCC
19864   builtin and then its argument prototype would still apply.  */
19865#ifdef __cplusplus
19866extern "C"
19867#endif
19868char $ac_func ();
19869/* The GNU C library defines this for functions which it implements
19870    to always fail with ENOSYS.  Some functions are actually named
19871    something starting with __ and the normal name is an alias.  */
19872#if defined __stub_$ac_func || defined __stub___$ac_func
19873choke me
19874#endif
19875
19876int
19877main ()
19878{
19879return $ac_func ();
19880  ;
19881  return 0;
19882}
19883_ACEOF
19884rm -f conftest.$ac_objext conftest$ac_exeext
19885if { (ac_try="$ac_link"
19886case "(($ac_try" in
19887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19888  *) ac_try_echo=$ac_try;;
19889esac
19890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19891$as_echo "$ac_try_echo") >&5
19892  (eval "$ac_link") 2>conftest.er1
19893  ac_status=$?
19894  grep -v '^ *+' conftest.er1 >conftest.err
19895  rm -f conftest.er1
19896  cat conftest.err >&5
19897  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898  (exit $ac_status); } && {
19899	 test -z "$ac_c_werror_flag" ||
19900	 test ! -s conftest.err
19901       } && test -s conftest$ac_exeext && {
19902	 test "$cross_compiling" = yes ||
19903	 $as_test_x conftest$ac_exeext
19904       }; then
19905  eval "$as_ac_var=yes"
19906else
19907  $as_echo "$as_me: failed program was:" >&5
19908sed 's/^/| /' conftest.$ac_ext >&5
19909
19910	eval "$as_ac_var=no"
19911fi
19912
19913rm -rf conftest.dSYM
19914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19915      conftest$ac_exeext conftest.$ac_ext
19916fi
19917ac_res=`eval 'as_val=${'$as_ac_var'}
19918		 $as_echo "$as_val"'`
19919	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19920$as_echo "$ac_res" >&6; }
19921as_val=`eval 'as_val=${'$as_ac_var'}
19922		 $as_echo "$as_val"'`
19923   if test "x$as_val" = x""yes; then
19924  cat >>confdefs.h <<_ACEOF
19925#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19926_ACEOF
19927
19928fi
19929done
19930
19931
19932{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19933$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19934if test "${ac_cv_type_uid_t+set}" = set; then
19935  $as_echo_n "(cached) " >&6
19936else
19937  cat >conftest.$ac_ext <<_ACEOF
19938/* confdefs.h.  */
19939_ACEOF
19940cat confdefs.h >>conftest.$ac_ext
19941cat >>conftest.$ac_ext <<_ACEOF
19942/* end confdefs.h.  */
19943#include <sys/types.h>
19944
19945_ACEOF
19946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19947  $EGREP "uid_t" >/dev/null 2>&1; then
19948  ac_cv_type_uid_t=yes
19949else
19950  ac_cv_type_uid_t=no
19951fi
19952rm -f conftest*
19953
19954fi
19955{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19956$as_echo "$ac_cv_type_uid_t" >&6; }
19957if test $ac_cv_type_uid_t = no; then
19958
19959cat >>confdefs.h <<\_ACEOF
19960#define uid_t int
19961_ACEOF
19962
19963
19964cat >>confdefs.h <<\_ACEOF
19965#define gid_t int
19966_ACEOF
19967
19968fi
19969
19970
19971for ac_header in unistd.h
19972do
19973as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19975  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19976$as_echo_n "checking for $ac_header... " >&6; }
19977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19978  $as_echo_n "(cached) " >&6
19979fi
19980ac_res=`eval 'as_val=${'$as_ac_Header'}
19981		 $as_echo "$as_val"'`
19982	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19983$as_echo "$ac_res" >&6; }
19984else
19985  # Is the header compilable?
19986{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19987$as_echo_n "checking $ac_header usability... " >&6; }
19988cat >conftest.$ac_ext <<_ACEOF
19989/* confdefs.h.  */
19990_ACEOF
19991cat confdefs.h >>conftest.$ac_ext
19992cat >>conftest.$ac_ext <<_ACEOF
19993/* end confdefs.h.  */
19994$ac_includes_default
19995#include <$ac_header>
19996_ACEOF
19997rm -f conftest.$ac_objext
19998if { (ac_try="$ac_compile"
19999case "(($ac_try" in
20000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001  *) ac_try_echo=$ac_try;;
20002esac
20003eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20004$as_echo "$ac_try_echo") >&5
20005  (eval "$ac_compile") 2>conftest.er1
20006  ac_status=$?
20007  grep -v '^ *+' conftest.er1 >conftest.err
20008  rm -f conftest.er1
20009  cat conftest.err >&5
20010  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011  (exit $ac_status); } && {
20012	 test -z "$ac_c_werror_flag" ||
20013	 test ! -s conftest.err
20014       } && test -s conftest.$ac_objext; then
20015  ac_header_compiler=yes
20016else
20017  $as_echo "$as_me: failed program was:" >&5
20018sed 's/^/| /' conftest.$ac_ext >&5
20019
20020	ac_header_compiler=no
20021fi
20022
20023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20024{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20025$as_echo "$ac_header_compiler" >&6; }
20026
20027# Is the header present?
20028{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20029$as_echo_n "checking $ac_header presence... " >&6; }
20030cat >conftest.$ac_ext <<_ACEOF
20031/* confdefs.h.  */
20032_ACEOF
20033cat confdefs.h >>conftest.$ac_ext
20034cat >>conftest.$ac_ext <<_ACEOF
20035/* end confdefs.h.  */
20036#include <$ac_header>
20037_ACEOF
20038if { (ac_try="$ac_cpp conftest.$ac_ext"
20039case "(($ac_try" in
20040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20041  *) ac_try_echo=$ac_try;;
20042esac
20043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20044$as_echo "$ac_try_echo") >&5
20045  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20046  ac_status=$?
20047  grep -v '^ *+' conftest.er1 >conftest.err
20048  rm -f conftest.er1
20049  cat conftest.err >&5
20050  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051  (exit $ac_status); } >/dev/null && {
20052	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20053	 test ! -s conftest.err
20054       }; then
20055  ac_header_preproc=yes
20056else
20057  $as_echo "$as_me: failed program was:" >&5
20058sed 's/^/| /' conftest.$ac_ext >&5
20059
20060  ac_header_preproc=no
20061fi
20062
20063rm -f conftest.err conftest.$ac_ext
20064{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20065$as_echo "$ac_header_preproc" >&6; }
20066
20067# So?  What about this header?
20068case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20069  yes:no: )
20070    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20071$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20072    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20073$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20074    ac_header_preproc=yes
20075    ;;
20076  no:yes:* )
20077    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20078$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20079    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20080$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20081    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20082$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20083    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20084$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20085    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20086$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20087    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20088$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20089    ( cat <<\_ASBOX
20090## ----------------------------------------------------------- ##
20091## Report this to avahi (at) lists (dot) freedesktop (dot) org ##
20092## ----------------------------------------------------------- ##
20093_ASBOX
20094     ) | sed "s/^/$as_me: WARNING:     /" >&2
20095    ;;
20096esac
20097{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20098$as_echo_n "checking for $ac_header... " >&6; }
20099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20100  $as_echo_n "(cached) " >&6
20101else
20102  eval "$as_ac_Header=\$ac_header_preproc"
20103fi
20104ac_res=`eval 'as_val=${'$as_ac_Header'}
20105		 $as_echo "$as_val"'`
20106	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20107$as_echo "$ac_res" >&6; }
20108
20109fi
20110as_val=`eval 'as_val=${'$as_ac_Header'}
20111		 $as_echo "$as_val"'`
20112   if test "x$as_val" = x""yes; then
20113  cat >>confdefs.h <<_ACEOF
20114#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20115_ACEOF
20116
20117fi
20118
20119done
20120
20121{ $as_echo "$as_me:$LINENO: checking for working chown" >&5
20122$as_echo_n "checking for working chown... " >&6; }
20123if test "${ac_cv_func_chown_works+set}" = set; then
20124  $as_echo_n "(cached) " >&6
20125else
20126  if test "$cross_compiling" = yes; then
20127  ac_cv_func_chown_works=no
20128else
20129  cat >conftest.$ac_ext <<_ACEOF
20130/* confdefs.h.  */
20131_ACEOF
20132cat confdefs.h >>conftest.$ac_ext
20133cat >>conftest.$ac_ext <<_ACEOF
20134/* end confdefs.h.  */
20135$ac_includes_default
20136#include <fcntl.h>
20137
20138int
20139main ()
20140{
20141  char *f = "conftest.chown";
20142  struct stat before, after;
20143
20144  if (creat (f, 0600) < 0)
20145    return 1;
20146  if (stat (f, &before) < 0)
20147    return 1;
20148  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
20149    return 1;
20150  if (stat (f, &after) < 0)
20151    return 1;
20152  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
20153
20154  ;
20155  return 0;
20156}
20157_ACEOF
20158rm -f conftest$ac_exeext
20159if { (ac_try="$ac_link"
20160case "(($ac_try" in
20161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162  *) ac_try_echo=$ac_try;;
20163esac
20164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20165$as_echo "$ac_try_echo") >&5
20166  (eval "$ac_link") 2>&5
20167  ac_status=$?
20168  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20170  { (case "(($ac_try" in
20171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172  *) ac_try_echo=$ac_try;;
20173esac
20174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20175$as_echo "$ac_try_echo") >&5
20176  (eval "$ac_try") 2>&5
20177  ac_status=$?
20178  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179  (exit $ac_status); }; }; then
20180  ac_cv_func_chown_works=yes
20181else
20182  $as_echo "$as_me: program exited with status $ac_status" >&5
20183$as_echo "$as_me: failed program was:" >&5
20184sed 's/^/| /' conftest.$ac_ext >&5
20185
20186( exit $ac_status )
20187ac_cv_func_chown_works=no
20188fi
20189rm -rf conftest.dSYM
20190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20191fi
20192
20193
20194rm -f conftest.chown
20195
20196fi
20197{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
20198$as_echo "$ac_cv_func_chown_works" >&6; }
20199if test $ac_cv_func_chown_works = yes; then
20200
20201cat >>confdefs.h <<\_ACEOF
20202#define HAVE_CHOWN 1
20203_ACEOF
20204
20205fi
20206
20207{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
20208$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
20209if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
20210  $as_echo_n "(cached) " >&6
20211else
20212  rm -f conftest.sym conftest.file
20213echo >conftest.file
20214if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20215  if test "$cross_compiling" = yes; then
20216  ac_cv_func_lstat_dereferences_slashed_symlink=no
20217else
20218  cat >conftest.$ac_ext <<_ACEOF
20219/* confdefs.h.  */
20220_ACEOF
20221cat confdefs.h >>conftest.$ac_ext
20222cat >>conftest.$ac_ext <<_ACEOF
20223/* end confdefs.h.  */
20224$ac_includes_default
20225int
20226main ()
20227{
20228struct stat sbuf;
20229     /* Linux will dereference the symlink and fail.
20230	That is better in the sense that it means we will not
20231	have to compile and use the lstat wrapper.  */
20232     return lstat ("conftest.sym/", &sbuf) == 0;
20233  ;
20234  return 0;
20235}
20236_ACEOF
20237rm -f conftest$ac_exeext
20238if { (ac_try="$ac_link"
20239case "(($ac_try" in
20240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241  *) ac_try_echo=$ac_try;;
20242esac
20243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20244$as_echo "$ac_try_echo") >&5
20245  (eval "$ac_link") 2>&5
20246  ac_status=$?
20247  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20249  { (case "(($ac_try" in
20250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251  *) ac_try_echo=$ac_try;;
20252esac
20253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20254$as_echo "$ac_try_echo") >&5
20255  (eval "$ac_try") 2>&5
20256  ac_status=$?
20257  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258  (exit $ac_status); }; }; then
20259  ac_cv_func_lstat_dereferences_slashed_symlink=yes
20260else
20261  $as_echo "$as_me: program exited with status $ac_status" >&5
20262$as_echo "$as_me: failed program was:" >&5
20263sed 's/^/| /' conftest.$ac_ext >&5
20264
20265( exit $ac_status )
20266ac_cv_func_lstat_dereferences_slashed_symlink=no
20267fi
20268rm -rf conftest.dSYM
20269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20270fi
20271
20272
20273else
20274  # If the `ln -s' command failed, then we probably don't even
20275  # have an lstat function.
20276  ac_cv_func_lstat_dereferences_slashed_symlink=no
20277fi
20278rm -f conftest.sym conftest.file
20279
20280fi
20281{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20282$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
20283
20284test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20285
20286cat >>confdefs.h <<_ACEOF
20287#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20288_ACEOF
20289
20290
20291if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
20292  case " $LIBOBJS " in
20293  *" lstat.$ac_objext "* ) ;;
20294  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
20295 ;;
20296esac
20297
20298fi
20299
20300{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
20301$as_echo_n "checking whether stat accepts an empty string... " >&6; }
20302if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
20303  $as_echo_n "(cached) " >&6
20304else
20305  if test "$cross_compiling" = yes; then
20306  ac_cv_func_stat_empty_string_bug=yes
20307else
20308  cat >conftest.$ac_ext <<_ACEOF
20309/* confdefs.h.  */
20310_ACEOF
20311cat confdefs.h >>conftest.$ac_ext
20312cat >>conftest.$ac_ext <<_ACEOF
20313/* end confdefs.h.  */
20314$ac_includes_default
20315int
20316main ()
20317{
20318struct stat sbuf;
20319  return stat ("", &sbuf) == 0;
20320  ;
20321  return 0;
20322}
20323_ACEOF
20324rm -f conftest$ac_exeext
20325if { (ac_try="$ac_link"
20326case "(($ac_try" in
20327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328  *) ac_try_echo=$ac_try;;
20329esac
20330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20331$as_echo "$ac_try_echo") >&5
20332  (eval "$ac_link") 2>&5
20333  ac_status=$?
20334  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20336  { (case "(($ac_try" in
20337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338  *) ac_try_echo=$ac_try;;
20339esac
20340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20341$as_echo "$ac_try_echo") >&5
20342  (eval "$ac_try") 2>&5
20343  ac_status=$?
20344  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345  (exit $ac_status); }; }; then
20346  ac_cv_func_stat_empty_string_bug=no
20347else
20348  $as_echo "$as_me: program exited with status $ac_status" >&5
20349$as_echo "$as_me: failed program was:" >&5
20350sed 's/^/| /' conftest.$ac_ext >&5
20351
20352( exit $ac_status )
20353ac_cv_func_stat_empty_string_bug=yes
20354fi
20355rm -rf conftest.dSYM
20356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20357fi
20358
20359
20360fi
20361{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
20362$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
20363if test $ac_cv_func_stat_empty_string_bug = yes; then
20364  case " $LIBOBJS " in
20365  *" stat.$ac_objext "* ) ;;
20366  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
20367 ;;
20368esac
20369
20370
20371cat >>confdefs.h <<_ACEOF
20372#define HAVE_STAT_EMPTY_STRING_BUG 1
20373_ACEOF
20374
20375fi
20376
20377{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
20378$as_echo_n "checking for mode_t... " >&6; }
20379if test "${ac_cv_type_mode_t+set}" = set; then
20380  $as_echo_n "(cached) " >&6
20381else
20382  ac_cv_type_mode_t=no
20383cat >conftest.$ac_ext <<_ACEOF
20384/* confdefs.h.  */
20385_ACEOF
20386cat confdefs.h >>conftest.$ac_ext
20387cat >>conftest.$ac_ext <<_ACEOF
20388/* end confdefs.h.  */
20389$ac_includes_default
20390int
20391main ()
20392{
20393if (sizeof (mode_t))
20394       return 0;
20395  ;
20396  return 0;
20397}
20398_ACEOF
20399rm -f conftest.$ac_objext
20400if { (ac_try="$ac_compile"
20401case "(($ac_try" in
20402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403  *) ac_try_echo=$ac_try;;
20404esac
20405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20406$as_echo "$ac_try_echo") >&5
20407  (eval "$ac_compile") 2>conftest.er1
20408  ac_status=$?
20409  grep -v '^ *+' conftest.er1 >conftest.err
20410  rm -f conftest.er1
20411  cat conftest.err >&5
20412  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413  (exit $ac_status); } && {
20414	 test -z "$ac_c_werror_flag" ||
20415	 test ! -s conftest.err
20416       } && test -s conftest.$ac_objext; then
20417  cat >conftest.$ac_ext <<_ACEOF
20418/* confdefs.h.  */
20419_ACEOF
20420cat confdefs.h >>conftest.$ac_ext
20421cat >>conftest.$ac_ext <<_ACEOF
20422/* end confdefs.h.  */
20423$ac_includes_default
20424int
20425main ()
20426{
20427if (sizeof ((mode_t)))
20428	  return 0;
20429  ;
20430  return 0;
20431}
20432_ACEOF
20433rm -f conftest.$ac_objext
20434if { (ac_try="$ac_compile"
20435case "(($ac_try" in
20436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437  *) ac_try_echo=$ac_try;;
20438esac
20439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20440$as_echo "$ac_try_echo") >&5
20441  (eval "$ac_compile") 2>conftest.er1
20442  ac_status=$?
20443  grep -v '^ *+' conftest.er1 >conftest.err
20444  rm -f conftest.er1
20445  cat conftest.err >&5
20446  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447  (exit $ac_status); } && {
20448	 test -z "$ac_c_werror_flag" ||
20449	 test ! -s conftest.err
20450       } && test -s conftest.$ac_objext; then
20451  :
20452else
20453  $as_echo "$as_me: failed program was:" >&5
20454sed 's/^/| /' conftest.$ac_ext >&5
20455
20456	ac_cv_type_mode_t=yes
20457fi
20458
20459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20460else
20461  $as_echo "$as_me: failed program was:" >&5
20462sed 's/^/| /' conftest.$ac_ext >&5
20463
20464
20465fi
20466
20467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20468fi
20469{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
20470$as_echo "$ac_cv_type_mode_t" >&6; }
20471if test "x$ac_cv_type_mode_t" = x""yes; then
20472  :
20473else
20474
20475cat >>confdefs.h <<_ACEOF
20476#define mode_t int
20477_ACEOF
20478
20479fi
20480
20481{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
20482$as_echo_n "checking for pid_t... " >&6; }
20483if test "${ac_cv_type_pid_t+set}" = set; then
20484  $as_echo_n "(cached) " >&6
20485else
20486  ac_cv_type_pid_t=no
20487cat >conftest.$ac_ext <<_ACEOF
20488/* confdefs.h.  */
20489_ACEOF
20490cat confdefs.h >>conftest.$ac_ext
20491cat >>conftest.$ac_ext <<_ACEOF
20492/* end confdefs.h.  */
20493$ac_includes_default
20494int
20495main ()
20496{
20497if (sizeof (pid_t))
20498       return 0;
20499  ;
20500  return 0;
20501}
20502_ACEOF
20503rm -f conftest.$ac_objext
20504if { (ac_try="$ac_compile"
20505case "(($ac_try" in
20506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20507  *) ac_try_echo=$ac_try;;
20508esac
20509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20510$as_echo "$ac_try_echo") >&5
20511  (eval "$ac_compile") 2>conftest.er1
20512  ac_status=$?
20513  grep -v '^ *+' conftest.er1 >conftest.err
20514  rm -f conftest.er1
20515  cat conftest.err >&5
20516  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517  (exit $ac_status); } && {
20518	 test -z "$ac_c_werror_flag" ||
20519	 test ! -s conftest.err
20520       } && test -s conftest.$ac_objext; then
20521  cat >conftest.$ac_ext <<_ACEOF
20522/* confdefs.h.  */
20523_ACEOF
20524cat confdefs.h >>conftest.$ac_ext
20525cat >>conftest.$ac_ext <<_ACEOF
20526/* end confdefs.h.  */
20527$ac_includes_default
20528int
20529main ()
20530{
20531if (sizeof ((pid_t)))
20532	  return 0;
20533  ;
20534  return 0;
20535}
20536_ACEOF
20537rm -f conftest.$ac_objext
20538if { (ac_try="$ac_compile"
20539case "(($ac_try" in
20540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541  *) ac_try_echo=$ac_try;;
20542esac
20543eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20544$as_echo "$ac_try_echo") >&5
20545  (eval "$ac_compile") 2>conftest.er1
20546  ac_status=$?
20547  grep -v '^ *+' conftest.er1 >conftest.err
20548  rm -f conftest.er1
20549  cat conftest.err >&5
20550  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551  (exit $ac_status); } && {
20552	 test -z "$ac_c_werror_flag" ||
20553	 test ! -s conftest.err
20554       } && test -s conftest.$ac_objext; then
20555  :
20556else
20557  $as_echo "$as_me: failed program was:" >&5
20558sed 's/^/| /' conftest.$ac_ext >&5
20559
20560	ac_cv_type_pid_t=yes
20561fi
20562
20563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20564else
20565  $as_echo "$as_me: failed program was:" >&5
20566sed 's/^/| /' conftest.$ac_ext >&5
20567
20568
20569fi
20570
20571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20572fi
20573{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20574$as_echo "$ac_cv_type_pid_t" >&6; }
20575if test "x$ac_cv_type_pid_t" = x""yes; then
20576  :
20577else
20578
20579cat >>confdefs.h <<_ACEOF
20580#define pid_t int
20581_ACEOF
20582
20583fi
20584
20585
20586{ $as_echo "$as_me:$LINENO: checking whether environ is declared" >&5
20587$as_echo_n "checking whether environ is declared... " >&6; }
20588if test "${ac_cv_have_decl_environ+set}" = set; then
20589  $as_echo_n "(cached) " >&6
20590else
20591  cat >conftest.$ac_ext <<_ACEOF
20592/* confdefs.h.  */
20593_ACEOF
20594cat confdefs.h >>conftest.$ac_ext
20595cat >>conftest.$ac_ext <<_ACEOF
20596/* end confdefs.h.  */
20597$ac_includes_default
20598int
20599main ()
20600{
20601#ifndef environ
20602  (void) environ;
20603#endif
20604
20605  ;
20606  return 0;
20607}
20608_ACEOF
20609rm -f conftest.$ac_objext
20610if { (ac_try="$ac_compile"
20611case "(($ac_try" in
20612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613  *) ac_try_echo=$ac_try;;
20614esac
20615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20616$as_echo "$ac_try_echo") >&5
20617  (eval "$ac_compile") 2>conftest.er1
20618  ac_status=$?
20619  grep -v '^ *+' conftest.er1 >conftest.err
20620  rm -f conftest.er1
20621  cat conftest.err >&5
20622  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623  (exit $ac_status); } && {
20624	 test -z "$ac_c_werror_flag" ||
20625	 test ! -s conftest.err
20626       } && test -s conftest.$ac_objext; then
20627  ac_cv_have_decl_environ=yes
20628else
20629  $as_echo "$as_me: failed program was:" >&5
20630sed 's/^/| /' conftest.$ac_ext >&5
20631
20632	ac_cv_have_decl_environ=no
20633fi
20634
20635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20636fi
20637{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
20638$as_echo "$ac_cv_have_decl_environ" >&6; }
20639if test "x$ac_cv_have_decl_environ" = x""yes; then
20640
20641cat >>confdefs.h <<_ACEOF
20642#define HAVE_DECL_ENVIRON 1
20643_ACEOF
20644
20645
20646else
20647  cat >>confdefs.h <<_ACEOF
20648#define HAVE_DECL_ENVIRON 0
20649_ACEOF
20650
20651
20652fi
20653
20654
20655
20656# check if gcc's -fvisibility is supported
20657
20658  save_CFLAGS="$CFLAGS"
20659  VISIBILITY_HIDDEN_CFLAGS=""
20660  OPTION=-fvisibility=hidden
20661
20662  { $as_echo "$as_me:$LINENO: checking for gcc $OPTION support" >&5
20663$as_echo_n "checking for gcc $OPTION support... " >&6; }
20664
20665  CFLAGS="$CFLAGS $OPTION"
20666
20667  cat >conftest.$ac_ext <<_ACEOF
20668/* confdefs.h.  */
20669_ACEOF
20670cat confdefs.h >>conftest.$ac_ext
20671cat >>conftest.$ac_ext <<_ACEOF
20672/* end confdefs.h.  */
20673
20674      int default_vis __attribute__ ((visibility("default")));
20675      int hidden_vis __attribute__ ((visibility("hidden")));
20676
20677int
20678main ()
20679{
20680
20681  ;
20682  return 0;
20683}
20684_ACEOF
20685rm -f conftest.$ac_objext
20686if { (ac_try="$ac_compile"
20687case "(($ac_try" in
20688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689  *) ac_try_echo=$ac_try;;
20690esac
20691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20692$as_echo "$ac_try_echo") >&5
20693  (eval "$ac_compile") 2>conftest.er1
20694  ac_status=$?
20695  grep -v '^ *+' conftest.er1 >conftest.err
20696  rm -f conftest.er1
20697  cat conftest.err >&5
20698  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699  (exit $ac_status); } && {
20700	 test -z "$ac_c_werror_flag" ||
20701	 test ! -s conftest.err
20702       } && test -s conftest.$ac_objext; then
20703  ac_visibility_supported=yes
20704else
20705  $as_echo "$as_me: failed program was:" >&5
20706sed 's/^/| /' conftest.$ac_ext >&5
20707
20708	ac_visibility_supported=no
20709fi
20710
20711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20712  { $as_echo "$as_me:$LINENO: result: $ac_visibility_supported" >&5
20713$as_echo "$ac_visibility_supported" >&6; }
20714
20715  if test x"$ac_visibility_supported" = xyes; then
20716
20717cat >>confdefs.h <<\_ACEOF
20718#define HAVE_GCC_VISIBILITY 1
20719_ACEOF
20720
20721    VISIBILITY_HIDDEN_CFLAGS="$OPTION -DHAVE_VISIBILITY_HIDDEN"
20722
20723cat >>confdefs.h <<\_ACEOF
20724#define HAVE_VISIBILITY_HIDDEN /**/
20725_ACEOF
20726
20727  else
20728
20729    :
20730  fi
20731
20732
20733
20734  CFLAGS="$save_CFLAGS"
20735
20736
20737enable_chroot=yes
20738
20739for ac_header in sys/capability.h
20740do
20741as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20743  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20744$as_echo_n "checking for $ac_header... " >&6; }
20745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20746  $as_echo_n "(cached) " >&6
20747fi
20748ac_res=`eval 'as_val=${'$as_ac_Header'}
20749		 $as_echo "$as_val"'`
20750	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20751$as_echo "$ac_res" >&6; }
20752else
20753  # Is the header compilable?
20754{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20755$as_echo_n "checking $ac_header usability... " >&6; }
20756cat >conftest.$ac_ext <<_ACEOF
20757/* confdefs.h.  */
20758_ACEOF
20759cat confdefs.h >>conftest.$ac_ext
20760cat >>conftest.$ac_ext <<_ACEOF
20761/* end confdefs.h.  */
20762$ac_includes_default
20763#include <$ac_header>
20764_ACEOF
20765rm -f conftest.$ac_objext
20766if { (ac_try="$ac_compile"
20767case "(($ac_try" in
20768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769  *) ac_try_echo=$ac_try;;
20770esac
20771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20772$as_echo "$ac_try_echo") >&5
20773  (eval "$ac_compile") 2>conftest.er1
20774  ac_status=$?
20775  grep -v '^ *+' conftest.er1 >conftest.err
20776  rm -f conftest.er1
20777  cat conftest.err >&5
20778  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779  (exit $ac_status); } && {
20780	 test -z "$ac_c_werror_flag" ||
20781	 test ! -s conftest.err
20782       } && test -s conftest.$ac_objext; then
20783  ac_header_compiler=yes
20784else
20785  $as_echo "$as_me: failed program was:" >&5
20786sed 's/^/| /' conftest.$ac_ext >&5
20787
20788	ac_header_compiler=no
20789fi
20790
20791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20792{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20793$as_echo "$ac_header_compiler" >&6; }
20794
20795# Is the header present?
20796{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20797$as_echo_n "checking $ac_header presence... " >&6; }
20798cat >conftest.$ac_ext <<_ACEOF
20799/* confdefs.h.  */
20800_ACEOF
20801cat confdefs.h >>conftest.$ac_ext
20802cat >>conftest.$ac_ext <<_ACEOF
20803/* end confdefs.h.  */
20804#include <$ac_header>
20805_ACEOF
20806if { (ac_try="$ac_cpp conftest.$ac_ext"
20807case "(($ac_try" in
20808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809  *) ac_try_echo=$ac_try;;
20810esac
20811eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20812$as_echo "$ac_try_echo") >&5
20813  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20814  ac_status=$?
20815  grep -v '^ *+' conftest.er1 >conftest.err
20816  rm -f conftest.er1
20817  cat conftest.err >&5
20818  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819  (exit $ac_status); } >/dev/null && {
20820	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20821	 test ! -s conftest.err
20822       }; then
20823  ac_header_preproc=yes
20824else
20825  $as_echo "$as_me: failed program was:" >&5
20826sed 's/^/| /' conftest.$ac_ext >&5
20827
20828  ac_header_preproc=no
20829fi
20830
20831rm -f conftest.err conftest.$ac_ext
20832{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20833$as_echo "$ac_header_preproc" >&6; }
20834
20835# So?  What about this header?
20836case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20837  yes:no: )
20838    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20839$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20840    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20841$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20842    ac_header_preproc=yes
20843    ;;
20844  no:yes:* )
20845    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20846$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20847    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20848$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20849    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20850$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20851    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20852$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20853    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20854$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20855    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20856$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20857    ( cat <<\_ASBOX
20858## ----------------------------------------------------------- ##
20859## Report this to avahi (at) lists (dot) freedesktop (dot) org ##
20860## ----------------------------------------------------------- ##
20861_ASBOX
20862     ) | sed "s/^/$as_me: WARNING:     /" >&2
20863    ;;
20864esac
20865{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20866$as_echo_n "checking for $ac_header... " >&6; }
20867if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20868  $as_echo_n "(cached) " >&6
20869else
20870  eval "$as_ac_Header=\$ac_header_preproc"
20871fi
20872ac_res=`eval 'as_val=${'$as_ac_Header'}
20873		 $as_echo "$as_val"'`
20874	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20875$as_echo "$ac_res" >&6; }
20876
20877fi
20878as_val=`eval 'as_val=${'$as_ac_Header'}
20879		 $as_echo "$as_val"'`
20880   if test "x$as_val" = x""yes; then
20881  cat >>confdefs.h <<_ACEOF
20882#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20883_ACEOF
20884
20885else
20886  enable_chroot=no
20887fi
20888
20889done
20890
20891
20892for ac_header in sys/prctl.h
20893do
20894as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20895if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20896  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20897$as_echo_n "checking for $ac_header... " >&6; }
20898if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20899  $as_echo_n "(cached) " >&6
20900fi
20901ac_res=`eval 'as_val=${'$as_ac_Header'}
20902		 $as_echo "$as_val"'`
20903	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20904$as_echo "$ac_res" >&6; }
20905else
20906  # Is the header compilable?
20907{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20908$as_echo_n "checking $ac_header usability... " >&6; }
20909cat >conftest.$ac_ext <<_ACEOF
20910/* confdefs.h.  */
20911_ACEOF
20912cat confdefs.h >>conftest.$ac_ext
20913cat >>conftest.$ac_ext <<_ACEOF
20914/* end confdefs.h.  */
20915$ac_includes_default
20916#include <$ac_header>
20917_ACEOF
20918rm -f conftest.$ac_objext
20919if { (ac_try="$ac_compile"
20920case "(($ac_try" in
20921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922  *) ac_try_echo=$ac_try;;
20923esac
20924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20925$as_echo "$ac_try_echo") >&5
20926  (eval "$ac_compile") 2>conftest.er1
20927  ac_status=$?
20928  grep -v '^ *+' conftest.er1 >conftest.err
20929  rm -f conftest.er1
20930  cat conftest.err >&5
20931  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932  (exit $ac_status); } && {
20933	 test -z "$ac_c_werror_flag" ||
20934	 test ! -s conftest.err
20935       } && test -s conftest.$ac_objext; then
20936  ac_header_compiler=yes
20937else
20938  $as_echo "$as_me: failed program was:" >&5
20939sed 's/^/| /' conftest.$ac_ext >&5
20940
20941	ac_header_compiler=no
20942fi
20943
20944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20945{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20946$as_echo "$ac_header_compiler" >&6; }
20947
20948# Is the header present?
20949{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20950$as_echo_n "checking $ac_header presence... " >&6; }
20951cat >conftest.$ac_ext <<_ACEOF
20952/* confdefs.h.  */
20953_ACEOF
20954cat confdefs.h >>conftest.$ac_ext
20955cat >>conftest.$ac_ext <<_ACEOF
20956/* end confdefs.h.  */
20957#include <$ac_header>
20958_ACEOF
20959if { (ac_try="$ac_cpp conftest.$ac_ext"
20960case "(($ac_try" in
20961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20962  *) ac_try_echo=$ac_try;;
20963esac
20964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20965$as_echo "$ac_try_echo") >&5
20966  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20967  ac_status=$?
20968  grep -v '^ *+' conftest.er1 >conftest.err
20969  rm -f conftest.er1
20970  cat conftest.err >&5
20971  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972  (exit $ac_status); } >/dev/null && {
20973	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20974	 test ! -s conftest.err
20975       }; then
20976  ac_header_preproc=yes
20977else
20978  $as_echo "$as_me: failed program was:" >&5
20979sed 's/^/| /' conftest.$ac_ext >&5
20980
20981  ac_header_preproc=no
20982fi
20983
20984rm -f conftest.err conftest.$ac_ext
20985{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20986$as_echo "$ac_header_preproc" >&6; }
20987
20988# So?  What about this header?
20989case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20990  yes:no: )
20991    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20992$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20993    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20994$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20995    ac_header_preproc=yes
20996    ;;
20997  no:yes:* )
20998    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20999$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21000    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21001$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21002    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21003$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21004    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21005$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21006    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21007$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21008    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21009$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21010    ( cat <<\_ASBOX
21011## ----------------------------------------------------------- ##
21012## Report this to avahi (at) lists (dot) freedesktop (dot) org ##
21013## ----------------------------------------------------------- ##
21014_ASBOX
21015     ) | sed "s/^/$as_me: WARNING:     /" >&2
21016    ;;
21017esac
21018{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21019$as_echo_n "checking for $ac_header... " >&6; }
21020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21021  $as_echo_n "(cached) " >&6
21022else
21023  eval "$as_ac_Header=\$ac_header_preproc"
21024fi
21025ac_res=`eval 'as_val=${'$as_ac_Header'}
21026		 $as_echo "$as_val"'`
21027	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21028$as_echo "$ac_res" >&6; }
21029
21030fi
21031as_val=`eval 'as_val=${'$as_ac_Header'}
21032		 $as_echo "$as_val"'`
21033   if test "x$as_val" = x""yes; then
21034  cat >>confdefs.h <<_ACEOF
21035#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21036_ACEOF
21037
21038else
21039  enable_chroot=no
21040fi
21041
21042done
21043
21044
21045for ac_func in chroot
21046do
21047as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21048{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21049$as_echo_n "checking for $ac_func... " >&6; }
21050if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21051  $as_echo_n "(cached) " >&6
21052else
21053  cat >conftest.$ac_ext <<_ACEOF
21054/* confdefs.h.  */
21055_ACEOF
21056cat confdefs.h >>conftest.$ac_ext
21057cat >>conftest.$ac_ext <<_ACEOF
21058/* end confdefs.h.  */
21059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21060   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21061#define $ac_func innocuous_$ac_func
21062
21063/* System header to define __stub macros and hopefully few prototypes,
21064    which can conflict with char $ac_func (); below.
21065    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21066    <limits.h> exists even on freestanding compilers.  */
21067
21068#ifdef __STDC__
21069# include <limits.h>
21070#else
21071# include <assert.h>
21072#endif
21073
21074#undef $ac_func
21075
21076/* Override any GCC internal prototype to avoid an error.
21077   Use char because int might match the return type of a GCC
21078   builtin and then its argument prototype would still apply.  */
21079#ifdef __cplusplus
21080extern "C"
21081#endif
21082char $ac_func ();
21083/* The GNU C library defines this for functions which it implements
21084    to always fail with ENOSYS.  Some functions are actually named
21085    something starting with __ and the normal name is an alias.  */
21086#if defined __stub_$ac_func || defined __stub___$ac_func
21087choke me
21088#endif
21089
21090int
21091main ()
21092{
21093return $ac_func ();
21094  ;
21095  return 0;
21096}
21097_ACEOF
21098rm -f conftest.$ac_objext conftest$ac_exeext
21099if { (ac_try="$ac_link"
21100case "(($ac_try" in
21101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21102  *) ac_try_echo=$ac_try;;
21103esac
21104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21105$as_echo "$ac_try_echo") >&5
21106  (eval "$ac_link") 2>conftest.er1
21107  ac_status=$?
21108  grep -v '^ *+' conftest.er1 >conftest.err
21109  rm -f conftest.er1
21110  cat conftest.err >&5
21111  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112  (exit $ac_status); } && {
21113	 test -z "$ac_c_werror_flag" ||
21114	 test ! -s conftest.err
21115       } && test -s conftest$ac_exeext && {
21116	 test "$cross_compiling" = yes ||
21117	 $as_test_x conftest$ac_exeext
21118       }; then
21119  eval "$as_ac_var=yes"
21120else
21121  $as_echo "$as_me: failed program was:" >&5
21122sed 's/^/| /' conftest.$ac_ext >&5
21123
21124	eval "$as_ac_var=no"
21125fi
21126
21127rm -rf conftest.dSYM
21128rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21129      conftest$ac_exeext conftest.$ac_ext
21130fi
21131ac_res=`eval 'as_val=${'$as_ac_var'}
21132		 $as_echo "$as_val"'`
21133	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21134$as_echo "$ac_res" >&6; }
21135as_val=`eval 'as_val=${'$as_ac_var'}
21136		 $as_echo "$as_val"'`
21137   if test "x$as_val" = x""yes; then
21138  cat >>confdefs.h <<_ACEOF
21139#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21140_ACEOF
21141
21142else
21143  enable_chroot=no
21144fi
21145done
21146
21147
21148 if test "x$enable_chroot" = "xyes"; then
21149  ENABLE_CHROOT_TRUE=
21150  ENABLE_CHROOT_FALSE='#'
21151else
21152  ENABLE_CHROOT_TRUE='#'
21153  ENABLE_CHROOT_FALSE=
21154fi
21155
21156
21157if test "x$enable_chroot" = "xyes" ; then
21158
21159cat >>confdefs.h <<\_ACEOF
21160#define ENABLE_CHROOT 1
21161_ACEOF
21162
21163fi
21164
21165{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21166$as_echo_n "checking for dlopen in -ldl... " >&6; }
21167if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21168  $as_echo_n "(cached) " >&6
21169else
21170  ac_check_lib_save_LIBS=$LIBS
21171LIBS="-ldl  $LIBS"
21172cat >conftest.$ac_ext <<_ACEOF
21173/* confdefs.h.  */
21174_ACEOF
21175cat confdefs.h >>conftest.$ac_ext
21176cat >>conftest.$ac_ext <<_ACEOF
21177/* end confdefs.h.  */
21178
21179/* Override any GCC internal prototype to avoid an error.
21180   Use char because int might match the return type of a GCC
21181   builtin and then its argument prototype would still apply.  */
21182#ifdef __cplusplus
21183extern "C"
21184#endif
21185char dlopen ();
21186int
21187main ()
21188{
21189return dlopen ();
21190  ;
21191  return 0;
21192}
21193_ACEOF
21194rm -f conftest.$ac_objext conftest$ac_exeext
21195if { (ac_try="$ac_link"
21196case "(($ac_try" in
21197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21198  *) ac_try_echo=$ac_try;;
21199esac
21200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21201$as_echo "$ac_try_echo") >&5
21202  (eval "$ac_link") 2>conftest.er1
21203  ac_status=$?
21204  grep -v '^ *+' conftest.er1 >conftest.err
21205  rm -f conftest.er1
21206  cat conftest.err >&5
21207  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208  (exit $ac_status); } && {
21209	 test -z "$ac_c_werror_flag" ||
21210	 test ! -s conftest.err
21211       } && test -s conftest$ac_exeext && {
21212	 test "$cross_compiling" = yes ||
21213	 $as_test_x conftest$ac_exeext
21214       }; then
21215  ac_cv_lib_dl_dlopen=yes
21216else
21217  $as_echo "$as_me: failed program was:" >&5
21218sed 's/^/| /' conftest.$ac_ext >&5
21219
21220	ac_cv_lib_dl_dlopen=no
21221fi
21222
21223rm -rf conftest.dSYM
21224rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21225      conftest$ac_exeext conftest.$ac_ext
21226LIBS=$ac_check_lib_save_LIBS
21227fi
21228{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21229$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21230if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
21231
21232for ac_header in dlfcn.h
21233do
21234as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21236  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21237$as_echo_n "checking for $ac_header... " >&6; }
21238if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21239  $as_echo_n "(cached) " >&6
21240fi
21241ac_res=`eval 'as_val=${'$as_ac_Header'}
21242		 $as_echo "$as_val"'`
21243	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21244$as_echo "$ac_res" >&6; }
21245else
21246  # Is the header compilable?
21247{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21248$as_echo_n "checking $ac_header usability... " >&6; }
21249cat >conftest.$ac_ext <<_ACEOF
21250/* confdefs.h.  */
21251_ACEOF
21252cat confdefs.h >>conftest.$ac_ext
21253cat >>conftest.$ac_ext <<_ACEOF
21254/* end confdefs.h.  */
21255$ac_includes_default
21256#include <$ac_header>
21257_ACEOF
21258rm -f conftest.$ac_objext
21259if { (ac_try="$ac_compile"
21260case "(($ac_try" in
21261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262  *) ac_try_echo=$ac_try;;
21263esac
21264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21265$as_echo "$ac_try_echo") >&5
21266  (eval "$ac_compile") 2>conftest.er1
21267  ac_status=$?
21268  grep -v '^ *+' conftest.er1 >conftest.err
21269  rm -f conftest.er1
21270  cat conftest.err >&5
21271  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272  (exit $ac_status); } && {
21273	 test -z "$ac_c_werror_flag" ||
21274	 test ! -s conftest.err
21275       } && test -s conftest.$ac_objext; then
21276  ac_header_compiler=yes
21277else
21278  $as_echo "$as_me: failed program was:" >&5
21279sed 's/^/| /' conftest.$ac_ext >&5
21280
21281	ac_header_compiler=no
21282fi
21283
21284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21285{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21286$as_echo "$ac_header_compiler" >&6; }
21287
21288# Is the header present?
21289{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21290$as_echo_n "checking $ac_header presence... " >&6; }
21291cat >conftest.$ac_ext <<_ACEOF
21292/* confdefs.h.  */
21293_ACEOF
21294cat confdefs.h >>conftest.$ac_ext
21295cat >>conftest.$ac_ext <<_ACEOF
21296/* end confdefs.h.  */
21297#include <$ac_header>
21298_ACEOF
21299if { (ac_try="$ac_cpp conftest.$ac_ext"
21300case "(($ac_try" in
21301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302  *) ac_try_echo=$ac_try;;
21303esac
21304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21305$as_echo "$ac_try_echo") >&5
21306  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21307  ac_status=$?
21308  grep -v '^ *+' conftest.er1 >conftest.err
21309  rm -f conftest.er1
21310  cat conftest.err >&5
21311  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312  (exit $ac_status); } >/dev/null && {
21313	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21314	 test ! -s conftest.err
21315       }; then
21316  ac_header_preproc=yes
21317else
21318  $as_echo "$as_me: failed program was:" >&5
21319sed 's/^/| /' conftest.$ac_ext >&5
21320
21321  ac_header_preproc=no
21322fi
21323
21324rm -f conftest.err conftest.$ac_ext
21325{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21326$as_echo "$ac_header_preproc" >&6; }
21327
21328# So?  What about this header?
21329case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21330  yes:no: )
21331    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21332$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21333    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21334$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21335    ac_header_preproc=yes
21336    ;;
21337  no:yes:* )
21338    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21339$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21340    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21341$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21342    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21343$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21344    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21345$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21346    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21347$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21348    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21349$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21350    ( cat <<\_ASBOX
21351## ----------------------------------------------------------- ##
21352## Report this to avahi (at) lists (dot) freedesktop (dot) org ##
21353## ----------------------------------------------------------- ##
21354_ASBOX
21355     ) | sed "s/^/$as_me: WARNING:     /" >&2
21356    ;;
21357esac
21358{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21359$as_echo_n "checking for $ac_header... " >&6; }
21360if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21361  $as_echo_n "(cached) " >&6
21362else
21363  eval "$as_ac_Header=\$ac_header_preproc"
21364fi
21365ac_res=`eval 'as_val=${'$as_ac_Header'}
21366		 $as_echo "$as_val"'`
21367	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21368$as_echo "$ac_res" >&6; }
21369
21370fi
21371as_val=`eval 'as_val=${'$as_ac_Header'}
21372		 $as_echo "$as_val"'`
21373   if test "x$as_val" = x""yes; then
21374  cat >>confdefs.h <<_ACEOF
21375#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21376_ACEOF
21377 HAVE_DLOPEN=yes
21378else
21379  HAVE_DLOPEN=no
21380fi
21381
21382done
21383
21384else
21385  HAVE_DLOPEN=no
21386fi
21387
21388if test "x$HAVE_DLOPEN" = "xyes" ; then
21389
21390cat >>confdefs.h <<\_ACEOF
21391#define HAVE_DLOPEN 1
21392_ACEOF
21393
21394fi
21395 if test "x$HAVE_DLOPEN" = "xyes"; then
21396  HAVE_DLOPEN_TRUE=
21397  HAVE_DLOPEN_FALSE='#'
21398else
21399  HAVE_DLOPEN_TRUE='#'
21400  HAVE_DLOPEN_FALSE=
21401fi
21402
21403
21404have_inotify=no
21405
21406for ac_header in sys/inotify.h
21407do
21408as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21410  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21411$as_echo_n "checking for $ac_header... " >&6; }
21412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21413  $as_echo_n "(cached) " >&6
21414fi
21415ac_res=`eval 'as_val=${'$as_ac_Header'}
21416		 $as_echo "$as_val"'`
21417	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21418$as_echo "$ac_res" >&6; }
21419else
21420  # Is the header compilable?
21421{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21422$as_echo_n "checking $ac_header usability... " >&6; }
21423cat >conftest.$ac_ext <<_ACEOF
21424/* confdefs.h.  */
21425_ACEOF
21426cat confdefs.h >>conftest.$ac_ext
21427cat >>conftest.$ac_ext <<_ACEOF
21428/* end confdefs.h.  */
21429$ac_includes_default
21430#include <$ac_header>
21431_ACEOF
21432rm -f conftest.$ac_objext
21433if { (ac_try="$ac_compile"
21434case "(($ac_try" in
21435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436  *) ac_try_echo=$ac_try;;
21437esac
21438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21439$as_echo "$ac_try_echo") >&5
21440  (eval "$ac_compile") 2>conftest.er1
21441  ac_status=$?
21442  grep -v '^ *+' conftest.er1 >conftest.err
21443  rm -f conftest.er1
21444  cat conftest.err >&5
21445  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446  (exit $ac_status); } && {
21447	 test -z "$ac_c_werror_flag" ||
21448	 test ! -s conftest.err
21449       } && test -s conftest.$ac_objext; then
21450  ac_header_compiler=yes
21451else
21452  $as_echo "$as_me: failed program was:" >&5
21453sed 's/^/| /' conftest.$ac_ext >&5
21454
21455	ac_header_compiler=no
21456fi
21457
21458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21459{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21460$as_echo "$ac_header_compiler" >&6; }
21461
21462# Is the header present?
21463{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21464$as_echo_n "checking $ac_header presence... " >&6; }
21465cat >conftest.$ac_ext <<_ACEOF
21466/* confdefs.h.  */
21467_ACEOF
21468cat confdefs.h >>conftest.$ac_ext
21469cat >>conftest.$ac_ext <<_ACEOF
21470/* end confdefs.h.  */
21471#include <$ac_header>
21472_ACEOF
21473if { (ac_try="$ac_cpp conftest.$ac_ext"
21474case "(($ac_try" in
21475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21476  *) ac_try_echo=$ac_try;;
21477esac
21478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21479$as_echo "$ac_try_echo") >&5
21480  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21481  ac_status=$?
21482  grep -v '^ *+' conftest.er1 >conftest.err
21483  rm -f conftest.er1
21484  cat conftest.err >&5
21485  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486  (exit $ac_status); } >/dev/null && {
21487	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21488	 test ! -s conftest.err
21489       }; then
21490  ac_header_preproc=yes
21491else
21492  $as_echo "$as_me: failed program was:" >&5
21493sed 's/^/| /' conftest.$ac_ext >&5
21494
21495  ac_header_preproc=no
21496fi
21497
21498rm -f conftest.err conftest.$ac_ext
21499{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21500$as_echo "$ac_header_preproc" >&6; }
21501
21502# So?  What about this header?
21503case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21504  yes:no: )
21505    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21506$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21507    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21508$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21509    ac_header_preproc=yes
21510    ;;
21511  no:yes:* )
21512    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21513$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21514    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21515$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21516    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21517$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21518    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21519$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21520    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21521$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21522    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21523$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21524    ( cat <<\_ASBOX
21525## ----------------------------------------------------------- ##
21526## Report this to avahi (at) lists (dot) freedesktop (dot) org ##
21527## ----------------------------------------------------------- ##
21528_ASBOX
21529     ) | sed "s/^/$as_me: WARNING:     /" >&2
21530    ;;
21531esac
21532{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21533$as_echo_n "checking for $ac_header... " >&6; }
21534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21535  $as_echo_n "(cached) " >&6
21536else
21537  eval "$as_ac_Header=\$ac_header_preproc"
21538fi
21539ac_res=`eval 'as_val=${'$as_ac_Header'}
21540		 $as_echo "$as_val"'`
21541	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21542$as_echo "$ac_res" >&6; }
21543
21544fi
21545as_val=`eval 'as_val=${'$as_ac_Header'}
21546		 $as_echo "$as_val"'`
21547   if test "x$as_val" = x""yes; then
21548  cat >>confdefs.h <<_ACEOF
21549#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21550_ACEOF
21551 have_inotify=yes
21552fi
21553
21554done
21555
21556
21557 if test "x$have_inotify" = "xyes"; then
21558  HAVE_INOTIFY_TRUE=
21559  HAVE_INOTIFY_FALSE='#'
21560else
21561  HAVE_INOTIFY_TRUE='#'
21562  HAVE_INOTIFY_FALSE=
21563fi
21564
21565
21566if test "x$have_inotify" = "xyes" ; then
21567
21568cat >>confdefs.h <<\_ACEOF
21569#define HAVE_INOTIFY 1
21570_ACEOF
21571
21572fi
21573
21574have_kqueue=yes
21575
21576for ac_func in kqueue
21577do
21578as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21579{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21580$as_echo_n "checking for $ac_func... " >&6; }
21581if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21582  $as_echo_n "(cached) " >&6
21583else
21584  cat >conftest.$ac_ext <<_ACEOF
21585/* confdefs.h.  */
21586_ACEOF
21587cat confdefs.h >>conftest.$ac_ext
21588cat >>conftest.$ac_ext <<_ACEOF
21589/* end confdefs.h.  */
21590/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21591   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21592#define $ac_func innocuous_$ac_func
21593
21594/* System header to define __stub macros and hopefully few prototypes,
21595    which can conflict with char $ac_func (); below.
21596    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21597    <limits.h> exists even on freestanding compilers.  */
21598
21599#ifdef __STDC__
21600# include <limits.h>
21601#else
21602# include <assert.h>
21603#endif
21604
21605#undef $ac_func
21606
21607/* Override any GCC internal prototype to avoid an error.
21608   Use char because int might match the return type of a GCC
21609   builtin and then its argument prototype would still apply.  */
21610#ifdef __cplusplus
21611extern "C"
21612#endif
21613char $ac_func ();
21614/* The GNU C library defines this for functions which it implements
21615    to always fail with ENOSYS.  Some functions are actually named
21616    something starting with __ and the normal name is an alias.  */
21617#if defined __stub_$ac_func || defined __stub___$ac_func
21618choke me
21619#endif
21620
21621int
21622main ()
21623{
21624return $ac_func ();
21625  ;
21626  return 0;
21627}
21628_ACEOF
21629rm -f conftest.$ac_objext conftest$ac_exeext
21630if { (ac_try="$ac_link"
21631case "(($ac_try" in
21632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633  *) ac_try_echo=$ac_try;;
21634esac
21635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21636$as_echo "$ac_try_echo") >&5
21637  (eval "$ac_link") 2>conftest.er1
21638  ac_status=$?
21639  grep -v '^ *+' conftest.er1 >conftest.err
21640  rm -f conftest.er1
21641  cat conftest.err >&5
21642  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643  (exit $ac_status); } && {
21644	 test -z "$ac_c_werror_flag" ||
21645	 test ! -s conftest.err
21646       } && test -s conftest$ac_exeext && {
21647	 test "$cross_compiling" = yes ||
21648	 $as_test_x conftest$ac_exeext
21649       }; then
21650  eval "$as_ac_var=yes"
21651else
21652  $as_echo "$as_me: failed program was:" >&5
21653sed 's/^/| /' conftest.$ac_ext >&5
21654
21655	eval "$as_ac_var=no"
21656fi
21657
21658rm -rf conftest.dSYM
21659rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21660      conftest$ac_exeext conftest.$ac_ext
21661fi
21662ac_res=`eval 'as_val=${'$as_ac_var'}
21663		 $as_echo "$as_val"'`
21664	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21665$as_echo "$ac_res" >&6; }
21666as_val=`eval 'as_val=${'$as_ac_var'}
21667		 $as_echo "$as_val"'`
21668   if test "x$as_val" = x""yes; then
21669  cat >>confdefs.h <<_ACEOF
21670#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21671_ACEOF
21672
21673else
21674  have_kqueue=no
21675fi
21676done
21677
21678
21679 if test "x$have_kqueue" = "xyes"; then
21680  HAVE_KQUEUE_TRUE=
21681  HAVE_KQUEUE_FALSE='#'
21682else
21683  HAVE_KQUEUE_TRUE='#'
21684  HAVE_KQUEUE_FALSE=
21685fi
21686
21687
21688if test "x$have_kqueue" = "xyes" ; then
21689
21690cat >>confdefs.h <<\_ACEOF
21691#define HAVE_KQUEUE 1
21692_ACEOF
21693
21694fi
21695
21696avahilocaledir='${prefix}/${DATADIRNAME}/locale'
21697
21698
21699
21700# Check for pkg-config manually first, as if its not installed the
21701# PKG_PROG_PKG_CONFIG macro won't be defined.
21702# Extract the first word of "pkg-config", so it can be a program name with args.
21703set dummy pkg-config; ac_word=$2
21704{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21705$as_echo_n "checking for $ac_word... " >&6; }
21706if test "${ac_cv_prog_have_pkg_config+set}" = set; then
21707  $as_echo_n "(cached) " >&6
21708else
21709  if test -n "$have_pkg_config"; then
21710  ac_cv_prog_have_pkg_config="$have_pkg_config" # Let the user override the test.
21711else
21712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21713for as_dir in $PATH
21714do
21715  IFS=$as_save_IFS
21716  test -z "$as_dir" && as_dir=.
21717  for ac_exec_ext in '' $ac_executable_extensions; do
21718  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21719    ac_cv_prog_have_pkg_config="yes"
21720    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21721    break 2
21722  fi
21723done
21724done
21725IFS=$as_save_IFS
21726
21727  test -z "$ac_cv_prog_have_pkg_config" && ac_cv_prog_have_pkg_config="no"
21728fi
21729fi
21730have_pkg_config=$ac_cv_prog_have_pkg_config
21731if test -n "$have_pkg_config"; then
21732  { $as_echo "$as_me:$LINENO: result: $have_pkg_config" >&5
21733$as_echo "$have_pkg_config" >&6; }
21734else
21735  { $as_echo "$as_me:$LINENO: result: no" >&5
21736$as_echo "no" >&6; }
21737fi
21738
21739
21740
21741if test x"$have_pkg_config" = "xno"; then
21742    { { $as_echo "$as_me:$LINENO: error: pkg-config is required to install this program" >&5
21743$as_echo "$as_me: error: pkg-config is required to install this program" >&2;}
21744   { (exit 1); exit 1; }; }
21745fi
21746
21747
21748
21749if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21750	if test -n "$ac_tool_prefix"; then
21751  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21752set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21753{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21754$as_echo_n "checking for $ac_word... " >&6; }
21755if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21756  $as_echo_n "(cached) " >&6
21757else
21758  case $PKG_CONFIG in
21759  [\\/]* | ?:[\\/]*)
21760  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21761  ;;
21762  *)
21763  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21764for as_dir in $PATH
21765do
21766  IFS=$as_save_IFS
21767  test -z "$as_dir" && as_dir=.
21768  for ac_exec_ext in '' $ac_executable_extensions; do
21769  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21770    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21771    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21772    break 2
21773  fi
21774done
21775done
21776IFS=$as_save_IFS
21777
21778  ;;
21779esac
21780fi
21781PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21782if test -n "$PKG_CONFIG"; then
21783  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21784$as_echo "$PKG_CONFIG" >&6; }
21785else
21786  { $as_echo "$as_me:$LINENO: result: no" >&5
21787$as_echo "no" >&6; }
21788fi
21789
21790
21791fi
21792if test -z "$ac_cv_path_PKG_CONFIG"; then
21793  ac_pt_PKG_CONFIG=$PKG_CONFIG
21794  # Extract the first word of "pkg-config", so it can be a program name with args.
21795set dummy pkg-config; ac_word=$2
21796{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21797$as_echo_n "checking for $ac_word... " >&6; }
21798if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21799  $as_echo_n "(cached) " >&6
21800else
21801  case $ac_pt_PKG_CONFIG in
21802  [\\/]* | ?:[\\/]*)
21803  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21804  ;;
21805  *)
21806  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21807for as_dir in $PATH
21808do
21809  IFS=$as_save_IFS
21810  test -z "$as_dir" && as_dir=.
21811  for ac_exec_ext in '' $ac_executable_extensions; do
21812  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21813    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21814    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21815    break 2
21816  fi
21817done
21818done
21819IFS=$as_save_IFS
21820
21821  ;;
21822esac
21823fi
21824ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21825if test -n "$ac_pt_PKG_CONFIG"; then
21826  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21827$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21828else
21829  { $as_echo "$as_me:$LINENO: result: no" >&5
21830$as_echo "no" >&6; }
21831fi
21832
21833  if test "x$ac_pt_PKG_CONFIG" = x; then
21834    PKG_CONFIG=""
21835  else
21836    case $cross_compiling:$ac_tool_warned in
21837yes:)
21838{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21840ac_tool_warned=yes ;;
21841esac
21842    PKG_CONFIG=$ac_pt_PKG_CONFIG
21843  fi
21844else
21845  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21846fi
21847
21848fi
21849if test -n "$PKG_CONFIG"; then
21850	_pkg_min_version=0.9.0
21851	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21852$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21853	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21854		{ $as_echo "$as_me:$LINENO: result: yes" >&5
21855$as_echo "yes" >&6; }
21856	else
21857		{ $as_echo "$as_me:$LINENO: result: no" >&5
21858$as_echo "no" >&6; }
21859		PKG_CONFIG=""
21860	fi
21861
21862fi
21863
21864#
21865# Check for GLIB 2.0
21866#
21867# Check whether --enable-glib was given.
21868if test "${enable_glib+set}" = set; then
21869  enableval=$enable_glib; case "${enableval}" in
21870                yes) HAVE_GLIB=yes ;;
21871                no)  HAVE_GLIB=no ;;
21872                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-glib" >&5
21873$as_echo "$as_me: error: bad value ${enableval} for --enable-glib" >&2;}
21874   { (exit 1); exit 1; }; } ;;
21875        esac
21876else
21877  HAVE_GLIB=yes
21878fi
21879
21880
21881if test "x$HAVE_GLIB" = "xyes" ; then
21882
21883pkg_failed=no
21884{ $as_echo "$as_me:$LINENO: checking for GLIB20" >&5
21885$as_echo_n "checking for GLIB20... " >&6; }
21886
21887if test -n "$GLIB20_CFLAGS"; then
21888    pkg_cv_GLIB20_CFLAGS="$GLIB20_CFLAGS"
21889 elif test -n "$PKG_CONFIG"; then
21890    if test -n "$PKG_CONFIG" && \
21891    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.4.0 \"") >&5
21892  ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.4.0 ") 2>&5
21893  ac_status=$?
21894  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895  (exit $ac_status); }; then
21896  pkg_cv_GLIB20_CFLAGS=`$PKG_CONFIG --cflags " glib-2.0 >= 2.4.0 " 2>/dev/null`
21897else
21898  pkg_failed=yes
21899fi
21900 else
21901    pkg_failed=untried
21902fi
21903if test -n "$GLIB20_LIBS"; then
21904    pkg_cv_GLIB20_LIBS="$GLIB20_LIBS"
21905 elif test -n "$PKG_CONFIG"; then
21906    if test -n "$PKG_CONFIG" && \
21907    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.4.0 \"") >&5
21908  ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.4.0 ") 2>&5
21909  ac_status=$?
21910  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911  (exit $ac_status); }; then
21912  pkg_cv_GLIB20_LIBS=`$PKG_CONFIG --libs " glib-2.0 >= 2.4.0 " 2>/dev/null`
21913else
21914  pkg_failed=yes
21915fi
21916 else
21917    pkg_failed=untried
21918fi
21919
21920
21921
21922if test $pkg_failed = yes; then
21923
21924if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21925        _pkg_short_errors_supported=yes
21926else
21927        _pkg_short_errors_supported=no
21928fi
21929        if test $_pkg_short_errors_supported = yes; then
21930	        GLIB20_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " glib-2.0 >= 2.4.0 " 2>&1`
21931        else
21932	        GLIB20_PKG_ERRORS=`$PKG_CONFIG --print-errors " glib-2.0 >= 2.4.0 " 2>&1`
21933        fi
21934	# Put the nasty error message in config.log where it belongs
21935	echo "$GLIB20_PKG_ERRORS" >&5
21936
21937	{ { $as_echo "$as_me:$LINENO: error: Package requirements ( glib-2.0 >= 2.4.0 ) were not met:
21938
21939$GLIB20_PKG_ERRORS
21940
21941Consider adjusting the PKG_CONFIG_PATH environment variable if you
21942installed software in a non-standard prefix.
21943
21944Alternatively, you may set the environment variables GLIB20_CFLAGS
21945and GLIB20_LIBS to avoid the need to call pkg-config.
21946See the pkg-config man page for more details.
21947" >&5
21948$as_echo "$as_me: error: Package requirements ( glib-2.0 >= 2.4.0 ) were not met:
21949
21950$GLIB20_PKG_ERRORS
21951
21952Consider adjusting the PKG_CONFIG_PATH environment variable if you
21953installed software in a non-standard prefix.
21954
21955Alternatively, you may set the environment variables GLIB20_CFLAGS
21956and GLIB20_LIBS to avoid the need to call pkg-config.
21957See the pkg-config man page for more details.
21958" >&2;}
21959   { (exit 1); exit 1; }; }
21960elif test $pkg_failed = untried; then
21961	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21962$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21963{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21964is in your PATH or set the PKG_CONFIG environment variable to the full
21965path to pkg-config.
21966
21967Alternatively, you may set the environment variables GLIB20_CFLAGS
21968and GLIB20_LIBS to avoid the need to call pkg-config.
21969See the pkg-config man page for more details.
21970
21971To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21972See \`config.log' for more details." >&5
21973$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21974is in your PATH or set the PKG_CONFIG environment variable to the full
21975path to pkg-config.
21976
21977Alternatively, you may set the environment variables GLIB20_CFLAGS
21978and GLIB20_LIBS to avoid the need to call pkg-config.
21979See the pkg-config man page for more details.
21980
21981To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21982See \`config.log' for more details." >&2;}
21983   { (exit 1); exit 1; }; }; }
21984else
21985	GLIB20_CFLAGS=$pkg_cv_GLIB20_CFLAGS
21986	GLIB20_LIBS=$pkg_cv_GLIB20_LIBS
21987        { $as_echo "$as_me:$LINENO: result: yes" >&5
21988$as_echo "yes" >&6; }
21989	:
21990fi
21991
21992
21993fi
21994 if test "x$HAVE_GLIB" = "xyes"; then
21995  HAVE_GLIB_TRUE=
21996  HAVE_GLIB_FALSE='#'
21997else
21998  HAVE_GLIB_TRUE='#'
21999  HAVE_GLIB_FALSE=
22000fi
22001
22002
22003#
22004# Check for GLIB's gobject 2.0
22005#
22006# Check whether --enable-gobject was given.
22007if test "${enable_gobject+set}" = set; then
22008  enableval=$enable_gobject; case "${enableval}" in
22009                yes) HAVE_GOBJECT=yes ;;
22010                no)  HAVE_GOBJECT=no ;;
22011                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-gobject" >&5
22012$as_echo "$as_me: error: bad value ${enableval} for --enable-gobject" >&2;}
22013   { (exit 1); exit 1; }; } ;;
22014        esac
22015else
22016  HAVE_GOBJECT=yes
22017fi
22018
22019
22020if test "x$HAVE_GOBJECT" = "xyes" ; then
22021
22022pkg_failed=no
22023{ $as_echo "$as_me:$LINENO: checking for GOBJECT" >&5
22024$as_echo_n "checking for GOBJECT... " >&6; }
22025
22026if test -n "$GOBJECT_CFLAGS"; then
22027    pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
22028 elif test -n "$PKG_CONFIG"; then
22029    if test -n "$PKG_CONFIG" && \
22030    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.4.0 gobject-2.0 \"") >&5
22031  ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.4.0 gobject-2.0 ") 2>&5
22032  ac_status=$?
22033  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034  (exit $ac_status); }; then
22035  pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags " glib-2.0 >= 2.4.0 gobject-2.0 " 2>/dev/null`
22036else
22037  pkg_failed=yes
22038fi
22039 else
22040    pkg_failed=untried
22041fi
22042if test -n "$GOBJECT_LIBS"; then
22043    pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
22044 elif test -n "$PKG_CONFIG"; then
22045    if test -n "$PKG_CONFIG" && \
22046    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.4.0 gobject-2.0 \"") >&5
22047  ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.4.0 gobject-2.0 ") 2>&5
22048  ac_status=$?
22049  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050  (exit $ac_status); }; then
22051  pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs " glib-2.0 >= 2.4.0 gobject-2.0 " 2>/dev/null`
22052else
22053  pkg_failed=yes
22054fi
22055 else
22056    pkg_failed=untried
22057fi
22058
22059
22060
22061if test $pkg_failed = yes; then
22062
22063if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22064        _pkg_short_errors_supported=yes
22065else
22066        _pkg_short_errors_supported=no
22067fi
22068        if test $_pkg_short_errors_supported = yes; then
22069	        GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " glib-2.0 >= 2.4.0 gobject-2.0 " 2>&1`
22070        else
22071	        GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors " glib-2.0 >= 2.4.0 gobject-2.0 " 2>&1`
22072        fi
22073	# Put the nasty error message in config.log where it belongs
22074	echo "$GOBJECT_PKG_ERRORS" >&5
22075
22076	{ { $as_echo "$as_me:$LINENO: error: Package requirements ( glib-2.0 >= 2.4.0 gobject-2.0 ) were not met:
22077
22078$GOBJECT_PKG_ERRORS
22079
22080Consider adjusting the PKG_CONFIG_PATH environment variable if you
22081installed software in a non-standard prefix.
22082
22083Alternatively, you may set the environment variables GOBJECT_CFLAGS
22084and GOBJECT_LIBS to avoid the need to call pkg-config.
22085See the pkg-config man page for more details.
22086" >&5
22087$as_echo "$as_me: error: Package requirements ( glib-2.0 >= 2.4.0 gobject-2.0 ) were not met:
22088
22089$GOBJECT_PKG_ERRORS
22090
22091Consider adjusting the PKG_CONFIG_PATH environment variable if you
22092installed software in a non-standard prefix.
22093
22094Alternatively, you may set the environment variables GOBJECT_CFLAGS
22095and GOBJECT_LIBS to avoid the need to call pkg-config.
22096See the pkg-config man page for more details.
22097" >&2;}
22098   { (exit 1); exit 1; }; }
22099elif test $pkg_failed = untried; then
22100	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22102{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22103is in your PATH or set the PKG_CONFIG environment variable to the full
22104path to pkg-config.
22105
22106Alternatively, you may set the environment variables GOBJECT_CFLAGS
22107and GOBJECT_LIBS to avoid the need to call pkg-config.
22108See the pkg-config man page for more details.
22109
22110To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22111See \`config.log' for more details." >&5
22112$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22113is in your PATH or set the PKG_CONFIG environment variable to the full
22114path to pkg-config.
22115
22116Alternatively, you may set the environment variables GOBJECT_CFLAGS
22117and GOBJECT_LIBS to avoid the need to call pkg-config.
22118See the pkg-config man page for more details.
22119
22120To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22121See \`config.log' for more details." >&2;}
22122   { (exit 1); exit 1; }; }; }
22123else
22124	GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
22125	GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
22126        { $as_echo "$as_me:$LINENO: result: yes" >&5
22127$as_echo "yes" >&6; }
22128	:
22129fi
22130
22131
22132fi
22133 if test "x$HAVE_GOBJECT" = "xyes"; then
22134  HAVE_GOBJECT_TRUE=
22135  HAVE_GOBJECT_FALSE='#'
22136else
22137  HAVE_GOBJECT_TRUE='#'
22138  HAVE_GOBJECT_FALSE=
22139fi
22140
22141
22142#
22143# Check for Qt 3
22144#
22145# Check whether --enable-qt3 was given.
22146if test "${enable_qt3+set}" = set; then
22147  enableval=$enable_qt3; case "${enableval}" in
22148                yes) HAVE_QT3=yes ;;
22149                no)  HAVE_QT3=no ;;
22150                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-qt3" >&5
22151$as_echo "$as_me: error: bad value ${enableval} for --enable-qt3" >&2;}
22152   { (exit 1); exit 1; }; } ;;
22153        esac
22154else
22155  HAVE_QT3=yes
22156fi
22157
22158
22159if test "x$HAVE_QT3" = "xyes" ; then
22160
22161pkg_failed=no
22162{ $as_echo "$as_me:$LINENO: checking for QT3" >&5
22163$as_echo_n "checking for QT3... " >&6; }
22164
22165if test -n "$QT3_CFLAGS"; then
22166    pkg_cv_QT3_CFLAGS="$QT3_CFLAGS"
22167 elif test -n "$PKG_CONFIG"; then
22168    if test -n "$PKG_CONFIG" && \
22169    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" qt-mt >= 3.0.0 \"") >&5
22170  ($PKG_CONFIG --exists --print-errors " qt-mt >= 3.0.0 ") 2>&5
22171  ac_status=$?
22172  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173  (exit $ac_status); }; then
22174  pkg_cv_QT3_CFLAGS=`$PKG_CONFIG --cflags " qt-mt >= 3.0.0 " 2>/dev/null`
22175else
22176  pkg_failed=yes
22177fi
22178 else
22179    pkg_failed=untried
22180fi
22181if test -n "$QT3_LIBS"; then
22182    pkg_cv_QT3_LIBS="$QT3_LIBS"
22183 elif test -n "$PKG_CONFIG"; then
22184    if test -n "$PKG_CONFIG" && \
22185    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" qt-mt >= 3.0.0 \"") >&5
22186  ($PKG_CONFIG --exists --print-errors " qt-mt >= 3.0.0 ") 2>&5
22187  ac_status=$?
22188  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189  (exit $ac_status); }; then
22190  pkg_cv_QT3_LIBS=`$PKG_CONFIG --libs " qt-mt >= 3.0.0 " 2>/dev/null`
22191else
22192  pkg_failed=yes
22193fi
22194 else
22195    pkg_failed=untried
22196fi
22197
22198
22199
22200if test $pkg_failed = yes; then
22201
22202if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22203        _pkg_short_errors_supported=yes
22204else
22205        _pkg_short_errors_supported=no
22206fi
22207        if test $_pkg_short_errors_supported = yes; then
22208	        QT3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " qt-mt >= 3.0.0 " 2>&1`
22209        else
22210	        QT3_PKG_ERRORS=`$PKG_CONFIG --print-errors " qt-mt >= 3.0.0 " 2>&1`
22211        fi
22212	# Put the nasty error message in config.log where it belongs
22213	echo "$QT3_PKG_ERRORS" >&5
22214
22215	{ { $as_echo "$as_me:$LINENO: error: Package requirements ( qt-mt >= 3.0.0 ) were not met:
22216
22217$QT3_PKG_ERRORS
22218
22219Consider adjusting the PKG_CONFIG_PATH environment variable if you
22220installed software in a non-standard prefix.
22221
22222Alternatively, you may set the environment variables QT3_CFLAGS
22223and QT3_LIBS to avoid the need to call pkg-config.
22224See the pkg-config man page for more details.
22225" >&5
22226$as_echo "$as_me: error: Package requirements ( qt-mt >= 3.0.0 ) were not met:
22227
22228$QT3_PKG_ERRORS
22229
22230Consider adjusting the PKG_CONFIG_PATH environment variable if you
22231installed software in a non-standard prefix.
22232
22233Alternatively, you may set the environment variables QT3_CFLAGS
22234and QT3_LIBS to avoid the need to call pkg-config.
22235See the pkg-config man page for more details.
22236" >&2;}
22237   { (exit 1); exit 1; }; }
22238elif test $pkg_failed = untried; then
22239	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22241{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22242is in your PATH or set the PKG_CONFIG environment variable to the full
22243path to pkg-config.
22244
22245Alternatively, you may set the environment variables QT3_CFLAGS
22246and QT3_LIBS to avoid the need to call pkg-config.
22247See the pkg-config man page for more details.
22248
22249To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22250See \`config.log' for more details." >&5
22251$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22252is in your PATH or set the PKG_CONFIG environment variable to the full
22253path to pkg-config.
22254
22255Alternatively, you may set the environment variables QT3_CFLAGS
22256and QT3_LIBS to avoid the need to call pkg-config.
22257See the pkg-config man page for more details.
22258
22259To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22260See \`config.log' for more details." >&2;}
22261   { (exit 1); exit 1; }; }; }
22262else
22263	QT3_CFLAGS=$pkg_cv_QT3_CFLAGS
22264	QT3_LIBS=$pkg_cv_QT3_LIBS
22265        { $as_echo "$as_me:$LINENO: result: yes" >&5
22266$as_echo "yes" >&6; }
22267	:
22268fi
22269
22270
22271	    QT3_PREFIX="`$PKG_CONFIG --variable=prefix qt-mt`/bin"
22272        for ac_prog in moc-qt3 moc
22273do
22274  # Extract the first word of "$ac_prog", so it can be a program name with args.
22275set dummy $ac_prog; ac_word=$2
22276{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22277$as_echo_n "checking for $ac_word... " >&6; }
22278if test "${ac_cv_path_MOC_QT3+set}" = set; then
22279  $as_echo_n "(cached) " >&6
22280else
22281  case $MOC_QT3 in
22282  [\\/]* | ?:[\\/]*)
22283  ac_cv_path_MOC_QT3="$MOC_QT3" # Let the user override the test with a path.
22284  ;;
22285  *)
22286  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22287for as_dir in $QT3_PREFIX
22288do
22289  IFS=$as_save_IFS
22290  test -z "$as_dir" && as_dir=.
22291  for ac_exec_ext in '' $ac_executable_extensions; do
22292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22293    ac_cv_path_MOC_QT3="$as_dir/$ac_word$ac_exec_ext"
22294    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22295    break 2
22296  fi
22297done
22298done
22299IFS=$as_save_IFS
22300
22301  ;;
22302esac
22303fi
22304MOC_QT3=$ac_cv_path_MOC_QT3
22305if test -n "$MOC_QT3"; then
22306  { $as_echo "$as_me:$LINENO: result: $MOC_QT3" >&5
22307$as_echo "$MOC_QT3" >&6; }
22308else
22309  { $as_echo "$as_me:$LINENO: result: no" >&5
22310$as_echo "no" >&6; }
22311fi
22312
22313
22314  test -n "$MOC_QT3" && break
22315done
22316test -n "$MOC_QT3" || MOC_QT3="no"
22317
22318        if test "$MOC_QT3" = no; then
22319            { { $as_echo "$as_me:$LINENO: error: Could not find QT3 moc" >&5
22320$as_echo "$as_me: error: Could not find QT3 moc" >&2;}
22321   { (exit 1); exit 1; }; }
22322        fi
22323
22324fi
22325 if test "x$HAVE_QT3" = "xyes"; then
22326  HAVE_QT3_TRUE=
22327  HAVE_QT3_FALSE='#'
22328else
22329  HAVE_QT3_TRUE='#'
22330  HAVE_QT3_FALSE=
22331fi
22332
22333
22334#
22335# Check for Qt 4
22336#
22337# Check whether --enable-qt4 was given.
22338if test "${enable_qt4+set}" = set; then
22339  enableval=$enable_qt4; case "${enableval}" in
22340                yes) HAVE_QT4=yes ;;
22341                no)  HAVE_QT4=no ;;
22342                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-qt4" >&5
22343$as_echo "$as_me: error: bad value ${enableval} for --enable-qt4" >&2;}
22344   { (exit 1); exit 1; }; } ;;
22345        esac
22346else
22347  HAVE_QT4=yes
22348fi
22349
22350
22351if test "x$HAVE_QT4" = "xyes" ; then
22352
22353pkg_failed=no
22354{ $as_echo "$as_me:$LINENO: checking for QT4" >&5
22355$as_echo_n "checking for QT4... " >&6; }
22356
22357if test -n "$QT4_CFLAGS"; then
22358    pkg_cv_QT4_CFLAGS="$QT4_CFLAGS"
22359 elif test -n "$PKG_CONFIG"; then
22360    if test -n "$PKG_CONFIG" && \
22361    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" QtCore >= 4.0.0 \"") >&5
22362  ($PKG_CONFIG --exists --print-errors " QtCore >= 4.0.0 ") 2>&5
22363  ac_status=$?
22364  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365  (exit $ac_status); }; then
22366  pkg_cv_QT4_CFLAGS=`$PKG_CONFIG --cflags " QtCore >= 4.0.0 " 2>/dev/null`
22367else
22368  pkg_failed=yes
22369fi
22370 else
22371    pkg_failed=untried
22372fi
22373if test -n "$QT4_LIBS"; then
22374    pkg_cv_QT4_LIBS="$QT4_LIBS"
22375 elif test -n "$PKG_CONFIG"; then
22376    if test -n "$PKG_CONFIG" && \
22377    { ($as_echo "$as_me:$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:$LINENO: \$? = $ac_status" >&5
22381  (exit $ac_status); }; then
22382  pkg_cv_QT4_LIBS=`$PKG_CONFIG --libs " QtCore >= 4.0.0 " 2>/dev/null`
22383else
22384  pkg_failed=yes
22385fi
22386 else
22387    pkg_failed=untried
22388fi
22389
22390
22391
22392if test $pkg_failed = yes; then
22393
22394if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22395        _pkg_short_errors_supported=yes
22396else
22397        _pkg_short_errors_supported=no
22398fi
22399        if test $_pkg_short_errors_supported = yes; then
22400	        QT4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " QtCore >= 4.0.0 " 2>&1`
22401        else
22402	        QT4_PKG_ERRORS=`$PKG_CONFIG --print-errors " QtCore >= 4.0.0 " 2>&1`
22403        fi
22404	# Put the nasty error message in config.log where it belongs
22405	echo "$QT4_PKG_ERRORS" >&5
22406
22407	{ { $as_echo "$as_me:$LINENO: error: Package requirements ( QtCore >= 4.0.0 ) were not met:
22408
22409$QT4_PKG_ERRORS
22410
22411Consider adjusting the PKG_CONFIG_PATH environment variable if you
22412installed software in a non-standard prefix.
22413
22414Alternatively, you may set the environment variables QT4_CFLAGS
22415and QT4_LIBS to avoid the need to call pkg-config.
22416See the pkg-config man page for more details.
22417" >&5
22418$as_echo "$as_me: error: Package requirements ( QtCore >= 4.0.0 ) were not met:
22419
22420$QT4_PKG_ERRORS
22421
22422Consider adjusting the PKG_CONFIG_PATH environment variable if you
22423installed software in a non-standard prefix.
22424
22425Alternatively, you may set the environment variables QT4_CFLAGS
22426and QT4_LIBS to avoid the need to call pkg-config.
22427See the pkg-config man page for more details.
22428" >&2;}
22429   { (exit 1); exit 1; }; }
22430elif test $pkg_failed = untried; then
22431	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22433{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22434is in your PATH or set the PKG_CONFIG environment variable to the full
22435path to pkg-config.
22436
22437Alternatively, you may set the environment variables QT4_CFLAGS
22438and QT4_LIBS to avoid the need to call pkg-config.
22439See the pkg-config man page for more details.
22440
22441To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22442See \`config.log' for more details." >&5
22443$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22444is in your PATH or set the PKG_CONFIG environment variable to the full
22445path to pkg-config.
22446
22447Alternatively, you may set the environment variables QT4_CFLAGS
22448and QT4_LIBS to avoid the need to call pkg-config.
22449See the pkg-config man page for more details.
22450
22451To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22452See \`config.log' for more details." >&2;}
22453   { (exit 1); exit 1; }; }; }
22454else
22455	QT4_CFLAGS=$pkg_cv_QT4_CFLAGS
22456	QT4_LIBS=$pkg_cv_QT4_LIBS
22457        { $as_echo "$as_me:$LINENO: result: yes" >&5
22458$as_echo "yes" >&6; }
22459	:
22460fi
22461
22462
22463	    QT4_PREFIX="`$PKG_CONFIG --variable=prefix QtCore`/bin"
22464        for ac_prog in moc-qt4 moc
22465do
22466  # Extract the first word of "$ac_prog", so it can be a program name with args.
22467set dummy $ac_prog; ac_word=$2
22468{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22469$as_echo_n "checking for $ac_word... " >&6; }
22470if test "${ac_cv_path_MOC_QT4+set}" = set; then
22471  $as_echo_n "(cached) " >&6
22472else
22473  case $MOC_QT4 in
22474  [\\/]* | ?:[\\/]*)
22475  ac_cv_path_MOC_QT4="$MOC_QT4" # Let the user override the test with a path.
22476  ;;
22477  *)
22478  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22479for as_dir in $QT4_PREFIX
22480do
22481  IFS=$as_save_IFS
22482  test -z "$as_dir" && as_dir=.
22483  for ac_exec_ext in '' $ac_executable_extensions; do
22484  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22485    ac_cv_path_MOC_QT4="$as_dir/$ac_word$ac_exec_ext"
22486    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22487    break 2
22488  fi
22489done
22490done
22491IFS=$as_save_IFS
22492
22493  ;;
22494esac
22495fi
22496MOC_QT4=$ac_cv_path_MOC_QT4
22497if test -n "$MOC_QT4"; then
22498  { $as_echo "$as_me:$LINENO: result: $MOC_QT4" >&5
22499$as_echo "$MOC_QT4" >&6; }
22500else
22501  { $as_echo "$as_me:$LINENO: result: no" >&5
22502$as_echo "no" >&6; }
22503fi
22504
22505
22506  test -n "$MOC_QT4" && break
22507done
22508test -n "$MOC_QT4" || MOC_QT4="no"
22509
22510        if test "$MOC_QT4" = no; then
22511            { { $as_echo "$as_me:$LINENO: error: Could not find QT4 moc" >&5
22512$as_echo "$as_me: error: Could not find QT4 moc" >&2;}
22513   { (exit 1); exit 1; }; }
22514        fi
22515
22516fi
22517 if test "x$HAVE_QT4" = "xyes"; then
22518  HAVE_QT4_TRUE=
22519  HAVE_QT4_FALSE='#'
22520else
22521  HAVE_QT4_TRUE='#'
22522  HAVE_QT4_FALSE=
22523fi
22524
22525
22526#
22527# Check for GTK+
22528#
22529# Check whether --enable-gtk was given.
22530if test "${enable_gtk+set}" = set; then
22531  enableval=$enable_gtk; case "${enableval}" in
22532                yes) HAVE_GTK=yes ;;
22533                no)  HAVE_GTK=no ;;
22534                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-gtk" >&5
22535$as_echo "$as_me: error: bad value ${enableval} for --enable-gtk" >&2;}
22536   { (exit 1); exit 1; }; } ;;
22537        esac
22538else
22539  HAVE_GTK=yes
22540fi
22541
22542
22543if test "x$HAVE_GTK" = "xyes" ; then
22544        # Check for GTK 2.0
22545
22546pkg_failed=no
22547{ $as_echo "$as_me:$LINENO: checking for GTK20" >&5
22548$as_echo_n "checking for GTK20... " >&6; }
22549
22550if test -n "$GTK20_CFLAGS"; then
22551    pkg_cv_GTK20_CFLAGS="$GTK20_CFLAGS"
22552 elif test -n "$PKG_CONFIG"; then
22553    if test -n "$PKG_CONFIG" && \
22554    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0 >= 2.4.0 \"") >&5
22555  ($PKG_CONFIG --exists --print-errors " gtk+-2.0 >= 2.4.0 ") 2>&5
22556  ac_status=$?
22557  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558  (exit $ac_status); }; then
22559  pkg_cv_GTK20_CFLAGS=`$PKG_CONFIG --cflags " gtk+-2.0 >= 2.4.0 " 2>/dev/null`
22560else
22561  pkg_failed=yes
22562fi
22563 else
22564    pkg_failed=untried
22565fi
22566if test -n "$GTK20_LIBS"; then
22567    pkg_cv_GTK20_LIBS="$GTK20_LIBS"
22568 elif test -n "$PKG_CONFIG"; then
22569    if test -n "$PKG_CONFIG" && \
22570    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0 >= 2.4.0 \"") >&5
22571  ($PKG_CONFIG --exists --print-errors " gtk+-2.0 >= 2.4.0 ") 2>&5
22572  ac_status=$?
22573  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574  (exit $ac_status); }; then
22575  pkg_cv_GTK20_LIBS=`$PKG_CONFIG --libs " gtk+-2.0 >= 2.4.0 " 2>/dev/null`
22576else
22577  pkg_failed=yes
22578fi
22579 else
22580    pkg_failed=untried
22581fi
22582
22583
22584
22585if test $pkg_failed = yes; then
22586
22587if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22588        _pkg_short_errors_supported=yes
22589else
22590        _pkg_short_errors_supported=no
22591fi
22592        if test $_pkg_short_errors_supported = yes; then
22593	        GTK20_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " gtk+-2.0 >= 2.4.0 " 2>&1`
22594        else
22595	        GTK20_PKG_ERRORS=`$PKG_CONFIG --print-errors " gtk+-2.0 >= 2.4.0 " 2>&1`
22596        fi
22597	# Put the nasty error message in config.log where it belongs
22598	echo "$GTK20_PKG_ERRORS" >&5
22599
22600	{ { $as_echo "$as_me:$LINENO: error: Package requirements ( gtk+-2.0 >= 2.4.0 ) were not met:
22601
22602$GTK20_PKG_ERRORS
22603
22604Consider adjusting the PKG_CONFIG_PATH environment variable if you
22605installed software in a non-standard prefix.
22606
22607Alternatively, you may set the environment variables GTK20_CFLAGS
22608and GTK20_LIBS to avoid the need to call pkg-config.
22609See the pkg-config man page for more details.
22610" >&5
22611$as_echo "$as_me: error: Package requirements ( gtk+-2.0 >= 2.4.0 ) were not met:
22612
22613$GTK20_PKG_ERRORS
22614
22615Consider adjusting the PKG_CONFIG_PATH environment variable if you
22616installed software in a non-standard prefix.
22617
22618Alternatively, you may set the environment variables GTK20_CFLAGS
22619and GTK20_LIBS to avoid the need to call pkg-config.
22620See the pkg-config man page for more details.
22621" >&2;}
22622   { (exit 1); exit 1; }; }
22623elif test $pkg_failed = untried; then
22624	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22626{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22627is in your PATH or set the PKG_CONFIG environment variable to the full
22628path to pkg-config.
22629
22630Alternatively, you may set the environment variables GTK20_CFLAGS
22631and GTK20_LIBS to avoid the need to call pkg-config.
22632See the pkg-config man page for more details.
22633
22634To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22635See \`config.log' for more details." >&5
22636$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22637is in your PATH or set the PKG_CONFIG environment variable to the full
22638path to pkg-config.
22639
22640Alternatively, you may set the environment variables GTK20_CFLAGS
22641and GTK20_LIBS to avoid the need to call pkg-config.
22642See the pkg-config man page for more details.
22643
22644To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22645See \`config.log' for more details." >&2;}
22646   { (exit 1); exit 1; }; }; }
22647else
22648	GTK20_CFLAGS=$pkg_cv_GTK20_CFLAGS
22649	GTK20_LIBS=$pkg_cv_GTK20_LIBS
22650        { $as_echo "$as_me:$LINENO: result: yes" >&5
22651$as_echo "yes" >&6; }
22652	:
22653fi
22654
22655
22656
22657        # Check for GLADE 2.0
22658
22659pkg_failed=no
22660{ $as_echo "$as_me:$LINENO: checking for GLADE20" >&5
22661$as_echo_n "checking for GLADE20... " >&6; }
22662
22663if test -n "$GLADE20_CFLAGS"; then
22664    pkg_cv_GLADE20_CFLAGS="$GLADE20_CFLAGS"
22665 elif test -n "$PKG_CONFIG"; then
22666    if test -n "$PKG_CONFIG" && \
22667    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" libglade-2.0 >= 2.4.0 \"") >&5
22668  ($PKG_CONFIG --exists --print-errors " libglade-2.0 >= 2.4.0 ") 2>&5
22669  ac_status=$?
22670  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671  (exit $ac_status); }; then
22672  pkg_cv_GLADE20_CFLAGS=`$PKG_CONFIG --cflags " libglade-2.0 >= 2.4.0 " 2>/dev/null`
22673else
22674  pkg_failed=yes
22675fi
22676 else
22677    pkg_failed=untried
22678fi
22679if test -n "$GLADE20_LIBS"; then
22680    pkg_cv_GLADE20_LIBS="$GLADE20_LIBS"
22681 elif test -n "$PKG_CONFIG"; then
22682    if test -n "$PKG_CONFIG" && \
22683    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" libglade-2.0 >= 2.4.0 \"") >&5
22684  ($PKG_CONFIG --exists --print-errors " libglade-2.0 >= 2.4.0 ") 2>&5
22685  ac_status=$?
22686  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687  (exit $ac_status); }; then
22688  pkg_cv_GLADE20_LIBS=`$PKG_CONFIG --libs " libglade-2.0 >= 2.4.0 " 2>/dev/null`
22689else
22690  pkg_failed=yes
22691fi
22692 else
22693    pkg_failed=untried
22694fi
22695
22696
22697
22698if test $pkg_failed = yes; then
22699
22700if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22701        _pkg_short_errors_supported=yes
22702else
22703        _pkg_short_errors_supported=no
22704fi
22705        if test $_pkg_short_errors_supported = yes; then
22706	        GLADE20_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " libglade-2.0 >= 2.4.0 " 2>&1`
22707        else
22708	        GLADE20_PKG_ERRORS=`$PKG_CONFIG --print-errors " libglade-2.0 >= 2.4.0 " 2>&1`
22709        fi
22710	# Put the nasty error message in config.log where it belongs
22711	echo "$GLADE20_PKG_ERRORS" >&5
22712
22713	{ { $as_echo "$as_me:$LINENO: error: Package requirements ( libglade-2.0 >= 2.4.0 ) were not met:
22714
22715$GLADE20_PKG_ERRORS
22716
22717Consider adjusting the PKG_CONFIG_PATH environment variable if you
22718installed software in a non-standard prefix.
22719
22720Alternatively, you may set the environment variables GLADE20_CFLAGS
22721and GLADE20_LIBS to avoid the need to call pkg-config.
22722See the pkg-config man page for more details.
22723" >&5
22724$as_echo "$as_me: error: Package requirements ( libglade-2.0 >= 2.4.0 ) were not met:
22725
22726$GLADE20_PKG_ERRORS
22727
22728Consider adjusting the PKG_CONFIG_PATH environment variable if you
22729installed software in a non-standard prefix.
22730
22731Alternatively, you may set the environment variables GLADE20_CFLAGS
22732and GLADE20_LIBS to avoid the need to call pkg-config.
22733See the pkg-config man page for more details.
22734" >&2;}
22735   { (exit 1); exit 1; }; }
22736elif test $pkg_failed = untried; then
22737	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22739{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22740is in your PATH or set the PKG_CONFIG environment variable to the full
22741path to pkg-config.
22742
22743Alternatively, you may set the environment variables GLADE20_CFLAGS
22744and GLADE20_LIBS to avoid the need to call pkg-config.
22745See the pkg-config man page for more details.
22746
22747To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22748See \`config.log' for more details." >&5
22749$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22750is in your PATH or set the PKG_CONFIG environment variable to the full
22751path to pkg-config.
22752
22753Alternatively, you may set the environment variables GLADE20_CFLAGS
22754and GLADE20_LIBS to avoid the need to call pkg-config.
22755See the pkg-config man page for more details.
22756
22757To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22758See \`config.log' for more details." >&2;}
22759   { (exit 1); exit 1; }; }; }
22760else
22761	GLADE20_CFLAGS=$pkg_cv_GLADE20_CFLAGS
22762	GLADE20_LIBS=$pkg_cv_GLADE20_LIBS
22763        { $as_echo "$as_me:$LINENO: result: yes" >&5
22764$as_echo "yes" >&6; }
22765	:
22766fi
22767
22768
22769fi
22770 if test "x$HAVE_GTK" = "xyes"; then
22771  HAVE_GTK_TRUE=
22772  HAVE_GTK_FALSE='#'
22773else
22774  HAVE_GTK_TRUE='#'
22775  HAVE_GTK_FALSE=
22776fi
22777
22778
22779#
22780# D-Bus
22781#
22782# Check whether --enable-dbus was given.
22783if test "${enable_dbus+set}" = set; then
22784  enableval=$enable_dbus; case "${enableval}" in
22785                yes) HAVE_DBUS=yes ;;
22786                no)  HAVE_DBUS=no ;;
22787                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dbus" >&5
22788$as_echo "$as_me: error: bad value ${enableval} for --enable-dbus" >&2;}
22789   { (exit 1); exit 1; }; } ;;
22790        esac
22791else
22792  HAVE_DBUS=yes
22793fi
22794
22795
22796
22797# Check whether --with-dbus-sys was given.
22798if test "${with_dbus_sys+set}" = set; then
22799  withval=$with_dbus_sys;
22800fi
22801
22802
22803# Check whether --with-dbus-system-socket was given.
22804if test "${with_dbus_system_socket+set}" = set; then
22805  withval=$with_dbus_system_socket;
22806fi
22807
22808
22809DBUS_VERSION="Disabled"
22810DBUS_SYS_DIR="Disabled"
22811DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="Disabled"
22812if test "x$HAVE_DBUS" = "xyes" ; then
22813
22814pkg_failed=no
22815{ $as_echo "$as_me:$LINENO: checking for DBUS" >&5
22816$as_echo_n "checking for DBUS... " >&6; }
22817
22818if test -n "$DBUS_CFLAGS"; then
22819    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
22820 elif test -n "$PKG_CONFIG"; then
22821    if test -n "$PKG_CONFIG" && \
22822    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" dbus-1 >= 0.34 \"") >&5
22823  ($PKG_CONFIG --exists --print-errors " dbus-1 >= 0.34 ") 2>&5
22824  ac_status=$?
22825  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826  (exit $ac_status); }; then
22827  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags " dbus-1 >= 0.34 " 2>/dev/null`
22828else
22829  pkg_failed=yes
22830fi
22831 else
22832    pkg_failed=untried
22833fi
22834if test -n "$DBUS_LIBS"; then
22835    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
22836 elif test -n "$PKG_CONFIG"; then
22837    if test -n "$PKG_CONFIG" && \
22838    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" dbus-1 >= 0.34 \"") >&5
22839  ($PKG_CONFIG --exists --print-errors " dbus-1 >= 0.34 ") 2>&5
22840  ac_status=$?
22841  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842  (exit $ac_status); }; then
22843  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs " dbus-1 >= 0.34 " 2>/dev/null`
22844else
22845  pkg_failed=yes
22846fi
22847 else
22848    pkg_failed=untried
22849fi
22850
22851
22852
22853if test $pkg_failed = yes; then
22854
22855if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22856        _pkg_short_errors_supported=yes
22857else
22858        _pkg_short_errors_supported=no
22859fi
22860        if test $_pkg_short_errors_supported = yes; then
22861	        DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " dbus-1 >= 0.34 " 2>&1`
22862        else
22863	        DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors " dbus-1 >= 0.34 " 2>&1`
22864        fi
22865	# Put the nasty error message in config.log where it belongs
22866	echo "$DBUS_PKG_ERRORS" >&5
22867
22868	{ { $as_echo "$as_me:$LINENO: error: Package requirements ( dbus-1 >= 0.34 ) were not met:
22869
22870$DBUS_PKG_ERRORS
22871
22872Consider adjusting the PKG_CONFIG_PATH environment variable if you
22873installed software in a non-standard prefix.
22874
22875Alternatively, you may set the environment variables DBUS_CFLAGS
22876and DBUS_LIBS to avoid the need to call pkg-config.
22877See the pkg-config man page for more details.
22878" >&5
22879$as_echo "$as_me: error: Package requirements ( dbus-1 >= 0.34 ) were not met:
22880
22881$DBUS_PKG_ERRORS
22882
22883Consider adjusting the PKG_CONFIG_PATH environment variable if you
22884installed software in a non-standard prefix.
22885
22886Alternatively, you may set the environment variables DBUS_CFLAGS
22887and DBUS_LIBS to avoid the need to call pkg-config.
22888See the pkg-config man page for more details.
22889" >&2;}
22890   { (exit 1); exit 1; }; }
22891elif test $pkg_failed = untried; then
22892	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22894{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22895is in your PATH or set the PKG_CONFIG environment variable to the full
22896path to pkg-config.
22897
22898Alternatively, you may set the environment variables DBUS_CFLAGS
22899and DBUS_LIBS to avoid the need to call pkg-config.
22900See the pkg-config man page for more details.
22901
22902To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22903See \`config.log' for more details." >&5
22904$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22905is in your PATH or set the PKG_CONFIG environment variable to the full
22906path to pkg-config.
22907
22908Alternatively, you may set the environment variables DBUS_CFLAGS
22909and DBUS_LIBS to avoid the need to call pkg-config.
22910See the pkg-config man page for more details.
22911
22912To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22913See \`config.log' for more details." >&2;}
22914   { (exit 1); exit 1; }; }; }
22915else
22916	DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
22917	DBUS_LIBS=$pkg_cv_DBUS_LIBS
22918        { $as_echo "$as_me:$LINENO: result: yes" >&5
22919$as_echo "yes" >&6; }
22920	:
22921fi
22922
22923
22924cat >>confdefs.h <<\_ACEOF
22925#define HAVE_DBUS 1
22926_ACEOF
22927
22928
22929    DBUS_VERSION=`$PKG_CONFIG dbus-1 --modversion`
22930    DBUS_VERSION_MAJOR=`echo $DBUS_VERSION | awk -F. '{print $1}'`
22931    DBUS_VERSION_MINOR=`echo $DBUS_VERSION | awk -F. '{print $2}'`
22932    DBUS_VERSION_MICRO=`echo $DBUS_VERSION | awk -F. '{print $3}'`
22933    if test "z$DBUS_VERSION_MAJOR" = "z"; then
22934        DBUS_VERSION_MAJOR="0"
22935    fi
22936    if test "z$DBUS_VERSION_MINOR" = "z"; then
22937        DBUS_VERSION_MINOR="0"
22938    fi
22939    if test "z$DBUS_VERSION_MICRO" = "z"; then
22940        DBUS_VERSION_MICRO="0"
22941    fi
22942
22943    if test "z$DBUS_VERSION_MAJOR" = "z0" -a "z$DBUS_VERSION_MINOR" = "z0" -a "z$DBUS_VERSION_MICRO" = "z0"; then
22944        echo "Error: Couldn't determine the version of your D-Bus package."
22945        echo "  This is probably an error in this script, please report it"
22946        echo "  along with the following information:"
22947        echo "      Base D-Buss version ='$DBUS_VERSION'"
22948        echo "      DBUS_VERSION_MAJOR='$DBUS_VERSION_MAJOR'"
22949        echo "      DBUS_VERSION_MINOR='$DBUS_VERSION_MINOR'"
22950        echo "      DBUS_VERSION_MICRO='$DBUS_VERSION_MICRO'"
22951        exit 1
22952    else
22953        echo "Your D-Bus version is $DBUS_VERSION_MAJOR,$DBUS_VERSION_MINOR,$DBUS_VERSION_MICRO."
22954        DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MAJOR=$DBUS_VERSION_MAJOR"
22955        DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MINOR=$DBUS_VERSION_MINOR"
22956        DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MICRO=$DBUS_VERSION_MICRO"
22957    fi
22958
22959    DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
22960
22961
22962
22963    if ! test -z "$with_dbus_sys" ; then
22964        DBUS_SYS_DIR="$with_dbus_sys"
22965    else
22966        DBUS_SYS_DIR="${sysconfdir}/dbus-1/system.d"
22967    fi
22968
22969
22970    if ! test -z "$with_dbus_system_address" ; then
22971        DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="$with_dbus_system_address"
22972    else
22973        # This is ugly, but D-Bus doesn't export this address for us
22974        # so we have to guess, pretty much all setups i've seen have
22975        # it in /var/lib/dbus or /var/run/dbus, and its defaulted to
22976        # /var/run upstream so we will try guess first then default
22977        # to /var/run/dbus.
22978
22979        DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="unix:path=/var/run/dbus/system_bus_socket"
22980        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"
22981        for sock in $TRY_SOCKETS; do
22982            if test -S $sock; then
22983                DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="unix:path=$sock"
22984            fi
22985        done
22986    fi
22987
22988
22989    SAVED_LIBS="$LIBS"
22990    LIBS="$LIBS $DBUS_LIBS"
22991
22992
22993for ac_func in dbus_connection_close dbus_bus_get_private
22994do
22995as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22996{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22997$as_echo_n "checking for $ac_func... " >&6; }
22998if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22999  $as_echo_n "(cached) " >&6
23000else
23001  cat >conftest.$ac_ext <<_ACEOF
23002/* confdefs.h.  */
23003_ACEOF
23004cat confdefs.h >>conftest.$ac_ext
23005cat >>conftest.$ac_ext <<_ACEOF
23006/* end confdefs.h.  */
23007/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23008   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23009#define $ac_func innocuous_$ac_func
23010
23011/* System header to define __stub macros and hopefully few prototypes,
23012    which can conflict with char $ac_func (); below.
23013    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23014    <limits.h> exists even on freestanding compilers.  */
23015
23016#ifdef __STDC__
23017# include <limits.h>
23018#else
23019# include <assert.h>
23020#endif
23021
23022#undef $ac_func
23023
23024/* Override any GCC internal prototype to avoid an error.
23025   Use char because int might match the return type of a GCC
23026   builtin and then its argument prototype would still apply.  */
23027#ifdef __cplusplus
23028extern "C"
23029#endif
23030char $ac_func ();
23031/* The GNU C library defines this for functions which it implements
23032    to always fail with ENOSYS.  Some functions are actually named
23033    something starting with __ and the normal name is an alias.  */
23034#if defined __stub_$ac_func || defined __stub___$ac_func
23035choke me
23036#endif
23037
23038int
23039main ()
23040{
23041return $ac_func ();
23042  ;
23043  return 0;
23044}
23045_ACEOF
23046rm -f conftest.$ac_objext conftest$ac_exeext
23047if { (ac_try="$ac_link"
23048case "(($ac_try" in
23049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23050  *) ac_try_echo=$ac_try;;
23051esac
23052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23053$as_echo "$ac_try_echo") >&5
23054  (eval "$ac_link") 2>conftest.er1
23055  ac_status=$?
23056  grep -v '^ *+' conftest.er1 >conftest.err
23057  rm -f conftest.er1
23058  cat conftest.err >&5
23059  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060  (exit $ac_status); } && {
23061	 test -z "$ac_c_werror_flag" ||
23062	 test ! -s conftest.err
23063       } && test -s conftest$ac_exeext && {
23064	 test "$cross_compiling" = yes ||
23065	 $as_test_x conftest$ac_exeext
23066       }; then
23067  eval "$as_ac_var=yes"
23068else
23069  $as_echo "$as_me: failed program was:" >&5
23070sed 's/^/| /' conftest.$ac_ext >&5
23071
23072	eval "$as_ac_var=no"
23073fi
23074
23075rm -rf conftest.dSYM
23076rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23077      conftest$ac_exeext conftest.$ac_ext
23078fi
23079ac_res=`eval 'as_val=${'$as_ac_var'}
23080		 $as_echo "$as_val"'`
23081	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23082$as_echo "$ac_res" >&6; }
23083as_val=`eval 'as_val=${'$as_ac_var'}
23084		 $as_echo "$as_val"'`
23085   if test "x$as_val" = x""yes; then
23086  cat >>confdefs.h <<_ACEOF
23087#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23088_ACEOF
23089
23090fi
23091done
23092
23093    LIBS="$SAVED_LIBS"
23094fi
23095 if test "x$HAVE_DBUS" = "xyes"; then
23096  HAVE_DBUS_TRUE=
23097  HAVE_DBUS_FALSE='#'
23098else
23099  HAVE_DBUS_TRUE='#'
23100  HAVE_DBUS_FALSE=
23101fi
23102
23103
23104#
23105# Expat
23106#
23107
23108# Check whether --with-xml was given.
23109if test "${with_xml+set}" = set; then
23110  withval=$with_xml;
23111fi
23112
23113use_expat=false
23114use_bsdxml=false
23115
23116# See what we have
23117{ $as_echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23118$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
23119if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23120  $as_echo_n "(cached) " >&6
23121else
23122  ac_check_lib_save_LIBS=$LIBS
23123LIBS="-lexpat  $LIBS"
23124cat >conftest.$ac_ext <<_ACEOF
23125/* confdefs.h.  */
23126_ACEOF
23127cat confdefs.h >>conftest.$ac_ext
23128cat >>conftest.$ac_ext <<_ACEOF
23129/* end confdefs.h.  */
23130
23131/* Override any GCC internal prototype to avoid an error.
23132   Use char because int might match the return type of a GCC
23133   builtin and then its argument prototype would still apply.  */
23134#ifdef __cplusplus
23135extern "C"
23136#endif
23137char XML_ParserCreate ();
23138int
23139main ()
23140{
23141return XML_ParserCreate ();
23142  ;
23143  return 0;
23144}
23145_ACEOF
23146rm -f conftest.$ac_objext conftest$ac_exeext
23147if { (ac_try="$ac_link"
23148case "(($ac_try" in
23149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23150  *) ac_try_echo=$ac_try;;
23151esac
23152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23153$as_echo "$ac_try_echo") >&5
23154  (eval "$ac_link") 2>conftest.er1
23155  ac_status=$?
23156  grep -v '^ *+' conftest.er1 >conftest.err
23157  rm -f conftest.er1
23158  cat conftest.err >&5
23159  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160  (exit $ac_status); } && {
23161	 test -z "$ac_c_werror_flag" ||
23162	 test ! -s conftest.err
23163       } && test -s conftest$ac_exeext && {
23164	 test "$cross_compiling" = yes ||
23165	 $as_test_x conftest$ac_exeext
23166       }; then
23167  ac_cv_lib_expat_XML_ParserCreate=yes
23168else
23169  $as_echo "$as_me: failed program was:" >&5
23170sed 's/^/| /' conftest.$ac_ext >&5
23171
23172	ac_cv_lib_expat_XML_ParserCreate=no
23173fi
23174
23175rm -rf conftest.dSYM
23176rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23177      conftest$ac_exeext conftest.$ac_ext
23178LIBS=$ac_check_lib_save_LIBS
23179fi
23180{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23181$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
23182if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then
23183
23184for ac_header in expat.h
23185do
23186as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23188  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23189$as_echo_n "checking for $ac_header... " >&6; }
23190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23191  $as_echo_n "(cached) " >&6
23192fi
23193ac_res=`eval 'as_val=${'$as_ac_Header'}
23194		 $as_echo "$as_val"'`
23195	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23196$as_echo "$ac_res" >&6; }
23197else
23198  # Is the header compilable?
23199{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23200$as_echo_n "checking $ac_header usability... " >&6; }
23201cat >conftest.$ac_ext <<_ACEOF
23202/* confdefs.h.  */
23203_ACEOF
23204cat confdefs.h >>conftest.$ac_ext
23205cat >>conftest.$ac_ext <<_ACEOF
23206/* end confdefs.h.  */
23207$ac_includes_default
23208#include <$ac_header>
23209_ACEOF
23210rm -f conftest.$ac_objext
23211if { (ac_try="$ac_compile"
23212case "(($ac_try" in
23213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214  *) ac_try_echo=$ac_try;;
23215esac
23216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23217$as_echo "$ac_try_echo") >&5
23218  (eval "$ac_compile") 2>conftest.er1
23219  ac_status=$?
23220  grep -v '^ *+' conftest.er1 >conftest.err
23221  rm -f conftest.er1
23222  cat conftest.err >&5
23223  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224  (exit $ac_status); } && {
23225	 test -z "$ac_c_werror_flag" ||
23226	 test ! -s conftest.err
23227       } && test -s conftest.$ac_objext; then
23228  ac_header_compiler=yes
23229else
23230  $as_echo "$as_me: failed program was:" >&5
23231sed 's/^/| /' conftest.$ac_ext >&5
23232
23233	ac_header_compiler=no
23234fi
23235
23236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23237{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23238$as_echo "$ac_header_compiler" >&6; }
23239
23240# Is the header present?
23241{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23242$as_echo_n "checking $ac_header presence... " >&6; }
23243cat >conftest.$ac_ext <<_ACEOF
23244/* confdefs.h.  */
23245_ACEOF
23246cat confdefs.h >>conftest.$ac_ext
23247cat >>conftest.$ac_ext <<_ACEOF
23248/* end confdefs.h.  */
23249#include <$ac_header>
23250_ACEOF
23251if { (ac_try="$ac_cpp conftest.$ac_ext"
23252case "(($ac_try" in
23253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254  *) ac_try_echo=$ac_try;;
23255esac
23256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23257$as_echo "$ac_try_echo") >&5
23258  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23259  ac_status=$?
23260  grep -v '^ *+' conftest.er1 >conftest.err
23261  rm -f conftest.er1
23262  cat conftest.err >&5
23263  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264  (exit $ac_status); } >/dev/null && {
23265	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23266	 test ! -s conftest.err
23267       }; then
23268  ac_header_preproc=yes
23269else
23270  $as_echo "$as_me: failed program was:" >&5
23271sed 's/^/| /' conftest.$ac_ext >&5
23272
23273  ac_header_preproc=no
23274fi
23275
23276rm -f conftest.err conftest.$ac_ext
23277{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23278$as_echo "$ac_header_preproc" >&6; }
23279
23280# So?  What about this header?
23281case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23282  yes:no: )
23283    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23284$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23285    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23286$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23287    ac_header_preproc=yes
23288    ;;
23289  no:yes:* )
23290    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23291$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23292    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23293$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23294    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23295$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23296    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23297$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23298    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23299$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23300    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23301$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23302    ( cat <<\_ASBOX
23303## ----------------------------------------------------------- ##
23304## Report this to avahi (at) lists (dot) freedesktop (dot) org ##
23305## ----------------------------------------------------------- ##
23306_ASBOX
23307     ) | sed "s/^/$as_me: WARNING:     /" >&2
23308    ;;
23309esac
23310{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23311$as_echo_n "checking for $ac_header... " >&6; }
23312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23313  $as_echo_n "(cached) " >&6
23314else
23315  eval "$as_ac_Header=\$ac_header_preproc"
23316fi
23317ac_res=`eval 'as_val=${'$as_ac_Header'}
23318		 $as_echo "$as_val"'`
23319	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23320$as_echo "$ac_res" >&6; }
23321
23322fi
23323as_val=`eval 'as_val=${'$as_ac_Header'}
23324		 $as_echo "$as_val"'`
23325   if test "x$as_val" = x""yes; then
23326  cat >>confdefs.h <<_ACEOF
23327#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23328_ACEOF
23329 have_expat=true
23330else
23331  have_expat=false
23332fi
23333
23334done
23335
23336else
23337  have_expat=false
23338fi
23339
23340{ $as_echo "$as_me:$LINENO: checking for XML_ParserCreate in -lbsdxml" >&5
23341$as_echo_n "checking for XML_ParserCreate in -lbsdxml... " >&6; }
23342if test "${ac_cv_lib_bsdxml_XML_ParserCreate+set}" = set; then
23343  $as_echo_n "(cached) " >&6
23344else
23345  ac_check_lib_save_LIBS=$LIBS
23346LIBS="-lbsdxml  $LIBS"
23347cat >conftest.$ac_ext <<_ACEOF
23348/* confdefs.h.  */
23349_ACEOF
23350cat confdefs.h >>conftest.$ac_ext
23351cat >>conftest.$ac_ext <<_ACEOF
23352/* end confdefs.h.  */
23353
23354/* Override any GCC internal prototype to avoid an error.
23355   Use char because int might match the return type of a GCC
23356   builtin and then its argument prototype would still apply.  */
23357#ifdef __cplusplus
23358extern "C"
23359#endif
23360char XML_ParserCreate ();
23361int
23362main ()
23363{
23364return XML_ParserCreate ();
23365  ;
23366  return 0;
23367}
23368_ACEOF
23369rm -f conftest.$ac_objext conftest$ac_exeext
23370if { (ac_try="$ac_link"
23371case "(($ac_try" in
23372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23373  *) ac_try_echo=$ac_try;;
23374esac
23375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23376$as_echo "$ac_try_echo") >&5
23377  (eval "$ac_link") 2>conftest.er1
23378  ac_status=$?
23379  grep -v '^ *+' conftest.er1 >conftest.err
23380  rm -f conftest.er1
23381  cat conftest.err >&5
23382  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383  (exit $ac_status); } && {
23384	 test -z "$ac_c_werror_flag" ||
23385	 test ! -s conftest.err
23386       } && test -s conftest$ac_exeext && {
23387	 test "$cross_compiling" = yes ||
23388	 $as_test_x conftest$ac_exeext
23389       }; then
23390  ac_cv_lib_bsdxml_XML_ParserCreate=yes
23391else
23392  $as_echo "$as_me: failed program was:" >&5
23393sed 's/^/| /' conftest.$ac_ext >&5
23394
23395	ac_cv_lib_bsdxml_XML_ParserCreate=no
23396fi
23397
23398rm -rf conftest.dSYM
23399rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23400      conftest$ac_exeext conftest.$ac_ext
23401LIBS=$ac_check_lib_save_LIBS
23402fi
23403{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsdxml_XML_ParserCreate" >&5
23404$as_echo "$ac_cv_lib_bsdxml_XML_ParserCreate" >&6; }
23405if test "x$ac_cv_lib_bsdxml_XML_ParserCreate" = x""yes; then
23406
23407for ac_header in bsdxml.h
23408do
23409as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23411  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23412$as_echo_n "checking for $ac_header... " >&6; }
23413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23414  $as_echo_n "(cached) " >&6
23415fi
23416ac_res=`eval 'as_val=${'$as_ac_Header'}
23417		 $as_echo "$as_val"'`
23418	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23419$as_echo "$ac_res" >&6; }
23420else
23421  # Is the header compilable?
23422{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23423$as_echo_n "checking $ac_header usability... " >&6; }
23424cat >conftest.$ac_ext <<_ACEOF
23425/* confdefs.h.  */
23426_ACEOF
23427cat confdefs.h >>conftest.$ac_ext
23428cat >>conftest.$ac_ext <<_ACEOF
23429/* end confdefs.h.  */
23430$ac_includes_default
23431#include <$ac_header>
23432_ACEOF
23433rm -f conftest.$ac_objext
23434if { (ac_try="$ac_compile"
23435case "(($ac_try" in
23436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23437  *) ac_try_echo=$ac_try;;
23438esac
23439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23440$as_echo "$ac_try_echo") >&5
23441  (eval "$ac_compile") 2>conftest.er1
23442  ac_status=$?
23443  grep -v '^ *+' conftest.er1 >conftest.err
23444  rm -f conftest.er1
23445  cat conftest.err >&5
23446  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447  (exit $ac_status); } && {
23448	 test -z "$ac_c_werror_flag" ||
23449	 test ! -s conftest.err
23450       } && test -s conftest.$ac_objext; then
23451  ac_header_compiler=yes
23452else
23453  $as_echo "$as_me: failed program was:" >&5
23454sed 's/^/| /' conftest.$ac_ext >&5
23455
23456	ac_header_compiler=no
23457fi
23458
23459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23460{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23461$as_echo "$ac_header_compiler" >&6; }
23462
23463# Is the header present?
23464{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23465$as_echo_n "checking $ac_header presence... " >&6; }
23466cat >conftest.$ac_ext <<_ACEOF
23467/* confdefs.h.  */
23468_ACEOF
23469cat confdefs.h >>conftest.$ac_ext
23470cat >>conftest.$ac_ext <<_ACEOF
23471/* end confdefs.h.  */
23472#include <$ac_header>
23473_ACEOF
23474if { (ac_try="$ac_cpp conftest.$ac_ext"
23475case "(($ac_try" in
23476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23477  *) ac_try_echo=$ac_try;;
23478esac
23479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23480$as_echo "$ac_try_echo") >&5
23481  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23482  ac_status=$?
23483  grep -v '^ *+' conftest.er1 >conftest.err
23484  rm -f conftest.er1
23485  cat conftest.err >&5
23486  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487  (exit $ac_status); } >/dev/null && {
23488	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23489	 test ! -s conftest.err
23490       }; then
23491  ac_header_preproc=yes
23492else
23493  $as_echo "$as_me: failed program was:" >&5
23494sed 's/^/| /' conftest.$ac_ext >&5
23495
23496  ac_header_preproc=no
23497fi
23498
23499rm -f conftest.err conftest.$ac_ext
23500{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23501$as_echo "$ac_header_preproc" >&6; }
23502
23503# So?  What about this header?
23504case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23505  yes:no: )
23506    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23507$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23508    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23509$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23510    ac_header_preproc=yes
23511    ;;
23512  no:yes:* )
23513    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23514$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23515    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23516$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23517    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23518$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23519    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23520$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23521    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23522$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23523    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23524$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23525    ( cat <<\_ASBOX
23526## ----------------------------------------------------------- ##
23527## Report this to avahi (at) lists (dot) freedesktop (dot) org ##
23528## ----------------------------------------------------------- ##
23529_ASBOX
23530     ) | sed "s/^/$as_me: WARNING:     /" >&2
23531    ;;
23532esac
23533{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23534$as_echo_n "checking for $ac_header... " >&6; }
23535if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23536  $as_echo_n "(cached) " >&6
23537else
23538  eval "$as_ac_Header=\$ac_header_preproc"
23539fi
23540ac_res=`eval 'as_val=${'$as_ac_Header'}
23541		 $as_echo "$as_val"'`
23542	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23543$as_echo "$ac_res" >&6; }
23544
23545fi
23546as_val=`eval 'as_val=${'$as_ac_Header'}
23547		 $as_echo "$as_val"'`
23548   if test "x$as_val" = x""yes; then
23549  cat >>confdefs.h <<_ACEOF
23550#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23551_ACEOF
23552 have_bsdxml=true
23553else
23554  have_bsdxml=false
23555fi
23556
23557done
23558
23559else
23560  have_bsdxml=false
23561fi
23562
23563
23564if test "x$with_xml" = "xnone"; then
23565        :
23566elif test "x$with_xml" = "xexpat"; then
23567	use_expat=true
23568	if ! $have_expat ; then
23569		{ { $as_echo "$as_me:$LINENO: error: *** libexpat requested, but not found ***" >&5
23570$as_echo "$as_me: error: *** libexpat requested, but not found ***" >&2;}
23571   { (exit 1); exit 1; }; }
23572	fi
23573elif test "x$with_xml" = "xbsdxml"; then
23574	use_bsdxml=true
23575	if ! $have_bsdxml ; then
23576		{ { $as_echo "$as_me:$LINENO: error: *** libbsdxml requested, but not found ***" >&5
23577$as_echo "$as_me: error: *** libbsdxml requested, but not found ***" >&2;}
23578   { (exit 1); exit 1; }; }
23579	fi
23580elif test "x$with_xml" != "x"; then
23581	{ { $as_echo "$as_me:$LINENO: error: *** unknown with-xml option ***" >&5
23582$as_echo "$as_me: error: *** unknown with-xml option ***" >&2;}
23583   { (exit 1); exit 1; }; }
23584else
23585	if $have_expat ; then
23586		use_expat=true
23587	elif $have_bsdxml ; then
23588		use_bsdxml=true
23589	else
23590		{ { $as_echo "$as_me:$LINENO: error: *** neither libexpat not libbsdxml could be found ***" >&5
23591$as_echo "$as_me: error: *** neither libexpat not libbsdxml could be found ***" >&2;}
23592   { (exit 1); exit 1; }; }
23593	fi
23594fi
23595
23596if $use_expat; then
23597	with_xml=expat
23598	XML_CFLAGS=-DUSE_EXPAT_H
23599	XML_LIBS=-lexpat
23600fi
23601if $use_bsdxml; then
23602	with_xml=bsdxml
23603	XML_CFLAGS=-DUSE_BSDXML_H
23604	XML_LIBS=-lbsdxml
23605fi
23606
23607
23608
23609if $use_expat || $use_bsdxml; then
23610	HAVE_XML=yes
23611fi
23612
23613 if test "x$HAVE_XML" = "xyes"; then
23614  HAVE_XML_TRUE=
23615  HAVE_XML_FALSE='#'
23616else
23617  HAVE_XML_TRUE='#'
23618  HAVE_XML_FALSE=
23619fi
23620
23621
23622#
23623# GDBM
23624#
23625#
23626# Check for dbm
23627#
23628# Check whether --enable-dbm was given.
23629if test "${enable_dbm+set}" = set; then
23630  enableval=$enable_dbm; case "${enableval}" in
23631                yes) HAVE_DBM=yes ;;
23632                no)  HAVE_DBM=no ;;
23633                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dbm" >&5
23634$as_echo "$as_me: error: bad value ${enableval} for --enable-dbm" >&2;}
23635   { (exit 1); exit 1; }; } ;;
23636        esac
23637else
23638  HAVE_DBM=no
23639fi
23640
23641
23642# Check whether --enable-gdbm was given.
23643if test "${enable_gdbm+set}" = set; then
23644  enableval=$enable_gdbm; case "${enableval}" in
23645                yes) HAVE_GDBM=yes ;;
23646                no)  HAVE_GDBM=no ;;
23647                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-gdbm" >&5
23648$as_echo "$as_me: error: bad value ${enableval} for --disable-gdbm" >&2;}
23649   { (exit 1); exit 1; }; } ;;
23650        esac
23651else
23652  HAVE_GDBM=yes
23653fi
23654
23655
23656if test "x$HAVE_GDBM" = "xyes" ; then
23657    if test "x$HAVE_DBM" = "xyes" ; then
23658        { { $as_echo "$as_me:$LINENO: error: *** --enable-gdbm and --enable-dbm both specified ***" >&5
23659$as_echo "$as_me: error: *** --enable-gdbm and --enable-dbm both specified ***" >&2;}
23660   { (exit 1); exit 1; }; }
23661    fi
23662    { $as_echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
23663$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
23664if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
23665  $as_echo_n "(cached) " >&6
23666else
23667  ac_check_lib_save_LIBS=$LIBS
23668LIBS="-lgdbm  $LIBS"
23669cat >conftest.$ac_ext <<_ACEOF
23670/* confdefs.h.  */
23671_ACEOF
23672cat confdefs.h >>conftest.$ac_ext
23673cat >>conftest.$ac_ext <<_ACEOF
23674/* end confdefs.h.  */
23675
23676/* Override any GCC internal prototype to avoid an error.
23677   Use char because int might match the return type of a GCC
23678   builtin and then its argument prototype would still apply.  */
23679#ifdef __cplusplus
23680extern "C"
23681#endif
23682char gdbm_open ();
23683int
23684main ()
23685{
23686return gdbm_open ();
23687  ;
23688  return 0;
23689}
23690_ACEOF
23691rm -f conftest.$ac_objext conftest$ac_exeext
23692if { (ac_try="$ac_link"
23693case "(($ac_try" in
23694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23695  *) ac_try_echo=$ac_try;;
23696esac
23697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23698$as_echo "$ac_try_echo") >&5
23699  (eval "$ac_link") 2>conftest.er1
23700  ac_status=$?
23701  grep -v '^ *+' conftest.er1 >conftest.err
23702  rm -f conftest.er1
23703  cat conftest.err >&5
23704  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705  (exit $ac_status); } && {
23706	 test -z "$ac_c_werror_flag" ||
23707	 test ! -s conftest.err
23708       } && test -s conftest$ac_exeext && {
23709	 test "$cross_compiling" = yes ||
23710	 $as_test_x conftest$ac_exeext
23711       }; then
23712  ac_cv_lib_gdbm_gdbm_open=yes
23713else
23714  $as_echo "$as_me: failed program was:" >&5
23715sed 's/^/| /' conftest.$ac_ext >&5
23716
23717	ac_cv_lib_gdbm_gdbm_open=no
23718fi
23719
23720rm -rf conftest.dSYM
23721rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23722      conftest$ac_exeext conftest.$ac_ext
23723LIBS=$ac_check_lib_save_LIBS
23724fi
23725{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
23726$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
23727if test "x$ac_cv_lib_gdbm_gdbm_open" = x""yes; then
23728
23729for ac_header in gdbm.h
23730do
23731as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23733  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23734$as_echo_n "checking for $ac_header... " >&6; }
23735if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23736  $as_echo_n "(cached) " >&6
23737fi
23738ac_res=`eval 'as_val=${'$as_ac_Header'}
23739		 $as_echo "$as_val"'`
23740	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23741$as_echo "$ac_res" >&6; }
23742else
23743  # Is the header compilable?
23744{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23745$as_echo_n "checking $ac_header usability... " >&6; }
23746cat >conftest.$ac_ext <<_ACEOF
23747/* confdefs.h.  */
23748_ACEOF
23749cat confdefs.h >>conftest.$ac_ext
23750cat >>conftest.$ac_ext <<_ACEOF
23751/* end confdefs.h.  */
23752$ac_includes_default
23753#include <$ac_header>
23754_ACEOF
23755rm -f conftest.$ac_objext
23756if { (ac_try="$ac_compile"
23757case "(($ac_try" in
23758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23759  *) ac_try_echo=$ac_try;;
23760esac
23761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23762$as_echo "$ac_try_echo") >&5
23763  (eval "$ac_compile") 2>conftest.er1
23764  ac_status=$?
23765  grep -v '^ *+' conftest.er1 >conftest.err
23766  rm -f conftest.er1
23767  cat conftest.err >&5
23768  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769  (exit $ac_status); } && {
23770	 test -z "$ac_c_werror_flag" ||
23771	 test ! -s conftest.err
23772       } && test -s conftest.$ac_objext; then
23773  ac_header_compiler=yes
23774else
23775  $as_echo "$as_me: failed program was:" >&5
23776sed 's/^/| /' conftest.$ac_ext >&5
23777
23778	ac_header_compiler=no
23779fi
23780
23781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23782{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23783$as_echo "$ac_header_compiler" >&6; }
23784
23785# Is the header present?
23786{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23787$as_echo_n "checking $ac_header presence... " >&6; }
23788cat >conftest.$ac_ext <<_ACEOF
23789/* confdefs.h.  */
23790_ACEOF
23791cat confdefs.h >>conftest.$ac_ext
23792cat >>conftest.$ac_ext <<_ACEOF
23793/* end confdefs.h.  */
23794#include <$ac_header>
23795_ACEOF
23796if { (ac_try="$ac_cpp conftest.$ac_ext"
23797case "(($ac_try" in
23798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23799  *) ac_try_echo=$ac_try;;
23800esac
23801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23802$as_echo "$ac_try_echo") >&5
23803  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23804  ac_status=$?
23805  grep -v '^ *+' conftest.er1 >conftest.err
23806  rm -f conftest.er1
23807  cat conftest.err >&5
23808  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809  (exit $ac_status); } >/dev/null && {
23810	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23811	 test ! -s conftest.err
23812       }; then
23813  ac_header_preproc=yes
23814else
23815  $as_echo "$as_me: failed program was:" >&5
23816sed 's/^/| /' conftest.$ac_ext >&5
23817
23818  ac_header_preproc=no
23819fi
23820
23821rm -f conftest.err conftest.$ac_ext
23822{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23823$as_echo "$ac_header_preproc" >&6; }
23824
23825# So?  What about this header?
23826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23827  yes:no: )
23828    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23829$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23830    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23831$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23832    ac_header_preproc=yes
23833    ;;
23834  no:yes:* )
23835    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23836$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23837    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23838$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23839    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23840$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23841    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23842$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23843    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23844$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23845    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23846$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23847    ( cat <<\_ASBOX
23848## ----------------------------------------------------------- ##
23849## Report this to avahi (at) lists (dot) freedesktop (dot) org ##
23850## ----------------------------------------------------------- ##
23851_ASBOX
23852     ) | sed "s/^/$as_me: WARNING:     /" >&2
23853    ;;
23854esac
23855{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23856$as_echo_n "checking for $ac_header... " >&6; }
23857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23858  $as_echo_n "(cached) " >&6
23859else
23860  eval "$as_ac_Header=\$ac_header_preproc"
23861fi
23862ac_res=`eval 'as_val=${'$as_ac_Header'}
23863		 $as_echo "$as_val"'`
23864	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23865$as_echo "$ac_res" >&6; }
23866
23867fi
23868as_val=`eval 'as_val=${'$as_ac_Header'}
23869		 $as_echo "$as_val"'`
23870   if test "x$as_val" = x""yes; then
23871  cat >>confdefs.h <<_ACEOF
23872#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23873_ACEOF
23874 have_gdbm=true
23875else
23876  have_gdbm=false
23877fi
23878
23879done
23880
23881else
23882  have_gdbm=false
23883fi
23884
23885
23886    if ! $have_gdbm ; then
23887        { { $as_echo "$as_me:$LINENO: error: *** libgdbm not found ***" >&5
23888$as_echo "$as_me: error: *** libgdbm not found ***" >&2;}
23889   { (exit 1); exit 1; }; }
23890    fi
23891
23892cat >>confdefs.h <<\_ACEOF
23893#define HAVE_GDBM /**/
23894_ACEOF
23895
23896else
23897    if test "x$HAVE_DBM" = "xyes" ; then
23898
23899for ac_header in ndbm.h
23900do
23901as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23903  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23904$as_echo_n "checking for $ac_header... " >&6; }
23905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23906  $as_echo_n "(cached) " >&6
23907fi
23908ac_res=`eval 'as_val=${'$as_ac_Header'}
23909		 $as_echo "$as_val"'`
23910	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23911$as_echo "$ac_res" >&6; }
23912else
23913  # Is the header compilable?
23914{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23915$as_echo_n "checking $ac_header usability... " >&6; }
23916cat >conftest.$ac_ext <<_ACEOF
23917/* confdefs.h.  */
23918_ACEOF
23919cat confdefs.h >>conftest.$ac_ext
23920cat >>conftest.$ac_ext <<_ACEOF
23921/* end confdefs.h.  */
23922$ac_includes_default
23923#include <$ac_header>
23924_ACEOF
23925rm -f conftest.$ac_objext
23926if { (ac_try="$ac_compile"
23927case "(($ac_try" in
23928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23929  *) ac_try_echo=$ac_try;;
23930esac
23931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23932$as_echo "$ac_try_echo") >&5
23933  (eval "$ac_compile") 2>conftest.er1
23934  ac_status=$?
23935  grep -v '^ *+' conftest.er1 >conftest.err
23936  rm -f conftest.er1
23937  cat conftest.err >&5
23938  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939  (exit $ac_status); } && {
23940	 test -z "$ac_c_werror_flag" ||
23941	 test ! -s conftest.err
23942       } && test -s conftest.$ac_objext; then
23943  ac_header_compiler=yes
23944else
23945  $as_echo "$as_me: failed program was:" >&5
23946sed 's/^/| /' conftest.$ac_ext >&5
23947
23948	ac_header_compiler=no
23949fi
23950
23951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23952{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23953$as_echo "$ac_header_compiler" >&6; }
23954
23955# Is the header present?
23956{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23957$as_echo_n "checking $ac_header presence... " >&6; }
23958cat >conftest.$ac_ext <<_ACEOF
23959/* confdefs.h.  */
23960_ACEOF
23961cat confdefs.h >>conftest.$ac_ext
23962cat >>conftest.$ac_ext <<_ACEOF
23963/* end confdefs.h.  */
23964#include <$ac_header>
23965_ACEOF
23966if { (ac_try="$ac_cpp conftest.$ac_ext"
23967case "(($ac_try" in
23968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23969  *) ac_try_echo=$ac_try;;
23970esac
23971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23972$as_echo "$ac_try_echo") >&5
23973  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23974  ac_status=$?
23975  grep -v '^ *+' conftest.er1 >conftest.err
23976  rm -f conftest.er1
23977  cat conftest.err >&5
23978  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979  (exit $ac_status); } >/dev/null && {
23980	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23981	 test ! -s conftest.err
23982       }; then
23983  ac_header_preproc=yes
23984else
23985  $as_echo "$as_me: failed program was:" >&5
23986sed 's/^/| /' conftest.$ac_ext >&5
23987
23988  ac_header_preproc=no
23989fi
23990
23991rm -f conftest.err conftest.$ac_ext
23992{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23993$as_echo "$ac_header_preproc" >&6; }
23994
23995# So?  What about this header?
23996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23997  yes:no: )
23998    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23999$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24000    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24001$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24002    ac_header_preproc=yes
24003    ;;
24004  no:yes:* )
24005    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24006$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24007    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24008$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24009    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24010$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24011    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24012$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24013    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24014$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24015    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24016$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24017    ( cat <<\_ASBOX
24018## ----------------------------------------------------------- ##
24019## Report this to avahi (at) lists (dot) freedesktop (dot) org ##
24020## ----------------------------------------------------------- ##
24021_ASBOX
24022     ) | sed "s/^/$as_me: WARNING:     /" >&2
24023    ;;
24024esac
24025{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24026$as_echo_n "checking for $ac_header... " >&6; }
24027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24028  $as_echo_n "(cached) " >&6
24029else
24030  eval "$as_ac_Header=\$ac_header_preproc"
24031fi
24032ac_res=`eval 'as_val=${'$as_ac_Header'}
24033		 $as_echo "$as_val"'`
24034	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24035$as_echo "$ac_res" >&6; }
24036
24037fi
24038as_val=`eval 'as_val=${'$as_ac_Header'}
24039		 $as_echo "$as_val"'`
24040   if test "x$as_val" = x""yes; then
24041  cat >>confdefs.h <<_ACEOF
24042#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24043_ACEOF
24044 have_dbm=true
24045else
24046  have_dbm=false
24047fi
24048
24049done
24050
24051
24052        if ! $have_dbm ; then
24053            { { $as_echo "$as_me:$LINENO: error: *** dbm not found ***" >&5
24054$as_echo "$as_me: error: *** dbm not found ***" >&2;}
24055   { (exit 1); exit 1; }; }
24056        fi
24057
24058cat >>confdefs.h <<\_ACEOF
24059#define HAVE_DBM /**/
24060_ACEOF
24061
24062    fi
24063fi
24064 if test "x$HAVE_GDBM" = "xyes"; then
24065  HAVE_GDBM_TRUE=
24066  HAVE_GDBM_FALSE='#'
24067else
24068  HAVE_GDBM_TRUE='#'
24069  HAVE_GDBM_FALSE=
24070fi
24071
24072 if test "x$HAVE_DBM" = "xyes"; then
24073  HAVE_DBM_TRUE=
24074  HAVE_DBM_FALSE='#'
24075else
24076  HAVE_DBM_TRUE='#'
24077  HAVE_DBM_FALSE=
24078fi
24079
24080
24081#
24082# libdaemon
24083#
24084# Check whether --enable-libdaemon was given.
24085if test "${enable_libdaemon+set}" = set; then
24086  enableval=$enable_libdaemon; case "${enableval}" in
24087                yes) HAVE_LIBDAEMON=yes ;;
24088                no)  HAVE_LIBDAEMON=no ;;
24089                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libdaemon" >&5
24090$as_echo "$as_me: error: bad value ${enableval} for --enable-libdaemon" >&2;}
24091   { (exit 1); exit 1; }; } ;;
24092        esac
24093else
24094  HAVE_LIBDAEMON=yes
24095fi
24096
24097
24098
24099
24100 if test "x$HAVE_LIBDAEMON" = "xyes"; then
24101  HAVE_LIBDAEMON_TRUE=
24102  HAVE_LIBDAEMON_FALSE='#'
24103else
24104  HAVE_LIBDAEMON_TRUE='#'
24105  HAVE_LIBDAEMON_FALSE=
24106fi
24107
24108
24109#
24110# Python stuff
24111#
24112# Check whether --enable-python was given.
24113if test "${enable_python+set}" = set; then
24114  enableval=$enable_python; case "${enableval}" in
24115          yes) HAVE_PYTHON=yes ;;
24116          no)  HAVE_PYTHON=no ;;
24117          *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-python" >&5
24118$as_echo "$as_me: error: bad value ${enableval} for --enable-python" >&2;}
24119   { (exit 1); exit 1; }; } ;;
24120    esac
24121else
24122  HAVE_PYTHON=yes
24123fi
24124
24125
24126HAVE_PYTHON_DBUS=no
24127HAVE_PYGTK=no
24128
24129if test "x$HAVE_PYTHON" = "xyes" ; then
24130
24131
24132
24133
24134        if test -n "$PYTHON"; then
24135      # If the user set $PYTHON, use it and don't search something else.
24136      { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.4" >&5
24137$as_echo_n "checking whether $PYTHON version >= 2.4... " >&6; }
24138      prog="import sys
24139# split strings by '.' and convert to numeric.  Append some zeros
24140# because we need at least 4 digits for the hex conversion.
24141# map returns an iterator in Python 3.0 and a list in 2.x
24142minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
24143minverhex = 0
24144# xrange is not present in Python 3.0 and range returns an iterator
24145for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
24146sys.exit(sys.hexversion < minverhex)"
24147  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
24148   ($PYTHON -c "$prog") >&5 2>&5
24149   ac_status=$?
24150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151   (exit $ac_status); }; then
24152  { $as_echo "$as_me:$LINENO: result: yes" >&5
24153$as_echo "yes" >&6; }
24154else
24155  { { $as_echo "$as_me:$LINENO: error: too old" >&5
24156$as_echo "$as_me: error: too old" >&2;}
24157   { (exit 1); exit 1; }; }
24158fi
24159
24160      am_display_PYTHON=$PYTHON
24161    else
24162      # Otherwise, try each interpreter until we find one that satisfies
24163      # VERSION.
24164      { $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.4" >&5
24165$as_echo_n "checking for a Python interpreter with version >= 2.4... " >&6; }
24166if test "${am_cv_pathless_PYTHON+set}" = set; then
24167  $as_echo_n "(cached) " >&6
24168else
24169
24170	for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
24171	  test "$am_cv_pathless_PYTHON" = none && break
24172	  prog="import sys
24173# split strings by '.' and convert to numeric.  Append some zeros
24174# because we need at least 4 digits for the hex conversion.
24175# map returns an iterator in Python 3.0 and a list in 2.x
24176minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
24177minverhex = 0
24178# xrange is not present in Python 3.0 and range returns an iterator
24179for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
24180sys.exit(sys.hexversion < minverhex)"
24181  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
24182   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
24183   ac_status=$?
24184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185   (exit $ac_status); }; then
24186  break
24187fi
24188
24189	done
24190fi
24191{ $as_echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
24192$as_echo "$am_cv_pathless_PYTHON" >&6; }
24193      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
24194      if test "$am_cv_pathless_PYTHON" = none; then
24195	PYTHON=:
24196      else
24197        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
24198set dummy $am_cv_pathless_PYTHON; ac_word=$2
24199{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24200$as_echo_n "checking for $ac_word... " >&6; }
24201if test "${ac_cv_path_PYTHON+set}" = set; then
24202  $as_echo_n "(cached) " >&6
24203else
24204  case $PYTHON in
24205  [\\/]* | ?:[\\/]*)
24206  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
24207  ;;
24208  *)
24209  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24210for as_dir in $PATH
24211do
24212  IFS=$as_save_IFS
24213  test -z "$as_dir" && as_dir=.
24214  for ac_exec_ext in '' $ac_executable_extensions; do
24215  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24216    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
24217    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24218    break 2
24219  fi
24220done
24221done
24222IFS=$as_save_IFS
24223
24224  ;;
24225esac
24226fi
24227PYTHON=$ac_cv_path_PYTHON
24228if test -n "$PYTHON"; then
24229  { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
24230$as_echo "$PYTHON" >&6; }
24231else
24232  { $as_echo "$as_me:$LINENO: result: no" >&5
24233$as_echo "no" >&6; }
24234fi
24235
24236
24237      fi
24238      am_display_PYTHON=$am_cv_pathless_PYTHON
24239    fi
24240
24241
24242  if test "$PYTHON" = :; then
24243      { { $as_echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
24244$as_echo "$as_me: error: no suitable Python interpreter found" >&2;}
24245   { (exit 1); exit 1; }; }
24246  else
24247
24248
24249  { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
24250$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
24251if test "${am_cv_python_version+set}" = set; then
24252  $as_echo_n "(cached) " >&6
24253else
24254  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
24255fi
24256{ $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
24257$as_echo "$am_cv_python_version" >&6; }
24258  PYTHON_VERSION=$am_cv_python_version
24259
24260
24261
24262  PYTHON_PREFIX='${prefix}'
24263
24264  PYTHON_EXEC_PREFIX='${exec_prefix}'
24265
24266
24267
24268  { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
24269$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
24270if test "${am_cv_python_platform+set}" = set; then
24271  $as_echo_n "(cached) " >&6
24272else
24273  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
24274fi
24275{ $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
24276$as_echo "$am_cv_python_platform" >&6; }
24277  PYTHON_PLATFORM=$am_cv_python_platform
24278
24279
24280
24281
24282                { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
24283$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
24284if test "${am_cv_python_pythondir+set}" = set; then
24285  $as_echo_n "(cached) " >&6
24286else
24287  if test "x$prefix" = xNONE
24288     then
24289       am_py_prefix=$ac_default_prefix
24290     else
24291       am_py_prefix=$prefix
24292     fi
24293     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
24294     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
24295     case $am_cv_python_pythondir in
24296     $am_py_prefix*)
24297       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
24298       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
24299       ;;
24300     esac
24301
24302fi
24303{ $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
24304$as_echo "$am_cv_python_pythondir" >&6; }
24305  pythondir=$am_cv_python_pythondir
24306
24307
24308
24309  pkgpythondir=\${pythondir}/$PACKAGE
24310
24311
24312            { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
24313$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
24314if test "${am_cv_python_pyexecdir+set}" = set; then
24315  $as_echo_n "(cached) " >&6
24316else
24317  if test "x$exec_prefix" = xNONE
24318     then
24319       am_py_exec_prefix=$am_py_prefix
24320     else
24321       am_py_exec_prefix=$exec_prefix
24322     fi
24323     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
24324     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
24325     case $am_cv_python_pyexecdir in
24326     $am_py_exec_prefix*)
24327       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
24328       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
24329       ;;
24330     esac
24331
24332fi
24333{ $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
24334$as_echo "$am_cv_python_pyexecdir" >&6; }
24335  pyexecdir=$am_cv_python_pyexecdir
24336
24337
24338
24339  pkgpyexecdir=\${pyexecdir}/$PACKAGE
24340
24341
24342
24343  fi
24344
24345
24346
24347    # Check whether --enable-pygtk was given.
24348if test "${enable_pygtk+set}" = set; then
24349  enableval=$enable_pygtk; case "${enableval}" in
24350                yes) HAVE_PYGTK=yes ;;
24351                no)  HAVE_PYGTK=no ;;
24352                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-pygtk" >&5
24353$as_echo "$as_me: error: bad value ${enableval} for --enable-pygtk" >&2;}
24354   { (exit 1); exit 1; }; } ;;
24355        esac
24356else
24357  HAVE_PYGTK=yes
24358fi
24359
24360
24361    if test "x$HAVE_PYGTK" = "xyes" ; then
24362
24363py_mod_var=`echo gtk'_' | sed 'y%./+-%__p_%'`
24364{ $as_echo "$as_me:$LINENO: checking for python module gtk" >&5
24365$as_echo_n "checking for python module gtk... " >&6; }
24366if { as_var=py_cv_mod_$py_mod_var; eval "test \"\${$as_var+set}\" = set"; }; then
24367  $as_echo_n "(cached) " >&6
24368else
24369
24370prog="
24371import sys
24372try:
24373        import gtk
24374except ImportError:
24375        sys.exit(1)
24376except:
24377        sys.exit(0)
24378sys.exit(0)"
24379if $PYTHON -c "$prog" 1>&5 2>&5
24380  then
24381    eval "py_cv_mod_$py_mod_var=yes"
24382  else
24383    eval "py_cv_mod_$py_mod_var=no"
24384  fi
24385
24386fi
24387
24388py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
24389if test "x$py_val" != xno; then
24390  { $as_echo "$as_me:$LINENO: result: yes" >&5
24391$as_echo "yes" >&6; }
24392  else
24393  { $as_echo "$as_me:$LINENO: result: no" >&5
24394$as_echo "no" >&6; }
24395  { { $as_echo "$as_me:$LINENO: error: Could not find Python module gtk" >&5
24396$as_echo "$as_me: error: Could not find Python module gtk" >&2;}
24397   { (exit 1); exit 1; }; }
24398fi
24399
24400    fi
24401
24402
24403    if test "x$HAVE_DBUS" = "xyes" ; then
24404        # Check whether --enable-python-dbus was given.
24405if test "${enable_python_dbus+set}" = set; then
24406  enableval=$enable_python_dbus; case "${enableval}" in
24407                   yes) HAVE_PYTHON_DBUS=yes ;;
24408                   no)  HAVE_PYTHON_DBUS=no ;;
24409                   *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-python-dbus" >&5
24410$as_echo "$as_me: error: bad value ${enableval} for --enable-python-dbus" >&2;}
24411   { (exit 1); exit 1; }; } ;;
24412            esac
24413else
24414  HAVE_PYTHON_DBUS=yes
24415fi
24416
24417
24418        if test "x$HAVE_PYTHON_DBUS" = "xyes"; then
24419
24420py_mod_var=`echo dbus'_' | sed 'y%./+-%__p_%'`
24421{ $as_echo "$as_me:$LINENO: checking for python module dbus" >&5
24422$as_echo_n "checking for python module dbus... " >&6; }
24423if { as_var=py_cv_mod_$py_mod_var; eval "test \"\${$as_var+set}\" = set"; }; then
24424  $as_echo_n "(cached) " >&6
24425else
24426
24427prog="
24428import sys
24429try:
24430        import dbus
24431except ImportError:
24432        sys.exit(1)
24433except:
24434        sys.exit(0)
24435sys.exit(0)"
24436if $PYTHON -c "$prog" 1>&5 2>&5
24437  then
24438    eval "py_cv_mod_$py_mod_var=yes"
24439  else
24440    eval "py_cv_mod_$py_mod_var=no"
24441  fi
24442
24443fi
24444
24445py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
24446if test "x$py_val" != xno; then
24447  { $as_echo "$as_me:$LINENO: result: yes" >&5
24448$as_echo "yes" >&6; }
24449  else
24450  { $as_echo "$as_me:$LINENO: result: no" >&5
24451$as_echo "no" >&6; }
24452  { { $as_echo "$as_me:$LINENO: error: Could not find Python module dbus" >&5
24453$as_echo "$as_me: error: Could not find Python module dbus" >&2;}
24454   { (exit 1); exit 1; }; }
24455fi
24456
24457        fi
24458
24459
24460py_mod_var=`echo socket'_' | sed 'y%./+-%__p_%'`
24461{ $as_echo "$as_me:$LINENO: checking for python module socket" >&5
24462$as_echo_n "checking for python module socket... " >&6; }
24463if { as_var=py_cv_mod_$py_mod_var; eval "test \"\${$as_var+set}\" = set"; }; then
24464  $as_echo_n "(cached) " >&6
24465else
24466
24467prog="
24468import sys
24469try:
24470        import socket
24471except ImportError:
24472        sys.exit(1)
24473except:
24474        sys.exit(0)
24475sys.exit(0)"
24476if $PYTHON -c "$prog" 1>&5 2>&5
24477  then
24478    eval "py_cv_mod_$py_mod_var=yes"
24479  else
24480    eval "py_cv_mod_$py_mod_var=no"
24481  fi
24482
24483fi
24484
24485py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
24486if test "x$py_val" != xno; then
24487  { $as_echo "$as_me:$LINENO: result: yes" >&5
24488$as_echo "yes" >&6; }
24489  else
24490  { $as_echo "$as_me:$LINENO: result: no" >&5
24491$as_echo "no" >&6; }
24492  { { $as_echo "$as_me:$LINENO: error: Could not find Python module socket" >&5
24493$as_echo "$as_me: error: Could not find Python module socket" >&2;}
24494   { (exit 1); exit 1; }; }
24495fi
24496
24497        if test "x$HAVE_GDBM" = "xyes"; then
24498
24499py_mod_var=`echo gdbm'_' | sed 'y%./+-%__p_%'`
24500{ $as_echo "$as_me:$LINENO: checking for python module gdbm" >&5
24501$as_echo_n "checking for python module gdbm... " >&6; }
24502if { as_var=py_cv_mod_$py_mod_var; eval "test \"\${$as_var+set}\" = set"; }; then
24503  $as_echo_n "(cached) " >&6
24504else
24505
24506prog="
24507import sys
24508try:
24509        import gdbm
24510except ImportError:
24511        sys.exit(1)
24512except:
24513        sys.exit(0)
24514sys.exit(0)"
24515if $PYTHON -c "$prog" 1>&5 2>&5
24516  then
24517    eval "py_cv_mod_$py_mod_var=yes"
24518  else
24519    eval "py_cv_mod_$py_mod_var=no"
24520  fi
24521
24522fi
24523
24524py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
24525if test "x$py_val" != xno; then
24526  { $as_echo "$as_me:$LINENO: result: yes" >&5
24527$as_echo "yes" >&6; }
24528  else
24529  { $as_echo "$as_me:$LINENO: result: no" >&5
24530$as_echo "no" >&6; }
24531  { { $as_echo "$as_me:$LINENO: error: Could not find Python module gdbm" >&5
24532$as_echo "$as_me: error: Could not find Python module gdbm" >&2;}
24533   { (exit 1); exit 1; }; }
24534fi
24535
24536        fi
24537        if test "x$HAVE_DBM" = "xyes"; then
24538
24539py_mod_var=`echo dbm'_' | sed 'y%./+-%__p_%'`
24540{ $as_echo "$as_me:$LINENO: checking for python module dbm" >&5
24541$as_echo_n "checking for python module dbm... " >&6; }
24542if { as_var=py_cv_mod_$py_mod_var; eval "test \"\${$as_var+set}\" = set"; }; then
24543  $as_echo_n "(cached) " >&6
24544else
24545
24546prog="
24547import sys
24548try:
24549        import dbm
24550except ImportError:
24551        sys.exit(1)
24552except:
24553        sys.exit(0)
24554sys.exit(0)"
24555if $PYTHON -c "$prog" 1>&5 2>&5
24556  then
24557    eval "py_cv_mod_$py_mod_var=yes"
24558  else
24559    eval "py_cv_mod_$py_mod_var=no"
24560  fi
24561
24562fi
24563
24564py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
24565if test "x$py_val" != xno; then
24566  { $as_echo "$as_me:$LINENO: result: yes" >&5
24567$as_echo "yes" >&6; }
24568  else
24569  { $as_echo "$as_me:$LINENO: result: no" >&5
24570$as_echo "no" >&6; }
24571  { { $as_echo "$as_me:$LINENO: error: Could not find Python module dbm" >&5
24572$as_echo "$as_me: error: Could not find Python module dbm" >&2;}
24573   { (exit 1); exit 1; }; }
24574fi
24575
24576        fi
24577    fi
24578fi
24579 if test "x$HAVE_PYTHON" = "xyes" ; then
24580  HAVE_PYTHON_TRUE=
24581  HAVE_PYTHON_FALSE='#'
24582else
24583  HAVE_PYTHON_TRUE='#'
24584  HAVE_PYTHON_FALSE=
24585fi
24586
24587 if test "x$HAVE_PYGTK" = "xyes"; then
24588  HAVE_PYGTK_TRUE=
24589  HAVE_PYGTK_FALSE='#'
24590else
24591  HAVE_PYGTK_TRUE='#'
24592  HAVE_PYGTK_FALSE=
24593fi
24594
24595 if test "x$HAVE_PYTHON_DBUS" = "xyes"; then
24596  HAVE_PYTHON_DBUS_TRUE=
24597  HAVE_PYTHON_DBUS_FALSE='#'
24598else
24599  HAVE_PYTHON_DBUS_TRUE='#'
24600  HAVE_PYTHON_DBUS_FALSE=
24601fi
24602
24603
24604#
24605# Check for mono stuff
24606#
24607HAVE_MONO=no
24608if test "x$HAVE_DBUS" = "xyes" ; then
24609    # Check whether --enable-mono was given.
24610if test "${enable_mono+set}" = set; then
24611  enableval=$enable_mono; case "${enableval}" in
24612                    yes) HAVE_MONO=yes ;;
24613                    no)  HAVE_MONO=no ;;
24614                    *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-mono" >&5
24615$as_echo "$as_me: error: bad value ${enableval} for --enable-mono" >&2;}
24616   { (exit 1); exit 1; }; } ;;
24617            esac
24618else
24619  HAVE_MONO=yes
24620fi
24621
24622
24623    if test "x$HAVE_MONO" = "xyes" ; then
24624        # Extract the first word of "mcs", so it can be a program name with args.
24625set dummy mcs; ac_word=$2
24626{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24627$as_echo_n "checking for $ac_word... " >&6; }
24628if test "${ac_cv_path_MCS+set}" = set; then
24629  $as_echo_n "(cached) " >&6
24630else
24631  case $MCS in
24632  [\\/]* | ?:[\\/]*)
24633  ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
24634  ;;
24635  *)
24636  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24637for as_dir in $PATH
24638do
24639  IFS=$as_save_IFS
24640  test -z "$as_dir" && as_dir=.
24641  for ac_exec_ext in '' $ac_executable_extensions; do
24642  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24643    ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
24644    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24645    break 2
24646  fi
24647done
24648done
24649IFS=$as_save_IFS
24650
24651  ;;
24652esac
24653fi
24654MCS=$ac_cv_path_MCS
24655if test -n "$MCS"; then
24656  { $as_echo "$as_me:$LINENO: result: $MCS" >&5
24657$as_echo "$MCS" >&6; }
24658else
24659  { $as_echo "$as_me:$LINENO: result: no" >&5
24660$as_echo "no" >&6; }
24661fi
24662
24663
24664        if test "x$MCS" = "x" ; then
24665            { { $as_echo "$as_me:$LINENO: error: Can not find \"mcs\" - The Mono C-Sharp Compiler) in your PATH" >&5
24666$as_echo "$as_me: error: Can not find \"mcs\" - The Mono C-Sharp Compiler) in your PATH" >&2;}
24667   { (exit 1); exit 1; }; }
24668        fi
24669
24670        # Extract the first word of "gacutil", so it can be a program name with args.
24671set dummy gacutil; ac_word=$2
24672{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24673$as_echo_n "checking for $ac_word... " >&6; }
24674if test "${ac_cv_path_GACUTIL+set}" = set; then
24675  $as_echo_n "(cached) " >&6
24676else
24677  case $GACUTIL in
24678  [\\/]* | ?:[\\/]*)
24679  ac_cv_path_GACUTIL="$GACUTIL" # Let the user override the test with a path.
24680  ;;
24681  *)
24682  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24683for as_dir in $PATH
24684do
24685  IFS=$as_save_IFS
24686  test -z "$as_dir" && as_dir=.
24687  for ac_exec_ext in '' $ac_executable_extensions; do
24688  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24689    ac_cv_path_GACUTIL="$as_dir/$ac_word$ac_exec_ext"
24690    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24691    break 2
24692  fi
24693done
24694done
24695IFS=$as_save_IFS
24696
24697  ;;
24698esac
24699fi
24700GACUTIL=$ac_cv_path_GACUTIL
24701if test -n "$GACUTIL"; then
24702  { $as_echo "$as_me:$LINENO: result: $GACUTIL" >&5
24703$as_echo "$GACUTIL" >&6; }
24704else
24705  { $as_echo "$as_me:$LINENO: result: no" >&5
24706$as_echo "no" >&6; }
24707fi
24708
24709
24710        if test "x$GACUTIL" = "x" ; then
24711            { { $as_echo "$as_me:$LINENO: error: Can not find \"gacutil\" in your PATH" >&5
24712$as_echo "$as_me: error: Can not find \"gacutil\" in your PATH" >&2;}
24713   { (exit 1); exit 1; }; }
24714        fi
24715
24716
24717
24718    fi
24719fi
24720 if test "x$HAVE_MONO" = "xyes"; then
24721  HAVE_MONO_TRUE=
24722  HAVE_MONO_FALSE='#'
24723else
24724  HAVE_MONO_TRUE='#'
24725  HAVE_MONO_FALSE=
24726fi
24727
24728
24729#
24730# Check for monodoc stuff
24731#
24732HAVE_MONODOC=no
24733# Check whether --enable-monodoc was given.
24734if test "${enable_monodoc+set}" = set; then
24735  enableval=$enable_monodoc; case "${enableval}" in
24736                yes) HAVE_MONODOC=yes ;;
24737                no)  HAVE_MONODOC=no ;;
24738                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-monodoc" >&5
24739$as_echo "$as_me: error: bad value ${enableval} for --enable-monodoc" >&2;}
24740   { (exit 1); exit 1; }; } ;;
24741        esac
24742else
24743  HAVE_MONODOC=yes
24744fi
24745
24746
24747if test "x$HAVE_MONO" = "xyes" && test "x$HAVE_MONODOC" = "xyes" ; then
24748
24749pkg_failed=no
24750{ $as_echo "$as_me:$LINENO: checking for MONODOC" >&5
24751$as_echo_n "checking for MONODOC... " >&6; }
24752
24753if test -n "$MONODOC_CFLAGS"; then
24754    pkg_cv_MONODOC_CFLAGS="$MONODOC_CFLAGS"
24755 elif test -n "$PKG_CONFIG"; then
24756    if test -n "$PKG_CONFIG" && \
24757    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"monodoc >= 1.1.8\"") >&5
24758  ($PKG_CONFIG --exists --print-errors "monodoc >= 1.1.8") 2>&5
24759  ac_status=$?
24760  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761  (exit $ac_status); }; then
24762  pkg_cv_MONODOC_CFLAGS=`$PKG_CONFIG --cflags "monodoc >= 1.1.8" 2>/dev/null`
24763else
24764  pkg_failed=yes
24765fi
24766 else
24767    pkg_failed=untried
24768fi
24769if test -n "$MONODOC_LIBS"; then
24770    pkg_cv_MONODOC_LIBS="$MONODOC_LIBS"
24771 elif test -n "$PKG_CONFIG"; then
24772    if test -n "$PKG_CONFIG" && \
24773    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"monodoc >= 1.1.8\"") >&5
24774  ($PKG_CONFIG --exists --print-errors "monodoc >= 1.1.8") 2>&5
24775  ac_status=$?
24776  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777  (exit $ac_status); }; then
24778  pkg_cv_MONODOC_LIBS=`$PKG_CONFIG --libs "monodoc >= 1.1.8" 2>/dev/null`
24779else
24780  pkg_failed=yes
24781fi
24782 else
24783    pkg_failed=untried
24784fi
24785
24786
24787
24788if test $pkg_failed = yes; then
24789
24790if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24791        _pkg_short_errors_supported=yes
24792else
24793        _pkg_short_errors_supported=no
24794fi
24795        if test $_pkg_short_errors_supported = yes; then
24796	        MONODOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "monodoc >= 1.1.8" 2>&1`
24797        else
24798	        MONODOC_PKG_ERRORS=`$PKG_CONFIG --print-errors "monodoc >= 1.1.8" 2>&1`
24799        fi
24800	# Put the nasty error message in config.log where it belongs
24801	echo "$MONODOC_PKG_ERRORS" >&5
24802
24803	{ { $as_echo "$as_me:$LINENO: error: Package requirements (monodoc >= 1.1.8) were not met:
24804
24805$MONODOC_PKG_ERRORS
24806
24807Consider adjusting the PKG_CONFIG_PATH environment variable if you
24808installed software in a non-standard prefix.
24809
24810Alternatively, you may set the environment variables MONODOC_CFLAGS
24811and MONODOC_LIBS to avoid the need to call pkg-config.
24812See the pkg-config man page for more details.
24813" >&5
24814$as_echo "$as_me: error: Package requirements (monodoc >= 1.1.8) were not met:
24815
24816$MONODOC_PKG_ERRORS
24817
24818Consider adjusting the PKG_CONFIG_PATH environment variable if you
24819installed software in a non-standard prefix.
24820
24821Alternatively, you may set the environment variables MONODOC_CFLAGS
24822and MONODOC_LIBS to avoid the need to call pkg-config.
24823See the pkg-config man page for more details.
24824" >&2;}
24825   { (exit 1); exit 1; }; }
24826elif test $pkg_failed = untried; then
24827	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24829{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
24830is in your PATH or set the PKG_CONFIG environment variable to the full
24831path to pkg-config.
24832
24833Alternatively, you may set the environment variables MONODOC_CFLAGS
24834and MONODOC_LIBS to avoid the need to call pkg-config.
24835See the pkg-config man page for more details.
24836
24837To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24838See \`config.log' for more details." >&5
24839$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
24840is in your PATH or set the PKG_CONFIG environment variable to the full
24841path to pkg-config.
24842
24843Alternatively, you may set the environment variables MONODOC_CFLAGS
24844and MONODOC_LIBS to avoid the need to call pkg-config.
24845See the pkg-config man page for more details.
24846
24847To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24848See \`config.log' for more details." >&2;}
24849   { (exit 1); exit 1; }; }; }
24850else
24851	MONODOC_CFLAGS=$pkg_cv_MONODOC_CFLAGS
24852	MONODOC_LIBS=$pkg_cv_MONODOC_LIBS
24853        { $as_echo "$as_me:$LINENO: result: yes" >&5
24854$as_echo "yes" >&6; }
24855	:
24856fi
24857        MONODOC_DIR=`$PKG_CONFIG --variable=sourcesdir monodoc`
24858
24859        # Extract the first word of "monodocer", so it can be a program name with args.
24860set dummy monodocer; ac_word=$2
24861{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24862$as_echo_n "checking for $ac_word... " >&6; }
24863if test "${ac_cv_path_MONODOCER+set}" = set; then
24864  $as_echo_n "(cached) " >&6
24865else
24866  case $MONODOCER in
24867  [\\/]* | ?:[\\/]*)
24868  ac_cv_path_MONODOCER="$MONODOCER" # Let the user override the test with a path.
24869  ;;
24870  *)
24871  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24872for as_dir in $PATH
24873do
24874  IFS=$as_save_IFS
24875  test -z "$as_dir" && as_dir=.
24876  for ac_exec_ext in '' $ac_executable_extensions; do
24877  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24878    ac_cv_path_MONODOCER="$as_dir/$ac_word$ac_exec_ext"
24879    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24880    break 2
24881  fi
24882done
24883done
24884IFS=$as_save_IFS
24885
24886  ;;
24887esac
24888fi
24889MONODOCER=$ac_cv_path_MONODOCER
24890if test -n "$MONODOCER"; then
24891  { $as_echo "$as_me:$LINENO: result: $MONODOCER" >&5
24892$as_echo "$MONODOCER" >&6; }
24893else
24894  { $as_echo "$as_me:$LINENO: result: no" >&5
24895$as_echo "no" >&6; }
24896fi
24897
24898
24899        # Extract the first word of "mdassembler", so it can be a program name with args.
24900set dummy mdassembler; ac_word=$2
24901{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24902$as_echo_n "checking for $ac_word... " >&6; }
24903if test "${ac_cv_path_MDASSEMBLER+set}" = set; then
24904  $as_echo_n "(cached) " >&6
24905else
24906  case $MDASSEMBLER in
24907  [\\/]* | ?:[\\/]*)
24908  ac_cv_path_MDASSEMBLER="$MDASSEMBLER" # Let the user override the test with a path.
24909  ;;
24910  *)
24911  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24912for as_dir in $PATH
24913do
24914  IFS=$as_save_IFS
24915  test -z "$as_dir" && as_dir=.
24916  for ac_exec_ext in '' $ac_executable_extensions; do
24917  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24918    ac_cv_path_MDASSEMBLER="$as_dir/$ac_word$ac_exec_ext"
24919    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24920    break 2
24921  fi
24922done
24923done
24924IFS=$as_save_IFS
24925
24926  ;;
24927esac
24928fi
24929MDASSEMBLER=$ac_cv_path_MDASSEMBLER
24930if test -n "$MDASSEMBLER"; then
24931  { $as_echo "$as_me:$LINENO: result: $MDASSEMBLER" >&5
24932$as_echo "$MDASSEMBLER" >&6; }
24933else
24934  { $as_echo "$as_me:$LINENO: result: no" >&5
24935$as_echo "no" >&6; }
24936fi
24937
24938
24939
24940
24941
24942
24943fi
24944 if test "x$HAVE_MONODOC" = "xyes"; then
24945  HAVE_MONODOC_TRUE=
24946  HAVE_MONODOC_FALSE='#'
24947else
24948  HAVE_MONODOC_TRUE='#'
24949  HAVE_MONODOC_FALSE=
24950fi
24951
24952
24953#
24954# Build autoipd?
24955#
24956# Check whether --enable-autoipd was given.
24957if test "${enable_autoipd+set}" = set; then
24958  enableval=$enable_autoipd; case "${enableval}" in
24959                yes) ENABLE_AUTOIPD=yes ;;
24960                no)  ENABLE_AUTOIPD=no ;;
24961                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-autoipd" >&5
24962$as_echo "$as_me: error: bad value ${enableval} for --disable-autoipd" >&2;}
24963   { (exit 1); exit 1; }; } ;;
24964        esac
24965else
24966  ENABLE_AUTOIPD=yes
24967fi
24968
24969
24970 if test "x$ENABLE_AUTOIPD" = "xyes"; then
24971  ENABLE_AUTOIPD_TRUE=
24972  ENABLE_AUTOIPD_FALSE='#'
24973else
24974  ENABLE_AUTOIPD_TRUE='#'
24975  ENABLE_AUTOIPD_FALSE=
24976fi
24977
24978
24979#
24980# Defining users and groups
24981#
24982
24983# Check whether --with-avahi_user was given.
24984if test "${with_avahi_user+set}" = set; then
24985  withval=$with_avahi_user;
24986fi
24987
24988if test -z "$with_avahi_user" ; then
24989    AVAHI_USER=avahi
24990else
24991    AVAHI_USER=$with_avahi_user
24992fi
24993
24994
24995cat >>confdefs.h <<_ACEOF
24996#define AVAHI_USER "$AVAHI_USER"
24997_ACEOF
24998
24999
25000
25001# Check whether --with-avahi_group was given.
25002if test "${with_avahi_group+set}" = set; then
25003  withval=$with_avahi_group;
25004fi
25005
25006if test -z "$with_avahi_group" ; then
25007    AVAHI_GROUP=avahi
25008else
25009    AVAHI_GROUP=$with_avahi_group
25010fi
25011
25012
25013cat >>confdefs.h <<_ACEOF
25014#define AVAHI_GROUP "$AVAHI_GROUP"
25015_ACEOF
25016
25017
25018
25019# Check whether --with-avahi_priv_access_group was given.
25020if test "${with_avahi_priv_access_group+set}" = set; then
25021  withval=$with_avahi_priv_access_group;
25022fi
25023
25024if test -z "$with_avahi_priv_access_group" ; then
25025    AVAHI_PRIV_ACCESS_GROUP=netdev
25026else
25027    AVAHI_PRIV_ACCESS_GROUP=$with_avahi_priv_access_group
25028fi
25029
25030
25031cat >>confdefs.h <<_ACEOF
25032#define AVAHI_PRIV_ACCESS_GROUP "$AVAHI_PRIV_ACCESS_GROUP"
25033_ACEOF
25034
25035
25036
25037# Check whether --with-autoipd_user was given.
25038if test "${with_autoipd_user+set}" = set; then
25039  withval=$with_autoipd_user;
25040fi
25041
25042if test -z "$with_autoipd_user" ; then
25043    AVAHI_AUTOIPD_USER=avahi-autoipd
25044else
25045    AVAHI_AUTOIPD_USER=$with_autoipd_user
25046fi
25047
25048
25049cat >>confdefs.h <<_ACEOF
25050#define AVAHI_AUTOIPD_USER "$AVAHI_AUTOIPD_USER"
25051_ACEOF
25052
25053
25054
25055# Check whether --with-autoipd_group was given.
25056if test "${with_autoipd_group+set}" = set; then
25057  withval=$with_autoipd_group;
25058fi
25059
25060if test -z "$with_autoipd_group" ; then
25061    AVAHI_AUTOIPD_GROUP=avahi-autoipd
25062else
25063    AVAHI_AUTOIPD_GROUP=$with_autoipd_group
25064fi
25065
25066
25067cat >>confdefs.h <<_ACEOF
25068#define AVAHI_AUTOIPD_GROUP "$AVAHI_AUTOIPD_GROUP"
25069_ACEOF
25070
25071
25072#
25073# Avahi runtime dir
25074#
25075avahi_runtime_dir="${localstatedir}/run"
25076avahi_socket="${avahi_runtime_dir}/avahi-daemon/socket"
25077
25078
25079
25080#
25081# Avahi interfaces dir
25082#
25083if test "x$HAVE_PYTHON_DBUS" = "xyes" -o "x$HAVE_GTK" = "xyes"; then
25084	interfacesdir="${datadir}/${PACKAGE}/interfaces/"
25085
25086fi
25087
25088#
25089# Doxygen
25090#
25091
25092
25093
25094
25095
25096
25097
25098
25099
25100
25101# Files:
25102DX_PROJECT=avahi
25103
25104DX_CONFIG=doxygen.cfg
25105
25106DX_DOCDIR=doxygen
25107
25108
25109# Environment variables used inside doxygen.cfg:
25110DX_ENV="$DX_ENV SRCDIR='$srcdir'"
25111
25112DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
25113
25114DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
25115
25116DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
25117
25118
25119# Doxygen itself:
25120
25121
25122
25123    # Check whether --enable-doxygen-doc was given.
25124if test "${enable_doxygen_doc+set}" = set; then
25125  enableval=$enable_doxygen_doc;
25126case "$enableval" in
25127#(
25128y|Y|yes|Yes|YES)
25129    DX_FLAG_doc=1
25130
25131
25132;; #(
25133n|N|no|No|NO)
25134    DX_FLAG_doc=0
25135
25136;; #(
25137*)
25138    { { $as_echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-doc" >&5
25139$as_echo "$as_me: error: invalid value '$enableval' given to doxygen-doc" >&2;}
25140   { (exit 1); exit 1; }; }
25141;;
25142esac
25143
25144else
25145
25146DX_FLAG_doc=1
25147
25148
25149
25150fi
25151
25152if test "$DX_FLAG_doc" = 1; then
25153
25154if test -n "$ac_tool_prefix"; then
25155  # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
25156set dummy ${ac_tool_prefix}doxygen; ac_word=$2
25157{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25158$as_echo_n "checking for $ac_word... " >&6; }
25159if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then
25160  $as_echo_n "(cached) " >&6
25161else
25162  case $DX_DOXYGEN in
25163  [\\/]* | ?:[\\/]*)
25164  ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
25165  ;;
25166  *)
25167  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25168for as_dir in $PATH
25169do
25170  IFS=$as_save_IFS
25171  test -z "$as_dir" && as_dir=.
25172  for ac_exec_ext in '' $ac_executable_extensions; do
25173  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25174    ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
25175    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25176    break 2
25177  fi
25178done
25179done
25180IFS=$as_save_IFS
25181
25182  ;;
25183esac
25184fi
25185DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
25186if test -n "$DX_DOXYGEN"; then
25187  { $as_echo "$as_me:$LINENO: result: $DX_DOXYGEN" >&5
25188$as_echo "$DX_DOXYGEN" >&6; }
25189else
25190  { $as_echo "$as_me:$LINENO: result: no" >&5
25191$as_echo "no" >&6; }
25192fi
25193
25194
25195fi
25196if test -z "$ac_cv_path_DX_DOXYGEN"; then
25197  ac_pt_DX_DOXYGEN=$DX_DOXYGEN
25198  # Extract the first word of "doxygen", so it can be a program name with args.
25199set dummy doxygen; ac_word=$2
25200{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25201$as_echo_n "checking for $ac_word... " >&6; }
25202if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then
25203  $as_echo_n "(cached) " >&6
25204else
25205  case $ac_pt_DX_DOXYGEN in
25206  [\\/]* | ?:[\\/]*)
25207  ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
25208  ;;
25209  *)
25210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25211for as_dir in $PATH
25212do
25213  IFS=$as_save_IFS
25214  test -z "$as_dir" && as_dir=.
25215  for ac_exec_ext in '' $ac_executable_extensions; do
25216  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25217    ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
25218    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25219    break 2
25220  fi
25221done
25222done
25223IFS=$as_save_IFS
25224
25225  ;;
25226esac
25227fi
25228ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
25229if test -n "$ac_pt_DX_DOXYGEN"; then
25230  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_DOXYGEN" >&5
25231$as_echo "$ac_pt_DX_DOXYGEN" >&6; }
25232else
25233  { $as_echo "$as_me:$LINENO: result: no" >&5
25234$as_echo "no" >&6; }
25235fi
25236
25237  if test "x$ac_pt_DX_DOXYGEN" = x; then
25238    DX_DOXYGEN=""
25239  else
25240    case $cross_compiling:$ac_tool_warned in
25241yes:)
25242{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
25243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25244ac_tool_warned=yes ;;
25245esac
25246    DX_DOXYGEN=$ac_pt_DX_DOXYGEN
25247  fi
25248else
25249  DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
25250fi
25251
25252if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
25253    { $as_echo "$as_me:$LINENO: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
25254$as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
25255    DX_FLAG_doc=0
25256
25257fi
25258
25259
25260if test -n "$ac_tool_prefix"; then
25261  # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
25262set dummy ${ac_tool_prefix}perl; ac_word=$2
25263{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25264$as_echo_n "checking for $ac_word... " >&6; }
25265if test "${ac_cv_path_DX_PERL+set}" = set; then
25266  $as_echo_n "(cached) " >&6
25267else
25268  case $DX_PERL in
25269  [\\/]* | ?:[\\/]*)
25270  ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
25271  ;;
25272  *)
25273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25274for as_dir in $PATH
25275do
25276  IFS=$as_save_IFS
25277  test -z "$as_dir" && as_dir=.
25278  for ac_exec_ext in '' $ac_executable_extensions; do
25279  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25280    ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
25281    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25282    break 2
25283  fi
25284done
25285done
25286IFS=$as_save_IFS
25287
25288  ;;
25289esac
25290fi
25291DX_PERL=$ac_cv_path_DX_PERL
25292if test -n "$DX_PERL"; then
25293  { $as_echo "$as_me:$LINENO: result: $DX_PERL" >&5
25294$as_echo "$DX_PERL" >&6; }
25295else
25296  { $as_echo "$as_me:$LINENO: result: no" >&5
25297$as_echo "no" >&6; }
25298fi
25299
25300
25301fi
25302if test -z "$ac_cv_path_DX_PERL"; then
25303  ac_pt_DX_PERL=$DX_PERL
25304  # Extract the first word of "perl", so it can be a program name with args.
25305set dummy perl; ac_word=$2
25306{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25307$as_echo_n "checking for $ac_word... " >&6; }
25308if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then
25309  $as_echo_n "(cached) " >&6
25310else
25311  case $ac_pt_DX_PERL in
25312  [\\/]* | ?:[\\/]*)
25313  ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
25314  ;;
25315  *)
25316  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25317for as_dir in $PATH
25318do
25319  IFS=$as_save_IFS
25320  test -z "$as_dir" && as_dir=.
25321  for ac_exec_ext in '' $ac_executable_extensions; do
25322  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25323    ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
25324    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25325    break 2
25326  fi
25327done
25328done
25329IFS=$as_save_IFS
25330
25331  ;;
25332esac
25333fi
25334ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
25335if test -n "$ac_pt_DX_PERL"; then
25336  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_PERL" >&5
25337$as_echo "$ac_pt_DX_PERL" >&6; }
25338else
25339  { $as_echo "$as_me:$LINENO: result: no" >&5
25340$as_echo "no" >&6; }
25341fi
25342
25343  if test "x$ac_pt_DX_PERL" = x; then
25344    DX_PERL=""
25345  else
25346    case $cross_compiling:$ac_tool_warned in
25347yes:)
25348{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
25349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25350ac_tool_warned=yes ;;
25351esac
25352    DX_PERL=$ac_pt_DX_PERL
25353  fi
25354else
25355  DX_PERL="$ac_cv_path_DX_PERL"
25356fi
25357
25358if test "$DX_FLAG_doc$DX_PERL" = 1; then
25359    { $as_echo "$as_me:$LINENO: WARNING: perl not found - will not generate any doxygen documentation" >&5
25360$as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
25361    DX_FLAG_doc=0
25362
25363fi
25364
25365    :
25366fi
25367if test "$DX_FLAG_doc" = 1; then
25368     if :; then
25369  DX_COND_doc_TRUE=
25370  DX_COND_doc_FALSE='#'
25371else
25372  DX_COND_doc_TRUE='#'
25373  DX_COND_doc_FALSE=
25374fi
25375
25376    DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
25377
25378    :
25379else
25380     if false; then
25381  DX_COND_doc_TRUE=
25382  DX_COND_doc_FALSE='#'
25383else
25384  DX_COND_doc_TRUE='#'
25385  DX_COND_doc_FALSE=
25386fi
25387
25388
25389    :
25390fi
25391
25392
25393# Dot for graphics:
25394
25395
25396
25397    # Check whether --enable-doxygen-dot was given.
25398if test "${enable_doxygen_dot+set}" = set; then
25399  enableval=$enable_doxygen_dot;
25400case "$enableval" in
25401#(
25402y|Y|yes|Yes|YES)
25403    DX_FLAG_dot=1
25404
25405
25406test "$DX_FLAG_doc" = "1" \
25407|| { { $as_echo "$as_me:$LINENO: error: doxygen-dot requires doxygen-dot" >&5
25408$as_echo "$as_me: error: doxygen-dot requires doxygen-dot" >&2;}
25409   { (exit 1); exit 1; }; }
25410
25411;; #(
25412n|N|no|No|NO)
25413    DX_FLAG_dot=0
25414
25415;; #(
25416*)
25417    { { $as_echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-dot" >&5
25418$as_echo "$as_me: error: invalid value '$enableval' given to doxygen-dot" >&2;}
25419   { (exit 1); exit 1; }; }
25420;;
25421esac
25422
25423else
25424
25425DX_FLAG_dot=1
25426
25427
25428test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
25429
25430
25431
25432fi
25433
25434if test "$DX_FLAG_dot" = 1; then
25435
25436if test -n "$ac_tool_prefix"; then
25437  # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
25438set dummy ${ac_tool_prefix}dot; ac_word=$2
25439{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25440$as_echo_n "checking for $ac_word... " >&6; }
25441if test "${ac_cv_path_DX_DOT+set}" = set; then
25442  $as_echo_n "(cached) " >&6
25443else
25444  case $DX_DOT in
25445  [\\/]* | ?:[\\/]*)
25446  ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
25447  ;;
25448  *)
25449  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25450for as_dir in $PATH
25451do
25452  IFS=$as_save_IFS
25453  test -z "$as_dir" && as_dir=.
25454  for ac_exec_ext in '' $ac_executable_extensions; do
25455  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25456    ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
25457    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25458    break 2
25459  fi
25460done
25461done
25462IFS=$as_save_IFS
25463
25464  ;;
25465esac
25466fi
25467DX_DOT=$ac_cv_path_DX_DOT
25468if test -n "$DX_DOT"; then
25469  { $as_echo "$as_me:$LINENO: result: $DX_DOT" >&5
25470$as_echo "$DX_DOT" >&6; }
25471else
25472  { $as_echo "$as_me:$LINENO: result: no" >&5
25473$as_echo "no" >&6; }
25474fi
25475
25476
25477fi
25478if test -z "$ac_cv_path_DX_DOT"; then
25479  ac_pt_DX_DOT=$DX_DOT
25480  # Extract the first word of "dot", so it can be a program name with args.
25481set dummy dot; ac_word=$2
25482{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25483$as_echo_n "checking for $ac_word... " >&6; }
25484if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then
25485  $as_echo_n "(cached) " >&6
25486else
25487  case $ac_pt_DX_DOT in
25488  [\\/]* | ?:[\\/]*)
25489  ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
25490  ;;
25491  *)
25492  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25493for as_dir in $PATH
25494do
25495  IFS=$as_save_IFS
25496  test -z "$as_dir" && as_dir=.
25497  for ac_exec_ext in '' $ac_executable_extensions; do
25498  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25499    ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
25500    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25501    break 2
25502  fi
25503done
25504done
25505IFS=$as_save_IFS
25506
25507  ;;
25508esac
25509fi
25510ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
25511if test -n "$ac_pt_DX_DOT"; then
25512  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_DOT" >&5
25513$as_echo "$ac_pt_DX_DOT" >&6; }
25514else
25515  { $as_echo "$as_me:$LINENO: result: no" >&5
25516$as_echo "no" >&6; }
25517fi
25518
25519  if test "x$ac_pt_DX_DOT" = x; then
25520    DX_DOT=""
25521  else
25522    case $cross_compiling:$ac_tool_warned in
25523yes:)
25524{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
25525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25526ac_tool_warned=yes ;;
25527esac
25528    DX_DOT=$ac_pt_DX_DOT
25529  fi
25530else
25531  DX_DOT="$ac_cv_path_DX_DOT"
25532fi
25533
25534if test "$DX_FLAG_dot$DX_DOT" = 1; then
25535    { $as_echo "$as_me:$LINENO: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
25536$as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
25537    DX_FLAG_dot=0
25538
25539fi
25540
25541    :
25542fi
25543if test "$DX_FLAG_dot" = 1; then
25544     if :; then
25545  DX_COND_dot_TRUE=
25546  DX_COND_dot_FALSE='#'
25547else
25548  DX_COND_dot_TRUE='#'
25549  DX_COND_dot_FALSE=
25550fi
25551
25552    DX_ENV="$DX_ENV HAVE_DOT='YES'"
25553
25554             DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
25555
25556    :
25557else
25558     if false; then
25559  DX_COND_dot_TRUE=
25560  DX_COND_dot_FALSE='#'
25561else
25562  DX_COND_dot_TRUE='#'
25563  DX_COND_dot_FALSE=
25564fi
25565
25566    DX_ENV="$DX_ENV HAVE_DOT='NO'"
25567
25568    :
25569fi
25570
25571
25572# Man pages generation:
25573
25574
25575
25576    # Check whether --enable-doxygen-man was given.
25577if test "${enable_doxygen_man+set}" = set; then
25578  enableval=$enable_doxygen_man;
25579case "$enableval" in
25580#(
25581y|Y|yes|Yes|YES)
25582    DX_FLAG_man=1
25583
25584
25585test "$DX_FLAG_doc" = "1" \
25586|| { { $as_echo "$as_me:$LINENO: error: doxygen-man requires doxygen-man" >&5
25587$as_echo "$as_me: error: doxygen-man requires doxygen-man" >&2;}
25588   { (exit 1); exit 1; }; }
25589
25590;; #(
25591n|N|no|No|NO)
25592    DX_FLAG_man=0
25593
25594;; #(
25595*)
25596    { { $as_echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-man" >&5
25597$as_echo "$as_me: error: invalid value '$enableval' given to doxygen-man" >&2;}
25598   { (exit 1); exit 1; }; }
25599;;
25600esac
25601
25602else
25603
25604DX_FLAG_man=0
25605
25606
25607test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
25608
25609
25610
25611fi
25612
25613if test "$DX_FLAG_man" = 1; then
25614
25615    :
25616fi
25617if test "$DX_FLAG_man" = 1; then
25618     if :; then
25619  DX_COND_man_TRUE=
25620  DX_COND_man_FALSE='#'
25621else
25622  DX_COND_man_TRUE='#'
25623  DX_COND_man_FALSE=
25624fi
25625
25626    DX_ENV="$DX_ENV GENERATE_MAN='YES'"
25627
25628    :
25629else
25630     if false; then
25631  DX_COND_man_TRUE=
25632  DX_COND_man_FALSE='#'
25633else
25634  DX_COND_man_TRUE='#'
25635  DX_COND_man_FALSE=
25636fi
25637
25638    DX_ENV="$DX_ENV GENERATE_MAN='NO'"
25639
25640    :
25641fi
25642
25643
25644# RTF file generation:
25645
25646
25647
25648    # Check whether --enable-doxygen-rtf was given.
25649if test "${enable_doxygen_rtf+set}" = set; then
25650  enableval=$enable_doxygen_rtf;
25651case "$enableval" in
25652#(
25653y|Y|yes|Yes|YES)
25654    DX_FLAG_rtf=1
25655
25656
25657test "$DX_FLAG_doc" = "1" \
25658|| { { $as_echo "$as_me:$LINENO: error: doxygen-rtf requires doxygen-rtf" >&5
25659$as_echo "$as_me: error: doxygen-rtf requires doxygen-rtf" >&2;}
25660   { (exit 1); exit 1; }; }
25661
25662;; #(
25663n|N|no|No|NO)
25664    DX_FLAG_rtf=0
25665
25666;; #(
25667*)
25668    { { $as_echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-rtf" >&5
25669$as_echo "$as_me: error: invalid value '$enableval' given to doxygen-rtf" >&2;}
25670   { (exit 1); exit 1; }; }
25671;;
25672esac
25673
25674else
25675
25676DX_FLAG_rtf=0
25677
25678
25679test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
25680
25681
25682
25683fi
25684
25685if test "$DX_FLAG_rtf" = 1; then
25686
25687    :
25688fi
25689if test "$DX_FLAG_rtf" = 1; then
25690     if :; then
25691  DX_COND_rtf_TRUE=
25692  DX_COND_rtf_FALSE='#'
25693else
25694  DX_COND_rtf_TRUE='#'
25695  DX_COND_rtf_FALSE=
25696fi
25697
25698    DX_ENV="$DX_ENV GENERATE_RTF='YES'"
25699
25700    :
25701else
25702     if false; then
25703  DX_COND_rtf_TRUE=
25704  DX_COND_rtf_FALSE='#'
25705else
25706  DX_COND_rtf_TRUE='#'
25707  DX_COND_rtf_FALSE=
25708fi
25709
25710    DX_ENV="$DX_ENV GENERATE_RTF='NO'"
25711
25712    :
25713fi
25714
25715
25716# XML file generation:
25717
25718
25719
25720    # Check whether --enable-doxygen-xml was given.
25721if test "${enable_doxygen_xml+set}" = set; then
25722  enableval=$enable_doxygen_xml;
25723case "$enableval" in
25724#(
25725y|Y|yes|Yes|YES)
25726    DX_FLAG_xml=1
25727
25728
25729test "$DX_FLAG_doc" = "1" \
25730|| { { $as_echo "$as_me:$LINENO: error: doxygen-xml requires doxygen-xml" >&5
25731$as_echo "$as_me: error: doxygen-xml requires doxygen-xml" >&2;}
25732   { (exit 1); exit 1; }; }
25733
25734;; #(
25735n|N|no|No|NO)
25736    DX_FLAG_xml=0
25737
25738;; #(
25739*)
25740    { { $as_echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-xml" >&5
25741$as_echo "$as_me: error: invalid value '$enableval' given to doxygen-xml" >&2;}
25742   { (exit 1); exit 1; }; }
25743;;
25744esac
25745
25746else
25747
25748DX_FLAG_xml=1
25749
25750
25751test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
25752
25753
25754
25755fi
25756
25757if test "$DX_FLAG_xml" = 1; then
25758
25759    :
25760fi
25761if test "$DX_FLAG_xml" = 1; then
25762     if :; then
25763  DX_COND_xml_TRUE=
25764  DX_COND_xml_FALSE='#'
25765else
25766  DX_COND_xml_TRUE='#'
25767  DX_COND_xml_FALSE=
25768fi
25769
25770    DX_ENV="$DX_ENV GENERATE_XML='YES'"
25771
25772    :
25773else
25774     if false; then
25775  DX_COND_xml_TRUE=
25776  DX_COND_xml_FALSE='#'
25777else
25778  DX_COND_xml_TRUE='#'
25779  DX_COND_xml_FALSE=
25780fi
25781
25782    DX_ENV="$DX_ENV GENERATE_XML='NO'"
25783
25784    :
25785fi
25786
25787
25788# (Compressed) HTML help generation:
25789
25790
25791
25792    # Check whether --enable-doxygen-chm was given.
25793if test "${enable_doxygen_chm+set}" = set; then
25794  enableval=$enable_doxygen_chm;
25795case "$enableval" in
25796#(
25797y|Y|yes|Yes|YES)
25798    DX_FLAG_chm=1
25799
25800
25801test "$DX_FLAG_doc" = "1" \
25802|| { { $as_echo "$as_me:$LINENO: error: doxygen-chm requires doxygen-chm" >&5
25803$as_echo "$as_me: error: doxygen-chm requires doxygen-chm" >&2;}
25804   { (exit 1); exit 1; }; }
25805
25806;; #(
25807n|N|no|No|NO)
25808    DX_FLAG_chm=0
25809
25810;; #(
25811*)
25812    { { $as_echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chm" >&5
25813$as_echo "$as_me: error: invalid value '$enableval' given to doxygen-chm" >&2;}
25814   { (exit 1); exit 1; }; }
25815;;
25816esac
25817
25818else
25819
25820DX_FLAG_chm=0
25821
25822
25823test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
25824
25825
25826
25827fi
25828
25829if test "$DX_FLAG_chm" = 1; then
25830
25831if test -n "$ac_tool_prefix"; then
25832  # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
25833set dummy ${ac_tool_prefix}hhc; ac_word=$2
25834{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25835$as_echo_n "checking for $ac_word... " >&6; }
25836if test "${ac_cv_path_DX_HHC+set}" = set; then
25837  $as_echo_n "(cached) " >&6
25838else
25839  case $DX_HHC in
25840  [\\/]* | ?:[\\/]*)
25841  ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
25842  ;;
25843  *)
25844  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25845for as_dir in $PATH
25846do
25847  IFS=$as_save_IFS
25848  test -z "$as_dir" && as_dir=.
25849  for ac_exec_ext in '' $ac_executable_extensions; do
25850  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25851    ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
25852    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25853    break 2
25854  fi
25855done
25856done
25857IFS=$as_save_IFS
25858
25859  ;;
25860esac
25861fi
25862DX_HHC=$ac_cv_path_DX_HHC
25863if test -n "$DX_HHC"; then
25864  { $as_echo "$as_me:$LINENO: result: $DX_HHC" >&5
25865$as_echo "$DX_HHC" >&6; }
25866else
25867  { $as_echo "$as_me:$LINENO: result: no" >&5
25868$as_echo "no" >&6; }
25869fi
25870
25871
25872fi
25873if test -z "$ac_cv_path_DX_HHC"; then
25874  ac_pt_DX_HHC=$DX_HHC
25875  # Extract the first word of "hhc", so it can be a program name with args.
25876set dummy hhc; ac_word=$2
25877{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25878$as_echo_n "checking for $ac_word... " >&6; }
25879if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then
25880  $as_echo_n "(cached) " >&6
25881else
25882  case $ac_pt_DX_HHC in
25883  [\\/]* | ?:[\\/]*)
25884  ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
25885  ;;
25886  *)
25887  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25888for as_dir in $PATH
25889do
25890  IFS=$as_save_IFS
25891  test -z "$as_dir" && as_dir=.
25892  for ac_exec_ext in '' $ac_executable_extensions; do
25893  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25894    ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
25895    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25896    break 2
25897  fi
25898done
25899done
25900IFS=$as_save_IFS
25901
25902  ;;
25903esac
25904fi
25905ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
25906if test -n "$ac_pt_DX_HHC"; then
25907  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_HHC" >&5
25908$as_echo "$ac_pt_DX_HHC" >&6; }
25909else
25910  { $as_echo "$as_me:$LINENO: result: no" >&5
25911$as_echo "no" >&6; }
25912fi
25913
25914  if test "x$ac_pt_DX_HHC" = x; then
25915    DX_HHC=""
25916  else
25917    case $cross_compiling:$ac_tool_warned in
25918yes:)
25919{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
25920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25921ac_tool_warned=yes ;;
25922esac
25923    DX_HHC=$ac_pt_DX_HHC
25924  fi
25925else
25926  DX_HHC="$ac_cv_path_DX_HHC"
25927fi
25928
25929if test "$DX_FLAG_chm$DX_HHC" = 1; then
25930    { $as_echo "$as_me:$LINENO: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
25931$as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
25932    DX_FLAG_chm=0
25933
25934fi
25935
25936    :
25937fi
25938if test "$DX_FLAG_chm" = 1; then
25939     if :; then
25940  DX_COND_chm_TRUE=
25941  DX_COND_chm_FALSE='#'
25942else
25943  DX_COND_chm_TRUE='#'
25944  DX_COND_chm_FALSE=
25945fi
25946
25947    DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
25948
25949             DX_ENV="$DX_ENV GENERATE_HTML='YES'"
25950
25951             DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
25952
25953    :
25954else
25955     if false; then
25956  DX_COND_chm_TRUE=
25957  DX_COND_chm_FALSE='#'
25958else
25959  DX_COND_chm_TRUE='#'
25960  DX_COND_chm_FALSE=
25961fi
25962
25963    DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
25964
25965    :
25966fi
25967
25968
25969# Seperate CHI file generation.
25970
25971
25972
25973    # Check whether --enable-doxygen-chi was given.
25974if test "${enable_doxygen_chi+set}" = set; then
25975  enableval=$enable_doxygen_chi;
25976case "$enableval" in
25977#(
25978y|Y|yes|Yes|YES)
25979    DX_FLAG_chi=1
25980
25981
25982test "$DX_FLAG_chm" = "1" \
25983|| { { $as_echo "$as_me:$LINENO: error: doxygen-chi requires doxygen-chi" >&5
25984$as_echo "$as_me: error: doxygen-chi requires doxygen-chi" >&2;}
25985   { (exit 1); exit 1; }; }
25986
25987;; #(
25988n|N|no|No|NO)
25989    DX_FLAG_chi=0
25990
25991;; #(
25992*)
25993    { { $as_echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chi" >&5
25994$as_echo "$as_me: error: invalid value '$enableval' given to doxygen-chi" >&2;}
25995   { (exit 1); exit 1; }; }
25996;;
25997esac
25998
25999else
26000
26001DX_FLAG_chi=0
26002
26003
26004test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
26005
26006
26007
26008fi
26009
26010if test "$DX_FLAG_chi" = 1; then
26011
26012    :
26013fi
26014if test "$DX_FLAG_chi" = 1; then
26015     if :; then
26016  DX_COND_chi_TRUE=
26017  DX_COND_chi_FALSE='#'
26018else
26019  DX_COND_chi_TRUE='#'
26020  DX_COND_chi_FALSE=
26021fi
26022
26023    DX_ENV="$DX_ENV GENERATE_CHI='YES'"
26024
26025    :
26026else
26027     if false; then
26028  DX_COND_chi_TRUE=
26029  DX_COND_chi_FALSE='#'
26030else
26031  DX_COND_chi_TRUE='#'
26032  DX_COND_chi_FALSE=
26033fi
26034
26035    DX_ENV="$DX_ENV GENERATE_CHI='NO'"
26036
26037    :
26038fi
26039
26040
26041# Plain HTML pages generation:
26042
26043
26044
26045    # Check whether --enable-doxygen-html was given.
26046if test "${enable_doxygen_html+set}" = set; then
26047  enableval=$enable_doxygen_html;
26048case "$enableval" in
26049#(
26050y|Y|yes|Yes|YES)
26051    DX_FLAG_html=1
26052
26053
26054test "$DX_FLAG_doc" = "1" \
26055|| { { $as_echo "$as_me:$LINENO: error: doxygen-html requires doxygen-html" >&5
26056$as_echo "$as_me: error: doxygen-html requires doxygen-html" >&2;}
26057   { (exit 1); exit 1; }; }
26058
26059test "$DX_FLAG_chm" = "0" \
26060|| { { $as_echo "$as_me:$LINENO: error: doxygen-html contradicts doxygen-html" >&5
26061$as_echo "$as_me: error: doxygen-html contradicts doxygen-html" >&2;}
26062   { (exit 1); exit 1; }; }
26063
26064;; #(
26065n|N|no|No|NO)
26066    DX_FLAG_html=0
26067
26068;; #(
26069*)
26070    { { $as_echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-html" >&5
26071$as_echo "$as_me: error: invalid value '$enableval' given to doxygen-html" >&2;}
26072   { (exit 1); exit 1; }; }
26073;;
26074esac
26075
26076else
26077
26078DX_FLAG_html=1
26079
26080
26081test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
26082
26083
26084test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
26085
26086
26087
26088fi
26089
26090if test "$DX_FLAG_html" = 1; then
26091
26092    :
26093fi
26094if test "$DX_FLAG_html" = 1; then
26095     if :; then
26096  DX_COND_html_TRUE=
26097  DX_COND_html_FALSE='#'
26098else
26099  DX_COND_html_TRUE='#'
26100  DX_COND_html_FALSE=
26101fi
26102
26103    DX_ENV="$DX_ENV GENERATE_HTML='YES'"
26104
26105    :
26106else
26107     if false; then
26108  DX_COND_html_TRUE=
26109  DX_COND_html_FALSE='#'
26110else
26111  DX_COND_html_TRUE='#'
26112  DX_COND_html_FALSE=
26113fi
26114
26115    test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
26116
26117    :
26118fi
26119
26120
26121# PostScript file generation:
26122
26123
26124
26125    # Check whether --enable-doxygen-ps was given.
26126if test "${enable_doxygen_ps+set}" = set; then
26127  enableval=$enable_doxygen_ps;
26128case "$enableval" in
26129#(
26130y|Y|yes|Yes|YES)
26131    DX_FLAG_ps=1
26132
26133
26134test "$DX_FLAG_doc" = "1" \
26135|| { { $as_echo "$as_me:$LINENO: error: doxygen-ps requires doxygen-ps" >&5
26136$as_echo "$as_me: error: doxygen-ps requires doxygen-ps" >&2;}
26137   { (exit 1); exit 1; }; }
26138
26139;; #(
26140n|N|no|No|NO)
26141    DX_FLAG_ps=0
26142
26143;; #(
26144*)
26145    { { $as_echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-ps" >&5
26146$as_echo "$as_me: error: invalid value '$enableval' given to doxygen-ps" >&2;}
26147   { (exit 1); exit 1; }; }
26148;;
26149esac
26150
26151else
26152
26153DX_FLAG_ps=0
26154
26155
26156test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
26157
26158
26159
26160fi
26161
26162if test "$DX_FLAG_ps" = 1; then
26163
26164if test -n "$ac_tool_prefix"; then
26165  # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
26166set dummy ${ac_tool_prefix}latex; ac_word=$2
26167{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26168$as_echo_n "checking for $ac_word... " >&6; }
26169if test "${ac_cv_path_DX_LATEX+set}" = set; then
26170  $as_echo_n "(cached) " >&6
26171else
26172  case $DX_LATEX in
26173  [\\/]* | ?:[\\/]*)
26174  ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
26175  ;;
26176  *)
26177  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26178for as_dir in $PATH
26179do
26180  IFS=$as_save_IFS
26181  test -z "$as_dir" && as_dir=.
26182  for ac_exec_ext in '' $ac_executable_extensions; do
26183  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26184    ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
26185    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26186    break 2
26187  fi
26188done
26189done
26190IFS=$as_save_IFS
26191
26192  ;;
26193esac
26194fi
26195DX_LATEX=$ac_cv_path_DX_LATEX
26196if test -n "$DX_LATEX"; then
26197  { $as_echo "$as_me:$LINENO: result: $DX_LATEX" >&5
26198$as_echo "$DX_LATEX" >&6; }
26199else
26200  { $as_echo "$as_me:$LINENO: result: no" >&5
26201$as_echo "no" >&6; }
26202fi
26203
26204
26205fi
26206if test -z "$ac_cv_path_DX_LATEX"; then
26207  ac_pt_DX_LATEX=$DX_LATEX
26208  # Extract the first word of "latex", so it can be a program name with args.
26209set dummy latex; ac_word=$2
26210{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26211$as_echo_n "checking for $ac_word... " >&6; }
26212if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then
26213  $as_echo_n "(cached) " >&6
26214else
26215  case $ac_pt_DX_LATEX in
26216  [\\/]* | ?:[\\/]*)
26217  ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
26218  ;;
26219  *)
26220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26221for as_dir in $PATH
26222do
26223  IFS=$as_save_IFS
26224  test -z "$as_dir" && as_dir=.
26225  for ac_exec_ext in '' $ac_executable_extensions; do
26226  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26227    ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
26228    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26229    break 2
26230  fi
26231done
26232done
26233IFS=$as_save_IFS
26234
26235  ;;
26236esac
26237fi
26238ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
26239if test -n "$ac_pt_DX_LATEX"; then
26240  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_LATEX" >&5
26241$as_echo "$ac_pt_DX_LATEX" >&6; }
26242else
26243  { $as_echo "$as_me:$LINENO: result: no" >&5
26244$as_echo "no" >&6; }
26245fi
26246
26247  if test "x$ac_pt_DX_LATEX" = x; then
26248    DX_LATEX=""
26249  else
26250    case $cross_compiling:$ac_tool_warned in
26251yes:)
26252{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
26253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26254ac_tool_warned=yes ;;
26255esac
26256    DX_LATEX=$ac_pt_DX_LATEX
26257  fi
26258else
26259  DX_LATEX="$ac_cv_path_DX_LATEX"
26260fi
26261
26262if test "$DX_FLAG_ps$DX_LATEX" = 1; then
26263    { $as_echo "$as_me:$LINENO: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
26264$as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
26265    DX_FLAG_ps=0
26266
26267fi
26268
26269
26270if test -n "$ac_tool_prefix"; then
26271  # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
26272set dummy ${ac_tool_prefix}makeindex; ac_word=$2
26273{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26274$as_echo_n "checking for $ac_word... " >&6; }
26275if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
26276  $as_echo_n "(cached) " >&6
26277else
26278  case $DX_MAKEINDEX in
26279  [\\/]* | ?:[\\/]*)
26280  ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
26281  ;;
26282  *)
26283  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26284for as_dir in $PATH
26285do
26286  IFS=$as_save_IFS
26287  test -z "$as_dir" && as_dir=.
26288  for ac_exec_ext in '' $ac_executable_extensions; do
26289  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26290    ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
26291    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26292    break 2
26293  fi
26294done
26295done
26296IFS=$as_save_IFS
26297
26298  ;;
26299esac
26300fi
26301DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
26302if test -n "$DX_MAKEINDEX"; then
26303  { $as_echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
26304$as_echo "$DX_MAKEINDEX" >&6; }
26305else
26306  { $as_echo "$as_me:$LINENO: result: no" >&5
26307$as_echo "no" >&6; }
26308fi
26309
26310
26311fi
26312if test -z "$ac_cv_path_DX_MAKEINDEX"; then
26313  ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
26314  # Extract the first word of "makeindex", so it can be a program name with args.
26315set dummy makeindex; ac_word=$2
26316{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26317$as_echo_n "checking for $ac_word... " >&6; }
26318if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
26319  $as_echo_n "(cached) " >&6
26320else
26321  case $ac_pt_DX_MAKEINDEX in
26322  [\\/]* | ?:[\\/]*)
26323  ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
26324  ;;
26325  *)
26326  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26327for as_dir in $PATH
26328do
26329  IFS=$as_save_IFS
26330  test -z "$as_dir" && as_dir=.
26331  for ac_exec_ext in '' $ac_executable_extensions; do
26332  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26333    ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
26334    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26335    break 2
26336  fi
26337done
26338done
26339IFS=$as_save_IFS
26340
26341  ;;
26342esac
26343fi
26344ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
26345if test -n "$ac_pt_DX_MAKEINDEX"; then
26346  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
26347$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
26348else
26349  { $as_echo "$as_me:$LINENO: result: no" >&5
26350$as_echo "no" >&6; }
26351fi
26352
26353  if test "x$ac_pt_DX_MAKEINDEX" = x; then
26354    DX_MAKEINDEX=""
26355  else
26356    case $cross_compiling:$ac_tool_warned in
26357yes:)
26358{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
26359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26360ac_tool_warned=yes ;;
26361esac
26362    DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
26363  fi
26364else
26365  DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
26366fi
26367
26368if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
26369    { $as_echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
26370$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
26371    DX_FLAG_ps=0
26372
26373fi
26374
26375
26376if test -n "$ac_tool_prefix"; then
26377  # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
26378set dummy ${ac_tool_prefix}dvips; ac_word=$2
26379{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26380$as_echo_n "checking for $ac_word... " >&6; }
26381if test "${ac_cv_path_DX_DVIPS+set}" = set; then
26382  $as_echo_n "(cached) " >&6
26383else
26384  case $DX_DVIPS in
26385  [\\/]* | ?:[\\/]*)
26386  ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
26387  ;;
26388  *)
26389  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26390for as_dir in $PATH
26391do
26392  IFS=$as_save_IFS
26393  test -z "$as_dir" && as_dir=.
26394  for ac_exec_ext in '' $ac_executable_extensions; do
26395  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26396    ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
26397    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26398    break 2
26399  fi
26400done
26401done
26402IFS=$as_save_IFS
26403
26404  ;;
26405esac
26406fi
26407DX_DVIPS=$ac_cv_path_DX_DVIPS
26408if test -n "$DX_DVIPS"; then
26409  { $as_echo "$as_me:$LINENO: result: $DX_DVIPS" >&5
26410$as_echo "$DX_DVIPS" >&6; }
26411else
26412  { $as_echo "$as_me:$LINENO: result: no" >&5
26413$as_echo "no" >&6; }
26414fi
26415
26416
26417fi
26418if test -z "$ac_cv_path_DX_DVIPS"; then
26419  ac_pt_DX_DVIPS=$DX_DVIPS
26420  # Extract the first word of "dvips", so it can be a program name with args.
26421set dummy dvips; ac_word=$2
26422{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26423$as_echo_n "checking for $ac_word... " >&6; }
26424if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then
26425  $as_echo_n "(cached) " >&6
26426else
26427  case $ac_pt_DX_DVIPS in
26428  [\\/]* | ?:[\\/]*)
26429  ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
26430  ;;
26431  *)
26432  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26433for as_dir in $PATH
26434do
26435  IFS=$as_save_IFS
26436  test -z "$as_dir" && as_dir=.
26437  for ac_exec_ext in '' $ac_executable_extensions; do
26438  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26439    ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
26440    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26441    break 2
26442  fi
26443done
26444done
26445IFS=$as_save_IFS
26446
26447  ;;
26448esac
26449fi
26450ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
26451if test -n "$ac_pt_DX_DVIPS"; then
26452  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_DVIPS" >&5
26453$as_echo "$ac_pt_DX_DVIPS" >&6; }
26454else
26455  { $as_echo "$as_me:$LINENO: result: no" >&5
26456$as_echo "no" >&6; }
26457fi
26458
26459  if test "x$ac_pt_DX_DVIPS" = x; then
26460    DX_DVIPS=""
26461  else
26462    case $cross_compiling:$ac_tool_warned in
26463yes:)
26464{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
26465$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26466ac_tool_warned=yes ;;
26467esac
26468    DX_DVIPS=$ac_pt_DX_DVIPS
26469  fi
26470else
26471  DX_DVIPS="$ac_cv_path_DX_DVIPS"
26472fi
26473
26474if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
26475    { $as_echo "$as_me:$LINENO: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
26476$as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
26477    DX_FLAG_ps=0
26478
26479fi
26480
26481
26482if test -n "$ac_tool_prefix"; then
26483  # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
26484set dummy ${ac_tool_prefix}egrep; ac_word=$2
26485{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26486$as_echo_n "checking for $ac_word... " >&6; }
26487if test "${ac_cv_path_DX_EGREP+set}" = set; then
26488  $as_echo_n "(cached) " >&6
26489else
26490  case $DX_EGREP in
26491  [\\/]* | ?:[\\/]*)
26492  ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
26493  ;;
26494  *)
26495  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26496for as_dir in $PATH
26497do
26498  IFS=$as_save_IFS
26499  test -z "$as_dir" && as_dir=.
26500  for ac_exec_ext in '' $ac_executable_extensions; do
26501  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26502    ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
26503    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26504    break 2
26505  fi
26506done
26507done
26508IFS=$as_save_IFS
26509
26510  ;;
26511esac
26512fi
26513DX_EGREP=$ac_cv_path_DX_EGREP
26514if test -n "$DX_EGREP"; then
26515  { $as_echo "$as_me:$LINENO: result: $DX_EGREP" >&5
26516$as_echo "$DX_EGREP" >&6; }
26517else
26518  { $as_echo "$as_me:$LINENO: result: no" >&5
26519$as_echo "no" >&6; }
26520fi
26521
26522
26523fi
26524if test -z "$ac_cv_path_DX_EGREP"; then
26525  ac_pt_DX_EGREP=$DX_EGREP
26526  # Extract the first word of "egrep", so it can be a program name with args.
26527set dummy egrep; ac_word=$2
26528{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26529$as_echo_n "checking for $ac_word... " >&6; }
26530if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
26531  $as_echo_n "(cached) " >&6
26532else
26533  case $ac_pt_DX_EGREP in
26534  [\\/]* | ?:[\\/]*)
26535  ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
26536  ;;
26537  *)
26538  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26539for as_dir in $PATH
26540do
26541  IFS=$as_save_IFS
26542  test -z "$as_dir" && as_dir=.
26543  for ac_exec_ext in '' $ac_executable_extensions; do
26544  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26545    ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
26546    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26547    break 2
26548  fi
26549done
26550done
26551IFS=$as_save_IFS
26552
26553  ;;
26554esac
26555fi
26556ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
26557if test -n "$ac_pt_DX_EGREP"; then
26558  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
26559$as_echo "$ac_pt_DX_EGREP" >&6; }
26560else
26561  { $as_echo "$as_me:$LINENO: result: no" >&5
26562$as_echo "no" >&6; }
26563fi
26564
26565  if test "x$ac_pt_DX_EGREP" = x; then
26566    DX_EGREP=""
26567  else
26568    case $cross_compiling:$ac_tool_warned in
26569yes:)
26570{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
26571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26572ac_tool_warned=yes ;;
26573esac
26574    DX_EGREP=$ac_pt_DX_EGREP
26575  fi
26576else
26577  DX_EGREP="$ac_cv_path_DX_EGREP"
26578fi
26579
26580if test "$DX_FLAG_ps$DX_EGREP" = 1; then
26581    { $as_echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
26582$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
26583    DX_FLAG_ps=0
26584
26585fi
26586
26587    :
26588fi
26589if test "$DX_FLAG_ps" = 1; then
26590     if :; then
26591  DX_COND_ps_TRUE=
26592  DX_COND_ps_FALSE='#'
26593else
26594  DX_COND_ps_TRUE='#'
26595  DX_COND_ps_FALSE=
26596fi
26597
26598
26599    :
26600else
26601     if false; then
26602  DX_COND_ps_TRUE=
26603  DX_COND_ps_FALSE='#'
26604else
26605  DX_COND_ps_TRUE='#'
26606  DX_COND_ps_FALSE=
26607fi
26608
26609
26610    :
26611fi
26612
26613
26614# PDF file generation:
26615
26616
26617
26618    # Check whether --enable-doxygen-pdf was given.
26619if test "${enable_doxygen_pdf+set}" = set; then
26620  enableval=$enable_doxygen_pdf;
26621case "$enableval" in
26622#(
26623y|Y|yes|Yes|YES)
26624    DX_FLAG_pdf=1
26625
26626
26627test "$DX_FLAG_doc" = "1" \
26628|| { { $as_echo "$as_me:$LINENO: error: doxygen-pdf requires doxygen-pdf" >&5
26629$as_echo "$as_me: error: doxygen-pdf requires doxygen-pdf" >&2;}
26630   { (exit 1); exit 1; }; }
26631
26632;; #(
26633n|N|no|No|NO)
26634    DX_FLAG_pdf=0
26635
26636;; #(
26637*)
26638    { { $as_echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-pdf" >&5
26639$as_echo "$as_me: error: invalid value '$enableval' given to doxygen-pdf" >&2;}
26640   { (exit 1); exit 1; }; }
26641;;
26642esac
26643
26644else
26645
26646DX_FLAG_pdf=0
26647
26648
26649test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
26650
26651
26652
26653fi
26654
26655if test "$DX_FLAG_pdf" = 1; then
26656
26657if test -n "$ac_tool_prefix"; then
26658  # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
26659set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
26660{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26661$as_echo_n "checking for $ac_word... " >&6; }
26662if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then
26663  $as_echo_n "(cached) " >&6
26664else
26665  case $DX_PDFLATEX in
26666  [\\/]* | ?:[\\/]*)
26667  ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
26668  ;;
26669  *)
26670  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26671for as_dir in $PATH
26672do
26673  IFS=$as_save_IFS
26674  test -z "$as_dir" && as_dir=.
26675  for ac_exec_ext in '' $ac_executable_extensions; do
26676  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26677    ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
26678    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26679    break 2
26680  fi
26681done
26682done
26683IFS=$as_save_IFS
26684
26685  ;;
26686esac
26687fi
26688DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
26689if test -n "$DX_PDFLATEX"; then
26690  { $as_echo "$as_me:$LINENO: result: $DX_PDFLATEX" >&5
26691$as_echo "$DX_PDFLATEX" >&6; }
26692else
26693  { $as_echo "$as_me:$LINENO: result: no" >&5
26694$as_echo "no" >&6; }
26695fi
26696
26697
26698fi
26699if test -z "$ac_cv_path_DX_PDFLATEX"; then
26700  ac_pt_DX_PDFLATEX=$DX_PDFLATEX
26701  # Extract the first word of "pdflatex", so it can be a program name with args.
26702set dummy pdflatex; ac_word=$2
26703{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26704$as_echo_n "checking for $ac_word... " >&6; }
26705if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then
26706  $as_echo_n "(cached) " >&6
26707else
26708  case $ac_pt_DX_PDFLATEX in
26709  [\\/]* | ?:[\\/]*)
26710  ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
26711  ;;
26712  *)
26713  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26714for as_dir in $PATH
26715do
26716  IFS=$as_save_IFS
26717  test -z "$as_dir" && as_dir=.
26718  for ac_exec_ext in '' $ac_executable_extensions; do
26719  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26720    ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
26721    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26722    break 2
26723  fi
26724done
26725done
26726IFS=$as_save_IFS
26727
26728  ;;
26729esac
26730fi
26731ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
26732if test -n "$ac_pt_DX_PDFLATEX"; then
26733  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_PDFLATEX" >&5
26734$as_echo "$ac_pt_DX_PDFLATEX" >&6; }
26735else
26736  { $as_echo "$as_me:$LINENO: result: no" >&5
26737$as_echo "no" >&6; }
26738fi
26739
26740  if test "x$ac_pt_DX_PDFLATEX" = x; then
26741    DX_PDFLATEX=""
26742  else
26743    case $cross_compiling:$ac_tool_warned in
26744yes:)
26745{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
26746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26747ac_tool_warned=yes ;;
26748esac
26749    DX_PDFLATEX=$ac_pt_DX_PDFLATEX
26750  fi
26751else
26752  DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
26753fi
26754
26755if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
26756    { $as_echo "$as_me:$LINENO: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
26757$as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
26758    DX_FLAG_pdf=0
26759
26760fi
26761
26762
26763if test -n "$ac_tool_prefix"; then
26764  # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
26765set dummy ${ac_tool_prefix}makeindex; ac_word=$2
26766{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26767$as_echo_n "checking for $ac_word... " >&6; }
26768if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
26769  $as_echo_n "(cached) " >&6
26770else
26771  case $DX_MAKEINDEX in
26772  [\\/]* | ?:[\\/]*)
26773  ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
26774  ;;
26775  *)
26776  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26777for as_dir in $PATH
26778do
26779  IFS=$as_save_IFS
26780  test -z "$as_dir" && as_dir=.
26781  for ac_exec_ext in '' $ac_executable_extensions; do
26782  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26783    ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
26784    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26785    break 2
26786  fi
26787done
26788done
26789IFS=$as_save_IFS
26790
26791  ;;
26792esac
26793fi
26794DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
26795if test -n "$DX_MAKEINDEX"; then
26796  { $as_echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
26797$as_echo "$DX_MAKEINDEX" >&6; }
26798else
26799  { $as_echo "$as_me:$LINENO: result: no" >&5
26800$as_echo "no" >&6; }
26801fi
26802
26803
26804fi
26805if test -z "$ac_cv_path_DX_MAKEINDEX"; then
26806  ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
26807  # Extract the first word of "makeindex", so it can be a program name with args.
26808set dummy makeindex; ac_word=$2
26809{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26810$as_echo_n "checking for $ac_word... " >&6; }
26811if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
26812  $as_echo_n "(cached) " >&6
26813else
26814  case $ac_pt_DX_MAKEINDEX in
26815  [\\/]* | ?:[\\/]*)
26816  ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
26817  ;;
26818  *)
26819  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26820for as_dir in $PATH
26821do
26822  IFS=$as_save_IFS
26823  test -z "$as_dir" && as_dir=.
26824  for ac_exec_ext in '' $ac_executable_extensions; do
26825  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26826    ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
26827    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26828    break 2
26829  fi
26830done
26831done
26832IFS=$as_save_IFS
26833
26834  ;;
26835esac
26836fi
26837ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
26838if test -n "$ac_pt_DX_MAKEINDEX"; then
26839  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
26840$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
26841else
26842  { $as_echo "$as_me:$LINENO: result: no" >&5
26843$as_echo "no" >&6; }
26844fi
26845
26846  if test "x$ac_pt_DX_MAKEINDEX" = x; then
26847    DX_MAKEINDEX=""
26848  else
26849    case $cross_compiling:$ac_tool_warned in
26850yes:)
26851{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
26852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26853ac_tool_warned=yes ;;
26854esac
26855    DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
26856  fi
26857else
26858  DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
26859fi
26860
26861if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
26862    { $as_echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
26863$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
26864    DX_FLAG_pdf=0
26865
26866fi
26867
26868
26869if test -n "$ac_tool_prefix"; then
26870  # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
26871set dummy ${ac_tool_prefix}egrep; ac_word=$2
26872{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26873$as_echo_n "checking for $ac_word... " >&6; }
26874if test "${ac_cv_path_DX_EGREP+set}" = set; then
26875  $as_echo_n "(cached) " >&6
26876else
26877  case $DX_EGREP in
26878  [\\/]* | ?:[\\/]*)
26879  ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
26880  ;;
26881  *)
26882  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26883for as_dir in $PATH
26884do
26885  IFS=$as_save_IFS
26886  test -z "$as_dir" && as_dir=.
26887  for ac_exec_ext in '' $ac_executable_extensions; do
26888  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26889    ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
26890    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26891    break 2
26892  fi
26893done
26894done
26895IFS=$as_save_IFS
26896
26897  ;;
26898esac
26899fi
26900DX_EGREP=$ac_cv_path_DX_EGREP
26901if test -n "$DX_EGREP"; then
26902  { $as_echo "$as_me:$LINENO: result: $DX_EGREP" >&5
26903$as_echo "$DX_EGREP" >&6; }
26904else
26905  { $as_echo "$as_me:$LINENO: result: no" >&5
26906$as_echo "no" >&6; }
26907fi
26908
26909
26910fi
26911if test -z "$ac_cv_path_DX_EGREP"; then
26912  ac_pt_DX_EGREP=$DX_EGREP
26913  # Extract the first word of "egrep", so it can be a program name with args.
26914set dummy egrep; ac_word=$2
26915{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26916$as_echo_n "checking for $ac_word... " >&6; }
26917if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
26918  $as_echo_n "(cached) " >&6
26919else
26920  case $ac_pt_DX_EGREP in
26921  [\\/]* | ?:[\\/]*)
26922  ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
26923  ;;
26924  *)
26925  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26926for as_dir in $PATH
26927do
26928  IFS=$as_save_IFS
26929  test -z "$as_dir" && as_dir=.
26930  for ac_exec_ext in '' $ac_executable_extensions; do
26931  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26932    ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
26933    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26934    break 2
26935  fi
26936done
26937done
26938IFS=$as_save_IFS
26939
26940  ;;
26941esac
26942fi
26943ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
26944if test -n "$ac_pt_DX_EGREP"; then
26945  { $as_echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
26946$as_echo "$ac_pt_DX_EGREP" >&6; }
26947else
26948  { $as_echo "$as_me:$LINENO: result: no" >&5
26949$as_echo "no" >&6; }
26950fi
26951
26952  if test "x$ac_pt_DX_EGREP" = x; then
26953    DX_EGREP=""
26954  else
26955    case $cross_compiling:$ac_tool_warned in
26956yes:)
26957{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
26958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26959ac_tool_warned=yes ;;
26960esac
26961    DX_EGREP=$ac_pt_DX_EGREP
26962  fi
26963else
26964  DX_EGREP="$ac_cv_path_DX_EGREP"
26965fi
26966
26967if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
26968    { $as_echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
26969$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
26970    DX_FLAG_pdf=0
26971
26972fi
26973
26974    :
26975fi
26976if test "$DX_FLAG_pdf" = 1; then
26977     if :; then
26978  DX_COND_pdf_TRUE=
26979  DX_COND_pdf_FALSE='#'
26980else
26981  DX_COND_pdf_TRUE='#'
26982  DX_COND_pdf_FALSE=
26983fi
26984
26985
26986    :
26987else
26988     if false; then
26989  DX_COND_pdf_TRUE=
26990  DX_COND_pdf_FALSE='#'
26991else
26992  DX_COND_pdf_TRUE='#'
26993  DX_COND_pdf_FALSE=
26994fi
26995
26996
26997    :
26998fi
26999
27000
27001# LaTeX generation for PS and/or PDF:
27002if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
27003     if :; then
27004  DX_COND_latex_TRUE=
27005  DX_COND_latex_FALSE='#'
27006else
27007  DX_COND_latex_TRUE='#'
27008  DX_COND_latex_FALSE=
27009fi
27010
27011    DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
27012
27013else
27014     if false; then
27015  DX_COND_latex_TRUE=
27016  DX_COND_latex_FALSE='#'
27017else
27018  DX_COND_latex_TRUE='#'
27019  DX_COND_latex_FALSE=
27020fi
27021
27022    DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
27023
27024fi
27025
27026# Paper size for PS and/or PDF:
27027
27028case "$DOXYGEN_PAPER_SIZE" in
27029#(
27030"")
27031    DOXYGEN_PAPER_SIZE=""
27032
27033;; #(
27034a4wide|a4|letter|legal|executive)
27035    DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
27036
27037;; #(
27038*)
27039    { { $as_echo "$as_me:$LINENO: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&5
27040$as_echo "$as_me: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&2;}
27041   { (exit 1); exit 1; }; }
27042;;
27043esac
27044
27045#For debugging:
27046#echo DX_FLAG_doc=$DX_FLAG_doc
27047#echo DX_FLAG_dot=$DX_FLAG_dot
27048#echo DX_FLAG_man=$DX_FLAG_man
27049#echo DX_FLAG_html=$DX_FLAG_html
27050#echo DX_FLAG_chm=$DX_FLAG_chm
27051#echo DX_FLAG_chi=$DX_FLAG_chi
27052#echo DX_FLAG_rtf=$DX_FLAG_rtf
27053#echo DX_FLAG_xml=$DX_FLAG_xml
27054#echo DX_FLAG_pdf=$DX_FLAG_pdf
27055#echo DX_FLAG_ps=$DX_FLAG_ps
27056#echo DX_ENV=$DX_ENV
27057
27058
27059# Check whether --enable-core-docs was given.
27060if test "${enable_core_docs+set}" = set; then
27061  enableval=$enable_core_docs; case "${enableval}" in
27062  yes) ENABLE_CORE_DOCS=yes ;;
27063  no)  ENABLE_CORE_DOCS=no ;;
27064  *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-core-docs" >&5
27065$as_echo "$as_me: error: bad value ${enableval} for --enable-core-docs" >&2;}
27066   { (exit 1); exit 1; }; } ;;
27067esac
27068else
27069  ENABLE_CORE_DOCS=no
27070fi
27071
27072
27073 if test "x$ENABLE_CORE_DOCS" = xyes; then
27074  ENABLE_CORE_DOCS_TRUE=
27075  ENABLE_CORE_DOCS_FALSE='#'
27076else
27077  ENABLE_CORE_DOCS_TRUE='#'
27078  ENABLE_CORE_DOCS_FALSE=
27079fi
27080
27081
27082#
27083# Build and Install man pages
27084#
27085# Check whether --enable-manpages was given.
27086if test "${enable_manpages+set}" = set; then
27087  enableval=$enable_manpages; case "${enableval}" in
27088  yes) manpages=yes ;;
27089  no)  manpages=no ;;
27090  *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-manpages" >&5
27091$as_echo "$as_me: error: bad value ${enableval} for --disable-manpages" >&2;}
27092   { (exit 1); exit 1; }; } ;;
27093esac
27094else
27095  manpages=yes
27096fi
27097
27098
27099if test x$manpages = xyes ; then
27100    #
27101    # XMLTOMAN manpage generation
27102    #
27103    # Check whether --enable-xmltoman was given.
27104if test "${enable_xmltoman+set}" = set; then
27105  enableval=$enable_xmltoman; case "${enableval}" in
27106      yes) xmltoman=yes ;;
27107      no)  xmltoman=no ;;
27108      *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-xmltoman" >&5
27109$as_echo "$as_me: error: bad value ${enableval} for --disable-xmltoman" >&2;}
27110   { (exit 1); exit 1; }; } ;;
27111    esac
27112else
27113  xmltoman=yes
27114fi
27115
27116
27117    if test x$xmltoman = xyes ; then
27118        # Extract the first word of "xmltoman", so it can be a program name with args.
27119set dummy xmltoman; ac_word=$2
27120{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27121$as_echo_n "checking for $ac_word... " >&6; }
27122if test "${ac_cv_prog_have_xmltoman+set}" = set; then
27123  $as_echo_n "(cached) " >&6
27124else
27125  if test -n "$have_xmltoman"; then
27126  ac_cv_prog_have_xmltoman="$have_xmltoman" # Let the user override the test.
27127else
27128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27129for as_dir in $PATH
27130do
27131  IFS=$as_save_IFS
27132  test -z "$as_dir" && as_dir=.
27133  for ac_exec_ext in '' $ac_executable_extensions; do
27134  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27135    ac_cv_prog_have_xmltoman="yes"
27136    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27137    break 2
27138  fi
27139done
27140done
27141IFS=$as_save_IFS
27142
27143  test -z "$ac_cv_prog_have_xmltoman" && ac_cv_prog_have_xmltoman="no"
27144fi
27145fi
27146have_xmltoman=$ac_cv_prog_have_xmltoman
27147if test -n "$have_xmltoman"; then
27148  { $as_echo "$as_me:$LINENO: result: $have_xmltoman" >&5
27149$as_echo "$have_xmltoman" >&6; }
27150else
27151  { $as_echo "$as_me:$LINENO: result: no" >&5
27152$as_echo "no" >&6; }
27153fi
27154
27155
27156    fi
27157
27158    if test x$have_xmltoman = xno -o x$xmltoman = xno; then
27159        if ! test -e man/avahi-daemon.8 ; then
27160            { { $as_echo "$as_me:$LINENO: 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" >&5
27161$as_echo "$as_me: 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" >&2;}
27162   { (exit 1); exit 1; }; }
27163            exit 1
27164        fi
27165        { $as_echo "$as_me:$LINENO: WARNING: *** Not rebuilding man pages as xmltoman is not found ***" >&5
27166$as_echo "$as_me: WARNING: *** Not rebuilding man pages as xmltoman is not found ***" >&2;}
27167        xmltoman=no
27168    fi
27169fi
27170 if test "x$xmltoman" = xyes; then
27171  USE_XMLTOMAN_TRUE=
27172  USE_XMLTOMAN_FALSE='#'
27173else
27174  USE_XMLTOMAN_TRUE='#'
27175  USE_XMLTOMAN_FALSE=
27176fi
27177
27178 if test "x$manpages" = xyes; then
27179  BUILD_MANPAGES_TRUE=
27180  BUILD_MANPAGES_FALSE='#'
27181else
27182  BUILD_MANPAGES_TRUE='#'
27183  BUILD_MANPAGES_FALSE=
27184fi
27185
27186
27187#
27188# Conditionally compile test and example programs
27189#
27190# Check whether --enable-tests was given.
27191if test "${enable_tests+set}" = set; then
27192  enableval=$enable_tests; case "${enableval}" in
27193                yes) ENABLE_TESTS=yes ;;
27194                no)  ENABLE_TESTS=no ;;
27195                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-tests" >&5
27196$as_echo "$as_me: error: bad value ${enableval} for --enable-tests" >&2;}
27197   { (exit 1); exit 1; }; } ;;
27198        esac
27199else
27200  ENABLE_TESTS=no
27201fi
27202
27203
27204 if test "x$ENABLE_TESTS" = "xyes"; then
27205  ENABLE_TESTS_TRUE=
27206  ENABLE_TESTS_FALSE='#'
27207else
27208  ENABLE_TESTS_TRUE='#'
27209  ENABLE_TESTS_FALSE=
27210fi
27211
27212
27213#
27214# Optionally enable libdns_sd compatibility support
27215#
27216# Check whether --enable-compat-libdns_sd was given.
27217if test "${enable_compat_libdns_sd+set}" = set; then
27218  enableval=$enable_compat_libdns_sd; case "${enableval}" in
27219                yes) ENABLE_COMPAT_LIBDNS_SD=yes ;;
27220                no)  ENABLE_COMPAT_LIBDNS_SD=no ;;
27221                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-compat-libdns_sd" >&5
27222$as_echo "$as_me: error: bad value ${enableval} for --enable-compat-libdns_sd" >&2;}
27223   { (exit 1); exit 1; }; } ;;
27224        esac
27225else
27226  ENABLE_COMPAT_LIBDNS_SD=no
27227fi
27228
27229
27230 if test "x$ENABLE_COMPAT_LIBDNS_SD" = "xyes"; then
27231  ENABLE_COMPAT_LIBDNS_SD_TRUE=
27232  ENABLE_COMPAT_LIBDNS_SD_FALSE='#'
27233else
27234  ENABLE_COMPAT_LIBDNS_SD_TRUE='#'
27235  ENABLE_COMPAT_LIBDNS_SD_FALSE=
27236fi
27237
27238
27239#
27240# Optionally enable HOWL compatibility support
27241#
27242# Check whether --enable-compat-howl was given.
27243if test "${enable_compat_howl+set}" = set; then
27244  enableval=$enable_compat_howl; case "${enableval}" in
27245                yes) ENABLE_COMPAT_HOWL=yes ;;
27246                no)  ENABLE_COMPAT_HOWL=no ;;
27247                *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-compat-howl" >&5
27248$as_echo "$as_me: error: bad value ${enableval} for --enable-compat-howl" >&2;}
27249   { (exit 1); exit 1; }; } ;;
27250        esac
27251else
27252  ENABLE_COMPAT_HOWL=no
27253fi
27254
27255
27256 if test "x$ENABLE_COMPAT_HOWL" = "xyes"; then
27257  ENABLE_COMPAT_HOWL_TRUE=
27258  ENABLE_COMPAT_HOWL_FALSE='#'
27259else
27260  ENABLE_COMPAT_HOWL_TRUE='#'
27261  ENABLE_COMPAT_HOWL_FALSE=
27262fi
27263
27264
27265
27266# ==========================================================================
27267ac_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/archlinux/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 po/Makefile.in avahi-client.pc avahi-compat-howl.pc avahi-compat-libdns_sd.pc avahi-core.pc avahi-glib.pc avahi-gobject.pc avahi-qt3.pc avahi-qt4.pc avahi-ui.pc"
27268
27269cat >confcache <<\_ACEOF
27270# This file is a shell script that caches the results of configure
27271# tests run on this system so they can be shared between configure
27272# scripts and configure runs, see configure's option --config-cache.
27273# It is not useful on other systems.  If it contains results you don't
27274# want to keep, you may remove or edit it.
27275#
27276# config.status only pays attention to the cache file if you give it
27277# the --recheck option to rerun configure.
27278#
27279# `ac_cv_env_foo' variables (set or unset) will be overridden when
27280# loading this file, other *unset* `ac_cv_foo' will be assigned the
27281# following values.
27282
27283_ACEOF
27284
27285# The following way of writing the cache mishandles newlines in values,
27286# but we know of no workaround that is simple, portable, and efficient.
27287# So, we kill variables containing newlines.
27288# Ultrix sh set writes to stderr and can't be redirected directly,
27289# and sets the high bit in the cache file unless we assign to the vars.
27290(
27291  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27292    eval ac_val=\$$ac_var
27293    case $ac_val in #(
27294    *${as_nl}*)
27295      case $ac_var in #(
27296      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
27297$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27298      esac
27299      case $ac_var in #(
27300      _ | IFS | as_nl) ;; #(
27301      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27302      *) $as_unset $ac_var ;;
27303      esac ;;
27304    esac
27305  done
27306
27307  (set) 2>&1 |
27308    case $as_nl`(ac_space=' '; set) 2>&1` in #(
27309    *${as_nl}ac_space=\ *)
27310      # `set' does not quote correctly, so add quotes (double-quote
27311      # substitution turns \\\\ into \\, and sed turns \\ into \).
27312      sed -n \
27313	"s/'/'\\\\''/g;
27314	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27315      ;; #(
27316    *)
27317      # `set' quotes correctly as required by POSIX, so do not add quotes.
27318      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27319      ;;
27320    esac |
27321    sort
27322) |
27323  sed '
27324     /^ac_cv_env_/b end
27325     t clear
27326     :clear
27327     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27328     t end
27329     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27330     :end' >>confcache
27331if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27332  if test -w "$cache_file"; then
27333    test "x$cache_file" != "x/dev/null" &&
27334      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
27335$as_echo "$as_me: updating cache $cache_file" >&6;}
27336    cat confcache >$cache_file
27337  else
27338    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27339$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27340  fi
27341fi
27342rm -f confcache
27343
27344test "x$prefix" = xNONE && prefix=$ac_default_prefix
27345# Let make expand exec_prefix.
27346test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27347
27348DEFS=-DHAVE_CONFIG_H
27349
27350ac_libobjs=
27351ac_ltlibobjs=
27352for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27353  # 1. Remove the extension, and $U if already installed.
27354  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27355  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27356  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27357  #    will be set to the directory where LIBOBJS objects are built.
27358  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27359  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27360done
27361LIBOBJS=$ac_libobjs
27362
27363LTLIBOBJS=$ac_ltlibobjs
27364
27365
27366 if test -n "$EXEEXT"; then
27367  am__EXEEXT_TRUE=
27368  am__EXEEXT_FALSE='#'
27369else
27370  am__EXEEXT_TRUE='#'
27371  am__EXEEXT_FALSE=
27372fi
27373
27374if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27375  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27376Usually this means the macro was only invoked conditionally." >&5
27377$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
27378Usually this means the macro was only invoked conditionally." >&2;}
27379   { (exit 1); exit 1; }; }
27380fi
27381if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27382  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27383Usually this means the macro was only invoked conditionally." >&5
27384$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27385Usually this means the macro was only invoked conditionally." >&2;}
27386   { (exit 1); exit 1; }; }
27387fi
27388if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27389  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27390Usually this means the macro was only invoked conditionally." >&5
27391$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27392Usually this means the macro was only invoked conditionally." >&2;}
27393   { (exit 1); exit 1; }; }
27394fi
27395if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27396  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27397Usually this means the macro was only invoked conditionally." >&5
27398$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27399Usually this means the macro was only invoked conditionally." >&2;}
27400   { (exit 1); exit 1; }; }
27401fi
27402if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then
27403  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NETLINK\" was never defined.
27404Usually this means the macro was only invoked conditionally." >&5
27405$as_echo "$as_me: error: conditional \"HAVE_NETLINK\" was never defined.
27406Usually this means the macro was only invoked conditionally." >&2;}
27407   { (exit 1); exit 1; }; }
27408fi
27409if test -z "${HAVE_PF_ROUTE_TRUE}" && test -z "${HAVE_PF_ROUTE_FALSE}"; then
27410  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PF_ROUTE\" was never defined.
27411Usually this means the macro was only invoked conditionally." >&5
27412$as_echo "$as_me: error: conditional \"HAVE_PF_ROUTE\" was never defined.
27413Usually this means the macro was only invoked conditionally." >&2;}
27414   { (exit 1); exit 1; }; }
27415fi
27416if test -z "${HAVE_SYS_FILIO_H_TRUE}" && test -z "${HAVE_SYS_FILIO_H_FALSE}"; then
27417  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SYS_FILIO_H\" was never defined.
27418Usually this means the macro was only invoked conditionally." >&5
27419$as_echo "$as_me: error: conditional \"HAVE_SYS_FILIO_H\" was never defined.
27420Usually this means the macro was only invoked conditionally." >&2;}
27421   { (exit 1); exit 1; }; }
27422fi
27423if test -z "${HAVE_SYS_SYSCTL_H_TRUE}" && test -z "${HAVE_SYS_SYSCTL_H_FALSE}"; then
27424  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SYS_SYSCTL_H\" was never defined.
27425Usually this means the macro was only invoked conditionally." >&5
27426$as_echo "$as_me: error: conditional \"HAVE_SYS_SYSCTL_H\" was never defined.
27427Usually this means the macro was only invoked conditionally." >&2;}
27428   { (exit 1); exit 1; }; }
27429fi
27430if test -z "${TARGET_LFS_TRUE}" && test -z "${TARGET_LFS_FALSE}"; then
27431  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_LFS\" was never defined.
27432Usually this means the macro was only invoked conditionally." >&5
27433$as_echo "$as_me: error: conditional \"TARGET_LFS\" was never defined.
27434Usually this means the macro was only invoked conditionally." >&2;}
27435   { (exit 1); exit 1; }; }
27436fi
27437if test -z "${TARGET_SUSE_TRUE}" && test -z "${TARGET_SUSE_FALSE}"; then
27438  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_SUSE\" was never defined.
27439Usually this means the macro was only invoked conditionally." >&5
27440$as_echo "$as_me: error: conditional \"TARGET_SUSE\" was never defined.
27441Usually this means the macro was only invoked conditionally." >&2;}
27442   { (exit 1); exit 1; }; }
27443fi
27444if test -z "${TARGET_GENTOO_TRUE}" && test -z "${TARGET_GENTOO_FALSE}"; then
27445  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_GENTOO\" was never defined.
27446Usually this means the macro was only invoked conditionally." >&5
27447$as_echo "$as_me: error: conditional \"TARGET_GENTOO\" was never defined.
27448Usually this means the macro was only invoked conditionally." >&2;}
27449   { (exit 1); exit 1; }; }
27450fi
27451if test -z "${TARGET_DEBIAN_TRUE}" && test -z "${TARGET_DEBIAN_FALSE}"; then
27452  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_DEBIAN\" was never defined.
27453Usually this means the macro was only invoked conditionally." >&5
27454$as_echo "$as_me: error: conditional \"TARGET_DEBIAN\" was never defined.
27455Usually this means the macro was only invoked conditionally." >&2;}
27456   { (exit 1); exit 1; }; }
27457fi
27458if test -z "${TARGET_ARCHLINUX_TRUE}" && test -z "${TARGET_ARCHLINUX_FALSE}"; then
27459  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_ARCHLINUX\" was never defined.
27460Usually this means the macro was only invoked conditionally." >&5
27461$as_echo "$as_me: error: conditional \"TARGET_ARCHLINUX\" was never defined.
27462Usually this means the macro was only invoked conditionally." >&2;}
27463   { (exit 1); exit 1; }; }
27464fi
27465if test -z "${TARGET_FEDORA_TRUE}" && test -z "${TARGET_FEDORA_FALSE}"; then
27466  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_FEDORA\" was never defined.
27467Usually this means the macro was only invoked conditionally." >&5
27468$as_echo "$as_me: error: conditional \"TARGET_FEDORA\" was never defined.
27469Usually this means the macro was only invoked conditionally." >&2;}
27470   { (exit 1); exit 1; }; }
27471fi
27472if test -z "${TARGET_MANDRIVA_TRUE}" && test -z "${TARGET_MANDRIVA_FALSE}"; then
27473  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_MANDRIVA\" was never defined.
27474Usually this means the macro was only invoked conditionally." >&5
27475$as_echo "$as_me: error: conditional \"TARGET_MANDRIVA\" was never defined.
27476Usually this means the macro was only invoked conditionally." >&2;}
27477   { (exit 1); exit 1; }; }
27478fi
27479if test -z "${TARGET_DARWIN_TRUE}" && test -z "${TARGET_DARWIN_FALSE}"; then
27480  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_DARWIN\" was never defined.
27481Usually this means the macro was only invoked conditionally." >&5
27482$as_echo "$as_me: error: conditional \"TARGET_DARWIN\" was never defined.
27483Usually this means the macro was only invoked conditionally." >&2;}
27484   { (exit 1); exit 1; }; }
27485fi
27486if test -z "${TARGET_NETBSD_TRUE}" && test -z "${TARGET_NETBSD_FALSE}"; then
27487  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_NETBSD\" was never defined.
27488Usually this means the macro was only invoked conditionally." >&5
27489$as_echo "$as_me: error: conditional \"TARGET_NETBSD\" was never defined.
27490Usually this means the macro was only invoked conditionally." >&2;}
27491   { (exit 1); exit 1; }; }
27492fi
27493if test -z "${TARGET_FREEBSD_TRUE}" && test -z "${TARGET_FREEBSD_FALSE}"; then
27494  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_FREEBSD\" was never defined.
27495Usually this means the macro was only invoked conditionally." >&5
27496$as_echo "$as_me: error: conditional \"TARGET_FREEBSD\" was never defined.
27497Usually this means the macro was only invoked conditionally." >&2;}
27498   { (exit 1); exit 1; }; }
27499fi
27500if test -z "${TARGET_SLACKWARE_TRUE}" && test -z "${TARGET_SLACKWARE_FALSE}"; then
27501  { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_SLACKWARE\" was never defined.
27502Usually this means the macro was only invoked conditionally." >&5
27503$as_echo "$as_me: error: conditional \"TARGET_SLACKWARE\" was never defined.
27504Usually this means the macro was only invoked conditionally." >&2;}
27505   { (exit 1); exit 1; }; }
27506fi
27507if test -z "${ENABLE_CHROOT_TRUE}" && test -z "${ENABLE_CHROOT_FALSE}"; then
27508  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_CHROOT\" was never defined.
27509Usually this means the macro was only invoked conditionally." >&5
27510$as_echo "$as_me: error: conditional \"ENABLE_CHROOT\" was never defined.
27511Usually this means the macro was only invoked conditionally." >&2;}
27512   { (exit 1); exit 1; }; }
27513fi
27514if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
27515  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DLOPEN\" was never defined.
27516Usually this means the macro was only invoked conditionally." >&5
27517$as_echo "$as_me: error: conditional \"HAVE_DLOPEN\" was never defined.
27518Usually this means the macro was only invoked conditionally." >&2;}
27519   { (exit 1); exit 1; }; }
27520fi
27521if test -z "${HAVE_INOTIFY_TRUE}" && test -z "${HAVE_INOTIFY_FALSE}"; then
27522  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_INOTIFY\" was never defined.
27523Usually this means the macro was only invoked conditionally." >&5
27524$as_echo "$as_me: error: conditional \"HAVE_INOTIFY\" was never defined.
27525Usually this means the macro was only invoked conditionally." >&2;}
27526   { (exit 1); exit 1; }; }
27527fi
27528if test -z "${HAVE_KQUEUE_TRUE}" && test -z "${HAVE_KQUEUE_FALSE}"; then
27529  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_KQUEUE\" was never defined.
27530Usually this means the macro was only invoked conditionally." >&5
27531$as_echo "$as_me: error: conditional \"HAVE_KQUEUE\" was never defined.
27532Usually this means the macro was only invoked conditionally." >&2;}
27533   { (exit 1); exit 1; }; }
27534fi
27535if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
27536  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GLIB\" was never defined.
27537Usually this means the macro was only invoked conditionally." >&5
27538$as_echo "$as_me: error: conditional \"HAVE_GLIB\" was never defined.
27539Usually this means the macro was only invoked conditionally." >&2;}
27540   { (exit 1); exit 1; }; }
27541fi
27542if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
27543  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GOBJECT\" was never defined.
27544Usually this means the macro was only invoked conditionally." >&5
27545$as_echo "$as_me: error: conditional \"HAVE_GOBJECT\" was never defined.
27546Usually this means the macro was only invoked conditionally." >&2;}
27547   { (exit 1); exit 1; }; }
27548fi
27549if test -z "${HAVE_QT3_TRUE}" && test -z "${HAVE_QT3_FALSE}"; then
27550  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_QT3\" was never defined.
27551Usually this means the macro was only invoked conditionally." >&5
27552$as_echo "$as_me: error: conditional \"HAVE_QT3\" was never defined.
27553Usually this means the macro was only invoked conditionally." >&2;}
27554   { (exit 1); exit 1; }; }
27555fi
27556if test -z "${HAVE_QT4_TRUE}" && test -z "${HAVE_QT4_FALSE}"; then
27557  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_QT4\" was never defined.
27558Usually this means the macro was only invoked conditionally." >&5
27559$as_echo "$as_me: error: conditional \"HAVE_QT4\" was never defined.
27560Usually this means the macro was only invoked conditionally." >&2;}
27561   { (exit 1); exit 1; }; }
27562fi
27563if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
27564  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
27565Usually this means the macro was only invoked conditionally." >&5
27566$as_echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
27567Usually this means the macro was only invoked conditionally." >&2;}
27568   { (exit 1); exit 1; }; }
27569fi
27570if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
27571  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DBUS\" was never defined.
27572Usually this means the macro was only invoked conditionally." >&5
27573$as_echo "$as_me: error: conditional \"HAVE_DBUS\" was never defined.
27574Usually this means the macro was only invoked conditionally." >&2;}
27575   { (exit 1); exit 1; }; }
27576fi
27577if test -z "${HAVE_XML_TRUE}" && test -z "${HAVE_XML_FALSE}"; then
27578  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XML\" was never defined.
27579Usually this means the macro was only invoked conditionally." >&5
27580$as_echo "$as_me: error: conditional \"HAVE_XML\" was never defined.
27581Usually this means the macro was only invoked conditionally." >&2;}
27582   { (exit 1); exit 1; }; }
27583fi
27584if test -z "${HAVE_GDBM_TRUE}" && test -z "${HAVE_GDBM_FALSE}"; then
27585  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GDBM\" was never defined.
27586Usually this means the macro was only invoked conditionally." >&5
27587$as_echo "$as_me: error: conditional \"HAVE_GDBM\" was never defined.
27588Usually this means the macro was only invoked conditionally." >&2;}
27589   { (exit 1); exit 1; }; }
27590fi
27591if test -z "${HAVE_DBM_TRUE}" && test -z "${HAVE_DBM_FALSE}"; then
27592  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DBM\" was never defined.
27593Usually this means the macro was only invoked conditionally." >&5
27594$as_echo "$as_me: error: conditional \"HAVE_DBM\" was never defined.
27595Usually this means the macro was only invoked conditionally." >&2;}
27596   { (exit 1); exit 1; }; }
27597fi
27598if test -z "${HAVE_LIBDAEMON_TRUE}" && test -z "${HAVE_LIBDAEMON_FALSE}"; then
27599  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBDAEMON\" was never defined.
27600Usually this means the macro was only invoked conditionally." >&5
27601$as_echo "$as_me: error: conditional \"HAVE_LIBDAEMON\" was never defined.
27602Usually this means the macro was only invoked conditionally." >&2;}
27603   { (exit 1); exit 1; }; }
27604fi
27605if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
27606  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PYTHON\" was never defined.
27607Usually this means the macro was only invoked conditionally." >&5
27608$as_echo "$as_me: error: conditional \"HAVE_PYTHON\" was never defined.
27609Usually this means the macro was only invoked conditionally." >&2;}
27610   { (exit 1); exit 1; }; }
27611fi
27612if test -z "${HAVE_PYGTK_TRUE}" && test -z "${HAVE_PYGTK_FALSE}"; then
27613  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PYGTK\" was never defined.
27614Usually this means the macro was only invoked conditionally." >&5
27615$as_echo "$as_me: error: conditional \"HAVE_PYGTK\" was never defined.
27616Usually this means the macro was only invoked conditionally." >&2;}
27617   { (exit 1); exit 1; }; }
27618fi
27619if test -z "${HAVE_PYTHON_DBUS_TRUE}" && test -z "${HAVE_PYTHON_DBUS_FALSE}"; then
27620  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PYTHON_DBUS\" was never defined.
27621Usually this means the macro was only invoked conditionally." >&5
27622$as_echo "$as_me: error: conditional \"HAVE_PYTHON_DBUS\" was never defined.
27623Usually this means the macro was only invoked conditionally." >&2;}
27624   { (exit 1); exit 1; }; }
27625fi
27626if test -z "${HAVE_MONO_TRUE}" && test -z "${HAVE_MONO_FALSE}"; then
27627  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MONO\" was never defined.
27628Usually this means the macro was only invoked conditionally." >&5
27629$as_echo "$as_me: error: conditional \"HAVE_MONO\" was never defined.
27630Usually this means the macro was only invoked conditionally." >&2;}
27631   { (exit 1); exit 1; }; }
27632fi
27633if test -z "${HAVE_MONODOC_TRUE}" && test -z "${HAVE_MONODOC_FALSE}"; then
27634  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MONODOC\" was never defined.
27635Usually this means the macro was only invoked conditionally." >&5
27636$as_echo "$as_me: error: conditional \"HAVE_MONODOC\" was never defined.
27637Usually this means the macro was only invoked conditionally." >&2;}
27638   { (exit 1); exit 1; }; }
27639fi
27640if test -z "${ENABLE_AUTOIPD_TRUE}" && test -z "${ENABLE_AUTOIPD_FALSE}"; then
27641  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_AUTOIPD\" was never defined.
27642Usually this means the macro was only invoked conditionally." >&5
27643$as_echo "$as_me: error: conditional \"ENABLE_AUTOIPD\" was never defined.
27644Usually this means the macro was only invoked conditionally." >&2;}
27645   { (exit 1); exit 1; }; }
27646fi
27647if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
27648  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
27649Usually this means the macro was only invoked conditionally." >&5
27650$as_echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
27651Usually this means the macro was only invoked conditionally." >&2;}
27652   { (exit 1); exit 1; }; }
27653fi
27654if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
27655  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
27656Usually this means the macro was only invoked conditionally." >&5
27657$as_echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
27658Usually this means the macro was only invoked conditionally." >&2;}
27659   { (exit 1); exit 1; }; }
27660fi
27661if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
27662  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
27663Usually this means the macro was only invoked conditionally." >&5
27664$as_echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
27665Usually this means the macro was only invoked conditionally." >&2;}
27666   { (exit 1); exit 1; }; }
27667fi
27668if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
27669  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
27670Usually this means the macro was only invoked conditionally." >&5
27671$as_echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
27672Usually this means the macro was only invoked conditionally." >&2;}
27673   { (exit 1); exit 1; }; }
27674fi
27675if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
27676  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
27677Usually this means the macro was only invoked conditionally." >&5
27678$as_echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
27679Usually this means the macro was only invoked conditionally." >&2;}
27680   { (exit 1); exit 1; }; }
27681fi
27682if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
27683  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
27684Usually this means the macro was only invoked conditionally." >&5
27685$as_echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
27686Usually this means the macro was only invoked conditionally." >&2;}
27687   { (exit 1); exit 1; }; }
27688fi
27689if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
27690  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
27691Usually this means the macro was only invoked conditionally." >&5
27692$as_echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
27693Usually this means the macro was only invoked conditionally." >&2;}
27694   { (exit 1); exit 1; }; }
27695fi
27696if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
27697  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
27698Usually this means the macro was only invoked conditionally." >&5
27699$as_echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
27700Usually this means the macro was only invoked conditionally." >&2;}
27701   { (exit 1); exit 1; }; }
27702fi
27703if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
27704  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
27705Usually this means the macro was only invoked conditionally." >&5
27706$as_echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
27707Usually this means the macro was only invoked conditionally." >&2;}
27708   { (exit 1); exit 1; }; }
27709fi
27710if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
27711  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
27712Usually this means the macro was only invoked conditionally." >&5
27713$as_echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
27714Usually this means the macro was only invoked conditionally." >&2;}
27715   { (exit 1); exit 1; }; }
27716fi
27717if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
27718  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
27719Usually this means the macro was only invoked conditionally." >&5
27720$as_echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
27721Usually this means the macro was only invoked conditionally." >&2;}
27722   { (exit 1); exit 1; }; }
27723fi
27724if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
27725  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
27726Usually this means the macro was only invoked conditionally." >&5
27727$as_echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
27728Usually this means the macro was only invoked conditionally." >&2;}
27729   { (exit 1); exit 1; }; }
27730fi
27731if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
27732  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
27733Usually this means the macro was only invoked conditionally." >&5
27734$as_echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
27735Usually this means the macro was only invoked conditionally." >&2;}
27736   { (exit 1); exit 1; }; }
27737fi
27738if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
27739  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
27740Usually this means the macro was only invoked conditionally." >&5
27741$as_echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
27742Usually this means the macro was only invoked conditionally." >&2;}
27743   { (exit 1); exit 1; }; }
27744fi
27745if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
27746  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
27747Usually this means the macro was only invoked conditionally." >&5
27748$as_echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
27749Usually this means the macro was only invoked conditionally." >&2;}
27750   { (exit 1); exit 1; }; }
27751fi
27752if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
27753  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
27754Usually this means the macro was only invoked conditionally." >&5
27755$as_echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
27756Usually this means the macro was only invoked conditionally." >&2;}
27757   { (exit 1); exit 1; }; }
27758fi
27759if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
27760  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
27761Usually this means the macro was only invoked conditionally." >&5
27762$as_echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
27763Usually this means the macro was only invoked conditionally." >&2;}
27764   { (exit 1); exit 1; }; }
27765fi
27766if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
27767  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
27768Usually this means the macro was only invoked conditionally." >&5
27769$as_echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
27770Usually this means the macro was only invoked conditionally." >&2;}
27771   { (exit 1); exit 1; }; }
27772fi
27773if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
27774  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
27775Usually this means the macro was only invoked conditionally." >&5
27776$as_echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
27777Usually this means the macro was only invoked conditionally." >&2;}
27778   { (exit 1); exit 1; }; }
27779fi
27780if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
27781  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
27782Usually this means the macro was only invoked conditionally." >&5
27783$as_echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
27784Usually this means the macro was only invoked conditionally." >&2;}
27785   { (exit 1); exit 1; }; }
27786fi
27787if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
27788  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
27789Usually this means the macro was only invoked conditionally." >&5
27790$as_echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
27791Usually this means the macro was only invoked conditionally." >&2;}
27792   { (exit 1); exit 1; }; }
27793fi
27794if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
27795  { { $as_echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
27796Usually this means the macro was only invoked conditionally." >&5
27797$as_echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
27798Usually this means the macro was only invoked conditionally." >&2;}
27799   { (exit 1); exit 1; }; }
27800fi
27801if test -z "${ENABLE_CORE_DOCS_TRUE}" && test -z "${ENABLE_CORE_DOCS_FALSE}"; then
27802  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_CORE_DOCS\" was never defined.
27803Usually this means the macro was only invoked conditionally." >&5
27804$as_echo "$as_me: error: conditional \"ENABLE_CORE_DOCS\" was never defined.
27805Usually this means the macro was only invoked conditionally." >&2;}
27806   { (exit 1); exit 1; }; }
27807fi
27808if test -z "${USE_XMLTOMAN_TRUE}" && test -z "${USE_XMLTOMAN_FALSE}"; then
27809  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_XMLTOMAN\" was never defined.
27810Usually this means the macro was only invoked conditionally." >&5
27811$as_echo "$as_me: error: conditional \"USE_XMLTOMAN\" was never defined.
27812Usually this means the macro was only invoked conditionally." >&2;}
27813   { (exit 1); exit 1; }; }
27814fi
27815if test -z "${BUILD_MANPAGES_TRUE}" && test -z "${BUILD_MANPAGES_FALSE}"; then
27816  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_MANPAGES\" was never defined.
27817Usually this means the macro was only invoked conditionally." >&5
27818$as_echo "$as_me: error: conditional \"BUILD_MANPAGES\" was never defined.
27819Usually this means the macro was only invoked conditionally." >&2;}
27820   { (exit 1); exit 1; }; }
27821fi
27822if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
27823  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_TESTS\" was never defined.
27824Usually this means the macro was only invoked conditionally." >&5
27825$as_echo "$as_me: error: conditional \"ENABLE_TESTS\" was never defined.
27826Usually this means the macro was only invoked conditionally." >&2;}
27827   { (exit 1); exit 1; }; }
27828fi
27829if test -z "${ENABLE_COMPAT_LIBDNS_SD_TRUE}" && test -z "${ENABLE_COMPAT_LIBDNS_SD_FALSE}"; then
27830  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_COMPAT_LIBDNS_SD\" was never defined.
27831Usually this means the macro was only invoked conditionally." >&5
27832$as_echo "$as_me: error: conditional \"ENABLE_COMPAT_LIBDNS_SD\" was never defined.
27833Usually this means the macro was only invoked conditionally." >&2;}
27834   { (exit 1); exit 1; }; }
27835fi
27836if test -z "${ENABLE_COMPAT_HOWL_TRUE}" && test -z "${ENABLE_COMPAT_HOWL_FALSE}"; then
27837  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_COMPAT_HOWL\" was never defined.
27838Usually this means the macro was only invoked conditionally." >&5
27839$as_echo "$as_me: error: conditional \"ENABLE_COMPAT_HOWL\" was never defined.
27840Usually this means the macro was only invoked conditionally." >&2;}
27841   { (exit 1); exit 1; }; }
27842fi
27843
27844: ${CONFIG_STATUS=./config.status}
27845ac_write_fail=0
27846ac_clean_files_save=$ac_clean_files
27847ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27848{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27849$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27850cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27851#! $SHELL
27852# Generated by $as_me.
27853# Run this file to recreate the current configuration.
27854# Compiler output produced by configure, useful for debugging
27855# configure, is in config.log if it exists.
27856
27857debug=false
27858ac_cs_recheck=false
27859ac_cs_silent=false
27860SHELL=\${CONFIG_SHELL-$SHELL}
27861_ACEOF
27862
27863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27864## --------------------- ##
27865## M4sh Initialization.  ##
27866## --------------------- ##
27867
27868# Be more Bourne compatible
27869DUALCASE=1; export DUALCASE # for MKS sh
27870if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27871  emulate sh
27872  NULLCMD=:
27873  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27874  # is contrary to our usage.  Disable this feature.
27875  alias -g '${1+"$@"}'='"$@"'
27876  setopt NO_GLOB_SUBST
27877else
27878  case `(set -o) 2>/dev/null` in
27879  *posix*) set -o posix ;;
27880esac
27881
27882fi
27883
27884
27885
27886
27887# PATH needs CR
27888# Avoid depending upon Character Ranges.
27889as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27890as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27891as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27892as_cr_digits='0123456789'
27893as_cr_alnum=$as_cr_Letters$as_cr_digits
27894
27895as_nl='
27896'
27897export as_nl
27898# Printing a long string crashes Solaris 7 /usr/bin/printf.
27899as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27900as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27901as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27902if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27903  as_echo='printf %s\n'
27904  as_echo_n='printf %s'
27905else
27906  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27907    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27908    as_echo_n='/usr/ucb/echo -n'
27909  else
27910    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27911    as_echo_n_body='eval
27912      arg=$1;
27913      case $arg in
27914      *"$as_nl"*)
27915	expr "X$arg" : "X\\(.*\\)$as_nl";
27916	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27917      esac;
27918      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27919    '
27920    export as_echo_n_body
27921    as_echo_n='sh -c $as_echo_n_body as_echo'
27922  fi
27923  export as_echo_body
27924  as_echo='sh -c $as_echo_body as_echo'
27925fi
27926
27927# The user is always right.
27928if test "${PATH_SEPARATOR+set}" != set; then
27929  PATH_SEPARATOR=:
27930  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27931    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27932      PATH_SEPARATOR=';'
27933  }
27934fi
27935
27936# Support unset when possible.
27937if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27938  as_unset=unset
27939else
27940  as_unset=false
27941fi
27942
27943
27944# IFS
27945# We need space, tab and new line, in precisely that order.  Quoting is
27946# there to prevent editors from complaining about space-tab.
27947# (If _AS_PATH_WALK were called with IFS unset, it would disable word
27948# splitting by setting IFS to empty value.)
27949IFS=" ""	$as_nl"
27950
27951# Find who we are.  Look in the path if we contain no directory separator.
27952case $0 in
27953  *[\\/]* ) as_myself=$0 ;;
27954  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27955for as_dir in $PATH
27956do
27957  IFS=$as_save_IFS
27958  test -z "$as_dir" && as_dir=.
27959  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27960done
27961IFS=$as_save_IFS
27962
27963     ;;
27964esac
27965# We did not find ourselves, most probably we were run as `sh COMMAND'
27966# in which case we are not to be found in the path.
27967if test "x$as_myself" = x; then
27968  as_myself=$0
27969fi
27970if test ! -f "$as_myself"; then
27971  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27972  { (exit 1); exit 1; }
27973fi
27974
27975# Work around bugs in pre-3.0 UWIN ksh.
27976for as_var in ENV MAIL MAILPATH
27977do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27978done
27979PS1='$ '
27980PS2='> '
27981PS4='+ '
27982
27983# NLS nuisances.
27984LC_ALL=C
27985export LC_ALL
27986LANGUAGE=C
27987export LANGUAGE
27988
27989# Required to use basename.
27990if expr a : '\(a\)' >/dev/null 2>&1 &&
27991   test "X`expr 00001 : '.*\(...\)'`" = X001; then
27992  as_expr=expr
27993else
27994  as_expr=false
27995fi
27996
27997if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27998  as_basename=basename
27999else
28000  as_basename=false
28001fi
28002
28003
28004# Name of the executable.
28005as_me=`$as_basename -- "$0" ||
28006$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28007	 X"$0" : 'X\(//\)$' \| \
28008	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28009$as_echo X/"$0" |
28010    sed '/^.*\/\([^/][^/]*\)\/*$/{
28011	    s//\1/
28012	    q
28013	  }
28014	  /^X\/\(\/\/\)$/{
28015	    s//\1/
28016	    q
28017	  }
28018	  /^X\/\(\/\).*/{
28019	    s//\1/
28020	    q
28021	  }
28022	  s/.*/./; q'`
28023
28024# CDPATH.
28025$as_unset CDPATH
28026
28027
28028
28029  as_lineno_1=$LINENO
28030  as_lineno_2=$LINENO
28031  test "x$as_lineno_1" != "x$as_lineno_2" &&
28032  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28033
28034  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28035  # uniformly replaced by the line number.  The first 'sed' inserts a
28036  # line-number line after each line using $LINENO; the second 'sed'
28037  # does the real work.  The second script uses 'N' to pair each
28038  # line-number line with the line containing $LINENO, and appends
28039  # trailing '-' during substitution so that $LINENO is not a special
28040  # case at line end.
28041  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28042  # scripts with optimization help from Paolo Bonzini.  Blame Lee
28043  # E. McMahon (1931-1989) for sed's syntax.  :-)
28044  sed -n '
28045    p
28046    /[$]LINENO/=
28047  ' <$as_myself |
28048    sed '
28049      s/[$]LINENO.*/&-/
28050      t lineno
28051      b
28052      :lineno
28053      N
28054      :loop
28055      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28056      t loop
28057      s/-\n.*//
28058    ' >$as_me.lineno &&
28059  chmod +x "$as_me.lineno" ||
28060    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28061   { (exit 1); exit 1; }; }
28062
28063  # Don't try to exec as it changes $[0], causing all sort of problems
28064  # (the dirname of $[0] is not the place where we might find the
28065  # original and so on.  Autoconf is especially sensitive to this).
28066  . "./$as_me.lineno"
28067  # Exit status is that of the last command.
28068  exit
28069}
28070
28071
28072if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28073  as_dirname=dirname
28074else
28075  as_dirname=false
28076fi
28077
28078ECHO_C= ECHO_N= ECHO_T=
28079case `echo -n x` in
28080-n*)
28081  case `echo 'x\c'` in
28082  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
28083  *)   ECHO_C='\c';;
28084  esac;;
28085*)
28086  ECHO_N='-n';;
28087esac
28088if expr a : '\(a\)' >/dev/null 2>&1 &&
28089   test "X`expr 00001 : '.*\(...\)'`" = X001; then
28090  as_expr=expr
28091else
28092  as_expr=false
28093fi
28094
28095rm -f conf$$ conf$$.exe conf$$.file
28096if test -d conf$$.dir; then
28097  rm -f conf$$.dir/conf$$.file
28098else
28099  rm -f conf$$.dir
28100  mkdir conf$$.dir 2>/dev/null
28101fi
28102if (echo >conf$$.file) 2>/dev/null; then
28103  if ln -s conf$$.file conf$$ 2>/dev/null; then
28104    as_ln_s='ln -s'
28105    # ... but there are two gotchas:
28106    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28107    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28108    # In both cases, we have to default to `cp -p'.
28109    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28110      as_ln_s='cp -p'
28111  elif ln conf$$.file conf$$ 2>/dev/null; then
28112    as_ln_s=ln
28113  else
28114    as_ln_s='cp -p'
28115  fi
28116else
28117  as_ln_s='cp -p'
28118fi
28119rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28120rmdir conf$$.dir 2>/dev/null
28121
28122if mkdir -p . 2>/dev/null; then
28123  as_mkdir_p=:
28124else
28125  test -d ./-p && rmdir ./-p
28126  as_mkdir_p=false
28127fi
28128
28129if test -x / >/dev/null 2>&1; then
28130  as_test_x='test -x'
28131else
28132  if ls -dL / >/dev/null 2>&1; then
28133    as_ls_L_option=L
28134  else
28135    as_ls_L_option=
28136  fi
28137  as_test_x='
28138    eval sh -c '\''
28139      if test -d "$1"; then
28140	test -d "$1/.";
28141      else
28142	case $1 in
28143	-*)set "./$1";;
28144	esac;
28145	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28146	???[sx]*):;;*)false;;esac;fi
28147    '\'' sh
28148  '
28149fi
28150as_executable_p=$as_test_x
28151
28152# Sed expression to map a string onto a valid CPP name.
28153as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28154
28155# Sed expression to map a string onto a valid variable name.
28156as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28157
28158
28159exec 6>&1
28160
28161# Save the log message, to keep $[0] and so on meaningful, and to
28162# report actual input values of CONFIG_FILES etc. instead of their
28163# values after options handling.
28164ac_log="
28165This file was extended by avahi $as_me 0.6.25, which was
28166generated by GNU Autoconf 2.63.  Invocation command line was
28167
28168  CONFIG_FILES    = $CONFIG_FILES
28169  CONFIG_HEADERS  = $CONFIG_HEADERS
28170  CONFIG_LINKS    = $CONFIG_LINKS
28171  CONFIG_COMMANDS = $CONFIG_COMMANDS
28172  $ $0 $@
28173
28174on `(hostname || uname -n) 2>/dev/null | sed 1q`
28175"
28176
28177_ACEOF
28178
28179case $ac_config_files in *"
28180"*) set x $ac_config_files; shift; ac_config_files=$*;;
28181esac
28182
28183case $ac_config_headers in *"
28184"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28185esac
28186
28187
28188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28189# Files that config.status was made for.
28190config_files="$ac_config_files"
28191config_headers="$ac_config_headers"
28192config_commands="$ac_config_commands"
28193
28194_ACEOF
28195
28196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28197ac_cs_usage="\
28198\`$as_me' instantiates files from templates according to the
28199current configuration.
28200
28201Usage: $0 [OPTION]... [FILE]...
28202
28203  -h, --help       print this help, then exit
28204  -V, --version    print version number and configuration settings, then exit
28205  -q, --quiet, --silent
28206                   do not print progress messages
28207  -d, --debug      don't remove temporary files
28208      --recheck    update $as_me by reconfiguring in the same conditions
28209      --file=FILE[:TEMPLATE]
28210                   instantiate the configuration file FILE
28211      --header=FILE[:TEMPLATE]
28212                   instantiate the configuration header FILE
28213
28214Configuration files:
28215$config_files
28216
28217Configuration headers:
28218$config_headers
28219
28220Configuration commands:
28221$config_commands
28222
28223Report bugs to <bug-autoconf@gnu.org>."
28224
28225_ACEOF
28226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28227ac_cs_version="\\
28228avahi config.status 0.6.25
28229configured by $0, generated by GNU Autoconf 2.63,
28230  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28231
28232Copyright (C) 2008 Free Software Foundation, Inc.
28233This config.status script is free software; the Free Software Foundation
28234gives unlimited permission to copy, distribute and modify it."
28235
28236ac_pwd='$ac_pwd'
28237srcdir='$srcdir'
28238INSTALL='$INSTALL'
28239MKDIR_P='$MKDIR_P'
28240AWK='$AWK'
28241test -n "\$AWK" || AWK=awk
28242_ACEOF
28243
28244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28245# The default lists apply if the user does not specify any file.
28246ac_need_defaults=:
28247while test $# != 0
28248do
28249  case $1 in
28250  --*=*)
28251    ac_option=`expr "X$1" : 'X\([^=]*\)='`
28252    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28253    ac_shift=:
28254    ;;
28255  *)
28256    ac_option=$1
28257    ac_optarg=$2
28258    ac_shift=shift
28259    ;;
28260  esac
28261
28262  case $ac_option in
28263  # Handling of the options.
28264  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28265    ac_cs_recheck=: ;;
28266  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28267    $as_echo "$ac_cs_version"; exit ;;
28268  --debug | --debu | --deb | --de | --d | -d )
28269    debug=: ;;
28270  --file | --fil | --fi | --f )
28271    $ac_shift
28272    case $ac_optarg in
28273    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28274    esac
28275    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
28276    ac_need_defaults=false;;
28277  --header | --heade | --head | --hea )
28278    $ac_shift
28279    case $ac_optarg in
28280    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28281    esac
28282    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
28283    ac_need_defaults=false;;
28284  --he | --h)
28285    # Conflict between --help and --header
28286    { $as_echo "$as_me: error: ambiguous option: $1
28287Try \`$0 --help' for more information." >&2
28288   { (exit 1); exit 1; }; };;
28289  --help | --hel | -h )
28290    $as_echo "$ac_cs_usage"; exit ;;
28291  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28292  | -silent | --silent | --silen | --sile | --sil | --si | --s)
28293    ac_cs_silent=: ;;
28294
28295  # This is an error.
28296  -*) { $as_echo "$as_me: error: unrecognized option: $1
28297Try \`$0 --help' for more information." >&2
28298   { (exit 1); exit 1; }; } ;;
28299
28300  *) ac_config_targets="$ac_config_targets $1"
28301     ac_need_defaults=false ;;
28302
28303  esac
28304  shift
28305done
28306
28307ac_configure_extra_args=
28308
28309if $ac_cs_silent; then
28310  exec 6>/dev/null
28311  ac_configure_extra_args="$ac_configure_extra_args --silent"
28312fi
28313
28314_ACEOF
28315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28316if \$ac_cs_recheck; then
28317  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28318  shift
28319  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28320  CONFIG_SHELL='$SHELL'
28321  export CONFIG_SHELL
28322  exec "\$@"
28323fi
28324
28325_ACEOF
28326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28327exec 5>>config.log
28328{
28329  echo
28330  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28331## Running $as_me. ##
28332_ASBOX
28333  $as_echo "$ac_log"
28334} >&5
28335
28336_ACEOF
28337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28338#
28339# INIT-COMMANDS
28340#
28341AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28342
28343
28344# The HP-UX ksh and POSIX shell print the target directory to stdout
28345# if CDPATH is set.
28346(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28347
28348sed_quote_subst='$sed_quote_subst'
28349double_quote_subst='$double_quote_subst'
28350delay_variable_subst='$delay_variable_subst'
28351macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
28352macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
28353enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
28354enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
28355pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
28356enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
28357host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
28358host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
28359host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
28360build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
28361build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
28362build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
28363SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
28364Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
28365GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
28366EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
28367FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
28368LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
28369NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
28370LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
28371max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
28372ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
28373exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
28374lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
28375lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
28376lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
28377reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
28378reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28379OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
28380deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
28381file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
28382AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
28383AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28384STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
28385RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
28386old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28387old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28388old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28389CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
28390CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28391compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
28392GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
28393lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
28394lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
28395lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
28396lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28397objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
28398SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
28399ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
28400MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
28401lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
28402lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
28403lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
28404lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
28405lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
28406need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
28407DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
28408NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
28409LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
28410OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
28411OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
28412libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
28413shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28414extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28415archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
28416enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
28417export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28418whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28419compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
28420old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28421old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28422archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28423archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28424module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28425module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28426with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
28427allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28428no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28429hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28430hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
28431hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
28432hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
28433hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
28434hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
28435hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28436hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
28437inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
28438link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
28439fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
28440always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
28441export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28442exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28443include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28444prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28445file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
28446variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
28447need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28448need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
28449version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
28450runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28451shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28452shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
28453libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28454library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
28455soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28456postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28457postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28458finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28459finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
28460hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
28461sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28462sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28463hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
28464enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
28465enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
28466enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
28467old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
28468striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
28469compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
28470predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28471postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28472predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
28473postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
28474compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
28475LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28476old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28477compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28478GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28479lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28480lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28481lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28482lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28483lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28484archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28485enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28486export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28487whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28488compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28489old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28490old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28491archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28492archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28493module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28494module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28495with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28496allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28497no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28498hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28499hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28500hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28501hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28502hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28503hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28504hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28505hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28506inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28507link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28508fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28509always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28510export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28511exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28512include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28513prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28514file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28515hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28516compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28517predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28518postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28519predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28520postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28521compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28522
28523LTCC='$LTCC'
28524LTCFLAGS='$LTCFLAGS'
28525compiler='$compiler_DEFAULT'
28526
28527# Quote evaled strings.
28528for var in SED \
28529GREP \
28530EGREP \
28531FGREP \
28532LD \
28533NM \
28534LN_S \
28535lt_SP2NL \
28536lt_NL2SP \
28537reload_flag \
28538OBJDUMP \
28539deplibs_check_method \
28540file_magic_cmd \
28541AR \
28542AR_FLAGS \
28543STRIP \
28544RANLIB \
28545CC \
28546CFLAGS \
28547compiler \
28548lt_cv_sys_global_symbol_pipe \
28549lt_cv_sys_global_symbol_to_cdecl \
28550lt_cv_sys_global_symbol_to_c_name_address \
28551lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28552SHELL \
28553ECHO \
28554lt_prog_compiler_no_builtin_flag \
28555lt_prog_compiler_wl \
28556lt_prog_compiler_pic \
28557lt_prog_compiler_static \
28558lt_cv_prog_compiler_c_o \
28559need_locks \
28560DSYMUTIL \
28561NMEDIT \
28562LIPO \
28563OTOOL \
28564OTOOL64 \
28565shrext_cmds \
28566export_dynamic_flag_spec \
28567whole_archive_flag_spec \
28568compiler_needs_object \
28569with_gnu_ld \
28570allow_undefined_flag \
28571no_undefined_flag \
28572hardcode_libdir_flag_spec \
28573hardcode_libdir_flag_spec_ld \
28574hardcode_libdir_separator \
28575fix_srcfile_path \
28576exclude_expsyms \
28577include_expsyms \
28578file_list_spec \
28579variables_saved_for_relink \
28580libname_spec \
28581library_names_spec \
28582soname_spec \
28583finish_eval \
28584old_striplib \
28585striplib \
28586compiler_lib_search_dirs \
28587predep_objects \
28588postdep_objects \
28589predeps \
28590postdeps \
28591compiler_lib_search_path \
28592LD_CXX \
28593compiler_CXX \
28594lt_prog_compiler_no_builtin_flag_CXX \
28595lt_prog_compiler_wl_CXX \
28596lt_prog_compiler_pic_CXX \
28597lt_prog_compiler_static_CXX \
28598lt_cv_prog_compiler_c_o_CXX \
28599export_dynamic_flag_spec_CXX \
28600whole_archive_flag_spec_CXX \
28601compiler_needs_object_CXX \
28602with_gnu_ld_CXX \
28603allow_undefined_flag_CXX \
28604no_undefined_flag_CXX \
28605hardcode_libdir_flag_spec_CXX \
28606hardcode_libdir_flag_spec_ld_CXX \
28607hardcode_libdir_separator_CXX \
28608fix_srcfile_path_CXX \
28609exclude_expsyms_CXX \
28610include_expsyms_CXX \
28611file_list_spec_CXX \
28612compiler_lib_search_dirs_CXX \
28613predep_objects_CXX \
28614postdep_objects_CXX \
28615predeps_CXX \
28616postdeps_CXX \
28617compiler_lib_search_path_CXX; do
28618    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28619    *[\\\\\\\`\\"\\\$]*)
28620      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28621      ;;
28622    *)
28623      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28624      ;;
28625    esac
28626done
28627
28628# Double-quote double-evaled strings.
28629for var in reload_cmds \
28630old_postinstall_cmds \
28631old_postuninstall_cmds \
28632old_archive_cmds \
28633extract_expsyms_cmds \
28634old_archive_from_new_cmds \
28635old_archive_from_expsyms_cmds \
28636archive_cmds \
28637archive_expsym_cmds \
28638module_cmds \
28639module_expsym_cmds \
28640export_symbols_cmds \
28641prelink_cmds \
28642postinstall_cmds \
28643postuninstall_cmds \
28644finish_cmds \
28645sys_lib_search_path_spec \
28646sys_lib_dlsearch_path_spec \
28647old_archive_cmds_CXX \
28648old_archive_from_new_cmds_CXX \
28649old_archive_from_expsyms_cmds_CXX \
28650archive_cmds_CXX \
28651archive_expsym_cmds_CXX \
28652module_cmds_CXX \
28653module_expsym_cmds_CXX \
28654export_symbols_cmds_CXX \
28655prelink_cmds_CXX; do
28656    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28657    *[\\\\\\\`\\"\\\$]*)
28658      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28659      ;;
28660    *)
28661      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28662      ;;
28663    esac
28664done
28665
28666# Fix-up fallback echo if it was mangled by the above quoting rules.
28667case \$lt_ECHO in
28668*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
28669  ;;
28670esac
28671
28672ac_aux_dir='$ac_aux_dir'
28673xsi_shell='$xsi_shell'
28674lt_shell_append='$lt_shell_append'
28675
28676# See if we are running on zsh, and set the options which allow our
28677# commands through without removal of \ escapes INIT.
28678if test -n "\${ZSH_VERSION+set}" ; then
28679   setopt NO_GLOB_SUBST
28680fi
28681
28682
28683    PACKAGE='$PACKAGE'
28684    VERSION='$VERSION'
28685    TIMESTAMP='$TIMESTAMP'
28686    RM='$RM'
28687    ofile='$ofile'
28688
28689
28690
28691
28692
28693
28694_ACEOF
28695
28696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28697
28698# Handling of arguments.
28699for ac_config_target in $ac_config_targets
28700do
28701  case $ac_config_target in
28702    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28703    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28704    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28705    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28706    "avahi-common/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-common/Makefile" ;;
28707    "avahi-core/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-core/Makefile" ;;
28708    "avahi-glib/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-glib/Makefile" ;;
28709    "avahi-gobject/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-gobject/Makefile" ;;
28710    "avahi-qt/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-qt/Makefile" ;;
28711    "avahi-daemon/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-daemon/Makefile" ;;
28712    "avahi-daemon/avahi-dbus.conf") CONFIG_FILES="$CONFIG_FILES avahi-daemon/avahi-dbus.conf" ;;
28713    "avahi-discover-standalone/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-discover-standalone/Makefile" ;;
28714    "avahi-client/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-client/Makefile" ;;
28715    "initscript/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/Makefile" ;;
28716    "initscript/debian/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/debian/Makefile" ;;
28717    "initscript/gentoo/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/gentoo/Makefile" ;;
28718    "initscript/archlinux/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/archlinux/Makefile" ;;
28719    "initscript/suse/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/suse/Makefile" ;;
28720    "initscript/fedora/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/fedora/Makefile" ;;
28721    "initscript/lfs/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/lfs/Makefile" ;;
28722    "initscript/mandriva/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/mandriva/Makefile" ;;
28723    "initscript/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/darwin/Makefile" ;;
28724    "initscript/freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/freebsd/Makefile" ;;
28725    "initscript/slackware/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/slackware/Makefile" ;;
28726    "avahi-dnsconfd/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-dnsconfd/Makefile" ;;
28727    "avahi-utils/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-utils/Makefile" ;;
28728    "avahi-python/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-python/Makefile" ;;
28729    "avahi-python/avahi/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-python/avahi/Makefile" ;;
28730    "avahi-python/avahi-discover/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-python/avahi-discover/Makefile" ;;
28731    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
28732    "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
28733    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
28734    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
28735    "service-type-database/Makefile") CONFIG_FILES="$CONFIG_FILES service-type-database/Makefile" ;;
28736    "avahi-sharp/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-sharp/Makefile" ;;
28737    "avahi-ui-sharp/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-ui-sharp/Makefile" ;;
28738    "avahi-compat-libdns_sd/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-compat-libdns_sd/Makefile" ;;
28739    "avahi-compat-howl/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-compat-howl/Makefile" ;;
28740    "avahi-compat-howl/samples/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-compat-howl/samples/Makefile" ;;
28741    "avahi-autoipd/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-autoipd/Makefile" ;;
28742    "avahi-ui/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-ui/Makefile" ;;
28743    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
28744    "avahi-client.pc") CONFIG_FILES="$CONFIG_FILES avahi-client.pc" ;;
28745    "avahi-compat-howl.pc") CONFIG_FILES="$CONFIG_FILES avahi-compat-howl.pc" ;;
28746    "avahi-compat-libdns_sd.pc") CONFIG_FILES="$CONFIG_FILES avahi-compat-libdns_sd.pc" ;;
28747    "avahi-core.pc") CONFIG_FILES="$CONFIG_FILES avahi-core.pc" ;;
28748    "avahi-glib.pc") CONFIG_FILES="$CONFIG_FILES avahi-glib.pc" ;;
28749    "avahi-gobject.pc") CONFIG_FILES="$CONFIG_FILES avahi-gobject.pc" ;;
28750    "avahi-qt3.pc") CONFIG_FILES="$CONFIG_FILES avahi-qt3.pc" ;;
28751    "avahi-qt4.pc") CONFIG_FILES="$CONFIG_FILES avahi-qt4.pc" ;;
28752    "avahi-ui.pc") CONFIG_FILES="$CONFIG_FILES avahi-ui.pc" ;;
28753
28754  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28755$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28756   { (exit 1); exit 1; }; };;
28757  esac
28758done
28759
28760
28761# If the user did not use the arguments to specify the items to instantiate,
28762# then the envvar interface is used.  Set only those that are not.
28763# We use the long form for the default assignment because of an extremely
28764# bizarre bug on SunOS 4.1.3.
28765if $ac_need_defaults; then
28766  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28767  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28768  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28769fi
28770
28771# Have a temporary directory for convenience.  Make it in the build tree
28772# simply because there is no reason against having it here, and in addition,
28773# creating and moving files from /tmp can sometimes cause problems.
28774# Hook for its removal unless debugging.
28775# Note that there is a small window in which the directory will not be cleaned:
28776# after its creation but before its name has been assigned to `$tmp'.
28777$debug ||
28778{
28779  tmp=
28780  trap 'exit_status=$?
28781  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28782' 0
28783  trap '{ (exit 1); exit 1; }' 1 2 13 15
28784}
28785# Create a (secure) tmp directory for tmp files.
28786
28787{
28788  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28789  test -n "$tmp" && test -d "$tmp"
28790}  ||
28791{
28792  tmp=./conf$$-$RANDOM
28793  (umask 077 && mkdir "$tmp")
28794} ||
28795{
28796   $as_echo "$as_me: cannot create a temporary directory in ." >&2
28797   { (exit 1); exit 1; }
28798}
28799
28800# Set up the scripts for CONFIG_FILES section.
28801# No need to generate them if there are no CONFIG_FILES.
28802# This happens for instance with `./config.status config.h'.
28803if test -n "$CONFIG_FILES"; then
28804
28805
28806ac_cr='
28807'
28808ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28809if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28810  ac_cs_awk_cr='\\r'
28811else
28812  ac_cs_awk_cr=$ac_cr
28813fi
28814
28815echo 'BEGIN {' >"$tmp/subs1.awk" &&
28816_ACEOF
28817
28818
28819{
28820  echo "cat >conf$$subs.awk <<_ACEOF" &&
28821  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28822  echo "_ACEOF"
28823} >conf$$subs.sh ||
28824  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28825$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28826   { (exit 1); exit 1; }; }
28827ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28828ac_delim='%!_!# '
28829for ac_last_try in false false false false false :; do
28830  . ./conf$$subs.sh ||
28831    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28832$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28833   { (exit 1); exit 1; }; }
28834
28835  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28836  if test $ac_delim_n = $ac_delim_num; then
28837    break
28838  elif $ac_last_try; then
28839    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28840$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28841   { (exit 1); exit 1; }; }
28842  else
28843    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28844  fi
28845done
28846rm -f conf$$subs.sh
28847
28848cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28849cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28850_ACEOF
28851sed -n '
28852h
28853s/^/S["/; s/!.*/"]=/
28854p
28855g
28856s/^[^!]*!//
28857:repl
28858t repl
28859s/'"$ac_delim"'$//
28860t delim
28861:nl
28862h
28863s/\(.\{148\}\).*/\1/
28864t more1
28865s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28866p
28867n
28868b repl
28869:more1
28870s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28871p
28872g
28873s/.\{148\}//
28874t nl
28875:delim
28876h
28877s/\(.\{148\}\).*/\1/
28878t more2
28879s/["\\]/\\&/g; s/^/"/; s/$/"/
28880p
28881b
28882:more2
28883s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28884p
28885g
28886s/.\{148\}//
28887t delim
28888' <conf$$subs.awk | sed '
28889/^[^""]/{
28890  N
28891  s/\n//
28892}
28893' >>$CONFIG_STATUS || ac_write_fail=1
28894rm -f conf$$subs.awk
28895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28896_ACAWK
28897cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28898  for (key in S) S_is_set[key] = 1
28899  FS = ""
28900
28901}
28902{
28903  line = $ 0
28904  nfields = split(line, field, "@")
28905  substed = 0
28906  len = length(field[1])
28907  for (i = 2; i < nfields; i++) {
28908    key = field[i]
28909    keylen = length(key)
28910    if (S_is_set[key]) {
28911      value = S[key]
28912      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28913      len += length(value) + length(field[++i])
28914      substed = 1
28915    } else
28916      len += 1 + keylen
28917  }
28918
28919  print line
28920}
28921
28922_ACAWK
28923_ACEOF
28924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28925if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28926  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28927else
28928  cat
28929fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28930  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
28931$as_echo "$as_me: error: could not setup config files machinery" >&2;}
28932   { (exit 1); exit 1; }; }
28933_ACEOF
28934
28935# VPATH may cause trouble with some makes, so we remove $(srcdir),
28936# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28937# trailing colons and then remove the whole line if VPATH becomes empty
28938# (actually we leave an empty line to preserve line numbers).
28939if test "x$srcdir" = x.; then
28940  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
28941s/:*\$(srcdir):*/:/
28942s/:*\${srcdir}:*/:/
28943s/:*@srcdir@:*/:/
28944s/^\([^=]*=[	 ]*\):*/\1/
28945s/:*$//
28946s/^[^=]*=[	 ]*$//
28947}'
28948fi
28949
28950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28951fi # test -n "$CONFIG_FILES"
28952
28953# Set up the scripts for CONFIG_HEADERS section.
28954# No need to generate them if there are no CONFIG_HEADERS.
28955# This happens for instance with `./config.status Makefile'.
28956if test -n "$CONFIG_HEADERS"; then
28957cat >"$tmp/defines.awk" <<\_ACAWK ||
28958BEGIN {
28959_ACEOF
28960
28961# Transform confdefs.h into an awk script `defines.awk', embedded as
28962# here-document in config.status, that substitutes the proper values into
28963# config.h.in to produce config.h.
28964
28965# Create a delimiter string that does not exist in confdefs.h, to ease
28966# handling of long lines.
28967ac_delim='%!_!# '
28968for ac_last_try in false false :; do
28969  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28970  if test -z "$ac_t"; then
28971    break
28972  elif $ac_last_try; then
28973    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
28974$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
28975   { (exit 1); exit 1; }; }
28976  else
28977    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28978  fi
28979done
28980
28981# For the awk script, D is an array of macro values keyed by name,
28982# likewise P contains macro parameters if any.  Preserve backslash
28983# newline sequences.
28984
28985ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28986sed -n '
28987s/.\{148\}/&'"$ac_delim"'/g
28988t rset
28989:rset
28990s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
28991t def
28992d
28993:def
28994s/\\$//
28995t bsnl
28996s/["\\]/\\&/g
28997s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
28998D["\1"]=" \3"/p
28999s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
29000d
29001:bsnl
29002s/["\\]/\\&/g
29003s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29004D["\1"]=" \3\\\\\\n"\\/p
29005t cont
29006s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29007t cont
29008d
29009:cont
29010n
29011s/.\{148\}/&'"$ac_delim"'/g
29012t clear
29013:clear
29014s/\\$//
29015t bsnlc
29016s/["\\]/\\&/g; s/^/"/; s/$/"/p
29017d
29018:bsnlc
29019s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29020b cont
29021' <confdefs.h | sed '
29022s/'"$ac_delim"'/"\\\
29023"/g' >>$CONFIG_STATUS || ac_write_fail=1
29024
29025cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29026  for (key in D) D_is_set[key] = 1
29027  FS = ""
29028}
29029/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29030  line = \$ 0
29031  split(line, arg, " ")
29032  if (arg[1] == "#") {
29033    defundef = arg[2]
29034    mac1 = arg[3]
29035  } else {
29036    defundef = substr(arg[1], 2)
29037    mac1 = arg[2]
29038  }
29039  split(mac1, mac2, "(") #)
29040  macro = mac2[1]
29041  prefix = substr(line, 1, index(line, defundef) - 1)
29042  if (D_is_set[macro]) {
29043    # Preserve the white space surrounding the "#".
29044    print prefix "define", macro P[macro] D[macro]
29045    next
29046  } else {
29047    # Replace #undef with comments.  This is necessary, for example,
29048    # in the case of _POSIX_SOURCE, which is predefined and required
29049    # on some systems where configure will not decide to define it.
29050    if (defundef == "undef") {
29051      print "/*", prefix defundef, macro, "*/"
29052      next
29053    }
29054  }
29055}
29056{ print }
29057_ACAWK
29058_ACEOF
29059cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29060  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
29061$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
29062   { (exit 1); exit 1; }; }
29063fi # test -n "$CONFIG_HEADERS"
29064
29065
29066eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
29067shift
29068for ac_tag
29069do
29070  case $ac_tag in
29071  :[FHLC]) ac_mode=$ac_tag; continue;;
29072  esac
29073  case $ac_mode$ac_tag in
29074  :[FHL]*:*);;
29075  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
29076$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
29077   { (exit 1); exit 1; }; };;
29078  :[FH]-) ac_tag=-:-;;
29079  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29080  esac
29081  ac_save_IFS=$IFS
29082  IFS=:
29083  set x $ac_tag
29084  IFS=$ac_save_IFS
29085  shift
29086  ac_file=$1
29087  shift
29088
29089  case $ac_mode in
29090  :L) ac_source=$1;;
29091  :[FH])
29092    ac_file_inputs=
29093    for ac_f
29094    do
29095      case $ac_f in
29096      -) ac_f="$tmp/stdin";;
29097      *) # Look for the file first in the build tree, then in the source tree
29098	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
29099	 # because $ac_f cannot contain `:'.
29100	 test -f "$ac_f" ||
29101	   case $ac_f in
29102	   [\\/$]*) false;;
29103	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29104	   esac ||
29105	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29106$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29107   { (exit 1); exit 1; }; };;
29108      esac
29109      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29110      ac_file_inputs="$ac_file_inputs '$ac_f'"
29111    done
29112
29113    # Let's still pretend it is `configure' which instantiates (i.e., don't
29114    # use $as_me), people would be surprised to read:
29115    #    /* config.h.  Generated by config.status.  */
29116    configure_input='Generated from '`
29117	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29118	`' by configure.'
29119    if test x"$ac_file" != x-; then
29120      configure_input="$ac_file.  $configure_input"
29121      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
29122$as_echo "$as_me: creating $ac_file" >&6;}
29123    fi
29124    # Neutralize special characters interpreted by sed in replacement strings.
29125    case $configure_input in #(
29126    *\&* | *\|* | *\\* )
29127       ac_sed_conf_input=`$as_echo "$configure_input" |
29128       sed 's/[\\\\&|]/\\\\&/g'`;; #(
29129    *) ac_sed_conf_input=$configure_input;;
29130    esac
29131
29132    case $ac_tag in
29133    *:-:* | *:-) cat >"$tmp/stdin" \
29134      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29135$as_echo "$as_me: error: could not create $ac_file" >&2;}
29136   { (exit 1); exit 1; }; } ;;
29137    esac
29138    ;;
29139  esac
29140
29141  ac_dir=`$as_dirname -- "$ac_file" ||
29142$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29143	 X"$ac_file" : 'X\(//\)[^/]' \| \
29144	 X"$ac_file" : 'X\(//\)$' \| \
29145	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29146$as_echo X"$ac_file" |
29147    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29148	    s//\1/
29149	    q
29150	  }
29151	  /^X\(\/\/\)[^/].*/{
29152	    s//\1/
29153	    q
29154	  }
29155	  /^X\(\/\/\)$/{
29156	    s//\1/
29157	    q
29158	  }
29159	  /^X\(\/\).*/{
29160	    s//\1/
29161	    q
29162	  }
29163	  s/.*/./; q'`
29164  { as_dir="$ac_dir"
29165  case $as_dir in #(
29166  -*) as_dir=./$as_dir;;
29167  esac
29168  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29169    as_dirs=
29170    while :; do
29171      case $as_dir in #(
29172      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29173      *) as_qdir=$as_dir;;
29174      esac
29175      as_dirs="'$as_qdir' $as_dirs"
29176      as_dir=`$as_dirname -- "$as_dir" ||
29177$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29178	 X"$as_dir" : 'X\(//\)[^/]' \| \
29179	 X"$as_dir" : 'X\(//\)$' \| \
29180	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29181$as_echo X"$as_dir" |
29182    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29183	    s//\1/
29184	    q
29185	  }
29186	  /^X\(\/\/\)[^/].*/{
29187	    s//\1/
29188	    q
29189	  }
29190	  /^X\(\/\/\)$/{
29191	    s//\1/
29192	    q
29193	  }
29194	  /^X\(\/\).*/{
29195	    s//\1/
29196	    q
29197	  }
29198	  s/.*/./; q'`
29199      test -d "$as_dir" && break
29200    done
29201    test -z "$as_dirs" || eval "mkdir $as_dirs"
29202  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29203$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29204   { (exit 1); exit 1; }; }; }
29205  ac_builddir=.
29206
29207case "$ac_dir" in
29208.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29209*)
29210  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29211  # A ".." for each directory in $ac_dir_suffix.
29212  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29213  case $ac_top_builddir_sub in
29214  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29215  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29216  esac ;;
29217esac
29218ac_abs_top_builddir=$ac_pwd
29219ac_abs_builddir=$ac_pwd$ac_dir_suffix
29220# for backward compatibility:
29221ac_top_builddir=$ac_top_build_prefix
29222
29223case $srcdir in
29224  .)  # We are building in place.
29225    ac_srcdir=.
29226    ac_top_srcdir=$ac_top_builddir_sub
29227    ac_abs_top_srcdir=$ac_pwd ;;
29228  [\\/]* | ?:[\\/]* )  # Absolute name.
29229    ac_srcdir=$srcdir$ac_dir_suffix;
29230    ac_top_srcdir=$srcdir
29231    ac_abs_top_srcdir=$srcdir ;;
29232  *) # Relative name.
29233    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29234    ac_top_srcdir=$ac_top_build_prefix$srcdir
29235    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29236esac
29237ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29238
29239
29240  case $ac_mode in
29241  :F)
29242  #
29243  # CONFIG_FILE
29244  #
29245
29246  case $INSTALL in
29247  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29248  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29249  esac
29250  ac_MKDIR_P=$MKDIR_P
29251  case $MKDIR_P in
29252  [\\/$]* | ?:[\\/]* ) ;;
29253  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29254  esac
29255_ACEOF
29256
29257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29258# If the template does not know about datarootdir, expand it.
29259# FIXME: This hack should be removed a few years after 2.60.
29260ac_datarootdir_hack=; ac_datarootdir_seen=
29261
29262ac_sed_dataroot='
29263/datarootdir/ {
29264  p
29265  q
29266}
29267/@datadir@/p
29268/@docdir@/p
29269/@infodir@/p
29270/@localedir@/p
29271/@mandir@/p
29272'
29273case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29274*datarootdir*) ac_datarootdir_seen=yes;;
29275*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29276  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29277$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29278_ACEOF
29279cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29280  ac_datarootdir_hack='
29281  s&@datadir@&$datadir&g
29282  s&@docdir@&$docdir&g
29283  s&@infodir@&$infodir&g
29284  s&@localedir@&$localedir&g
29285  s&@mandir@&$mandir&g
29286    s&\\\${datarootdir}&$datarootdir&g' ;;
29287esac
29288_ACEOF
29289
29290# Neutralize VPATH when `$srcdir' = `.'.
29291# Shell code in configure.ac might set extrasub.
29292# FIXME: do we really want to maintain this feature?
29293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29294ac_sed_extra="$ac_vpsub
29295$extrasub
29296_ACEOF
29297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29298:t
29299/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29300s|@configure_input@|$ac_sed_conf_input|;t t
29301s&@top_builddir@&$ac_top_builddir_sub&;t t
29302s&@top_build_prefix@&$ac_top_build_prefix&;t t
29303s&@srcdir@&$ac_srcdir&;t t
29304s&@abs_srcdir@&$ac_abs_srcdir&;t t
29305s&@top_srcdir@&$ac_top_srcdir&;t t
29306s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29307s&@builddir@&$ac_builddir&;t t
29308s&@abs_builddir@&$ac_abs_builddir&;t t
29309s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29310s&@INSTALL@&$ac_INSTALL&;t t
29311s&@MKDIR_P@&$ac_MKDIR_P&;t t
29312$ac_datarootdir_hack
29313"
29314eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
29315  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29316$as_echo "$as_me: error: could not create $ac_file" >&2;}
29317   { (exit 1); exit 1; }; }
29318
29319test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29320  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29321  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29322  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29323which seems to be undefined.  Please make sure it is defined." >&5
29324$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29325which seems to be undefined.  Please make sure it is defined." >&2;}
29326
29327  rm -f "$tmp/stdin"
29328  case $ac_file in
29329  -) cat "$tmp/out" && rm -f "$tmp/out";;
29330  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29331  esac \
29332  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29333$as_echo "$as_me: error: could not create $ac_file" >&2;}
29334   { (exit 1); exit 1; }; }
29335 ;;
29336  :H)
29337  #
29338  # CONFIG_HEADER
29339  #
29340  if test x"$ac_file" != x-; then
29341    {
29342      $as_echo "/* $configure_input  */" \
29343      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29344    } >"$tmp/config.h" \
29345      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29346$as_echo "$as_me: error: could not create $ac_file" >&2;}
29347   { (exit 1); exit 1; }; }
29348    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29349      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29350$as_echo "$as_me: $ac_file is unchanged" >&6;}
29351    else
29352      rm -f "$ac_file"
29353      mv "$tmp/config.h" "$ac_file" \
29354	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29355$as_echo "$as_me: error: could not create $ac_file" >&2;}
29356   { (exit 1); exit 1; }; }
29357    fi
29358  else
29359    $as_echo "/* $configure_input  */" \
29360      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29361      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
29362$as_echo "$as_me: error: could not create -" >&2;}
29363   { (exit 1); exit 1; }; }
29364  fi
29365# Compute "$ac_file"'s index in $config_headers.
29366_am_arg="$ac_file"
29367_am_stamp_count=1
29368for _am_header in $config_headers :; do
29369  case $_am_header in
29370    $_am_arg | $_am_arg:* )
29371      break ;;
29372    * )
29373      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29374  esac
29375done
29376echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29377$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29378	 X"$_am_arg" : 'X\(//\)[^/]' \| \
29379	 X"$_am_arg" : 'X\(//\)$' \| \
29380	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29381$as_echo X"$_am_arg" |
29382    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29383	    s//\1/
29384	    q
29385	  }
29386	  /^X\(\/\/\)[^/].*/{
29387	    s//\1/
29388	    q
29389	  }
29390	  /^X\(\/\/\)$/{
29391	    s//\1/
29392	    q
29393	  }
29394	  /^X\(\/\).*/{
29395	    s//\1/
29396	    q
29397	  }
29398	  s/.*/./; q'`/stamp-h$_am_stamp_count
29399 ;;
29400
29401  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
29402$as_echo "$as_me: executing $ac_file commands" >&6;}
29403 ;;
29404  esac
29405
29406
29407  case $ac_file$ac_mode in
29408    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29409  # Autoconf 2.62 quotes --file arguments for eval, but not when files
29410  # are listed without --file.  Let's play safe and only enable the eval
29411  # if we detect the quoting.
29412  case $CONFIG_FILES in
29413  *\'*) eval set x "$CONFIG_FILES" ;;
29414  *)   set x $CONFIG_FILES ;;
29415  esac
29416  shift
29417  for mf
29418  do
29419    # Strip MF so we end up with the name of the file.
29420    mf=`echo "$mf" | sed -e 's/:.*$//'`
29421    # Check whether this is an Automake generated Makefile or not.
29422    # We used to match only the files named `Makefile.in', but
29423    # some people rename them; so instead we look at the file content.
29424    # Grep'ing the first line is not enough: some people post-process
29425    # each Makefile.in and add a new line on top of each file to say so.
29426    # Grep'ing the whole file is not good either: AIX grep has a line
29427    # limit of 2048, but all sed's we know have understand at least 4000.
29428    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29429      dirpart=`$as_dirname -- "$mf" ||
29430$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29431	 X"$mf" : 'X\(//\)[^/]' \| \
29432	 X"$mf" : 'X\(//\)$' \| \
29433	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29434$as_echo X"$mf" |
29435    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29436	    s//\1/
29437	    q
29438	  }
29439	  /^X\(\/\/\)[^/].*/{
29440	    s//\1/
29441	    q
29442	  }
29443	  /^X\(\/\/\)$/{
29444	    s//\1/
29445	    q
29446	  }
29447	  /^X\(\/\).*/{
29448	    s//\1/
29449	    q
29450	  }
29451	  s/.*/./; q'`
29452    else
29453      continue
29454    fi
29455    # Extract the definition of DEPDIR, am__include, and am__quote
29456    # from the Makefile without running `make'.
29457    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29458    test -z "$DEPDIR" && continue
29459    am__include=`sed -n 's/^am__include = //p' < "$mf"`
29460    test -z "am__include" && continue
29461    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29462    # When using ansi2knr, U may be empty or an underscore; expand it
29463    U=`sed -n 's/^U = //p' < "$mf"`
29464    # Find all dependency output files, they are included files with
29465    # $(DEPDIR) in their names.  We invoke sed twice because it is the
29466    # simplest approach to changing $(DEPDIR) to its actual value in the
29467    # expansion.
29468    for file in `sed -n "
29469      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29470	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29471      # Make sure the directory exists.
29472      test -f "$dirpart/$file" && continue
29473      fdir=`$as_dirname -- "$file" ||
29474$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29475	 X"$file" : 'X\(//\)[^/]' \| \
29476	 X"$file" : 'X\(//\)$' \| \
29477	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29478$as_echo X"$file" |
29479    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29480	    s//\1/
29481	    q
29482	  }
29483	  /^X\(\/\/\)[^/].*/{
29484	    s//\1/
29485	    q
29486	  }
29487	  /^X\(\/\/\)$/{
29488	    s//\1/
29489	    q
29490	  }
29491	  /^X\(\/\).*/{
29492	    s//\1/
29493	    q
29494	  }
29495	  s/.*/./; q'`
29496      { as_dir=$dirpart/$fdir
29497  case $as_dir in #(
29498  -*) as_dir=./$as_dir;;
29499  esac
29500  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29501    as_dirs=
29502    while :; do
29503      case $as_dir in #(
29504      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29505      *) as_qdir=$as_dir;;
29506      esac
29507      as_dirs="'$as_qdir' $as_dirs"
29508      as_dir=`$as_dirname -- "$as_dir" ||
29509$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29510	 X"$as_dir" : 'X\(//\)[^/]' \| \
29511	 X"$as_dir" : 'X\(//\)$' \| \
29512	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29513$as_echo X"$as_dir" |
29514    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29515	    s//\1/
29516	    q
29517	  }
29518	  /^X\(\/\/\)[^/].*/{
29519	    s//\1/
29520	    q
29521	  }
29522	  /^X\(\/\/\)$/{
29523	    s//\1/
29524	    q
29525	  }
29526	  /^X\(\/\).*/{
29527	    s//\1/
29528	    q
29529	  }
29530	  s/.*/./; q'`
29531      test -d "$as_dir" && break
29532    done
29533    test -z "$as_dirs" || eval "mkdir $as_dirs"
29534  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29535$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29536   { (exit 1); exit 1; }; }; }
29537      # echo "creating $dirpart/$file"
29538      echo '# dummy' > "$dirpart/$file"
29539    done
29540  done
29541}
29542 ;;
29543    "libtool":C)
29544
29545    # See if we are running on zsh, and set the options which allow our
29546    # commands through without removal of \ escapes.
29547    if test -n "${ZSH_VERSION+set}" ; then
29548      setopt NO_GLOB_SUBST
29549    fi
29550
29551    cfgfile="${ofile}T"
29552    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29553    $RM "$cfgfile"
29554
29555    cat <<_LT_EOF >> "$cfgfile"
29556#! $SHELL
29557
29558# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
29559# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
29560# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29561# NOTE: Changes made to this file will be lost: look at ltmain.sh.
29562#
29563#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
29564#                 2006, 2007, 2008 Free Software Foundation, Inc.
29565#   Written by Gordon Matzigkeit, 1996
29566#
29567#   This file is part of GNU Libtool.
29568#
29569# GNU Libtool is free software; you can redistribute it and/or
29570# modify it under the terms of the GNU General Public License as
29571# published by the Free Software Foundation; either version 2 of
29572# the License, or (at your option) any later version.
29573#
29574# As a special exception to the GNU General Public License,
29575# if you distribute this file as part of a program or library that
29576# is built using GNU Libtool, you may include this file under the
29577# same distribution terms that you use for the rest of that program.
29578#
29579# GNU Libtool is distributed in the hope that it will be useful,
29580# but WITHOUT ANY WARRANTY; without even the implied warranty of
29581# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29582# GNU General Public License for more details.
29583#
29584# You should have received a copy of the GNU General Public License
29585# along with GNU Libtool; see the file COPYING.  If not, a copy
29586# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
29587# obtained by writing to the Free Software Foundation, Inc.,
29588# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29589
29590
29591# The names of the tagged configurations supported by this script.
29592available_tags="CXX "
29593
29594# ### BEGIN LIBTOOL CONFIG
29595
29596# Which release of libtool.m4 was used?
29597macro_version=$macro_version
29598macro_revision=$macro_revision
29599
29600# Whether or not to build shared libraries.
29601build_libtool_libs=$enable_shared
29602
29603# Whether or not to build static libraries.
29604build_old_libs=$enable_static
29605
29606# What type of objects to build.
29607pic_mode=$pic_mode
29608
29609# Whether or not to optimize for fast installation.
29610fast_install=$enable_fast_install
29611
29612# The host system.
29613host_alias=$host_alias
29614host=$host
29615host_os=$host_os
29616
29617# The build system.
29618build_alias=$build_alias
29619build=$build
29620build_os=$build_os
29621
29622# A sed program that does not truncate output.
29623SED=$lt_SED
29624
29625# Sed that helps us avoid accidentally triggering echo(1) options like -n.
29626Xsed="\$SED -e 1s/^X//"
29627
29628# A grep program that handles long lines.
29629GREP=$lt_GREP
29630
29631# An ERE matcher.
29632EGREP=$lt_EGREP
29633
29634# A literal string matcher.
29635FGREP=$lt_FGREP
29636
29637# A BSD- or MS-compatible name lister.
29638NM=$lt_NM
29639
29640# Whether we need soft or hard links.
29641LN_S=$lt_LN_S
29642
29643# What is the maximum length of a command?
29644max_cmd_len=$max_cmd_len
29645
29646# Object file suffix (normally "o").
29647objext=$ac_objext
29648
29649# Executable file suffix (normally "").
29650exeext=$exeext
29651
29652# whether the shell understands "unset".
29653lt_unset=$lt_unset
29654
29655# turn spaces into newlines.
29656SP2NL=$lt_lt_SP2NL
29657
29658# turn newlines into spaces.
29659NL2SP=$lt_lt_NL2SP
29660
29661# How to create reloadable object files.
29662reload_flag=$lt_reload_flag
29663reload_cmds=$lt_reload_cmds
29664
29665# An object symbol dumper.
29666OBJDUMP=$lt_OBJDUMP
29667
29668# Method to check whether dependent libraries are shared objects.
29669deplibs_check_method=$lt_deplibs_check_method
29670
29671# Command to use when deplibs_check_method == "file_magic".
29672file_magic_cmd=$lt_file_magic_cmd
29673
29674# The archiver.
29675AR=$lt_AR
29676AR_FLAGS=$lt_AR_FLAGS
29677
29678# A symbol stripping program.
29679STRIP=$lt_STRIP
29680
29681# Commands used to install an old-style archive.
29682RANLIB=$lt_RANLIB
29683old_postinstall_cmds=$lt_old_postinstall_cmds
29684old_postuninstall_cmds=$lt_old_postuninstall_cmds
29685
29686# A C compiler.
29687LTCC=$lt_CC
29688
29689# LTCC compiler flags.
29690LTCFLAGS=$lt_CFLAGS
29691
29692# Take the output of nm and produce a listing of raw symbols and C names.
29693global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29694
29695# Transform the output of nm in a proper C declaration.
29696global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29697
29698# Transform the output of nm in a C name address pair.
29699global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29700
29701# Transform the output of nm in a C name address pair when lib prefix is needed.
29702global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29703
29704# The name of the directory that contains temporary libtool files.
29705objdir=$objdir
29706
29707# Shell to use when invoking shell scripts.
29708SHELL=$lt_SHELL
29709
29710# An echo program that does not interpret backslashes.
29711ECHO=$lt_ECHO
29712
29713# Used to examine libraries when file_magic_cmd begins with "file".
29714MAGIC_CMD=$MAGIC_CMD
29715
29716# Must we lock files when doing compilation?
29717need_locks=$lt_need_locks
29718
29719# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29720DSYMUTIL=$lt_DSYMUTIL
29721
29722# Tool to change global to local symbols on Mac OS X.
29723NMEDIT=$lt_NMEDIT
29724
29725# Tool to manipulate fat objects and archives on Mac OS X.
29726LIPO=$lt_LIPO
29727
29728# ldd/readelf like tool for Mach-O binaries on Mac OS X.
29729OTOOL=$lt_OTOOL
29730
29731# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29732OTOOL64=$lt_OTOOL64
29733
29734# Old archive suffix (normally "a").
29735libext=$libext
29736
29737# Shared library suffix (normally ".so").
29738shrext_cmds=$lt_shrext_cmds
29739
29740# The commands to extract the exported symbol list from a shared archive.
29741extract_expsyms_cmds=$lt_extract_expsyms_cmds
29742
29743# Variables whose values should be saved in libtool wrapper scripts and
29744# restored at link time.
29745variables_saved_for_relink=$lt_variables_saved_for_relink
29746
29747# Do we need the "lib" prefix for modules?
29748need_lib_prefix=$need_lib_prefix
29749
29750# Do we need a version for libraries?
29751need_version=$need_version
29752
29753# Library versioning type.
29754version_type=$version_type
29755
29756# Shared library runtime path variable.
29757runpath_var=$runpath_var
29758
29759# Shared library path variable.
29760shlibpath_var=$shlibpath_var
29761
29762# Is shlibpath searched before the hard-coded library search path?
29763shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29764
29765# Format of library name prefix.
29766libname_spec=$lt_libname_spec
29767
29768# List of archive names.  First name is the real one, the rest are links.
29769# The last name is the one that the linker finds with -lNAME
29770library_names_spec=$lt_library_names_spec
29771
29772# The coded name of the library, if different from the real name.
29773soname_spec=$lt_soname_spec
29774
29775# Command to use after installation of a shared archive.
29776postinstall_cmds=$lt_postinstall_cmds
29777
29778# Command to use after uninstallation of a shared archive.
29779postuninstall_cmds=$lt_postuninstall_cmds
29780
29781# Commands used to finish a libtool library installation in a directory.
29782finish_cmds=$lt_finish_cmds
29783
29784# As "finish_cmds", except a single script fragment to be evaled but
29785# not shown.
29786finish_eval=$lt_finish_eval
29787
29788# Whether we should hardcode library paths into libraries.
29789hardcode_into_libs=$hardcode_into_libs
29790
29791# Compile-time system search path for libraries.
29792sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29793
29794# Run-time system search path for libraries.
29795sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29796
29797# Whether dlopen is supported.
29798dlopen_support=$enable_dlopen
29799
29800# Whether dlopen of programs is supported.
29801dlopen_self=$enable_dlopen_self
29802
29803# Whether dlopen of statically linked programs is supported.
29804dlopen_self_static=$enable_dlopen_self_static
29805
29806# Commands to strip libraries.
29807old_striplib=$lt_old_striplib
29808striplib=$lt_striplib
29809
29810
29811# The linker used to build libraries.
29812LD=$lt_LD
29813
29814# Commands used to build an old-style archive.
29815old_archive_cmds=$lt_old_archive_cmds
29816
29817# A language specific compiler.
29818CC=$lt_compiler
29819
29820# Is the compiler the GNU compiler?
29821with_gcc=$GCC
29822
29823# Compiler flag to turn off builtin functions.
29824no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29825
29826# How to pass a linker flag through the compiler.
29827wl=$lt_lt_prog_compiler_wl
29828
29829# Additional compiler flags for building library objects.
29830pic_flag=$lt_lt_prog_compiler_pic
29831
29832# Compiler flag to prevent dynamic linking.
29833link_static_flag=$lt_lt_prog_compiler_static
29834
29835# Does compiler simultaneously support -c and -o options?
29836compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29837
29838# Whether or not to add -lc for building shared libraries.
29839build_libtool_need_lc=$archive_cmds_need_lc
29840
29841# Whether or not to disallow shared libs when runtime libs are static.
29842allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29843
29844# Compiler flag to allow reflexive dlopens.
29845export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29846
29847# Compiler flag to generate shared objects directly from archives.
29848whole_archive_flag_spec=$lt_whole_archive_flag_spec
29849
29850# Whether the compiler copes with passing no objects directly.
29851compiler_needs_object=$lt_compiler_needs_object
29852
29853# Create an old-style archive from a shared archive.
29854old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29855
29856# Create a temporary old-style archive to link instead of a shared archive.
29857old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29858
29859# Commands used to build a shared archive.
29860archive_cmds=$lt_archive_cmds
29861archive_expsym_cmds=$lt_archive_expsym_cmds
29862
29863# Commands used to build a loadable module if different from building
29864# a shared archive.
29865module_cmds=$lt_module_cmds
29866module_expsym_cmds=$lt_module_expsym_cmds
29867
29868# Whether we are building with GNU ld or not.
29869with_gnu_ld=$lt_with_gnu_ld
29870
29871# Flag that allows shared libraries with undefined symbols to be built.
29872allow_undefined_flag=$lt_allow_undefined_flag
29873
29874# Flag that enforces no undefined symbols.
29875no_undefined_flag=$lt_no_undefined_flag
29876
29877# Flag to hardcode \$libdir into a binary during linking.
29878# This must work even if \$libdir does not exist
29879hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29880
29881# If ld is used when linking, flag to hardcode \$libdir into a binary
29882# during linking.  This must work even if \$libdir does not exist.
29883hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
29884
29885# Whether we need a single "-rpath" flag with a separated argument.
29886hardcode_libdir_separator=$lt_hardcode_libdir_separator
29887
29888# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29889# DIR into the resulting binary.
29890hardcode_direct=$hardcode_direct
29891
29892# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29893# DIR into the resulting binary and the resulting library dependency is
29894# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29895# library is relocated.
29896hardcode_direct_absolute=$hardcode_direct_absolute
29897
29898# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29899# into the resulting binary.
29900hardcode_minus_L=$hardcode_minus_L
29901
29902# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29903# into the resulting binary.
29904hardcode_shlibpath_var=$hardcode_shlibpath_var
29905
29906# Set to "yes" if building a shared library automatically hardcodes DIR
29907# into the library and all subsequent libraries and executables linked
29908# against it.
29909hardcode_automatic=$hardcode_automatic
29910
29911# Set to yes if linker adds runtime paths of dependent libraries
29912# to runtime path list.
29913inherit_rpath=$inherit_rpath
29914
29915# Whether libtool must link a program against all its dependency libraries.
29916link_all_deplibs=$link_all_deplibs
29917
29918# Fix the shell variable \$srcfile for the compiler.
29919fix_srcfile_path=$lt_fix_srcfile_path
29920
29921# Set to "yes" if exported symbols are required.
29922always_export_symbols=$always_export_symbols
29923
29924# The commands to list exported symbols.
29925export_symbols_cmds=$lt_export_symbols_cmds
29926
29927# Symbols that should not be listed in the preloaded symbols.
29928exclude_expsyms=$lt_exclude_expsyms
29929
29930# Symbols that must always be exported.
29931include_expsyms=$lt_include_expsyms
29932
29933# Commands necessary for linking programs (against libraries) with templates.
29934prelink_cmds=$lt_prelink_cmds
29935
29936# Specify filename containing input files.
29937file_list_spec=$lt_file_list_spec
29938
29939# How to hardcode a shared library path into an executable.
29940hardcode_action=$hardcode_action
29941
29942# The directories searched by this compiler when creating a shared library.
29943compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29944
29945# Dependencies to place before and after the objects being linked to
29946# create a shared library.
29947predep_objects=$lt_predep_objects
29948postdep_objects=$lt_postdep_objects
29949predeps=$lt_predeps
29950postdeps=$lt_postdeps
29951
29952# The library search path used internally by the compiler when linking
29953# a shared library.
29954compiler_lib_search_path=$lt_compiler_lib_search_path
29955
29956# ### END LIBTOOL CONFIG
29957
29958_LT_EOF
29959
29960  case $host_os in
29961  aix3*)
29962    cat <<\_LT_EOF >> "$cfgfile"
29963# AIX sometimes has problems with the GCC collect2 program.  For some
29964# reason, if we set the COLLECT_NAMES environment variable, the problems
29965# vanish in a puff of smoke.
29966if test "X${COLLECT_NAMES+set}" != Xset; then
29967  COLLECT_NAMES=
29968  export COLLECT_NAMES
29969fi
29970_LT_EOF
29971    ;;
29972  esac
29973
29974
29975ltmain="$ac_aux_dir/ltmain.sh"
29976
29977
29978  # We use sed instead of cat because bash on DJGPP gets confused if
29979  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
29980  # text mode, it properly converts lines to CR/LF.  This bash problem
29981  # is reportedly fixed, but why not run on old versions too?
29982  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
29983    || (rm -f "$cfgfile"; exit 1)
29984
29985  case $xsi_shell in
29986  yes)
29987    cat << \_LT_EOF >> "$cfgfile"
29988
29989# func_dirname file append nondir_replacement
29990# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
29991# otherwise set result to NONDIR_REPLACEMENT.
29992func_dirname ()
29993{
29994  case ${1} in
29995    */*) func_dirname_result="${1%/*}${2}" ;;
29996    *  ) func_dirname_result="${3}" ;;
29997  esac
29998}
29999
30000# func_basename file
30001func_basename ()
30002{
30003  func_basename_result="${1##*/}"
30004}
30005
30006# func_dirname_and_basename file append nondir_replacement
30007# perform func_basename and func_dirname in a single function
30008# call:
30009#   dirname:  Compute the dirname of FILE.  If nonempty,
30010#             add APPEND to the result, otherwise set result
30011#             to NONDIR_REPLACEMENT.
30012#             value returned in "$func_dirname_result"
30013#   basename: Compute filename of FILE.
30014#             value retuned in "$func_basename_result"
30015# Implementation must be kept synchronized with func_dirname
30016# and func_basename. For efficiency, we do not delegate to
30017# those functions but instead duplicate the functionality here.
30018func_dirname_and_basename ()
30019{
30020  case ${1} in
30021    */*) func_dirname_result="${1%/*}${2}" ;;
30022    *  ) func_dirname_result="${3}" ;;
30023  esac
30024  func_basename_result="${1##*/}"
30025}
30026
30027# func_stripname prefix suffix name
30028# strip PREFIX and SUFFIX off of NAME.
30029# PREFIX and SUFFIX must not contain globbing or regex special
30030# characters, hashes, percent signs, but SUFFIX may contain a leading
30031# dot (in which case that matches only a dot).
30032func_stripname ()
30033{
30034  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
30035  # positional parameters, so assign one to ordinary parameter first.
30036  func_stripname_result=${3}
30037  func_stripname_result=${func_stripname_result#"${1}"}
30038  func_stripname_result=${func_stripname_result%"${2}"}
30039}
30040
30041# func_opt_split
30042func_opt_split ()
30043{
30044  func_opt_split_opt=${1%%=*}
30045  func_opt_split_arg=${1#*=}
30046}
30047
30048# func_lo2o object
30049func_lo2o ()
30050{
30051  case ${1} in
30052    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
30053    *)    func_lo2o_result=${1} ;;
30054  esac
30055}
30056
30057# func_xform libobj-or-source
30058func_xform ()
30059{
30060  func_xform_result=${1%.*}.lo
30061}
30062
30063# func_arith arithmetic-term...
30064func_arith ()
30065{
30066  func_arith_result=$(( $* ))
30067}
30068
30069# func_len string
30070# STRING may not start with a hyphen.
30071func_len ()
30072{
30073  func_len_result=${#1}
30074}
30075
30076_LT_EOF
30077    ;;
30078  *) # Bourne compatible functions.
30079    cat << \_LT_EOF >> "$cfgfile"
30080
30081# func_dirname file append nondir_replacement
30082# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
30083# otherwise set result to NONDIR_REPLACEMENT.
30084func_dirname ()
30085{
30086  # Extract subdirectory from the argument.
30087  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
30088  if test "X$func_dirname_result" = "X${1}"; then
30089    func_dirname_result="${3}"
30090  else
30091    func_dirname_result="$func_dirname_result${2}"
30092  fi
30093}
30094
30095# func_basename file
30096func_basename ()
30097{
30098  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
30099}
30100
30101
30102# func_stripname prefix suffix name
30103# strip PREFIX and SUFFIX off of NAME.
30104# PREFIX and SUFFIX must not contain globbing or regex special
30105# characters, hashes, percent signs, but SUFFIX may contain a leading
30106# dot (in which case that matches only a dot).
30107# func_strip_suffix prefix name
30108func_stripname ()
30109{
30110  case ${2} in
30111    .*) func_stripname_result=`$ECHO "X${3}" \
30112           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
30113    *)  func_stripname_result=`$ECHO "X${3}" \
30114           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
30115  esac
30116}
30117
30118# sed scripts:
30119my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
30120my_sed_long_arg='1s/^-[^=]*=//'
30121
30122# func_opt_split
30123func_opt_split ()
30124{
30125  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
30126  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
30127}
30128
30129# func_lo2o object
30130func_lo2o ()
30131{
30132  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
30133}
30134
30135# func_xform libobj-or-source
30136func_xform ()
30137{
30138  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
30139}
30140
30141# func_arith arithmetic-term...
30142func_arith ()
30143{
30144  func_arith_result=`expr "$@"`
30145}
30146
30147# func_len string
30148# STRING may not start with a hyphen.
30149func_len ()
30150{
30151  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
30152}
30153
30154_LT_EOF
30155esac
30156
30157case $lt_shell_append in
30158  yes)
30159    cat << \_LT_EOF >> "$cfgfile"
30160
30161# func_append var value
30162# Append VALUE to the end of shell variable VAR.
30163func_append ()
30164{
30165  eval "$1+=\$2"
30166}
30167_LT_EOF
30168    ;;
30169  *)
30170    cat << \_LT_EOF >> "$cfgfile"
30171
30172# func_append var value
30173# Append VALUE to the end of shell variable VAR.
30174func_append ()
30175{
30176  eval "$1=\$$1\$2"
30177}
30178
30179_LT_EOF
30180    ;;
30181  esac
30182
30183
30184  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
30185    || (rm -f "$cfgfile"; exit 1)
30186
30187  mv -f "$cfgfile" "$ofile" ||
30188    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30189  chmod +x "$ofile"
30190
30191
30192    cat <<_LT_EOF >> "$ofile"
30193
30194# ### BEGIN LIBTOOL TAG CONFIG: CXX
30195
30196# The linker used to build libraries.
30197LD=$lt_LD_CXX
30198
30199# Commands used to build an old-style archive.
30200old_archive_cmds=$lt_old_archive_cmds_CXX
30201
30202# A language specific compiler.
30203CC=$lt_compiler_CXX
30204
30205# Is the compiler the GNU compiler?
30206with_gcc=$GCC_CXX
30207
30208# Compiler flag to turn off builtin functions.
30209no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30210
30211# How to pass a linker flag through the compiler.
30212wl=$lt_lt_prog_compiler_wl_CXX
30213
30214# Additional compiler flags for building library objects.
30215pic_flag=$lt_lt_prog_compiler_pic_CXX
30216
30217# Compiler flag to prevent dynamic linking.
30218link_static_flag=$lt_lt_prog_compiler_static_CXX
30219
30220# Does compiler simultaneously support -c and -o options?
30221compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30222
30223# Whether or not to add -lc for building shared libraries.
30224build_libtool_need_lc=$archive_cmds_need_lc_CXX
30225
30226# Whether or not to disallow shared libs when runtime libs are static.
30227allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30228
30229# Compiler flag to allow reflexive dlopens.
30230export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30231
30232# Compiler flag to generate shared objects directly from archives.
30233whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30234
30235# Whether the compiler copes with passing no objects directly.
30236compiler_needs_object=$lt_compiler_needs_object_CXX
30237
30238# Create an old-style archive from a shared archive.
30239old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30240
30241# Create a temporary old-style archive to link instead of a shared archive.
30242old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30243
30244# Commands used to build a shared archive.
30245archive_cmds=$lt_archive_cmds_CXX
30246archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30247
30248# Commands used to build a loadable module if different from building
30249# a shared archive.
30250module_cmds=$lt_module_cmds_CXX
30251module_expsym_cmds=$lt_module_expsym_cmds_CXX
30252
30253# Whether we are building with GNU ld or not.
30254with_gnu_ld=$lt_with_gnu_ld_CXX
30255
30256# Flag that allows shared libraries with undefined symbols to be built.
30257allow_undefined_flag=$lt_allow_undefined_flag_CXX
30258
30259# Flag that enforces no undefined symbols.
30260no_undefined_flag=$lt_no_undefined_flag_CXX
30261
30262# Flag to hardcode \$libdir into a binary during linking.
30263# This must work even if \$libdir does not exist
30264hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30265
30266# If ld is used when linking, flag to hardcode \$libdir into a binary
30267# during linking.  This must work even if \$libdir does not exist.
30268hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
30269
30270# Whether we need a single "-rpath" flag with a separated argument.
30271hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30272
30273# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30274# DIR into the resulting binary.
30275hardcode_direct=$hardcode_direct_CXX
30276
30277# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30278# DIR into the resulting binary and the resulting library dependency is
30279# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30280# library is relocated.
30281hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30282
30283# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30284# into the resulting binary.
30285hardcode_minus_L=$hardcode_minus_L_CXX
30286
30287# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30288# into the resulting binary.
30289hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30290
30291# Set to "yes" if building a shared library automatically hardcodes DIR
30292# into the library and all subsequent libraries and executables linked
30293# against it.
30294hardcode_automatic=$hardcode_automatic_CXX
30295
30296# Set to yes if linker adds runtime paths of dependent libraries
30297# to runtime path list.
30298inherit_rpath=$inherit_rpath_CXX
30299
30300# Whether libtool must link a program against all its dependency libraries.
30301link_all_deplibs=$link_all_deplibs_CXX
30302
30303# Fix the shell variable \$srcfile for the compiler.
30304fix_srcfile_path=$lt_fix_srcfile_path_CXX
30305
30306# Set to "yes" if exported symbols are required.
30307always_export_symbols=$always_export_symbols_CXX
30308
30309# The commands to list exported symbols.
30310export_symbols_cmds=$lt_export_symbols_cmds_CXX
30311
30312# Symbols that should not be listed in the preloaded symbols.
30313exclude_expsyms=$lt_exclude_expsyms_CXX
30314
30315# Symbols that must always be exported.
30316include_expsyms=$lt_include_expsyms_CXX
30317
30318# Commands necessary for linking programs (against libraries) with templates.
30319prelink_cmds=$lt_prelink_cmds_CXX
30320
30321# Specify filename containing input files.
30322file_list_spec=$lt_file_list_spec_CXX
30323
30324# How to hardcode a shared library path into an executable.
30325hardcode_action=$hardcode_action_CXX
30326
30327# The directories searched by this compiler when creating a shared library.
30328compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
30329
30330# Dependencies to place before and after the objects being linked to
30331# create a shared library.
30332predep_objects=$lt_predep_objects_CXX
30333postdep_objects=$lt_postdep_objects_CXX
30334predeps=$lt_predeps_CXX
30335postdeps=$lt_postdeps_CXX
30336
30337# The library search path used internally by the compiler when linking
30338# a shared library.
30339compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30340
30341# ### END LIBTOOL TAG CONFIG: CXX
30342_LT_EOF
30343
30344 ;;
30345
30346  esac
30347done # for ac_tag
30348
30349
30350{ (exit 0); exit 0; }
30351_ACEOF
30352chmod +x $CONFIG_STATUS
30353ac_clean_files=$ac_clean_files_save
30354
30355test $ac_write_fail = 0 ||
30356  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
30357$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
30358   { (exit 1); exit 1; }; }
30359
30360
30361# configure is writing to config.log, and then calls config.status.
30362# config.status does its own redirection, appending to config.log.
30363# Unfortunately, on DOS this fails, as config.log is still kept open
30364# by configure, so config.status won't be able to write to it; its
30365# output is simply discarded.  So we exec the FD to /dev/null,
30366# effectively closing config.log, so it can be properly (re)opened and
30367# appended to by config.status.  When coming back to configure, we
30368# need to make the FD available again.
30369if test "$no_create" != yes; then
30370  ac_cs_success=:
30371  ac_config_status_args=
30372  test "$silent" = yes &&
30373    ac_config_status_args="$ac_config_status_args --quiet"
30374  exec 5>/dev/null
30375  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30376  exec 5>>config.log
30377  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30378  # would make configure fail if this is the last instruction.
30379  $ac_cs_success || { (exit 1); exit 1; }
30380fi
30381if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30382  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30383$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30384fi
30385
30386
30387# ==========================================================================
30388echo "
30389 ---{ $PACKAGE_NAME $VERSION }---
30390
30391    prefix:                                    ${prefix}
30392    sysconfdir:                                ${sysconfdir}
30393    localstatedir:                             ${localstatedir}
30394    avahi socket:                              ${avahi_socket}
30395    dbus-1 system.d dir:                       ${DBUS_SYS_DIR}
30396    dbus-1 version:                            ${DBUS_VERSION}
30397    dbus-1 system socket:                      ${DBUS_SYSTEM_BUS_DEFAULT_ADDRESS}
30398    C Compiler:                                ${CC}
30399    CFLAGS:                                    ${CFLAGS}
30400    Enable GLIB:                               ${HAVE_GLIB}
30401    Enable GLIB GObject:                       ${HAVE_GOBJECT}
30402    Enable GTK:                                ${HAVE_GTK}
30403    Enable D-Bus:                              ${HAVE_DBUS}
30404    With XML:                                  ${with_xml}
30405    Enable GDBM:                               ${HAVE_GDBM}
30406    Enable DBM:                                ${HAVE_DBM}
30407    Enable libdaemon:                          ${HAVE_LIBDAEMON}
30408    Enable Python:                             ${HAVE_PYTHON}
30409    Enable pygtk:                              ${HAVE_PYGTK}
30410    Enable python-dbus:                        ${HAVE_PYTHON_DBUS}
30411    Enable QT3:                                ${HAVE_QT3}
30412    Enable QT4:                                ${HAVE_QT4}
30413    Enable Mono:                               ${HAVE_MONO}
30414    Enable Monodoc:                            ${HAVE_MONODOC}
30415    Distribution/OS:                           ${with_distro}
30416    User for avahi-daemon:                     ${AVAHI_USER}
30417    Group for avahi-daemon:                    ${AVAHI_GROUP}
30418    Priviliged access group for Avahi clients: ${AVAHI_PRIV_ACCESS_GROUP}
30419    User for avahi-autoipd:                    ${AVAHI_AUTOIPD_USER}
30420    Group for avahi-autoipd:                   ${AVAHI_AUTOIPD_GROUP}
30421    Enable chroot():                           ${enable_chroot}
30422    Enable Linux inotify:                      ${have_inotify}
30423    Enable stack-smashing protection:          ${enable_ssp}
30424"
30425
30426BUILD_DAEMON="no   (You need libdaemon and expat/bsdxml!)"
30427
30428if test "x$HAVE_XML" = "xyes" -a "x$HAVE_LIBDAEMON" = "xyes" ; then
30429    BUILD_DAEMON=yes
30430fi
30431
30432BUILD_PYTHON="no   (You need python, pygtk and python-dbus!)"
30433
30434if test "x$BUILD_DAEMON" = "xyes" -a "x$HAVE_DBUS" = "xyes" -a "x$HAVE_PYTHON" = "xyes" -a "x$HAVE_PYTHON_DBUS" = "xyes" -a "x$HAVE_PYGTK" = "xyes" ; then
30435    BUILD_PYTHON=yes
30436fi
30437
30438BUILD_CLIENT="no   (You need avahi-daemon and D-Bus!)"
30439
30440if test "x$BUILD_DAEMON" = "xyes" -a "x$HAVE_DBUS" = "xyes" ; then
30441    BUILD_CLIENT=yes
30442fi
30443
30444if test "x$ENABLE_COMPAT_LIBDNS_SD" = "xyes" -a "x$BUILD_CLIENT" != "xyes" ; then
30445   ENABLE_COMPAT_LIBDNS_SD="no   (You need libavahi-client!)"
30446fi
30447if test "x$ENABLE_COMPAT_HOWL" = "xyes" -a "x$BUILD_CLIENT" != "xyes" ; then
30448   ENABLE_COMPAT_HOWL="no   (You need libavahi-client!)"
30449fi
30450if test "x$ENABLE_AUTOIPD" = "xyes" -a "x$HAVE_LIBDAEMON" != "xyes" ; then
30451   ENABLE_AUTOIPD="no   (You need libdaemon!)"
30452fi
30453
30454BUILD_UI="no"
30455if test "x$HAVE_GTK" = "xyes" -a "x$BUILD_CLIENT" = "xyes" ; then
30456   BUILD_UI="yes"
30457fi
30458
30459BUILD_GOBJECT="no"
30460if test "x$BUILD_CLIENT" = "xyes" -a "x$HAVE_GOBJECT" = "xyes" ; then
30461   BUILD_GOBJECT="yes"
30462fi
30463
30464echo "\
30465    Building libavahi-core              yes
30466    Building avahi-daemon:              ${BUILD_DAEMON}
30467    Building avahi-dnsconfd:            ${BUILD_DAEMON}
30468    Building libavahi-client:           ${BUILD_CLIENT}
30469    Building avahi-utils:               ${BUILD_CLIENT}
30470    Building avahi-python:              ${BUILD_PYTHON}
30471    Building libavahi-glib:             ${HAVE_GLIB}
30472    Building libavahi-gobject:          ${BUILD_GOBJECT}
30473    Building avahi-discover-standalone: ${HAVE_GTK}
30474    Building libavahi-qt3:              ${HAVE_QT3}
30475    Building libavahi-qt4:              ${HAVE_QT4}
30476    Building avahi-sharp:               ${HAVE_MONO}
30477    Building avahi-compat-libdns_sd:    ${ENABLE_COMPAT_LIBDNS_SD}
30478    Building avahi-compat-howl:         ${ENABLE_COMPAT_HOWL}
30479    Building tests:                     ${ENABLE_TESTS}
30480    Building avahi-core documentation:  ${ENABLE_CORE_DOCS}
30481    Building avahi-autoipd:             ${ENABLE_AUTOIPD}
30482    Building libavahi-ui:               ${BUILD_UI}
30483"
30484