configure revision 56957a04
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libXScrnSaver 1.2.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, 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.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1
178
179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    PATH=/empty FPATH=/empty; export PATH FPATH
184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269# as_fn_unset VAR
270# ---------------
271# Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278# as_fn_set_status STATUS
279# -----------------------
280# Set $? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} # as_fn_set_status
285
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551test -n "$DJDIR" || exec 7<&0 </dev/null
552exec 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570
571# Identity of this package.
572PACKAGE_NAME='libXScrnSaver'
573PACKAGE_TARNAME='libXScrnSaver'
574PACKAGE_VERSION='1.2.1'
575PACKAGE_STRING='libXScrnSaver 1.2.1'
576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577PACKAGE_URL=''
578
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
582#ifdef HAVE_SYS_TYPES_H
583# include <sys/types.h>
584#endif
585#ifdef HAVE_SYS_STAT_H
586# include <sys/stat.h>
587#endif
588#ifdef STDC_HEADERS
589# include <stdlib.h>
590# include <stddef.h>
591#else
592# ifdef HAVE_STDLIB_H
593#  include <stdlib.h>
594# endif
595#endif
596#ifdef HAVE_STRING_H
597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598#  include <memory.h>
599# endif
600# include <string.h>
601#endif
602#ifdef HAVE_STRINGS_H
603# include <strings.h>
604#endif
605#ifdef HAVE_INTTYPES_H
606# include <inttypes.h>
607#endif
608#ifdef HAVE_STDINT_H
609# include <stdint.h>
610#endif
611#ifdef HAVE_UNISTD_H
612# include <unistd.h>
613#endif"
614
615ac_subst_vars='am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
618LIBOBJS
619XTMALLOC_ZERO_CFLAGS
620XMALLOC_ZERO_CFLAGS
621MALLOC_ZERO_CFLAGS
622MAKE_LINT_LIB_FALSE
623MAKE_LINT_LIB_TRUE
624LINTLIB
625LINT_FALSE
626LINT_TRUE
627LINT_FLAGS
628LINT
629XSCRNSAVER_LIBS
630XSCRNSAVER_CFLAGS
631OTOOL64
632OTOOL
633LIPO
634NMEDIT
635DSYMUTIL
636RANLIB
637AR
638OBJDUMP
639LN_S
640NM
641ac_ct_DUMPBIN
642DUMPBIN
643LD
644FGREP
645LIBTOOL
646AM_BACKSLASH
647AM_DEFAULT_VERBOSITY
648MAN_SUBSTS
649XORG_MAN_PAGE
650ADMIN_MAN_DIR
651DRIVER_MAN_DIR
652MISC_MAN_DIR
653FILE_MAN_DIR
654LIB_MAN_DIR
655APP_MAN_DIR
656ADMIN_MAN_SUFFIX
657DRIVER_MAN_SUFFIX
658MISC_MAN_SUFFIX
659FILE_MAN_SUFFIX
660LIB_MAN_SUFFIX
661APP_MAN_SUFFIX
662SED
663host_os
664host_vendor
665host_cpu
666host
667build_os
668build_vendor
669build_cpu
670build
671INSTALL_CMD
672PKG_CONFIG
673CHANGELOG_CMD
674CWARNFLAGS
675EGREP
676GREP
677CPP
678am__fastdepCC_FALSE
679am__fastdepCC_TRUE
680CCDEPMODE
681AMDEPBACKSLASH
682AMDEP_FALSE
683AMDEP_TRUE
684am__quote
685am__include
686DEPDIR
687OBJEXT
688EXEEXT
689ac_ct_CC
690CPPFLAGS
691LDFLAGS
692CFLAGS
693CC
694MAINT
695MAINTAINER_MODE_FALSE
696MAINTAINER_MODE_TRUE
697am__untar
698am__tar
699AMTAR
700am__leading_dot
701SET_MAKE
702AWK
703mkdir_p
704MKDIR_P
705INSTALL_STRIP_PROGRAM
706STRIP
707install_sh
708MAKEINFO
709AUTOHEADER
710AUTOMAKE
711AUTOCONF
712ACLOCAL
713VERSION
714PACKAGE
715CYGPATH_W
716am__isrc
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720target_alias
721host_alias
722build_alias
723LIBS
724ECHO_T
725ECHO_N
726ECHO_C
727DEFS
728mandir
729localedir
730libdir
731psdir
732pdfdir
733dvidir
734htmldir
735infodir
736docdir
737oldincludedir
738includedir
739localstatedir
740sharedstatedir
741sysconfdir
742datadir
743datarootdir
744libexecdir
745sbindir
746bindir
747program_transform_name
748prefix
749exec_prefix
750PACKAGE_URL
751PACKAGE_BUGREPORT
752PACKAGE_STRING
753PACKAGE_VERSION
754PACKAGE_TARNAME
755PACKAGE_NAME
756PATH_SEPARATOR
757SHELL'
758ac_subst_files=''
759ac_user_opts='
760enable_option_checking
761enable_maintainer_mode
762enable_dependency_tracking
763enable_strict_compilation
764enable_silent_rules
765enable_shared
766enable_static
767with_pic
768enable_fast_install
769with_gnu_ld
770enable_libtool_lock
771with_lint
772enable_lint_library
773enable_malloc0returnsnull
774'
775      ac_precious_vars='build_alias
776host_alias
777target_alias
778CC
779CFLAGS
780LDFLAGS
781LIBS
782CPPFLAGS
783CPP
784PKG_CONFIG
785XSCRNSAVER_CFLAGS
786XSCRNSAVER_LIBS
787LINT
788LINT_FLAGS'
789
790
791# Initialize some variables set by options.
792ac_init_help=
793ac_init_version=false
794ac_unrecognized_opts=
795ac_unrecognized_sep=
796# The variables have the same names as the options, with
797# dashes changed to underlines.
798cache_file=/dev/null
799exec_prefix=NONE
800no_create=
801no_recursion=
802prefix=NONE
803program_prefix=NONE
804program_suffix=NONE
805program_transform_name=s,x,x,
806silent=
807site=
808srcdir=
809verbose=
810x_includes=NONE
811x_libraries=NONE
812
813# Installation directory options.
814# These are left unexpanded so users can "make install exec_prefix=/foo"
815# and all the variables that are supposed to be based on exec_prefix
816# by default will actually change.
817# Use braces instead of parens because sh, perl, etc. also accept them.
818# (The list follows the same order as the GNU Coding Standards.)
819bindir='${exec_prefix}/bin'
820sbindir='${exec_prefix}/sbin'
821libexecdir='${exec_prefix}/libexec'
822datarootdir='${prefix}/share'
823datadir='${datarootdir}'
824sysconfdir='${prefix}/etc'
825sharedstatedir='${prefix}/com'
826localstatedir='${prefix}/var'
827includedir='${prefix}/include'
828oldincludedir='/usr/include'
829docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830infodir='${datarootdir}/info'
831htmldir='${docdir}'
832dvidir='${docdir}'
833pdfdir='${docdir}'
834psdir='${docdir}'
835libdir='${exec_prefix}/lib'
836localedir='${datarootdir}/locale'
837mandir='${datarootdir}/man'
838
839ac_prev=
840ac_dashdash=
841for ac_option
842do
843  # If the previous option needs an argument, assign it.
844  if test -n "$ac_prev"; then
845    eval $ac_prev=\$ac_option
846    ac_prev=
847    continue
848  fi
849
850  case $ac_option in
851  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852  *=)   ac_optarg= ;;
853  *)    ac_optarg=yes ;;
854  esac
855
856  # Accept the important Cygnus configure options, so we can diagnose typos.
857
858  case $ac_dashdash$ac_option in
859  --)
860    ac_dashdash=yes ;;
861
862  -bindir | --bindir | --bindi | --bind | --bin | --bi)
863    ac_prev=bindir ;;
864  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865    bindir=$ac_optarg ;;
866
867  -build | --build | --buil | --bui | --bu)
868    ac_prev=build_alias ;;
869  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870    build_alias=$ac_optarg ;;
871
872  -cache-file | --cache-file | --cache-fil | --cache-fi \
873  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874    ac_prev=cache_file ;;
875  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877    cache_file=$ac_optarg ;;
878
879  --config-cache | -C)
880    cache_file=config.cache ;;
881
882  -datadir | --datadir | --datadi | --datad)
883    ac_prev=datadir ;;
884  -datadir=* | --datadir=* | --datadi=* | --datad=*)
885    datadir=$ac_optarg ;;
886
887  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888  | --dataroo | --dataro | --datar)
889    ac_prev=datarootdir ;;
890  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892    datarootdir=$ac_optarg ;;
893
894  -disable-* | --disable-*)
895    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896    # Reject names that are not valid shell variable names.
897    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898      as_fn_error $? "invalid feature name: $ac_useropt"
899    ac_useropt_orig=$ac_useropt
900    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901    case $ac_user_opts in
902      *"
903"enable_$ac_useropt"
904"*) ;;
905      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906	 ac_unrecognized_sep=', ';;
907    esac
908    eval enable_$ac_useropt=no ;;
909
910  -docdir | --docdir | --docdi | --doc | --do)
911    ac_prev=docdir ;;
912  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913    docdir=$ac_optarg ;;
914
915  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916    ac_prev=dvidir ;;
917  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918    dvidir=$ac_optarg ;;
919
920  -enable-* | --enable-*)
921    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922    # Reject names that are not valid shell variable names.
923    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924      as_fn_error $? "invalid feature name: $ac_useropt"
925    ac_useropt_orig=$ac_useropt
926    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927    case $ac_user_opts in
928      *"
929"enable_$ac_useropt"
930"*) ;;
931      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932	 ac_unrecognized_sep=', ';;
933    esac
934    eval enable_$ac_useropt=\$ac_optarg ;;
935
936  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938  | --exec | --exe | --ex)
939    ac_prev=exec_prefix ;;
940  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942  | --exec=* | --exe=* | --ex=*)
943    exec_prefix=$ac_optarg ;;
944
945  -gas | --gas | --ga | --g)
946    # Obsolete; use --with-gas.
947    with_gas=yes ;;
948
949  -help | --help | --hel | --he | -h)
950    ac_init_help=long ;;
951  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952    ac_init_help=recursive ;;
953  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954    ac_init_help=short ;;
955
956  -host | --host | --hos | --ho)
957    ac_prev=host_alias ;;
958  -host=* | --host=* | --hos=* | --ho=*)
959    host_alias=$ac_optarg ;;
960
961  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962    ac_prev=htmldir ;;
963  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964  | --ht=*)
965    htmldir=$ac_optarg ;;
966
967  -includedir | --includedir | --includedi | --included | --include \
968  | --includ | --inclu | --incl | --inc)
969    ac_prev=includedir ;;
970  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971  | --includ=* | --inclu=* | --incl=* | --inc=*)
972    includedir=$ac_optarg ;;
973
974  -infodir | --infodir | --infodi | --infod | --info | --inf)
975    ac_prev=infodir ;;
976  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977    infodir=$ac_optarg ;;
978
979  -libdir | --libdir | --libdi | --libd)
980    ac_prev=libdir ;;
981  -libdir=* | --libdir=* | --libdi=* | --libd=*)
982    libdir=$ac_optarg ;;
983
984  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985  | --libexe | --libex | --libe)
986    ac_prev=libexecdir ;;
987  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988  | --libexe=* | --libex=* | --libe=*)
989    libexecdir=$ac_optarg ;;
990
991  -localedir | --localedir | --localedi | --localed | --locale)
992    ac_prev=localedir ;;
993  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994    localedir=$ac_optarg ;;
995
996  -localstatedir | --localstatedir | --localstatedi | --localstated \
997  | --localstate | --localstat | --localsta | --localst | --locals)
998    ac_prev=localstatedir ;;
999  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001    localstatedir=$ac_optarg ;;
1002
1003  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004    ac_prev=mandir ;;
1005  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006    mandir=$ac_optarg ;;
1007
1008  -nfp | --nfp | --nf)
1009    # Obsolete; use --without-fp.
1010    with_fp=no ;;
1011
1012  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013  | --no-cr | --no-c | -n)
1014    no_create=yes ;;
1015
1016  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018    no_recursion=yes ;;
1019
1020  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022  | --oldin | --oldi | --old | --ol | --o)
1023    ac_prev=oldincludedir ;;
1024  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027    oldincludedir=$ac_optarg ;;
1028
1029  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030    ac_prev=prefix ;;
1031  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032    prefix=$ac_optarg ;;
1033
1034  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035  | --program-pre | --program-pr | --program-p)
1036    ac_prev=program_prefix ;;
1037  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039    program_prefix=$ac_optarg ;;
1040
1041  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042  | --program-suf | --program-su | --program-s)
1043    ac_prev=program_suffix ;;
1044  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046    program_suffix=$ac_optarg ;;
1047
1048  -program-transform-name | --program-transform-name \
1049  | --program-transform-nam | --program-transform-na \
1050  | --program-transform-n | --program-transform- \
1051  | --program-transform | --program-transfor \
1052  | --program-transfo | --program-transf \
1053  | --program-trans | --program-tran \
1054  | --progr-tra | --program-tr | --program-t)
1055    ac_prev=program_transform_name ;;
1056  -program-transform-name=* | --program-transform-name=* \
1057  | --program-transform-nam=* | --program-transform-na=* \
1058  | --program-transform-n=* | --program-transform-=* \
1059  | --program-transform=* | --program-transfor=* \
1060  | --program-transfo=* | --program-transf=* \
1061  | --program-trans=* | --program-tran=* \
1062  | --progr-tra=* | --program-tr=* | --program-t=*)
1063    program_transform_name=$ac_optarg ;;
1064
1065  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066    ac_prev=pdfdir ;;
1067  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068    pdfdir=$ac_optarg ;;
1069
1070  -psdir | --psdir | --psdi | --psd | --ps)
1071    ac_prev=psdir ;;
1072  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073    psdir=$ac_optarg ;;
1074
1075  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076  | -silent | --silent | --silen | --sile | --sil)
1077    silent=yes ;;
1078
1079  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080    ac_prev=sbindir ;;
1081  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082  | --sbi=* | --sb=*)
1083    sbindir=$ac_optarg ;;
1084
1085  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1086  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1087  | --sharedst | --shareds | --shared | --share | --shar \
1088  | --sha | --sh)
1089    ac_prev=sharedstatedir ;;
1090  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1091  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1092  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093  | --sha=* | --sh=*)
1094    sharedstatedir=$ac_optarg ;;
1095
1096  -site | --site | --sit)
1097    ac_prev=site ;;
1098  -site=* | --site=* | --sit=*)
1099    site=$ac_optarg ;;
1100
1101  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102    ac_prev=srcdir ;;
1103  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104    srcdir=$ac_optarg ;;
1105
1106  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1107  | --syscon | --sysco | --sysc | --sys | --sy)
1108    ac_prev=sysconfdir ;;
1109  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1110  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1111    sysconfdir=$ac_optarg ;;
1112
1113  -target | --target | --targe | --targ | --tar | --ta | --t)
1114    ac_prev=target_alias ;;
1115  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1116    target_alias=$ac_optarg ;;
1117
1118  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119    verbose=yes ;;
1120
1121  -version | --version | --versio | --versi | --vers | -V)
1122    ac_init_version=: ;;
1123
1124  -with-* | --with-*)
1125    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1126    # Reject names that are not valid shell variable names.
1127    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128      as_fn_error $? "invalid package name: $ac_useropt"
1129    ac_useropt_orig=$ac_useropt
1130    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131    case $ac_user_opts in
1132      *"
1133"with_$ac_useropt"
1134"*) ;;
1135      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1136	 ac_unrecognized_sep=', ';;
1137    esac
1138    eval with_$ac_useropt=\$ac_optarg ;;
1139
1140  -without-* | --without-*)
1141    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142    # Reject names that are not valid shell variable names.
1143    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144      as_fn_error $? "invalid package name: $ac_useropt"
1145    ac_useropt_orig=$ac_useropt
1146    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147    case $ac_user_opts in
1148      *"
1149"with_$ac_useropt"
1150"*) ;;
1151      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1152	 ac_unrecognized_sep=', ';;
1153    esac
1154    eval with_$ac_useropt=no ;;
1155
1156  --x)
1157    # Obsolete; use --with-x.
1158    with_x=yes ;;
1159
1160  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161  | --x-incl | --x-inc | --x-in | --x-i)
1162    ac_prev=x_includes ;;
1163  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165    x_includes=$ac_optarg ;;
1166
1167  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169    ac_prev=x_libraries ;;
1170  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172    x_libraries=$ac_optarg ;;
1173
1174  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1175Try \`$0 --help' for more information"
1176    ;;
1177
1178  *=*)
1179    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180    # Reject names that are not valid shell variable names.
1181    case $ac_envvar in #(
1182      '' | [0-9]* | *[!_$as_cr_alnum]* )
1183      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1184    esac
1185    eval $ac_envvar=\$ac_optarg
1186    export $ac_envvar ;;
1187
1188  *)
1189    # FIXME: should be removed in autoconf 3.0.
1190    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1194    ;;
1195
1196  esac
1197done
1198
1199if test -n "$ac_prev"; then
1200  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201  as_fn_error $? "missing argument to $ac_option"
1202fi
1203
1204if test -n "$ac_unrecognized_opts"; then
1205  case $enable_option_checking in
1206    no) ;;
1207    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1208    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209  esac
1210fi
1211
1212# Check all directory arguments for consistency.
1213for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214		datadir sysconfdir sharedstatedir localstatedir includedir \
1215		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216		libdir localedir mandir
1217do
1218  eval ac_val=\$$ac_var
1219  # Remove trailing slashes.
1220  case $ac_val in
1221    */ )
1222      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1223      eval $ac_var=\$ac_val;;
1224  esac
1225  # Be sure to have absolute directory names.
1226  case $ac_val in
1227    [\\/$]* | ?:[\\/]* )  continue;;
1228    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229  esac
1230  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1231done
1232
1233# There might be people who depend on the old broken behavior: `$host'
1234# used to hold the argument of --host etc.
1235# FIXME: To remove some day.
1236build=$build_alias
1237host=$host_alias
1238target=$target_alias
1239
1240# FIXME: To remove some day.
1241if test "x$host_alias" != x; then
1242  if test "x$build_alias" = x; then
1243    cross_compiling=maybe
1244    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1245    If a cross compiler is detected then cross compile mode will be used" >&2
1246  elif test "x$build_alias" != "x$host_alias"; then
1247    cross_compiling=yes
1248  fi
1249fi
1250
1251ac_tool_prefix=
1252test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254test "$silent" = yes && exec 6>/dev/null
1255
1256
1257ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258ac_ls_di=`ls -di .` &&
1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260  as_fn_error $? "working directory cannot be determined"
1261test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262  as_fn_error $? "pwd does not report name of working directory"
1263
1264
1265# Find the source files, if location was not specified.
1266if test -z "$srcdir"; then
1267  ac_srcdir_defaulted=yes
1268  # Try the directory containing this script, then the parent directory.
1269  ac_confdir=`$as_dirname -- "$as_myself" ||
1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271	 X"$as_myself" : 'X\(//\)[^/]' \| \
1272	 X"$as_myself" : 'X\(//\)$' \| \
1273	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274$as_echo X"$as_myself" |
1275    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276	    s//\1/
1277	    q
1278	  }
1279	  /^X\(\/\/\)[^/].*/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\/\)$/{
1284	    s//\1/
1285	    q
1286	  }
1287	  /^X\(\/\).*/{
1288	    s//\1/
1289	    q
1290	  }
1291	  s/.*/./; q'`
1292  srcdir=$ac_confdir
1293  if test ! -r "$srcdir/$ac_unique_file"; then
1294    srcdir=..
1295  fi
1296else
1297  ac_srcdir_defaulted=no
1298fi
1299if test ! -r "$srcdir/$ac_unique_file"; then
1300  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302fi
1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
1305	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306	pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309  srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319  eval ac_env_${ac_var}_value=\$${ac_var}
1320  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
1323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328  # Omit some internal or obsolete options to make the list less imposing.
1329  # This message is too long to be a string in the A/UX 3.1 sh.
1330  cat <<_ACEOF
1331\`configure' configures libXScrnSaver 1.2.1 to adapt to many kinds of systems.
1332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE.  See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341  -h, --help              display this help and exit
1342      --help=short        display options specific to this package
1343      --help=recursive    display the short help of all the included packages
1344  -V, --version           display version information and exit
1345  -q, --quiet, --silent   do not print \`checking ...' messages
1346      --cache-file=FILE   cache test results in FILE [disabled]
1347  -C, --config-cache      alias for \`--cache-file=config.cache'
1348  -n, --no-create         do not create output files
1349      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1350
1351Installation directories:
1352  --prefix=PREFIX         install architecture-independent files in PREFIX
1353                          [$ac_default_prefix]
1354  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1355                          [PREFIX]
1356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
1365  --bindir=DIR            user executables [EPREFIX/bin]
1366  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1367  --libexecdir=DIR        program executables [EPREFIX/libexec]
1368  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1369  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1370  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1371  --libdir=DIR            object code libraries [EPREFIX/lib]
1372  --includedir=DIR        C header files [PREFIX/include]
1373  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1374  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1375  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1376  --infodir=DIR           info documentation [DATAROOTDIR/info]
1377  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1378  --mandir=DIR            man documentation [DATAROOTDIR/man]
1379  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXScrnSaver]
1380  --htmldir=DIR           html documentation [DOCDIR]
1381  --dvidir=DIR            dvi documentation [DOCDIR]
1382  --pdfdir=DIR            pdf documentation [DOCDIR]
1383  --psdir=DIR             ps documentation [DOCDIR]
1384_ACEOF
1385
1386  cat <<\_ACEOF
1387
1388Program names:
1389  --program-prefix=PREFIX            prepend PREFIX to installed program names
1390  --program-suffix=SUFFIX            append SUFFIX to installed program names
1391  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1392
1393System types:
1394  --build=BUILD     configure for building on BUILD [guessed]
1395  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1396_ACEOF
1397fi
1398
1399if test -n "$ac_init_help"; then
1400  case $ac_init_help in
1401     short | recursive ) echo "Configuration of libXScrnSaver 1.2.1:";;
1402   esac
1403  cat <<\_ACEOF
1404
1405Optional Features:
1406  --disable-option-checking  ignore unrecognized --enable/--with options
1407  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1408  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1409  --enable-maintainer-mode  enable make rules and dependencies not useful
1410			  (and sometimes confusing) to the casual installer
1411  --disable-dependency-tracking  speeds up one-time build
1412  --enable-dependency-tracking   do not reject slow dependency extractors
1413  --enable-strict-compilation
1414                          Enable all warnings from compiler and make them
1415                          errors (default: disabled)
1416  --enable-silent-rules          less verbose build output (undo: `make V=1')
1417  --disable-silent-rules         verbose build output (undo: `make V=0')
1418  --enable-shared[=PKGS]  build shared libraries [default=yes]
1419  --enable-static[=PKGS]  build static libraries [default=yes]
1420  --enable-fast-install[=PKGS]
1421                          optimize for fast installation [default=yes]
1422  --disable-libtool-lock  avoid locking (might break parallel builds)
1423  --enable-lint-library   Create lint library (default: disabled)
1424  --enable-malloc0returnsnull
1425                          malloc(0) returns NULL (default: auto)
1426
1427Optional Packages:
1428  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430  --with-pic              try to use only PIC/non-PIC objects [default=use
1431                          both]
1432  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1433  --with-lint             Use a lint-style source code checker (default:
1434                          disabled)
1435
1436Some influential environment variables:
1437  CC          C compiler command
1438  CFLAGS      C compiler flags
1439  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1440              nonstandard directory <lib dir>
1441  LIBS        libraries to pass to the linker, e.g. -l<library>
1442  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1443              you have headers in a nonstandard directory <include dir>
1444  CPP         C preprocessor
1445  PKG_CONFIG  path to pkg-config utility
1446  XSCRNSAVER_CFLAGS
1447              C compiler flags for XSCRNSAVER, overriding pkg-config
1448  XSCRNSAVER_LIBS
1449              linker flags for XSCRNSAVER, overriding pkg-config
1450  LINT        Path to a lint-style command
1451  LINT_FLAGS  Flags for the lint-style command
1452
1453Use these variables to override the choices made by `configure' or to help
1454it to find libraries and programs with nonstandard names/locations.
1455
1456Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1457_ACEOF
1458ac_status=$?
1459fi
1460
1461if test "$ac_init_help" = "recursive"; then
1462  # If there are subdirs, report their specific --help.
1463  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464    test -d "$ac_dir" ||
1465      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466      continue
1467    ac_builddir=.
1468
1469case "$ac_dir" in
1470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471*)
1472  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473  # A ".." for each directory in $ac_dir_suffix.
1474  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475  case $ac_top_builddir_sub in
1476  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478  esac ;;
1479esac
1480ac_abs_top_builddir=$ac_pwd
1481ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482# for backward compatibility:
1483ac_top_builddir=$ac_top_build_prefix
1484
1485case $srcdir in
1486  .)  # We are building in place.
1487    ac_srcdir=.
1488    ac_top_srcdir=$ac_top_builddir_sub
1489    ac_abs_top_srcdir=$ac_pwd ;;
1490  [\\/]* | ?:[\\/]* )  # Absolute name.
1491    ac_srcdir=$srcdir$ac_dir_suffix;
1492    ac_top_srcdir=$srcdir
1493    ac_abs_top_srcdir=$srcdir ;;
1494  *) # Relative name.
1495    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496    ac_top_srcdir=$ac_top_build_prefix$srcdir
1497    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498esac
1499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501    cd "$ac_dir" || { ac_status=$?; continue; }
1502    # Check for guested configure.
1503    if test -f "$ac_srcdir/configure.gnu"; then
1504      echo &&
1505      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506    elif test -f "$ac_srcdir/configure"; then
1507      echo &&
1508      $SHELL "$ac_srcdir/configure" --help=recursive
1509    else
1510      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511    fi || ac_status=$?
1512    cd "$ac_pwd" || { ac_status=$?; break; }
1513  done
1514fi
1515
1516test -n "$ac_init_help" && exit $ac_status
1517if $ac_init_version; then
1518  cat <<\_ACEOF
1519libXScrnSaver configure 1.2.1
1520generated by GNU Autoconf 2.68
1521
1522Copyright (C) 2010 Free Software Foundation, Inc.
1523This configure script is free software; the Free Software Foundation
1524gives unlimited permission to copy, distribute and modify it.
1525_ACEOF
1526  exit
1527fi
1528
1529## ------------------------ ##
1530## Autoconf initialization. ##
1531## ------------------------ ##
1532
1533# ac_fn_c_try_compile LINENO
1534# --------------------------
1535# Try to compile conftest.$ac_ext, and return whether this succeeded.
1536ac_fn_c_try_compile ()
1537{
1538  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539  rm -f conftest.$ac_objext
1540  if { { ac_try="$ac_compile"
1541case "(($ac_try" in
1542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543  *) ac_try_echo=$ac_try;;
1544esac
1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546$as_echo "$ac_try_echo"; } >&5
1547  (eval "$ac_compile") 2>conftest.err
1548  ac_status=$?
1549  if test -s conftest.err; then
1550    grep -v '^ *+' conftest.err >conftest.er1
1551    cat conftest.er1 >&5
1552    mv -f conftest.er1 conftest.err
1553  fi
1554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555  test $ac_status = 0; } && {
1556	 test -z "$ac_c_werror_flag" ||
1557	 test ! -s conftest.err
1558       } && test -s conftest.$ac_objext; then :
1559  ac_retval=0
1560else
1561  $as_echo "$as_me: failed program was:" >&5
1562sed 's/^/| /' conftest.$ac_ext >&5
1563
1564	ac_retval=1
1565fi
1566  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567  as_fn_set_status $ac_retval
1568
1569} # ac_fn_c_try_compile
1570
1571# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1572# ---------------------------------------------
1573# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1574# accordingly.
1575ac_fn_c_check_decl ()
1576{
1577  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578  as_decl_name=`echo $2|sed 's/ *(.*//'`
1579  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1580  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1581$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1582if eval \${$3+:} false; then :
1583  $as_echo_n "(cached) " >&6
1584else
1585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1586/* end confdefs.h.  */
1587$4
1588int
1589main ()
1590{
1591#ifndef $as_decl_name
1592#ifdef __cplusplus
1593  (void) $as_decl_use;
1594#else
1595  (void) $as_decl_name;
1596#endif
1597#endif
1598
1599  ;
1600  return 0;
1601}
1602_ACEOF
1603if ac_fn_c_try_compile "$LINENO"; then :
1604  eval "$3=yes"
1605else
1606  eval "$3=no"
1607fi
1608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1609fi
1610eval ac_res=\$$3
1611	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1612$as_echo "$ac_res" >&6; }
1613  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614
1615} # ac_fn_c_check_decl
1616
1617# ac_fn_c_try_cpp LINENO
1618# ----------------------
1619# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620ac_fn_c_try_cpp ()
1621{
1622  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623  if { { ac_try="$ac_cpp conftest.$ac_ext"
1624case "(($ac_try" in
1625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626  *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631  ac_status=$?
1632  if test -s conftest.err; then
1633    grep -v '^ *+' conftest.err >conftest.er1
1634    cat conftest.er1 >&5
1635    mv -f conftest.er1 conftest.err
1636  fi
1637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638  test $ac_status = 0; } > conftest.i && {
1639	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1640	 test ! -s conftest.err
1641       }; then :
1642  ac_retval=0
1643else
1644  $as_echo "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647    ac_retval=1
1648fi
1649  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650  as_fn_set_status $ac_retval
1651
1652} # ac_fn_c_try_cpp
1653
1654# ac_fn_c_try_run LINENO
1655# ----------------------
1656# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1657# that executables *can* be run.
1658ac_fn_c_try_run ()
1659{
1660  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661  if { { ac_try="$ac_link"
1662case "(($ac_try" in
1663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664  *) ac_try_echo=$ac_try;;
1665esac
1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667$as_echo "$ac_try_echo"; } >&5
1668  (eval "$ac_link") 2>&5
1669  ac_status=$?
1670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1672  { { case "(($ac_try" in
1673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674  *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678  (eval "$ac_try") 2>&5
1679  ac_status=$?
1680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681  test $ac_status = 0; }; }; then :
1682  ac_retval=0
1683else
1684  $as_echo "$as_me: program exited with status $ac_status" >&5
1685       $as_echo "$as_me: failed program was:" >&5
1686sed 's/^/| /' conftest.$ac_ext >&5
1687
1688       ac_retval=$ac_status
1689fi
1690  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692  as_fn_set_status $ac_retval
1693
1694} # ac_fn_c_try_run
1695
1696# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1697# -------------------------------------------------------
1698# Tests whether HEADER exists and can be compiled using the include files in
1699# INCLUDES, setting the cache variable VAR accordingly.
1700ac_fn_c_check_header_compile ()
1701{
1702  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704$as_echo_n "checking for $2... " >&6; }
1705if eval \${$3+:} false; then :
1706  $as_echo_n "(cached) " >&6
1707else
1708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709/* end confdefs.h.  */
1710$4
1711#include <$2>
1712_ACEOF
1713if ac_fn_c_try_compile "$LINENO"; then :
1714  eval "$3=yes"
1715else
1716  eval "$3=no"
1717fi
1718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719fi
1720eval ac_res=\$$3
1721	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722$as_echo "$ac_res" >&6; }
1723  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724
1725} # ac_fn_c_check_header_compile
1726
1727# ac_fn_c_try_link LINENO
1728# -----------------------
1729# Try to link conftest.$ac_ext, and return whether this succeeded.
1730ac_fn_c_try_link ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  rm -f conftest.$ac_objext conftest$ac_exeext
1734  if { { ac_try="$ac_link"
1735case "(($ac_try" in
1736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737  *) ac_try_echo=$ac_try;;
1738esac
1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740$as_echo "$ac_try_echo"; } >&5
1741  (eval "$ac_link") 2>conftest.err
1742  ac_status=$?
1743  if test -s conftest.err; then
1744    grep -v '^ *+' conftest.err >conftest.er1
1745    cat conftest.er1 >&5
1746    mv -f conftest.er1 conftest.err
1747  fi
1748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749  test $ac_status = 0; } && {
1750	 test -z "$ac_c_werror_flag" ||
1751	 test ! -s conftest.err
1752       } && test -s conftest$ac_exeext && {
1753	 test "$cross_compiling" = yes ||
1754	 $as_test_x conftest$ac_exeext
1755       }; then :
1756  ac_retval=0
1757else
1758  $as_echo "$as_me: failed program was:" >&5
1759sed 's/^/| /' conftest.$ac_ext >&5
1760
1761	ac_retval=1
1762fi
1763  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1764  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1765  # interfere with the next link command; also delete a directory that is
1766  # left behind by Apple's compiler.  We do this before executing the actions.
1767  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769  as_fn_set_status $ac_retval
1770
1771} # ac_fn_c_try_link
1772
1773# ac_fn_c_check_func LINENO FUNC VAR
1774# ----------------------------------
1775# Tests whether FUNC exists, setting the cache variable VAR accordingly
1776ac_fn_c_check_func ()
1777{
1778  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780$as_echo_n "checking for $2... " >&6; }
1781if eval \${$3+:} false; then :
1782  $as_echo_n "(cached) " >&6
1783else
1784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785/* end confdefs.h.  */
1786/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1788#define $2 innocuous_$2
1789
1790/* System header to define __stub macros and hopefully few prototypes,
1791    which can conflict with char $2 (); below.
1792    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1793    <limits.h> exists even on freestanding compilers.  */
1794
1795#ifdef __STDC__
1796# include <limits.h>
1797#else
1798# include <assert.h>
1799#endif
1800
1801#undef $2
1802
1803/* Override any GCC internal prototype to avoid an error.
1804   Use char because int might match the return type of a GCC
1805   builtin and then its argument prototype would still apply.  */
1806#ifdef __cplusplus
1807extern "C"
1808#endif
1809char $2 ();
1810/* The GNU C library defines this for functions which it implements
1811    to always fail with ENOSYS.  Some functions are actually named
1812    something starting with __ and the normal name is an alias.  */
1813#if defined __stub_$2 || defined __stub___$2
1814choke me
1815#endif
1816
1817int
1818main ()
1819{
1820return $2 ();
1821  ;
1822  return 0;
1823}
1824_ACEOF
1825if ac_fn_c_try_link "$LINENO"; then :
1826  eval "$3=yes"
1827else
1828  eval "$3=no"
1829fi
1830rm -f core conftest.err conftest.$ac_objext \
1831    conftest$ac_exeext conftest.$ac_ext
1832fi
1833eval ac_res=\$$3
1834	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835$as_echo "$ac_res" >&6; }
1836  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837
1838} # ac_fn_c_check_func
1839cat >config.log <<_ACEOF
1840This file contains any messages produced by compilers while
1841running configure, to aid debugging if configure makes a mistake.
1842
1843It was created by libXScrnSaver $as_me 1.2.1, which was
1844generated by GNU Autoconf 2.68.  Invocation command line was
1845
1846  $ $0 $@
1847
1848_ACEOF
1849exec 5>>config.log
1850{
1851cat <<_ASUNAME
1852## --------- ##
1853## Platform. ##
1854## --------- ##
1855
1856hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1857uname -m = `(uname -m) 2>/dev/null || echo unknown`
1858uname -r = `(uname -r) 2>/dev/null || echo unknown`
1859uname -s = `(uname -s) 2>/dev/null || echo unknown`
1860uname -v = `(uname -v) 2>/dev/null || echo unknown`
1861
1862/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1863/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1864
1865/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1866/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1867/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1868/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1869/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1870/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1871/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1872
1873_ASUNAME
1874
1875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876for as_dir in $PATH
1877do
1878  IFS=$as_save_IFS
1879  test -z "$as_dir" && as_dir=.
1880    $as_echo "PATH: $as_dir"
1881  done
1882IFS=$as_save_IFS
1883
1884} >&5
1885
1886cat >&5 <<_ACEOF
1887
1888
1889## ----------- ##
1890## Core tests. ##
1891## ----------- ##
1892
1893_ACEOF
1894
1895
1896# Keep a trace of the command line.
1897# Strip out --no-create and --no-recursion so they do not pile up.
1898# Strip out --silent because we don't want to record it for future runs.
1899# Also quote any args containing shell meta-characters.
1900# Make two passes to allow for proper duplicate-argument suppression.
1901ac_configure_args=
1902ac_configure_args0=
1903ac_configure_args1=
1904ac_must_keep_next=false
1905for ac_pass in 1 2
1906do
1907  for ac_arg
1908  do
1909    case $ac_arg in
1910    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1911    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1912    | -silent | --silent | --silen | --sile | --sil)
1913      continue ;;
1914    *\'*)
1915      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1916    esac
1917    case $ac_pass in
1918    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1919    2)
1920      as_fn_append ac_configure_args1 " '$ac_arg'"
1921      if test $ac_must_keep_next = true; then
1922	ac_must_keep_next=false # Got value, back to normal.
1923      else
1924	case $ac_arg in
1925	  *=* | --config-cache | -C | -disable-* | --disable-* \
1926	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1927	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1928	  | -with-* | --with-* | -without-* | --without-* | --x)
1929	    case "$ac_configure_args0 " in
1930	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1931	    esac
1932	    ;;
1933	  -* ) ac_must_keep_next=true ;;
1934	esac
1935      fi
1936      as_fn_append ac_configure_args " '$ac_arg'"
1937      ;;
1938    esac
1939  done
1940done
1941{ ac_configure_args0=; unset ac_configure_args0;}
1942{ ac_configure_args1=; unset ac_configure_args1;}
1943
1944# When interrupted or exit'd, cleanup temporary files, and complete
1945# config.log.  We remove comments because anyway the quotes in there
1946# would cause problems or look ugly.
1947# WARNING: Use '\'' to represent an apostrophe within the trap.
1948# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1949trap 'exit_status=$?
1950  # Save into config.log some information that might help in debugging.
1951  {
1952    echo
1953
1954    $as_echo "## ---------------- ##
1955## Cache variables. ##
1956## ---------------- ##"
1957    echo
1958    # The following way of writing the cache mishandles newlines in values,
1959(
1960  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1961    eval ac_val=\$$ac_var
1962    case $ac_val in #(
1963    *${as_nl}*)
1964      case $ac_var in #(
1965      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1966$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1967      esac
1968      case $ac_var in #(
1969      _ | IFS | as_nl) ;; #(
1970      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1971      *) { eval $ac_var=; unset $ac_var;} ;;
1972      esac ;;
1973    esac
1974  done
1975  (set) 2>&1 |
1976    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1977    *${as_nl}ac_space=\ *)
1978      sed -n \
1979	"s/'\''/'\''\\\\'\'''\''/g;
1980	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1981      ;; #(
1982    *)
1983      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1984      ;;
1985    esac |
1986    sort
1987)
1988    echo
1989
1990    $as_echo "## ----------------- ##
1991## Output variables. ##
1992## ----------------- ##"
1993    echo
1994    for ac_var in $ac_subst_vars
1995    do
1996      eval ac_val=\$$ac_var
1997      case $ac_val in
1998      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1999      esac
2000      $as_echo "$ac_var='\''$ac_val'\''"
2001    done | sort
2002    echo
2003
2004    if test -n "$ac_subst_files"; then
2005      $as_echo "## ------------------- ##
2006## File substitutions. ##
2007## ------------------- ##"
2008      echo
2009      for ac_var in $ac_subst_files
2010      do
2011	eval ac_val=\$$ac_var
2012	case $ac_val in
2013	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2014	esac
2015	$as_echo "$ac_var='\''$ac_val'\''"
2016      done | sort
2017      echo
2018    fi
2019
2020    if test -s confdefs.h; then
2021      $as_echo "## ----------- ##
2022## confdefs.h. ##
2023## ----------- ##"
2024      echo
2025      cat confdefs.h
2026      echo
2027    fi
2028    test "$ac_signal" != 0 &&
2029      $as_echo "$as_me: caught signal $ac_signal"
2030    $as_echo "$as_me: exit $exit_status"
2031  } >&5
2032  rm -f core *.core core.conftest.* &&
2033    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2034    exit $exit_status
2035' 0
2036for ac_signal in 1 2 13 15; do
2037  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2038done
2039ac_signal=0
2040
2041# confdefs.h avoids OS command line length limits that DEFS can exceed.
2042rm -f -r conftest* confdefs.h
2043
2044$as_echo "/* confdefs.h */" > confdefs.h
2045
2046# Predefined preprocessor variables.
2047
2048cat >>confdefs.h <<_ACEOF
2049#define PACKAGE_NAME "$PACKAGE_NAME"
2050_ACEOF
2051
2052cat >>confdefs.h <<_ACEOF
2053#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2054_ACEOF
2055
2056cat >>confdefs.h <<_ACEOF
2057#define PACKAGE_VERSION "$PACKAGE_VERSION"
2058_ACEOF
2059
2060cat >>confdefs.h <<_ACEOF
2061#define PACKAGE_STRING "$PACKAGE_STRING"
2062_ACEOF
2063
2064cat >>confdefs.h <<_ACEOF
2065#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2066_ACEOF
2067
2068cat >>confdefs.h <<_ACEOF
2069#define PACKAGE_URL "$PACKAGE_URL"
2070_ACEOF
2071
2072
2073# Let the site file select an alternate cache file if it wants to.
2074# Prefer an explicitly selected file to automatically selected ones.
2075ac_site_file1=NONE
2076ac_site_file2=NONE
2077if test -n "$CONFIG_SITE"; then
2078  # We do not want a PATH search for config.site.
2079  case $CONFIG_SITE in #((
2080    -*)  ac_site_file1=./$CONFIG_SITE;;
2081    */*) ac_site_file1=$CONFIG_SITE;;
2082    *)   ac_site_file1=./$CONFIG_SITE;;
2083  esac
2084elif test "x$prefix" != xNONE; then
2085  ac_site_file1=$prefix/share/config.site
2086  ac_site_file2=$prefix/etc/config.site
2087else
2088  ac_site_file1=$ac_default_prefix/share/config.site
2089  ac_site_file2=$ac_default_prefix/etc/config.site
2090fi
2091for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2092do
2093  test "x$ac_site_file" = xNONE && continue
2094  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2095    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2096$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2097    sed 's/^/| /' "$ac_site_file" >&5
2098    . "$ac_site_file" \
2099      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2101as_fn_error $? "failed to load site script $ac_site_file
2102See \`config.log' for more details" "$LINENO" 5; }
2103  fi
2104done
2105
2106if test -r "$cache_file"; then
2107  # Some versions of bash will fail to source /dev/null (special files
2108  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2109  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2110    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2111$as_echo "$as_me: loading cache $cache_file" >&6;}
2112    case $cache_file in
2113      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2114      *)                      . "./$cache_file";;
2115    esac
2116  fi
2117else
2118  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2119$as_echo "$as_me: creating cache $cache_file" >&6;}
2120  >$cache_file
2121fi
2122
2123# Check that the precious variables saved in the cache have kept the same
2124# value.
2125ac_cache_corrupted=false
2126for ac_var in $ac_precious_vars; do
2127  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2128  eval ac_new_set=\$ac_env_${ac_var}_set
2129  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2130  eval ac_new_val=\$ac_env_${ac_var}_value
2131  case $ac_old_set,$ac_new_set in
2132    set,)
2133      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2134$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2135      ac_cache_corrupted=: ;;
2136    ,set)
2137      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2138$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2139      ac_cache_corrupted=: ;;
2140    ,);;
2141    *)
2142      if test "x$ac_old_val" != "x$ac_new_val"; then
2143	# differences in whitespace do not lead to failure.
2144	ac_old_val_w=`echo x $ac_old_val`
2145	ac_new_val_w=`echo x $ac_new_val`
2146	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2147	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2148$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2149	  ac_cache_corrupted=:
2150	else
2151	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2152$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2153	  eval $ac_var=\$ac_old_val
2154	fi
2155	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2156$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2157	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2158$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2159      fi;;
2160  esac
2161  # Pass precious variables to config.status.
2162  if test "$ac_new_set" = set; then
2163    case $ac_new_val in
2164    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2165    *) ac_arg=$ac_var=$ac_new_val ;;
2166    esac
2167    case " $ac_configure_args " in
2168      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2169      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2170    esac
2171  fi
2172done
2173if $ac_cache_corrupted; then
2174  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2176  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2177$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2178  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2179fi
2180## -------------------- ##
2181## Main body of script. ##
2182## -------------------- ##
2183
2184ac_ext=c
2185ac_cpp='$CPP $CPPFLAGS'
2186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2188ac_compiler_gnu=$ac_cv_c_compiler_gnu
2189
2190
2191am__api_version='1.11'
2192
2193ac_aux_dir=
2194for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2195  if test -f "$ac_dir/install-sh"; then
2196    ac_aux_dir=$ac_dir
2197    ac_install_sh="$ac_aux_dir/install-sh -c"
2198    break
2199  elif test -f "$ac_dir/install.sh"; then
2200    ac_aux_dir=$ac_dir
2201    ac_install_sh="$ac_aux_dir/install.sh -c"
2202    break
2203  elif test -f "$ac_dir/shtool"; then
2204    ac_aux_dir=$ac_dir
2205    ac_install_sh="$ac_aux_dir/shtool install -c"
2206    break
2207  fi
2208done
2209if test -z "$ac_aux_dir"; then
2210  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2211fi
2212
2213# These three variables are undocumented and unsupported,
2214# and are intended to be withdrawn in a future Autoconf release.
2215# They can cause serious problems if a builder's source tree is in a directory
2216# whose full name contains unusual characters.
2217ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2218ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2219ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2220
2221
2222# Find a good install program.  We prefer a C program (faster),
2223# so one script is as good as another.  But avoid the broken or
2224# incompatible versions:
2225# SysV /etc/install, /usr/sbin/install
2226# SunOS /usr/etc/install
2227# IRIX /sbin/install
2228# AIX /bin/install
2229# AmigaOS /C/install, which installs bootblocks on floppy discs
2230# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2231# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2232# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2233# OS/2's system install, which has a completely different semantic
2234# ./install, which can be erroneously created by make from ./install.sh.
2235# Reject install programs that cannot install multiple files.
2236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2237$as_echo_n "checking for a BSD-compatible install... " >&6; }
2238if test -z "$INSTALL"; then
2239if ${ac_cv_path_install+:} false; then :
2240  $as_echo_n "(cached) " >&6
2241else
2242  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243for as_dir in $PATH
2244do
2245  IFS=$as_save_IFS
2246  test -z "$as_dir" && as_dir=.
2247    # Account for people who put trailing slashes in PATH elements.
2248case $as_dir/ in #((
2249  ./ | .// | /[cC]/* | \
2250  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2251  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2252  /usr/ucb/* ) ;;
2253  *)
2254    # OSF1 and SCO ODT 3.0 have their own names for install.
2255    # Don't use installbsd from OSF since it installs stuff as root
2256    # by default.
2257    for ac_prog in ginstall scoinst install; do
2258      for ac_exec_ext in '' $ac_executable_extensions; do
2259	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2260	  if test $ac_prog = install &&
2261	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2262	    # AIX install.  It has an incompatible calling convention.
2263	    :
2264	  elif test $ac_prog = install &&
2265	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2266	    # program-specific install script used by HP pwplus--don't use.
2267	    :
2268	  else
2269	    rm -rf conftest.one conftest.two conftest.dir
2270	    echo one > conftest.one
2271	    echo two > conftest.two
2272	    mkdir conftest.dir
2273	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2274	      test -s conftest.one && test -s conftest.two &&
2275	      test -s conftest.dir/conftest.one &&
2276	      test -s conftest.dir/conftest.two
2277	    then
2278	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2279	      break 3
2280	    fi
2281	  fi
2282	fi
2283      done
2284    done
2285    ;;
2286esac
2287
2288  done
2289IFS=$as_save_IFS
2290
2291rm -rf conftest.one conftest.two conftest.dir
2292
2293fi
2294  if test "${ac_cv_path_install+set}" = set; then
2295    INSTALL=$ac_cv_path_install
2296  else
2297    # As a last resort, use the slow shell script.  Don't cache a
2298    # value for INSTALL within a source directory, because that will
2299    # break other packages using the cache if that directory is
2300    # removed, or if the value is a relative name.
2301    INSTALL=$ac_install_sh
2302  fi
2303fi
2304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2305$as_echo "$INSTALL" >&6; }
2306
2307# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2308# It thinks the first close brace ends the variable substitution.
2309test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2310
2311test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2312
2313test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2314
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2316$as_echo_n "checking whether build environment is sane... " >&6; }
2317# Just in case
2318sleep 1
2319echo timestamp > conftest.file
2320# Reject unsafe characters in $srcdir or the absolute working directory
2321# name.  Accept space and tab only in the latter.
2322am_lf='
2323'
2324case `pwd` in
2325  *[\\\"\#\$\&\'\`$am_lf]*)
2326    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2327esac
2328case $srcdir in
2329  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2330    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2331esac
2332
2333# Do `set' in a subshell so we don't clobber the current shell's
2334# arguments.  Must try -L first in case configure is actually a
2335# symlink; some systems play weird games with the mod time of symlinks
2336# (eg FreeBSD returns the mod time of the symlink's containing
2337# directory).
2338if (
2339   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2340   if test "$*" = "X"; then
2341      # -L didn't work.
2342      set X `ls -t "$srcdir/configure" conftest.file`
2343   fi
2344   rm -f conftest.file
2345   if test "$*" != "X $srcdir/configure conftest.file" \
2346      && test "$*" != "X conftest.file $srcdir/configure"; then
2347
2348      # If neither matched, then we have a broken ls.  This can happen
2349      # if, for instance, CONFIG_SHELL is bash and it inherits a
2350      # broken ls alias from the environment.  This has actually
2351      # happened.  Such a system could not be considered "sane".
2352      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2353alias in your environment" "$LINENO" 5
2354   fi
2355
2356   test "$2" = conftest.file
2357   )
2358then
2359   # Ok.
2360   :
2361else
2362   as_fn_error $? "newly created file is older than distributed files!
2363Check your system clock" "$LINENO" 5
2364fi
2365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2366$as_echo "yes" >&6; }
2367test "$program_prefix" != NONE &&
2368  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2369# Use a double $ so make ignores it.
2370test "$program_suffix" != NONE &&
2371  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2372# Double any \ or $.
2373# By default was `s,x,x', remove it if useless.
2374ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2375program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2376
2377# expand $ac_aux_dir to an absolute path
2378am_aux_dir=`cd $ac_aux_dir && pwd`
2379
2380if test x"${MISSING+set}" != xset; then
2381  case $am_aux_dir in
2382  *\ * | *\	*)
2383    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2384  *)
2385    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2386  esac
2387fi
2388# Use eval to expand $SHELL
2389if eval "$MISSING --run true"; then
2390  am_missing_run="$MISSING --run "
2391else
2392  am_missing_run=
2393  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2394$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2395fi
2396
2397if test x"${install_sh}" != xset; then
2398  case $am_aux_dir in
2399  *\ * | *\	*)
2400    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2401  *)
2402    install_sh="\${SHELL} $am_aux_dir/install-sh"
2403  esac
2404fi
2405
2406# Installed binaries are usually stripped using `strip' when the user
2407# run `make install-strip'.  However `strip' might not be the right
2408# tool to use in cross-compilation environments, therefore Automake
2409# will honor the `STRIP' environment variable to overrule this program.
2410if test "$cross_compiling" != no; then
2411  if test -n "$ac_tool_prefix"; then
2412  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2413set dummy ${ac_tool_prefix}strip; ac_word=$2
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415$as_echo_n "checking for $ac_word... " >&6; }
2416if ${ac_cv_prog_STRIP+:} false; then :
2417  $as_echo_n "(cached) " >&6
2418else
2419  if test -n "$STRIP"; then
2420  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2421else
2422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423for as_dir in $PATH
2424do
2425  IFS=$as_save_IFS
2426  test -z "$as_dir" && as_dir=.
2427    for ac_exec_ext in '' $ac_executable_extensions; do
2428  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2431    break 2
2432  fi
2433done
2434  done
2435IFS=$as_save_IFS
2436
2437fi
2438fi
2439STRIP=$ac_cv_prog_STRIP
2440if test -n "$STRIP"; then
2441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2442$as_echo "$STRIP" >&6; }
2443else
2444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445$as_echo "no" >&6; }
2446fi
2447
2448
2449fi
2450if test -z "$ac_cv_prog_STRIP"; then
2451  ac_ct_STRIP=$STRIP
2452  # Extract the first word of "strip", so it can be a program name with args.
2453set dummy strip; ac_word=$2
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455$as_echo_n "checking for $ac_word... " >&6; }
2456if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2457  $as_echo_n "(cached) " >&6
2458else
2459  if test -n "$ac_ct_STRIP"; then
2460  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2461else
2462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463for as_dir in $PATH
2464do
2465  IFS=$as_save_IFS
2466  test -z "$as_dir" && as_dir=.
2467    for ac_exec_ext in '' $ac_executable_extensions; do
2468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469    ac_cv_prog_ac_ct_STRIP="strip"
2470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2471    break 2
2472  fi
2473done
2474  done
2475IFS=$as_save_IFS
2476
2477fi
2478fi
2479ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2480if test -n "$ac_ct_STRIP"; then
2481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2482$as_echo "$ac_ct_STRIP" >&6; }
2483else
2484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485$as_echo "no" >&6; }
2486fi
2487
2488  if test "x$ac_ct_STRIP" = x; then
2489    STRIP=":"
2490  else
2491    case $cross_compiling:$ac_tool_warned in
2492yes:)
2493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2495ac_tool_warned=yes ;;
2496esac
2497    STRIP=$ac_ct_STRIP
2498  fi
2499else
2500  STRIP="$ac_cv_prog_STRIP"
2501fi
2502
2503fi
2504INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2505
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2507$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2508if test -z "$MKDIR_P"; then
2509  if ${ac_cv_path_mkdir+:} false; then :
2510  $as_echo_n "(cached) " >&6
2511else
2512  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2514do
2515  IFS=$as_save_IFS
2516  test -z "$as_dir" && as_dir=.
2517    for ac_prog in mkdir gmkdir; do
2518	 for ac_exec_ext in '' $ac_executable_extensions; do
2519	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2520	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2521	     'mkdir (GNU coreutils) '* | \
2522	     'mkdir (coreutils) '* | \
2523	     'mkdir (fileutils) '4.1*)
2524	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2525	       break 3;;
2526	   esac
2527	 done
2528       done
2529  done
2530IFS=$as_save_IFS
2531
2532fi
2533
2534  test -d ./--version && rmdir ./--version
2535  if test "${ac_cv_path_mkdir+set}" = set; then
2536    MKDIR_P="$ac_cv_path_mkdir -p"
2537  else
2538    # As a last resort, use the slow shell script.  Don't cache a
2539    # value for MKDIR_P within a source directory, because that will
2540    # break other packages using the cache if that directory is
2541    # removed, or if the value is a relative name.
2542    MKDIR_P="$ac_install_sh -d"
2543  fi
2544fi
2545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2546$as_echo "$MKDIR_P" >&6; }
2547
2548mkdir_p="$MKDIR_P"
2549case $mkdir_p in
2550  [\\/$]* | ?:[\\/]*) ;;
2551  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2552esac
2553
2554for ac_prog in gawk mawk nawk awk
2555do
2556  # Extract the first word of "$ac_prog", so it can be a program name with args.
2557set dummy $ac_prog; ac_word=$2
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559$as_echo_n "checking for $ac_word... " >&6; }
2560if ${ac_cv_prog_AWK+:} false; then :
2561  $as_echo_n "(cached) " >&6
2562else
2563  if test -n "$AWK"; then
2564  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2565else
2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569  IFS=$as_save_IFS
2570  test -z "$as_dir" && as_dir=.
2571    for ac_exec_ext in '' $ac_executable_extensions; do
2572  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573    ac_cv_prog_AWK="$ac_prog"
2574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575    break 2
2576  fi
2577done
2578  done
2579IFS=$as_save_IFS
2580
2581fi
2582fi
2583AWK=$ac_cv_prog_AWK
2584if test -n "$AWK"; then
2585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2586$as_echo "$AWK" >&6; }
2587else
2588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589$as_echo "no" >&6; }
2590fi
2591
2592
2593  test -n "$AWK" && break
2594done
2595
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2597$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2598set x ${MAKE-make}
2599ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2600if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2601  $as_echo_n "(cached) " >&6
2602else
2603  cat >conftest.make <<\_ACEOF
2604SHELL = /bin/sh
2605all:
2606	@echo '@@@%%%=$(MAKE)=@@@%%%'
2607_ACEOF
2608# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2609case `${MAKE-make} -f conftest.make 2>/dev/null` in
2610  *@@@%%%=?*=@@@%%%*)
2611    eval ac_cv_prog_make_${ac_make}_set=yes;;
2612  *)
2613    eval ac_cv_prog_make_${ac_make}_set=no;;
2614esac
2615rm -f conftest.make
2616fi
2617if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2619$as_echo "yes" >&6; }
2620  SET_MAKE=
2621else
2622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623$as_echo "no" >&6; }
2624  SET_MAKE="MAKE=${MAKE-make}"
2625fi
2626
2627rm -rf .tst 2>/dev/null
2628mkdir .tst 2>/dev/null
2629if test -d .tst; then
2630  am__leading_dot=.
2631else
2632  am__leading_dot=_
2633fi
2634rmdir .tst 2>/dev/null
2635
2636if test "`cd $srcdir && pwd`" != "`pwd`"; then
2637  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2638  # is not polluted with repeated "-I."
2639  am__isrc=' -I$(srcdir)'
2640  # test to see if srcdir already configured
2641  if test -f $srcdir/config.status; then
2642    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2643  fi
2644fi
2645
2646# test whether we have cygpath
2647if test -z "$CYGPATH_W"; then
2648  if (cygpath --version) >/dev/null 2>/dev/null; then
2649    CYGPATH_W='cygpath -w'
2650  else
2651    CYGPATH_W=echo
2652  fi
2653fi
2654
2655
2656# Define the identity of the package.
2657 PACKAGE='libXScrnSaver'
2658 VERSION='1.2.1'
2659
2660
2661cat >>confdefs.h <<_ACEOF
2662#define PACKAGE "$PACKAGE"
2663_ACEOF
2664
2665
2666cat >>confdefs.h <<_ACEOF
2667#define VERSION "$VERSION"
2668_ACEOF
2669
2670# Some tools Automake needs.
2671
2672ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2673
2674
2675AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2676
2677
2678AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2679
2680
2681AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2682
2683
2684MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2685
2686# We need awk for the "check" target.  The system "awk" is bad on
2687# some platforms.
2688# Always define AMTAR for backward compatibility.
2689
2690AMTAR=${AMTAR-"${am_missing_run}tar"}
2691
2692am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2693
2694
2695
2696
2697
2698
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2700$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2701    # Check whether --enable-maintainer-mode was given.
2702if test "${enable_maintainer_mode+set}" = set; then :
2703  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2704else
2705  USE_MAINTAINER_MODE=no
2706fi
2707
2708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2709$as_echo "$USE_MAINTAINER_MODE" >&6; }
2710   if test $USE_MAINTAINER_MODE = yes; then
2711  MAINTAINER_MODE_TRUE=
2712  MAINTAINER_MODE_FALSE='#'
2713else
2714  MAINTAINER_MODE_TRUE='#'
2715  MAINTAINER_MODE_FALSE=
2716fi
2717
2718  MAINT=$MAINTAINER_MODE_TRUE
2719
2720
2721
2722ac_config_headers="$ac_config_headers config.h"
2723
2724
2725# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737DEPDIR="${am__leading_dot}deps"
2738
2739ac_config_commands="$ac_config_commands depfiles"
2740
2741
2742am_make=${MAKE-make}
2743cat > confinc << 'END'
2744am__doit:
2745	@echo this is the am__doit target
2746.PHONY: am__doit
2747END
2748# If we don't find an include directive, just comment out the code.
2749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2750$as_echo_n "checking for style of include used by $am_make... " >&6; }
2751am__include="#"
2752am__quote=
2753_am_result=none
2754# First try GNU make style include.
2755echo "include confinc" > confmf
2756# Ignore all kinds of additional output from `make'.
2757case `$am_make -s -f confmf 2> /dev/null` in #(
2758*the\ am__doit\ target*)
2759  am__include=include
2760  am__quote=
2761  _am_result=GNU
2762  ;;
2763esac
2764# Now try BSD make style include.
2765if test "$am__include" = "#"; then
2766   echo '.include "confinc"' > confmf
2767   case `$am_make -s -f confmf 2> /dev/null` in #(
2768   *the\ am__doit\ target*)
2769     am__include=.include
2770     am__quote="\""
2771     _am_result=BSD
2772     ;;
2773   esac
2774fi
2775
2776
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2778$as_echo "$_am_result" >&6; }
2779rm -f confinc confmf
2780
2781# Check whether --enable-dependency-tracking was given.
2782if test "${enable_dependency_tracking+set}" = set; then :
2783  enableval=$enable_dependency_tracking;
2784fi
2785
2786if test "x$enable_dependency_tracking" != xno; then
2787  am_depcomp="$ac_aux_dir/depcomp"
2788  AMDEPBACKSLASH='\'
2789fi
2790 if test "x$enable_dependency_tracking" != xno; then
2791  AMDEP_TRUE=
2792  AMDEP_FALSE='#'
2793else
2794  AMDEP_TRUE='#'
2795  AMDEP_FALSE=
2796fi
2797
2798
2799ac_ext=c
2800ac_cpp='$CPP $CPPFLAGS'
2801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804if test -n "$ac_tool_prefix"; then
2805  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2806set dummy ${ac_tool_prefix}gcc; ac_word=$2
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808$as_echo_n "checking for $ac_word... " >&6; }
2809if ${ac_cv_prog_CC+:} false; then :
2810  $as_echo_n "(cached) " >&6
2811else
2812  if test -n "$CC"; then
2813  ac_cv_prog_CC="$CC" # Let the user override the test.
2814else
2815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816for as_dir in $PATH
2817do
2818  IFS=$as_save_IFS
2819  test -z "$as_dir" && as_dir=.
2820    for ac_exec_ext in '' $ac_executable_extensions; do
2821  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824    break 2
2825  fi
2826done
2827  done
2828IFS=$as_save_IFS
2829
2830fi
2831fi
2832CC=$ac_cv_prog_CC
2833if test -n "$CC"; then
2834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2835$as_echo "$CC" >&6; }
2836else
2837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838$as_echo "no" >&6; }
2839fi
2840
2841
2842fi
2843if test -z "$ac_cv_prog_CC"; then
2844  ac_ct_CC=$CC
2845  # Extract the first word of "gcc", so it can be a program name with args.
2846set dummy gcc; ac_word=$2
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848$as_echo_n "checking for $ac_word... " >&6; }
2849if ${ac_cv_prog_ac_ct_CC+:} false; then :
2850  $as_echo_n "(cached) " >&6
2851else
2852  if test -n "$ac_ct_CC"; then
2853  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2854else
2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH
2857do
2858  IFS=$as_save_IFS
2859  test -z "$as_dir" && as_dir=.
2860    for ac_exec_ext in '' $ac_executable_extensions; do
2861  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862    ac_cv_prog_ac_ct_CC="gcc"
2863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864    break 2
2865  fi
2866done
2867  done
2868IFS=$as_save_IFS
2869
2870fi
2871fi
2872ac_ct_CC=$ac_cv_prog_ac_ct_CC
2873if test -n "$ac_ct_CC"; then
2874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2875$as_echo "$ac_ct_CC" >&6; }
2876else
2877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878$as_echo "no" >&6; }
2879fi
2880
2881  if test "x$ac_ct_CC" = x; then
2882    CC=""
2883  else
2884    case $cross_compiling:$ac_tool_warned in
2885yes:)
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2888ac_tool_warned=yes ;;
2889esac
2890    CC=$ac_ct_CC
2891  fi
2892else
2893  CC="$ac_cv_prog_CC"
2894fi
2895
2896if test -z "$CC"; then
2897          if test -n "$ac_tool_prefix"; then
2898    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2899set dummy ${ac_tool_prefix}cc; ac_word=$2
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901$as_echo_n "checking for $ac_word... " >&6; }
2902if ${ac_cv_prog_CC+:} false; then :
2903  $as_echo_n "(cached) " >&6
2904else
2905  if test -n "$CC"; then
2906  ac_cv_prog_CC="$CC" # Let the user override the test.
2907else
2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909for as_dir in $PATH
2910do
2911  IFS=$as_save_IFS
2912  test -z "$as_dir" && as_dir=.
2913    for ac_exec_ext in '' $ac_executable_extensions; do
2914  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2915    ac_cv_prog_CC="${ac_tool_prefix}cc"
2916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917    break 2
2918  fi
2919done
2920  done
2921IFS=$as_save_IFS
2922
2923fi
2924fi
2925CC=$ac_cv_prog_CC
2926if test -n "$CC"; then
2927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2928$as_echo "$CC" >&6; }
2929else
2930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931$as_echo "no" >&6; }
2932fi
2933
2934
2935  fi
2936fi
2937if test -z "$CC"; then
2938  # Extract the first word of "cc", so it can be a program name with args.
2939set dummy cc; ac_word=$2
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941$as_echo_n "checking for $ac_word... " >&6; }
2942if ${ac_cv_prog_CC+:} false; then :
2943  $as_echo_n "(cached) " >&6
2944else
2945  if test -n "$CC"; then
2946  ac_cv_prog_CC="$CC" # Let the user override the test.
2947else
2948  ac_prog_rejected=no
2949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950for as_dir in $PATH
2951do
2952  IFS=$as_save_IFS
2953  test -z "$as_dir" && as_dir=.
2954    for ac_exec_ext in '' $ac_executable_extensions; do
2955  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2957       ac_prog_rejected=yes
2958       continue
2959     fi
2960    ac_cv_prog_CC="cc"
2961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962    break 2
2963  fi
2964done
2965  done
2966IFS=$as_save_IFS
2967
2968if test $ac_prog_rejected = yes; then
2969  # We found a bogon in the path, so make sure we never use it.
2970  set dummy $ac_cv_prog_CC
2971  shift
2972  if test $# != 0; then
2973    # We chose a different compiler from the bogus one.
2974    # However, it has the same basename, so the bogon will be chosen
2975    # first if we set CC to just the basename; use the full file name.
2976    shift
2977    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2978  fi
2979fi
2980fi
2981fi
2982CC=$ac_cv_prog_CC
2983if test -n "$CC"; then
2984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2985$as_echo "$CC" >&6; }
2986else
2987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988$as_echo "no" >&6; }
2989fi
2990
2991
2992fi
2993if test -z "$CC"; then
2994  if test -n "$ac_tool_prefix"; then
2995  for ac_prog in cl.exe
2996  do
2997    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2998set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000$as_echo_n "checking for $ac_word... " >&6; }
3001if ${ac_cv_prog_CC+:} false; then :
3002  $as_echo_n "(cached) " >&6
3003else
3004  if test -n "$CC"; then
3005  ac_cv_prog_CC="$CC" # Let the user override the test.
3006else
3007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008for as_dir in $PATH
3009do
3010  IFS=$as_save_IFS
3011  test -z "$as_dir" && as_dir=.
3012    for ac_exec_ext in '' $ac_executable_extensions; do
3013  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3015    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016    break 2
3017  fi
3018done
3019  done
3020IFS=$as_save_IFS
3021
3022fi
3023fi
3024CC=$ac_cv_prog_CC
3025if test -n "$CC"; then
3026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3027$as_echo "$CC" >&6; }
3028else
3029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030$as_echo "no" >&6; }
3031fi
3032
3033
3034    test -n "$CC" && break
3035  done
3036fi
3037if test -z "$CC"; then
3038  ac_ct_CC=$CC
3039  for ac_prog in cl.exe
3040do
3041  # Extract the first word of "$ac_prog", so it can be a program name with args.
3042set dummy $ac_prog; ac_word=$2
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044$as_echo_n "checking for $ac_word... " >&6; }
3045if ${ac_cv_prog_ac_ct_CC+:} false; then :
3046  $as_echo_n "(cached) " >&6
3047else
3048  if test -n "$ac_ct_CC"; then
3049  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3050else
3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052for as_dir in $PATH
3053do
3054  IFS=$as_save_IFS
3055  test -z "$as_dir" && as_dir=.
3056    for ac_exec_ext in '' $ac_executable_extensions; do
3057  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058    ac_cv_prog_ac_ct_CC="$ac_prog"
3059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060    break 2
3061  fi
3062done
3063  done
3064IFS=$as_save_IFS
3065
3066fi
3067fi
3068ac_ct_CC=$ac_cv_prog_ac_ct_CC
3069if test -n "$ac_ct_CC"; then
3070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3071$as_echo "$ac_ct_CC" >&6; }
3072else
3073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074$as_echo "no" >&6; }
3075fi
3076
3077
3078  test -n "$ac_ct_CC" && break
3079done
3080
3081  if test "x$ac_ct_CC" = x; then
3082    CC=""
3083  else
3084    case $cross_compiling:$ac_tool_warned in
3085yes:)
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3088ac_tool_warned=yes ;;
3089esac
3090    CC=$ac_ct_CC
3091  fi
3092fi
3093
3094fi
3095
3096
3097test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3099as_fn_error $? "no acceptable C compiler found in \$PATH
3100See \`config.log' for more details" "$LINENO" 5; }
3101
3102# Provide some information about the compiler.
3103$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3104set X $ac_compile
3105ac_compiler=$2
3106for ac_option in --version -v -V -qversion; do
3107  { { ac_try="$ac_compiler $ac_option >&5"
3108case "(($ac_try" in
3109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110  *) ac_try_echo=$ac_try;;
3111esac
3112eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113$as_echo "$ac_try_echo"; } >&5
3114  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3115  ac_status=$?
3116  if test -s conftest.err; then
3117    sed '10a\
3118... rest of stderr output deleted ...
3119         10q' conftest.err >conftest.er1
3120    cat conftest.er1 >&5
3121  fi
3122  rm -f conftest.er1 conftest.err
3123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3124  test $ac_status = 0; }
3125done
3126
3127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3128/* end confdefs.h.  */
3129
3130int
3131main ()
3132{
3133
3134  ;
3135  return 0;
3136}
3137_ACEOF
3138ac_clean_files_save=$ac_clean_files
3139ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3140# Try to create an executable without -o first, disregard a.out.
3141# It will help us diagnose broken compilers, and finding out an intuition
3142# of exeext.
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3144$as_echo_n "checking whether the C compiler works... " >&6; }
3145ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3146
3147# The possible output files:
3148ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3149
3150ac_rmfiles=
3151for ac_file in $ac_files
3152do
3153  case $ac_file in
3154    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3155    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3156  esac
3157done
3158rm -f $ac_rmfiles
3159
3160if { { ac_try="$ac_link_default"
3161case "(($ac_try" in
3162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163  *) ac_try_echo=$ac_try;;
3164esac
3165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3166$as_echo "$ac_try_echo"; } >&5
3167  (eval "$ac_link_default") 2>&5
3168  ac_status=$?
3169  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170  test $ac_status = 0; }; then :
3171  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3172# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3173# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3174# so that the user can short-circuit this test for compilers unknown to
3175# Autoconf.
3176for ac_file in $ac_files ''
3177do
3178  test -f "$ac_file" || continue
3179  case $ac_file in
3180    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3181	;;
3182    [ab].out )
3183	# We found the default executable, but exeext='' is most
3184	# certainly right.
3185	break;;
3186    *.* )
3187	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3188	then :; else
3189	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3190	fi
3191	# We set ac_cv_exeext here because the later test for it is not
3192	# safe: cross compilers may not add the suffix if given an `-o'
3193	# argument, so we may need to know it at that point already.
3194	# Even if this section looks crufty: it has the advantage of
3195	# actually working.
3196	break;;
3197    * )
3198	break;;
3199  esac
3200done
3201test "$ac_cv_exeext" = no && ac_cv_exeext=
3202
3203else
3204  ac_file=''
3205fi
3206if test -z "$ac_file"; then :
3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208$as_echo "no" >&6; }
3209$as_echo "$as_me: failed program was:" >&5
3210sed 's/^/| /' conftest.$ac_ext >&5
3211
3212{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214as_fn_error 77 "C compiler cannot create executables
3215See \`config.log' for more details" "$LINENO" 5; }
3216else
3217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3218$as_echo "yes" >&6; }
3219fi
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3221$as_echo_n "checking for C compiler default output file name... " >&6; }
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3223$as_echo "$ac_file" >&6; }
3224ac_exeext=$ac_cv_exeext
3225
3226rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3227ac_clean_files=$ac_clean_files_save
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3229$as_echo_n "checking for suffix of executables... " >&6; }
3230if { { ac_try="$ac_link"
3231case "(($ac_try" in
3232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233  *) ac_try_echo=$ac_try;;
3234esac
3235eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236$as_echo "$ac_try_echo"; } >&5
3237  (eval "$ac_link") 2>&5
3238  ac_status=$?
3239  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240  test $ac_status = 0; }; then :
3241  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3242# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3243# work properly (i.e., refer to `conftest.exe'), while it won't with
3244# `rm'.
3245for ac_file in conftest.exe conftest conftest.*; do
3246  test -f "$ac_file" || continue
3247  case $ac_file in
3248    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3249    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3250	  break;;
3251    * ) break;;
3252  esac
3253done
3254else
3255  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3258See \`config.log' for more details" "$LINENO" 5; }
3259fi
3260rm -f conftest conftest$ac_cv_exeext
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3262$as_echo "$ac_cv_exeext" >&6; }
3263
3264rm -f conftest.$ac_ext
3265EXEEXT=$ac_cv_exeext
3266ac_exeext=$EXEEXT
3267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268/* end confdefs.h.  */
3269#include <stdio.h>
3270int
3271main ()
3272{
3273FILE *f = fopen ("conftest.out", "w");
3274 return ferror (f) || fclose (f) != 0;
3275
3276  ;
3277  return 0;
3278}
3279_ACEOF
3280ac_clean_files="$ac_clean_files conftest.out"
3281# Check that the compiler produces executables we can run.  If not, either
3282# the compiler is broken, or we cross compile.
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3284$as_echo_n "checking whether we are cross compiling... " >&6; }
3285if test "$cross_compiling" != yes; then
3286  { { ac_try="$ac_link"
3287case "(($ac_try" in
3288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289  *) ac_try_echo=$ac_try;;
3290esac
3291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292$as_echo "$ac_try_echo"; } >&5
3293  (eval "$ac_link") 2>&5
3294  ac_status=$?
3295  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296  test $ac_status = 0; }
3297  if { ac_try='./conftest$ac_cv_exeext'
3298  { { case "(($ac_try" in
3299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300  *) ac_try_echo=$ac_try;;
3301esac
3302eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303$as_echo "$ac_try_echo"; } >&5
3304  (eval "$ac_try") 2>&5
3305  ac_status=$?
3306  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307  test $ac_status = 0; }; }; then
3308    cross_compiling=no
3309  else
3310    if test "$cross_compiling" = maybe; then
3311	cross_compiling=yes
3312    else
3313	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315as_fn_error $? "cannot run C compiled programs.
3316If you meant to cross compile, use \`--host'.
3317See \`config.log' for more details" "$LINENO" 5; }
3318    fi
3319  fi
3320fi
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3322$as_echo "$cross_compiling" >&6; }
3323
3324rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3325ac_clean_files=$ac_clean_files_save
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3327$as_echo_n "checking for suffix of object files... " >&6; }
3328if ${ac_cv_objext+:} false; then :
3329  $as_echo_n "(cached) " >&6
3330else
3331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332/* end confdefs.h.  */
3333
3334int
3335main ()
3336{
3337
3338  ;
3339  return 0;
3340}
3341_ACEOF
3342rm -f conftest.o conftest.obj
3343if { { ac_try="$ac_compile"
3344case "(($ac_try" in
3345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346  *) ac_try_echo=$ac_try;;
3347esac
3348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349$as_echo "$ac_try_echo"; } >&5
3350  (eval "$ac_compile") 2>&5
3351  ac_status=$?
3352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353  test $ac_status = 0; }; then :
3354  for ac_file in conftest.o conftest.obj conftest.*; do
3355  test -f "$ac_file" || continue;
3356  case $ac_file in
3357    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3358    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3359       break;;
3360  esac
3361done
3362else
3363  $as_echo "$as_me: failed program was:" >&5
3364sed 's/^/| /' conftest.$ac_ext >&5
3365
3366{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368as_fn_error $? "cannot compute suffix of object files: cannot compile
3369See \`config.log' for more details" "$LINENO" 5; }
3370fi
3371rm -f conftest.$ac_cv_objext conftest.$ac_ext
3372fi
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3374$as_echo "$ac_cv_objext" >&6; }
3375OBJEXT=$ac_cv_objext
3376ac_objext=$OBJEXT
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3378$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3379if ${ac_cv_c_compiler_gnu+:} false; then :
3380  $as_echo_n "(cached) " >&6
3381else
3382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383/* end confdefs.h.  */
3384
3385int
3386main ()
3387{
3388#ifndef __GNUC__
3389       choke me
3390#endif
3391
3392  ;
3393  return 0;
3394}
3395_ACEOF
3396if ac_fn_c_try_compile "$LINENO"; then :
3397  ac_compiler_gnu=yes
3398else
3399  ac_compiler_gnu=no
3400fi
3401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402ac_cv_c_compiler_gnu=$ac_compiler_gnu
3403
3404fi
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3406$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3407if test $ac_compiler_gnu = yes; then
3408  GCC=yes
3409else
3410  GCC=
3411fi
3412ac_test_CFLAGS=${CFLAGS+set}
3413ac_save_CFLAGS=$CFLAGS
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3415$as_echo_n "checking whether $CC accepts -g... " >&6; }
3416if ${ac_cv_prog_cc_g+:} false; then :
3417  $as_echo_n "(cached) " >&6
3418else
3419  ac_save_c_werror_flag=$ac_c_werror_flag
3420   ac_c_werror_flag=yes
3421   ac_cv_prog_cc_g=no
3422   CFLAGS="-g"
3423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424/* end confdefs.h.  */
3425
3426int
3427main ()
3428{
3429
3430  ;
3431  return 0;
3432}
3433_ACEOF
3434if ac_fn_c_try_compile "$LINENO"; then :
3435  ac_cv_prog_cc_g=yes
3436else
3437  CFLAGS=""
3438      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439/* end confdefs.h.  */
3440
3441int
3442main ()
3443{
3444
3445  ;
3446  return 0;
3447}
3448_ACEOF
3449if ac_fn_c_try_compile "$LINENO"; then :
3450
3451else
3452  ac_c_werror_flag=$ac_save_c_werror_flag
3453	 CFLAGS="-g"
3454	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455/* end confdefs.h.  */
3456
3457int
3458main ()
3459{
3460
3461  ;
3462  return 0;
3463}
3464_ACEOF
3465if ac_fn_c_try_compile "$LINENO"; then :
3466  ac_cv_prog_cc_g=yes
3467fi
3468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469fi
3470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471fi
3472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473   ac_c_werror_flag=$ac_save_c_werror_flag
3474fi
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3476$as_echo "$ac_cv_prog_cc_g" >&6; }
3477if test "$ac_test_CFLAGS" = set; then
3478  CFLAGS=$ac_save_CFLAGS
3479elif test $ac_cv_prog_cc_g = yes; then
3480  if test "$GCC" = yes; then
3481    CFLAGS="-g -O2"
3482  else
3483    CFLAGS="-g"
3484  fi
3485else
3486  if test "$GCC" = yes; then
3487    CFLAGS="-O2"
3488  else
3489    CFLAGS=
3490  fi
3491fi
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3493$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3494if ${ac_cv_prog_cc_c89+:} false; then :
3495  $as_echo_n "(cached) " >&6
3496else
3497  ac_cv_prog_cc_c89=no
3498ac_save_CC=$CC
3499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500/* end confdefs.h.  */
3501#include <stdarg.h>
3502#include <stdio.h>
3503#include <sys/types.h>
3504#include <sys/stat.h>
3505/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3506struct buf { int x; };
3507FILE * (*rcsopen) (struct buf *, struct stat *, int);
3508static char *e (p, i)
3509     char **p;
3510     int i;
3511{
3512  return p[i];
3513}
3514static char *f (char * (*g) (char **, int), char **p, ...)
3515{
3516  char *s;
3517  va_list v;
3518  va_start (v,p);
3519  s = g (p, va_arg (v,int));
3520  va_end (v);
3521  return s;
3522}
3523
3524/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3525   function prototypes and stuff, but not '\xHH' hex character constants.
3526   These don't provoke an error unfortunately, instead are silently treated
3527   as 'x'.  The following induces an error, until -std is added to get
3528   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3529   array size at least.  It's necessary to write '\x00'==0 to get something
3530   that's true only with -std.  */
3531int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3532
3533/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3534   inside strings and character constants.  */
3535#define FOO(x) 'x'
3536int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3537
3538int test (int i, double x);
3539struct s1 {int (*f) (int a);};
3540struct s2 {int (*f) (double a);};
3541int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3542int argc;
3543char **argv;
3544int
3545main ()
3546{
3547return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3548  ;
3549  return 0;
3550}
3551_ACEOF
3552for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3553	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3554do
3555  CC="$ac_save_CC $ac_arg"
3556  if ac_fn_c_try_compile "$LINENO"; then :
3557  ac_cv_prog_cc_c89=$ac_arg
3558fi
3559rm -f core conftest.err conftest.$ac_objext
3560  test "x$ac_cv_prog_cc_c89" != "xno" && break
3561done
3562rm -f conftest.$ac_ext
3563CC=$ac_save_CC
3564
3565fi
3566# AC_CACHE_VAL
3567case "x$ac_cv_prog_cc_c89" in
3568  x)
3569    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3570$as_echo "none needed" >&6; } ;;
3571  xno)
3572    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3573$as_echo "unsupported" >&6; } ;;
3574  *)
3575    CC="$CC $ac_cv_prog_cc_c89"
3576    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3577$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3578esac
3579if test "x$ac_cv_prog_cc_c89" != xno; then :
3580
3581fi
3582
3583ac_ext=c
3584ac_cpp='$CPP $CPPFLAGS'
3585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3587ac_compiler_gnu=$ac_cv_c_compiler_gnu
3588
3589depcc="$CC"   am_compiler_list=
3590
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3592$as_echo_n "checking dependency style of $depcc... " >&6; }
3593if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3594  $as_echo_n "(cached) " >&6
3595else
3596  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3597  # We make a subdir and do the tests there.  Otherwise we can end up
3598  # making bogus files that we don't know about and never remove.  For
3599  # instance it was reported that on HP-UX the gcc test will end up
3600  # making a dummy file named `D' -- because `-MD' means `put the output
3601  # in D'.
3602  mkdir conftest.dir
3603  # Copy depcomp to subdir because otherwise we won't find it if we're
3604  # using a relative directory.
3605  cp "$am_depcomp" conftest.dir
3606  cd conftest.dir
3607  # We will build objects and dependencies in a subdirectory because
3608  # it helps to detect inapplicable dependency modes.  For instance
3609  # both Tru64's cc and ICC support -MD to output dependencies as a
3610  # side effect of compilation, but ICC will put the dependencies in
3611  # the current directory while Tru64 will put them in the object
3612  # directory.
3613  mkdir sub
3614
3615  am_cv_CC_dependencies_compiler_type=none
3616  if test "$am_compiler_list" = ""; then
3617     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3618  fi
3619  am__universal=false
3620  case " $depcc " in #(
3621     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3622     esac
3623
3624  for depmode in $am_compiler_list; do
3625    # Setup a source with many dependencies, because some compilers
3626    # like to wrap large dependency lists on column 80 (with \), and
3627    # we should not choose a depcomp mode which is confused by this.
3628    #
3629    # We need to recreate these files for each test, as the compiler may
3630    # overwrite some of them when testing with obscure command lines.
3631    # This happens at least with the AIX C compiler.
3632    : > sub/conftest.c
3633    for i in 1 2 3 4 5 6; do
3634      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3635      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3636      # Solaris 8's {/usr,}/bin/sh.
3637      touch sub/conftst$i.h
3638    done
3639    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3640
3641    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3642    # mode.  It turns out that the SunPro C++ compiler does not properly
3643    # handle `-M -o', and we need to detect this.  Also, some Intel
3644    # versions had trouble with output in subdirs
3645    am__obj=sub/conftest.${OBJEXT-o}
3646    am__minus_obj="-o $am__obj"
3647    case $depmode in
3648    gcc)
3649      # This depmode causes a compiler race in universal mode.
3650      test "$am__universal" = false || continue
3651      ;;
3652    nosideeffect)
3653      # after this tag, mechanisms are not by side-effect, so they'll
3654      # only be used when explicitly requested
3655      if test "x$enable_dependency_tracking" = xyes; then
3656	continue
3657      else
3658	break
3659      fi
3660      ;;
3661    msvisualcpp | msvcmsys)
3662      # This compiler won't grok `-c -o', but also, the minuso test has
3663      # not run yet.  These depmodes are late enough in the game, and
3664      # so weak that their functioning should not be impacted.
3665      am__obj=conftest.${OBJEXT-o}
3666      am__minus_obj=
3667      ;;
3668    none) break ;;
3669    esac
3670    if depmode=$depmode \
3671       source=sub/conftest.c object=$am__obj \
3672       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3673       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3674         >/dev/null 2>conftest.err &&
3675       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3676       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3677       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3678       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3679      # icc doesn't choke on unknown options, it will just issue warnings
3680      # or remarks (even with -Werror).  So we grep stderr for any message
3681      # that says an option was ignored or not supported.
3682      # When given -MP, icc 7.0 and 7.1 complain thusly:
3683      #   icc: Command line warning: ignoring option '-M'; no argument required
3684      # The diagnosis changed in icc 8.0:
3685      #   icc: Command line remark: option '-MP' not supported
3686      if (grep 'ignoring option' conftest.err ||
3687          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3688        am_cv_CC_dependencies_compiler_type=$depmode
3689        break
3690      fi
3691    fi
3692  done
3693
3694  cd ..
3695  rm -rf conftest.dir
3696else
3697  am_cv_CC_dependencies_compiler_type=none
3698fi
3699
3700fi
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3702$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3703CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3704
3705 if
3706  test "x$enable_dependency_tracking" != xno \
3707  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3708  am__fastdepCC_TRUE=
3709  am__fastdepCC_FALSE='#'
3710else
3711  am__fastdepCC_TRUE='#'
3712  am__fastdepCC_FALSE=
3713fi
3714
3715
3716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3717$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3718if ${ac_cv_prog_cc_c99+:} false; then :
3719  $as_echo_n "(cached) " >&6
3720else
3721  ac_cv_prog_cc_c99=no
3722ac_save_CC=$CC
3723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724/* end confdefs.h.  */
3725#include <stdarg.h>
3726#include <stdbool.h>
3727#include <stdlib.h>
3728#include <wchar.h>
3729#include <stdio.h>
3730
3731// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3732#define debug(...) fprintf (stderr, __VA_ARGS__)
3733#define showlist(...) puts (#__VA_ARGS__)
3734#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3735static void
3736test_varargs_macros (void)
3737{
3738  int x = 1234;
3739  int y = 5678;
3740  debug ("Flag");
3741  debug ("X = %d\n", x);
3742  showlist (The first, second, and third items.);
3743  report (x>y, "x is %d but y is %d", x, y);
3744}
3745
3746// Check long long types.
3747#define BIG64 18446744073709551615ull
3748#define BIG32 4294967295ul
3749#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3750#if !BIG_OK
3751  your preprocessor is broken;
3752#endif
3753#if BIG_OK
3754#else
3755  your preprocessor is broken;
3756#endif
3757static long long int bignum = -9223372036854775807LL;
3758static unsigned long long int ubignum = BIG64;
3759
3760struct incomplete_array
3761{
3762  int datasize;
3763  double data[];
3764};
3765
3766struct named_init {
3767  int number;
3768  const wchar_t *name;
3769  double average;
3770};
3771
3772typedef const char *ccp;
3773
3774static inline int
3775test_restrict (ccp restrict text)
3776{
3777  // See if C++-style comments work.
3778  // Iterate through items via the restricted pointer.
3779  // Also check for declarations in for loops.
3780  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3781    continue;
3782  return 0;
3783}
3784
3785// Check varargs and va_copy.
3786static void
3787test_varargs (const char *format, ...)
3788{
3789  va_list args;
3790  va_start (args, format);
3791  va_list args_copy;
3792  va_copy (args_copy, args);
3793
3794  const char *str;
3795  int number;
3796  float fnumber;
3797
3798  while (*format)
3799    {
3800      switch (*format++)
3801	{
3802	case 's': // string
3803	  str = va_arg (args_copy, const char *);
3804	  break;
3805	case 'd': // int
3806	  number = va_arg (args_copy, int);
3807	  break;
3808	case 'f': // float
3809	  fnumber = va_arg (args_copy, double);
3810	  break;
3811	default:
3812	  break;
3813	}
3814    }
3815  va_end (args_copy);
3816  va_end (args);
3817}
3818
3819int
3820main ()
3821{
3822
3823  // Check bool.
3824  _Bool success = false;
3825
3826  // Check restrict.
3827  if (test_restrict ("String literal") == 0)
3828    success = true;
3829  char *restrict newvar = "Another string";
3830
3831  // Check varargs.
3832  test_varargs ("s, d' f .", "string", 65, 34.234);
3833  test_varargs_macros ();
3834
3835  // Check flexible array members.
3836  struct incomplete_array *ia =
3837    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3838  ia->datasize = 10;
3839  for (int i = 0; i < ia->datasize; ++i)
3840    ia->data[i] = i * 1.234;
3841
3842  // Check named initializers.
3843  struct named_init ni = {
3844    .number = 34,
3845    .name = L"Test wide string",
3846    .average = 543.34343,
3847  };
3848
3849  ni.number = 58;
3850
3851  int dynamic_array[ni.number];
3852  dynamic_array[ni.number - 1] = 543;
3853
3854  // work around unused variable warnings
3855  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3856	  || dynamic_array[ni.number - 1] != 543);
3857
3858  ;
3859  return 0;
3860}
3861_ACEOF
3862for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3863do
3864  CC="$ac_save_CC $ac_arg"
3865  if ac_fn_c_try_compile "$LINENO"; then :
3866  ac_cv_prog_cc_c99=$ac_arg
3867fi
3868rm -f core conftest.err conftest.$ac_objext
3869  test "x$ac_cv_prog_cc_c99" != "xno" && break
3870done
3871rm -f conftest.$ac_ext
3872CC=$ac_save_CC
3873
3874fi
3875# AC_CACHE_VAL
3876case "x$ac_cv_prog_cc_c99" in
3877  x)
3878    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3879$as_echo "none needed" >&6; } ;;
3880  xno)
3881    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3882$as_echo "unsupported" >&6; } ;;
3883  *)
3884    CC="$CC $ac_cv_prog_cc_c99"
3885    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3886$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3887esac
3888if test "x$ac_cv_prog_cc_c99" != xno; then :
3889
3890fi
3891
3892
3893
3894ac_ext=c
3895ac_cpp='$CPP $CPPFLAGS'
3896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3900$as_echo_n "checking how to run the C preprocessor... " >&6; }
3901# On Suns, sometimes $CPP names a directory.
3902if test -n "$CPP" && test -d "$CPP"; then
3903  CPP=
3904fi
3905if test -z "$CPP"; then
3906  if ${ac_cv_prog_CPP+:} false; then :
3907  $as_echo_n "(cached) " >&6
3908else
3909      # Double quotes because CPP needs to be expanded
3910    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3911    do
3912      ac_preproc_ok=false
3913for ac_c_preproc_warn_flag in '' yes
3914do
3915  # Use a header file that comes with gcc, so configuring glibc
3916  # with a fresh cross-compiler works.
3917  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3918  # <limits.h> exists even on freestanding compilers.
3919  # On the NeXT, cc -E runs the code through the compiler's parser,
3920  # not just through cpp. "Syntax error" is here to catch this case.
3921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922/* end confdefs.h.  */
3923#ifdef __STDC__
3924# include <limits.h>
3925#else
3926# include <assert.h>
3927#endif
3928		     Syntax error
3929_ACEOF
3930if ac_fn_c_try_cpp "$LINENO"; then :
3931
3932else
3933  # Broken: fails on valid input.
3934continue
3935fi
3936rm -f conftest.err conftest.i conftest.$ac_ext
3937
3938  # OK, works on sane cases.  Now check whether nonexistent headers
3939  # can be detected and how.
3940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941/* end confdefs.h.  */
3942#include <ac_nonexistent.h>
3943_ACEOF
3944if ac_fn_c_try_cpp "$LINENO"; then :
3945  # Broken: success on invalid input.
3946continue
3947else
3948  # Passes both tests.
3949ac_preproc_ok=:
3950break
3951fi
3952rm -f conftest.err conftest.i conftest.$ac_ext
3953
3954done
3955# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3956rm -f conftest.i conftest.err conftest.$ac_ext
3957if $ac_preproc_ok; then :
3958  break
3959fi
3960
3961    done
3962    ac_cv_prog_CPP=$CPP
3963
3964fi
3965  CPP=$ac_cv_prog_CPP
3966else
3967  ac_cv_prog_CPP=$CPP
3968fi
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3970$as_echo "$CPP" >&6; }
3971ac_preproc_ok=false
3972for ac_c_preproc_warn_flag in '' yes
3973do
3974  # Use a header file that comes with gcc, so configuring glibc
3975  # with a fresh cross-compiler works.
3976  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3977  # <limits.h> exists even on freestanding compilers.
3978  # On the NeXT, cc -E runs the code through the compiler's parser,
3979  # not just through cpp. "Syntax error" is here to catch this case.
3980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981/* end confdefs.h.  */
3982#ifdef __STDC__
3983# include <limits.h>
3984#else
3985# include <assert.h>
3986#endif
3987		     Syntax error
3988_ACEOF
3989if ac_fn_c_try_cpp "$LINENO"; then :
3990
3991else
3992  # Broken: fails on valid input.
3993continue
3994fi
3995rm -f conftest.err conftest.i conftest.$ac_ext
3996
3997  # OK, works on sane cases.  Now check whether nonexistent headers
3998  # can be detected and how.
3999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000/* end confdefs.h.  */
4001#include <ac_nonexistent.h>
4002_ACEOF
4003if ac_fn_c_try_cpp "$LINENO"; then :
4004  # Broken: success on invalid input.
4005continue
4006else
4007  # Passes both tests.
4008ac_preproc_ok=:
4009break
4010fi
4011rm -f conftest.err conftest.i conftest.$ac_ext
4012
4013done
4014# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4015rm -f conftest.i conftest.err conftest.$ac_ext
4016if $ac_preproc_ok; then :
4017
4018else
4019  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4022See \`config.log' for more details" "$LINENO" 5; }
4023fi
4024
4025ac_ext=c
4026ac_cpp='$CPP $CPPFLAGS'
4027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4029ac_compiler_gnu=$ac_cv_c_compiler_gnu
4030
4031
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4033$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4034if ${ac_cv_path_GREP+:} false; then :
4035  $as_echo_n "(cached) " >&6
4036else
4037  if test -z "$GREP"; then
4038  ac_path_GREP_found=false
4039  # Loop through the user's path and test for each of PROGNAME-LIST
4040  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4042do
4043  IFS=$as_save_IFS
4044  test -z "$as_dir" && as_dir=.
4045    for ac_prog in grep ggrep; do
4046    for ac_exec_ext in '' $ac_executable_extensions; do
4047      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4048      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4049# Check for GNU ac_path_GREP and select it if it is found.
4050  # Check for GNU $ac_path_GREP
4051case `"$ac_path_GREP" --version 2>&1` in
4052*GNU*)
4053  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4054*)
4055  ac_count=0
4056  $as_echo_n 0123456789 >"conftest.in"
4057  while :
4058  do
4059    cat "conftest.in" "conftest.in" >"conftest.tmp"
4060    mv "conftest.tmp" "conftest.in"
4061    cp "conftest.in" "conftest.nl"
4062    $as_echo 'GREP' >> "conftest.nl"
4063    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4064    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4065    as_fn_arith $ac_count + 1 && ac_count=$as_val
4066    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4067      # Best one so far, save it but keep looking for a better one
4068      ac_cv_path_GREP="$ac_path_GREP"
4069      ac_path_GREP_max=$ac_count
4070    fi
4071    # 10*(2^10) chars as input seems more than enough
4072    test $ac_count -gt 10 && break
4073  done
4074  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4075esac
4076
4077      $ac_path_GREP_found && break 3
4078    done
4079  done
4080  done
4081IFS=$as_save_IFS
4082  if test -z "$ac_cv_path_GREP"; then
4083    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4084  fi
4085else
4086  ac_cv_path_GREP=$GREP
4087fi
4088
4089fi
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4091$as_echo "$ac_cv_path_GREP" >&6; }
4092 GREP="$ac_cv_path_GREP"
4093
4094
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4096$as_echo_n "checking for egrep... " >&6; }
4097if ${ac_cv_path_EGREP+:} false; then :
4098  $as_echo_n "(cached) " >&6
4099else
4100  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4101   then ac_cv_path_EGREP="$GREP -E"
4102   else
4103     if test -z "$EGREP"; then
4104  ac_path_EGREP_found=false
4105  # Loop through the user's path and test for each of PROGNAME-LIST
4106  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4108do
4109  IFS=$as_save_IFS
4110  test -z "$as_dir" && as_dir=.
4111    for ac_prog in egrep; do
4112    for ac_exec_ext in '' $ac_executable_extensions; do
4113      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4114      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4115# Check for GNU ac_path_EGREP and select it if it is found.
4116  # Check for GNU $ac_path_EGREP
4117case `"$ac_path_EGREP" --version 2>&1` in
4118*GNU*)
4119  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4120*)
4121  ac_count=0
4122  $as_echo_n 0123456789 >"conftest.in"
4123  while :
4124  do
4125    cat "conftest.in" "conftest.in" >"conftest.tmp"
4126    mv "conftest.tmp" "conftest.in"
4127    cp "conftest.in" "conftest.nl"
4128    $as_echo 'EGREP' >> "conftest.nl"
4129    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4130    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4131    as_fn_arith $ac_count + 1 && ac_count=$as_val
4132    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4133      # Best one so far, save it but keep looking for a better one
4134      ac_cv_path_EGREP="$ac_path_EGREP"
4135      ac_path_EGREP_max=$ac_count
4136    fi
4137    # 10*(2^10) chars as input seems more than enough
4138    test $ac_count -gt 10 && break
4139  done
4140  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4141esac
4142
4143      $ac_path_EGREP_found && break 3
4144    done
4145  done
4146  done
4147IFS=$as_save_IFS
4148  if test -z "$ac_cv_path_EGREP"; then
4149    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4150  fi
4151else
4152  ac_cv_path_EGREP=$EGREP
4153fi
4154
4155   fi
4156fi
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4158$as_echo "$ac_cv_path_EGREP" >&6; }
4159 EGREP="$ac_cv_path_EGREP"
4160
4161
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4163$as_echo_n "checking for ANSI C header files... " >&6; }
4164if ${ac_cv_header_stdc+:} false; then :
4165  $as_echo_n "(cached) " >&6
4166else
4167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168/* end confdefs.h.  */
4169#include <stdlib.h>
4170#include <stdarg.h>
4171#include <string.h>
4172#include <float.h>
4173
4174int
4175main ()
4176{
4177
4178  ;
4179  return 0;
4180}
4181_ACEOF
4182if ac_fn_c_try_compile "$LINENO"; then :
4183  ac_cv_header_stdc=yes
4184else
4185  ac_cv_header_stdc=no
4186fi
4187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188
4189if test $ac_cv_header_stdc = yes; then
4190  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192/* end confdefs.h.  */
4193#include <string.h>
4194
4195_ACEOF
4196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4197  $EGREP "memchr" >/dev/null 2>&1; then :
4198
4199else
4200  ac_cv_header_stdc=no
4201fi
4202rm -f conftest*
4203
4204fi
4205
4206if test $ac_cv_header_stdc = yes; then
4207  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209/* end confdefs.h.  */
4210#include <stdlib.h>
4211
4212_ACEOF
4213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4214  $EGREP "free" >/dev/null 2>&1; then :
4215
4216else
4217  ac_cv_header_stdc=no
4218fi
4219rm -f conftest*
4220
4221fi
4222
4223if test $ac_cv_header_stdc = yes; then
4224  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4225  if test "$cross_compiling" = yes; then :
4226  :
4227else
4228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229/* end confdefs.h.  */
4230#include <ctype.h>
4231#include <stdlib.h>
4232#if ((' ' & 0x0FF) == 0x020)
4233# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4234# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4235#else
4236# define ISLOWER(c) \
4237		   (('a' <= (c) && (c) <= 'i') \
4238		     || ('j' <= (c) && (c) <= 'r') \
4239		     || ('s' <= (c) && (c) <= 'z'))
4240# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4241#endif
4242
4243#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4244int
4245main ()
4246{
4247  int i;
4248  for (i = 0; i < 256; i++)
4249    if (XOR (islower (i), ISLOWER (i))
4250	|| toupper (i) != TOUPPER (i))
4251      return 2;
4252  return 0;
4253}
4254_ACEOF
4255if ac_fn_c_try_run "$LINENO"; then :
4256
4257else
4258  ac_cv_header_stdc=no
4259fi
4260rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4261  conftest.$ac_objext conftest.beam conftest.$ac_ext
4262fi
4263
4264fi
4265fi
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4267$as_echo "$ac_cv_header_stdc" >&6; }
4268if test $ac_cv_header_stdc = yes; then
4269
4270$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4271
4272fi
4273
4274# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4275for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4276		  inttypes.h stdint.h unistd.h
4277do :
4278  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4279ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4280"
4281if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4282  cat >>confdefs.h <<_ACEOF
4283#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4284_ACEOF
4285
4286fi
4287
4288done
4289
4290
4291
4292
4293if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4294	if test -n "$ac_tool_prefix"; then
4295  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4296set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298$as_echo_n "checking for $ac_word... " >&6; }
4299if ${ac_cv_path_PKG_CONFIG+:} false; then :
4300  $as_echo_n "(cached) " >&6
4301else
4302  case $PKG_CONFIG in
4303  [\\/]* | ?:[\\/]*)
4304  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4305  ;;
4306  *)
4307  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308for as_dir in $PATH
4309do
4310  IFS=$as_save_IFS
4311  test -z "$as_dir" && as_dir=.
4312    for ac_exec_ext in '' $ac_executable_extensions; do
4313  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4314    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4316    break 2
4317  fi
4318done
4319  done
4320IFS=$as_save_IFS
4321
4322  ;;
4323esac
4324fi
4325PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4326if test -n "$PKG_CONFIG"; then
4327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4328$as_echo "$PKG_CONFIG" >&6; }
4329else
4330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331$as_echo "no" >&6; }
4332fi
4333
4334
4335fi
4336if test -z "$ac_cv_path_PKG_CONFIG"; then
4337  ac_pt_PKG_CONFIG=$PKG_CONFIG
4338  # Extract the first word of "pkg-config", so it can be a program name with args.
4339set dummy pkg-config; ac_word=$2
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341$as_echo_n "checking for $ac_word... " >&6; }
4342if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4343  $as_echo_n "(cached) " >&6
4344else
4345  case $ac_pt_PKG_CONFIG in
4346  [\\/]* | ?:[\\/]*)
4347  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4348  ;;
4349  *)
4350  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351for as_dir in $PATH
4352do
4353  IFS=$as_save_IFS
4354  test -z "$as_dir" && as_dir=.
4355    for ac_exec_ext in '' $ac_executable_extensions; do
4356  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4357    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359    break 2
4360  fi
4361done
4362  done
4363IFS=$as_save_IFS
4364
4365  ;;
4366esac
4367fi
4368ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4369if test -n "$ac_pt_PKG_CONFIG"; then
4370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4371$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4372else
4373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374$as_echo "no" >&6; }
4375fi
4376
4377  if test "x$ac_pt_PKG_CONFIG" = x; then
4378    PKG_CONFIG=""
4379  else
4380    case $cross_compiling:$ac_tool_warned in
4381yes:)
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4384ac_tool_warned=yes ;;
4385esac
4386    PKG_CONFIG=$ac_pt_PKG_CONFIG
4387  fi
4388else
4389  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4390fi
4391
4392fi
4393if test -n "$PKG_CONFIG"; then
4394	_pkg_min_version=0.9.0
4395	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4396$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4397	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4398		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4399$as_echo "yes" >&6; }
4400	else
4401		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402$as_echo "no" >&6; }
4403		PKG_CONFIG=""
4404	fi
4405
4406fi
4407# Make sure we can run config.sub.
4408$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4409  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4410
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4412$as_echo_n "checking build system type... " >&6; }
4413if ${ac_cv_build+:} false; then :
4414  $as_echo_n "(cached) " >&6
4415else
4416  ac_build_alias=$build_alias
4417test "x$ac_build_alias" = x &&
4418  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4419test "x$ac_build_alias" = x &&
4420  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4421ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4422  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4423
4424fi
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4426$as_echo "$ac_cv_build" >&6; }
4427case $ac_cv_build in
4428*-*-*) ;;
4429*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4430esac
4431build=$ac_cv_build
4432ac_save_IFS=$IFS; IFS='-'
4433set x $ac_cv_build
4434shift
4435build_cpu=$1
4436build_vendor=$2
4437shift; shift
4438# Remember, the first character of IFS is used to create $*,
4439# except with old shells:
4440build_os=$*
4441IFS=$ac_save_IFS
4442case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4443
4444
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4446$as_echo_n "checking host system type... " >&6; }
4447if ${ac_cv_host+:} false; then :
4448  $as_echo_n "(cached) " >&6
4449else
4450  if test "x$host_alias" = x; then
4451  ac_cv_host=$ac_cv_build
4452else
4453  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4454    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4455fi
4456
4457fi
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4459$as_echo "$ac_cv_host" >&6; }
4460case $ac_cv_host in
4461*-*-*) ;;
4462*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4463esac
4464host=$ac_cv_host
4465ac_save_IFS=$IFS; IFS='-'
4466set x $ac_cv_host
4467shift
4468host_cpu=$1
4469host_vendor=$2
4470shift; shift
4471# Remember, the first character of IFS is used to create $*,
4472# except with old shells:
4473host_os=$*
4474IFS=$ac_save_IFS
4475case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4476
4477
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4479$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4480if ${ac_cv_path_SED+:} false; then :
4481  $as_echo_n "(cached) " >&6
4482else
4483            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4484     for ac_i in 1 2 3 4 5 6 7; do
4485       ac_script="$ac_script$as_nl$ac_script"
4486     done
4487     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4488     { ac_script=; unset ac_script;}
4489     if test -z "$SED"; then
4490  ac_path_SED_found=false
4491  # Loop through the user's path and test for each of PROGNAME-LIST
4492  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493for as_dir in $PATH
4494do
4495  IFS=$as_save_IFS
4496  test -z "$as_dir" && as_dir=.
4497    for ac_prog in sed gsed; do
4498    for ac_exec_ext in '' $ac_executable_extensions; do
4499      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4500      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4501# Check for GNU ac_path_SED and select it if it is found.
4502  # Check for GNU $ac_path_SED
4503case `"$ac_path_SED" --version 2>&1` in
4504*GNU*)
4505  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4506*)
4507  ac_count=0
4508  $as_echo_n 0123456789 >"conftest.in"
4509  while :
4510  do
4511    cat "conftest.in" "conftest.in" >"conftest.tmp"
4512    mv "conftest.tmp" "conftest.in"
4513    cp "conftest.in" "conftest.nl"
4514    $as_echo '' >> "conftest.nl"
4515    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4516    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4517    as_fn_arith $ac_count + 1 && ac_count=$as_val
4518    if test $ac_count -gt ${ac_path_SED_max-0}; then
4519      # Best one so far, save it but keep looking for a better one
4520      ac_cv_path_SED="$ac_path_SED"
4521      ac_path_SED_max=$ac_count
4522    fi
4523    # 10*(2^10) chars as input seems more than enough
4524    test $ac_count -gt 10 && break
4525  done
4526  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4527esac
4528
4529      $ac_path_SED_found && break 3
4530    done
4531  done
4532  done
4533IFS=$as_save_IFS
4534  if test -z "$ac_cv_path_SED"; then
4535    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4536  fi
4537else
4538  ac_cv_path_SED=$SED
4539fi
4540
4541fi
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4543$as_echo "$ac_cv_path_SED" >&6; }
4544 SED="$ac_cv_path_SED"
4545  rm -f conftest.sed
4546
4547
4548
4549
4550
4551if  test "x$GCC" = xyes ; then
4552    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4553-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4554-Wbad-function-cast -Wformat=2"
4555    case `$CC -dumpversion` in
4556    3.4.* | 4.*)
4557	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4558	;;
4559    esac
4560else
4561    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4562if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4563  SUNCC="yes"
4564else
4565  SUNCC="no"
4566fi
4567
4568    if test "x$SUNCC" = "xyes"; then
4569	CWARNFLAGS="-v"
4570    fi
4571fi
4572
4573
4574
4575# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4576
4577
4578
4579# Check whether --enable-strict-compilation was given.
4580if test "${enable_strict_compilation+set}" = set; then :
4581  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4582else
4583  STRICT_COMPILE=no
4584fi
4585
4586if test "x$STRICT_COMPILE" = "xyes"; then
4587	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4588if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4589  SUNCC="yes"
4590else
4591  SUNCC="no"
4592fi
4593
4594	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4595if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4596  INTELCC="yes"
4597else
4598  INTELCC="no"
4599fi
4600
4601	if test "x$GCC" = xyes ; then
4602		STRICT_CFLAGS="-pedantic -Werror"
4603	elif test "x$SUNCC" = "xyes"; then
4604		STRICT_CFLAGS="-errwarn"
4605    elif test "x$INTELCC" = "xyes"; then
4606		STRICT_CFLAGS="-Werror"
4607	fi
4608fi
4609CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4610
4611
4612
4613
4614cat >>confdefs.h <<_ACEOF
4615#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4616_ACEOF
4617
4618	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4619	if test "x$PVM" = "x"; then
4620		PVM="0"
4621	fi
4622
4623cat >>confdefs.h <<_ACEOF
4624#define PACKAGE_VERSION_MINOR $PVM
4625_ACEOF
4626
4627	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4628	if test "x$PVP" = "x"; then
4629		PVP="0"
4630	fi
4631
4632cat >>confdefs.h <<_ACEOF
4633#define PACKAGE_VERSION_PATCHLEVEL $PVP
4634_ACEOF
4635
4636
4637
4638CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4639mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4640|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4641echo 'git directory not found: installing possibly empty changelog.' >&2)"
4642
4643
4644
4645
4646macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4647INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4648mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4649|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4650echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4651
4652
4653
4654
4655
4656
4657if test x$APP_MAN_SUFFIX = x    ; then
4658    APP_MAN_SUFFIX=1
4659fi
4660if test x$APP_MAN_DIR = x    ; then
4661    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4662fi
4663
4664if test x$LIB_MAN_SUFFIX = x    ; then
4665    LIB_MAN_SUFFIX=3
4666fi
4667if test x$LIB_MAN_DIR = x    ; then
4668    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4669fi
4670
4671if test x$FILE_MAN_SUFFIX = x    ; then
4672    case $host_os in
4673	solaris*)	FILE_MAN_SUFFIX=4  ;;
4674	*)		FILE_MAN_SUFFIX=5  ;;
4675    esac
4676fi
4677if test x$FILE_MAN_DIR = x    ; then
4678    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4679fi
4680
4681if test x$MISC_MAN_SUFFIX = x    ; then
4682    case $host_os in
4683	solaris*)	MISC_MAN_SUFFIX=5  ;;
4684	*)		MISC_MAN_SUFFIX=7  ;;
4685    esac
4686fi
4687if test x$MISC_MAN_DIR = x    ; then
4688    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4689fi
4690
4691if test x$DRIVER_MAN_SUFFIX = x    ; then
4692    case $host_os in
4693	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4694	*)		DRIVER_MAN_SUFFIX=4  ;;
4695    esac
4696fi
4697if test x$DRIVER_MAN_DIR = x    ; then
4698    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4699fi
4700
4701if test x$ADMIN_MAN_SUFFIX = x    ; then
4702    case $host_os in
4703	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4704	*)		ADMIN_MAN_SUFFIX=8  ;;
4705    esac
4706fi
4707if test x$ADMIN_MAN_DIR = x    ; then
4708    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4709fi
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725XORG_MAN_PAGE="X Version 11"
4726
4727MAN_SUBSTS="\
4728	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4729	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4730	-e 's|__xservername__|Xorg|g' \
4731	-e 's|__xconfigfile__|xorg.conf|g' \
4732	-e 's|__projectroot__|\$(prefix)|g' \
4733	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
4734	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4735	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4736	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4737	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4738	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4739	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4740
4741
4742
4743# Check whether --enable-silent-rules was given.
4744if test "${enable_silent_rules+set}" = set; then :
4745  enableval=$enable_silent_rules;
4746fi
4747
4748case $enable_silent_rules in
4749yes) AM_DEFAULT_VERBOSITY=0;;
4750no)  AM_DEFAULT_VERBOSITY=1;;
4751*)   AM_DEFAULT_VERBOSITY=0;;
4752esac
4753AM_BACKSLASH='\'
4754
4755
4756
4757# Check for progs
4758ac_ext=c
4759ac_cpp='$CPP $CPPFLAGS'
4760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4762ac_compiler_gnu=$ac_cv_c_compiler_gnu
4763if test -n "$ac_tool_prefix"; then
4764  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4765set dummy ${ac_tool_prefix}gcc; ac_word=$2
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767$as_echo_n "checking for $ac_word... " >&6; }
4768if ${ac_cv_prog_CC+:} false; then :
4769  $as_echo_n "(cached) " >&6
4770else
4771  if test -n "$CC"; then
4772  ac_cv_prog_CC="$CC" # Let the user override the test.
4773else
4774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775for as_dir in $PATH
4776do
4777  IFS=$as_save_IFS
4778  test -z "$as_dir" && as_dir=.
4779    for ac_exec_ext in '' $ac_executable_extensions; do
4780  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4781    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783    break 2
4784  fi
4785done
4786  done
4787IFS=$as_save_IFS
4788
4789fi
4790fi
4791CC=$ac_cv_prog_CC
4792if test -n "$CC"; then
4793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4794$as_echo "$CC" >&6; }
4795else
4796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797$as_echo "no" >&6; }
4798fi
4799
4800
4801fi
4802if test -z "$ac_cv_prog_CC"; then
4803  ac_ct_CC=$CC
4804  # Extract the first word of "gcc", so it can be a program name with args.
4805set dummy gcc; ac_word=$2
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807$as_echo_n "checking for $ac_word... " >&6; }
4808if ${ac_cv_prog_ac_ct_CC+:} false; then :
4809  $as_echo_n "(cached) " >&6
4810else
4811  if test -n "$ac_ct_CC"; then
4812  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4813else
4814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815for as_dir in $PATH
4816do
4817  IFS=$as_save_IFS
4818  test -z "$as_dir" && as_dir=.
4819    for ac_exec_ext in '' $ac_executable_extensions; do
4820  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4821    ac_cv_prog_ac_ct_CC="gcc"
4822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823    break 2
4824  fi
4825done
4826  done
4827IFS=$as_save_IFS
4828
4829fi
4830fi
4831ac_ct_CC=$ac_cv_prog_ac_ct_CC
4832if test -n "$ac_ct_CC"; then
4833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4834$as_echo "$ac_ct_CC" >&6; }
4835else
4836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837$as_echo "no" >&6; }
4838fi
4839
4840  if test "x$ac_ct_CC" = x; then
4841    CC=""
4842  else
4843    case $cross_compiling:$ac_tool_warned in
4844yes:)
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4847ac_tool_warned=yes ;;
4848esac
4849    CC=$ac_ct_CC
4850  fi
4851else
4852  CC="$ac_cv_prog_CC"
4853fi
4854
4855if test -z "$CC"; then
4856          if test -n "$ac_tool_prefix"; then
4857    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4858set dummy ${ac_tool_prefix}cc; ac_word=$2
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860$as_echo_n "checking for $ac_word... " >&6; }
4861if ${ac_cv_prog_CC+:} false; then :
4862  $as_echo_n "(cached) " >&6
4863else
4864  if test -n "$CC"; then
4865  ac_cv_prog_CC="$CC" # Let the user override the test.
4866else
4867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868for as_dir in $PATH
4869do
4870  IFS=$as_save_IFS
4871  test -z "$as_dir" && as_dir=.
4872    for ac_exec_ext in '' $ac_executable_extensions; do
4873  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4874    ac_cv_prog_CC="${ac_tool_prefix}cc"
4875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876    break 2
4877  fi
4878done
4879  done
4880IFS=$as_save_IFS
4881
4882fi
4883fi
4884CC=$ac_cv_prog_CC
4885if test -n "$CC"; then
4886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4887$as_echo "$CC" >&6; }
4888else
4889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890$as_echo "no" >&6; }
4891fi
4892
4893
4894  fi
4895fi
4896if test -z "$CC"; then
4897  # Extract the first word of "cc", so it can be a program name with args.
4898set dummy cc; ac_word=$2
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900$as_echo_n "checking for $ac_word... " >&6; }
4901if ${ac_cv_prog_CC+:} false; then :
4902  $as_echo_n "(cached) " >&6
4903else
4904  if test -n "$CC"; then
4905  ac_cv_prog_CC="$CC" # Let the user override the test.
4906else
4907  ac_prog_rejected=no
4908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909for as_dir in $PATH
4910do
4911  IFS=$as_save_IFS
4912  test -z "$as_dir" && as_dir=.
4913    for ac_exec_ext in '' $ac_executable_extensions; do
4914  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4916       ac_prog_rejected=yes
4917       continue
4918     fi
4919    ac_cv_prog_CC="cc"
4920    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921    break 2
4922  fi
4923done
4924  done
4925IFS=$as_save_IFS
4926
4927if test $ac_prog_rejected = yes; then
4928  # We found a bogon in the path, so make sure we never use it.
4929  set dummy $ac_cv_prog_CC
4930  shift
4931  if test $# != 0; then
4932    # We chose a different compiler from the bogus one.
4933    # However, it has the same basename, so the bogon will be chosen
4934    # first if we set CC to just the basename; use the full file name.
4935    shift
4936    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4937  fi
4938fi
4939fi
4940fi
4941CC=$ac_cv_prog_CC
4942if test -n "$CC"; then
4943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4944$as_echo "$CC" >&6; }
4945else
4946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947$as_echo "no" >&6; }
4948fi
4949
4950
4951fi
4952if test -z "$CC"; then
4953  if test -n "$ac_tool_prefix"; then
4954  for ac_prog in cl.exe
4955  do
4956    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4957set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959$as_echo_n "checking for $ac_word... " >&6; }
4960if ${ac_cv_prog_CC+:} false; then :
4961  $as_echo_n "(cached) " >&6
4962else
4963  if test -n "$CC"; then
4964  ac_cv_prog_CC="$CC" # Let the user override the test.
4965else
4966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967for as_dir in $PATH
4968do
4969  IFS=$as_save_IFS
4970  test -z "$as_dir" && as_dir=.
4971    for ac_exec_ext in '' $ac_executable_extensions; do
4972  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975    break 2
4976  fi
4977done
4978  done
4979IFS=$as_save_IFS
4980
4981fi
4982fi
4983CC=$ac_cv_prog_CC
4984if test -n "$CC"; then
4985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4986$as_echo "$CC" >&6; }
4987else
4988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989$as_echo "no" >&6; }
4990fi
4991
4992
4993    test -n "$CC" && break
4994  done
4995fi
4996if test -z "$CC"; then
4997  ac_ct_CC=$CC
4998  for ac_prog in cl.exe
4999do
5000  # Extract the first word of "$ac_prog", so it can be a program name with args.
5001set dummy $ac_prog; ac_word=$2
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003$as_echo_n "checking for $ac_word... " >&6; }
5004if ${ac_cv_prog_ac_ct_CC+:} false; then :
5005  $as_echo_n "(cached) " >&6
5006else
5007  if test -n "$ac_ct_CC"; then
5008  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5009else
5010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011for as_dir in $PATH
5012do
5013  IFS=$as_save_IFS
5014  test -z "$as_dir" && as_dir=.
5015    for ac_exec_ext in '' $ac_executable_extensions; do
5016  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017    ac_cv_prog_ac_ct_CC="$ac_prog"
5018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019    break 2
5020  fi
5021done
5022  done
5023IFS=$as_save_IFS
5024
5025fi
5026fi
5027ac_ct_CC=$ac_cv_prog_ac_ct_CC
5028if test -n "$ac_ct_CC"; then
5029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5030$as_echo "$ac_ct_CC" >&6; }
5031else
5032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033$as_echo "no" >&6; }
5034fi
5035
5036
5037  test -n "$ac_ct_CC" && break
5038done
5039
5040  if test "x$ac_ct_CC" = x; then
5041    CC=""
5042  else
5043    case $cross_compiling:$ac_tool_warned in
5044yes:)
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5047ac_tool_warned=yes ;;
5048esac
5049    CC=$ac_ct_CC
5050  fi
5051fi
5052
5053fi
5054
5055
5056test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5058as_fn_error $? "no acceptable C compiler found in \$PATH
5059See \`config.log' for more details" "$LINENO" 5; }
5060
5061# Provide some information about the compiler.
5062$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5063set X $ac_compile
5064ac_compiler=$2
5065for ac_option in --version -v -V -qversion; do
5066  { { ac_try="$ac_compiler $ac_option >&5"
5067case "(($ac_try" in
5068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069  *) ac_try_echo=$ac_try;;
5070esac
5071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5072$as_echo "$ac_try_echo"; } >&5
5073  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5074  ac_status=$?
5075  if test -s conftest.err; then
5076    sed '10a\
5077... rest of stderr output deleted ...
5078         10q' conftest.err >conftest.er1
5079    cat conftest.er1 >&5
5080  fi
5081  rm -f conftest.er1 conftest.err
5082  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5083  test $ac_status = 0; }
5084done
5085
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5087$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5088if ${ac_cv_c_compiler_gnu+:} false; then :
5089  $as_echo_n "(cached) " >&6
5090else
5091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092/* end confdefs.h.  */
5093
5094int
5095main ()
5096{
5097#ifndef __GNUC__
5098       choke me
5099#endif
5100
5101  ;
5102  return 0;
5103}
5104_ACEOF
5105if ac_fn_c_try_compile "$LINENO"; then :
5106  ac_compiler_gnu=yes
5107else
5108  ac_compiler_gnu=no
5109fi
5110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111ac_cv_c_compiler_gnu=$ac_compiler_gnu
5112
5113fi
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5115$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5116if test $ac_compiler_gnu = yes; then
5117  GCC=yes
5118else
5119  GCC=
5120fi
5121ac_test_CFLAGS=${CFLAGS+set}
5122ac_save_CFLAGS=$CFLAGS
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5124$as_echo_n "checking whether $CC accepts -g... " >&6; }
5125if ${ac_cv_prog_cc_g+:} false; then :
5126  $as_echo_n "(cached) " >&6
5127else
5128  ac_save_c_werror_flag=$ac_c_werror_flag
5129   ac_c_werror_flag=yes
5130   ac_cv_prog_cc_g=no
5131   CFLAGS="-g"
5132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133/* end confdefs.h.  */
5134
5135int
5136main ()
5137{
5138
5139  ;
5140  return 0;
5141}
5142_ACEOF
5143if ac_fn_c_try_compile "$LINENO"; then :
5144  ac_cv_prog_cc_g=yes
5145else
5146  CFLAGS=""
5147      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148/* end confdefs.h.  */
5149
5150int
5151main ()
5152{
5153
5154  ;
5155  return 0;
5156}
5157_ACEOF
5158if ac_fn_c_try_compile "$LINENO"; then :
5159
5160else
5161  ac_c_werror_flag=$ac_save_c_werror_flag
5162	 CFLAGS="-g"
5163	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164/* end confdefs.h.  */
5165
5166int
5167main ()
5168{
5169
5170  ;
5171  return 0;
5172}
5173_ACEOF
5174if ac_fn_c_try_compile "$LINENO"; then :
5175  ac_cv_prog_cc_g=yes
5176fi
5177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5178fi
5179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180fi
5181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182   ac_c_werror_flag=$ac_save_c_werror_flag
5183fi
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5185$as_echo "$ac_cv_prog_cc_g" >&6; }
5186if test "$ac_test_CFLAGS" = set; then
5187  CFLAGS=$ac_save_CFLAGS
5188elif test $ac_cv_prog_cc_g = yes; then
5189  if test "$GCC" = yes; then
5190    CFLAGS="-g -O2"
5191  else
5192    CFLAGS="-g"
5193  fi
5194else
5195  if test "$GCC" = yes; then
5196    CFLAGS="-O2"
5197  else
5198    CFLAGS=
5199  fi
5200fi
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5202$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5203if ${ac_cv_prog_cc_c89+:} false; then :
5204  $as_echo_n "(cached) " >&6
5205else
5206  ac_cv_prog_cc_c89=no
5207ac_save_CC=$CC
5208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209/* end confdefs.h.  */
5210#include <stdarg.h>
5211#include <stdio.h>
5212#include <sys/types.h>
5213#include <sys/stat.h>
5214/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5215struct buf { int x; };
5216FILE * (*rcsopen) (struct buf *, struct stat *, int);
5217static char *e (p, i)
5218     char **p;
5219     int i;
5220{
5221  return p[i];
5222}
5223static char *f (char * (*g) (char **, int), char **p, ...)
5224{
5225  char *s;
5226  va_list v;
5227  va_start (v,p);
5228  s = g (p, va_arg (v,int));
5229  va_end (v);
5230  return s;
5231}
5232
5233/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5234   function prototypes and stuff, but not '\xHH' hex character constants.
5235   These don't provoke an error unfortunately, instead are silently treated
5236   as 'x'.  The following induces an error, until -std is added to get
5237   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5238   array size at least.  It's necessary to write '\x00'==0 to get something
5239   that's true only with -std.  */
5240int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5241
5242/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5243   inside strings and character constants.  */
5244#define FOO(x) 'x'
5245int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5246
5247int test (int i, double x);
5248struct s1 {int (*f) (int a);};
5249struct s2 {int (*f) (double a);};
5250int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5251int argc;
5252char **argv;
5253int
5254main ()
5255{
5256return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5257  ;
5258  return 0;
5259}
5260_ACEOF
5261for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5262	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5263do
5264  CC="$ac_save_CC $ac_arg"
5265  if ac_fn_c_try_compile "$LINENO"; then :
5266  ac_cv_prog_cc_c89=$ac_arg
5267fi
5268rm -f core conftest.err conftest.$ac_objext
5269  test "x$ac_cv_prog_cc_c89" != "xno" && break
5270done
5271rm -f conftest.$ac_ext
5272CC=$ac_save_CC
5273
5274fi
5275# AC_CACHE_VAL
5276case "x$ac_cv_prog_cc_c89" in
5277  x)
5278    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5279$as_echo "none needed" >&6; } ;;
5280  xno)
5281    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5282$as_echo "unsupported" >&6; } ;;
5283  *)
5284    CC="$CC $ac_cv_prog_cc_c89"
5285    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5286$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5287esac
5288if test "x$ac_cv_prog_cc_c89" != xno; then :
5289
5290fi
5291
5292ac_ext=c
5293ac_cpp='$CPP $CPPFLAGS'
5294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5296ac_compiler_gnu=$ac_cv_c_compiler_gnu
5297
5298depcc="$CC"   am_compiler_list=
5299
5300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5301$as_echo_n "checking dependency style of $depcc... " >&6; }
5302if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5303  $as_echo_n "(cached) " >&6
5304else
5305  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5306  # We make a subdir and do the tests there.  Otherwise we can end up
5307  # making bogus files that we don't know about and never remove.  For
5308  # instance it was reported that on HP-UX the gcc test will end up
5309  # making a dummy file named `D' -- because `-MD' means `put the output
5310  # in D'.
5311  mkdir conftest.dir
5312  # Copy depcomp to subdir because otherwise we won't find it if we're
5313  # using a relative directory.
5314  cp "$am_depcomp" conftest.dir
5315  cd conftest.dir
5316  # We will build objects and dependencies in a subdirectory because
5317  # it helps to detect inapplicable dependency modes.  For instance
5318  # both Tru64's cc and ICC support -MD to output dependencies as a
5319  # side effect of compilation, but ICC will put the dependencies in
5320  # the current directory while Tru64 will put them in the object
5321  # directory.
5322  mkdir sub
5323
5324  am_cv_CC_dependencies_compiler_type=none
5325  if test "$am_compiler_list" = ""; then
5326     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5327  fi
5328  am__universal=false
5329  case " $depcc " in #(
5330     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5331     esac
5332
5333  for depmode in $am_compiler_list; do
5334    # Setup a source with many dependencies, because some compilers
5335    # like to wrap large dependency lists on column 80 (with \), and
5336    # we should not choose a depcomp mode which is confused by this.
5337    #
5338    # We need to recreate these files for each test, as the compiler may
5339    # overwrite some of them when testing with obscure command lines.
5340    # This happens at least with the AIX C compiler.
5341    : > sub/conftest.c
5342    for i in 1 2 3 4 5 6; do
5343      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5344      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5345      # Solaris 8's {/usr,}/bin/sh.
5346      touch sub/conftst$i.h
5347    done
5348    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5349
5350    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5351    # mode.  It turns out that the SunPro C++ compiler does not properly
5352    # handle `-M -o', and we need to detect this.  Also, some Intel
5353    # versions had trouble with output in subdirs
5354    am__obj=sub/conftest.${OBJEXT-o}
5355    am__minus_obj="-o $am__obj"
5356    case $depmode in
5357    gcc)
5358      # This depmode causes a compiler race in universal mode.
5359      test "$am__universal" = false || continue
5360      ;;
5361    nosideeffect)
5362      # after this tag, mechanisms are not by side-effect, so they'll
5363      # only be used when explicitly requested
5364      if test "x$enable_dependency_tracking" = xyes; then
5365	continue
5366      else
5367	break
5368      fi
5369      ;;
5370    msvisualcpp | msvcmsys)
5371      # This compiler won't grok `-c -o', but also, the minuso test has
5372      # not run yet.  These depmodes are late enough in the game, and
5373      # so weak that their functioning should not be impacted.
5374      am__obj=conftest.${OBJEXT-o}
5375      am__minus_obj=
5376      ;;
5377    none) break ;;
5378    esac
5379    if depmode=$depmode \
5380       source=sub/conftest.c object=$am__obj \
5381       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5382       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5383         >/dev/null 2>conftest.err &&
5384       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5385       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5386       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5387       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5388      # icc doesn't choke on unknown options, it will just issue warnings
5389      # or remarks (even with -Werror).  So we grep stderr for any message
5390      # that says an option was ignored or not supported.
5391      # When given -MP, icc 7.0 and 7.1 complain thusly:
5392      #   icc: Command line warning: ignoring option '-M'; no argument required
5393      # The diagnosis changed in icc 8.0:
5394      #   icc: Command line remark: option '-MP' not supported
5395      if (grep 'ignoring option' conftest.err ||
5396          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5397        am_cv_CC_dependencies_compiler_type=$depmode
5398        break
5399      fi
5400    fi
5401  done
5402
5403  cd ..
5404  rm -rf conftest.dir
5405else
5406  am_cv_CC_dependencies_compiler_type=none
5407fi
5408
5409fi
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5411$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5412CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5413
5414 if
5415  test "x$enable_dependency_tracking" != xno \
5416  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5417  am__fastdepCC_TRUE=
5418  am__fastdepCC_FALSE='#'
5419else
5420  am__fastdepCC_TRUE='#'
5421  am__fastdepCC_FALSE=
5422fi
5423
5424
5425case `pwd` in
5426  *\ * | *\	*)
5427    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5428$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5429esac
5430
5431
5432
5433macro_version='2.2.10'
5434macro_revision='1.3175'
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448ltmain="$ac_aux_dir/ltmain.sh"
5449
5450# Backslashify metacharacters that are still active within
5451# double-quoted strings.
5452sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5453
5454# Same as above, but do not quote variable references.
5455double_quote_subst='s/\(["`\\]\)/\\\1/g'
5456
5457# Sed substitution to delay expansion of an escaped shell variable in a
5458# double_quote_subst'ed string.
5459delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5460
5461# Sed substitution to delay expansion of an escaped single quote.
5462delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5463
5464# Sed substitution to avoid accidental globbing in evaled expressions
5465no_glob_subst='s/\*/\\\*/g'
5466
5467ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5468ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5469ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5470
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5472$as_echo_n "checking how to print strings... " >&6; }
5473# Test print first, because it will be a builtin if present.
5474if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5475   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5476  ECHO='print -r --'
5477elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5478  ECHO='printf %s\n'
5479else
5480  # Use this function as a fallback that always works.
5481  func_fallback_echo ()
5482  {
5483    eval 'cat <<_LTECHO_EOF
5484$1
5485_LTECHO_EOF'
5486  }
5487  ECHO='func_fallback_echo'
5488fi
5489
5490# func_echo_all arg...
5491# Invoke $ECHO with all args, space-separated.
5492func_echo_all ()
5493{
5494    $ECHO ""
5495}
5496
5497case "$ECHO" in
5498  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5499$as_echo "printf" >&6; } ;;
5500  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5501$as_echo "print -r" >&6; } ;;
5502  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5503$as_echo "cat" >&6; } ;;
5504esac
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5520$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5521if ${ac_cv_path_SED+:} false; then :
5522  $as_echo_n "(cached) " >&6
5523else
5524            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5525     for ac_i in 1 2 3 4 5 6 7; do
5526       ac_script="$ac_script$as_nl$ac_script"
5527     done
5528     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5529     { ac_script=; unset ac_script;}
5530     if test -z "$SED"; then
5531  ac_path_SED_found=false
5532  # Loop through the user's path and test for each of PROGNAME-LIST
5533  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534for as_dir in $PATH
5535do
5536  IFS=$as_save_IFS
5537  test -z "$as_dir" && as_dir=.
5538    for ac_prog in sed gsed; do
5539    for ac_exec_ext in '' $ac_executable_extensions; do
5540      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5541      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5542# Check for GNU ac_path_SED and select it if it is found.
5543  # Check for GNU $ac_path_SED
5544case `"$ac_path_SED" --version 2>&1` in
5545*GNU*)
5546  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5547*)
5548  ac_count=0
5549  $as_echo_n 0123456789 >"conftest.in"
5550  while :
5551  do
5552    cat "conftest.in" "conftest.in" >"conftest.tmp"
5553    mv "conftest.tmp" "conftest.in"
5554    cp "conftest.in" "conftest.nl"
5555    $as_echo '' >> "conftest.nl"
5556    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5557    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5558    as_fn_arith $ac_count + 1 && ac_count=$as_val
5559    if test $ac_count -gt ${ac_path_SED_max-0}; then
5560      # Best one so far, save it but keep looking for a better one
5561      ac_cv_path_SED="$ac_path_SED"
5562      ac_path_SED_max=$ac_count
5563    fi
5564    # 10*(2^10) chars as input seems more than enough
5565    test $ac_count -gt 10 && break
5566  done
5567  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5568esac
5569
5570      $ac_path_SED_found && break 3
5571    done
5572  done
5573  done
5574IFS=$as_save_IFS
5575  if test -z "$ac_cv_path_SED"; then
5576    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5577  fi
5578else
5579  ac_cv_path_SED=$SED
5580fi
5581
5582fi
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5584$as_echo "$ac_cv_path_SED" >&6; }
5585 SED="$ac_cv_path_SED"
5586  rm -f conftest.sed
5587
5588test -z "$SED" && SED=sed
5589Xsed="$SED -e 1s/^X//"
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5602$as_echo_n "checking for fgrep... " >&6; }
5603if ${ac_cv_path_FGREP+:} false; then :
5604  $as_echo_n "(cached) " >&6
5605else
5606  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5607   then ac_cv_path_FGREP="$GREP -F"
5608   else
5609     if test -z "$FGREP"; then
5610  ac_path_FGREP_found=false
5611  # Loop through the user's path and test for each of PROGNAME-LIST
5612  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5614do
5615  IFS=$as_save_IFS
5616  test -z "$as_dir" && as_dir=.
5617    for ac_prog in fgrep; do
5618    for ac_exec_ext in '' $ac_executable_extensions; do
5619      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5620      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5621# Check for GNU ac_path_FGREP and select it if it is found.
5622  # Check for GNU $ac_path_FGREP
5623case `"$ac_path_FGREP" --version 2>&1` in
5624*GNU*)
5625  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5626*)
5627  ac_count=0
5628  $as_echo_n 0123456789 >"conftest.in"
5629  while :
5630  do
5631    cat "conftest.in" "conftest.in" >"conftest.tmp"
5632    mv "conftest.tmp" "conftest.in"
5633    cp "conftest.in" "conftest.nl"
5634    $as_echo 'FGREP' >> "conftest.nl"
5635    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5636    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5637    as_fn_arith $ac_count + 1 && ac_count=$as_val
5638    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5639      # Best one so far, save it but keep looking for a better one
5640      ac_cv_path_FGREP="$ac_path_FGREP"
5641      ac_path_FGREP_max=$ac_count
5642    fi
5643    # 10*(2^10) chars as input seems more than enough
5644    test $ac_count -gt 10 && break
5645  done
5646  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5647esac
5648
5649      $ac_path_FGREP_found && break 3
5650    done
5651  done
5652  done
5653IFS=$as_save_IFS
5654  if test -z "$ac_cv_path_FGREP"; then
5655    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5656  fi
5657else
5658  ac_cv_path_FGREP=$FGREP
5659fi
5660
5661   fi
5662fi
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5664$as_echo "$ac_cv_path_FGREP" >&6; }
5665 FGREP="$ac_cv_path_FGREP"
5666
5667
5668test -z "$GREP" && GREP=grep
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688# Check whether --with-gnu-ld was given.
5689if test "${with_gnu_ld+set}" = set; then :
5690  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5691else
5692  with_gnu_ld=no
5693fi
5694
5695ac_prog=ld
5696if test "$GCC" = yes; then
5697  # Check if gcc -print-prog-name=ld gives a path.
5698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5699$as_echo_n "checking for ld used by $CC... " >&6; }
5700  case $host in
5701  *-*-mingw*)
5702    # gcc leaves a trailing carriage return which upsets mingw
5703    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5704  *)
5705    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5706  esac
5707  case $ac_prog in
5708    # Accept absolute paths.
5709    [\\/]* | ?:[\\/]*)
5710      re_direlt='/[^/][^/]*/\.\./'
5711      # Canonicalize the pathname of ld
5712      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5713      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5714	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5715      done
5716      test -z "$LD" && LD="$ac_prog"
5717      ;;
5718  "")
5719    # If it fails, then pretend we aren't using GCC.
5720    ac_prog=ld
5721    ;;
5722  *)
5723    # If it is relative, then search for the first ld in PATH.
5724    with_gnu_ld=unknown
5725    ;;
5726  esac
5727elif test "$with_gnu_ld" = yes; then
5728  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5729$as_echo_n "checking for GNU ld... " >&6; }
5730else
5731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5732$as_echo_n "checking for non-GNU ld... " >&6; }
5733fi
5734if ${lt_cv_path_LD+:} false; then :
5735  $as_echo_n "(cached) " >&6
5736else
5737  if test -z "$LD"; then
5738  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5739  for ac_dir in $PATH; do
5740    IFS="$lt_save_ifs"
5741    test -z "$ac_dir" && ac_dir=.
5742    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5743      lt_cv_path_LD="$ac_dir/$ac_prog"
5744      # Check to see if the program is GNU ld.  I'd rather use --version,
5745      # but apparently some variants of GNU ld only accept -v.
5746      # Break only if it was the GNU/non-GNU ld that we prefer.
5747      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5748      *GNU* | *'with BFD'*)
5749	test "$with_gnu_ld" != no && break
5750	;;
5751      *)
5752	test "$with_gnu_ld" != yes && break
5753	;;
5754      esac
5755    fi
5756  done
5757  IFS="$lt_save_ifs"
5758else
5759  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5760fi
5761fi
5762
5763LD="$lt_cv_path_LD"
5764if test -n "$LD"; then
5765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5766$as_echo "$LD" >&6; }
5767else
5768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769$as_echo "no" >&6; }
5770fi
5771test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5773$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5774if ${lt_cv_prog_gnu_ld+:} false; then :
5775  $as_echo_n "(cached) " >&6
5776else
5777  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5778case `$LD -v 2>&1 </dev/null` in
5779*GNU* | *'with BFD'*)
5780  lt_cv_prog_gnu_ld=yes
5781  ;;
5782*)
5783  lt_cv_prog_gnu_ld=no
5784  ;;
5785esac
5786fi
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5788$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5789with_gnu_ld=$lt_cv_prog_gnu_ld
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5800$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5801if ${lt_cv_path_NM+:} false; then :
5802  $as_echo_n "(cached) " >&6
5803else
5804  if test -n "$NM"; then
5805  # Let the user override the test.
5806  lt_cv_path_NM="$NM"
5807else
5808  lt_nm_to_check="${ac_tool_prefix}nm"
5809  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5810    lt_nm_to_check="$lt_nm_to_check nm"
5811  fi
5812  for lt_tmp_nm in $lt_nm_to_check; do
5813    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5814    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5815      IFS="$lt_save_ifs"
5816      test -z "$ac_dir" && ac_dir=.
5817      tmp_nm="$ac_dir/$lt_tmp_nm"
5818      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5819	# Check to see if the nm accepts a BSD-compat flag.
5820	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5821	#   nm: unknown option "B" ignored
5822	# Tru64's nm complains that /dev/null is an invalid object file
5823	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5824	*/dev/null* | *'Invalid file or object type'*)
5825	  lt_cv_path_NM="$tmp_nm -B"
5826	  break
5827	  ;;
5828	*)
5829	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5830	  */dev/null*)
5831	    lt_cv_path_NM="$tmp_nm -p"
5832	    break
5833	    ;;
5834	  *)
5835	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5836	    continue # so that we can try to find one that supports BSD flags
5837	    ;;
5838	  esac
5839	  ;;
5840	esac
5841      fi
5842    done
5843    IFS="$lt_save_ifs"
5844  done
5845  : ${lt_cv_path_NM=no}
5846fi
5847fi
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5849$as_echo "$lt_cv_path_NM" >&6; }
5850if test "$lt_cv_path_NM" != "no"; then
5851  NM="$lt_cv_path_NM"
5852else
5853  # Didn't find any BSD compatible name lister, look for dumpbin.
5854  if test -n "$DUMPBIN"; then :
5855    # Let the user override the test.
5856  else
5857    if test -n "$ac_tool_prefix"; then
5858  for ac_prog in dumpbin "link -dump"
5859  do
5860    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5861set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863$as_echo_n "checking for $ac_word... " >&6; }
5864if ${ac_cv_prog_DUMPBIN+:} false; then :
5865  $as_echo_n "(cached) " >&6
5866else
5867  if test -n "$DUMPBIN"; then
5868  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5869else
5870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871for as_dir in $PATH
5872do
5873  IFS=$as_save_IFS
5874  test -z "$as_dir" && as_dir=.
5875    for ac_exec_ext in '' $ac_executable_extensions; do
5876  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5877    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5879    break 2
5880  fi
5881done
5882  done
5883IFS=$as_save_IFS
5884
5885fi
5886fi
5887DUMPBIN=$ac_cv_prog_DUMPBIN
5888if test -n "$DUMPBIN"; then
5889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5890$as_echo "$DUMPBIN" >&6; }
5891else
5892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893$as_echo "no" >&6; }
5894fi
5895
5896
5897    test -n "$DUMPBIN" && break
5898  done
5899fi
5900if test -z "$DUMPBIN"; then
5901  ac_ct_DUMPBIN=$DUMPBIN
5902  for ac_prog in dumpbin "link -dump"
5903do
5904  # Extract the first word of "$ac_prog", so it can be a program name with args.
5905set dummy $ac_prog; ac_word=$2
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907$as_echo_n "checking for $ac_word... " >&6; }
5908if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5909  $as_echo_n "(cached) " >&6
5910else
5911  if test -n "$ac_ct_DUMPBIN"; then
5912  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5913else
5914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915for as_dir in $PATH
5916do
5917  IFS=$as_save_IFS
5918  test -z "$as_dir" && as_dir=.
5919    for ac_exec_ext in '' $ac_executable_extensions; do
5920  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5921    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923    break 2
5924  fi
5925done
5926  done
5927IFS=$as_save_IFS
5928
5929fi
5930fi
5931ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5932if test -n "$ac_ct_DUMPBIN"; then
5933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5934$as_echo "$ac_ct_DUMPBIN" >&6; }
5935else
5936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937$as_echo "no" >&6; }
5938fi
5939
5940
5941  test -n "$ac_ct_DUMPBIN" && break
5942done
5943
5944  if test "x$ac_ct_DUMPBIN" = x; then
5945    DUMPBIN=":"
5946  else
5947    case $cross_compiling:$ac_tool_warned in
5948yes:)
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5951ac_tool_warned=yes ;;
5952esac
5953    DUMPBIN=$ac_ct_DUMPBIN
5954  fi
5955fi
5956
5957    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5958    *COFF*)
5959      DUMPBIN="$DUMPBIN -symbols"
5960      ;;
5961    *)
5962      DUMPBIN=:
5963      ;;
5964    esac
5965  fi
5966
5967  if test "$DUMPBIN" != ":"; then
5968    NM="$DUMPBIN"
5969  fi
5970fi
5971test -z "$NM" && NM=nm
5972
5973
5974
5975
5976
5977
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5979$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5980if ${lt_cv_nm_interface+:} false; then :
5981  $as_echo_n "(cached) " >&6
5982else
5983  lt_cv_nm_interface="BSD nm"
5984  echo "int some_variable = 0;" > conftest.$ac_ext
5985  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5986  (eval "$ac_compile" 2>conftest.err)
5987  cat conftest.err >&5
5988  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5989  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5990  cat conftest.err >&5
5991  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5992  cat conftest.out >&5
5993  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5994    lt_cv_nm_interface="MS dumpbin"
5995  fi
5996  rm -f conftest*
5997fi
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5999$as_echo "$lt_cv_nm_interface" >&6; }
6000
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6002$as_echo_n "checking whether ln -s works... " >&6; }
6003LN_S=$as_ln_s
6004if test "$LN_S" = "ln -s"; then
6005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6006$as_echo "yes" >&6; }
6007else
6008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6009$as_echo "no, using $LN_S" >&6; }
6010fi
6011
6012# find the maximum length of command line arguments
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6014$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6015if ${lt_cv_sys_max_cmd_len+:} false; then :
6016  $as_echo_n "(cached) " >&6
6017else
6018    i=0
6019  teststring="ABCD"
6020
6021  case $build_os in
6022  msdosdjgpp*)
6023    # On DJGPP, this test can blow up pretty badly due to problems in libc
6024    # (any single argument exceeding 2000 bytes causes a buffer overrun
6025    # during glob expansion).  Even if it were fixed, the result of this
6026    # check would be larger than it should be.
6027    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6028    ;;
6029
6030  gnu*)
6031    # Under GNU Hurd, this test is not required because there is
6032    # no limit to the length of command line arguments.
6033    # Libtool will interpret -1 as no limit whatsoever
6034    lt_cv_sys_max_cmd_len=-1;
6035    ;;
6036
6037  cygwin* | mingw* | cegcc*)
6038    # On Win9x/ME, this test blows up -- it succeeds, but takes
6039    # about 5 minutes as the teststring grows exponentially.
6040    # Worse, since 9x/ME are not pre-emptively multitasking,
6041    # you end up with a "frozen" computer, even though with patience
6042    # the test eventually succeeds (with a max line length of 256k).
6043    # Instead, let's just punt: use the minimum linelength reported by
6044    # all of the supported platforms: 8192 (on NT/2K/XP).
6045    lt_cv_sys_max_cmd_len=8192;
6046    ;;
6047
6048  mint*)
6049    # On MiNT this can take a long time and run out of memory.
6050    lt_cv_sys_max_cmd_len=8192;
6051    ;;
6052
6053  amigaos*)
6054    # On AmigaOS with pdksh, this test takes hours, literally.
6055    # So we just punt and use a minimum line length of 8192.
6056    lt_cv_sys_max_cmd_len=8192;
6057    ;;
6058
6059  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6060    # This has been around since 386BSD, at least.  Likely further.
6061    if test -x /sbin/sysctl; then
6062      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6063    elif test -x /usr/sbin/sysctl; then
6064      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6065    else
6066      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6067    fi
6068    # And add a safety zone
6069    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6070    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6071    ;;
6072
6073  interix*)
6074    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6075    lt_cv_sys_max_cmd_len=196608
6076    ;;
6077
6078  osf*)
6079    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6080    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6081    # nice to cause kernel panics so lets avoid the loop below.
6082    # First set a reasonable default.
6083    lt_cv_sys_max_cmd_len=16384
6084    #
6085    if test -x /sbin/sysconfig; then
6086      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6087        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6088      esac
6089    fi
6090    ;;
6091  sco3.2v5*)
6092    lt_cv_sys_max_cmd_len=102400
6093    ;;
6094  sysv5* | sco5v6* | sysv4.2uw2*)
6095    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6096    if test -n "$kargmax"; then
6097      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6098    else
6099      lt_cv_sys_max_cmd_len=32768
6100    fi
6101    ;;
6102  *)
6103    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6104    if test -n "$lt_cv_sys_max_cmd_len"; then
6105      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6106      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6107    else
6108      # Make teststring a little bigger before we do anything with it.
6109      # a 1K string should be a reasonable start.
6110      for i in 1 2 3 4 5 6 7 8 ; do
6111        teststring=$teststring$teststring
6112      done
6113      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6114      # If test is not a shell built-in, we'll probably end up computing a
6115      # maximum length that is only half of the actual maximum length, but
6116      # we can't tell.
6117      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6118	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6119	      test $i != 17 # 1/2 MB should be enough
6120      do
6121        i=`expr $i + 1`
6122        teststring=$teststring$teststring
6123      done
6124      # Only check the string length outside the loop.
6125      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6126      teststring=
6127      # Add a significant safety factor because C++ compilers can tack on
6128      # massive amounts of additional arguments before passing them to the
6129      # linker.  It appears as though 1/2 is a usable value.
6130      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6131    fi
6132    ;;
6133  esac
6134
6135fi
6136
6137if test -n $lt_cv_sys_max_cmd_len ; then
6138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6139$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6140else
6141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6142$as_echo "none" >&6; }
6143fi
6144max_cmd_len=$lt_cv_sys_max_cmd_len
6145
6146
6147
6148
6149
6150
6151: ${CP="cp -f"}
6152: ${MV="mv -f"}
6153: ${RM="rm -f"}
6154
6155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6156$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6157# Try some XSI features
6158xsi_shell=no
6159( _lt_dummy="a/b/c"
6160  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6161      = c,a/b,, \
6162    && eval 'test $(( 1 + 1 )) -eq 2 \
6163    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6164  && xsi_shell=yes
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6166$as_echo "$xsi_shell" >&6; }
6167
6168
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6170$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6171lt_shell_append=no
6172( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6173    >/dev/null 2>&1 \
6174  && lt_shell_append=yes
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6176$as_echo "$lt_shell_append" >&6; }
6177
6178
6179if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6180  lt_unset=unset
6181else
6182  lt_unset=false
6183fi
6184
6185
6186
6187
6188
6189# test EBCDIC or ASCII
6190case `echo X|tr X '\101'` in
6191 A) # ASCII based system
6192    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6193  lt_SP2NL='tr \040 \012'
6194  lt_NL2SP='tr \015\012 \040\040'
6195  ;;
6196 *) # EBCDIC based system
6197  lt_SP2NL='tr \100 \n'
6198  lt_NL2SP='tr \r\n \100\100'
6199  ;;
6200esac
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6211$as_echo_n "checking for $LD option to reload object files... " >&6; }
6212if ${lt_cv_ld_reload_flag+:} false; then :
6213  $as_echo_n "(cached) " >&6
6214else
6215  lt_cv_ld_reload_flag='-r'
6216fi
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6218$as_echo "$lt_cv_ld_reload_flag" >&6; }
6219reload_flag=$lt_cv_ld_reload_flag
6220case $reload_flag in
6221"" | " "*) ;;
6222*) reload_flag=" $reload_flag" ;;
6223esac
6224reload_cmds='$LD$reload_flag -o $output$reload_objs'
6225case $host_os in
6226  darwin*)
6227    if test "$GCC" = yes; then
6228      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6229    else
6230      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6231    fi
6232    ;;
6233esac
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243if test -n "$ac_tool_prefix"; then
6244  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6245set dummy ${ac_tool_prefix}objdump; ac_word=$2
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247$as_echo_n "checking for $ac_word... " >&6; }
6248if ${ac_cv_prog_OBJDUMP+:} false; then :
6249  $as_echo_n "(cached) " >&6
6250else
6251  if test -n "$OBJDUMP"; then
6252  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6253else
6254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255for as_dir in $PATH
6256do
6257  IFS=$as_save_IFS
6258  test -z "$as_dir" && as_dir=.
6259    for ac_exec_ext in '' $ac_executable_extensions; do
6260  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263    break 2
6264  fi
6265done
6266  done
6267IFS=$as_save_IFS
6268
6269fi
6270fi
6271OBJDUMP=$ac_cv_prog_OBJDUMP
6272if test -n "$OBJDUMP"; then
6273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6274$as_echo "$OBJDUMP" >&6; }
6275else
6276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277$as_echo "no" >&6; }
6278fi
6279
6280
6281fi
6282if test -z "$ac_cv_prog_OBJDUMP"; then
6283  ac_ct_OBJDUMP=$OBJDUMP
6284  # Extract the first word of "objdump", so it can be a program name with args.
6285set dummy objdump; ac_word=$2
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287$as_echo_n "checking for $ac_word... " >&6; }
6288if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6289  $as_echo_n "(cached) " >&6
6290else
6291  if test -n "$ac_ct_OBJDUMP"; then
6292  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6293else
6294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295for as_dir in $PATH
6296do
6297  IFS=$as_save_IFS
6298  test -z "$as_dir" && as_dir=.
6299    for ac_exec_ext in '' $ac_executable_extensions; do
6300  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303    break 2
6304  fi
6305done
6306  done
6307IFS=$as_save_IFS
6308
6309fi
6310fi
6311ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6312if test -n "$ac_ct_OBJDUMP"; then
6313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6314$as_echo "$ac_ct_OBJDUMP" >&6; }
6315else
6316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317$as_echo "no" >&6; }
6318fi
6319
6320  if test "x$ac_ct_OBJDUMP" = x; then
6321    OBJDUMP="false"
6322  else
6323    case $cross_compiling:$ac_tool_warned in
6324yes:)
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6327ac_tool_warned=yes ;;
6328esac
6329    OBJDUMP=$ac_ct_OBJDUMP
6330  fi
6331else
6332  OBJDUMP="$ac_cv_prog_OBJDUMP"
6333fi
6334
6335test -z "$OBJDUMP" && OBJDUMP=objdump
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6346$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6347if ${lt_cv_deplibs_check_method+:} false; then :
6348  $as_echo_n "(cached) " >&6
6349else
6350  lt_cv_file_magic_cmd='$MAGIC_CMD'
6351lt_cv_file_magic_test_file=
6352lt_cv_deplibs_check_method='unknown'
6353# Need to set the preceding variable on all platforms that support
6354# interlibrary dependencies.
6355# 'none' -- dependencies not supported.
6356# `unknown' -- same as none, but documents that we really don't know.
6357# 'pass_all' -- all dependencies passed with no checks.
6358# 'test_compile' -- check by making test program.
6359# 'file_magic [[regex]]' -- check by looking for files in library path
6360# which responds to the $file_magic_cmd with a given extended regex.
6361# If you have `file' or equivalent on your system and you're not sure
6362# whether `pass_all' will *always* work, you probably want this one.
6363
6364case $host_os in
6365aix[4-9]*)
6366  lt_cv_deplibs_check_method=pass_all
6367  ;;
6368
6369beos*)
6370  lt_cv_deplibs_check_method=pass_all
6371  ;;
6372
6373bsdi[45]*)
6374  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6375  lt_cv_file_magic_cmd='/usr/bin/file -L'
6376  lt_cv_file_magic_test_file=/shlib/libc.so
6377  ;;
6378
6379cygwin*)
6380  # func_win32_libid is a shell function defined in ltmain.sh
6381  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6382  lt_cv_file_magic_cmd='func_win32_libid'
6383  ;;
6384
6385mingw* | pw32*)
6386  # Base MSYS/MinGW do not provide the 'file' command needed by
6387  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6388  # unless we find 'file', for example because we are cross-compiling.
6389  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6390  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6391    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6392    lt_cv_file_magic_cmd='func_win32_libid'
6393  else
6394    # Keep this pattern in sync with the one in func_win32_libid.
6395    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6396    lt_cv_file_magic_cmd='$OBJDUMP -f'
6397  fi
6398  ;;
6399
6400cegcc*)
6401  # use the weaker test based on 'objdump'. See mingw*.
6402  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6403  lt_cv_file_magic_cmd='$OBJDUMP -f'
6404  ;;
6405
6406darwin* | rhapsody*)
6407  lt_cv_deplibs_check_method=pass_all
6408  ;;
6409
6410freebsd* | dragonfly*)
6411  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6412    case $host_cpu in
6413    i*86 )
6414      # Not sure whether the presence of OpenBSD here was a mistake.
6415      # Let's accept both of them until this is cleared up.
6416      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6417      lt_cv_file_magic_cmd=/usr/bin/file
6418      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6419      ;;
6420    esac
6421  else
6422    lt_cv_deplibs_check_method=pass_all
6423  fi
6424  ;;
6425
6426gnu*)
6427  lt_cv_deplibs_check_method=pass_all
6428  ;;
6429
6430haiku*)
6431  lt_cv_deplibs_check_method=pass_all
6432  ;;
6433
6434hpux10.20* | hpux11*)
6435  lt_cv_file_magic_cmd=/usr/bin/file
6436  case $host_cpu in
6437  ia64*)
6438    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6439    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6440    ;;
6441  hppa*64*)
6442    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6443    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6444    ;;
6445  *)
6446    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6447    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6448    ;;
6449  esac
6450  ;;
6451
6452interix[3-9]*)
6453  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6454  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6455  ;;
6456
6457irix5* | irix6* | nonstopux*)
6458  case $LD in
6459  *-32|*"-32 ") libmagic=32-bit;;
6460  *-n32|*"-n32 ") libmagic=N32;;
6461  *-64|*"-64 ") libmagic=64-bit;;
6462  *) libmagic=never-match;;
6463  esac
6464  lt_cv_deplibs_check_method=pass_all
6465  ;;
6466
6467# This must be Linux ELF.
6468linux* | k*bsd*-gnu | kopensolaris*-gnu)
6469  lt_cv_deplibs_check_method=pass_all
6470  ;;
6471
6472netbsd*)
6473  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6474    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6475  else
6476    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6477  fi
6478  ;;
6479
6480newos6*)
6481  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6482  lt_cv_file_magic_cmd=/usr/bin/file
6483  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6484  ;;
6485
6486*nto* | *qnx*)
6487  lt_cv_deplibs_check_method=pass_all
6488  ;;
6489
6490openbsd*)
6491  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6492    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6493  else
6494    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6495  fi
6496  ;;
6497
6498osf3* | osf4* | osf5*)
6499  lt_cv_deplibs_check_method=pass_all
6500  ;;
6501
6502rdos*)
6503  lt_cv_deplibs_check_method=pass_all
6504  ;;
6505
6506solaris*)
6507  lt_cv_deplibs_check_method=pass_all
6508  ;;
6509
6510sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6511  lt_cv_deplibs_check_method=pass_all
6512  ;;
6513
6514sysv4 | sysv4.3*)
6515  case $host_vendor in
6516  motorola)
6517    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]'
6518    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6519    ;;
6520  ncr)
6521    lt_cv_deplibs_check_method=pass_all
6522    ;;
6523  sequent)
6524    lt_cv_file_magic_cmd='/bin/file'
6525    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6526    ;;
6527  sni)
6528    lt_cv_file_magic_cmd='/bin/file'
6529    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6530    lt_cv_file_magic_test_file=/lib/libc.so
6531    ;;
6532  siemens)
6533    lt_cv_deplibs_check_method=pass_all
6534    ;;
6535  pc)
6536    lt_cv_deplibs_check_method=pass_all
6537    ;;
6538  esac
6539  ;;
6540
6541tpf*)
6542  lt_cv_deplibs_check_method=pass_all
6543  ;;
6544esac
6545
6546fi
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6548$as_echo "$lt_cv_deplibs_check_method" >&6; }
6549file_magic_cmd=$lt_cv_file_magic_cmd
6550deplibs_check_method=$lt_cv_deplibs_check_method
6551test -z "$deplibs_check_method" && deplibs_check_method=unknown
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564if test -n "$ac_tool_prefix"; then
6565  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6566set dummy ${ac_tool_prefix}ar; ac_word=$2
6567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568$as_echo_n "checking for $ac_word... " >&6; }
6569if ${ac_cv_prog_AR+:} false; then :
6570  $as_echo_n "(cached) " >&6
6571else
6572  if test -n "$AR"; then
6573  ac_cv_prog_AR="$AR" # Let the user override the test.
6574else
6575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576for as_dir in $PATH
6577do
6578  IFS=$as_save_IFS
6579  test -z "$as_dir" && as_dir=.
6580    for ac_exec_ext in '' $ac_executable_extensions; do
6581  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582    ac_cv_prog_AR="${ac_tool_prefix}ar"
6583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6584    break 2
6585  fi
6586done
6587  done
6588IFS=$as_save_IFS
6589
6590fi
6591fi
6592AR=$ac_cv_prog_AR
6593if test -n "$AR"; then
6594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6595$as_echo "$AR" >&6; }
6596else
6597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598$as_echo "no" >&6; }
6599fi
6600
6601
6602fi
6603if test -z "$ac_cv_prog_AR"; then
6604  ac_ct_AR=$AR
6605  # Extract the first word of "ar", so it can be a program name with args.
6606set dummy ar; ac_word=$2
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608$as_echo_n "checking for $ac_word... " >&6; }
6609if ${ac_cv_prog_ac_ct_AR+:} false; then :
6610  $as_echo_n "(cached) " >&6
6611else
6612  if test -n "$ac_ct_AR"; then
6613  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6614else
6615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616for as_dir in $PATH
6617do
6618  IFS=$as_save_IFS
6619  test -z "$as_dir" && as_dir=.
6620    for ac_exec_ext in '' $ac_executable_extensions; do
6621  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6622    ac_cv_prog_ac_ct_AR="ar"
6623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6624    break 2
6625  fi
6626done
6627  done
6628IFS=$as_save_IFS
6629
6630fi
6631fi
6632ac_ct_AR=$ac_cv_prog_ac_ct_AR
6633if test -n "$ac_ct_AR"; then
6634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6635$as_echo "$ac_ct_AR" >&6; }
6636else
6637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638$as_echo "no" >&6; }
6639fi
6640
6641  if test "x$ac_ct_AR" = x; then
6642    AR="false"
6643  else
6644    case $cross_compiling:$ac_tool_warned in
6645yes:)
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6648ac_tool_warned=yes ;;
6649esac
6650    AR=$ac_ct_AR
6651  fi
6652else
6653  AR="$ac_cv_prog_AR"
6654fi
6655
6656test -z "$AR" && AR=ar
6657test -z "$AR_FLAGS" && AR_FLAGS=cru
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669if test -n "$ac_tool_prefix"; then
6670  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6671set dummy ${ac_tool_prefix}strip; ac_word=$2
6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673$as_echo_n "checking for $ac_word... " >&6; }
6674if ${ac_cv_prog_STRIP+:} false; then :
6675  $as_echo_n "(cached) " >&6
6676else
6677  if test -n "$STRIP"; then
6678  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6679else
6680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681for as_dir in $PATH
6682do
6683  IFS=$as_save_IFS
6684  test -z "$as_dir" && as_dir=.
6685    for ac_exec_ext in '' $ac_executable_extensions; do
6686  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689    break 2
6690  fi
6691done
6692  done
6693IFS=$as_save_IFS
6694
6695fi
6696fi
6697STRIP=$ac_cv_prog_STRIP
6698if test -n "$STRIP"; then
6699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6700$as_echo "$STRIP" >&6; }
6701else
6702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703$as_echo "no" >&6; }
6704fi
6705
6706
6707fi
6708if test -z "$ac_cv_prog_STRIP"; then
6709  ac_ct_STRIP=$STRIP
6710  # Extract the first word of "strip", so it can be a program name with args.
6711set dummy strip; ac_word=$2
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713$as_echo_n "checking for $ac_word... " >&6; }
6714if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6715  $as_echo_n "(cached) " >&6
6716else
6717  if test -n "$ac_ct_STRIP"; then
6718  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6719else
6720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721for as_dir in $PATH
6722do
6723  IFS=$as_save_IFS
6724  test -z "$as_dir" && as_dir=.
6725    for ac_exec_ext in '' $ac_executable_extensions; do
6726  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6727    ac_cv_prog_ac_ct_STRIP="strip"
6728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729    break 2
6730  fi
6731done
6732  done
6733IFS=$as_save_IFS
6734
6735fi
6736fi
6737ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6738if test -n "$ac_ct_STRIP"; then
6739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6740$as_echo "$ac_ct_STRIP" >&6; }
6741else
6742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743$as_echo "no" >&6; }
6744fi
6745
6746  if test "x$ac_ct_STRIP" = x; then
6747    STRIP=":"
6748  else
6749    case $cross_compiling:$ac_tool_warned in
6750yes:)
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6753ac_tool_warned=yes ;;
6754esac
6755    STRIP=$ac_ct_STRIP
6756  fi
6757else
6758  STRIP="$ac_cv_prog_STRIP"
6759fi
6760
6761test -z "$STRIP" && STRIP=:
6762
6763
6764
6765
6766
6767
6768if test -n "$ac_tool_prefix"; then
6769  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6770set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772$as_echo_n "checking for $ac_word... " >&6; }
6773if ${ac_cv_prog_RANLIB+:} false; then :
6774  $as_echo_n "(cached) " >&6
6775else
6776  if test -n "$RANLIB"; then
6777  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6778else
6779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780for as_dir in $PATH
6781do
6782  IFS=$as_save_IFS
6783  test -z "$as_dir" && as_dir=.
6784    for ac_exec_ext in '' $ac_executable_extensions; do
6785  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788    break 2
6789  fi
6790done
6791  done
6792IFS=$as_save_IFS
6793
6794fi
6795fi
6796RANLIB=$ac_cv_prog_RANLIB
6797if test -n "$RANLIB"; then
6798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6799$as_echo "$RANLIB" >&6; }
6800else
6801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802$as_echo "no" >&6; }
6803fi
6804
6805
6806fi
6807if test -z "$ac_cv_prog_RANLIB"; then
6808  ac_ct_RANLIB=$RANLIB
6809  # Extract the first word of "ranlib", so it can be a program name with args.
6810set dummy ranlib; ac_word=$2
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812$as_echo_n "checking for $ac_word... " >&6; }
6813if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6814  $as_echo_n "(cached) " >&6
6815else
6816  if test -n "$ac_ct_RANLIB"; then
6817  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6818else
6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822  IFS=$as_save_IFS
6823  test -z "$as_dir" && as_dir=.
6824    for ac_exec_ext in '' $ac_executable_extensions; do
6825  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826    ac_cv_prog_ac_ct_RANLIB="ranlib"
6827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828    break 2
6829  fi
6830done
6831  done
6832IFS=$as_save_IFS
6833
6834fi
6835fi
6836ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6837if test -n "$ac_ct_RANLIB"; then
6838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6839$as_echo "$ac_ct_RANLIB" >&6; }
6840else
6841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842$as_echo "no" >&6; }
6843fi
6844
6845  if test "x$ac_ct_RANLIB" = x; then
6846    RANLIB=":"
6847  else
6848    case $cross_compiling:$ac_tool_warned in
6849yes:)
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6852ac_tool_warned=yes ;;
6853esac
6854    RANLIB=$ac_ct_RANLIB
6855  fi
6856else
6857  RANLIB="$ac_cv_prog_RANLIB"
6858fi
6859
6860test -z "$RANLIB" && RANLIB=:
6861
6862
6863
6864
6865
6866
6867# Determine commands to create old-style static archives.
6868old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6869old_postinstall_cmds='chmod 644 $oldlib'
6870old_postuninstall_cmds=
6871
6872if test -n "$RANLIB"; then
6873  case $host_os in
6874  openbsd*)
6875    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6876    ;;
6877  *)
6878    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6879    ;;
6880  esac
6881  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6882fi
6883
6884case $host_os in
6885  darwin*)
6886    lock_old_archive_extraction=yes ;;
6887  *)
6888    lock_old_archive_extraction=no ;;
6889esac
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929# If no C compiler was specified, use CC.
6930LTCC=${LTCC-"$CC"}
6931
6932# If no C compiler flags were specified, use CFLAGS.
6933LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6934
6935# Allow CC to be a program name with arguments.
6936compiler=$CC
6937
6938
6939# Check for command to grab the raw symbol name followed by C symbol from nm.
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6941$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6942if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6943  $as_echo_n "(cached) " >&6
6944else
6945
6946# These are sane defaults that work on at least a few old systems.
6947# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6948
6949# Character class describing NM global symbol codes.
6950symcode='[BCDEGRST]'
6951
6952# Regexp to match symbols that can be accessed directly from C.
6953sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6954
6955# Define system-specific variables.
6956case $host_os in
6957aix*)
6958  symcode='[BCDT]'
6959  ;;
6960cygwin* | mingw* | pw32* | cegcc*)
6961  symcode='[ABCDGISTW]'
6962  ;;
6963hpux*)
6964  if test "$host_cpu" = ia64; then
6965    symcode='[ABCDEGRST]'
6966  fi
6967  ;;
6968irix* | nonstopux*)
6969  symcode='[BCDEGRST]'
6970  ;;
6971osf*)
6972  symcode='[BCDEGQRST]'
6973  ;;
6974solaris*)
6975  symcode='[BDRT]'
6976  ;;
6977sco3.2v5*)
6978  symcode='[DT]'
6979  ;;
6980sysv4.2uw2*)
6981  symcode='[DT]'
6982  ;;
6983sysv5* | sco5v6* | unixware* | OpenUNIX*)
6984  symcode='[ABDT]'
6985  ;;
6986sysv4)
6987  symcode='[DFNSTU]'
6988  ;;
6989esac
6990
6991# If we're using GNU nm, then use its standard symbol codes.
6992case `$NM -V 2>&1` in
6993*GNU* | *'with BFD'*)
6994  symcode='[ABCDGIRSTW]' ;;
6995esac
6996
6997# Transform an extracted symbol line into a proper C declaration.
6998# Some systems (esp. on ia64) link data and code symbols differently,
6999# so use this general approach.
7000lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7001
7002# Transform an extracted symbol line into symbol name and symbol address
7003lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7004lt_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'"
7005
7006# Handle CRLF in mingw tool chain
7007opt_cr=
7008case $build_os in
7009mingw*)
7010  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7011  ;;
7012esac
7013
7014# Try without a prefix underscore, then with it.
7015for ac_symprfx in "" "_"; do
7016
7017  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7018  symxfrm="\\1 $ac_symprfx\\2 \\2"
7019
7020  # Write the raw and C identifiers.
7021  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7022    # Fake it for dumpbin and say T for any non-static function
7023    # and D for any global variable.
7024    # Also find C++ and __fastcall symbols from MSVC++,
7025    # which start with @ or ?.
7026    lt_cv_sys_global_symbol_pipe="$AWK '"\
7027"     {last_section=section; section=\$ 3};"\
7028"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7029"     \$ 0!~/External *\|/{next};"\
7030"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7031"     {if(hide[section]) next};"\
7032"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7033"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7034"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7035"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7036"     ' prfx=^$ac_symprfx"
7037  else
7038    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7039  fi
7040
7041  # Check to see that the pipe works correctly.
7042  pipe_works=no
7043
7044  rm -f conftest*
7045  cat > conftest.$ac_ext <<_LT_EOF
7046#ifdef __cplusplus
7047extern "C" {
7048#endif
7049char nm_test_var;
7050void nm_test_func(void);
7051void nm_test_func(void){}
7052#ifdef __cplusplus
7053}
7054#endif
7055int main(){nm_test_var='a';nm_test_func();return(0);}
7056_LT_EOF
7057
7058  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7059  (eval $ac_compile) 2>&5
7060  ac_status=$?
7061  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7062  test $ac_status = 0; }; then
7063    # Now try to grab the symbols.
7064    nlist=conftest.nm
7065    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7066  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7067  ac_status=$?
7068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7069  test $ac_status = 0; } && test -s "$nlist"; then
7070      # Try sorting and uniquifying the output.
7071      if sort "$nlist" | uniq > "$nlist"T; then
7072	mv -f "$nlist"T "$nlist"
7073      else
7074	rm -f "$nlist"T
7075      fi
7076
7077      # Make sure that we snagged all the symbols we need.
7078      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7079	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7080	  cat <<_LT_EOF > conftest.$ac_ext
7081#ifdef __cplusplus
7082extern "C" {
7083#endif
7084
7085_LT_EOF
7086	  # Now generate the symbol file.
7087	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7088
7089	  cat <<_LT_EOF >> conftest.$ac_ext
7090
7091/* The mapping between symbol names and symbols.  */
7092const struct {
7093  const char *name;
7094  void       *address;
7095}
7096lt__PROGRAM__LTX_preloaded_symbols[] =
7097{
7098  { "@PROGRAM@", (void *) 0 },
7099_LT_EOF
7100	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7101	  cat <<\_LT_EOF >> conftest.$ac_ext
7102  {0, (void *) 0}
7103};
7104
7105/* This works around a problem in FreeBSD linker */
7106#ifdef FREEBSD_WORKAROUND
7107static const void *lt_preloaded_setup() {
7108  return lt__PROGRAM__LTX_preloaded_symbols;
7109}
7110#endif
7111
7112#ifdef __cplusplus
7113}
7114#endif
7115_LT_EOF
7116	  # Now try linking the two files.
7117	  mv conftest.$ac_objext conftstm.$ac_objext
7118	  lt_save_LIBS="$LIBS"
7119	  lt_save_CFLAGS="$CFLAGS"
7120	  LIBS="conftstm.$ac_objext"
7121	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7122	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7123  (eval $ac_link) 2>&5
7124  ac_status=$?
7125  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7126  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7127	    pipe_works=yes
7128	  fi
7129	  LIBS="$lt_save_LIBS"
7130	  CFLAGS="$lt_save_CFLAGS"
7131	else
7132	  echo "cannot find nm_test_func in $nlist" >&5
7133	fi
7134      else
7135	echo "cannot find nm_test_var in $nlist" >&5
7136      fi
7137    else
7138      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7139    fi
7140  else
7141    echo "$progname: failed program was:" >&5
7142    cat conftest.$ac_ext >&5
7143  fi
7144  rm -rf conftest* conftst*
7145
7146  # Do not use the global_symbol_pipe unless it works.
7147  if test "$pipe_works" = yes; then
7148    break
7149  else
7150    lt_cv_sys_global_symbol_pipe=
7151  fi
7152done
7153
7154fi
7155
7156if test -z "$lt_cv_sys_global_symbol_pipe"; then
7157  lt_cv_sys_global_symbol_to_cdecl=
7158fi
7159if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7161$as_echo "failed" >&6; }
7162else
7163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7164$as_echo "ok" >&6; }
7165fi
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188# Check whether --enable-libtool-lock was given.
7189if test "${enable_libtool_lock+set}" = set; then :
7190  enableval=$enable_libtool_lock;
7191fi
7192
7193test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7194
7195# Some flags need to be propagated to the compiler or linker for good
7196# libtool support.
7197case $host in
7198ia64-*-hpux*)
7199  # Find out which ABI we are using.
7200  echo 'int i;' > conftest.$ac_ext
7201  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7202  (eval $ac_compile) 2>&5
7203  ac_status=$?
7204  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7205  test $ac_status = 0; }; then
7206    case `/usr/bin/file conftest.$ac_objext` in
7207      *ELF-32*)
7208	HPUX_IA64_MODE="32"
7209	;;
7210      *ELF-64*)
7211	HPUX_IA64_MODE="64"
7212	;;
7213    esac
7214  fi
7215  rm -rf conftest*
7216  ;;
7217*-*-irix6*)
7218  # Find out which ABI we are using.
7219  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7220  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7221  (eval $ac_compile) 2>&5
7222  ac_status=$?
7223  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7224  test $ac_status = 0; }; then
7225    if test "$lt_cv_prog_gnu_ld" = yes; then
7226      case `/usr/bin/file conftest.$ac_objext` in
7227	*32-bit*)
7228	  LD="${LD-ld} -melf32bsmip"
7229	  ;;
7230	*N32*)
7231	  LD="${LD-ld} -melf32bmipn32"
7232	  ;;
7233	*64-bit*)
7234	  LD="${LD-ld} -melf64bmip"
7235	;;
7236      esac
7237    else
7238      case `/usr/bin/file conftest.$ac_objext` in
7239	*32-bit*)
7240	  LD="${LD-ld} -32"
7241	  ;;
7242	*N32*)
7243	  LD="${LD-ld} -n32"
7244	  ;;
7245	*64-bit*)
7246	  LD="${LD-ld} -64"
7247	  ;;
7248      esac
7249    fi
7250  fi
7251  rm -rf conftest*
7252  ;;
7253
7254x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7255s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7256  # Find out which ABI we are using.
7257  echo 'int i;' > conftest.$ac_ext
7258  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7259  (eval $ac_compile) 2>&5
7260  ac_status=$?
7261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7262  test $ac_status = 0; }; then
7263    case `/usr/bin/file conftest.o` in
7264      *32-bit*)
7265	case $host in
7266	  x86_64-*kfreebsd*-gnu)
7267	    LD="${LD-ld} -m elf_i386_fbsd"
7268	    ;;
7269	  x86_64-*linux*)
7270	    LD="${LD-ld} -m elf_i386"
7271	    ;;
7272	  ppc64-*linux*|powerpc64-*linux*)
7273	    LD="${LD-ld} -m elf32ppclinux"
7274	    ;;
7275	  s390x-*linux*)
7276	    LD="${LD-ld} -m elf_s390"
7277	    ;;
7278	  sparc64-*linux*)
7279	    LD="${LD-ld} -m elf32_sparc"
7280	    ;;
7281	esac
7282	;;
7283      *64-bit*)
7284	case $host in
7285	  x86_64-*kfreebsd*-gnu)
7286	    LD="${LD-ld} -m elf_x86_64_fbsd"
7287	    ;;
7288	  x86_64-*linux*)
7289	    LD="${LD-ld} -m elf_x86_64"
7290	    ;;
7291	  ppc*-*linux*|powerpc*-*linux*)
7292	    LD="${LD-ld} -m elf64ppc"
7293	    ;;
7294	  s390*-*linux*|s390*-*tpf*)
7295	    LD="${LD-ld} -m elf64_s390"
7296	    ;;
7297	  sparc*-*linux*)
7298	    LD="${LD-ld} -m elf64_sparc"
7299	    ;;
7300	esac
7301	;;
7302    esac
7303  fi
7304  rm -rf conftest*
7305  ;;
7306
7307*-*-sco3.2v5*)
7308  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7309  SAVE_CFLAGS="$CFLAGS"
7310  CFLAGS="$CFLAGS -belf"
7311  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7312$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7313if ${lt_cv_cc_needs_belf+:} false; then :
7314  $as_echo_n "(cached) " >&6
7315else
7316  ac_ext=c
7317ac_cpp='$CPP $CPPFLAGS'
7318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7320ac_compiler_gnu=$ac_cv_c_compiler_gnu
7321
7322     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323/* end confdefs.h.  */
7324
7325int
7326main ()
7327{
7328
7329  ;
7330  return 0;
7331}
7332_ACEOF
7333if ac_fn_c_try_link "$LINENO"; then :
7334  lt_cv_cc_needs_belf=yes
7335else
7336  lt_cv_cc_needs_belf=no
7337fi
7338rm -f core conftest.err conftest.$ac_objext \
7339    conftest$ac_exeext conftest.$ac_ext
7340     ac_ext=c
7341ac_cpp='$CPP $CPPFLAGS'
7342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7344ac_compiler_gnu=$ac_cv_c_compiler_gnu
7345
7346fi
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7348$as_echo "$lt_cv_cc_needs_belf" >&6; }
7349  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7350    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7351    CFLAGS="$SAVE_CFLAGS"
7352  fi
7353  ;;
7354sparc*-*solaris*)
7355  # Find out which ABI we are using.
7356  echo 'int i;' > conftest.$ac_ext
7357  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7358  (eval $ac_compile) 2>&5
7359  ac_status=$?
7360  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7361  test $ac_status = 0; }; then
7362    case `/usr/bin/file conftest.o` in
7363    *64-bit*)
7364      case $lt_cv_prog_gnu_ld in
7365      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7366      *)
7367	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7368	  LD="${LD-ld} -64"
7369	fi
7370	;;
7371      esac
7372      ;;
7373    esac
7374  fi
7375  rm -rf conftest*
7376  ;;
7377esac
7378
7379need_locks="$enable_libtool_lock"
7380
7381
7382  case $host_os in
7383    rhapsody* | darwin*)
7384    if test -n "$ac_tool_prefix"; then
7385  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7386set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388$as_echo_n "checking for $ac_word... " >&6; }
7389if ${ac_cv_prog_DSYMUTIL+:} false; then :
7390  $as_echo_n "(cached) " >&6
7391else
7392  if test -n "$DSYMUTIL"; then
7393  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7394else
7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396for as_dir in $PATH
7397do
7398  IFS=$as_save_IFS
7399  test -z "$as_dir" && as_dir=.
7400    for ac_exec_ext in '' $ac_executable_extensions; do
7401  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7402    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404    break 2
7405  fi
7406done
7407  done
7408IFS=$as_save_IFS
7409
7410fi
7411fi
7412DSYMUTIL=$ac_cv_prog_DSYMUTIL
7413if test -n "$DSYMUTIL"; then
7414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7415$as_echo "$DSYMUTIL" >&6; }
7416else
7417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418$as_echo "no" >&6; }
7419fi
7420
7421
7422fi
7423if test -z "$ac_cv_prog_DSYMUTIL"; then
7424  ac_ct_DSYMUTIL=$DSYMUTIL
7425  # Extract the first word of "dsymutil", so it can be a program name with args.
7426set dummy dsymutil; ac_word=$2
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428$as_echo_n "checking for $ac_word... " >&6; }
7429if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7430  $as_echo_n "(cached) " >&6
7431else
7432  if test -n "$ac_ct_DSYMUTIL"; then
7433  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7434else
7435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436for as_dir in $PATH
7437do
7438  IFS=$as_save_IFS
7439  test -z "$as_dir" && as_dir=.
7440    for ac_exec_ext in '' $ac_executable_extensions; do
7441  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7442    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444    break 2
7445  fi
7446done
7447  done
7448IFS=$as_save_IFS
7449
7450fi
7451fi
7452ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7453if test -n "$ac_ct_DSYMUTIL"; then
7454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7455$as_echo "$ac_ct_DSYMUTIL" >&6; }
7456else
7457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458$as_echo "no" >&6; }
7459fi
7460
7461  if test "x$ac_ct_DSYMUTIL" = x; then
7462    DSYMUTIL=":"
7463  else
7464    case $cross_compiling:$ac_tool_warned in
7465yes:)
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7468ac_tool_warned=yes ;;
7469esac
7470    DSYMUTIL=$ac_ct_DSYMUTIL
7471  fi
7472else
7473  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7474fi
7475
7476    if test -n "$ac_tool_prefix"; then
7477  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7478set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480$as_echo_n "checking for $ac_word... " >&6; }
7481if ${ac_cv_prog_NMEDIT+:} false; then :
7482  $as_echo_n "(cached) " >&6
7483else
7484  if test -n "$NMEDIT"; then
7485  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7486else
7487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488for as_dir in $PATH
7489do
7490  IFS=$as_save_IFS
7491  test -z "$as_dir" && as_dir=.
7492    for ac_exec_ext in '' $ac_executable_extensions; do
7493  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7494    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7495    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496    break 2
7497  fi
7498done
7499  done
7500IFS=$as_save_IFS
7501
7502fi
7503fi
7504NMEDIT=$ac_cv_prog_NMEDIT
7505if test -n "$NMEDIT"; then
7506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7507$as_echo "$NMEDIT" >&6; }
7508else
7509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510$as_echo "no" >&6; }
7511fi
7512
7513
7514fi
7515if test -z "$ac_cv_prog_NMEDIT"; then
7516  ac_ct_NMEDIT=$NMEDIT
7517  # Extract the first word of "nmedit", so it can be a program name with args.
7518set dummy nmedit; ac_word=$2
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520$as_echo_n "checking for $ac_word... " >&6; }
7521if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7522  $as_echo_n "(cached) " >&6
7523else
7524  if test -n "$ac_ct_NMEDIT"; then
7525  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7526else
7527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528for as_dir in $PATH
7529do
7530  IFS=$as_save_IFS
7531  test -z "$as_dir" && as_dir=.
7532    for ac_exec_ext in '' $ac_executable_extensions; do
7533  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7534    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536    break 2
7537  fi
7538done
7539  done
7540IFS=$as_save_IFS
7541
7542fi
7543fi
7544ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7545if test -n "$ac_ct_NMEDIT"; then
7546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7547$as_echo "$ac_ct_NMEDIT" >&6; }
7548else
7549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550$as_echo "no" >&6; }
7551fi
7552
7553  if test "x$ac_ct_NMEDIT" = x; then
7554    NMEDIT=":"
7555  else
7556    case $cross_compiling:$ac_tool_warned in
7557yes:)
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7560ac_tool_warned=yes ;;
7561esac
7562    NMEDIT=$ac_ct_NMEDIT
7563  fi
7564else
7565  NMEDIT="$ac_cv_prog_NMEDIT"
7566fi
7567
7568    if test -n "$ac_tool_prefix"; then
7569  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7570set dummy ${ac_tool_prefix}lipo; ac_word=$2
7571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572$as_echo_n "checking for $ac_word... " >&6; }
7573if ${ac_cv_prog_LIPO+:} false; then :
7574  $as_echo_n "(cached) " >&6
7575else
7576  if test -n "$LIPO"; then
7577  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7578else
7579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580for as_dir in $PATH
7581do
7582  IFS=$as_save_IFS
7583  test -z "$as_dir" && as_dir=.
7584    for ac_exec_ext in '' $ac_executable_extensions; do
7585  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7586    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588    break 2
7589  fi
7590done
7591  done
7592IFS=$as_save_IFS
7593
7594fi
7595fi
7596LIPO=$ac_cv_prog_LIPO
7597if test -n "$LIPO"; then
7598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7599$as_echo "$LIPO" >&6; }
7600else
7601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602$as_echo "no" >&6; }
7603fi
7604
7605
7606fi
7607if test -z "$ac_cv_prog_LIPO"; then
7608  ac_ct_LIPO=$LIPO
7609  # Extract the first word of "lipo", so it can be a program name with args.
7610set dummy lipo; ac_word=$2
7611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612$as_echo_n "checking for $ac_word... " >&6; }
7613if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7614  $as_echo_n "(cached) " >&6
7615else
7616  if test -n "$ac_ct_LIPO"; then
7617  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7618else
7619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620for as_dir in $PATH
7621do
7622  IFS=$as_save_IFS
7623  test -z "$as_dir" && as_dir=.
7624    for ac_exec_ext in '' $ac_executable_extensions; do
7625  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7626    ac_cv_prog_ac_ct_LIPO="lipo"
7627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628    break 2
7629  fi
7630done
7631  done
7632IFS=$as_save_IFS
7633
7634fi
7635fi
7636ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7637if test -n "$ac_ct_LIPO"; then
7638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7639$as_echo "$ac_ct_LIPO" >&6; }
7640else
7641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642$as_echo "no" >&6; }
7643fi
7644
7645  if test "x$ac_ct_LIPO" = x; then
7646    LIPO=":"
7647  else
7648    case $cross_compiling:$ac_tool_warned in
7649yes:)
7650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7652ac_tool_warned=yes ;;
7653esac
7654    LIPO=$ac_ct_LIPO
7655  fi
7656else
7657  LIPO="$ac_cv_prog_LIPO"
7658fi
7659
7660    if test -n "$ac_tool_prefix"; then
7661  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7662set dummy ${ac_tool_prefix}otool; ac_word=$2
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664$as_echo_n "checking for $ac_word... " >&6; }
7665if ${ac_cv_prog_OTOOL+:} false; then :
7666  $as_echo_n "(cached) " >&6
7667else
7668  if test -n "$OTOOL"; then
7669  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7670else
7671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672for as_dir in $PATH
7673do
7674  IFS=$as_save_IFS
7675  test -z "$as_dir" && as_dir=.
7676    for ac_exec_ext in '' $ac_executable_extensions; do
7677  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7678    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680    break 2
7681  fi
7682done
7683  done
7684IFS=$as_save_IFS
7685
7686fi
7687fi
7688OTOOL=$ac_cv_prog_OTOOL
7689if test -n "$OTOOL"; then
7690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7691$as_echo "$OTOOL" >&6; }
7692else
7693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694$as_echo "no" >&6; }
7695fi
7696
7697
7698fi
7699if test -z "$ac_cv_prog_OTOOL"; then
7700  ac_ct_OTOOL=$OTOOL
7701  # Extract the first word of "otool", so it can be a program name with args.
7702set dummy otool; ac_word=$2
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704$as_echo_n "checking for $ac_word... " >&6; }
7705if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7706  $as_echo_n "(cached) " >&6
7707else
7708  if test -n "$ac_ct_OTOOL"; then
7709  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7710else
7711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712for as_dir in $PATH
7713do
7714  IFS=$as_save_IFS
7715  test -z "$as_dir" && as_dir=.
7716    for ac_exec_ext in '' $ac_executable_extensions; do
7717  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7718    ac_cv_prog_ac_ct_OTOOL="otool"
7719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720    break 2
7721  fi
7722done
7723  done
7724IFS=$as_save_IFS
7725
7726fi
7727fi
7728ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7729if test -n "$ac_ct_OTOOL"; then
7730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7731$as_echo "$ac_ct_OTOOL" >&6; }
7732else
7733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734$as_echo "no" >&6; }
7735fi
7736
7737  if test "x$ac_ct_OTOOL" = x; then
7738    OTOOL=":"
7739  else
7740    case $cross_compiling:$ac_tool_warned in
7741yes:)
7742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7744ac_tool_warned=yes ;;
7745esac
7746    OTOOL=$ac_ct_OTOOL
7747  fi
7748else
7749  OTOOL="$ac_cv_prog_OTOOL"
7750fi
7751
7752    if test -n "$ac_tool_prefix"; then
7753  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7754set dummy ${ac_tool_prefix}otool64; ac_word=$2
7755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756$as_echo_n "checking for $ac_word... " >&6; }
7757if ${ac_cv_prog_OTOOL64+:} false; then :
7758  $as_echo_n "(cached) " >&6
7759else
7760  if test -n "$OTOOL64"; then
7761  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7762else
7763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764for as_dir in $PATH
7765do
7766  IFS=$as_save_IFS
7767  test -z "$as_dir" && as_dir=.
7768    for ac_exec_ext in '' $ac_executable_extensions; do
7769  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7770    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772    break 2
7773  fi
7774done
7775  done
7776IFS=$as_save_IFS
7777
7778fi
7779fi
7780OTOOL64=$ac_cv_prog_OTOOL64
7781if test -n "$OTOOL64"; then
7782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7783$as_echo "$OTOOL64" >&6; }
7784else
7785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786$as_echo "no" >&6; }
7787fi
7788
7789
7790fi
7791if test -z "$ac_cv_prog_OTOOL64"; then
7792  ac_ct_OTOOL64=$OTOOL64
7793  # Extract the first word of "otool64", so it can be a program name with args.
7794set dummy otool64; ac_word=$2
7795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7796$as_echo_n "checking for $ac_word... " >&6; }
7797if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7798  $as_echo_n "(cached) " >&6
7799else
7800  if test -n "$ac_ct_OTOOL64"; then
7801  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7802else
7803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804for as_dir in $PATH
7805do
7806  IFS=$as_save_IFS
7807  test -z "$as_dir" && as_dir=.
7808    for ac_exec_ext in '' $ac_executable_extensions; do
7809  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7810    ac_cv_prog_ac_ct_OTOOL64="otool64"
7811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812    break 2
7813  fi
7814done
7815  done
7816IFS=$as_save_IFS
7817
7818fi
7819fi
7820ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7821if test -n "$ac_ct_OTOOL64"; then
7822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7823$as_echo "$ac_ct_OTOOL64" >&6; }
7824else
7825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826$as_echo "no" >&6; }
7827fi
7828
7829  if test "x$ac_ct_OTOOL64" = x; then
7830    OTOOL64=":"
7831  else
7832    case $cross_compiling:$ac_tool_warned in
7833yes:)
7834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7836ac_tool_warned=yes ;;
7837esac
7838    OTOOL64=$ac_ct_OTOOL64
7839  fi
7840else
7841  OTOOL64="$ac_cv_prog_OTOOL64"
7842fi
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7871$as_echo_n "checking for -single_module linker flag... " >&6; }
7872if ${lt_cv_apple_cc_single_mod+:} false; then :
7873  $as_echo_n "(cached) " >&6
7874else
7875  lt_cv_apple_cc_single_mod=no
7876      if test -z "${LT_MULTI_MODULE}"; then
7877	# By default we will add the -single_module flag. You can override
7878	# by either setting the environment variable LT_MULTI_MODULE
7879	# non-empty at configure time, or by adding -multi_module to the
7880	# link flags.
7881	rm -rf libconftest.dylib*
7882	echo "int foo(void){return 1;}" > conftest.c
7883	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7884-dynamiclib -Wl,-single_module conftest.c" >&5
7885	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7886	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7887        _lt_result=$?
7888	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7889	  lt_cv_apple_cc_single_mod=yes
7890	else
7891	  cat conftest.err >&5
7892	fi
7893	rm -rf libconftest.dylib*
7894	rm -f conftest.*
7895      fi
7896fi
7897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7898$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7899    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7900$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7901if ${lt_cv_ld_exported_symbols_list+:} false; then :
7902  $as_echo_n "(cached) " >&6
7903else
7904  lt_cv_ld_exported_symbols_list=no
7905      save_LDFLAGS=$LDFLAGS
7906      echo "_main" > conftest.sym
7907      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7908      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909/* end confdefs.h.  */
7910
7911int
7912main ()
7913{
7914
7915  ;
7916  return 0;
7917}
7918_ACEOF
7919if ac_fn_c_try_link "$LINENO"; then :
7920  lt_cv_ld_exported_symbols_list=yes
7921else
7922  lt_cv_ld_exported_symbols_list=no
7923fi
7924rm -f core conftest.err conftest.$ac_objext \
7925    conftest$ac_exeext conftest.$ac_ext
7926	LDFLAGS="$save_LDFLAGS"
7927
7928fi
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7930$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7931    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7932$as_echo_n "checking for -force_load linker flag... " >&6; }
7933if ${lt_cv_ld_force_load+:} false; then :
7934  $as_echo_n "(cached) " >&6
7935else
7936  lt_cv_ld_force_load=no
7937      cat > conftest.c << _LT_EOF
7938int forced_loaded() { return 2;}
7939_LT_EOF
7940      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7941      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7942      echo "$AR cru libconftest.a conftest.o" >&5
7943      $AR cru libconftest.a conftest.o 2>&5
7944      echo "$RANLIB libconftest.a" >&5
7945      $RANLIB libconftest.a 2>&5
7946      cat > conftest.c << _LT_EOF
7947int main() { return 0;}
7948_LT_EOF
7949      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7950      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7951      _lt_result=$?
7952      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7953	lt_cv_ld_force_load=yes
7954      else
7955	cat conftest.err >&5
7956      fi
7957        rm -f conftest.err libconftest.a conftest conftest.c
7958        rm -rf conftest.dSYM
7959
7960fi
7961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7962$as_echo "$lt_cv_ld_force_load" >&6; }
7963    case $host_os in
7964    rhapsody* | darwin1.[012])
7965      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7966    darwin1.*)
7967      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7968    darwin*) # darwin 5.x on
7969      # if running on 10.5 or later, the deployment target defaults
7970      # to the OS version, if on x86, and 10.4, the deployment
7971      # target defaults to 10.4. Don't you love it?
7972      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7973	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7974	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7975	10.[012]*)
7976	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7977	10.*)
7978	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7979      esac
7980    ;;
7981  esac
7982    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7983      _lt_dar_single_mod='$single_module'
7984    fi
7985    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7986      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7987    else
7988      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7989    fi
7990    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7991      _lt_dsymutil='~$DSYMUTIL $lib || :'
7992    else
7993      _lt_dsymutil=
7994    fi
7995    ;;
7996  esac
7997
7998for ac_header in dlfcn.h
7999do :
8000  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8001"
8002if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8003  cat >>confdefs.h <<_ACEOF
8004#define HAVE_DLFCN_H 1
8005_ACEOF
8006
8007fi
8008
8009done
8010
8011
8012
8013
8014
8015# Set options
8016
8017
8018
8019        enable_dlopen=no
8020
8021
8022  enable_win32_dll=no
8023
8024
8025            # Check whether --enable-shared was given.
8026if test "${enable_shared+set}" = set; then :
8027  enableval=$enable_shared; p=${PACKAGE-default}
8028    case $enableval in
8029    yes) enable_shared=yes ;;
8030    no) enable_shared=no ;;
8031    *)
8032      enable_shared=no
8033      # Look at the argument we got.  We use all the common list separators.
8034      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8035      for pkg in $enableval; do
8036	IFS="$lt_save_ifs"
8037	if test "X$pkg" = "X$p"; then
8038	  enable_shared=yes
8039	fi
8040      done
8041      IFS="$lt_save_ifs"
8042      ;;
8043    esac
8044else
8045  enable_shared=yes
8046fi
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056  # Check whether --enable-static was given.
8057if test "${enable_static+set}" = set; then :
8058  enableval=$enable_static; p=${PACKAGE-default}
8059    case $enableval in
8060    yes) enable_static=yes ;;
8061    no) enable_static=no ;;
8062    *)
8063     enable_static=no
8064      # Look at the argument we got.  We use all the common list separators.
8065      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8066      for pkg in $enableval; do
8067	IFS="$lt_save_ifs"
8068	if test "X$pkg" = "X$p"; then
8069	  enable_static=yes
8070	fi
8071      done
8072      IFS="$lt_save_ifs"
8073      ;;
8074    esac
8075else
8076  enable_static=yes
8077fi
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088# Check whether --with-pic was given.
8089if test "${with_pic+set}" = set; then :
8090  withval=$with_pic; pic_mode="$withval"
8091else
8092  pic_mode=default
8093fi
8094
8095
8096test -z "$pic_mode" && pic_mode=default
8097
8098
8099
8100
8101
8102
8103
8104  # Check whether --enable-fast-install was given.
8105if test "${enable_fast_install+set}" = set; then :
8106  enableval=$enable_fast_install; p=${PACKAGE-default}
8107    case $enableval in
8108    yes) enable_fast_install=yes ;;
8109    no) enable_fast_install=no ;;
8110    *)
8111      enable_fast_install=no
8112      # Look at the argument we got.  We use all the common list separators.
8113      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8114      for pkg in $enableval; do
8115	IFS="$lt_save_ifs"
8116	if test "X$pkg" = "X$p"; then
8117	  enable_fast_install=yes
8118	fi
8119      done
8120      IFS="$lt_save_ifs"
8121      ;;
8122    esac
8123else
8124  enable_fast_install=yes
8125fi
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137# This can be used to rebuild libtool when needed
8138LIBTOOL_DEPS="$ltmain"
8139
8140# Always use our own libtool.
8141LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168test -z "$LN_S" && LN_S="ln -s"
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183if test -n "${ZSH_VERSION+set}" ; then
8184   setopt NO_GLOB_SUBST
8185fi
8186
8187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8188$as_echo_n "checking for objdir... " >&6; }
8189if ${lt_cv_objdir+:} false; then :
8190  $as_echo_n "(cached) " >&6
8191else
8192  rm -f .libs 2>/dev/null
8193mkdir .libs 2>/dev/null
8194if test -d .libs; then
8195  lt_cv_objdir=.libs
8196else
8197  # MS-DOS does not allow filenames that begin with a dot.
8198  lt_cv_objdir=_libs
8199fi
8200rmdir .libs 2>/dev/null
8201fi
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8203$as_echo "$lt_cv_objdir" >&6; }
8204objdir=$lt_cv_objdir
8205
8206
8207
8208
8209
8210cat >>confdefs.h <<_ACEOF
8211#define LT_OBJDIR "$lt_cv_objdir/"
8212_ACEOF
8213
8214
8215
8216
8217case $host_os in
8218aix3*)
8219  # AIX sometimes has problems with the GCC collect2 program.  For some
8220  # reason, if we set the COLLECT_NAMES environment variable, the problems
8221  # vanish in a puff of smoke.
8222  if test "X${COLLECT_NAMES+set}" != Xset; then
8223    COLLECT_NAMES=
8224    export COLLECT_NAMES
8225  fi
8226  ;;
8227esac
8228
8229# Global variables:
8230ofile=libtool
8231can_build_shared=yes
8232
8233# All known linkers require a `.a' archive for static linking (except MSVC,
8234# which needs '.lib').
8235libext=a
8236
8237with_gnu_ld="$lt_cv_prog_gnu_ld"
8238
8239old_CC="$CC"
8240old_CFLAGS="$CFLAGS"
8241
8242# Set sane defaults for various variables
8243test -z "$CC" && CC=cc
8244test -z "$LTCC" && LTCC=$CC
8245test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8246test -z "$LD" && LD=ld
8247test -z "$ac_objext" && ac_objext=o
8248
8249for cc_temp in $compiler""; do
8250  case $cc_temp in
8251    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8252    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8253    \-*) ;;
8254    *) break;;
8255  esac
8256done
8257cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8258
8259
8260# Only perform the check for file, if the check method requires it
8261test -z "$MAGIC_CMD" && MAGIC_CMD=file
8262case $deplibs_check_method in
8263file_magic*)
8264  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8265    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8266$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8267if ${lt_cv_path_MAGIC_CMD+:} false; then :
8268  $as_echo_n "(cached) " >&6
8269else
8270  case $MAGIC_CMD in
8271[\\/*] |  ?:[\\/]*)
8272  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8273  ;;
8274*)
8275  lt_save_MAGIC_CMD="$MAGIC_CMD"
8276  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8277  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8278  for ac_dir in $ac_dummy; do
8279    IFS="$lt_save_ifs"
8280    test -z "$ac_dir" && ac_dir=.
8281    if test -f $ac_dir/${ac_tool_prefix}file; then
8282      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8283      if test -n "$file_magic_test_file"; then
8284	case $deplibs_check_method in
8285	"file_magic "*)
8286	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8287	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8288	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8289	    $EGREP "$file_magic_regex" > /dev/null; then
8290	    :
8291	  else
8292	    cat <<_LT_EOF 1>&2
8293
8294*** Warning: the command libtool uses to detect shared libraries,
8295*** $file_magic_cmd, produces output that libtool cannot recognize.
8296*** The result is that libtool may fail to recognize shared libraries
8297*** as such.  This will affect the creation of libtool libraries that
8298*** depend on shared libraries, but programs linked with such libtool
8299*** libraries will work regardless of this problem.  Nevertheless, you
8300*** may want to report the problem to your system manager and/or to
8301*** bug-libtool@gnu.org
8302
8303_LT_EOF
8304	  fi ;;
8305	esac
8306      fi
8307      break
8308    fi
8309  done
8310  IFS="$lt_save_ifs"
8311  MAGIC_CMD="$lt_save_MAGIC_CMD"
8312  ;;
8313esac
8314fi
8315
8316MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8317if test -n "$MAGIC_CMD"; then
8318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8319$as_echo "$MAGIC_CMD" >&6; }
8320else
8321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322$as_echo "no" >&6; }
8323fi
8324
8325
8326
8327
8328
8329if test -z "$lt_cv_path_MAGIC_CMD"; then
8330  if test -n "$ac_tool_prefix"; then
8331    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8332$as_echo_n "checking for file... " >&6; }
8333if ${lt_cv_path_MAGIC_CMD+:} false; then :
8334  $as_echo_n "(cached) " >&6
8335else
8336  case $MAGIC_CMD in
8337[\\/*] |  ?:[\\/]*)
8338  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8339  ;;
8340*)
8341  lt_save_MAGIC_CMD="$MAGIC_CMD"
8342  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8343  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8344  for ac_dir in $ac_dummy; do
8345    IFS="$lt_save_ifs"
8346    test -z "$ac_dir" && ac_dir=.
8347    if test -f $ac_dir/file; then
8348      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8349      if test -n "$file_magic_test_file"; then
8350	case $deplibs_check_method in
8351	"file_magic "*)
8352	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8353	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8354	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8355	    $EGREP "$file_magic_regex" > /dev/null; then
8356	    :
8357	  else
8358	    cat <<_LT_EOF 1>&2
8359
8360*** Warning: the command libtool uses to detect shared libraries,
8361*** $file_magic_cmd, produces output that libtool cannot recognize.
8362*** The result is that libtool may fail to recognize shared libraries
8363*** as such.  This will affect the creation of libtool libraries that
8364*** depend on shared libraries, but programs linked with such libtool
8365*** libraries will work regardless of this problem.  Nevertheless, you
8366*** may want to report the problem to your system manager and/or to
8367*** bug-libtool@gnu.org
8368
8369_LT_EOF
8370	  fi ;;
8371	esac
8372      fi
8373      break
8374    fi
8375  done
8376  IFS="$lt_save_ifs"
8377  MAGIC_CMD="$lt_save_MAGIC_CMD"
8378  ;;
8379esac
8380fi
8381
8382MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8383if test -n "$MAGIC_CMD"; then
8384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8385$as_echo "$MAGIC_CMD" >&6; }
8386else
8387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388$as_echo "no" >&6; }
8389fi
8390
8391
8392  else
8393    MAGIC_CMD=:
8394  fi
8395fi
8396
8397  fi
8398  ;;
8399esac
8400
8401# Use C for the default configuration in the libtool script
8402
8403lt_save_CC="$CC"
8404ac_ext=c
8405ac_cpp='$CPP $CPPFLAGS'
8406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8408ac_compiler_gnu=$ac_cv_c_compiler_gnu
8409
8410
8411# Source file extension for C test sources.
8412ac_ext=c
8413
8414# Object file extension for compiled C test sources.
8415objext=o
8416objext=$objext
8417
8418# Code to be used in simple compile tests
8419lt_simple_compile_test_code="int some_variable = 0;"
8420
8421# Code to be used in simple link tests
8422lt_simple_link_test_code='int main(){return(0);}'
8423
8424
8425
8426
8427
8428
8429
8430# If no C compiler was specified, use CC.
8431LTCC=${LTCC-"$CC"}
8432
8433# If no C compiler flags were specified, use CFLAGS.
8434LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8435
8436# Allow CC to be a program name with arguments.
8437compiler=$CC
8438
8439# Save the default compiler, since it gets overwritten when the other
8440# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8441compiler_DEFAULT=$CC
8442
8443# save warnings/boilerplate of simple test code
8444ac_outfile=conftest.$ac_objext
8445echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8446eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8447_lt_compiler_boilerplate=`cat conftest.err`
8448$RM conftest*
8449
8450ac_outfile=conftest.$ac_objext
8451echo "$lt_simple_link_test_code" >conftest.$ac_ext
8452eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8453_lt_linker_boilerplate=`cat conftest.err`
8454$RM -r conftest*
8455
8456
8457if test -n "$compiler"; then
8458
8459lt_prog_compiler_no_builtin_flag=
8460
8461if test "$GCC" = yes; then
8462  case $cc_basename in
8463  nvcc*)
8464    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8465  *)
8466    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8467  esac
8468
8469  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8470$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8471if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8472  $as_echo_n "(cached) " >&6
8473else
8474  lt_cv_prog_compiler_rtti_exceptions=no
8475   ac_outfile=conftest.$ac_objext
8476   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8477   lt_compiler_flag="-fno-rtti -fno-exceptions"
8478   # Insert the option either (1) after the last *FLAGS variable, or
8479   # (2) before a word containing "conftest.", or (3) at the end.
8480   # Note that $ac_compile itself does not contain backslashes and begins
8481   # with a dollar sign (not a hyphen), so the echo should work correctly.
8482   # The option is referenced via a variable to avoid confusing sed.
8483   lt_compile=`echo "$ac_compile" | $SED \
8484   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8485   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8486   -e 's:$: $lt_compiler_flag:'`
8487   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8488   (eval "$lt_compile" 2>conftest.err)
8489   ac_status=$?
8490   cat conftest.err >&5
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   if (exit $ac_status) && test -s "$ac_outfile"; then
8493     # The compiler can only warn and ignore the option if not recognized
8494     # So say no if there are warnings other than the usual output.
8495     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8496     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8497     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8498       lt_cv_prog_compiler_rtti_exceptions=yes
8499     fi
8500   fi
8501   $RM conftest*
8502
8503fi
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8505$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8506
8507if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8508    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8509else
8510    :
8511fi
8512
8513fi
8514
8515
8516
8517
8518
8519
8520  lt_prog_compiler_wl=
8521lt_prog_compiler_pic=
8522lt_prog_compiler_static=
8523
8524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8525$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8526
8527  if test "$GCC" = yes; then
8528    lt_prog_compiler_wl='-Wl,'
8529    lt_prog_compiler_static='-static'
8530
8531    case $host_os in
8532      aix*)
8533      # All AIX code is PIC.
8534      if test "$host_cpu" = ia64; then
8535	# AIX 5 now supports IA64 processor
8536	lt_prog_compiler_static='-Bstatic'
8537      fi
8538      ;;
8539
8540    amigaos*)
8541      case $host_cpu in
8542      powerpc)
8543            # see comment about AmigaOS4 .so support
8544            lt_prog_compiler_pic='-fPIC'
8545        ;;
8546      m68k)
8547            # FIXME: we need at least 68020 code to build shared libraries, but
8548            # adding the `-m68020' flag to GCC prevents building anything better,
8549            # like `-m68040'.
8550            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8551        ;;
8552      esac
8553      ;;
8554
8555    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8556      # PIC is the default for these OSes.
8557      ;;
8558
8559    mingw* | cygwin* | pw32* | os2* | cegcc*)
8560      # This hack is so that the source file can tell whether it is being
8561      # built for inclusion in a dll (and should export symbols for example).
8562      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8563      # (--disable-auto-import) libraries
8564      lt_prog_compiler_pic='-DDLL_EXPORT'
8565      ;;
8566
8567    darwin* | rhapsody*)
8568      # PIC is the default on this platform
8569      # Common symbols not allowed in MH_DYLIB files
8570      lt_prog_compiler_pic='-fno-common'
8571      ;;
8572
8573    haiku*)
8574      # PIC is the default for Haiku.
8575      # The "-static" flag exists, but is broken.
8576      lt_prog_compiler_static=
8577      ;;
8578
8579    hpux*)
8580      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8581      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8582      # sets the default TLS model and affects inlining.
8583      case $host_cpu in
8584      hppa*64*)
8585	# +Z the default
8586	;;
8587      *)
8588	lt_prog_compiler_pic='-fPIC'
8589	;;
8590      esac
8591      ;;
8592
8593    interix[3-9]*)
8594      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8595      # Instead, we relocate shared libraries at runtime.
8596      ;;
8597
8598    msdosdjgpp*)
8599      # Just because we use GCC doesn't mean we suddenly get shared libraries
8600      # on systems that don't support them.
8601      lt_prog_compiler_can_build_shared=no
8602      enable_shared=no
8603      ;;
8604
8605    *nto* | *qnx*)
8606      # QNX uses GNU C++, but need to define -shared option too, otherwise
8607      # it will coredump.
8608      lt_prog_compiler_pic='-fPIC -shared'
8609      ;;
8610
8611    sysv4*MP*)
8612      if test -d /usr/nec; then
8613	lt_prog_compiler_pic=-Kconform_pic
8614      fi
8615      ;;
8616
8617    *)
8618      lt_prog_compiler_pic='-fPIC'
8619      ;;
8620    esac
8621
8622    case $cc_basename in
8623    nvcc*) # Cuda Compiler Driver 2.2
8624      lt_prog_compiler_wl='-Xlinker '
8625      lt_prog_compiler_pic='-Xcompiler -fPIC'
8626      ;;
8627    esac
8628  else
8629    # PORTME Check for flag to pass linker flags through the system compiler.
8630    case $host_os in
8631    aix*)
8632      lt_prog_compiler_wl='-Wl,'
8633      if test "$host_cpu" = ia64; then
8634	# AIX 5 now supports IA64 processor
8635	lt_prog_compiler_static='-Bstatic'
8636      else
8637	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8638      fi
8639      ;;
8640
8641    mingw* | cygwin* | pw32* | os2* | cegcc*)
8642      # This hack is so that the source file can tell whether it is being
8643      # built for inclusion in a dll (and should export symbols for example).
8644      lt_prog_compiler_pic='-DDLL_EXPORT'
8645      ;;
8646
8647    hpux9* | hpux10* | hpux11*)
8648      lt_prog_compiler_wl='-Wl,'
8649      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8650      # not for PA HP-UX.
8651      case $host_cpu in
8652      hppa*64*|ia64*)
8653	# +Z the default
8654	;;
8655      *)
8656	lt_prog_compiler_pic='+Z'
8657	;;
8658      esac
8659      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8660      lt_prog_compiler_static='${wl}-a ${wl}archive'
8661      ;;
8662
8663    irix5* | irix6* | nonstopux*)
8664      lt_prog_compiler_wl='-Wl,'
8665      # PIC (with -KPIC) is the default.
8666      lt_prog_compiler_static='-non_shared'
8667      ;;
8668
8669    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8670      case $cc_basename in
8671      # old Intel for x86_64 which still supported -KPIC.
8672      ecc*)
8673	lt_prog_compiler_wl='-Wl,'
8674	lt_prog_compiler_pic='-KPIC'
8675	lt_prog_compiler_static='-static'
8676        ;;
8677      # icc used to be incompatible with GCC.
8678      # ICC 10 doesn't accept -KPIC any more.
8679      icc* | ifort*)
8680	lt_prog_compiler_wl='-Wl,'
8681	lt_prog_compiler_pic='-fPIC'
8682	lt_prog_compiler_static='-static'
8683        ;;
8684      # Lahey Fortran 8.1.
8685      lf95*)
8686	lt_prog_compiler_wl='-Wl,'
8687	lt_prog_compiler_pic='--shared'
8688	lt_prog_compiler_static='--static'
8689	;;
8690      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8691        # Portland Group compilers (*not* the Pentium gcc compiler,
8692	# which looks to be a dead project)
8693	lt_prog_compiler_wl='-Wl,'
8694	lt_prog_compiler_pic='-fpic'
8695	lt_prog_compiler_static='-Bstatic'
8696        ;;
8697      ccc*)
8698        lt_prog_compiler_wl='-Wl,'
8699        # All Alpha code is PIC.
8700        lt_prog_compiler_static='-non_shared'
8701        ;;
8702      xl* | bgxl* | bgf* | mpixl*)
8703	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8704	lt_prog_compiler_wl='-Wl,'
8705	lt_prog_compiler_pic='-qpic'
8706	lt_prog_compiler_static='-qstaticlink'
8707	;;
8708      *)
8709	case `$CC -V 2>&1 | sed 5q` in
8710	*Sun\ F* | *Sun*Fortran*)
8711	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8712	  lt_prog_compiler_pic='-KPIC'
8713	  lt_prog_compiler_static='-Bstatic'
8714	  lt_prog_compiler_wl=''
8715	  ;;
8716	*Sun\ C*)
8717	  # Sun C 5.9
8718	  lt_prog_compiler_pic='-KPIC'
8719	  lt_prog_compiler_static='-Bstatic'
8720	  lt_prog_compiler_wl='-Wl,'
8721	  ;;
8722	esac
8723	;;
8724      esac
8725      ;;
8726
8727    newsos6)
8728      lt_prog_compiler_pic='-KPIC'
8729      lt_prog_compiler_static='-Bstatic'
8730      ;;
8731
8732    *nto* | *qnx*)
8733      # QNX uses GNU C++, but need to define -shared option too, otherwise
8734      # it will coredump.
8735      lt_prog_compiler_pic='-fPIC -shared'
8736      ;;
8737
8738    osf3* | osf4* | osf5*)
8739      lt_prog_compiler_wl='-Wl,'
8740      # All OSF/1 code is PIC.
8741      lt_prog_compiler_static='-non_shared'
8742      ;;
8743
8744    rdos*)
8745      lt_prog_compiler_static='-non_shared'
8746      ;;
8747
8748    solaris*)
8749      lt_prog_compiler_pic='-KPIC'
8750      lt_prog_compiler_static='-Bstatic'
8751      case $cc_basename in
8752      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8753	lt_prog_compiler_wl='-Qoption ld ';;
8754      *)
8755	lt_prog_compiler_wl='-Wl,';;
8756      esac
8757      ;;
8758
8759    sunos4*)
8760      lt_prog_compiler_wl='-Qoption ld '
8761      lt_prog_compiler_pic='-PIC'
8762      lt_prog_compiler_static='-Bstatic'
8763      ;;
8764
8765    sysv4 | sysv4.2uw2* | sysv4.3*)
8766      lt_prog_compiler_wl='-Wl,'
8767      lt_prog_compiler_pic='-KPIC'
8768      lt_prog_compiler_static='-Bstatic'
8769      ;;
8770
8771    sysv4*MP*)
8772      if test -d /usr/nec ;then
8773	lt_prog_compiler_pic='-Kconform_pic'
8774	lt_prog_compiler_static='-Bstatic'
8775      fi
8776      ;;
8777
8778    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8779      lt_prog_compiler_wl='-Wl,'
8780      lt_prog_compiler_pic='-KPIC'
8781      lt_prog_compiler_static='-Bstatic'
8782      ;;
8783
8784    unicos*)
8785      lt_prog_compiler_wl='-Wl,'
8786      lt_prog_compiler_can_build_shared=no
8787      ;;
8788
8789    uts4*)
8790      lt_prog_compiler_pic='-pic'
8791      lt_prog_compiler_static='-Bstatic'
8792      ;;
8793
8794    *)
8795      lt_prog_compiler_can_build_shared=no
8796      ;;
8797    esac
8798  fi
8799
8800case $host_os in
8801  # For platforms which do not support PIC, -DPIC is meaningless:
8802  *djgpp*)
8803    lt_prog_compiler_pic=
8804    ;;
8805  *)
8806    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8807    ;;
8808esac
8809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8810$as_echo "$lt_prog_compiler_pic" >&6; }
8811
8812
8813
8814
8815
8816
8817#
8818# Check to make sure the PIC flag actually works.
8819#
8820if test -n "$lt_prog_compiler_pic"; then
8821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8822$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8823if ${lt_cv_prog_compiler_pic_works+:} false; then :
8824  $as_echo_n "(cached) " >&6
8825else
8826  lt_cv_prog_compiler_pic_works=no
8827   ac_outfile=conftest.$ac_objext
8828   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8829   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8830   # Insert the option either (1) after the last *FLAGS variable, or
8831   # (2) before a word containing "conftest.", or (3) at the end.
8832   # Note that $ac_compile itself does not contain backslashes and begins
8833   # with a dollar sign (not a hyphen), so the echo should work correctly.
8834   # The option is referenced via a variable to avoid confusing sed.
8835   lt_compile=`echo "$ac_compile" | $SED \
8836   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8837   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8838   -e 's:$: $lt_compiler_flag:'`
8839   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8840   (eval "$lt_compile" 2>conftest.err)
8841   ac_status=$?
8842   cat conftest.err >&5
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   if (exit $ac_status) && test -s "$ac_outfile"; then
8845     # The compiler can only warn and ignore the option if not recognized
8846     # So say no if there are warnings other than the usual output.
8847     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8848     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8849     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8850       lt_cv_prog_compiler_pic_works=yes
8851     fi
8852   fi
8853   $RM conftest*
8854
8855fi
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8857$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8858
8859if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8860    case $lt_prog_compiler_pic in
8861     "" | " "*) ;;
8862     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8863     esac
8864else
8865    lt_prog_compiler_pic=
8866     lt_prog_compiler_can_build_shared=no
8867fi
8868
8869fi
8870
8871
8872
8873
8874
8875
8876#
8877# Check to make sure the static flag actually works.
8878#
8879wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8881$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8882if ${lt_cv_prog_compiler_static_works+:} false; then :
8883  $as_echo_n "(cached) " >&6
8884else
8885  lt_cv_prog_compiler_static_works=no
8886   save_LDFLAGS="$LDFLAGS"
8887   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8888   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8889   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8890     # The linker can only warn and ignore the option if not recognized
8891     # So say no if there are warnings
8892     if test -s conftest.err; then
8893       # Append any errors to the config.log.
8894       cat conftest.err 1>&5
8895       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8896       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8897       if diff conftest.exp conftest.er2 >/dev/null; then
8898         lt_cv_prog_compiler_static_works=yes
8899       fi
8900     else
8901       lt_cv_prog_compiler_static_works=yes
8902     fi
8903   fi
8904   $RM -r conftest*
8905   LDFLAGS="$save_LDFLAGS"
8906
8907fi
8908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8909$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8910
8911if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8912    :
8913else
8914    lt_prog_compiler_static=
8915fi
8916
8917
8918
8919
8920
8921
8922
8923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8924$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8925if ${lt_cv_prog_compiler_c_o+:} false; then :
8926  $as_echo_n "(cached) " >&6
8927else
8928  lt_cv_prog_compiler_c_o=no
8929   $RM -r conftest 2>/dev/null
8930   mkdir conftest
8931   cd conftest
8932   mkdir out
8933   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8934
8935   lt_compiler_flag="-o out/conftest2.$ac_objext"
8936   # Insert the option either (1) after the last *FLAGS variable, or
8937   # (2) before a word containing "conftest.", or (3) at the end.
8938   # Note that $ac_compile itself does not contain backslashes and begins
8939   # with a dollar sign (not a hyphen), so the echo should work correctly.
8940   lt_compile=`echo "$ac_compile" | $SED \
8941   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8942   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8943   -e 's:$: $lt_compiler_flag:'`
8944   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8945   (eval "$lt_compile" 2>out/conftest.err)
8946   ac_status=$?
8947   cat out/conftest.err >&5
8948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8950   then
8951     # The compiler can only warn and ignore the option if not recognized
8952     # So say no if there are warnings
8953     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8954     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8955     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8956       lt_cv_prog_compiler_c_o=yes
8957     fi
8958   fi
8959   chmod u+w . 2>&5
8960   $RM conftest*
8961   # SGI C++ compiler will create directory out/ii_files/ for
8962   # template instantiation
8963   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8964   $RM out/* && rmdir out
8965   cd ..
8966   $RM -r conftest
8967   $RM conftest*
8968
8969fi
8970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8971$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8972
8973
8974
8975
8976
8977
8978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8979$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8980if ${lt_cv_prog_compiler_c_o+:} false; then :
8981  $as_echo_n "(cached) " >&6
8982else
8983  lt_cv_prog_compiler_c_o=no
8984   $RM -r conftest 2>/dev/null
8985   mkdir conftest
8986   cd conftest
8987   mkdir out
8988   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8989
8990   lt_compiler_flag="-o out/conftest2.$ac_objext"
8991   # Insert the option either (1) after the last *FLAGS variable, or
8992   # (2) before a word containing "conftest.", or (3) at the end.
8993   # Note that $ac_compile itself does not contain backslashes and begins
8994   # with a dollar sign (not a hyphen), so the echo should work correctly.
8995   lt_compile=`echo "$ac_compile" | $SED \
8996   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8997   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8998   -e 's:$: $lt_compiler_flag:'`
8999   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9000   (eval "$lt_compile" 2>out/conftest.err)
9001   ac_status=$?
9002   cat out/conftest.err >&5
9003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9005   then
9006     # The compiler can only warn and ignore the option if not recognized
9007     # So say no if there are warnings
9008     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9009     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9010     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9011       lt_cv_prog_compiler_c_o=yes
9012     fi
9013   fi
9014   chmod u+w . 2>&5
9015   $RM conftest*
9016   # SGI C++ compiler will create directory out/ii_files/ for
9017   # template instantiation
9018   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9019   $RM out/* && rmdir out
9020   cd ..
9021   $RM -r conftest
9022   $RM conftest*
9023
9024fi
9025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9026$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9027
9028
9029
9030
9031hard_links="nottested"
9032if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9033  # do not overwrite the value of need_locks provided by the user
9034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9035$as_echo_n "checking if we can lock with hard links... " >&6; }
9036  hard_links=yes
9037  $RM conftest*
9038  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9039  touch conftest.a
9040  ln conftest.a conftest.b 2>&5 || hard_links=no
9041  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9043$as_echo "$hard_links" >&6; }
9044  if test "$hard_links" = no; then
9045    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9046$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9047    need_locks=warn
9048  fi
9049else
9050  need_locks=no
9051fi
9052
9053
9054
9055
9056
9057
9058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9059$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9060
9061  runpath_var=
9062  allow_undefined_flag=
9063  always_export_symbols=no
9064  archive_cmds=
9065  archive_expsym_cmds=
9066  compiler_needs_object=no
9067  enable_shared_with_static_runtimes=no
9068  export_dynamic_flag_spec=
9069  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9070  hardcode_automatic=no
9071  hardcode_direct=no
9072  hardcode_direct_absolute=no
9073  hardcode_libdir_flag_spec=
9074  hardcode_libdir_flag_spec_ld=
9075  hardcode_libdir_separator=
9076  hardcode_minus_L=no
9077  hardcode_shlibpath_var=unsupported
9078  inherit_rpath=no
9079  link_all_deplibs=unknown
9080  module_cmds=
9081  module_expsym_cmds=
9082  old_archive_from_new_cmds=
9083  old_archive_from_expsyms_cmds=
9084  thread_safe_flag_spec=
9085  whole_archive_flag_spec=
9086  # include_expsyms should be a list of space-separated symbols to be *always*
9087  # included in the symbol list
9088  include_expsyms=
9089  # exclude_expsyms can be an extended regexp of symbols to exclude
9090  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9091  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9092  # as well as any symbol that contains `d'.
9093  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9094  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9095  # platforms (ab)use it in PIC code, but their linkers get confused if
9096  # the symbol is explicitly referenced.  Since portable code cannot
9097  # rely on this symbol name, it's probably fine to never include it in
9098  # preloaded symbol tables.
9099  # Exclude shared library initialization/finalization symbols.
9100  extract_expsyms_cmds=
9101
9102  case $host_os in
9103  cygwin* | mingw* | pw32* | cegcc*)
9104    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9105    # When not using gcc, we currently assume that we are using
9106    # Microsoft Visual C++.
9107    if test "$GCC" != yes; then
9108      with_gnu_ld=no
9109    fi
9110    ;;
9111  interix*)
9112    # we just hope/assume this is gcc and not c89 (= MSVC++)
9113    with_gnu_ld=yes
9114    ;;
9115  openbsd*)
9116    with_gnu_ld=no
9117    ;;
9118  esac
9119
9120  ld_shlibs=yes
9121
9122  # On some targets, GNU ld is compatible enough with the native linker
9123  # that we're better off using the native interface for both.
9124  lt_use_gnu_ld_interface=no
9125  if test "$with_gnu_ld" = yes; then
9126    case $host_os in
9127      aix*)
9128	# The AIX port of GNU ld has always aspired to compatibility
9129	# with the native linker.  However, as the warning in the GNU ld
9130	# block says, versions before 2.19.5* couldn't really create working
9131	# shared libraries, regardless of the interface used.
9132	case `$LD -v 2>&1` in
9133	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9134	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9135	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9136	  *)
9137	    lt_use_gnu_ld_interface=yes
9138	    ;;
9139	esac
9140	;;
9141      *)
9142	lt_use_gnu_ld_interface=yes
9143	;;
9144    esac
9145  fi
9146
9147  if test "$lt_use_gnu_ld_interface" = yes; then
9148    # If archive_cmds runs LD, not CC, wlarc should be empty
9149    wlarc='${wl}'
9150
9151    # Set some defaults for GNU ld with shared library support. These
9152    # are reset later if shared libraries are not supported. Putting them
9153    # here allows them to be overridden if necessary.
9154    runpath_var=LD_RUN_PATH
9155    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9156    export_dynamic_flag_spec='${wl}--export-dynamic'
9157    # ancient GNU ld didn't support --whole-archive et. al.
9158    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9159      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9160    else
9161      whole_archive_flag_spec=
9162    fi
9163    supports_anon_versioning=no
9164    case `$LD -v 2>&1` in
9165      *GNU\ gold*) supports_anon_versioning=yes ;;
9166      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9167      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9168      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9169      *\ 2.11.*) ;; # other 2.11 versions
9170      *) supports_anon_versioning=yes ;;
9171    esac
9172
9173    # See if GNU ld supports shared libraries.
9174    case $host_os in
9175    aix[3-9]*)
9176      # On AIX/PPC, the GNU linker is very broken
9177      if test "$host_cpu" != ia64; then
9178	ld_shlibs=no
9179	cat <<_LT_EOF 1>&2
9180
9181*** Warning: the GNU linker, at least up to release 2.19, is reported
9182*** to be unable to reliably create shared libraries on AIX.
9183*** Therefore, libtool is disabling shared libraries support.  If you
9184*** really care for shared libraries, you may want to install binutils
9185*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9186*** You will then need to restart the configuration process.
9187
9188_LT_EOF
9189      fi
9190      ;;
9191
9192    amigaos*)
9193      case $host_cpu in
9194      powerpc)
9195            # see comment about AmigaOS4 .so support
9196            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9197            archive_expsym_cmds=''
9198        ;;
9199      m68k)
9200            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)'
9201            hardcode_libdir_flag_spec='-L$libdir'
9202            hardcode_minus_L=yes
9203        ;;
9204      esac
9205      ;;
9206
9207    beos*)
9208      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9209	allow_undefined_flag=unsupported
9210	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9211	# support --undefined.  This deserves some investigation.  FIXME
9212	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9213      else
9214	ld_shlibs=no
9215      fi
9216      ;;
9217
9218    cygwin* | mingw* | pw32* | cegcc*)
9219      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9220      # as there is no search path for DLLs.
9221      hardcode_libdir_flag_spec='-L$libdir'
9222      export_dynamic_flag_spec='${wl}--export-all-symbols'
9223      allow_undefined_flag=unsupported
9224      always_export_symbols=no
9225      enable_shared_with_static_runtimes=yes
9226      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9227
9228      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9229        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9230	# If the export-symbols file already is a .def file (1st line
9231	# is EXPORTS), use it as is; otherwise, prepend...
9232	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9233	  cp $export_symbols $output_objdir/$soname.def;
9234	else
9235	  echo EXPORTS > $output_objdir/$soname.def;
9236	  cat $export_symbols >> $output_objdir/$soname.def;
9237	fi~
9238	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9239      else
9240	ld_shlibs=no
9241      fi
9242      ;;
9243
9244    haiku*)
9245      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9246      link_all_deplibs=yes
9247      ;;
9248
9249    interix[3-9]*)
9250      hardcode_direct=no
9251      hardcode_shlibpath_var=no
9252      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9253      export_dynamic_flag_spec='${wl}-E'
9254      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9255      # Instead, shared libraries are loaded at an image base (0x10000000 by
9256      # default) and relocated if they conflict, which is a slow very memory
9257      # consuming and fragmenting process.  To avoid this, we pick a random,
9258      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9259      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9260      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9261      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'
9262      ;;
9263
9264    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9265      tmp_diet=no
9266      if test "$host_os" = linux-dietlibc; then
9267	case $cc_basename in
9268	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9269	esac
9270      fi
9271      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9272	 && test "$tmp_diet" = no
9273      then
9274	tmp_addflag=
9275	tmp_sharedflag='-shared'
9276	case $cc_basename,$host_cpu in
9277        pgcc*)				# Portland Group C compiler
9278	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9279	  tmp_addflag=' $pic_flag'
9280	  ;;
9281	pgf77* | pgf90* | pgf95* | pgfortran*)
9282					# Portland Group f77 and f90 compilers
9283	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9284	  tmp_addflag=' $pic_flag -Mnomain' ;;
9285	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9286	  tmp_addflag=' -i_dynamic' ;;
9287	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9288	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9289	ifc* | ifort*)			# Intel Fortran compiler
9290	  tmp_addflag=' -nofor_main' ;;
9291	lf95*)				# Lahey Fortran 8.1
9292	  whole_archive_flag_spec=
9293	  tmp_sharedflag='--shared' ;;
9294	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9295	  tmp_sharedflag='-qmkshrobj'
9296	  tmp_addflag= ;;
9297	nvcc*)	# Cuda Compiler Driver 2.2
9298	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9299	  compiler_needs_object=yes
9300	  ;;
9301	esac
9302	case `$CC -V 2>&1 | sed 5q` in
9303	*Sun\ C*)			# Sun C 5.9
9304	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9305	  compiler_needs_object=yes
9306	  tmp_sharedflag='-G' ;;
9307	*Sun\ F*)			# Sun Fortran 8.3
9308	  tmp_sharedflag='-G' ;;
9309	esac
9310	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9311
9312        if test "x$supports_anon_versioning" = xyes; then
9313          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9314	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9315	    echo "local: *; };" >> $output_objdir/$libname.ver~
9316	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9317        fi
9318
9319	case $cc_basename in
9320	xlf* | bgf* | bgxlf* | mpixlf*)
9321	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9322	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9323	  hardcode_libdir_flag_spec=
9324	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9325	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9326	  if test "x$supports_anon_versioning" = xyes; then
9327	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9328	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9329	      echo "local: *; };" >> $output_objdir/$libname.ver~
9330	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9331	  fi
9332	  ;;
9333	esac
9334      else
9335        ld_shlibs=no
9336      fi
9337      ;;
9338
9339    netbsd*)
9340      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9341	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9342	wlarc=
9343      else
9344	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9345	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9346      fi
9347      ;;
9348
9349    solaris*)
9350      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9351	ld_shlibs=no
9352	cat <<_LT_EOF 1>&2
9353
9354*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9355*** create shared libraries on Solaris systems.  Therefore, libtool
9356*** is disabling shared libraries support.  We urge you to upgrade GNU
9357*** binutils to release 2.9.1 or newer.  Another option is to modify
9358*** your PATH or compiler configuration so that the native linker is
9359*** used, and then restart.
9360
9361_LT_EOF
9362      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9363	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9364	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9365      else
9366	ld_shlibs=no
9367      fi
9368      ;;
9369
9370    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9371      case `$LD -v 2>&1` in
9372        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9373	ld_shlibs=no
9374	cat <<_LT_EOF 1>&2
9375
9376*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9377*** reliably create shared libraries on SCO systems.  Therefore, libtool
9378*** is disabling shared libraries support.  We urge you to upgrade GNU
9379*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9380*** your PATH or compiler configuration so that the native linker is
9381*** used, and then restart.
9382
9383_LT_EOF
9384	;;
9385	*)
9386	  # For security reasons, it is highly recommended that you always
9387	  # use absolute paths for naming shared libraries, and exclude the
9388	  # DT_RUNPATH tag from executables and libraries.  But doing so
9389	  # requires that you compile everything twice, which is a pain.
9390	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9391	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9392	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9393	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9394	  else
9395	    ld_shlibs=no
9396	  fi
9397	;;
9398      esac
9399      ;;
9400
9401    sunos4*)
9402      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9403      wlarc=
9404      hardcode_direct=yes
9405      hardcode_shlibpath_var=no
9406      ;;
9407
9408    *)
9409      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9410	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9411	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9412      else
9413	ld_shlibs=no
9414      fi
9415      ;;
9416    esac
9417
9418    if test "$ld_shlibs" = no; then
9419      runpath_var=
9420      hardcode_libdir_flag_spec=
9421      export_dynamic_flag_spec=
9422      whole_archive_flag_spec=
9423    fi
9424  else
9425    # PORTME fill in a description of your system's linker (not GNU ld)
9426    case $host_os in
9427    aix3*)
9428      allow_undefined_flag=unsupported
9429      always_export_symbols=yes
9430      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'
9431      # Note: this linker hardcodes the directories in LIBPATH if there
9432      # are no directories specified by -L.
9433      hardcode_minus_L=yes
9434      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9435	# Neither direct hardcoding nor static linking is supported with a
9436	# broken collect2.
9437	hardcode_direct=unsupported
9438      fi
9439      ;;
9440
9441    aix[4-9]*)
9442      if test "$host_cpu" = ia64; then
9443	# On IA64, the linker does run time linking by default, so we don't
9444	# have to do anything special.
9445	aix_use_runtimelinking=no
9446	exp_sym_flag='-Bexport'
9447	no_entry_flag=""
9448      else
9449	# If we're using GNU nm, then we don't want the "-C" option.
9450	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9451	# Also, AIX nm treats weak defined symbols like other global
9452	# defined symbols, whereas GNU nm marks them as "W".
9453	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9454	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9455	else
9456	  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'
9457	fi
9458	aix_use_runtimelinking=no
9459
9460	# Test if we are trying to use run time linking or normal
9461	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9462	# need to do runtime linking.
9463	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9464	  for ld_flag in $LDFLAGS; do
9465	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9466	    aix_use_runtimelinking=yes
9467	    break
9468	  fi
9469	  done
9470	  ;;
9471	esac
9472
9473	exp_sym_flag='-bexport'
9474	no_entry_flag='-bnoentry'
9475      fi
9476
9477      # When large executables or shared objects are built, AIX ld can
9478      # have problems creating the table of contents.  If linking a library
9479      # or program results in "error TOC overflow" add -mminimal-toc to
9480      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9481      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9482
9483      archive_cmds=''
9484      hardcode_direct=yes
9485      hardcode_direct_absolute=yes
9486      hardcode_libdir_separator=':'
9487      link_all_deplibs=yes
9488      file_list_spec='${wl}-f,'
9489
9490      if test "$GCC" = yes; then
9491	case $host_os in aix4.[012]|aix4.[012].*)
9492	# We only want to do this on AIX 4.2 and lower, the check
9493	# below for broken collect2 doesn't work under 4.3+
9494	  collect2name=`${CC} -print-prog-name=collect2`
9495	  if test -f "$collect2name" &&
9496	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9497	  then
9498	  # We have reworked collect2
9499	  :
9500	  else
9501	  # We have old collect2
9502	  hardcode_direct=unsupported
9503	  # It fails to find uninstalled libraries when the uninstalled
9504	  # path is not listed in the libpath.  Setting hardcode_minus_L
9505	  # to unsupported forces relinking
9506	  hardcode_minus_L=yes
9507	  hardcode_libdir_flag_spec='-L$libdir'
9508	  hardcode_libdir_separator=
9509	  fi
9510	  ;;
9511	esac
9512	shared_flag='-shared'
9513	if test "$aix_use_runtimelinking" = yes; then
9514	  shared_flag="$shared_flag "'${wl}-G'
9515	fi
9516      else
9517	# not using gcc
9518	if test "$host_cpu" = ia64; then
9519	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9520	# chokes on -Wl,-G. The following line is correct:
9521	  shared_flag='-G'
9522	else
9523	  if test "$aix_use_runtimelinking" = yes; then
9524	    shared_flag='${wl}-G'
9525	  else
9526	    shared_flag='${wl}-bM:SRE'
9527	  fi
9528	fi
9529      fi
9530
9531      export_dynamic_flag_spec='${wl}-bexpall'
9532      # It seems that -bexpall does not export symbols beginning with
9533      # underscore (_), so it is better to generate a list of symbols to export.
9534      always_export_symbols=yes
9535      if test "$aix_use_runtimelinking" = yes; then
9536	# Warning - without using the other runtime loading flags (-brtl),
9537	# -berok will link without error, but may produce a broken library.
9538	allow_undefined_flag='-berok'
9539        # Determine the default libpath from the value encoded in an
9540        # empty executable.
9541        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542/* end confdefs.h.  */
9543
9544int
9545main ()
9546{
9547
9548  ;
9549  return 0;
9550}
9551_ACEOF
9552if ac_fn_c_try_link "$LINENO"; then :
9553
9554lt_aix_libpath_sed='
9555    /Import File Strings/,/^$/ {
9556	/^0/ {
9557	    s/^0  *\(.*\)$/\1/
9558	    p
9559	}
9560    }'
9561aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9562# Check for a 64-bit object if we didn't find anything.
9563if test -z "$aix_libpath"; then
9564  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9565fi
9566fi
9567rm -f core conftest.err conftest.$ac_objext \
9568    conftest$ac_exeext conftest.$ac_ext
9569if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9570
9571        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9572        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9573      else
9574	if test "$host_cpu" = ia64; then
9575	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9576	  allow_undefined_flag="-z nodefs"
9577	  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"
9578	else
9579	 # Determine the default libpath from the value encoded in an
9580	 # empty executable.
9581	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582/* end confdefs.h.  */
9583
9584int
9585main ()
9586{
9587
9588  ;
9589  return 0;
9590}
9591_ACEOF
9592if ac_fn_c_try_link "$LINENO"; then :
9593
9594lt_aix_libpath_sed='
9595    /Import File Strings/,/^$/ {
9596	/^0/ {
9597	    s/^0  *\(.*\)$/\1/
9598	    p
9599	}
9600    }'
9601aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9602# Check for a 64-bit object if we didn't find anything.
9603if test -z "$aix_libpath"; then
9604  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9605fi
9606fi
9607rm -f core conftest.err conftest.$ac_objext \
9608    conftest$ac_exeext conftest.$ac_ext
9609if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9610
9611	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9612	  # Warning - without using the other run time loading flags,
9613	  # -berok will link without error, but may produce a broken library.
9614	  no_undefined_flag=' ${wl}-bernotok'
9615	  allow_undefined_flag=' ${wl}-berok'
9616	  if test "$with_gnu_ld" = yes; then
9617	    # We only use this code for GNU lds that support --whole-archive.
9618	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9619	  else
9620	    # Exported symbols can be pulled into shared objects from archives
9621	    whole_archive_flag_spec='$convenience'
9622	  fi
9623	  archive_cmds_need_lc=yes
9624	  # This is similar to how AIX traditionally builds its shared libraries.
9625	  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'
9626	fi
9627      fi
9628      ;;
9629
9630    amigaos*)
9631      case $host_cpu in
9632      powerpc)
9633            # see comment about AmigaOS4 .so support
9634            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9635            archive_expsym_cmds=''
9636        ;;
9637      m68k)
9638            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)'
9639            hardcode_libdir_flag_spec='-L$libdir'
9640            hardcode_minus_L=yes
9641        ;;
9642      esac
9643      ;;
9644
9645    bsdi[45]*)
9646      export_dynamic_flag_spec=-rdynamic
9647      ;;
9648
9649    cygwin* | mingw* | pw32* | cegcc*)
9650      # When not using gcc, we currently assume that we are using
9651      # Microsoft Visual C++.
9652      # hardcode_libdir_flag_spec is actually meaningless, as there is
9653      # no search path for DLLs.
9654      hardcode_libdir_flag_spec=' '
9655      allow_undefined_flag=unsupported
9656      # Tell ltmain to make .lib files, not .a files.
9657      libext=lib
9658      # Tell ltmain to make .dll files, not .so files.
9659      shrext_cmds=".dll"
9660      # FIXME: Setting linknames here is a bad hack.
9661      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9662      # The linker will automatically build a .lib file if we build a DLL.
9663      old_archive_from_new_cmds='true'
9664      # FIXME: Should let the user specify the lib program.
9665      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9666      fix_srcfile_path='`cygpath -w "$srcfile"`'
9667      enable_shared_with_static_runtimes=yes
9668      ;;
9669
9670    darwin* | rhapsody*)
9671
9672
9673  archive_cmds_need_lc=no
9674  hardcode_direct=no
9675  hardcode_automatic=yes
9676  hardcode_shlibpath_var=unsupported
9677  if test "$lt_cv_ld_force_load" = "yes"; then
9678    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9679  else
9680    whole_archive_flag_spec=''
9681  fi
9682  link_all_deplibs=yes
9683  allow_undefined_flag="$_lt_dar_allow_undefined"
9684  case $cc_basename in
9685     ifort*) _lt_dar_can_shared=yes ;;
9686     *) _lt_dar_can_shared=$GCC ;;
9687  esac
9688  if test "$_lt_dar_can_shared" = "yes"; then
9689    output_verbose_link_cmd=func_echo_all
9690    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9691    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9692    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}"
9693    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}"
9694
9695  else
9696  ld_shlibs=no
9697  fi
9698
9699      ;;
9700
9701    dgux*)
9702      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703      hardcode_libdir_flag_spec='-L$libdir'
9704      hardcode_shlibpath_var=no
9705      ;;
9706
9707    freebsd1*)
9708      ld_shlibs=no
9709      ;;
9710
9711    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9712    # support.  Future versions do this automatically, but an explicit c++rt0.o
9713    # does not break anything, and helps significantly (at the cost of a little
9714    # extra space).
9715    freebsd2.2*)
9716      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9717      hardcode_libdir_flag_spec='-R$libdir'
9718      hardcode_direct=yes
9719      hardcode_shlibpath_var=no
9720      ;;
9721
9722    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9723    freebsd2*)
9724      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9725      hardcode_direct=yes
9726      hardcode_minus_L=yes
9727      hardcode_shlibpath_var=no
9728      ;;
9729
9730    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9731    freebsd* | dragonfly*)
9732      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9733      hardcode_libdir_flag_spec='-R$libdir'
9734      hardcode_direct=yes
9735      hardcode_shlibpath_var=no
9736      ;;
9737
9738    hpux9*)
9739      if test "$GCC" = yes; then
9740	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'
9741      else
9742	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'
9743      fi
9744      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9745      hardcode_libdir_separator=:
9746      hardcode_direct=yes
9747
9748      # hardcode_minus_L: Not really in the search PATH,
9749      # but as the default location of the library.
9750      hardcode_minus_L=yes
9751      export_dynamic_flag_spec='${wl}-E'
9752      ;;
9753
9754    hpux10*)
9755      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9756	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9757      else
9758	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9759      fi
9760      if test "$with_gnu_ld" = no; then
9761	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9762	hardcode_libdir_flag_spec_ld='+b $libdir'
9763	hardcode_libdir_separator=:
9764	hardcode_direct=yes
9765	hardcode_direct_absolute=yes
9766	export_dynamic_flag_spec='${wl}-E'
9767	# hardcode_minus_L: Not really in the search PATH,
9768	# but as the default location of the library.
9769	hardcode_minus_L=yes
9770      fi
9771      ;;
9772
9773    hpux11*)
9774      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9775	case $host_cpu in
9776	hppa*64*)
9777	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9778	  ;;
9779	ia64*)
9780	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9781	  ;;
9782	*)
9783	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9784	  ;;
9785	esac
9786      else
9787	case $host_cpu in
9788	hppa*64*)
9789	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9790	  ;;
9791	ia64*)
9792	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9793	  ;;
9794	*)
9795
9796	  # Older versions of the 11.00 compiler do not understand -b yet
9797	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9798	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9799$as_echo_n "checking if $CC understands -b... " >&6; }
9800if ${lt_cv_prog_compiler__b+:} false; then :
9801  $as_echo_n "(cached) " >&6
9802else
9803  lt_cv_prog_compiler__b=no
9804   save_LDFLAGS="$LDFLAGS"
9805   LDFLAGS="$LDFLAGS -b"
9806   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9807   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9808     # The linker can only warn and ignore the option if not recognized
9809     # So say no if there are warnings
9810     if test -s conftest.err; then
9811       # Append any errors to the config.log.
9812       cat conftest.err 1>&5
9813       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9814       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9815       if diff conftest.exp conftest.er2 >/dev/null; then
9816         lt_cv_prog_compiler__b=yes
9817       fi
9818     else
9819       lt_cv_prog_compiler__b=yes
9820     fi
9821   fi
9822   $RM -r conftest*
9823   LDFLAGS="$save_LDFLAGS"
9824
9825fi
9826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9827$as_echo "$lt_cv_prog_compiler__b" >&6; }
9828
9829if test x"$lt_cv_prog_compiler__b" = xyes; then
9830    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9831else
9832    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9833fi
9834
9835	  ;;
9836	esac
9837      fi
9838      if test "$with_gnu_ld" = no; then
9839	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9840	hardcode_libdir_separator=:
9841
9842	case $host_cpu in
9843	hppa*64*|ia64*)
9844	  hardcode_direct=no
9845	  hardcode_shlibpath_var=no
9846	  ;;
9847	*)
9848	  hardcode_direct=yes
9849	  hardcode_direct_absolute=yes
9850	  export_dynamic_flag_spec='${wl}-E'
9851
9852	  # hardcode_minus_L: Not really in the search PATH,
9853	  # but as the default location of the library.
9854	  hardcode_minus_L=yes
9855	  ;;
9856	esac
9857      fi
9858      ;;
9859
9860    irix5* | irix6* | nonstopux*)
9861      if test "$GCC" = yes; then
9862	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9863	# Try to use the -exported_symbol ld option, if it does not
9864	# work, assume that -exports_file does not work either and
9865	# implicitly export all symbols.
9866        save_LDFLAGS="$LDFLAGS"
9867        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9868        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869/* end confdefs.h.  */
9870int foo(void) {}
9871_ACEOF
9872if ac_fn_c_try_link "$LINENO"; then :
9873  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9874
9875fi
9876rm -f core conftest.err conftest.$ac_objext \
9877    conftest$ac_exeext conftest.$ac_ext
9878        LDFLAGS="$save_LDFLAGS"
9879      else
9880	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9881	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9882      fi
9883      archive_cmds_need_lc='no'
9884      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9885      hardcode_libdir_separator=:
9886      inherit_rpath=yes
9887      link_all_deplibs=yes
9888      ;;
9889
9890    netbsd*)
9891      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9892	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9893      else
9894	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9895      fi
9896      hardcode_libdir_flag_spec='-R$libdir'
9897      hardcode_direct=yes
9898      hardcode_shlibpath_var=no
9899      ;;
9900
9901    newsos6)
9902      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903      hardcode_direct=yes
9904      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9905      hardcode_libdir_separator=:
9906      hardcode_shlibpath_var=no
9907      ;;
9908
9909    *nto* | *qnx*)
9910      ;;
9911
9912    openbsd*)
9913      if test -f /usr/libexec/ld.so; then
9914	hardcode_direct=yes
9915	hardcode_shlibpath_var=no
9916	hardcode_direct_absolute=yes
9917	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9918	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9919	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9920	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9921	  export_dynamic_flag_spec='${wl}-E'
9922	else
9923	  case $host_os in
9924	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9925	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9926	     hardcode_libdir_flag_spec='-R$libdir'
9927	     ;;
9928	   *)
9929	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9930	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9931	     ;;
9932	  esac
9933	fi
9934      else
9935	ld_shlibs=no
9936      fi
9937      ;;
9938
9939    os2*)
9940      hardcode_libdir_flag_spec='-L$libdir'
9941      hardcode_minus_L=yes
9942      allow_undefined_flag=unsupported
9943      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'
9944      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9945      ;;
9946
9947    osf3*)
9948      if test "$GCC" = yes; then
9949	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9950	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9951      else
9952	allow_undefined_flag=' -expect_unresolved \*'
9953	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9954      fi
9955      archive_cmds_need_lc='no'
9956      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9957      hardcode_libdir_separator=:
9958      ;;
9959
9960    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9961      if test "$GCC" = yes; then
9962	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9963	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9964	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9965      else
9966	allow_undefined_flag=' -expect_unresolved \*'
9967	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9968	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~
9969	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9970
9971	# Both c and cxx compiler support -rpath directly
9972	hardcode_libdir_flag_spec='-rpath $libdir'
9973      fi
9974      archive_cmds_need_lc='no'
9975      hardcode_libdir_separator=:
9976      ;;
9977
9978    solaris*)
9979      no_undefined_flag=' -z defs'
9980      if test "$GCC" = yes; then
9981	wlarc='${wl}'
9982	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9983	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9984	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9985      else
9986	case `$CC -V 2>&1` in
9987	*"Compilers 5.0"*)
9988	  wlarc=''
9989	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9990	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9991	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9992	  ;;
9993	*)
9994	  wlarc='${wl}'
9995	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9996	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9997	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9998	  ;;
9999	esac
10000      fi
10001      hardcode_libdir_flag_spec='-R$libdir'
10002      hardcode_shlibpath_var=no
10003      case $host_os in
10004      solaris2.[0-5] | solaris2.[0-5].*) ;;
10005      *)
10006	# The compiler driver will combine and reorder linker options,
10007	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10008	# but is careful enough not to reorder.
10009	# Supported since Solaris 2.6 (maybe 2.5.1?)
10010	if test "$GCC" = yes; then
10011	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10012	else
10013	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10014	fi
10015	;;
10016      esac
10017      link_all_deplibs=yes
10018      ;;
10019
10020    sunos4*)
10021      if test "x$host_vendor" = xsequent; then
10022	# Use $CC to link under sequent, because it throws in some extra .o
10023	# files that make .init and .fini sections work.
10024	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10025      else
10026	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10027      fi
10028      hardcode_libdir_flag_spec='-L$libdir'
10029      hardcode_direct=yes
10030      hardcode_minus_L=yes
10031      hardcode_shlibpath_var=no
10032      ;;
10033
10034    sysv4)
10035      case $host_vendor in
10036	sni)
10037	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10038	  hardcode_direct=yes # is this really true???
10039	;;
10040	siemens)
10041	  ## LD is ld it makes a PLAMLIB
10042	  ## CC just makes a GrossModule.
10043	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10044	  reload_cmds='$CC -r -o $output$reload_objs'
10045	  hardcode_direct=no
10046        ;;
10047	motorola)
10048	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10049	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10050	;;
10051      esac
10052      runpath_var='LD_RUN_PATH'
10053      hardcode_shlibpath_var=no
10054      ;;
10055
10056    sysv4.3*)
10057      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10058      hardcode_shlibpath_var=no
10059      export_dynamic_flag_spec='-Bexport'
10060      ;;
10061
10062    sysv4*MP*)
10063      if test -d /usr/nec; then
10064	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10065	hardcode_shlibpath_var=no
10066	runpath_var=LD_RUN_PATH
10067	hardcode_runpath_var=yes
10068	ld_shlibs=yes
10069      fi
10070      ;;
10071
10072    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10073      no_undefined_flag='${wl}-z,text'
10074      archive_cmds_need_lc=no
10075      hardcode_shlibpath_var=no
10076      runpath_var='LD_RUN_PATH'
10077
10078      if test "$GCC" = yes; then
10079	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10080	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10081      else
10082	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10083	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10084      fi
10085      ;;
10086
10087    sysv5* | sco3.2v5* | sco5v6*)
10088      # Note: We can NOT use -z defs as we might desire, because we do not
10089      # link with -lc, and that would cause any symbols used from libc to
10090      # always be unresolved, which means just about no library would
10091      # ever link correctly.  If we're not using GNU ld we use -z text
10092      # though, which does catch some bad symbols but isn't as heavy-handed
10093      # as -z defs.
10094      no_undefined_flag='${wl}-z,text'
10095      allow_undefined_flag='${wl}-z,nodefs'
10096      archive_cmds_need_lc=no
10097      hardcode_shlibpath_var=no
10098      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10099      hardcode_libdir_separator=':'
10100      link_all_deplibs=yes
10101      export_dynamic_flag_spec='${wl}-Bexport'
10102      runpath_var='LD_RUN_PATH'
10103
10104      if test "$GCC" = yes; then
10105	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10106	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10107      else
10108	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10109	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10110      fi
10111      ;;
10112
10113    uts4*)
10114      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115      hardcode_libdir_flag_spec='-L$libdir'
10116      hardcode_shlibpath_var=no
10117      ;;
10118
10119    *)
10120      ld_shlibs=no
10121      ;;
10122    esac
10123
10124    if test x$host_vendor = xsni; then
10125      case $host in
10126      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10127	export_dynamic_flag_spec='${wl}-Blargedynsym'
10128	;;
10129      esac
10130    fi
10131  fi
10132
10133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10134$as_echo "$ld_shlibs" >&6; }
10135test "$ld_shlibs" = no && can_build_shared=no
10136
10137with_gnu_ld=$with_gnu_ld
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153#
10154# Do we need to explicitly link libc?
10155#
10156case "x$archive_cmds_need_lc" in
10157x|xyes)
10158  # Assume -lc should be added
10159  archive_cmds_need_lc=yes
10160
10161  if test "$enable_shared" = yes && test "$GCC" = yes; then
10162    case $archive_cmds in
10163    *'~'*)
10164      # FIXME: we may have to deal with multi-command sequences.
10165      ;;
10166    '$CC '*)
10167      # Test whether the compiler implicitly links with -lc since on some
10168      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10169      # to ld, don't add -lc before -lgcc.
10170      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10171$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10172if ${lt_cv_archive_cmds_need_lc+:} false; then :
10173  $as_echo_n "(cached) " >&6
10174else
10175  $RM conftest*
10176	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10177
10178	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10179  (eval $ac_compile) 2>&5
10180  ac_status=$?
10181  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10182  test $ac_status = 0; } 2>conftest.err; then
10183	  soname=conftest
10184	  lib=conftest
10185	  libobjs=conftest.$ac_objext
10186	  deplibs=
10187	  wl=$lt_prog_compiler_wl
10188	  pic_flag=$lt_prog_compiler_pic
10189	  compiler_flags=-v
10190	  linker_flags=-v
10191	  verstring=
10192	  output_objdir=.
10193	  libname=conftest
10194	  lt_save_allow_undefined_flag=$allow_undefined_flag
10195	  allow_undefined_flag=
10196	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10197  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10198  ac_status=$?
10199  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10200  test $ac_status = 0; }
10201	  then
10202	    lt_cv_archive_cmds_need_lc=no
10203	  else
10204	    lt_cv_archive_cmds_need_lc=yes
10205	  fi
10206	  allow_undefined_flag=$lt_save_allow_undefined_flag
10207	else
10208	  cat conftest.err 1>&5
10209	fi
10210	$RM conftest*
10211
10212fi
10213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10214$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10215      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10216      ;;
10217    esac
10218  fi
10219  ;;
10220esac
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10379$as_echo_n "checking dynamic linker characteristics... " >&6; }
10380
10381if test "$GCC" = yes; then
10382  case $host_os in
10383    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10384    *) lt_awk_arg="/^libraries:/" ;;
10385  esac
10386  case $host_os in
10387    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10388    *) lt_sed_strip_eq="s,=/,/,g" ;;
10389  esac
10390  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10391  case $lt_search_path_spec in
10392  *\;*)
10393    # if the path contains ";" then we assume it to be the separator
10394    # otherwise default to the standard path separator (i.e. ":") - it is
10395    # assumed that no part of a normal pathname contains ";" but that should
10396    # okay in the real world where ";" in dirpaths is itself problematic.
10397    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10398    ;;
10399  *)
10400    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10401    ;;
10402  esac
10403  # Ok, now we have the path, separated by spaces, we can step through it
10404  # and add multilib dir if necessary.
10405  lt_tmp_lt_search_path_spec=
10406  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10407  for lt_sys_path in $lt_search_path_spec; do
10408    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10409      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10410    else
10411      test -d "$lt_sys_path" && \
10412	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10413    fi
10414  done
10415  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10416BEGIN {RS=" "; FS="/|\n";} {
10417  lt_foo="";
10418  lt_count=0;
10419  for (lt_i = NF; lt_i > 0; lt_i--) {
10420    if ($lt_i != "" && $lt_i != ".") {
10421      if ($lt_i == "..") {
10422        lt_count++;
10423      } else {
10424        if (lt_count == 0) {
10425          lt_foo="/" $lt_i lt_foo;
10426        } else {
10427          lt_count--;
10428        }
10429      }
10430    }
10431  }
10432  if (lt_foo != "") { lt_freq[lt_foo]++; }
10433  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10434}'`
10435  # AWK program above erroneously prepends '/' to C:/dos/paths
10436  # for these hosts.
10437  case $host_os in
10438    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10439      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10440  esac
10441  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10442else
10443  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10444fi
10445library_names_spec=
10446libname_spec='lib$name'
10447soname_spec=
10448shrext_cmds=".so"
10449postinstall_cmds=
10450postuninstall_cmds=
10451finish_cmds=
10452finish_eval=
10453shlibpath_var=
10454shlibpath_overrides_runpath=unknown
10455version_type=none
10456dynamic_linker="$host_os ld.so"
10457sys_lib_dlsearch_path_spec="/lib /usr/lib"
10458need_lib_prefix=unknown
10459hardcode_into_libs=no
10460
10461# when you set need_version to no, make sure it does not cause -set_version
10462# flags to be left without arguments
10463need_version=unknown
10464
10465case $host_os in
10466aix3*)
10467  version_type=linux
10468  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10469  shlibpath_var=LIBPATH
10470
10471  # AIX 3 has no versioning support, so we append a major version to the name.
10472  soname_spec='${libname}${release}${shared_ext}$major'
10473  ;;
10474
10475aix[4-9]*)
10476  version_type=linux
10477  need_lib_prefix=no
10478  need_version=no
10479  hardcode_into_libs=yes
10480  if test "$host_cpu" = ia64; then
10481    # AIX 5 supports IA64
10482    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10483    shlibpath_var=LD_LIBRARY_PATH
10484  else
10485    # With GCC up to 2.95.x, collect2 would create an import file
10486    # for dependence libraries.  The import file would start with
10487    # the line `#! .'.  This would cause the generated library to
10488    # depend on `.', always an invalid library.  This was fixed in
10489    # development snapshots of GCC prior to 3.0.
10490    case $host_os in
10491      aix4 | aix4.[01] | aix4.[01].*)
10492      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10493	   echo ' yes '
10494	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10495	:
10496      else
10497	can_build_shared=no
10498      fi
10499      ;;
10500    esac
10501    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10502    # soname into executable. Probably we can add versioning support to
10503    # collect2, so additional links can be useful in future.
10504    if test "$aix_use_runtimelinking" = yes; then
10505      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10506      # instead of lib<name>.a to let people know that these are not
10507      # typical AIX shared libraries.
10508      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509    else
10510      # We preserve .a as extension for shared libraries through AIX4.2
10511      # and later when we are not doing run time linking.
10512      library_names_spec='${libname}${release}.a $libname.a'
10513      soname_spec='${libname}${release}${shared_ext}$major'
10514    fi
10515    shlibpath_var=LIBPATH
10516  fi
10517  ;;
10518
10519amigaos*)
10520  case $host_cpu in
10521  powerpc)
10522    # Since July 2007 AmigaOS4 officially supports .so libraries.
10523    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10524    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10525    ;;
10526  m68k)
10527    library_names_spec='$libname.ixlibrary $libname.a'
10528    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10529    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10530    ;;
10531  esac
10532  ;;
10533
10534beos*)
10535  library_names_spec='${libname}${shared_ext}'
10536  dynamic_linker="$host_os ld.so"
10537  shlibpath_var=LIBRARY_PATH
10538  ;;
10539
10540bsdi[45]*)
10541  version_type=linux
10542  need_version=no
10543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544  soname_spec='${libname}${release}${shared_ext}$major'
10545  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10546  shlibpath_var=LD_LIBRARY_PATH
10547  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10548  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10549  # the default ld.so.conf also contains /usr/contrib/lib and
10550  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10551  # libtool to hard-code these into programs
10552  ;;
10553
10554cygwin* | mingw* | pw32* | cegcc*)
10555  version_type=windows
10556  shrext_cmds=".dll"
10557  need_version=no
10558  need_lib_prefix=no
10559
10560  case $GCC,$host_os in
10561  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10562    library_names_spec='$libname.dll.a'
10563    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10564    postinstall_cmds='base_file=`basename \${file}`~
10565      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10566      dldir=$destdir/`dirname \$dlpath`~
10567      test -d \$dldir || mkdir -p \$dldir~
10568      $install_prog $dir/$dlname \$dldir/$dlname~
10569      chmod a+x \$dldir/$dlname~
10570      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10571        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10572      fi'
10573    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10574      dlpath=$dir/\$dldll~
10575       $RM \$dlpath'
10576    shlibpath_overrides_runpath=yes
10577
10578    case $host_os in
10579    cygwin*)
10580      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10581      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10582
10583      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10584      ;;
10585    mingw* | cegcc*)
10586      # MinGW DLLs use traditional 'lib' prefix
10587      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10588      ;;
10589    pw32*)
10590      # pw32 DLLs use 'pw' prefix rather than 'lib'
10591      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10592      ;;
10593    esac
10594    ;;
10595
10596  *)
10597    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10598    ;;
10599  esac
10600  dynamic_linker='Win32 ld.exe'
10601  # FIXME: first we should search . and the directory the executable is in
10602  shlibpath_var=PATH
10603  ;;
10604
10605darwin* | rhapsody*)
10606  dynamic_linker="$host_os dyld"
10607  version_type=darwin
10608  need_lib_prefix=no
10609  need_version=no
10610  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10611  soname_spec='${libname}${release}${major}$shared_ext'
10612  shlibpath_overrides_runpath=yes
10613  shlibpath_var=DYLD_LIBRARY_PATH
10614  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10615
10616  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10617  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10618  ;;
10619
10620dgux*)
10621  version_type=linux
10622  need_lib_prefix=no
10623  need_version=no
10624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10625  soname_spec='${libname}${release}${shared_ext}$major'
10626  shlibpath_var=LD_LIBRARY_PATH
10627  ;;
10628
10629freebsd1*)
10630  dynamic_linker=no
10631  ;;
10632
10633freebsd* | dragonfly*)
10634  # DragonFly does not have aout.  When/if they implement a new
10635  # versioning mechanism, adjust this.
10636  if test -x /usr/bin/objformat; then
10637    objformat=`/usr/bin/objformat`
10638  else
10639    case $host_os in
10640    freebsd[123]*) objformat=aout ;;
10641    *) objformat=elf ;;
10642    esac
10643  fi
10644  version_type=freebsd-$objformat
10645  case $version_type in
10646    freebsd-elf*)
10647      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10648      need_version=no
10649      need_lib_prefix=no
10650      ;;
10651    freebsd-*)
10652      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10653      need_version=yes
10654      ;;
10655  esac
10656  shlibpath_var=LD_LIBRARY_PATH
10657  case $host_os in
10658  freebsd2*)
10659    shlibpath_overrides_runpath=yes
10660    ;;
10661  freebsd3.[01]* | freebsdelf3.[01]*)
10662    shlibpath_overrides_runpath=yes
10663    hardcode_into_libs=yes
10664    ;;
10665  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10666  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10667    shlibpath_overrides_runpath=no
10668    hardcode_into_libs=yes
10669    ;;
10670  *) # from 4.6 on, and DragonFly
10671    shlibpath_overrides_runpath=yes
10672    hardcode_into_libs=yes
10673    ;;
10674  esac
10675  ;;
10676
10677gnu*)
10678  version_type=linux
10679  need_lib_prefix=no
10680  need_version=no
10681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10682  soname_spec='${libname}${release}${shared_ext}$major'
10683  shlibpath_var=LD_LIBRARY_PATH
10684  hardcode_into_libs=yes
10685  ;;
10686
10687haiku*)
10688  version_type=linux
10689  need_lib_prefix=no
10690  need_version=no
10691  dynamic_linker="$host_os runtime_loader"
10692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10693  soname_spec='${libname}${release}${shared_ext}$major'
10694  shlibpath_var=LIBRARY_PATH
10695  shlibpath_overrides_runpath=yes
10696  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10697  hardcode_into_libs=yes
10698  ;;
10699
10700hpux9* | hpux10* | hpux11*)
10701  # Give a soname corresponding to the major version so that dld.sl refuses to
10702  # link against other versions.
10703  version_type=sunos
10704  need_lib_prefix=no
10705  need_version=no
10706  case $host_cpu in
10707  ia64*)
10708    shrext_cmds='.so'
10709    hardcode_into_libs=yes
10710    dynamic_linker="$host_os dld.so"
10711    shlibpath_var=LD_LIBRARY_PATH
10712    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10713    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714    soname_spec='${libname}${release}${shared_ext}$major'
10715    if test "X$HPUX_IA64_MODE" = X32; then
10716      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10717    else
10718      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10719    fi
10720    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10721    ;;
10722  hppa*64*)
10723    shrext_cmds='.sl'
10724    hardcode_into_libs=yes
10725    dynamic_linker="$host_os dld.sl"
10726    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10727    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10728    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10729    soname_spec='${libname}${release}${shared_ext}$major'
10730    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10731    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10732    ;;
10733  *)
10734    shrext_cmds='.sl'
10735    dynamic_linker="$host_os dld.sl"
10736    shlibpath_var=SHLIB_PATH
10737    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10738    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739    soname_spec='${libname}${release}${shared_ext}$major'
10740    ;;
10741  esac
10742  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10743  postinstall_cmds='chmod 555 $lib'
10744  # or fails outright, so override atomically:
10745  install_override_mode=555
10746  ;;
10747
10748interix[3-9]*)
10749  version_type=linux
10750  need_lib_prefix=no
10751  need_version=no
10752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10753  soname_spec='${libname}${release}${shared_ext}$major'
10754  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10755  shlibpath_var=LD_LIBRARY_PATH
10756  shlibpath_overrides_runpath=no
10757  hardcode_into_libs=yes
10758  ;;
10759
10760irix5* | irix6* | nonstopux*)
10761  case $host_os in
10762    nonstopux*) version_type=nonstopux ;;
10763    *)
10764	if test "$lt_cv_prog_gnu_ld" = yes; then
10765		version_type=linux
10766	else
10767		version_type=irix
10768	fi ;;
10769  esac
10770  need_lib_prefix=no
10771  need_version=no
10772  soname_spec='${libname}${release}${shared_ext}$major'
10773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10774  case $host_os in
10775  irix5* | nonstopux*)
10776    libsuff= shlibsuff=
10777    ;;
10778  *)
10779    case $LD in # libtool.m4 will add one of these switches to LD
10780    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10781      libsuff= shlibsuff= libmagic=32-bit;;
10782    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10783      libsuff=32 shlibsuff=N32 libmagic=N32;;
10784    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10785      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10786    *) libsuff= shlibsuff= libmagic=never-match;;
10787    esac
10788    ;;
10789  esac
10790  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10791  shlibpath_overrides_runpath=no
10792  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10793  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10794  hardcode_into_libs=yes
10795  ;;
10796
10797# No shared lib support for Linux oldld, aout, or coff.
10798linux*oldld* | linux*aout* | linux*coff*)
10799  dynamic_linker=no
10800  ;;
10801
10802# This must be Linux ELF.
10803linux* | k*bsd*-gnu | kopensolaris*-gnu)
10804  version_type=linux
10805  need_lib_prefix=no
10806  need_version=no
10807  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10808  soname_spec='${libname}${release}${shared_ext}$major'
10809  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10810  shlibpath_var=LD_LIBRARY_PATH
10811  shlibpath_overrides_runpath=no
10812
10813  # Some binutils ld are patched to set DT_RUNPATH
10814  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10815  $as_echo_n "(cached) " >&6
10816else
10817  lt_cv_shlibpath_overrides_runpath=no
10818    save_LDFLAGS=$LDFLAGS
10819    save_libdir=$libdir
10820    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10821	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10822    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823/* end confdefs.h.  */
10824
10825int
10826main ()
10827{
10828
10829  ;
10830  return 0;
10831}
10832_ACEOF
10833if ac_fn_c_try_link "$LINENO"; then :
10834  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10835  lt_cv_shlibpath_overrides_runpath=yes
10836fi
10837fi
10838rm -f core conftest.err conftest.$ac_objext \
10839    conftest$ac_exeext conftest.$ac_ext
10840    LDFLAGS=$save_LDFLAGS
10841    libdir=$save_libdir
10842
10843fi
10844
10845  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10846
10847  # This implies no fast_install, which is unacceptable.
10848  # Some rework will be needed to allow for fast_install
10849  # before this can be enabled.
10850  hardcode_into_libs=yes
10851
10852  # Append ld.so.conf contents to the search path
10853  if test -f /etc/ld.so.conf; then
10854    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10855    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10856  fi
10857
10858  # We used to test for /lib/ld.so.1 and disable shared libraries on
10859  # powerpc, because MkLinux only supported shared libraries with the
10860  # GNU dynamic linker.  Since this was broken with cross compilers,
10861  # most powerpc-linux boxes support dynamic linking these days and
10862  # people can always --disable-shared, the test was removed, and we
10863  # assume the GNU/Linux dynamic linker is in use.
10864  dynamic_linker='GNU/Linux ld.so'
10865  ;;
10866
10867netbsd*)
10868  version_type=sunos
10869  need_lib_prefix=no
10870  need_version=no
10871  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10872    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10873    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10874    dynamic_linker='NetBSD (a.out) ld.so'
10875  else
10876    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10877    soname_spec='${libname}${release}${shared_ext}$major'
10878    dynamic_linker='NetBSD ld.elf_so'
10879  fi
10880  shlibpath_var=LD_LIBRARY_PATH
10881  shlibpath_overrides_runpath=yes
10882  hardcode_into_libs=yes
10883  ;;
10884
10885newsos6)
10886  version_type=linux
10887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10888  shlibpath_var=LD_LIBRARY_PATH
10889  shlibpath_overrides_runpath=yes
10890  ;;
10891
10892*nto* | *qnx*)
10893  version_type=qnx
10894  need_lib_prefix=no
10895  need_version=no
10896  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10897  soname_spec='${libname}${release}${shared_ext}$major'
10898  shlibpath_var=LD_LIBRARY_PATH
10899  shlibpath_overrides_runpath=no
10900  hardcode_into_libs=yes
10901  dynamic_linker='ldqnx.so'
10902  ;;
10903
10904openbsd*)
10905  version_type=sunos
10906  sys_lib_dlsearch_path_spec="/usr/lib"
10907  need_lib_prefix=no
10908  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10909  case $host_os in
10910    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10911    *)				need_version=no  ;;
10912  esac
10913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10914  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10915  shlibpath_var=LD_LIBRARY_PATH
10916  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10917    case $host_os in
10918      openbsd2.[89] | openbsd2.[89].*)
10919	shlibpath_overrides_runpath=no
10920	;;
10921      *)
10922	shlibpath_overrides_runpath=yes
10923	;;
10924      esac
10925  else
10926    shlibpath_overrides_runpath=yes
10927  fi
10928  ;;
10929
10930os2*)
10931  libname_spec='$name'
10932  shrext_cmds=".dll"
10933  need_lib_prefix=no
10934  library_names_spec='$libname${shared_ext} $libname.a'
10935  dynamic_linker='OS/2 ld.exe'
10936  shlibpath_var=LIBPATH
10937  ;;
10938
10939osf3* | osf4* | osf5*)
10940  version_type=osf
10941  need_lib_prefix=no
10942  need_version=no
10943  soname_spec='${libname}${release}${shared_ext}$major'
10944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945  shlibpath_var=LD_LIBRARY_PATH
10946  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10947  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10948  ;;
10949
10950rdos*)
10951  dynamic_linker=no
10952  ;;
10953
10954solaris*)
10955  version_type=linux
10956  need_lib_prefix=no
10957  need_version=no
10958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10959  soname_spec='${libname}${release}${shared_ext}$major'
10960  shlibpath_var=LD_LIBRARY_PATH
10961  shlibpath_overrides_runpath=yes
10962  hardcode_into_libs=yes
10963  # ldd complains unless libraries are executable
10964  postinstall_cmds='chmod +x $lib'
10965  ;;
10966
10967sunos4*)
10968  version_type=sunos
10969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10970  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10971  shlibpath_var=LD_LIBRARY_PATH
10972  shlibpath_overrides_runpath=yes
10973  if test "$with_gnu_ld" = yes; then
10974    need_lib_prefix=no
10975  fi
10976  need_version=yes
10977  ;;
10978
10979sysv4 | sysv4.3*)
10980  version_type=linux
10981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10982  soname_spec='${libname}${release}${shared_ext}$major'
10983  shlibpath_var=LD_LIBRARY_PATH
10984  case $host_vendor in
10985    sni)
10986      shlibpath_overrides_runpath=no
10987      need_lib_prefix=no
10988      runpath_var=LD_RUN_PATH
10989      ;;
10990    siemens)
10991      need_lib_prefix=no
10992      ;;
10993    motorola)
10994      need_lib_prefix=no
10995      need_version=no
10996      shlibpath_overrides_runpath=no
10997      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10998      ;;
10999  esac
11000  ;;
11001
11002sysv4*MP*)
11003  if test -d /usr/nec ;then
11004    version_type=linux
11005    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11006    soname_spec='$libname${shared_ext}.$major'
11007    shlibpath_var=LD_LIBRARY_PATH
11008  fi
11009  ;;
11010
11011sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11012  version_type=freebsd-elf
11013  need_lib_prefix=no
11014  need_version=no
11015  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11016  soname_spec='${libname}${release}${shared_ext}$major'
11017  shlibpath_var=LD_LIBRARY_PATH
11018  shlibpath_overrides_runpath=yes
11019  hardcode_into_libs=yes
11020  if test "$with_gnu_ld" = yes; then
11021    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11022  else
11023    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11024    case $host_os in
11025      sco3.2v5*)
11026        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11027	;;
11028    esac
11029  fi
11030  sys_lib_dlsearch_path_spec='/usr/lib'
11031  ;;
11032
11033tpf*)
11034  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11035  version_type=linux
11036  need_lib_prefix=no
11037  need_version=no
11038  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11039  shlibpath_var=LD_LIBRARY_PATH
11040  shlibpath_overrides_runpath=no
11041  hardcode_into_libs=yes
11042  ;;
11043
11044uts4*)
11045  version_type=linux
11046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047  soname_spec='${libname}${release}${shared_ext}$major'
11048  shlibpath_var=LD_LIBRARY_PATH
11049  ;;
11050
11051*)
11052  dynamic_linker=no
11053  ;;
11054esac
11055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11056$as_echo "$dynamic_linker" >&6; }
11057test "$dynamic_linker" = no && can_build_shared=no
11058
11059variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11060if test "$GCC" = yes; then
11061  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11062fi
11063
11064if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11065  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11066fi
11067if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11068  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11069fi
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11163$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11164hardcode_action=
11165if test -n "$hardcode_libdir_flag_spec" ||
11166   test -n "$runpath_var" ||
11167   test "X$hardcode_automatic" = "Xyes" ; then
11168
11169  # We can hardcode non-existent directories.
11170  if test "$hardcode_direct" != no &&
11171     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11172     # have to relink, otherwise we might link with an installed library
11173     # when we should be linking with a yet-to-be-installed one
11174     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11175     test "$hardcode_minus_L" != no; then
11176    # Linking always hardcodes the temporary library directory.
11177    hardcode_action=relink
11178  else
11179    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11180    hardcode_action=immediate
11181  fi
11182else
11183  # We cannot hardcode anything, or else we can only hardcode existing
11184  # directories.
11185  hardcode_action=unsupported
11186fi
11187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11188$as_echo "$hardcode_action" >&6; }
11189
11190if test "$hardcode_action" = relink ||
11191   test "$inherit_rpath" = yes; then
11192  # Fast installation is not supported
11193  enable_fast_install=no
11194elif test "$shlibpath_overrides_runpath" = yes ||
11195     test "$enable_shared" = no; then
11196  # Fast installation is not necessary
11197  enable_fast_install=needless
11198fi
11199
11200
11201
11202
11203
11204
11205  if test "x$enable_dlopen" != xyes; then
11206  enable_dlopen=unknown
11207  enable_dlopen_self=unknown
11208  enable_dlopen_self_static=unknown
11209else
11210  lt_cv_dlopen=no
11211  lt_cv_dlopen_libs=
11212
11213  case $host_os in
11214  beos*)
11215    lt_cv_dlopen="load_add_on"
11216    lt_cv_dlopen_libs=
11217    lt_cv_dlopen_self=yes
11218    ;;
11219
11220  mingw* | pw32* | cegcc*)
11221    lt_cv_dlopen="LoadLibrary"
11222    lt_cv_dlopen_libs=
11223    ;;
11224
11225  cygwin*)
11226    lt_cv_dlopen="dlopen"
11227    lt_cv_dlopen_libs=
11228    ;;
11229
11230  darwin*)
11231  # if libdl is installed we need to link against it
11232    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11233$as_echo_n "checking for dlopen in -ldl... " >&6; }
11234if ${ac_cv_lib_dl_dlopen+:} false; then :
11235  $as_echo_n "(cached) " >&6
11236else
11237  ac_check_lib_save_LIBS=$LIBS
11238LIBS="-ldl  $LIBS"
11239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240/* end confdefs.h.  */
11241
11242/* Override any GCC internal prototype to avoid an error.
11243   Use char because int might match the return type of a GCC
11244   builtin and then its argument prototype would still apply.  */
11245#ifdef __cplusplus
11246extern "C"
11247#endif
11248char dlopen ();
11249int
11250main ()
11251{
11252return dlopen ();
11253  ;
11254  return 0;
11255}
11256_ACEOF
11257if ac_fn_c_try_link "$LINENO"; then :
11258  ac_cv_lib_dl_dlopen=yes
11259else
11260  ac_cv_lib_dl_dlopen=no
11261fi
11262rm -f core conftest.err conftest.$ac_objext \
11263    conftest$ac_exeext conftest.$ac_ext
11264LIBS=$ac_check_lib_save_LIBS
11265fi
11266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11267$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11268if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11269  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11270else
11271
11272    lt_cv_dlopen="dyld"
11273    lt_cv_dlopen_libs=
11274    lt_cv_dlopen_self=yes
11275
11276fi
11277
11278    ;;
11279
11280  *)
11281    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11282if test "x$ac_cv_func_shl_load" = xyes; then :
11283  lt_cv_dlopen="shl_load"
11284else
11285  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11286$as_echo_n "checking for shl_load in -ldld... " >&6; }
11287if ${ac_cv_lib_dld_shl_load+:} false; then :
11288  $as_echo_n "(cached) " >&6
11289else
11290  ac_check_lib_save_LIBS=$LIBS
11291LIBS="-ldld  $LIBS"
11292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293/* end confdefs.h.  */
11294
11295/* Override any GCC internal prototype to avoid an error.
11296   Use char because int might match the return type of a GCC
11297   builtin and then its argument prototype would still apply.  */
11298#ifdef __cplusplus
11299extern "C"
11300#endif
11301char shl_load ();
11302int
11303main ()
11304{
11305return shl_load ();
11306  ;
11307  return 0;
11308}
11309_ACEOF
11310if ac_fn_c_try_link "$LINENO"; then :
11311  ac_cv_lib_dld_shl_load=yes
11312else
11313  ac_cv_lib_dld_shl_load=no
11314fi
11315rm -f core conftest.err conftest.$ac_objext \
11316    conftest$ac_exeext conftest.$ac_ext
11317LIBS=$ac_check_lib_save_LIBS
11318fi
11319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11320$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11321if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11322  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11323else
11324  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11325if test "x$ac_cv_func_dlopen" = xyes; then :
11326  lt_cv_dlopen="dlopen"
11327else
11328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11329$as_echo_n "checking for dlopen in -ldl... " >&6; }
11330if ${ac_cv_lib_dl_dlopen+:} false; then :
11331  $as_echo_n "(cached) " >&6
11332else
11333  ac_check_lib_save_LIBS=$LIBS
11334LIBS="-ldl  $LIBS"
11335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11336/* end confdefs.h.  */
11337
11338/* Override any GCC internal prototype to avoid an error.
11339   Use char because int might match the return type of a GCC
11340   builtin and then its argument prototype would still apply.  */
11341#ifdef __cplusplus
11342extern "C"
11343#endif
11344char dlopen ();
11345int
11346main ()
11347{
11348return dlopen ();
11349  ;
11350  return 0;
11351}
11352_ACEOF
11353if ac_fn_c_try_link "$LINENO"; then :
11354  ac_cv_lib_dl_dlopen=yes
11355else
11356  ac_cv_lib_dl_dlopen=no
11357fi
11358rm -f core conftest.err conftest.$ac_objext \
11359    conftest$ac_exeext conftest.$ac_ext
11360LIBS=$ac_check_lib_save_LIBS
11361fi
11362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11363$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11364if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11365  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11366else
11367  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11368$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11369if ${ac_cv_lib_svld_dlopen+:} false; then :
11370  $as_echo_n "(cached) " >&6
11371else
11372  ac_check_lib_save_LIBS=$LIBS
11373LIBS="-lsvld  $LIBS"
11374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375/* end confdefs.h.  */
11376
11377/* Override any GCC internal prototype to avoid an error.
11378   Use char because int might match the return type of a GCC
11379   builtin and then its argument prototype would still apply.  */
11380#ifdef __cplusplus
11381extern "C"
11382#endif
11383char dlopen ();
11384int
11385main ()
11386{
11387return dlopen ();
11388  ;
11389  return 0;
11390}
11391_ACEOF
11392if ac_fn_c_try_link "$LINENO"; then :
11393  ac_cv_lib_svld_dlopen=yes
11394else
11395  ac_cv_lib_svld_dlopen=no
11396fi
11397rm -f core conftest.err conftest.$ac_objext \
11398    conftest$ac_exeext conftest.$ac_ext
11399LIBS=$ac_check_lib_save_LIBS
11400fi
11401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11402$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11403if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11404  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11405else
11406  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11407$as_echo_n "checking for dld_link in -ldld... " >&6; }
11408if ${ac_cv_lib_dld_dld_link+:} false; then :
11409  $as_echo_n "(cached) " >&6
11410else
11411  ac_check_lib_save_LIBS=$LIBS
11412LIBS="-ldld  $LIBS"
11413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414/* end confdefs.h.  */
11415
11416/* Override any GCC internal prototype to avoid an error.
11417   Use char because int might match the return type of a GCC
11418   builtin and then its argument prototype would still apply.  */
11419#ifdef __cplusplus
11420extern "C"
11421#endif
11422char dld_link ();
11423int
11424main ()
11425{
11426return dld_link ();
11427  ;
11428  return 0;
11429}
11430_ACEOF
11431if ac_fn_c_try_link "$LINENO"; then :
11432  ac_cv_lib_dld_dld_link=yes
11433else
11434  ac_cv_lib_dld_dld_link=no
11435fi
11436rm -f core conftest.err conftest.$ac_objext \
11437    conftest$ac_exeext conftest.$ac_ext
11438LIBS=$ac_check_lib_save_LIBS
11439fi
11440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11441$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11442if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11443  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11444fi
11445
11446
11447fi
11448
11449
11450fi
11451
11452
11453fi
11454
11455
11456fi
11457
11458
11459fi
11460
11461    ;;
11462  esac
11463
11464  if test "x$lt_cv_dlopen" != xno; then
11465    enable_dlopen=yes
11466  else
11467    enable_dlopen=no
11468  fi
11469
11470  case $lt_cv_dlopen in
11471  dlopen)
11472    save_CPPFLAGS="$CPPFLAGS"
11473    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11474
11475    save_LDFLAGS="$LDFLAGS"
11476    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11477
11478    save_LIBS="$LIBS"
11479    LIBS="$lt_cv_dlopen_libs $LIBS"
11480
11481    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11482$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11483if ${lt_cv_dlopen_self+:} false; then :
11484  $as_echo_n "(cached) " >&6
11485else
11486  	  if test "$cross_compiling" = yes; then :
11487  lt_cv_dlopen_self=cross
11488else
11489  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11490  lt_status=$lt_dlunknown
11491  cat > conftest.$ac_ext <<_LT_EOF
11492#line $LINENO "configure"
11493#include "confdefs.h"
11494
11495#if HAVE_DLFCN_H
11496#include <dlfcn.h>
11497#endif
11498
11499#include <stdio.h>
11500
11501#ifdef RTLD_GLOBAL
11502#  define LT_DLGLOBAL		RTLD_GLOBAL
11503#else
11504#  ifdef DL_GLOBAL
11505#    define LT_DLGLOBAL		DL_GLOBAL
11506#  else
11507#    define LT_DLGLOBAL		0
11508#  endif
11509#endif
11510
11511/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11512   find out it does not work in some platform. */
11513#ifndef LT_DLLAZY_OR_NOW
11514#  ifdef RTLD_LAZY
11515#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11516#  else
11517#    ifdef DL_LAZY
11518#      define LT_DLLAZY_OR_NOW		DL_LAZY
11519#    else
11520#      ifdef RTLD_NOW
11521#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11522#      else
11523#        ifdef DL_NOW
11524#          define LT_DLLAZY_OR_NOW	DL_NOW
11525#        else
11526#          define LT_DLLAZY_OR_NOW	0
11527#        endif
11528#      endif
11529#    endif
11530#  endif
11531#endif
11532
11533/* When -fvisbility=hidden is used, assume the code has been annotated
11534   correspondingly for the symbols needed.  */
11535#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11536void fnord () __attribute__((visibility("default")));
11537#endif
11538
11539void fnord () { int i=42; }
11540int main ()
11541{
11542  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11543  int status = $lt_dlunknown;
11544
11545  if (self)
11546    {
11547      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11548      else
11549        {
11550	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11551          else puts (dlerror ());
11552	}
11553      /* dlclose (self); */
11554    }
11555  else
11556    puts (dlerror ());
11557
11558  return status;
11559}
11560_LT_EOF
11561  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11562  (eval $ac_link) 2>&5
11563  ac_status=$?
11564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11565  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11566    (./conftest; exit; ) >&5 2>/dev/null
11567    lt_status=$?
11568    case x$lt_status in
11569      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11570      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11571      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11572    esac
11573  else :
11574    # compilation failed
11575    lt_cv_dlopen_self=no
11576  fi
11577fi
11578rm -fr conftest*
11579
11580
11581fi
11582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11583$as_echo "$lt_cv_dlopen_self" >&6; }
11584
11585    if test "x$lt_cv_dlopen_self" = xyes; then
11586      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11587      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11588$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11589if ${lt_cv_dlopen_self_static+:} false; then :
11590  $as_echo_n "(cached) " >&6
11591else
11592  	  if test "$cross_compiling" = yes; then :
11593  lt_cv_dlopen_self_static=cross
11594else
11595  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11596  lt_status=$lt_dlunknown
11597  cat > conftest.$ac_ext <<_LT_EOF
11598#line $LINENO "configure"
11599#include "confdefs.h"
11600
11601#if HAVE_DLFCN_H
11602#include <dlfcn.h>
11603#endif
11604
11605#include <stdio.h>
11606
11607#ifdef RTLD_GLOBAL
11608#  define LT_DLGLOBAL		RTLD_GLOBAL
11609#else
11610#  ifdef DL_GLOBAL
11611#    define LT_DLGLOBAL		DL_GLOBAL
11612#  else
11613#    define LT_DLGLOBAL		0
11614#  endif
11615#endif
11616
11617/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11618   find out it does not work in some platform. */
11619#ifndef LT_DLLAZY_OR_NOW
11620#  ifdef RTLD_LAZY
11621#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11622#  else
11623#    ifdef DL_LAZY
11624#      define LT_DLLAZY_OR_NOW		DL_LAZY
11625#    else
11626#      ifdef RTLD_NOW
11627#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11628#      else
11629#        ifdef DL_NOW
11630#          define LT_DLLAZY_OR_NOW	DL_NOW
11631#        else
11632#          define LT_DLLAZY_OR_NOW	0
11633#        endif
11634#      endif
11635#    endif
11636#  endif
11637#endif
11638
11639/* When -fvisbility=hidden is used, assume the code has been annotated
11640   correspondingly for the symbols needed.  */
11641#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11642void fnord () __attribute__((visibility("default")));
11643#endif
11644
11645void fnord () { int i=42; }
11646int main ()
11647{
11648  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11649  int status = $lt_dlunknown;
11650
11651  if (self)
11652    {
11653      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11654      else
11655        {
11656	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11657          else puts (dlerror ());
11658	}
11659      /* dlclose (self); */
11660    }
11661  else
11662    puts (dlerror ());
11663
11664  return status;
11665}
11666_LT_EOF
11667  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11668  (eval $ac_link) 2>&5
11669  ac_status=$?
11670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11671  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11672    (./conftest; exit; ) >&5 2>/dev/null
11673    lt_status=$?
11674    case x$lt_status in
11675      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11676      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11677      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11678    esac
11679  else :
11680    # compilation failed
11681    lt_cv_dlopen_self_static=no
11682  fi
11683fi
11684rm -fr conftest*
11685
11686
11687fi
11688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11689$as_echo "$lt_cv_dlopen_self_static" >&6; }
11690    fi
11691
11692    CPPFLAGS="$save_CPPFLAGS"
11693    LDFLAGS="$save_LDFLAGS"
11694    LIBS="$save_LIBS"
11695    ;;
11696  esac
11697
11698  case $lt_cv_dlopen_self in
11699  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11700  *) enable_dlopen_self=unknown ;;
11701  esac
11702
11703  case $lt_cv_dlopen_self_static in
11704  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11705  *) enable_dlopen_self_static=unknown ;;
11706  esac
11707fi
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725striplib=
11726old_striplib=
11727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11728$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11729if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11730  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11731  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11733$as_echo "yes" >&6; }
11734else
11735# FIXME - insert some real tests, host_os isn't really good enough
11736  case $host_os in
11737  darwin*)
11738    if test -n "$STRIP" ; then
11739      striplib="$STRIP -x"
11740      old_striplib="$STRIP -S"
11741      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11742$as_echo "yes" >&6; }
11743    else
11744      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745$as_echo "no" >&6; }
11746    fi
11747    ;;
11748  *)
11749    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750$as_echo "no" >&6; }
11751    ;;
11752  esac
11753fi
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766  # Report which library types will actually be built
11767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11768$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11770$as_echo "$can_build_shared" >&6; }
11771
11772  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11773$as_echo_n "checking whether to build shared libraries... " >&6; }
11774  test "$can_build_shared" = "no" && enable_shared=no
11775
11776  # On AIX, shared libraries and static libraries use the same namespace, and
11777  # are all built from PIC.
11778  case $host_os in
11779  aix3*)
11780    test "$enable_shared" = yes && enable_static=no
11781    if test -n "$RANLIB"; then
11782      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11783      postinstall_cmds='$RANLIB $lib'
11784    fi
11785    ;;
11786
11787  aix[4-9]*)
11788    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11789      test "$enable_shared" = yes && enable_static=no
11790    fi
11791    ;;
11792  esac
11793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11794$as_echo "$enable_shared" >&6; }
11795
11796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11797$as_echo_n "checking whether to build static libraries... " >&6; }
11798  # Make sure either enable_shared or enable_static is yes.
11799  test "$enable_shared" = yes || enable_static=yes
11800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11801$as_echo "$enable_static" >&6; }
11802
11803
11804
11805
11806fi
11807ac_ext=c
11808ac_cpp='$CPP $CPPFLAGS'
11809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11811ac_compiler_gnu=$ac_cv_c_compiler_gnu
11812
11813CC="$lt_save_CC"
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827        ac_config_commands="$ac_config_commands libtool"
11828
11829
11830
11831
11832# Only expand once:
11833
11834
11835
11836# Check for dependencies
11837
11838pkg_failed=no
11839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSCRNSAVER" >&5
11840$as_echo_n "checking for XSCRNSAVER... " >&6; }
11841
11842if test -n "$XSCRNSAVER_CFLAGS"; then
11843    pkg_cv_XSCRNSAVER_CFLAGS="$XSCRNSAVER_CFLAGS"
11844 elif test -n "$PKG_CONFIG"; then
11845    if test -n "$PKG_CONFIG" && \
11846    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto scrnsaverproto >= 1.2\""; } >&5
11847  ($PKG_CONFIG --exists --print-errors "x11 xext xextproto scrnsaverproto >= 1.2") 2>&5
11848  ac_status=$?
11849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11850  test $ac_status = 0; }; then
11851  pkg_cv_XSCRNSAVER_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto scrnsaverproto >= 1.2" 2>/dev/null`
11852else
11853  pkg_failed=yes
11854fi
11855 else
11856    pkg_failed=untried
11857fi
11858if test -n "$XSCRNSAVER_LIBS"; then
11859    pkg_cv_XSCRNSAVER_LIBS="$XSCRNSAVER_LIBS"
11860 elif test -n "$PKG_CONFIG"; then
11861    if test -n "$PKG_CONFIG" && \
11862    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto scrnsaverproto >= 1.2\""; } >&5
11863  ($PKG_CONFIG --exists --print-errors "x11 xext xextproto scrnsaverproto >= 1.2") 2>&5
11864  ac_status=$?
11865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11866  test $ac_status = 0; }; then
11867  pkg_cv_XSCRNSAVER_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto scrnsaverproto >= 1.2" 2>/dev/null`
11868else
11869  pkg_failed=yes
11870fi
11871 else
11872    pkg_failed=untried
11873fi
11874
11875
11876
11877if test $pkg_failed = yes; then
11878
11879if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11880        _pkg_short_errors_supported=yes
11881else
11882        _pkg_short_errors_supported=no
11883fi
11884        if test $_pkg_short_errors_supported = yes; then
11885	        XSCRNSAVER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto scrnsaverproto >= 1.2" 2>&1`
11886        else
11887	        XSCRNSAVER_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto scrnsaverproto >= 1.2" 2>&1`
11888        fi
11889	# Put the nasty error message in config.log where it belongs
11890	echo "$XSCRNSAVER_PKG_ERRORS" >&5
11891
11892	as_fn_error $? "Package requirements (x11 xext xextproto scrnsaverproto >= 1.2) were not met:
11893
11894$XSCRNSAVER_PKG_ERRORS
11895
11896Consider adjusting the PKG_CONFIG_PATH environment variable if you
11897installed software in a non-standard prefix.
11898
11899Alternatively, you may set the environment variables XSCRNSAVER_CFLAGS
11900and XSCRNSAVER_LIBS to avoid the need to call pkg-config.
11901See the pkg-config man page for more details.
11902" "$LINENO" 5
11903elif test $pkg_failed = untried; then
11904	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11906as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11907is in your PATH or set the PKG_CONFIG environment variable to the full
11908path to pkg-config.
11909
11910Alternatively, you may set the environment variables XSCRNSAVER_CFLAGS
11911and XSCRNSAVER_LIBS to avoid the need to call pkg-config.
11912See the pkg-config man page for more details.
11913
11914To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11915See \`config.log' for more details" "$LINENO" 5; }
11916else
11917	XSCRNSAVER_CFLAGS=$pkg_cv_XSCRNSAVER_CFLAGS
11918	XSCRNSAVER_LIBS=$pkg_cv_XSCRNSAVER_LIBS
11919        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11920$as_echo "yes" >&6; }
11921	:
11922fi
11923
11924
11925
11926
11927
11928
11929# Check whether --with-lint was given.
11930if test "${with_lint+set}" = set; then :
11931  withval=$with_lint; use_lint=$withval
11932else
11933  use_lint=no
11934fi
11935
11936
11937# Obtain platform specific info like program name and options
11938# The lint program on FreeBSD and NetBSD is different from the one on Solaris
11939case $host_os in
11940  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11941	lint_name=splint
11942	lint_options="-badflag"
11943	;;
11944  *freebsd* | *netbsd*)
11945	lint_name=lint
11946	lint_options="-u -b"
11947	;;
11948  *solaris*)
11949	lint_name=lint
11950	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11951	;;
11952esac
11953
11954# Test for the presence of the program (either guessed by the code or spelled out by the user)
11955if test "x$use_lint" = x"yes" ; then
11956   # Extract the first word of "$lint_name", so it can be a program name with args.
11957set dummy $lint_name; ac_word=$2
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959$as_echo_n "checking for $ac_word... " >&6; }
11960if ${ac_cv_path_LINT+:} false; then :
11961  $as_echo_n "(cached) " >&6
11962else
11963  case $LINT in
11964  [\\/]* | ?:[\\/]*)
11965  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11966  ;;
11967  *)
11968  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11969for as_dir in $PATH
11970do
11971  IFS=$as_save_IFS
11972  test -z "$as_dir" && as_dir=.
11973    for ac_exec_ext in '' $ac_executable_extensions; do
11974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11975    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
11976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11977    break 2
11978  fi
11979done
11980  done
11981IFS=$as_save_IFS
11982
11983  ;;
11984esac
11985fi
11986LINT=$ac_cv_path_LINT
11987if test -n "$LINT"; then
11988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11989$as_echo "$LINT" >&6; }
11990else
11991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992$as_echo "no" >&6; }
11993fi
11994
11995
11996   if test "x$LINT" = "x"; then
11997        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11998   fi
11999elif test "x$use_lint" = x"no" ; then
12000   if test "x$LINT" != "x"; then
12001      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12002$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12003   fi
12004else
12005   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12006fi
12007
12008# User supplied flags override default flags
12009if test "x$LINT_FLAGS" != "x"; then
12010   lint_options=$LINT_FLAGS
12011fi
12012
12013LINT_FLAGS=$lint_options
12014
12015 if test "x$LINT" != x; then
12016  LINT_TRUE=
12017  LINT_FALSE='#'
12018else
12019  LINT_TRUE='#'
12020  LINT_FALSE=
12021fi
12022
12023
12024
12025
12026
12027# Check whether --enable-lint-library was given.
12028if test "${enable_lint_library+set}" = set; then :
12029  enableval=$enable_lint_library; make_lint_lib=$enableval
12030else
12031  make_lint_lib=no
12032fi
12033
12034
12035if test "x$make_lint_lib" = x"yes" ; then
12036   LINTLIB=llib-lXss.ln
12037   if test "x$LINT" = "x"; then
12038        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
12039   fi
12040elif test "x$make_lint_lib" != x"no" ; then
12041   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
12042fi
12043
12044
12045 if test x$make_lint_lib != xno; then
12046  MAKE_LINT_LIB_TRUE=
12047  MAKE_LINT_LIB_FALSE='#'
12048else
12049  MAKE_LINT_LIB_TRUE='#'
12050  MAKE_LINT_LIB_FALSE=
12051fi
12052
12053
12054
12055
12056
12057# Check whether --enable-malloc0returnsnull was given.
12058if test "${enable_malloc0returnsnull+set}" = set; then :
12059  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
12060else
12061  MALLOC_ZERO_RETURNS_NULL=auto
12062fi
12063
12064
12065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
12066$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
12067if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
12068	if test "$cross_compiling" = yes; then :
12069  MALLOC_ZERO_RETURNS_NULL=yes
12070else
12071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072/* end confdefs.h.  */
12073
12074char *malloc();
12075char *realloc();
12076char *calloc();
12077main() {
12078    char *m0, *r0, *c0, *p;
12079    m0 = malloc(0);
12080    p = malloc(10);
12081    r0 = realloc(p,0);
12082    c0 = calloc(0);
12083    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
12084}
12085_ACEOF
12086if ac_fn_c_try_run "$LINENO"; then :
12087  MALLOC_ZERO_RETURNS_NULL=yes
12088else
12089  MALLOC_ZERO_RETURNS_NULL=no
12090fi
12091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12092  conftest.$ac_objext conftest.beam conftest.$ac_ext
12093fi
12094
12095fi
12096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
12097$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
12098
12099if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
12100	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
12101	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
12102	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
12103else
12104	MALLOC_ZERO_CFLAGS=""
12105	XMALLOC_ZERO_CFLAGS=""
12106	XTMALLOC_ZERO_CFLAGS=""
12107fi
12108
12109
12110
12111
12112
12113
12114ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xscrnsaver.pc"
12115
12116cat >confcache <<\_ACEOF
12117# This file is a shell script that caches the results of configure
12118# tests run on this system so they can be shared between configure
12119# scripts and configure runs, see configure's option --config-cache.
12120# It is not useful on other systems.  If it contains results you don't
12121# want to keep, you may remove or edit it.
12122#
12123# config.status only pays attention to the cache file if you give it
12124# the --recheck option to rerun configure.
12125#
12126# `ac_cv_env_foo' variables (set or unset) will be overridden when
12127# loading this file, other *unset* `ac_cv_foo' will be assigned the
12128# following values.
12129
12130_ACEOF
12131
12132# The following way of writing the cache mishandles newlines in values,
12133# but we know of no workaround that is simple, portable, and efficient.
12134# So, we kill variables containing newlines.
12135# Ultrix sh set writes to stderr and can't be redirected directly,
12136# and sets the high bit in the cache file unless we assign to the vars.
12137(
12138  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12139    eval ac_val=\$$ac_var
12140    case $ac_val in #(
12141    *${as_nl}*)
12142      case $ac_var in #(
12143      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12144$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12145      esac
12146      case $ac_var in #(
12147      _ | IFS | as_nl) ;; #(
12148      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12149      *) { eval $ac_var=; unset $ac_var;} ;;
12150      esac ;;
12151    esac
12152  done
12153
12154  (set) 2>&1 |
12155    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12156    *${as_nl}ac_space=\ *)
12157      # `set' does not quote correctly, so add quotes: double-quote
12158      # substitution turns \\\\ into \\, and sed turns \\ into \.
12159      sed -n \
12160	"s/'/'\\\\''/g;
12161	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12162      ;; #(
12163    *)
12164      # `set' quotes correctly as required by POSIX, so do not add quotes.
12165      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12166      ;;
12167    esac |
12168    sort
12169) |
12170  sed '
12171     /^ac_cv_env_/b end
12172     t clear
12173     :clear
12174     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12175     t end
12176     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12177     :end' >>confcache
12178if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12179  if test -w "$cache_file"; then
12180    if test "x$cache_file" != "x/dev/null"; then
12181      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12182$as_echo "$as_me: updating cache $cache_file" >&6;}
12183      if test ! -f "$cache_file" || test -h "$cache_file"; then
12184	cat confcache >"$cache_file"
12185      else
12186        case $cache_file in #(
12187        */* | ?:*)
12188	  mv -f confcache "$cache_file"$$ &&
12189	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12190        *)
12191	  mv -f confcache "$cache_file" ;;
12192	esac
12193      fi
12194    fi
12195  else
12196    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12197$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12198  fi
12199fi
12200rm -f confcache
12201
12202test "x$prefix" = xNONE && prefix=$ac_default_prefix
12203# Let make expand exec_prefix.
12204test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12205
12206DEFS=-DHAVE_CONFIG_H
12207
12208ac_libobjs=
12209ac_ltlibobjs=
12210U=
12211for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12212  # 1. Remove the extension, and $U if already installed.
12213  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12214  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12215  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12216  #    will be set to the directory where LIBOBJS objects are built.
12217  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12218  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12219done
12220LIBOBJS=$ac_libobjs
12221
12222LTLIBOBJS=$ac_ltlibobjs
12223
12224
12225 if test -n "$EXEEXT"; then
12226  am__EXEEXT_TRUE=
12227  am__EXEEXT_FALSE='#'
12228else
12229  am__EXEEXT_TRUE='#'
12230  am__EXEEXT_FALSE=
12231fi
12232
12233if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12234  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12235Usually this means the macro was only invoked conditionally." "$LINENO" 5
12236fi
12237if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12238  as_fn_error $? "conditional \"AMDEP\" was never defined.
12239Usually this means the macro was only invoked conditionally." "$LINENO" 5
12240fi
12241if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12242  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12243Usually this means the macro was only invoked conditionally." "$LINENO" 5
12244fi
12245if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12246  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12247Usually this means the macro was only invoked conditionally." "$LINENO" 5
12248fi
12249if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12250  as_fn_error $? "conditional \"LINT\" was never defined.
12251Usually this means the macro was only invoked conditionally." "$LINENO" 5
12252fi
12253if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
12254  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
12255Usually this means the macro was only invoked conditionally." "$LINENO" 5
12256fi
12257
12258: "${CONFIG_STATUS=./config.status}"
12259ac_write_fail=0
12260ac_clean_files_save=$ac_clean_files
12261ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12263$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12264as_write_fail=0
12265cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12266#! $SHELL
12267# Generated by $as_me.
12268# Run this file to recreate the current configuration.
12269# Compiler output produced by configure, useful for debugging
12270# configure, is in config.log if it exists.
12271
12272debug=false
12273ac_cs_recheck=false
12274ac_cs_silent=false
12275
12276SHELL=\${CONFIG_SHELL-$SHELL}
12277export SHELL
12278_ASEOF
12279cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12280## -------------------- ##
12281## M4sh Initialization. ##
12282## -------------------- ##
12283
12284# Be more Bourne compatible
12285DUALCASE=1; export DUALCASE # for MKS sh
12286if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12287  emulate sh
12288  NULLCMD=:
12289  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12290  # is contrary to our usage.  Disable this feature.
12291  alias -g '${1+"$@"}'='"$@"'
12292  setopt NO_GLOB_SUBST
12293else
12294  case `(set -o) 2>/dev/null` in #(
12295  *posix*) :
12296    set -o posix ;; #(
12297  *) :
12298     ;;
12299esac
12300fi
12301
12302
12303as_nl='
12304'
12305export as_nl
12306# Printing a long string crashes Solaris 7 /usr/bin/printf.
12307as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12308as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12309as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12310# Prefer a ksh shell builtin over an external printf program on Solaris,
12311# but without wasting forks for bash or zsh.
12312if test -z "$BASH_VERSION$ZSH_VERSION" \
12313    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12314  as_echo='print -r --'
12315  as_echo_n='print -rn --'
12316elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12317  as_echo='printf %s\n'
12318  as_echo_n='printf %s'
12319else
12320  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12321    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12322    as_echo_n='/usr/ucb/echo -n'
12323  else
12324    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12325    as_echo_n_body='eval
12326      arg=$1;
12327      case $arg in #(
12328      *"$as_nl"*)
12329	expr "X$arg" : "X\\(.*\\)$as_nl";
12330	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12331      esac;
12332      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12333    '
12334    export as_echo_n_body
12335    as_echo_n='sh -c $as_echo_n_body as_echo'
12336  fi
12337  export as_echo_body
12338  as_echo='sh -c $as_echo_body as_echo'
12339fi
12340
12341# The user is always right.
12342if test "${PATH_SEPARATOR+set}" != set; then
12343  PATH_SEPARATOR=:
12344  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12345    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12346      PATH_SEPARATOR=';'
12347  }
12348fi
12349
12350
12351# IFS
12352# We need space, tab and new line, in precisely that order.  Quoting is
12353# there to prevent editors from complaining about space-tab.
12354# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12355# splitting by setting IFS to empty value.)
12356IFS=" ""	$as_nl"
12357
12358# Find who we are.  Look in the path if we contain no directory separator.
12359as_myself=
12360case $0 in #((
12361  *[\\/]* ) as_myself=$0 ;;
12362  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363for as_dir in $PATH
12364do
12365  IFS=$as_save_IFS
12366  test -z "$as_dir" && as_dir=.
12367    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12368  done
12369IFS=$as_save_IFS
12370
12371     ;;
12372esac
12373# We did not find ourselves, most probably we were run as `sh COMMAND'
12374# in which case we are not to be found in the path.
12375if test "x$as_myself" = x; then
12376  as_myself=$0
12377fi
12378if test ! -f "$as_myself"; then
12379  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12380  exit 1
12381fi
12382
12383# Unset variables that we do not need and which cause bugs (e.g. in
12384# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12385# suppresses any "Segmentation fault" message there.  '((' could
12386# trigger a bug in pdksh 5.2.14.
12387for as_var in BASH_ENV ENV MAIL MAILPATH
12388do eval test x\${$as_var+set} = xset \
12389  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12390done
12391PS1='$ '
12392PS2='> '
12393PS4='+ '
12394
12395# NLS nuisances.
12396LC_ALL=C
12397export LC_ALL
12398LANGUAGE=C
12399export LANGUAGE
12400
12401# CDPATH.
12402(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12403
12404
12405# as_fn_error STATUS ERROR [LINENO LOG_FD]
12406# ----------------------------------------
12407# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12408# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12409# script with STATUS, using 1 if that was 0.
12410as_fn_error ()
12411{
12412  as_status=$1; test $as_status -eq 0 && as_status=1
12413  if test "$4"; then
12414    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12415    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12416  fi
12417  $as_echo "$as_me: error: $2" >&2
12418  as_fn_exit $as_status
12419} # as_fn_error
12420
12421
12422# as_fn_set_status STATUS
12423# -----------------------
12424# Set $? to STATUS, without forking.
12425as_fn_set_status ()
12426{
12427  return $1
12428} # as_fn_set_status
12429
12430# as_fn_exit STATUS
12431# -----------------
12432# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12433as_fn_exit ()
12434{
12435  set +e
12436  as_fn_set_status $1
12437  exit $1
12438} # as_fn_exit
12439
12440# as_fn_unset VAR
12441# ---------------
12442# Portably unset VAR.
12443as_fn_unset ()
12444{
12445  { eval $1=; unset $1;}
12446}
12447as_unset=as_fn_unset
12448# as_fn_append VAR VALUE
12449# ----------------------
12450# Append the text in VALUE to the end of the definition contained in VAR. Take
12451# advantage of any shell optimizations that allow amortized linear growth over
12452# repeated appends, instead of the typical quadratic growth present in naive
12453# implementations.
12454if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12455  eval 'as_fn_append ()
12456  {
12457    eval $1+=\$2
12458  }'
12459else
12460  as_fn_append ()
12461  {
12462    eval $1=\$$1\$2
12463  }
12464fi # as_fn_append
12465
12466# as_fn_arith ARG...
12467# ------------------
12468# Perform arithmetic evaluation on the ARGs, and store the result in the
12469# global $as_val. Take advantage of shells that can avoid forks. The arguments
12470# must be portable across $(()) and expr.
12471if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12472  eval 'as_fn_arith ()
12473  {
12474    as_val=$(( $* ))
12475  }'
12476else
12477  as_fn_arith ()
12478  {
12479    as_val=`expr "$@" || test $? -eq 1`
12480  }
12481fi # as_fn_arith
12482
12483
12484if expr a : '\(a\)' >/dev/null 2>&1 &&
12485   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12486  as_expr=expr
12487else
12488  as_expr=false
12489fi
12490
12491if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12492  as_basename=basename
12493else
12494  as_basename=false
12495fi
12496
12497if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12498  as_dirname=dirname
12499else
12500  as_dirname=false
12501fi
12502
12503as_me=`$as_basename -- "$0" ||
12504$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12505	 X"$0" : 'X\(//\)$' \| \
12506	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12507$as_echo X/"$0" |
12508    sed '/^.*\/\([^/][^/]*\)\/*$/{
12509	    s//\1/
12510	    q
12511	  }
12512	  /^X\/\(\/\/\)$/{
12513	    s//\1/
12514	    q
12515	  }
12516	  /^X\/\(\/\).*/{
12517	    s//\1/
12518	    q
12519	  }
12520	  s/.*/./; q'`
12521
12522# Avoid depending upon Character Ranges.
12523as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12524as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12525as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12526as_cr_digits='0123456789'
12527as_cr_alnum=$as_cr_Letters$as_cr_digits
12528
12529ECHO_C= ECHO_N= ECHO_T=
12530case `echo -n x` in #(((((
12531-n*)
12532  case `echo 'xy\c'` in
12533  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12534  xy)  ECHO_C='\c';;
12535  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12536       ECHO_T='	';;
12537  esac;;
12538*)
12539  ECHO_N='-n';;
12540esac
12541
12542rm -f conf$$ conf$$.exe conf$$.file
12543if test -d conf$$.dir; then
12544  rm -f conf$$.dir/conf$$.file
12545else
12546  rm -f conf$$.dir
12547  mkdir conf$$.dir 2>/dev/null
12548fi
12549if (echo >conf$$.file) 2>/dev/null; then
12550  if ln -s conf$$.file conf$$ 2>/dev/null; then
12551    as_ln_s='ln -s'
12552    # ... but there are two gotchas:
12553    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12554    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12555    # In both cases, we have to default to `cp -p'.
12556    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12557      as_ln_s='cp -p'
12558  elif ln conf$$.file conf$$ 2>/dev/null; then
12559    as_ln_s=ln
12560  else
12561    as_ln_s='cp -p'
12562  fi
12563else
12564  as_ln_s='cp -p'
12565fi
12566rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12567rmdir conf$$.dir 2>/dev/null
12568
12569
12570# as_fn_mkdir_p
12571# -------------
12572# Create "$as_dir" as a directory, including parents if necessary.
12573as_fn_mkdir_p ()
12574{
12575
12576  case $as_dir in #(
12577  -*) as_dir=./$as_dir;;
12578  esac
12579  test -d "$as_dir" || eval $as_mkdir_p || {
12580    as_dirs=
12581    while :; do
12582      case $as_dir in #(
12583      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12584      *) as_qdir=$as_dir;;
12585      esac
12586      as_dirs="'$as_qdir' $as_dirs"
12587      as_dir=`$as_dirname -- "$as_dir" ||
12588$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12589	 X"$as_dir" : 'X\(//\)[^/]' \| \
12590	 X"$as_dir" : 'X\(//\)$' \| \
12591	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12592$as_echo X"$as_dir" |
12593    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12594	    s//\1/
12595	    q
12596	  }
12597	  /^X\(\/\/\)[^/].*/{
12598	    s//\1/
12599	    q
12600	  }
12601	  /^X\(\/\/\)$/{
12602	    s//\1/
12603	    q
12604	  }
12605	  /^X\(\/\).*/{
12606	    s//\1/
12607	    q
12608	  }
12609	  s/.*/./; q'`
12610      test -d "$as_dir" && break
12611    done
12612    test -z "$as_dirs" || eval "mkdir $as_dirs"
12613  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12614
12615
12616} # as_fn_mkdir_p
12617if mkdir -p . 2>/dev/null; then
12618  as_mkdir_p='mkdir -p "$as_dir"'
12619else
12620  test -d ./-p && rmdir ./-p
12621  as_mkdir_p=false
12622fi
12623
12624if test -x / >/dev/null 2>&1; then
12625  as_test_x='test -x'
12626else
12627  if ls -dL / >/dev/null 2>&1; then
12628    as_ls_L_option=L
12629  else
12630    as_ls_L_option=
12631  fi
12632  as_test_x='
12633    eval sh -c '\''
12634      if test -d "$1"; then
12635	test -d "$1/.";
12636      else
12637	case $1 in #(
12638	-*)set "./$1";;
12639	esac;
12640	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12641	???[sx]*):;;*)false;;esac;fi
12642    '\'' sh
12643  '
12644fi
12645as_executable_p=$as_test_x
12646
12647# Sed expression to map a string onto a valid CPP name.
12648as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12649
12650# Sed expression to map a string onto a valid variable name.
12651as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12652
12653
12654exec 6>&1
12655## ----------------------------------- ##
12656## Main body of $CONFIG_STATUS script. ##
12657## ----------------------------------- ##
12658_ASEOF
12659test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12660
12661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12662# Save the log message, to keep $0 and so on meaningful, and to
12663# report actual input values of CONFIG_FILES etc. instead of their
12664# values after options handling.
12665ac_log="
12666This file was extended by libXScrnSaver $as_me 1.2.1, which was
12667generated by GNU Autoconf 2.68.  Invocation command line was
12668
12669  CONFIG_FILES    = $CONFIG_FILES
12670  CONFIG_HEADERS  = $CONFIG_HEADERS
12671  CONFIG_LINKS    = $CONFIG_LINKS
12672  CONFIG_COMMANDS = $CONFIG_COMMANDS
12673  $ $0 $@
12674
12675on `(hostname || uname -n) 2>/dev/null | sed 1q`
12676"
12677
12678_ACEOF
12679
12680case $ac_config_files in *"
12681"*) set x $ac_config_files; shift; ac_config_files=$*;;
12682esac
12683
12684case $ac_config_headers in *"
12685"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12686esac
12687
12688
12689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12690# Files that config.status was made for.
12691config_files="$ac_config_files"
12692config_headers="$ac_config_headers"
12693config_commands="$ac_config_commands"
12694
12695_ACEOF
12696
12697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12698ac_cs_usage="\
12699\`$as_me' instantiates files and other configuration actions
12700from templates according to the current configuration.  Unless the files
12701and actions are specified as TAGs, all are instantiated by default.
12702
12703Usage: $0 [OPTION]... [TAG]...
12704
12705  -h, --help       print this help, then exit
12706  -V, --version    print version number and configuration settings, then exit
12707      --config     print configuration, then exit
12708  -q, --quiet, --silent
12709                   do not print progress messages
12710  -d, --debug      don't remove temporary files
12711      --recheck    update $as_me by reconfiguring in the same conditions
12712      --file=FILE[:TEMPLATE]
12713                   instantiate the configuration file FILE
12714      --header=FILE[:TEMPLATE]
12715                   instantiate the configuration header FILE
12716
12717Configuration files:
12718$config_files
12719
12720Configuration headers:
12721$config_headers
12722
12723Configuration commands:
12724$config_commands
12725
12726Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12727
12728_ACEOF
12729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12730ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12731ac_cs_version="\\
12732libXScrnSaver config.status 1.2.1
12733configured by $0, generated by GNU Autoconf 2.68,
12734  with options \\"\$ac_cs_config\\"
12735
12736Copyright (C) 2010 Free Software Foundation, Inc.
12737This config.status script is free software; the Free Software Foundation
12738gives unlimited permission to copy, distribute and modify it."
12739
12740ac_pwd='$ac_pwd'
12741srcdir='$srcdir'
12742INSTALL='$INSTALL'
12743MKDIR_P='$MKDIR_P'
12744AWK='$AWK'
12745test -n "\$AWK" || AWK=awk
12746_ACEOF
12747
12748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12749# The default lists apply if the user does not specify any file.
12750ac_need_defaults=:
12751while test $# != 0
12752do
12753  case $1 in
12754  --*=?*)
12755    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12756    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12757    ac_shift=:
12758    ;;
12759  --*=)
12760    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12761    ac_optarg=
12762    ac_shift=:
12763    ;;
12764  *)
12765    ac_option=$1
12766    ac_optarg=$2
12767    ac_shift=shift
12768    ;;
12769  esac
12770
12771  case $ac_option in
12772  # Handling of the options.
12773  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12774    ac_cs_recheck=: ;;
12775  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12776    $as_echo "$ac_cs_version"; exit ;;
12777  --config | --confi | --conf | --con | --co | --c )
12778    $as_echo "$ac_cs_config"; exit ;;
12779  --debug | --debu | --deb | --de | --d | -d )
12780    debug=: ;;
12781  --file | --fil | --fi | --f )
12782    $ac_shift
12783    case $ac_optarg in
12784    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12785    '') as_fn_error $? "missing file argument" ;;
12786    esac
12787    as_fn_append CONFIG_FILES " '$ac_optarg'"
12788    ac_need_defaults=false;;
12789  --header | --heade | --head | --hea )
12790    $ac_shift
12791    case $ac_optarg in
12792    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12793    esac
12794    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12795    ac_need_defaults=false;;
12796  --he | --h)
12797    # Conflict between --help and --header
12798    as_fn_error $? "ambiguous option: \`$1'
12799Try \`$0 --help' for more information.";;
12800  --help | --hel | -h )
12801    $as_echo "$ac_cs_usage"; exit ;;
12802  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12803  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12804    ac_cs_silent=: ;;
12805
12806  # This is an error.
12807  -*) as_fn_error $? "unrecognized option: \`$1'
12808Try \`$0 --help' for more information." ;;
12809
12810  *) as_fn_append ac_config_targets " $1"
12811     ac_need_defaults=false ;;
12812
12813  esac
12814  shift
12815done
12816
12817ac_configure_extra_args=
12818
12819if $ac_cs_silent; then
12820  exec 6>/dev/null
12821  ac_configure_extra_args="$ac_configure_extra_args --silent"
12822fi
12823
12824_ACEOF
12825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12826if \$ac_cs_recheck; then
12827  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12828  shift
12829  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12830  CONFIG_SHELL='$SHELL'
12831  export CONFIG_SHELL
12832  exec "\$@"
12833fi
12834
12835_ACEOF
12836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12837exec 5>>config.log
12838{
12839  echo
12840  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12841## Running $as_me. ##
12842_ASBOX
12843  $as_echo "$ac_log"
12844} >&5
12845
12846_ACEOF
12847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12848#
12849# INIT-COMMANDS
12850#
12851AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12852
12853
12854# The HP-UX ksh and POSIX shell print the target directory to stdout
12855# if CDPATH is set.
12856(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12857
12858sed_quote_subst='$sed_quote_subst'
12859double_quote_subst='$double_quote_subst'
12860delay_variable_subst='$delay_variable_subst'
12861macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12862macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12863enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12864enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12865pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12866enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12867SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12868ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12869host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12870host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12871host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12872build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12873build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12874build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12875SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12876Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12877GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12878EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12879FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12880LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12881NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12882LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12883max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12884ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12885exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12886lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12887lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12888lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12889reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12890reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12891OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12892deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12893file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12894AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12895AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12896STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12897RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12898old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12899old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12900old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12901lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12902CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12903CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12904compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12905GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12906lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12907lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12908lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12909lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12910objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12911MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12912lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12913lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12914lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12915lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12916lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12917need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12918DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12919NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12920LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12921OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12922OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12923libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12924shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12925extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12926archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12927enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12928export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12929whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12930compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12931old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12932old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12933archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12934archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12935module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12936module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12937with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12938allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12939no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12940hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12941hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12942hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12943hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12944hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12945hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12946hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12947hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12948inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12949link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12950fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12951always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12952export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12953exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12954include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12955prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12956file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12957variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12958need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12959need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12960version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12961runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12962shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12963shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12964libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12965library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12966soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12967install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12968postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12969postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12970finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12971finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12972hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12973sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12974sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12975hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12976enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12977enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12978enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12979old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12980striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12981
12982LTCC='$LTCC'
12983LTCFLAGS='$LTCFLAGS'
12984compiler='$compiler_DEFAULT'
12985
12986# A function that is used when there is no print builtin or printf.
12987func_fallback_echo ()
12988{
12989  eval 'cat <<_LTECHO_EOF
12990\$1
12991_LTECHO_EOF'
12992}
12993
12994# Quote evaled strings.
12995for var in SHELL \
12996ECHO \
12997SED \
12998GREP \
12999EGREP \
13000FGREP \
13001LD \
13002NM \
13003LN_S \
13004lt_SP2NL \
13005lt_NL2SP \
13006reload_flag \
13007OBJDUMP \
13008deplibs_check_method \
13009file_magic_cmd \
13010AR \
13011AR_FLAGS \
13012STRIP \
13013RANLIB \
13014CC \
13015CFLAGS \
13016compiler \
13017lt_cv_sys_global_symbol_pipe \
13018lt_cv_sys_global_symbol_to_cdecl \
13019lt_cv_sys_global_symbol_to_c_name_address \
13020lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13021lt_prog_compiler_no_builtin_flag \
13022lt_prog_compiler_wl \
13023lt_prog_compiler_pic \
13024lt_prog_compiler_static \
13025lt_cv_prog_compiler_c_o \
13026need_locks \
13027DSYMUTIL \
13028NMEDIT \
13029LIPO \
13030OTOOL \
13031OTOOL64 \
13032shrext_cmds \
13033export_dynamic_flag_spec \
13034whole_archive_flag_spec \
13035compiler_needs_object \
13036with_gnu_ld \
13037allow_undefined_flag \
13038no_undefined_flag \
13039hardcode_libdir_flag_spec \
13040hardcode_libdir_flag_spec_ld \
13041hardcode_libdir_separator \
13042fix_srcfile_path \
13043exclude_expsyms \
13044include_expsyms \
13045file_list_spec \
13046variables_saved_for_relink \
13047libname_spec \
13048library_names_spec \
13049soname_spec \
13050install_override_mode \
13051finish_eval \
13052old_striplib \
13053striplib; do
13054    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13055    *[\\\\\\\`\\"\\\$]*)
13056      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13057      ;;
13058    *)
13059      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13060      ;;
13061    esac
13062done
13063
13064# Double-quote double-evaled strings.
13065for var in reload_cmds \
13066old_postinstall_cmds \
13067old_postuninstall_cmds \
13068old_archive_cmds \
13069extract_expsyms_cmds \
13070old_archive_from_new_cmds \
13071old_archive_from_expsyms_cmds \
13072archive_cmds \
13073archive_expsym_cmds \
13074module_cmds \
13075module_expsym_cmds \
13076export_symbols_cmds \
13077prelink_cmds \
13078postinstall_cmds \
13079postuninstall_cmds \
13080finish_cmds \
13081sys_lib_search_path_spec \
13082sys_lib_dlsearch_path_spec; do
13083    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13084    *[\\\\\\\`\\"\\\$]*)
13085      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13086      ;;
13087    *)
13088      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13089      ;;
13090    esac
13091done
13092
13093ac_aux_dir='$ac_aux_dir'
13094xsi_shell='$xsi_shell'
13095lt_shell_append='$lt_shell_append'
13096
13097# See if we are running on zsh, and set the options which allow our
13098# commands through without removal of \ escapes INIT.
13099if test -n "\${ZSH_VERSION+set}" ; then
13100   setopt NO_GLOB_SUBST
13101fi
13102
13103
13104    PACKAGE='$PACKAGE'
13105    VERSION='$VERSION'
13106    TIMESTAMP='$TIMESTAMP'
13107    RM='$RM'
13108    ofile='$ofile'
13109
13110
13111
13112
13113_ACEOF
13114
13115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13116
13117# Handling of arguments.
13118for ac_config_target in $ac_config_targets
13119do
13120  case $ac_config_target in
13121    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13122    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13123    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13124    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13125    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13126    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13127    "xscrnsaver.pc") CONFIG_FILES="$CONFIG_FILES xscrnsaver.pc" ;;
13128
13129  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13130  esac
13131done
13132
13133
13134# If the user did not use the arguments to specify the items to instantiate,
13135# then the envvar interface is used.  Set only those that are not.
13136# We use the long form for the default assignment because of an extremely
13137# bizarre bug on SunOS 4.1.3.
13138if $ac_need_defaults; then
13139  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13140  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13141  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13142fi
13143
13144# Have a temporary directory for convenience.  Make it in the build tree
13145# simply because there is no reason against having it here, and in addition,
13146# creating and moving files from /tmp can sometimes cause problems.
13147# Hook for its removal unless debugging.
13148# Note that there is a small window in which the directory will not be cleaned:
13149# after its creation but before its name has been assigned to `$tmp'.
13150$debug ||
13151{
13152  tmp= ac_tmp=
13153  trap 'exit_status=$?
13154  : "${ac_tmp:=$tmp}"
13155  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13156' 0
13157  trap 'as_fn_exit 1' 1 2 13 15
13158}
13159# Create a (secure) tmp directory for tmp files.
13160
13161{
13162  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13163  test -d "$tmp"
13164}  ||
13165{
13166  tmp=./conf$$-$RANDOM
13167  (umask 077 && mkdir "$tmp")
13168} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13169ac_tmp=$tmp
13170
13171# Set up the scripts for CONFIG_FILES section.
13172# No need to generate them if there are no CONFIG_FILES.
13173# This happens for instance with `./config.status config.h'.
13174if test -n "$CONFIG_FILES"; then
13175
13176
13177ac_cr=`echo X | tr X '\015'`
13178# On cygwin, bash can eat \r inside `` if the user requested igncr.
13179# But we know of no other shell where ac_cr would be empty at this
13180# point, so we can use a bashism as a fallback.
13181if test "x$ac_cr" = x; then
13182  eval ac_cr=\$\'\\r\'
13183fi
13184ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13185if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13186  ac_cs_awk_cr='\\r'
13187else
13188  ac_cs_awk_cr=$ac_cr
13189fi
13190
13191echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13192_ACEOF
13193
13194
13195{
13196  echo "cat >conf$$subs.awk <<_ACEOF" &&
13197  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13198  echo "_ACEOF"
13199} >conf$$subs.sh ||
13200  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13201ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13202ac_delim='%!_!# '
13203for ac_last_try in false false false false false :; do
13204  . ./conf$$subs.sh ||
13205    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13206
13207  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13208  if test $ac_delim_n = $ac_delim_num; then
13209    break
13210  elif $ac_last_try; then
13211    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13212  else
13213    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13214  fi
13215done
13216rm -f conf$$subs.sh
13217
13218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13219cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13220_ACEOF
13221sed -n '
13222h
13223s/^/S["/; s/!.*/"]=/
13224p
13225g
13226s/^[^!]*!//
13227:repl
13228t repl
13229s/'"$ac_delim"'$//
13230t delim
13231:nl
13232h
13233s/\(.\{148\}\)..*/\1/
13234t more1
13235s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13236p
13237n
13238b repl
13239:more1
13240s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13241p
13242g
13243s/.\{148\}//
13244t nl
13245:delim
13246h
13247s/\(.\{148\}\)..*/\1/
13248t more2
13249s/["\\]/\\&/g; s/^/"/; s/$/"/
13250p
13251b
13252:more2
13253s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13254p
13255g
13256s/.\{148\}//
13257t delim
13258' <conf$$subs.awk | sed '
13259/^[^""]/{
13260  N
13261  s/\n//
13262}
13263' >>$CONFIG_STATUS || ac_write_fail=1
13264rm -f conf$$subs.awk
13265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13266_ACAWK
13267cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13268  for (key in S) S_is_set[key] = 1
13269  FS = ""
13270
13271}
13272{
13273  line = $ 0
13274  nfields = split(line, field, "@")
13275  substed = 0
13276  len = length(field[1])
13277  for (i = 2; i < nfields; i++) {
13278    key = field[i]
13279    keylen = length(key)
13280    if (S_is_set[key]) {
13281      value = S[key]
13282      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13283      len += length(value) + length(field[++i])
13284      substed = 1
13285    } else
13286      len += 1 + keylen
13287  }
13288
13289  print line
13290}
13291
13292_ACAWK
13293_ACEOF
13294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13295if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13296  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13297else
13298  cat
13299fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13300  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13301_ACEOF
13302
13303# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13304# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13305# trailing colons and then remove the whole line if VPATH becomes empty
13306# (actually we leave an empty line to preserve line numbers).
13307if test "x$srcdir" = x.; then
13308  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13309h
13310s///
13311s/^/:/
13312s/[	 ]*$/:/
13313s/:\$(srcdir):/:/g
13314s/:\${srcdir}:/:/g
13315s/:@srcdir@:/:/g
13316s/^:*//
13317s/:*$//
13318x
13319s/\(=[	 ]*\).*/\1/
13320G
13321s/\n//
13322s/^[^=]*=[	 ]*$//
13323}'
13324fi
13325
13326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13327fi # test -n "$CONFIG_FILES"
13328
13329# Set up the scripts for CONFIG_HEADERS section.
13330# No need to generate them if there are no CONFIG_HEADERS.
13331# This happens for instance with `./config.status Makefile'.
13332if test -n "$CONFIG_HEADERS"; then
13333cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13334BEGIN {
13335_ACEOF
13336
13337# Transform confdefs.h into an awk script `defines.awk', embedded as
13338# here-document in config.status, that substitutes the proper values into
13339# config.h.in to produce config.h.
13340
13341# Create a delimiter string that does not exist in confdefs.h, to ease
13342# handling of long lines.
13343ac_delim='%!_!# '
13344for ac_last_try in false false :; do
13345  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13346  if test -z "$ac_tt"; then
13347    break
13348  elif $ac_last_try; then
13349    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13350  else
13351    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13352  fi
13353done
13354
13355# For the awk script, D is an array of macro values keyed by name,
13356# likewise P contains macro parameters if any.  Preserve backslash
13357# newline sequences.
13358
13359ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13360sed -n '
13361s/.\{148\}/&'"$ac_delim"'/g
13362t rset
13363:rset
13364s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13365t def
13366d
13367:def
13368s/\\$//
13369t bsnl
13370s/["\\]/\\&/g
13371s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13372D["\1"]=" \3"/p
13373s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13374d
13375:bsnl
13376s/["\\]/\\&/g
13377s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13378D["\1"]=" \3\\\\\\n"\\/p
13379t cont
13380s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13381t cont
13382d
13383:cont
13384n
13385s/.\{148\}/&'"$ac_delim"'/g
13386t clear
13387:clear
13388s/\\$//
13389t bsnlc
13390s/["\\]/\\&/g; s/^/"/; s/$/"/p
13391d
13392:bsnlc
13393s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13394b cont
13395' <confdefs.h | sed '
13396s/'"$ac_delim"'/"\\\
13397"/g' >>$CONFIG_STATUS || ac_write_fail=1
13398
13399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13400  for (key in D) D_is_set[key] = 1
13401  FS = ""
13402}
13403/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13404  line = \$ 0
13405  split(line, arg, " ")
13406  if (arg[1] == "#") {
13407    defundef = arg[2]
13408    mac1 = arg[3]
13409  } else {
13410    defundef = substr(arg[1], 2)
13411    mac1 = arg[2]
13412  }
13413  split(mac1, mac2, "(") #)
13414  macro = mac2[1]
13415  prefix = substr(line, 1, index(line, defundef) - 1)
13416  if (D_is_set[macro]) {
13417    # Preserve the white space surrounding the "#".
13418    print prefix "define", macro P[macro] D[macro]
13419    next
13420  } else {
13421    # Replace #undef with comments.  This is necessary, for example,
13422    # in the case of _POSIX_SOURCE, which is predefined and required
13423    # on some systems where configure will not decide to define it.
13424    if (defundef == "undef") {
13425      print "/*", prefix defundef, macro, "*/"
13426      next
13427    }
13428  }
13429}
13430{ print }
13431_ACAWK
13432_ACEOF
13433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13434  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13435fi # test -n "$CONFIG_HEADERS"
13436
13437
13438eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13439shift
13440for ac_tag
13441do
13442  case $ac_tag in
13443  :[FHLC]) ac_mode=$ac_tag; continue;;
13444  esac
13445  case $ac_mode$ac_tag in
13446  :[FHL]*:*);;
13447  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13448  :[FH]-) ac_tag=-:-;;
13449  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13450  esac
13451  ac_save_IFS=$IFS
13452  IFS=:
13453  set x $ac_tag
13454  IFS=$ac_save_IFS
13455  shift
13456  ac_file=$1
13457  shift
13458
13459  case $ac_mode in
13460  :L) ac_source=$1;;
13461  :[FH])
13462    ac_file_inputs=
13463    for ac_f
13464    do
13465      case $ac_f in
13466      -) ac_f="$ac_tmp/stdin";;
13467      *) # Look for the file first in the build tree, then in the source tree
13468	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13469	 # because $ac_f cannot contain `:'.
13470	 test -f "$ac_f" ||
13471	   case $ac_f in
13472	   [\\/$]*) false;;
13473	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13474	   esac ||
13475	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13476      esac
13477      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13478      as_fn_append ac_file_inputs " '$ac_f'"
13479    done
13480
13481    # Let's still pretend it is `configure' which instantiates (i.e., don't
13482    # use $as_me), people would be surprised to read:
13483    #    /* config.h.  Generated by config.status.  */
13484    configure_input='Generated from '`
13485	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13486	`' by configure.'
13487    if test x"$ac_file" != x-; then
13488      configure_input="$ac_file.  $configure_input"
13489      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13490$as_echo "$as_me: creating $ac_file" >&6;}
13491    fi
13492    # Neutralize special characters interpreted by sed in replacement strings.
13493    case $configure_input in #(
13494    *\&* | *\|* | *\\* )
13495       ac_sed_conf_input=`$as_echo "$configure_input" |
13496       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13497    *) ac_sed_conf_input=$configure_input;;
13498    esac
13499
13500    case $ac_tag in
13501    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13502      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13503    esac
13504    ;;
13505  esac
13506
13507  ac_dir=`$as_dirname -- "$ac_file" ||
13508$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13509	 X"$ac_file" : 'X\(//\)[^/]' \| \
13510	 X"$ac_file" : 'X\(//\)$' \| \
13511	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13512$as_echo X"$ac_file" |
13513    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13514	    s//\1/
13515	    q
13516	  }
13517	  /^X\(\/\/\)[^/].*/{
13518	    s//\1/
13519	    q
13520	  }
13521	  /^X\(\/\/\)$/{
13522	    s//\1/
13523	    q
13524	  }
13525	  /^X\(\/\).*/{
13526	    s//\1/
13527	    q
13528	  }
13529	  s/.*/./; q'`
13530  as_dir="$ac_dir"; as_fn_mkdir_p
13531  ac_builddir=.
13532
13533case "$ac_dir" in
13534.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13535*)
13536  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13537  # A ".." for each directory in $ac_dir_suffix.
13538  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13539  case $ac_top_builddir_sub in
13540  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13541  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13542  esac ;;
13543esac
13544ac_abs_top_builddir=$ac_pwd
13545ac_abs_builddir=$ac_pwd$ac_dir_suffix
13546# for backward compatibility:
13547ac_top_builddir=$ac_top_build_prefix
13548
13549case $srcdir in
13550  .)  # We are building in place.
13551    ac_srcdir=.
13552    ac_top_srcdir=$ac_top_builddir_sub
13553    ac_abs_top_srcdir=$ac_pwd ;;
13554  [\\/]* | ?:[\\/]* )  # Absolute name.
13555    ac_srcdir=$srcdir$ac_dir_suffix;
13556    ac_top_srcdir=$srcdir
13557    ac_abs_top_srcdir=$srcdir ;;
13558  *) # Relative name.
13559    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13560    ac_top_srcdir=$ac_top_build_prefix$srcdir
13561    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13562esac
13563ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13564
13565
13566  case $ac_mode in
13567  :F)
13568  #
13569  # CONFIG_FILE
13570  #
13571
13572  case $INSTALL in
13573  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13574  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13575  esac
13576  ac_MKDIR_P=$MKDIR_P
13577  case $MKDIR_P in
13578  [\\/$]* | ?:[\\/]* ) ;;
13579  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13580  esac
13581_ACEOF
13582
13583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13584# If the template does not know about datarootdir, expand it.
13585# FIXME: This hack should be removed a few years after 2.60.
13586ac_datarootdir_hack=; ac_datarootdir_seen=
13587ac_sed_dataroot='
13588/datarootdir/ {
13589  p
13590  q
13591}
13592/@datadir@/p
13593/@docdir@/p
13594/@infodir@/p
13595/@localedir@/p
13596/@mandir@/p'
13597case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13598*datarootdir*) ac_datarootdir_seen=yes;;
13599*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13600  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13601$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13602_ACEOF
13603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13604  ac_datarootdir_hack='
13605  s&@datadir@&$datadir&g
13606  s&@docdir@&$docdir&g
13607  s&@infodir@&$infodir&g
13608  s&@localedir@&$localedir&g
13609  s&@mandir@&$mandir&g
13610  s&\\\${datarootdir}&$datarootdir&g' ;;
13611esac
13612_ACEOF
13613
13614# Neutralize VPATH when `$srcdir' = `.'.
13615# Shell code in configure.ac might set extrasub.
13616# FIXME: do we really want to maintain this feature?
13617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13618ac_sed_extra="$ac_vpsub
13619$extrasub
13620_ACEOF
13621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13622:t
13623/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13624s|@configure_input@|$ac_sed_conf_input|;t t
13625s&@top_builddir@&$ac_top_builddir_sub&;t t
13626s&@top_build_prefix@&$ac_top_build_prefix&;t t
13627s&@srcdir@&$ac_srcdir&;t t
13628s&@abs_srcdir@&$ac_abs_srcdir&;t t
13629s&@top_srcdir@&$ac_top_srcdir&;t t
13630s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13631s&@builddir@&$ac_builddir&;t t
13632s&@abs_builddir@&$ac_abs_builddir&;t t
13633s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13634s&@INSTALL@&$ac_INSTALL&;t t
13635s&@MKDIR_P@&$ac_MKDIR_P&;t t
13636$ac_datarootdir_hack
13637"
13638eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13639  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13640
13641test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13642  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13643  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13644      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13645  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13646which seems to be undefined.  Please make sure it is defined" >&5
13647$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13648which seems to be undefined.  Please make sure it is defined" >&2;}
13649
13650  rm -f "$ac_tmp/stdin"
13651  case $ac_file in
13652  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13653  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13654  esac \
13655  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13656 ;;
13657  :H)
13658  #
13659  # CONFIG_HEADER
13660  #
13661  if test x"$ac_file" != x-; then
13662    {
13663      $as_echo "/* $configure_input  */" \
13664      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13665    } >"$ac_tmp/config.h" \
13666      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13667    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13668      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13669$as_echo "$as_me: $ac_file is unchanged" >&6;}
13670    else
13671      rm -f "$ac_file"
13672      mv "$ac_tmp/config.h" "$ac_file" \
13673	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13674    fi
13675  else
13676    $as_echo "/* $configure_input  */" \
13677      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13678      || as_fn_error $? "could not create -" "$LINENO" 5
13679  fi
13680# Compute "$ac_file"'s index in $config_headers.
13681_am_arg="$ac_file"
13682_am_stamp_count=1
13683for _am_header in $config_headers :; do
13684  case $_am_header in
13685    $_am_arg | $_am_arg:* )
13686      break ;;
13687    * )
13688      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13689  esac
13690done
13691echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13692$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13693	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13694	 X"$_am_arg" : 'X\(//\)$' \| \
13695	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13696$as_echo X"$_am_arg" |
13697    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13698	    s//\1/
13699	    q
13700	  }
13701	  /^X\(\/\/\)[^/].*/{
13702	    s//\1/
13703	    q
13704	  }
13705	  /^X\(\/\/\)$/{
13706	    s//\1/
13707	    q
13708	  }
13709	  /^X\(\/\).*/{
13710	    s//\1/
13711	    q
13712	  }
13713	  s/.*/./; q'`/stamp-h$_am_stamp_count
13714 ;;
13715
13716  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13717$as_echo "$as_me: executing $ac_file commands" >&6;}
13718 ;;
13719  esac
13720
13721
13722  case $ac_file$ac_mode in
13723    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13724  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13725  # are listed without --file.  Let's play safe and only enable the eval
13726  # if we detect the quoting.
13727  case $CONFIG_FILES in
13728  *\'*) eval set x "$CONFIG_FILES" ;;
13729  *)   set x $CONFIG_FILES ;;
13730  esac
13731  shift
13732  for mf
13733  do
13734    # Strip MF so we end up with the name of the file.
13735    mf=`echo "$mf" | sed -e 's/:.*$//'`
13736    # Check whether this is an Automake generated Makefile or not.
13737    # We used to match only the files named `Makefile.in', but
13738    # some people rename them; so instead we look at the file content.
13739    # Grep'ing the first line is not enough: some people post-process
13740    # each Makefile.in and add a new line on top of each file to say so.
13741    # Grep'ing the whole file is not good either: AIX grep has a line
13742    # limit of 2048, but all sed's we know have understand at least 4000.
13743    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13744      dirpart=`$as_dirname -- "$mf" ||
13745$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13746	 X"$mf" : 'X\(//\)[^/]' \| \
13747	 X"$mf" : 'X\(//\)$' \| \
13748	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13749$as_echo X"$mf" |
13750    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13751	    s//\1/
13752	    q
13753	  }
13754	  /^X\(\/\/\)[^/].*/{
13755	    s//\1/
13756	    q
13757	  }
13758	  /^X\(\/\/\)$/{
13759	    s//\1/
13760	    q
13761	  }
13762	  /^X\(\/\).*/{
13763	    s//\1/
13764	    q
13765	  }
13766	  s/.*/./; q'`
13767    else
13768      continue
13769    fi
13770    # Extract the definition of DEPDIR, am__include, and am__quote
13771    # from the Makefile without running `make'.
13772    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13773    test -z "$DEPDIR" && continue
13774    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13775    test -z "am__include" && continue
13776    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13777    # When using ansi2knr, U may be empty or an underscore; expand it
13778    U=`sed -n 's/^U = //p' < "$mf"`
13779    # Find all dependency output files, they are included files with
13780    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13781    # simplest approach to changing $(DEPDIR) to its actual value in the
13782    # expansion.
13783    for file in `sed -n "
13784      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13785	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13786      # Make sure the directory exists.
13787      test -f "$dirpart/$file" && continue
13788      fdir=`$as_dirname -- "$file" ||
13789$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13790	 X"$file" : 'X\(//\)[^/]' \| \
13791	 X"$file" : 'X\(//\)$' \| \
13792	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13793$as_echo X"$file" |
13794    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13795	    s//\1/
13796	    q
13797	  }
13798	  /^X\(\/\/\)[^/].*/{
13799	    s//\1/
13800	    q
13801	  }
13802	  /^X\(\/\/\)$/{
13803	    s//\1/
13804	    q
13805	  }
13806	  /^X\(\/\).*/{
13807	    s//\1/
13808	    q
13809	  }
13810	  s/.*/./; q'`
13811      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13812      # echo "creating $dirpart/$file"
13813      echo '# dummy' > "$dirpart/$file"
13814    done
13815  done
13816}
13817 ;;
13818    "libtool":C)
13819
13820    # See if we are running on zsh, and set the options which allow our
13821    # commands through without removal of \ escapes.
13822    if test -n "${ZSH_VERSION+set}" ; then
13823      setopt NO_GLOB_SUBST
13824    fi
13825
13826    cfgfile="${ofile}T"
13827    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13828    $RM "$cfgfile"
13829
13830    cat <<_LT_EOF >> "$cfgfile"
13831#! $SHELL
13832
13833# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13834# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13835# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13836# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13837#
13838#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13839#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13840#                 Inc.
13841#   Written by Gordon Matzigkeit, 1996
13842#
13843#   This file is part of GNU Libtool.
13844#
13845# GNU Libtool is free software; you can redistribute it and/or
13846# modify it under the terms of the GNU General Public License as
13847# published by the Free Software Foundation; either version 2 of
13848# the License, or (at your option) any later version.
13849#
13850# As a special exception to the GNU General Public License,
13851# if you distribute this file as part of a program or library that
13852# is built using GNU Libtool, you may include this file under the
13853# same distribution terms that you use for the rest of that program.
13854#
13855# GNU Libtool is distributed in the hope that it will be useful,
13856# but WITHOUT ANY WARRANTY; without even the implied warranty of
13857# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13858# GNU General Public License for more details.
13859#
13860# You should have received a copy of the GNU General Public License
13861# along with GNU Libtool; see the file COPYING.  If not, a copy
13862# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13863# obtained by writing to the Free Software Foundation, Inc.,
13864# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13865
13866
13867# The names of the tagged configurations supported by this script.
13868available_tags=""
13869
13870# ### BEGIN LIBTOOL CONFIG
13871
13872# Which release of libtool.m4 was used?
13873macro_version=$macro_version
13874macro_revision=$macro_revision
13875
13876# Whether or not to build shared libraries.
13877build_libtool_libs=$enable_shared
13878
13879# Whether or not to build static libraries.
13880build_old_libs=$enable_static
13881
13882# What type of objects to build.
13883pic_mode=$pic_mode
13884
13885# Whether or not to optimize for fast installation.
13886fast_install=$enable_fast_install
13887
13888# Shell to use when invoking shell scripts.
13889SHELL=$lt_SHELL
13890
13891# An echo program that protects backslashes.
13892ECHO=$lt_ECHO
13893
13894# The host system.
13895host_alias=$host_alias
13896host=$host
13897host_os=$host_os
13898
13899# The build system.
13900build_alias=$build_alias
13901build=$build
13902build_os=$build_os
13903
13904# A sed program that does not truncate output.
13905SED=$lt_SED
13906
13907# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13908Xsed="\$SED -e 1s/^X//"
13909
13910# A grep program that handles long lines.
13911GREP=$lt_GREP
13912
13913# An ERE matcher.
13914EGREP=$lt_EGREP
13915
13916# A literal string matcher.
13917FGREP=$lt_FGREP
13918
13919# A BSD- or MS-compatible name lister.
13920NM=$lt_NM
13921
13922# Whether we need soft or hard links.
13923LN_S=$lt_LN_S
13924
13925# What is the maximum length of a command?
13926max_cmd_len=$max_cmd_len
13927
13928# Object file suffix (normally "o").
13929objext=$ac_objext
13930
13931# Executable file suffix (normally "").
13932exeext=$exeext
13933
13934# whether the shell understands "unset".
13935lt_unset=$lt_unset
13936
13937# turn spaces into newlines.
13938SP2NL=$lt_lt_SP2NL
13939
13940# turn newlines into spaces.
13941NL2SP=$lt_lt_NL2SP
13942
13943# An object symbol dumper.
13944OBJDUMP=$lt_OBJDUMP
13945
13946# Method to check whether dependent libraries are shared objects.
13947deplibs_check_method=$lt_deplibs_check_method
13948
13949# Command to use when deplibs_check_method == "file_magic".
13950file_magic_cmd=$lt_file_magic_cmd
13951
13952# The archiver.
13953AR=$lt_AR
13954AR_FLAGS=$lt_AR_FLAGS
13955
13956# A symbol stripping program.
13957STRIP=$lt_STRIP
13958
13959# Commands used to install an old-style archive.
13960RANLIB=$lt_RANLIB
13961old_postinstall_cmds=$lt_old_postinstall_cmds
13962old_postuninstall_cmds=$lt_old_postuninstall_cmds
13963
13964# Whether to use a lock for old archive extraction.
13965lock_old_archive_extraction=$lock_old_archive_extraction
13966
13967# A C compiler.
13968LTCC=$lt_CC
13969
13970# LTCC compiler flags.
13971LTCFLAGS=$lt_CFLAGS
13972
13973# Take the output of nm and produce a listing of raw symbols and C names.
13974global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13975
13976# Transform the output of nm in a proper C declaration.
13977global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13978
13979# Transform the output of nm in a C name address pair.
13980global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13981
13982# Transform the output of nm in a C name address pair when lib prefix is needed.
13983global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13984
13985# The name of the directory that contains temporary libtool files.
13986objdir=$objdir
13987
13988# Used to examine libraries when file_magic_cmd begins with "file".
13989MAGIC_CMD=$MAGIC_CMD
13990
13991# Must we lock files when doing compilation?
13992need_locks=$lt_need_locks
13993
13994# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13995DSYMUTIL=$lt_DSYMUTIL
13996
13997# Tool to change global to local symbols on Mac OS X.
13998NMEDIT=$lt_NMEDIT
13999
14000# Tool to manipulate fat objects and archives on Mac OS X.
14001LIPO=$lt_LIPO
14002
14003# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14004OTOOL=$lt_OTOOL
14005
14006# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14007OTOOL64=$lt_OTOOL64
14008
14009# Old archive suffix (normally "a").
14010libext=$libext
14011
14012# Shared library suffix (normally ".so").
14013shrext_cmds=$lt_shrext_cmds
14014
14015# The commands to extract the exported symbol list from a shared archive.
14016extract_expsyms_cmds=$lt_extract_expsyms_cmds
14017
14018# Variables whose values should be saved in libtool wrapper scripts and
14019# restored at link time.
14020variables_saved_for_relink=$lt_variables_saved_for_relink
14021
14022# Do we need the "lib" prefix for modules?
14023need_lib_prefix=$need_lib_prefix
14024
14025# Do we need a version for libraries?
14026need_version=$need_version
14027
14028# Library versioning type.
14029version_type=$version_type
14030
14031# Shared library runtime path variable.
14032runpath_var=$runpath_var
14033
14034# Shared library path variable.
14035shlibpath_var=$shlibpath_var
14036
14037# Is shlibpath searched before the hard-coded library search path?
14038shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14039
14040# Format of library name prefix.
14041libname_spec=$lt_libname_spec
14042
14043# List of archive names.  First name is the real one, the rest are links.
14044# The last name is the one that the linker finds with -lNAME
14045library_names_spec=$lt_library_names_spec
14046
14047# The coded name of the library, if different from the real name.
14048soname_spec=$lt_soname_spec
14049
14050# Permission mode override for installation of shared libraries.
14051install_override_mode=$lt_install_override_mode
14052
14053# Command to use after installation of a shared archive.
14054postinstall_cmds=$lt_postinstall_cmds
14055
14056# Command to use after uninstallation of a shared archive.
14057postuninstall_cmds=$lt_postuninstall_cmds
14058
14059# Commands used to finish a libtool library installation in a directory.
14060finish_cmds=$lt_finish_cmds
14061
14062# As "finish_cmds", except a single script fragment to be evaled but
14063# not shown.
14064finish_eval=$lt_finish_eval
14065
14066# Whether we should hardcode library paths into libraries.
14067hardcode_into_libs=$hardcode_into_libs
14068
14069# Compile-time system search path for libraries.
14070sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14071
14072# Run-time system search path for libraries.
14073sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14074
14075# Whether dlopen is supported.
14076dlopen_support=$enable_dlopen
14077
14078# Whether dlopen of programs is supported.
14079dlopen_self=$enable_dlopen_self
14080
14081# Whether dlopen of statically linked programs is supported.
14082dlopen_self_static=$enable_dlopen_self_static
14083
14084# Commands to strip libraries.
14085old_striplib=$lt_old_striplib
14086striplib=$lt_striplib
14087
14088
14089# The linker used to build libraries.
14090LD=$lt_LD
14091
14092# How to create reloadable object files.
14093reload_flag=$lt_reload_flag
14094reload_cmds=$lt_reload_cmds
14095
14096# Commands used to build an old-style archive.
14097old_archive_cmds=$lt_old_archive_cmds
14098
14099# A language specific compiler.
14100CC=$lt_compiler
14101
14102# Is the compiler the GNU compiler?
14103with_gcc=$GCC
14104
14105# Compiler flag to turn off builtin functions.
14106no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14107
14108# How to pass a linker flag through the compiler.
14109wl=$lt_lt_prog_compiler_wl
14110
14111# Additional compiler flags for building library objects.
14112pic_flag=$lt_lt_prog_compiler_pic
14113
14114# Compiler flag to prevent dynamic linking.
14115link_static_flag=$lt_lt_prog_compiler_static
14116
14117# Does compiler simultaneously support -c and -o options?
14118compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14119
14120# Whether or not to add -lc for building shared libraries.
14121build_libtool_need_lc=$archive_cmds_need_lc
14122
14123# Whether or not to disallow shared libs when runtime libs are static.
14124allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14125
14126# Compiler flag to allow reflexive dlopens.
14127export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14128
14129# Compiler flag to generate shared objects directly from archives.
14130whole_archive_flag_spec=$lt_whole_archive_flag_spec
14131
14132# Whether the compiler copes with passing no objects directly.
14133compiler_needs_object=$lt_compiler_needs_object
14134
14135# Create an old-style archive from a shared archive.
14136old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14137
14138# Create a temporary old-style archive to link instead of a shared archive.
14139old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14140
14141# Commands used to build a shared archive.
14142archive_cmds=$lt_archive_cmds
14143archive_expsym_cmds=$lt_archive_expsym_cmds
14144
14145# Commands used to build a loadable module if different from building
14146# a shared archive.
14147module_cmds=$lt_module_cmds
14148module_expsym_cmds=$lt_module_expsym_cmds
14149
14150# Whether we are building with GNU ld or not.
14151with_gnu_ld=$lt_with_gnu_ld
14152
14153# Flag that allows shared libraries with undefined symbols to be built.
14154allow_undefined_flag=$lt_allow_undefined_flag
14155
14156# Flag that enforces no undefined symbols.
14157no_undefined_flag=$lt_no_undefined_flag
14158
14159# Flag to hardcode \$libdir into a binary during linking.
14160# This must work even if \$libdir does not exist
14161hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14162
14163# If ld is used when linking, flag to hardcode \$libdir into a binary
14164# during linking.  This must work even if \$libdir does not exist.
14165hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14166
14167# Whether we need a single "-rpath" flag with a separated argument.
14168hardcode_libdir_separator=$lt_hardcode_libdir_separator
14169
14170# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14171# DIR into the resulting binary.
14172hardcode_direct=$hardcode_direct
14173
14174# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14175# DIR into the resulting binary and the resulting library dependency is
14176# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14177# library is relocated.
14178hardcode_direct_absolute=$hardcode_direct_absolute
14179
14180# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14181# into the resulting binary.
14182hardcode_minus_L=$hardcode_minus_L
14183
14184# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14185# into the resulting binary.
14186hardcode_shlibpath_var=$hardcode_shlibpath_var
14187
14188# Set to "yes" if building a shared library automatically hardcodes DIR
14189# into the library and all subsequent libraries and executables linked
14190# against it.
14191hardcode_automatic=$hardcode_automatic
14192
14193# Set to yes if linker adds runtime paths of dependent libraries
14194# to runtime path list.
14195inherit_rpath=$inherit_rpath
14196
14197# Whether libtool must link a program against all its dependency libraries.
14198link_all_deplibs=$link_all_deplibs
14199
14200# Fix the shell variable \$srcfile for the compiler.
14201fix_srcfile_path=$lt_fix_srcfile_path
14202
14203# Set to "yes" if exported symbols are required.
14204always_export_symbols=$always_export_symbols
14205
14206# The commands to list exported symbols.
14207export_symbols_cmds=$lt_export_symbols_cmds
14208
14209# Symbols that should not be listed in the preloaded symbols.
14210exclude_expsyms=$lt_exclude_expsyms
14211
14212# Symbols that must always be exported.
14213include_expsyms=$lt_include_expsyms
14214
14215# Commands necessary for linking programs (against libraries) with templates.
14216prelink_cmds=$lt_prelink_cmds
14217
14218# Specify filename containing input files.
14219file_list_spec=$lt_file_list_spec
14220
14221# How to hardcode a shared library path into an executable.
14222hardcode_action=$hardcode_action
14223
14224# ### END LIBTOOL CONFIG
14225
14226_LT_EOF
14227
14228  case $host_os in
14229  aix3*)
14230    cat <<\_LT_EOF >> "$cfgfile"
14231# AIX sometimes has problems with the GCC collect2 program.  For some
14232# reason, if we set the COLLECT_NAMES environment variable, the problems
14233# vanish in a puff of smoke.
14234if test "X${COLLECT_NAMES+set}" != Xset; then
14235  COLLECT_NAMES=
14236  export COLLECT_NAMES
14237fi
14238_LT_EOF
14239    ;;
14240  esac
14241
14242
14243ltmain="$ac_aux_dir/ltmain.sh"
14244
14245
14246  # We use sed instead of cat because bash on DJGPP gets confused if
14247  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14248  # text mode, it properly converts lines to CR/LF.  This bash problem
14249  # is reportedly fixed, but why not run on old versions too?
14250  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14251    || (rm -f "$cfgfile"; exit 1)
14252
14253  case $xsi_shell in
14254  yes)
14255    cat << \_LT_EOF >> "$cfgfile"
14256
14257# func_dirname file append nondir_replacement
14258# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14259# otherwise set result to NONDIR_REPLACEMENT.
14260func_dirname ()
14261{
14262  case ${1} in
14263    */*) func_dirname_result="${1%/*}${2}" ;;
14264    *  ) func_dirname_result="${3}" ;;
14265  esac
14266}
14267
14268# func_basename file
14269func_basename ()
14270{
14271  func_basename_result="${1##*/}"
14272}
14273
14274# func_dirname_and_basename file append nondir_replacement
14275# perform func_basename and func_dirname in a single function
14276# call:
14277#   dirname:  Compute the dirname of FILE.  If nonempty,
14278#             add APPEND to the result, otherwise set result
14279#             to NONDIR_REPLACEMENT.
14280#             value returned in "$func_dirname_result"
14281#   basename: Compute filename of FILE.
14282#             value retuned in "$func_basename_result"
14283# Implementation must be kept synchronized with func_dirname
14284# and func_basename. For efficiency, we do not delegate to
14285# those functions but instead duplicate the functionality here.
14286func_dirname_and_basename ()
14287{
14288  case ${1} in
14289    */*) func_dirname_result="${1%/*}${2}" ;;
14290    *  ) func_dirname_result="${3}" ;;
14291  esac
14292  func_basename_result="${1##*/}"
14293}
14294
14295# func_stripname prefix suffix name
14296# strip PREFIX and SUFFIX off of NAME.
14297# PREFIX and SUFFIX must not contain globbing or regex special
14298# characters, hashes, percent signs, but SUFFIX may contain a leading
14299# dot (in which case that matches only a dot).
14300func_stripname ()
14301{
14302  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14303  # positional parameters, so assign one to ordinary parameter first.
14304  func_stripname_result=${3}
14305  func_stripname_result=${func_stripname_result#"${1}"}
14306  func_stripname_result=${func_stripname_result%"${2}"}
14307}
14308
14309# func_opt_split
14310func_opt_split ()
14311{
14312  func_opt_split_opt=${1%%=*}
14313  func_opt_split_arg=${1#*=}
14314}
14315
14316# func_lo2o object
14317func_lo2o ()
14318{
14319  case ${1} in
14320    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14321    *)    func_lo2o_result=${1} ;;
14322  esac
14323}
14324
14325# func_xform libobj-or-source
14326func_xform ()
14327{
14328  func_xform_result=${1%.*}.lo
14329}
14330
14331# func_arith arithmetic-term...
14332func_arith ()
14333{
14334  func_arith_result=$(( $* ))
14335}
14336
14337# func_len string
14338# STRING may not start with a hyphen.
14339func_len ()
14340{
14341  func_len_result=${#1}
14342}
14343
14344_LT_EOF
14345    ;;
14346  *) # Bourne compatible functions.
14347    cat << \_LT_EOF >> "$cfgfile"
14348
14349# func_dirname file append nondir_replacement
14350# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14351# otherwise set result to NONDIR_REPLACEMENT.
14352func_dirname ()
14353{
14354  # Extract subdirectory from the argument.
14355  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14356  if test "X$func_dirname_result" = "X${1}"; then
14357    func_dirname_result="${3}"
14358  else
14359    func_dirname_result="$func_dirname_result${2}"
14360  fi
14361}
14362
14363# func_basename file
14364func_basename ()
14365{
14366  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14367}
14368
14369
14370# func_stripname prefix suffix name
14371# strip PREFIX and SUFFIX off of NAME.
14372# PREFIX and SUFFIX must not contain globbing or regex special
14373# characters, hashes, percent signs, but SUFFIX may contain a leading
14374# dot (in which case that matches only a dot).
14375# func_strip_suffix prefix name
14376func_stripname ()
14377{
14378  case ${2} in
14379    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14380    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14381  esac
14382}
14383
14384# sed scripts:
14385my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14386my_sed_long_arg='1s/^-[^=]*=//'
14387
14388# func_opt_split
14389func_opt_split ()
14390{
14391  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14392  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14393}
14394
14395# func_lo2o object
14396func_lo2o ()
14397{
14398  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14399}
14400
14401# func_xform libobj-or-source
14402func_xform ()
14403{
14404  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14405}
14406
14407# func_arith arithmetic-term...
14408func_arith ()
14409{
14410  func_arith_result=`expr "$@"`
14411}
14412
14413# func_len string
14414# STRING may not start with a hyphen.
14415func_len ()
14416{
14417  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14418}
14419
14420_LT_EOF
14421esac
14422
14423case $lt_shell_append in
14424  yes)
14425    cat << \_LT_EOF >> "$cfgfile"
14426
14427# func_append var value
14428# Append VALUE to the end of shell variable VAR.
14429func_append ()
14430{
14431  eval "$1+=\$2"
14432}
14433_LT_EOF
14434    ;;
14435  *)
14436    cat << \_LT_EOF >> "$cfgfile"
14437
14438# func_append var value
14439# Append VALUE to the end of shell variable VAR.
14440func_append ()
14441{
14442  eval "$1=\$$1\$2"
14443}
14444
14445_LT_EOF
14446    ;;
14447  esac
14448
14449
14450  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14451    || (rm -f "$cfgfile"; exit 1)
14452
14453  mv -f "$cfgfile" "$ofile" ||
14454    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14455  chmod +x "$ofile"
14456
14457 ;;
14458
14459  esac
14460done # for ac_tag
14461
14462
14463as_fn_exit 0
14464_ACEOF
14465ac_clean_files=$ac_clean_files_save
14466
14467test $ac_write_fail = 0 ||
14468  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14469
14470
14471# configure is writing to config.log, and then calls config.status.
14472# config.status does its own redirection, appending to config.log.
14473# Unfortunately, on DOS this fails, as config.log is still kept open
14474# by configure, so config.status won't be able to write to it; its
14475# output is simply discarded.  So we exec the FD to /dev/null,
14476# effectively closing config.log, so it can be properly (re)opened and
14477# appended to by config.status.  When coming back to configure, we
14478# need to make the FD available again.
14479if test "$no_create" != yes; then
14480  ac_cs_success=:
14481  ac_config_status_args=
14482  test "$silent" = yes &&
14483    ac_config_status_args="$ac_config_status_args --quiet"
14484  exec 5>/dev/null
14485  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14486  exec 5>>config.log
14487  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14488  # would make configure fail if this is the last instruction.
14489  $ac_cs_success || as_fn_exit 1
14490fi
14491if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14492  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14493$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14494fi
14495
14496