1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for libdaemon 0.14.
4#
5# Report bugs to <mzqnrzba (at) 0pointer (dot) de>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and mzqnrzba (at)
234$0: 0pointer (dot) de about your system, including any
235$0: error possibly output before this message. Then install
236$0: a modern shell, or manually run the script under such a
237$0: shell if you do have one."
238  fi
239  exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257  { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266  return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274  set +e
275  as_fn_set_status $1
276  exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285  case $as_dir in #(
286  -*) as_dir=./$as_dir;;
287  esac
288  test -d "$as_dir" || eval $as_mkdir_p || {
289    as_dirs=
290    while :; do
291      case $as_dir in #(
292      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293      *) as_qdir=$as_dir;;
294      esac
295      as_dirs="'$as_qdir' $as_dirs"
296      as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298	 X"$as_dir" : 'X\(//\)[^/]' \| \
299	 X"$as_dir" : 'X\(//\)$' \| \
300	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303	    s//\1/
304	    q
305	  }
306	  /^X\(\/\/\)[^/].*/{
307	    s//\1/
308	    q
309	  }
310	  /^X\(\/\/\)$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\).*/{
315	    s//\1/
316	    q
317	  }
318	  s/.*/./; q'`
319      test -d "$as_dir" && break
320    done
321    test -z "$as_dirs" || eval "mkdir $as_dirs"
322  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333  eval 'as_fn_append ()
334  {
335    eval $1+=\$2
336  }'
337else
338  as_fn_append ()
339  {
340    eval $1=\$$1\$2
341  }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350  eval 'as_fn_arith ()
351  {
352    as_val=$(( $* ))
353  }'
354else
355  as_fn_arith ()
356  {
357    as_val=`expr "$@" || test $? -eq 1`
358  }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369  as_status=$?; test $as_status -eq 0 && as_status=1
370  if test "$3"; then
371    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373  fi
374  $as_echo "$as_me: error: $1" >&2
375  as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380  as_expr=expr
381else
382  as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386  as_basename=basename
387else
388  as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392  as_dirname=dirname
393else
394  as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399	 X"$0" : 'X\(//\)$' \| \
400	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402    sed '/^.*\/\([^/][^/]*\)\/*$/{
403	    s//\1/
404	    q
405	  }
406	  /^X\/\(\/\/\)$/{
407	    s//\1/
408	    q
409	  }
410	  /^X\/\(\/\).*/{
411	    s//\1/
412	    q
413	  }
414	  s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429  sed -n '
430    p
431    /[$]LINENO/=
432  ' <$as_myself |
433    sed '
434      s/[$]LINENO.*/&-/
435      t lineno
436      b
437      :lineno
438      N
439      :loop
440      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441      t loop
442      s/-\n.*//
443    ' >$as_me.lineno &&
444  chmod +x "$as_me.lineno" ||
445    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447  # Don't try to exec as it changes $[0], causing all sort of problems
448  # (the dirname of $[0] is not the place where we might find the
449  # original and so on.  Autoconf is especially sensitive to this).
450  . "./$as_me.lineno"
451  # Exit status is that of the last command.
452  exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458  case `echo 'xy\c'` in
459  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
460  xy)  ECHO_C='\c';;
461  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462       ECHO_T='	';;
463  esac;;
464*)
465  ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470  rm -f conf$$.dir/conf$$.file
471else
472  rm -f conf$$.dir
473  mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476  if ln -s conf$$.file conf$$ 2>/dev/null; then
477    as_ln_s='ln -s'
478    # ... but there are two gotchas:
479    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481    # In both cases, we have to default to `cp -p'.
482    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483      as_ln_s='cp -p'
484  elif ln conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s=ln
486  else
487    as_ln_s='cp -p'
488  fi
489else
490  as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496  as_mkdir_p='mkdir -p "$as_dir"'
497else
498  test -d ./-p && rmdir ./-p
499  as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503  as_test_x='test -x'
504else
505  if ls -dL / >/dev/null 2>&1; then
506    as_ls_L_option=L
507  else
508    as_ls_L_option=
509  fi
510  as_test_x='
511    eval sh -c '\''
512      if test -d "$1"; then
513	test -d "$1/.";
514      else
515	case $1 in #(
516	-*)set "./$1";;
517	esac;
518	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519	???[sx]*):;;*)false;;esac;fi
520    '\'' sh
521  '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$lt_ECHO in
537X*--fallback-echo)
538  # Remove one level of quotation (which was required for Make).
539  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540  ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545  # Discard the --no-reexec flag, and continue.
546  shift
547elif test "X$1" = X--fallback-echo; then
548  # Avoid inline document here, it may be left over
549  :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551  # Yippee, $ECHO works!
552  :
553else
554  # Restart under the correct shell.
555  exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559  # used as fallback echo
560  shift
561  cat <<_LT_EOF
562$*
563_LT_EOF
564  exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572  if test "X${echo_test_string+set}" != Xset; then
573    # find a string as large as possible, as long as the shell can cope with it
574    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578      then
579        break
580      fi
581    done
582  fi
583
584  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586     test "X$echo_testing_string" = "X$echo_test_string"; then
587    :
588  else
589    # The Solaris, AIX, and Digital Unix default echo programs unquote
590    # backslashes.  This makes it impossible to quote backslashes using
591    #   echo "$something" | sed 's/\\/\\\\/g'
592    #
593    # So, first we look for a working echo in the user's PATH.
594
595    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596    for dir in $PATH /usr/ucb; do
597      IFS="$lt_save_ifs"
598      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601         test "X$echo_testing_string" = "X$echo_test_string"; then
602        ECHO="$dir/echo"
603        break
604      fi
605    done
606    IFS="$lt_save_ifs"
607
608    if test "X$ECHO" = Xecho; then
609      # We didn't find a better echo, so look for alternatives.
610      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612         test "X$echo_testing_string" = "X$echo_test_string"; then
613        # This shell has a builtin print -r that does the trick.
614        ECHO='print -r'
615      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616	   test "X$CONFIG_SHELL" != X/bin/ksh; then
617        # If we have ksh, try running configure again with it.
618        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619        export ORIGINAL_CONFIG_SHELL
620        CONFIG_SHELL=/bin/ksh
621        export CONFIG_SHELL
622        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623      else
624        # Try using printf.
625        ECHO='printf %s\n'
626        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628	   test "X$echo_testing_string" = "X$echo_test_string"; then
629	  # Cool, printf works
630	  :
631        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632	     test "X$echo_testing_string" = 'X\t' &&
633	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634	     test "X$echo_testing_string" = "X$echo_test_string"; then
635	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636	  export CONFIG_SHELL
637	  SHELL="$CONFIG_SHELL"
638	  export SHELL
639	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
640        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641	     test "X$echo_testing_string" = 'X\t' &&
642	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643	     test "X$echo_testing_string" = "X$echo_test_string"; then
644	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
645        else
646	  # maybe with a smaller string...
647	  prev=:
648
649	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651	    then
652	      break
653	    fi
654	    prev="$cmd"
655	  done
656
657	  if test "$prev" != 'sed 50q "$0"'; then
658	    echo_test_string=`eval $prev`
659	    export echo_test_string
660	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661	  else
662	    # Oops.  We lost completely, so just stick with echo.
663	    ECHO=echo
664	  fi
665        fi
666      fi
667    fi
668  fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
681test -n "$DJDIR" || exec 7<&0 </dev/null
682exec 6>&1
683
684# Name of the host.
685# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686# so uname gets run too.
687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689#
690# Initializations.
691#
692ac_default_prefix=/usr/local
693ac_clean_files=
694ac_config_libobj_dir=.
695LIBOBJS=
696cross_compiling=no
697subdirs=
698MFLAGS=
699MAKEFLAGS=
700
701# Identity of this package.
702PACKAGE_NAME='libdaemon'
703PACKAGE_TARNAME='libdaemon'
704PACKAGE_VERSION='0.14'
705PACKAGE_STRING='libdaemon 0.14'
706PACKAGE_BUGREPORT='mzqnrzba (at) 0pointer (dot) de'
707PACKAGE_URL=''
708
709ac_unique_file="libdaemon/dfork.c"
710# Factoring default headers for most tests.
711ac_includes_default="\
712#include <stdio.h>
713#ifdef HAVE_SYS_TYPES_H
714# include <sys/types.h>
715#endif
716#ifdef HAVE_SYS_STAT_H
717# include <sys/stat.h>
718#endif
719#ifdef STDC_HEADERS
720# include <stdlib.h>
721# include <stddef.h>
722#else
723# ifdef HAVE_STDLIB_H
724#  include <stdlib.h>
725# endif
726#endif
727#ifdef HAVE_STRING_H
728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729#  include <memory.h>
730# endif
731# include <string.h>
732#endif
733#ifdef HAVE_STRINGS_H
734# include <strings.h>
735#endif
736#ifdef HAVE_INTTYPES_H
737# include <inttypes.h>
738#endif
739#ifdef HAVE_STDINT_H
740# include <stdint.h>
741#endif
742#ifdef HAVE_UNISTD_H
743# include <unistd.h>
744#endif"
745
746ac_subst_vars='am__EXEEXT_FALSE
747am__EXEEXT_TRUE
748LTLIBOBJS
749LIBOBJS
750EXAMPLES_FALSE
751EXAMPLES_TRUE
752USE_LYNX_FALSE
753USE_LYNX_TRUE
754have_lynx
755LDFLAGS_NOUNDEFINED
756OTOOL64
757OTOOL
758LIPO
759NMEDIT
760DSYMUTIL
761lt_ECHO
762RANLIB
763AR
764OBJDUMP
765NM
766ac_ct_DUMPBIN
767DUMPBIN
768LD
769FGREP
770SED
771host_os
772host_vendor
773host_cpu
774host
775build_os
776build_vendor
777build_cpu
778build
779LIBTOOL
780LN_S
781EGREP
782GREP
783CPP
784am__fastdepCC_FALSE
785am__fastdepCC_TRUE
786CCDEPMODE
787AMDEPBACKSLASH
788AMDEP_FALSE
789AMDEP_TRUE
790am__quote
791am__include
792DEPDIR
793OBJEXT
794EXEEXT
795ac_ct_CC
796CPPFLAGS
797LDFLAGS
798CFLAGS
799CC
800AM_BACKSLASH
801AM_DEFAULT_VERBOSITY
802LIBDAEMON_VERSION_INFO
803am__untar
804am__tar
805AMTAR
806am__leading_dot
807SET_MAKE
808AWK
809mkdir_p
810MKDIR_P
811INSTALL_STRIP_PROGRAM
812STRIP
813install_sh
814MAKEINFO
815AUTOHEADER
816AUTOMAKE
817AUTOCONF
818ACLOCAL
819VERSION
820PACKAGE
821CYGPATH_W
822am__isrc
823INSTALL_DATA
824INSTALL_SCRIPT
825INSTALL_PROGRAM
826target_alias
827host_alias
828build_alias
829LIBS
830ECHO_T
831ECHO_N
832ECHO_C
833DEFS
834mandir
835localedir
836libdir
837psdir
838pdfdir
839dvidir
840htmldir
841infodir
842docdir
843oldincludedir
844includedir
845localstatedir
846sharedstatedir
847sysconfdir
848datadir
849datarootdir
850libexecdir
851sbindir
852bindir
853program_transform_name
854prefix
855exec_prefix
856PACKAGE_URL
857PACKAGE_BUGREPORT
858PACKAGE_STRING
859PACKAGE_VERSION
860PACKAGE_TARNAME
861PACKAGE_NAME
862PATH_SEPARATOR
863SHELL'
864ac_subst_files=''
865ac_user_opts='
866enable_option_checking
867enable_silent_rules
868enable_dependency_tracking
869enable_shared
870enable_static
871with_pic
872enable_fast_install
873with_gnu_ld
874enable_libtool_lock
875enable_assert
876enable_largefile
877enable_lynx
878enable_examples
879'
880      ac_precious_vars='build_alias
881host_alias
882target_alias
883CC
884CFLAGS
885LDFLAGS
886LIBS
887CPPFLAGS
888CPP'
889
890
891# Initialize some variables set by options.
892ac_init_help=
893ac_init_version=false
894ac_unrecognized_opts=
895ac_unrecognized_sep=
896# The variables have the same names as the options, with
897# dashes changed to underlines.
898cache_file=/dev/null
899exec_prefix=NONE
900no_create=
901no_recursion=
902prefix=NONE
903program_prefix=NONE
904program_suffix=NONE
905program_transform_name=s,x,x,
906silent=
907site=
908srcdir=
909verbose=
910x_includes=NONE
911x_libraries=NONE
912
913# Installation directory options.
914# These are left unexpanded so users can "make install exec_prefix=/foo"
915# and all the variables that are supposed to be based on exec_prefix
916# by default will actually change.
917# Use braces instead of parens because sh, perl, etc. also accept them.
918# (The list follows the same order as the GNU Coding Standards.)
919bindir='${exec_prefix}/bin'
920sbindir='${exec_prefix}/sbin'
921libexecdir='${exec_prefix}/libexec'
922datarootdir='${prefix}/share'
923datadir='${datarootdir}'
924sysconfdir='${prefix}/etc'
925sharedstatedir='${prefix}/com'
926localstatedir='${prefix}/var'
927includedir='${prefix}/include'
928oldincludedir='/usr/include'
929docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
930infodir='${datarootdir}/info'
931htmldir='${docdir}'
932dvidir='${docdir}'
933pdfdir='${docdir}'
934psdir='${docdir}'
935libdir='${exec_prefix}/lib'
936localedir='${datarootdir}/locale'
937mandir='${datarootdir}/man'
938
939ac_prev=
940ac_dashdash=
941for ac_option
942do
943  # If the previous option needs an argument, assign it.
944  if test -n "$ac_prev"; then
945    eval $ac_prev=\$ac_option
946    ac_prev=
947    continue
948  fi
949
950  case $ac_option in
951  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952  *)	ac_optarg=yes ;;
953  esac
954
955  # Accept the important Cygnus configure options, so we can diagnose typos.
956
957  case $ac_dashdash$ac_option in
958  --)
959    ac_dashdash=yes ;;
960
961  -bindir | --bindir | --bindi | --bind | --bin | --bi)
962    ac_prev=bindir ;;
963  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964    bindir=$ac_optarg ;;
965
966  -build | --build | --buil | --bui | --bu)
967    ac_prev=build_alias ;;
968  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969    build_alias=$ac_optarg ;;
970
971  -cache-file | --cache-file | --cache-fil | --cache-fi \
972  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973    ac_prev=cache_file ;;
974  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976    cache_file=$ac_optarg ;;
977
978  --config-cache | -C)
979    cache_file=config.cache ;;
980
981  -datadir | --datadir | --datadi | --datad)
982    ac_prev=datadir ;;
983  -datadir=* | --datadir=* | --datadi=* | --datad=*)
984    datadir=$ac_optarg ;;
985
986  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987  | --dataroo | --dataro | --datar)
988    ac_prev=datarootdir ;;
989  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991    datarootdir=$ac_optarg ;;
992
993  -disable-* | --disable-*)
994    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995    # Reject names that are not valid shell variable names.
996    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997      as_fn_error "invalid feature name: $ac_useropt"
998    ac_useropt_orig=$ac_useropt
999    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000    case $ac_user_opts in
1001      *"
1002"enable_$ac_useropt"
1003"*) ;;
1004      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1005	 ac_unrecognized_sep=', ';;
1006    esac
1007    eval enable_$ac_useropt=no ;;
1008
1009  -docdir | --docdir | --docdi | --doc | --do)
1010    ac_prev=docdir ;;
1011  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012    docdir=$ac_optarg ;;
1013
1014  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015    ac_prev=dvidir ;;
1016  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017    dvidir=$ac_optarg ;;
1018
1019  -enable-* | --enable-*)
1020    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021    # Reject names that are not valid shell variable names.
1022    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023      as_fn_error "invalid feature name: $ac_useropt"
1024    ac_useropt_orig=$ac_useropt
1025    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026    case $ac_user_opts in
1027      *"
1028"enable_$ac_useropt"
1029"*) ;;
1030      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1031	 ac_unrecognized_sep=', ';;
1032    esac
1033    eval enable_$ac_useropt=\$ac_optarg ;;
1034
1035  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037  | --exec | --exe | --ex)
1038    ac_prev=exec_prefix ;;
1039  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041  | --exec=* | --exe=* | --ex=*)
1042    exec_prefix=$ac_optarg ;;
1043
1044  -gas | --gas | --ga | --g)
1045    # Obsolete; use --with-gas.
1046    with_gas=yes ;;
1047
1048  -help | --help | --hel | --he | -h)
1049    ac_init_help=long ;;
1050  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051    ac_init_help=recursive ;;
1052  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053    ac_init_help=short ;;
1054
1055  -host | --host | --hos | --ho)
1056    ac_prev=host_alias ;;
1057  -host=* | --host=* | --hos=* | --ho=*)
1058    host_alias=$ac_optarg ;;
1059
1060  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061    ac_prev=htmldir ;;
1062  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063  | --ht=*)
1064    htmldir=$ac_optarg ;;
1065
1066  -includedir | --includedir | --includedi | --included | --include \
1067  | --includ | --inclu | --incl | --inc)
1068    ac_prev=includedir ;;
1069  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070  | --includ=* | --inclu=* | --incl=* | --inc=*)
1071    includedir=$ac_optarg ;;
1072
1073  -infodir | --infodir | --infodi | --infod | --info | --inf)
1074    ac_prev=infodir ;;
1075  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076    infodir=$ac_optarg ;;
1077
1078  -libdir | --libdir | --libdi | --libd)
1079    ac_prev=libdir ;;
1080  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081    libdir=$ac_optarg ;;
1082
1083  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084  | --libexe | --libex | --libe)
1085    ac_prev=libexecdir ;;
1086  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087  | --libexe=* | --libex=* | --libe=*)
1088    libexecdir=$ac_optarg ;;
1089
1090  -localedir | --localedir | --localedi | --localed | --locale)
1091    ac_prev=localedir ;;
1092  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093    localedir=$ac_optarg ;;
1094
1095  -localstatedir | --localstatedir | --localstatedi | --localstated \
1096  | --localstate | --localstat | --localsta | --localst | --locals)
1097    ac_prev=localstatedir ;;
1098  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100    localstatedir=$ac_optarg ;;
1101
1102  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103    ac_prev=mandir ;;
1104  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105    mandir=$ac_optarg ;;
1106
1107  -nfp | --nfp | --nf)
1108    # Obsolete; use --without-fp.
1109    with_fp=no ;;
1110
1111  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112  | --no-cr | --no-c | -n)
1113    no_create=yes ;;
1114
1115  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117    no_recursion=yes ;;
1118
1119  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121  | --oldin | --oldi | --old | --ol | --o)
1122    ac_prev=oldincludedir ;;
1123  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126    oldincludedir=$ac_optarg ;;
1127
1128  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129    ac_prev=prefix ;;
1130  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131    prefix=$ac_optarg ;;
1132
1133  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134  | --program-pre | --program-pr | --program-p)
1135    ac_prev=program_prefix ;;
1136  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138    program_prefix=$ac_optarg ;;
1139
1140  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141  | --program-suf | --program-su | --program-s)
1142    ac_prev=program_suffix ;;
1143  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145    program_suffix=$ac_optarg ;;
1146
1147  -program-transform-name | --program-transform-name \
1148  | --program-transform-nam | --program-transform-na \
1149  | --program-transform-n | --program-transform- \
1150  | --program-transform | --program-transfor \
1151  | --program-transfo | --program-transf \
1152  | --program-trans | --program-tran \
1153  | --progr-tra | --program-tr | --program-t)
1154    ac_prev=program_transform_name ;;
1155  -program-transform-name=* | --program-transform-name=* \
1156  | --program-transform-nam=* | --program-transform-na=* \
1157  | --program-transform-n=* | --program-transform-=* \
1158  | --program-transform=* | --program-transfor=* \
1159  | --program-transfo=* | --program-transf=* \
1160  | --program-trans=* | --program-tran=* \
1161  | --progr-tra=* | --program-tr=* | --program-t=*)
1162    program_transform_name=$ac_optarg ;;
1163
1164  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165    ac_prev=pdfdir ;;
1166  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167    pdfdir=$ac_optarg ;;
1168
1169  -psdir | --psdir | --psdi | --psd | --ps)
1170    ac_prev=psdir ;;
1171  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172    psdir=$ac_optarg ;;
1173
1174  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175  | -silent | --silent | --silen | --sile | --sil)
1176    silent=yes ;;
1177
1178  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179    ac_prev=sbindir ;;
1180  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181  | --sbi=* | --sb=*)
1182    sbindir=$ac_optarg ;;
1183
1184  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186  | --sharedst | --shareds | --shared | --share | --shar \
1187  | --sha | --sh)
1188    ac_prev=sharedstatedir ;;
1189  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192  | --sha=* | --sh=*)
1193    sharedstatedir=$ac_optarg ;;
1194
1195  -site | --site | --sit)
1196    ac_prev=site ;;
1197  -site=* | --site=* | --sit=*)
1198    site=$ac_optarg ;;
1199
1200  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201    ac_prev=srcdir ;;
1202  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203    srcdir=$ac_optarg ;;
1204
1205  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206  | --syscon | --sysco | --sysc | --sys | --sy)
1207    ac_prev=sysconfdir ;;
1208  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210    sysconfdir=$ac_optarg ;;
1211
1212  -target | --target | --targe | --targ | --tar | --ta | --t)
1213    ac_prev=target_alias ;;
1214  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215    target_alias=$ac_optarg ;;
1216
1217  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218    verbose=yes ;;
1219
1220  -version | --version | --versio | --versi | --vers | -V)
1221    ac_init_version=: ;;
1222
1223  -with-* | --with-*)
1224    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225    # Reject names that are not valid shell variable names.
1226    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227      as_fn_error "invalid package name: $ac_useropt"
1228    ac_useropt_orig=$ac_useropt
1229    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230    case $ac_user_opts in
1231      *"
1232"with_$ac_useropt"
1233"*) ;;
1234      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235	 ac_unrecognized_sep=', ';;
1236    esac
1237    eval with_$ac_useropt=\$ac_optarg ;;
1238
1239  -without-* | --without-*)
1240    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241    # Reject names that are not valid shell variable names.
1242    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243      as_fn_error "invalid package name: $ac_useropt"
1244    ac_useropt_orig=$ac_useropt
1245    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246    case $ac_user_opts in
1247      *"
1248"with_$ac_useropt"
1249"*) ;;
1250      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1251	 ac_unrecognized_sep=', ';;
1252    esac
1253    eval with_$ac_useropt=no ;;
1254
1255  --x)
1256    # Obsolete; use --with-x.
1257    with_x=yes ;;
1258
1259  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260  | --x-incl | --x-inc | --x-in | --x-i)
1261    ac_prev=x_includes ;;
1262  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264    x_includes=$ac_optarg ;;
1265
1266  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268    ac_prev=x_libraries ;;
1269  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271    x_libraries=$ac_optarg ;;
1272
1273  -*) as_fn_error "unrecognized option: \`$ac_option'
1274Try \`$0 --help' for more information."
1275    ;;
1276
1277  *=*)
1278    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279    # Reject names that are not valid shell variable names.
1280    case $ac_envvar in #(
1281      '' | [0-9]* | *[!_$as_cr_alnum]* )
1282      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1283    esac
1284    eval $ac_envvar=\$ac_optarg
1285    export $ac_envvar ;;
1286
1287  *)
1288    # FIXME: should be removed in autoconf 3.0.
1289    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1293    ;;
1294
1295  esac
1296done
1297
1298if test -n "$ac_prev"; then
1299  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300  as_fn_error "missing argument to $ac_option"
1301fi
1302
1303if test -n "$ac_unrecognized_opts"; then
1304  case $enable_option_checking in
1305    no) ;;
1306    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1307    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1308  esac
1309fi
1310
1311# Check all directory arguments for consistency.
1312for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313		datadir sysconfdir sharedstatedir localstatedir includedir \
1314		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315		libdir localedir mandir
1316do
1317  eval ac_val=\$$ac_var
1318  # Remove trailing slashes.
1319  case $ac_val in
1320    */ )
1321      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1322      eval $ac_var=\$ac_val;;
1323  esac
1324  # Be sure to have absolute directory names.
1325  case $ac_val in
1326    [\\/$]* | ?:[\\/]* )  continue;;
1327    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1328  esac
1329  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1330done
1331
1332# There might be people who depend on the old broken behavior: `$host'
1333# used to hold the argument of --host etc.
1334# FIXME: To remove some day.
1335build=$build_alias
1336host=$host_alias
1337target=$target_alias
1338
1339# FIXME: To remove some day.
1340if test "x$host_alias" != x; then
1341  if test "x$build_alias" = x; then
1342    cross_compiling=maybe
1343    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1344    If a cross compiler is detected then cross compile mode will be used." >&2
1345  elif test "x$build_alias" != "x$host_alias"; then
1346    cross_compiling=yes
1347  fi
1348fi
1349
1350ac_tool_prefix=
1351test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352
1353test "$silent" = yes && exec 6>/dev/null
1354
1355
1356ac_pwd=`pwd` && test -n "$ac_pwd" &&
1357ac_ls_di=`ls -di .` &&
1358ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1359  as_fn_error "working directory cannot be determined"
1360test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361  as_fn_error "pwd does not report name of working directory"
1362
1363
1364# Find the source files, if location was not specified.
1365if test -z "$srcdir"; then
1366  ac_srcdir_defaulted=yes
1367  # Try the directory containing this script, then the parent directory.
1368  ac_confdir=`$as_dirname -- "$as_myself" ||
1369$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1370	 X"$as_myself" : 'X\(//\)[^/]' \| \
1371	 X"$as_myself" : 'X\(//\)$' \| \
1372	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1373$as_echo X"$as_myself" |
1374    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375	    s//\1/
1376	    q
1377	  }
1378	  /^X\(\/\/\)[^/].*/{
1379	    s//\1/
1380	    q
1381	  }
1382	  /^X\(\/\/\)$/{
1383	    s//\1/
1384	    q
1385	  }
1386	  /^X\(\/\).*/{
1387	    s//\1/
1388	    q
1389	  }
1390	  s/.*/./; q'`
1391  srcdir=$ac_confdir
1392  if test ! -r "$srcdir/$ac_unique_file"; then
1393    srcdir=..
1394  fi
1395else
1396  ac_srcdir_defaulted=no
1397fi
1398if test ! -r "$srcdir/$ac_unique_file"; then
1399  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1400  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1401fi
1402ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1403ac_abs_confdir=`(
1404	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1405	pwd)`
1406# When building in place, set srcdir=.
1407if test "$ac_abs_confdir" = "$ac_pwd"; then
1408  srcdir=.
1409fi
1410# Remove unnecessary trailing slashes from srcdir.
1411# Double slashes in file names in object file debugging info
1412# mess up M-x gdb in Emacs.
1413case $srcdir in
1414*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415esac
1416for ac_var in $ac_precious_vars; do
1417  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1418  eval ac_env_${ac_var}_value=\$${ac_var}
1419  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1420  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1421done
1422
1423#
1424# Report the --help message.
1425#
1426if test "$ac_init_help" = "long"; then
1427  # Omit some internal or obsolete options to make the list less imposing.
1428  # This message is too long to be a string in the A/UX 3.1 sh.
1429  cat <<_ACEOF
1430\`configure' configures libdaemon 0.14 to adapt to many kinds of systems.
1431
1432Usage: $0 [OPTION]... [VAR=VALUE]...
1433
1434To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435VAR=VALUE.  See below for descriptions of some of the useful variables.
1436
1437Defaults for the options are specified in brackets.
1438
1439Configuration:
1440  -h, --help              display this help and exit
1441      --help=short        display options specific to this package
1442      --help=recursive    display the short help of all the included packages
1443  -V, --version           display version information and exit
1444  -q, --quiet, --silent   do not print \`checking...' messages
1445      --cache-file=FILE   cache test results in FILE [disabled]
1446  -C, --config-cache      alias for \`--cache-file=config.cache'
1447  -n, --no-create         do not create output files
1448      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1449
1450Installation directories:
1451  --prefix=PREFIX         install architecture-independent files in PREFIX
1452                          [$ac_default_prefix]
1453  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1454                          [PREFIX]
1455
1456By default, \`make install' will install all the files in
1457\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1458an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459for instance \`--prefix=\$HOME'.
1460
1461For better control, use the options below.
1462
1463Fine tuning of the installation directories:
1464  --bindir=DIR            user executables [EPREFIX/bin]
1465  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1466  --libexecdir=DIR        program executables [EPREFIX/libexec]
1467  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1468  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1469  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1470  --libdir=DIR            object code libraries [EPREFIX/lib]
1471  --includedir=DIR        C header files [PREFIX/include]
1472  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1473  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1474  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1475  --infodir=DIR           info documentation [DATAROOTDIR/info]
1476  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1477  --mandir=DIR            man documentation [DATAROOTDIR/man]
1478  --docdir=DIR            documentation root [DATAROOTDIR/doc/libdaemon]
1479  --htmldir=DIR           html documentation [DOCDIR]
1480  --dvidir=DIR            dvi documentation [DOCDIR]
1481  --pdfdir=DIR            pdf documentation [DOCDIR]
1482  --psdir=DIR             ps documentation [DOCDIR]
1483_ACEOF
1484
1485  cat <<\_ACEOF
1486
1487Program names:
1488  --program-prefix=PREFIX            prepend PREFIX to installed program names
1489  --program-suffix=SUFFIX            append SUFFIX to installed program names
1490  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1491
1492System types:
1493  --build=BUILD     configure for building on BUILD [guessed]
1494  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1495_ACEOF
1496fi
1497
1498if test -n "$ac_init_help"; then
1499  case $ac_init_help in
1500     short | recursive ) echo "Configuration of libdaemon 0.14:";;
1501   esac
1502  cat <<\_ACEOF
1503
1504Optional Features:
1505  --disable-option-checking  ignore unrecognized --enable/--with options
1506  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1507  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1508  --enable-silent-rules          less verbose build output (undo: `make V=1')
1509  --disable-silent-rules         verbose build output (undo: `make V=0')
1510  --disable-dependency-tracking  speeds up one-time build
1511  --enable-dependency-tracking   do not reject slow dependency extractors
1512  --enable-shared[=PKGS]  build shared libraries [default=yes]
1513  --enable-static[=PKGS]  build static libraries [default=yes]
1514  --enable-fast-install[=PKGS]
1515                          optimize for fast installation [default=yes]
1516  --disable-libtool-lock  avoid locking (might break parallel builds)
1517  --disable-assert        turn off assertions
1518  --disable-largefile     omit support for large files
1519  --disable-lynx          Turn off lynx usage for documentation generation
1520  --disable-examples      Don't build examples during make
1521
1522Optional Packages:
1523  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1524  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1525  --with-pic              try to use only PIC/non-PIC objects [default=use
1526                          both]
1527  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1528
1529Some influential environment variables:
1530  CC          C compiler command
1531  CFLAGS      C compiler flags
1532  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1533              nonstandard directory <lib dir>
1534  LIBS        libraries to pass to the linker, e.g. -l<library>
1535  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1536              you have headers in a nonstandard directory <include dir>
1537  CPP         C preprocessor
1538
1539Use these variables to override the choices made by `configure' or to help
1540it to find libraries and programs with nonstandard names/locations.
1541
1542Report bugs to <mzqnrzba (at) 0pointer (dot) de>.
1543_ACEOF
1544ac_status=$?
1545fi
1546
1547if test "$ac_init_help" = "recursive"; then
1548  # If there are subdirs, report their specific --help.
1549  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550    test -d "$ac_dir" ||
1551      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1552      continue
1553    ac_builddir=.
1554
1555case "$ac_dir" in
1556.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557*)
1558  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1559  # A ".." for each directory in $ac_dir_suffix.
1560  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1561  case $ac_top_builddir_sub in
1562  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564  esac ;;
1565esac
1566ac_abs_top_builddir=$ac_pwd
1567ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568# for backward compatibility:
1569ac_top_builddir=$ac_top_build_prefix
1570
1571case $srcdir in
1572  .)  # We are building in place.
1573    ac_srcdir=.
1574    ac_top_srcdir=$ac_top_builddir_sub
1575    ac_abs_top_srcdir=$ac_pwd ;;
1576  [\\/]* | ?:[\\/]* )  # Absolute name.
1577    ac_srcdir=$srcdir$ac_dir_suffix;
1578    ac_top_srcdir=$srcdir
1579    ac_abs_top_srcdir=$srcdir ;;
1580  *) # Relative name.
1581    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582    ac_top_srcdir=$ac_top_build_prefix$srcdir
1583    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584esac
1585ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586
1587    cd "$ac_dir" || { ac_status=$?; continue; }
1588    # Check for guested configure.
1589    if test -f "$ac_srcdir/configure.gnu"; then
1590      echo &&
1591      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592    elif test -f "$ac_srcdir/configure"; then
1593      echo &&
1594      $SHELL "$ac_srcdir/configure" --help=recursive
1595    else
1596      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597    fi || ac_status=$?
1598    cd "$ac_pwd" || { ac_status=$?; break; }
1599  done
1600fi
1601
1602test -n "$ac_init_help" && exit $ac_status
1603if $ac_init_version; then
1604  cat <<\_ACEOF
1605libdaemon configure 0.14
1606generated by GNU Autoconf 2.65
1607
1608Copyright (C) 2009 Free Software Foundation, Inc.
1609This configure script is free software; the Free Software Foundation
1610gives unlimited permission to copy, distribute and modify it.
1611_ACEOF
1612  exit
1613fi
1614
1615## ------------------------ ##
1616## Autoconf initialization. ##
1617## ------------------------ ##
1618
1619# ac_fn_c_try_compile LINENO
1620# --------------------------
1621# Try to compile conftest.$ac_ext, and return whether this succeeded.
1622ac_fn_c_try_compile ()
1623{
1624  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625  rm -f conftest.$ac_objext
1626  if { { ac_try="$ac_compile"
1627case "(($ac_try" in
1628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629  *) ac_try_echo=$ac_try;;
1630esac
1631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632$as_echo "$ac_try_echo"; } >&5
1633  (eval "$ac_compile") 2>conftest.err
1634  ac_status=$?
1635  if test -s conftest.err; then
1636    grep -v '^ *+' conftest.err >conftest.er1
1637    cat conftest.er1 >&5
1638    mv -f conftest.er1 conftest.err
1639  fi
1640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641  test $ac_status = 0; } && {
1642	 test -z "$ac_c_werror_flag" ||
1643	 test ! -s conftest.err
1644       } && test -s conftest.$ac_objext; then :
1645  ac_retval=0
1646else
1647  $as_echo "$as_me: failed program was:" >&5
1648sed 's/^/| /' conftest.$ac_ext >&5
1649
1650	ac_retval=1
1651fi
1652  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653  as_fn_set_status $ac_retval
1654
1655} # ac_fn_c_try_compile
1656
1657# ac_fn_c_try_cpp LINENO
1658# ----------------------
1659# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_c_try_cpp ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  if { { ac_try="$ac_cpp conftest.$ac_ext"
1664case "(($ac_try" in
1665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666  *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671  ac_status=$?
1672  if test -s conftest.err; then
1673    grep -v '^ *+' conftest.err >conftest.er1
1674    cat conftest.er1 >&5
1675    mv -f conftest.er1 conftest.err
1676  fi
1677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678  test $ac_status = 0; } >/dev/null && {
1679	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680	 test ! -s conftest.err
1681       }; then :
1682  ac_retval=0
1683else
1684  $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687    ac_retval=1
1688fi
1689  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690  as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_cpp
1693
1694# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1695# -------------------------------------------------------
1696# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1697# the include files in INCLUDES and setting the cache variable VAR
1698# accordingly.
1699ac_fn_c_check_header_mongrel ()
1700{
1701  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704$as_echo_n "checking for $2... " >&6; }
1705if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1706  $as_echo_n "(cached) " >&6
1707fi
1708eval ac_res=\$$3
1709	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710$as_echo "$ac_res" >&6; }
1711else
1712  # Is the header compilable?
1713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1714$as_echo_n "checking $2 usability... " >&6; }
1715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716/* end confdefs.h.  */
1717$4
1718#include <$2>
1719_ACEOF
1720if ac_fn_c_try_compile "$LINENO"; then :
1721  ac_header_compiler=yes
1722else
1723  ac_header_compiler=no
1724fi
1725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1727$as_echo "$ac_header_compiler" >&6; }
1728
1729# Is the header present?
1730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1731$as_echo_n "checking $2 presence... " >&6; }
1732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733/* end confdefs.h.  */
1734#include <$2>
1735_ACEOF
1736if ac_fn_c_try_cpp "$LINENO"; then :
1737  ac_header_preproc=yes
1738else
1739  ac_header_preproc=no
1740fi
1741rm -f conftest.err conftest.$ac_ext
1742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1743$as_echo "$ac_header_preproc" >&6; }
1744
1745# So?  What about this header?
1746case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1747  yes:no: )
1748    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1749$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1750    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1751$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1752    ;;
1753  no:yes:* )
1754    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1755$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1756    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1757$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1758    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1759$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1760    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1761$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1762    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1763$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1764( cat <<\_ASBOX
1765## ---------------------------------------------- ##
1766## Report this to mzqnrzba (at) 0pointer (dot) de ##
1767## ---------------------------------------------- ##
1768_ASBOX
1769     ) | sed "s/^/$as_me: WARNING:     /" >&2
1770    ;;
1771esac
1772  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773$as_echo_n "checking for $2... " >&6; }
1774if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1775  $as_echo_n "(cached) " >&6
1776else
1777  eval "$3=\$ac_header_compiler"
1778fi
1779eval ac_res=\$$3
1780	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781$as_echo "$ac_res" >&6; }
1782fi
1783  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784
1785} # ac_fn_c_check_header_mongrel
1786
1787# ac_fn_c_try_run LINENO
1788# ----------------------
1789# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1790# that executables *can* be run.
1791ac_fn_c_try_run ()
1792{
1793  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794  if { { ac_try="$ac_link"
1795case "(($ac_try" in
1796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797  *) ac_try_echo=$ac_try;;
1798esac
1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800$as_echo "$ac_try_echo"; } >&5
1801  (eval "$ac_link") 2>&5
1802  ac_status=$?
1803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1805  { { case "(($ac_try" in
1806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807  *) ac_try_echo=$ac_try;;
1808esac
1809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810$as_echo "$ac_try_echo"; } >&5
1811  (eval "$ac_try") 2>&5
1812  ac_status=$?
1813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814  test $ac_status = 0; }; }; then :
1815  ac_retval=0
1816else
1817  $as_echo "$as_me: program exited with status $ac_status" >&5
1818       $as_echo "$as_me: failed program was:" >&5
1819sed 's/^/| /' conftest.$ac_ext >&5
1820
1821       ac_retval=$ac_status
1822fi
1823  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825  as_fn_set_status $ac_retval
1826
1827} # ac_fn_c_try_run
1828
1829# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1830# -------------------------------------------------------
1831# Tests whether HEADER exists and can be compiled using the include files in
1832# INCLUDES, setting the cache variable VAR accordingly.
1833ac_fn_c_check_header_compile ()
1834{
1835  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837$as_echo_n "checking for $2... " >&6; }
1838if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839  $as_echo_n "(cached) " >&6
1840else
1841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842/* end confdefs.h.  */
1843$4
1844#include <$2>
1845_ACEOF
1846if ac_fn_c_try_compile "$LINENO"; then :
1847  eval "$3=yes"
1848else
1849  eval "$3=no"
1850fi
1851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852fi
1853eval ac_res=\$$3
1854	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855$as_echo "$ac_res" >&6; }
1856  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1857
1858} # ac_fn_c_check_header_compile
1859
1860# ac_fn_c_try_link LINENO
1861# -----------------------
1862# Try to link conftest.$ac_ext, and return whether this succeeded.
1863ac_fn_c_try_link ()
1864{
1865  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866  rm -f conftest.$ac_objext conftest$ac_exeext
1867  if { { ac_try="$ac_link"
1868case "(($ac_try" in
1869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870  *) ac_try_echo=$ac_try;;
1871esac
1872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873$as_echo "$ac_try_echo"; } >&5
1874  (eval "$ac_link") 2>conftest.err
1875  ac_status=$?
1876  if test -s conftest.err; then
1877    grep -v '^ *+' conftest.err >conftest.er1
1878    cat conftest.er1 >&5
1879    mv -f conftest.er1 conftest.err
1880  fi
1881  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882  test $ac_status = 0; } && {
1883	 test -z "$ac_c_werror_flag" ||
1884	 test ! -s conftest.err
1885       } && test -s conftest$ac_exeext && {
1886	 test "$cross_compiling" = yes ||
1887	 $as_test_x conftest$ac_exeext
1888       }; then :
1889  ac_retval=0
1890else
1891  $as_echo "$as_me: failed program was:" >&5
1892sed 's/^/| /' conftest.$ac_ext >&5
1893
1894	ac_retval=1
1895fi
1896  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1897  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1898  # interfere with the next link command; also delete a directory that is
1899  # left behind by Apple's compiler.  We do this before executing the actions.
1900  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902  as_fn_set_status $ac_retval
1903
1904} # ac_fn_c_try_link
1905
1906# ac_fn_c_check_func LINENO FUNC VAR
1907# ----------------------------------
1908# Tests whether FUNC exists, setting the cache variable VAR accordingly
1909ac_fn_c_check_func ()
1910{
1911  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913$as_echo_n "checking for $2... " >&6; }
1914if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915  $as_echo_n "(cached) " >&6
1916else
1917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918/* end confdefs.h.  */
1919/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1921#define $2 innocuous_$2
1922
1923/* System header to define __stub macros and hopefully few prototypes,
1924    which can conflict with char $2 (); below.
1925    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926    <limits.h> exists even on freestanding compilers.  */
1927
1928#ifdef __STDC__
1929# include <limits.h>
1930#else
1931# include <assert.h>
1932#endif
1933
1934#undef $2
1935
1936/* Override any GCC internal prototype to avoid an error.
1937   Use char because int might match the return type of a GCC
1938   builtin and then its argument prototype would still apply.  */
1939#ifdef __cplusplus
1940extern "C"
1941#endif
1942char $2 ();
1943/* The GNU C library defines this for functions which it implements
1944    to always fail with ENOSYS.  Some functions are actually named
1945    something starting with __ and the normal name is an alias.  */
1946#if defined __stub_$2 || defined __stub___$2
1947choke me
1948#endif
1949
1950int
1951main ()
1952{
1953return $2 ();
1954  ;
1955  return 0;
1956}
1957_ACEOF
1958if ac_fn_c_try_link "$LINENO"; then :
1959  eval "$3=yes"
1960else
1961  eval "$3=no"
1962fi
1963rm -f core conftest.err conftest.$ac_objext \
1964    conftest$ac_exeext conftest.$ac_ext
1965fi
1966eval ac_res=\$$3
1967	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968$as_echo "$ac_res" >&6; }
1969  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970
1971} # ac_fn_c_check_func
1972
1973# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1974# -------------------------------------------
1975# Tests whether TYPE exists after having included INCLUDES, setting cache
1976# variable VAR accordingly.
1977ac_fn_c_check_type ()
1978{
1979  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981$as_echo_n "checking for $2... " >&6; }
1982if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1983  $as_echo_n "(cached) " >&6
1984else
1985  eval "$3=no"
1986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987/* end confdefs.h.  */
1988$4
1989int
1990main ()
1991{
1992if (sizeof ($2))
1993	 return 0;
1994  ;
1995  return 0;
1996}
1997_ACEOF
1998if ac_fn_c_try_compile "$LINENO"; then :
1999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h.  */
2001$4
2002int
2003main ()
2004{
2005if (sizeof (($2)))
2006	    return 0;
2007  ;
2008  return 0;
2009}
2010_ACEOF
2011if ac_fn_c_try_compile "$LINENO"; then :
2012
2013else
2014  eval "$3=yes"
2015fi
2016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017fi
2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019fi
2020eval ac_res=\$$3
2021	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022$as_echo "$ac_res" >&6; }
2023  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2024
2025} # ac_fn_c_check_type
2026cat >config.log <<_ACEOF
2027This file contains any messages produced by compilers while
2028running configure, to aid debugging if configure makes a mistake.
2029
2030It was created by libdaemon $as_me 0.14, which was
2031generated by GNU Autoconf 2.65.  Invocation command line was
2032
2033  $ $0 $@
2034
2035_ACEOF
2036exec 5>>config.log
2037{
2038cat <<_ASUNAME
2039## --------- ##
2040## Platform. ##
2041## --------- ##
2042
2043hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2044uname -m = `(uname -m) 2>/dev/null || echo unknown`
2045uname -r = `(uname -r) 2>/dev/null || echo unknown`
2046uname -s = `(uname -s) 2>/dev/null || echo unknown`
2047uname -v = `(uname -v) 2>/dev/null || echo unknown`
2048
2049/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2050/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2051
2052/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2053/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2054/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2055/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2056/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2057/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2058/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2059
2060_ASUNAME
2061
2062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063for as_dir in $PATH
2064do
2065  IFS=$as_save_IFS
2066  test -z "$as_dir" && as_dir=.
2067    $as_echo "PATH: $as_dir"
2068  done
2069IFS=$as_save_IFS
2070
2071} >&5
2072
2073cat >&5 <<_ACEOF
2074
2075
2076## ----------- ##
2077## Core tests. ##
2078## ----------- ##
2079
2080_ACEOF
2081
2082
2083# Keep a trace of the command line.
2084# Strip out --no-create and --no-recursion so they do not pile up.
2085# Strip out --silent because we don't want to record it for future runs.
2086# Also quote any args containing shell meta-characters.
2087# Make two passes to allow for proper duplicate-argument suppression.
2088ac_configure_args=
2089ac_configure_args0=
2090ac_configure_args1=
2091ac_must_keep_next=false
2092for ac_pass in 1 2
2093do
2094  for ac_arg
2095  do
2096    case $ac_arg in
2097    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2098    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2099    | -silent | --silent | --silen | --sile | --sil)
2100      continue ;;
2101    *\'*)
2102      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2103    esac
2104    case $ac_pass in
2105    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2106    2)
2107      as_fn_append ac_configure_args1 " '$ac_arg'"
2108      if test $ac_must_keep_next = true; then
2109	ac_must_keep_next=false # Got value, back to normal.
2110      else
2111	case $ac_arg in
2112	  *=* | --config-cache | -C | -disable-* | --disable-* \
2113	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2114	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2115	  | -with-* | --with-* | -without-* | --without-* | --x)
2116	    case "$ac_configure_args0 " in
2117	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2118	    esac
2119	    ;;
2120	  -* ) ac_must_keep_next=true ;;
2121	esac
2122      fi
2123      as_fn_append ac_configure_args " '$ac_arg'"
2124      ;;
2125    esac
2126  done
2127done
2128{ ac_configure_args0=; unset ac_configure_args0;}
2129{ ac_configure_args1=; unset ac_configure_args1;}
2130
2131# When interrupted or exit'd, cleanup temporary files, and complete
2132# config.log.  We remove comments because anyway the quotes in there
2133# would cause problems or look ugly.
2134# WARNING: Use '\'' to represent an apostrophe within the trap.
2135# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2136trap 'exit_status=$?
2137  # Save into config.log some information that might help in debugging.
2138  {
2139    echo
2140
2141    cat <<\_ASBOX
2142## ---------------- ##
2143## Cache variables. ##
2144## ---------------- ##
2145_ASBOX
2146    echo
2147    # The following way of writing the cache mishandles newlines in values,
2148(
2149  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2150    eval ac_val=\$$ac_var
2151    case $ac_val in #(
2152    *${as_nl}*)
2153      case $ac_var in #(
2154      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2155$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2156      esac
2157      case $ac_var in #(
2158      _ | IFS | as_nl) ;; #(
2159      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2160      *) { eval $ac_var=; unset $ac_var;} ;;
2161      esac ;;
2162    esac
2163  done
2164  (set) 2>&1 |
2165    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2166    *${as_nl}ac_space=\ *)
2167      sed -n \
2168	"s/'\''/'\''\\\\'\'''\''/g;
2169	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2170      ;; #(
2171    *)
2172      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2173      ;;
2174    esac |
2175    sort
2176)
2177    echo
2178
2179    cat <<\_ASBOX
2180## ----------------- ##
2181## Output variables. ##
2182## ----------------- ##
2183_ASBOX
2184    echo
2185    for ac_var in $ac_subst_vars
2186    do
2187      eval ac_val=\$$ac_var
2188      case $ac_val in
2189      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2190      esac
2191      $as_echo "$ac_var='\''$ac_val'\''"
2192    done | sort
2193    echo
2194
2195    if test -n "$ac_subst_files"; then
2196      cat <<\_ASBOX
2197## ------------------- ##
2198## File substitutions. ##
2199## ------------------- ##
2200_ASBOX
2201      echo
2202      for ac_var in $ac_subst_files
2203      do
2204	eval ac_val=\$$ac_var
2205	case $ac_val in
2206	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2207	esac
2208	$as_echo "$ac_var='\''$ac_val'\''"
2209      done | sort
2210      echo
2211    fi
2212
2213    if test -s confdefs.h; then
2214      cat <<\_ASBOX
2215## ----------- ##
2216## confdefs.h. ##
2217## ----------- ##
2218_ASBOX
2219      echo
2220      cat confdefs.h
2221      echo
2222    fi
2223    test "$ac_signal" != 0 &&
2224      $as_echo "$as_me: caught signal $ac_signal"
2225    $as_echo "$as_me: exit $exit_status"
2226  } >&5
2227  rm -f core *.core core.conftest.* &&
2228    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2229    exit $exit_status
2230' 0
2231for ac_signal in 1 2 13 15; do
2232  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2233done
2234ac_signal=0
2235
2236# confdefs.h avoids OS command line length limits that DEFS can exceed.
2237rm -f -r conftest* confdefs.h
2238
2239$as_echo "/* confdefs.h */" > confdefs.h
2240
2241# Predefined preprocessor variables.
2242
2243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_NAME "$PACKAGE_NAME"
2245_ACEOF
2246
2247cat >>confdefs.h <<_ACEOF
2248#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2249_ACEOF
2250
2251cat >>confdefs.h <<_ACEOF
2252#define PACKAGE_VERSION "$PACKAGE_VERSION"
2253_ACEOF
2254
2255cat >>confdefs.h <<_ACEOF
2256#define PACKAGE_STRING "$PACKAGE_STRING"
2257_ACEOF
2258
2259cat >>confdefs.h <<_ACEOF
2260#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2261_ACEOF
2262
2263cat >>confdefs.h <<_ACEOF
2264#define PACKAGE_URL "$PACKAGE_URL"
2265_ACEOF
2266
2267
2268# Let the site file select an alternate cache file if it wants to.
2269# Prefer an explicitly selected file to automatically selected ones.
2270ac_site_file1=NONE
2271ac_site_file2=NONE
2272if test -n "$CONFIG_SITE"; then
2273  ac_site_file1=$CONFIG_SITE
2274elif test "x$prefix" != xNONE; then
2275  ac_site_file1=$prefix/share/config.site
2276  ac_site_file2=$prefix/etc/config.site
2277else
2278  ac_site_file1=$ac_default_prefix/share/config.site
2279  ac_site_file2=$ac_default_prefix/etc/config.site
2280fi
2281for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2282do
2283  test "x$ac_site_file" = xNONE && continue
2284  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2285    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2286$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2287    sed 's/^/| /' "$ac_site_file" >&5
2288    . "$ac_site_file"
2289  fi
2290done
2291
2292if test -r "$cache_file"; then
2293  # Some versions of bash will fail to source /dev/null (special files
2294  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2295  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2296    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2297$as_echo "$as_me: loading cache $cache_file" >&6;}
2298    case $cache_file in
2299      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2300      *)                      . "./$cache_file";;
2301    esac
2302  fi
2303else
2304  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2305$as_echo "$as_me: creating cache $cache_file" >&6;}
2306  >$cache_file
2307fi
2308
2309# Check that the precious variables saved in the cache have kept the same
2310# value.
2311ac_cache_corrupted=false
2312for ac_var in $ac_precious_vars; do
2313  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2314  eval ac_new_set=\$ac_env_${ac_var}_set
2315  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2316  eval ac_new_val=\$ac_env_${ac_var}_value
2317  case $ac_old_set,$ac_new_set in
2318    set,)
2319      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2320$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2321      ac_cache_corrupted=: ;;
2322    ,set)
2323      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2324$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2325      ac_cache_corrupted=: ;;
2326    ,);;
2327    *)
2328      if test "x$ac_old_val" != "x$ac_new_val"; then
2329	# differences in whitespace do not lead to failure.
2330	ac_old_val_w=`echo x $ac_old_val`
2331	ac_new_val_w=`echo x $ac_new_val`
2332	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2333	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2334$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2335	  ac_cache_corrupted=:
2336	else
2337	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2338$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2339	  eval $ac_var=\$ac_old_val
2340	fi
2341	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2342$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2343	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2344$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2345      fi;;
2346  esac
2347  # Pass precious variables to config.status.
2348  if test "$ac_new_set" = set; then
2349    case $ac_new_val in
2350    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2351    *) ac_arg=$ac_var=$ac_new_val ;;
2352    esac
2353    case " $ac_configure_args " in
2354      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2355      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2356    esac
2357  fi
2358done
2359if $ac_cache_corrupted; then
2360  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2362  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2363$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2364  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2365fi
2366## -------------------- ##
2367## Main body of script. ##
2368## -------------------- ##
2369
2370ac_ext=c
2371ac_cpp='$CPP $CPPFLAGS'
2372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374ac_compiler_gnu=$ac_cv_c_compiler_gnu
2375
2376
2377
2378ac_config_headers="$ac_config_headers config.h"
2379
2380
2381
2382am__api_version='1.11'
2383
2384ac_aux_dir=
2385for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2386  for ac_t in install-sh install.sh shtool; do
2387    if test -f "$ac_dir/$ac_t"; then
2388      ac_aux_dir=$ac_dir
2389      ac_install_sh="$ac_aux_dir/$ac_t -c"
2390      break 2
2391    fi
2392  done
2393done
2394if test -z "$ac_aux_dir"; then
2395  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2396fi
2397
2398# These three variables are undocumented and unsupported,
2399# and are intended to be withdrawn in a future Autoconf release.
2400# They can cause serious problems if a builder's source tree is in a directory
2401# whose full name contains unusual characters.
2402ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2403ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2404ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2405
2406
2407# Find a good install program.  We prefer a C program (faster),
2408# so one script is as good as another.  But avoid the broken or
2409# incompatible versions:
2410# SysV /etc/install, /usr/sbin/install
2411# SunOS /usr/etc/install
2412# IRIX /sbin/install
2413# AIX /bin/install
2414# AmigaOS /C/install, which installs bootblocks on floppy discs
2415# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2416# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2417# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2418# OS/2's system install, which has a completely different semantic
2419# ./install, which can be erroneously created by make from ./install.sh.
2420# Reject install programs that cannot install multiple files.
2421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2422$as_echo_n "checking for a BSD-compatible install... " >&6; }
2423if test -z "$INSTALL"; then
2424if test "${ac_cv_path_install+set}" = set; then :
2425  $as_echo_n "(cached) " >&6
2426else
2427  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428for as_dir in $PATH
2429do
2430  IFS=$as_save_IFS
2431  test -z "$as_dir" && as_dir=.
2432    # Account for people who put trailing slashes in PATH elements.
2433case $as_dir/ in #((
2434  ./ | .// | /[cC]/* | \
2435  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2436  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2437  /usr/ucb/* ) ;;
2438  *)
2439    # OSF1 and SCO ODT 3.0 have their own names for install.
2440    # Don't use installbsd from OSF since it installs stuff as root
2441    # by default.
2442    for ac_prog in ginstall scoinst install; do
2443      for ac_exec_ext in '' $ac_executable_extensions; do
2444	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2445	  if test $ac_prog = install &&
2446	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2447	    # AIX install.  It has an incompatible calling convention.
2448	    :
2449	  elif test $ac_prog = install &&
2450	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2451	    # program-specific install script used by HP pwplus--don't use.
2452	    :
2453	  else
2454	    rm -rf conftest.one conftest.two conftest.dir
2455	    echo one > conftest.one
2456	    echo two > conftest.two
2457	    mkdir conftest.dir
2458	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2459	      test -s conftest.one && test -s conftest.two &&
2460	      test -s conftest.dir/conftest.one &&
2461	      test -s conftest.dir/conftest.two
2462	    then
2463	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2464	      break 3
2465	    fi
2466	  fi
2467	fi
2468      done
2469    done
2470    ;;
2471esac
2472
2473  done
2474IFS=$as_save_IFS
2475
2476rm -rf conftest.one conftest.two conftest.dir
2477
2478fi
2479  if test "${ac_cv_path_install+set}" = set; then
2480    INSTALL=$ac_cv_path_install
2481  else
2482    # As a last resort, use the slow shell script.  Don't cache a
2483    # value for INSTALL within a source directory, because that will
2484    # break other packages using the cache if that directory is
2485    # removed, or if the value is a relative name.
2486    INSTALL=$ac_install_sh
2487  fi
2488fi
2489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2490$as_echo "$INSTALL" >&6; }
2491
2492# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2493# It thinks the first close brace ends the variable substitution.
2494test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2495
2496test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2497
2498test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2499
2500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2501$as_echo_n "checking whether build environment is sane... " >&6; }
2502# Just in case
2503sleep 1
2504echo timestamp > conftest.file
2505# Reject unsafe characters in $srcdir or the absolute working directory
2506# name.  Accept space and tab only in the latter.
2507am_lf='
2508'
2509case `pwd` in
2510  *[\\\"\#\$\&\'\`$am_lf]*)
2511    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2512esac
2513case $srcdir in
2514  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2515    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2516esac
2517
2518# Do `set' in a subshell so we don't clobber the current shell's
2519# arguments.  Must try -L first in case configure is actually a
2520# symlink; some systems play weird games with the mod time of symlinks
2521# (eg FreeBSD returns the mod time of the symlink's containing
2522# directory).
2523if (
2524   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2525   if test "$*" = "X"; then
2526      # -L didn't work.
2527      set X `ls -t "$srcdir/configure" conftest.file`
2528   fi
2529   rm -f conftest.file
2530   if test "$*" != "X $srcdir/configure conftest.file" \
2531      && test "$*" != "X conftest.file $srcdir/configure"; then
2532
2533      # If neither matched, then we have a broken ls.  This can happen
2534      # if, for instance, CONFIG_SHELL is bash and it inherits a
2535      # broken ls alias from the environment.  This has actually
2536      # happened.  Such a system could not be considered "sane".
2537      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2538alias in your environment" "$LINENO" 5
2539   fi
2540
2541   test "$2" = conftest.file
2542   )
2543then
2544   # Ok.
2545   :
2546else
2547   as_fn_error "newly created file is older than distributed files!
2548Check your system clock" "$LINENO" 5
2549fi
2550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2551$as_echo "yes" >&6; }
2552test "$program_prefix" != NONE &&
2553  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2554# Use a double $ so make ignores it.
2555test "$program_suffix" != NONE &&
2556  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2557# Double any \ or $.
2558# By default was `s,x,x', remove it if useless.
2559ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2560program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2561
2562# expand $ac_aux_dir to an absolute path
2563am_aux_dir=`cd $ac_aux_dir && pwd`
2564
2565if test x"${MISSING+set}" != xset; then
2566  case $am_aux_dir in
2567  *\ * | *\	*)
2568    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2569  *)
2570    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2571  esac
2572fi
2573# Use eval to expand $SHELL
2574if eval "$MISSING --run true"; then
2575  am_missing_run="$MISSING --run "
2576else
2577  am_missing_run=
2578  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2579$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2580fi
2581
2582if test x"${install_sh}" != xset; then
2583  case $am_aux_dir in
2584  *\ * | *\	*)
2585    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2586  *)
2587    install_sh="\${SHELL} $am_aux_dir/install-sh"
2588  esac
2589fi
2590
2591# Installed binaries are usually stripped using `strip' when the user
2592# run `make install-strip'.  However `strip' might not be the right
2593# tool to use in cross-compilation environments, therefore Automake
2594# will honor the `STRIP' environment variable to overrule this program.
2595if test "$cross_compiling" != no; then
2596  if test -n "$ac_tool_prefix"; then
2597  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2598set dummy ${ac_tool_prefix}strip; ac_word=$2
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600$as_echo_n "checking for $ac_word... " >&6; }
2601if test "${ac_cv_prog_STRIP+set}" = set; then :
2602  $as_echo_n "(cached) " >&6
2603else
2604  if test -n "$STRIP"; then
2605  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2606else
2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608for as_dir in $PATH
2609do
2610  IFS=$as_save_IFS
2611  test -z "$as_dir" && as_dir=.
2612    for ac_exec_ext in '' $ac_executable_extensions; do
2613  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616    break 2
2617  fi
2618done
2619  done
2620IFS=$as_save_IFS
2621
2622fi
2623fi
2624STRIP=$ac_cv_prog_STRIP
2625if test -n "$STRIP"; then
2626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2627$as_echo "$STRIP" >&6; }
2628else
2629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630$as_echo "no" >&6; }
2631fi
2632
2633
2634fi
2635if test -z "$ac_cv_prog_STRIP"; then
2636  ac_ct_STRIP=$STRIP
2637  # Extract the first word of "strip", so it can be a program name with args.
2638set dummy strip; ac_word=$2
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2640$as_echo_n "checking for $ac_word... " >&6; }
2641if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2642  $as_echo_n "(cached) " >&6
2643else
2644  if test -n "$ac_ct_STRIP"; then
2645  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2646else
2647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650  IFS=$as_save_IFS
2651  test -z "$as_dir" && as_dir=.
2652    for ac_exec_ext in '' $ac_executable_extensions; do
2653  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654    ac_cv_prog_ac_ct_STRIP="strip"
2655    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2656    break 2
2657  fi
2658done
2659  done
2660IFS=$as_save_IFS
2661
2662fi
2663fi
2664ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2665if test -n "$ac_ct_STRIP"; then
2666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2667$as_echo "$ac_ct_STRIP" >&6; }
2668else
2669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670$as_echo "no" >&6; }
2671fi
2672
2673  if test "x$ac_ct_STRIP" = x; then
2674    STRIP=":"
2675  else
2676    case $cross_compiling:$ac_tool_warned in
2677yes:)
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2680ac_tool_warned=yes ;;
2681esac
2682    STRIP=$ac_ct_STRIP
2683  fi
2684else
2685  STRIP="$ac_cv_prog_STRIP"
2686fi
2687
2688fi
2689INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2690
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2692$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2693if test -z "$MKDIR_P"; then
2694  if test "${ac_cv_path_mkdir+set}" = set; then :
2695  $as_echo_n "(cached) " >&6
2696else
2697  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2699do
2700  IFS=$as_save_IFS
2701  test -z "$as_dir" && as_dir=.
2702    for ac_prog in mkdir gmkdir; do
2703	 for ac_exec_ext in '' $ac_executable_extensions; do
2704	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2705	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2706	     'mkdir (GNU coreutils) '* | \
2707	     'mkdir (coreutils) '* | \
2708	     'mkdir (fileutils) '4.1*)
2709	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2710	       break 3;;
2711	   esac
2712	 done
2713       done
2714  done
2715IFS=$as_save_IFS
2716
2717fi
2718
2719  test -d ./--version && rmdir ./--version
2720  if test "${ac_cv_path_mkdir+set}" = set; then
2721    MKDIR_P="$ac_cv_path_mkdir -p"
2722  else
2723    # As a last resort, use the slow shell script.  Don't cache a
2724    # value for MKDIR_P within a source directory, because that will
2725    # break other packages using the cache if that directory is
2726    # removed, or if the value is a relative name.
2727    MKDIR_P="$ac_install_sh -d"
2728  fi
2729fi
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2731$as_echo "$MKDIR_P" >&6; }
2732
2733mkdir_p="$MKDIR_P"
2734case $mkdir_p in
2735  [\\/$]* | ?:[\\/]*) ;;
2736  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2737esac
2738
2739for ac_prog in gawk mawk nawk awk
2740do
2741  # Extract the first word of "$ac_prog", so it can be a program name with args.
2742set dummy $ac_prog; ac_word=$2
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744$as_echo_n "checking for $ac_word... " >&6; }
2745if test "${ac_cv_prog_AWK+set}" = set; then :
2746  $as_echo_n "(cached) " >&6
2747else
2748  if test -n "$AWK"; then
2749  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2750else
2751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752for as_dir in $PATH
2753do
2754  IFS=$as_save_IFS
2755  test -z "$as_dir" && as_dir=.
2756    for ac_exec_ext in '' $ac_executable_extensions; do
2757  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758    ac_cv_prog_AWK="$ac_prog"
2759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760    break 2
2761  fi
2762done
2763  done
2764IFS=$as_save_IFS
2765
2766fi
2767fi
2768AWK=$ac_cv_prog_AWK
2769if test -n "$AWK"; then
2770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2771$as_echo "$AWK" >&6; }
2772else
2773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774$as_echo "no" >&6; }
2775fi
2776
2777
2778  test -n "$AWK" && break
2779done
2780
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2782$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2783set x ${MAKE-make}
2784ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2785if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2786  $as_echo_n "(cached) " >&6
2787else
2788  cat >conftest.make <<\_ACEOF
2789SHELL = /bin/sh
2790all:
2791	@echo '@@@%%%=$(MAKE)=@@@%%%'
2792_ACEOF
2793# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2794case `${MAKE-make} -f conftest.make 2>/dev/null` in
2795  *@@@%%%=?*=@@@%%%*)
2796    eval ac_cv_prog_make_${ac_make}_set=yes;;
2797  *)
2798    eval ac_cv_prog_make_${ac_make}_set=no;;
2799esac
2800rm -f conftest.make
2801fi
2802if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2804$as_echo "yes" >&6; }
2805  SET_MAKE=
2806else
2807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808$as_echo "no" >&6; }
2809  SET_MAKE="MAKE=${MAKE-make}"
2810fi
2811
2812rm -rf .tst 2>/dev/null
2813mkdir .tst 2>/dev/null
2814if test -d .tst; then
2815  am__leading_dot=.
2816else
2817  am__leading_dot=_
2818fi
2819rmdir .tst 2>/dev/null
2820
2821if test "`cd $srcdir && pwd`" != "`pwd`"; then
2822  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2823  # is not polluted with repeated "-I."
2824  am__isrc=' -I$(srcdir)'
2825  # test to see if srcdir already configured
2826  if test -f $srcdir/config.status; then
2827    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2828  fi
2829fi
2830
2831# test whether we have cygpath
2832if test -z "$CYGPATH_W"; then
2833  if (cygpath --version) >/dev/null 2>/dev/null; then
2834    CYGPATH_W='cygpath -w'
2835  else
2836    CYGPATH_W=echo
2837  fi
2838fi
2839
2840
2841# Define the identity of the package.
2842 PACKAGE='libdaemon'
2843 VERSION='0.14'
2844
2845
2846cat >>confdefs.h <<_ACEOF
2847#define PACKAGE "$PACKAGE"
2848_ACEOF
2849
2850
2851cat >>confdefs.h <<_ACEOF
2852#define VERSION "$VERSION"
2853_ACEOF
2854
2855# Some tools Automake needs.
2856
2857ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2858
2859
2860AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2861
2862
2863AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2864
2865
2866AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2867
2868
2869MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2870
2871# We need awk for the "check" target.  The system "awk" is bad on
2872# some platforms.
2873# Always define AMTAR for backward compatibility.
2874
2875AMTAR=${AMTAR-"${am_missing_run}tar"}
2876
2877am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2878
2879
2880
2881
2882
2883
2884PACKAGE_URL=http://0pointer.de/lennart/projects/libdaemon/
2885
2886
2887LIBDAEMON_VERSION_INFO=5:0:5
2888
2889
2890if type -p stow > /dev/null && test -d /usr/local/stow ; then
2891   { $as_echo "$as_me:${as_lineno-$LINENO}: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&5
2892$as_echo "$as_me: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&6;}
2893   ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
2894fi
2895
2896# Check whether --enable-silent-rules was given.
2897if test "${enable_silent_rules+set}" = set; then :
2898  enableval=$enable_silent_rules;
2899fi
2900
2901case $enable_silent_rules in
2902yes) AM_DEFAULT_VERBOSITY=0;;
2903no)  AM_DEFAULT_VERBOSITY=1;;
2904*)   AM_DEFAULT_VERBOSITY=0;;
2905esac
2906AM_BACKSLASH='\'
2907
2908
2909# Checks for programs.
2910ac_ext=c
2911ac_cpp='$CPP $CPPFLAGS'
2912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2914ac_compiler_gnu=$ac_cv_c_compiler_gnu
2915if test -n "$ac_tool_prefix"; then
2916  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2917set dummy ${ac_tool_prefix}gcc; ac_word=$2
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919$as_echo_n "checking for $ac_word... " >&6; }
2920if test "${ac_cv_prog_CC+set}" = set; then :
2921  $as_echo_n "(cached) " >&6
2922else
2923  if test -n "$CC"; then
2924  ac_cv_prog_CC="$CC" # Let the user override the test.
2925else
2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929  IFS=$as_save_IFS
2930  test -z "$as_dir" && as_dir=.
2931    for ac_exec_ext in '' $ac_executable_extensions; do
2932  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935    break 2
2936  fi
2937done
2938  done
2939IFS=$as_save_IFS
2940
2941fi
2942fi
2943CC=$ac_cv_prog_CC
2944if test -n "$CC"; then
2945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2946$as_echo "$CC" >&6; }
2947else
2948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949$as_echo "no" >&6; }
2950fi
2951
2952
2953fi
2954if test -z "$ac_cv_prog_CC"; then
2955  ac_ct_CC=$CC
2956  # Extract the first word of "gcc", so it can be a program name with args.
2957set dummy gcc; ac_word=$2
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959$as_echo_n "checking for $ac_word... " >&6; }
2960if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2961  $as_echo_n "(cached) " >&6
2962else
2963  if test -n "$ac_ct_CC"; then
2964  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2965else
2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH
2968do
2969  IFS=$as_save_IFS
2970  test -z "$as_dir" && as_dir=.
2971    for ac_exec_ext in '' $ac_executable_extensions; do
2972  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973    ac_cv_prog_ac_ct_CC="gcc"
2974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975    break 2
2976  fi
2977done
2978  done
2979IFS=$as_save_IFS
2980
2981fi
2982fi
2983ac_ct_CC=$ac_cv_prog_ac_ct_CC
2984if test -n "$ac_ct_CC"; then
2985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2986$as_echo "$ac_ct_CC" >&6; }
2987else
2988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989$as_echo "no" >&6; }
2990fi
2991
2992  if test "x$ac_ct_CC" = x; then
2993    CC=""
2994  else
2995    case $cross_compiling:$ac_tool_warned in
2996yes:)
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2999ac_tool_warned=yes ;;
3000esac
3001    CC=$ac_ct_CC
3002  fi
3003else
3004  CC="$ac_cv_prog_CC"
3005fi
3006
3007if test -z "$CC"; then
3008          if test -n "$ac_tool_prefix"; then
3009    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3010set dummy ${ac_tool_prefix}cc; ac_word=$2
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012$as_echo_n "checking for $ac_word... " >&6; }
3013if test "${ac_cv_prog_CC+set}" = set; then :
3014  $as_echo_n "(cached) " >&6
3015else
3016  if test -n "$CC"; then
3017  ac_cv_prog_CC="$CC" # Let the user override the test.
3018else
3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020for as_dir in $PATH
3021do
3022  IFS=$as_save_IFS
3023  test -z "$as_dir" && as_dir=.
3024    for ac_exec_ext in '' $ac_executable_extensions; do
3025  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026    ac_cv_prog_CC="${ac_tool_prefix}cc"
3027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028    break 2
3029  fi
3030done
3031  done
3032IFS=$as_save_IFS
3033
3034fi
3035fi
3036CC=$ac_cv_prog_CC
3037if test -n "$CC"; then
3038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039$as_echo "$CC" >&6; }
3040else
3041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042$as_echo "no" >&6; }
3043fi
3044
3045
3046  fi
3047fi
3048if test -z "$CC"; then
3049  # Extract the first word of "cc", so it can be a program name with args.
3050set dummy cc; ac_word=$2
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052$as_echo_n "checking for $ac_word... " >&6; }
3053if test "${ac_cv_prog_CC+set}" = set; then :
3054  $as_echo_n "(cached) " >&6
3055else
3056  if test -n "$CC"; then
3057  ac_cv_prog_CC="$CC" # Let the user override the test.
3058else
3059  ac_prog_rejected=no
3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061for as_dir in $PATH
3062do
3063  IFS=$as_save_IFS
3064  test -z "$as_dir" && as_dir=.
3065    for ac_exec_ext in '' $ac_executable_extensions; do
3066  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3068       ac_prog_rejected=yes
3069       continue
3070     fi
3071    ac_cv_prog_CC="cc"
3072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073    break 2
3074  fi
3075done
3076  done
3077IFS=$as_save_IFS
3078
3079if test $ac_prog_rejected = yes; then
3080  # We found a bogon in the path, so make sure we never use it.
3081  set dummy $ac_cv_prog_CC
3082  shift
3083  if test $# != 0; then
3084    # We chose a different compiler from the bogus one.
3085    # However, it has the same basename, so the bogon will be chosen
3086    # first if we set CC to just the basename; use the full file name.
3087    shift
3088    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3089  fi
3090fi
3091fi
3092fi
3093CC=$ac_cv_prog_CC
3094if test -n "$CC"; then
3095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3096$as_echo "$CC" >&6; }
3097else
3098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099$as_echo "no" >&6; }
3100fi
3101
3102
3103fi
3104if test -z "$CC"; then
3105  if test -n "$ac_tool_prefix"; then
3106  for ac_prog in cl.exe
3107  do
3108    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3109set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111$as_echo_n "checking for $ac_word... " >&6; }
3112if test "${ac_cv_prog_CC+set}" = set; then :
3113  $as_echo_n "(cached) " >&6
3114else
3115  if test -n "$CC"; then
3116  ac_cv_prog_CC="$CC" # Let the user override the test.
3117else
3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119for as_dir in $PATH
3120do
3121  IFS=$as_save_IFS
3122  test -z "$as_dir" && as_dir=.
3123    for ac_exec_ext in '' $ac_executable_extensions; do
3124  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3125    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127    break 2
3128  fi
3129done
3130  done
3131IFS=$as_save_IFS
3132
3133fi
3134fi
3135CC=$ac_cv_prog_CC
3136if test -n "$CC"; then
3137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138$as_echo "$CC" >&6; }
3139else
3140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141$as_echo "no" >&6; }
3142fi
3143
3144
3145    test -n "$CC" && break
3146  done
3147fi
3148if test -z "$CC"; then
3149  ac_ct_CC=$CC
3150  for ac_prog in cl.exe
3151do
3152  # Extract the first word of "$ac_prog", so it can be a program name with args.
3153set dummy $ac_prog; ac_word=$2
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155$as_echo_n "checking for $ac_word... " >&6; }
3156if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3157  $as_echo_n "(cached) " >&6
3158else
3159  if test -n "$ac_ct_CC"; then
3160  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3161else
3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163for as_dir in $PATH
3164do
3165  IFS=$as_save_IFS
3166  test -z "$as_dir" && as_dir=.
3167    for ac_exec_ext in '' $ac_executable_extensions; do
3168  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169    ac_cv_prog_ac_ct_CC="$ac_prog"
3170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171    break 2
3172  fi
3173done
3174  done
3175IFS=$as_save_IFS
3176
3177fi
3178fi
3179ac_ct_CC=$ac_cv_prog_ac_ct_CC
3180if test -n "$ac_ct_CC"; then
3181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3182$as_echo "$ac_ct_CC" >&6; }
3183else
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186fi
3187
3188
3189  test -n "$ac_ct_CC" && break
3190done
3191
3192  if test "x$ac_ct_CC" = x; then
3193    CC=""
3194  else
3195    case $cross_compiling:$ac_tool_warned in
3196yes:)
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3199ac_tool_warned=yes ;;
3200esac
3201    CC=$ac_ct_CC
3202  fi
3203fi
3204
3205fi
3206
3207
3208test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210as_fn_error "no acceptable C compiler found in \$PATH
3211See \`config.log' for more details." "$LINENO" 5; }
3212
3213# Provide some information about the compiler.
3214$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3215set X $ac_compile
3216ac_compiler=$2
3217for ac_option in --version -v -V -qversion; do
3218  { { ac_try="$ac_compiler $ac_option >&5"
3219case "(($ac_try" in
3220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221  *) ac_try_echo=$ac_try;;
3222esac
3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224$as_echo "$ac_try_echo"; } >&5
3225  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3226  ac_status=$?
3227  if test -s conftest.err; then
3228    sed '10a\
3229... rest of stderr output deleted ...
3230         10q' conftest.err >conftest.er1
3231    cat conftest.er1 >&5
3232  fi
3233  rm -f conftest.er1 conftest.err
3234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235  test $ac_status = 0; }
3236done
3237
3238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239/* end confdefs.h.  */
3240
3241int
3242main ()
3243{
3244
3245  ;
3246  return 0;
3247}
3248_ACEOF
3249ac_clean_files_save=$ac_clean_files
3250ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3251# Try to create an executable without -o first, disregard a.out.
3252# It will help us diagnose broken compilers, and finding out an intuition
3253# of exeext.
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3255$as_echo_n "checking whether the C compiler works... " >&6; }
3256ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3257
3258# The possible output files:
3259ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3260
3261ac_rmfiles=
3262for ac_file in $ac_files
3263do
3264  case $ac_file in
3265    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3266    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3267  esac
3268done
3269rm -f $ac_rmfiles
3270
3271if { { ac_try="$ac_link_default"
3272case "(($ac_try" in
3273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274  *) ac_try_echo=$ac_try;;
3275esac
3276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277$as_echo "$ac_try_echo"; } >&5
3278  (eval "$ac_link_default") 2>&5
3279  ac_status=$?
3280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281  test $ac_status = 0; }; then :
3282  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3283# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3284# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3285# so that the user can short-circuit this test for compilers unknown to
3286# Autoconf.
3287for ac_file in $ac_files ''
3288do
3289  test -f "$ac_file" || continue
3290  case $ac_file in
3291    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3292	;;
3293    [ab].out )
3294	# We found the default executable, but exeext='' is most
3295	# certainly right.
3296	break;;
3297    *.* )
3298	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3299	then :; else
3300	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3301	fi
3302	# We set ac_cv_exeext here because the later test for it is not
3303	# safe: cross compilers may not add the suffix if given an `-o'
3304	# argument, so we may need to know it at that point already.
3305	# Even if this section looks crufty: it has the advantage of
3306	# actually working.
3307	break;;
3308    * )
3309	break;;
3310  esac
3311done
3312test "$ac_cv_exeext" = no && ac_cv_exeext=
3313
3314else
3315  ac_file=''
3316fi
3317if test -z "$ac_file"; then :
3318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319$as_echo "no" >&6; }
3320$as_echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325{ as_fn_set_status 77
3326as_fn_error "C compiler cannot create executables
3327See \`config.log' for more details." "$LINENO" 5; }; }
3328else
3329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3330$as_echo "yes" >&6; }
3331fi
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3333$as_echo_n "checking for C compiler default output file name... " >&6; }
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3335$as_echo "$ac_file" >&6; }
3336ac_exeext=$ac_cv_exeext
3337
3338rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3339ac_clean_files=$ac_clean_files_save
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3341$as_echo_n "checking for suffix of executables... " >&6; }
3342if { { ac_try="$ac_link"
3343case "(($ac_try" in
3344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345  *) ac_try_echo=$ac_try;;
3346esac
3347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3348$as_echo "$ac_try_echo"; } >&5
3349  (eval "$ac_link") 2>&5
3350  ac_status=$?
3351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352  test $ac_status = 0; }; then :
3353  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3354# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3355# work properly (i.e., refer to `conftest.exe'), while it won't with
3356# `rm'.
3357for ac_file in conftest.exe conftest conftest.*; do
3358  test -f "$ac_file" || continue
3359  case $ac_file in
3360    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3361    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3362	  break;;
3363    * ) break;;
3364  esac
3365done
3366else
3367  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369as_fn_error "cannot compute suffix of executables: cannot compile and link
3370See \`config.log' for more details." "$LINENO" 5; }
3371fi
3372rm -f conftest conftest$ac_cv_exeext
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3374$as_echo "$ac_cv_exeext" >&6; }
3375
3376rm -f conftest.$ac_ext
3377EXEEXT=$ac_cv_exeext
3378ac_exeext=$EXEEXT
3379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380/* end confdefs.h.  */
3381#include <stdio.h>
3382int
3383main ()
3384{
3385FILE *f = fopen ("conftest.out", "w");
3386 return ferror (f) || fclose (f) != 0;
3387
3388  ;
3389  return 0;
3390}
3391_ACEOF
3392ac_clean_files="$ac_clean_files conftest.out"
3393# Check that the compiler produces executables we can run.  If not, either
3394# the compiler is broken, or we cross compile.
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3396$as_echo_n "checking whether we are cross compiling... " >&6; }
3397if test "$cross_compiling" != yes; then
3398  { { ac_try="$ac_link"
3399case "(($ac_try" in
3400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401  *) ac_try_echo=$ac_try;;
3402esac
3403eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3404$as_echo "$ac_try_echo"; } >&5
3405  (eval "$ac_link") 2>&5
3406  ac_status=$?
3407  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3408  test $ac_status = 0; }
3409  if { ac_try='./conftest$ac_cv_exeext'
3410  { { case "(($ac_try" in
3411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412  *) ac_try_echo=$ac_try;;
3413esac
3414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415$as_echo "$ac_try_echo"; } >&5
3416  (eval "$ac_try") 2>&5
3417  ac_status=$?
3418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419  test $ac_status = 0; }; }; then
3420    cross_compiling=no
3421  else
3422    if test "$cross_compiling" = maybe; then
3423	cross_compiling=yes
3424    else
3425	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427as_fn_error "cannot run C compiled programs.
3428If you meant to cross compile, use \`--host'.
3429See \`config.log' for more details." "$LINENO" 5; }
3430    fi
3431  fi
3432fi
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3434$as_echo "$cross_compiling" >&6; }
3435
3436rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3437ac_clean_files=$ac_clean_files_save
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3439$as_echo_n "checking for suffix of object files... " >&6; }
3440if test "${ac_cv_objext+set}" = set; then :
3441  $as_echo_n "(cached) " >&6
3442else
3443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444/* end confdefs.h.  */
3445
3446int
3447main ()
3448{
3449
3450  ;
3451  return 0;
3452}
3453_ACEOF
3454rm -f conftest.o conftest.obj
3455if { { ac_try="$ac_compile"
3456case "(($ac_try" in
3457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458  *) ac_try_echo=$ac_try;;
3459esac
3460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461$as_echo "$ac_try_echo"; } >&5
3462  (eval "$ac_compile") 2>&5
3463  ac_status=$?
3464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465  test $ac_status = 0; }; then :
3466  for ac_file in conftest.o conftest.obj conftest.*; do
3467  test -f "$ac_file" || continue;
3468  case $ac_file in
3469    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3470    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3471       break;;
3472  esac
3473done
3474else
3475  $as_echo "$as_me: failed program was:" >&5
3476sed 's/^/| /' conftest.$ac_ext >&5
3477
3478{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480as_fn_error "cannot compute suffix of object files: cannot compile
3481See \`config.log' for more details." "$LINENO" 5; }
3482fi
3483rm -f conftest.$ac_cv_objext conftest.$ac_ext
3484fi
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3486$as_echo "$ac_cv_objext" >&6; }
3487OBJEXT=$ac_cv_objext
3488ac_objext=$OBJEXT
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3490$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3491if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3492  $as_echo_n "(cached) " >&6
3493else
3494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495/* end confdefs.h.  */
3496
3497int
3498main ()
3499{
3500#ifndef __GNUC__
3501       choke me
3502#endif
3503
3504  ;
3505  return 0;
3506}
3507_ACEOF
3508if ac_fn_c_try_compile "$LINENO"; then :
3509  ac_compiler_gnu=yes
3510else
3511  ac_compiler_gnu=no
3512fi
3513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514ac_cv_c_compiler_gnu=$ac_compiler_gnu
3515
3516fi
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3518$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3519if test $ac_compiler_gnu = yes; then
3520  GCC=yes
3521else
3522  GCC=
3523fi
3524ac_test_CFLAGS=${CFLAGS+set}
3525ac_save_CFLAGS=$CFLAGS
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3527$as_echo_n "checking whether $CC accepts -g... " >&6; }
3528if test "${ac_cv_prog_cc_g+set}" = set; then :
3529  $as_echo_n "(cached) " >&6
3530else
3531  ac_save_c_werror_flag=$ac_c_werror_flag
3532   ac_c_werror_flag=yes
3533   ac_cv_prog_cc_g=no
3534   CFLAGS="-g"
3535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536/* end confdefs.h.  */
3537
3538int
3539main ()
3540{
3541
3542  ;
3543  return 0;
3544}
3545_ACEOF
3546if ac_fn_c_try_compile "$LINENO"; then :
3547  ac_cv_prog_cc_g=yes
3548else
3549  CFLAGS=""
3550      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551/* end confdefs.h.  */
3552
3553int
3554main ()
3555{
3556
3557  ;
3558  return 0;
3559}
3560_ACEOF
3561if ac_fn_c_try_compile "$LINENO"; then :
3562
3563else
3564  ac_c_werror_flag=$ac_save_c_werror_flag
3565	 CFLAGS="-g"
3566	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567/* end confdefs.h.  */
3568
3569int
3570main ()
3571{
3572
3573  ;
3574  return 0;
3575}
3576_ACEOF
3577if ac_fn_c_try_compile "$LINENO"; then :
3578  ac_cv_prog_cc_g=yes
3579fi
3580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581fi
3582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583fi
3584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585   ac_c_werror_flag=$ac_save_c_werror_flag
3586fi
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3588$as_echo "$ac_cv_prog_cc_g" >&6; }
3589if test "$ac_test_CFLAGS" = set; then
3590  CFLAGS=$ac_save_CFLAGS
3591elif test $ac_cv_prog_cc_g = yes; then
3592  if test "$GCC" = yes; then
3593    CFLAGS="-g -O2"
3594  else
3595    CFLAGS="-g"
3596  fi
3597else
3598  if test "$GCC" = yes; then
3599    CFLAGS="-O2"
3600  else
3601    CFLAGS=
3602  fi
3603fi
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3605$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3606if test "${ac_cv_prog_cc_c89+set}" = set; then :
3607  $as_echo_n "(cached) " >&6
3608else
3609  ac_cv_prog_cc_c89=no
3610ac_save_CC=$CC
3611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612/* end confdefs.h.  */
3613#include <stdarg.h>
3614#include <stdio.h>
3615#include <sys/types.h>
3616#include <sys/stat.h>
3617/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3618struct buf { int x; };
3619FILE * (*rcsopen) (struct buf *, struct stat *, int);
3620static char *e (p, i)
3621     char **p;
3622     int i;
3623{
3624  return p[i];
3625}
3626static char *f (char * (*g) (char **, int), char **p, ...)
3627{
3628  char *s;
3629  va_list v;
3630  va_start (v,p);
3631  s = g (p, va_arg (v,int));
3632  va_end (v);
3633  return s;
3634}
3635
3636/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3637   function prototypes and stuff, but not '\xHH' hex character constants.
3638   These don't provoke an error unfortunately, instead are silently treated
3639   as 'x'.  The following induces an error, until -std is added to get
3640   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3641   array size at least.  It's necessary to write '\x00'==0 to get something
3642   that's true only with -std.  */
3643int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3644
3645/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3646   inside strings and character constants.  */
3647#define FOO(x) 'x'
3648int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3649
3650int test (int i, double x);
3651struct s1 {int (*f) (int a);};
3652struct s2 {int (*f) (double a);};
3653int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3654int argc;
3655char **argv;
3656int
3657main ()
3658{
3659return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3660  ;
3661  return 0;
3662}
3663_ACEOF
3664for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3665	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3666do
3667  CC="$ac_save_CC $ac_arg"
3668  if ac_fn_c_try_compile "$LINENO"; then :
3669  ac_cv_prog_cc_c89=$ac_arg
3670fi
3671rm -f core conftest.err conftest.$ac_objext
3672  test "x$ac_cv_prog_cc_c89" != "xno" && break
3673done
3674rm -f conftest.$ac_ext
3675CC=$ac_save_CC
3676
3677fi
3678# AC_CACHE_VAL
3679case "x$ac_cv_prog_cc_c89" in
3680  x)
3681    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3682$as_echo "none needed" >&6; } ;;
3683  xno)
3684    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3685$as_echo "unsupported" >&6; } ;;
3686  *)
3687    CC="$CC $ac_cv_prog_cc_c89"
3688    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3689$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3690esac
3691if test "x$ac_cv_prog_cc_c89" != xno; then :
3692
3693fi
3694
3695ac_ext=c
3696ac_cpp='$CPP $CPPFLAGS'
3697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699ac_compiler_gnu=$ac_cv_c_compiler_gnu
3700DEPDIR="${am__leading_dot}deps"
3701
3702ac_config_commands="$ac_config_commands depfiles"
3703
3704
3705am_make=${MAKE-make}
3706cat > confinc << 'END'
3707am__doit:
3708	@echo this is the am__doit target
3709.PHONY: am__doit
3710END
3711# If we don't find an include directive, just comment out the code.
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3713$as_echo_n "checking for style of include used by $am_make... " >&6; }
3714am__include="#"
3715am__quote=
3716_am_result=none
3717# First try GNU make style include.
3718echo "include confinc" > confmf
3719# Ignore all kinds of additional output from `make'.
3720case `$am_make -s -f confmf 2> /dev/null` in #(
3721*the\ am__doit\ target*)
3722  am__include=include
3723  am__quote=
3724  _am_result=GNU
3725  ;;
3726esac
3727# Now try BSD make style include.
3728if test "$am__include" = "#"; then
3729   echo '.include "confinc"' > confmf
3730   case `$am_make -s -f confmf 2> /dev/null` in #(
3731   *the\ am__doit\ target*)
3732     am__include=.include
3733     am__quote="\""
3734     _am_result=BSD
3735     ;;
3736   esac
3737fi
3738
3739
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3741$as_echo "$_am_result" >&6; }
3742rm -f confinc confmf
3743
3744# Check whether --enable-dependency-tracking was given.
3745if test "${enable_dependency_tracking+set}" = set; then :
3746  enableval=$enable_dependency_tracking;
3747fi
3748
3749if test "x$enable_dependency_tracking" != xno; then
3750  am_depcomp="$ac_aux_dir/depcomp"
3751  AMDEPBACKSLASH='\'
3752fi
3753 if test "x$enable_dependency_tracking" != xno; then
3754  AMDEP_TRUE=
3755  AMDEP_FALSE='#'
3756else
3757  AMDEP_TRUE='#'
3758  AMDEP_FALSE=
3759fi
3760
3761
3762
3763depcc="$CC"   am_compiler_list=
3764
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3766$as_echo_n "checking dependency style of $depcc... " >&6; }
3767if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3768  $as_echo_n "(cached) " >&6
3769else
3770  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3771  # We make a subdir and do the tests there.  Otherwise we can end up
3772  # making bogus files that we don't know about and never remove.  For
3773  # instance it was reported that on HP-UX the gcc test will end up
3774  # making a dummy file named `D' -- because `-MD' means `put the output
3775  # in D'.
3776  mkdir conftest.dir
3777  # Copy depcomp to subdir because otherwise we won't find it if we're
3778  # using a relative directory.
3779  cp "$am_depcomp" conftest.dir
3780  cd conftest.dir
3781  # We will build objects and dependencies in a subdirectory because
3782  # it helps to detect inapplicable dependency modes.  For instance
3783  # both Tru64's cc and ICC support -MD to output dependencies as a
3784  # side effect of compilation, but ICC will put the dependencies in
3785  # the current directory while Tru64 will put them in the object
3786  # directory.
3787  mkdir sub
3788
3789  am_cv_CC_dependencies_compiler_type=none
3790  if test "$am_compiler_list" = ""; then
3791     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3792  fi
3793  am__universal=false
3794  case " $depcc " in #(
3795     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3796     esac
3797
3798  for depmode in $am_compiler_list; do
3799    # Setup a source with many dependencies, because some compilers
3800    # like to wrap large dependency lists on column 80 (with \), and
3801    # we should not choose a depcomp mode which is confused by this.
3802    #
3803    # We need to recreate these files for each test, as the compiler may
3804    # overwrite some of them when testing with obscure command lines.
3805    # This happens at least with the AIX C compiler.
3806    : > sub/conftest.c
3807    for i in 1 2 3 4 5 6; do
3808      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3809      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3810      # Solaris 8's {/usr,}/bin/sh.
3811      touch sub/conftst$i.h
3812    done
3813    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3814
3815    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3816    # mode.  It turns out that the SunPro C++ compiler does not properly
3817    # handle `-M -o', and we need to detect this.  Also, some Intel
3818    # versions had trouble with output in subdirs
3819    am__obj=sub/conftest.${OBJEXT-o}
3820    am__minus_obj="-o $am__obj"
3821    case $depmode in
3822    gcc)
3823      # This depmode causes a compiler race in universal mode.
3824      test "$am__universal" = false || continue
3825      ;;
3826    nosideeffect)
3827      # after this tag, mechanisms are not by side-effect, so they'll
3828      # only be used when explicitly requested
3829      if test "x$enable_dependency_tracking" = xyes; then
3830	continue
3831      else
3832	break
3833      fi
3834      ;;
3835    msvisualcpp | msvcmsys)
3836      # This compiler won't grok `-c -o', but also, the minuso test has
3837      # not run yet.  These depmodes are late enough in the game, and
3838      # so weak that their functioning should not be impacted.
3839      am__obj=conftest.${OBJEXT-o}
3840      am__minus_obj=
3841      ;;
3842    none) break ;;
3843    esac
3844    if depmode=$depmode \
3845       source=sub/conftest.c object=$am__obj \
3846       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3847       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3848         >/dev/null 2>conftest.err &&
3849       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3850       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3851       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3852       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3853      # icc doesn't choke on unknown options, it will just issue warnings
3854      # or remarks (even with -Werror).  So we grep stderr for any message
3855      # that says an option was ignored or not supported.
3856      # When given -MP, icc 7.0 and 7.1 complain thusly:
3857      #   icc: Command line warning: ignoring option '-M'; no argument required
3858      # The diagnosis changed in icc 8.0:
3859      #   icc: Command line remark: option '-MP' not supported
3860      if (grep 'ignoring option' conftest.err ||
3861          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3862        am_cv_CC_dependencies_compiler_type=$depmode
3863        break
3864      fi
3865    fi
3866  done
3867
3868  cd ..
3869  rm -rf conftest.dir
3870else
3871  am_cv_CC_dependencies_compiler_type=none
3872fi
3873
3874fi
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3876$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3877CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3878
3879 if
3880  test "x$enable_dependency_tracking" != xno \
3881  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3882  am__fastdepCC_TRUE=
3883  am__fastdepCC_FALSE='#'
3884else
3885  am__fastdepCC_TRUE='#'
3886  am__fastdepCC_FALSE=
3887fi
3888
3889
3890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3891$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3892if test "${ac_cv_prog_cc_c99+set}" = set; then :
3893  $as_echo_n "(cached) " >&6
3894else
3895  ac_cv_prog_cc_c99=no
3896ac_save_CC=$CC
3897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898/* end confdefs.h.  */
3899#include <stdarg.h>
3900#include <stdbool.h>
3901#include <stdlib.h>
3902#include <wchar.h>
3903#include <stdio.h>
3904
3905// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3906#define debug(...) fprintf (stderr, __VA_ARGS__)
3907#define showlist(...) puts (#__VA_ARGS__)
3908#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3909static void
3910test_varargs_macros (void)
3911{
3912  int x = 1234;
3913  int y = 5678;
3914  debug ("Flag");
3915  debug ("X = %d\n", x);
3916  showlist (The first, second, and third items.);
3917  report (x>y, "x is %d but y is %d", x, y);
3918}
3919
3920// Check long long types.
3921#define BIG64 18446744073709551615ull
3922#define BIG32 4294967295ul
3923#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3924#if !BIG_OK
3925  your preprocessor is broken;
3926#endif
3927#if BIG_OK
3928#else
3929  your preprocessor is broken;
3930#endif
3931static long long int bignum = -9223372036854775807LL;
3932static unsigned long long int ubignum = BIG64;
3933
3934struct incomplete_array
3935{
3936  int datasize;
3937  double data[];
3938};
3939
3940struct named_init {
3941  int number;
3942  const wchar_t *name;
3943  double average;
3944};
3945
3946typedef const char *ccp;
3947
3948static inline int
3949test_restrict (ccp restrict text)
3950{
3951  // See if C++-style comments work.
3952  // Iterate through items via the restricted pointer.
3953  // Also check for declarations in for loops.
3954  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3955    continue;
3956  return 0;
3957}
3958
3959// Check varargs and va_copy.
3960static void
3961test_varargs (const char *format, ...)
3962{
3963  va_list args;
3964  va_start (args, format);
3965  va_list args_copy;
3966  va_copy (args_copy, args);
3967
3968  const char *str;
3969  int number;
3970  float fnumber;
3971
3972  while (*format)
3973    {
3974      switch (*format++)
3975	{
3976	case 's': // string
3977	  str = va_arg (args_copy, const char *);
3978	  break;
3979	case 'd': // int
3980	  number = va_arg (args_copy, int);
3981	  break;
3982	case 'f': // float
3983	  fnumber = va_arg (args_copy, double);
3984	  break;
3985	default:
3986	  break;
3987	}
3988    }
3989  va_end (args_copy);
3990  va_end (args);
3991}
3992
3993int
3994main ()
3995{
3996
3997  // Check bool.
3998  _Bool success = false;
3999
4000  // Check restrict.
4001  if (test_restrict ("String literal") == 0)
4002    success = true;
4003  char *restrict newvar = "Another string";
4004
4005  // Check varargs.
4006  test_varargs ("s, d' f .", "string", 65, 34.234);
4007  test_varargs_macros ();
4008
4009  // Check flexible array members.
4010  struct incomplete_array *ia =
4011    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4012  ia->datasize = 10;
4013  for (int i = 0; i < ia->datasize; ++i)
4014    ia->data[i] = i * 1.234;
4015
4016  // Check named initializers.
4017  struct named_init ni = {
4018    .number = 34,
4019    .name = L"Test wide string",
4020    .average = 543.34343,
4021  };
4022
4023  ni.number = 58;
4024
4025  int dynamic_array[ni.number];
4026  dynamic_array[ni.number - 1] = 543;
4027
4028  // work around unused variable warnings
4029  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4030	  || dynamic_array[ni.number - 1] != 543);
4031
4032  ;
4033  return 0;
4034}
4035_ACEOF
4036for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4037do
4038  CC="$ac_save_CC $ac_arg"
4039  if ac_fn_c_try_compile "$LINENO"; then :
4040  ac_cv_prog_cc_c99=$ac_arg
4041fi
4042rm -f core conftest.err conftest.$ac_objext
4043  test "x$ac_cv_prog_cc_c99" != "xno" && break
4044done
4045rm -f conftest.$ac_ext
4046CC=$ac_save_CC
4047
4048fi
4049# AC_CACHE_VAL
4050case "x$ac_cv_prog_cc_c99" in
4051  x)
4052    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4053$as_echo "none needed" >&6; } ;;
4054  xno)
4055    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4056$as_echo "unsupported" >&6; } ;;
4057  *)
4058    CC="$CC $ac_cv_prog_cc_c99"
4059    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4060$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4061esac
4062if test "x$ac_cv_prog_cc_c99" != xno; then :
4063
4064fi
4065
4066 if test "x$CC" != xcc; then
4067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4068$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4069else
4070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4071$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4072fi
4073set dummy $CC; ac_cc=`$as_echo "$2" |
4074		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4075if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4076  $as_echo_n "(cached) " >&6
4077else
4078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079/* end confdefs.h.  */
4080
4081int
4082main ()
4083{
4084
4085  ;
4086  return 0;
4087}
4088_ACEOF
4089# Make sure it works both with $CC and with simple cc.
4090# We do the test twice because some compilers refuse to overwrite an
4091# existing .o file with -o, though they will create one.
4092ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4093rm -f conftest2.*
4094if { { case "(($ac_try" in
4095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096  *) ac_try_echo=$ac_try;;
4097esac
4098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099$as_echo "$ac_try_echo"; } >&5
4100  (eval "$ac_try") 2>&5
4101  ac_status=$?
4102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4103  test $ac_status = 0; } &&
4104   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106  *) ac_try_echo=$ac_try;;
4107esac
4108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4109$as_echo "$ac_try_echo"; } >&5
4110  (eval "$ac_try") 2>&5
4111  ac_status=$?
4112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4113  test $ac_status = 0; };
4114then
4115  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4116  if test "x$CC" != xcc; then
4117    # Test first that cc exists at all.
4118    if { ac_try='cc -c conftest.$ac_ext >&5'
4119  { { case "(($ac_try" in
4120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121  *) ac_try_echo=$ac_try;;
4122esac
4123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4124$as_echo "$ac_try_echo"; } >&5
4125  (eval "$ac_try") 2>&5
4126  ac_status=$?
4127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4128  test $ac_status = 0; }; }; then
4129      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4130      rm -f conftest2.*
4131      if { { case "(($ac_try" in
4132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133  *) ac_try_echo=$ac_try;;
4134esac
4135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4136$as_echo "$ac_try_echo"; } >&5
4137  (eval "$ac_try") 2>&5
4138  ac_status=$?
4139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4140  test $ac_status = 0; } &&
4141	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143  *) ac_try_echo=$ac_try;;
4144esac
4145eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4146$as_echo "$ac_try_echo"; } >&5
4147  (eval "$ac_try") 2>&5
4148  ac_status=$?
4149  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4150  test $ac_status = 0; };
4151      then
4152	# cc works too.
4153	:
4154      else
4155	# cc exists but doesn't like -o.
4156	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4157      fi
4158    fi
4159  fi
4160else
4161  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4162fi
4163rm -f core conftest*
4164
4165fi
4166if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4168$as_echo "yes" >&6; }
4169else
4170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171$as_echo "no" >&6; }
4172
4173$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4174
4175fi
4176
4177# FIXME: we rely on the cache variable name because
4178# there is no other way.
4179set dummy $CC
4180am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4181eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4182if test "$am_t" != yes; then
4183   # Losing compiler, so override with the script.
4184   # FIXME: It is wrong to rewrite CC.
4185   # But if we don't then we get into trouble of one sort or another.
4186   # A longer-term fix would be to have automake use am__CC in this case,
4187   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4188   CC="$am_aux_dir/compile $CC"
4189fi
4190
4191
4192
4193
4194ac_ext=c
4195ac_cpp='$CPP $CPPFLAGS'
4196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198ac_compiler_gnu=$ac_cv_c_compiler_gnu
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4200$as_echo_n "checking how to run the C preprocessor... " >&6; }
4201# On Suns, sometimes $CPP names a directory.
4202if test -n "$CPP" && test -d "$CPP"; then
4203  CPP=
4204fi
4205if test -z "$CPP"; then
4206  if test "${ac_cv_prog_CPP+set}" = set; then :
4207  $as_echo_n "(cached) " >&6
4208else
4209      # Double quotes because CPP needs to be expanded
4210    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4211    do
4212      ac_preproc_ok=false
4213for ac_c_preproc_warn_flag in '' yes
4214do
4215  # Use a header file that comes with gcc, so configuring glibc
4216  # with a fresh cross-compiler works.
4217  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4218  # <limits.h> exists even on freestanding compilers.
4219  # On the NeXT, cc -E runs the code through the compiler's parser,
4220  # not just through cpp. "Syntax error" is here to catch this case.
4221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222/* end confdefs.h.  */
4223#ifdef __STDC__
4224# include <limits.h>
4225#else
4226# include <assert.h>
4227#endif
4228		     Syntax error
4229_ACEOF
4230if ac_fn_c_try_cpp "$LINENO"; then :
4231
4232else
4233  # Broken: fails on valid input.
4234continue
4235fi
4236rm -f conftest.err conftest.$ac_ext
4237
4238  # OK, works on sane cases.  Now check whether nonexistent headers
4239  # can be detected and how.
4240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241/* end confdefs.h.  */
4242#include <ac_nonexistent.h>
4243_ACEOF
4244if ac_fn_c_try_cpp "$LINENO"; then :
4245  # Broken: success on invalid input.
4246continue
4247else
4248  # Passes both tests.
4249ac_preproc_ok=:
4250break
4251fi
4252rm -f conftest.err conftest.$ac_ext
4253
4254done
4255# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4256rm -f conftest.err conftest.$ac_ext
4257if $ac_preproc_ok; then :
4258  break
4259fi
4260
4261    done
4262    ac_cv_prog_CPP=$CPP
4263
4264fi
4265  CPP=$ac_cv_prog_CPP
4266else
4267  ac_cv_prog_CPP=$CPP
4268fi
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4270$as_echo "$CPP" >&6; }
4271ac_preproc_ok=false
4272for ac_c_preproc_warn_flag in '' yes
4273do
4274  # Use a header file that comes with gcc, so configuring glibc
4275  # with a fresh cross-compiler works.
4276  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4277  # <limits.h> exists even on freestanding compilers.
4278  # On the NeXT, cc -E runs the code through the compiler's parser,
4279  # not just through cpp. "Syntax error" is here to catch this case.
4280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281/* end confdefs.h.  */
4282#ifdef __STDC__
4283# include <limits.h>
4284#else
4285# include <assert.h>
4286#endif
4287		     Syntax error
4288_ACEOF
4289if ac_fn_c_try_cpp "$LINENO"; then :
4290
4291else
4292  # Broken: fails on valid input.
4293continue
4294fi
4295rm -f conftest.err conftest.$ac_ext
4296
4297  # OK, works on sane cases.  Now check whether nonexistent headers
4298  # can be detected and how.
4299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300/* end confdefs.h.  */
4301#include <ac_nonexistent.h>
4302_ACEOF
4303if ac_fn_c_try_cpp "$LINENO"; then :
4304  # Broken: success on invalid input.
4305continue
4306else
4307  # Passes both tests.
4308ac_preproc_ok=:
4309break
4310fi
4311rm -f conftest.err conftest.$ac_ext
4312
4313done
4314# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4315rm -f conftest.err conftest.$ac_ext
4316if $ac_preproc_ok; then :
4317
4318else
4319  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4321as_fn_error "C preprocessor \"$CPP\" fails sanity check
4322See \`config.log' for more details." "$LINENO" 5; }
4323fi
4324
4325ac_ext=c
4326ac_cpp='$CPP $CPPFLAGS'
4327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329ac_compiler_gnu=$ac_cv_c_compiler_gnu
4330
4331
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4333$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4334if test "${ac_cv_path_GREP+set}" = set; then :
4335  $as_echo_n "(cached) " >&6
4336else
4337  if test -z "$GREP"; then
4338  ac_path_GREP_found=false
4339  # Loop through the user's path and test for each of PROGNAME-LIST
4340  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4342do
4343  IFS=$as_save_IFS
4344  test -z "$as_dir" && as_dir=.
4345    for ac_prog in grep ggrep; do
4346    for ac_exec_ext in '' $ac_executable_extensions; do
4347      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4348      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4349# Check for GNU ac_path_GREP and select it if it is found.
4350  # Check for GNU $ac_path_GREP
4351case `"$ac_path_GREP" --version 2>&1` in
4352*GNU*)
4353  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4354*)
4355  ac_count=0
4356  $as_echo_n 0123456789 >"conftest.in"
4357  while :
4358  do
4359    cat "conftest.in" "conftest.in" >"conftest.tmp"
4360    mv "conftest.tmp" "conftest.in"
4361    cp "conftest.in" "conftest.nl"
4362    $as_echo 'GREP' >> "conftest.nl"
4363    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4364    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4365    as_fn_arith $ac_count + 1 && ac_count=$as_val
4366    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4367      # Best one so far, save it but keep looking for a better one
4368      ac_cv_path_GREP="$ac_path_GREP"
4369      ac_path_GREP_max=$ac_count
4370    fi
4371    # 10*(2^10) chars as input seems more than enough
4372    test $ac_count -gt 10 && break
4373  done
4374  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4375esac
4376
4377      $ac_path_GREP_found && break 3
4378    done
4379  done
4380  done
4381IFS=$as_save_IFS
4382  if test -z "$ac_cv_path_GREP"; then
4383    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4384  fi
4385else
4386  ac_cv_path_GREP=$GREP
4387fi
4388
4389fi
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4391$as_echo "$ac_cv_path_GREP" >&6; }
4392 GREP="$ac_cv_path_GREP"
4393
4394
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4396$as_echo_n "checking for egrep... " >&6; }
4397if test "${ac_cv_path_EGREP+set}" = set; then :
4398  $as_echo_n "(cached) " >&6
4399else
4400  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4401   then ac_cv_path_EGREP="$GREP -E"
4402   else
4403     if test -z "$EGREP"; then
4404  ac_path_EGREP_found=false
4405  # Loop through the user's path and test for each of PROGNAME-LIST
4406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4408do
4409  IFS=$as_save_IFS
4410  test -z "$as_dir" && as_dir=.
4411    for ac_prog in egrep; do
4412    for ac_exec_ext in '' $ac_executable_extensions; do
4413      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4414      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4415# Check for GNU ac_path_EGREP and select it if it is found.
4416  # Check for GNU $ac_path_EGREP
4417case `"$ac_path_EGREP" --version 2>&1` in
4418*GNU*)
4419  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4420*)
4421  ac_count=0
4422  $as_echo_n 0123456789 >"conftest.in"
4423  while :
4424  do
4425    cat "conftest.in" "conftest.in" >"conftest.tmp"
4426    mv "conftest.tmp" "conftest.in"
4427    cp "conftest.in" "conftest.nl"
4428    $as_echo 'EGREP' >> "conftest.nl"
4429    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4430    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4431    as_fn_arith $ac_count + 1 && ac_count=$as_val
4432    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4433      # Best one so far, save it but keep looking for a better one
4434      ac_cv_path_EGREP="$ac_path_EGREP"
4435      ac_path_EGREP_max=$ac_count
4436    fi
4437    # 10*(2^10) chars as input seems more than enough
4438    test $ac_count -gt 10 && break
4439  done
4440  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4441esac
4442
4443      $ac_path_EGREP_found && break 3
4444    done
4445  done
4446  done
4447IFS=$as_save_IFS
4448  if test -z "$ac_cv_path_EGREP"; then
4449    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4450  fi
4451else
4452  ac_cv_path_EGREP=$EGREP
4453fi
4454
4455   fi
4456fi
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4458$as_echo "$ac_cv_path_EGREP" >&6; }
4459 EGREP="$ac_cv_path_EGREP"
4460
4461
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4463$as_echo_n "checking for ANSI C header files... " >&6; }
4464if test "${ac_cv_header_stdc+set}" = set; then :
4465  $as_echo_n "(cached) " >&6
4466else
4467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468/* end confdefs.h.  */
4469#include <stdlib.h>
4470#include <stdarg.h>
4471#include <string.h>
4472#include <float.h>
4473
4474int
4475main ()
4476{
4477
4478  ;
4479  return 0;
4480}
4481_ACEOF
4482if ac_fn_c_try_compile "$LINENO"; then :
4483  ac_cv_header_stdc=yes
4484else
4485  ac_cv_header_stdc=no
4486fi
4487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488
4489if test $ac_cv_header_stdc = yes; then
4490  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492/* end confdefs.h.  */
4493#include <string.h>
4494
4495_ACEOF
4496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4497  $EGREP "memchr" >/dev/null 2>&1; then :
4498
4499else
4500  ac_cv_header_stdc=no
4501fi
4502rm -f conftest*
4503
4504fi
4505
4506if test $ac_cv_header_stdc = yes; then
4507  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509/* end confdefs.h.  */
4510#include <stdlib.h>
4511
4512_ACEOF
4513if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4514  $EGREP "free" >/dev/null 2>&1; then :
4515
4516else
4517  ac_cv_header_stdc=no
4518fi
4519rm -f conftest*
4520
4521fi
4522
4523if test $ac_cv_header_stdc = yes; then
4524  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4525  if test "$cross_compiling" = yes; then :
4526  :
4527else
4528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529/* end confdefs.h.  */
4530#include <ctype.h>
4531#include <stdlib.h>
4532#if ((' ' & 0x0FF) == 0x020)
4533# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4534# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4535#else
4536# define ISLOWER(c) \
4537		   (('a' <= (c) && (c) <= 'i') \
4538		     || ('j' <= (c) && (c) <= 'r') \
4539		     || ('s' <= (c) && (c) <= 'z'))
4540# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4541#endif
4542
4543#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4544int
4545main ()
4546{
4547  int i;
4548  for (i = 0; i < 256; i++)
4549    if (XOR (islower (i), ISLOWER (i))
4550	|| toupper (i) != TOUPPER (i))
4551      return 2;
4552  return 0;
4553}
4554_ACEOF
4555if ac_fn_c_try_run "$LINENO"; then :
4556
4557else
4558  ac_cv_header_stdc=no
4559fi
4560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4561  conftest.$ac_objext conftest.beam conftest.$ac_ext
4562fi
4563
4564fi
4565fi
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4567$as_echo "$ac_cv_header_stdc" >&6; }
4568if test $ac_cv_header_stdc = yes; then
4569
4570$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4571
4572fi
4573
4574# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4575for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4576		  inttypes.h stdint.h unistd.h
4577do :
4578  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4579ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4580"
4581eval as_val=\$$as_ac_Header
4582   if test "x$as_val" = x""yes; then :
4583  cat >>confdefs.h <<_ACEOF
4584#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4585_ACEOF
4586
4587fi
4588
4589done
4590
4591
4592
4593  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4594if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4595  MINIX=yes
4596else
4597  MINIX=
4598fi
4599
4600
4601  if test "$MINIX" = yes; then
4602
4603$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4604
4605
4606$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4607
4608
4609$as_echo "#define _MINIX 1" >>confdefs.h
4610
4611  fi
4612
4613
4614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4615$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4616if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4617  $as_echo_n "(cached) " >&6
4618else
4619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620/* end confdefs.h.  */
4621
4622#	  define __EXTENSIONS__ 1
4623	  $ac_includes_default
4624int
4625main ()
4626{
4627
4628  ;
4629  return 0;
4630}
4631_ACEOF
4632if ac_fn_c_try_compile "$LINENO"; then :
4633  ac_cv_safe_to_define___extensions__=yes
4634else
4635  ac_cv_safe_to_define___extensions__=no
4636fi
4637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638fi
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4640$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4641  test $ac_cv_safe_to_define___extensions__ = yes &&
4642    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4643
4644  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4645
4646  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4647
4648  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4649
4650  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4651
4652
4653
4654
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4656$as_echo_n "checking whether ln -s works... " >&6; }
4657LN_S=$as_ln_s
4658if test "$LN_S" = "ln -s"; then
4659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4660$as_echo "yes" >&6; }
4661else
4662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4663$as_echo "no, using $LN_S" >&6; }
4664fi
4665
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4667$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4668set x ${MAKE-make}
4669ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4670if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4671  $as_echo_n "(cached) " >&6
4672else
4673  cat >conftest.make <<\_ACEOF
4674SHELL = /bin/sh
4675all:
4676	@echo '@@@%%%=$(MAKE)=@@@%%%'
4677_ACEOF
4678# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4679case `${MAKE-make} -f conftest.make 2>/dev/null` in
4680  *@@@%%%=?*=@@@%%%*)
4681    eval ac_cv_prog_make_${ac_make}_set=yes;;
4682  *)
4683    eval ac_cv_prog_make_${ac_make}_set=no;;
4684esac
4685rm -f conftest.make
4686fi
4687if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4689$as_echo "yes" >&6; }
4690  SET_MAKE=
4691else
4692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693$as_echo "no" >&6; }
4694  SET_MAKE="MAKE=${MAKE-make}"
4695fi
4696
4697case `pwd` in
4698  *\ * | *\	*)
4699    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4700$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4701esac
4702
4703
4704
4705macro_version='2.2.6'
4706macro_revision='1.3012'
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720ltmain="$ac_aux_dir/ltmain.sh"
4721
4722# Make sure we can run config.sub.
4723$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4724  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4725
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4727$as_echo_n "checking build system type... " >&6; }
4728if test "${ac_cv_build+set}" = set; then :
4729  $as_echo_n "(cached) " >&6
4730else
4731  ac_build_alias=$build_alias
4732test "x$ac_build_alias" = x &&
4733  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4734test "x$ac_build_alias" = x &&
4735  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4736ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4737  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4738
4739fi
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4741$as_echo "$ac_cv_build" >&6; }
4742case $ac_cv_build in
4743*-*-*) ;;
4744*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4745esac
4746build=$ac_cv_build
4747ac_save_IFS=$IFS; IFS='-'
4748set x $ac_cv_build
4749shift
4750build_cpu=$1
4751build_vendor=$2
4752shift; shift
4753# Remember, the first character of IFS is used to create $*,
4754# except with old shells:
4755build_os=$*
4756IFS=$ac_save_IFS
4757case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4758
4759
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4761$as_echo_n "checking host system type... " >&6; }
4762if test "${ac_cv_host+set}" = set; then :
4763  $as_echo_n "(cached) " >&6
4764else
4765  if test "x$host_alias" = x; then
4766  ac_cv_host=$ac_cv_build
4767else
4768  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4769    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4770fi
4771
4772fi
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4774$as_echo "$ac_cv_host" >&6; }
4775case $ac_cv_host in
4776*-*-*) ;;
4777*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4778esac
4779host=$ac_cv_host
4780ac_save_IFS=$IFS; IFS='-'
4781set x $ac_cv_host
4782shift
4783host_cpu=$1
4784host_vendor=$2
4785shift; shift
4786# Remember, the first character of IFS is used to create $*,
4787# except with old shells:
4788host_os=$*
4789IFS=$ac_save_IFS
4790case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4791
4792
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4794$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4795if test "${ac_cv_path_SED+set}" = set; then :
4796  $as_echo_n "(cached) " >&6
4797else
4798            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4799     for ac_i in 1 2 3 4 5 6 7; do
4800       ac_script="$ac_script$as_nl$ac_script"
4801     done
4802     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4803     { ac_script=; unset ac_script;}
4804     if test -z "$SED"; then
4805  ac_path_SED_found=false
4806  # Loop through the user's path and test for each of PROGNAME-LIST
4807  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808for as_dir in $PATH
4809do
4810  IFS=$as_save_IFS
4811  test -z "$as_dir" && as_dir=.
4812    for ac_prog in sed gsed; do
4813    for ac_exec_ext in '' $ac_executable_extensions; do
4814      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4815      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4816# Check for GNU ac_path_SED and select it if it is found.
4817  # Check for GNU $ac_path_SED
4818case `"$ac_path_SED" --version 2>&1` in
4819*GNU*)
4820  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4821*)
4822  ac_count=0
4823  $as_echo_n 0123456789 >"conftest.in"
4824  while :
4825  do
4826    cat "conftest.in" "conftest.in" >"conftest.tmp"
4827    mv "conftest.tmp" "conftest.in"
4828    cp "conftest.in" "conftest.nl"
4829    $as_echo '' >> "conftest.nl"
4830    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4831    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4832    as_fn_arith $ac_count + 1 && ac_count=$as_val
4833    if test $ac_count -gt ${ac_path_SED_max-0}; then
4834      # Best one so far, save it but keep looking for a better one
4835      ac_cv_path_SED="$ac_path_SED"
4836      ac_path_SED_max=$ac_count
4837    fi
4838    # 10*(2^10) chars as input seems more than enough
4839    test $ac_count -gt 10 && break
4840  done
4841  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4842esac
4843
4844      $ac_path_SED_found && break 3
4845    done
4846  done
4847  done
4848IFS=$as_save_IFS
4849  if test -z "$ac_cv_path_SED"; then
4850    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4851  fi
4852else
4853  ac_cv_path_SED=$SED
4854fi
4855
4856fi
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4858$as_echo "$ac_cv_path_SED" >&6; }
4859 SED="$ac_cv_path_SED"
4860  rm -f conftest.sed
4861
4862test -z "$SED" && SED=sed
4863Xsed="$SED -e 1s/^X//"
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4876$as_echo_n "checking for fgrep... " >&6; }
4877if test "${ac_cv_path_FGREP+set}" = set; then :
4878  $as_echo_n "(cached) " >&6
4879else
4880  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4881   then ac_cv_path_FGREP="$GREP -F"
4882   else
4883     if test -z "$FGREP"; then
4884  ac_path_FGREP_found=false
4885  # Loop through the user's path and test for each of PROGNAME-LIST
4886  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4888do
4889  IFS=$as_save_IFS
4890  test -z "$as_dir" && as_dir=.
4891    for ac_prog in fgrep; do
4892    for ac_exec_ext in '' $ac_executable_extensions; do
4893      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4894      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4895# Check for GNU ac_path_FGREP and select it if it is found.
4896  # Check for GNU $ac_path_FGREP
4897case `"$ac_path_FGREP" --version 2>&1` in
4898*GNU*)
4899  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4900*)
4901  ac_count=0
4902  $as_echo_n 0123456789 >"conftest.in"
4903  while :
4904  do
4905    cat "conftest.in" "conftest.in" >"conftest.tmp"
4906    mv "conftest.tmp" "conftest.in"
4907    cp "conftest.in" "conftest.nl"
4908    $as_echo 'FGREP' >> "conftest.nl"
4909    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4910    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4911    as_fn_arith $ac_count + 1 && ac_count=$as_val
4912    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4913      # Best one so far, save it but keep looking for a better one
4914      ac_cv_path_FGREP="$ac_path_FGREP"
4915      ac_path_FGREP_max=$ac_count
4916    fi
4917    # 10*(2^10) chars as input seems more than enough
4918    test $ac_count -gt 10 && break
4919  done
4920  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4921esac
4922
4923      $ac_path_FGREP_found && break 3
4924    done
4925  done
4926  done
4927IFS=$as_save_IFS
4928  if test -z "$ac_cv_path_FGREP"; then
4929    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4930  fi
4931else
4932  ac_cv_path_FGREP=$FGREP
4933fi
4934
4935   fi
4936fi
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4938$as_echo "$ac_cv_path_FGREP" >&6; }
4939 FGREP="$ac_cv_path_FGREP"
4940
4941
4942test -z "$GREP" && GREP=grep
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962# Check whether --with-gnu-ld was given.
4963if test "${with_gnu_ld+set}" = set; then :
4964  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4965else
4966  with_gnu_ld=no
4967fi
4968
4969ac_prog=ld
4970if test "$GCC" = yes; then
4971  # Check if gcc -print-prog-name=ld gives a path.
4972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4973$as_echo_n "checking for ld used by $CC... " >&6; }
4974  case $host in
4975  *-*-mingw*)
4976    # gcc leaves a trailing carriage return which upsets mingw
4977    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4978  *)
4979    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4980  esac
4981  case $ac_prog in
4982    # Accept absolute paths.
4983    [\\/]* | ?:[\\/]*)
4984      re_direlt='/[^/][^/]*/\.\./'
4985      # Canonicalize the pathname of ld
4986      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4987      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4988	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4989      done
4990      test -z "$LD" && LD="$ac_prog"
4991      ;;
4992  "")
4993    # If it fails, then pretend we aren't using GCC.
4994    ac_prog=ld
4995    ;;
4996  *)
4997    # If it is relative, then search for the first ld in PATH.
4998    with_gnu_ld=unknown
4999    ;;
5000  esac
5001elif test "$with_gnu_ld" = yes; then
5002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5003$as_echo_n "checking for GNU ld... " >&6; }
5004else
5005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5006$as_echo_n "checking for non-GNU ld... " >&6; }
5007fi
5008if test "${lt_cv_path_LD+set}" = set; then :
5009  $as_echo_n "(cached) " >&6
5010else
5011  if test -z "$LD"; then
5012  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5013  for ac_dir in $PATH; do
5014    IFS="$lt_save_ifs"
5015    test -z "$ac_dir" && ac_dir=.
5016    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5017      lt_cv_path_LD="$ac_dir/$ac_prog"
5018      # Check to see if the program is GNU ld.  I'd rather use --version,
5019      # but apparently some variants of GNU ld only accept -v.
5020      # Break only if it was the GNU/non-GNU ld that we prefer.
5021      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5022      *GNU* | *'with BFD'*)
5023	test "$with_gnu_ld" != no && break
5024	;;
5025      *)
5026	test "$with_gnu_ld" != yes && break
5027	;;
5028      esac
5029    fi
5030  done
5031  IFS="$lt_save_ifs"
5032else
5033  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5034fi
5035fi
5036
5037LD="$lt_cv_path_LD"
5038if test -n "$LD"; then
5039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5040$as_echo "$LD" >&6; }
5041else
5042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043$as_echo "no" >&6; }
5044fi
5045test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5047$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5048if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5049  $as_echo_n "(cached) " >&6
5050else
5051  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5052case `$LD -v 2>&1 </dev/null` in
5053*GNU* | *'with BFD'*)
5054  lt_cv_prog_gnu_ld=yes
5055  ;;
5056*)
5057  lt_cv_prog_gnu_ld=no
5058  ;;
5059esac
5060fi
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5062$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5063with_gnu_ld=$lt_cv_prog_gnu_ld
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5074$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5075if test "${lt_cv_path_NM+set}" = set; then :
5076  $as_echo_n "(cached) " >&6
5077else
5078  if test -n "$NM"; then
5079  # Let the user override the test.
5080  lt_cv_path_NM="$NM"
5081else
5082  lt_nm_to_check="${ac_tool_prefix}nm"
5083  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5084    lt_nm_to_check="$lt_nm_to_check nm"
5085  fi
5086  for lt_tmp_nm in $lt_nm_to_check; do
5087    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5088    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5089      IFS="$lt_save_ifs"
5090      test -z "$ac_dir" && ac_dir=.
5091      tmp_nm="$ac_dir/$lt_tmp_nm"
5092      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5093	# Check to see if the nm accepts a BSD-compat flag.
5094	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5095	#   nm: unknown option "B" ignored
5096	# Tru64's nm complains that /dev/null is an invalid object file
5097	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5098	*/dev/null* | *'Invalid file or object type'*)
5099	  lt_cv_path_NM="$tmp_nm -B"
5100	  break
5101	  ;;
5102	*)
5103	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5104	  */dev/null*)
5105	    lt_cv_path_NM="$tmp_nm -p"
5106	    break
5107	    ;;
5108	  *)
5109	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5110	    continue # so that we can try to find one that supports BSD flags
5111	    ;;
5112	  esac
5113	  ;;
5114	esac
5115      fi
5116    done
5117    IFS="$lt_save_ifs"
5118  done
5119  : ${lt_cv_path_NM=no}
5120fi
5121fi
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5123$as_echo "$lt_cv_path_NM" >&6; }
5124if test "$lt_cv_path_NM" != "no"; then
5125  NM="$lt_cv_path_NM"
5126else
5127  # Didn't find any BSD compatible name lister, look for dumpbin.
5128  if test -n "$ac_tool_prefix"; then
5129  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5130  do
5131    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5132set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134$as_echo_n "checking for $ac_word... " >&6; }
5135if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5136  $as_echo_n "(cached) " >&6
5137else
5138  if test -n "$DUMPBIN"; then
5139  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5140else
5141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH
5143do
5144  IFS=$as_save_IFS
5145  test -z "$as_dir" && as_dir=.
5146    for ac_exec_ext in '' $ac_executable_extensions; do
5147  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150    break 2
5151  fi
5152done
5153  done
5154IFS=$as_save_IFS
5155
5156fi
5157fi
5158DUMPBIN=$ac_cv_prog_DUMPBIN
5159if test -n "$DUMPBIN"; then
5160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5161$as_echo "$DUMPBIN" >&6; }
5162else
5163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164$as_echo "no" >&6; }
5165fi
5166
5167
5168    test -n "$DUMPBIN" && break
5169  done
5170fi
5171if test -z "$DUMPBIN"; then
5172  ac_ct_DUMPBIN=$DUMPBIN
5173  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5174do
5175  # Extract the first word of "$ac_prog", so it can be a program name with args.
5176set dummy $ac_prog; ac_word=$2
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178$as_echo_n "checking for $ac_word... " >&6; }
5179if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5180  $as_echo_n "(cached) " >&6
5181else
5182  if test -n "$ac_ct_DUMPBIN"; then
5183  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5184else
5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH
5187do
5188  IFS=$as_save_IFS
5189  test -z "$as_dir" && as_dir=.
5190    for ac_exec_ext in '' $ac_executable_extensions; do
5191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194    break 2
5195  fi
5196done
5197  done
5198IFS=$as_save_IFS
5199
5200fi
5201fi
5202ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5203if test -n "$ac_ct_DUMPBIN"; then
5204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5205$as_echo "$ac_ct_DUMPBIN" >&6; }
5206else
5207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208$as_echo "no" >&6; }
5209fi
5210
5211
5212  test -n "$ac_ct_DUMPBIN" && break
5213done
5214
5215  if test "x$ac_ct_DUMPBIN" = x; then
5216    DUMPBIN=":"
5217  else
5218    case $cross_compiling:$ac_tool_warned in
5219yes:)
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5222ac_tool_warned=yes ;;
5223esac
5224    DUMPBIN=$ac_ct_DUMPBIN
5225  fi
5226fi
5227
5228
5229  if test "$DUMPBIN" != ":"; then
5230    NM="$DUMPBIN"
5231  fi
5232fi
5233test -z "$NM" && NM=nm
5234
5235
5236
5237
5238
5239
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5241$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5242if test "${lt_cv_nm_interface+set}" = set; then :
5243  $as_echo_n "(cached) " >&6
5244else
5245  lt_cv_nm_interface="BSD nm"
5246  echo "int some_variable = 0;" > conftest.$ac_ext
5247  (eval echo "\"\$as_me:5247: $ac_compile\"" >&5)
5248  (eval "$ac_compile" 2>conftest.err)
5249  cat conftest.err >&5
5250  (eval echo "\"\$as_me:5250: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5251  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5252  cat conftest.err >&5
5253  (eval echo "\"\$as_me:5253: output\"" >&5)
5254  cat conftest.out >&5
5255  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5256    lt_cv_nm_interface="MS dumpbin"
5257  fi
5258  rm -f conftest*
5259fi
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5261$as_echo "$lt_cv_nm_interface" >&6; }
5262
5263# find the maximum length of command line arguments
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5265$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5266if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5267  $as_echo_n "(cached) " >&6
5268else
5269    i=0
5270  teststring="ABCD"
5271
5272  case $build_os in
5273  msdosdjgpp*)
5274    # On DJGPP, this test can blow up pretty badly due to problems in libc
5275    # (any single argument exceeding 2000 bytes causes a buffer overrun
5276    # during glob expansion).  Even if it were fixed, the result of this
5277    # check would be larger than it should be.
5278    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5279    ;;
5280
5281  gnu*)
5282    # Under GNU Hurd, this test is not required because there is
5283    # no limit to the length of command line arguments.
5284    # Libtool will interpret -1 as no limit whatsoever
5285    lt_cv_sys_max_cmd_len=-1;
5286    ;;
5287
5288  cygwin* | mingw* | cegcc*)
5289    # On Win9x/ME, this test blows up -- it succeeds, but takes
5290    # about 5 minutes as the teststring grows exponentially.
5291    # Worse, since 9x/ME are not pre-emptively multitasking,
5292    # you end up with a "frozen" computer, even though with patience
5293    # the test eventually succeeds (with a max line length of 256k).
5294    # Instead, let's just punt: use the minimum linelength reported by
5295    # all of the supported platforms: 8192 (on NT/2K/XP).
5296    lt_cv_sys_max_cmd_len=8192;
5297    ;;
5298
5299  amigaos*)
5300    # On AmigaOS with pdksh, this test takes hours, literally.
5301    # So we just punt and use a minimum line length of 8192.
5302    lt_cv_sys_max_cmd_len=8192;
5303    ;;
5304
5305  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5306    # This has been around since 386BSD, at least.  Likely further.
5307    if test -x /sbin/sysctl; then
5308      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5309    elif test -x /usr/sbin/sysctl; then
5310      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5311    else
5312      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5313    fi
5314    # And add a safety zone
5315    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5316    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5317    ;;
5318
5319  interix*)
5320    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5321    lt_cv_sys_max_cmd_len=196608
5322    ;;
5323
5324  osf*)
5325    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5326    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5327    # nice to cause kernel panics so lets avoid the loop below.
5328    # First set a reasonable default.
5329    lt_cv_sys_max_cmd_len=16384
5330    #
5331    if test -x /sbin/sysconfig; then
5332      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5333        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5334      esac
5335    fi
5336    ;;
5337  sco3.2v5*)
5338    lt_cv_sys_max_cmd_len=102400
5339    ;;
5340  sysv5* | sco5v6* | sysv4.2uw2*)
5341    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5342    if test -n "$kargmax"; then
5343      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5344    else
5345      lt_cv_sys_max_cmd_len=32768
5346    fi
5347    ;;
5348  *)
5349    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5350    if test -n "$lt_cv_sys_max_cmd_len"; then
5351      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5352      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5353    else
5354      # Make teststring a little bigger before we do anything with it.
5355      # a 1K string should be a reasonable start.
5356      for i in 1 2 3 4 5 6 7 8 ; do
5357        teststring=$teststring$teststring
5358      done
5359      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5360      # If test is not a shell built-in, we'll probably end up computing a
5361      # maximum length that is only half of the actual maximum length, but
5362      # we can't tell.
5363      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5364	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5365	      test $i != 17 # 1/2 MB should be enough
5366      do
5367        i=`expr $i + 1`
5368        teststring=$teststring$teststring
5369      done
5370      # Only check the string length outside the loop.
5371      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5372      teststring=
5373      # Add a significant safety factor because C++ compilers can tack on
5374      # massive amounts of additional arguments before passing them to the
5375      # linker.  It appears as though 1/2 is a usable value.
5376      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5377    fi
5378    ;;
5379  esac
5380
5381fi
5382
5383if test -n $lt_cv_sys_max_cmd_len ; then
5384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5385$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5386else
5387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5388$as_echo "none" >&6; }
5389fi
5390max_cmd_len=$lt_cv_sys_max_cmd_len
5391
5392
5393
5394
5395
5396
5397: ${CP="cp -f"}
5398: ${MV="mv -f"}
5399: ${RM="rm -f"}
5400
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5402$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5403# Try some XSI features
5404xsi_shell=no
5405( _lt_dummy="a/b/c"
5406  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5407      = c,a/b,, \
5408    && eval 'test $(( 1 + 1 )) -eq 2 \
5409    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5410  && xsi_shell=yes
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5412$as_echo "$xsi_shell" >&6; }
5413
5414
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5416$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5417lt_shell_append=no
5418( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5419    >/dev/null 2>&1 \
5420  && lt_shell_append=yes
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5422$as_echo "$lt_shell_append" >&6; }
5423
5424
5425if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5426  lt_unset=unset
5427else
5428  lt_unset=false
5429fi
5430
5431
5432
5433
5434
5435# test EBCDIC or ASCII
5436case `echo X|tr X '\101'` in
5437 A) # ASCII based system
5438    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5439  lt_SP2NL='tr \040 \012'
5440  lt_NL2SP='tr \015\012 \040\040'
5441  ;;
5442 *) # EBCDIC based system
5443  lt_SP2NL='tr \100 \n'
5444  lt_NL2SP='tr \r\n \100\100'
5445  ;;
5446esac
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5457$as_echo_n "checking for $LD option to reload object files... " >&6; }
5458if test "${lt_cv_ld_reload_flag+set}" = set; then :
5459  $as_echo_n "(cached) " >&6
5460else
5461  lt_cv_ld_reload_flag='-r'
5462fi
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5464$as_echo "$lt_cv_ld_reload_flag" >&6; }
5465reload_flag=$lt_cv_ld_reload_flag
5466case $reload_flag in
5467"" | " "*) ;;
5468*) reload_flag=" $reload_flag" ;;
5469esac
5470reload_cmds='$LD$reload_flag -o $output$reload_objs'
5471case $host_os in
5472  darwin*)
5473    if test "$GCC" = yes; then
5474      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5475    else
5476      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5477    fi
5478    ;;
5479esac
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489if test -n "$ac_tool_prefix"; then
5490  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5491set dummy ${ac_tool_prefix}objdump; ac_word=$2
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493$as_echo_n "checking for $ac_word... " >&6; }
5494if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5495  $as_echo_n "(cached) " >&6
5496else
5497  if test -n "$OBJDUMP"; then
5498  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5499else
5500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501for as_dir in $PATH
5502do
5503  IFS=$as_save_IFS
5504  test -z "$as_dir" && as_dir=.
5505    for ac_exec_ext in '' $ac_executable_extensions; do
5506  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5507    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509    break 2
5510  fi
5511done
5512  done
5513IFS=$as_save_IFS
5514
5515fi
5516fi
5517OBJDUMP=$ac_cv_prog_OBJDUMP
5518if test -n "$OBJDUMP"; then
5519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5520$as_echo "$OBJDUMP" >&6; }
5521else
5522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523$as_echo "no" >&6; }
5524fi
5525
5526
5527fi
5528if test -z "$ac_cv_prog_OBJDUMP"; then
5529  ac_ct_OBJDUMP=$OBJDUMP
5530  # Extract the first word of "objdump", so it can be a program name with args.
5531set dummy objdump; ac_word=$2
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533$as_echo_n "checking for $ac_word... " >&6; }
5534if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5535  $as_echo_n "(cached) " >&6
5536else
5537  if test -n "$ac_ct_OBJDUMP"; then
5538  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5539else
5540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541for as_dir in $PATH
5542do
5543  IFS=$as_save_IFS
5544  test -z "$as_dir" && as_dir=.
5545    for ac_exec_ext in '' $ac_executable_extensions; do
5546  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5547    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549    break 2
5550  fi
5551done
5552  done
5553IFS=$as_save_IFS
5554
5555fi
5556fi
5557ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5558if test -n "$ac_ct_OBJDUMP"; then
5559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5560$as_echo "$ac_ct_OBJDUMP" >&6; }
5561else
5562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563$as_echo "no" >&6; }
5564fi
5565
5566  if test "x$ac_ct_OBJDUMP" = x; then
5567    OBJDUMP="false"
5568  else
5569    case $cross_compiling:$ac_tool_warned in
5570yes:)
5571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5573ac_tool_warned=yes ;;
5574esac
5575    OBJDUMP=$ac_ct_OBJDUMP
5576  fi
5577else
5578  OBJDUMP="$ac_cv_prog_OBJDUMP"
5579fi
5580
5581test -z "$OBJDUMP" && OBJDUMP=objdump
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5592$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5593if test "${lt_cv_deplibs_check_method+set}" = set; then :
5594  $as_echo_n "(cached) " >&6
5595else
5596  lt_cv_file_magic_cmd='$MAGIC_CMD'
5597lt_cv_file_magic_test_file=
5598lt_cv_deplibs_check_method='unknown'
5599# Need to set the preceding variable on all platforms that support
5600# interlibrary dependencies.
5601# 'none' -- dependencies not supported.
5602# `unknown' -- same as none, but documents that we really don't know.
5603# 'pass_all' -- all dependencies passed with no checks.
5604# 'test_compile' -- check by making test program.
5605# 'file_magic [[regex]]' -- check by looking for files in library path
5606# which responds to the $file_magic_cmd with a given extended regex.
5607# If you have `file' or equivalent on your system and you're not sure
5608# whether `pass_all' will *always* work, you probably want this one.
5609
5610case $host_os in
5611aix[4-9]*)
5612  lt_cv_deplibs_check_method=pass_all
5613  ;;
5614
5615beos*)
5616  lt_cv_deplibs_check_method=pass_all
5617  ;;
5618
5619bsdi[45]*)
5620  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5621  lt_cv_file_magic_cmd='/usr/bin/file -L'
5622  lt_cv_file_magic_test_file=/shlib/libc.so
5623  ;;
5624
5625cygwin*)
5626  # func_win32_libid is a shell function defined in ltmain.sh
5627  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5628  lt_cv_file_magic_cmd='func_win32_libid'
5629  ;;
5630
5631mingw* | pw32*)
5632  # Base MSYS/MinGW do not provide the 'file' command needed by
5633  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5634  # unless we find 'file', for example because we are cross-compiling.
5635  if ( file / ) >/dev/null 2>&1; then
5636    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5637    lt_cv_file_magic_cmd='func_win32_libid'
5638  else
5639    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5640    lt_cv_file_magic_cmd='$OBJDUMP -f'
5641  fi
5642  ;;
5643
5644cegcc)
5645  # use the weaker test based on 'objdump'. See mingw*.
5646  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5647  lt_cv_file_magic_cmd='$OBJDUMP -f'
5648  ;;
5649
5650darwin* | rhapsody*)
5651  lt_cv_deplibs_check_method=pass_all
5652  ;;
5653
5654freebsd* | dragonfly*)
5655  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5656    case $host_cpu in
5657    i*86 )
5658      # Not sure whether the presence of OpenBSD here was a mistake.
5659      # Let's accept both of them until this is cleared up.
5660      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5661      lt_cv_file_magic_cmd=/usr/bin/file
5662      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5663      ;;
5664    esac
5665  else
5666    lt_cv_deplibs_check_method=pass_all
5667  fi
5668  ;;
5669
5670gnu*)
5671  lt_cv_deplibs_check_method=pass_all
5672  ;;
5673
5674hpux10.20* | hpux11*)
5675  lt_cv_file_magic_cmd=/usr/bin/file
5676  case $host_cpu in
5677  ia64*)
5678    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5679    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5680    ;;
5681  hppa*64*)
5682    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]'
5683    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5684    ;;
5685  *)
5686    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5687    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5688    ;;
5689  esac
5690  ;;
5691
5692interix[3-9]*)
5693  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5694  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5695  ;;
5696
5697irix5* | irix6* | nonstopux*)
5698  case $LD in
5699  *-32|*"-32 ") libmagic=32-bit;;
5700  *-n32|*"-n32 ") libmagic=N32;;
5701  *-64|*"-64 ") libmagic=64-bit;;
5702  *) libmagic=never-match;;
5703  esac
5704  lt_cv_deplibs_check_method=pass_all
5705  ;;
5706
5707# This must be Linux ELF.
5708linux* | k*bsd*-gnu)
5709  lt_cv_deplibs_check_method=pass_all
5710  ;;
5711
5712netbsd*)
5713  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5714    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5715  else
5716    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5717  fi
5718  ;;
5719
5720newos6*)
5721  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5722  lt_cv_file_magic_cmd=/usr/bin/file
5723  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5724  ;;
5725
5726*nto* | *qnx*)
5727  lt_cv_deplibs_check_method=pass_all
5728  ;;
5729
5730openbsd*)
5731  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5732    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5733  else
5734    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5735  fi
5736  ;;
5737
5738osf3* | osf4* | osf5*)
5739  lt_cv_deplibs_check_method=pass_all
5740  ;;
5741
5742rdos*)
5743  lt_cv_deplibs_check_method=pass_all
5744  ;;
5745
5746solaris*)
5747  lt_cv_deplibs_check_method=pass_all
5748  ;;
5749
5750sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5751  lt_cv_deplibs_check_method=pass_all
5752  ;;
5753
5754sysv4 | sysv4.3*)
5755  case $host_vendor in
5756  motorola)
5757    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]'
5758    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5759    ;;
5760  ncr)
5761    lt_cv_deplibs_check_method=pass_all
5762    ;;
5763  sequent)
5764    lt_cv_file_magic_cmd='/bin/file'
5765    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5766    ;;
5767  sni)
5768    lt_cv_file_magic_cmd='/bin/file'
5769    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5770    lt_cv_file_magic_test_file=/lib/libc.so
5771    ;;
5772  siemens)
5773    lt_cv_deplibs_check_method=pass_all
5774    ;;
5775  pc)
5776    lt_cv_deplibs_check_method=pass_all
5777    ;;
5778  esac
5779  ;;
5780
5781tpf*)
5782  lt_cv_deplibs_check_method=pass_all
5783  ;;
5784esac
5785
5786fi
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5788$as_echo "$lt_cv_deplibs_check_method" >&6; }
5789file_magic_cmd=$lt_cv_file_magic_cmd
5790deplibs_check_method=$lt_cv_deplibs_check_method
5791test -z "$deplibs_check_method" && deplibs_check_method=unknown
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804if test -n "$ac_tool_prefix"; then
5805  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5806set dummy ${ac_tool_prefix}ar; ac_word=$2
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808$as_echo_n "checking for $ac_word... " >&6; }
5809if test "${ac_cv_prog_AR+set}" = set; then :
5810  $as_echo_n "(cached) " >&6
5811else
5812  if test -n "$AR"; then
5813  ac_cv_prog_AR="$AR" # Let the user override the test.
5814else
5815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816for as_dir in $PATH
5817do
5818  IFS=$as_save_IFS
5819  test -z "$as_dir" && as_dir=.
5820    for ac_exec_ext in '' $ac_executable_extensions; do
5821  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5822    ac_cv_prog_AR="${ac_tool_prefix}ar"
5823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824    break 2
5825  fi
5826done
5827  done
5828IFS=$as_save_IFS
5829
5830fi
5831fi
5832AR=$ac_cv_prog_AR
5833if test -n "$AR"; then
5834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5835$as_echo "$AR" >&6; }
5836else
5837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838$as_echo "no" >&6; }
5839fi
5840
5841
5842fi
5843if test -z "$ac_cv_prog_AR"; then
5844  ac_ct_AR=$AR
5845  # Extract the first word of "ar", so it can be a program name with args.
5846set dummy ar; ac_word=$2
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848$as_echo_n "checking for $ac_word... " >&6; }
5849if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5850  $as_echo_n "(cached) " >&6
5851else
5852  if test -n "$ac_ct_AR"; then
5853  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5854else
5855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856for as_dir in $PATH
5857do
5858  IFS=$as_save_IFS
5859  test -z "$as_dir" && as_dir=.
5860    for ac_exec_ext in '' $ac_executable_extensions; do
5861  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862    ac_cv_prog_ac_ct_AR="ar"
5863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864    break 2
5865  fi
5866done
5867  done
5868IFS=$as_save_IFS
5869
5870fi
5871fi
5872ac_ct_AR=$ac_cv_prog_ac_ct_AR
5873if test -n "$ac_ct_AR"; then
5874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5875$as_echo "$ac_ct_AR" >&6; }
5876else
5877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878$as_echo "no" >&6; }
5879fi
5880
5881  if test "x$ac_ct_AR" = x; then
5882    AR="false"
5883  else
5884    case $cross_compiling:$ac_tool_warned in
5885yes:)
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5888ac_tool_warned=yes ;;
5889esac
5890    AR=$ac_ct_AR
5891  fi
5892else
5893  AR="$ac_cv_prog_AR"
5894fi
5895
5896test -z "$AR" && AR=ar
5897test -z "$AR_FLAGS" && AR_FLAGS=cru
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909if test -n "$ac_tool_prefix"; then
5910  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5911set dummy ${ac_tool_prefix}strip; ac_word=$2
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913$as_echo_n "checking for $ac_word... " >&6; }
5914if test "${ac_cv_prog_STRIP+set}" = set; then :
5915  $as_echo_n "(cached) " >&6
5916else
5917  if test -n "$STRIP"; then
5918  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5919else
5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH
5922do
5923  IFS=$as_save_IFS
5924  test -z "$as_dir" && as_dir=.
5925    for ac_exec_ext in '' $ac_executable_extensions; do
5926  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929    break 2
5930  fi
5931done
5932  done
5933IFS=$as_save_IFS
5934
5935fi
5936fi
5937STRIP=$ac_cv_prog_STRIP
5938if test -n "$STRIP"; then
5939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5940$as_echo "$STRIP" >&6; }
5941else
5942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943$as_echo "no" >&6; }
5944fi
5945
5946
5947fi
5948if test -z "$ac_cv_prog_STRIP"; then
5949  ac_ct_STRIP=$STRIP
5950  # Extract the first word of "strip", so it can be a program name with args.
5951set dummy strip; ac_word=$2
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953$as_echo_n "checking for $ac_word... " >&6; }
5954if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5955  $as_echo_n "(cached) " >&6
5956else
5957  if test -n "$ac_ct_STRIP"; then
5958  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5959else
5960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961for as_dir in $PATH
5962do
5963  IFS=$as_save_IFS
5964  test -z "$as_dir" && as_dir=.
5965    for ac_exec_ext in '' $ac_executable_extensions; do
5966  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967    ac_cv_prog_ac_ct_STRIP="strip"
5968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969    break 2
5970  fi
5971done
5972  done
5973IFS=$as_save_IFS
5974
5975fi
5976fi
5977ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5978if test -n "$ac_ct_STRIP"; then
5979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5980$as_echo "$ac_ct_STRIP" >&6; }
5981else
5982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983$as_echo "no" >&6; }
5984fi
5985
5986  if test "x$ac_ct_STRIP" = x; then
5987    STRIP=":"
5988  else
5989    case $cross_compiling:$ac_tool_warned in
5990yes:)
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5993ac_tool_warned=yes ;;
5994esac
5995    STRIP=$ac_ct_STRIP
5996  fi
5997else
5998  STRIP="$ac_cv_prog_STRIP"
5999fi
6000
6001test -z "$STRIP" && STRIP=:
6002
6003
6004
6005
6006
6007
6008if test -n "$ac_tool_prefix"; then
6009  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6010set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012$as_echo_n "checking for $ac_word... " >&6; }
6013if test "${ac_cv_prog_RANLIB+set}" = set; then :
6014  $as_echo_n "(cached) " >&6
6015else
6016  if test -n "$RANLIB"; then
6017  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6018else
6019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020for as_dir in $PATH
6021do
6022  IFS=$as_save_IFS
6023  test -z "$as_dir" && as_dir=.
6024    for ac_exec_ext in '' $ac_executable_extensions; do
6025  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6026    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028    break 2
6029  fi
6030done
6031  done
6032IFS=$as_save_IFS
6033
6034fi
6035fi
6036RANLIB=$ac_cv_prog_RANLIB
6037if test -n "$RANLIB"; then
6038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6039$as_echo "$RANLIB" >&6; }
6040else
6041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042$as_echo "no" >&6; }
6043fi
6044
6045
6046fi
6047if test -z "$ac_cv_prog_RANLIB"; then
6048  ac_ct_RANLIB=$RANLIB
6049  # Extract the first word of "ranlib", so it can be a program name with args.
6050set dummy ranlib; ac_word=$2
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052$as_echo_n "checking for $ac_word... " >&6; }
6053if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6054  $as_echo_n "(cached) " >&6
6055else
6056  if test -n "$ac_ct_RANLIB"; then
6057  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6058else
6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062  IFS=$as_save_IFS
6063  test -z "$as_dir" && as_dir=.
6064    for ac_exec_ext in '' $ac_executable_extensions; do
6065  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066    ac_cv_prog_ac_ct_RANLIB="ranlib"
6067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068    break 2
6069  fi
6070done
6071  done
6072IFS=$as_save_IFS
6073
6074fi
6075fi
6076ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6077if test -n "$ac_ct_RANLIB"; then
6078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6079$as_echo "$ac_ct_RANLIB" >&6; }
6080else
6081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082$as_echo "no" >&6; }
6083fi
6084
6085  if test "x$ac_ct_RANLIB" = x; then
6086    RANLIB=":"
6087  else
6088    case $cross_compiling:$ac_tool_warned in
6089yes:)
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6092ac_tool_warned=yes ;;
6093esac
6094    RANLIB=$ac_ct_RANLIB
6095  fi
6096else
6097  RANLIB="$ac_cv_prog_RANLIB"
6098fi
6099
6100test -z "$RANLIB" && RANLIB=:
6101
6102
6103
6104
6105
6106
6107# Determine commands to create old-style static archives.
6108old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6109old_postinstall_cmds='chmod 644 $oldlib'
6110old_postuninstall_cmds=
6111
6112if test -n "$RANLIB"; then
6113  case $host_os in
6114  openbsd*)
6115    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6116    ;;
6117  *)
6118    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6119    ;;
6120  esac
6121  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6122fi
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157# If no C compiler was specified, use CC.
6158LTCC=${LTCC-"$CC"}
6159
6160# If no C compiler flags were specified, use CFLAGS.
6161LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6162
6163# Allow CC to be a program name with arguments.
6164compiler=$CC
6165
6166
6167# Check for command to grab the raw symbol name followed by C symbol from nm.
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6169$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6170if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6171  $as_echo_n "(cached) " >&6
6172else
6173
6174# These are sane defaults that work on at least a few old systems.
6175# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6176
6177# Character class describing NM global symbol codes.
6178symcode='[BCDEGRST]'
6179
6180# Regexp to match symbols that can be accessed directly from C.
6181sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6182
6183# Define system-specific variables.
6184case $host_os in
6185aix*)
6186  symcode='[BCDT]'
6187  ;;
6188cygwin* | mingw* | pw32* | cegcc*)
6189  symcode='[ABCDGISTW]'
6190  ;;
6191hpux*)
6192  if test "$host_cpu" = ia64; then
6193    symcode='[ABCDEGRST]'
6194  fi
6195  ;;
6196irix* | nonstopux*)
6197  symcode='[BCDEGRST]'
6198  ;;
6199osf*)
6200  symcode='[BCDEGQRST]'
6201  ;;
6202solaris*)
6203  symcode='[BDRT]'
6204  ;;
6205sco3.2v5*)
6206  symcode='[DT]'
6207  ;;
6208sysv4.2uw2*)
6209  symcode='[DT]'
6210  ;;
6211sysv5* | sco5v6* | unixware* | OpenUNIX*)
6212  symcode='[ABDT]'
6213  ;;
6214sysv4)
6215  symcode='[DFNSTU]'
6216  ;;
6217esac
6218
6219# If we're using GNU nm, then use its standard symbol codes.
6220case `$NM -V 2>&1` in
6221*GNU* | *'with BFD'*)
6222  symcode='[ABCDGIRSTW]' ;;
6223esac
6224
6225# Transform an extracted symbol line into a proper C declaration.
6226# Some systems (esp. on ia64) link data and code symbols differently,
6227# so use this general approach.
6228lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6229
6230# Transform an extracted symbol line into symbol name and symbol address
6231lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6232lt_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'"
6233
6234# Handle CRLF in mingw tool chain
6235opt_cr=
6236case $build_os in
6237mingw*)
6238  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6239  ;;
6240esac
6241
6242# Try without a prefix underscore, then with it.
6243for ac_symprfx in "" "_"; do
6244
6245  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6246  symxfrm="\\1 $ac_symprfx\\2 \\2"
6247
6248  # Write the raw and C identifiers.
6249  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6250    # Fake it for dumpbin and say T for any non-static function
6251    # and D for any global variable.
6252    # Also find C++ and __fastcall symbols from MSVC++,
6253    # which start with @ or ?.
6254    lt_cv_sys_global_symbol_pipe="$AWK '"\
6255"     {last_section=section; section=\$ 3};"\
6256"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6257"     \$ 0!~/External *\|/{next};"\
6258"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6259"     {if(hide[section]) next};"\
6260"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6261"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6262"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6263"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6264"     ' prfx=^$ac_symprfx"
6265  else
6266    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6267  fi
6268
6269  # Check to see that the pipe works correctly.
6270  pipe_works=no
6271
6272  rm -f conftest*
6273  cat > conftest.$ac_ext <<_LT_EOF
6274#ifdef __cplusplus
6275extern "C" {
6276#endif
6277char nm_test_var;
6278void nm_test_func(void);
6279void nm_test_func(void){}
6280#ifdef __cplusplus
6281}
6282#endif
6283int main(){nm_test_var='a';nm_test_func();return(0);}
6284_LT_EOF
6285
6286  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6287  (eval $ac_compile) 2>&5
6288  ac_status=$?
6289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6290  test $ac_status = 0; }; then
6291    # Now try to grab the symbols.
6292    nlist=conftest.nm
6293    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6294  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6295  ac_status=$?
6296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6297  test $ac_status = 0; } && test -s "$nlist"; then
6298      # Try sorting and uniquifying the output.
6299      if sort "$nlist" | uniq > "$nlist"T; then
6300	mv -f "$nlist"T "$nlist"
6301      else
6302	rm -f "$nlist"T
6303      fi
6304
6305      # Make sure that we snagged all the symbols we need.
6306      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6307	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6308	  cat <<_LT_EOF > conftest.$ac_ext
6309#ifdef __cplusplus
6310extern "C" {
6311#endif
6312
6313_LT_EOF
6314	  # Now generate the symbol file.
6315	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6316
6317	  cat <<_LT_EOF >> conftest.$ac_ext
6318/* The mapping between symbol names and symbols.  */
6319const struct {
6320  const char *name;
6321  void       *address;
6322}
6323lt__PROGRAM__LTX_preloaded_symbols[] =
6324{
6325  { "@PROGRAM@", (void *) 0 },
6326_LT_EOF
6327	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6328	  cat <<\_LT_EOF >> conftest.$ac_ext
6329  {0, (void *) 0}
6330};
6331
6332/* This works around a problem in FreeBSD linker */
6333#ifdef FREEBSD_WORKAROUND
6334static const void *lt_preloaded_setup() {
6335  return lt__PROGRAM__LTX_preloaded_symbols;
6336}
6337#endif
6338
6339#ifdef __cplusplus
6340}
6341#endif
6342_LT_EOF
6343	  # Now try linking the two files.
6344	  mv conftest.$ac_objext conftstm.$ac_objext
6345	  lt_save_LIBS="$LIBS"
6346	  lt_save_CFLAGS="$CFLAGS"
6347	  LIBS="conftstm.$ac_objext"
6348	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6349	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6350  (eval $ac_link) 2>&5
6351  ac_status=$?
6352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6353  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6354	    pipe_works=yes
6355	  fi
6356	  LIBS="$lt_save_LIBS"
6357	  CFLAGS="$lt_save_CFLAGS"
6358	else
6359	  echo "cannot find nm_test_func in $nlist" >&5
6360	fi
6361      else
6362	echo "cannot find nm_test_var in $nlist" >&5
6363      fi
6364    else
6365      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6366    fi
6367  else
6368    echo "$progname: failed program was:" >&5
6369    cat conftest.$ac_ext >&5
6370  fi
6371  rm -rf conftest* conftst*
6372
6373  # Do not use the global_symbol_pipe unless it works.
6374  if test "$pipe_works" = yes; then
6375    break
6376  else
6377    lt_cv_sys_global_symbol_pipe=
6378  fi
6379done
6380
6381fi
6382
6383if test -z "$lt_cv_sys_global_symbol_pipe"; then
6384  lt_cv_sys_global_symbol_to_cdecl=
6385fi
6386if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6388$as_echo "failed" >&6; }
6389else
6390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6391$as_echo "ok" >&6; }
6392fi
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415# Check whether --enable-libtool-lock was given.
6416if test "${enable_libtool_lock+set}" = set; then :
6417  enableval=$enable_libtool_lock;
6418fi
6419
6420test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6421
6422# Some flags need to be propagated to the compiler or linker for good
6423# libtool support.
6424case $host in
6425ia64-*-hpux*)
6426  # Find out which ABI we are using.
6427  echo 'int i;' > conftest.$ac_ext
6428  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6429  (eval $ac_compile) 2>&5
6430  ac_status=$?
6431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6432  test $ac_status = 0; }; then
6433    case `/usr/bin/file conftest.$ac_objext` in
6434      *ELF-32*)
6435	HPUX_IA64_MODE="32"
6436	;;
6437      *ELF-64*)
6438	HPUX_IA64_MODE="64"
6439	;;
6440    esac
6441  fi
6442  rm -rf conftest*
6443  ;;
6444*-*-irix6*)
6445  # Find out which ABI we are using.
6446  echo '#line 6446 "configure"' > conftest.$ac_ext
6447  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6448  (eval $ac_compile) 2>&5
6449  ac_status=$?
6450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6451  test $ac_status = 0; }; then
6452    if test "$lt_cv_prog_gnu_ld" = yes; then
6453      case `/usr/bin/file conftest.$ac_objext` in
6454	*32-bit*)
6455	  LD="${LD-ld} -melf32bsmip"
6456	  ;;
6457	*N32*)
6458	  LD="${LD-ld} -melf32bmipn32"
6459	  ;;
6460	*64-bit*)
6461	  LD="${LD-ld} -melf64bmip"
6462	;;
6463      esac
6464    else
6465      case `/usr/bin/file conftest.$ac_objext` in
6466	*32-bit*)
6467	  LD="${LD-ld} -32"
6468	  ;;
6469	*N32*)
6470	  LD="${LD-ld} -n32"
6471	  ;;
6472	*64-bit*)
6473	  LD="${LD-ld} -64"
6474	  ;;
6475      esac
6476    fi
6477  fi
6478  rm -rf conftest*
6479  ;;
6480
6481x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6482s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6483  # Find out which ABI we are using.
6484  echo 'int i;' > conftest.$ac_ext
6485  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6486  (eval $ac_compile) 2>&5
6487  ac_status=$?
6488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6489  test $ac_status = 0; }; then
6490    case `/usr/bin/file conftest.o` in
6491      *32-bit*)
6492	case $host in
6493	  x86_64-*kfreebsd*-gnu)
6494	    LD="${LD-ld} -m elf_i386_fbsd"
6495	    ;;
6496	  x86_64-*linux*)
6497	    LD="${LD-ld} -m elf_i386"
6498	    ;;
6499	  ppc64-*linux*|powerpc64-*linux*)
6500	    LD="${LD-ld} -m elf32ppclinux"
6501	    ;;
6502	  s390x-*linux*)
6503	    LD="${LD-ld} -m elf_s390"
6504	    ;;
6505	  sparc64-*linux*)
6506	    LD="${LD-ld} -m elf32_sparc"
6507	    ;;
6508	esac
6509	;;
6510      *64-bit*)
6511	case $host in
6512	  x86_64-*kfreebsd*-gnu)
6513	    LD="${LD-ld} -m elf_x86_64_fbsd"
6514	    ;;
6515	  x86_64-*linux*)
6516	    LD="${LD-ld} -m elf_x86_64"
6517	    ;;
6518	  ppc*-*linux*|powerpc*-*linux*)
6519	    LD="${LD-ld} -m elf64ppc"
6520	    ;;
6521	  s390*-*linux*|s390*-*tpf*)
6522	    LD="${LD-ld} -m elf64_s390"
6523	    ;;
6524	  sparc*-*linux*)
6525	    LD="${LD-ld} -m elf64_sparc"
6526	    ;;
6527	esac
6528	;;
6529    esac
6530  fi
6531  rm -rf conftest*
6532  ;;
6533
6534*-*-sco3.2v5*)
6535  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6536  SAVE_CFLAGS="$CFLAGS"
6537  CFLAGS="$CFLAGS -belf"
6538  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6539$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6540if test "${lt_cv_cc_needs_belf+set}" = set; then :
6541  $as_echo_n "(cached) " >&6
6542else
6543  ac_ext=c
6544ac_cpp='$CPP $CPPFLAGS'
6545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6547ac_compiler_gnu=$ac_cv_c_compiler_gnu
6548
6549     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550/* end confdefs.h.  */
6551
6552int
6553main ()
6554{
6555
6556  ;
6557  return 0;
6558}
6559_ACEOF
6560if ac_fn_c_try_link "$LINENO"; then :
6561  lt_cv_cc_needs_belf=yes
6562else
6563  lt_cv_cc_needs_belf=no
6564fi
6565rm -f core conftest.err conftest.$ac_objext \
6566    conftest$ac_exeext conftest.$ac_ext
6567     ac_ext=c
6568ac_cpp='$CPP $CPPFLAGS'
6569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6571ac_compiler_gnu=$ac_cv_c_compiler_gnu
6572
6573fi
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6575$as_echo "$lt_cv_cc_needs_belf" >&6; }
6576  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6577    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6578    CFLAGS="$SAVE_CFLAGS"
6579  fi
6580  ;;
6581sparc*-*solaris*)
6582  # Find out which ABI we are using.
6583  echo 'int i;' > conftest.$ac_ext
6584  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6585  (eval $ac_compile) 2>&5
6586  ac_status=$?
6587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6588  test $ac_status = 0; }; then
6589    case `/usr/bin/file conftest.o` in
6590    *64-bit*)
6591      case $lt_cv_prog_gnu_ld in
6592      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6593      *)
6594	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6595	  LD="${LD-ld} -64"
6596	fi
6597	;;
6598      esac
6599      ;;
6600    esac
6601  fi
6602  rm -rf conftest*
6603  ;;
6604esac
6605
6606need_locks="$enable_libtool_lock"
6607
6608
6609  case $host_os in
6610    rhapsody* | darwin*)
6611    if test -n "$ac_tool_prefix"; then
6612  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6613set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615$as_echo_n "checking for $ac_word... " >&6; }
6616if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6617  $as_echo_n "(cached) " >&6
6618else
6619  if test -n "$DSYMUTIL"; then
6620  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6621else
6622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623for as_dir in $PATH
6624do
6625  IFS=$as_save_IFS
6626  test -z "$as_dir" && as_dir=.
6627    for ac_exec_ext in '' $ac_executable_extensions; do
6628  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6629    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6630    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631    break 2
6632  fi
6633done
6634  done
6635IFS=$as_save_IFS
6636
6637fi
6638fi
6639DSYMUTIL=$ac_cv_prog_DSYMUTIL
6640if test -n "$DSYMUTIL"; then
6641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6642$as_echo "$DSYMUTIL" >&6; }
6643else
6644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645$as_echo "no" >&6; }
6646fi
6647
6648
6649fi
6650if test -z "$ac_cv_prog_DSYMUTIL"; then
6651  ac_ct_DSYMUTIL=$DSYMUTIL
6652  # Extract the first word of "dsymutil", so it can be a program name with args.
6653set dummy dsymutil; ac_word=$2
6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655$as_echo_n "checking for $ac_word... " >&6; }
6656if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6657  $as_echo_n "(cached) " >&6
6658else
6659  if test -n "$ac_ct_DSYMUTIL"; then
6660  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6661else
6662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663for as_dir in $PATH
6664do
6665  IFS=$as_save_IFS
6666  test -z "$as_dir" && as_dir=.
6667    for ac_exec_ext in '' $ac_executable_extensions; do
6668  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6669    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671    break 2
6672  fi
6673done
6674  done
6675IFS=$as_save_IFS
6676
6677fi
6678fi
6679ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6680if test -n "$ac_ct_DSYMUTIL"; then
6681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6682$as_echo "$ac_ct_DSYMUTIL" >&6; }
6683else
6684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685$as_echo "no" >&6; }
6686fi
6687
6688  if test "x$ac_ct_DSYMUTIL" = x; then
6689    DSYMUTIL=":"
6690  else
6691    case $cross_compiling:$ac_tool_warned in
6692yes:)
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6695ac_tool_warned=yes ;;
6696esac
6697    DSYMUTIL=$ac_ct_DSYMUTIL
6698  fi
6699else
6700  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6701fi
6702
6703    if test -n "$ac_tool_prefix"; then
6704  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6705set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707$as_echo_n "checking for $ac_word... " >&6; }
6708if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6709  $as_echo_n "(cached) " >&6
6710else
6711  if test -n "$NMEDIT"; then
6712  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6713else
6714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715for as_dir in $PATH
6716do
6717  IFS=$as_save_IFS
6718  test -z "$as_dir" && as_dir=.
6719    for ac_exec_ext in '' $ac_executable_extensions; do
6720  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6721    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6722    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723    break 2
6724  fi
6725done
6726  done
6727IFS=$as_save_IFS
6728
6729fi
6730fi
6731NMEDIT=$ac_cv_prog_NMEDIT
6732if test -n "$NMEDIT"; then
6733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6734$as_echo "$NMEDIT" >&6; }
6735else
6736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737$as_echo "no" >&6; }
6738fi
6739
6740
6741fi
6742if test -z "$ac_cv_prog_NMEDIT"; then
6743  ac_ct_NMEDIT=$NMEDIT
6744  # Extract the first word of "nmedit", so it can be a program name with args.
6745set dummy nmedit; ac_word=$2
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747$as_echo_n "checking for $ac_word... " >&6; }
6748if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6749  $as_echo_n "(cached) " >&6
6750else
6751  if test -n "$ac_ct_NMEDIT"; then
6752  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6753else
6754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755for as_dir in $PATH
6756do
6757  IFS=$as_save_IFS
6758  test -z "$as_dir" && as_dir=.
6759    for ac_exec_ext in '' $ac_executable_extensions; do
6760  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6761    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763    break 2
6764  fi
6765done
6766  done
6767IFS=$as_save_IFS
6768
6769fi
6770fi
6771ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6772if test -n "$ac_ct_NMEDIT"; then
6773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6774$as_echo "$ac_ct_NMEDIT" >&6; }
6775else
6776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777$as_echo "no" >&6; }
6778fi
6779
6780  if test "x$ac_ct_NMEDIT" = x; then
6781    NMEDIT=":"
6782  else
6783    case $cross_compiling:$ac_tool_warned in
6784yes:)
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6787ac_tool_warned=yes ;;
6788esac
6789    NMEDIT=$ac_ct_NMEDIT
6790  fi
6791else
6792  NMEDIT="$ac_cv_prog_NMEDIT"
6793fi
6794
6795    if test -n "$ac_tool_prefix"; then
6796  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6797set dummy ${ac_tool_prefix}lipo; ac_word=$2
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799$as_echo_n "checking for $ac_word... " >&6; }
6800if test "${ac_cv_prog_LIPO+set}" = set; then :
6801  $as_echo_n "(cached) " >&6
6802else
6803  if test -n "$LIPO"; then
6804  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6805else
6806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807for as_dir in $PATH
6808do
6809  IFS=$as_save_IFS
6810  test -z "$as_dir" && as_dir=.
6811    for ac_exec_ext in '' $ac_executable_extensions; do
6812  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6813    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815    break 2
6816  fi
6817done
6818  done
6819IFS=$as_save_IFS
6820
6821fi
6822fi
6823LIPO=$ac_cv_prog_LIPO
6824if test -n "$LIPO"; then
6825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6826$as_echo "$LIPO" >&6; }
6827else
6828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829$as_echo "no" >&6; }
6830fi
6831
6832
6833fi
6834if test -z "$ac_cv_prog_LIPO"; then
6835  ac_ct_LIPO=$LIPO
6836  # Extract the first word of "lipo", so it can be a program name with args.
6837set dummy lipo; ac_word=$2
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839$as_echo_n "checking for $ac_word... " >&6; }
6840if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6841  $as_echo_n "(cached) " >&6
6842else
6843  if test -n "$ac_ct_LIPO"; then
6844  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6845else
6846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847for as_dir in $PATH
6848do
6849  IFS=$as_save_IFS
6850  test -z "$as_dir" && as_dir=.
6851    for ac_exec_ext in '' $ac_executable_extensions; do
6852  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853    ac_cv_prog_ac_ct_LIPO="lipo"
6854    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855    break 2
6856  fi
6857done
6858  done
6859IFS=$as_save_IFS
6860
6861fi
6862fi
6863ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6864if test -n "$ac_ct_LIPO"; then
6865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6866$as_echo "$ac_ct_LIPO" >&6; }
6867else
6868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869$as_echo "no" >&6; }
6870fi
6871
6872  if test "x$ac_ct_LIPO" = x; then
6873    LIPO=":"
6874  else
6875    case $cross_compiling:$ac_tool_warned in
6876yes:)
6877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6879ac_tool_warned=yes ;;
6880esac
6881    LIPO=$ac_ct_LIPO
6882  fi
6883else
6884  LIPO="$ac_cv_prog_LIPO"
6885fi
6886
6887    if test -n "$ac_tool_prefix"; then
6888  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6889set dummy ${ac_tool_prefix}otool; ac_word=$2
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891$as_echo_n "checking for $ac_word... " >&6; }
6892if test "${ac_cv_prog_OTOOL+set}" = set; then :
6893  $as_echo_n "(cached) " >&6
6894else
6895  if test -n "$OTOOL"; then
6896  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6897else
6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901  IFS=$as_save_IFS
6902  test -z "$as_dir" && as_dir=.
6903    for ac_exec_ext in '' $ac_executable_extensions; do
6904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6905    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907    break 2
6908  fi
6909done
6910  done
6911IFS=$as_save_IFS
6912
6913fi
6914fi
6915OTOOL=$ac_cv_prog_OTOOL
6916if test -n "$OTOOL"; then
6917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6918$as_echo "$OTOOL" >&6; }
6919else
6920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921$as_echo "no" >&6; }
6922fi
6923
6924
6925fi
6926if test -z "$ac_cv_prog_OTOOL"; then
6927  ac_ct_OTOOL=$OTOOL
6928  # Extract the first word of "otool", so it can be a program name with args.
6929set dummy otool; ac_word=$2
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931$as_echo_n "checking for $ac_word... " >&6; }
6932if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6933  $as_echo_n "(cached) " >&6
6934else
6935  if test -n "$ac_ct_OTOOL"; then
6936  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6937else
6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939for as_dir in $PATH
6940do
6941  IFS=$as_save_IFS
6942  test -z "$as_dir" && as_dir=.
6943    for ac_exec_ext in '' $ac_executable_extensions; do
6944  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6945    ac_cv_prog_ac_ct_OTOOL="otool"
6946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947    break 2
6948  fi
6949done
6950  done
6951IFS=$as_save_IFS
6952
6953fi
6954fi
6955ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6956if test -n "$ac_ct_OTOOL"; then
6957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6958$as_echo "$ac_ct_OTOOL" >&6; }
6959else
6960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961$as_echo "no" >&6; }
6962fi
6963
6964  if test "x$ac_ct_OTOOL" = x; then
6965    OTOOL=":"
6966  else
6967    case $cross_compiling:$ac_tool_warned in
6968yes:)
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6971ac_tool_warned=yes ;;
6972esac
6973    OTOOL=$ac_ct_OTOOL
6974  fi
6975else
6976  OTOOL="$ac_cv_prog_OTOOL"
6977fi
6978
6979    if test -n "$ac_tool_prefix"; then
6980  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6981set dummy ${ac_tool_prefix}otool64; ac_word=$2
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983$as_echo_n "checking for $ac_word... " >&6; }
6984if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6985  $as_echo_n "(cached) " >&6
6986else
6987  if test -n "$OTOOL64"; then
6988  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6989else
6990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993  IFS=$as_save_IFS
6994  test -z "$as_dir" && as_dir=.
6995    for ac_exec_ext in '' $ac_executable_extensions; do
6996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6997    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6999    break 2
7000  fi
7001done
7002  done
7003IFS=$as_save_IFS
7004
7005fi
7006fi
7007OTOOL64=$ac_cv_prog_OTOOL64
7008if test -n "$OTOOL64"; then
7009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7010$as_echo "$OTOOL64" >&6; }
7011else
7012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013$as_echo "no" >&6; }
7014fi
7015
7016
7017fi
7018if test -z "$ac_cv_prog_OTOOL64"; then
7019  ac_ct_OTOOL64=$OTOOL64
7020  # Extract the first word of "otool64", so it can be a program name with args.
7021set dummy otool64; ac_word=$2
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023$as_echo_n "checking for $ac_word... " >&6; }
7024if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7025  $as_echo_n "(cached) " >&6
7026else
7027  if test -n "$ac_ct_OTOOL64"; then
7028  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7029else
7030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031for as_dir in $PATH
7032do
7033  IFS=$as_save_IFS
7034  test -z "$as_dir" && as_dir=.
7035    for ac_exec_ext in '' $ac_executable_extensions; do
7036  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037    ac_cv_prog_ac_ct_OTOOL64="otool64"
7038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039    break 2
7040  fi
7041done
7042  done
7043IFS=$as_save_IFS
7044
7045fi
7046fi
7047ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7048if test -n "$ac_ct_OTOOL64"; then
7049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7050$as_echo "$ac_ct_OTOOL64" >&6; }
7051else
7052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053$as_echo "no" >&6; }
7054fi
7055
7056  if test "x$ac_ct_OTOOL64" = x; then
7057    OTOOL64=":"
7058  else
7059    case $cross_compiling:$ac_tool_warned in
7060yes:)
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7063ac_tool_warned=yes ;;
7064esac
7065    OTOOL64=$ac_ct_OTOOL64
7066  fi
7067else
7068  OTOOL64="$ac_cv_prog_OTOOL64"
7069fi
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7098$as_echo_n "checking for -single_module linker flag... " >&6; }
7099if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7100  $as_echo_n "(cached) " >&6
7101else
7102  lt_cv_apple_cc_single_mod=no
7103      if test -z "${LT_MULTI_MODULE}"; then
7104	# By default we will add the -single_module flag. You can override
7105	# by either setting the environment variable LT_MULTI_MODULE
7106	# non-empty at configure time, or by adding -multi_module to the
7107	# link flags.
7108	rm -rf libconftest.dylib*
7109	echo "int foo(void){return 1;}" > conftest.c
7110	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7111-dynamiclib -Wl,-single_module conftest.c" >&5
7112	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7113	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7114        _lt_result=$?
7115	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7116	  lt_cv_apple_cc_single_mod=yes
7117	else
7118	  cat conftest.err >&5
7119	fi
7120	rm -rf libconftest.dylib*
7121	rm -f conftest.*
7122      fi
7123fi
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7125$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7126    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7127$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7128if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7129  $as_echo_n "(cached) " >&6
7130else
7131  lt_cv_ld_exported_symbols_list=no
7132      save_LDFLAGS=$LDFLAGS
7133      echo "_main" > conftest.sym
7134      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7135      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136/* end confdefs.h.  */
7137
7138int
7139main ()
7140{
7141
7142  ;
7143  return 0;
7144}
7145_ACEOF
7146if ac_fn_c_try_link "$LINENO"; then :
7147  lt_cv_ld_exported_symbols_list=yes
7148else
7149  lt_cv_ld_exported_symbols_list=no
7150fi
7151rm -f core conftest.err conftest.$ac_objext \
7152    conftest$ac_exeext conftest.$ac_ext
7153	LDFLAGS="$save_LDFLAGS"
7154
7155fi
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7157$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7158    case $host_os in
7159    rhapsody* | darwin1.[012])
7160      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7161    darwin1.*)
7162      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7163    darwin*) # darwin 5.x on
7164      # if running on 10.5 or later, the deployment target defaults
7165      # to the OS version, if on x86, and 10.4, the deployment
7166      # target defaults to 10.4. Don't you love it?
7167      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7168	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7169	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7170	10.[012]*)
7171	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7172	10.*)
7173	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7174      esac
7175    ;;
7176  esac
7177    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7178      _lt_dar_single_mod='$single_module'
7179    fi
7180    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7181      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7182    else
7183      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7184    fi
7185    if test "$DSYMUTIL" != ":"; then
7186      _lt_dsymutil='~$DSYMUTIL $lib || :'
7187    else
7188      _lt_dsymutil=
7189    fi
7190    ;;
7191  esac
7192
7193for ac_header in dlfcn.h
7194do :
7195  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7196"
7197if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7198  cat >>confdefs.h <<_ACEOF
7199#define HAVE_DLFCN_H 1
7200_ACEOF
7201
7202fi
7203
7204done
7205
7206
7207
7208# Set options
7209
7210
7211
7212        enable_dlopen=no
7213
7214
7215  enable_win32_dll=no
7216
7217
7218            # Check whether --enable-shared was given.
7219if test "${enable_shared+set}" = set; then :
7220  enableval=$enable_shared; p=${PACKAGE-default}
7221    case $enableval in
7222    yes) enable_shared=yes ;;
7223    no) enable_shared=no ;;
7224    *)
7225      enable_shared=no
7226      # Look at the argument we got.  We use all the common list separators.
7227      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7228      for pkg in $enableval; do
7229	IFS="$lt_save_ifs"
7230	if test "X$pkg" = "X$p"; then
7231	  enable_shared=yes
7232	fi
7233      done
7234      IFS="$lt_save_ifs"
7235      ;;
7236    esac
7237else
7238  enable_shared=yes
7239fi
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249  # Check whether --enable-static was given.
7250if test "${enable_static+set}" = set; then :
7251  enableval=$enable_static; p=${PACKAGE-default}
7252    case $enableval in
7253    yes) enable_static=yes ;;
7254    no) enable_static=no ;;
7255    *)
7256     enable_static=no
7257      # Look at the argument we got.  We use all the common list separators.
7258      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7259      for pkg in $enableval; do
7260	IFS="$lt_save_ifs"
7261	if test "X$pkg" = "X$p"; then
7262	  enable_static=yes
7263	fi
7264      done
7265      IFS="$lt_save_ifs"
7266      ;;
7267    esac
7268else
7269  enable_static=yes
7270fi
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281# Check whether --with-pic was given.
7282if test "${with_pic+set}" = set; then :
7283  withval=$with_pic; pic_mode="$withval"
7284else
7285  pic_mode=default
7286fi
7287
7288
7289test -z "$pic_mode" && pic_mode=default
7290
7291
7292
7293
7294
7295
7296
7297  # Check whether --enable-fast-install was given.
7298if test "${enable_fast_install+set}" = set; then :
7299  enableval=$enable_fast_install; p=${PACKAGE-default}
7300    case $enableval in
7301    yes) enable_fast_install=yes ;;
7302    no) enable_fast_install=no ;;
7303    *)
7304      enable_fast_install=no
7305      # Look at the argument we got.  We use all the common list separators.
7306      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7307      for pkg in $enableval; do
7308	IFS="$lt_save_ifs"
7309	if test "X$pkg" = "X$p"; then
7310	  enable_fast_install=yes
7311	fi
7312      done
7313      IFS="$lt_save_ifs"
7314      ;;
7315    esac
7316else
7317  enable_fast_install=yes
7318fi
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330# This can be used to rebuild libtool when needed
7331LIBTOOL_DEPS="$ltmain"
7332
7333# Always use our own libtool.
7334LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360test -z "$LN_S" && LN_S="ln -s"
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375if test -n "${ZSH_VERSION+set}" ; then
7376   setopt NO_GLOB_SUBST
7377fi
7378
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7380$as_echo_n "checking for objdir... " >&6; }
7381if test "${lt_cv_objdir+set}" = set; then :
7382  $as_echo_n "(cached) " >&6
7383else
7384  rm -f .libs 2>/dev/null
7385mkdir .libs 2>/dev/null
7386if test -d .libs; then
7387  lt_cv_objdir=.libs
7388else
7389  # MS-DOS does not allow filenames that begin with a dot.
7390  lt_cv_objdir=_libs
7391fi
7392rmdir .libs 2>/dev/null
7393fi
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7395$as_echo "$lt_cv_objdir" >&6; }
7396objdir=$lt_cv_objdir
7397
7398
7399
7400
7401
7402cat >>confdefs.h <<_ACEOF
7403#define LT_OBJDIR "$lt_cv_objdir/"
7404_ACEOF
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422case $host_os in
7423aix3*)
7424  # AIX sometimes has problems with the GCC collect2 program.  For some
7425  # reason, if we set the COLLECT_NAMES environment variable, the problems
7426  # vanish in a puff of smoke.
7427  if test "X${COLLECT_NAMES+set}" != Xset; then
7428    COLLECT_NAMES=
7429    export COLLECT_NAMES
7430  fi
7431  ;;
7432esac
7433
7434# Sed substitution that helps us do robust quoting.  It backslashifies
7435# metacharacters that are still active within double-quoted strings.
7436sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7437
7438# Same as above, but do not quote variable references.
7439double_quote_subst='s/\(["`\\]\)/\\\1/g'
7440
7441# Sed substitution to delay expansion of an escaped shell variable in a
7442# double_quote_subst'ed string.
7443delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7444
7445# Sed substitution to delay expansion of an escaped single quote.
7446delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7447
7448# Sed substitution to avoid accidental globbing in evaled expressions
7449no_glob_subst='s/\*/\\\*/g'
7450
7451# Global variables:
7452ofile=libtool
7453can_build_shared=yes
7454
7455# All known linkers require a `.a' archive for static linking (except MSVC,
7456# which needs '.lib').
7457libext=a
7458
7459with_gnu_ld="$lt_cv_prog_gnu_ld"
7460
7461old_CC="$CC"
7462old_CFLAGS="$CFLAGS"
7463
7464# Set sane defaults for various variables
7465test -z "$CC" && CC=cc
7466test -z "$LTCC" && LTCC=$CC
7467test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7468test -z "$LD" && LD=ld
7469test -z "$ac_objext" && ac_objext=o
7470
7471for cc_temp in $compiler""; do
7472  case $cc_temp in
7473    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7474    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7475    \-*) ;;
7476    *) break;;
7477  esac
7478done
7479cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7480
7481
7482# Only perform the check for file, if the check method requires it
7483test -z "$MAGIC_CMD" && MAGIC_CMD=file
7484case $deplibs_check_method in
7485file_magic*)
7486  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7487    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7488$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7489if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7490  $as_echo_n "(cached) " >&6
7491else
7492  case $MAGIC_CMD in
7493[\\/*] |  ?:[\\/]*)
7494  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7495  ;;
7496*)
7497  lt_save_MAGIC_CMD="$MAGIC_CMD"
7498  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7499  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7500  for ac_dir in $ac_dummy; do
7501    IFS="$lt_save_ifs"
7502    test -z "$ac_dir" && ac_dir=.
7503    if test -f $ac_dir/${ac_tool_prefix}file; then
7504      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7505      if test -n "$file_magic_test_file"; then
7506	case $deplibs_check_method in
7507	"file_magic "*)
7508	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7509	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7510	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7511	    $EGREP "$file_magic_regex" > /dev/null; then
7512	    :
7513	  else
7514	    cat <<_LT_EOF 1>&2
7515
7516*** Warning: the command libtool uses to detect shared libraries,
7517*** $file_magic_cmd, produces output that libtool cannot recognize.
7518*** The result is that libtool may fail to recognize shared libraries
7519*** as such.  This will affect the creation of libtool libraries that
7520*** depend on shared libraries, but programs linked with such libtool
7521*** libraries will work regardless of this problem.  Nevertheless, you
7522*** may want to report the problem to your system manager and/or to
7523*** bug-libtool@gnu.org
7524
7525_LT_EOF
7526	  fi ;;
7527	esac
7528      fi
7529      break
7530    fi
7531  done
7532  IFS="$lt_save_ifs"
7533  MAGIC_CMD="$lt_save_MAGIC_CMD"
7534  ;;
7535esac
7536fi
7537
7538MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7539if test -n "$MAGIC_CMD"; then
7540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7541$as_echo "$MAGIC_CMD" >&6; }
7542else
7543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544$as_echo "no" >&6; }
7545fi
7546
7547
7548
7549
7550
7551if test -z "$lt_cv_path_MAGIC_CMD"; then
7552  if test -n "$ac_tool_prefix"; then
7553    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7554$as_echo_n "checking for file... " >&6; }
7555if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7556  $as_echo_n "(cached) " >&6
7557else
7558  case $MAGIC_CMD in
7559[\\/*] |  ?:[\\/]*)
7560  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7561  ;;
7562*)
7563  lt_save_MAGIC_CMD="$MAGIC_CMD"
7564  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7565  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7566  for ac_dir in $ac_dummy; do
7567    IFS="$lt_save_ifs"
7568    test -z "$ac_dir" && ac_dir=.
7569    if test -f $ac_dir/file; then
7570      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7571      if test -n "$file_magic_test_file"; then
7572	case $deplibs_check_method in
7573	"file_magic "*)
7574	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7575	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7576	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7577	    $EGREP "$file_magic_regex" > /dev/null; then
7578	    :
7579	  else
7580	    cat <<_LT_EOF 1>&2
7581
7582*** Warning: the command libtool uses to detect shared libraries,
7583*** $file_magic_cmd, produces output that libtool cannot recognize.
7584*** The result is that libtool may fail to recognize shared libraries
7585*** as such.  This will affect the creation of libtool libraries that
7586*** depend on shared libraries, but programs linked with such libtool
7587*** libraries will work regardless of this problem.  Nevertheless, you
7588*** may want to report the problem to your system manager and/or to
7589*** bug-libtool@gnu.org
7590
7591_LT_EOF
7592	  fi ;;
7593	esac
7594      fi
7595      break
7596    fi
7597  done
7598  IFS="$lt_save_ifs"
7599  MAGIC_CMD="$lt_save_MAGIC_CMD"
7600  ;;
7601esac
7602fi
7603
7604MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7605if test -n "$MAGIC_CMD"; then
7606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7607$as_echo "$MAGIC_CMD" >&6; }
7608else
7609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610$as_echo "no" >&6; }
7611fi
7612
7613
7614  else
7615    MAGIC_CMD=:
7616  fi
7617fi
7618
7619  fi
7620  ;;
7621esac
7622
7623# Use C for the default configuration in the libtool script
7624
7625lt_save_CC="$CC"
7626ac_ext=c
7627ac_cpp='$CPP $CPPFLAGS'
7628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7630ac_compiler_gnu=$ac_cv_c_compiler_gnu
7631
7632
7633# Source file extension for C test sources.
7634ac_ext=c
7635
7636# Object file extension for compiled C test sources.
7637objext=o
7638objext=$objext
7639
7640# Code to be used in simple compile tests
7641lt_simple_compile_test_code="int some_variable = 0;"
7642
7643# Code to be used in simple link tests
7644lt_simple_link_test_code='int main(){return(0);}'
7645
7646
7647
7648
7649
7650
7651
7652# If no C compiler was specified, use CC.
7653LTCC=${LTCC-"$CC"}
7654
7655# If no C compiler flags were specified, use CFLAGS.
7656LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7657
7658# Allow CC to be a program name with arguments.
7659compiler=$CC
7660
7661# Save the default compiler, since it gets overwritten when the other
7662# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7663compiler_DEFAULT=$CC
7664
7665# save warnings/boilerplate of simple test code
7666ac_outfile=conftest.$ac_objext
7667echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7668eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7669_lt_compiler_boilerplate=`cat conftest.err`
7670$RM conftest*
7671
7672ac_outfile=conftest.$ac_objext
7673echo "$lt_simple_link_test_code" >conftest.$ac_ext
7674eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7675_lt_linker_boilerplate=`cat conftest.err`
7676$RM -r conftest*
7677
7678
7679## CAVEAT EMPTOR:
7680## There is no encapsulation within the following macros, do not change
7681## the running order or otherwise move them around unless you know exactly
7682## what you are doing...
7683if test -n "$compiler"; then
7684
7685lt_prog_compiler_no_builtin_flag=
7686
7687if test "$GCC" = yes; then
7688  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7689
7690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7691$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7692if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7693  $as_echo_n "(cached) " >&6
7694else
7695  lt_cv_prog_compiler_rtti_exceptions=no
7696   ac_outfile=conftest.$ac_objext
7697   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7698   lt_compiler_flag="-fno-rtti -fno-exceptions"
7699   # Insert the option either (1) after the last *FLAGS variable, or
7700   # (2) before a word containing "conftest.", or (3) at the end.
7701   # Note that $ac_compile itself does not contain backslashes and begins
7702   # with a dollar sign (not a hyphen), so the echo should work correctly.
7703   # The option is referenced via a variable to avoid confusing sed.
7704   lt_compile=`echo "$ac_compile" | $SED \
7705   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7706   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7707   -e 's:$: $lt_compiler_flag:'`
7708   (eval echo "\"\$as_me:7708: $lt_compile\"" >&5)
7709   (eval "$lt_compile" 2>conftest.err)
7710   ac_status=$?
7711   cat conftest.err >&5
7712   echo "$as_me:7712: \$? = $ac_status" >&5
7713   if (exit $ac_status) && test -s "$ac_outfile"; then
7714     # The compiler can only warn and ignore the option if not recognized
7715     # So say no if there are warnings other than the usual output.
7716     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7717     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7718     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7719       lt_cv_prog_compiler_rtti_exceptions=yes
7720     fi
7721   fi
7722   $RM conftest*
7723
7724fi
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7726$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7727
7728if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7729    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7730else
7731    :
7732fi
7733
7734fi
7735
7736
7737
7738
7739
7740
7741  lt_prog_compiler_wl=
7742lt_prog_compiler_pic=
7743lt_prog_compiler_static=
7744
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7746$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7747
7748  if test "$GCC" = yes; then
7749    lt_prog_compiler_wl='-Wl,'
7750    lt_prog_compiler_static='-static'
7751
7752    case $host_os in
7753      aix*)
7754      # All AIX code is PIC.
7755      if test "$host_cpu" = ia64; then
7756	# AIX 5 now supports IA64 processor
7757	lt_prog_compiler_static='-Bstatic'
7758      fi
7759      ;;
7760
7761    amigaos*)
7762      case $host_cpu in
7763      powerpc)
7764            # see comment about AmigaOS4 .so support
7765            lt_prog_compiler_pic='-fPIC'
7766        ;;
7767      m68k)
7768            # FIXME: we need at least 68020 code to build shared libraries, but
7769            # adding the `-m68020' flag to GCC prevents building anything better,
7770            # like `-m68040'.
7771            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7772        ;;
7773      esac
7774      ;;
7775
7776    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7777      # PIC is the default for these OSes.
7778      ;;
7779
7780    mingw* | cygwin* | pw32* | os2* | cegcc*)
7781      # This hack is so that the source file can tell whether it is being
7782      # built for inclusion in a dll (and should export symbols for example).
7783      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7784      # (--disable-auto-import) libraries
7785      lt_prog_compiler_pic='-DDLL_EXPORT'
7786      ;;
7787
7788    darwin* | rhapsody*)
7789      # PIC is the default on this platform
7790      # Common symbols not allowed in MH_DYLIB files
7791      lt_prog_compiler_pic='-fno-common'
7792      ;;
7793
7794    hpux*)
7795      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7796      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7797      # sets the default TLS model and affects inlining.
7798      case $host_cpu in
7799      hppa*64*)
7800	# +Z the default
7801	;;
7802      *)
7803	lt_prog_compiler_pic='-fPIC'
7804	;;
7805      esac
7806      ;;
7807
7808    interix[3-9]*)
7809      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7810      # Instead, we relocate shared libraries at runtime.
7811      ;;
7812
7813    msdosdjgpp*)
7814      # Just because we use GCC doesn't mean we suddenly get shared libraries
7815      # on systems that don't support them.
7816      lt_prog_compiler_can_build_shared=no
7817      enable_shared=no
7818      ;;
7819
7820    *nto* | *qnx*)
7821      # QNX uses GNU C++, but need to define -shared option too, otherwise
7822      # it will coredump.
7823      lt_prog_compiler_pic='-fPIC -shared'
7824      ;;
7825
7826    sysv4*MP*)
7827      if test -d /usr/nec; then
7828	lt_prog_compiler_pic=-Kconform_pic
7829      fi
7830      ;;
7831
7832    *)
7833      lt_prog_compiler_pic='-fPIC'
7834      ;;
7835    esac
7836  else
7837    # PORTME Check for flag to pass linker flags through the system compiler.
7838    case $host_os in
7839    aix*)
7840      lt_prog_compiler_wl='-Wl,'
7841      if test "$host_cpu" = ia64; then
7842	# AIX 5 now supports IA64 processor
7843	lt_prog_compiler_static='-Bstatic'
7844      else
7845	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7846      fi
7847      ;;
7848
7849    mingw* | cygwin* | pw32* | os2* | cegcc*)
7850      # This hack is so that the source file can tell whether it is being
7851      # built for inclusion in a dll (and should export symbols for example).
7852      lt_prog_compiler_pic='-DDLL_EXPORT'
7853      ;;
7854
7855    hpux9* | hpux10* | hpux11*)
7856      lt_prog_compiler_wl='-Wl,'
7857      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7858      # not for PA HP-UX.
7859      case $host_cpu in
7860      hppa*64*|ia64*)
7861	# +Z the default
7862	;;
7863      *)
7864	lt_prog_compiler_pic='+Z'
7865	;;
7866      esac
7867      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7868      lt_prog_compiler_static='${wl}-a ${wl}archive'
7869      ;;
7870
7871    irix5* | irix6* | nonstopux*)
7872      lt_prog_compiler_wl='-Wl,'
7873      # PIC (with -KPIC) is the default.
7874      lt_prog_compiler_static='-non_shared'
7875      ;;
7876
7877    linux* | k*bsd*-gnu)
7878      case $cc_basename in
7879      # old Intel for x86_64 which still supported -KPIC.
7880      ecc*)
7881	lt_prog_compiler_wl='-Wl,'
7882	lt_prog_compiler_pic='-KPIC'
7883	lt_prog_compiler_static='-static'
7884        ;;
7885      # icc used to be incompatible with GCC.
7886      # ICC 10 doesn't accept -KPIC any more.
7887      icc* | ifort*)
7888	lt_prog_compiler_wl='-Wl,'
7889	lt_prog_compiler_pic='-fPIC'
7890	lt_prog_compiler_static='-static'
7891        ;;
7892      # Lahey Fortran 8.1.
7893      lf95*)
7894	lt_prog_compiler_wl='-Wl,'
7895	lt_prog_compiler_pic='--shared'
7896	lt_prog_compiler_static='--static'
7897	;;
7898      pgcc* | pgf77* | pgf90* | pgf95*)
7899        # Portland Group compilers (*not* the Pentium gcc compiler,
7900	# which looks to be a dead project)
7901	lt_prog_compiler_wl='-Wl,'
7902	lt_prog_compiler_pic='-fpic'
7903	lt_prog_compiler_static='-Bstatic'
7904        ;;
7905      ccc*)
7906        lt_prog_compiler_wl='-Wl,'
7907        # All Alpha code is PIC.
7908        lt_prog_compiler_static='-non_shared'
7909        ;;
7910      xl*)
7911	# IBM XL C 8.0/Fortran 10.1 on PPC
7912	lt_prog_compiler_wl='-Wl,'
7913	lt_prog_compiler_pic='-qpic'
7914	lt_prog_compiler_static='-qstaticlink'
7915	;;
7916      *)
7917	case `$CC -V 2>&1 | sed 5q` in
7918	*Sun\ C*)
7919	  # Sun C 5.9
7920	  lt_prog_compiler_pic='-KPIC'
7921	  lt_prog_compiler_static='-Bstatic'
7922	  lt_prog_compiler_wl='-Wl,'
7923	  ;;
7924	*Sun\ F*)
7925	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7926	  lt_prog_compiler_pic='-KPIC'
7927	  lt_prog_compiler_static='-Bstatic'
7928	  lt_prog_compiler_wl=''
7929	  ;;
7930	esac
7931	;;
7932      esac
7933      ;;
7934
7935    newsos6)
7936      lt_prog_compiler_pic='-KPIC'
7937      lt_prog_compiler_static='-Bstatic'
7938      ;;
7939
7940    *nto* | *qnx*)
7941      # QNX uses GNU C++, but need to define -shared option too, otherwise
7942      # it will coredump.
7943      lt_prog_compiler_pic='-fPIC -shared'
7944      ;;
7945
7946    osf3* | osf4* | osf5*)
7947      lt_prog_compiler_wl='-Wl,'
7948      # All OSF/1 code is PIC.
7949      lt_prog_compiler_static='-non_shared'
7950      ;;
7951
7952    rdos*)
7953      lt_prog_compiler_static='-non_shared'
7954      ;;
7955
7956    solaris*)
7957      lt_prog_compiler_pic='-KPIC'
7958      lt_prog_compiler_static='-Bstatic'
7959      case $cc_basename in
7960      f77* | f90* | f95*)
7961	lt_prog_compiler_wl='-Qoption ld ';;
7962      *)
7963	lt_prog_compiler_wl='-Wl,';;
7964      esac
7965      ;;
7966
7967    sunos4*)
7968      lt_prog_compiler_wl='-Qoption ld '
7969      lt_prog_compiler_pic='-PIC'
7970      lt_prog_compiler_static='-Bstatic'
7971      ;;
7972
7973    sysv4 | sysv4.2uw2* | sysv4.3*)
7974      lt_prog_compiler_wl='-Wl,'
7975      lt_prog_compiler_pic='-KPIC'
7976      lt_prog_compiler_static='-Bstatic'
7977      ;;
7978
7979    sysv4*MP*)
7980      if test -d /usr/nec ;then
7981	lt_prog_compiler_pic='-Kconform_pic'
7982	lt_prog_compiler_static='-Bstatic'
7983      fi
7984      ;;
7985
7986    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7987      lt_prog_compiler_wl='-Wl,'
7988      lt_prog_compiler_pic='-KPIC'
7989      lt_prog_compiler_static='-Bstatic'
7990      ;;
7991
7992    unicos*)
7993      lt_prog_compiler_wl='-Wl,'
7994      lt_prog_compiler_can_build_shared=no
7995      ;;
7996
7997    uts4*)
7998      lt_prog_compiler_pic='-pic'
7999      lt_prog_compiler_static='-Bstatic'
8000      ;;
8001
8002    *)
8003      lt_prog_compiler_can_build_shared=no
8004      ;;
8005    esac
8006  fi
8007
8008case $host_os in
8009  # For platforms which do not support PIC, -DPIC is meaningless:
8010  *djgpp*)
8011    lt_prog_compiler_pic=
8012    ;;
8013  *)
8014    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8015    ;;
8016esac
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8018$as_echo "$lt_prog_compiler_pic" >&6; }
8019
8020
8021
8022
8023
8024
8025#
8026# Check to make sure the PIC flag actually works.
8027#
8028if test -n "$lt_prog_compiler_pic"; then
8029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8030$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8031if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8032  $as_echo_n "(cached) " >&6
8033else
8034  lt_cv_prog_compiler_pic_works=no
8035   ac_outfile=conftest.$ac_objext
8036   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8037   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8038   # Insert the option either (1) after the last *FLAGS variable, or
8039   # (2) before a word containing "conftest.", or (3) at the end.
8040   # Note that $ac_compile itself does not contain backslashes and begins
8041   # with a dollar sign (not a hyphen), so the echo should work correctly.
8042   # The option is referenced via a variable to avoid confusing sed.
8043   lt_compile=`echo "$ac_compile" | $SED \
8044   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8045   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8046   -e 's:$: $lt_compiler_flag:'`
8047   (eval echo "\"\$as_me:8047: $lt_compile\"" >&5)
8048   (eval "$lt_compile" 2>conftest.err)
8049   ac_status=$?
8050   cat conftest.err >&5
8051   echo "$as_me:8051: \$? = $ac_status" >&5
8052   if (exit $ac_status) && test -s "$ac_outfile"; then
8053     # The compiler can only warn and ignore the option if not recognized
8054     # So say no if there are warnings other than the usual output.
8055     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8056     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8057     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8058       lt_cv_prog_compiler_pic_works=yes
8059     fi
8060   fi
8061   $RM conftest*
8062
8063fi
8064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8065$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8066
8067if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8068    case $lt_prog_compiler_pic in
8069     "" | " "*) ;;
8070     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8071     esac
8072else
8073    lt_prog_compiler_pic=
8074     lt_prog_compiler_can_build_shared=no
8075fi
8076
8077fi
8078
8079
8080
8081
8082
8083
8084#
8085# Check to make sure the static flag actually works.
8086#
8087wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8089$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8090if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8091  $as_echo_n "(cached) " >&6
8092else
8093  lt_cv_prog_compiler_static_works=no
8094   save_LDFLAGS="$LDFLAGS"
8095   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8096   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8097   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8098     # The linker can only warn and ignore the option if not recognized
8099     # So say no if there are warnings
8100     if test -s conftest.err; then
8101       # Append any errors to the config.log.
8102       cat conftest.err 1>&5
8103       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8104       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8105       if diff conftest.exp conftest.er2 >/dev/null; then
8106         lt_cv_prog_compiler_static_works=yes
8107       fi
8108     else
8109       lt_cv_prog_compiler_static_works=yes
8110     fi
8111   fi
8112   $RM -r conftest*
8113   LDFLAGS="$save_LDFLAGS"
8114
8115fi
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8117$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8118
8119if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8120    :
8121else
8122    lt_prog_compiler_static=
8123fi
8124
8125
8126
8127
8128
8129
8130
8131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8132$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8133if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8134  $as_echo_n "(cached) " >&6
8135else
8136  lt_cv_prog_compiler_c_o=no
8137   $RM -r conftest 2>/dev/null
8138   mkdir conftest
8139   cd conftest
8140   mkdir out
8141   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8142
8143   lt_compiler_flag="-o out/conftest2.$ac_objext"
8144   # Insert the option either (1) after the last *FLAGS variable, or
8145   # (2) before a word containing "conftest.", or (3) at the end.
8146   # Note that $ac_compile itself does not contain backslashes and begins
8147   # with a dollar sign (not a hyphen), so the echo should work correctly.
8148   lt_compile=`echo "$ac_compile" | $SED \
8149   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8150   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8151   -e 's:$: $lt_compiler_flag:'`
8152   (eval echo "\"\$as_me:8152: $lt_compile\"" >&5)
8153   (eval "$lt_compile" 2>out/conftest.err)
8154   ac_status=$?
8155   cat out/conftest.err >&5
8156   echo "$as_me:8156: \$? = $ac_status" >&5
8157   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8158   then
8159     # The compiler can only warn and ignore the option if not recognized
8160     # So say no if there are warnings
8161     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8162     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8163     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8164       lt_cv_prog_compiler_c_o=yes
8165     fi
8166   fi
8167   chmod u+w . 2>&5
8168   $RM conftest*
8169   # SGI C++ compiler will create directory out/ii_files/ for
8170   # template instantiation
8171   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8172   $RM out/* && rmdir out
8173   cd ..
8174   $RM -r conftest
8175   $RM conftest*
8176
8177fi
8178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8179$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8180
8181
8182
8183
8184
8185
8186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8187$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8188if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8189  $as_echo_n "(cached) " >&6
8190else
8191  lt_cv_prog_compiler_c_o=no
8192   $RM -r conftest 2>/dev/null
8193   mkdir conftest
8194   cd conftest
8195   mkdir out
8196   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8197
8198   lt_compiler_flag="-o out/conftest2.$ac_objext"
8199   # Insert the option either (1) after the last *FLAGS variable, or
8200   # (2) before a word containing "conftest.", or (3) at the end.
8201   # Note that $ac_compile itself does not contain backslashes and begins
8202   # with a dollar sign (not a hyphen), so the echo should work correctly.
8203   lt_compile=`echo "$ac_compile" | $SED \
8204   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8205   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8206   -e 's:$: $lt_compiler_flag:'`
8207   (eval echo "\"\$as_me:8207: $lt_compile\"" >&5)
8208   (eval "$lt_compile" 2>out/conftest.err)
8209   ac_status=$?
8210   cat out/conftest.err >&5
8211   echo "$as_me:8211: \$? = $ac_status" >&5
8212   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8213   then
8214     # The compiler can only warn and ignore the option if not recognized
8215     # So say no if there are warnings
8216     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8217     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8218     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8219       lt_cv_prog_compiler_c_o=yes
8220     fi
8221   fi
8222   chmod u+w . 2>&5
8223   $RM conftest*
8224   # SGI C++ compiler will create directory out/ii_files/ for
8225   # template instantiation
8226   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8227   $RM out/* && rmdir out
8228   cd ..
8229   $RM -r conftest
8230   $RM conftest*
8231
8232fi
8233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8234$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8235
8236
8237
8238
8239hard_links="nottested"
8240if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8241  # do not overwrite the value of need_locks provided by the user
8242  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8243$as_echo_n "checking if we can lock with hard links... " >&6; }
8244  hard_links=yes
8245  $RM conftest*
8246  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8247  touch conftest.a
8248  ln conftest.a conftest.b 2>&5 || hard_links=no
8249  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8251$as_echo "$hard_links" >&6; }
8252  if test "$hard_links" = no; then
8253    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8254$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8255    need_locks=warn
8256  fi
8257else
8258  need_locks=no
8259fi
8260
8261
8262
8263
8264
8265
8266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8267$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8268
8269  runpath_var=
8270  allow_undefined_flag=
8271  always_export_symbols=no
8272  archive_cmds=
8273  archive_expsym_cmds=
8274  compiler_needs_object=no
8275  enable_shared_with_static_runtimes=no
8276  export_dynamic_flag_spec=
8277  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8278  hardcode_automatic=no
8279  hardcode_direct=no
8280  hardcode_direct_absolute=no
8281  hardcode_libdir_flag_spec=
8282  hardcode_libdir_flag_spec_ld=
8283  hardcode_libdir_separator=
8284  hardcode_minus_L=no
8285  hardcode_shlibpath_var=unsupported
8286  inherit_rpath=no
8287  link_all_deplibs=unknown
8288  module_cmds=
8289  module_expsym_cmds=
8290  old_archive_from_new_cmds=
8291  old_archive_from_expsyms_cmds=
8292  thread_safe_flag_spec=
8293  whole_archive_flag_spec=
8294  # include_expsyms should be a list of space-separated symbols to be *always*
8295  # included in the symbol list
8296  include_expsyms=
8297  # exclude_expsyms can be an extended regexp of symbols to exclude
8298  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8299  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8300  # as well as any symbol that contains `d'.
8301  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8302  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8303  # platforms (ab)use it in PIC code, but their linkers get confused if
8304  # the symbol is explicitly referenced.  Since portable code cannot
8305  # rely on this symbol name, it's probably fine to never include it in
8306  # preloaded symbol tables.
8307  # Exclude shared library initialization/finalization symbols.
8308  extract_expsyms_cmds=
8309
8310  case $host_os in
8311  cygwin* | mingw* | pw32* | cegcc*)
8312    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8313    # When not using gcc, we currently assume that we are using
8314    # Microsoft Visual C++.
8315    if test "$GCC" != yes; then
8316      with_gnu_ld=no
8317    fi
8318    ;;
8319  interix*)
8320    # we just hope/assume this is gcc and not c89 (= MSVC++)
8321    with_gnu_ld=yes
8322    ;;
8323  openbsd*)
8324    with_gnu_ld=no
8325    ;;
8326  esac
8327
8328  ld_shlibs=yes
8329  if test "$with_gnu_ld" = yes; then
8330    # If archive_cmds runs LD, not CC, wlarc should be empty
8331    wlarc='${wl}'
8332
8333    # Set some defaults for GNU ld with shared library support. These
8334    # are reset later if shared libraries are not supported. Putting them
8335    # here allows them to be overridden if necessary.
8336    runpath_var=LD_RUN_PATH
8337    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8338    export_dynamic_flag_spec='${wl}--export-dynamic'
8339    # ancient GNU ld didn't support --whole-archive et. al.
8340    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8341      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8342    else
8343      whole_archive_flag_spec=
8344    fi
8345    supports_anon_versioning=no
8346    case `$LD -v 2>&1` in
8347      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8348      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8349      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8350      *\ 2.11.*) ;; # other 2.11 versions
8351      *) supports_anon_versioning=yes ;;
8352    esac
8353
8354    # See if GNU ld supports shared libraries.
8355    case $host_os in
8356    aix[3-9]*)
8357      # On AIX/PPC, the GNU linker is very broken
8358      if test "$host_cpu" != ia64; then
8359	ld_shlibs=no
8360	cat <<_LT_EOF 1>&2
8361
8362*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8363*** to be unable to reliably create shared libraries on AIX.
8364*** Therefore, libtool is disabling shared libraries support.  If you
8365*** really care for shared libraries, you may want to modify your PATH
8366*** so that a non-GNU linker is found, and then restart.
8367
8368_LT_EOF
8369      fi
8370      ;;
8371
8372    amigaos*)
8373      case $host_cpu in
8374      powerpc)
8375            # see comment about AmigaOS4 .so support
8376            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8377            archive_expsym_cmds=''
8378        ;;
8379      m68k)
8380            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)'
8381            hardcode_libdir_flag_spec='-L$libdir'
8382            hardcode_minus_L=yes
8383        ;;
8384      esac
8385      ;;
8386
8387    beos*)
8388      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8389	allow_undefined_flag=unsupported
8390	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8391	# support --undefined.  This deserves some investigation.  FIXME
8392	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8393      else
8394	ld_shlibs=no
8395      fi
8396      ;;
8397
8398    cygwin* | mingw* | pw32* | cegcc*)
8399      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8400      # as there is no search path for DLLs.
8401      hardcode_libdir_flag_spec='-L$libdir'
8402      allow_undefined_flag=unsupported
8403      always_export_symbols=no
8404      enable_shared_with_static_runtimes=yes
8405      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8406
8407      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8408        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8409	# If the export-symbols file already is a .def file (1st line
8410	# is EXPORTS), use it as is; otherwise, prepend...
8411	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8412	  cp $export_symbols $output_objdir/$soname.def;
8413	else
8414	  echo EXPORTS > $output_objdir/$soname.def;
8415	  cat $export_symbols >> $output_objdir/$soname.def;
8416	fi~
8417	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8418      else
8419	ld_shlibs=no
8420      fi
8421      ;;
8422
8423    interix[3-9]*)
8424      hardcode_direct=no
8425      hardcode_shlibpath_var=no
8426      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8427      export_dynamic_flag_spec='${wl}-E'
8428      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8429      # Instead, shared libraries are loaded at an image base (0x10000000 by
8430      # default) and relocated if they conflict, which is a slow very memory
8431      # consuming and fragmenting process.  To avoid this, we pick a random,
8432      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8433      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8434      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8435      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'
8436      ;;
8437
8438    gnu* | linux* | tpf* | k*bsd*-gnu)
8439      tmp_diet=no
8440      if test "$host_os" = linux-dietlibc; then
8441	case $cc_basename in
8442	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8443	esac
8444      fi
8445      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8446	 && test "$tmp_diet" = no
8447      then
8448	tmp_addflag=
8449	tmp_sharedflag='-shared'
8450	case $cc_basename,$host_cpu in
8451        pgcc*)				# Portland Group C compiler
8452	  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'
8453	  tmp_addflag=' $pic_flag'
8454	  ;;
8455	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8456	  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'
8457	  tmp_addflag=' $pic_flag -Mnomain' ;;
8458	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8459	  tmp_addflag=' -i_dynamic' ;;
8460	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8461	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8462	ifc* | ifort*)			# Intel Fortran compiler
8463	  tmp_addflag=' -nofor_main' ;;
8464	lf95*)				# Lahey Fortran 8.1
8465	  whole_archive_flag_spec=
8466	  tmp_sharedflag='--shared' ;;
8467	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8468	  tmp_sharedflag='-qmkshrobj'
8469	  tmp_addflag= ;;
8470	esac
8471	case `$CC -V 2>&1 | sed 5q` in
8472	*Sun\ C*)			# Sun C 5.9
8473	  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'
8474	  compiler_needs_object=yes
8475	  tmp_sharedflag='-G' ;;
8476	*Sun\ F*)			# Sun Fortran 8.3
8477	  tmp_sharedflag='-G' ;;
8478	esac
8479	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8480
8481        if test "x$supports_anon_versioning" = xyes; then
8482          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8483	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8484	    echo "local: *; };" >> $output_objdir/$libname.ver~
8485	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8486        fi
8487
8488	case $cc_basename in
8489	xlf*)
8490	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8491	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8492	  hardcode_libdir_flag_spec=
8493	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8494	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8495	  if test "x$supports_anon_versioning" = xyes; then
8496	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8497	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8498	      echo "local: *; };" >> $output_objdir/$libname.ver~
8499	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8500	  fi
8501	  ;;
8502	esac
8503      else
8504        ld_shlibs=no
8505      fi
8506      ;;
8507
8508    netbsd*)
8509      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8510	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8511	wlarc=
8512      else
8513	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8514	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8515      fi
8516      ;;
8517
8518    solaris*)
8519      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8520	ld_shlibs=no
8521	cat <<_LT_EOF 1>&2
8522
8523*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8524*** create shared libraries on Solaris systems.  Therefore, libtool
8525*** is disabling shared libraries support.  We urge you to upgrade GNU
8526*** binutils to release 2.9.1 or newer.  Another option is to modify
8527*** your PATH or compiler configuration so that the native linker is
8528*** used, and then restart.
8529
8530_LT_EOF
8531      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8532	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8533	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8534      else
8535	ld_shlibs=no
8536      fi
8537      ;;
8538
8539    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8540      case `$LD -v 2>&1` in
8541        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8542	ld_shlibs=no
8543	cat <<_LT_EOF 1>&2
8544
8545*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8546*** reliably create shared libraries on SCO systems.  Therefore, libtool
8547*** is disabling shared libraries support.  We urge you to upgrade GNU
8548*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8549*** your PATH or compiler configuration so that the native linker is
8550*** used, and then restart.
8551
8552_LT_EOF
8553	;;
8554	*)
8555	  # For security reasons, it is highly recommended that you always
8556	  # use absolute paths for naming shared libraries, and exclude the
8557	  # DT_RUNPATH tag from executables and libraries.  But doing so
8558	  # requires that you compile everything twice, which is a pain.
8559	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8560	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8561	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8562	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8563	  else
8564	    ld_shlibs=no
8565	  fi
8566	;;
8567      esac
8568      ;;
8569
8570    sunos4*)
8571      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8572      wlarc=
8573      hardcode_direct=yes
8574      hardcode_shlibpath_var=no
8575      ;;
8576
8577    *)
8578      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8579	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8580	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8581      else
8582	ld_shlibs=no
8583      fi
8584      ;;
8585    esac
8586
8587    if test "$ld_shlibs" = no; then
8588      runpath_var=
8589      hardcode_libdir_flag_spec=
8590      export_dynamic_flag_spec=
8591      whole_archive_flag_spec=
8592    fi
8593  else
8594    # PORTME fill in a description of your system's linker (not GNU ld)
8595    case $host_os in
8596    aix3*)
8597      allow_undefined_flag=unsupported
8598      always_export_symbols=yes
8599      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'
8600      # Note: this linker hardcodes the directories in LIBPATH if there
8601      # are no directories specified by -L.
8602      hardcode_minus_L=yes
8603      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8604	# Neither direct hardcoding nor static linking is supported with a
8605	# broken collect2.
8606	hardcode_direct=unsupported
8607      fi
8608      ;;
8609
8610    aix[4-9]*)
8611      if test "$host_cpu" = ia64; then
8612	# On IA64, the linker does run time linking by default, so we don't
8613	# have to do anything special.
8614	aix_use_runtimelinking=no
8615	exp_sym_flag='-Bexport'
8616	no_entry_flag=""
8617      else
8618	# If we're using GNU nm, then we don't want the "-C" option.
8619	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8620	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8621	  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'
8622	else
8623	  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'
8624	fi
8625	aix_use_runtimelinking=no
8626
8627	# Test if we are trying to use run time linking or normal
8628	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8629	# need to do runtime linking.
8630	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8631	  for ld_flag in $LDFLAGS; do
8632	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8633	    aix_use_runtimelinking=yes
8634	    break
8635	  fi
8636	  done
8637	  ;;
8638	esac
8639
8640	exp_sym_flag='-bexport'
8641	no_entry_flag='-bnoentry'
8642      fi
8643
8644      # When large executables or shared objects are built, AIX ld can
8645      # have problems creating the table of contents.  If linking a library
8646      # or program results in "error TOC overflow" add -mminimal-toc to
8647      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8648      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8649
8650      archive_cmds=''
8651      hardcode_direct=yes
8652      hardcode_direct_absolute=yes
8653      hardcode_libdir_separator=':'
8654      link_all_deplibs=yes
8655      file_list_spec='${wl}-f,'
8656
8657      if test "$GCC" = yes; then
8658	case $host_os in aix4.[012]|aix4.[012].*)
8659	# We only want to do this on AIX 4.2 and lower, the check
8660	# below for broken collect2 doesn't work under 4.3+
8661	  collect2name=`${CC} -print-prog-name=collect2`
8662	  if test -f "$collect2name" &&
8663	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8664	  then
8665	  # We have reworked collect2
8666	  :
8667	  else
8668	  # We have old collect2
8669	  hardcode_direct=unsupported
8670	  # It fails to find uninstalled libraries when the uninstalled
8671	  # path is not listed in the libpath.  Setting hardcode_minus_L
8672	  # to unsupported forces relinking
8673	  hardcode_minus_L=yes
8674	  hardcode_libdir_flag_spec='-L$libdir'
8675	  hardcode_libdir_separator=
8676	  fi
8677	  ;;
8678	esac
8679	shared_flag='-shared'
8680	if test "$aix_use_runtimelinking" = yes; then
8681	  shared_flag="$shared_flag "'${wl}-G'
8682	fi
8683      else
8684	# not using gcc
8685	if test "$host_cpu" = ia64; then
8686	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8687	# chokes on -Wl,-G. The following line is correct:
8688	  shared_flag='-G'
8689	else
8690	  if test "$aix_use_runtimelinking" = yes; then
8691	    shared_flag='${wl}-G'
8692	  else
8693	    shared_flag='${wl}-bM:SRE'
8694	  fi
8695	fi
8696      fi
8697
8698      export_dynamic_flag_spec='${wl}-bexpall'
8699      # It seems that -bexpall does not export symbols beginning with
8700      # underscore (_), so it is better to generate a list of symbols to export.
8701      always_export_symbols=yes
8702      if test "$aix_use_runtimelinking" = yes; then
8703	# Warning - without using the other runtime loading flags (-brtl),
8704	# -berok will link without error, but may produce a broken library.
8705	allow_undefined_flag='-berok'
8706        # Determine the default libpath from the value encoded in an
8707        # empty executable.
8708        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709/* end confdefs.h.  */
8710
8711int
8712main ()
8713{
8714
8715  ;
8716  return 0;
8717}
8718_ACEOF
8719if ac_fn_c_try_link "$LINENO"; then :
8720
8721lt_aix_libpath_sed='
8722    /Import File Strings/,/^$/ {
8723	/^0/ {
8724	    s/^0  *\(.*\)$/\1/
8725	    p
8726	}
8727    }'
8728aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8729# Check for a 64-bit object if we didn't find anything.
8730if test -z "$aix_libpath"; then
8731  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8732fi
8733fi
8734rm -f core conftest.err conftest.$ac_objext \
8735    conftest$ac_exeext conftest.$ac_ext
8736if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8737
8738        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8739        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"
8740      else
8741	if test "$host_cpu" = ia64; then
8742	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8743	  allow_undefined_flag="-z nodefs"
8744	  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"
8745	else
8746	 # Determine the default libpath from the value encoded in an
8747	 # empty executable.
8748	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749/* end confdefs.h.  */
8750
8751int
8752main ()
8753{
8754
8755  ;
8756  return 0;
8757}
8758_ACEOF
8759if ac_fn_c_try_link "$LINENO"; then :
8760
8761lt_aix_libpath_sed='
8762    /Import File Strings/,/^$/ {
8763	/^0/ {
8764	    s/^0  *\(.*\)$/\1/
8765	    p
8766	}
8767    }'
8768aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8769# Check for a 64-bit object if we didn't find anything.
8770if test -z "$aix_libpath"; then
8771  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8772fi
8773fi
8774rm -f core conftest.err conftest.$ac_objext \
8775    conftest$ac_exeext conftest.$ac_ext
8776if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8777
8778	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8779	  # Warning - without using the other run time loading flags,
8780	  # -berok will link without error, but may produce a broken library.
8781	  no_undefined_flag=' ${wl}-bernotok'
8782	  allow_undefined_flag=' ${wl}-berok'
8783	  # Exported symbols can be pulled into shared objects from archives
8784	  whole_archive_flag_spec='$convenience'
8785	  archive_cmds_need_lc=yes
8786	  # This is similar to how AIX traditionally builds its shared libraries.
8787	  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'
8788	fi
8789      fi
8790      ;;
8791
8792    amigaos*)
8793      case $host_cpu in
8794      powerpc)
8795            # see comment about AmigaOS4 .so support
8796            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8797            archive_expsym_cmds=''
8798        ;;
8799      m68k)
8800            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)'
8801            hardcode_libdir_flag_spec='-L$libdir'
8802            hardcode_minus_L=yes
8803        ;;
8804      esac
8805      ;;
8806
8807    bsdi[45]*)
8808      export_dynamic_flag_spec=-rdynamic
8809      ;;
8810
8811    cygwin* | mingw* | pw32* | cegcc*)
8812      # When not using gcc, we currently assume that we are using
8813      # Microsoft Visual C++.
8814      # hardcode_libdir_flag_spec is actually meaningless, as there is
8815      # no search path for DLLs.
8816      hardcode_libdir_flag_spec=' '
8817      allow_undefined_flag=unsupported
8818      # Tell ltmain to make .lib files, not .a files.
8819      libext=lib
8820      # Tell ltmain to make .dll files, not .so files.
8821      shrext_cmds=".dll"
8822      # FIXME: Setting linknames here is a bad hack.
8823      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8824      # The linker will automatically build a .lib file if we build a DLL.
8825      old_archive_from_new_cmds='true'
8826      # FIXME: Should let the user specify the lib program.
8827      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8828      fix_srcfile_path='`cygpath -w "$srcfile"`'
8829      enable_shared_with_static_runtimes=yes
8830      ;;
8831
8832    darwin* | rhapsody*)
8833
8834
8835  archive_cmds_need_lc=no
8836  hardcode_direct=no
8837  hardcode_automatic=yes
8838  hardcode_shlibpath_var=unsupported
8839  whole_archive_flag_spec=''
8840  link_all_deplibs=yes
8841  allow_undefined_flag="$_lt_dar_allow_undefined"
8842  case $cc_basename in
8843     ifort*) _lt_dar_can_shared=yes ;;
8844     *) _lt_dar_can_shared=$GCC ;;
8845  esac
8846  if test "$_lt_dar_can_shared" = "yes"; then
8847    output_verbose_link_cmd=echo
8848    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8849    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8850    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}"
8851    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}"
8852
8853  else
8854  ld_shlibs=no
8855  fi
8856
8857      ;;
8858
8859    dgux*)
8860      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8861      hardcode_libdir_flag_spec='-L$libdir'
8862      hardcode_shlibpath_var=no
8863      ;;
8864
8865    freebsd1*)
8866      ld_shlibs=no
8867      ;;
8868
8869    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8870    # support.  Future versions do this automatically, but an explicit c++rt0.o
8871    # does not break anything, and helps significantly (at the cost of a little
8872    # extra space).
8873    freebsd2.2*)
8874      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8875      hardcode_libdir_flag_spec='-R$libdir'
8876      hardcode_direct=yes
8877      hardcode_shlibpath_var=no
8878      ;;
8879
8880    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8881    freebsd2*)
8882      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8883      hardcode_direct=yes
8884      hardcode_minus_L=yes
8885      hardcode_shlibpath_var=no
8886      ;;
8887
8888    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8889    freebsd* | dragonfly*)
8890      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8891      hardcode_libdir_flag_spec='-R$libdir'
8892      hardcode_direct=yes
8893      hardcode_shlibpath_var=no
8894      ;;
8895
8896    hpux9*)
8897      if test "$GCC" = yes; then
8898	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'
8899      else
8900	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'
8901      fi
8902      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8903      hardcode_libdir_separator=:
8904      hardcode_direct=yes
8905
8906      # hardcode_minus_L: Not really in the search PATH,
8907      # but as the default location of the library.
8908      hardcode_minus_L=yes
8909      export_dynamic_flag_spec='${wl}-E'
8910      ;;
8911
8912    hpux10*)
8913      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8914	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8915      else
8916	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8917      fi
8918      if test "$with_gnu_ld" = no; then
8919	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8920	hardcode_libdir_flag_spec_ld='+b $libdir'
8921	hardcode_libdir_separator=:
8922	hardcode_direct=yes
8923	hardcode_direct_absolute=yes
8924	export_dynamic_flag_spec='${wl}-E'
8925	# hardcode_minus_L: Not really in the search PATH,
8926	# but as the default location of the library.
8927	hardcode_minus_L=yes
8928      fi
8929      ;;
8930
8931    hpux11*)
8932      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8933	case $host_cpu in
8934	hppa*64*)
8935	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8936	  ;;
8937	ia64*)
8938	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8939	  ;;
8940	*)
8941	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8942	  ;;
8943	esac
8944      else
8945	case $host_cpu in
8946	hppa*64*)
8947	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8948	  ;;
8949	ia64*)
8950	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8951	  ;;
8952	*)
8953	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8954	  ;;
8955	esac
8956      fi
8957      if test "$with_gnu_ld" = no; then
8958	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8959	hardcode_libdir_separator=:
8960
8961	case $host_cpu in
8962	hppa*64*|ia64*)
8963	  hardcode_direct=no
8964	  hardcode_shlibpath_var=no
8965	  ;;
8966	*)
8967	  hardcode_direct=yes
8968	  hardcode_direct_absolute=yes
8969	  export_dynamic_flag_spec='${wl}-E'
8970
8971	  # hardcode_minus_L: Not really in the search PATH,
8972	  # but as the default location of the library.
8973	  hardcode_minus_L=yes
8974	  ;;
8975	esac
8976      fi
8977      ;;
8978
8979    irix5* | irix6* | nonstopux*)
8980      if test "$GCC" = yes; then
8981	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'
8982	# Try to use the -exported_symbol ld option, if it does not
8983	# work, assume that -exports_file does not work either and
8984	# implicitly export all symbols.
8985        save_LDFLAGS="$LDFLAGS"
8986        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8987        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988/* end confdefs.h.  */
8989int foo(void) {}
8990_ACEOF
8991if ac_fn_c_try_link "$LINENO"; then :
8992  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'
8993
8994fi
8995rm -f core conftest.err conftest.$ac_objext \
8996    conftest$ac_exeext conftest.$ac_ext
8997        LDFLAGS="$save_LDFLAGS"
8998      else
8999	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'
9000	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'
9001      fi
9002      archive_cmds_need_lc='no'
9003      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9004      hardcode_libdir_separator=:
9005      inherit_rpath=yes
9006      link_all_deplibs=yes
9007      ;;
9008
9009    netbsd*)
9010      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9011	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9012      else
9013	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9014      fi
9015      hardcode_libdir_flag_spec='-R$libdir'
9016      hardcode_direct=yes
9017      hardcode_shlibpath_var=no
9018      ;;
9019
9020    newsos6)
9021      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9022      hardcode_direct=yes
9023      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9024      hardcode_libdir_separator=:
9025      hardcode_shlibpath_var=no
9026      ;;
9027
9028    *nto* | *qnx*)
9029      ;;
9030
9031    openbsd*)
9032      if test -f /usr/libexec/ld.so; then
9033	hardcode_direct=yes
9034	hardcode_shlibpath_var=no
9035	hardcode_direct_absolute=yes
9036	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9037	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9038	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9039	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9040	  export_dynamic_flag_spec='${wl}-E'
9041	else
9042	  case $host_os in
9043	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9044	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9045	     hardcode_libdir_flag_spec='-R$libdir'
9046	     ;;
9047	   *)
9048	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9049	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9050	     ;;
9051	  esac
9052	fi
9053      else
9054	ld_shlibs=no
9055      fi
9056      ;;
9057
9058    os2*)
9059      hardcode_libdir_flag_spec='-L$libdir'
9060      hardcode_minus_L=yes
9061      allow_undefined_flag=unsupported
9062      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'
9063      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9064      ;;
9065
9066    osf3*)
9067      if test "$GCC" = yes; then
9068	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9069	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'
9070      else
9071	allow_undefined_flag=' -expect_unresolved \*'
9072	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'
9073      fi
9074      archive_cmds_need_lc='no'
9075      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9076      hardcode_libdir_separator=:
9077      ;;
9078
9079    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9080      if test "$GCC" = yes; then
9081	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9082	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'
9083	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9084      else
9085	allow_undefined_flag=' -expect_unresolved \*'
9086	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'
9087	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~
9088	$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'
9089
9090	# Both c and cxx compiler support -rpath directly
9091	hardcode_libdir_flag_spec='-rpath $libdir'
9092      fi
9093      archive_cmds_need_lc='no'
9094      hardcode_libdir_separator=:
9095      ;;
9096
9097    solaris*)
9098      no_undefined_flag=' -z defs'
9099      if test "$GCC" = yes; then
9100	wlarc='${wl}'
9101	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9102	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9103	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9104      else
9105	case `$CC -V 2>&1` in
9106	*"Compilers 5.0"*)
9107	  wlarc=''
9108	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9109	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9110	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9111	  ;;
9112	*)
9113	  wlarc='${wl}'
9114	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9115	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9116	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9117	  ;;
9118	esac
9119      fi
9120      hardcode_libdir_flag_spec='-R$libdir'
9121      hardcode_shlibpath_var=no
9122      case $host_os in
9123      solaris2.[0-5] | solaris2.[0-5].*) ;;
9124      *)
9125	# The compiler driver will combine and reorder linker options,
9126	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9127	# but is careful enough not to reorder.
9128	# Supported since Solaris 2.6 (maybe 2.5.1?)
9129	if test "$GCC" = yes; then
9130	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9131	else
9132	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9133	fi
9134	;;
9135      esac
9136      link_all_deplibs=yes
9137      ;;
9138
9139    sunos4*)
9140      if test "x$host_vendor" = xsequent; then
9141	# Use $CC to link under sequent, because it throws in some extra .o
9142	# files that make .init and .fini sections work.
9143	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9144      else
9145	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9146      fi
9147      hardcode_libdir_flag_spec='-L$libdir'
9148      hardcode_direct=yes
9149      hardcode_minus_L=yes
9150      hardcode_shlibpath_var=no
9151      ;;
9152
9153    sysv4)
9154      case $host_vendor in
9155	sni)
9156	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9157	  hardcode_direct=yes # is this really true???
9158	;;
9159	siemens)
9160	  ## LD is ld it makes a PLAMLIB
9161	  ## CC just makes a GrossModule.
9162	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9163	  reload_cmds='$CC -r -o $output$reload_objs'
9164	  hardcode_direct=no
9165        ;;
9166	motorola)
9167	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9168	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9169	;;
9170      esac
9171      runpath_var='LD_RUN_PATH'
9172      hardcode_shlibpath_var=no
9173      ;;
9174
9175    sysv4.3*)
9176      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9177      hardcode_shlibpath_var=no
9178      export_dynamic_flag_spec='-Bexport'
9179      ;;
9180
9181    sysv4*MP*)
9182      if test -d /usr/nec; then
9183	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9184	hardcode_shlibpath_var=no
9185	runpath_var=LD_RUN_PATH
9186	hardcode_runpath_var=yes
9187	ld_shlibs=yes
9188      fi
9189      ;;
9190
9191    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9192      no_undefined_flag='${wl}-z,text'
9193      archive_cmds_need_lc=no
9194      hardcode_shlibpath_var=no
9195      runpath_var='LD_RUN_PATH'
9196
9197      if test "$GCC" = yes; then
9198	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9199	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9200      else
9201	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9202	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9203      fi
9204      ;;
9205
9206    sysv5* | sco3.2v5* | sco5v6*)
9207      # Note: We can NOT use -z defs as we might desire, because we do not
9208      # link with -lc, and that would cause any symbols used from libc to
9209      # always be unresolved, which means just about no library would
9210      # ever link correctly.  If we're not using GNU ld we use -z text
9211      # though, which does catch some bad symbols but isn't as heavy-handed
9212      # as -z defs.
9213      no_undefined_flag='${wl}-z,text'
9214      allow_undefined_flag='${wl}-z,nodefs'
9215      archive_cmds_need_lc=no
9216      hardcode_shlibpath_var=no
9217      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9218      hardcode_libdir_separator=':'
9219      link_all_deplibs=yes
9220      export_dynamic_flag_spec='${wl}-Bexport'
9221      runpath_var='LD_RUN_PATH'
9222
9223      if test "$GCC" = yes; then
9224	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9225	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9226      else
9227	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9228	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9229      fi
9230      ;;
9231
9232    uts4*)
9233      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9234      hardcode_libdir_flag_spec='-L$libdir'
9235      hardcode_shlibpath_var=no
9236      ;;
9237
9238    *)
9239      ld_shlibs=no
9240      ;;
9241    esac
9242
9243    if test x$host_vendor = xsni; then
9244      case $host in
9245      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9246	export_dynamic_flag_spec='${wl}-Blargedynsym'
9247	;;
9248      esac
9249    fi
9250  fi
9251
9252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9253$as_echo "$ld_shlibs" >&6; }
9254test "$ld_shlibs" = no && can_build_shared=no
9255
9256with_gnu_ld=$with_gnu_ld
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272#
9273# Do we need to explicitly link libc?
9274#
9275case "x$archive_cmds_need_lc" in
9276x|xyes)
9277  # Assume -lc should be added
9278  archive_cmds_need_lc=yes
9279
9280  if test "$enable_shared" = yes && test "$GCC" = yes; then
9281    case $archive_cmds in
9282    *'~'*)
9283      # FIXME: we may have to deal with multi-command sequences.
9284      ;;
9285    '$CC '*)
9286      # Test whether the compiler implicitly links with -lc since on some
9287      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9288      # to ld, don't add -lc before -lgcc.
9289      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9290$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9291      $RM conftest*
9292      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9293
9294      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9295  (eval $ac_compile) 2>&5
9296  ac_status=$?
9297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9298  test $ac_status = 0; } 2>conftest.err; then
9299        soname=conftest
9300        lib=conftest
9301        libobjs=conftest.$ac_objext
9302        deplibs=
9303        wl=$lt_prog_compiler_wl
9304	pic_flag=$lt_prog_compiler_pic
9305        compiler_flags=-v
9306        linker_flags=-v
9307        verstring=
9308        output_objdir=.
9309        libname=conftest
9310        lt_save_allow_undefined_flag=$allow_undefined_flag
9311        allow_undefined_flag=
9312        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9313  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9314  ac_status=$?
9315  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9316  test $ac_status = 0; }
9317        then
9318	  archive_cmds_need_lc=no
9319        else
9320	  archive_cmds_need_lc=yes
9321        fi
9322        allow_undefined_flag=$lt_save_allow_undefined_flag
9323      else
9324        cat conftest.err 1>&5
9325      fi
9326      $RM conftest*
9327      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9328$as_echo "$archive_cmds_need_lc" >&6; }
9329      ;;
9330    esac
9331  fi
9332  ;;
9333esac
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9492$as_echo_n "checking dynamic linker characteristics... " >&6; }
9493
9494if test "$GCC" = yes; then
9495  case $host_os in
9496    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9497    *) lt_awk_arg="/^libraries:/" ;;
9498  esac
9499  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9500  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9501    # if the path contains ";" then we assume it to be the separator
9502    # otherwise default to the standard path separator (i.e. ":") - it is
9503    # assumed that no part of a normal pathname contains ";" but that should
9504    # okay in the real world where ";" in dirpaths is itself problematic.
9505    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9506  else
9507    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9508  fi
9509  # Ok, now we have the path, separated by spaces, we can step through it
9510  # and add multilib dir if necessary.
9511  lt_tmp_lt_search_path_spec=
9512  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9513  for lt_sys_path in $lt_search_path_spec; do
9514    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9515      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9516    else
9517      test -d "$lt_sys_path" && \
9518	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9519    fi
9520  done
9521  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9522BEGIN {RS=" "; FS="/|\n";} {
9523  lt_foo="";
9524  lt_count=0;
9525  for (lt_i = NF; lt_i > 0; lt_i--) {
9526    if ($lt_i != "" && $lt_i != ".") {
9527      if ($lt_i == "..") {
9528        lt_count++;
9529      } else {
9530        if (lt_count == 0) {
9531          lt_foo="/" $lt_i lt_foo;
9532        } else {
9533          lt_count--;
9534        }
9535      }
9536    }
9537  }
9538  if (lt_foo != "") { lt_freq[lt_foo]++; }
9539  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9540}'`
9541  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9542else
9543  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9544fi
9545library_names_spec=
9546libname_spec='lib$name'
9547soname_spec=
9548shrext_cmds=".so"
9549postinstall_cmds=
9550postuninstall_cmds=
9551finish_cmds=
9552finish_eval=
9553shlibpath_var=
9554shlibpath_overrides_runpath=unknown
9555version_type=none
9556dynamic_linker="$host_os ld.so"
9557sys_lib_dlsearch_path_spec="/lib /usr/lib"
9558need_lib_prefix=unknown
9559hardcode_into_libs=no
9560
9561# when you set need_version to no, make sure it does not cause -set_version
9562# flags to be left without arguments
9563need_version=unknown
9564
9565case $host_os in
9566aix3*)
9567  version_type=linux
9568  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9569  shlibpath_var=LIBPATH
9570
9571  # AIX 3 has no versioning support, so we append a major version to the name.
9572  soname_spec='${libname}${release}${shared_ext}$major'
9573  ;;
9574
9575aix[4-9]*)
9576  version_type=linux
9577  need_lib_prefix=no
9578  need_version=no
9579  hardcode_into_libs=yes
9580  if test "$host_cpu" = ia64; then
9581    # AIX 5 supports IA64
9582    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9583    shlibpath_var=LD_LIBRARY_PATH
9584  else
9585    # With GCC up to 2.95.x, collect2 would create an import file
9586    # for dependence libraries.  The import file would start with
9587    # the line `#! .'.  This would cause the generated library to
9588    # depend on `.', always an invalid library.  This was fixed in
9589    # development snapshots of GCC prior to 3.0.
9590    case $host_os in
9591      aix4 | aix4.[01] | aix4.[01].*)
9592      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9593	   echo ' yes '
9594	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9595	:
9596      else
9597	can_build_shared=no
9598      fi
9599      ;;
9600    esac
9601    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9602    # soname into executable. Probably we can add versioning support to
9603    # collect2, so additional links can be useful in future.
9604    if test "$aix_use_runtimelinking" = yes; then
9605      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9606      # instead of lib<name>.a to let people know that these are not
9607      # typical AIX shared libraries.
9608      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609    else
9610      # We preserve .a as extension for shared libraries through AIX4.2
9611      # and later when we are not doing run time linking.
9612      library_names_spec='${libname}${release}.a $libname.a'
9613      soname_spec='${libname}${release}${shared_ext}$major'
9614    fi
9615    shlibpath_var=LIBPATH
9616  fi
9617  ;;
9618
9619amigaos*)
9620  case $host_cpu in
9621  powerpc)
9622    # Since July 2007 AmigaOS4 officially supports .so libraries.
9623    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9624    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9625    ;;
9626  m68k)
9627    library_names_spec='$libname.ixlibrary $libname.a'
9628    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9629    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'
9630    ;;
9631  esac
9632  ;;
9633
9634beos*)
9635  library_names_spec='${libname}${shared_ext}'
9636  dynamic_linker="$host_os ld.so"
9637  shlibpath_var=LIBRARY_PATH
9638  ;;
9639
9640bsdi[45]*)
9641  version_type=linux
9642  need_version=no
9643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9644  soname_spec='${libname}${release}${shared_ext}$major'
9645  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9646  shlibpath_var=LD_LIBRARY_PATH
9647  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9648  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9649  # the default ld.so.conf also contains /usr/contrib/lib and
9650  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9651  # libtool to hard-code these into programs
9652  ;;
9653
9654cygwin* | mingw* | pw32* | cegcc*)
9655  version_type=windows
9656  shrext_cmds=".dll"
9657  need_version=no
9658  need_lib_prefix=no
9659
9660  case $GCC,$host_os in
9661  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9662    library_names_spec='$libname.dll.a'
9663    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9664    postinstall_cmds='base_file=`basename \${file}`~
9665      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9666      dldir=$destdir/`dirname \$dlpath`~
9667      test -d \$dldir || mkdir -p \$dldir~
9668      $install_prog $dir/$dlname \$dldir/$dlname~
9669      chmod a+x \$dldir/$dlname~
9670      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9671        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9672      fi'
9673    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9674      dlpath=$dir/\$dldll~
9675       $RM \$dlpath'
9676    shlibpath_overrides_runpath=yes
9677
9678    case $host_os in
9679    cygwin*)
9680      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9681      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9682      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9683      ;;
9684    mingw* | cegcc*)
9685      # MinGW DLLs use traditional 'lib' prefix
9686      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9687      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9688      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9689        # It is most probably a Windows format PATH printed by
9690        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9691        # path with ; separators, and with drive letters. We can handle the
9692        # drive letters (cygwin fileutils understands them), so leave them,
9693        # especially as we might pass files found there to a mingw objdump,
9694        # which wouldn't understand a cygwinified path. Ahh.
9695        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9696      else
9697        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9698      fi
9699      ;;
9700    pw32*)
9701      # pw32 DLLs use 'pw' prefix rather than 'lib'
9702      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9703      ;;
9704    esac
9705    ;;
9706
9707  *)
9708    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9709    ;;
9710  esac
9711  dynamic_linker='Win32 ld.exe'
9712  # FIXME: first we should search . and the directory the executable is in
9713  shlibpath_var=PATH
9714  ;;
9715
9716darwin* | rhapsody*)
9717  dynamic_linker="$host_os dyld"
9718  version_type=darwin
9719  need_lib_prefix=no
9720  need_version=no
9721  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9722  soname_spec='${libname}${release}${major}$shared_ext'
9723  shlibpath_overrides_runpath=yes
9724  shlibpath_var=DYLD_LIBRARY_PATH
9725  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9726
9727  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9728  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9729  ;;
9730
9731dgux*)
9732  version_type=linux
9733  need_lib_prefix=no
9734  need_version=no
9735  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9736  soname_spec='${libname}${release}${shared_ext}$major'
9737  shlibpath_var=LD_LIBRARY_PATH
9738  ;;
9739
9740freebsd1*)
9741  dynamic_linker=no
9742  ;;
9743
9744freebsd* | dragonfly*)
9745  # DragonFly does not have aout.  When/if they implement a new
9746  # versioning mechanism, adjust this.
9747  if test -x /usr/bin/objformat; then
9748    objformat=`/usr/bin/objformat`
9749  else
9750    case $host_os in
9751    freebsd[123]*) objformat=aout ;;
9752    *) objformat=elf ;;
9753    esac
9754  fi
9755  version_type=freebsd-$objformat
9756  case $version_type in
9757    freebsd-elf*)
9758      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9759      need_version=no
9760      need_lib_prefix=no
9761      ;;
9762    freebsd-*)
9763      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9764      need_version=yes
9765      ;;
9766  esac
9767  shlibpath_var=LD_LIBRARY_PATH
9768  case $host_os in
9769  freebsd2*)
9770    shlibpath_overrides_runpath=yes
9771    ;;
9772  freebsd3.[01]* | freebsdelf3.[01]*)
9773    shlibpath_overrides_runpath=yes
9774    hardcode_into_libs=yes
9775    ;;
9776  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9777  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9778    shlibpath_overrides_runpath=no
9779    hardcode_into_libs=yes
9780    ;;
9781  *) # from 4.6 on, and DragonFly
9782    shlibpath_overrides_runpath=yes
9783    hardcode_into_libs=yes
9784    ;;
9785  esac
9786  ;;
9787
9788gnu*)
9789  version_type=linux
9790  need_lib_prefix=no
9791  need_version=no
9792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9793  soname_spec='${libname}${release}${shared_ext}$major'
9794  shlibpath_var=LD_LIBRARY_PATH
9795  hardcode_into_libs=yes
9796  ;;
9797
9798hpux9* | hpux10* | hpux11*)
9799  # Give a soname corresponding to the major version so that dld.sl refuses to
9800  # link against other versions.
9801  version_type=sunos
9802  need_lib_prefix=no
9803  need_version=no
9804  case $host_cpu in
9805  ia64*)
9806    shrext_cmds='.so'
9807    hardcode_into_libs=yes
9808    dynamic_linker="$host_os dld.so"
9809    shlibpath_var=LD_LIBRARY_PATH
9810    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9811    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9812    soname_spec='${libname}${release}${shared_ext}$major'
9813    if test "X$HPUX_IA64_MODE" = X32; then
9814      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9815    else
9816      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9817    fi
9818    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9819    ;;
9820  hppa*64*)
9821    shrext_cmds='.sl'
9822    hardcode_into_libs=yes
9823    dynamic_linker="$host_os dld.sl"
9824    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9825    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9826    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9827    soname_spec='${libname}${release}${shared_ext}$major'
9828    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9829    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9830    ;;
9831  *)
9832    shrext_cmds='.sl'
9833    dynamic_linker="$host_os dld.sl"
9834    shlibpath_var=SHLIB_PATH
9835    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9836    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9837    soname_spec='${libname}${release}${shared_ext}$major'
9838    ;;
9839  esac
9840  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9841  postinstall_cmds='chmod 555 $lib'
9842  ;;
9843
9844interix[3-9]*)
9845  version_type=linux
9846  need_lib_prefix=no
9847  need_version=no
9848  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9849  soname_spec='${libname}${release}${shared_ext}$major'
9850  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9851  shlibpath_var=LD_LIBRARY_PATH
9852  shlibpath_overrides_runpath=no
9853  hardcode_into_libs=yes
9854  ;;
9855
9856irix5* | irix6* | nonstopux*)
9857  case $host_os in
9858    nonstopux*) version_type=nonstopux ;;
9859    *)
9860	if test "$lt_cv_prog_gnu_ld" = yes; then
9861		version_type=linux
9862	else
9863		version_type=irix
9864	fi ;;
9865  esac
9866  need_lib_prefix=no
9867  need_version=no
9868  soname_spec='${libname}${release}${shared_ext}$major'
9869  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9870  case $host_os in
9871  irix5* | nonstopux*)
9872    libsuff= shlibsuff=
9873    ;;
9874  *)
9875    case $LD in # libtool.m4 will add one of these switches to LD
9876    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9877      libsuff= shlibsuff= libmagic=32-bit;;
9878    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9879      libsuff=32 shlibsuff=N32 libmagic=N32;;
9880    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9881      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9882    *) libsuff= shlibsuff= libmagic=never-match;;
9883    esac
9884    ;;
9885  esac
9886  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9887  shlibpath_overrides_runpath=no
9888  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9889  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9890  hardcode_into_libs=yes
9891  ;;
9892
9893# No shared lib support for Linux oldld, aout, or coff.
9894linux*oldld* | linux*aout* | linux*coff*)
9895  dynamic_linker=no
9896  ;;
9897
9898# This must be Linux ELF.
9899linux* | k*bsd*-gnu)
9900  version_type=linux
9901  need_lib_prefix=no
9902  need_version=no
9903  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904  soname_spec='${libname}${release}${shared_ext}$major'
9905  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9906  shlibpath_var=LD_LIBRARY_PATH
9907  shlibpath_overrides_runpath=no
9908  # Some binutils ld are patched to set DT_RUNPATH
9909  save_LDFLAGS=$LDFLAGS
9910  save_libdir=$libdir
9911  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9912       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914/* end confdefs.h.  */
9915
9916int
9917main ()
9918{
9919
9920  ;
9921  return 0;
9922}
9923_ACEOF
9924if ac_fn_c_try_link "$LINENO"; then :
9925  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9926  shlibpath_overrides_runpath=yes
9927fi
9928fi
9929rm -f core conftest.err conftest.$ac_objext \
9930    conftest$ac_exeext conftest.$ac_ext
9931  LDFLAGS=$save_LDFLAGS
9932  libdir=$save_libdir
9933
9934  # This implies no fast_install, which is unacceptable.
9935  # Some rework will be needed to allow for fast_install
9936  # before this can be enabled.
9937  hardcode_into_libs=yes
9938
9939  # Add ABI-specific directories to the system library path.
9940  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9941
9942  # Append ld.so.conf contents to the search path
9943  if test -f /etc/ld.so.conf; then
9944    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' ' '`
9945    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9946  fi
9947
9948  # We used to test for /lib/ld.so.1 and disable shared libraries on
9949  # powerpc, because MkLinux only supported shared libraries with the
9950  # GNU dynamic linker.  Since this was broken with cross compilers,
9951  # most powerpc-linux boxes support dynamic linking these days and
9952  # people can always --disable-shared, the test was removed, and we
9953  # assume the GNU/Linux dynamic linker is in use.
9954  dynamic_linker='GNU/Linux ld.so'
9955  ;;
9956
9957netbsd*)
9958  version_type=sunos
9959  need_lib_prefix=no
9960  need_version=no
9961  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9962    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9963    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9964    dynamic_linker='NetBSD (a.out) ld.so'
9965  else
9966    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9967    soname_spec='${libname}${release}${shared_ext}$major'
9968    dynamic_linker='NetBSD ld.elf_so'
9969  fi
9970  shlibpath_var=LD_LIBRARY_PATH
9971  shlibpath_overrides_runpath=yes
9972  hardcode_into_libs=yes
9973  ;;
9974
9975newsos6)
9976  version_type=linux
9977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9978  shlibpath_var=LD_LIBRARY_PATH
9979  shlibpath_overrides_runpath=yes
9980  ;;
9981
9982*nto* | *qnx*)
9983  version_type=qnx
9984  need_lib_prefix=no
9985  need_version=no
9986  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9987  soname_spec='${libname}${release}${shared_ext}$major'
9988  shlibpath_var=LD_LIBRARY_PATH
9989  shlibpath_overrides_runpath=no
9990  hardcode_into_libs=yes
9991  dynamic_linker='ldqnx.so'
9992  ;;
9993
9994openbsd*)
9995  version_type=sunos
9996  sys_lib_dlsearch_path_spec="/usr/lib"
9997  need_lib_prefix=no
9998  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9999  case $host_os in
10000    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10001    *)				need_version=no  ;;
10002  esac
10003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10004  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10005  shlibpath_var=LD_LIBRARY_PATH
10006  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10007    case $host_os in
10008      openbsd2.[89] | openbsd2.[89].*)
10009	shlibpath_overrides_runpath=no
10010	;;
10011      *)
10012	shlibpath_overrides_runpath=yes
10013	;;
10014      esac
10015  else
10016    shlibpath_overrides_runpath=yes
10017  fi
10018  ;;
10019
10020os2*)
10021  libname_spec='$name'
10022  shrext_cmds=".dll"
10023  need_lib_prefix=no
10024  library_names_spec='$libname${shared_ext} $libname.a'
10025  dynamic_linker='OS/2 ld.exe'
10026  shlibpath_var=LIBPATH
10027  ;;
10028
10029osf3* | osf4* | osf5*)
10030  version_type=osf
10031  need_lib_prefix=no
10032  need_version=no
10033  soname_spec='${libname}${release}${shared_ext}$major'
10034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10035  shlibpath_var=LD_LIBRARY_PATH
10036  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10037  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10038  ;;
10039
10040rdos*)
10041  dynamic_linker=no
10042  ;;
10043
10044solaris*)
10045  version_type=linux
10046  need_lib_prefix=no
10047  need_version=no
10048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10049  soname_spec='${libname}${release}${shared_ext}$major'
10050  shlibpath_var=LD_LIBRARY_PATH
10051  shlibpath_overrides_runpath=yes
10052  hardcode_into_libs=yes
10053  # ldd complains unless libraries are executable
10054  postinstall_cmds='chmod +x $lib'
10055  ;;
10056
10057sunos4*)
10058  version_type=sunos
10059  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10060  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10061  shlibpath_var=LD_LIBRARY_PATH
10062  shlibpath_overrides_runpath=yes
10063  if test "$with_gnu_ld" = yes; then
10064    need_lib_prefix=no
10065  fi
10066  need_version=yes
10067  ;;
10068
10069sysv4 | sysv4.3*)
10070  version_type=linux
10071  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10072  soname_spec='${libname}${release}${shared_ext}$major'
10073  shlibpath_var=LD_LIBRARY_PATH
10074  case $host_vendor in
10075    sni)
10076      shlibpath_overrides_runpath=no
10077      need_lib_prefix=no
10078      runpath_var=LD_RUN_PATH
10079      ;;
10080    siemens)
10081      need_lib_prefix=no
10082      ;;
10083    motorola)
10084      need_lib_prefix=no
10085      need_version=no
10086      shlibpath_overrides_runpath=no
10087      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10088      ;;
10089  esac
10090  ;;
10091
10092sysv4*MP*)
10093  if test -d /usr/nec ;then
10094    version_type=linux
10095    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10096    soname_spec='$libname${shared_ext}.$major'
10097    shlibpath_var=LD_LIBRARY_PATH
10098  fi
10099  ;;
10100
10101sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10102  version_type=freebsd-elf
10103  need_lib_prefix=no
10104  need_version=no
10105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10106  soname_spec='${libname}${release}${shared_ext}$major'
10107  shlibpath_var=LD_LIBRARY_PATH
10108  shlibpath_overrides_runpath=yes
10109  hardcode_into_libs=yes
10110  if test "$with_gnu_ld" = yes; then
10111    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10112  else
10113    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10114    case $host_os in
10115      sco3.2v5*)
10116        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10117	;;
10118    esac
10119  fi
10120  sys_lib_dlsearch_path_spec='/usr/lib'
10121  ;;
10122
10123tpf*)
10124  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10125  version_type=linux
10126  need_lib_prefix=no
10127  need_version=no
10128  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129  shlibpath_var=LD_LIBRARY_PATH
10130  shlibpath_overrides_runpath=no
10131  hardcode_into_libs=yes
10132  ;;
10133
10134uts4*)
10135  version_type=linux
10136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137  soname_spec='${libname}${release}${shared_ext}$major'
10138  shlibpath_var=LD_LIBRARY_PATH
10139  ;;
10140
10141*)
10142  dynamic_linker=no
10143  ;;
10144esac
10145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10146$as_echo "$dynamic_linker" >&6; }
10147test "$dynamic_linker" = no && can_build_shared=no
10148
10149variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10150if test "$GCC" = yes; then
10151  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10152fi
10153
10154if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10155  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10156fi
10157if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10158  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10159fi
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10248$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10249hardcode_action=
10250if test -n "$hardcode_libdir_flag_spec" ||
10251   test -n "$runpath_var" ||
10252   test "X$hardcode_automatic" = "Xyes" ; then
10253
10254  # We can hardcode non-existent directories.
10255  if test "$hardcode_direct" != no &&
10256     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10257     # have to relink, otherwise we might link with an installed library
10258     # when we should be linking with a yet-to-be-installed one
10259     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10260     test "$hardcode_minus_L" != no; then
10261    # Linking always hardcodes the temporary library directory.
10262    hardcode_action=relink
10263  else
10264    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10265    hardcode_action=immediate
10266  fi
10267else
10268  # We cannot hardcode anything, or else we can only hardcode existing
10269  # directories.
10270  hardcode_action=unsupported
10271fi
10272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10273$as_echo "$hardcode_action" >&6; }
10274
10275if test "$hardcode_action" = relink ||
10276   test "$inherit_rpath" = yes; then
10277  # Fast installation is not supported
10278  enable_fast_install=no
10279elif test "$shlibpath_overrides_runpath" = yes ||
10280     test "$enable_shared" = no; then
10281  # Fast installation is not necessary
10282  enable_fast_install=needless
10283fi
10284
10285
10286
10287
10288
10289
10290  if test "x$enable_dlopen" != xyes; then
10291  enable_dlopen=unknown
10292  enable_dlopen_self=unknown
10293  enable_dlopen_self_static=unknown
10294else
10295  lt_cv_dlopen=no
10296  lt_cv_dlopen_libs=
10297
10298  case $host_os in
10299  beos*)
10300    lt_cv_dlopen="load_add_on"
10301    lt_cv_dlopen_libs=
10302    lt_cv_dlopen_self=yes
10303    ;;
10304
10305  mingw* | pw32* | cegcc*)
10306    lt_cv_dlopen="LoadLibrary"
10307    lt_cv_dlopen_libs=
10308    ;;
10309
10310  cygwin*)
10311    lt_cv_dlopen="dlopen"
10312    lt_cv_dlopen_libs=
10313    ;;
10314
10315  darwin*)
10316  # if libdl is installed we need to link against it
10317    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10318$as_echo_n "checking for dlopen in -ldl... " >&6; }
10319if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10320  $as_echo_n "(cached) " >&6
10321else
10322  ac_check_lib_save_LIBS=$LIBS
10323LIBS="-ldl  $LIBS"
10324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325/* end confdefs.h.  */
10326
10327/* Override any GCC internal prototype to avoid an error.
10328   Use char because int might match the return type of a GCC
10329   builtin and then its argument prototype would still apply.  */
10330#ifdef __cplusplus
10331extern "C"
10332#endif
10333char dlopen ();
10334int
10335main ()
10336{
10337return dlopen ();
10338  ;
10339  return 0;
10340}
10341_ACEOF
10342if ac_fn_c_try_link "$LINENO"; then :
10343  ac_cv_lib_dl_dlopen=yes
10344else
10345  ac_cv_lib_dl_dlopen=no
10346fi
10347rm -f core conftest.err conftest.$ac_objext \
10348    conftest$ac_exeext conftest.$ac_ext
10349LIBS=$ac_check_lib_save_LIBS
10350fi
10351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10352$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10353if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10354  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10355else
10356
10357    lt_cv_dlopen="dyld"
10358    lt_cv_dlopen_libs=
10359    lt_cv_dlopen_self=yes
10360
10361fi
10362
10363    ;;
10364
10365  *)
10366    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10367if test "x$ac_cv_func_shl_load" = x""yes; then :
10368  lt_cv_dlopen="shl_load"
10369else
10370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10371$as_echo_n "checking for shl_load in -ldld... " >&6; }
10372if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10373  $as_echo_n "(cached) " >&6
10374else
10375  ac_check_lib_save_LIBS=$LIBS
10376LIBS="-ldld  $LIBS"
10377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378/* end confdefs.h.  */
10379
10380/* Override any GCC internal prototype to avoid an error.
10381   Use char because int might match the return type of a GCC
10382   builtin and then its argument prototype would still apply.  */
10383#ifdef __cplusplus
10384extern "C"
10385#endif
10386char shl_load ();
10387int
10388main ()
10389{
10390return shl_load ();
10391  ;
10392  return 0;
10393}
10394_ACEOF
10395if ac_fn_c_try_link "$LINENO"; then :
10396  ac_cv_lib_dld_shl_load=yes
10397else
10398  ac_cv_lib_dld_shl_load=no
10399fi
10400rm -f core conftest.err conftest.$ac_objext \
10401    conftest$ac_exeext conftest.$ac_ext
10402LIBS=$ac_check_lib_save_LIBS
10403fi
10404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10405$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10406if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10407  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10408else
10409  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10410if test "x$ac_cv_func_dlopen" = x""yes; then :
10411  lt_cv_dlopen="dlopen"
10412else
10413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10414$as_echo_n "checking for dlopen in -ldl... " >&6; }
10415if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10416  $as_echo_n "(cached) " >&6
10417else
10418  ac_check_lib_save_LIBS=$LIBS
10419LIBS="-ldl  $LIBS"
10420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421/* end confdefs.h.  */
10422
10423/* Override any GCC internal prototype to avoid an error.
10424   Use char because int might match the return type of a GCC
10425   builtin and then its argument prototype would still apply.  */
10426#ifdef __cplusplus
10427extern "C"
10428#endif
10429char dlopen ();
10430int
10431main ()
10432{
10433return dlopen ();
10434  ;
10435  return 0;
10436}
10437_ACEOF
10438if ac_fn_c_try_link "$LINENO"; then :
10439  ac_cv_lib_dl_dlopen=yes
10440else
10441  ac_cv_lib_dl_dlopen=no
10442fi
10443rm -f core conftest.err conftest.$ac_objext \
10444    conftest$ac_exeext conftest.$ac_ext
10445LIBS=$ac_check_lib_save_LIBS
10446fi
10447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10448$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10449if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10450  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10451else
10452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10453$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10454if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10455  $as_echo_n "(cached) " >&6
10456else
10457  ac_check_lib_save_LIBS=$LIBS
10458LIBS="-lsvld  $LIBS"
10459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460/* end confdefs.h.  */
10461
10462/* Override any GCC internal prototype to avoid an error.
10463   Use char because int might match the return type of a GCC
10464   builtin and then its argument prototype would still apply.  */
10465#ifdef __cplusplus
10466extern "C"
10467#endif
10468char dlopen ();
10469int
10470main ()
10471{
10472return dlopen ();
10473  ;
10474  return 0;
10475}
10476_ACEOF
10477if ac_fn_c_try_link "$LINENO"; then :
10478  ac_cv_lib_svld_dlopen=yes
10479else
10480  ac_cv_lib_svld_dlopen=no
10481fi
10482rm -f core conftest.err conftest.$ac_objext \
10483    conftest$ac_exeext conftest.$ac_ext
10484LIBS=$ac_check_lib_save_LIBS
10485fi
10486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10487$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10488if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10489  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10490else
10491  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10492$as_echo_n "checking for dld_link in -ldld... " >&6; }
10493if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10494  $as_echo_n "(cached) " >&6
10495else
10496  ac_check_lib_save_LIBS=$LIBS
10497LIBS="-ldld  $LIBS"
10498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499/* end confdefs.h.  */
10500
10501/* Override any GCC internal prototype to avoid an error.
10502   Use char because int might match the return type of a GCC
10503   builtin and then its argument prototype would still apply.  */
10504#ifdef __cplusplus
10505extern "C"
10506#endif
10507char dld_link ();
10508int
10509main ()
10510{
10511return dld_link ();
10512  ;
10513  return 0;
10514}
10515_ACEOF
10516if ac_fn_c_try_link "$LINENO"; then :
10517  ac_cv_lib_dld_dld_link=yes
10518else
10519  ac_cv_lib_dld_dld_link=no
10520fi
10521rm -f core conftest.err conftest.$ac_objext \
10522    conftest$ac_exeext conftest.$ac_ext
10523LIBS=$ac_check_lib_save_LIBS
10524fi
10525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10526$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10527if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10528  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10529fi
10530
10531
10532fi
10533
10534
10535fi
10536
10537
10538fi
10539
10540
10541fi
10542
10543
10544fi
10545
10546    ;;
10547  esac
10548
10549  if test "x$lt_cv_dlopen" != xno; then
10550    enable_dlopen=yes
10551  else
10552    enable_dlopen=no
10553  fi
10554
10555  case $lt_cv_dlopen in
10556  dlopen)
10557    save_CPPFLAGS="$CPPFLAGS"
10558    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10559
10560    save_LDFLAGS="$LDFLAGS"
10561    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10562
10563    save_LIBS="$LIBS"
10564    LIBS="$lt_cv_dlopen_libs $LIBS"
10565
10566    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10567$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10568if test "${lt_cv_dlopen_self+set}" = set; then :
10569  $as_echo_n "(cached) " >&6
10570else
10571  	  if test "$cross_compiling" = yes; then :
10572  lt_cv_dlopen_self=cross
10573else
10574  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10575  lt_status=$lt_dlunknown
10576  cat > conftest.$ac_ext <<_LT_EOF
10577#line 10577 "configure"
10578#include "confdefs.h"
10579
10580#if HAVE_DLFCN_H
10581#include <dlfcn.h>
10582#endif
10583
10584#include <stdio.h>
10585
10586#ifdef RTLD_GLOBAL
10587#  define LT_DLGLOBAL		RTLD_GLOBAL
10588#else
10589#  ifdef DL_GLOBAL
10590#    define LT_DLGLOBAL		DL_GLOBAL
10591#  else
10592#    define LT_DLGLOBAL		0
10593#  endif
10594#endif
10595
10596/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10597   find out it does not work in some platform. */
10598#ifndef LT_DLLAZY_OR_NOW
10599#  ifdef RTLD_LAZY
10600#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10601#  else
10602#    ifdef DL_LAZY
10603#      define LT_DLLAZY_OR_NOW		DL_LAZY
10604#    else
10605#      ifdef RTLD_NOW
10606#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10607#      else
10608#        ifdef DL_NOW
10609#          define LT_DLLAZY_OR_NOW	DL_NOW
10610#        else
10611#          define LT_DLLAZY_OR_NOW	0
10612#        endif
10613#      endif
10614#    endif
10615#  endif
10616#endif
10617
10618void fnord() { int i=42;}
10619int main ()
10620{
10621  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10622  int status = $lt_dlunknown;
10623
10624  if (self)
10625    {
10626      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10627      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10628      /* dlclose (self); */
10629    }
10630  else
10631    puts (dlerror ());
10632
10633  return status;
10634}
10635_LT_EOF
10636  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10637  (eval $ac_link) 2>&5
10638  ac_status=$?
10639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10640  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10641    (./conftest; exit; ) >&5 2>/dev/null
10642    lt_status=$?
10643    case x$lt_status in
10644      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10645      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10646      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10647    esac
10648  else :
10649    # compilation failed
10650    lt_cv_dlopen_self=no
10651  fi
10652fi
10653rm -fr conftest*
10654
10655
10656fi
10657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10658$as_echo "$lt_cv_dlopen_self" >&6; }
10659
10660    if test "x$lt_cv_dlopen_self" = xyes; then
10661      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10662      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10663$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10664if test "${lt_cv_dlopen_self_static+set}" = set; then :
10665  $as_echo_n "(cached) " >&6
10666else
10667  	  if test "$cross_compiling" = yes; then :
10668  lt_cv_dlopen_self_static=cross
10669else
10670  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10671  lt_status=$lt_dlunknown
10672  cat > conftest.$ac_ext <<_LT_EOF
10673#line 10673 "configure"
10674#include "confdefs.h"
10675
10676#if HAVE_DLFCN_H
10677#include <dlfcn.h>
10678#endif
10679
10680#include <stdio.h>
10681
10682#ifdef RTLD_GLOBAL
10683#  define LT_DLGLOBAL		RTLD_GLOBAL
10684#else
10685#  ifdef DL_GLOBAL
10686#    define LT_DLGLOBAL		DL_GLOBAL
10687#  else
10688#    define LT_DLGLOBAL		0
10689#  endif
10690#endif
10691
10692/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10693   find out it does not work in some platform. */
10694#ifndef LT_DLLAZY_OR_NOW
10695#  ifdef RTLD_LAZY
10696#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10697#  else
10698#    ifdef DL_LAZY
10699#      define LT_DLLAZY_OR_NOW		DL_LAZY
10700#    else
10701#      ifdef RTLD_NOW
10702#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10703#      else
10704#        ifdef DL_NOW
10705#          define LT_DLLAZY_OR_NOW	DL_NOW
10706#        else
10707#          define LT_DLLAZY_OR_NOW	0
10708#        endif
10709#      endif
10710#    endif
10711#  endif
10712#endif
10713
10714void fnord() { int i=42;}
10715int main ()
10716{
10717  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10718  int status = $lt_dlunknown;
10719
10720  if (self)
10721    {
10722      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10723      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10724      /* dlclose (self); */
10725    }
10726  else
10727    puts (dlerror ());
10728
10729  return status;
10730}
10731_LT_EOF
10732  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10733  (eval $ac_link) 2>&5
10734  ac_status=$?
10735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10736  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10737    (./conftest; exit; ) >&5 2>/dev/null
10738    lt_status=$?
10739    case x$lt_status in
10740      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10741      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10742      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10743    esac
10744  else :
10745    # compilation failed
10746    lt_cv_dlopen_self_static=no
10747  fi
10748fi
10749rm -fr conftest*
10750
10751
10752fi
10753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10754$as_echo "$lt_cv_dlopen_self_static" >&6; }
10755    fi
10756
10757    CPPFLAGS="$save_CPPFLAGS"
10758    LDFLAGS="$save_LDFLAGS"
10759    LIBS="$save_LIBS"
10760    ;;
10761  esac
10762
10763  case $lt_cv_dlopen_self in
10764  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10765  *) enable_dlopen_self=unknown ;;
10766  esac
10767
10768  case $lt_cv_dlopen_self_static in
10769  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10770  *) enable_dlopen_self_static=unknown ;;
10771  esac
10772fi
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790striplib=
10791old_striplib=
10792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10793$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10794if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10795  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10796  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10798$as_echo "yes" >&6; }
10799else
10800# FIXME - insert some real tests, host_os isn't really good enough
10801  case $host_os in
10802  darwin*)
10803    if test -n "$STRIP" ; then
10804      striplib="$STRIP -x"
10805      old_striplib="$STRIP -S"
10806      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10807$as_echo "yes" >&6; }
10808    else
10809      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10810$as_echo "no" >&6; }
10811    fi
10812    ;;
10813  *)
10814    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10815$as_echo "no" >&6; }
10816    ;;
10817  esac
10818fi
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831  # Report which library types will actually be built
10832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10833$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10835$as_echo "$can_build_shared" >&6; }
10836
10837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10838$as_echo_n "checking whether to build shared libraries... " >&6; }
10839  test "$can_build_shared" = "no" && enable_shared=no
10840
10841  # On AIX, shared libraries and static libraries use the same namespace, and
10842  # are all built from PIC.
10843  case $host_os in
10844  aix3*)
10845    test "$enable_shared" = yes && enable_static=no
10846    if test -n "$RANLIB"; then
10847      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10848      postinstall_cmds='$RANLIB $lib'
10849    fi
10850    ;;
10851
10852  aix[4-9]*)
10853    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10854      test "$enable_shared" = yes && enable_static=no
10855    fi
10856    ;;
10857  esac
10858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10859$as_echo "$enable_shared" >&6; }
10860
10861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10862$as_echo_n "checking whether to build static libraries... " >&6; }
10863  # Make sure either enable_shared or enable_static is yes.
10864  test "$enable_shared" = yes || enable_static=yes
10865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10866$as_echo "$enable_static" >&6; }
10867
10868
10869
10870
10871fi
10872ac_ext=c
10873ac_cpp='$CPP $CPPFLAGS'
10874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10876ac_compiler_gnu=$ac_cv_c_compiler_gnu
10877
10878CC="$lt_save_CC"
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892        ac_config_commands="$ac_config_commands libtool"
10893
10894
10895
10896
10897# Only expand once:
10898
10899
10900
10901
10902  for flag in -pipe -Wall -W -Wextra -pedantic -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 -Wno-unused-parameter -Wstrict-aliasing; do
10903
10904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
10905$as_echo_n "checking if $CC supports $flag flag... " >&6; }
10906if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then :
10907  $as_echo_n "(cached) " >&6
10908else
10909
10910  if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then :
10911  $as_echo_n "(cached) " >&6
10912else
10913  ac_save_CFLAGS="$CFLAGS"
10914     CFLAGS="$CFLAGS $flag"
10915     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10916/* end confdefs.h.  */
10917int a;
10918_ACEOF
10919if ac_fn_c_try_compile "$LINENO"; then :
10920  eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
10921else
10922  eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
10923fi
10924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10925     CFLAGS="$ac_save_CFLAGS"
10926
10927fi
10928
10929
10930  if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
10931
10932fi
10933
10934fi
10935eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
10936	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10937$as_echo "$ac_res" >&6; }
10938
10939  if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
10940  CFLAGS="$CFLAGS $flag";
10941fi
10942
10943  done
10944
10945
10946# Checks for header files.
10947
10948  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
10949$as_echo_n "checking whether to enable assertions... " >&6; }
10950  # Check whether --enable-assert was given.
10951if test "${enable_assert+set}" = set; then :
10952  enableval=$enable_assert; ac_enable_assert=$enableval
10953     if       test "x$enableval" = xno; then :
10954
10955$as_echo "#define NDEBUG 1" >>confdefs.h
10956
10957elif test "x$enableval" != xyes; then :
10958  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
10959$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
10960	ac_enable_assert=yes
10961fi
10962else
10963  ac_enable_assert=yes
10964fi
10965
10966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
10967$as_echo "$ac_enable_assert" >&6; }
10968
10969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10970$as_echo_n "checking for ANSI C header files... " >&6; }
10971if test "${ac_cv_header_stdc+set}" = set; then :
10972  $as_echo_n "(cached) " >&6
10973else
10974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975/* end confdefs.h.  */
10976#include <stdlib.h>
10977#include <stdarg.h>
10978#include <string.h>
10979#include <float.h>
10980
10981int
10982main ()
10983{
10984
10985  ;
10986  return 0;
10987}
10988_ACEOF
10989if ac_fn_c_try_compile "$LINENO"; then :
10990  ac_cv_header_stdc=yes
10991else
10992  ac_cv_header_stdc=no
10993fi
10994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10995
10996if test $ac_cv_header_stdc = yes; then
10997  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999/* end confdefs.h.  */
11000#include <string.h>
11001
11002_ACEOF
11003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11004  $EGREP "memchr" >/dev/null 2>&1; then :
11005
11006else
11007  ac_cv_header_stdc=no
11008fi
11009rm -f conftest*
11010
11011fi
11012
11013if test $ac_cv_header_stdc = yes; then
11014  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016/* end confdefs.h.  */
11017#include <stdlib.h>
11018
11019_ACEOF
11020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11021  $EGREP "free" >/dev/null 2>&1; then :
11022
11023else
11024  ac_cv_header_stdc=no
11025fi
11026rm -f conftest*
11027
11028fi
11029
11030if test $ac_cv_header_stdc = yes; then
11031  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11032  if test "$cross_compiling" = yes; then :
11033  :
11034else
11035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036/* end confdefs.h.  */
11037#include <ctype.h>
11038#include <stdlib.h>
11039#if ((' ' & 0x0FF) == 0x020)
11040# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11041# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11042#else
11043# define ISLOWER(c) \
11044		   (('a' <= (c) && (c) <= 'i') \
11045		     || ('j' <= (c) && (c) <= 'r') \
11046		     || ('s' <= (c) && (c) <= 'z'))
11047# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11048#endif
11049
11050#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11051int
11052main ()
11053{
11054  int i;
11055  for (i = 0; i < 256; i++)
11056    if (XOR (islower (i), ISLOWER (i))
11057	|| toupper (i) != TOUPPER (i))
11058      return 2;
11059  return 0;
11060}
11061_ACEOF
11062if ac_fn_c_try_run "$LINENO"; then :
11063
11064else
11065  ac_cv_header_stdc=no
11066fi
11067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11068  conftest.$ac_objext conftest.beam conftest.$ac_ext
11069fi
11070
11071fi
11072fi
11073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11074$as_echo "$ac_cv_header_stdc" >&6; }
11075if test $ac_cv_header_stdc = yes; then
11076
11077$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11078
11079fi
11080
11081for ac_header in fcntl.h limits.h stdlib.h string.h syslog.h unistd.h sys/ioctl.h sys/time.h
11082do :
11083  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11084ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11085eval as_val=\$$as_ac_Header
11086   if test "x$as_val" = x""yes; then :
11087  cat >>confdefs.h <<_ACEOF
11088#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11089_ACEOF
11090
11091fi
11092
11093done
11094
11095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11096$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11097if test "${ac_cv_header_sys_wait_h+set}" = set; then :
11098  $as_echo_n "(cached) " >&6
11099else
11100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101/* end confdefs.h.  */
11102#include <sys/types.h>
11103#include <sys/wait.h>
11104#ifndef WEXITSTATUS
11105# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11106#endif
11107#ifndef WIFEXITED
11108# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11109#endif
11110
11111int
11112main ()
11113{
11114  int s;
11115  wait (&s);
11116  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11117  ;
11118  return 0;
11119}
11120_ACEOF
11121if ac_fn_c_try_compile "$LINENO"; then :
11122  ac_cv_header_sys_wait_h=yes
11123else
11124  ac_cv_header_sys_wait_h=no
11125fi
11126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11127fi
11128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11129$as_echo "$ac_cv_header_sys_wait_h" >&6; }
11130if test $ac_cv_header_sys_wait_h = yes; then
11131
11132$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11133
11134fi
11135
11136
11137# Checks for typedefs, structures, and compiler characteristics.
11138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11139$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11140if test "${ac_cv_c_const+set}" = set; then :
11141  $as_echo_n "(cached) " >&6
11142else
11143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144/* end confdefs.h.  */
11145
11146int
11147main ()
11148{
11149/* FIXME: Include the comments suggested by Paul. */
11150#ifndef __cplusplus
11151  /* Ultrix mips cc rejects this.  */
11152  typedef int charset[2];
11153  const charset cs;
11154  /* SunOS 4.1.1 cc rejects this.  */
11155  char const *const *pcpcc;
11156  char **ppc;
11157  /* NEC SVR4.0.2 mips cc rejects this.  */
11158  struct point {int x, y;};
11159  static struct point const zero = {0,0};
11160  /* AIX XL C 1.02.0.0 rejects this.
11161     It does not let you subtract one const X* pointer from another in
11162     an arm of an if-expression whose if-part is not a constant
11163     expression */
11164  const char *g = "string";
11165  pcpcc = &g + (g ? g-g : 0);
11166  /* HPUX 7.0 cc rejects these. */
11167  ++pcpcc;
11168  ppc = (char**) pcpcc;
11169  pcpcc = (char const *const *) ppc;
11170  { /* SCO 3.2v4 cc rejects this.  */
11171    char *t;
11172    char const *s = 0 ? (char *) 0 : (char const *) 0;
11173
11174    *t++ = 0;
11175    if (s) return 0;
11176  }
11177  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11178    int x[] = {25, 17};
11179    const int *foo = &x[0];
11180    ++foo;
11181  }
11182  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11183    typedef const int *iptr;
11184    iptr p = 0;
11185    ++p;
11186  }
11187  { /* AIX XL C 1.02.0.0 rejects this saying
11188       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11189    struct s { int j; const int *ap[3]; };
11190    struct s *b; b->j = 5;
11191  }
11192  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11193    const int foo = 10;
11194    if (!foo) return 0;
11195  }
11196  return !cs[0] && !zero.x;
11197#endif
11198
11199  ;
11200  return 0;
11201}
11202_ACEOF
11203if ac_fn_c_try_compile "$LINENO"; then :
11204  ac_cv_c_const=yes
11205else
11206  ac_cv_c_const=no
11207fi
11208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11209fi
11210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11211$as_echo "$ac_cv_c_const" >&6; }
11212if test $ac_cv_c_const = no; then
11213
11214$as_echo "#define const /**/" >>confdefs.h
11215
11216fi
11217
11218ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11219if test "x$ac_cv_type_pid_t" = x""yes; then :
11220
11221else
11222
11223cat >>confdefs.h <<_ACEOF
11224#define pid_t int
11225_ACEOF
11226
11227fi
11228
11229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11230$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11231if test "${ac_cv_header_time+set}" = set; then :
11232  $as_echo_n "(cached) " >&6
11233else
11234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235/* end confdefs.h.  */
11236#include <sys/types.h>
11237#include <sys/time.h>
11238#include <time.h>
11239
11240int
11241main ()
11242{
11243if ((struct tm *) 0)
11244return 0;
11245  ;
11246  return 0;
11247}
11248_ACEOF
11249if ac_fn_c_try_compile "$LINENO"; then :
11250  ac_cv_header_time=yes
11251else
11252  ac_cv_header_time=no
11253fi
11254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11255fi
11256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11257$as_echo "$ac_cv_header_time" >&6; }
11258if test $ac_cv_header_time = yes; then
11259
11260$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11261
11262fi
11263
11264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
11265$as_echo_n "checking for working volatile... " >&6; }
11266if test "${ac_cv_c_volatile+set}" = set; then :
11267  $as_echo_n "(cached) " >&6
11268else
11269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11270/* end confdefs.h.  */
11271
11272int
11273main ()
11274{
11275
11276volatile int x;
11277int * volatile y = (int *) 0;
11278return !x && !y;
11279  ;
11280  return 0;
11281}
11282_ACEOF
11283if ac_fn_c_try_compile "$LINENO"; then :
11284  ac_cv_c_volatile=yes
11285else
11286  ac_cv_c_volatile=no
11287fi
11288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11289fi
11290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
11291$as_echo "$ac_cv_c_volatile" >&6; }
11292if test $ac_cv_c_volatile = no; then
11293
11294$as_echo "#define volatile /**/" >>confdefs.h
11295
11296fi
11297
11298
11299# Checks for library functions.
11300for ac_header in vfork.h
11301do :
11302  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11303if test "x$ac_cv_header_vfork_h" = x""yes; then :
11304  cat >>confdefs.h <<_ACEOF
11305#define HAVE_VFORK_H 1
11306_ACEOF
11307
11308fi
11309
11310done
11311
11312for ac_func in fork vfork
11313do :
11314  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11315ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11316eval as_val=\$$as_ac_var
11317   if test "x$as_val" = x""yes; then :
11318  cat >>confdefs.h <<_ACEOF
11319#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11320_ACEOF
11321
11322fi
11323done
11324
11325if test "x$ac_cv_func_fork" = xyes; then
11326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11327$as_echo_n "checking for working fork... " >&6; }
11328if test "${ac_cv_func_fork_works+set}" = set; then :
11329  $as_echo_n "(cached) " >&6
11330else
11331  if test "$cross_compiling" = yes; then :
11332  ac_cv_func_fork_works=cross
11333else
11334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11335/* end confdefs.h.  */
11336$ac_includes_default
11337int
11338main ()
11339{
11340
11341	  /* By Ruediger Kuhlmann. */
11342	  return fork () < 0;
11343
11344  ;
11345  return 0;
11346}
11347_ACEOF
11348if ac_fn_c_try_run "$LINENO"; then :
11349  ac_cv_func_fork_works=yes
11350else
11351  ac_cv_func_fork_works=no
11352fi
11353rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11354  conftest.$ac_objext conftest.beam conftest.$ac_ext
11355fi
11356
11357fi
11358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11359$as_echo "$ac_cv_func_fork_works" >&6; }
11360
11361else
11362  ac_cv_func_fork_works=$ac_cv_func_fork
11363fi
11364if test "x$ac_cv_func_fork_works" = xcross; then
11365  case $host in
11366    *-*-amigaos* | *-*-msdosdjgpp*)
11367      # Override, as these systems have only a dummy fork() stub
11368      ac_cv_func_fork_works=no
11369      ;;
11370    *)
11371      ac_cv_func_fork_works=yes
11372      ;;
11373  esac
11374  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11375$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11376fi
11377ac_cv_func_vfork_works=$ac_cv_func_vfork
11378if test "x$ac_cv_func_vfork" = xyes; then
11379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11380$as_echo_n "checking for working vfork... " >&6; }
11381if test "${ac_cv_func_vfork_works+set}" = set; then :
11382  $as_echo_n "(cached) " >&6
11383else
11384  if test "$cross_compiling" = yes; then :
11385  ac_cv_func_vfork_works=cross
11386else
11387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11388/* end confdefs.h.  */
11389/* Thanks to Paul Eggert for this test.  */
11390$ac_includes_default
11391#include <sys/wait.h>
11392#ifdef HAVE_VFORK_H
11393# include <vfork.h>
11394#endif
11395/* On some sparc systems, changes by the child to local and incoming
11396   argument registers are propagated back to the parent.  The compiler
11397   is told about this with #include <vfork.h>, but some compilers
11398   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
11399   static variable whose address is put into a register that is
11400   clobbered by the vfork.  */
11401static void
11402#ifdef __cplusplus
11403sparc_address_test (int arg)
11404# else
11405sparc_address_test (arg) int arg;
11406#endif
11407{
11408  static pid_t child;
11409  if (!child) {
11410    child = vfork ();
11411    if (child < 0) {
11412      perror ("vfork");
11413      _exit(2);
11414    }
11415    if (!child) {
11416      arg = getpid();
11417      write(-1, "", 0);
11418      _exit (arg);
11419    }
11420  }
11421}
11422
11423int
11424main ()
11425{
11426  pid_t parent = getpid ();
11427  pid_t child;
11428
11429  sparc_address_test (0);
11430
11431  child = vfork ();
11432
11433  if (child == 0) {
11434    /* Here is another test for sparc vfork register problems.  This
11435       test uses lots of local variables, at least as many local
11436       variables as main has allocated so far including compiler
11437       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
11438       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
11439       reuse the register of parent for one of the local variables,
11440       since it will think that parent can't possibly be used any more
11441       in this routine.  Assigning to the local variable will thus
11442       munge parent in the parent process.  */
11443    pid_t
11444      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11445      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11446    /* Convince the compiler that p..p7 are live; otherwise, it might
11447       use the same hardware register for all 8 local variables.  */
11448    if (p != p1 || p != p2 || p != p3 || p != p4
11449	|| p != p5 || p != p6 || p != p7)
11450      _exit(1);
11451
11452    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11453       from child file descriptors.  If the child closes a descriptor
11454       before it execs or exits, this munges the parent's descriptor
11455       as well.  Test for this by closing stdout in the child.  */
11456    _exit(close(fileno(stdout)) != 0);
11457  } else {
11458    int status;
11459    struct stat st;
11460
11461    while (wait(&status) != child)
11462      ;
11463    return (
11464	 /* Was there some problem with vforking?  */
11465	 child < 0
11466
11467	 /* Did the child fail?  (This shouldn't happen.)  */
11468	 || status
11469
11470	 /* Did the vfork/compiler bug occur?  */
11471	 || parent != getpid()
11472
11473	 /* Did the file descriptor bug occur?  */
11474	 || fstat(fileno(stdout), &st) != 0
11475	 );
11476  }
11477}
11478_ACEOF
11479if ac_fn_c_try_run "$LINENO"; then :
11480  ac_cv_func_vfork_works=yes
11481else
11482  ac_cv_func_vfork_works=no
11483fi
11484rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11485  conftest.$ac_objext conftest.beam conftest.$ac_ext
11486fi
11487
11488fi
11489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11490$as_echo "$ac_cv_func_vfork_works" >&6; }
11491
11492fi;
11493if test "x$ac_cv_func_fork_works" = xcross; then
11494  ac_cv_func_vfork_works=$ac_cv_func_vfork
11495  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11496$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11497fi
11498
11499if test "x$ac_cv_func_vfork_works" = xyes; then
11500
11501$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11502
11503else
11504
11505$as_echo "#define vfork fork" >>confdefs.h
11506
11507fi
11508if test "x$ac_cv_func_fork_works" = xyes; then
11509
11510$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11511
11512fi
11513
11514for ac_header in sys/select.h sys/socket.h
11515do :
11516  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11517ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11518eval as_val=\$$as_ac_Header
11519   if test "x$as_val" = x""yes; then :
11520  cat >>confdefs.h <<_ACEOF
11521#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11522_ACEOF
11523
11524fi
11525
11526done
11527
11528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
11529$as_echo_n "checking types of arguments for select... " >&6; }
11530if test "${ac_cv_func_select_args+set}" = set; then :
11531  $as_echo_n "(cached) " >&6
11532else
11533  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
11534 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11535  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537/* end confdefs.h.  */
11538$ac_includes_default
11539#ifdef HAVE_SYS_SELECT_H
11540# include <sys/select.h>
11541#endif
11542#ifdef HAVE_SYS_SOCKET_H
11543# include <sys/socket.h>
11544#endif
11545
11546int
11547main ()
11548{
11549extern int select ($ac_arg1,
11550					    $ac_arg234, $ac_arg234, $ac_arg234,
11551					    $ac_arg5);
11552  ;
11553  return 0;
11554}
11555_ACEOF
11556if ac_fn_c_try_compile "$LINENO"; then :
11557  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11558fi
11559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11560  done
11561 done
11562done
11563# Provide a safe default value.
11564: ${ac_cv_func_select_args='int,int *,struct timeval *'}
11565
11566fi
11567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
11568$as_echo "$ac_cv_func_select_args" >&6; }
11569ac_save_IFS=$IFS; IFS=','
11570set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11571IFS=$ac_save_IFS
11572shift
11573
11574cat >>confdefs.h <<_ACEOF
11575#define SELECT_TYPE_ARG1 $1
11576_ACEOF
11577
11578
11579cat >>confdefs.h <<_ACEOF
11580#define SELECT_TYPE_ARG234 ($2)
11581_ACEOF
11582
11583
11584cat >>confdefs.h <<_ACEOF
11585#define SELECT_TYPE_ARG5 ($3)
11586_ACEOF
11587
11588rm -f conftest*
11589
11590for ac_func in vprintf
11591do :
11592  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
11593if test "x$ac_cv_func_vprintf" = x""yes; then :
11594  cat >>confdefs.h <<_ACEOF
11595#define HAVE_VPRINTF 1
11596_ACEOF
11597
11598ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
11599if test "x$ac_cv_func__doprnt" = x""yes; then :
11600
11601$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
11602
11603fi
11604
11605fi
11606done
11607
11608
11609for ac_func in select strerror dup2 memset strrchr asprintf
11610do :
11611  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11612ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11613eval as_val=\$$as_ac_var
11614   if test "x$as_val" = x""yes; then :
11615  cat >>confdefs.h <<_ACEOF
11616#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11617_ACEOF
11618
11619fi
11620done
11621
11622ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11623if test "x$ac_cv_type_mode_t" = x""yes; then :
11624
11625else
11626
11627cat >>confdefs.h <<_ACEOF
11628#define mode_t int
11629_ACEOF
11630
11631fi
11632
11633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11634$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11635if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11636  $as_echo_n "(cached) " >&6
11637else
11638  if test "$cross_compiling" = yes; then :
11639  as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
11640else
11641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642/* end confdefs.h.  */
11643$ac_includes_default
11644int
11645main ()
11646{
11647/* If this system has a BSD-style setpgrp which takes arguments,
11648  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
11649  exit successfully. */
11650  return setpgrp (1,1) != -1;
11651  ;
11652  return 0;
11653}
11654_ACEOF
11655if ac_fn_c_try_run "$LINENO"; then :
11656  ac_cv_func_setpgrp_void=no
11657else
11658  ac_cv_func_setpgrp_void=yes
11659fi
11660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11661  conftest.$ac_objext conftest.beam conftest.$ac_ext
11662fi
11663
11664fi
11665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11666$as_echo "$ac_cv_func_setpgrp_void" >&6; }
11667if test $ac_cv_func_setpgrp_void = yes; then
11668
11669$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11670
11671fi
11672
11673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11674$as_echo_n "checking return type of signal handlers... " >&6; }
11675if test "${ac_cv_type_signal+set}" = set; then :
11676  $as_echo_n "(cached) " >&6
11677else
11678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11679/* end confdefs.h.  */
11680#include <sys/types.h>
11681#include <signal.h>
11682
11683int
11684main ()
11685{
11686return *(signal (0, 0)) (0) == 1;
11687  ;
11688  return 0;
11689}
11690_ACEOF
11691if ac_fn_c_try_compile "$LINENO"; then :
11692  ac_cv_type_signal=int
11693else
11694  ac_cv_type_signal=void
11695fi
11696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11697fi
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11699$as_echo "$ac_cv_type_signal" >&6; }
11700
11701cat >>confdefs.h <<_ACEOF
11702#define RETSIGTYPE $ac_cv_type_signal
11703_ACEOF
11704
11705
11706ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11707if test "x$ac_cv_type_size_t" = x""yes; then :
11708
11709else
11710
11711cat >>confdefs.h <<_ACEOF
11712#define size_t unsigned int
11713_ACEOF
11714
11715fi
11716
11717
11718# Check whether --enable-largefile was given.
11719if test "${enable_largefile+set}" = set; then :
11720  enableval=$enable_largefile;
11721fi
11722
11723if test "$enable_largefile" != no; then
11724
11725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11726$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11727if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11728  $as_echo_n "(cached) " >&6
11729else
11730  ac_cv_sys_largefile_CC=no
11731     if test "$GCC" != yes; then
11732       ac_save_CC=$CC
11733       while :; do
11734	 # IRIX 6.2 and later do not support large files by default,
11735	 # so use the C compiler's -n32 option if that helps.
11736	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737/* end confdefs.h.  */
11738#include <sys/types.h>
11739 /* Check that off_t can represent 2**63 - 1 correctly.
11740    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11741    since some C++ compilers masquerading as C compilers
11742    incorrectly reject 9223372036854775807.  */
11743#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11744  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11745		       && LARGE_OFF_T % 2147483647 == 1)
11746		      ? 1 : -1];
11747int
11748main ()
11749{
11750
11751  ;
11752  return 0;
11753}
11754_ACEOF
11755	 if ac_fn_c_try_compile "$LINENO"; then :
11756  break
11757fi
11758rm -f core conftest.err conftest.$ac_objext
11759	 CC="$CC -n32"
11760	 if ac_fn_c_try_compile "$LINENO"; then :
11761  ac_cv_sys_largefile_CC=' -n32'; break
11762fi
11763rm -f core conftest.err conftest.$ac_objext
11764	 break
11765       done
11766       CC=$ac_save_CC
11767       rm -f conftest.$ac_ext
11768    fi
11769fi
11770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11771$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11772  if test "$ac_cv_sys_largefile_CC" != no; then
11773    CC=$CC$ac_cv_sys_largefile_CC
11774  fi
11775
11776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11777$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11778if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11779  $as_echo_n "(cached) " >&6
11780else
11781  while :; do
11782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783/* end confdefs.h.  */
11784#include <sys/types.h>
11785 /* Check that off_t can represent 2**63 - 1 correctly.
11786    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11787    since some C++ compilers masquerading as C compilers
11788    incorrectly reject 9223372036854775807.  */
11789#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11790  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11791		       && LARGE_OFF_T % 2147483647 == 1)
11792		      ? 1 : -1];
11793int
11794main ()
11795{
11796
11797  ;
11798  return 0;
11799}
11800_ACEOF
11801if ac_fn_c_try_compile "$LINENO"; then :
11802  ac_cv_sys_file_offset_bits=no; break
11803fi
11804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806/* end confdefs.h.  */
11807#define _FILE_OFFSET_BITS 64
11808#include <sys/types.h>
11809 /* Check that off_t can represent 2**63 - 1 correctly.
11810    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11811    since some C++ compilers masquerading as C compilers
11812    incorrectly reject 9223372036854775807.  */
11813#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11814  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11815		       && LARGE_OFF_T % 2147483647 == 1)
11816		      ? 1 : -1];
11817int
11818main ()
11819{
11820
11821  ;
11822  return 0;
11823}
11824_ACEOF
11825if ac_fn_c_try_compile "$LINENO"; then :
11826  ac_cv_sys_file_offset_bits=64; break
11827fi
11828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829  ac_cv_sys_file_offset_bits=unknown
11830  break
11831done
11832fi
11833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11834$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11835case $ac_cv_sys_file_offset_bits in #(
11836  no | unknown) ;;
11837  *)
11838cat >>confdefs.h <<_ACEOF
11839#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11840_ACEOF
11841;;
11842esac
11843rm -rf conftest*
11844  if test $ac_cv_sys_file_offset_bits = unknown; then
11845    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11846$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11847if test "${ac_cv_sys_large_files+set}" = set; then :
11848  $as_echo_n "(cached) " >&6
11849else
11850  while :; do
11851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852/* end confdefs.h.  */
11853#include <sys/types.h>
11854 /* Check that off_t can represent 2**63 - 1 correctly.
11855    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11856    since some C++ compilers masquerading as C compilers
11857    incorrectly reject 9223372036854775807.  */
11858#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11859  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11860		       && LARGE_OFF_T % 2147483647 == 1)
11861		      ? 1 : -1];
11862int
11863main ()
11864{
11865
11866  ;
11867  return 0;
11868}
11869_ACEOF
11870if ac_fn_c_try_compile "$LINENO"; then :
11871  ac_cv_sys_large_files=no; break
11872fi
11873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875/* end confdefs.h.  */
11876#define _LARGE_FILES 1
11877#include <sys/types.h>
11878 /* Check that off_t can represent 2**63 - 1 correctly.
11879    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11880    since some C++ compilers masquerading as C compilers
11881    incorrectly reject 9223372036854775807.  */
11882#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11883  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11884		       && LARGE_OFF_T % 2147483647 == 1)
11885		      ? 1 : -1];
11886int
11887main ()
11888{
11889
11890  ;
11891  return 0;
11892}
11893_ACEOF
11894if ac_fn_c_try_compile "$LINENO"; then :
11895  ac_cv_sys_large_files=1; break
11896fi
11897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898  ac_cv_sys_large_files=unknown
11899  break
11900done
11901fi
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11903$as_echo "$ac_cv_sys_large_files" >&6; }
11904case $ac_cv_sys_large_files in #(
11905  no | unknown) ;;
11906  *)
11907cat >>confdefs.h <<_ACEOF
11908#define _LARGE_FILES $ac_cv_sys_large_files
11909_ACEOF
11910;;
11911esac
11912rm -rf conftest*
11913  fi
11914fi
11915
11916
11917
11918
11919
11920  case $host in
11921                    *-freebsd*) ;;
11922     *)
11923                           	for possible_flags in "-Wl,--no-undefined" "-Wl,-z,defs"; do
11924
11925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $possible_flags flag" >&5
11926$as_echo_n "checking if $CC supports $possible_flags flag... " >&6; }
11927if { as_var=`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then :
11928  $as_echo_n "(cached) " >&6
11929else
11930  ac_save_LDFLAGS="$LDFLAGS"
11931     LDFLAGS="$LDFLAGS $possible_flags"
11932     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933/* end confdefs.h.  */
11934int main() { return 1; }
11935_ACEOF
11936if ac_fn_c_try_link "$LINENO"; then :
11937  eval "`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`='yes'"
11938else
11939  eval "`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`="
11940fi
11941rm -f core conftest.err conftest.$ac_objext \
11942    conftest$ac_exeext conftest.$ac_ext
11943     LDFLAGS="$ac_save_LDFLAGS"
11944
11945fi
11946eval ac_res=\$`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`
11947	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11948$as_echo "$ac_res" >&6; }
11949
11950  if eval test x$`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh` = xyes; then :
11951  LDFLAGS_NOUNDEFINED="$possible_flags"
11952fi
11953
11954	  break
11955        done
11956	;;
11957  esac
11958
11959
11960
11961
11962
11963  # Check whether --enable-lynx was given.
11964if test "${enable_lynx+set}" = set; then :
11965  enableval=$enable_lynx;
11966else
11967  enable_lynx=yes
11968fi
11969
11970
11971  case "${enable_lynx}" in
11972    yes)
11973      # Extract the first word of "lynx", so it can be a program name with args.
11974set dummy lynx; ac_word=$2
11975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11976$as_echo_n "checking for $ac_word... " >&6; }
11977if test "${ac_cv_prog_have_lynx+set}" = set; then :
11978  $as_echo_n "(cached) " >&6
11979else
11980  if test -n "$have_lynx"; then
11981  ac_cv_prog_have_lynx="$have_lynx" # Let the user override the test.
11982else
11983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11984for as_dir in $PATH
11985do
11986  IFS=$as_save_IFS
11987  test -z "$as_dir" && as_dir=.
11988    for ac_exec_ext in '' $ac_executable_extensions; do
11989  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11990    ac_cv_prog_have_lynx="yes"
11991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11992    break 2
11993  fi
11994done
11995  done
11996IFS=$as_save_IFS
11997
11998  test -z "$ac_cv_prog_have_lynx" && ac_cv_prog_have_lynx="no"
11999fi
12000fi
12001have_lynx=$ac_cv_prog_have_lynx
12002if test -n "$have_lynx"; then
12003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_lynx" >&5
12004$as_echo "$have_lynx" >&6; }
12005else
12006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12007$as_echo "no" >&6; }
12008fi
12009
12010
12011
12012      if test x$have_lynx = xno ; then
12013         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** lynx not found, plain text README will not be built ***" >&5
12014$as_echo "$as_me: WARNING: *** lynx not found, plain text README will not be built ***" >&2;}
12015      fi
12016      ;;
12017    no)
12018      have_lynx=no ;;
12019    *)
12020      as_fn_error "bad value ${enableval} for --disable-lynx" "$LINENO" 5 ;;
12021  esac
12022
12023   if test "x$have_lynx" = xyes; then
12024  USE_LYNX_TRUE=
12025  USE_LYNX_FALSE='#'
12026else
12027  USE_LYNX_TRUE='#'
12028  USE_LYNX_FALSE=
12029fi
12030
12031
12032
12033# Check whether --enable-examples was given.
12034if test "${enable_examples+set}" = set; then :
12035  enableval=$enable_examples;
12036else
12037  enable_examples="yes"
12038fi
12039
12040 if test "$enable_examples" = "yes"; then
12041  EXAMPLES_TRUE=
12042  EXAMPLES_FALSE='#'
12043else
12044  EXAMPLES_TRUE='#'
12045  EXAMPLES_FALSE=
12046fi
12047
12048
12049ac_config_files="$ac_config_files libdaemon/Makefile Makefile doc/Makefile doc/README.html doc/doxygen.conf examples/Makefile pkgconfig/libdaemon.pc pkgconfig/libdaemon-uninstalled.pc"
12050
12051cat >confcache <<\_ACEOF
12052# This file is a shell script that caches the results of configure
12053# tests run on this system so they can be shared between configure
12054# scripts and configure runs, see configure's option --config-cache.
12055# It is not useful on other systems.  If it contains results you don't
12056# want to keep, you may remove or edit it.
12057#
12058# config.status only pays attention to the cache file if you give it
12059# the --recheck option to rerun configure.
12060#
12061# `ac_cv_env_foo' variables (set or unset) will be overridden when
12062# loading this file, other *unset* `ac_cv_foo' will be assigned the
12063# following values.
12064
12065_ACEOF
12066
12067# The following way of writing the cache mishandles newlines in values,
12068# but we know of no workaround that is simple, portable, and efficient.
12069# So, we kill variables containing newlines.
12070# Ultrix sh set writes to stderr and can't be redirected directly,
12071# and sets the high bit in the cache file unless we assign to the vars.
12072(
12073  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12074    eval ac_val=\$$ac_var
12075    case $ac_val in #(
12076    *${as_nl}*)
12077      case $ac_var in #(
12078      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12079$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12080      esac
12081      case $ac_var in #(
12082      _ | IFS | as_nl) ;; #(
12083      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12084      *) { eval $ac_var=; unset $ac_var;} ;;
12085      esac ;;
12086    esac
12087  done
12088
12089  (set) 2>&1 |
12090    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12091    *${as_nl}ac_space=\ *)
12092      # `set' does not quote correctly, so add quotes: double-quote
12093      # substitution turns \\\\ into \\, and sed turns \\ into \.
12094      sed -n \
12095	"s/'/'\\\\''/g;
12096	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12097      ;; #(
12098    *)
12099      # `set' quotes correctly as required by POSIX, so do not add quotes.
12100      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12101      ;;
12102    esac |
12103    sort
12104) |
12105  sed '
12106     /^ac_cv_env_/b end
12107     t clear
12108     :clear
12109     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12110     t end
12111     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12112     :end' >>confcache
12113if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12114  if test -w "$cache_file"; then
12115    test "x$cache_file" != "x/dev/null" &&
12116      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12117$as_echo "$as_me: updating cache $cache_file" >&6;}
12118    cat confcache >$cache_file
12119  else
12120    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12121$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12122  fi
12123fi
12124rm -f confcache
12125
12126test "x$prefix" = xNONE && prefix=$ac_default_prefix
12127# Let make expand exec_prefix.
12128test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12129
12130DEFS=-DHAVE_CONFIG_H
12131
12132ac_libobjs=
12133ac_ltlibobjs=
12134for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12135  # 1. Remove the extension, and $U if already installed.
12136  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12137  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12138  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12139  #    will be set to the directory where LIBOBJS objects are built.
12140  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12141  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12142done
12143LIBOBJS=$ac_libobjs
12144
12145LTLIBOBJS=$ac_ltlibobjs
12146
12147
12148 if test -n "$EXEEXT"; then
12149  am__EXEEXT_TRUE=
12150  am__EXEEXT_FALSE='#'
12151else
12152  am__EXEEXT_TRUE='#'
12153  am__EXEEXT_FALSE=
12154fi
12155
12156if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12157  as_fn_error "conditional \"AMDEP\" was never defined.
12158Usually this means the macro was only invoked conditionally." "$LINENO" 5
12159fi
12160if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12161  as_fn_error "conditional \"am__fastdepCC\" was never defined.
12162Usually this means the macro was only invoked conditionally." "$LINENO" 5
12163fi
12164if test -z "${USE_LYNX_TRUE}" && test -z "${USE_LYNX_FALSE}"; then
12165  as_fn_error "conditional \"USE_LYNX\" was never defined.
12166Usually this means the macro was only invoked conditionally." "$LINENO" 5
12167fi
12168if test -z "${EXAMPLES_TRUE}" && test -z "${EXAMPLES_FALSE}"; then
12169  as_fn_error "conditional \"EXAMPLES\" was never defined.
12170Usually this means the macro was only invoked conditionally." "$LINENO" 5
12171fi
12172
12173: ${CONFIG_STATUS=./config.status}
12174ac_write_fail=0
12175ac_clean_files_save=$ac_clean_files
12176ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12177{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12178$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12179as_write_fail=0
12180cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12181#! $SHELL
12182# Generated by $as_me.
12183# Run this file to recreate the current configuration.
12184# Compiler output produced by configure, useful for debugging
12185# configure, is in config.log if it exists.
12186
12187debug=false
12188ac_cs_recheck=false
12189ac_cs_silent=false
12190
12191SHELL=\${CONFIG_SHELL-$SHELL}
12192export SHELL
12193_ASEOF
12194cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12195## -------------------- ##
12196## M4sh Initialization. ##
12197## -------------------- ##
12198
12199# Be more Bourne compatible
12200DUALCASE=1; export DUALCASE # for MKS sh
12201if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12202  emulate sh
12203  NULLCMD=:
12204  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12205  # is contrary to our usage.  Disable this feature.
12206  alias -g '${1+"$@"}'='"$@"'
12207  setopt NO_GLOB_SUBST
12208else
12209  case `(set -o) 2>/dev/null` in #(
12210  *posix*) :
12211    set -o posix ;; #(
12212  *) :
12213     ;;
12214esac
12215fi
12216
12217
12218as_nl='
12219'
12220export as_nl
12221# Printing a long string crashes Solaris 7 /usr/bin/printf.
12222as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12223as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12224as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12225# Prefer a ksh shell builtin over an external printf program on Solaris,
12226# but without wasting forks for bash or zsh.
12227if test -z "$BASH_VERSION$ZSH_VERSION" \
12228    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12229  as_echo='print -r --'
12230  as_echo_n='print -rn --'
12231elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12232  as_echo='printf %s\n'
12233  as_echo_n='printf %s'
12234else
12235  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12236    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12237    as_echo_n='/usr/ucb/echo -n'
12238  else
12239    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12240    as_echo_n_body='eval
12241      arg=$1;
12242      case $arg in #(
12243      *"$as_nl"*)
12244	expr "X$arg" : "X\\(.*\\)$as_nl";
12245	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12246      esac;
12247      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12248    '
12249    export as_echo_n_body
12250    as_echo_n='sh -c $as_echo_n_body as_echo'
12251  fi
12252  export as_echo_body
12253  as_echo='sh -c $as_echo_body as_echo'
12254fi
12255
12256# The user is always right.
12257if test "${PATH_SEPARATOR+set}" != set; then
12258  PATH_SEPARATOR=:
12259  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12260    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12261      PATH_SEPARATOR=';'
12262  }
12263fi
12264
12265
12266# IFS
12267# We need space, tab and new line, in precisely that order.  Quoting is
12268# there to prevent editors from complaining about space-tab.
12269# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12270# splitting by setting IFS to empty value.)
12271IFS=" ""	$as_nl"
12272
12273# Find who we are.  Look in the path if we contain no directory separator.
12274case $0 in #((
12275  *[\\/]* ) as_myself=$0 ;;
12276  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277for as_dir in $PATH
12278do
12279  IFS=$as_save_IFS
12280  test -z "$as_dir" && as_dir=.
12281    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12282  done
12283IFS=$as_save_IFS
12284
12285     ;;
12286esac
12287# We did not find ourselves, most probably we were run as `sh COMMAND'
12288# in which case we are not to be found in the path.
12289if test "x$as_myself" = x; then
12290  as_myself=$0
12291fi
12292if test ! -f "$as_myself"; then
12293  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12294  exit 1
12295fi
12296
12297# Unset variables that we do not need and which cause bugs (e.g. in
12298# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12299# suppresses any "Segmentation fault" message there.  '((' could
12300# trigger a bug in pdksh 5.2.14.
12301for as_var in BASH_ENV ENV MAIL MAILPATH
12302do eval test x\${$as_var+set} = xset \
12303  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12304done
12305PS1='$ '
12306PS2='> '
12307PS4='+ '
12308
12309# NLS nuisances.
12310LC_ALL=C
12311export LC_ALL
12312LANGUAGE=C
12313export LANGUAGE
12314
12315# CDPATH.
12316(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12317
12318
12319# as_fn_error ERROR [LINENO LOG_FD]
12320# ---------------------------------
12321# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12322# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12323# script with status $?, using 1 if that was 0.
12324as_fn_error ()
12325{
12326  as_status=$?; test $as_status -eq 0 && as_status=1
12327  if test "$3"; then
12328    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12329    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12330  fi
12331  $as_echo "$as_me: error: $1" >&2
12332  as_fn_exit $as_status
12333} # as_fn_error
12334
12335
12336# as_fn_set_status STATUS
12337# -----------------------
12338# Set $? to STATUS, without forking.
12339as_fn_set_status ()
12340{
12341  return $1
12342} # as_fn_set_status
12343
12344# as_fn_exit STATUS
12345# -----------------
12346# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12347as_fn_exit ()
12348{
12349  set +e
12350  as_fn_set_status $1
12351  exit $1
12352} # as_fn_exit
12353
12354# as_fn_unset VAR
12355# ---------------
12356# Portably unset VAR.
12357as_fn_unset ()
12358{
12359  { eval $1=; unset $1;}
12360}
12361as_unset=as_fn_unset
12362# as_fn_append VAR VALUE
12363# ----------------------
12364# Append the text in VALUE to the end of the definition contained in VAR. Take
12365# advantage of any shell optimizations that allow amortized linear growth over
12366# repeated appends, instead of the typical quadratic growth present in naive
12367# implementations.
12368if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12369  eval 'as_fn_append ()
12370  {
12371    eval $1+=\$2
12372  }'
12373else
12374  as_fn_append ()
12375  {
12376    eval $1=\$$1\$2
12377  }
12378fi # as_fn_append
12379
12380# as_fn_arith ARG...
12381# ------------------
12382# Perform arithmetic evaluation on the ARGs, and store the result in the
12383# global $as_val. Take advantage of shells that can avoid forks. The arguments
12384# must be portable across $(()) and expr.
12385if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12386  eval 'as_fn_arith ()
12387  {
12388    as_val=$(( $* ))
12389  }'
12390else
12391  as_fn_arith ()
12392  {
12393    as_val=`expr "$@" || test $? -eq 1`
12394  }
12395fi # as_fn_arith
12396
12397
12398if expr a : '\(a\)' >/dev/null 2>&1 &&
12399   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12400  as_expr=expr
12401else
12402  as_expr=false
12403fi
12404
12405if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12406  as_basename=basename
12407else
12408  as_basename=false
12409fi
12410
12411if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12412  as_dirname=dirname
12413else
12414  as_dirname=false
12415fi
12416
12417as_me=`$as_basename -- "$0" ||
12418$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12419	 X"$0" : 'X\(//\)$' \| \
12420	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12421$as_echo X/"$0" |
12422    sed '/^.*\/\([^/][^/]*\)\/*$/{
12423	    s//\1/
12424	    q
12425	  }
12426	  /^X\/\(\/\/\)$/{
12427	    s//\1/
12428	    q
12429	  }
12430	  /^X\/\(\/\).*/{
12431	    s//\1/
12432	    q
12433	  }
12434	  s/.*/./; q'`
12435
12436# Avoid depending upon Character Ranges.
12437as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12438as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12439as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12440as_cr_digits='0123456789'
12441as_cr_alnum=$as_cr_Letters$as_cr_digits
12442
12443ECHO_C= ECHO_N= ECHO_T=
12444case `echo -n x` in #(((((
12445-n*)
12446  case `echo 'xy\c'` in
12447  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12448  xy)  ECHO_C='\c';;
12449  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12450       ECHO_T='	';;
12451  esac;;
12452*)
12453  ECHO_N='-n';;
12454esac
12455
12456rm -f conf$$ conf$$.exe conf$$.file
12457if test -d conf$$.dir; then
12458  rm -f conf$$.dir/conf$$.file
12459else
12460  rm -f conf$$.dir
12461  mkdir conf$$.dir 2>/dev/null
12462fi
12463if (echo >conf$$.file) 2>/dev/null; then
12464  if ln -s conf$$.file conf$$ 2>/dev/null; then
12465    as_ln_s='ln -s'
12466    # ... but there are two gotchas:
12467    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12468    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12469    # In both cases, we have to default to `cp -p'.
12470    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12471      as_ln_s='cp -p'
12472  elif ln conf$$.file conf$$ 2>/dev/null; then
12473    as_ln_s=ln
12474  else
12475    as_ln_s='cp -p'
12476  fi
12477else
12478  as_ln_s='cp -p'
12479fi
12480rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12481rmdir conf$$.dir 2>/dev/null
12482
12483
12484# as_fn_mkdir_p
12485# -------------
12486# Create "$as_dir" as a directory, including parents if necessary.
12487as_fn_mkdir_p ()
12488{
12489
12490  case $as_dir in #(
12491  -*) as_dir=./$as_dir;;
12492  esac
12493  test -d "$as_dir" || eval $as_mkdir_p || {
12494    as_dirs=
12495    while :; do
12496      case $as_dir in #(
12497      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12498      *) as_qdir=$as_dir;;
12499      esac
12500      as_dirs="'$as_qdir' $as_dirs"
12501      as_dir=`$as_dirname -- "$as_dir" ||
12502$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12503	 X"$as_dir" : 'X\(//\)[^/]' \| \
12504	 X"$as_dir" : 'X\(//\)$' \| \
12505	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12506$as_echo X"$as_dir" |
12507    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12508	    s//\1/
12509	    q
12510	  }
12511	  /^X\(\/\/\)[^/].*/{
12512	    s//\1/
12513	    q
12514	  }
12515	  /^X\(\/\/\)$/{
12516	    s//\1/
12517	    q
12518	  }
12519	  /^X\(\/\).*/{
12520	    s//\1/
12521	    q
12522	  }
12523	  s/.*/./; q'`
12524      test -d "$as_dir" && break
12525    done
12526    test -z "$as_dirs" || eval "mkdir $as_dirs"
12527  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12528
12529
12530} # as_fn_mkdir_p
12531if mkdir -p . 2>/dev/null; then
12532  as_mkdir_p='mkdir -p "$as_dir"'
12533else
12534  test -d ./-p && rmdir ./-p
12535  as_mkdir_p=false
12536fi
12537
12538if test -x / >/dev/null 2>&1; then
12539  as_test_x='test -x'
12540else
12541  if ls -dL / >/dev/null 2>&1; then
12542    as_ls_L_option=L
12543  else
12544    as_ls_L_option=
12545  fi
12546  as_test_x='
12547    eval sh -c '\''
12548      if test -d "$1"; then
12549	test -d "$1/.";
12550      else
12551	case $1 in #(
12552	-*)set "./$1";;
12553	esac;
12554	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12555	???[sx]*):;;*)false;;esac;fi
12556    '\'' sh
12557  '
12558fi
12559as_executable_p=$as_test_x
12560
12561# Sed expression to map a string onto a valid CPP name.
12562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12563
12564# Sed expression to map a string onto a valid variable name.
12565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12566
12567
12568exec 6>&1
12569## ----------------------------------- ##
12570## Main body of $CONFIG_STATUS script. ##
12571## ----------------------------------- ##
12572_ASEOF
12573test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12574
12575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12576# Save the log message, to keep $0 and so on meaningful, and to
12577# report actual input values of CONFIG_FILES etc. instead of their
12578# values after options handling.
12579ac_log="
12580This file was extended by libdaemon $as_me 0.14, which was
12581generated by GNU Autoconf 2.65.  Invocation command line was
12582
12583  CONFIG_FILES    = $CONFIG_FILES
12584  CONFIG_HEADERS  = $CONFIG_HEADERS
12585  CONFIG_LINKS    = $CONFIG_LINKS
12586  CONFIG_COMMANDS = $CONFIG_COMMANDS
12587  $ $0 $@
12588
12589on `(hostname || uname -n) 2>/dev/null | sed 1q`
12590"
12591
12592_ACEOF
12593
12594case $ac_config_files in *"
12595"*) set x $ac_config_files; shift; ac_config_files=$*;;
12596esac
12597
12598case $ac_config_headers in *"
12599"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12600esac
12601
12602
12603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12604# Files that config.status was made for.
12605config_files="$ac_config_files"
12606config_headers="$ac_config_headers"
12607config_commands="$ac_config_commands"
12608
12609_ACEOF
12610
12611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12612ac_cs_usage="\
12613\`$as_me' instantiates files and other configuration actions
12614from templates according to the current configuration.  Unless the files
12615and actions are specified as TAGs, all are instantiated by default.
12616
12617Usage: $0 [OPTION]... [TAG]...
12618
12619  -h, --help       print this help, then exit
12620  -V, --version    print version number and configuration settings, then exit
12621      --config     print configuration, then exit
12622  -q, --quiet, --silent
12623                   do not print progress messages
12624  -d, --debug      don't remove temporary files
12625      --recheck    update $as_me by reconfiguring in the same conditions
12626      --file=FILE[:TEMPLATE]
12627                   instantiate the configuration file FILE
12628      --header=FILE[:TEMPLATE]
12629                   instantiate the configuration header FILE
12630
12631Configuration files:
12632$config_files
12633
12634Configuration headers:
12635$config_headers
12636
12637Configuration commands:
12638$config_commands
12639
12640Report bugs to <mzqnrzba (at) 0pointer (dot) de>."
12641
12642_ACEOF
12643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12644ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12645ac_cs_version="\\
12646libdaemon config.status 0.14
12647configured by $0, generated by GNU Autoconf 2.65,
12648  with options \\"\$ac_cs_config\\"
12649
12650Copyright (C) 2009 Free Software Foundation, Inc.
12651This config.status script is free software; the Free Software Foundation
12652gives unlimited permission to copy, distribute and modify it."
12653
12654ac_pwd='$ac_pwd'
12655srcdir='$srcdir'
12656INSTALL='$INSTALL'
12657MKDIR_P='$MKDIR_P'
12658AWK='$AWK'
12659test -n "\$AWK" || AWK=awk
12660_ACEOF
12661
12662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12663# The default lists apply if the user does not specify any file.
12664ac_need_defaults=:
12665while test $# != 0
12666do
12667  case $1 in
12668  --*=*)
12669    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12670    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12671    ac_shift=:
12672    ;;
12673  *)
12674    ac_option=$1
12675    ac_optarg=$2
12676    ac_shift=shift
12677    ;;
12678  esac
12679
12680  case $ac_option in
12681  # Handling of the options.
12682  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12683    ac_cs_recheck=: ;;
12684  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12685    $as_echo "$ac_cs_version"; exit ;;
12686  --config | --confi | --conf | --con | --co | --c )
12687    $as_echo "$ac_cs_config"; exit ;;
12688  --debug | --debu | --deb | --de | --d | -d )
12689    debug=: ;;
12690  --file | --fil | --fi | --f )
12691    $ac_shift
12692    case $ac_optarg in
12693    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12694    esac
12695    as_fn_append CONFIG_FILES " '$ac_optarg'"
12696    ac_need_defaults=false;;
12697  --header | --heade | --head | --hea )
12698    $ac_shift
12699    case $ac_optarg in
12700    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12701    esac
12702    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12703    ac_need_defaults=false;;
12704  --he | --h)
12705    # Conflict between --help and --header
12706    as_fn_error "ambiguous option: \`$1'
12707Try \`$0 --help' for more information.";;
12708  --help | --hel | -h )
12709    $as_echo "$ac_cs_usage"; exit ;;
12710  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12711  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12712    ac_cs_silent=: ;;
12713
12714  # This is an error.
12715  -*) as_fn_error "unrecognized option: \`$1'
12716Try \`$0 --help' for more information." ;;
12717
12718  *) as_fn_append ac_config_targets " $1"
12719     ac_need_defaults=false ;;
12720
12721  esac
12722  shift
12723done
12724
12725ac_configure_extra_args=
12726
12727if $ac_cs_silent; then
12728  exec 6>/dev/null
12729  ac_configure_extra_args="$ac_configure_extra_args --silent"
12730fi
12731
12732_ACEOF
12733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12734if \$ac_cs_recheck; then
12735  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12736  shift
12737  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12738  CONFIG_SHELL='$SHELL'
12739  export CONFIG_SHELL
12740  exec "\$@"
12741fi
12742
12743_ACEOF
12744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12745exec 5>>config.log
12746{
12747  echo
12748  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12749## Running $as_me. ##
12750_ASBOX
12751  $as_echo "$ac_log"
12752} >&5
12753
12754_ACEOF
12755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12756#
12757# INIT-COMMANDS
12758#
12759AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12760
12761
12762# The HP-UX ksh and POSIX shell print the target directory to stdout
12763# if CDPATH is set.
12764(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12765
12766sed_quote_subst='$sed_quote_subst'
12767double_quote_subst='$double_quote_subst'
12768delay_variable_subst='$delay_variable_subst'
12769macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12770macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12771enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12772enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12773pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12774enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12775host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12776host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12777host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12778build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12779build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12780build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12781SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12782Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12783GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12784EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12785FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12786LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12787NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12788LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12789max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12790ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12791exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12792lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12793lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12794lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12795reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12796reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12797OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12798deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12799file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12800AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12801AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12802STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12803RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12804old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12805old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12806old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12807CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12808CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12809compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12810GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12811lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12812lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12813lt_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"`'
12814lt_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"`'
12815objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12816SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12817ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12818MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12819lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12820lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12821lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12822lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12823lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12824need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12825DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12826NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12827LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12828OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12829OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12830libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12831shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12832extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12833archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12834enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12835export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12836whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12837compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12838old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12839old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12840archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12841archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12842module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12843module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12844with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12845allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12846no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12847hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12848hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12849hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12850hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12851hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12852hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12853hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12854hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12855inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12856link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12857fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12858always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12859export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12860exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12861include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12862prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12863file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12864variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12865need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12866need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12867version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12868runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12869shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12870shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12871libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12872library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12873soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12874postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12875postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12876finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12877finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12878hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12879sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12880sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12881hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12882enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12883enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12884enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12885old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12886striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12887
12888LTCC='$LTCC'
12889LTCFLAGS='$LTCFLAGS'
12890compiler='$compiler_DEFAULT'
12891
12892# Quote evaled strings.
12893for var in SED \
12894GREP \
12895EGREP \
12896FGREP \
12897LD \
12898NM \
12899LN_S \
12900lt_SP2NL \
12901lt_NL2SP \
12902reload_flag \
12903OBJDUMP \
12904deplibs_check_method \
12905file_magic_cmd \
12906AR \
12907AR_FLAGS \
12908STRIP \
12909RANLIB \
12910CC \
12911CFLAGS \
12912compiler \
12913lt_cv_sys_global_symbol_pipe \
12914lt_cv_sys_global_symbol_to_cdecl \
12915lt_cv_sys_global_symbol_to_c_name_address \
12916lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12917SHELL \
12918ECHO \
12919lt_prog_compiler_no_builtin_flag \
12920lt_prog_compiler_wl \
12921lt_prog_compiler_pic \
12922lt_prog_compiler_static \
12923lt_cv_prog_compiler_c_o \
12924need_locks \
12925DSYMUTIL \
12926NMEDIT \
12927LIPO \
12928OTOOL \
12929OTOOL64 \
12930shrext_cmds \
12931export_dynamic_flag_spec \
12932whole_archive_flag_spec \
12933compiler_needs_object \
12934with_gnu_ld \
12935allow_undefined_flag \
12936no_undefined_flag \
12937hardcode_libdir_flag_spec \
12938hardcode_libdir_flag_spec_ld \
12939hardcode_libdir_separator \
12940fix_srcfile_path \
12941exclude_expsyms \
12942include_expsyms \
12943file_list_spec \
12944variables_saved_for_relink \
12945libname_spec \
12946library_names_spec \
12947soname_spec \
12948finish_eval \
12949old_striplib \
12950striplib; do
12951    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12952    *[\\\\\\\`\\"\\\$]*)
12953      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12954      ;;
12955    *)
12956      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12957      ;;
12958    esac
12959done
12960
12961# Double-quote double-evaled strings.
12962for var in reload_cmds \
12963old_postinstall_cmds \
12964old_postuninstall_cmds \
12965old_archive_cmds \
12966extract_expsyms_cmds \
12967old_archive_from_new_cmds \
12968old_archive_from_expsyms_cmds \
12969archive_cmds \
12970archive_expsym_cmds \
12971module_cmds \
12972module_expsym_cmds \
12973export_symbols_cmds \
12974prelink_cmds \
12975postinstall_cmds \
12976postuninstall_cmds \
12977finish_cmds \
12978sys_lib_search_path_spec \
12979sys_lib_dlsearch_path_spec; do
12980    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12981    *[\\\\\\\`\\"\\\$]*)
12982      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12983      ;;
12984    *)
12985      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12986      ;;
12987    esac
12988done
12989
12990# Fix-up fallback echo if it was mangled by the above quoting rules.
12991case \$lt_ECHO in
12992*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12993  ;;
12994esac
12995
12996ac_aux_dir='$ac_aux_dir'
12997xsi_shell='$xsi_shell'
12998lt_shell_append='$lt_shell_append'
12999
13000# See if we are running on zsh, and set the options which allow our
13001# commands through without removal of \ escapes INIT.
13002if test -n "\${ZSH_VERSION+set}" ; then
13003   setopt NO_GLOB_SUBST
13004fi
13005
13006
13007    PACKAGE='$PACKAGE'
13008    VERSION='$VERSION'
13009    TIMESTAMP='$TIMESTAMP'
13010    RM='$RM'
13011    ofile='$ofile'
13012
13013
13014
13015
13016_ACEOF
13017
13018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13019
13020# Handling of arguments.
13021for ac_config_target in $ac_config_targets
13022do
13023  case $ac_config_target in
13024    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13025    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13026    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13027    "libdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/Makefile" ;;
13028    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13029    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13030    "doc/README.html") CONFIG_FILES="$CONFIG_FILES doc/README.html" ;;
13031    "doc/doxygen.conf") CONFIG_FILES="$CONFIG_FILES doc/doxygen.conf" ;;
13032    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13033    "pkgconfig/libdaemon.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libdaemon.pc" ;;
13034    "pkgconfig/libdaemon-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libdaemon-uninstalled.pc" ;;
13035
13036  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13037  esac
13038done
13039
13040
13041# If the user did not use the arguments to specify the items to instantiate,
13042# then the envvar interface is used.  Set only those that are not.
13043# We use the long form for the default assignment because of an extremely
13044# bizarre bug on SunOS 4.1.3.
13045if $ac_need_defaults; then
13046  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13047  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13048  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13049fi
13050
13051# Have a temporary directory for convenience.  Make it in the build tree
13052# simply because there is no reason against having it here, and in addition,
13053# creating and moving files from /tmp can sometimes cause problems.
13054# Hook for its removal unless debugging.
13055# Note that there is a small window in which the directory will not be cleaned:
13056# after its creation but before its name has been assigned to `$tmp'.
13057$debug ||
13058{
13059  tmp=
13060  trap 'exit_status=$?
13061  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13062' 0
13063  trap 'as_fn_exit 1' 1 2 13 15
13064}
13065# Create a (secure) tmp directory for tmp files.
13066
13067{
13068  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13069  test -n "$tmp" && test -d "$tmp"
13070}  ||
13071{
13072  tmp=./conf$$-$RANDOM
13073  (umask 077 && mkdir "$tmp")
13074} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13075
13076# Set up the scripts for CONFIG_FILES section.
13077# No need to generate them if there are no CONFIG_FILES.
13078# This happens for instance with `./config.status config.h'.
13079if test -n "$CONFIG_FILES"; then
13080
13081
13082ac_cr=`echo X | tr X '\015'`
13083# On cygwin, bash can eat \r inside `` if the user requested igncr.
13084# But we know of no other shell where ac_cr would be empty at this
13085# point, so we can use a bashism as a fallback.
13086if test "x$ac_cr" = x; then
13087  eval ac_cr=\$\'\\r\'
13088fi
13089ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13090if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13091  ac_cs_awk_cr='\r'
13092else
13093  ac_cs_awk_cr=$ac_cr
13094fi
13095
13096echo 'BEGIN {' >"$tmp/subs1.awk" &&
13097_ACEOF
13098
13099
13100{
13101  echo "cat >conf$$subs.awk <<_ACEOF" &&
13102  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13103  echo "_ACEOF"
13104} >conf$$subs.sh ||
13105  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13106ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13107ac_delim='%!_!# '
13108for ac_last_try in false false false false false :; do
13109  . ./conf$$subs.sh ||
13110    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13111
13112  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13113  if test $ac_delim_n = $ac_delim_num; then
13114    break
13115  elif $ac_last_try; then
13116    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13117  else
13118    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13119  fi
13120done
13121rm -f conf$$subs.sh
13122
13123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13124cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13125_ACEOF
13126sed -n '
13127h
13128s/^/S["/; s/!.*/"]=/
13129p
13130g
13131s/^[^!]*!//
13132:repl
13133t repl
13134s/'"$ac_delim"'$//
13135t delim
13136:nl
13137h
13138s/\(.\{148\}\)..*/\1/
13139t more1
13140s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13141p
13142n
13143b repl
13144:more1
13145s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13146p
13147g
13148s/.\{148\}//
13149t nl
13150:delim
13151h
13152s/\(.\{148\}\)..*/\1/
13153t more2
13154s/["\\]/\\&/g; s/^/"/; s/$/"/
13155p
13156b
13157:more2
13158s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13159p
13160g
13161s/.\{148\}//
13162t delim
13163' <conf$$subs.awk | sed '
13164/^[^""]/{
13165  N
13166  s/\n//
13167}
13168' >>$CONFIG_STATUS || ac_write_fail=1
13169rm -f conf$$subs.awk
13170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13171_ACAWK
13172cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13173  for (key in S) S_is_set[key] = 1
13174  FS = ""
13175
13176}
13177{
13178  line = $ 0
13179  nfields = split(line, field, "@")
13180  substed = 0
13181  len = length(field[1])
13182  for (i = 2; i < nfields; i++) {
13183    key = field[i]
13184    keylen = length(key)
13185    if (S_is_set[key]) {
13186      value = S[key]
13187      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13188      len += length(value) + length(field[++i])
13189      substed = 1
13190    } else
13191      len += 1 + keylen
13192  }
13193
13194  print line
13195}
13196
13197_ACAWK
13198_ACEOF
13199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13200if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13201  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13202else
13203  cat
13204fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13205  || as_fn_error "could not setup config files machinery" "$LINENO" 5
13206_ACEOF
13207
13208# VPATH may cause trouble with some makes, so we remove $(srcdir),
13209# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13210# trailing colons and then remove the whole line if VPATH becomes empty
13211# (actually we leave an empty line to preserve line numbers).
13212if test "x$srcdir" = x.; then
13213  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
13214s/:*\$(srcdir):*/:/
13215s/:*\${srcdir}:*/:/
13216s/:*@srcdir@:*/:/
13217s/^\([^=]*=[	 ]*\):*/\1/
13218s/:*$//
13219s/^[^=]*=[	 ]*$//
13220}'
13221fi
13222
13223cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13224fi # test -n "$CONFIG_FILES"
13225
13226# Set up the scripts for CONFIG_HEADERS section.
13227# No need to generate them if there are no CONFIG_HEADERS.
13228# This happens for instance with `./config.status Makefile'.
13229if test -n "$CONFIG_HEADERS"; then
13230cat >"$tmp/defines.awk" <<\_ACAWK ||
13231BEGIN {
13232_ACEOF
13233
13234# Transform confdefs.h into an awk script `defines.awk', embedded as
13235# here-document in config.status, that substitutes the proper values into
13236# config.h.in to produce config.h.
13237
13238# Create a delimiter string that does not exist in confdefs.h, to ease
13239# handling of long lines.
13240ac_delim='%!_!# '
13241for ac_last_try in false false :; do
13242  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13243  if test -z "$ac_t"; then
13244    break
13245  elif $ac_last_try; then
13246    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13247  else
13248    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13249  fi
13250done
13251
13252# For the awk script, D is an array of macro values keyed by name,
13253# likewise P contains macro parameters if any.  Preserve backslash
13254# newline sequences.
13255
13256ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13257sed -n '
13258s/.\{148\}/&'"$ac_delim"'/g
13259t rset
13260:rset
13261s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13262t def
13263d
13264:def
13265s/\\$//
13266t bsnl
13267s/["\\]/\\&/g
13268s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13269D["\1"]=" \3"/p
13270s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13271d
13272:bsnl
13273s/["\\]/\\&/g
13274s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13275D["\1"]=" \3\\\\\\n"\\/p
13276t cont
13277s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13278t cont
13279d
13280:cont
13281n
13282s/.\{148\}/&'"$ac_delim"'/g
13283t clear
13284:clear
13285s/\\$//
13286t bsnlc
13287s/["\\]/\\&/g; s/^/"/; s/$/"/p
13288d
13289:bsnlc
13290s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13291b cont
13292' <confdefs.h | sed '
13293s/'"$ac_delim"'/"\\\
13294"/g' >>$CONFIG_STATUS || ac_write_fail=1
13295
13296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13297  for (key in D) D_is_set[key] = 1
13298  FS = ""
13299}
13300/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13301  line = \$ 0
13302  split(line, arg, " ")
13303  if (arg[1] == "#") {
13304    defundef = arg[2]
13305    mac1 = arg[3]
13306  } else {
13307    defundef = substr(arg[1], 2)
13308    mac1 = arg[2]
13309  }
13310  split(mac1, mac2, "(") #)
13311  macro = mac2[1]
13312  prefix = substr(line, 1, index(line, defundef) - 1)
13313  if (D_is_set[macro]) {
13314    # Preserve the white space surrounding the "#".
13315    print prefix "define", macro P[macro] D[macro]
13316    next
13317  } else {
13318    # Replace #undef with comments.  This is necessary, for example,
13319    # in the case of _POSIX_SOURCE, which is predefined and required
13320    # on some systems where configure will not decide to define it.
13321    if (defundef == "undef") {
13322      print "/*", prefix defundef, macro, "*/"
13323      next
13324    }
13325  }
13326}
13327{ print }
13328_ACAWK
13329_ACEOF
13330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13331  as_fn_error "could not setup config headers machinery" "$LINENO" 5
13332fi # test -n "$CONFIG_HEADERS"
13333
13334
13335eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13336shift
13337for ac_tag
13338do
13339  case $ac_tag in
13340  :[FHLC]) ac_mode=$ac_tag; continue;;
13341  esac
13342  case $ac_mode$ac_tag in
13343  :[FHL]*:*);;
13344  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13345  :[FH]-) ac_tag=-:-;;
13346  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13347  esac
13348  ac_save_IFS=$IFS
13349  IFS=:
13350  set x $ac_tag
13351  IFS=$ac_save_IFS
13352  shift
13353  ac_file=$1
13354  shift
13355
13356  case $ac_mode in
13357  :L) ac_source=$1;;
13358  :[FH])
13359    ac_file_inputs=
13360    for ac_f
13361    do
13362      case $ac_f in
13363      -) ac_f="$tmp/stdin";;
13364      *) # Look for the file first in the build tree, then in the source tree
13365	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13366	 # because $ac_f cannot contain `:'.
13367	 test -f "$ac_f" ||
13368	   case $ac_f in
13369	   [\\/$]*) false;;
13370	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13371	   esac ||
13372	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13373      esac
13374      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13375      as_fn_append ac_file_inputs " '$ac_f'"
13376    done
13377
13378    # Let's still pretend it is `configure' which instantiates (i.e., don't
13379    # use $as_me), people would be surprised to read:
13380    #    /* config.h.  Generated by config.status.  */
13381    configure_input='Generated from '`
13382	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13383	`' by configure.'
13384    if test x"$ac_file" != x-; then
13385      configure_input="$ac_file.  $configure_input"
13386      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13387$as_echo "$as_me: creating $ac_file" >&6;}
13388    fi
13389    # Neutralize special characters interpreted by sed in replacement strings.
13390    case $configure_input in #(
13391    *\&* | *\|* | *\\* )
13392       ac_sed_conf_input=`$as_echo "$configure_input" |
13393       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13394    *) ac_sed_conf_input=$configure_input;;
13395    esac
13396
13397    case $ac_tag in
13398    *:-:* | *:-) cat >"$tmp/stdin" \
13399      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13400    esac
13401    ;;
13402  esac
13403
13404  ac_dir=`$as_dirname -- "$ac_file" ||
13405$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13406	 X"$ac_file" : 'X\(//\)[^/]' \| \
13407	 X"$ac_file" : 'X\(//\)$' \| \
13408	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13409$as_echo X"$ac_file" |
13410    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13411	    s//\1/
13412	    q
13413	  }
13414	  /^X\(\/\/\)[^/].*/{
13415	    s//\1/
13416	    q
13417	  }
13418	  /^X\(\/\/\)$/{
13419	    s//\1/
13420	    q
13421	  }
13422	  /^X\(\/\).*/{
13423	    s//\1/
13424	    q
13425	  }
13426	  s/.*/./; q'`
13427  as_dir="$ac_dir"; as_fn_mkdir_p
13428  ac_builddir=.
13429
13430case "$ac_dir" in
13431.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13432*)
13433  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13434  # A ".." for each directory in $ac_dir_suffix.
13435  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13436  case $ac_top_builddir_sub in
13437  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13438  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13439  esac ;;
13440esac
13441ac_abs_top_builddir=$ac_pwd
13442ac_abs_builddir=$ac_pwd$ac_dir_suffix
13443# for backward compatibility:
13444ac_top_builddir=$ac_top_build_prefix
13445
13446case $srcdir in
13447  .)  # We are building in place.
13448    ac_srcdir=.
13449    ac_top_srcdir=$ac_top_builddir_sub
13450    ac_abs_top_srcdir=$ac_pwd ;;
13451  [\\/]* | ?:[\\/]* )  # Absolute name.
13452    ac_srcdir=$srcdir$ac_dir_suffix;
13453    ac_top_srcdir=$srcdir
13454    ac_abs_top_srcdir=$srcdir ;;
13455  *) # Relative name.
13456    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13457    ac_top_srcdir=$ac_top_build_prefix$srcdir
13458    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13459esac
13460ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13461
13462
13463  case $ac_mode in
13464  :F)
13465  #
13466  # CONFIG_FILE
13467  #
13468
13469  case $INSTALL in
13470  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13471  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13472  esac
13473  ac_MKDIR_P=$MKDIR_P
13474  case $MKDIR_P in
13475  [\\/$]* | ?:[\\/]* ) ;;
13476  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13477  esac
13478_ACEOF
13479
13480cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13481# If the template does not know about datarootdir, expand it.
13482# FIXME: This hack should be removed a few years after 2.60.
13483ac_datarootdir_hack=; ac_datarootdir_seen=
13484ac_sed_dataroot='
13485/datarootdir/ {
13486  p
13487  q
13488}
13489/@datadir@/p
13490/@docdir@/p
13491/@infodir@/p
13492/@localedir@/p
13493/@mandir@/p'
13494case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13495*datarootdir*) ac_datarootdir_seen=yes;;
13496*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13497  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13498$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13499_ACEOF
13500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13501  ac_datarootdir_hack='
13502  s&@datadir@&$datadir&g
13503  s&@docdir@&$docdir&g
13504  s&@infodir@&$infodir&g
13505  s&@localedir@&$localedir&g
13506  s&@mandir@&$mandir&g
13507  s&\\\${datarootdir}&$datarootdir&g' ;;
13508esac
13509_ACEOF
13510
13511# Neutralize VPATH when `$srcdir' = `.'.
13512# Shell code in configure.ac might set extrasub.
13513# FIXME: do we really want to maintain this feature?
13514cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13515ac_sed_extra="$ac_vpsub
13516$extrasub
13517_ACEOF
13518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13519:t
13520/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13521s|@configure_input@|$ac_sed_conf_input|;t t
13522s&@top_builddir@&$ac_top_builddir_sub&;t t
13523s&@top_build_prefix@&$ac_top_build_prefix&;t t
13524s&@srcdir@&$ac_srcdir&;t t
13525s&@abs_srcdir@&$ac_abs_srcdir&;t t
13526s&@top_srcdir@&$ac_top_srcdir&;t t
13527s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13528s&@builddir@&$ac_builddir&;t t
13529s&@abs_builddir@&$ac_abs_builddir&;t t
13530s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13531s&@INSTALL@&$ac_INSTALL&;t t
13532s&@MKDIR_P@&$ac_MKDIR_P&;t t
13533$ac_datarootdir_hack
13534"
13535eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13536  || as_fn_error "could not create $ac_file" "$LINENO" 5
13537
13538test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13539  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13540  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13541  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13542which seems to be undefined.  Please make sure it is defined." >&5
13543$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13544which seems to be undefined.  Please make sure it is defined." >&2;}
13545
13546  rm -f "$tmp/stdin"
13547  case $ac_file in
13548  -) cat "$tmp/out" && rm -f "$tmp/out";;
13549  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13550  esac \
13551  || as_fn_error "could not create $ac_file" "$LINENO" 5
13552 ;;
13553  :H)
13554  #
13555  # CONFIG_HEADER
13556  #
13557  if test x"$ac_file" != x-; then
13558    {
13559      $as_echo "/* $configure_input  */" \
13560      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13561    } >"$tmp/config.h" \
13562      || as_fn_error "could not create $ac_file" "$LINENO" 5
13563    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13564      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13565$as_echo "$as_me: $ac_file is unchanged" >&6;}
13566    else
13567      rm -f "$ac_file"
13568      mv "$tmp/config.h" "$ac_file" \
13569	|| as_fn_error "could not create $ac_file" "$LINENO" 5
13570    fi
13571  else
13572    $as_echo "/* $configure_input  */" \
13573      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13574      || as_fn_error "could not create -" "$LINENO" 5
13575  fi
13576# Compute "$ac_file"'s index in $config_headers.
13577_am_arg="$ac_file"
13578_am_stamp_count=1
13579for _am_header in $config_headers :; do
13580  case $_am_header in
13581    $_am_arg | $_am_arg:* )
13582      break ;;
13583    * )
13584      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13585  esac
13586done
13587echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13588$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13589	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13590	 X"$_am_arg" : 'X\(//\)$' \| \
13591	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13592$as_echo X"$_am_arg" |
13593    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13594	    s//\1/
13595	    q
13596	  }
13597	  /^X\(\/\/\)[^/].*/{
13598	    s//\1/
13599	    q
13600	  }
13601	  /^X\(\/\/\)$/{
13602	    s//\1/
13603	    q
13604	  }
13605	  /^X\(\/\).*/{
13606	    s//\1/
13607	    q
13608	  }
13609	  s/.*/./; q'`/stamp-h$_am_stamp_count
13610 ;;
13611
13612  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13613$as_echo "$as_me: executing $ac_file commands" >&6;}
13614 ;;
13615  esac
13616
13617
13618  case $ac_file$ac_mode in
13619    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13620  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13621  # are listed without --file.  Let's play safe and only enable the eval
13622  # if we detect the quoting.
13623  case $CONFIG_FILES in
13624  *\'*) eval set x "$CONFIG_FILES" ;;
13625  *)   set x $CONFIG_FILES ;;
13626  esac
13627  shift
13628  for mf
13629  do
13630    # Strip MF so we end up with the name of the file.
13631    mf=`echo "$mf" | sed -e 's/:.*$//'`
13632    # Check whether this is an Automake generated Makefile or not.
13633    # We used to match only the files named `Makefile.in', but
13634    # some people rename them; so instead we look at the file content.
13635    # Grep'ing the first line is not enough: some people post-process
13636    # each Makefile.in and add a new line on top of each file to say so.
13637    # Grep'ing the whole file is not good either: AIX grep has a line
13638    # limit of 2048, but all sed's we know have understand at least 4000.
13639    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13640      dirpart=`$as_dirname -- "$mf" ||
13641$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13642	 X"$mf" : 'X\(//\)[^/]' \| \
13643	 X"$mf" : 'X\(//\)$' \| \
13644	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13645$as_echo X"$mf" |
13646    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13647	    s//\1/
13648	    q
13649	  }
13650	  /^X\(\/\/\)[^/].*/{
13651	    s//\1/
13652	    q
13653	  }
13654	  /^X\(\/\/\)$/{
13655	    s//\1/
13656	    q
13657	  }
13658	  /^X\(\/\).*/{
13659	    s//\1/
13660	    q
13661	  }
13662	  s/.*/./; q'`
13663    else
13664      continue
13665    fi
13666    # Extract the definition of DEPDIR, am__include, and am__quote
13667    # from the Makefile without running `make'.
13668    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13669    test -z "$DEPDIR" && continue
13670    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13671    test -z "am__include" && continue
13672    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13673    # When using ansi2knr, U may be empty or an underscore; expand it
13674    U=`sed -n 's/^U = //p' < "$mf"`
13675    # Find all dependency output files, they are included files with
13676    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13677    # simplest approach to changing $(DEPDIR) to its actual value in the
13678    # expansion.
13679    for file in `sed -n "
13680      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13681	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13682      # Make sure the directory exists.
13683      test -f "$dirpart/$file" && continue
13684      fdir=`$as_dirname -- "$file" ||
13685$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13686	 X"$file" : 'X\(//\)[^/]' \| \
13687	 X"$file" : 'X\(//\)$' \| \
13688	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13689$as_echo X"$file" |
13690    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13691	    s//\1/
13692	    q
13693	  }
13694	  /^X\(\/\/\)[^/].*/{
13695	    s//\1/
13696	    q
13697	  }
13698	  /^X\(\/\/\)$/{
13699	    s//\1/
13700	    q
13701	  }
13702	  /^X\(\/\).*/{
13703	    s//\1/
13704	    q
13705	  }
13706	  s/.*/./; q'`
13707      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13708      # echo "creating $dirpart/$file"
13709      echo '# dummy' > "$dirpart/$file"
13710    done
13711  done
13712}
13713 ;;
13714    "libtool":C)
13715
13716    # See if we are running on zsh, and set the options which allow our
13717    # commands through without removal of \ escapes.
13718    if test -n "${ZSH_VERSION+set}" ; then
13719      setopt NO_GLOB_SUBST
13720    fi
13721
13722    cfgfile="${ofile}T"
13723    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13724    $RM "$cfgfile"
13725
13726    cat <<_LT_EOF >> "$cfgfile"
13727#! $SHELL
13728
13729# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13730# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13731# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13732# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13733#
13734#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13735#                 2006, 2007, 2008 Free Software Foundation, Inc.
13736#   Written by Gordon Matzigkeit, 1996
13737#
13738#   This file is part of GNU Libtool.
13739#
13740# GNU Libtool is free software; you can redistribute it and/or
13741# modify it under the terms of the GNU General Public License as
13742# published by the Free Software Foundation; either version 2 of
13743# the License, or (at your option) any later version.
13744#
13745# As a special exception to the GNU General Public License,
13746# if you distribute this file as part of a program or library that
13747# is built using GNU Libtool, you may include this file under the
13748# same distribution terms that you use for the rest of that program.
13749#
13750# GNU Libtool is distributed in the hope that it will be useful,
13751# but WITHOUT ANY WARRANTY; without even the implied warranty of
13752# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13753# GNU General Public License for more details.
13754#
13755# You should have received a copy of the GNU General Public License
13756# along with GNU Libtool; see the file COPYING.  If not, a copy
13757# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13758# obtained by writing to the Free Software Foundation, Inc.,
13759# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13760
13761
13762# The names of the tagged configurations supported by this script.
13763available_tags=""
13764
13765# ### BEGIN LIBTOOL CONFIG
13766
13767# Which release of libtool.m4 was used?
13768macro_version=$macro_version
13769macro_revision=$macro_revision
13770
13771# Whether or not to build shared libraries.
13772build_libtool_libs=$enable_shared
13773
13774# Whether or not to build static libraries.
13775build_old_libs=$enable_static
13776
13777# What type of objects to build.
13778pic_mode=$pic_mode
13779
13780# Whether or not to optimize for fast installation.
13781fast_install=$enable_fast_install
13782
13783# The host system.
13784host_alias=$host_alias
13785host=$host
13786host_os=$host_os
13787
13788# The build system.
13789build_alias=$build_alias
13790build=$build
13791build_os=$build_os
13792
13793# A sed program that does not truncate output.
13794SED=$lt_SED
13795
13796# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13797Xsed="\$SED -e 1s/^X//"
13798
13799# A grep program that handles long lines.
13800GREP=$lt_GREP
13801
13802# An ERE matcher.
13803EGREP=$lt_EGREP
13804
13805# A literal string matcher.
13806FGREP=$lt_FGREP
13807
13808# A BSD- or MS-compatible name lister.
13809NM=$lt_NM
13810
13811# Whether we need soft or hard links.
13812LN_S=$lt_LN_S
13813
13814# What is the maximum length of a command?
13815max_cmd_len=$max_cmd_len
13816
13817# Object file suffix (normally "o").
13818objext=$ac_objext
13819
13820# Executable file suffix (normally "").
13821exeext=$exeext
13822
13823# whether the shell understands "unset".
13824lt_unset=$lt_unset
13825
13826# turn spaces into newlines.
13827SP2NL=$lt_lt_SP2NL
13828
13829# turn newlines into spaces.
13830NL2SP=$lt_lt_NL2SP
13831
13832# How to create reloadable object files.
13833reload_flag=$lt_reload_flag
13834reload_cmds=$lt_reload_cmds
13835
13836# An object symbol dumper.
13837OBJDUMP=$lt_OBJDUMP
13838
13839# Method to check whether dependent libraries are shared objects.
13840deplibs_check_method=$lt_deplibs_check_method
13841
13842# Command to use when deplibs_check_method == "file_magic".
13843file_magic_cmd=$lt_file_magic_cmd
13844
13845# The archiver.
13846AR=$lt_AR
13847AR_FLAGS=$lt_AR_FLAGS
13848
13849# A symbol stripping program.
13850STRIP=$lt_STRIP
13851
13852# Commands used to install an old-style archive.
13853RANLIB=$lt_RANLIB
13854old_postinstall_cmds=$lt_old_postinstall_cmds
13855old_postuninstall_cmds=$lt_old_postuninstall_cmds
13856
13857# A C compiler.
13858LTCC=$lt_CC
13859
13860# LTCC compiler flags.
13861LTCFLAGS=$lt_CFLAGS
13862
13863# Take the output of nm and produce a listing of raw symbols and C names.
13864global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13865
13866# Transform the output of nm in a proper C declaration.
13867global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13868
13869# Transform the output of nm in a C name address pair.
13870global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13871
13872# Transform the output of nm in a C name address pair when lib prefix is needed.
13873global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13874
13875# The name of the directory that contains temporary libtool files.
13876objdir=$objdir
13877
13878# Shell to use when invoking shell scripts.
13879SHELL=$lt_SHELL
13880
13881# An echo program that does not interpret backslashes.
13882ECHO=$lt_ECHO
13883
13884# Used to examine libraries when file_magic_cmd begins with "file".
13885MAGIC_CMD=$MAGIC_CMD
13886
13887# Must we lock files when doing compilation?
13888need_locks=$lt_need_locks
13889
13890# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13891DSYMUTIL=$lt_DSYMUTIL
13892
13893# Tool to change global to local symbols on Mac OS X.
13894NMEDIT=$lt_NMEDIT
13895
13896# Tool to manipulate fat objects and archives on Mac OS X.
13897LIPO=$lt_LIPO
13898
13899# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13900OTOOL=$lt_OTOOL
13901
13902# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13903OTOOL64=$lt_OTOOL64
13904
13905# Old archive suffix (normally "a").
13906libext=$libext
13907
13908# Shared library suffix (normally ".so").
13909shrext_cmds=$lt_shrext_cmds
13910
13911# The commands to extract the exported symbol list from a shared archive.
13912extract_expsyms_cmds=$lt_extract_expsyms_cmds
13913
13914# Variables whose values should be saved in libtool wrapper scripts and
13915# restored at link time.
13916variables_saved_for_relink=$lt_variables_saved_for_relink
13917
13918# Do we need the "lib" prefix for modules?
13919need_lib_prefix=$need_lib_prefix
13920
13921# Do we need a version for libraries?
13922need_version=$need_version
13923
13924# Library versioning type.
13925version_type=$version_type
13926
13927# Shared library runtime path variable.
13928runpath_var=$runpath_var
13929
13930# Shared library path variable.
13931shlibpath_var=$shlibpath_var
13932
13933# Is shlibpath searched before the hard-coded library search path?
13934shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13935
13936# Format of library name prefix.
13937libname_spec=$lt_libname_spec
13938
13939# List of archive names.  First name is the real one, the rest are links.
13940# The last name is the one that the linker finds with -lNAME
13941library_names_spec=$lt_library_names_spec
13942
13943# The coded name of the library, if different from the real name.
13944soname_spec=$lt_soname_spec
13945
13946# Command to use after installation of a shared archive.
13947postinstall_cmds=$lt_postinstall_cmds
13948
13949# Command to use after uninstallation of a shared archive.
13950postuninstall_cmds=$lt_postuninstall_cmds
13951
13952# Commands used to finish a libtool library installation in a directory.
13953finish_cmds=$lt_finish_cmds
13954
13955# As "finish_cmds", except a single script fragment to be evaled but
13956# not shown.
13957finish_eval=$lt_finish_eval
13958
13959# Whether we should hardcode library paths into libraries.
13960hardcode_into_libs=$hardcode_into_libs
13961
13962# Compile-time system search path for libraries.
13963sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13964
13965# Run-time system search path for libraries.
13966sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13967
13968# Whether dlopen is supported.
13969dlopen_support=$enable_dlopen
13970
13971# Whether dlopen of programs is supported.
13972dlopen_self=$enable_dlopen_self
13973
13974# Whether dlopen of statically linked programs is supported.
13975dlopen_self_static=$enable_dlopen_self_static
13976
13977# Commands to strip libraries.
13978old_striplib=$lt_old_striplib
13979striplib=$lt_striplib
13980
13981
13982# The linker used to build libraries.
13983LD=$lt_LD
13984
13985# Commands used to build an old-style archive.
13986old_archive_cmds=$lt_old_archive_cmds
13987
13988# A language specific compiler.
13989CC=$lt_compiler
13990
13991# Is the compiler the GNU compiler?
13992with_gcc=$GCC
13993
13994# Compiler flag to turn off builtin functions.
13995no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13996
13997# How to pass a linker flag through the compiler.
13998wl=$lt_lt_prog_compiler_wl
13999
14000# Additional compiler flags for building library objects.
14001pic_flag=$lt_lt_prog_compiler_pic
14002
14003# Compiler flag to prevent dynamic linking.
14004link_static_flag=$lt_lt_prog_compiler_static
14005
14006# Does compiler simultaneously support -c and -o options?
14007compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14008
14009# Whether or not to add -lc for building shared libraries.
14010build_libtool_need_lc=$archive_cmds_need_lc
14011
14012# Whether or not to disallow shared libs when runtime libs are static.
14013allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14014
14015# Compiler flag to allow reflexive dlopens.
14016export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14017
14018# Compiler flag to generate shared objects directly from archives.
14019whole_archive_flag_spec=$lt_whole_archive_flag_spec
14020
14021# Whether the compiler copes with passing no objects directly.
14022compiler_needs_object=$lt_compiler_needs_object
14023
14024# Create an old-style archive from a shared archive.
14025old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14026
14027# Create a temporary old-style archive to link instead of a shared archive.
14028old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14029
14030# Commands used to build a shared archive.
14031archive_cmds=$lt_archive_cmds
14032archive_expsym_cmds=$lt_archive_expsym_cmds
14033
14034# Commands used to build a loadable module if different from building
14035# a shared archive.
14036module_cmds=$lt_module_cmds
14037module_expsym_cmds=$lt_module_expsym_cmds
14038
14039# Whether we are building with GNU ld or not.
14040with_gnu_ld=$lt_with_gnu_ld
14041
14042# Flag that allows shared libraries with undefined symbols to be built.
14043allow_undefined_flag=$lt_allow_undefined_flag
14044
14045# Flag that enforces no undefined symbols.
14046no_undefined_flag=$lt_no_undefined_flag
14047
14048# Flag to hardcode \$libdir into a binary during linking.
14049# This must work even if \$libdir does not exist
14050hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14051
14052# If ld is used when linking, flag to hardcode \$libdir into a binary
14053# during linking.  This must work even if \$libdir does not exist.
14054hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14055
14056# Whether we need a single "-rpath" flag with a separated argument.
14057hardcode_libdir_separator=$lt_hardcode_libdir_separator
14058
14059# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14060# DIR into the resulting binary.
14061hardcode_direct=$hardcode_direct
14062
14063# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14064# DIR into the resulting binary and the resulting library dependency is
14065# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14066# library is relocated.
14067hardcode_direct_absolute=$hardcode_direct_absolute
14068
14069# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14070# into the resulting binary.
14071hardcode_minus_L=$hardcode_minus_L
14072
14073# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14074# into the resulting binary.
14075hardcode_shlibpath_var=$hardcode_shlibpath_var
14076
14077# Set to "yes" if building a shared library automatically hardcodes DIR
14078# into the library and all subsequent libraries and executables linked
14079# against it.
14080hardcode_automatic=$hardcode_automatic
14081
14082# Set to yes if linker adds runtime paths of dependent libraries
14083# to runtime path list.
14084inherit_rpath=$inherit_rpath
14085
14086# Whether libtool must link a program against all its dependency libraries.
14087link_all_deplibs=$link_all_deplibs
14088
14089# Fix the shell variable \$srcfile for the compiler.
14090fix_srcfile_path=$lt_fix_srcfile_path
14091
14092# Set to "yes" if exported symbols are required.
14093always_export_symbols=$always_export_symbols
14094
14095# The commands to list exported symbols.
14096export_symbols_cmds=$lt_export_symbols_cmds
14097
14098# Symbols that should not be listed in the preloaded symbols.
14099exclude_expsyms=$lt_exclude_expsyms
14100
14101# Symbols that must always be exported.
14102include_expsyms=$lt_include_expsyms
14103
14104# Commands necessary for linking programs (against libraries) with templates.
14105prelink_cmds=$lt_prelink_cmds
14106
14107# Specify filename containing input files.
14108file_list_spec=$lt_file_list_spec
14109
14110# How to hardcode a shared library path into an executable.
14111hardcode_action=$hardcode_action
14112
14113# ### END LIBTOOL CONFIG
14114
14115_LT_EOF
14116
14117  case $host_os in
14118  aix3*)
14119    cat <<\_LT_EOF >> "$cfgfile"
14120# AIX sometimes has problems with the GCC collect2 program.  For some
14121# reason, if we set the COLLECT_NAMES environment variable, the problems
14122# vanish in a puff of smoke.
14123if test "X${COLLECT_NAMES+set}" != Xset; then
14124  COLLECT_NAMES=
14125  export COLLECT_NAMES
14126fi
14127_LT_EOF
14128    ;;
14129  esac
14130
14131
14132ltmain="$ac_aux_dir/ltmain.sh"
14133
14134
14135  # We use sed instead of cat because bash on DJGPP gets confused if
14136  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14137  # text mode, it properly converts lines to CR/LF.  This bash problem
14138  # is reportedly fixed, but why not run on old versions too?
14139  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14140    || (rm -f "$cfgfile"; exit 1)
14141
14142  case $xsi_shell in
14143  yes)
14144    cat << \_LT_EOF >> "$cfgfile"
14145
14146# func_dirname file append nondir_replacement
14147# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14148# otherwise set result to NONDIR_REPLACEMENT.
14149func_dirname ()
14150{
14151  case ${1} in
14152    */*) func_dirname_result="${1%/*}${2}" ;;
14153    *  ) func_dirname_result="${3}" ;;
14154  esac
14155}
14156
14157# func_basename file
14158func_basename ()
14159{
14160  func_basename_result="${1##*/}"
14161}
14162
14163# func_dirname_and_basename file append nondir_replacement
14164# perform func_basename and func_dirname in a single function
14165# call:
14166#   dirname:  Compute the dirname of FILE.  If nonempty,
14167#             add APPEND to the result, otherwise set result
14168#             to NONDIR_REPLACEMENT.
14169#             value returned in "$func_dirname_result"
14170#   basename: Compute filename of FILE.
14171#             value retuned in "$func_basename_result"
14172# Implementation must be kept synchronized with func_dirname
14173# and func_basename. For efficiency, we do not delegate to
14174# those functions but instead duplicate the functionality here.
14175func_dirname_and_basename ()
14176{
14177  case ${1} in
14178    */*) func_dirname_result="${1%/*}${2}" ;;
14179    *  ) func_dirname_result="${3}" ;;
14180  esac
14181  func_basename_result="${1##*/}"
14182}
14183
14184# func_stripname prefix suffix name
14185# strip PREFIX and SUFFIX off of NAME.
14186# PREFIX and SUFFIX must not contain globbing or regex special
14187# characters, hashes, percent signs, but SUFFIX may contain a leading
14188# dot (in which case that matches only a dot).
14189func_stripname ()
14190{
14191  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14192  # positional parameters, so assign one to ordinary parameter first.
14193  func_stripname_result=${3}
14194  func_stripname_result=${func_stripname_result#"${1}"}
14195  func_stripname_result=${func_stripname_result%"${2}"}
14196}
14197
14198# func_opt_split
14199func_opt_split ()
14200{
14201  func_opt_split_opt=${1%%=*}
14202  func_opt_split_arg=${1#*=}
14203}
14204
14205# func_lo2o object
14206func_lo2o ()
14207{
14208  case ${1} in
14209    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14210    *)    func_lo2o_result=${1} ;;
14211  esac
14212}
14213
14214# func_xform libobj-or-source
14215func_xform ()
14216{
14217  func_xform_result=${1%.*}.lo
14218}
14219
14220# func_arith arithmetic-term...
14221func_arith ()
14222{
14223  func_arith_result=$(( $* ))
14224}
14225
14226# func_len string
14227# STRING may not start with a hyphen.
14228func_len ()
14229{
14230  func_len_result=${#1}
14231}
14232
14233_LT_EOF
14234    ;;
14235  *) # Bourne compatible functions.
14236    cat << \_LT_EOF >> "$cfgfile"
14237
14238# func_dirname file append nondir_replacement
14239# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14240# otherwise set result to NONDIR_REPLACEMENT.
14241func_dirname ()
14242{
14243  # Extract subdirectory from the argument.
14244  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14245  if test "X$func_dirname_result" = "X${1}"; then
14246    func_dirname_result="${3}"
14247  else
14248    func_dirname_result="$func_dirname_result${2}"
14249  fi
14250}
14251
14252# func_basename file
14253func_basename ()
14254{
14255  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14256}
14257
14258
14259# func_stripname prefix suffix name
14260# strip PREFIX and SUFFIX off of NAME.
14261# PREFIX and SUFFIX must not contain globbing or regex special
14262# characters, hashes, percent signs, but SUFFIX may contain a leading
14263# dot (in which case that matches only a dot).
14264# func_strip_suffix prefix name
14265func_stripname ()
14266{
14267  case ${2} in
14268    .*) func_stripname_result=`$ECHO "X${3}" \
14269           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14270    *)  func_stripname_result=`$ECHO "X${3}" \
14271           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14272  esac
14273}
14274
14275# sed scripts:
14276my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14277my_sed_long_arg='1s/^-[^=]*=//'
14278
14279# func_opt_split
14280func_opt_split ()
14281{
14282  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14283  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14284}
14285
14286# func_lo2o object
14287func_lo2o ()
14288{
14289  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14290}
14291
14292# func_xform libobj-or-source
14293func_xform ()
14294{
14295  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14296}
14297
14298# func_arith arithmetic-term...
14299func_arith ()
14300{
14301  func_arith_result=`expr "$@"`
14302}
14303
14304# func_len string
14305# STRING may not start with a hyphen.
14306func_len ()
14307{
14308  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14309}
14310
14311_LT_EOF
14312esac
14313
14314case $lt_shell_append in
14315  yes)
14316    cat << \_LT_EOF >> "$cfgfile"
14317
14318# func_append var value
14319# Append VALUE to the end of shell variable VAR.
14320func_append ()
14321{
14322  eval "$1+=\$2"
14323}
14324_LT_EOF
14325    ;;
14326  *)
14327    cat << \_LT_EOF >> "$cfgfile"
14328
14329# func_append var value
14330# Append VALUE to the end of shell variable VAR.
14331func_append ()
14332{
14333  eval "$1=\$$1\$2"
14334}
14335
14336_LT_EOF
14337    ;;
14338  esac
14339
14340
14341  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14342    || (rm -f "$cfgfile"; exit 1)
14343
14344  mv -f "$cfgfile" "$ofile" ||
14345    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14346  chmod +x "$ofile"
14347
14348 ;;
14349
14350  esac
14351done # for ac_tag
14352
14353
14354as_fn_exit 0
14355_ACEOF
14356ac_clean_files=$ac_clean_files_save
14357
14358test $ac_write_fail = 0 ||
14359  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14360
14361
14362# configure is writing to config.log, and then calls config.status.
14363# config.status does its own redirection, appending to config.log.
14364# Unfortunately, on DOS this fails, as config.log is still kept open
14365# by configure, so config.status won't be able to write to it; its
14366# output is simply discarded.  So we exec the FD to /dev/null,
14367# effectively closing config.log, so it can be properly (re)opened and
14368# appended to by config.status.  When coming back to configure, we
14369# need to make the FD available again.
14370if test "$no_create" != yes; then
14371  ac_cs_success=:
14372  ac_config_status_args=
14373  test "$silent" = yes &&
14374    ac_config_status_args="$ac_config_status_args --quiet"
14375  exec 5>/dev/null
14376  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14377  exec 5>>config.log
14378  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14379  # would make configure fail if this is the last instruction.
14380  $ac_cs_success || as_fn_exit $?
14381fi
14382if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14383  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14384$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14385fi
14386
14387