configure revision 9c9ff80c
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for libXrender 0.9.6.
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 Free Software Foundation,
10# Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
235$0: about your system, including any error possibly output
236$0: before this message. Then install a modern shell, or
237$0: manually run the script under such a shell if you do
238$0: have one."
239  fi
240  exit 1
241fi
242fi
243fi
244SHELL=${CONFIG_SHELL-/bin/sh}
245export SHELL
246# Unset more variables known to interfere with behavior of common tools.
247CLICOLOR_FORCE= GREP_OPTIONS=
248unset CLICOLOR_FORCE GREP_OPTIONS
249
250## --------------------- ##
251## M4sh Shell Functions. ##
252## --------------------- ##
253# as_fn_unset VAR
254# ---------------
255# Portably unset VAR.
256as_fn_unset ()
257{
258  { eval $1=; unset $1;}
259}
260as_unset=as_fn_unset
261
262# as_fn_set_status STATUS
263# -----------------------
264# Set $? to STATUS, without forking.
265as_fn_set_status ()
266{
267  return $1
268} # as_fn_set_status
269
270# as_fn_exit STATUS
271# -----------------
272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273as_fn_exit ()
274{
275  set +e
276  as_fn_set_status $1
277  exit $1
278} # as_fn_exit
279
280# as_fn_mkdir_p
281# -------------
282# Create "$as_dir" as a directory, including parents if necessary.
283as_fn_mkdir_p ()
284{
285
286  case $as_dir in #(
287  -*) as_dir=./$as_dir;;
288  esac
289  test -d "$as_dir" || eval $as_mkdir_p || {
290    as_dirs=
291    while :; do
292      case $as_dir in #(
293      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294      *) as_qdir=$as_dir;;
295      esac
296      as_dirs="'$as_qdir' $as_dirs"
297      as_dir=`$as_dirname -- "$as_dir" ||
298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299	 X"$as_dir" : 'X\(//\)[^/]' \| \
300	 X"$as_dir" : 'X\(//\)$' \| \
301	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302$as_echo X"$as_dir" |
303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)[^/].*/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\/\)$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\).*/{
316	    s//\1/
317	    q
318	  }
319	  s/.*/./; q'`
320      test -d "$as_dir" && break
321    done
322    test -z "$as_dirs" || eval "mkdir $as_dirs"
323  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326} # as_fn_mkdir_p
327# as_fn_append VAR VALUE
328# ----------------------
329# Append the text in VALUE to the end of the definition contained in VAR. Take
330# advantage of any shell optimizations that allow amortized linear growth over
331# repeated appends, instead of the typical quadratic growth present in naive
332# implementations.
333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334  eval 'as_fn_append ()
335  {
336    eval $1+=\$2
337  }'
338else
339  as_fn_append ()
340  {
341    eval $1=\$$1\$2
342  }
343fi # as_fn_append
344
345# as_fn_arith ARG...
346# ------------------
347# Perform arithmetic evaluation on the ARGs, and store the result in the
348# global $as_val. Take advantage of shells that can avoid forks. The arguments
349# must be portable across $(()) and expr.
350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351  eval 'as_fn_arith ()
352  {
353    as_val=$(( $* ))
354  }'
355else
356  as_fn_arith ()
357  {
358    as_val=`expr "$@" || test $? -eq 1`
359  }
360fi # as_fn_arith
361
362
363# as_fn_error ERROR [LINENO LOG_FD]
364# ---------------------------------
365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367# script with status $?, using 1 if that was 0.
368as_fn_error ()
369{
370  as_status=$?; test $as_status -eq 0 && as_status=1
371  if test "$3"; then
372    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374  fi
375  $as_echo "$as_me: error: $1" >&2
376  as_fn_exit $as_status
377} # as_fn_error
378
379if expr a : '\(a\)' >/dev/null 2>&1 &&
380   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381  as_expr=expr
382else
383  as_expr=false
384fi
385
386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387  as_basename=basename
388else
389  as_basename=false
390fi
391
392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393  as_dirname=dirname
394else
395  as_dirname=false
396fi
397
398as_me=`$as_basename -- "$0" ||
399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400	 X"$0" : 'X\(//\)$' \| \
401	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402$as_echo X/"$0" |
403    sed '/^.*\/\([^/][^/]*\)\/*$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\/\)$/{
408	    s//\1/
409	    q
410	  }
411	  /^X\/\(\/\).*/{
412	    s//\1/
413	    q
414	  }
415	  s/.*/./; q'`
416
417# Avoid depending upon Character Ranges.
418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421as_cr_digits='0123456789'
422as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430  sed -n '
431    p
432    /[$]LINENO/=
433  ' <$as_myself |
434    sed '
435      s/[$]LINENO.*/&-/
436      t lineno
437      b
438      :lineno
439      N
440      :loop
441      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442      t loop
443      s/-\n.*//
444    ' >$as_me.lineno &&
445  chmod +x "$as_me.lineno" ||
446    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448  # Don't try to exec as it changes $[0], causing all sort of problems
449  # (the dirname of $[0] is not the place where we might find the
450  # original and so on.  Autoconf is especially sensitive to this).
451  . "./$as_me.lineno"
452  # Exit status is that of the last command.
453  exit
454}
455
456ECHO_C= ECHO_N= ECHO_T=
457case `echo -n x` in #(((((
458-n*)
459  case `echo 'xy\c'` in
460  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
461  xy)  ECHO_C='\c';;
462  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463       ECHO_T='	';;
464  esac;;
465*)
466  ECHO_N='-n';;
467esac
468
469rm -f conf$$ conf$$.exe conf$$.file
470if test -d conf$$.dir; then
471  rm -f conf$$.dir/conf$$.file
472else
473  rm -f conf$$.dir
474  mkdir conf$$.dir 2>/dev/null
475fi
476if (echo >conf$$.file) 2>/dev/null; then
477  if ln -s conf$$.file conf$$ 2>/dev/null; then
478    as_ln_s='ln -s'
479    # ... but there are two gotchas:
480    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482    # In both cases, we have to default to `cp -p'.
483    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484      as_ln_s='cp -p'
485  elif ln conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s=ln
487  else
488    as_ln_s='cp -p'
489  fi
490else
491  as_ln_s='cp -p'
492fi
493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494rmdir conf$$.dir 2>/dev/null
495
496if mkdir -p . 2>/dev/null; then
497  as_mkdir_p='mkdir -p "$as_dir"'
498else
499  test -d ./-p && rmdir ./-p
500  as_mkdir_p=false
501fi
502
503if test -x / >/dev/null 2>&1; then
504  as_test_x='test -x'
505else
506  if ls -dL / >/dev/null 2>&1; then
507    as_ls_L_option=L
508  else
509    as_ls_L_option=
510  fi
511  as_test_x='
512    eval sh -c '\''
513      if test -d "$1"; then
514	test -d "$1/.";
515      else
516	case $1 in #(
517	-*)set "./$1";;
518	esac;
519	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520	???[sx]*):;;*)false;;esac;fi
521    '\'' sh
522  '
523fi
524as_executable_p=$as_test_x
525
526# Sed expression to map a string onto a valid CPP name.
527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529# Sed expression to map a string onto a valid variable name.
530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534# Check that we are running under the correct shell.
535SHELL=${CONFIG_SHELL-/bin/sh}
536
537case X$lt_ECHO in
538X*--fallback-echo)
539  # Remove one level of quotation (which was required for Make).
540  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541  ;;
542esac
543
544ECHO=${lt_ECHO-echo}
545if test "X$1" = X--no-reexec; then
546  # Discard the --no-reexec flag, and continue.
547  shift
548elif test "X$1" = X--fallback-echo; then
549  # Avoid inline document here, it may be left over
550  :
551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552  # Yippee, $ECHO works!
553  :
554else
555  # Restart under the correct shell.
556  exec $SHELL "$0" --no-reexec ${1+"$@"}
557fi
558
559if test "X$1" = X--fallback-echo; then
560  # used as fallback echo
561  shift
562  cat <<_LT_EOF
563$*
564_LT_EOF
565  exit 0
566fi
567
568# The HP-UX ksh and POSIX shell print the target directory to stdout
569# if CDPATH is set.
570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572if test -z "$lt_ECHO"; then
573  if test "X${echo_test_string+set}" != Xset; then
574    # find a string as large as possible, as long as the shell can cope with it
575    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579      then
580        break
581      fi
582    done
583  fi
584
585  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587     test "X$echo_testing_string" = "X$echo_test_string"; then
588    :
589  else
590    # The Solaris, AIX, and Digital Unix default echo programs unquote
591    # backslashes.  This makes it impossible to quote backslashes using
592    #   echo "$something" | sed 's/\\/\\\\/g'
593    #
594    # So, first we look for a working echo in the user's PATH.
595
596    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597    for dir in $PATH /usr/ucb; do
598      IFS="$lt_save_ifs"
599      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602         test "X$echo_testing_string" = "X$echo_test_string"; then
603        ECHO="$dir/echo"
604        break
605      fi
606    done
607    IFS="$lt_save_ifs"
608
609    if test "X$ECHO" = Xecho; then
610      # We didn't find a better echo, so look for alternatives.
611      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613         test "X$echo_testing_string" = "X$echo_test_string"; then
614        # This shell has a builtin print -r that does the trick.
615        ECHO='print -r'
616      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617	   test "X$CONFIG_SHELL" != X/bin/ksh; then
618        # If we have ksh, try running configure again with it.
619        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620        export ORIGINAL_CONFIG_SHELL
621        CONFIG_SHELL=/bin/ksh
622        export CONFIG_SHELL
623        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624      else
625        # Try using printf.
626        ECHO='printf %s\n'
627        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629	   test "X$echo_testing_string" = "X$echo_test_string"; then
630	  # Cool, printf works
631	  :
632        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633	     test "X$echo_testing_string" = 'X\t' &&
634	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635	     test "X$echo_testing_string" = "X$echo_test_string"; then
636	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637	  export CONFIG_SHELL
638	  SHELL="$CONFIG_SHELL"
639	  export SHELL
640	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
641        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642	     test "X$echo_testing_string" = 'X\t' &&
643	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644	     test "X$echo_testing_string" = "X$echo_test_string"; then
645	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
646        else
647	  # maybe with a smaller string...
648	  prev=:
649
650	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652	    then
653	      break
654	    fi
655	    prev="$cmd"
656	  done
657
658	  if test "$prev" != 'sed 50q "$0"'; then
659	    echo_test_string=`eval $prev`
660	    export echo_test_string
661	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662	  else
663	    # Oops.  We lost completely, so just stick with echo.
664	    ECHO=echo
665	  fi
666        fi
667      fi
668    fi
669  fi
670fi
671
672# Copy echo and quote the copy suitably for passing to libtool from
673# the Makefile, instead of quoting the original, which is used later.
674lt_ECHO=$ECHO
675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677fi
678
679
680
681
682test -n "$DJDIR" || exec 7<&0 </dev/null
683exec 6>&1
684
685# Name of the host.
686# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
687# so uname gets run too.
688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690#
691# Initializations.
692#
693ac_default_prefix=/usr/local
694ac_clean_files=
695ac_config_libobj_dir=.
696LIBOBJS=
697cross_compiling=no
698subdirs=
699MFLAGS=
700MAKEFLAGS=
701
702# Identity of this package.
703PACKAGE_NAME='libXrender'
704PACKAGE_TARNAME='libXrender'
705PACKAGE_VERSION='0.9.6'
706PACKAGE_STRING='libXrender 0.9.6'
707PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
708PACKAGE_URL=''
709
710# Factoring default headers for most tests.
711ac_includes_default="\
712#include <stdio.h>
713#ifdef HAVE_SYS_TYPES_H
714# include <sys/types.h>
715#endif
716#ifdef HAVE_SYS_STAT_H
717# include <sys/stat.h>
718#endif
719#ifdef STDC_HEADERS
720# include <stdlib.h>
721# include <stddef.h>
722#else
723# ifdef HAVE_STDLIB_H
724#  include <stdlib.h>
725# endif
726#endif
727#ifdef HAVE_STRING_H
728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729#  include <memory.h>
730# endif
731# include <string.h>
732#endif
733#ifdef HAVE_STRINGS_H
734# include <strings.h>
735#endif
736#ifdef HAVE_INTTYPES_H
737# include <inttypes.h>
738#endif
739#ifdef HAVE_STDINT_H
740# include <stdint.h>
741#endif
742#ifdef HAVE_UNISTD_H
743# include <unistd.h>
744#endif"
745
746ac_subst_vars='am__EXEEXT_FALSE
747am__EXEEXT_TRUE
748LTLIBOBJS
749LIBOBJS
750XTMALLOC_ZERO_CFLAGS
751XMALLOC_ZERO_CFLAGS
752MALLOC_ZERO_CFLAGS
753RENDER_LIBS
754RENDER_CFLAGS
755RENDER_VERSION
756OTOOL64
757OTOOL
758LIPO
759NMEDIT
760DSYMUTIL
761lt_ECHO
762RANLIB
763AR
764OBJDUMP
765LN_S
766NM
767ac_ct_DUMPBIN
768DUMPBIN
769LD
770FGREP
771LIBTOOL
772AM_BACKSLASH
773AM_DEFAULT_VERBOSITY
774MAN_SUBSTS
775XORG_MAN_PAGE
776ADMIN_MAN_DIR
777DRIVER_MAN_DIR
778MISC_MAN_DIR
779FILE_MAN_DIR
780LIB_MAN_DIR
781APP_MAN_DIR
782ADMIN_MAN_SUFFIX
783DRIVER_MAN_SUFFIX
784MISC_MAN_SUFFIX
785FILE_MAN_SUFFIX
786LIB_MAN_SUFFIX
787APP_MAN_SUFFIX
788SED
789host_os
790host_vendor
791host_cpu
792host
793build_os
794build_vendor
795build_cpu
796build
797INSTALL_CMD
798PKG_CONFIG
799CHANGELOG_CMD
800CWARNFLAGS
801EGREP
802GREP
803CPP
804am__fastdepCC_FALSE
805am__fastdepCC_TRUE
806CCDEPMODE
807AMDEPBACKSLASH
808AMDEP_FALSE
809AMDEP_TRUE
810am__quote
811am__include
812DEPDIR
813OBJEXT
814EXEEXT
815ac_ct_CC
816CPPFLAGS
817LDFLAGS
818CFLAGS
819CC
820MAINT
821MAINTAINER_MODE_FALSE
822MAINTAINER_MODE_TRUE
823am__untar
824am__tar
825AMTAR
826am__leading_dot
827SET_MAKE
828AWK
829mkdir_p
830MKDIR_P
831INSTALL_STRIP_PROGRAM
832STRIP
833install_sh
834MAKEINFO
835AUTOHEADER
836AUTOMAKE
837AUTOCONF
838ACLOCAL
839VERSION
840PACKAGE
841CYGPATH_W
842am__isrc
843INSTALL_DATA
844INSTALL_SCRIPT
845INSTALL_PROGRAM
846target_alias
847host_alias
848build_alias
849LIBS
850ECHO_T
851ECHO_N
852ECHO_C
853DEFS
854mandir
855localedir
856libdir
857psdir
858pdfdir
859dvidir
860htmldir
861infodir
862docdir
863oldincludedir
864includedir
865localstatedir
866sharedstatedir
867sysconfdir
868datadir
869datarootdir
870libexecdir
871sbindir
872bindir
873program_transform_name
874prefix
875exec_prefix
876PACKAGE_URL
877PACKAGE_BUGREPORT
878PACKAGE_STRING
879PACKAGE_VERSION
880PACKAGE_TARNAME
881PACKAGE_NAME
882PATH_SEPARATOR
883SHELL'
884ac_subst_files=''
885ac_user_opts='
886enable_option_checking
887enable_maintainer_mode
888enable_dependency_tracking
889enable_strict_compilation
890enable_silent_rules
891enable_shared
892enable_static
893with_pic
894enable_fast_install
895with_gnu_ld
896enable_libtool_lock
897enable_malloc0returnsnull
898'
899      ac_precious_vars='build_alias
900host_alias
901target_alias
902CC
903CFLAGS
904LDFLAGS
905LIBS
906CPPFLAGS
907CPP
908PKG_CONFIG
909RENDER_CFLAGS
910RENDER_LIBS'
911
912
913# Initialize some variables set by options.
914ac_init_help=
915ac_init_version=false
916ac_unrecognized_opts=
917ac_unrecognized_sep=
918# The variables have the same names as the options, with
919# dashes changed to underlines.
920cache_file=/dev/null
921exec_prefix=NONE
922no_create=
923no_recursion=
924prefix=NONE
925program_prefix=NONE
926program_suffix=NONE
927program_transform_name=s,x,x,
928silent=
929site=
930srcdir=
931verbose=
932x_includes=NONE
933x_libraries=NONE
934
935# Installation directory options.
936# These are left unexpanded so users can "make install exec_prefix=/foo"
937# and all the variables that are supposed to be based on exec_prefix
938# by default will actually change.
939# Use braces instead of parens because sh, perl, etc. also accept them.
940# (The list follows the same order as the GNU Coding Standards.)
941bindir='${exec_prefix}/bin'
942sbindir='${exec_prefix}/sbin'
943libexecdir='${exec_prefix}/libexec'
944datarootdir='${prefix}/share'
945datadir='${datarootdir}'
946sysconfdir='${prefix}/etc'
947sharedstatedir='${prefix}/com'
948localstatedir='${prefix}/var'
949includedir='${prefix}/include'
950oldincludedir='/usr/include'
951docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
952infodir='${datarootdir}/info'
953htmldir='${docdir}'
954dvidir='${docdir}'
955pdfdir='${docdir}'
956psdir='${docdir}'
957libdir='${exec_prefix}/lib'
958localedir='${datarootdir}/locale'
959mandir='${datarootdir}/man'
960
961ac_prev=
962ac_dashdash=
963for ac_option
964do
965  # If the previous option needs an argument, assign it.
966  if test -n "$ac_prev"; then
967    eval $ac_prev=\$ac_option
968    ac_prev=
969    continue
970  fi
971
972  case $ac_option in
973  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
974  *)	ac_optarg=yes ;;
975  esac
976
977  # Accept the important Cygnus configure options, so we can diagnose typos.
978
979  case $ac_dashdash$ac_option in
980  --)
981    ac_dashdash=yes ;;
982
983  -bindir | --bindir | --bindi | --bind | --bin | --bi)
984    ac_prev=bindir ;;
985  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986    bindir=$ac_optarg ;;
987
988  -build | --build | --buil | --bui | --bu)
989    ac_prev=build_alias ;;
990  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991    build_alias=$ac_optarg ;;
992
993  -cache-file | --cache-file | --cache-fil | --cache-fi \
994  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995    ac_prev=cache_file ;;
996  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998    cache_file=$ac_optarg ;;
999
1000  --config-cache | -C)
1001    cache_file=config.cache ;;
1002
1003  -datadir | --datadir | --datadi | --datad)
1004    ac_prev=datadir ;;
1005  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006    datadir=$ac_optarg ;;
1007
1008  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009  | --dataroo | --dataro | --datar)
1010    ac_prev=datarootdir ;;
1011  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013    datarootdir=$ac_optarg ;;
1014
1015  -disable-* | --disable-*)
1016    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017    # Reject names that are not valid shell variable names.
1018    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019      as_fn_error "invalid feature name: $ac_useropt"
1020    ac_useropt_orig=$ac_useropt
1021    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022    case $ac_user_opts in
1023      *"
1024"enable_$ac_useropt"
1025"*) ;;
1026      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027	 ac_unrecognized_sep=', ';;
1028    esac
1029    eval enable_$ac_useropt=no ;;
1030
1031  -docdir | --docdir | --docdi | --doc | --do)
1032    ac_prev=docdir ;;
1033  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034    docdir=$ac_optarg ;;
1035
1036  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037    ac_prev=dvidir ;;
1038  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039    dvidir=$ac_optarg ;;
1040
1041  -enable-* | --enable-*)
1042    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043    # Reject names that are not valid shell variable names.
1044    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045      as_fn_error "invalid feature name: $ac_useropt"
1046    ac_useropt_orig=$ac_useropt
1047    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048    case $ac_user_opts in
1049      *"
1050"enable_$ac_useropt"
1051"*) ;;
1052      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053	 ac_unrecognized_sep=', ';;
1054    esac
1055    eval enable_$ac_useropt=\$ac_optarg ;;
1056
1057  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059  | --exec | --exe | --ex)
1060    ac_prev=exec_prefix ;;
1061  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063  | --exec=* | --exe=* | --ex=*)
1064    exec_prefix=$ac_optarg ;;
1065
1066  -gas | --gas | --ga | --g)
1067    # Obsolete; use --with-gas.
1068    with_gas=yes ;;
1069
1070  -help | --help | --hel | --he | -h)
1071    ac_init_help=long ;;
1072  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073    ac_init_help=recursive ;;
1074  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075    ac_init_help=short ;;
1076
1077  -host | --host | --hos | --ho)
1078    ac_prev=host_alias ;;
1079  -host=* | --host=* | --hos=* | --ho=*)
1080    host_alias=$ac_optarg ;;
1081
1082  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083    ac_prev=htmldir ;;
1084  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085  | --ht=*)
1086    htmldir=$ac_optarg ;;
1087
1088  -includedir | --includedir | --includedi | --included | --include \
1089  | --includ | --inclu | --incl | --inc)
1090    ac_prev=includedir ;;
1091  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092  | --includ=* | --inclu=* | --incl=* | --inc=*)
1093    includedir=$ac_optarg ;;
1094
1095  -infodir | --infodir | --infodi | --infod | --info | --inf)
1096    ac_prev=infodir ;;
1097  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098    infodir=$ac_optarg ;;
1099
1100  -libdir | --libdir | --libdi | --libd)
1101    ac_prev=libdir ;;
1102  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103    libdir=$ac_optarg ;;
1104
1105  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106  | --libexe | --libex | --libe)
1107    ac_prev=libexecdir ;;
1108  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109  | --libexe=* | --libex=* | --libe=*)
1110    libexecdir=$ac_optarg ;;
1111
1112  -localedir | --localedir | --localedi | --localed | --locale)
1113    ac_prev=localedir ;;
1114  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115    localedir=$ac_optarg ;;
1116
1117  -localstatedir | --localstatedir | --localstatedi | --localstated \
1118  | --localstate | --localstat | --localsta | --localst | --locals)
1119    ac_prev=localstatedir ;;
1120  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122    localstatedir=$ac_optarg ;;
1123
1124  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125    ac_prev=mandir ;;
1126  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127    mandir=$ac_optarg ;;
1128
1129  -nfp | --nfp | --nf)
1130    # Obsolete; use --without-fp.
1131    with_fp=no ;;
1132
1133  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134  | --no-cr | --no-c | -n)
1135    no_create=yes ;;
1136
1137  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139    no_recursion=yes ;;
1140
1141  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143  | --oldin | --oldi | --old | --ol | --o)
1144    ac_prev=oldincludedir ;;
1145  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148    oldincludedir=$ac_optarg ;;
1149
1150  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151    ac_prev=prefix ;;
1152  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153    prefix=$ac_optarg ;;
1154
1155  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156  | --program-pre | --program-pr | --program-p)
1157    ac_prev=program_prefix ;;
1158  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160    program_prefix=$ac_optarg ;;
1161
1162  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163  | --program-suf | --program-su | --program-s)
1164    ac_prev=program_suffix ;;
1165  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167    program_suffix=$ac_optarg ;;
1168
1169  -program-transform-name | --program-transform-name \
1170  | --program-transform-nam | --program-transform-na \
1171  | --program-transform-n | --program-transform- \
1172  | --program-transform | --program-transfor \
1173  | --program-transfo | --program-transf \
1174  | --program-trans | --program-tran \
1175  | --progr-tra | --program-tr | --program-t)
1176    ac_prev=program_transform_name ;;
1177  -program-transform-name=* | --program-transform-name=* \
1178  | --program-transform-nam=* | --program-transform-na=* \
1179  | --program-transform-n=* | --program-transform-=* \
1180  | --program-transform=* | --program-transfor=* \
1181  | --program-transfo=* | --program-transf=* \
1182  | --program-trans=* | --program-tran=* \
1183  | --progr-tra=* | --program-tr=* | --program-t=*)
1184    program_transform_name=$ac_optarg ;;
1185
1186  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187    ac_prev=pdfdir ;;
1188  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189    pdfdir=$ac_optarg ;;
1190
1191  -psdir | --psdir | --psdi | --psd | --ps)
1192    ac_prev=psdir ;;
1193  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194    psdir=$ac_optarg ;;
1195
1196  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197  | -silent | --silent | --silen | --sile | --sil)
1198    silent=yes ;;
1199
1200  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201    ac_prev=sbindir ;;
1202  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203  | --sbi=* | --sb=*)
1204    sbindir=$ac_optarg ;;
1205
1206  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208  | --sharedst | --shareds | --shared | --share | --shar \
1209  | --sha | --sh)
1210    ac_prev=sharedstatedir ;;
1211  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214  | --sha=* | --sh=*)
1215    sharedstatedir=$ac_optarg ;;
1216
1217  -site | --site | --sit)
1218    ac_prev=site ;;
1219  -site=* | --site=* | --sit=*)
1220    site=$ac_optarg ;;
1221
1222  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223    ac_prev=srcdir ;;
1224  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1225    srcdir=$ac_optarg ;;
1226
1227  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228  | --syscon | --sysco | --sysc | --sys | --sy)
1229    ac_prev=sysconfdir ;;
1230  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1232    sysconfdir=$ac_optarg ;;
1233
1234  -target | --target | --targe | --targ | --tar | --ta | --t)
1235    ac_prev=target_alias ;;
1236  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1237    target_alias=$ac_optarg ;;
1238
1239  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240    verbose=yes ;;
1241
1242  -version | --version | --versio | --versi | --vers | -V)
1243    ac_init_version=: ;;
1244
1245  -with-* | --with-*)
1246    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247    # Reject names that are not valid shell variable names.
1248    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1249      as_fn_error "invalid package name: $ac_useropt"
1250    ac_useropt_orig=$ac_useropt
1251    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252    case $ac_user_opts in
1253      *"
1254"with_$ac_useropt"
1255"*) ;;
1256      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1257	 ac_unrecognized_sep=', ';;
1258    esac
1259    eval with_$ac_useropt=\$ac_optarg ;;
1260
1261  -without-* | --without-*)
1262    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1263    # Reject names that are not valid shell variable names.
1264    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265      as_fn_error "invalid package name: $ac_useropt"
1266    ac_useropt_orig=$ac_useropt
1267    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268    case $ac_user_opts in
1269      *"
1270"with_$ac_useropt"
1271"*) ;;
1272      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1273	 ac_unrecognized_sep=', ';;
1274    esac
1275    eval with_$ac_useropt=no ;;
1276
1277  --x)
1278    # Obsolete; use --with-x.
1279    with_x=yes ;;
1280
1281  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1282  | --x-incl | --x-inc | --x-in | --x-i)
1283    ac_prev=x_includes ;;
1284  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1285  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1286    x_includes=$ac_optarg ;;
1287
1288  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1289  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1290    ac_prev=x_libraries ;;
1291  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1292  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1293    x_libraries=$ac_optarg ;;
1294
1295  -*) as_fn_error "unrecognized option: \`$ac_option'
1296Try \`$0 --help' for more information."
1297    ;;
1298
1299  *=*)
1300    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1301    # Reject names that are not valid shell variable names.
1302    case $ac_envvar in #(
1303      '' | [0-9]* | *[!_$as_cr_alnum]* )
1304      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1305    esac
1306    eval $ac_envvar=\$ac_optarg
1307    export $ac_envvar ;;
1308
1309  *)
1310    # FIXME: should be removed in autoconf 3.0.
1311    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1312    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1313      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1314    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1315    ;;
1316
1317  esac
1318done
1319
1320if test -n "$ac_prev"; then
1321  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1322  as_fn_error "missing argument to $ac_option"
1323fi
1324
1325if test -n "$ac_unrecognized_opts"; then
1326  case $enable_option_checking in
1327    no) ;;
1328    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1329    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1330  esac
1331fi
1332
1333# Check all directory arguments for consistency.
1334for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335		datadir sysconfdir sharedstatedir localstatedir includedir \
1336		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337		libdir localedir mandir
1338do
1339  eval ac_val=\$$ac_var
1340  # Remove trailing slashes.
1341  case $ac_val in
1342    */ )
1343      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1344      eval $ac_var=\$ac_val;;
1345  esac
1346  # Be sure to have absolute directory names.
1347  case $ac_val in
1348    [\\/$]* | ?:[\\/]* )  continue;;
1349    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1350  esac
1351  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1352done
1353
1354# There might be people who depend on the old broken behavior: `$host'
1355# used to hold the argument of --host etc.
1356# FIXME: To remove some day.
1357build=$build_alias
1358host=$host_alias
1359target=$target_alias
1360
1361# FIXME: To remove some day.
1362if test "x$host_alias" != x; then
1363  if test "x$build_alias" = x; then
1364    cross_compiling=maybe
1365    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1366    If a cross compiler is detected then cross compile mode will be used." >&2
1367  elif test "x$build_alias" != "x$host_alias"; then
1368    cross_compiling=yes
1369  fi
1370fi
1371
1372ac_tool_prefix=
1373test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374
1375test "$silent" = yes && exec 6>/dev/null
1376
1377
1378ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379ac_ls_di=`ls -di .` &&
1380ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381  as_fn_error "working directory cannot be determined"
1382test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383  as_fn_error "pwd does not report name of working directory"
1384
1385
1386# Find the source files, if location was not specified.
1387if test -z "$srcdir"; then
1388  ac_srcdir_defaulted=yes
1389  # Try the directory containing this script, then the parent directory.
1390  ac_confdir=`$as_dirname -- "$as_myself" ||
1391$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392	 X"$as_myself" : 'X\(//\)[^/]' \| \
1393	 X"$as_myself" : 'X\(//\)$' \| \
1394	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395$as_echo X"$as_myself" |
1396    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397	    s//\1/
1398	    q
1399	  }
1400	  /^X\(\/\/\)[^/].*/{
1401	    s//\1/
1402	    q
1403	  }
1404	  /^X\(\/\/\)$/{
1405	    s//\1/
1406	    q
1407	  }
1408	  /^X\(\/\).*/{
1409	    s//\1/
1410	    q
1411	  }
1412	  s/.*/./; q'`
1413  srcdir=$ac_confdir
1414  if test ! -r "$srcdir/$ac_unique_file"; then
1415    srcdir=..
1416  fi
1417else
1418  ac_srcdir_defaulted=no
1419fi
1420if test ! -r "$srcdir/$ac_unique_file"; then
1421  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1422  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1423fi
1424ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425ac_abs_confdir=`(
1426	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1427	pwd)`
1428# When building in place, set srcdir=.
1429if test "$ac_abs_confdir" = "$ac_pwd"; then
1430  srcdir=.
1431fi
1432# Remove unnecessary trailing slashes from srcdir.
1433# Double slashes in file names in object file debugging info
1434# mess up M-x gdb in Emacs.
1435case $srcdir in
1436*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437esac
1438for ac_var in $ac_precious_vars; do
1439  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440  eval ac_env_${ac_var}_value=\$${ac_var}
1441  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443done
1444
1445#
1446# Report the --help message.
1447#
1448if test "$ac_init_help" = "long"; then
1449  # Omit some internal or obsolete options to make the list less imposing.
1450  # This message is too long to be a string in the A/UX 3.1 sh.
1451  cat <<_ACEOF
1452\`configure' configures libXrender 0.9.6 to adapt to many kinds of systems.
1453
1454Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457VAR=VALUE.  See below for descriptions of some of the useful variables.
1458
1459Defaults for the options are specified in brackets.
1460
1461Configuration:
1462  -h, --help              display this help and exit
1463      --help=short        display options specific to this package
1464      --help=recursive    display the short help of all the included packages
1465  -V, --version           display version information and exit
1466  -q, --quiet, --silent   do not print \`checking...' messages
1467      --cache-file=FILE   cache test results in FILE [disabled]
1468  -C, --config-cache      alias for \`--cache-file=config.cache'
1469  -n, --no-create         do not create output files
1470      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1471
1472Installation directories:
1473  --prefix=PREFIX         install architecture-independent files in PREFIX
1474                          [$ac_default_prefix]
1475  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1476                          [PREFIX]
1477
1478By default, \`make install' will install all the files in
1479\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1480an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481for instance \`--prefix=\$HOME'.
1482
1483For better control, use the options below.
1484
1485Fine tuning of the installation directories:
1486  --bindir=DIR            user executables [EPREFIX/bin]
1487  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1488  --libexecdir=DIR        program executables [EPREFIX/libexec]
1489  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1490  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1491  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1492  --libdir=DIR            object code libraries [EPREFIX/lib]
1493  --includedir=DIR        C header files [PREFIX/include]
1494  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1495  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1496  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1497  --infodir=DIR           info documentation [DATAROOTDIR/info]
1498  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1499  --mandir=DIR            man documentation [DATAROOTDIR/man]
1500  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXrender]
1501  --htmldir=DIR           html documentation [DOCDIR]
1502  --dvidir=DIR            dvi documentation [DOCDIR]
1503  --pdfdir=DIR            pdf documentation [DOCDIR]
1504  --psdir=DIR             ps documentation [DOCDIR]
1505_ACEOF
1506
1507  cat <<\_ACEOF
1508
1509Program names:
1510  --program-prefix=PREFIX            prepend PREFIX to installed program names
1511  --program-suffix=SUFFIX            append SUFFIX to installed program names
1512  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1513
1514System types:
1515  --build=BUILD     configure for building on BUILD [guessed]
1516  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1517_ACEOF
1518fi
1519
1520if test -n "$ac_init_help"; then
1521  case $ac_init_help in
1522     short | recursive ) echo "Configuration of libXrender 0.9.6:";;
1523   esac
1524  cat <<\_ACEOF
1525
1526Optional Features:
1527  --disable-option-checking  ignore unrecognized --enable/--with options
1528  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1529  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1530  --enable-maintainer-mode  enable make rules and dependencies not useful
1531			  (and sometimes confusing) to the casual installer
1532  --disable-dependency-tracking  speeds up one-time build
1533  --enable-dependency-tracking   do not reject slow dependency extractors
1534  --enable-strict-compilation
1535                          Enable all warnings from compiler and make them
1536                          errors (default: disabled)
1537  --enable-silent-rules          less verbose build output (undo: `make V=1')
1538  --disable-silent-rules         verbose build output (undo: `make V=0')
1539  --enable-shared[=PKGS]  build shared libraries [default=yes]
1540  --enable-static[=PKGS]  build static libraries [default=yes]
1541  --enable-fast-install[=PKGS]
1542                          optimize for fast installation [default=yes]
1543  --disable-libtool-lock  avoid locking (might break parallel builds)
1544  --enable-malloc0returnsnull
1545                          malloc(0) returns NULL (default: auto)
1546
1547Optional Packages:
1548  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1549  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1550  --with-pic              try to use only PIC/non-PIC objects [default=use
1551                          both]
1552  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1553
1554Some influential environment variables:
1555  CC          C compiler command
1556  CFLAGS      C compiler flags
1557  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1558              nonstandard directory <lib dir>
1559  LIBS        libraries to pass to the linker, e.g. -l<library>
1560  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1561              you have headers in a nonstandard directory <include dir>
1562  CPP         C preprocessor
1563  PKG_CONFIG  path to pkg-config utility
1564  RENDER_CFLAGS
1565              C compiler flags for RENDER, overriding pkg-config
1566  RENDER_LIBS linker flags for RENDER, overriding pkg-config
1567
1568Use these variables to override the choices made by `configure' or to help
1569it to find libraries and programs with nonstandard names/locations.
1570
1571Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1572_ACEOF
1573ac_status=$?
1574fi
1575
1576if test "$ac_init_help" = "recursive"; then
1577  # If there are subdirs, report their specific --help.
1578  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579    test -d "$ac_dir" ||
1580      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581      continue
1582    ac_builddir=.
1583
1584case "$ac_dir" in
1585.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586*)
1587  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1588  # A ".." for each directory in $ac_dir_suffix.
1589  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1590  case $ac_top_builddir_sub in
1591  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593  esac ;;
1594esac
1595ac_abs_top_builddir=$ac_pwd
1596ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597# for backward compatibility:
1598ac_top_builddir=$ac_top_build_prefix
1599
1600case $srcdir in
1601  .)  # We are building in place.
1602    ac_srcdir=.
1603    ac_top_srcdir=$ac_top_builddir_sub
1604    ac_abs_top_srcdir=$ac_pwd ;;
1605  [\\/]* | ?:[\\/]* )  # Absolute name.
1606    ac_srcdir=$srcdir$ac_dir_suffix;
1607    ac_top_srcdir=$srcdir
1608    ac_abs_top_srcdir=$srcdir ;;
1609  *) # Relative name.
1610    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611    ac_top_srcdir=$ac_top_build_prefix$srcdir
1612    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1613esac
1614ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1615
1616    cd "$ac_dir" || { ac_status=$?; continue; }
1617    # Check for guested configure.
1618    if test -f "$ac_srcdir/configure.gnu"; then
1619      echo &&
1620      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1621    elif test -f "$ac_srcdir/configure"; then
1622      echo &&
1623      $SHELL "$ac_srcdir/configure" --help=recursive
1624    else
1625      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1626    fi || ac_status=$?
1627    cd "$ac_pwd" || { ac_status=$?; break; }
1628  done
1629fi
1630
1631test -n "$ac_init_help" && exit $ac_status
1632if $ac_init_version; then
1633  cat <<\_ACEOF
1634libXrender configure 0.9.6
1635generated by GNU Autoconf 2.65
1636
1637Copyright (C) 2009 Free Software Foundation, Inc.
1638This configure script is free software; the Free Software Foundation
1639gives unlimited permission to copy, distribute and modify it.
1640_ACEOF
1641  exit
1642fi
1643
1644## ------------------------ ##
1645## Autoconf initialization. ##
1646## ------------------------ ##
1647
1648# ac_fn_c_try_compile LINENO
1649# --------------------------
1650# Try to compile conftest.$ac_ext, and return whether this succeeded.
1651ac_fn_c_try_compile ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  rm -f conftest.$ac_objext
1655  if { { ac_try="$ac_compile"
1656case "(($ac_try" in
1657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658  *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
1662  (eval "$ac_compile") 2>conftest.err
1663  ac_status=$?
1664  if test -s conftest.err; then
1665    grep -v '^ *+' conftest.err >conftest.er1
1666    cat conftest.er1 >&5
1667    mv -f conftest.er1 conftest.err
1668  fi
1669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670  test $ac_status = 0; } && {
1671	 test -z "$ac_c_werror_flag" ||
1672	 test ! -s conftest.err
1673       } && test -s conftest.$ac_objext; then :
1674  ac_retval=0
1675else
1676  $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
1679	ac_retval=1
1680fi
1681  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1682  as_fn_set_status $ac_retval
1683
1684} # ac_fn_c_try_compile
1685
1686# ac_fn_c_check_decl LINENO SYMBOL VAR
1687# ------------------------------------
1688# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1689ac_fn_c_check_decl ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1693$as_echo_n "checking whether $2 is declared... " >&6; }
1694if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1695  $as_echo_n "(cached) " >&6
1696else
1697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698/* end confdefs.h.  */
1699$4
1700int
1701main ()
1702{
1703#ifndef $2
1704  (void) $2;
1705#endif
1706
1707  ;
1708  return 0;
1709}
1710_ACEOF
1711if ac_fn_c_try_compile "$LINENO"; then :
1712  eval "$3=yes"
1713else
1714  eval "$3=no"
1715fi
1716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717fi
1718eval ac_res=\$$3
1719	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720$as_echo "$ac_res" >&6; }
1721  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722
1723} # ac_fn_c_check_decl
1724
1725# ac_fn_c_try_cpp LINENO
1726# ----------------------
1727# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_c_try_cpp ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  if { { ac_try="$ac_cpp conftest.$ac_ext"
1732case "(($ac_try" in
1733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734  *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1739  ac_status=$?
1740  if test -s conftest.err; then
1741    grep -v '^ *+' conftest.err >conftest.er1
1742    cat conftest.er1 >&5
1743    mv -f conftest.er1 conftest.err
1744  fi
1745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746  test $ac_status = 0; } >/dev/null && {
1747	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1748	 test ! -s conftest.err
1749       }; then :
1750  ac_retval=0
1751else
1752  $as_echo "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755    ac_retval=1
1756fi
1757  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758  as_fn_set_status $ac_retval
1759
1760} # ac_fn_c_try_cpp
1761
1762# ac_fn_c_try_run LINENO
1763# ----------------------
1764# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1765# that executables *can* be run.
1766ac_fn_c_try_run ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  if { { ac_try="$ac_link"
1770case "(($ac_try" in
1771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772  *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776  (eval "$ac_link") 2>&5
1777  ac_status=$?
1778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1780  { { case "(($ac_try" in
1781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782  *) ac_try_echo=$ac_try;;
1783esac
1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785$as_echo "$ac_try_echo"; } >&5
1786  (eval "$ac_try") 2>&5
1787  ac_status=$?
1788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789  test $ac_status = 0; }; }; then :
1790  ac_retval=0
1791else
1792  $as_echo "$as_me: program exited with status $ac_status" >&5
1793       $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796       ac_retval=$ac_status
1797fi
1798  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800  as_fn_set_status $ac_retval
1801
1802} # ac_fn_c_try_run
1803
1804# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1805# -------------------------------------------------------
1806# Tests whether HEADER exists and can be compiled using the include files in
1807# INCLUDES, setting the cache variable VAR accordingly.
1808ac_fn_c_check_header_compile ()
1809{
1810  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812$as_echo_n "checking for $2... " >&6; }
1813if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1814  $as_echo_n "(cached) " >&6
1815else
1816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h.  */
1818$4
1819#include <$2>
1820_ACEOF
1821if ac_fn_c_try_compile "$LINENO"; then :
1822  eval "$3=yes"
1823else
1824  eval "$3=no"
1825fi
1826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827fi
1828eval ac_res=\$$3
1829	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830$as_echo "$ac_res" >&6; }
1831  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832
1833} # ac_fn_c_check_header_compile
1834
1835# ac_fn_c_try_link LINENO
1836# -----------------------
1837# Try to link conftest.$ac_ext, and return whether this succeeded.
1838ac_fn_c_try_link ()
1839{
1840  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841  rm -f conftest.$ac_objext conftest$ac_exeext
1842  if { { ac_try="$ac_link"
1843case "(($ac_try" in
1844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845  *) ac_try_echo=$ac_try;;
1846esac
1847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848$as_echo "$ac_try_echo"; } >&5
1849  (eval "$ac_link") 2>conftest.err
1850  ac_status=$?
1851  if test -s conftest.err; then
1852    grep -v '^ *+' conftest.err >conftest.er1
1853    cat conftest.er1 >&5
1854    mv -f conftest.er1 conftest.err
1855  fi
1856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857  test $ac_status = 0; } && {
1858	 test -z "$ac_c_werror_flag" ||
1859	 test ! -s conftest.err
1860       } && test -s conftest$ac_exeext && {
1861	 test "$cross_compiling" = yes ||
1862	 $as_test_x conftest$ac_exeext
1863       }; then :
1864  ac_retval=0
1865else
1866  $as_echo "$as_me: failed program was:" >&5
1867sed 's/^/| /' conftest.$ac_ext >&5
1868
1869	ac_retval=1
1870fi
1871  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1872  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1873  # interfere with the next link command; also delete a directory that is
1874  # left behind by Apple's compiler.  We do this before executing the actions.
1875  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877  as_fn_set_status $ac_retval
1878
1879} # ac_fn_c_try_link
1880
1881# ac_fn_c_check_func LINENO FUNC VAR
1882# ----------------------------------
1883# Tests whether FUNC exists, setting the cache variable VAR accordingly
1884ac_fn_c_check_func ()
1885{
1886  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888$as_echo_n "checking for $2... " >&6; }
1889if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1890  $as_echo_n "(cached) " >&6
1891else
1892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893/* end confdefs.h.  */
1894/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1895   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1896#define $2 innocuous_$2
1897
1898/* System header to define __stub macros and hopefully few prototypes,
1899    which can conflict with char $2 (); below.
1900    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1901    <limits.h> exists even on freestanding compilers.  */
1902
1903#ifdef __STDC__
1904# include <limits.h>
1905#else
1906# include <assert.h>
1907#endif
1908
1909#undef $2
1910
1911/* Override any GCC internal prototype to avoid an error.
1912   Use char because int might match the return type of a GCC
1913   builtin and then its argument prototype would still apply.  */
1914#ifdef __cplusplus
1915extern "C"
1916#endif
1917char $2 ();
1918/* The GNU C library defines this for functions which it implements
1919    to always fail with ENOSYS.  Some functions are actually named
1920    something starting with __ and the normal name is an alias.  */
1921#if defined __stub_$2 || defined __stub___$2
1922choke me
1923#endif
1924
1925int
1926main ()
1927{
1928return $2 ();
1929  ;
1930  return 0;
1931}
1932_ACEOF
1933if ac_fn_c_try_link "$LINENO"; then :
1934  eval "$3=yes"
1935else
1936  eval "$3=no"
1937fi
1938rm -f core conftest.err conftest.$ac_objext \
1939    conftest$ac_exeext conftest.$ac_ext
1940fi
1941eval ac_res=\$$3
1942	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943$as_echo "$ac_res" >&6; }
1944  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945
1946} # ac_fn_c_check_func
1947cat >config.log <<_ACEOF
1948This file contains any messages produced by compilers while
1949running configure, to aid debugging if configure makes a mistake.
1950
1951It was created by libXrender $as_me 0.9.6, which was
1952generated by GNU Autoconf 2.65.  Invocation command line was
1953
1954  $ $0 $@
1955
1956_ACEOF
1957exec 5>>config.log
1958{
1959cat <<_ASUNAME
1960## --------- ##
1961## Platform. ##
1962## --------- ##
1963
1964hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1965uname -m = `(uname -m) 2>/dev/null || echo unknown`
1966uname -r = `(uname -r) 2>/dev/null || echo unknown`
1967uname -s = `(uname -s) 2>/dev/null || echo unknown`
1968uname -v = `(uname -v) 2>/dev/null || echo unknown`
1969
1970/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1971/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1972
1973/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1974/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1975/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1976/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1977/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1978/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1979/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1980
1981_ASUNAME
1982
1983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984for as_dir in $PATH
1985do
1986  IFS=$as_save_IFS
1987  test -z "$as_dir" && as_dir=.
1988    $as_echo "PATH: $as_dir"
1989  done
1990IFS=$as_save_IFS
1991
1992} >&5
1993
1994cat >&5 <<_ACEOF
1995
1996
1997## ----------- ##
1998## Core tests. ##
1999## ----------- ##
2000
2001_ACEOF
2002
2003
2004# Keep a trace of the command line.
2005# Strip out --no-create and --no-recursion so they do not pile up.
2006# Strip out --silent because we don't want to record it for future runs.
2007# Also quote any args containing shell meta-characters.
2008# Make two passes to allow for proper duplicate-argument suppression.
2009ac_configure_args=
2010ac_configure_args0=
2011ac_configure_args1=
2012ac_must_keep_next=false
2013for ac_pass in 1 2
2014do
2015  for ac_arg
2016  do
2017    case $ac_arg in
2018    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2019    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2020    | -silent | --silent | --silen | --sile | --sil)
2021      continue ;;
2022    *\'*)
2023      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2024    esac
2025    case $ac_pass in
2026    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2027    2)
2028      as_fn_append ac_configure_args1 " '$ac_arg'"
2029      if test $ac_must_keep_next = true; then
2030	ac_must_keep_next=false # Got value, back to normal.
2031      else
2032	case $ac_arg in
2033	  *=* | --config-cache | -C | -disable-* | --disable-* \
2034	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2035	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2036	  | -with-* | --with-* | -without-* | --without-* | --x)
2037	    case "$ac_configure_args0 " in
2038	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2039	    esac
2040	    ;;
2041	  -* ) ac_must_keep_next=true ;;
2042	esac
2043      fi
2044      as_fn_append ac_configure_args " '$ac_arg'"
2045      ;;
2046    esac
2047  done
2048done
2049{ ac_configure_args0=; unset ac_configure_args0;}
2050{ ac_configure_args1=; unset ac_configure_args1;}
2051
2052# When interrupted or exit'd, cleanup temporary files, and complete
2053# config.log.  We remove comments because anyway the quotes in there
2054# would cause problems or look ugly.
2055# WARNING: Use '\'' to represent an apostrophe within the trap.
2056# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2057trap 'exit_status=$?
2058  # Save into config.log some information that might help in debugging.
2059  {
2060    echo
2061
2062    cat <<\_ASBOX
2063## ---------------- ##
2064## Cache variables. ##
2065## ---------------- ##
2066_ASBOX
2067    echo
2068    # The following way of writing the cache mishandles newlines in values,
2069(
2070  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2071    eval ac_val=\$$ac_var
2072    case $ac_val in #(
2073    *${as_nl}*)
2074      case $ac_var in #(
2075      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2076$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2077      esac
2078      case $ac_var in #(
2079      _ | IFS | as_nl) ;; #(
2080      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2081      *) { eval $ac_var=; unset $ac_var;} ;;
2082      esac ;;
2083    esac
2084  done
2085  (set) 2>&1 |
2086    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2087    *${as_nl}ac_space=\ *)
2088      sed -n \
2089	"s/'\''/'\''\\\\'\'''\''/g;
2090	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2091      ;; #(
2092    *)
2093      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2094      ;;
2095    esac |
2096    sort
2097)
2098    echo
2099
2100    cat <<\_ASBOX
2101## ----------------- ##
2102## Output variables. ##
2103## ----------------- ##
2104_ASBOX
2105    echo
2106    for ac_var in $ac_subst_vars
2107    do
2108      eval ac_val=\$$ac_var
2109      case $ac_val in
2110      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111      esac
2112      $as_echo "$ac_var='\''$ac_val'\''"
2113    done | sort
2114    echo
2115
2116    if test -n "$ac_subst_files"; then
2117      cat <<\_ASBOX
2118## ------------------- ##
2119## File substitutions. ##
2120## ------------------- ##
2121_ASBOX
2122      echo
2123      for ac_var in $ac_subst_files
2124      do
2125	eval ac_val=\$$ac_var
2126	case $ac_val in
2127	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128	esac
2129	$as_echo "$ac_var='\''$ac_val'\''"
2130      done | sort
2131      echo
2132    fi
2133
2134    if test -s confdefs.h; then
2135      cat <<\_ASBOX
2136## ----------- ##
2137## confdefs.h. ##
2138## ----------- ##
2139_ASBOX
2140      echo
2141      cat confdefs.h
2142      echo
2143    fi
2144    test "$ac_signal" != 0 &&
2145      $as_echo "$as_me: caught signal $ac_signal"
2146    $as_echo "$as_me: exit $exit_status"
2147  } >&5
2148  rm -f core *.core core.conftest.* &&
2149    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2150    exit $exit_status
2151' 0
2152for ac_signal in 1 2 13 15; do
2153  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2154done
2155ac_signal=0
2156
2157# confdefs.h avoids OS command line length limits that DEFS can exceed.
2158rm -f -r conftest* confdefs.h
2159
2160$as_echo "/* confdefs.h */" > confdefs.h
2161
2162# Predefined preprocessor variables.
2163
2164cat >>confdefs.h <<_ACEOF
2165#define PACKAGE_NAME "$PACKAGE_NAME"
2166_ACEOF
2167
2168cat >>confdefs.h <<_ACEOF
2169#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2170_ACEOF
2171
2172cat >>confdefs.h <<_ACEOF
2173#define PACKAGE_VERSION "$PACKAGE_VERSION"
2174_ACEOF
2175
2176cat >>confdefs.h <<_ACEOF
2177#define PACKAGE_STRING "$PACKAGE_STRING"
2178_ACEOF
2179
2180cat >>confdefs.h <<_ACEOF
2181#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2182_ACEOF
2183
2184cat >>confdefs.h <<_ACEOF
2185#define PACKAGE_URL "$PACKAGE_URL"
2186_ACEOF
2187
2188
2189# Let the site file select an alternate cache file if it wants to.
2190# Prefer an explicitly selected file to automatically selected ones.
2191ac_site_file1=NONE
2192ac_site_file2=NONE
2193if test -n "$CONFIG_SITE"; then
2194  ac_site_file1=$CONFIG_SITE
2195elif test "x$prefix" != xNONE; then
2196  ac_site_file1=$prefix/share/config.site
2197  ac_site_file2=$prefix/etc/config.site
2198else
2199  ac_site_file1=$ac_default_prefix/share/config.site
2200  ac_site_file2=$ac_default_prefix/etc/config.site
2201fi
2202for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2203do
2204  test "x$ac_site_file" = xNONE && continue
2205  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2206    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2207$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2208    sed 's/^/| /' "$ac_site_file" >&5
2209    . "$ac_site_file"
2210  fi
2211done
2212
2213if test -r "$cache_file"; then
2214  # Some versions of bash will fail to source /dev/null (special files
2215  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2216  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2217    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2218$as_echo "$as_me: loading cache $cache_file" >&6;}
2219    case $cache_file in
2220      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2221      *)                      . "./$cache_file";;
2222    esac
2223  fi
2224else
2225  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2226$as_echo "$as_me: creating cache $cache_file" >&6;}
2227  >$cache_file
2228fi
2229
2230# Check that the precious variables saved in the cache have kept the same
2231# value.
2232ac_cache_corrupted=false
2233for ac_var in $ac_precious_vars; do
2234  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2235  eval ac_new_set=\$ac_env_${ac_var}_set
2236  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2237  eval ac_new_val=\$ac_env_${ac_var}_value
2238  case $ac_old_set,$ac_new_set in
2239    set,)
2240      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2241$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2242      ac_cache_corrupted=: ;;
2243    ,set)
2244      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2245$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2246      ac_cache_corrupted=: ;;
2247    ,);;
2248    *)
2249      if test "x$ac_old_val" != "x$ac_new_val"; then
2250	# differences in whitespace do not lead to failure.
2251	ac_old_val_w=`echo x $ac_old_val`
2252	ac_new_val_w=`echo x $ac_new_val`
2253	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2254	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2255$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2256	  ac_cache_corrupted=:
2257	else
2258	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2259$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2260	  eval $ac_var=\$ac_old_val
2261	fi
2262	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2263$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2264	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2265$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2266      fi;;
2267  esac
2268  # Pass precious variables to config.status.
2269  if test "$ac_new_set" = set; then
2270    case $ac_new_val in
2271    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2272    *) ac_arg=$ac_var=$ac_new_val ;;
2273    esac
2274    case " $ac_configure_args " in
2275      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2276      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2277    esac
2278  fi
2279done
2280if $ac_cache_corrupted; then
2281  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2283  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2284$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2285  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2286fi
2287## -------------------- ##
2288## Main body of script. ##
2289## -------------------- ##
2290
2291ac_ext=c
2292ac_cpp='$CPP $CPPFLAGS'
2293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2295ac_compiler_gnu=$ac_cv_c_compiler_gnu
2296
2297
2298am__api_version='1.11'
2299
2300ac_aux_dir=
2301for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2302  for ac_t in install-sh install.sh shtool; do
2303    if test -f "$ac_dir/$ac_t"; then
2304      ac_aux_dir=$ac_dir
2305      ac_install_sh="$ac_aux_dir/$ac_t -c"
2306      break 2
2307    fi
2308  done
2309done
2310if test -z "$ac_aux_dir"; then
2311  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2312fi
2313
2314# These three variables are undocumented and unsupported,
2315# and are intended to be withdrawn in a future Autoconf release.
2316# They can cause serious problems if a builder's source tree is in a directory
2317# whose full name contains unusual characters.
2318ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2319ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2320ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2321
2322
2323# Find a good install program.  We prefer a C program (faster),
2324# so one script is as good as another.  But avoid the broken or
2325# incompatible versions:
2326# SysV /etc/install, /usr/sbin/install
2327# SunOS /usr/etc/install
2328# IRIX /sbin/install
2329# AIX /bin/install
2330# AmigaOS /C/install, which installs bootblocks on floppy discs
2331# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2332# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2333# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2334# OS/2's system install, which has a completely different semantic
2335# ./install, which can be erroneously created by make from ./install.sh.
2336# Reject install programs that cannot install multiple files.
2337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2338$as_echo_n "checking for a BSD-compatible install... " >&6; }
2339if test -z "$INSTALL"; then
2340if test "${ac_cv_path_install+set}" = set; then :
2341  $as_echo_n "(cached) " >&6
2342else
2343  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344for as_dir in $PATH
2345do
2346  IFS=$as_save_IFS
2347  test -z "$as_dir" && as_dir=.
2348    # Account for people who put trailing slashes in PATH elements.
2349case $as_dir/ in #((
2350  ./ | .// | /[cC]/* | \
2351  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2352  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2353  /usr/ucb/* ) ;;
2354  *)
2355    # OSF1 and SCO ODT 3.0 have their own names for install.
2356    # Don't use installbsd from OSF since it installs stuff as root
2357    # by default.
2358    for ac_prog in ginstall scoinst install; do
2359      for ac_exec_ext in '' $ac_executable_extensions; do
2360	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2361	  if test $ac_prog = install &&
2362	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2363	    # AIX install.  It has an incompatible calling convention.
2364	    :
2365	  elif test $ac_prog = install &&
2366	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2367	    # program-specific install script used by HP pwplus--don't use.
2368	    :
2369	  else
2370	    rm -rf conftest.one conftest.two conftest.dir
2371	    echo one > conftest.one
2372	    echo two > conftest.two
2373	    mkdir conftest.dir
2374	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2375	      test -s conftest.one && test -s conftest.two &&
2376	      test -s conftest.dir/conftest.one &&
2377	      test -s conftest.dir/conftest.two
2378	    then
2379	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2380	      break 3
2381	    fi
2382	  fi
2383	fi
2384      done
2385    done
2386    ;;
2387esac
2388
2389  done
2390IFS=$as_save_IFS
2391
2392rm -rf conftest.one conftest.two conftest.dir
2393
2394fi
2395  if test "${ac_cv_path_install+set}" = set; then
2396    INSTALL=$ac_cv_path_install
2397  else
2398    # As a last resort, use the slow shell script.  Don't cache a
2399    # value for INSTALL within a source directory, because that will
2400    # break other packages using the cache if that directory is
2401    # removed, or if the value is a relative name.
2402    INSTALL=$ac_install_sh
2403  fi
2404fi
2405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2406$as_echo "$INSTALL" >&6; }
2407
2408# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2409# It thinks the first close brace ends the variable substitution.
2410test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2411
2412test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2413
2414test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2415
2416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2417$as_echo_n "checking whether build environment is sane... " >&6; }
2418# Just in case
2419sleep 1
2420echo timestamp > conftest.file
2421# Reject unsafe characters in $srcdir or the absolute working directory
2422# name.  Accept space and tab only in the latter.
2423am_lf='
2424'
2425case `pwd` in
2426  *[\\\"\#\$\&\'\`$am_lf]*)
2427    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2428esac
2429case $srcdir in
2430  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2431    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2432esac
2433
2434# Do `set' in a subshell so we don't clobber the current shell's
2435# arguments.  Must try -L first in case configure is actually a
2436# symlink; some systems play weird games with the mod time of symlinks
2437# (eg FreeBSD returns the mod time of the symlink's containing
2438# directory).
2439if (
2440   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2441   if test "$*" = "X"; then
2442      # -L didn't work.
2443      set X `ls -t "$srcdir/configure" conftest.file`
2444   fi
2445   rm -f conftest.file
2446   if test "$*" != "X $srcdir/configure conftest.file" \
2447      && test "$*" != "X conftest.file $srcdir/configure"; then
2448
2449      # If neither matched, then we have a broken ls.  This can happen
2450      # if, for instance, CONFIG_SHELL is bash and it inherits a
2451      # broken ls alias from the environment.  This has actually
2452      # happened.  Such a system could not be considered "sane".
2453      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2454alias in your environment" "$LINENO" 5
2455   fi
2456
2457   test "$2" = conftest.file
2458   )
2459then
2460   # Ok.
2461   :
2462else
2463   as_fn_error "newly created file is older than distributed files!
2464Check your system clock" "$LINENO" 5
2465fi
2466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2467$as_echo "yes" >&6; }
2468test "$program_prefix" != NONE &&
2469  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2470# Use a double $ so make ignores it.
2471test "$program_suffix" != NONE &&
2472  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2473# Double any \ or $.
2474# By default was `s,x,x', remove it if useless.
2475ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2476program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2477
2478# expand $ac_aux_dir to an absolute path
2479am_aux_dir=`cd $ac_aux_dir && pwd`
2480
2481if test x"${MISSING+set}" != xset; then
2482  case $am_aux_dir in
2483  *\ * | *\	*)
2484    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2485  *)
2486    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2487  esac
2488fi
2489# Use eval to expand $SHELL
2490if eval "$MISSING --run true"; then
2491  am_missing_run="$MISSING --run "
2492else
2493  am_missing_run=
2494  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2495$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2496fi
2497
2498if test x"${install_sh}" != xset; then
2499  case $am_aux_dir in
2500  *\ * | *\	*)
2501    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2502  *)
2503    install_sh="\${SHELL} $am_aux_dir/install-sh"
2504  esac
2505fi
2506
2507# Installed binaries are usually stripped using `strip' when the user
2508# run `make install-strip'.  However `strip' might not be the right
2509# tool to use in cross-compilation environments, therefore Automake
2510# will honor the `STRIP' environment variable to overrule this program.
2511if test "$cross_compiling" != no; then
2512  if test -n "$ac_tool_prefix"; then
2513  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2514set dummy ${ac_tool_prefix}strip; ac_word=$2
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516$as_echo_n "checking for $ac_word... " >&6; }
2517if test "${ac_cv_prog_STRIP+set}" = set; then :
2518  $as_echo_n "(cached) " >&6
2519else
2520  if test -n "$STRIP"; then
2521  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2522else
2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526  IFS=$as_save_IFS
2527  test -z "$as_dir" && as_dir=.
2528    for ac_exec_ext in '' $ac_executable_extensions; do
2529  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532    break 2
2533  fi
2534done
2535  done
2536IFS=$as_save_IFS
2537
2538fi
2539fi
2540STRIP=$ac_cv_prog_STRIP
2541if test -n "$STRIP"; then
2542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2543$as_echo "$STRIP" >&6; }
2544else
2545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546$as_echo "no" >&6; }
2547fi
2548
2549
2550fi
2551if test -z "$ac_cv_prog_STRIP"; then
2552  ac_ct_STRIP=$STRIP
2553  # Extract the first word of "strip", so it can be a program name with args.
2554set dummy strip; ac_word=$2
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556$as_echo_n "checking for $ac_word... " >&6; }
2557if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2558  $as_echo_n "(cached) " >&6
2559else
2560  if test -n "$ac_ct_STRIP"; then
2561  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2562else
2563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564for as_dir in $PATH
2565do
2566  IFS=$as_save_IFS
2567  test -z "$as_dir" && as_dir=.
2568    for ac_exec_ext in '' $ac_executable_extensions; do
2569  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570    ac_cv_prog_ac_ct_STRIP="strip"
2571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2572    break 2
2573  fi
2574done
2575  done
2576IFS=$as_save_IFS
2577
2578fi
2579fi
2580ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2581if test -n "$ac_ct_STRIP"; then
2582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2583$as_echo "$ac_ct_STRIP" >&6; }
2584else
2585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586$as_echo "no" >&6; }
2587fi
2588
2589  if test "x$ac_ct_STRIP" = x; then
2590    STRIP=":"
2591  else
2592    case $cross_compiling:$ac_tool_warned in
2593yes:)
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2596ac_tool_warned=yes ;;
2597esac
2598    STRIP=$ac_ct_STRIP
2599  fi
2600else
2601  STRIP="$ac_cv_prog_STRIP"
2602fi
2603
2604fi
2605INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2606
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2608$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2609if test -z "$MKDIR_P"; then
2610  if test "${ac_cv_path_mkdir+set}" = set; then :
2611  $as_echo_n "(cached) " >&6
2612else
2613  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2615do
2616  IFS=$as_save_IFS
2617  test -z "$as_dir" && as_dir=.
2618    for ac_prog in mkdir gmkdir; do
2619	 for ac_exec_ext in '' $ac_executable_extensions; do
2620	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2621	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2622	     'mkdir (GNU coreutils) '* | \
2623	     'mkdir (coreutils) '* | \
2624	     'mkdir (fileutils) '4.1*)
2625	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2626	       break 3;;
2627	   esac
2628	 done
2629       done
2630  done
2631IFS=$as_save_IFS
2632
2633fi
2634
2635  test -d ./--version && rmdir ./--version
2636  if test "${ac_cv_path_mkdir+set}" = set; then
2637    MKDIR_P="$ac_cv_path_mkdir -p"
2638  else
2639    # As a last resort, use the slow shell script.  Don't cache a
2640    # value for MKDIR_P within a source directory, because that will
2641    # break other packages using the cache if that directory is
2642    # removed, or if the value is a relative name.
2643    MKDIR_P="$ac_install_sh -d"
2644  fi
2645fi
2646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2647$as_echo "$MKDIR_P" >&6; }
2648
2649mkdir_p="$MKDIR_P"
2650case $mkdir_p in
2651  [\\/$]* | ?:[\\/]*) ;;
2652  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2653esac
2654
2655for ac_prog in gawk mawk nawk awk
2656do
2657  # Extract the first word of "$ac_prog", so it can be a program name with args.
2658set dummy $ac_prog; ac_word=$2
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660$as_echo_n "checking for $ac_word... " >&6; }
2661if test "${ac_cv_prog_AWK+set}" = set; then :
2662  $as_echo_n "(cached) " >&6
2663else
2664  if test -n "$AWK"; then
2665  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2666else
2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH
2669do
2670  IFS=$as_save_IFS
2671  test -z "$as_dir" && as_dir=.
2672    for ac_exec_ext in '' $ac_executable_extensions; do
2673  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674    ac_cv_prog_AWK="$ac_prog"
2675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676    break 2
2677  fi
2678done
2679  done
2680IFS=$as_save_IFS
2681
2682fi
2683fi
2684AWK=$ac_cv_prog_AWK
2685if test -n "$AWK"; then
2686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2687$as_echo "$AWK" >&6; }
2688else
2689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690$as_echo "no" >&6; }
2691fi
2692
2693
2694  test -n "$AWK" && break
2695done
2696
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2698$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2699set x ${MAKE-make}
2700ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2701if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2702  $as_echo_n "(cached) " >&6
2703else
2704  cat >conftest.make <<\_ACEOF
2705SHELL = /bin/sh
2706all:
2707	@echo '@@@%%%=$(MAKE)=@@@%%%'
2708_ACEOF
2709# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2710case `${MAKE-make} -f conftest.make 2>/dev/null` in
2711  *@@@%%%=?*=@@@%%%*)
2712    eval ac_cv_prog_make_${ac_make}_set=yes;;
2713  *)
2714    eval ac_cv_prog_make_${ac_make}_set=no;;
2715esac
2716rm -f conftest.make
2717fi
2718if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2720$as_echo "yes" >&6; }
2721  SET_MAKE=
2722else
2723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724$as_echo "no" >&6; }
2725  SET_MAKE="MAKE=${MAKE-make}"
2726fi
2727
2728rm -rf .tst 2>/dev/null
2729mkdir .tst 2>/dev/null
2730if test -d .tst; then
2731  am__leading_dot=.
2732else
2733  am__leading_dot=_
2734fi
2735rmdir .tst 2>/dev/null
2736
2737if test "`cd $srcdir && pwd`" != "`pwd`"; then
2738  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2739  # is not polluted with repeated "-I."
2740  am__isrc=' -I$(srcdir)'
2741  # test to see if srcdir already configured
2742  if test -f $srcdir/config.status; then
2743    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2744  fi
2745fi
2746
2747# test whether we have cygpath
2748if test -z "$CYGPATH_W"; then
2749  if (cygpath --version) >/dev/null 2>/dev/null; then
2750    CYGPATH_W='cygpath -w'
2751  else
2752    CYGPATH_W=echo
2753  fi
2754fi
2755
2756
2757# Define the identity of the package.
2758 PACKAGE='libXrender'
2759 VERSION='0.9.6'
2760
2761
2762cat >>confdefs.h <<_ACEOF
2763#define PACKAGE "$PACKAGE"
2764_ACEOF
2765
2766
2767cat >>confdefs.h <<_ACEOF
2768#define VERSION "$VERSION"
2769_ACEOF
2770
2771# Some tools Automake needs.
2772
2773ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2774
2775
2776AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2777
2778
2779AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2780
2781
2782AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2783
2784
2785MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2786
2787# We need awk for the "check" target.  The system "awk" is bad on
2788# some platforms.
2789# Always define AMTAR for backward compatibility.
2790
2791AMTAR=${AMTAR-"${am_missing_run}tar"}
2792
2793am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2794
2795
2796
2797
2798
2799
2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2801$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2802    # Check whether --enable-maintainer-mode was given.
2803if test "${enable_maintainer_mode+set}" = set; then :
2804  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2805else
2806  USE_MAINTAINER_MODE=no
2807fi
2808
2809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2810$as_echo "$USE_MAINTAINER_MODE" >&6; }
2811   if test $USE_MAINTAINER_MODE = yes; then
2812  MAINTAINER_MODE_TRUE=
2813  MAINTAINER_MODE_FALSE='#'
2814else
2815  MAINTAINER_MODE_TRUE='#'
2816  MAINTAINER_MODE_FALSE=
2817fi
2818
2819  MAINT=$MAINTAINER_MODE_TRUE
2820
2821
2822
2823# Require xorg-macros: XORG_DEFAULT_OPTIONS
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835DEPDIR="${am__leading_dot}deps"
2836
2837ac_config_commands="$ac_config_commands depfiles"
2838
2839
2840am_make=${MAKE-make}
2841cat > confinc << 'END'
2842am__doit:
2843	@echo this is the am__doit target
2844.PHONY: am__doit
2845END
2846# If we don't find an include directive, just comment out the code.
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2848$as_echo_n "checking for style of include used by $am_make... " >&6; }
2849am__include="#"
2850am__quote=
2851_am_result=none
2852# First try GNU make style include.
2853echo "include confinc" > confmf
2854# Ignore all kinds of additional output from `make'.
2855case `$am_make -s -f confmf 2> /dev/null` in #(
2856*the\ am__doit\ target*)
2857  am__include=include
2858  am__quote=
2859  _am_result=GNU
2860  ;;
2861esac
2862# Now try BSD make style include.
2863if test "$am__include" = "#"; then
2864   echo '.include "confinc"' > confmf
2865   case `$am_make -s -f confmf 2> /dev/null` in #(
2866   *the\ am__doit\ target*)
2867     am__include=.include
2868     am__quote="\""
2869     _am_result=BSD
2870     ;;
2871   esac
2872fi
2873
2874
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2876$as_echo "$_am_result" >&6; }
2877rm -f confinc confmf
2878
2879# Check whether --enable-dependency-tracking was given.
2880if test "${enable_dependency_tracking+set}" = set; then :
2881  enableval=$enable_dependency_tracking;
2882fi
2883
2884if test "x$enable_dependency_tracking" != xno; then
2885  am_depcomp="$ac_aux_dir/depcomp"
2886  AMDEPBACKSLASH='\'
2887fi
2888 if test "x$enable_dependency_tracking" != xno; then
2889  AMDEP_TRUE=
2890  AMDEP_FALSE='#'
2891else
2892  AMDEP_TRUE='#'
2893  AMDEP_FALSE=
2894fi
2895
2896
2897ac_ext=c
2898ac_cpp='$CPP $CPPFLAGS'
2899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901ac_compiler_gnu=$ac_cv_c_compiler_gnu
2902if test -n "$ac_tool_prefix"; then
2903  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2904set dummy ${ac_tool_prefix}gcc; ac_word=$2
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906$as_echo_n "checking for $ac_word... " >&6; }
2907if test "${ac_cv_prog_CC+set}" = set; then :
2908  $as_echo_n "(cached) " >&6
2909else
2910  if test -n "$CC"; then
2911  ac_cv_prog_CC="$CC" # Let the user override the test.
2912else
2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914for as_dir in $PATH
2915do
2916  IFS=$as_save_IFS
2917  test -z "$as_dir" && as_dir=.
2918    for ac_exec_ext in '' $ac_executable_extensions; do
2919  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922    break 2
2923  fi
2924done
2925  done
2926IFS=$as_save_IFS
2927
2928fi
2929fi
2930CC=$ac_cv_prog_CC
2931if test -n "$CC"; then
2932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933$as_echo "$CC" >&6; }
2934else
2935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936$as_echo "no" >&6; }
2937fi
2938
2939
2940fi
2941if test -z "$ac_cv_prog_CC"; then
2942  ac_ct_CC=$CC
2943  # Extract the first word of "gcc", so it can be a program name with args.
2944set dummy gcc; ac_word=$2
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946$as_echo_n "checking for $ac_word... " >&6; }
2947if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2948  $as_echo_n "(cached) " >&6
2949else
2950  if test -n "$ac_ct_CC"; then
2951  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2952else
2953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954for as_dir in $PATH
2955do
2956  IFS=$as_save_IFS
2957  test -z "$as_dir" && as_dir=.
2958    for ac_exec_ext in '' $ac_executable_extensions; do
2959  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2960    ac_cv_prog_ac_ct_CC="gcc"
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
2968fi
2969fi
2970ac_ct_CC=$ac_cv_prog_ac_ct_CC
2971if test -n "$ac_ct_CC"; then
2972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2973$as_echo "$ac_ct_CC" >&6; }
2974else
2975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976$as_echo "no" >&6; }
2977fi
2978
2979  if test "x$ac_ct_CC" = x; then
2980    CC=""
2981  else
2982    case $cross_compiling:$ac_tool_warned in
2983yes:)
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2986ac_tool_warned=yes ;;
2987esac
2988    CC=$ac_ct_CC
2989  fi
2990else
2991  CC="$ac_cv_prog_CC"
2992fi
2993
2994if test -z "$CC"; then
2995          if test -n "$ac_tool_prefix"; then
2996    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2997set dummy ${ac_tool_prefix}cc; ac_word=$2
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999$as_echo_n "checking for $ac_word... " >&6; }
3000if test "${ac_cv_prog_CC+set}" = set; then :
3001  $as_echo_n "(cached) " >&6
3002else
3003  if test -n "$CC"; then
3004  ac_cv_prog_CC="$CC" # Let the user override the test.
3005else
3006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007for as_dir in $PATH
3008do
3009  IFS=$as_save_IFS
3010  test -z "$as_dir" && as_dir=.
3011    for ac_exec_ext in '' $ac_executable_extensions; do
3012  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013    ac_cv_prog_CC="${ac_tool_prefix}cc"
3014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015    break 2
3016  fi
3017done
3018  done
3019IFS=$as_save_IFS
3020
3021fi
3022fi
3023CC=$ac_cv_prog_CC
3024if test -n "$CC"; then
3025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026$as_echo "$CC" >&6; }
3027else
3028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029$as_echo "no" >&6; }
3030fi
3031
3032
3033  fi
3034fi
3035if test -z "$CC"; then
3036  # Extract the first word of "cc", so it can be a program name with args.
3037set dummy cc; ac_word=$2
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039$as_echo_n "checking for $ac_word... " >&6; }
3040if test "${ac_cv_prog_CC+set}" = set; then :
3041  $as_echo_n "(cached) " >&6
3042else
3043  if test -n "$CC"; then
3044  ac_cv_prog_CC="$CC" # Let the user override the test.
3045else
3046  ac_prog_rejected=no
3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048for as_dir in $PATH
3049do
3050  IFS=$as_save_IFS
3051  test -z "$as_dir" && as_dir=.
3052    for ac_exec_ext in '' $ac_executable_extensions; do
3053  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3055       ac_prog_rejected=yes
3056       continue
3057     fi
3058    ac_cv_prog_CC="cc"
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
3066if test $ac_prog_rejected = yes; then
3067  # We found a bogon in the path, so make sure we never use it.
3068  set dummy $ac_cv_prog_CC
3069  shift
3070  if test $# != 0; then
3071    # We chose a different compiler from the bogus one.
3072    # However, it has the same basename, so the bogon will be chosen
3073    # first if we set CC to just the basename; use the full file name.
3074    shift
3075    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3076  fi
3077fi
3078fi
3079fi
3080CC=$ac_cv_prog_CC
3081if test -n "$CC"; then
3082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083$as_echo "$CC" >&6; }
3084else
3085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086$as_echo "no" >&6; }
3087fi
3088
3089
3090fi
3091if test -z "$CC"; then
3092  if test -n "$ac_tool_prefix"; then
3093  for ac_prog in cl.exe
3094  do
3095    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3096set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098$as_echo_n "checking for $ac_word... " >&6; }
3099if test "${ac_cv_prog_CC+set}" = set; then :
3100  $as_echo_n "(cached) " >&6
3101else
3102  if test -n "$CC"; then
3103  ac_cv_prog_CC="$CC" # Let the user override the test.
3104else
3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106for as_dir in $PATH
3107do
3108  IFS=$as_save_IFS
3109  test -z "$as_dir" && as_dir=.
3110    for ac_exec_ext in '' $ac_executable_extensions; do
3111  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114    break 2
3115  fi
3116done
3117  done
3118IFS=$as_save_IFS
3119
3120fi
3121fi
3122CC=$ac_cv_prog_CC
3123if test -n "$CC"; then
3124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125$as_echo "$CC" >&6; }
3126else
3127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128$as_echo "no" >&6; }
3129fi
3130
3131
3132    test -n "$CC" && break
3133  done
3134fi
3135if test -z "$CC"; then
3136  ac_ct_CC=$CC
3137  for ac_prog in cl.exe
3138do
3139  # Extract the first word of "$ac_prog", so it can be a program name with args.
3140set dummy $ac_prog; ac_word=$2
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142$as_echo_n "checking for $ac_word... " >&6; }
3143if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3144  $as_echo_n "(cached) " >&6
3145else
3146  if test -n "$ac_ct_CC"; then
3147  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3148else
3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150for as_dir in $PATH
3151do
3152  IFS=$as_save_IFS
3153  test -z "$as_dir" && as_dir=.
3154    for ac_exec_ext in '' $ac_executable_extensions; do
3155  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3156    ac_cv_prog_ac_ct_CC="$ac_prog"
3157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158    break 2
3159  fi
3160done
3161  done
3162IFS=$as_save_IFS
3163
3164fi
3165fi
3166ac_ct_CC=$ac_cv_prog_ac_ct_CC
3167if test -n "$ac_ct_CC"; then
3168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3169$as_echo "$ac_ct_CC" >&6; }
3170else
3171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172$as_echo "no" >&6; }
3173fi
3174
3175
3176  test -n "$ac_ct_CC" && break
3177done
3178
3179  if test "x$ac_ct_CC" = x; then
3180    CC=""
3181  else
3182    case $cross_compiling:$ac_tool_warned in
3183yes:)
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3186ac_tool_warned=yes ;;
3187esac
3188    CC=$ac_ct_CC
3189  fi
3190fi
3191
3192fi
3193
3194
3195test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197as_fn_error "no acceptable C compiler found in \$PATH
3198See \`config.log' for more details." "$LINENO" 5; }
3199
3200# Provide some information about the compiler.
3201$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3202set X $ac_compile
3203ac_compiler=$2
3204for ac_option in --version -v -V -qversion; do
3205  { { ac_try="$ac_compiler $ac_option >&5"
3206case "(($ac_try" in
3207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208  *) ac_try_echo=$ac_try;;
3209esac
3210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211$as_echo "$ac_try_echo"; } >&5
3212  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3213  ac_status=$?
3214  if test -s conftest.err; then
3215    sed '10a\
3216... rest of stderr output deleted ...
3217         10q' conftest.err >conftest.er1
3218    cat conftest.er1 >&5
3219  fi
3220  rm -f conftest.er1 conftest.err
3221  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222  test $ac_status = 0; }
3223done
3224
3225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226/* end confdefs.h.  */
3227
3228int
3229main ()
3230{
3231
3232  ;
3233  return 0;
3234}
3235_ACEOF
3236ac_clean_files_save=$ac_clean_files
3237ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3238# Try to create an executable without -o first, disregard a.out.
3239# It will help us diagnose broken compilers, and finding out an intuition
3240# of exeext.
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3242$as_echo_n "checking whether the C compiler works... " >&6; }
3243ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3244
3245# The possible output files:
3246ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3247
3248ac_rmfiles=
3249for ac_file in $ac_files
3250do
3251  case $ac_file in
3252    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3253    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3254  esac
3255done
3256rm -f $ac_rmfiles
3257
3258if { { ac_try="$ac_link_default"
3259case "(($ac_try" in
3260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261  *) ac_try_echo=$ac_try;;
3262esac
3263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264$as_echo "$ac_try_echo"; } >&5
3265  (eval "$ac_link_default") 2>&5
3266  ac_status=$?
3267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268  test $ac_status = 0; }; then :
3269  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3270# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3271# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3272# so that the user can short-circuit this test for compilers unknown to
3273# Autoconf.
3274for ac_file in $ac_files ''
3275do
3276  test -f "$ac_file" || continue
3277  case $ac_file in
3278    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3279	;;
3280    [ab].out )
3281	# We found the default executable, but exeext='' is most
3282	# certainly right.
3283	break;;
3284    *.* )
3285	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3286	then :; else
3287	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3288	fi
3289	# We set ac_cv_exeext here because the later test for it is not
3290	# safe: cross compilers may not add the suffix if given an `-o'
3291	# argument, so we may need to know it at that point already.
3292	# Even if this section looks crufty: it has the advantage of
3293	# actually working.
3294	break;;
3295    * )
3296	break;;
3297  esac
3298done
3299test "$ac_cv_exeext" = no && ac_cv_exeext=
3300
3301else
3302  ac_file=''
3303fi
3304if test -z "$ac_file"; then :
3305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306$as_echo "no" >&6; }
3307$as_echo "$as_me: failed program was:" >&5
3308sed 's/^/| /' conftest.$ac_ext >&5
3309
3310{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312{ as_fn_set_status 77
3313as_fn_error "C compiler cannot create executables
3314See \`config.log' for more details." "$LINENO" 5; }; }
3315else
3316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3317$as_echo "yes" >&6; }
3318fi
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3320$as_echo_n "checking for C compiler default output file name... " >&6; }
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3322$as_echo "$ac_file" >&6; }
3323ac_exeext=$ac_cv_exeext
3324
3325rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3326ac_clean_files=$ac_clean_files_save
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3328$as_echo_n "checking for suffix of executables... " >&6; }
3329if { { ac_try="$ac_link"
3330case "(($ac_try" in
3331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332  *) ac_try_echo=$ac_try;;
3333esac
3334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335$as_echo "$ac_try_echo"; } >&5
3336  (eval "$ac_link") 2>&5
3337  ac_status=$?
3338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339  test $ac_status = 0; }; then :
3340  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3341# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3342# work properly (i.e., refer to `conftest.exe'), while it won't with
3343# `rm'.
3344for ac_file in conftest.exe conftest conftest.*; do
3345  test -f "$ac_file" || continue
3346  case $ac_file in
3347    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3348    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349	  break;;
3350    * ) break;;
3351  esac
3352done
3353else
3354  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356as_fn_error "cannot compute suffix of executables: cannot compile and link
3357See \`config.log' for more details." "$LINENO" 5; }
3358fi
3359rm -f conftest conftest$ac_cv_exeext
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3361$as_echo "$ac_cv_exeext" >&6; }
3362
3363rm -f conftest.$ac_ext
3364EXEEXT=$ac_cv_exeext
3365ac_exeext=$EXEEXT
3366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367/* end confdefs.h.  */
3368#include <stdio.h>
3369int
3370main ()
3371{
3372FILE *f = fopen ("conftest.out", "w");
3373 return ferror (f) || fclose (f) != 0;
3374
3375  ;
3376  return 0;
3377}
3378_ACEOF
3379ac_clean_files="$ac_clean_files conftest.out"
3380# Check that the compiler produces executables we can run.  If not, either
3381# the compiler is broken, or we cross compile.
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3383$as_echo_n "checking whether we are cross compiling... " >&6; }
3384if test "$cross_compiling" != yes; then
3385  { { ac_try="$ac_link"
3386case "(($ac_try" in
3387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388  *) ac_try_echo=$ac_try;;
3389esac
3390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391$as_echo "$ac_try_echo"; } >&5
3392  (eval "$ac_link") 2>&5
3393  ac_status=$?
3394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395  test $ac_status = 0; }
3396  if { ac_try='./conftest$ac_cv_exeext'
3397  { { case "(($ac_try" in
3398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399  *) ac_try_echo=$ac_try;;
3400esac
3401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402$as_echo "$ac_try_echo"; } >&5
3403  (eval "$ac_try") 2>&5
3404  ac_status=$?
3405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406  test $ac_status = 0; }; }; then
3407    cross_compiling=no
3408  else
3409    if test "$cross_compiling" = maybe; then
3410	cross_compiling=yes
3411    else
3412	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414as_fn_error "cannot run C compiled programs.
3415If you meant to cross compile, use \`--host'.
3416See \`config.log' for more details." "$LINENO" 5; }
3417    fi
3418  fi
3419fi
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3421$as_echo "$cross_compiling" >&6; }
3422
3423rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3424ac_clean_files=$ac_clean_files_save
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3426$as_echo_n "checking for suffix of object files... " >&6; }
3427if test "${ac_cv_objext+set}" = set; then :
3428  $as_echo_n "(cached) " >&6
3429else
3430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431/* end confdefs.h.  */
3432
3433int
3434main ()
3435{
3436
3437  ;
3438  return 0;
3439}
3440_ACEOF
3441rm -f conftest.o conftest.obj
3442if { { ac_try="$ac_compile"
3443case "(($ac_try" in
3444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445  *) ac_try_echo=$ac_try;;
3446esac
3447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448$as_echo "$ac_try_echo"; } >&5
3449  (eval "$ac_compile") 2>&5
3450  ac_status=$?
3451  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452  test $ac_status = 0; }; then :
3453  for ac_file in conftest.o conftest.obj conftest.*; do
3454  test -f "$ac_file" || continue;
3455  case $ac_file in
3456    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3457    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3458       break;;
3459  esac
3460done
3461else
3462  $as_echo "$as_me: failed program was:" >&5
3463sed 's/^/| /' conftest.$ac_ext >&5
3464
3465{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467as_fn_error "cannot compute suffix of object files: cannot compile
3468See \`config.log' for more details." "$LINENO" 5; }
3469fi
3470rm -f conftest.$ac_cv_objext conftest.$ac_ext
3471fi
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3473$as_echo "$ac_cv_objext" >&6; }
3474OBJEXT=$ac_cv_objext
3475ac_objext=$OBJEXT
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3477$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3478if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3479  $as_echo_n "(cached) " >&6
3480else
3481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482/* end confdefs.h.  */
3483
3484int
3485main ()
3486{
3487#ifndef __GNUC__
3488       choke me
3489#endif
3490
3491  ;
3492  return 0;
3493}
3494_ACEOF
3495if ac_fn_c_try_compile "$LINENO"; then :
3496  ac_compiler_gnu=yes
3497else
3498  ac_compiler_gnu=no
3499fi
3500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501ac_cv_c_compiler_gnu=$ac_compiler_gnu
3502
3503fi
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3505$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3506if test $ac_compiler_gnu = yes; then
3507  GCC=yes
3508else
3509  GCC=
3510fi
3511ac_test_CFLAGS=${CFLAGS+set}
3512ac_save_CFLAGS=$CFLAGS
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3514$as_echo_n "checking whether $CC accepts -g... " >&6; }
3515if test "${ac_cv_prog_cc_g+set}" = set; then :
3516  $as_echo_n "(cached) " >&6
3517else
3518  ac_save_c_werror_flag=$ac_c_werror_flag
3519   ac_c_werror_flag=yes
3520   ac_cv_prog_cc_g=no
3521   CFLAGS="-g"
3522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523/* end confdefs.h.  */
3524
3525int
3526main ()
3527{
3528
3529  ;
3530  return 0;
3531}
3532_ACEOF
3533if ac_fn_c_try_compile "$LINENO"; then :
3534  ac_cv_prog_cc_g=yes
3535else
3536  CFLAGS=""
3537      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538/* end confdefs.h.  */
3539
3540int
3541main ()
3542{
3543
3544  ;
3545  return 0;
3546}
3547_ACEOF
3548if ac_fn_c_try_compile "$LINENO"; then :
3549
3550else
3551  ac_c_werror_flag=$ac_save_c_werror_flag
3552	 CFLAGS="-g"
3553	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554/* end confdefs.h.  */
3555
3556int
3557main ()
3558{
3559
3560  ;
3561  return 0;
3562}
3563_ACEOF
3564if ac_fn_c_try_compile "$LINENO"; then :
3565  ac_cv_prog_cc_g=yes
3566fi
3567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568fi
3569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570fi
3571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572   ac_c_werror_flag=$ac_save_c_werror_flag
3573fi
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3575$as_echo "$ac_cv_prog_cc_g" >&6; }
3576if test "$ac_test_CFLAGS" = set; then
3577  CFLAGS=$ac_save_CFLAGS
3578elif test $ac_cv_prog_cc_g = yes; then
3579  if test "$GCC" = yes; then
3580    CFLAGS="-g -O2"
3581  else
3582    CFLAGS="-g"
3583  fi
3584else
3585  if test "$GCC" = yes; then
3586    CFLAGS="-O2"
3587  else
3588    CFLAGS=
3589  fi
3590fi
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3592$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3593if test "${ac_cv_prog_cc_c89+set}" = set; then :
3594  $as_echo_n "(cached) " >&6
3595else
3596  ac_cv_prog_cc_c89=no
3597ac_save_CC=$CC
3598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599/* end confdefs.h.  */
3600#include <stdarg.h>
3601#include <stdio.h>
3602#include <sys/types.h>
3603#include <sys/stat.h>
3604/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3605struct buf { int x; };
3606FILE * (*rcsopen) (struct buf *, struct stat *, int);
3607static char *e (p, i)
3608     char **p;
3609     int i;
3610{
3611  return p[i];
3612}
3613static char *f (char * (*g) (char **, int), char **p, ...)
3614{
3615  char *s;
3616  va_list v;
3617  va_start (v,p);
3618  s = g (p, va_arg (v,int));
3619  va_end (v);
3620  return s;
3621}
3622
3623/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3624   function prototypes and stuff, but not '\xHH' hex character constants.
3625   These don't provoke an error unfortunately, instead are silently treated
3626   as 'x'.  The following induces an error, until -std is added to get
3627   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3628   array size at least.  It's necessary to write '\x00'==0 to get something
3629   that's true only with -std.  */
3630int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3631
3632/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3633   inside strings and character constants.  */
3634#define FOO(x) 'x'
3635int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3636
3637int test (int i, double x);
3638struct s1 {int (*f) (int a);};
3639struct s2 {int (*f) (double a);};
3640int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3641int argc;
3642char **argv;
3643int
3644main ()
3645{
3646return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3647  ;
3648  return 0;
3649}
3650_ACEOF
3651for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3652	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3653do
3654  CC="$ac_save_CC $ac_arg"
3655  if ac_fn_c_try_compile "$LINENO"; then :
3656  ac_cv_prog_cc_c89=$ac_arg
3657fi
3658rm -f core conftest.err conftest.$ac_objext
3659  test "x$ac_cv_prog_cc_c89" != "xno" && break
3660done
3661rm -f conftest.$ac_ext
3662CC=$ac_save_CC
3663
3664fi
3665# AC_CACHE_VAL
3666case "x$ac_cv_prog_cc_c89" in
3667  x)
3668    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3669$as_echo "none needed" >&6; } ;;
3670  xno)
3671    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3672$as_echo "unsupported" >&6; } ;;
3673  *)
3674    CC="$CC $ac_cv_prog_cc_c89"
3675    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3676$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3677esac
3678if test "x$ac_cv_prog_cc_c89" != xno; then :
3679
3680fi
3681
3682ac_ext=c
3683ac_cpp='$CPP $CPPFLAGS'
3684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687
3688depcc="$CC"   am_compiler_list=
3689
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3691$as_echo_n "checking dependency style of $depcc... " >&6; }
3692if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3693  $as_echo_n "(cached) " >&6
3694else
3695  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3696  # We make a subdir and do the tests there.  Otherwise we can end up
3697  # making bogus files that we don't know about and never remove.  For
3698  # instance it was reported that on HP-UX the gcc test will end up
3699  # making a dummy file named `D' -- because `-MD' means `put the output
3700  # in D'.
3701  mkdir conftest.dir
3702  # Copy depcomp to subdir because otherwise we won't find it if we're
3703  # using a relative directory.
3704  cp "$am_depcomp" conftest.dir
3705  cd conftest.dir
3706  # We will build objects and dependencies in a subdirectory because
3707  # it helps to detect inapplicable dependency modes.  For instance
3708  # both Tru64's cc and ICC support -MD to output dependencies as a
3709  # side effect of compilation, but ICC will put the dependencies in
3710  # the current directory while Tru64 will put them in the object
3711  # directory.
3712  mkdir sub
3713
3714  am_cv_CC_dependencies_compiler_type=none
3715  if test "$am_compiler_list" = ""; then
3716     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3717  fi
3718  am__universal=false
3719  case " $depcc " in #(
3720     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3721     esac
3722
3723  for depmode in $am_compiler_list; do
3724    # Setup a source with many dependencies, because some compilers
3725    # like to wrap large dependency lists on column 80 (with \), and
3726    # we should not choose a depcomp mode which is confused by this.
3727    #
3728    # We need to recreate these files for each test, as the compiler may
3729    # overwrite some of them when testing with obscure command lines.
3730    # This happens at least with the AIX C compiler.
3731    : > sub/conftest.c
3732    for i in 1 2 3 4 5 6; do
3733      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3734      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3735      # Solaris 8's {/usr,}/bin/sh.
3736      touch sub/conftst$i.h
3737    done
3738    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3739
3740    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3741    # mode.  It turns out that the SunPro C++ compiler does not properly
3742    # handle `-M -o', and we need to detect this.  Also, some Intel
3743    # versions had trouble with output in subdirs
3744    am__obj=sub/conftest.${OBJEXT-o}
3745    am__minus_obj="-o $am__obj"
3746    case $depmode in
3747    gcc)
3748      # This depmode causes a compiler race in universal mode.
3749      test "$am__universal" = false || continue
3750      ;;
3751    nosideeffect)
3752      # after this tag, mechanisms are not by side-effect, so they'll
3753      # only be used when explicitly requested
3754      if test "x$enable_dependency_tracking" = xyes; then
3755	continue
3756      else
3757	break
3758      fi
3759      ;;
3760    msvisualcpp | msvcmsys)
3761      # This compiler won't grok `-c -o', but also, the minuso test has
3762      # not run yet.  These depmodes are late enough in the game, and
3763      # so weak that their functioning should not be impacted.
3764      am__obj=conftest.${OBJEXT-o}
3765      am__minus_obj=
3766      ;;
3767    none) break ;;
3768    esac
3769    if depmode=$depmode \
3770       source=sub/conftest.c object=$am__obj \
3771       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3772       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3773         >/dev/null 2>conftest.err &&
3774       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3775       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3776       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3777       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3778      # icc doesn't choke on unknown options, it will just issue warnings
3779      # or remarks (even with -Werror).  So we grep stderr for any message
3780      # that says an option was ignored or not supported.
3781      # When given -MP, icc 7.0 and 7.1 complain thusly:
3782      #   icc: Command line warning: ignoring option '-M'; no argument required
3783      # The diagnosis changed in icc 8.0:
3784      #   icc: Command line remark: option '-MP' not supported
3785      if (grep 'ignoring option' conftest.err ||
3786          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3787        am_cv_CC_dependencies_compiler_type=$depmode
3788        break
3789      fi
3790    fi
3791  done
3792
3793  cd ..
3794  rm -rf conftest.dir
3795else
3796  am_cv_CC_dependencies_compiler_type=none
3797fi
3798
3799fi
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3801$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3802CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3803
3804 if
3805  test "x$enable_dependency_tracking" != xno \
3806  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3807  am__fastdepCC_TRUE=
3808  am__fastdepCC_FALSE='#'
3809else
3810  am__fastdepCC_TRUE='#'
3811  am__fastdepCC_FALSE=
3812fi
3813
3814
3815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3816$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3817if test "${ac_cv_prog_cc_c99+set}" = set; then :
3818  $as_echo_n "(cached) " >&6
3819else
3820  ac_cv_prog_cc_c99=no
3821ac_save_CC=$CC
3822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823/* end confdefs.h.  */
3824#include <stdarg.h>
3825#include <stdbool.h>
3826#include <stdlib.h>
3827#include <wchar.h>
3828#include <stdio.h>
3829
3830// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3831#define debug(...) fprintf (stderr, __VA_ARGS__)
3832#define showlist(...) puts (#__VA_ARGS__)
3833#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3834static void
3835test_varargs_macros (void)
3836{
3837  int x = 1234;
3838  int y = 5678;
3839  debug ("Flag");
3840  debug ("X = %d\n", x);
3841  showlist (The first, second, and third items.);
3842  report (x>y, "x is %d but y is %d", x, y);
3843}
3844
3845// Check long long types.
3846#define BIG64 18446744073709551615ull
3847#define BIG32 4294967295ul
3848#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3849#if !BIG_OK
3850  your preprocessor is broken;
3851#endif
3852#if BIG_OK
3853#else
3854  your preprocessor is broken;
3855#endif
3856static long long int bignum = -9223372036854775807LL;
3857static unsigned long long int ubignum = BIG64;
3858
3859struct incomplete_array
3860{
3861  int datasize;
3862  double data[];
3863};
3864
3865struct named_init {
3866  int number;
3867  const wchar_t *name;
3868  double average;
3869};
3870
3871typedef const char *ccp;
3872
3873static inline int
3874test_restrict (ccp restrict text)
3875{
3876  // See if C++-style comments work.
3877  // Iterate through items via the restricted pointer.
3878  // Also check for declarations in for loops.
3879  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3880    continue;
3881  return 0;
3882}
3883
3884// Check varargs and va_copy.
3885static void
3886test_varargs (const char *format, ...)
3887{
3888  va_list args;
3889  va_start (args, format);
3890  va_list args_copy;
3891  va_copy (args_copy, args);
3892
3893  const char *str;
3894  int number;
3895  float fnumber;
3896
3897  while (*format)
3898    {
3899      switch (*format++)
3900	{
3901	case 's': // string
3902	  str = va_arg (args_copy, const char *);
3903	  break;
3904	case 'd': // int
3905	  number = va_arg (args_copy, int);
3906	  break;
3907	case 'f': // float
3908	  fnumber = va_arg (args_copy, double);
3909	  break;
3910	default:
3911	  break;
3912	}
3913    }
3914  va_end (args_copy);
3915  va_end (args);
3916}
3917
3918int
3919main ()
3920{
3921
3922  // Check bool.
3923  _Bool success = false;
3924
3925  // Check restrict.
3926  if (test_restrict ("String literal") == 0)
3927    success = true;
3928  char *restrict newvar = "Another string";
3929
3930  // Check varargs.
3931  test_varargs ("s, d' f .", "string", 65, 34.234);
3932  test_varargs_macros ();
3933
3934  // Check flexible array members.
3935  struct incomplete_array *ia =
3936    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3937  ia->datasize = 10;
3938  for (int i = 0; i < ia->datasize; ++i)
3939    ia->data[i] = i * 1.234;
3940
3941  // Check named initializers.
3942  struct named_init ni = {
3943    .number = 34,
3944    .name = L"Test wide string",
3945    .average = 543.34343,
3946  };
3947
3948  ni.number = 58;
3949
3950  int dynamic_array[ni.number];
3951  dynamic_array[ni.number - 1] = 543;
3952
3953  // work around unused variable warnings
3954  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3955	  || dynamic_array[ni.number - 1] != 543);
3956
3957  ;
3958  return 0;
3959}
3960_ACEOF
3961for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3962do
3963  CC="$ac_save_CC $ac_arg"
3964  if ac_fn_c_try_compile "$LINENO"; then :
3965  ac_cv_prog_cc_c99=$ac_arg
3966fi
3967rm -f core conftest.err conftest.$ac_objext
3968  test "x$ac_cv_prog_cc_c99" != "xno" && break
3969done
3970rm -f conftest.$ac_ext
3971CC=$ac_save_CC
3972
3973fi
3974# AC_CACHE_VAL
3975case "x$ac_cv_prog_cc_c99" in
3976  x)
3977    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3978$as_echo "none needed" >&6; } ;;
3979  xno)
3980    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3981$as_echo "unsupported" >&6; } ;;
3982  *)
3983    CC="$CC $ac_cv_prog_cc_c99"
3984    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3985$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3986esac
3987if test "x$ac_cv_prog_cc_c99" != xno; then :
3988
3989fi
3990
3991
3992
3993ac_ext=c
3994ac_cpp='$CPP $CPPFLAGS'
3995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3999$as_echo_n "checking how to run the C preprocessor... " >&6; }
4000# On Suns, sometimes $CPP names a directory.
4001if test -n "$CPP" && test -d "$CPP"; then
4002  CPP=
4003fi
4004if test -z "$CPP"; then
4005  if test "${ac_cv_prog_CPP+set}" = set; then :
4006  $as_echo_n "(cached) " >&6
4007else
4008      # Double quotes because CPP needs to be expanded
4009    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4010    do
4011      ac_preproc_ok=false
4012for ac_c_preproc_warn_flag in '' yes
4013do
4014  # Use a header file that comes with gcc, so configuring glibc
4015  # with a fresh cross-compiler works.
4016  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4017  # <limits.h> exists even on freestanding compilers.
4018  # On the NeXT, cc -E runs the code through the compiler's parser,
4019  # not just through cpp. "Syntax error" is here to catch this case.
4020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021/* end confdefs.h.  */
4022#ifdef __STDC__
4023# include <limits.h>
4024#else
4025# include <assert.h>
4026#endif
4027		     Syntax error
4028_ACEOF
4029if ac_fn_c_try_cpp "$LINENO"; then :
4030
4031else
4032  # Broken: fails on valid input.
4033continue
4034fi
4035rm -f conftest.err conftest.$ac_ext
4036
4037  # OK, works on sane cases.  Now check whether nonexistent headers
4038  # can be detected and how.
4039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040/* end confdefs.h.  */
4041#include <ac_nonexistent.h>
4042_ACEOF
4043if ac_fn_c_try_cpp "$LINENO"; then :
4044  # Broken: success on invalid input.
4045continue
4046else
4047  # Passes both tests.
4048ac_preproc_ok=:
4049break
4050fi
4051rm -f conftest.err conftest.$ac_ext
4052
4053done
4054# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4055rm -f conftest.err conftest.$ac_ext
4056if $ac_preproc_ok; then :
4057  break
4058fi
4059
4060    done
4061    ac_cv_prog_CPP=$CPP
4062
4063fi
4064  CPP=$ac_cv_prog_CPP
4065else
4066  ac_cv_prog_CPP=$CPP
4067fi
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4069$as_echo "$CPP" >&6; }
4070ac_preproc_ok=false
4071for ac_c_preproc_warn_flag in '' yes
4072do
4073  # Use a header file that comes with gcc, so configuring glibc
4074  # with a fresh cross-compiler works.
4075  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4076  # <limits.h> exists even on freestanding compilers.
4077  # On the NeXT, cc -E runs the code through the compiler's parser,
4078  # not just through cpp. "Syntax error" is here to catch this case.
4079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080/* end confdefs.h.  */
4081#ifdef __STDC__
4082# include <limits.h>
4083#else
4084# include <assert.h>
4085#endif
4086		     Syntax error
4087_ACEOF
4088if ac_fn_c_try_cpp "$LINENO"; then :
4089
4090else
4091  # Broken: fails on valid input.
4092continue
4093fi
4094rm -f conftest.err conftest.$ac_ext
4095
4096  # OK, works on sane cases.  Now check whether nonexistent headers
4097  # can be detected and how.
4098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099/* end confdefs.h.  */
4100#include <ac_nonexistent.h>
4101_ACEOF
4102if ac_fn_c_try_cpp "$LINENO"; then :
4103  # Broken: success on invalid input.
4104continue
4105else
4106  # Passes both tests.
4107ac_preproc_ok=:
4108break
4109fi
4110rm -f conftest.err conftest.$ac_ext
4111
4112done
4113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4114rm -f conftest.err conftest.$ac_ext
4115if $ac_preproc_ok; then :
4116
4117else
4118  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4120as_fn_error "C preprocessor \"$CPP\" fails sanity check
4121See \`config.log' for more details." "$LINENO" 5; }
4122fi
4123
4124ac_ext=c
4125ac_cpp='$CPP $CPPFLAGS'
4126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128ac_compiler_gnu=$ac_cv_c_compiler_gnu
4129
4130
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4132$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4133if test "${ac_cv_path_GREP+set}" = set; then :
4134  $as_echo_n "(cached) " >&6
4135else
4136  if test -z "$GREP"; then
4137  ac_path_GREP_found=false
4138  # Loop through the user's path and test for each of PROGNAME-LIST
4139  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4141do
4142  IFS=$as_save_IFS
4143  test -z "$as_dir" && as_dir=.
4144    for ac_prog in grep ggrep; do
4145    for ac_exec_ext in '' $ac_executable_extensions; do
4146      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4147      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4148# Check for GNU ac_path_GREP and select it if it is found.
4149  # Check for GNU $ac_path_GREP
4150case `"$ac_path_GREP" --version 2>&1` in
4151*GNU*)
4152  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4153*)
4154  ac_count=0
4155  $as_echo_n 0123456789 >"conftest.in"
4156  while :
4157  do
4158    cat "conftest.in" "conftest.in" >"conftest.tmp"
4159    mv "conftest.tmp" "conftest.in"
4160    cp "conftest.in" "conftest.nl"
4161    $as_echo 'GREP' >> "conftest.nl"
4162    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4163    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4164    as_fn_arith $ac_count + 1 && ac_count=$as_val
4165    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4166      # Best one so far, save it but keep looking for a better one
4167      ac_cv_path_GREP="$ac_path_GREP"
4168      ac_path_GREP_max=$ac_count
4169    fi
4170    # 10*(2^10) chars as input seems more than enough
4171    test $ac_count -gt 10 && break
4172  done
4173  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4174esac
4175
4176      $ac_path_GREP_found && break 3
4177    done
4178  done
4179  done
4180IFS=$as_save_IFS
4181  if test -z "$ac_cv_path_GREP"; then
4182    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4183  fi
4184else
4185  ac_cv_path_GREP=$GREP
4186fi
4187
4188fi
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4190$as_echo "$ac_cv_path_GREP" >&6; }
4191 GREP="$ac_cv_path_GREP"
4192
4193
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4195$as_echo_n "checking for egrep... " >&6; }
4196if test "${ac_cv_path_EGREP+set}" = set; then :
4197  $as_echo_n "(cached) " >&6
4198else
4199  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4200   then ac_cv_path_EGREP="$GREP -E"
4201   else
4202     if test -z "$EGREP"; then
4203  ac_path_EGREP_found=false
4204  # Loop through the user's path and test for each of PROGNAME-LIST
4205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4207do
4208  IFS=$as_save_IFS
4209  test -z "$as_dir" && as_dir=.
4210    for ac_prog in egrep; do
4211    for ac_exec_ext in '' $ac_executable_extensions; do
4212      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4213      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4214# Check for GNU ac_path_EGREP and select it if it is found.
4215  # Check for GNU $ac_path_EGREP
4216case `"$ac_path_EGREP" --version 2>&1` in
4217*GNU*)
4218  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4219*)
4220  ac_count=0
4221  $as_echo_n 0123456789 >"conftest.in"
4222  while :
4223  do
4224    cat "conftest.in" "conftest.in" >"conftest.tmp"
4225    mv "conftest.tmp" "conftest.in"
4226    cp "conftest.in" "conftest.nl"
4227    $as_echo 'EGREP' >> "conftest.nl"
4228    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4229    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4230    as_fn_arith $ac_count + 1 && ac_count=$as_val
4231    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4232      # Best one so far, save it but keep looking for a better one
4233      ac_cv_path_EGREP="$ac_path_EGREP"
4234      ac_path_EGREP_max=$ac_count
4235    fi
4236    # 10*(2^10) chars as input seems more than enough
4237    test $ac_count -gt 10 && break
4238  done
4239  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4240esac
4241
4242      $ac_path_EGREP_found && break 3
4243    done
4244  done
4245  done
4246IFS=$as_save_IFS
4247  if test -z "$ac_cv_path_EGREP"; then
4248    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4249  fi
4250else
4251  ac_cv_path_EGREP=$EGREP
4252fi
4253
4254   fi
4255fi
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4257$as_echo "$ac_cv_path_EGREP" >&6; }
4258 EGREP="$ac_cv_path_EGREP"
4259
4260
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4262$as_echo_n "checking for ANSI C header files... " >&6; }
4263if test "${ac_cv_header_stdc+set}" = set; then :
4264  $as_echo_n "(cached) " >&6
4265else
4266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267/* end confdefs.h.  */
4268#include <stdlib.h>
4269#include <stdarg.h>
4270#include <string.h>
4271#include <float.h>
4272
4273int
4274main ()
4275{
4276
4277  ;
4278  return 0;
4279}
4280_ACEOF
4281if ac_fn_c_try_compile "$LINENO"; then :
4282  ac_cv_header_stdc=yes
4283else
4284  ac_cv_header_stdc=no
4285fi
4286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287
4288if test $ac_cv_header_stdc = yes; then
4289  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291/* end confdefs.h.  */
4292#include <string.h>
4293
4294_ACEOF
4295if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4296  $EGREP "memchr" >/dev/null 2>&1; then :
4297
4298else
4299  ac_cv_header_stdc=no
4300fi
4301rm -f conftest*
4302
4303fi
4304
4305if test $ac_cv_header_stdc = yes; then
4306  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308/* end confdefs.h.  */
4309#include <stdlib.h>
4310
4311_ACEOF
4312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4313  $EGREP "free" >/dev/null 2>&1; then :
4314
4315else
4316  ac_cv_header_stdc=no
4317fi
4318rm -f conftest*
4319
4320fi
4321
4322if test $ac_cv_header_stdc = yes; then
4323  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4324  if test "$cross_compiling" = yes; then :
4325  :
4326else
4327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328/* end confdefs.h.  */
4329#include <ctype.h>
4330#include <stdlib.h>
4331#if ((' ' & 0x0FF) == 0x020)
4332# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4333# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4334#else
4335# define ISLOWER(c) \
4336		   (('a' <= (c) && (c) <= 'i') \
4337		     || ('j' <= (c) && (c) <= 'r') \
4338		     || ('s' <= (c) && (c) <= 'z'))
4339# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4340#endif
4341
4342#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4343int
4344main ()
4345{
4346  int i;
4347  for (i = 0; i < 256; i++)
4348    if (XOR (islower (i), ISLOWER (i))
4349	|| toupper (i) != TOUPPER (i))
4350      return 2;
4351  return 0;
4352}
4353_ACEOF
4354if ac_fn_c_try_run "$LINENO"; then :
4355
4356else
4357  ac_cv_header_stdc=no
4358fi
4359rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4360  conftest.$ac_objext conftest.beam conftest.$ac_ext
4361fi
4362
4363fi
4364fi
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4366$as_echo "$ac_cv_header_stdc" >&6; }
4367if test $ac_cv_header_stdc = yes; then
4368
4369$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4370
4371fi
4372
4373# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4374for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4375		  inttypes.h stdint.h unistd.h
4376do :
4377  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4378ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4379"
4380eval as_val=\$$as_ac_Header
4381   if test "x$as_val" = x""yes; then :
4382  cat >>confdefs.h <<_ACEOF
4383#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4384_ACEOF
4385
4386fi
4387
4388done
4389
4390
4391
4392
4393if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4394	if test -n "$ac_tool_prefix"; then
4395  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4396set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398$as_echo_n "checking for $ac_word... " >&6; }
4399if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4400  $as_echo_n "(cached) " >&6
4401else
4402  case $PKG_CONFIG in
4403  [\\/]* | ?:[\\/]*)
4404  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4405  ;;
4406  *)
4407  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH
4409do
4410  IFS=$as_save_IFS
4411  test -z "$as_dir" && as_dir=.
4412    for ac_exec_ext in '' $ac_executable_extensions; do
4413  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4414    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416    break 2
4417  fi
4418done
4419  done
4420IFS=$as_save_IFS
4421
4422  ;;
4423esac
4424fi
4425PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4426if test -n "$PKG_CONFIG"; then
4427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4428$as_echo "$PKG_CONFIG" >&6; }
4429else
4430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431$as_echo "no" >&6; }
4432fi
4433
4434
4435fi
4436if test -z "$ac_cv_path_PKG_CONFIG"; then
4437  ac_pt_PKG_CONFIG=$PKG_CONFIG
4438  # Extract the first word of "pkg-config", so it can be a program name with args.
4439set dummy pkg-config; ac_word=$2
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441$as_echo_n "checking for $ac_word... " >&6; }
4442if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4443  $as_echo_n "(cached) " >&6
4444else
4445  case $ac_pt_PKG_CONFIG in
4446  [\\/]* | ?:[\\/]*)
4447  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4448  ;;
4449  *)
4450  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451for as_dir in $PATH
4452do
4453  IFS=$as_save_IFS
4454  test -z "$as_dir" && as_dir=.
4455    for ac_exec_ext in '' $ac_executable_extensions; do
4456  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4457    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4459    break 2
4460  fi
4461done
4462  done
4463IFS=$as_save_IFS
4464
4465  ;;
4466esac
4467fi
4468ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4469if test -n "$ac_pt_PKG_CONFIG"; then
4470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4471$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4472else
4473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474$as_echo "no" >&6; }
4475fi
4476
4477  if test "x$ac_pt_PKG_CONFIG" = x; then
4478    PKG_CONFIG=""
4479  else
4480    case $cross_compiling:$ac_tool_warned in
4481yes:)
4482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484ac_tool_warned=yes ;;
4485esac
4486    PKG_CONFIG=$ac_pt_PKG_CONFIG
4487  fi
4488else
4489  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4490fi
4491
4492fi
4493if test -n "$PKG_CONFIG"; then
4494	_pkg_min_version=0.9.0
4495	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4496$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4497	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4498		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4499$as_echo "yes" >&6; }
4500	else
4501		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502$as_echo "no" >&6; }
4503		PKG_CONFIG=""
4504	fi
4505
4506fi
4507# Make sure we can run config.sub.
4508$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4509  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4510
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4512$as_echo_n "checking build system type... " >&6; }
4513if test "${ac_cv_build+set}" = set; then :
4514  $as_echo_n "(cached) " >&6
4515else
4516  ac_build_alias=$build_alias
4517test "x$ac_build_alias" = x &&
4518  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4519test "x$ac_build_alias" = x &&
4520  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4521ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4522  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4523
4524fi
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4526$as_echo "$ac_cv_build" >&6; }
4527case $ac_cv_build in
4528*-*-*) ;;
4529*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4530esac
4531build=$ac_cv_build
4532ac_save_IFS=$IFS; IFS='-'
4533set x $ac_cv_build
4534shift
4535build_cpu=$1
4536build_vendor=$2
4537shift; shift
4538# Remember, the first character of IFS is used to create $*,
4539# except with old shells:
4540build_os=$*
4541IFS=$ac_save_IFS
4542case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4543
4544
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4546$as_echo_n "checking host system type... " >&6; }
4547if test "${ac_cv_host+set}" = set; then :
4548  $as_echo_n "(cached) " >&6
4549else
4550  if test "x$host_alias" = x; then
4551  ac_cv_host=$ac_cv_build
4552else
4553  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4554    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4555fi
4556
4557fi
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4559$as_echo "$ac_cv_host" >&6; }
4560case $ac_cv_host in
4561*-*-*) ;;
4562*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4563esac
4564host=$ac_cv_host
4565ac_save_IFS=$IFS; IFS='-'
4566set x $ac_cv_host
4567shift
4568host_cpu=$1
4569host_vendor=$2
4570shift; shift
4571# Remember, the first character of IFS is used to create $*,
4572# except with old shells:
4573host_os=$*
4574IFS=$ac_save_IFS
4575case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4576
4577
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4579$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4580if test "${ac_cv_path_SED+set}" = set; then :
4581  $as_echo_n "(cached) " >&6
4582else
4583            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4584     for ac_i in 1 2 3 4 5 6 7; do
4585       ac_script="$ac_script$as_nl$ac_script"
4586     done
4587     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4588     { ac_script=; unset ac_script;}
4589     if test -z "$SED"; then
4590  ac_path_SED_found=false
4591  # Loop through the user's path and test for each of PROGNAME-LIST
4592  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593for as_dir in $PATH
4594do
4595  IFS=$as_save_IFS
4596  test -z "$as_dir" && as_dir=.
4597    for ac_prog in sed gsed; do
4598    for ac_exec_ext in '' $ac_executable_extensions; do
4599      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4600      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4601# Check for GNU ac_path_SED and select it if it is found.
4602  # Check for GNU $ac_path_SED
4603case `"$ac_path_SED" --version 2>&1` in
4604*GNU*)
4605  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4606*)
4607  ac_count=0
4608  $as_echo_n 0123456789 >"conftest.in"
4609  while :
4610  do
4611    cat "conftest.in" "conftest.in" >"conftest.tmp"
4612    mv "conftest.tmp" "conftest.in"
4613    cp "conftest.in" "conftest.nl"
4614    $as_echo '' >> "conftest.nl"
4615    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4616    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4617    as_fn_arith $ac_count + 1 && ac_count=$as_val
4618    if test $ac_count -gt ${ac_path_SED_max-0}; then
4619      # Best one so far, save it but keep looking for a better one
4620      ac_cv_path_SED="$ac_path_SED"
4621      ac_path_SED_max=$ac_count
4622    fi
4623    # 10*(2^10) chars as input seems more than enough
4624    test $ac_count -gt 10 && break
4625  done
4626  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4627esac
4628
4629      $ac_path_SED_found && break 3
4630    done
4631  done
4632  done
4633IFS=$as_save_IFS
4634  if test -z "$ac_cv_path_SED"; then
4635    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4636  fi
4637else
4638  ac_cv_path_SED=$SED
4639fi
4640
4641fi
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4643$as_echo "$ac_cv_path_SED" >&6; }
4644 SED="$ac_cv_path_SED"
4645  rm -f conftest.sed
4646
4647
4648
4649
4650
4651if  test "x$GCC" = xyes ; then
4652    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4653-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4654-Wbad-function-cast -Wformat=2"
4655    case `$CC -dumpversion` in
4656    3.4.* | 4.*)
4657	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4658	;;
4659    esac
4660else
4661    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4662if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4663  SUNCC="yes"
4664else
4665  SUNCC="no"
4666fi
4667
4668    if test "x$SUNCC" = "xyes"; then
4669	CWARNFLAGS="-v"
4670    fi
4671fi
4672
4673
4674
4675# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4676
4677
4678
4679# Check whether --enable-strict-compilation was given.
4680if test "${enable_strict_compilation+set}" = set; then :
4681  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4682else
4683  STRICT_COMPILE=no
4684fi
4685
4686if test "x$STRICT_COMPILE" = "xyes"; then
4687	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4688if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4689  SUNCC="yes"
4690else
4691  SUNCC="no"
4692fi
4693
4694	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4695if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
4696  INTELCC="yes"
4697else
4698  INTELCC="no"
4699fi
4700
4701	if test "x$GCC" = xyes ; then
4702		STRICT_CFLAGS="-pedantic -Werror"
4703	elif test "x$SUNCC" = "xyes"; then
4704		STRICT_CFLAGS="-errwarn"
4705    elif test "x$INTELCC" = "xyes"; then
4706		STRICT_CFLAGS="-Werror"
4707	fi
4708fi
4709CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4710
4711
4712
4713
4714cat >>confdefs.h <<_ACEOF
4715#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4716_ACEOF
4717
4718	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4719	if test "x$PVM" = "x"; then
4720		PVM="0"
4721	fi
4722
4723cat >>confdefs.h <<_ACEOF
4724#define PACKAGE_VERSION_MINOR $PVM
4725_ACEOF
4726
4727	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4728	if test "x$PVP" = "x"; then
4729		PVP="0"
4730	fi
4731
4732cat >>confdefs.h <<_ACEOF
4733#define PACKAGE_VERSION_PATCHLEVEL $PVP
4734_ACEOF
4735
4736
4737
4738CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4739mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4740|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4741echo 'git directory not found: installing possibly empty changelog.' >&2)"
4742
4743
4744
4745
4746macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4747INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4748mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4749|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4750echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4751
4752
4753
4754
4755
4756
4757if test x$APP_MAN_SUFFIX = x    ; then
4758    APP_MAN_SUFFIX=1
4759fi
4760if test x$APP_MAN_DIR = x    ; then
4761    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4762fi
4763
4764if test x$LIB_MAN_SUFFIX = x    ; then
4765    LIB_MAN_SUFFIX=3
4766fi
4767if test x$LIB_MAN_DIR = x    ; then
4768    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4769fi
4770
4771if test x$FILE_MAN_SUFFIX = x    ; then
4772    case $host_os in
4773	solaris*)	FILE_MAN_SUFFIX=4  ;;
4774	*)		FILE_MAN_SUFFIX=5  ;;
4775    esac
4776fi
4777if test x$FILE_MAN_DIR = x    ; then
4778    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4779fi
4780
4781if test x$MISC_MAN_SUFFIX = x    ; then
4782    case $host_os in
4783	solaris*)	MISC_MAN_SUFFIX=5  ;;
4784	*)		MISC_MAN_SUFFIX=7  ;;
4785    esac
4786fi
4787if test x$MISC_MAN_DIR = x    ; then
4788    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4789fi
4790
4791if test x$DRIVER_MAN_SUFFIX = x    ; then
4792    case $host_os in
4793	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4794	*)		DRIVER_MAN_SUFFIX=4  ;;
4795    esac
4796fi
4797if test x$DRIVER_MAN_DIR = x    ; then
4798    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4799fi
4800
4801if test x$ADMIN_MAN_SUFFIX = x    ; then
4802    case $host_os in
4803	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4804	*)		ADMIN_MAN_SUFFIX=8  ;;
4805    esac
4806fi
4807if test x$ADMIN_MAN_DIR = x    ; then
4808    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4809fi
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825XORG_MAN_PAGE="X Version 11"
4826
4827MAN_SUBSTS="\
4828	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4829	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4830	-e 's|__xservername__|Xorg|g' \
4831	-e 's|__xconfigfile__|xorg.conf|g' \
4832	-e 's|__projectroot__|\$(prefix)|g' \
4833	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4834	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4835	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4836	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4837	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4838	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4839
4840
4841
4842# Check whether --enable-silent-rules was given.
4843if test "${enable_silent_rules+set}" = set; then :
4844  enableval=$enable_silent_rules;
4845fi
4846
4847case $enable_silent_rules in
4848yes) AM_DEFAULT_VERBOSITY=0;;
4849no)  AM_DEFAULT_VERBOSITY=1;;
4850*)   AM_DEFAULT_VERBOSITY=0;;
4851esac
4852AM_BACKSLASH='\'
4853
4854
4855ac_config_headers="$ac_config_headers config.h"
4856
4857
4858# Check for progs
4859ac_ext=c
4860ac_cpp='$CPP $CPPFLAGS'
4861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863ac_compiler_gnu=$ac_cv_c_compiler_gnu
4864if test -n "$ac_tool_prefix"; then
4865  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4866set dummy ${ac_tool_prefix}gcc; ac_word=$2
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868$as_echo_n "checking for $ac_word... " >&6; }
4869if test "${ac_cv_prog_CC+set}" = set; then :
4870  $as_echo_n "(cached) " >&6
4871else
4872  if test -n "$CC"; then
4873  ac_cv_prog_CC="$CC" # Let the user override the test.
4874else
4875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876for as_dir in $PATH
4877do
4878  IFS=$as_save_IFS
4879  test -z "$as_dir" && as_dir=.
4880    for ac_exec_ext in '' $ac_executable_extensions; do
4881  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4882    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4883    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884    break 2
4885  fi
4886done
4887  done
4888IFS=$as_save_IFS
4889
4890fi
4891fi
4892CC=$ac_cv_prog_CC
4893if test -n "$CC"; then
4894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4895$as_echo "$CC" >&6; }
4896else
4897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898$as_echo "no" >&6; }
4899fi
4900
4901
4902fi
4903if test -z "$ac_cv_prog_CC"; then
4904  ac_ct_CC=$CC
4905  # Extract the first word of "gcc", so it can be a program name with args.
4906set dummy gcc; ac_word=$2
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908$as_echo_n "checking for $ac_word... " >&6; }
4909if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4910  $as_echo_n "(cached) " >&6
4911else
4912  if test -n "$ac_ct_CC"; then
4913  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4914else
4915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916for as_dir in $PATH
4917do
4918  IFS=$as_save_IFS
4919  test -z "$as_dir" && as_dir=.
4920    for ac_exec_ext in '' $ac_executable_extensions; do
4921  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922    ac_cv_prog_ac_ct_CC="gcc"
4923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924    break 2
4925  fi
4926done
4927  done
4928IFS=$as_save_IFS
4929
4930fi
4931fi
4932ac_ct_CC=$ac_cv_prog_ac_ct_CC
4933if test -n "$ac_ct_CC"; then
4934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4935$as_echo "$ac_ct_CC" >&6; }
4936else
4937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938$as_echo "no" >&6; }
4939fi
4940
4941  if test "x$ac_ct_CC" = x; then
4942    CC=""
4943  else
4944    case $cross_compiling:$ac_tool_warned in
4945yes:)
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4948ac_tool_warned=yes ;;
4949esac
4950    CC=$ac_ct_CC
4951  fi
4952else
4953  CC="$ac_cv_prog_CC"
4954fi
4955
4956if test -z "$CC"; then
4957          if test -n "$ac_tool_prefix"; then
4958    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4959set dummy ${ac_tool_prefix}cc; ac_word=$2
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961$as_echo_n "checking for $ac_word... " >&6; }
4962if test "${ac_cv_prog_CC+set}" = set; then :
4963  $as_echo_n "(cached) " >&6
4964else
4965  if test -n "$CC"; then
4966  ac_cv_prog_CC="$CC" # Let the user override the test.
4967else
4968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969for as_dir in $PATH
4970do
4971  IFS=$as_save_IFS
4972  test -z "$as_dir" && as_dir=.
4973    for ac_exec_ext in '' $ac_executable_extensions; do
4974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975    ac_cv_prog_CC="${ac_tool_prefix}cc"
4976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4977    break 2
4978  fi
4979done
4980  done
4981IFS=$as_save_IFS
4982
4983fi
4984fi
4985CC=$ac_cv_prog_CC
4986if test -n "$CC"; then
4987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4988$as_echo "$CC" >&6; }
4989else
4990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991$as_echo "no" >&6; }
4992fi
4993
4994
4995  fi
4996fi
4997if test -z "$CC"; then
4998  # Extract the first word of "cc", so it can be a program name with args.
4999set dummy cc; ac_word=$2
5000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001$as_echo_n "checking for $ac_word... " >&6; }
5002if test "${ac_cv_prog_CC+set}" = set; then :
5003  $as_echo_n "(cached) " >&6
5004else
5005  if test -n "$CC"; then
5006  ac_cv_prog_CC="$CC" # Let the user override the test.
5007else
5008  ac_prog_rejected=no
5009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010for as_dir in $PATH
5011do
5012  IFS=$as_save_IFS
5013  test -z "$as_dir" && as_dir=.
5014    for ac_exec_ext in '' $ac_executable_extensions; do
5015  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5016    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5017       ac_prog_rejected=yes
5018       continue
5019     fi
5020    ac_cv_prog_CC="cc"
5021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022    break 2
5023  fi
5024done
5025  done
5026IFS=$as_save_IFS
5027
5028if test $ac_prog_rejected = yes; then
5029  # We found a bogon in the path, so make sure we never use it.
5030  set dummy $ac_cv_prog_CC
5031  shift
5032  if test $# != 0; then
5033    # We chose a different compiler from the bogus one.
5034    # However, it has the same basename, so the bogon will be chosen
5035    # first if we set CC to just the basename; use the full file name.
5036    shift
5037    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5038  fi
5039fi
5040fi
5041fi
5042CC=$ac_cv_prog_CC
5043if test -n "$CC"; then
5044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5045$as_echo "$CC" >&6; }
5046else
5047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048$as_echo "no" >&6; }
5049fi
5050
5051
5052fi
5053if test -z "$CC"; then
5054  if test -n "$ac_tool_prefix"; then
5055  for ac_prog in cl.exe
5056  do
5057    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5058set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060$as_echo_n "checking for $ac_word... " >&6; }
5061if test "${ac_cv_prog_CC+set}" = set; then :
5062  $as_echo_n "(cached) " >&6
5063else
5064  if test -n "$CC"; then
5065  ac_cv_prog_CC="$CC" # Let the user override the test.
5066else
5067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068for as_dir in $PATH
5069do
5070  IFS=$as_save_IFS
5071  test -z "$as_dir" && as_dir=.
5072    for ac_exec_ext in '' $ac_executable_extensions; do
5073  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076    break 2
5077  fi
5078done
5079  done
5080IFS=$as_save_IFS
5081
5082fi
5083fi
5084CC=$ac_cv_prog_CC
5085if test -n "$CC"; then
5086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5087$as_echo "$CC" >&6; }
5088else
5089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090$as_echo "no" >&6; }
5091fi
5092
5093
5094    test -n "$CC" && break
5095  done
5096fi
5097if test -z "$CC"; then
5098  ac_ct_CC=$CC
5099  for ac_prog in cl.exe
5100do
5101  # Extract the first word of "$ac_prog", so it can be a program name with args.
5102set dummy $ac_prog; ac_word=$2
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104$as_echo_n "checking for $ac_word... " >&6; }
5105if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5106  $as_echo_n "(cached) " >&6
5107else
5108  if test -n "$ac_ct_CC"; then
5109  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5110else
5111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112for as_dir in $PATH
5113do
5114  IFS=$as_save_IFS
5115  test -z "$as_dir" && as_dir=.
5116    for ac_exec_ext in '' $ac_executable_extensions; do
5117  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118    ac_cv_prog_ac_ct_CC="$ac_prog"
5119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120    break 2
5121  fi
5122done
5123  done
5124IFS=$as_save_IFS
5125
5126fi
5127fi
5128ac_ct_CC=$ac_cv_prog_ac_ct_CC
5129if test -n "$ac_ct_CC"; then
5130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5131$as_echo "$ac_ct_CC" >&6; }
5132else
5133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134$as_echo "no" >&6; }
5135fi
5136
5137
5138  test -n "$ac_ct_CC" && break
5139done
5140
5141  if test "x$ac_ct_CC" = x; then
5142    CC=""
5143  else
5144    case $cross_compiling:$ac_tool_warned in
5145yes:)
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5148ac_tool_warned=yes ;;
5149esac
5150    CC=$ac_ct_CC
5151  fi
5152fi
5153
5154fi
5155
5156
5157test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5159as_fn_error "no acceptable C compiler found in \$PATH
5160See \`config.log' for more details." "$LINENO" 5; }
5161
5162# Provide some information about the compiler.
5163$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5164set X $ac_compile
5165ac_compiler=$2
5166for ac_option in --version -v -V -qversion; do
5167  { { ac_try="$ac_compiler $ac_option >&5"
5168case "(($ac_try" in
5169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170  *) ac_try_echo=$ac_try;;
5171esac
5172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5173$as_echo "$ac_try_echo"; } >&5
5174  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5175  ac_status=$?
5176  if test -s conftest.err; then
5177    sed '10a\
5178... rest of stderr output deleted ...
5179         10q' conftest.err >conftest.er1
5180    cat conftest.er1 >&5
5181  fi
5182  rm -f conftest.er1 conftest.err
5183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5184  test $ac_status = 0; }
5185done
5186
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5188$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5189if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5190  $as_echo_n "(cached) " >&6
5191else
5192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193/* end confdefs.h.  */
5194
5195int
5196main ()
5197{
5198#ifndef __GNUC__
5199       choke me
5200#endif
5201
5202  ;
5203  return 0;
5204}
5205_ACEOF
5206if ac_fn_c_try_compile "$LINENO"; then :
5207  ac_compiler_gnu=yes
5208else
5209  ac_compiler_gnu=no
5210fi
5211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212ac_cv_c_compiler_gnu=$ac_compiler_gnu
5213
5214fi
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5216$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5217if test $ac_compiler_gnu = yes; then
5218  GCC=yes
5219else
5220  GCC=
5221fi
5222ac_test_CFLAGS=${CFLAGS+set}
5223ac_save_CFLAGS=$CFLAGS
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5225$as_echo_n "checking whether $CC accepts -g... " >&6; }
5226if test "${ac_cv_prog_cc_g+set}" = set; then :
5227  $as_echo_n "(cached) " >&6
5228else
5229  ac_save_c_werror_flag=$ac_c_werror_flag
5230   ac_c_werror_flag=yes
5231   ac_cv_prog_cc_g=no
5232   CFLAGS="-g"
5233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234/* end confdefs.h.  */
5235
5236int
5237main ()
5238{
5239
5240  ;
5241  return 0;
5242}
5243_ACEOF
5244if ac_fn_c_try_compile "$LINENO"; then :
5245  ac_cv_prog_cc_g=yes
5246else
5247  CFLAGS=""
5248      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249/* end confdefs.h.  */
5250
5251int
5252main ()
5253{
5254
5255  ;
5256  return 0;
5257}
5258_ACEOF
5259if ac_fn_c_try_compile "$LINENO"; then :
5260
5261else
5262  ac_c_werror_flag=$ac_save_c_werror_flag
5263	 CFLAGS="-g"
5264	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265/* end confdefs.h.  */
5266
5267int
5268main ()
5269{
5270
5271  ;
5272  return 0;
5273}
5274_ACEOF
5275if ac_fn_c_try_compile "$LINENO"; then :
5276  ac_cv_prog_cc_g=yes
5277fi
5278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279fi
5280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281fi
5282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283   ac_c_werror_flag=$ac_save_c_werror_flag
5284fi
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5286$as_echo "$ac_cv_prog_cc_g" >&6; }
5287if test "$ac_test_CFLAGS" = set; then
5288  CFLAGS=$ac_save_CFLAGS
5289elif test $ac_cv_prog_cc_g = yes; then
5290  if test "$GCC" = yes; then
5291    CFLAGS="-g -O2"
5292  else
5293    CFLAGS="-g"
5294  fi
5295else
5296  if test "$GCC" = yes; then
5297    CFLAGS="-O2"
5298  else
5299    CFLAGS=
5300  fi
5301fi
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5303$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5304if test "${ac_cv_prog_cc_c89+set}" = set; then :
5305  $as_echo_n "(cached) " >&6
5306else
5307  ac_cv_prog_cc_c89=no
5308ac_save_CC=$CC
5309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310/* end confdefs.h.  */
5311#include <stdarg.h>
5312#include <stdio.h>
5313#include <sys/types.h>
5314#include <sys/stat.h>
5315/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5316struct buf { int x; };
5317FILE * (*rcsopen) (struct buf *, struct stat *, int);
5318static char *e (p, i)
5319     char **p;
5320     int i;
5321{
5322  return p[i];
5323}
5324static char *f (char * (*g) (char **, int), char **p, ...)
5325{
5326  char *s;
5327  va_list v;
5328  va_start (v,p);
5329  s = g (p, va_arg (v,int));
5330  va_end (v);
5331  return s;
5332}
5333
5334/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5335   function prototypes and stuff, but not '\xHH' hex character constants.
5336   These don't provoke an error unfortunately, instead are silently treated
5337   as 'x'.  The following induces an error, until -std is added to get
5338   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5339   array size at least.  It's necessary to write '\x00'==0 to get something
5340   that's true only with -std.  */
5341int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5342
5343/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5344   inside strings and character constants.  */
5345#define FOO(x) 'x'
5346int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5347
5348int test (int i, double x);
5349struct s1 {int (*f) (int a);};
5350struct s2 {int (*f) (double a);};
5351int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5352int argc;
5353char **argv;
5354int
5355main ()
5356{
5357return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5358  ;
5359  return 0;
5360}
5361_ACEOF
5362for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5363	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5364do
5365  CC="$ac_save_CC $ac_arg"
5366  if ac_fn_c_try_compile "$LINENO"; then :
5367  ac_cv_prog_cc_c89=$ac_arg
5368fi
5369rm -f core conftest.err conftest.$ac_objext
5370  test "x$ac_cv_prog_cc_c89" != "xno" && break
5371done
5372rm -f conftest.$ac_ext
5373CC=$ac_save_CC
5374
5375fi
5376# AC_CACHE_VAL
5377case "x$ac_cv_prog_cc_c89" in
5378  x)
5379    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5380$as_echo "none needed" >&6; } ;;
5381  xno)
5382    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5383$as_echo "unsupported" >&6; } ;;
5384  *)
5385    CC="$CC $ac_cv_prog_cc_c89"
5386    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5387$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5388esac
5389if test "x$ac_cv_prog_cc_c89" != xno; then :
5390
5391fi
5392
5393ac_ext=c
5394ac_cpp='$CPP $CPPFLAGS'
5395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5397ac_compiler_gnu=$ac_cv_c_compiler_gnu
5398
5399depcc="$CC"   am_compiler_list=
5400
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5402$as_echo_n "checking dependency style of $depcc... " >&6; }
5403if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5404  $as_echo_n "(cached) " >&6
5405else
5406  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5407  # We make a subdir and do the tests there.  Otherwise we can end up
5408  # making bogus files that we don't know about and never remove.  For
5409  # instance it was reported that on HP-UX the gcc test will end up
5410  # making a dummy file named `D' -- because `-MD' means `put the output
5411  # in D'.
5412  mkdir conftest.dir
5413  # Copy depcomp to subdir because otherwise we won't find it if we're
5414  # using a relative directory.
5415  cp "$am_depcomp" conftest.dir
5416  cd conftest.dir
5417  # We will build objects and dependencies in a subdirectory because
5418  # it helps to detect inapplicable dependency modes.  For instance
5419  # both Tru64's cc and ICC support -MD to output dependencies as a
5420  # side effect of compilation, but ICC will put the dependencies in
5421  # the current directory while Tru64 will put them in the object
5422  # directory.
5423  mkdir sub
5424
5425  am_cv_CC_dependencies_compiler_type=none
5426  if test "$am_compiler_list" = ""; then
5427     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5428  fi
5429  am__universal=false
5430  case " $depcc " in #(
5431     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5432     esac
5433
5434  for depmode in $am_compiler_list; do
5435    # Setup a source with many dependencies, because some compilers
5436    # like to wrap large dependency lists on column 80 (with \), and
5437    # we should not choose a depcomp mode which is confused by this.
5438    #
5439    # We need to recreate these files for each test, as the compiler may
5440    # overwrite some of them when testing with obscure command lines.
5441    # This happens at least with the AIX C compiler.
5442    : > sub/conftest.c
5443    for i in 1 2 3 4 5 6; do
5444      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5445      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5446      # Solaris 8's {/usr,}/bin/sh.
5447      touch sub/conftst$i.h
5448    done
5449    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5450
5451    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5452    # mode.  It turns out that the SunPro C++ compiler does not properly
5453    # handle `-M -o', and we need to detect this.  Also, some Intel
5454    # versions had trouble with output in subdirs
5455    am__obj=sub/conftest.${OBJEXT-o}
5456    am__minus_obj="-o $am__obj"
5457    case $depmode in
5458    gcc)
5459      # This depmode causes a compiler race in universal mode.
5460      test "$am__universal" = false || continue
5461      ;;
5462    nosideeffect)
5463      # after this tag, mechanisms are not by side-effect, so they'll
5464      # only be used when explicitly requested
5465      if test "x$enable_dependency_tracking" = xyes; then
5466	continue
5467      else
5468	break
5469      fi
5470      ;;
5471    msvisualcpp | msvcmsys)
5472      # This compiler won't grok `-c -o', but also, the minuso test has
5473      # not run yet.  These depmodes are late enough in the game, and
5474      # so weak that their functioning should not be impacted.
5475      am__obj=conftest.${OBJEXT-o}
5476      am__minus_obj=
5477      ;;
5478    none) break ;;
5479    esac
5480    if depmode=$depmode \
5481       source=sub/conftest.c object=$am__obj \
5482       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5483       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5484         >/dev/null 2>conftest.err &&
5485       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5486       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5487       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5488       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5489      # icc doesn't choke on unknown options, it will just issue warnings
5490      # or remarks (even with -Werror).  So we grep stderr for any message
5491      # that says an option was ignored or not supported.
5492      # When given -MP, icc 7.0 and 7.1 complain thusly:
5493      #   icc: Command line warning: ignoring option '-M'; no argument required
5494      # The diagnosis changed in icc 8.0:
5495      #   icc: Command line remark: option '-MP' not supported
5496      if (grep 'ignoring option' conftest.err ||
5497          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5498        am_cv_CC_dependencies_compiler_type=$depmode
5499        break
5500      fi
5501    fi
5502  done
5503
5504  cd ..
5505  rm -rf conftest.dir
5506else
5507  am_cv_CC_dependencies_compiler_type=none
5508fi
5509
5510fi
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5512$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5513CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5514
5515 if
5516  test "x$enable_dependency_tracking" != xno \
5517  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5518  am__fastdepCC_TRUE=
5519  am__fastdepCC_FALSE='#'
5520else
5521  am__fastdepCC_TRUE='#'
5522  am__fastdepCC_FALSE=
5523fi
5524
5525
5526case `pwd` in
5527  *\ * | *\	*)
5528    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5529$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5530esac
5531
5532
5533
5534macro_version='2.2.6b'
5535macro_revision='1.3017'
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549ltmain="$ac_aux_dir/ltmain.sh"
5550
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5552$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5553if test "${ac_cv_path_SED+set}" = set; then :
5554  $as_echo_n "(cached) " >&6
5555else
5556            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5557     for ac_i in 1 2 3 4 5 6 7; do
5558       ac_script="$ac_script$as_nl$ac_script"
5559     done
5560     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5561     { ac_script=; unset ac_script;}
5562     if test -z "$SED"; then
5563  ac_path_SED_found=false
5564  # Loop through the user's path and test for each of PROGNAME-LIST
5565  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566for as_dir in $PATH
5567do
5568  IFS=$as_save_IFS
5569  test -z "$as_dir" && as_dir=.
5570    for ac_prog in sed gsed; do
5571    for ac_exec_ext in '' $ac_executable_extensions; do
5572      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5573      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5574# Check for GNU ac_path_SED and select it if it is found.
5575  # Check for GNU $ac_path_SED
5576case `"$ac_path_SED" --version 2>&1` in
5577*GNU*)
5578  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5579*)
5580  ac_count=0
5581  $as_echo_n 0123456789 >"conftest.in"
5582  while :
5583  do
5584    cat "conftest.in" "conftest.in" >"conftest.tmp"
5585    mv "conftest.tmp" "conftest.in"
5586    cp "conftest.in" "conftest.nl"
5587    $as_echo '' >> "conftest.nl"
5588    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5589    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5590    as_fn_arith $ac_count + 1 && ac_count=$as_val
5591    if test $ac_count -gt ${ac_path_SED_max-0}; then
5592      # Best one so far, save it but keep looking for a better one
5593      ac_cv_path_SED="$ac_path_SED"
5594      ac_path_SED_max=$ac_count
5595    fi
5596    # 10*(2^10) chars as input seems more than enough
5597    test $ac_count -gt 10 && break
5598  done
5599  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5600esac
5601
5602      $ac_path_SED_found && break 3
5603    done
5604  done
5605  done
5606IFS=$as_save_IFS
5607  if test -z "$ac_cv_path_SED"; then
5608    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5609  fi
5610else
5611  ac_cv_path_SED=$SED
5612fi
5613
5614fi
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5616$as_echo "$ac_cv_path_SED" >&6; }
5617 SED="$ac_cv_path_SED"
5618  rm -f conftest.sed
5619
5620test -z "$SED" && SED=sed
5621Xsed="$SED -e 1s/^X//"
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5634$as_echo_n "checking for fgrep... " >&6; }
5635if test "${ac_cv_path_FGREP+set}" = set; then :
5636  $as_echo_n "(cached) " >&6
5637else
5638  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5639   then ac_cv_path_FGREP="$GREP -F"
5640   else
5641     if test -z "$FGREP"; then
5642  ac_path_FGREP_found=false
5643  # Loop through the user's path and test for each of PROGNAME-LIST
5644  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5646do
5647  IFS=$as_save_IFS
5648  test -z "$as_dir" && as_dir=.
5649    for ac_prog in fgrep; do
5650    for ac_exec_ext in '' $ac_executable_extensions; do
5651      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5652      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5653# Check for GNU ac_path_FGREP and select it if it is found.
5654  # Check for GNU $ac_path_FGREP
5655case `"$ac_path_FGREP" --version 2>&1` in
5656*GNU*)
5657  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5658*)
5659  ac_count=0
5660  $as_echo_n 0123456789 >"conftest.in"
5661  while :
5662  do
5663    cat "conftest.in" "conftest.in" >"conftest.tmp"
5664    mv "conftest.tmp" "conftest.in"
5665    cp "conftest.in" "conftest.nl"
5666    $as_echo 'FGREP' >> "conftest.nl"
5667    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5668    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5669    as_fn_arith $ac_count + 1 && ac_count=$as_val
5670    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5671      # Best one so far, save it but keep looking for a better one
5672      ac_cv_path_FGREP="$ac_path_FGREP"
5673      ac_path_FGREP_max=$ac_count
5674    fi
5675    # 10*(2^10) chars as input seems more than enough
5676    test $ac_count -gt 10 && break
5677  done
5678  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5679esac
5680
5681      $ac_path_FGREP_found && break 3
5682    done
5683  done
5684  done
5685IFS=$as_save_IFS
5686  if test -z "$ac_cv_path_FGREP"; then
5687    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5688  fi
5689else
5690  ac_cv_path_FGREP=$FGREP
5691fi
5692
5693   fi
5694fi
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5696$as_echo "$ac_cv_path_FGREP" >&6; }
5697 FGREP="$ac_cv_path_FGREP"
5698
5699
5700test -z "$GREP" && GREP=grep
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720# Check whether --with-gnu-ld was given.
5721if test "${with_gnu_ld+set}" = set; then :
5722  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5723else
5724  with_gnu_ld=no
5725fi
5726
5727ac_prog=ld
5728if test "$GCC" = yes; then
5729  # Check if gcc -print-prog-name=ld gives a path.
5730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5731$as_echo_n "checking for ld used by $CC... " >&6; }
5732  case $host in
5733  *-*-mingw*)
5734    # gcc leaves a trailing carriage return which upsets mingw
5735    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5736  *)
5737    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5738  esac
5739  case $ac_prog in
5740    # Accept absolute paths.
5741    [\\/]* | ?:[\\/]*)
5742      re_direlt='/[^/][^/]*/\.\./'
5743      # Canonicalize the pathname of ld
5744      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5745      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5746	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5747      done
5748      test -z "$LD" && LD="$ac_prog"
5749      ;;
5750  "")
5751    # If it fails, then pretend we aren't using GCC.
5752    ac_prog=ld
5753    ;;
5754  *)
5755    # If it is relative, then search for the first ld in PATH.
5756    with_gnu_ld=unknown
5757    ;;
5758  esac
5759elif test "$with_gnu_ld" = yes; then
5760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5761$as_echo_n "checking for GNU ld... " >&6; }
5762else
5763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5764$as_echo_n "checking for non-GNU ld... " >&6; }
5765fi
5766if test "${lt_cv_path_LD+set}" = set; then :
5767  $as_echo_n "(cached) " >&6
5768else
5769  if test -z "$LD"; then
5770  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5771  for ac_dir in $PATH; do
5772    IFS="$lt_save_ifs"
5773    test -z "$ac_dir" && ac_dir=.
5774    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5775      lt_cv_path_LD="$ac_dir/$ac_prog"
5776      # Check to see if the program is GNU ld.  I'd rather use --version,
5777      # but apparently some variants of GNU ld only accept -v.
5778      # Break only if it was the GNU/non-GNU ld that we prefer.
5779      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5780      *GNU* | *'with BFD'*)
5781	test "$with_gnu_ld" != no && break
5782	;;
5783      *)
5784	test "$with_gnu_ld" != yes && break
5785	;;
5786      esac
5787    fi
5788  done
5789  IFS="$lt_save_ifs"
5790else
5791  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5792fi
5793fi
5794
5795LD="$lt_cv_path_LD"
5796if test -n "$LD"; then
5797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5798$as_echo "$LD" >&6; }
5799else
5800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801$as_echo "no" >&6; }
5802fi
5803test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5805$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5806if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5807  $as_echo_n "(cached) " >&6
5808else
5809  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5810case `$LD -v 2>&1 </dev/null` in
5811*GNU* | *'with BFD'*)
5812  lt_cv_prog_gnu_ld=yes
5813  ;;
5814*)
5815  lt_cv_prog_gnu_ld=no
5816  ;;
5817esac
5818fi
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5820$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5821with_gnu_ld=$lt_cv_prog_gnu_ld
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5832$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5833if test "${lt_cv_path_NM+set}" = set; then :
5834  $as_echo_n "(cached) " >&6
5835else
5836  if test -n "$NM"; then
5837  # Let the user override the test.
5838  lt_cv_path_NM="$NM"
5839else
5840  lt_nm_to_check="${ac_tool_prefix}nm"
5841  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5842    lt_nm_to_check="$lt_nm_to_check nm"
5843  fi
5844  for lt_tmp_nm in $lt_nm_to_check; do
5845    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5846    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5847      IFS="$lt_save_ifs"
5848      test -z "$ac_dir" && ac_dir=.
5849      tmp_nm="$ac_dir/$lt_tmp_nm"
5850      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5851	# Check to see if the nm accepts a BSD-compat flag.
5852	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5853	#   nm: unknown option "B" ignored
5854	# Tru64's nm complains that /dev/null is an invalid object file
5855	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5856	*/dev/null* | *'Invalid file or object type'*)
5857	  lt_cv_path_NM="$tmp_nm -B"
5858	  break
5859	  ;;
5860	*)
5861	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5862	  */dev/null*)
5863	    lt_cv_path_NM="$tmp_nm -p"
5864	    break
5865	    ;;
5866	  *)
5867	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5868	    continue # so that we can try to find one that supports BSD flags
5869	    ;;
5870	  esac
5871	  ;;
5872	esac
5873      fi
5874    done
5875    IFS="$lt_save_ifs"
5876  done
5877  : ${lt_cv_path_NM=no}
5878fi
5879fi
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5881$as_echo "$lt_cv_path_NM" >&6; }
5882if test "$lt_cv_path_NM" != "no"; then
5883  NM="$lt_cv_path_NM"
5884else
5885  # Didn't find any BSD compatible name lister, look for dumpbin.
5886  if test -n "$ac_tool_prefix"; then
5887  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5888  do
5889    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5890set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892$as_echo_n "checking for $ac_word... " >&6; }
5893if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5894  $as_echo_n "(cached) " >&6
5895else
5896  if test -n "$DUMPBIN"; then
5897  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5898else
5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900for as_dir in $PATH
5901do
5902  IFS=$as_save_IFS
5903  test -z "$as_dir" && as_dir=.
5904    for ac_exec_ext in '' $ac_executable_extensions; do
5905  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5906    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908    break 2
5909  fi
5910done
5911  done
5912IFS=$as_save_IFS
5913
5914fi
5915fi
5916DUMPBIN=$ac_cv_prog_DUMPBIN
5917if test -n "$DUMPBIN"; then
5918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5919$as_echo "$DUMPBIN" >&6; }
5920else
5921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922$as_echo "no" >&6; }
5923fi
5924
5925
5926    test -n "$DUMPBIN" && break
5927  done
5928fi
5929if test -z "$DUMPBIN"; then
5930  ac_ct_DUMPBIN=$DUMPBIN
5931  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5932do
5933  # Extract the first word of "$ac_prog", so it can be a program name with args.
5934set dummy $ac_prog; ac_word=$2
5935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936$as_echo_n "checking for $ac_word... " >&6; }
5937if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5938  $as_echo_n "(cached) " >&6
5939else
5940  if test -n "$ac_ct_DUMPBIN"; then
5941  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5942else
5943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944for as_dir in $PATH
5945do
5946  IFS=$as_save_IFS
5947  test -z "$as_dir" && as_dir=.
5948    for ac_exec_ext in '' $ac_executable_extensions; do
5949  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5951    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952    break 2
5953  fi
5954done
5955  done
5956IFS=$as_save_IFS
5957
5958fi
5959fi
5960ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5961if test -n "$ac_ct_DUMPBIN"; then
5962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5963$as_echo "$ac_ct_DUMPBIN" >&6; }
5964else
5965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966$as_echo "no" >&6; }
5967fi
5968
5969
5970  test -n "$ac_ct_DUMPBIN" && break
5971done
5972
5973  if test "x$ac_ct_DUMPBIN" = x; then
5974    DUMPBIN=":"
5975  else
5976    case $cross_compiling:$ac_tool_warned in
5977yes:)
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5980ac_tool_warned=yes ;;
5981esac
5982    DUMPBIN=$ac_ct_DUMPBIN
5983  fi
5984fi
5985
5986
5987  if test "$DUMPBIN" != ":"; then
5988    NM="$DUMPBIN"
5989  fi
5990fi
5991test -z "$NM" && NM=nm
5992
5993
5994
5995
5996
5997
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5999$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6000if test "${lt_cv_nm_interface+set}" = set; then :
6001  $as_echo_n "(cached) " >&6
6002else
6003  lt_cv_nm_interface="BSD nm"
6004  echo "int some_variable = 0;" > conftest.$ac_ext
6005  (eval echo "\"\$as_me:6005: $ac_compile\"" >&5)
6006  (eval "$ac_compile" 2>conftest.err)
6007  cat conftest.err >&5
6008  (eval echo "\"\$as_me:6008: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6009  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6010  cat conftest.err >&5
6011  (eval echo "\"\$as_me:6011: output\"" >&5)
6012  cat conftest.out >&5
6013  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6014    lt_cv_nm_interface="MS dumpbin"
6015  fi
6016  rm -f conftest*
6017fi
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6019$as_echo "$lt_cv_nm_interface" >&6; }
6020
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6022$as_echo_n "checking whether ln -s works... " >&6; }
6023LN_S=$as_ln_s
6024if test "$LN_S" = "ln -s"; then
6025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6026$as_echo "yes" >&6; }
6027else
6028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6029$as_echo "no, using $LN_S" >&6; }
6030fi
6031
6032# find the maximum length of command line arguments
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6034$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6035if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6036  $as_echo_n "(cached) " >&6
6037else
6038    i=0
6039  teststring="ABCD"
6040
6041  case $build_os in
6042  msdosdjgpp*)
6043    # On DJGPP, this test can blow up pretty badly due to problems in libc
6044    # (any single argument exceeding 2000 bytes causes a buffer overrun
6045    # during glob expansion).  Even if it were fixed, the result of this
6046    # check would be larger than it should be.
6047    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6048    ;;
6049
6050  gnu*)
6051    # Under GNU Hurd, this test is not required because there is
6052    # no limit to the length of command line arguments.
6053    # Libtool will interpret -1 as no limit whatsoever
6054    lt_cv_sys_max_cmd_len=-1;
6055    ;;
6056
6057  cygwin* | mingw* | cegcc*)
6058    # On Win9x/ME, this test blows up -- it succeeds, but takes
6059    # about 5 minutes as the teststring grows exponentially.
6060    # Worse, since 9x/ME are not pre-emptively multitasking,
6061    # you end up with a "frozen" computer, even though with patience
6062    # the test eventually succeeds (with a max line length of 256k).
6063    # Instead, let's just punt: use the minimum linelength reported by
6064    # all of the supported platforms: 8192 (on NT/2K/XP).
6065    lt_cv_sys_max_cmd_len=8192;
6066    ;;
6067
6068  amigaos*)
6069    # On AmigaOS with pdksh, this test takes hours, literally.
6070    # So we just punt and use a minimum line length of 8192.
6071    lt_cv_sys_max_cmd_len=8192;
6072    ;;
6073
6074  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6075    # This has been around since 386BSD, at least.  Likely further.
6076    if test -x /sbin/sysctl; then
6077      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6078    elif test -x /usr/sbin/sysctl; then
6079      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6080    else
6081      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6082    fi
6083    # And add a safety zone
6084    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6085    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6086    ;;
6087
6088  interix*)
6089    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6090    lt_cv_sys_max_cmd_len=196608
6091    ;;
6092
6093  osf*)
6094    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6095    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6096    # nice to cause kernel panics so lets avoid the loop below.
6097    # First set a reasonable default.
6098    lt_cv_sys_max_cmd_len=16384
6099    #
6100    if test -x /sbin/sysconfig; then
6101      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6102        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6103      esac
6104    fi
6105    ;;
6106  sco3.2v5*)
6107    lt_cv_sys_max_cmd_len=102400
6108    ;;
6109  sysv5* | sco5v6* | sysv4.2uw2*)
6110    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6111    if test -n "$kargmax"; then
6112      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6113    else
6114      lt_cv_sys_max_cmd_len=32768
6115    fi
6116    ;;
6117  *)
6118    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6119    if test -n "$lt_cv_sys_max_cmd_len"; then
6120      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6121      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6122    else
6123      # Make teststring a little bigger before we do anything with it.
6124      # a 1K string should be a reasonable start.
6125      for i in 1 2 3 4 5 6 7 8 ; do
6126        teststring=$teststring$teststring
6127      done
6128      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6129      # If test is not a shell built-in, we'll probably end up computing a
6130      # maximum length that is only half of the actual maximum length, but
6131      # we can't tell.
6132      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6133	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6134	      test $i != 17 # 1/2 MB should be enough
6135      do
6136        i=`expr $i + 1`
6137        teststring=$teststring$teststring
6138      done
6139      # Only check the string length outside the loop.
6140      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6141      teststring=
6142      # Add a significant safety factor because C++ compilers can tack on
6143      # massive amounts of additional arguments before passing them to the
6144      # linker.  It appears as though 1/2 is a usable value.
6145      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6146    fi
6147    ;;
6148  esac
6149
6150fi
6151
6152if test -n $lt_cv_sys_max_cmd_len ; then
6153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6154$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6155else
6156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6157$as_echo "none" >&6; }
6158fi
6159max_cmd_len=$lt_cv_sys_max_cmd_len
6160
6161
6162
6163
6164
6165
6166: ${CP="cp -f"}
6167: ${MV="mv -f"}
6168: ${RM="rm -f"}
6169
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6171$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6172# Try some XSI features
6173xsi_shell=no
6174( _lt_dummy="a/b/c"
6175  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6176      = c,a/b,, \
6177    && eval 'test $(( 1 + 1 )) -eq 2 \
6178    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6179  && xsi_shell=yes
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6181$as_echo "$xsi_shell" >&6; }
6182
6183
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6185$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6186lt_shell_append=no
6187( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6188    >/dev/null 2>&1 \
6189  && lt_shell_append=yes
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6191$as_echo "$lt_shell_append" >&6; }
6192
6193
6194if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6195  lt_unset=unset
6196else
6197  lt_unset=false
6198fi
6199
6200
6201
6202
6203
6204# test EBCDIC or ASCII
6205case `echo X|tr X '\101'` in
6206 A) # ASCII based system
6207    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6208  lt_SP2NL='tr \040 \012'
6209  lt_NL2SP='tr \015\012 \040\040'
6210  ;;
6211 *) # EBCDIC based system
6212  lt_SP2NL='tr \100 \n'
6213  lt_NL2SP='tr \r\n \100\100'
6214  ;;
6215esac
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6226$as_echo_n "checking for $LD option to reload object files... " >&6; }
6227if test "${lt_cv_ld_reload_flag+set}" = set; then :
6228  $as_echo_n "(cached) " >&6
6229else
6230  lt_cv_ld_reload_flag='-r'
6231fi
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6233$as_echo "$lt_cv_ld_reload_flag" >&6; }
6234reload_flag=$lt_cv_ld_reload_flag
6235case $reload_flag in
6236"" | " "*) ;;
6237*) reload_flag=" $reload_flag" ;;
6238esac
6239reload_cmds='$LD$reload_flag -o $output$reload_objs'
6240case $host_os in
6241  darwin*)
6242    if test "$GCC" = yes; then
6243      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6244    else
6245      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6246    fi
6247    ;;
6248esac
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258if test -n "$ac_tool_prefix"; then
6259  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6260set dummy ${ac_tool_prefix}objdump; ac_word=$2
6261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6262$as_echo_n "checking for $ac_word... " >&6; }
6263if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6264  $as_echo_n "(cached) " >&6
6265else
6266  if test -n "$OBJDUMP"; then
6267  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6268else
6269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270for as_dir in $PATH
6271do
6272  IFS=$as_save_IFS
6273  test -z "$as_dir" && as_dir=.
6274    for ac_exec_ext in '' $ac_executable_extensions; do
6275  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6276    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6278    break 2
6279  fi
6280done
6281  done
6282IFS=$as_save_IFS
6283
6284fi
6285fi
6286OBJDUMP=$ac_cv_prog_OBJDUMP
6287if test -n "$OBJDUMP"; then
6288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6289$as_echo "$OBJDUMP" >&6; }
6290else
6291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6292$as_echo "no" >&6; }
6293fi
6294
6295
6296fi
6297if test -z "$ac_cv_prog_OBJDUMP"; then
6298  ac_ct_OBJDUMP=$OBJDUMP
6299  # Extract the first word of "objdump", so it can be a program name with args.
6300set dummy objdump; ac_word=$2
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302$as_echo_n "checking for $ac_word... " >&6; }
6303if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6304  $as_echo_n "(cached) " >&6
6305else
6306  if test -n "$ac_ct_OBJDUMP"; then
6307  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6308else
6309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH
6311do
6312  IFS=$as_save_IFS
6313  test -z "$as_dir" && as_dir=.
6314    for ac_exec_ext in '' $ac_executable_extensions; do
6315  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318    break 2
6319  fi
6320done
6321  done
6322IFS=$as_save_IFS
6323
6324fi
6325fi
6326ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6327if test -n "$ac_ct_OBJDUMP"; then
6328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6329$as_echo "$ac_ct_OBJDUMP" >&6; }
6330else
6331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332$as_echo "no" >&6; }
6333fi
6334
6335  if test "x$ac_ct_OBJDUMP" = x; then
6336    OBJDUMP="false"
6337  else
6338    case $cross_compiling:$ac_tool_warned in
6339yes:)
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6342ac_tool_warned=yes ;;
6343esac
6344    OBJDUMP=$ac_ct_OBJDUMP
6345  fi
6346else
6347  OBJDUMP="$ac_cv_prog_OBJDUMP"
6348fi
6349
6350test -z "$OBJDUMP" && OBJDUMP=objdump
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6361$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6362if test "${lt_cv_deplibs_check_method+set}" = set; then :
6363  $as_echo_n "(cached) " >&6
6364else
6365  lt_cv_file_magic_cmd='$MAGIC_CMD'
6366lt_cv_file_magic_test_file=
6367lt_cv_deplibs_check_method='unknown'
6368# Need to set the preceding variable on all platforms that support
6369# interlibrary dependencies.
6370# 'none' -- dependencies not supported.
6371# `unknown' -- same as none, but documents that we really don't know.
6372# 'pass_all' -- all dependencies passed with no checks.
6373# 'test_compile' -- check by making test program.
6374# 'file_magic [[regex]]' -- check by looking for files in library path
6375# which responds to the $file_magic_cmd with a given extended regex.
6376# If you have `file' or equivalent on your system and you're not sure
6377# whether `pass_all' will *always* work, you probably want this one.
6378
6379case $host_os in
6380aix[4-9]*)
6381  lt_cv_deplibs_check_method=pass_all
6382  ;;
6383
6384beos*)
6385  lt_cv_deplibs_check_method=pass_all
6386  ;;
6387
6388bsdi[45]*)
6389  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6390  lt_cv_file_magic_cmd='/usr/bin/file -L'
6391  lt_cv_file_magic_test_file=/shlib/libc.so
6392  ;;
6393
6394cygwin*)
6395  # func_win32_libid is a shell function defined in ltmain.sh
6396  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6397  lt_cv_file_magic_cmd='func_win32_libid'
6398  ;;
6399
6400mingw* | pw32*)
6401  # Base MSYS/MinGW do not provide the 'file' command needed by
6402  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6403  # unless we find 'file', for example because we are cross-compiling.
6404  if ( file / ) >/dev/null 2>&1; then
6405    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6406    lt_cv_file_magic_cmd='func_win32_libid'
6407  else
6408    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6409    lt_cv_file_magic_cmd='$OBJDUMP -f'
6410  fi
6411  ;;
6412
6413cegcc)
6414  # use the weaker test based on 'objdump'. See mingw*.
6415  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6416  lt_cv_file_magic_cmd='$OBJDUMP -f'
6417  ;;
6418
6419darwin* | rhapsody*)
6420  lt_cv_deplibs_check_method=pass_all
6421  ;;
6422
6423freebsd* | dragonfly*)
6424  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6425    case $host_cpu in
6426    i*86 )
6427      # Not sure whether the presence of OpenBSD here was a mistake.
6428      # Let's accept both of them until this is cleared up.
6429      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6430      lt_cv_file_magic_cmd=/usr/bin/file
6431      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6432      ;;
6433    esac
6434  else
6435    lt_cv_deplibs_check_method=pass_all
6436  fi
6437  ;;
6438
6439gnu*)
6440  lt_cv_deplibs_check_method=pass_all
6441  ;;
6442
6443hpux10.20* | hpux11*)
6444  lt_cv_file_magic_cmd=/usr/bin/file
6445  case $host_cpu in
6446  ia64*)
6447    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6448    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6449    ;;
6450  hppa*64*)
6451    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6452    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6453    ;;
6454  *)
6455    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6456    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6457    ;;
6458  esac
6459  ;;
6460
6461interix[3-9]*)
6462  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6463  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6464  ;;
6465
6466irix5* | irix6* | nonstopux*)
6467  case $LD in
6468  *-32|*"-32 ") libmagic=32-bit;;
6469  *-n32|*"-n32 ") libmagic=N32;;
6470  *-64|*"-64 ") libmagic=64-bit;;
6471  *) libmagic=never-match;;
6472  esac
6473  lt_cv_deplibs_check_method=pass_all
6474  ;;
6475
6476# This must be Linux ELF.
6477linux* | k*bsd*-gnu)
6478  lt_cv_deplibs_check_method=pass_all
6479  ;;
6480
6481netbsd*)
6482  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6483    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6484  else
6485    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6486  fi
6487  ;;
6488
6489newos6*)
6490  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6491  lt_cv_file_magic_cmd=/usr/bin/file
6492  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6493  ;;
6494
6495*nto* | *qnx*)
6496  lt_cv_deplibs_check_method=pass_all
6497  ;;
6498
6499openbsd*)
6500  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6501    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6502  else
6503    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6504  fi
6505  ;;
6506
6507osf3* | osf4* | osf5*)
6508  lt_cv_deplibs_check_method=pass_all
6509  ;;
6510
6511rdos*)
6512  lt_cv_deplibs_check_method=pass_all
6513  ;;
6514
6515solaris*)
6516  lt_cv_deplibs_check_method=pass_all
6517  ;;
6518
6519sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6520  lt_cv_deplibs_check_method=pass_all
6521  ;;
6522
6523sysv4 | sysv4.3*)
6524  case $host_vendor in
6525  motorola)
6526    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]'
6527    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6528    ;;
6529  ncr)
6530    lt_cv_deplibs_check_method=pass_all
6531    ;;
6532  sequent)
6533    lt_cv_file_magic_cmd='/bin/file'
6534    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6535    ;;
6536  sni)
6537    lt_cv_file_magic_cmd='/bin/file'
6538    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6539    lt_cv_file_magic_test_file=/lib/libc.so
6540    ;;
6541  siemens)
6542    lt_cv_deplibs_check_method=pass_all
6543    ;;
6544  pc)
6545    lt_cv_deplibs_check_method=pass_all
6546    ;;
6547  esac
6548  ;;
6549
6550tpf*)
6551  lt_cv_deplibs_check_method=pass_all
6552  ;;
6553esac
6554
6555fi
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6557$as_echo "$lt_cv_deplibs_check_method" >&6; }
6558file_magic_cmd=$lt_cv_file_magic_cmd
6559deplibs_check_method=$lt_cv_deplibs_check_method
6560test -z "$deplibs_check_method" && deplibs_check_method=unknown
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573if test -n "$ac_tool_prefix"; then
6574  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6575set dummy ${ac_tool_prefix}ar; ac_word=$2
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577$as_echo_n "checking for $ac_word... " >&6; }
6578if test "${ac_cv_prog_AR+set}" = set; then :
6579  $as_echo_n "(cached) " >&6
6580else
6581  if test -n "$AR"; then
6582  ac_cv_prog_AR="$AR" # Let the user override the test.
6583else
6584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585for as_dir in $PATH
6586do
6587  IFS=$as_save_IFS
6588  test -z "$as_dir" && as_dir=.
6589    for ac_exec_ext in '' $ac_executable_extensions; do
6590  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591    ac_cv_prog_AR="${ac_tool_prefix}ar"
6592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593    break 2
6594  fi
6595done
6596  done
6597IFS=$as_save_IFS
6598
6599fi
6600fi
6601AR=$ac_cv_prog_AR
6602if test -n "$AR"; then
6603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6604$as_echo "$AR" >&6; }
6605else
6606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607$as_echo "no" >&6; }
6608fi
6609
6610
6611fi
6612if test -z "$ac_cv_prog_AR"; then
6613  ac_ct_AR=$AR
6614  # Extract the first word of "ar", so it can be a program name with args.
6615set dummy ar; ac_word=$2
6616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617$as_echo_n "checking for $ac_word... " >&6; }
6618if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6619  $as_echo_n "(cached) " >&6
6620else
6621  if test -n "$ac_ct_AR"; then
6622  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6623else
6624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625for as_dir in $PATH
6626do
6627  IFS=$as_save_IFS
6628  test -z "$as_dir" && as_dir=.
6629    for ac_exec_ext in '' $ac_executable_extensions; do
6630  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631    ac_cv_prog_ac_ct_AR="ar"
6632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633    break 2
6634  fi
6635done
6636  done
6637IFS=$as_save_IFS
6638
6639fi
6640fi
6641ac_ct_AR=$ac_cv_prog_ac_ct_AR
6642if test -n "$ac_ct_AR"; then
6643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6644$as_echo "$ac_ct_AR" >&6; }
6645else
6646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647$as_echo "no" >&6; }
6648fi
6649
6650  if test "x$ac_ct_AR" = x; then
6651    AR="false"
6652  else
6653    case $cross_compiling:$ac_tool_warned in
6654yes:)
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6657ac_tool_warned=yes ;;
6658esac
6659    AR=$ac_ct_AR
6660  fi
6661else
6662  AR="$ac_cv_prog_AR"
6663fi
6664
6665test -z "$AR" && AR=ar
6666test -z "$AR_FLAGS" && AR_FLAGS=cru
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678if test -n "$ac_tool_prefix"; then
6679  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6680set dummy ${ac_tool_prefix}strip; ac_word=$2
6681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682$as_echo_n "checking for $ac_word... " >&6; }
6683if test "${ac_cv_prog_STRIP+set}" = set; then :
6684  $as_echo_n "(cached) " >&6
6685else
6686  if test -n "$STRIP"; then
6687  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6688else
6689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690for as_dir in $PATH
6691do
6692  IFS=$as_save_IFS
6693  test -z "$as_dir" && as_dir=.
6694    for ac_exec_ext in '' $ac_executable_extensions; do
6695  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6697    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6698    break 2
6699  fi
6700done
6701  done
6702IFS=$as_save_IFS
6703
6704fi
6705fi
6706STRIP=$ac_cv_prog_STRIP
6707if test -n "$STRIP"; then
6708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6709$as_echo "$STRIP" >&6; }
6710else
6711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712$as_echo "no" >&6; }
6713fi
6714
6715
6716fi
6717if test -z "$ac_cv_prog_STRIP"; then
6718  ac_ct_STRIP=$STRIP
6719  # Extract the first word of "strip", so it can be a program name with args.
6720set dummy strip; ac_word=$2
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722$as_echo_n "checking for $ac_word... " >&6; }
6723if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6724  $as_echo_n "(cached) " >&6
6725else
6726  if test -n "$ac_ct_STRIP"; then
6727  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6728else
6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730for as_dir in $PATH
6731do
6732  IFS=$as_save_IFS
6733  test -z "$as_dir" && as_dir=.
6734    for ac_exec_ext in '' $ac_executable_extensions; do
6735  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736    ac_cv_prog_ac_ct_STRIP="strip"
6737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738    break 2
6739  fi
6740done
6741  done
6742IFS=$as_save_IFS
6743
6744fi
6745fi
6746ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6747if test -n "$ac_ct_STRIP"; then
6748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6749$as_echo "$ac_ct_STRIP" >&6; }
6750else
6751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752$as_echo "no" >&6; }
6753fi
6754
6755  if test "x$ac_ct_STRIP" = x; then
6756    STRIP=":"
6757  else
6758    case $cross_compiling:$ac_tool_warned in
6759yes:)
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6762ac_tool_warned=yes ;;
6763esac
6764    STRIP=$ac_ct_STRIP
6765  fi
6766else
6767  STRIP="$ac_cv_prog_STRIP"
6768fi
6769
6770test -z "$STRIP" && STRIP=:
6771
6772
6773
6774
6775
6776
6777if test -n "$ac_tool_prefix"; then
6778  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6779set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6781$as_echo_n "checking for $ac_word... " >&6; }
6782if test "${ac_cv_prog_RANLIB+set}" = set; then :
6783  $as_echo_n "(cached) " >&6
6784else
6785  if test -n "$RANLIB"; then
6786  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6787else
6788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789for as_dir in $PATH
6790do
6791  IFS=$as_save_IFS
6792  test -z "$as_dir" && as_dir=.
6793    for ac_exec_ext in '' $ac_executable_extensions; do
6794  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6795    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797    break 2
6798  fi
6799done
6800  done
6801IFS=$as_save_IFS
6802
6803fi
6804fi
6805RANLIB=$ac_cv_prog_RANLIB
6806if test -n "$RANLIB"; then
6807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6808$as_echo "$RANLIB" >&6; }
6809else
6810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811$as_echo "no" >&6; }
6812fi
6813
6814
6815fi
6816if test -z "$ac_cv_prog_RANLIB"; then
6817  ac_ct_RANLIB=$RANLIB
6818  # Extract the first word of "ranlib", so it can be a program name with args.
6819set dummy ranlib; ac_word=$2
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821$as_echo_n "checking for $ac_word... " >&6; }
6822if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6823  $as_echo_n "(cached) " >&6
6824else
6825  if test -n "$ac_ct_RANLIB"; then
6826  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6827else
6828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829for as_dir in $PATH
6830do
6831  IFS=$as_save_IFS
6832  test -z "$as_dir" && as_dir=.
6833    for ac_exec_ext in '' $ac_executable_extensions; do
6834  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6835    ac_cv_prog_ac_ct_RANLIB="ranlib"
6836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837    break 2
6838  fi
6839done
6840  done
6841IFS=$as_save_IFS
6842
6843fi
6844fi
6845ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6846if test -n "$ac_ct_RANLIB"; then
6847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6848$as_echo "$ac_ct_RANLIB" >&6; }
6849else
6850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851$as_echo "no" >&6; }
6852fi
6853
6854  if test "x$ac_ct_RANLIB" = x; then
6855    RANLIB=":"
6856  else
6857    case $cross_compiling:$ac_tool_warned in
6858yes:)
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6861ac_tool_warned=yes ;;
6862esac
6863    RANLIB=$ac_ct_RANLIB
6864  fi
6865else
6866  RANLIB="$ac_cv_prog_RANLIB"
6867fi
6868
6869test -z "$RANLIB" && RANLIB=:
6870
6871
6872
6873
6874
6875
6876# Determine commands to create old-style static archives.
6877old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6878old_postinstall_cmds='chmod 644 $oldlib'
6879old_postuninstall_cmds=
6880
6881if test -n "$RANLIB"; then
6882  case $host_os in
6883  openbsd*)
6884    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6885    ;;
6886  *)
6887    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6888    ;;
6889  esac
6890  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6891fi
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# If no C compiler was specified, use CC.
6927LTCC=${LTCC-"$CC"}
6928
6929# If no C compiler flags were specified, use CFLAGS.
6930LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6931
6932# Allow CC to be a program name with arguments.
6933compiler=$CC
6934
6935
6936# Check for command to grab the raw symbol name followed by C symbol from nm.
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6938$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6939if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6940  $as_echo_n "(cached) " >&6
6941else
6942
6943# These are sane defaults that work on at least a few old systems.
6944# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6945
6946# Character class describing NM global symbol codes.
6947symcode='[BCDEGRST]'
6948
6949# Regexp to match symbols that can be accessed directly from C.
6950sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6951
6952# Define system-specific variables.
6953case $host_os in
6954aix*)
6955  symcode='[BCDT]'
6956  ;;
6957cygwin* | mingw* | pw32* | cegcc*)
6958  symcode='[ABCDGISTW]'
6959  ;;
6960hpux*)
6961  if test "$host_cpu" = ia64; then
6962    symcode='[ABCDEGRST]'
6963  fi
6964  ;;
6965irix* | nonstopux*)
6966  symcode='[BCDEGRST]'
6967  ;;
6968osf*)
6969  symcode='[BCDEGQRST]'
6970  ;;
6971solaris*)
6972  symcode='[BDRT]'
6973  ;;
6974sco3.2v5*)
6975  symcode='[DT]'
6976  ;;
6977sysv4.2uw2*)
6978  symcode='[DT]'
6979  ;;
6980sysv5* | sco5v6* | unixware* | OpenUNIX*)
6981  symcode='[ABDT]'
6982  ;;
6983sysv4)
6984  symcode='[DFNSTU]'
6985  ;;
6986esac
6987
6988# If we're using GNU nm, then use its standard symbol codes.
6989case `$NM -V 2>&1` in
6990*GNU* | *'with BFD'*)
6991  symcode='[ABCDGIRSTW]' ;;
6992esac
6993
6994# Transform an extracted symbol line into a proper C declaration.
6995# Some systems (esp. on ia64) link data and code symbols differently,
6996# so use this general approach.
6997lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6998
6999# Transform an extracted symbol line into symbol name and symbol address
7000lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7001lt_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'"
7002
7003# Handle CRLF in mingw tool chain
7004opt_cr=
7005case $build_os in
7006mingw*)
7007  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7008  ;;
7009esac
7010
7011# Try without a prefix underscore, then with it.
7012for ac_symprfx in "" "_"; do
7013
7014  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7015  symxfrm="\\1 $ac_symprfx\\2 \\2"
7016
7017  # Write the raw and C identifiers.
7018  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7019    # Fake it for dumpbin and say T for any non-static function
7020    # and D for any global variable.
7021    # Also find C++ and __fastcall symbols from MSVC++,
7022    # which start with @ or ?.
7023    lt_cv_sys_global_symbol_pipe="$AWK '"\
7024"     {last_section=section; section=\$ 3};"\
7025"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7026"     \$ 0!~/External *\|/{next};"\
7027"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7028"     {if(hide[section]) next};"\
7029"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7030"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7031"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7032"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7033"     ' prfx=^$ac_symprfx"
7034  else
7035    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7036  fi
7037
7038  # Check to see that the pipe works correctly.
7039  pipe_works=no
7040
7041  rm -f conftest*
7042  cat > conftest.$ac_ext <<_LT_EOF
7043#ifdef __cplusplus
7044extern "C" {
7045#endif
7046char nm_test_var;
7047void nm_test_func(void);
7048void nm_test_func(void){}
7049#ifdef __cplusplus
7050}
7051#endif
7052int main(){nm_test_var='a';nm_test_func();return(0);}
7053_LT_EOF
7054
7055  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7056  (eval $ac_compile) 2>&5
7057  ac_status=$?
7058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7059  test $ac_status = 0; }; then
7060    # Now try to grab the symbols.
7061    nlist=conftest.nm
7062    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7063  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7064  ac_status=$?
7065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7066  test $ac_status = 0; } && test -s "$nlist"; then
7067      # Try sorting and uniquifying the output.
7068      if sort "$nlist" | uniq > "$nlist"T; then
7069	mv -f "$nlist"T "$nlist"
7070      else
7071	rm -f "$nlist"T
7072      fi
7073
7074      # Make sure that we snagged all the symbols we need.
7075      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7076	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7077	  cat <<_LT_EOF > conftest.$ac_ext
7078#ifdef __cplusplus
7079extern "C" {
7080#endif
7081
7082_LT_EOF
7083	  # Now generate the symbol file.
7084	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7085
7086	  cat <<_LT_EOF >> conftest.$ac_ext
7087
7088/* The mapping between symbol names and symbols.  */
7089const struct {
7090  const char *name;
7091  void       *address;
7092}
7093lt__PROGRAM__LTX_preloaded_symbols[] =
7094{
7095  { "@PROGRAM@", (void *) 0 },
7096_LT_EOF
7097	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7098	  cat <<\_LT_EOF >> conftest.$ac_ext
7099  {0, (void *) 0}
7100};
7101
7102/* This works around a problem in FreeBSD linker */
7103#ifdef FREEBSD_WORKAROUND
7104static const void *lt_preloaded_setup() {
7105  return lt__PROGRAM__LTX_preloaded_symbols;
7106}
7107#endif
7108
7109#ifdef __cplusplus
7110}
7111#endif
7112_LT_EOF
7113	  # Now try linking the two files.
7114	  mv conftest.$ac_objext conftstm.$ac_objext
7115	  lt_save_LIBS="$LIBS"
7116	  lt_save_CFLAGS="$CFLAGS"
7117	  LIBS="conftstm.$ac_objext"
7118	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7119	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7120  (eval $ac_link) 2>&5
7121  ac_status=$?
7122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7123  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7124	    pipe_works=yes
7125	  fi
7126	  LIBS="$lt_save_LIBS"
7127	  CFLAGS="$lt_save_CFLAGS"
7128	else
7129	  echo "cannot find nm_test_func in $nlist" >&5
7130	fi
7131      else
7132	echo "cannot find nm_test_var in $nlist" >&5
7133      fi
7134    else
7135      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7136    fi
7137  else
7138    echo "$progname: failed program was:" >&5
7139    cat conftest.$ac_ext >&5
7140  fi
7141  rm -rf conftest* conftst*
7142
7143  # Do not use the global_symbol_pipe unless it works.
7144  if test "$pipe_works" = yes; then
7145    break
7146  else
7147    lt_cv_sys_global_symbol_pipe=
7148  fi
7149done
7150
7151fi
7152
7153if test -z "$lt_cv_sys_global_symbol_pipe"; then
7154  lt_cv_sys_global_symbol_to_cdecl=
7155fi
7156if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7158$as_echo "failed" >&6; }
7159else
7160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7161$as_echo "ok" >&6; }
7162fi
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185# Check whether --enable-libtool-lock was given.
7186if test "${enable_libtool_lock+set}" = set; then :
7187  enableval=$enable_libtool_lock;
7188fi
7189
7190test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7191
7192# Some flags need to be propagated to the compiler or linker for good
7193# libtool support.
7194case $host in
7195ia64-*-hpux*)
7196  # Find out which ABI we are using.
7197  echo 'int i;' > conftest.$ac_ext
7198  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7199  (eval $ac_compile) 2>&5
7200  ac_status=$?
7201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7202  test $ac_status = 0; }; then
7203    case `/usr/bin/file conftest.$ac_objext` in
7204      *ELF-32*)
7205	HPUX_IA64_MODE="32"
7206	;;
7207      *ELF-64*)
7208	HPUX_IA64_MODE="64"
7209	;;
7210    esac
7211  fi
7212  rm -rf conftest*
7213  ;;
7214*-*-irix6*)
7215  # Find out which ABI we are using.
7216  echo '#line 7216 "configure"' > conftest.$ac_ext
7217  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7218  (eval $ac_compile) 2>&5
7219  ac_status=$?
7220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7221  test $ac_status = 0; }; then
7222    if test "$lt_cv_prog_gnu_ld" = yes; then
7223      case `/usr/bin/file conftest.$ac_objext` in
7224	*32-bit*)
7225	  LD="${LD-ld} -melf32bsmip"
7226	  ;;
7227	*N32*)
7228	  LD="${LD-ld} -melf32bmipn32"
7229	  ;;
7230	*64-bit*)
7231	  LD="${LD-ld} -melf64bmip"
7232	;;
7233      esac
7234    else
7235      case `/usr/bin/file conftest.$ac_objext` in
7236	*32-bit*)
7237	  LD="${LD-ld} -32"
7238	  ;;
7239	*N32*)
7240	  LD="${LD-ld} -n32"
7241	  ;;
7242	*64-bit*)
7243	  LD="${LD-ld} -64"
7244	  ;;
7245      esac
7246    fi
7247  fi
7248  rm -rf conftest*
7249  ;;
7250
7251x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7252s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7253  # Find out which ABI we are using.
7254  echo 'int i;' > conftest.$ac_ext
7255  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7256  (eval $ac_compile) 2>&5
7257  ac_status=$?
7258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7259  test $ac_status = 0; }; then
7260    case `/usr/bin/file conftest.o` in
7261      *32-bit*)
7262	case $host in
7263	  x86_64-*kfreebsd*-gnu)
7264	    LD="${LD-ld} -m elf_i386_fbsd"
7265	    ;;
7266	  x86_64-*linux*)
7267	    LD="${LD-ld} -m elf_i386"
7268	    ;;
7269	  ppc64-*linux*|powerpc64-*linux*)
7270	    LD="${LD-ld} -m elf32ppclinux"
7271	    ;;
7272	  s390x-*linux*)
7273	    LD="${LD-ld} -m elf_s390"
7274	    ;;
7275	  sparc64-*linux*)
7276	    LD="${LD-ld} -m elf32_sparc"
7277	    ;;
7278	esac
7279	;;
7280      *64-bit*)
7281	case $host in
7282	  x86_64-*kfreebsd*-gnu)
7283	    LD="${LD-ld} -m elf_x86_64_fbsd"
7284	    ;;
7285	  x86_64-*linux*)
7286	    LD="${LD-ld} -m elf_x86_64"
7287	    ;;
7288	  ppc*-*linux*|powerpc*-*linux*)
7289	    LD="${LD-ld} -m elf64ppc"
7290	    ;;
7291	  s390*-*linux*|s390*-*tpf*)
7292	    LD="${LD-ld} -m elf64_s390"
7293	    ;;
7294	  sparc*-*linux*)
7295	    LD="${LD-ld} -m elf64_sparc"
7296	    ;;
7297	esac
7298	;;
7299    esac
7300  fi
7301  rm -rf conftest*
7302  ;;
7303
7304*-*-sco3.2v5*)
7305  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7306  SAVE_CFLAGS="$CFLAGS"
7307  CFLAGS="$CFLAGS -belf"
7308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7309$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7310if test "${lt_cv_cc_needs_belf+set}" = set; then :
7311  $as_echo_n "(cached) " >&6
7312else
7313  ac_ext=c
7314ac_cpp='$CPP $CPPFLAGS'
7315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7317ac_compiler_gnu=$ac_cv_c_compiler_gnu
7318
7319     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320/* end confdefs.h.  */
7321
7322int
7323main ()
7324{
7325
7326  ;
7327  return 0;
7328}
7329_ACEOF
7330if ac_fn_c_try_link "$LINENO"; then :
7331  lt_cv_cc_needs_belf=yes
7332else
7333  lt_cv_cc_needs_belf=no
7334fi
7335rm -f core conftest.err conftest.$ac_objext \
7336    conftest$ac_exeext conftest.$ac_ext
7337     ac_ext=c
7338ac_cpp='$CPP $CPPFLAGS'
7339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7341ac_compiler_gnu=$ac_cv_c_compiler_gnu
7342
7343fi
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7345$as_echo "$lt_cv_cc_needs_belf" >&6; }
7346  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7347    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7348    CFLAGS="$SAVE_CFLAGS"
7349  fi
7350  ;;
7351sparc*-*solaris*)
7352  # Find out which ABI we are using.
7353  echo 'int i;' > conftest.$ac_ext
7354  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7355  (eval $ac_compile) 2>&5
7356  ac_status=$?
7357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7358  test $ac_status = 0; }; then
7359    case `/usr/bin/file conftest.o` in
7360    *64-bit*)
7361      case $lt_cv_prog_gnu_ld in
7362      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7363      *)
7364	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7365	  LD="${LD-ld} -64"
7366	fi
7367	;;
7368      esac
7369      ;;
7370    esac
7371  fi
7372  rm -rf conftest*
7373  ;;
7374esac
7375
7376need_locks="$enable_libtool_lock"
7377
7378
7379  case $host_os in
7380    rhapsody* | darwin*)
7381    if test -n "$ac_tool_prefix"; then
7382  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7383set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385$as_echo_n "checking for $ac_word... " >&6; }
7386if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7387  $as_echo_n "(cached) " >&6
7388else
7389  if test -n "$DSYMUTIL"; then
7390  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7391else
7392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393for as_dir in $PATH
7394do
7395  IFS=$as_save_IFS
7396  test -z "$as_dir" && as_dir=.
7397    for ac_exec_ext in '' $ac_executable_extensions; do
7398  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7399    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7400    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401    break 2
7402  fi
7403done
7404  done
7405IFS=$as_save_IFS
7406
7407fi
7408fi
7409DSYMUTIL=$ac_cv_prog_DSYMUTIL
7410if test -n "$DSYMUTIL"; then
7411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7412$as_echo "$DSYMUTIL" >&6; }
7413else
7414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415$as_echo "no" >&6; }
7416fi
7417
7418
7419fi
7420if test -z "$ac_cv_prog_DSYMUTIL"; then
7421  ac_ct_DSYMUTIL=$DSYMUTIL
7422  # Extract the first word of "dsymutil", so it can be a program name with args.
7423set dummy dsymutil; ac_word=$2
7424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425$as_echo_n "checking for $ac_word... " >&6; }
7426if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7427  $as_echo_n "(cached) " >&6
7428else
7429  if test -n "$ac_ct_DSYMUTIL"; then
7430  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7431else
7432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433for as_dir in $PATH
7434do
7435  IFS=$as_save_IFS
7436  test -z "$as_dir" && as_dir=.
7437    for ac_exec_ext in '' $ac_executable_extensions; do
7438  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7439    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7441    break 2
7442  fi
7443done
7444  done
7445IFS=$as_save_IFS
7446
7447fi
7448fi
7449ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7450if test -n "$ac_ct_DSYMUTIL"; then
7451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7452$as_echo "$ac_ct_DSYMUTIL" >&6; }
7453else
7454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455$as_echo "no" >&6; }
7456fi
7457
7458  if test "x$ac_ct_DSYMUTIL" = x; then
7459    DSYMUTIL=":"
7460  else
7461    case $cross_compiling:$ac_tool_warned in
7462yes:)
7463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7465ac_tool_warned=yes ;;
7466esac
7467    DSYMUTIL=$ac_ct_DSYMUTIL
7468  fi
7469else
7470  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7471fi
7472
7473    if test -n "$ac_tool_prefix"; then
7474  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7475set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477$as_echo_n "checking for $ac_word... " >&6; }
7478if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7479  $as_echo_n "(cached) " >&6
7480else
7481  if test -n "$NMEDIT"; then
7482  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7483else
7484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485for as_dir in $PATH
7486do
7487  IFS=$as_save_IFS
7488  test -z "$as_dir" && as_dir=.
7489    for ac_exec_ext in '' $ac_executable_extensions; do
7490  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7491    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493    break 2
7494  fi
7495done
7496  done
7497IFS=$as_save_IFS
7498
7499fi
7500fi
7501NMEDIT=$ac_cv_prog_NMEDIT
7502if test -n "$NMEDIT"; then
7503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7504$as_echo "$NMEDIT" >&6; }
7505else
7506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507$as_echo "no" >&6; }
7508fi
7509
7510
7511fi
7512if test -z "$ac_cv_prog_NMEDIT"; then
7513  ac_ct_NMEDIT=$NMEDIT
7514  # Extract the first word of "nmedit", so it can be a program name with args.
7515set dummy nmedit; ac_word=$2
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517$as_echo_n "checking for $ac_word... " >&6; }
7518if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7519  $as_echo_n "(cached) " >&6
7520else
7521  if test -n "$ac_ct_NMEDIT"; then
7522  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7523else
7524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527  IFS=$as_save_IFS
7528  test -z "$as_dir" && as_dir=.
7529    for ac_exec_ext in '' $ac_executable_extensions; do
7530  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533    break 2
7534  fi
7535done
7536  done
7537IFS=$as_save_IFS
7538
7539fi
7540fi
7541ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7542if test -n "$ac_ct_NMEDIT"; then
7543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7544$as_echo "$ac_ct_NMEDIT" >&6; }
7545else
7546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547$as_echo "no" >&6; }
7548fi
7549
7550  if test "x$ac_ct_NMEDIT" = x; then
7551    NMEDIT=":"
7552  else
7553    case $cross_compiling:$ac_tool_warned in
7554yes:)
7555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7557ac_tool_warned=yes ;;
7558esac
7559    NMEDIT=$ac_ct_NMEDIT
7560  fi
7561else
7562  NMEDIT="$ac_cv_prog_NMEDIT"
7563fi
7564
7565    if test -n "$ac_tool_prefix"; then
7566  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7567set dummy ${ac_tool_prefix}lipo; ac_word=$2
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569$as_echo_n "checking for $ac_word... " >&6; }
7570if test "${ac_cv_prog_LIPO+set}" = set; then :
7571  $as_echo_n "(cached) " >&6
7572else
7573  if test -n "$LIPO"; then
7574  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7575else
7576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577for as_dir in $PATH
7578do
7579  IFS=$as_save_IFS
7580  test -z "$as_dir" && as_dir=.
7581    for ac_exec_ext in '' $ac_executable_extensions; do
7582  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7583    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585    break 2
7586  fi
7587done
7588  done
7589IFS=$as_save_IFS
7590
7591fi
7592fi
7593LIPO=$ac_cv_prog_LIPO
7594if test -n "$LIPO"; then
7595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7596$as_echo "$LIPO" >&6; }
7597else
7598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599$as_echo "no" >&6; }
7600fi
7601
7602
7603fi
7604if test -z "$ac_cv_prog_LIPO"; then
7605  ac_ct_LIPO=$LIPO
7606  # Extract the first word of "lipo", so it can be a program name with args.
7607set dummy lipo; ac_word=$2
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609$as_echo_n "checking for $ac_word... " >&6; }
7610if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7611  $as_echo_n "(cached) " >&6
7612else
7613  if test -n "$ac_ct_LIPO"; then
7614  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7615else
7616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617for as_dir in $PATH
7618do
7619  IFS=$as_save_IFS
7620  test -z "$as_dir" && as_dir=.
7621    for ac_exec_ext in '' $ac_executable_extensions; do
7622  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7623    ac_cv_prog_ac_ct_LIPO="lipo"
7624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625    break 2
7626  fi
7627done
7628  done
7629IFS=$as_save_IFS
7630
7631fi
7632fi
7633ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7634if test -n "$ac_ct_LIPO"; then
7635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7636$as_echo "$ac_ct_LIPO" >&6; }
7637else
7638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639$as_echo "no" >&6; }
7640fi
7641
7642  if test "x$ac_ct_LIPO" = x; then
7643    LIPO=":"
7644  else
7645    case $cross_compiling:$ac_tool_warned in
7646yes:)
7647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7649ac_tool_warned=yes ;;
7650esac
7651    LIPO=$ac_ct_LIPO
7652  fi
7653else
7654  LIPO="$ac_cv_prog_LIPO"
7655fi
7656
7657    if test -n "$ac_tool_prefix"; then
7658  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7659set dummy ${ac_tool_prefix}otool; ac_word=$2
7660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661$as_echo_n "checking for $ac_word... " >&6; }
7662if test "${ac_cv_prog_OTOOL+set}" = set; then :
7663  $as_echo_n "(cached) " >&6
7664else
7665  if test -n "$OTOOL"; then
7666  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7667else
7668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669for as_dir in $PATH
7670do
7671  IFS=$as_save_IFS
7672  test -z "$as_dir" && as_dir=.
7673    for ac_exec_ext in '' $ac_executable_extensions; do
7674  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677    break 2
7678  fi
7679done
7680  done
7681IFS=$as_save_IFS
7682
7683fi
7684fi
7685OTOOL=$ac_cv_prog_OTOOL
7686if test -n "$OTOOL"; then
7687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7688$as_echo "$OTOOL" >&6; }
7689else
7690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691$as_echo "no" >&6; }
7692fi
7693
7694
7695fi
7696if test -z "$ac_cv_prog_OTOOL"; then
7697  ac_ct_OTOOL=$OTOOL
7698  # Extract the first word of "otool", so it can be a program name with args.
7699set dummy otool; ac_word=$2
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701$as_echo_n "checking for $ac_word... " >&6; }
7702if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7703  $as_echo_n "(cached) " >&6
7704else
7705  if test -n "$ac_ct_OTOOL"; then
7706  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7707else
7708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709for as_dir in $PATH
7710do
7711  IFS=$as_save_IFS
7712  test -z "$as_dir" && as_dir=.
7713    for ac_exec_ext in '' $ac_executable_extensions; do
7714  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715    ac_cv_prog_ac_ct_OTOOL="otool"
7716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717    break 2
7718  fi
7719done
7720  done
7721IFS=$as_save_IFS
7722
7723fi
7724fi
7725ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7726if test -n "$ac_ct_OTOOL"; then
7727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7728$as_echo "$ac_ct_OTOOL" >&6; }
7729else
7730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731$as_echo "no" >&6; }
7732fi
7733
7734  if test "x$ac_ct_OTOOL" = x; then
7735    OTOOL=":"
7736  else
7737    case $cross_compiling:$ac_tool_warned in
7738yes:)
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7741ac_tool_warned=yes ;;
7742esac
7743    OTOOL=$ac_ct_OTOOL
7744  fi
7745else
7746  OTOOL="$ac_cv_prog_OTOOL"
7747fi
7748
7749    if test -n "$ac_tool_prefix"; then
7750  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7751set dummy ${ac_tool_prefix}otool64; ac_word=$2
7752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753$as_echo_n "checking for $ac_word... " >&6; }
7754if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7755  $as_echo_n "(cached) " >&6
7756else
7757  if test -n "$OTOOL64"; then
7758  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7759else
7760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761for as_dir in $PATH
7762do
7763  IFS=$as_save_IFS
7764  test -z "$as_dir" && as_dir=.
7765    for ac_exec_ext in '' $ac_executable_extensions; do
7766  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7767    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769    break 2
7770  fi
7771done
7772  done
7773IFS=$as_save_IFS
7774
7775fi
7776fi
7777OTOOL64=$ac_cv_prog_OTOOL64
7778if test -n "$OTOOL64"; then
7779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7780$as_echo "$OTOOL64" >&6; }
7781else
7782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783$as_echo "no" >&6; }
7784fi
7785
7786
7787fi
7788if test -z "$ac_cv_prog_OTOOL64"; then
7789  ac_ct_OTOOL64=$OTOOL64
7790  # Extract the first word of "otool64", so it can be a program name with args.
7791set dummy otool64; ac_word=$2
7792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793$as_echo_n "checking for $ac_word... " >&6; }
7794if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7795  $as_echo_n "(cached) " >&6
7796else
7797  if test -n "$ac_ct_OTOOL64"; then
7798  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7799else
7800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801for as_dir in $PATH
7802do
7803  IFS=$as_save_IFS
7804  test -z "$as_dir" && as_dir=.
7805    for ac_exec_ext in '' $ac_executable_extensions; do
7806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807    ac_cv_prog_ac_ct_OTOOL64="otool64"
7808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809    break 2
7810  fi
7811done
7812  done
7813IFS=$as_save_IFS
7814
7815fi
7816fi
7817ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7818if test -n "$ac_ct_OTOOL64"; then
7819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7820$as_echo "$ac_ct_OTOOL64" >&6; }
7821else
7822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823$as_echo "no" >&6; }
7824fi
7825
7826  if test "x$ac_ct_OTOOL64" = x; then
7827    OTOOL64=":"
7828  else
7829    case $cross_compiling:$ac_tool_warned in
7830yes:)
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7833ac_tool_warned=yes ;;
7834esac
7835    OTOOL64=$ac_ct_OTOOL64
7836  fi
7837else
7838  OTOOL64="$ac_cv_prog_OTOOL64"
7839fi
7840
7841
7842
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    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7868$as_echo_n "checking for -single_module linker flag... " >&6; }
7869if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7870  $as_echo_n "(cached) " >&6
7871else
7872  lt_cv_apple_cc_single_mod=no
7873      if test -z "${LT_MULTI_MODULE}"; then
7874	# By default we will add the -single_module flag. You can override
7875	# by either setting the environment variable LT_MULTI_MODULE
7876	# non-empty at configure time, or by adding -multi_module to the
7877	# link flags.
7878	rm -rf libconftest.dylib*
7879	echo "int foo(void){return 1;}" > conftest.c
7880	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7881-dynamiclib -Wl,-single_module conftest.c" >&5
7882	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7883	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7884        _lt_result=$?
7885	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7886	  lt_cv_apple_cc_single_mod=yes
7887	else
7888	  cat conftest.err >&5
7889	fi
7890	rm -rf libconftest.dylib*
7891	rm -f conftest.*
7892      fi
7893fi
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7895$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7896    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7897$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7898if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7899  $as_echo_n "(cached) " >&6
7900else
7901  lt_cv_ld_exported_symbols_list=no
7902      save_LDFLAGS=$LDFLAGS
7903      echo "_main" > conftest.sym
7904      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7905      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906/* end confdefs.h.  */
7907
7908int
7909main ()
7910{
7911
7912  ;
7913  return 0;
7914}
7915_ACEOF
7916if ac_fn_c_try_link "$LINENO"; then :
7917  lt_cv_ld_exported_symbols_list=yes
7918else
7919  lt_cv_ld_exported_symbols_list=no
7920fi
7921rm -f core conftest.err conftest.$ac_objext \
7922    conftest$ac_exeext conftest.$ac_ext
7923	LDFLAGS="$save_LDFLAGS"
7924
7925fi
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7927$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7928    case $host_os in
7929    rhapsody* | darwin1.[012])
7930      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7931    darwin1.*)
7932      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7933    darwin*) # darwin 5.x on
7934      # if running on 10.5 or later, the deployment target defaults
7935      # to the OS version, if on x86, and 10.4, the deployment
7936      # target defaults to 10.4. Don't you love it?
7937      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7938	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7939	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7940	10.[012]*)
7941	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7942	10.*)
7943	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7944      esac
7945    ;;
7946  esac
7947    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7948      _lt_dar_single_mod='$single_module'
7949    fi
7950    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7951      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7952    else
7953      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7954    fi
7955    if test "$DSYMUTIL" != ":"; then
7956      _lt_dsymutil='~$DSYMUTIL $lib || :'
7957    else
7958      _lt_dsymutil=
7959    fi
7960    ;;
7961  esac
7962
7963for ac_header in dlfcn.h
7964do :
7965  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7966"
7967if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7968  cat >>confdefs.h <<_ACEOF
7969#define HAVE_DLFCN_H 1
7970_ACEOF
7971
7972fi
7973
7974done
7975
7976
7977
7978# Set options
7979
7980
7981
7982        enable_dlopen=no
7983
7984
7985  enable_win32_dll=no
7986
7987
7988            # Check whether --enable-shared was given.
7989if test "${enable_shared+set}" = set; then :
7990  enableval=$enable_shared; p=${PACKAGE-default}
7991    case $enableval in
7992    yes) enable_shared=yes ;;
7993    no) enable_shared=no ;;
7994    *)
7995      enable_shared=no
7996      # Look at the argument we got.  We use all the common list separators.
7997      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7998      for pkg in $enableval; do
7999	IFS="$lt_save_ifs"
8000	if test "X$pkg" = "X$p"; then
8001	  enable_shared=yes
8002	fi
8003      done
8004      IFS="$lt_save_ifs"
8005      ;;
8006    esac
8007else
8008  enable_shared=yes
8009fi
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019  # Check whether --enable-static was given.
8020if test "${enable_static+set}" = set; then :
8021  enableval=$enable_static; p=${PACKAGE-default}
8022    case $enableval in
8023    yes) enable_static=yes ;;
8024    no) enable_static=no ;;
8025    *)
8026     enable_static=no
8027      # Look at the argument we got.  We use all the common list separators.
8028      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8029      for pkg in $enableval; do
8030	IFS="$lt_save_ifs"
8031	if test "X$pkg" = "X$p"; then
8032	  enable_static=yes
8033	fi
8034      done
8035      IFS="$lt_save_ifs"
8036      ;;
8037    esac
8038else
8039  enable_static=yes
8040fi
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051# Check whether --with-pic was given.
8052if test "${with_pic+set}" = set; then :
8053  withval=$with_pic; pic_mode="$withval"
8054else
8055  pic_mode=default
8056fi
8057
8058
8059test -z "$pic_mode" && pic_mode=default
8060
8061
8062
8063
8064
8065
8066
8067  # Check whether --enable-fast-install was given.
8068if test "${enable_fast_install+set}" = set; then :
8069  enableval=$enable_fast_install; p=${PACKAGE-default}
8070    case $enableval in
8071    yes) enable_fast_install=yes ;;
8072    no) enable_fast_install=no ;;
8073    *)
8074      enable_fast_install=no
8075      # Look at the argument we got.  We use all the common list separators.
8076      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8077      for pkg in $enableval; do
8078	IFS="$lt_save_ifs"
8079	if test "X$pkg" = "X$p"; then
8080	  enable_fast_install=yes
8081	fi
8082      done
8083      IFS="$lt_save_ifs"
8084      ;;
8085    esac
8086else
8087  enable_fast_install=yes
8088fi
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100# This can be used to rebuild libtool when needed
8101LIBTOOL_DEPS="$ltmain"
8102
8103# Always use our own libtool.
8104LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130test -z "$LN_S" && LN_S="ln -s"
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145if test -n "${ZSH_VERSION+set}" ; then
8146   setopt NO_GLOB_SUBST
8147fi
8148
8149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8150$as_echo_n "checking for objdir... " >&6; }
8151if test "${lt_cv_objdir+set}" = set; then :
8152  $as_echo_n "(cached) " >&6
8153else
8154  rm -f .libs 2>/dev/null
8155mkdir .libs 2>/dev/null
8156if test -d .libs; then
8157  lt_cv_objdir=.libs
8158else
8159  # MS-DOS does not allow filenames that begin with a dot.
8160  lt_cv_objdir=_libs
8161fi
8162rmdir .libs 2>/dev/null
8163fi
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8165$as_echo "$lt_cv_objdir" >&6; }
8166objdir=$lt_cv_objdir
8167
8168
8169
8170
8171
8172cat >>confdefs.h <<_ACEOF
8173#define LT_OBJDIR "$lt_cv_objdir/"
8174_ACEOF
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192case $host_os in
8193aix3*)
8194  # AIX sometimes has problems with the GCC collect2 program.  For some
8195  # reason, if we set the COLLECT_NAMES environment variable, the problems
8196  # vanish in a puff of smoke.
8197  if test "X${COLLECT_NAMES+set}" != Xset; then
8198    COLLECT_NAMES=
8199    export COLLECT_NAMES
8200  fi
8201  ;;
8202esac
8203
8204# Sed substitution that helps us do robust quoting.  It backslashifies
8205# metacharacters that are still active within double-quoted strings.
8206sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8207
8208# Same as above, but do not quote variable references.
8209double_quote_subst='s/\(["`\\]\)/\\\1/g'
8210
8211# Sed substitution to delay expansion of an escaped shell variable in a
8212# double_quote_subst'ed string.
8213delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8214
8215# Sed substitution to delay expansion of an escaped single quote.
8216delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8217
8218# Sed substitution to avoid accidental globbing in evaled expressions
8219no_glob_subst='s/\*/\\\*/g'
8220
8221# Global variables:
8222ofile=libtool
8223can_build_shared=yes
8224
8225# All known linkers require a `.a' archive for static linking (except MSVC,
8226# which needs '.lib').
8227libext=a
8228
8229with_gnu_ld="$lt_cv_prog_gnu_ld"
8230
8231old_CC="$CC"
8232old_CFLAGS="$CFLAGS"
8233
8234# Set sane defaults for various variables
8235test -z "$CC" && CC=cc
8236test -z "$LTCC" && LTCC=$CC
8237test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8238test -z "$LD" && LD=ld
8239test -z "$ac_objext" && ac_objext=o
8240
8241for cc_temp in $compiler""; do
8242  case $cc_temp in
8243    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8244    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8245    \-*) ;;
8246    *) break;;
8247  esac
8248done
8249cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8250
8251
8252# Only perform the check for file, if the check method requires it
8253test -z "$MAGIC_CMD" && MAGIC_CMD=file
8254case $deplibs_check_method in
8255file_magic*)
8256  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8257    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8258$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8259if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8260  $as_echo_n "(cached) " >&6
8261else
8262  case $MAGIC_CMD in
8263[\\/*] |  ?:[\\/]*)
8264  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8265  ;;
8266*)
8267  lt_save_MAGIC_CMD="$MAGIC_CMD"
8268  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8269  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8270  for ac_dir in $ac_dummy; do
8271    IFS="$lt_save_ifs"
8272    test -z "$ac_dir" && ac_dir=.
8273    if test -f $ac_dir/${ac_tool_prefix}file; then
8274      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8275      if test -n "$file_magic_test_file"; then
8276	case $deplibs_check_method in
8277	"file_magic "*)
8278	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8279	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8280	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8281	    $EGREP "$file_magic_regex" > /dev/null; then
8282	    :
8283	  else
8284	    cat <<_LT_EOF 1>&2
8285
8286*** Warning: the command libtool uses to detect shared libraries,
8287*** $file_magic_cmd, produces output that libtool cannot recognize.
8288*** The result is that libtool may fail to recognize shared libraries
8289*** as such.  This will affect the creation of libtool libraries that
8290*** depend on shared libraries, but programs linked with such libtool
8291*** libraries will work regardless of this problem.  Nevertheless, you
8292*** may want to report the problem to your system manager and/or to
8293*** bug-libtool@gnu.org
8294
8295_LT_EOF
8296	  fi ;;
8297	esac
8298      fi
8299      break
8300    fi
8301  done
8302  IFS="$lt_save_ifs"
8303  MAGIC_CMD="$lt_save_MAGIC_CMD"
8304  ;;
8305esac
8306fi
8307
8308MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8309if test -n "$MAGIC_CMD"; then
8310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8311$as_echo "$MAGIC_CMD" >&6; }
8312else
8313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314$as_echo "no" >&6; }
8315fi
8316
8317
8318
8319
8320
8321if test -z "$lt_cv_path_MAGIC_CMD"; then
8322  if test -n "$ac_tool_prefix"; then
8323    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8324$as_echo_n "checking for file... " >&6; }
8325if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8326  $as_echo_n "(cached) " >&6
8327else
8328  case $MAGIC_CMD in
8329[\\/*] |  ?:[\\/]*)
8330  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8331  ;;
8332*)
8333  lt_save_MAGIC_CMD="$MAGIC_CMD"
8334  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8335  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8336  for ac_dir in $ac_dummy; do
8337    IFS="$lt_save_ifs"
8338    test -z "$ac_dir" && ac_dir=.
8339    if test -f $ac_dir/file; then
8340      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8341      if test -n "$file_magic_test_file"; then
8342	case $deplibs_check_method in
8343	"file_magic "*)
8344	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8345	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8346	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8347	    $EGREP "$file_magic_regex" > /dev/null; then
8348	    :
8349	  else
8350	    cat <<_LT_EOF 1>&2
8351
8352*** Warning: the command libtool uses to detect shared libraries,
8353*** $file_magic_cmd, produces output that libtool cannot recognize.
8354*** The result is that libtool may fail to recognize shared libraries
8355*** as such.  This will affect the creation of libtool libraries that
8356*** depend on shared libraries, but programs linked with such libtool
8357*** libraries will work regardless of this problem.  Nevertheless, you
8358*** may want to report the problem to your system manager and/or to
8359*** bug-libtool@gnu.org
8360
8361_LT_EOF
8362	  fi ;;
8363	esac
8364      fi
8365      break
8366    fi
8367  done
8368  IFS="$lt_save_ifs"
8369  MAGIC_CMD="$lt_save_MAGIC_CMD"
8370  ;;
8371esac
8372fi
8373
8374MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8375if test -n "$MAGIC_CMD"; then
8376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8377$as_echo "$MAGIC_CMD" >&6; }
8378else
8379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380$as_echo "no" >&6; }
8381fi
8382
8383
8384  else
8385    MAGIC_CMD=:
8386  fi
8387fi
8388
8389  fi
8390  ;;
8391esac
8392
8393# Use C for the default configuration in the libtool script
8394
8395lt_save_CC="$CC"
8396ac_ext=c
8397ac_cpp='$CPP $CPPFLAGS'
8398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8400ac_compiler_gnu=$ac_cv_c_compiler_gnu
8401
8402
8403# Source file extension for C test sources.
8404ac_ext=c
8405
8406# Object file extension for compiled C test sources.
8407objext=o
8408objext=$objext
8409
8410# Code to be used in simple compile tests
8411lt_simple_compile_test_code="int some_variable = 0;"
8412
8413# Code to be used in simple link tests
8414lt_simple_link_test_code='int main(){return(0);}'
8415
8416
8417
8418
8419
8420
8421
8422# If no C compiler was specified, use CC.
8423LTCC=${LTCC-"$CC"}
8424
8425# If no C compiler flags were specified, use CFLAGS.
8426LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8427
8428# Allow CC to be a program name with arguments.
8429compiler=$CC
8430
8431# Save the default compiler, since it gets overwritten when the other
8432# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8433compiler_DEFAULT=$CC
8434
8435# save warnings/boilerplate of simple test code
8436ac_outfile=conftest.$ac_objext
8437echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8438eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8439_lt_compiler_boilerplate=`cat conftest.err`
8440$RM conftest*
8441
8442ac_outfile=conftest.$ac_objext
8443echo "$lt_simple_link_test_code" >conftest.$ac_ext
8444eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8445_lt_linker_boilerplate=`cat conftest.err`
8446$RM -r conftest*
8447
8448
8449if test -n "$compiler"; then
8450
8451lt_prog_compiler_no_builtin_flag=
8452
8453if test "$GCC" = yes; then
8454  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8455
8456  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8457$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8458if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8459  $as_echo_n "(cached) " >&6
8460else
8461  lt_cv_prog_compiler_rtti_exceptions=no
8462   ac_outfile=conftest.$ac_objext
8463   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8464   lt_compiler_flag="-fno-rtti -fno-exceptions"
8465   # Insert the option either (1) after the last *FLAGS variable, or
8466   # (2) before a word containing "conftest.", or (3) at the end.
8467   # Note that $ac_compile itself does not contain backslashes and begins
8468   # with a dollar sign (not a hyphen), so the echo should work correctly.
8469   # The option is referenced via a variable to avoid confusing sed.
8470   lt_compile=`echo "$ac_compile" | $SED \
8471   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8472   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8473   -e 's:$: $lt_compiler_flag:'`
8474   (eval echo "\"\$as_me:8474: $lt_compile\"" >&5)
8475   (eval "$lt_compile" 2>conftest.err)
8476   ac_status=$?
8477   cat conftest.err >&5
8478   echo "$as_me:8478: \$? = $ac_status" >&5
8479   if (exit $ac_status) && test -s "$ac_outfile"; then
8480     # The compiler can only warn and ignore the option if not recognized
8481     # So say no if there are warnings other than the usual output.
8482     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8483     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8484     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8485       lt_cv_prog_compiler_rtti_exceptions=yes
8486     fi
8487   fi
8488   $RM conftest*
8489
8490fi
8491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8492$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8493
8494if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8495    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8496else
8497    :
8498fi
8499
8500fi
8501
8502
8503
8504
8505
8506
8507  lt_prog_compiler_wl=
8508lt_prog_compiler_pic=
8509lt_prog_compiler_static=
8510
8511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8512$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8513
8514  if test "$GCC" = yes; then
8515    lt_prog_compiler_wl='-Wl,'
8516    lt_prog_compiler_static='-static'
8517
8518    case $host_os in
8519      aix*)
8520      # All AIX code is PIC.
8521      if test "$host_cpu" = ia64; then
8522	# AIX 5 now supports IA64 processor
8523	lt_prog_compiler_static='-Bstatic'
8524      fi
8525      ;;
8526
8527    amigaos*)
8528      case $host_cpu in
8529      powerpc)
8530            # see comment about AmigaOS4 .so support
8531            lt_prog_compiler_pic='-fPIC'
8532        ;;
8533      m68k)
8534            # FIXME: we need at least 68020 code to build shared libraries, but
8535            # adding the `-m68020' flag to GCC prevents building anything better,
8536            # like `-m68040'.
8537            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8538        ;;
8539      esac
8540      ;;
8541
8542    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8543      # PIC is the default for these OSes.
8544      ;;
8545
8546    mingw* | cygwin* | pw32* | os2* | cegcc*)
8547      # This hack is so that the source file can tell whether it is being
8548      # built for inclusion in a dll (and should export symbols for example).
8549      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8550      # (--disable-auto-import) libraries
8551      lt_prog_compiler_pic='-DDLL_EXPORT'
8552      ;;
8553
8554    darwin* | rhapsody*)
8555      # PIC is the default on this platform
8556      # Common symbols not allowed in MH_DYLIB files
8557      lt_prog_compiler_pic='-fno-common'
8558      ;;
8559
8560    hpux*)
8561      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8562      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8563      # sets the default TLS model and affects inlining.
8564      case $host_cpu in
8565      hppa*64*)
8566	# +Z the default
8567	;;
8568      *)
8569	lt_prog_compiler_pic='-fPIC'
8570	;;
8571      esac
8572      ;;
8573
8574    interix[3-9]*)
8575      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8576      # Instead, we relocate shared libraries at runtime.
8577      ;;
8578
8579    msdosdjgpp*)
8580      # Just because we use GCC doesn't mean we suddenly get shared libraries
8581      # on systems that don't support them.
8582      lt_prog_compiler_can_build_shared=no
8583      enable_shared=no
8584      ;;
8585
8586    *nto* | *qnx*)
8587      # QNX uses GNU C++, but need to define -shared option too, otherwise
8588      # it will coredump.
8589      lt_prog_compiler_pic='-fPIC -shared'
8590      ;;
8591
8592    sysv4*MP*)
8593      if test -d /usr/nec; then
8594	lt_prog_compiler_pic=-Kconform_pic
8595      fi
8596      ;;
8597
8598    *)
8599      lt_prog_compiler_pic='-fPIC'
8600      ;;
8601    esac
8602  else
8603    # PORTME Check for flag to pass linker flags through the system compiler.
8604    case $host_os in
8605    aix*)
8606      lt_prog_compiler_wl='-Wl,'
8607      if test "$host_cpu" = ia64; then
8608	# AIX 5 now supports IA64 processor
8609	lt_prog_compiler_static='-Bstatic'
8610      else
8611	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8612      fi
8613      ;;
8614
8615    mingw* | cygwin* | pw32* | os2* | cegcc*)
8616      # This hack is so that the source file can tell whether it is being
8617      # built for inclusion in a dll (and should export symbols for example).
8618      lt_prog_compiler_pic='-DDLL_EXPORT'
8619      ;;
8620
8621    hpux9* | hpux10* | hpux11*)
8622      lt_prog_compiler_wl='-Wl,'
8623      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8624      # not for PA HP-UX.
8625      case $host_cpu in
8626      hppa*64*|ia64*)
8627	# +Z the default
8628	;;
8629      *)
8630	lt_prog_compiler_pic='+Z'
8631	;;
8632      esac
8633      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8634      lt_prog_compiler_static='${wl}-a ${wl}archive'
8635      ;;
8636
8637    irix5* | irix6* | nonstopux*)
8638      lt_prog_compiler_wl='-Wl,'
8639      # PIC (with -KPIC) is the default.
8640      lt_prog_compiler_static='-non_shared'
8641      ;;
8642
8643    linux* | k*bsd*-gnu)
8644      case $cc_basename in
8645      # old Intel for x86_64 which still supported -KPIC.
8646      ecc*)
8647	lt_prog_compiler_wl='-Wl,'
8648	lt_prog_compiler_pic='-KPIC'
8649	lt_prog_compiler_static='-static'
8650        ;;
8651      # icc used to be incompatible with GCC.
8652      # ICC 10 doesn't accept -KPIC any more.
8653      icc* | ifort*)
8654	lt_prog_compiler_wl='-Wl,'
8655	lt_prog_compiler_pic='-fPIC'
8656	lt_prog_compiler_static='-static'
8657        ;;
8658      # Lahey Fortran 8.1.
8659      lf95*)
8660	lt_prog_compiler_wl='-Wl,'
8661	lt_prog_compiler_pic='--shared'
8662	lt_prog_compiler_static='--static'
8663	;;
8664      pgcc* | pgf77* | pgf90* | pgf95*)
8665        # Portland Group compilers (*not* the Pentium gcc compiler,
8666	# which looks to be a dead project)
8667	lt_prog_compiler_wl='-Wl,'
8668	lt_prog_compiler_pic='-fpic'
8669	lt_prog_compiler_static='-Bstatic'
8670        ;;
8671      ccc*)
8672        lt_prog_compiler_wl='-Wl,'
8673        # All Alpha code is PIC.
8674        lt_prog_compiler_static='-non_shared'
8675        ;;
8676      xl*)
8677	# IBM XL C 8.0/Fortran 10.1 on PPC
8678	lt_prog_compiler_wl='-Wl,'
8679	lt_prog_compiler_pic='-qpic'
8680	lt_prog_compiler_static='-qstaticlink'
8681	;;
8682      *)
8683	case `$CC -V 2>&1 | sed 5q` in
8684	*Sun\ C*)
8685	  # Sun C 5.9
8686	  lt_prog_compiler_pic='-KPIC'
8687	  lt_prog_compiler_static='-Bstatic'
8688	  lt_prog_compiler_wl='-Wl,'
8689	  ;;
8690	*Sun\ F*)
8691	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8692	  lt_prog_compiler_pic='-KPIC'
8693	  lt_prog_compiler_static='-Bstatic'
8694	  lt_prog_compiler_wl=''
8695	  ;;
8696	esac
8697	;;
8698      esac
8699      ;;
8700
8701    newsos6)
8702      lt_prog_compiler_pic='-KPIC'
8703      lt_prog_compiler_static='-Bstatic'
8704      ;;
8705
8706    *nto* | *qnx*)
8707      # QNX uses GNU C++, but need to define -shared option too, otherwise
8708      # it will coredump.
8709      lt_prog_compiler_pic='-fPIC -shared'
8710      ;;
8711
8712    osf3* | osf4* | osf5*)
8713      lt_prog_compiler_wl='-Wl,'
8714      # All OSF/1 code is PIC.
8715      lt_prog_compiler_static='-non_shared'
8716      ;;
8717
8718    rdos*)
8719      lt_prog_compiler_static='-non_shared'
8720      ;;
8721
8722    solaris*)
8723      lt_prog_compiler_pic='-KPIC'
8724      lt_prog_compiler_static='-Bstatic'
8725      case $cc_basename in
8726      f77* | f90* | f95*)
8727	lt_prog_compiler_wl='-Qoption ld ';;
8728      *)
8729	lt_prog_compiler_wl='-Wl,';;
8730      esac
8731      ;;
8732
8733    sunos4*)
8734      lt_prog_compiler_wl='-Qoption ld '
8735      lt_prog_compiler_pic='-PIC'
8736      lt_prog_compiler_static='-Bstatic'
8737      ;;
8738
8739    sysv4 | sysv4.2uw2* | sysv4.3*)
8740      lt_prog_compiler_wl='-Wl,'
8741      lt_prog_compiler_pic='-KPIC'
8742      lt_prog_compiler_static='-Bstatic'
8743      ;;
8744
8745    sysv4*MP*)
8746      if test -d /usr/nec ;then
8747	lt_prog_compiler_pic='-Kconform_pic'
8748	lt_prog_compiler_static='-Bstatic'
8749      fi
8750      ;;
8751
8752    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8753      lt_prog_compiler_wl='-Wl,'
8754      lt_prog_compiler_pic='-KPIC'
8755      lt_prog_compiler_static='-Bstatic'
8756      ;;
8757
8758    unicos*)
8759      lt_prog_compiler_wl='-Wl,'
8760      lt_prog_compiler_can_build_shared=no
8761      ;;
8762
8763    uts4*)
8764      lt_prog_compiler_pic='-pic'
8765      lt_prog_compiler_static='-Bstatic'
8766      ;;
8767
8768    *)
8769      lt_prog_compiler_can_build_shared=no
8770      ;;
8771    esac
8772  fi
8773
8774case $host_os in
8775  # For platforms which do not support PIC, -DPIC is meaningless:
8776  *djgpp*)
8777    lt_prog_compiler_pic=
8778    ;;
8779  *)
8780    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8781    ;;
8782esac
8783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8784$as_echo "$lt_prog_compiler_pic" >&6; }
8785
8786
8787
8788
8789
8790
8791#
8792# Check to make sure the PIC flag actually works.
8793#
8794if test -n "$lt_prog_compiler_pic"; then
8795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8796$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8797if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8798  $as_echo_n "(cached) " >&6
8799else
8800  lt_cv_prog_compiler_pic_works=no
8801   ac_outfile=conftest.$ac_objext
8802   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8803   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8804   # Insert the option either (1) after the last *FLAGS variable, or
8805   # (2) before a word containing "conftest.", or (3) at the end.
8806   # Note that $ac_compile itself does not contain backslashes and begins
8807   # with a dollar sign (not a hyphen), so the echo should work correctly.
8808   # The option is referenced via a variable to avoid confusing sed.
8809   lt_compile=`echo "$ac_compile" | $SED \
8810   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8811   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8812   -e 's:$: $lt_compiler_flag:'`
8813   (eval echo "\"\$as_me:8813: $lt_compile\"" >&5)
8814   (eval "$lt_compile" 2>conftest.err)
8815   ac_status=$?
8816   cat conftest.err >&5
8817   echo "$as_me:8817: \$? = $ac_status" >&5
8818   if (exit $ac_status) && test -s "$ac_outfile"; then
8819     # The compiler can only warn and ignore the option if not recognized
8820     # So say no if there are warnings other than the usual output.
8821     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8822     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8823     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8824       lt_cv_prog_compiler_pic_works=yes
8825     fi
8826   fi
8827   $RM conftest*
8828
8829fi
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8831$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8832
8833if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8834    case $lt_prog_compiler_pic in
8835     "" | " "*) ;;
8836     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8837     esac
8838else
8839    lt_prog_compiler_pic=
8840     lt_prog_compiler_can_build_shared=no
8841fi
8842
8843fi
8844
8845
8846
8847
8848
8849
8850#
8851# Check to make sure the static flag actually works.
8852#
8853wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8855$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8856if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8857  $as_echo_n "(cached) " >&6
8858else
8859  lt_cv_prog_compiler_static_works=no
8860   save_LDFLAGS="$LDFLAGS"
8861   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8862   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8863   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8864     # The linker can only warn and ignore the option if not recognized
8865     # So say no if there are warnings
8866     if test -s conftest.err; then
8867       # Append any errors to the config.log.
8868       cat conftest.err 1>&5
8869       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8870       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8871       if diff conftest.exp conftest.er2 >/dev/null; then
8872         lt_cv_prog_compiler_static_works=yes
8873       fi
8874     else
8875       lt_cv_prog_compiler_static_works=yes
8876     fi
8877   fi
8878   $RM -r conftest*
8879   LDFLAGS="$save_LDFLAGS"
8880
8881fi
8882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8883$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8884
8885if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8886    :
8887else
8888    lt_prog_compiler_static=
8889fi
8890
8891
8892
8893
8894
8895
8896
8897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8898$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8899if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8900  $as_echo_n "(cached) " >&6
8901else
8902  lt_cv_prog_compiler_c_o=no
8903   $RM -r conftest 2>/dev/null
8904   mkdir conftest
8905   cd conftest
8906   mkdir out
8907   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8908
8909   lt_compiler_flag="-o out/conftest2.$ac_objext"
8910   # Insert the option either (1) after the last *FLAGS variable, or
8911   # (2) before a word containing "conftest.", or (3) at the end.
8912   # Note that $ac_compile itself does not contain backslashes and begins
8913   # with a dollar sign (not a hyphen), so the echo should work correctly.
8914   lt_compile=`echo "$ac_compile" | $SED \
8915   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8916   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8917   -e 's:$: $lt_compiler_flag:'`
8918   (eval echo "\"\$as_me:8918: $lt_compile\"" >&5)
8919   (eval "$lt_compile" 2>out/conftest.err)
8920   ac_status=$?
8921   cat out/conftest.err >&5
8922   echo "$as_me:8922: \$? = $ac_status" >&5
8923   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8924   then
8925     # The compiler can only warn and ignore the option if not recognized
8926     # So say no if there are warnings
8927     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8928     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8929     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8930       lt_cv_prog_compiler_c_o=yes
8931     fi
8932   fi
8933   chmod u+w . 2>&5
8934   $RM conftest*
8935   # SGI C++ compiler will create directory out/ii_files/ for
8936   # template instantiation
8937   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8938   $RM out/* && rmdir out
8939   cd ..
8940   $RM -r conftest
8941   $RM conftest*
8942
8943fi
8944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8945$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8946
8947
8948
8949
8950
8951
8952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8953$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8954if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8955  $as_echo_n "(cached) " >&6
8956else
8957  lt_cv_prog_compiler_c_o=no
8958   $RM -r conftest 2>/dev/null
8959   mkdir conftest
8960   cd conftest
8961   mkdir out
8962   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8963
8964   lt_compiler_flag="-o out/conftest2.$ac_objext"
8965   # Insert the option either (1) after the last *FLAGS variable, or
8966   # (2) before a word containing "conftest.", or (3) at the end.
8967   # Note that $ac_compile itself does not contain backslashes and begins
8968   # with a dollar sign (not a hyphen), so the echo should work correctly.
8969   lt_compile=`echo "$ac_compile" | $SED \
8970   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8971   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8972   -e 's:$: $lt_compiler_flag:'`
8973   (eval echo "\"\$as_me:8973: $lt_compile\"" >&5)
8974   (eval "$lt_compile" 2>out/conftest.err)
8975   ac_status=$?
8976   cat out/conftest.err >&5
8977   echo "$as_me:8977: \$? = $ac_status" >&5
8978   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8979   then
8980     # The compiler can only warn and ignore the option if not recognized
8981     # So say no if there are warnings
8982     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8983     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8984     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8985       lt_cv_prog_compiler_c_o=yes
8986     fi
8987   fi
8988   chmod u+w . 2>&5
8989   $RM conftest*
8990   # SGI C++ compiler will create directory out/ii_files/ for
8991   # template instantiation
8992   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8993   $RM out/* && rmdir out
8994   cd ..
8995   $RM -r conftest
8996   $RM conftest*
8997
8998fi
8999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9000$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9001
9002
9003
9004
9005hard_links="nottested"
9006if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9007  # do not overwrite the value of need_locks provided by the user
9008  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9009$as_echo_n "checking if we can lock with hard links... " >&6; }
9010  hard_links=yes
9011  $RM conftest*
9012  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9013  touch conftest.a
9014  ln conftest.a conftest.b 2>&5 || hard_links=no
9015  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9017$as_echo "$hard_links" >&6; }
9018  if test "$hard_links" = no; then
9019    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9020$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9021    need_locks=warn
9022  fi
9023else
9024  need_locks=no
9025fi
9026
9027
9028
9029
9030
9031
9032  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9033$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9034
9035  runpath_var=
9036  allow_undefined_flag=
9037  always_export_symbols=no
9038  archive_cmds=
9039  archive_expsym_cmds=
9040  compiler_needs_object=no
9041  enable_shared_with_static_runtimes=no
9042  export_dynamic_flag_spec=
9043  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9044  hardcode_automatic=no
9045  hardcode_direct=no
9046  hardcode_direct_absolute=no
9047  hardcode_libdir_flag_spec=
9048  hardcode_libdir_flag_spec_ld=
9049  hardcode_libdir_separator=
9050  hardcode_minus_L=no
9051  hardcode_shlibpath_var=unsupported
9052  inherit_rpath=no
9053  link_all_deplibs=unknown
9054  module_cmds=
9055  module_expsym_cmds=
9056  old_archive_from_new_cmds=
9057  old_archive_from_expsyms_cmds=
9058  thread_safe_flag_spec=
9059  whole_archive_flag_spec=
9060  # include_expsyms should be a list of space-separated symbols to be *always*
9061  # included in the symbol list
9062  include_expsyms=
9063  # exclude_expsyms can be an extended regexp of symbols to exclude
9064  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9065  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9066  # as well as any symbol that contains `d'.
9067  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9068  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9069  # platforms (ab)use it in PIC code, but their linkers get confused if
9070  # the symbol is explicitly referenced.  Since portable code cannot
9071  # rely on this symbol name, it's probably fine to never include it in
9072  # preloaded symbol tables.
9073  # Exclude shared library initialization/finalization symbols.
9074  extract_expsyms_cmds=
9075
9076  case $host_os in
9077  cygwin* | mingw* | pw32* | cegcc*)
9078    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9079    # When not using gcc, we currently assume that we are using
9080    # Microsoft Visual C++.
9081    if test "$GCC" != yes; then
9082      with_gnu_ld=no
9083    fi
9084    ;;
9085  interix*)
9086    # we just hope/assume this is gcc and not c89 (= MSVC++)
9087    with_gnu_ld=yes
9088    ;;
9089  openbsd*)
9090    with_gnu_ld=no
9091    ;;
9092  esac
9093
9094  ld_shlibs=yes
9095  if test "$with_gnu_ld" = yes; then
9096    # If archive_cmds runs LD, not CC, wlarc should be empty
9097    wlarc='${wl}'
9098
9099    # Set some defaults for GNU ld with shared library support. These
9100    # are reset later if shared libraries are not supported. Putting them
9101    # here allows them to be overridden if necessary.
9102    runpath_var=LD_RUN_PATH
9103    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9104    export_dynamic_flag_spec='${wl}--export-dynamic'
9105    # ancient GNU ld didn't support --whole-archive et. al.
9106    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9107      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9108    else
9109      whole_archive_flag_spec=
9110    fi
9111    supports_anon_versioning=no
9112    case `$LD -v 2>&1` in
9113      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9114      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9115      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9116      *\ 2.11.*) ;; # other 2.11 versions
9117      *) supports_anon_versioning=yes ;;
9118    esac
9119
9120    # See if GNU ld supports shared libraries.
9121    case $host_os in
9122    aix[3-9]*)
9123      # On AIX/PPC, the GNU linker is very broken
9124      if test "$host_cpu" != ia64; then
9125	ld_shlibs=no
9126	cat <<_LT_EOF 1>&2
9127
9128*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9129*** to be unable to reliably create shared libraries on AIX.
9130*** Therefore, libtool is disabling shared libraries support.  If you
9131*** really care for shared libraries, you may want to modify your PATH
9132*** so that a non-GNU linker is found, and then restart.
9133
9134_LT_EOF
9135      fi
9136      ;;
9137
9138    amigaos*)
9139      case $host_cpu in
9140      powerpc)
9141            # see comment about AmigaOS4 .so support
9142            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9143            archive_expsym_cmds=''
9144        ;;
9145      m68k)
9146            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)'
9147            hardcode_libdir_flag_spec='-L$libdir'
9148            hardcode_minus_L=yes
9149        ;;
9150      esac
9151      ;;
9152
9153    beos*)
9154      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9155	allow_undefined_flag=unsupported
9156	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9157	# support --undefined.  This deserves some investigation.  FIXME
9158	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9159      else
9160	ld_shlibs=no
9161      fi
9162      ;;
9163
9164    cygwin* | mingw* | pw32* | cegcc*)
9165      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9166      # as there is no search path for DLLs.
9167      hardcode_libdir_flag_spec='-L$libdir'
9168      allow_undefined_flag=unsupported
9169      always_export_symbols=no
9170      enable_shared_with_static_runtimes=yes
9171      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9172
9173      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9174        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9175	# If the export-symbols file already is a .def file (1st line
9176	# is EXPORTS), use it as is; otherwise, prepend...
9177	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9178	  cp $export_symbols $output_objdir/$soname.def;
9179	else
9180	  echo EXPORTS > $output_objdir/$soname.def;
9181	  cat $export_symbols >> $output_objdir/$soname.def;
9182	fi~
9183	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9184      else
9185	ld_shlibs=no
9186      fi
9187      ;;
9188
9189    interix[3-9]*)
9190      hardcode_direct=no
9191      hardcode_shlibpath_var=no
9192      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9193      export_dynamic_flag_spec='${wl}-E'
9194      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9195      # Instead, shared libraries are loaded at an image base (0x10000000 by
9196      # default) and relocated if they conflict, which is a slow very memory
9197      # consuming and fragmenting process.  To avoid this, we pick a random,
9198      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9199      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9200      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9201      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'
9202      ;;
9203
9204    gnu* | linux* | tpf* | k*bsd*-gnu)
9205      tmp_diet=no
9206      if test "$host_os" = linux-dietlibc; then
9207	case $cc_basename in
9208	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9209	esac
9210      fi
9211      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9212	 && test "$tmp_diet" = no
9213      then
9214	tmp_addflag=
9215	tmp_sharedflag='-shared'
9216	case $cc_basename,$host_cpu in
9217        pgcc*)				# Portland Group C compiler
9218	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9219	  tmp_addflag=' $pic_flag'
9220	  ;;
9221	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9222	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9223	  tmp_addflag=' $pic_flag -Mnomain' ;;
9224	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9225	  tmp_addflag=' -i_dynamic' ;;
9226	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9227	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9228	ifc* | ifort*)			# Intel Fortran compiler
9229	  tmp_addflag=' -nofor_main' ;;
9230	lf95*)				# Lahey Fortran 8.1
9231	  whole_archive_flag_spec=
9232	  tmp_sharedflag='--shared' ;;
9233	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9234	  tmp_sharedflag='-qmkshrobj'
9235	  tmp_addflag= ;;
9236	esac
9237	case `$CC -V 2>&1 | sed 5q` in
9238	*Sun\ C*)			# Sun C 5.9
9239	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9240	  compiler_needs_object=yes
9241	  tmp_sharedflag='-G' ;;
9242	*Sun\ F*)			# Sun Fortran 8.3
9243	  tmp_sharedflag='-G' ;;
9244	esac
9245	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9246
9247        if test "x$supports_anon_versioning" = xyes; then
9248          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9249	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9250	    echo "local: *; };" >> $output_objdir/$libname.ver~
9251	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9252        fi
9253
9254	case $cc_basename in
9255	xlf*)
9256	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9257	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9258	  hardcode_libdir_flag_spec=
9259	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9260	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9261	  if test "x$supports_anon_versioning" = xyes; then
9262	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9263	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9264	      echo "local: *; };" >> $output_objdir/$libname.ver~
9265	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9266	  fi
9267	  ;;
9268	esac
9269      else
9270        ld_shlibs=no
9271      fi
9272      ;;
9273
9274    netbsd*)
9275      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9276	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9277	wlarc=
9278      else
9279	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9280	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9281      fi
9282      ;;
9283
9284    solaris*)
9285      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9286	ld_shlibs=no
9287	cat <<_LT_EOF 1>&2
9288
9289*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9290*** create shared libraries on Solaris systems.  Therefore, libtool
9291*** is disabling shared libraries support.  We urge you to upgrade GNU
9292*** binutils to release 2.9.1 or newer.  Another option is to modify
9293*** your PATH or compiler configuration so that the native linker is
9294*** used, and then restart.
9295
9296_LT_EOF
9297      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9298	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9300      else
9301	ld_shlibs=no
9302      fi
9303      ;;
9304
9305    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9306      case `$LD -v 2>&1` in
9307        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9308	ld_shlibs=no
9309	cat <<_LT_EOF 1>&2
9310
9311*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9312*** reliably create shared libraries on SCO systems.  Therefore, libtool
9313*** is disabling shared libraries support.  We urge you to upgrade GNU
9314*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9315*** your PATH or compiler configuration so that the native linker is
9316*** used, and then restart.
9317
9318_LT_EOF
9319	;;
9320	*)
9321	  # For security reasons, it is highly recommended that you always
9322	  # use absolute paths for naming shared libraries, and exclude the
9323	  # DT_RUNPATH tag from executables and libraries.  But doing so
9324	  # requires that you compile everything twice, which is a pain.
9325	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9326	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9327	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9328	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9329	  else
9330	    ld_shlibs=no
9331	  fi
9332	;;
9333      esac
9334      ;;
9335
9336    sunos4*)
9337      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9338      wlarc=
9339      hardcode_direct=yes
9340      hardcode_shlibpath_var=no
9341      ;;
9342
9343    *)
9344      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9345	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9346	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9347      else
9348	ld_shlibs=no
9349      fi
9350      ;;
9351    esac
9352
9353    if test "$ld_shlibs" = no; then
9354      runpath_var=
9355      hardcode_libdir_flag_spec=
9356      export_dynamic_flag_spec=
9357      whole_archive_flag_spec=
9358    fi
9359  else
9360    # PORTME fill in a description of your system's linker (not GNU ld)
9361    case $host_os in
9362    aix3*)
9363      allow_undefined_flag=unsupported
9364      always_export_symbols=yes
9365      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'
9366      # Note: this linker hardcodes the directories in LIBPATH if there
9367      # are no directories specified by -L.
9368      hardcode_minus_L=yes
9369      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9370	# Neither direct hardcoding nor static linking is supported with a
9371	# broken collect2.
9372	hardcode_direct=unsupported
9373      fi
9374      ;;
9375
9376    aix[4-9]*)
9377      if test "$host_cpu" = ia64; then
9378	# On IA64, the linker does run time linking by default, so we don't
9379	# have to do anything special.
9380	aix_use_runtimelinking=no
9381	exp_sym_flag='-Bexport'
9382	no_entry_flag=""
9383      else
9384	# If we're using GNU nm, then we don't want the "-C" option.
9385	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9386	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9387	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9388	else
9389	  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'
9390	fi
9391	aix_use_runtimelinking=no
9392
9393	# Test if we are trying to use run time linking or normal
9394	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9395	# need to do runtime linking.
9396	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9397	  for ld_flag in $LDFLAGS; do
9398	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9399	    aix_use_runtimelinking=yes
9400	    break
9401	  fi
9402	  done
9403	  ;;
9404	esac
9405
9406	exp_sym_flag='-bexport'
9407	no_entry_flag='-bnoentry'
9408      fi
9409
9410      # When large executables or shared objects are built, AIX ld can
9411      # have problems creating the table of contents.  If linking a library
9412      # or program results in "error TOC overflow" add -mminimal-toc to
9413      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9414      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9415
9416      archive_cmds=''
9417      hardcode_direct=yes
9418      hardcode_direct_absolute=yes
9419      hardcode_libdir_separator=':'
9420      link_all_deplibs=yes
9421      file_list_spec='${wl}-f,'
9422
9423      if test "$GCC" = yes; then
9424	case $host_os in aix4.[012]|aix4.[012].*)
9425	# We only want to do this on AIX 4.2 and lower, the check
9426	# below for broken collect2 doesn't work under 4.3+
9427	  collect2name=`${CC} -print-prog-name=collect2`
9428	  if test -f "$collect2name" &&
9429	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9430	  then
9431	  # We have reworked collect2
9432	  :
9433	  else
9434	  # We have old collect2
9435	  hardcode_direct=unsupported
9436	  # It fails to find uninstalled libraries when the uninstalled
9437	  # path is not listed in the libpath.  Setting hardcode_minus_L
9438	  # to unsupported forces relinking
9439	  hardcode_minus_L=yes
9440	  hardcode_libdir_flag_spec='-L$libdir'
9441	  hardcode_libdir_separator=
9442	  fi
9443	  ;;
9444	esac
9445	shared_flag='-shared'
9446	if test "$aix_use_runtimelinking" = yes; then
9447	  shared_flag="$shared_flag "'${wl}-G'
9448	fi
9449      else
9450	# not using gcc
9451	if test "$host_cpu" = ia64; then
9452	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9453	# chokes on -Wl,-G. The following line is correct:
9454	  shared_flag='-G'
9455	else
9456	  if test "$aix_use_runtimelinking" = yes; then
9457	    shared_flag='${wl}-G'
9458	  else
9459	    shared_flag='${wl}-bM:SRE'
9460	  fi
9461	fi
9462      fi
9463
9464      export_dynamic_flag_spec='${wl}-bexpall'
9465      # It seems that -bexpall does not export symbols beginning with
9466      # underscore (_), so it is better to generate a list of symbols to export.
9467      always_export_symbols=yes
9468      if test "$aix_use_runtimelinking" = yes; then
9469	# Warning - without using the other runtime loading flags (-brtl),
9470	# -berok will link without error, but may produce a broken library.
9471	allow_undefined_flag='-berok'
9472        # Determine the default libpath from the value encoded in an
9473        # empty executable.
9474        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475/* end confdefs.h.  */
9476
9477int
9478main ()
9479{
9480
9481  ;
9482  return 0;
9483}
9484_ACEOF
9485if ac_fn_c_try_link "$LINENO"; then :
9486
9487lt_aix_libpath_sed='
9488    /Import File Strings/,/^$/ {
9489	/^0/ {
9490	    s/^0  *\(.*\)$/\1/
9491	    p
9492	}
9493    }'
9494aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9495# Check for a 64-bit object if we didn't find anything.
9496if test -z "$aix_libpath"; then
9497  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9498fi
9499fi
9500rm -f core conftest.err conftest.$ac_objext \
9501    conftest$ac_exeext conftest.$ac_ext
9502if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9503
9504        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9505        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9506      else
9507	if test "$host_cpu" = ia64; then
9508	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9509	  allow_undefined_flag="-z nodefs"
9510	  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"
9511	else
9512	 # Determine the default libpath from the value encoded in an
9513	 # empty executable.
9514	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515/* end confdefs.h.  */
9516
9517int
9518main ()
9519{
9520
9521  ;
9522  return 0;
9523}
9524_ACEOF
9525if ac_fn_c_try_link "$LINENO"; then :
9526
9527lt_aix_libpath_sed='
9528    /Import File Strings/,/^$/ {
9529	/^0/ {
9530	    s/^0  *\(.*\)$/\1/
9531	    p
9532	}
9533    }'
9534aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9535# Check for a 64-bit object if we didn't find anything.
9536if test -z "$aix_libpath"; then
9537  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9538fi
9539fi
9540rm -f core conftest.err conftest.$ac_objext \
9541    conftest$ac_exeext conftest.$ac_ext
9542if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9543
9544	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9545	  # Warning - without using the other run time loading flags,
9546	  # -berok will link without error, but may produce a broken library.
9547	  no_undefined_flag=' ${wl}-bernotok'
9548	  allow_undefined_flag=' ${wl}-berok'
9549	  # Exported symbols can be pulled into shared objects from archives
9550	  whole_archive_flag_spec='$convenience'
9551	  archive_cmds_need_lc=yes
9552	  # This is similar to how AIX traditionally builds its shared libraries.
9553	  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'
9554	fi
9555      fi
9556      ;;
9557
9558    amigaos*)
9559      case $host_cpu in
9560      powerpc)
9561            # see comment about AmigaOS4 .so support
9562            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9563            archive_expsym_cmds=''
9564        ;;
9565      m68k)
9566            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)'
9567            hardcode_libdir_flag_spec='-L$libdir'
9568            hardcode_minus_L=yes
9569        ;;
9570      esac
9571      ;;
9572
9573    bsdi[45]*)
9574      export_dynamic_flag_spec=-rdynamic
9575      ;;
9576
9577    cygwin* | mingw* | pw32* | cegcc*)
9578      # When not using gcc, we currently assume that we are using
9579      # Microsoft Visual C++.
9580      # hardcode_libdir_flag_spec is actually meaningless, as there is
9581      # no search path for DLLs.
9582      hardcode_libdir_flag_spec=' '
9583      allow_undefined_flag=unsupported
9584      # Tell ltmain to make .lib files, not .a files.
9585      libext=lib
9586      # Tell ltmain to make .dll files, not .so files.
9587      shrext_cmds=".dll"
9588      # FIXME: Setting linknames here is a bad hack.
9589      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9590      # The linker will automatically build a .lib file if we build a DLL.
9591      old_archive_from_new_cmds='true'
9592      # FIXME: Should let the user specify the lib program.
9593      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9594      fix_srcfile_path='`cygpath -w "$srcfile"`'
9595      enable_shared_with_static_runtimes=yes
9596      ;;
9597
9598    darwin* | rhapsody*)
9599
9600
9601  archive_cmds_need_lc=no
9602  hardcode_direct=no
9603  hardcode_automatic=yes
9604  hardcode_shlibpath_var=unsupported
9605  whole_archive_flag_spec=''
9606  link_all_deplibs=yes
9607  allow_undefined_flag="$_lt_dar_allow_undefined"
9608  case $cc_basename in
9609     ifort*) _lt_dar_can_shared=yes ;;
9610     *) _lt_dar_can_shared=$GCC ;;
9611  esac
9612  if test "$_lt_dar_can_shared" = "yes"; then
9613    output_verbose_link_cmd=echo
9614    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9615    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9616    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}"
9617    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}"
9618
9619  else
9620  ld_shlibs=no
9621  fi
9622
9623      ;;
9624
9625    dgux*)
9626      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9627      hardcode_libdir_flag_spec='-L$libdir'
9628      hardcode_shlibpath_var=no
9629      ;;
9630
9631    freebsd1*)
9632      ld_shlibs=no
9633      ;;
9634
9635    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9636    # support.  Future versions do this automatically, but an explicit c++rt0.o
9637    # does not break anything, and helps significantly (at the cost of a little
9638    # extra space).
9639    freebsd2.2*)
9640      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9641      hardcode_libdir_flag_spec='-R$libdir'
9642      hardcode_direct=yes
9643      hardcode_shlibpath_var=no
9644      ;;
9645
9646    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9647    freebsd2*)
9648      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9649      hardcode_direct=yes
9650      hardcode_minus_L=yes
9651      hardcode_shlibpath_var=no
9652      ;;
9653
9654    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9655    freebsd* | dragonfly*)
9656      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9657      hardcode_libdir_flag_spec='-R$libdir'
9658      hardcode_direct=yes
9659      hardcode_shlibpath_var=no
9660      ;;
9661
9662    hpux9*)
9663      if test "$GCC" = yes; then
9664	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'
9665      else
9666	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'
9667      fi
9668      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9669      hardcode_libdir_separator=:
9670      hardcode_direct=yes
9671
9672      # hardcode_minus_L: Not really in the search PATH,
9673      # but as the default location of the library.
9674      hardcode_minus_L=yes
9675      export_dynamic_flag_spec='${wl}-E'
9676      ;;
9677
9678    hpux10*)
9679      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9680	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9681      else
9682	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9683      fi
9684      if test "$with_gnu_ld" = no; then
9685	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9686	hardcode_libdir_flag_spec_ld='+b $libdir'
9687	hardcode_libdir_separator=:
9688	hardcode_direct=yes
9689	hardcode_direct_absolute=yes
9690	export_dynamic_flag_spec='${wl}-E'
9691	# hardcode_minus_L: Not really in the search PATH,
9692	# but as the default location of the library.
9693	hardcode_minus_L=yes
9694      fi
9695      ;;
9696
9697    hpux11*)
9698      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9699	case $host_cpu in
9700	hppa*64*)
9701	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9702	  ;;
9703	ia64*)
9704	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9705	  ;;
9706	*)
9707	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9708	  ;;
9709	esac
9710      else
9711	case $host_cpu in
9712	hppa*64*)
9713	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9714	  ;;
9715	ia64*)
9716	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9717	  ;;
9718	*)
9719	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9720	  ;;
9721	esac
9722      fi
9723      if test "$with_gnu_ld" = no; then
9724	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9725	hardcode_libdir_separator=:
9726
9727	case $host_cpu in
9728	hppa*64*|ia64*)
9729	  hardcode_direct=no
9730	  hardcode_shlibpath_var=no
9731	  ;;
9732	*)
9733	  hardcode_direct=yes
9734	  hardcode_direct_absolute=yes
9735	  export_dynamic_flag_spec='${wl}-E'
9736
9737	  # hardcode_minus_L: Not really in the search PATH,
9738	  # but as the default location of the library.
9739	  hardcode_minus_L=yes
9740	  ;;
9741	esac
9742      fi
9743      ;;
9744
9745    irix5* | irix6* | nonstopux*)
9746      if test "$GCC" = yes; then
9747	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9748	# Try to use the -exported_symbol ld option, if it does not
9749	# work, assume that -exports_file does not work either and
9750	# implicitly export all symbols.
9751        save_LDFLAGS="$LDFLAGS"
9752        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9753        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754/* end confdefs.h.  */
9755int foo(void) {}
9756_ACEOF
9757if ac_fn_c_try_link "$LINENO"; then :
9758  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9759
9760fi
9761rm -f core conftest.err conftest.$ac_objext \
9762    conftest$ac_exeext conftest.$ac_ext
9763        LDFLAGS="$save_LDFLAGS"
9764      else
9765	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9766	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9767      fi
9768      archive_cmds_need_lc='no'
9769      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9770      hardcode_libdir_separator=:
9771      inherit_rpath=yes
9772      link_all_deplibs=yes
9773      ;;
9774
9775    netbsd*)
9776      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9777	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9778      else
9779	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9780      fi
9781      hardcode_libdir_flag_spec='-R$libdir'
9782      hardcode_direct=yes
9783      hardcode_shlibpath_var=no
9784      ;;
9785
9786    newsos6)
9787      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9788      hardcode_direct=yes
9789      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9790      hardcode_libdir_separator=:
9791      hardcode_shlibpath_var=no
9792      ;;
9793
9794    *nto* | *qnx*)
9795      ;;
9796
9797    openbsd*)
9798      if test -f /usr/libexec/ld.so; then
9799	hardcode_direct=yes
9800	hardcode_shlibpath_var=no
9801	hardcode_direct_absolute=yes
9802	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9803	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9804	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9805	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9806	  export_dynamic_flag_spec='${wl}-E'
9807	else
9808	  case $host_os in
9809	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9810	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9811	     hardcode_libdir_flag_spec='-R$libdir'
9812	     ;;
9813	   *)
9814	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9815	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9816	     ;;
9817	  esac
9818	fi
9819      else
9820	ld_shlibs=no
9821      fi
9822      ;;
9823
9824    os2*)
9825      hardcode_libdir_flag_spec='-L$libdir'
9826      hardcode_minus_L=yes
9827      allow_undefined_flag=unsupported
9828      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'
9829      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9830      ;;
9831
9832    osf3*)
9833      if test "$GCC" = yes; then
9834	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9835	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9836      else
9837	allow_undefined_flag=' -expect_unresolved \*'
9838	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9839      fi
9840      archive_cmds_need_lc='no'
9841      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9842      hardcode_libdir_separator=:
9843      ;;
9844
9845    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9846      if test "$GCC" = yes; then
9847	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9848	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9849	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9850      else
9851	allow_undefined_flag=' -expect_unresolved \*'
9852	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9853	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~
9854	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9855
9856	# Both c and cxx compiler support -rpath directly
9857	hardcode_libdir_flag_spec='-rpath $libdir'
9858      fi
9859      archive_cmds_need_lc='no'
9860      hardcode_libdir_separator=:
9861      ;;
9862
9863    solaris*)
9864      no_undefined_flag=' -z defs'
9865      if test "$GCC" = yes; then
9866	wlarc='${wl}'
9867	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9868	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9869	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9870      else
9871	case `$CC -V 2>&1` in
9872	*"Compilers 5.0"*)
9873	  wlarc=''
9874	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9875	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9876	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9877	  ;;
9878	*)
9879	  wlarc='${wl}'
9880	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9881	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9882	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9883	  ;;
9884	esac
9885      fi
9886      hardcode_libdir_flag_spec='-R$libdir'
9887      hardcode_shlibpath_var=no
9888      case $host_os in
9889      solaris2.[0-5] | solaris2.[0-5].*) ;;
9890      *)
9891	# The compiler driver will combine and reorder linker options,
9892	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9893	# but is careful enough not to reorder.
9894	# Supported since Solaris 2.6 (maybe 2.5.1?)
9895	if test "$GCC" = yes; then
9896	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9897	else
9898	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9899	fi
9900	;;
9901      esac
9902      link_all_deplibs=yes
9903      ;;
9904
9905    sunos4*)
9906      if test "x$host_vendor" = xsequent; then
9907	# Use $CC to link under sequent, because it throws in some extra .o
9908	# files that make .init and .fini sections work.
9909	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9910      else
9911	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9912      fi
9913      hardcode_libdir_flag_spec='-L$libdir'
9914      hardcode_direct=yes
9915      hardcode_minus_L=yes
9916      hardcode_shlibpath_var=no
9917      ;;
9918
9919    sysv4)
9920      case $host_vendor in
9921	sni)
9922	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9923	  hardcode_direct=yes # is this really true???
9924	;;
9925	siemens)
9926	  ## LD is ld it makes a PLAMLIB
9927	  ## CC just makes a GrossModule.
9928	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9929	  reload_cmds='$CC -r -o $output$reload_objs'
9930	  hardcode_direct=no
9931        ;;
9932	motorola)
9933	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9934	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9935	;;
9936      esac
9937      runpath_var='LD_RUN_PATH'
9938      hardcode_shlibpath_var=no
9939      ;;
9940
9941    sysv4.3*)
9942      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9943      hardcode_shlibpath_var=no
9944      export_dynamic_flag_spec='-Bexport'
9945      ;;
9946
9947    sysv4*MP*)
9948      if test -d /usr/nec; then
9949	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9950	hardcode_shlibpath_var=no
9951	runpath_var=LD_RUN_PATH
9952	hardcode_runpath_var=yes
9953	ld_shlibs=yes
9954      fi
9955      ;;
9956
9957    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9958      no_undefined_flag='${wl}-z,text'
9959      archive_cmds_need_lc=no
9960      hardcode_shlibpath_var=no
9961      runpath_var='LD_RUN_PATH'
9962
9963      if test "$GCC" = yes; then
9964	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9965	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9966      else
9967	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9968	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9969      fi
9970      ;;
9971
9972    sysv5* | sco3.2v5* | sco5v6*)
9973      # Note: We can NOT use -z defs as we might desire, because we do not
9974      # link with -lc, and that would cause any symbols used from libc to
9975      # always be unresolved, which means just about no library would
9976      # ever link correctly.  If we're not using GNU ld we use -z text
9977      # though, which does catch some bad symbols but isn't as heavy-handed
9978      # as -z defs.
9979      no_undefined_flag='${wl}-z,text'
9980      allow_undefined_flag='${wl}-z,nodefs'
9981      archive_cmds_need_lc=no
9982      hardcode_shlibpath_var=no
9983      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9984      hardcode_libdir_separator=':'
9985      link_all_deplibs=yes
9986      export_dynamic_flag_spec='${wl}-Bexport'
9987      runpath_var='LD_RUN_PATH'
9988
9989      if test "$GCC" = yes; then
9990	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9991	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9992      else
9993	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9994	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9995      fi
9996      ;;
9997
9998    uts4*)
9999      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000      hardcode_libdir_flag_spec='-L$libdir'
10001      hardcode_shlibpath_var=no
10002      ;;
10003
10004    *)
10005      ld_shlibs=no
10006      ;;
10007    esac
10008
10009    if test x$host_vendor = xsni; then
10010      case $host in
10011      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10012	export_dynamic_flag_spec='${wl}-Blargedynsym'
10013	;;
10014      esac
10015    fi
10016  fi
10017
10018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10019$as_echo "$ld_shlibs" >&6; }
10020test "$ld_shlibs" = no && can_build_shared=no
10021
10022with_gnu_ld=$with_gnu_ld
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038#
10039# Do we need to explicitly link libc?
10040#
10041case "x$archive_cmds_need_lc" in
10042x|xyes)
10043  # Assume -lc should be added
10044  archive_cmds_need_lc=yes
10045
10046  if test "$enable_shared" = yes && test "$GCC" = yes; then
10047    case $archive_cmds in
10048    *'~'*)
10049      # FIXME: we may have to deal with multi-command sequences.
10050      ;;
10051    '$CC '*)
10052      # Test whether the compiler implicitly links with -lc since on some
10053      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10054      # to ld, don't add -lc before -lgcc.
10055      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10056$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10057      $RM conftest*
10058      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10059
10060      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10061  (eval $ac_compile) 2>&5
10062  ac_status=$?
10063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10064  test $ac_status = 0; } 2>conftest.err; then
10065        soname=conftest
10066        lib=conftest
10067        libobjs=conftest.$ac_objext
10068        deplibs=
10069        wl=$lt_prog_compiler_wl
10070	pic_flag=$lt_prog_compiler_pic
10071        compiler_flags=-v
10072        linker_flags=-v
10073        verstring=
10074        output_objdir=.
10075        libname=conftest
10076        lt_save_allow_undefined_flag=$allow_undefined_flag
10077        allow_undefined_flag=
10078        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10079  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10080  ac_status=$?
10081  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10082  test $ac_status = 0; }
10083        then
10084	  archive_cmds_need_lc=no
10085        else
10086	  archive_cmds_need_lc=yes
10087        fi
10088        allow_undefined_flag=$lt_save_allow_undefined_flag
10089      else
10090        cat conftest.err 1>&5
10091      fi
10092      $RM conftest*
10093      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10094$as_echo "$archive_cmds_need_lc" >&6; }
10095      ;;
10096    esac
10097  fi
10098  ;;
10099esac
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10258$as_echo_n "checking dynamic linker characteristics... " >&6; }
10259
10260if test "$GCC" = yes; then
10261  case $host_os in
10262    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10263    *) lt_awk_arg="/^libraries:/" ;;
10264  esac
10265  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10266  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10267    # if the path contains ";" then we assume it to be the separator
10268    # otherwise default to the standard path separator (i.e. ":") - it is
10269    # assumed that no part of a normal pathname contains ";" but that should
10270    # okay in the real world where ";" in dirpaths is itself problematic.
10271    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10272  else
10273    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10274  fi
10275  # Ok, now we have the path, separated by spaces, we can step through it
10276  # and add multilib dir if necessary.
10277  lt_tmp_lt_search_path_spec=
10278  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10279  for lt_sys_path in $lt_search_path_spec; do
10280    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10281      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10282    else
10283      test -d "$lt_sys_path" && \
10284	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10285    fi
10286  done
10287  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10288BEGIN {RS=" "; FS="/|\n";} {
10289  lt_foo="";
10290  lt_count=0;
10291  for (lt_i = NF; lt_i > 0; lt_i--) {
10292    if ($lt_i != "" && $lt_i != ".") {
10293      if ($lt_i == "..") {
10294        lt_count++;
10295      } else {
10296        if (lt_count == 0) {
10297          lt_foo="/" $lt_i lt_foo;
10298        } else {
10299          lt_count--;
10300        }
10301      }
10302    }
10303  }
10304  if (lt_foo != "") { lt_freq[lt_foo]++; }
10305  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10306}'`
10307  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10308else
10309  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10310fi
10311library_names_spec=
10312libname_spec='lib$name'
10313soname_spec=
10314shrext_cmds=".so"
10315postinstall_cmds=
10316postuninstall_cmds=
10317finish_cmds=
10318finish_eval=
10319shlibpath_var=
10320shlibpath_overrides_runpath=unknown
10321version_type=none
10322dynamic_linker="$host_os ld.so"
10323sys_lib_dlsearch_path_spec="/lib /usr/lib"
10324need_lib_prefix=unknown
10325hardcode_into_libs=no
10326
10327# when you set need_version to no, make sure it does not cause -set_version
10328# flags to be left without arguments
10329need_version=unknown
10330
10331case $host_os in
10332aix3*)
10333  version_type=linux
10334  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10335  shlibpath_var=LIBPATH
10336
10337  # AIX 3 has no versioning support, so we append a major version to the name.
10338  soname_spec='${libname}${release}${shared_ext}$major'
10339  ;;
10340
10341aix[4-9]*)
10342  version_type=linux
10343  need_lib_prefix=no
10344  need_version=no
10345  hardcode_into_libs=yes
10346  if test "$host_cpu" = ia64; then
10347    # AIX 5 supports IA64
10348    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10349    shlibpath_var=LD_LIBRARY_PATH
10350  else
10351    # With GCC up to 2.95.x, collect2 would create an import file
10352    # for dependence libraries.  The import file would start with
10353    # the line `#! .'.  This would cause the generated library to
10354    # depend on `.', always an invalid library.  This was fixed in
10355    # development snapshots of GCC prior to 3.0.
10356    case $host_os in
10357      aix4 | aix4.[01] | aix4.[01].*)
10358      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10359	   echo ' yes '
10360	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10361	:
10362      else
10363	can_build_shared=no
10364      fi
10365      ;;
10366    esac
10367    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10368    # soname into executable. Probably we can add versioning support to
10369    # collect2, so additional links can be useful in future.
10370    if test "$aix_use_runtimelinking" = yes; then
10371      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10372      # instead of lib<name>.a to let people know that these are not
10373      # typical AIX shared libraries.
10374      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10375    else
10376      # We preserve .a as extension for shared libraries through AIX4.2
10377      # and later when we are not doing run time linking.
10378      library_names_spec='${libname}${release}.a $libname.a'
10379      soname_spec='${libname}${release}${shared_ext}$major'
10380    fi
10381    shlibpath_var=LIBPATH
10382  fi
10383  ;;
10384
10385amigaos*)
10386  case $host_cpu in
10387  powerpc)
10388    # Since July 2007 AmigaOS4 officially supports .so libraries.
10389    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10390    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391    ;;
10392  m68k)
10393    library_names_spec='$libname.ixlibrary $libname.a'
10394    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10395    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10396    ;;
10397  esac
10398  ;;
10399
10400beos*)
10401  library_names_spec='${libname}${shared_ext}'
10402  dynamic_linker="$host_os ld.so"
10403  shlibpath_var=LIBRARY_PATH
10404  ;;
10405
10406bsdi[45]*)
10407  version_type=linux
10408  need_version=no
10409  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10410  soname_spec='${libname}${release}${shared_ext}$major'
10411  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10412  shlibpath_var=LD_LIBRARY_PATH
10413  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10414  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10415  # the default ld.so.conf also contains /usr/contrib/lib and
10416  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10417  # libtool to hard-code these into programs
10418  ;;
10419
10420cygwin* | mingw* | pw32* | cegcc*)
10421  version_type=windows
10422  shrext_cmds=".dll"
10423  need_version=no
10424  need_lib_prefix=no
10425
10426  case $GCC,$host_os in
10427  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10428    library_names_spec='$libname.dll.a'
10429    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10430    postinstall_cmds='base_file=`basename \${file}`~
10431      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10432      dldir=$destdir/`dirname \$dlpath`~
10433      test -d \$dldir || mkdir -p \$dldir~
10434      $install_prog $dir/$dlname \$dldir/$dlname~
10435      chmod a+x \$dldir/$dlname~
10436      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10437        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10438      fi'
10439    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10440      dlpath=$dir/\$dldll~
10441       $RM \$dlpath'
10442    shlibpath_overrides_runpath=yes
10443
10444    case $host_os in
10445    cygwin*)
10446      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10447      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10448      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10449      ;;
10450    mingw* | cegcc*)
10451      # MinGW DLLs use traditional 'lib' prefix
10452      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10453      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10454      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10455        # It is most probably a Windows format PATH printed by
10456        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10457        # path with ; separators, and with drive letters. We can handle the
10458        # drive letters (cygwin fileutils understands them), so leave them,
10459        # especially as we might pass files found there to a mingw objdump,
10460        # which wouldn't understand a cygwinified path. Ahh.
10461        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10462      else
10463        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10464      fi
10465      ;;
10466    pw32*)
10467      # pw32 DLLs use 'pw' prefix rather than 'lib'
10468      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10469      ;;
10470    esac
10471    ;;
10472
10473  *)
10474    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10475    ;;
10476  esac
10477  dynamic_linker='Win32 ld.exe'
10478  # FIXME: first we should search . and the directory the executable is in
10479  shlibpath_var=PATH
10480  ;;
10481
10482darwin* | rhapsody*)
10483  dynamic_linker="$host_os dyld"
10484  version_type=darwin
10485  need_lib_prefix=no
10486  need_version=no
10487  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10488  soname_spec='${libname}${release}${major}$shared_ext'
10489  shlibpath_overrides_runpath=yes
10490  shlibpath_var=DYLD_LIBRARY_PATH
10491  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10492
10493  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10494  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10495  ;;
10496
10497dgux*)
10498  version_type=linux
10499  need_lib_prefix=no
10500  need_version=no
10501  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10502  soname_spec='${libname}${release}${shared_ext}$major'
10503  shlibpath_var=LD_LIBRARY_PATH
10504  ;;
10505
10506freebsd1*)
10507  dynamic_linker=no
10508  ;;
10509
10510freebsd* | dragonfly*)
10511  # DragonFly does not have aout.  When/if they implement a new
10512  # versioning mechanism, adjust this.
10513  if test -x /usr/bin/objformat; then
10514    objformat=`/usr/bin/objformat`
10515  else
10516    case $host_os in
10517    freebsd[123]*) objformat=aout ;;
10518    *) objformat=elf ;;
10519    esac
10520  fi
10521  version_type=freebsd-$objformat
10522  case $version_type in
10523    freebsd-elf*)
10524      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10525      need_version=no
10526      need_lib_prefix=no
10527      ;;
10528    freebsd-*)
10529      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10530      need_version=yes
10531      ;;
10532  esac
10533  shlibpath_var=LD_LIBRARY_PATH
10534  case $host_os in
10535  freebsd2*)
10536    shlibpath_overrides_runpath=yes
10537    ;;
10538  freebsd3.[01]* | freebsdelf3.[01]*)
10539    shlibpath_overrides_runpath=yes
10540    hardcode_into_libs=yes
10541    ;;
10542  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10543  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10544    shlibpath_overrides_runpath=no
10545    hardcode_into_libs=yes
10546    ;;
10547  *) # from 4.6 on, and DragonFly
10548    shlibpath_overrides_runpath=yes
10549    hardcode_into_libs=yes
10550    ;;
10551  esac
10552  ;;
10553
10554gnu*)
10555  version_type=linux
10556  need_lib_prefix=no
10557  need_version=no
10558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10559  soname_spec='${libname}${release}${shared_ext}$major'
10560  shlibpath_var=LD_LIBRARY_PATH
10561  hardcode_into_libs=yes
10562  ;;
10563
10564hpux9* | hpux10* | hpux11*)
10565  # Give a soname corresponding to the major version so that dld.sl refuses to
10566  # link against other versions.
10567  version_type=sunos
10568  need_lib_prefix=no
10569  need_version=no
10570  case $host_cpu in
10571  ia64*)
10572    shrext_cmds='.so'
10573    hardcode_into_libs=yes
10574    dynamic_linker="$host_os dld.so"
10575    shlibpath_var=LD_LIBRARY_PATH
10576    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10577    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578    soname_spec='${libname}${release}${shared_ext}$major'
10579    if test "X$HPUX_IA64_MODE" = X32; then
10580      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10581    else
10582      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10583    fi
10584    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10585    ;;
10586  hppa*64*)
10587    shrext_cmds='.sl'
10588    hardcode_into_libs=yes
10589    dynamic_linker="$host_os dld.sl"
10590    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10591    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10592    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593    soname_spec='${libname}${release}${shared_ext}$major'
10594    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10595    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10596    ;;
10597  *)
10598    shrext_cmds='.sl'
10599    dynamic_linker="$host_os dld.sl"
10600    shlibpath_var=SHLIB_PATH
10601    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10602    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10603    soname_spec='${libname}${release}${shared_ext}$major'
10604    ;;
10605  esac
10606  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10607  postinstall_cmds='chmod 555 $lib'
10608  ;;
10609
10610interix[3-9]*)
10611  version_type=linux
10612  need_lib_prefix=no
10613  need_version=no
10614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10615  soname_spec='${libname}${release}${shared_ext}$major'
10616  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10617  shlibpath_var=LD_LIBRARY_PATH
10618  shlibpath_overrides_runpath=no
10619  hardcode_into_libs=yes
10620  ;;
10621
10622irix5* | irix6* | nonstopux*)
10623  case $host_os in
10624    nonstopux*) version_type=nonstopux ;;
10625    *)
10626	if test "$lt_cv_prog_gnu_ld" = yes; then
10627		version_type=linux
10628	else
10629		version_type=irix
10630	fi ;;
10631  esac
10632  need_lib_prefix=no
10633  need_version=no
10634  soname_spec='${libname}${release}${shared_ext}$major'
10635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10636  case $host_os in
10637  irix5* | nonstopux*)
10638    libsuff= shlibsuff=
10639    ;;
10640  *)
10641    case $LD in # libtool.m4 will add one of these switches to LD
10642    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10643      libsuff= shlibsuff= libmagic=32-bit;;
10644    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10645      libsuff=32 shlibsuff=N32 libmagic=N32;;
10646    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10647      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10648    *) libsuff= shlibsuff= libmagic=never-match;;
10649    esac
10650    ;;
10651  esac
10652  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10653  shlibpath_overrides_runpath=no
10654  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10655  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10656  hardcode_into_libs=yes
10657  ;;
10658
10659# No shared lib support for Linux oldld, aout, or coff.
10660linux*oldld* | linux*aout* | linux*coff*)
10661  dynamic_linker=no
10662  ;;
10663
10664# This must be Linux ELF.
10665linux* | k*bsd*-gnu)
10666  version_type=linux
10667  need_lib_prefix=no
10668  need_version=no
10669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670  soname_spec='${libname}${release}${shared_ext}$major'
10671  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10672  shlibpath_var=LD_LIBRARY_PATH
10673  shlibpath_overrides_runpath=no
10674  # Some binutils ld are patched to set DT_RUNPATH
10675  save_LDFLAGS=$LDFLAGS
10676  save_libdir=$libdir
10677  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10678       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680/* end confdefs.h.  */
10681
10682int
10683main ()
10684{
10685
10686  ;
10687  return 0;
10688}
10689_ACEOF
10690if ac_fn_c_try_link "$LINENO"; then :
10691  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10692  shlibpath_overrides_runpath=yes
10693fi
10694fi
10695rm -f core conftest.err conftest.$ac_objext \
10696    conftest$ac_exeext conftest.$ac_ext
10697  LDFLAGS=$save_LDFLAGS
10698  libdir=$save_libdir
10699
10700  # This implies no fast_install, which is unacceptable.
10701  # Some rework will be needed to allow for fast_install
10702  # before this can be enabled.
10703  hardcode_into_libs=yes
10704
10705  # Append ld.so.conf contents to the search path
10706  if test -f /etc/ld.so.conf; then
10707    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10708    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10709  fi
10710
10711  # We used to test for /lib/ld.so.1 and disable shared libraries on
10712  # powerpc, because MkLinux only supported shared libraries with the
10713  # GNU dynamic linker.  Since this was broken with cross compilers,
10714  # most powerpc-linux boxes support dynamic linking these days and
10715  # people can always --disable-shared, the test was removed, and we
10716  # assume the GNU/Linux dynamic linker is in use.
10717  dynamic_linker='GNU/Linux ld.so'
10718  ;;
10719
10720netbsd*)
10721  version_type=sunos
10722  need_lib_prefix=no
10723  need_version=no
10724  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10725    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10726    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10727    dynamic_linker='NetBSD (a.out) ld.so'
10728  else
10729    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10730    soname_spec='${libname}${release}${shared_ext}$major'
10731    dynamic_linker='NetBSD ld.elf_so'
10732  fi
10733  shlibpath_var=LD_LIBRARY_PATH
10734  shlibpath_overrides_runpath=yes
10735  hardcode_into_libs=yes
10736  ;;
10737
10738newsos6)
10739  version_type=linux
10740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741  shlibpath_var=LD_LIBRARY_PATH
10742  shlibpath_overrides_runpath=yes
10743  ;;
10744
10745*nto* | *qnx*)
10746  version_type=qnx
10747  need_lib_prefix=no
10748  need_version=no
10749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10750  soname_spec='${libname}${release}${shared_ext}$major'
10751  shlibpath_var=LD_LIBRARY_PATH
10752  shlibpath_overrides_runpath=no
10753  hardcode_into_libs=yes
10754  dynamic_linker='ldqnx.so'
10755  ;;
10756
10757openbsd*)
10758  version_type=sunos
10759  sys_lib_dlsearch_path_spec="/usr/lib"
10760  need_lib_prefix=no
10761  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10762  case $host_os in
10763    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10764    *)				need_version=no  ;;
10765  esac
10766  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10767  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10768  shlibpath_var=LD_LIBRARY_PATH
10769  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10770    case $host_os in
10771      openbsd2.[89] | openbsd2.[89].*)
10772	shlibpath_overrides_runpath=no
10773	;;
10774      *)
10775	shlibpath_overrides_runpath=yes
10776	;;
10777      esac
10778  else
10779    shlibpath_overrides_runpath=yes
10780  fi
10781  ;;
10782
10783os2*)
10784  libname_spec='$name'
10785  shrext_cmds=".dll"
10786  need_lib_prefix=no
10787  library_names_spec='$libname${shared_ext} $libname.a'
10788  dynamic_linker='OS/2 ld.exe'
10789  shlibpath_var=LIBPATH
10790  ;;
10791
10792osf3* | osf4* | osf5*)
10793  version_type=osf
10794  need_lib_prefix=no
10795  need_version=no
10796  soname_spec='${libname}${release}${shared_ext}$major'
10797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798  shlibpath_var=LD_LIBRARY_PATH
10799  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10800  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10801  ;;
10802
10803rdos*)
10804  dynamic_linker=no
10805  ;;
10806
10807solaris*)
10808  version_type=linux
10809  need_lib_prefix=no
10810  need_version=no
10811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812  soname_spec='${libname}${release}${shared_ext}$major'
10813  shlibpath_var=LD_LIBRARY_PATH
10814  shlibpath_overrides_runpath=yes
10815  hardcode_into_libs=yes
10816  # ldd complains unless libraries are executable
10817  postinstall_cmds='chmod +x $lib'
10818  ;;
10819
10820sunos4*)
10821  version_type=sunos
10822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10823  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10824  shlibpath_var=LD_LIBRARY_PATH
10825  shlibpath_overrides_runpath=yes
10826  if test "$with_gnu_ld" = yes; then
10827    need_lib_prefix=no
10828  fi
10829  need_version=yes
10830  ;;
10831
10832sysv4 | sysv4.3*)
10833  version_type=linux
10834  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835  soname_spec='${libname}${release}${shared_ext}$major'
10836  shlibpath_var=LD_LIBRARY_PATH
10837  case $host_vendor in
10838    sni)
10839      shlibpath_overrides_runpath=no
10840      need_lib_prefix=no
10841      runpath_var=LD_RUN_PATH
10842      ;;
10843    siemens)
10844      need_lib_prefix=no
10845      ;;
10846    motorola)
10847      need_lib_prefix=no
10848      need_version=no
10849      shlibpath_overrides_runpath=no
10850      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10851      ;;
10852  esac
10853  ;;
10854
10855sysv4*MP*)
10856  if test -d /usr/nec ;then
10857    version_type=linux
10858    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10859    soname_spec='$libname${shared_ext}.$major'
10860    shlibpath_var=LD_LIBRARY_PATH
10861  fi
10862  ;;
10863
10864sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10865  version_type=freebsd-elf
10866  need_lib_prefix=no
10867  need_version=no
10868  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10869  soname_spec='${libname}${release}${shared_ext}$major'
10870  shlibpath_var=LD_LIBRARY_PATH
10871  shlibpath_overrides_runpath=yes
10872  hardcode_into_libs=yes
10873  if test "$with_gnu_ld" = yes; then
10874    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10875  else
10876    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10877    case $host_os in
10878      sco3.2v5*)
10879        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10880	;;
10881    esac
10882  fi
10883  sys_lib_dlsearch_path_spec='/usr/lib'
10884  ;;
10885
10886tpf*)
10887  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10888  version_type=linux
10889  need_lib_prefix=no
10890  need_version=no
10891  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892  shlibpath_var=LD_LIBRARY_PATH
10893  shlibpath_overrides_runpath=no
10894  hardcode_into_libs=yes
10895  ;;
10896
10897uts4*)
10898  version_type=linux
10899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10900  soname_spec='${libname}${release}${shared_ext}$major'
10901  shlibpath_var=LD_LIBRARY_PATH
10902  ;;
10903
10904*)
10905  dynamic_linker=no
10906  ;;
10907esac
10908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10909$as_echo "$dynamic_linker" >&6; }
10910test "$dynamic_linker" = no && can_build_shared=no
10911
10912variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10913if test "$GCC" = yes; then
10914  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10915fi
10916
10917if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10918  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10919fi
10920if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10921  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10922fi
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11011$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11012hardcode_action=
11013if test -n "$hardcode_libdir_flag_spec" ||
11014   test -n "$runpath_var" ||
11015   test "X$hardcode_automatic" = "Xyes" ; then
11016
11017  # We can hardcode non-existent directories.
11018  if test "$hardcode_direct" != no &&
11019     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11020     # have to relink, otherwise we might link with an installed library
11021     # when we should be linking with a yet-to-be-installed one
11022     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11023     test "$hardcode_minus_L" != no; then
11024    # Linking always hardcodes the temporary library directory.
11025    hardcode_action=relink
11026  else
11027    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11028    hardcode_action=immediate
11029  fi
11030else
11031  # We cannot hardcode anything, or else we can only hardcode existing
11032  # directories.
11033  hardcode_action=unsupported
11034fi
11035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11036$as_echo "$hardcode_action" >&6; }
11037
11038if test "$hardcode_action" = relink ||
11039   test "$inherit_rpath" = yes; then
11040  # Fast installation is not supported
11041  enable_fast_install=no
11042elif test "$shlibpath_overrides_runpath" = yes ||
11043     test "$enable_shared" = no; then
11044  # Fast installation is not necessary
11045  enable_fast_install=needless
11046fi
11047
11048
11049
11050
11051
11052
11053  if test "x$enable_dlopen" != xyes; then
11054  enable_dlopen=unknown
11055  enable_dlopen_self=unknown
11056  enable_dlopen_self_static=unknown
11057else
11058  lt_cv_dlopen=no
11059  lt_cv_dlopen_libs=
11060
11061  case $host_os in
11062  beos*)
11063    lt_cv_dlopen="load_add_on"
11064    lt_cv_dlopen_libs=
11065    lt_cv_dlopen_self=yes
11066    ;;
11067
11068  mingw* | pw32* | cegcc*)
11069    lt_cv_dlopen="LoadLibrary"
11070    lt_cv_dlopen_libs=
11071    ;;
11072
11073  cygwin*)
11074    lt_cv_dlopen="dlopen"
11075    lt_cv_dlopen_libs=
11076    ;;
11077
11078  darwin*)
11079  # if libdl is installed we need to link against it
11080    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11081$as_echo_n "checking for dlopen in -ldl... " >&6; }
11082if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11083  $as_echo_n "(cached) " >&6
11084else
11085  ac_check_lib_save_LIBS=$LIBS
11086LIBS="-ldl  $LIBS"
11087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11088/* end confdefs.h.  */
11089
11090/* Override any GCC internal prototype to avoid an error.
11091   Use char because int might match the return type of a GCC
11092   builtin and then its argument prototype would still apply.  */
11093#ifdef __cplusplus
11094extern "C"
11095#endif
11096char dlopen ();
11097int
11098main ()
11099{
11100return dlopen ();
11101  ;
11102  return 0;
11103}
11104_ACEOF
11105if ac_fn_c_try_link "$LINENO"; then :
11106  ac_cv_lib_dl_dlopen=yes
11107else
11108  ac_cv_lib_dl_dlopen=no
11109fi
11110rm -f core conftest.err conftest.$ac_objext \
11111    conftest$ac_exeext conftest.$ac_ext
11112LIBS=$ac_check_lib_save_LIBS
11113fi
11114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11115$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11116if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11117  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11118else
11119
11120    lt_cv_dlopen="dyld"
11121    lt_cv_dlopen_libs=
11122    lt_cv_dlopen_self=yes
11123
11124fi
11125
11126    ;;
11127
11128  *)
11129    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11130if test "x$ac_cv_func_shl_load" = x""yes; then :
11131  lt_cv_dlopen="shl_load"
11132else
11133  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11134$as_echo_n "checking for shl_load in -ldld... " >&6; }
11135if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11136  $as_echo_n "(cached) " >&6
11137else
11138  ac_check_lib_save_LIBS=$LIBS
11139LIBS="-ldld  $LIBS"
11140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11141/* end confdefs.h.  */
11142
11143/* Override any GCC internal prototype to avoid an error.
11144   Use char because int might match the return type of a GCC
11145   builtin and then its argument prototype would still apply.  */
11146#ifdef __cplusplus
11147extern "C"
11148#endif
11149char shl_load ();
11150int
11151main ()
11152{
11153return shl_load ();
11154  ;
11155  return 0;
11156}
11157_ACEOF
11158if ac_fn_c_try_link "$LINENO"; then :
11159  ac_cv_lib_dld_shl_load=yes
11160else
11161  ac_cv_lib_dld_shl_load=no
11162fi
11163rm -f core conftest.err conftest.$ac_objext \
11164    conftest$ac_exeext conftest.$ac_ext
11165LIBS=$ac_check_lib_save_LIBS
11166fi
11167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11168$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11169if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11170  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11171else
11172  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11173if test "x$ac_cv_func_dlopen" = x""yes; then :
11174  lt_cv_dlopen="dlopen"
11175else
11176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11177$as_echo_n "checking for dlopen in -ldl... " >&6; }
11178if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11179  $as_echo_n "(cached) " >&6
11180else
11181  ac_check_lib_save_LIBS=$LIBS
11182LIBS="-ldl  $LIBS"
11183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11184/* end confdefs.h.  */
11185
11186/* Override any GCC internal prototype to avoid an error.
11187   Use char because int might match the return type of a GCC
11188   builtin and then its argument prototype would still apply.  */
11189#ifdef __cplusplus
11190extern "C"
11191#endif
11192char dlopen ();
11193int
11194main ()
11195{
11196return dlopen ();
11197  ;
11198  return 0;
11199}
11200_ACEOF
11201if ac_fn_c_try_link "$LINENO"; then :
11202  ac_cv_lib_dl_dlopen=yes
11203else
11204  ac_cv_lib_dl_dlopen=no
11205fi
11206rm -f core conftest.err conftest.$ac_objext \
11207    conftest$ac_exeext conftest.$ac_ext
11208LIBS=$ac_check_lib_save_LIBS
11209fi
11210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11211$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11212if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11213  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11214else
11215  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11216$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11217if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11218  $as_echo_n "(cached) " >&6
11219else
11220  ac_check_lib_save_LIBS=$LIBS
11221LIBS="-lsvld  $LIBS"
11222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223/* end confdefs.h.  */
11224
11225/* Override any GCC internal prototype to avoid an error.
11226   Use char because int might match the return type of a GCC
11227   builtin and then its argument prototype would still apply.  */
11228#ifdef __cplusplus
11229extern "C"
11230#endif
11231char dlopen ();
11232int
11233main ()
11234{
11235return dlopen ();
11236  ;
11237  return 0;
11238}
11239_ACEOF
11240if ac_fn_c_try_link "$LINENO"; then :
11241  ac_cv_lib_svld_dlopen=yes
11242else
11243  ac_cv_lib_svld_dlopen=no
11244fi
11245rm -f core conftest.err conftest.$ac_objext \
11246    conftest$ac_exeext conftest.$ac_ext
11247LIBS=$ac_check_lib_save_LIBS
11248fi
11249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11250$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11251if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11252  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11253else
11254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11255$as_echo_n "checking for dld_link in -ldld... " >&6; }
11256if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11257  $as_echo_n "(cached) " >&6
11258else
11259  ac_check_lib_save_LIBS=$LIBS
11260LIBS="-ldld  $LIBS"
11261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11262/* end confdefs.h.  */
11263
11264/* Override any GCC internal prototype to avoid an error.
11265   Use char because int might match the return type of a GCC
11266   builtin and then its argument prototype would still apply.  */
11267#ifdef __cplusplus
11268extern "C"
11269#endif
11270char dld_link ();
11271int
11272main ()
11273{
11274return dld_link ();
11275  ;
11276  return 0;
11277}
11278_ACEOF
11279if ac_fn_c_try_link "$LINENO"; then :
11280  ac_cv_lib_dld_dld_link=yes
11281else
11282  ac_cv_lib_dld_dld_link=no
11283fi
11284rm -f core conftest.err conftest.$ac_objext \
11285    conftest$ac_exeext conftest.$ac_ext
11286LIBS=$ac_check_lib_save_LIBS
11287fi
11288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11289$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11290if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11291  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11292fi
11293
11294
11295fi
11296
11297
11298fi
11299
11300
11301fi
11302
11303
11304fi
11305
11306
11307fi
11308
11309    ;;
11310  esac
11311
11312  if test "x$lt_cv_dlopen" != xno; then
11313    enable_dlopen=yes
11314  else
11315    enable_dlopen=no
11316  fi
11317
11318  case $lt_cv_dlopen in
11319  dlopen)
11320    save_CPPFLAGS="$CPPFLAGS"
11321    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11322
11323    save_LDFLAGS="$LDFLAGS"
11324    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11325
11326    save_LIBS="$LIBS"
11327    LIBS="$lt_cv_dlopen_libs $LIBS"
11328
11329    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11330$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11331if test "${lt_cv_dlopen_self+set}" = set; then :
11332  $as_echo_n "(cached) " >&6
11333else
11334  	  if test "$cross_compiling" = yes; then :
11335  lt_cv_dlopen_self=cross
11336else
11337  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11338  lt_status=$lt_dlunknown
11339  cat > conftest.$ac_ext <<_LT_EOF
11340#line 11340 "configure"
11341#include "confdefs.h"
11342
11343#if HAVE_DLFCN_H
11344#include <dlfcn.h>
11345#endif
11346
11347#include <stdio.h>
11348
11349#ifdef RTLD_GLOBAL
11350#  define LT_DLGLOBAL		RTLD_GLOBAL
11351#else
11352#  ifdef DL_GLOBAL
11353#    define LT_DLGLOBAL		DL_GLOBAL
11354#  else
11355#    define LT_DLGLOBAL		0
11356#  endif
11357#endif
11358
11359/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11360   find out it does not work in some platform. */
11361#ifndef LT_DLLAZY_OR_NOW
11362#  ifdef RTLD_LAZY
11363#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11364#  else
11365#    ifdef DL_LAZY
11366#      define LT_DLLAZY_OR_NOW		DL_LAZY
11367#    else
11368#      ifdef RTLD_NOW
11369#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11370#      else
11371#        ifdef DL_NOW
11372#          define LT_DLLAZY_OR_NOW	DL_NOW
11373#        else
11374#          define LT_DLLAZY_OR_NOW	0
11375#        endif
11376#      endif
11377#    endif
11378#  endif
11379#endif
11380
11381void fnord() { int i=42;}
11382int main ()
11383{
11384  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11385  int status = $lt_dlunknown;
11386
11387  if (self)
11388    {
11389      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11390      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11391      /* dlclose (self); */
11392    }
11393  else
11394    puts (dlerror ());
11395
11396  return status;
11397}
11398_LT_EOF
11399  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11400  (eval $ac_link) 2>&5
11401  ac_status=$?
11402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11403  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11404    (./conftest; exit; ) >&5 2>/dev/null
11405    lt_status=$?
11406    case x$lt_status in
11407      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11408      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11409      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11410    esac
11411  else :
11412    # compilation failed
11413    lt_cv_dlopen_self=no
11414  fi
11415fi
11416rm -fr conftest*
11417
11418
11419fi
11420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11421$as_echo "$lt_cv_dlopen_self" >&6; }
11422
11423    if test "x$lt_cv_dlopen_self" = xyes; then
11424      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11425      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11426$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11427if test "${lt_cv_dlopen_self_static+set}" = set; then :
11428  $as_echo_n "(cached) " >&6
11429else
11430  	  if test "$cross_compiling" = yes; then :
11431  lt_cv_dlopen_self_static=cross
11432else
11433  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11434  lt_status=$lt_dlunknown
11435  cat > conftest.$ac_ext <<_LT_EOF
11436#line 11436 "configure"
11437#include "confdefs.h"
11438
11439#if HAVE_DLFCN_H
11440#include <dlfcn.h>
11441#endif
11442
11443#include <stdio.h>
11444
11445#ifdef RTLD_GLOBAL
11446#  define LT_DLGLOBAL		RTLD_GLOBAL
11447#else
11448#  ifdef DL_GLOBAL
11449#    define LT_DLGLOBAL		DL_GLOBAL
11450#  else
11451#    define LT_DLGLOBAL		0
11452#  endif
11453#endif
11454
11455/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11456   find out it does not work in some platform. */
11457#ifndef LT_DLLAZY_OR_NOW
11458#  ifdef RTLD_LAZY
11459#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11460#  else
11461#    ifdef DL_LAZY
11462#      define LT_DLLAZY_OR_NOW		DL_LAZY
11463#    else
11464#      ifdef RTLD_NOW
11465#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11466#      else
11467#        ifdef DL_NOW
11468#          define LT_DLLAZY_OR_NOW	DL_NOW
11469#        else
11470#          define LT_DLLAZY_OR_NOW	0
11471#        endif
11472#      endif
11473#    endif
11474#  endif
11475#endif
11476
11477void fnord() { int i=42;}
11478int main ()
11479{
11480  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11481  int status = $lt_dlunknown;
11482
11483  if (self)
11484    {
11485      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11486      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11487      /* dlclose (self); */
11488    }
11489  else
11490    puts (dlerror ());
11491
11492  return status;
11493}
11494_LT_EOF
11495  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11496  (eval $ac_link) 2>&5
11497  ac_status=$?
11498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11499  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11500    (./conftest; exit; ) >&5 2>/dev/null
11501    lt_status=$?
11502    case x$lt_status in
11503      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11504      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11505      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11506    esac
11507  else :
11508    # compilation failed
11509    lt_cv_dlopen_self_static=no
11510  fi
11511fi
11512rm -fr conftest*
11513
11514
11515fi
11516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11517$as_echo "$lt_cv_dlopen_self_static" >&6; }
11518    fi
11519
11520    CPPFLAGS="$save_CPPFLAGS"
11521    LDFLAGS="$save_LDFLAGS"
11522    LIBS="$save_LIBS"
11523    ;;
11524  esac
11525
11526  case $lt_cv_dlopen_self in
11527  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11528  *) enable_dlopen_self=unknown ;;
11529  esac
11530
11531  case $lt_cv_dlopen_self_static in
11532  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11533  *) enable_dlopen_self_static=unknown ;;
11534  esac
11535fi
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553striplib=
11554old_striplib=
11555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11556$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11557if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11558  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11559  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11561$as_echo "yes" >&6; }
11562else
11563# FIXME - insert some real tests, host_os isn't really good enough
11564  case $host_os in
11565  darwin*)
11566    if test -n "$STRIP" ; then
11567      striplib="$STRIP -x"
11568      old_striplib="$STRIP -S"
11569      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11570$as_echo "yes" >&6; }
11571    else
11572      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573$as_echo "no" >&6; }
11574    fi
11575    ;;
11576  *)
11577    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578$as_echo "no" >&6; }
11579    ;;
11580  esac
11581fi
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594  # Report which library types will actually be built
11595  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11596$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11598$as_echo "$can_build_shared" >&6; }
11599
11600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11601$as_echo_n "checking whether to build shared libraries... " >&6; }
11602  test "$can_build_shared" = "no" && enable_shared=no
11603
11604  # On AIX, shared libraries and static libraries use the same namespace, and
11605  # are all built from PIC.
11606  case $host_os in
11607  aix3*)
11608    test "$enable_shared" = yes && enable_static=no
11609    if test -n "$RANLIB"; then
11610      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11611      postinstall_cmds='$RANLIB $lib'
11612    fi
11613    ;;
11614
11615  aix[4-9]*)
11616    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11617      test "$enable_shared" = yes && enable_static=no
11618    fi
11619    ;;
11620  esac
11621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11622$as_echo "$enable_shared" >&6; }
11623
11624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11625$as_echo_n "checking whether to build static libraries... " >&6; }
11626  # Make sure either enable_shared or enable_static is yes.
11627  test "$enable_shared" = yes || enable_static=yes
11628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11629$as_echo "$enable_static" >&6; }
11630
11631
11632
11633
11634fi
11635ac_ext=c
11636ac_cpp='$CPP $CPPFLAGS'
11637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11639ac_compiler_gnu=$ac_cv_c_compiler_gnu
11640
11641CC="$lt_save_CC"
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655        ac_config_commands="$ac_config_commands libtool"
11656
11657
11658
11659
11660# Only expand once:
11661
11662
11663
11664# Check render configuration, strip extra digits from package version to
11665# find the required protocol version
11666
11667if test "$VERSION" = "" ; then
11668       VERSION=$PACKAGE_VERSION;
11669fi
11670RENDER_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
11671
11672
11673pkg_failed=no
11674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RENDER" >&5
11675$as_echo_n "checking for RENDER... " >&6; }
11676
11677if test -n "$RENDER_CFLAGS"; then
11678    pkg_cv_RENDER_CFLAGS="$RENDER_CFLAGS"
11679 elif test -n "$PKG_CONFIG"; then
11680    if test -n "$PKG_CONFIG" && \
11681    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 renderproto >= \$RENDER_VERSION\""; } >&5
11682  ($PKG_CONFIG --exists --print-errors "x11 renderproto >= $RENDER_VERSION") 2>&5
11683  ac_status=$?
11684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11685  test $ac_status = 0; }; then
11686  pkg_cv_RENDER_CFLAGS=`$PKG_CONFIG --cflags "x11 renderproto >= $RENDER_VERSION" 2>/dev/null`
11687else
11688  pkg_failed=yes
11689fi
11690 else
11691    pkg_failed=untried
11692fi
11693if test -n "$RENDER_LIBS"; then
11694    pkg_cv_RENDER_LIBS="$RENDER_LIBS"
11695 elif test -n "$PKG_CONFIG"; then
11696    if test -n "$PKG_CONFIG" && \
11697    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 renderproto >= \$RENDER_VERSION\""; } >&5
11698  ($PKG_CONFIG --exists --print-errors "x11 renderproto >= $RENDER_VERSION") 2>&5
11699  ac_status=$?
11700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11701  test $ac_status = 0; }; then
11702  pkg_cv_RENDER_LIBS=`$PKG_CONFIG --libs "x11 renderproto >= $RENDER_VERSION" 2>/dev/null`
11703else
11704  pkg_failed=yes
11705fi
11706 else
11707    pkg_failed=untried
11708fi
11709
11710
11711
11712if test $pkg_failed = yes; then
11713
11714if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11715        _pkg_short_errors_supported=yes
11716else
11717        _pkg_short_errors_supported=no
11718fi
11719        if test $_pkg_short_errors_supported = yes; then
11720	        RENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 renderproto >= $RENDER_VERSION" 2>&1`
11721        else
11722	        RENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 renderproto >= $RENDER_VERSION" 2>&1`
11723        fi
11724	# Put the nasty error message in config.log where it belongs
11725	echo "$RENDER_PKG_ERRORS" >&5
11726
11727	as_fn_error "Package requirements (x11 renderproto >= $RENDER_VERSION) were not met:
11728
11729$RENDER_PKG_ERRORS
11730
11731Consider adjusting the PKG_CONFIG_PATH environment variable if you
11732installed software in a non-standard prefix.
11733
11734Alternatively, you may set the environment variables RENDER_CFLAGS
11735and RENDER_LIBS to avoid the need to call pkg-config.
11736See the pkg-config man page for more details.
11737" "$LINENO" 5
11738elif test $pkg_failed = untried; then
11739	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11741as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
11742is in your PATH or set the PKG_CONFIG environment variable to the full
11743path to pkg-config.
11744
11745Alternatively, you may set the environment variables RENDER_CFLAGS
11746and RENDER_LIBS to avoid the need to call pkg-config.
11747See the pkg-config man page for more details.
11748
11749To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11750See \`config.log' for more details." "$LINENO" 5; }
11751else
11752	RENDER_CFLAGS=$pkg_cv_RENDER_CFLAGS
11753	RENDER_LIBS=$pkg_cv_RENDER_LIBS
11754        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11755$as_echo "yes" >&6; }
11756	:
11757fi
11758
11759
11760
11761# Check whether --enable-malloc0returnsnull was given.
11762if test "${enable_malloc0returnsnull+set}" = set; then :
11763  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
11764else
11765  MALLOC_ZERO_RETURNS_NULL=auto
11766fi
11767
11768
11769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
11770$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
11771if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
11772	if test "$cross_compiling" = yes; then :
11773  MALLOC_ZERO_RETURNS_NULL=yes
11774else
11775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11776/* end confdefs.h.  */
11777
11778char *malloc();
11779char *realloc();
11780char *calloc();
11781main() {
11782    char *m0, *r0, *c0, *p;
11783    m0 = malloc(0);
11784    p = malloc(10);
11785    r0 = realloc(p,0);
11786    c0 = calloc(0);
11787    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
11788}
11789_ACEOF
11790if ac_fn_c_try_run "$LINENO"; then :
11791  MALLOC_ZERO_RETURNS_NULL=yes
11792else
11793  MALLOC_ZERO_RETURNS_NULL=no
11794fi
11795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11796  conftest.$ac_objext conftest.beam conftest.$ac_ext
11797fi
11798
11799fi
11800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
11801$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
11802
11803if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
11804	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
11805	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
11806	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
11807else
11808	MALLOC_ZERO_CFLAGS=""
11809	XMALLOC_ZERO_CFLAGS=""
11810	XTMALLOC_ZERO_CFLAGS=""
11811fi
11812
11813
11814
11815
11816
11817
11818ac_config_files="$ac_config_files Makefile src/Makefile xrender.pc"
11819
11820cat >confcache <<\_ACEOF
11821# This file is a shell script that caches the results of configure
11822# tests run on this system so they can be shared between configure
11823# scripts and configure runs, see configure's option --config-cache.
11824# It is not useful on other systems.  If it contains results you don't
11825# want to keep, you may remove or edit it.
11826#
11827# config.status only pays attention to the cache file if you give it
11828# the --recheck option to rerun configure.
11829#
11830# `ac_cv_env_foo' variables (set or unset) will be overridden when
11831# loading this file, other *unset* `ac_cv_foo' will be assigned the
11832# following values.
11833
11834_ACEOF
11835
11836# The following way of writing the cache mishandles newlines in values,
11837# but we know of no workaround that is simple, portable, and efficient.
11838# So, we kill variables containing newlines.
11839# Ultrix sh set writes to stderr and can't be redirected directly,
11840# and sets the high bit in the cache file unless we assign to the vars.
11841(
11842  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11843    eval ac_val=\$$ac_var
11844    case $ac_val in #(
11845    *${as_nl}*)
11846      case $ac_var in #(
11847      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11848$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11849      esac
11850      case $ac_var in #(
11851      _ | IFS | as_nl) ;; #(
11852      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11853      *) { eval $ac_var=; unset $ac_var;} ;;
11854      esac ;;
11855    esac
11856  done
11857
11858  (set) 2>&1 |
11859    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11860    *${as_nl}ac_space=\ *)
11861      # `set' does not quote correctly, so add quotes: double-quote
11862      # substitution turns \\\\ into \\, and sed turns \\ into \.
11863      sed -n \
11864	"s/'/'\\\\''/g;
11865	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11866      ;; #(
11867    *)
11868      # `set' quotes correctly as required by POSIX, so do not add quotes.
11869      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11870      ;;
11871    esac |
11872    sort
11873) |
11874  sed '
11875     /^ac_cv_env_/b end
11876     t clear
11877     :clear
11878     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11879     t end
11880     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11881     :end' >>confcache
11882if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11883  if test -w "$cache_file"; then
11884    test "x$cache_file" != "x/dev/null" &&
11885      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11886$as_echo "$as_me: updating cache $cache_file" >&6;}
11887    cat confcache >$cache_file
11888  else
11889    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11890$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11891  fi
11892fi
11893rm -f confcache
11894
11895test "x$prefix" = xNONE && prefix=$ac_default_prefix
11896# Let make expand exec_prefix.
11897test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11898
11899DEFS=-DHAVE_CONFIG_H
11900
11901ac_libobjs=
11902ac_ltlibobjs=
11903for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11904  # 1. Remove the extension, and $U if already installed.
11905  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11906  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11907  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11908  #    will be set to the directory where LIBOBJS objects are built.
11909  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11910  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11911done
11912LIBOBJS=$ac_libobjs
11913
11914LTLIBOBJS=$ac_ltlibobjs
11915
11916
11917 if test -n "$EXEEXT"; then
11918  am__EXEEXT_TRUE=
11919  am__EXEEXT_FALSE='#'
11920else
11921  am__EXEEXT_TRUE='#'
11922  am__EXEEXT_FALSE=
11923fi
11924
11925if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11926  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11927Usually this means the macro was only invoked conditionally." "$LINENO" 5
11928fi
11929if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11930  as_fn_error "conditional \"AMDEP\" was never defined.
11931Usually this means the macro was only invoked conditionally." "$LINENO" 5
11932fi
11933if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11934  as_fn_error "conditional \"am__fastdepCC\" was never defined.
11935Usually this means the macro was only invoked conditionally." "$LINENO" 5
11936fi
11937if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11938  as_fn_error "conditional \"am__fastdepCC\" was never defined.
11939Usually this means the macro was only invoked conditionally." "$LINENO" 5
11940fi
11941
11942: ${CONFIG_STATUS=./config.status}
11943ac_write_fail=0
11944ac_clean_files_save=$ac_clean_files
11945ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11946{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11947$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11948as_write_fail=0
11949cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11950#! $SHELL
11951# Generated by $as_me.
11952# Run this file to recreate the current configuration.
11953# Compiler output produced by configure, useful for debugging
11954# configure, is in config.log if it exists.
11955
11956debug=false
11957ac_cs_recheck=false
11958ac_cs_silent=false
11959
11960SHELL=\${CONFIG_SHELL-$SHELL}
11961export SHELL
11962_ASEOF
11963cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11964## -------------------- ##
11965## M4sh Initialization. ##
11966## -------------------- ##
11967
11968# Be more Bourne compatible
11969DUALCASE=1; export DUALCASE # for MKS sh
11970if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11971  emulate sh
11972  NULLCMD=:
11973  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11974  # is contrary to our usage.  Disable this feature.
11975  alias -g '${1+"$@"}'='"$@"'
11976  setopt NO_GLOB_SUBST
11977else
11978  case `(set -o) 2>/dev/null` in #(
11979  *posix*) :
11980    set -o posix ;; #(
11981  *) :
11982     ;;
11983esac
11984fi
11985
11986
11987as_nl='
11988'
11989export as_nl
11990# Printing a long string crashes Solaris 7 /usr/bin/printf.
11991as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11992as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11993as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11994# Prefer a ksh shell builtin over an external printf program on Solaris,
11995# but without wasting forks for bash or zsh.
11996if test -z "$BASH_VERSION$ZSH_VERSION" \
11997    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11998  as_echo='print -r --'
11999  as_echo_n='print -rn --'
12000elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12001  as_echo='printf %s\n'
12002  as_echo_n='printf %s'
12003else
12004  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12005    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12006    as_echo_n='/usr/ucb/echo -n'
12007  else
12008    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12009    as_echo_n_body='eval
12010      arg=$1;
12011      case $arg in #(
12012      *"$as_nl"*)
12013	expr "X$arg" : "X\\(.*\\)$as_nl";
12014	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12015      esac;
12016      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12017    '
12018    export as_echo_n_body
12019    as_echo_n='sh -c $as_echo_n_body as_echo'
12020  fi
12021  export as_echo_body
12022  as_echo='sh -c $as_echo_body as_echo'
12023fi
12024
12025# The user is always right.
12026if test "${PATH_SEPARATOR+set}" != set; then
12027  PATH_SEPARATOR=:
12028  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12029    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12030      PATH_SEPARATOR=';'
12031  }
12032fi
12033
12034
12035# IFS
12036# We need space, tab and new line, in precisely that order.  Quoting is
12037# there to prevent editors from complaining about space-tab.
12038# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12039# splitting by setting IFS to empty value.)
12040IFS=" ""	$as_nl"
12041
12042# Find who we are.  Look in the path if we contain no directory separator.
12043case $0 in #((
12044  *[\\/]* ) as_myself=$0 ;;
12045  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046for as_dir in $PATH
12047do
12048  IFS=$as_save_IFS
12049  test -z "$as_dir" && as_dir=.
12050    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12051  done
12052IFS=$as_save_IFS
12053
12054     ;;
12055esac
12056# We did not find ourselves, most probably we were run as `sh COMMAND'
12057# in which case we are not to be found in the path.
12058if test "x$as_myself" = x; then
12059  as_myself=$0
12060fi
12061if test ! -f "$as_myself"; then
12062  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12063  exit 1
12064fi
12065
12066# Unset variables that we do not need and which cause bugs (e.g. in
12067# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12068# suppresses any "Segmentation fault" message there.  '((' could
12069# trigger a bug in pdksh 5.2.14.
12070for as_var in BASH_ENV ENV MAIL MAILPATH
12071do eval test x\${$as_var+set} = xset \
12072  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12073done
12074PS1='$ '
12075PS2='> '
12076PS4='+ '
12077
12078# NLS nuisances.
12079LC_ALL=C
12080export LC_ALL
12081LANGUAGE=C
12082export LANGUAGE
12083
12084# CDPATH.
12085(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12086
12087
12088# as_fn_error ERROR [LINENO LOG_FD]
12089# ---------------------------------
12090# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12091# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12092# script with status $?, using 1 if that was 0.
12093as_fn_error ()
12094{
12095  as_status=$?; test $as_status -eq 0 && as_status=1
12096  if test "$3"; then
12097    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12098    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12099  fi
12100  $as_echo "$as_me: error: $1" >&2
12101  as_fn_exit $as_status
12102} # as_fn_error
12103
12104
12105# as_fn_set_status STATUS
12106# -----------------------
12107# Set $? to STATUS, without forking.
12108as_fn_set_status ()
12109{
12110  return $1
12111} # as_fn_set_status
12112
12113# as_fn_exit STATUS
12114# -----------------
12115# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12116as_fn_exit ()
12117{
12118  set +e
12119  as_fn_set_status $1
12120  exit $1
12121} # as_fn_exit
12122
12123# as_fn_unset VAR
12124# ---------------
12125# Portably unset VAR.
12126as_fn_unset ()
12127{
12128  { eval $1=; unset $1;}
12129}
12130as_unset=as_fn_unset
12131# as_fn_append VAR VALUE
12132# ----------------------
12133# Append the text in VALUE to the end of the definition contained in VAR. Take
12134# advantage of any shell optimizations that allow amortized linear growth over
12135# repeated appends, instead of the typical quadratic growth present in naive
12136# implementations.
12137if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12138  eval 'as_fn_append ()
12139  {
12140    eval $1+=\$2
12141  }'
12142else
12143  as_fn_append ()
12144  {
12145    eval $1=\$$1\$2
12146  }
12147fi # as_fn_append
12148
12149# as_fn_arith ARG...
12150# ------------------
12151# Perform arithmetic evaluation on the ARGs, and store the result in the
12152# global $as_val. Take advantage of shells that can avoid forks. The arguments
12153# must be portable across $(()) and expr.
12154if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12155  eval 'as_fn_arith ()
12156  {
12157    as_val=$(( $* ))
12158  }'
12159else
12160  as_fn_arith ()
12161  {
12162    as_val=`expr "$@" || test $? -eq 1`
12163  }
12164fi # as_fn_arith
12165
12166
12167if expr a : '\(a\)' >/dev/null 2>&1 &&
12168   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12169  as_expr=expr
12170else
12171  as_expr=false
12172fi
12173
12174if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12175  as_basename=basename
12176else
12177  as_basename=false
12178fi
12179
12180if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12181  as_dirname=dirname
12182else
12183  as_dirname=false
12184fi
12185
12186as_me=`$as_basename -- "$0" ||
12187$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12188	 X"$0" : 'X\(//\)$' \| \
12189	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12190$as_echo X/"$0" |
12191    sed '/^.*\/\([^/][^/]*\)\/*$/{
12192	    s//\1/
12193	    q
12194	  }
12195	  /^X\/\(\/\/\)$/{
12196	    s//\1/
12197	    q
12198	  }
12199	  /^X\/\(\/\).*/{
12200	    s//\1/
12201	    q
12202	  }
12203	  s/.*/./; q'`
12204
12205# Avoid depending upon Character Ranges.
12206as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12207as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12208as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12209as_cr_digits='0123456789'
12210as_cr_alnum=$as_cr_Letters$as_cr_digits
12211
12212ECHO_C= ECHO_N= ECHO_T=
12213case `echo -n x` in #(((((
12214-n*)
12215  case `echo 'xy\c'` in
12216  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12217  xy)  ECHO_C='\c';;
12218  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12219       ECHO_T='	';;
12220  esac;;
12221*)
12222  ECHO_N='-n';;
12223esac
12224
12225rm -f conf$$ conf$$.exe conf$$.file
12226if test -d conf$$.dir; then
12227  rm -f conf$$.dir/conf$$.file
12228else
12229  rm -f conf$$.dir
12230  mkdir conf$$.dir 2>/dev/null
12231fi
12232if (echo >conf$$.file) 2>/dev/null; then
12233  if ln -s conf$$.file conf$$ 2>/dev/null; then
12234    as_ln_s='ln -s'
12235    # ... but there are two gotchas:
12236    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12237    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12238    # In both cases, we have to default to `cp -p'.
12239    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12240      as_ln_s='cp -p'
12241  elif ln conf$$.file conf$$ 2>/dev/null; then
12242    as_ln_s=ln
12243  else
12244    as_ln_s='cp -p'
12245  fi
12246else
12247  as_ln_s='cp -p'
12248fi
12249rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12250rmdir conf$$.dir 2>/dev/null
12251
12252
12253# as_fn_mkdir_p
12254# -------------
12255# Create "$as_dir" as a directory, including parents if necessary.
12256as_fn_mkdir_p ()
12257{
12258
12259  case $as_dir in #(
12260  -*) as_dir=./$as_dir;;
12261  esac
12262  test -d "$as_dir" || eval $as_mkdir_p || {
12263    as_dirs=
12264    while :; do
12265      case $as_dir in #(
12266      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12267      *) as_qdir=$as_dir;;
12268      esac
12269      as_dirs="'$as_qdir' $as_dirs"
12270      as_dir=`$as_dirname -- "$as_dir" ||
12271$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12272	 X"$as_dir" : 'X\(//\)[^/]' \| \
12273	 X"$as_dir" : 'X\(//\)$' \| \
12274	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12275$as_echo X"$as_dir" |
12276    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12277	    s//\1/
12278	    q
12279	  }
12280	  /^X\(\/\/\)[^/].*/{
12281	    s//\1/
12282	    q
12283	  }
12284	  /^X\(\/\/\)$/{
12285	    s//\1/
12286	    q
12287	  }
12288	  /^X\(\/\).*/{
12289	    s//\1/
12290	    q
12291	  }
12292	  s/.*/./; q'`
12293      test -d "$as_dir" && break
12294    done
12295    test -z "$as_dirs" || eval "mkdir $as_dirs"
12296  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12297
12298
12299} # as_fn_mkdir_p
12300if mkdir -p . 2>/dev/null; then
12301  as_mkdir_p='mkdir -p "$as_dir"'
12302else
12303  test -d ./-p && rmdir ./-p
12304  as_mkdir_p=false
12305fi
12306
12307if test -x / >/dev/null 2>&1; then
12308  as_test_x='test -x'
12309else
12310  if ls -dL / >/dev/null 2>&1; then
12311    as_ls_L_option=L
12312  else
12313    as_ls_L_option=
12314  fi
12315  as_test_x='
12316    eval sh -c '\''
12317      if test -d "$1"; then
12318	test -d "$1/.";
12319      else
12320	case $1 in #(
12321	-*)set "./$1";;
12322	esac;
12323	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12324	???[sx]*):;;*)false;;esac;fi
12325    '\'' sh
12326  '
12327fi
12328as_executable_p=$as_test_x
12329
12330# Sed expression to map a string onto a valid CPP name.
12331as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12332
12333# Sed expression to map a string onto a valid variable name.
12334as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12335
12336
12337exec 6>&1
12338## ----------------------------------- ##
12339## Main body of $CONFIG_STATUS script. ##
12340## ----------------------------------- ##
12341_ASEOF
12342test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12343
12344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12345# Save the log message, to keep $0 and so on meaningful, and to
12346# report actual input values of CONFIG_FILES etc. instead of their
12347# values after options handling.
12348ac_log="
12349This file was extended by libXrender $as_me 0.9.6, which was
12350generated by GNU Autoconf 2.65.  Invocation command line was
12351
12352  CONFIG_FILES    = $CONFIG_FILES
12353  CONFIG_HEADERS  = $CONFIG_HEADERS
12354  CONFIG_LINKS    = $CONFIG_LINKS
12355  CONFIG_COMMANDS = $CONFIG_COMMANDS
12356  $ $0 $@
12357
12358on `(hostname || uname -n) 2>/dev/null | sed 1q`
12359"
12360
12361_ACEOF
12362
12363case $ac_config_files in *"
12364"*) set x $ac_config_files; shift; ac_config_files=$*;;
12365esac
12366
12367case $ac_config_headers in *"
12368"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12369esac
12370
12371
12372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12373# Files that config.status was made for.
12374config_files="$ac_config_files"
12375config_headers="$ac_config_headers"
12376config_commands="$ac_config_commands"
12377
12378_ACEOF
12379
12380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12381ac_cs_usage="\
12382\`$as_me' instantiates files and other configuration actions
12383from templates according to the current configuration.  Unless the files
12384and actions are specified as TAGs, all are instantiated by default.
12385
12386Usage: $0 [OPTION]... [TAG]...
12387
12388  -h, --help       print this help, then exit
12389  -V, --version    print version number and configuration settings, then exit
12390      --config     print configuration, then exit
12391  -q, --quiet, --silent
12392                   do not print progress messages
12393  -d, --debug      don't remove temporary files
12394      --recheck    update $as_me by reconfiguring in the same conditions
12395      --file=FILE[:TEMPLATE]
12396                   instantiate the configuration file FILE
12397      --header=FILE[:TEMPLATE]
12398                   instantiate the configuration header FILE
12399
12400Configuration files:
12401$config_files
12402
12403Configuration headers:
12404$config_headers
12405
12406Configuration commands:
12407$config_commands
12408
12409Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12410
12411_ACEOF
12412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12413ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12414ac_cs_version="\\
12415libXrender config.status 0.9.6
12416configured by $0, generated by GNU Autoconf 2.65,
12417  with options \\"\$ac_cs_config\\"
12418
12419Copyright (C) 2009 Free Software Foundation, Inc.
12420This config.status script is free software; the Free Software Foundation
12421gives unlimited permission to copy, distribute and modify it."
12422
12423ac_pwd='$ac_pwd'
12424srcdir='$srcdir'
12425INSTALL='$INSTALL'
12426MKDIR_P='$MKDIR_P'
12427AWK='$AWK'
12428test -n "\$AWK" || AWK=awk
12429_ACEOF
12430
12431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12432# The default lists apply if the user does not specify any file.
12433ac_need_defaults=:
12434while test $# != 0
12435do
12436  case $1 in
12437  --*=*)
12438    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12439    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12440    ac_shift=:
12441    ;;
12442  *)
12443    ac_option=$1
12444    ac_optarg=$2
12445    ac_shift=shift
12446    ;;
12447  esac
12448
12449  case $ac_option in
12450  # Handling of the options.
12451  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12452    ac_cs_recheck=: ;;
12453  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12454    $as_echo "$ac_cs_version"; exit ;;
12455  --config | --confi | --conf | --con | --co | --c )
12456    $as_echo "$ac_cs_config"; exit ;;
12457  --debug | --debu | --deb | --de | --d | -d )
12458    debug=: ;;
12459  --file | --fil | --fi | --f )
12460    $ac_shift
12461    case $ac_optarg in
12462    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12463    esac
12464    as_fn_append CONFIG_FILES " '$ac_optarg'"
12465    ac_need_defaults=false;;
12466  --header | --heade | --head | --hea )
12467    $ac_shift
12468    case $ac_optarg in
12469    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12470    esac
12471    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12472    ac_need_defaults=false;;
12473  --he | --h)
12474    # Conflict between --help and --header
12475    as_fn_error "ambiguous option: \`$1'
12476Try \`$0 --help' for more information.";;
12477  --help | --hel | -h )
12478    $as_echo "$ac_cs_usage"; exit ;;
12479  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12480  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12481    ac_cs_silent=: ;;
12482
12483  # This is an error.
12484  -*) as_fn_error "unrecognized option: \`$1'
12485Try \`$0 --help' for more information." ;;
12486
12487  *) as_fn_append ac_config_targets " $1"
12488     ac_need_defaults=false ;;
12489
12490  esac
12491  shift
12492done
12493
12494ac_configure_extra_args=
12495
12496if $ac_cs_silent; then
12497  exec 6>/dev/null
12498  ac_configure_extra_args="$ac_configure_extra_args --silent"
12499fi
12500
12501_ACEOF
12502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12503if \$ac_cs_recheck; then
12504  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12505  shift
12506  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12507  CONFIG_SHELL='$SHELL'
12508  export CONFIG_SHELL
12509  exec "\$@"
12510fi
12511
12512_ACEOF
12513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12514exec 5>>config.log
12515{
12516  echo
12517  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12518## Running $as_me. ##
12519_ASBOX
12520  $as_echo "$ac_log"
12521} >&5
12522
12523_ACEOF
12524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12525#
12526# INIT-COMMANDS
12527#
12528AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12529
12530
12531# The HP-UX ksh and POSIX shell print the target directory to stdout
12532# if CDPATH is set.
12533(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12534
12535sed_quote_subst='$sed_quote_subst'
12536double_quote_subst='$double_quote_subst'
12537delay_variable_subst='$delay_variable_subst'
12538macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12539macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12540enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12541enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12542pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12543enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12544host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12545host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12546host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12547build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12548build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12549build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12550SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12551Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12552GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12553EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12554FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12555LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12556NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12557LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12558max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12559ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12560exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12561lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12562lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12563lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12564reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12565reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12566OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12567deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12568file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12569AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12570AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12571STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12572RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12573old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12574old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12575old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12576CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12577CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12578compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12579GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12580lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12581lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12582lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12583lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12584objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12585SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12586ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12587MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12588lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12589lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12590lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12591lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12592lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12593need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12594DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12595NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12596LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12597OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12598OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12599libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12600shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12601extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12602archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12603enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12604export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12605whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12606compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12607old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12608old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12609archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12610archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12611module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12612module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12613with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12614allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12615no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12616hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12617hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12618hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12619hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12620hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12621hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12622hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12623hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12624inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12625link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12626fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12627always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12628export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12629exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12630include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12631prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12632file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12633variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12634need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12635need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12636version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12637runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12638shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12639shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12640libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12641library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12642soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12643postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12644postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12645finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12646finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12647hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12648sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12649sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12650hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12651enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12652enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12653enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12654old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12655striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12656
12657LTCC='$LTCC'
12658LTCFLAGS='$LTCFLAGS'
12659compiler='$compiler_DEFAULT'
12660
12661# Quote evaled strings.
12662for var in SED \
12663GREP \
12664EGREP \
12665FGREP \
12666LD \
12667NM \
12668LN_S \
12669lt_SP2NL \
12670lt_NL2SP \
12671reload_flag \
12672OBJDUMP \
12673deplibs_check_method \
12674file_magic_cmd \
12675AR \
12676AR_FLAGS \
12677STRIP \
12678RANLIB \
12679CC \
12680CFLAGS \
12681compiler \
12682lt_cv_sys_global_symbol_pipe \
12683lt_cv_sys_global_symbol_to_cdecl \
12684lt_cv_sys_global_symbol_to_c_name_address \
12685lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12686SHELL \
12687ECHO \
12688lt_prog_compiler_no_builtin_flag \
12689lt_prog_compiler_wl \
12690lt_prog_compiler_pic \
12691lt_prog_compiler_static \
12692lt_cv_prog_compiler_c_o \
12693need_locks \
12694DSYMUTIL \
12695NMEDIT \
12696LIPO \
12697OTOOL \
12698OTOOL64 \
12699shrext_cmds \
12700export_dynamic_flag_spec \
12701whole_archive_flag_spec \
12702compiler_needs_object \
12703with_gnu_ld \
12704allow_undefined_flag \
12705no_undefined_flag \
12706hardcode_libdir_flag_spec \
12707hardcode_libdir_flag_spec_ld \
12708hardcode_libdir_separator \
12709fix_srcfile_path \
12710exclude_expsyms \
12711include_expsyms \
12712file_list_spec \
12713variables_saved_for_relink \
12714libname_spec \
12715library_names_spec \
12716soname_spec \
12717finish_eval \
12718old_striplib \
12719striplib; do
12720    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12721    *[\\\\\\\`\\"\\\$]*)
12722      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12723      ;;
12724    *)
12725      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12726      ;;
12727    esac
12728done
12729
12730# Double-quote double-evaled strings.
12731for var in reload_cmds \
12732old_postinstall_cmds \
12733old_postuninstall_cmds \
12734old_archive_cmds \
12735extract_expsyms_cmds \
12736old_archive_from_new_cmds \
12737old_archive_from_expsyms_cmds \
12738archive_cmds \
12739archive_expsym_cmds \
12740module_cmds \
12741module_expsym_cmds \
12742export_symbols_cmds \
12743prelink_cmds \
12744postinstall_cmds \
12745postuninstall_cmds \
12746finish_cmds \
12747sys_lib_search_path_spec \
12748sys_lib_dlsearch_path_spec; do
12749    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12750    *[\\\\\\\`\\"\\\$]*)
12751      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12752      ;;
12753    *)
12754      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12755      ;;
12756    esac
12757done
12758
12759# Fix-up fallback echo if it was mangled by the above quoting rules.
12760case \$lt_ECHO in
12761*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12762  ;;
12763esac
12764
12765ac_aux_dir='$ac_aux_dir'
12766xsi_shell='$xsi_shell'
12767lt_shell_append='$lt_shell_append'
12768
12769# See if we are running on zsh, and set the options which allow our
12770# commands through without removal of \ escapes INIT.
12771if test -n "\${ZSH_VERSION+set}" ; then
12772   setopt NO_GLOB_SUBST
12773fi
12774
12775
12776    PACKAGE='$PACKAGE'
12777    VERSION='$VERSION'
12778    TIMESTAMP='$TIMESTAMP'
12779    RM='$RM'
12780    ofile='$ofile'
12781
12782
12783
12784
12785_ACEOF
12786
12787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12788
12789# Handling of arguments.
12790for ac_config_target in $ac_config_targets
12791do
12792  case $ac_config_target in
12793    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12794    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12795    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12796    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12797    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12798    "xrender.pc") CONFIG_FILES="$CONFIG_FILES xrender.pc" ;;
12799
12800  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12801  esac
12802done
12803
12804
12805# If the user did not use the arguments to specify the items to instantiate,
12806# then the envvar interface is used.  Set only those that are not.
12807# We use the long form for the default assignment because of an extremely
12808# bizarre bug on SunOS 4.1.3.
12809if $ac_need_defaults; then
12810  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12811  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12812  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12813fi
12814
12815# Have a temporary directory for convenience.  Make it in the build tree
12816# simply because there is no reason against having it here, and in addition,
12817# creating and moving files from /tmp can sometimes cause problems.
12818# Hook for its removal unless debugging.
12819# Note that there is a small window in which the directory will not be cleaned:
12820# after its creation but before its name has been assigned to `$tmp'.
12821$debug ||
12822{
12823  tmp=
12824  trap 'exit_status=$?
12825  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12826' 0
12827  trap 'as_fn_exit 1' 1 2 13 15
12828}
12829# Create a (secure) tmp directory for tmp files.
12830
12831{
12832  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12833  test -n "$tmp" && test -d "$tmp"
12834}  ||
12835{
12836  tmp=./conf$$-$RANDOM
12837  (umask 077 && mkdir "$tmp")
12838} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12839
12840# Set up the scripts for CONFIG_FILES section.
12841# No need to generate them if there are no CONFIG_FILES.
12842# This happens for instance with `./config.status config.h'.
12843if test -n "$CONFIG_FILES"; then
12844
12845
12846ac_cr=`echo X | tr X '\015'`
12847# On cygwin, bash can eat \r inside `` if the user requested igncr.
12848# But we know of no other shell where ac_cr would be empty at this
12849# point, so we can use a bashism as a fallback.
12850if test "x$ac_cr" = x; then
12851  eval ac_cr=\$\'\\r\'
12852fi
12853ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12854if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12855  ac_cs_awk_cr='\r'
12856else
12857  ac_cs_awk_cr=$ac_cr
12858fi
12859
12860echo 'BEGIN {' >"$tmp/subs1.awk" &&
12861_ACEOF
12862
12863
12864{
12865  echo "cat >conf$$subs.awk <<_ACEOF" &&
12866  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12867  echo "_ACEOF"
12868} >conf$$subs.sh ||
12869  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12870ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12871ac_delim='%!_!# '
12872for ac_last_try in false false false false false :; do
12873  . ./conf$$subs.sh ||
12874    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12875
12876  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12877  if test $ac_delim_n = $ac_delim_num; then
12878    break
12879  elif $ac_last_try; then
12880    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12881  else
12882    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12883  fi
12884done
12885rm -f conf$$subs.sh
12886
12887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12888cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12889_ACEOF
12890sed -n '
12891h
12892s/^/S["/; s/!.*/"]=/
12893p
12894g
12895s/^[^!]*!//
12896:repl
12897t repl
12898s/'"$ac_delim"'$//
12899t delim
12900:nl
12901h
12902s/\(.\{148\}\)..*/\1/
12903t more1
12904s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12905p
12906n
12907b repl
12908:more1
12909s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12910p
12911g
12912s/.\{148\}//
12913t nl
12914:delim
12915h
12916s/\(.\{148\}\)..*/\1/
12917t more2
12918s/["\\]/\\&/g; s/^/"/; s/$/"/
12919p
12920b
12921:more2
12922s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12923p
12924g
12925s/.\{148\}//
12926t delim
12927' <conf$$subs.awk | sed '
12928/^[^""]/{
12929  N
12930  s/\n//
12931}
12932' >>$CONFIG_STATUS || ac_write_fail=1
12933rm -f conf$$subs.awk
12934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12935_ACAWK
12936cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12937  for (key in S) S_is_set[key] = 1
12938  FS = ""
12939
12940}
12941{
12942  line = $ 0
12943  nfields = split(line, field, "@")
12944  substed = 0
12945  len = length(field[1])
12946  for (i = 2; i < nfields; i++) {
12947    key = field[i]
12948    keylen = length(key)
12949    if (S_is_set[key]) {
12950      value = S[key]
12951      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12952      len += length(value) + length(field[++i])
12953      substed = 1
12954    } else
12955      len += 1 + keylen
12956  }
12957
12958  print line
12959}
12960
12961_ACAWK
12962_ACEOF
12963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12964if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12965  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12966else
12967  cat
12968fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12969  || as_fn_error "could not setup config files machinery" "$LINENO" 5
12970_ACEOF
12971
12972# VPATH may cause trouble with some makes, so we remove $(srcdir),
12973# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12974# trailing colons and then remove the whole line if VPATH becomes empty
12975# (actually we leave an empty line to preserve line numbers).
12976if test "x$srcdir" = x.; then
12977  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12978s/:*\$(srcdir):*/:/
12979s/:*\${srcdir}:*/:/
12980s/:*@srcdir@:*/:/
12981s/^\([^=]*=[	 ]*\):*/\1/
12982s/:*$//
12983s/^[^=]*=[	 ]*$//
12984}'
12985fi
12986
12987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12988fi # test -n "$CONFIG_FILES"
12989
12990# Set up the scripts for CONFIG_HEADERS section.
12991# No need to generate them if there are no CONFIG_HEADERS.
12992# This happens for instance with `./config.status Makefile'.
12993if test -n "$CONFIG_HEADERS"; then
12994cat >"$tmp/defines.awk" <<\_ACAWK ||
12995BEGIN {
12996_ACEOF
12997
12998# Transform confdefs.h into an awk script `defines.awk', embedded as
12999# here-document in config.status, that substitutes the proper values into
13000# config.h.in to produce config.h.
13001
13002# Create a delimiter string that does not exist in confdefs.h, to ease
13003# handling of long lines.
13004ac_delim='%!_!# '
13005for ac_last_try in false false :; do
13006  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13007  if test -z "$ac_t"; then
13008    break
13009  elif $ac_last_try; then
13010    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13011  else
13012    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13013  fi
13014done
13015
13016# For the awk script, D is an array of macro values keyed by name,
13017# likewise P contains macro parameters if any.  Preserve backslash
13018# newline sequences.
13019
13020ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13021sed -n '
13022s/.\{148\}/&'"$ac_delim"'/g
13023t rset
13024:rset
13025s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13026t def
13027d
13028:def
13029s/\\$//
13030t bsnl
13031s/["\\]/\\&/g
13032s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13033D["\1"]=" \3"/p
13034s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13035d
13036:bsnl
13037s/["\\]/\\&/g
13038s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13039D["\1"]=" \3\\\\\\n"\\/p
13040t cont
13041s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13042t cont
13043d
13044:cont
13045n
13046s/.\{148\}/&'"$ac_delim"'/g
13047t clear
13048:clear
13049s/\\$//
13050t bsnlc
13051s/["\\]/\\&/g; s/^/"/; s/$/"/p
13052d
13053:bsnlc
13054s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13055b cont
13056' <confdefs.h | sed '
13057s/'"$ac_delim"'/"\\\
13058"/g' >>$CONFIG_STATUS || ac_write_fail=1
13059
13060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13061  for (key in D) D_is_set[key] = 1
13062  FS = ""
13063}
13064/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13065  line = \$ 0
13066  split(line, arg, " ")
13067  if (arg[1] == "#") {
13068    defundef = arg[2]
13069    mac1 = arg[3]
13070  } else {
13071    defundef = substr(arg[1], 2)
13072    mac1 = arg[2]
13073  }
13074  split(mac1, mac2, "(") #)
13075  macro = mac2[1]
13076  prefix = substr(line, 1, index(line, defundef) - 1)
13077  if (D_is_set[macro]) {
13078    # Preserve the white space surrounding the "#".
13079    print prefix "define", macro P[macro] D[macro]
13080    next
13081  } else {
13082    # Replace #undef with comments.  This is necessary, for example,
13083    # in the case of _POSIX_SOURCE, which is predefined and required
13084    # on some systems where configure will not decide to define it.
13085    if (defundef == "undef") {
13086      print "/*", prefix defundef, macro, "*/"
13087      next
13088    }
13089  }
13090}
13091{ print }
13092_ACAWK
13093_ACEOF
13094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13095  as_fn_error "could not setup config headers machinery" "$LINENO" 5
13096fi # test -n "$CONFIG_HEADERS"
13097
13098
13099eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13100shift
13101for ac_tag
13102do
13103  case $ac_tag in
13104  :[FHLC]) ac_mode=$ac_tag; continue;;
13105  esac
13106  case $ac_mode$ac_tag in
13107  :[FHL]*:*);;
13108  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13109  :[FH]-) ac_tag=-:-;;
13110  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13111  esac
13112  ac_save_IFS=$IFS
13113  IFS=:
13114  set x $ac_tag
13115  IFS=$ac_save_IFS
13116  shift
13117  ac_file=$1
13118  shift
13119
13120  case $ac_mode in
13121  :L) ac_source=$1;;
13122  :[FH])
13123    ac_file_inputs=
13124    for ac_f
13125    do
13126      case $ac_f in
13127      -) ac_f="$tmp/stdin";;
13128      *) # Look for the file first in the build tree, then in the source tree
13129	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13130	 # because $ac_f cannot contain `:'.
13131	 test -f "$ac_f" ||
13132	   case $ac_f in
13133	   [\\/$]*) false;;
13134	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13135	   esac ||
13136	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13137      esac
13138      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13139      as_fn_append ac_file_inputs " '$ac_f'"
13140    done
13141
13142    # Let's still pretend it is `configure' which instantiates (i.e., don't
13143    # use $as_me), people would be surprised to read:
13144    #    /* config.h.  Generated by config.status.  */
13145    configure_input='Generated from '`
13146	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13147	`' by configure.'
13148    if test x"$ac_file" != x-; then
13149      configure_input="$ac_file.  $configure_input"
13150      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13151$as_echo "$as_me: creating $ac_file" >&6;}
13152    fi
13153    # Neutralize special characters interpreted by sed in replacement strings.
13154    case $configure_input in #(
13155    *\&* | *\|* | *\\* )
13156       ac_sed_conf_input=`$as_echo "$configure_input" |
13157       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13158    *) ac_sed_conf_input=$configure_input;;
13159    esac
13160
13161    case $ac_tag in
13162    *:-:* | *:-) cat >"$tmp/stdin" \
13163      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13164    esac
13165    ;;
13166  esac
13167
13168  ac_dir=`$as_dirname -- "$ac_file" ||
13169$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13170	 X"$ac_file" : 'X\(//\)[^/]' \| \
13171	 X"$ac_file" : 'X\(//\)$' \| \
13172	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13173$as_echo X"$ac_file" |
13174    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13175	    s//\1/
13176	    q
13177	  }
13178	  /^X\(\/\/\)[^/].*/{
13179	    s//\1/
13180	    q
13181	  }
13182	  /^X\(\/\/\)$/{
13183	    s//\1/
13184	    q
13185	  }
13186	  /^X\(\/\).*/{
13187	    s//\1/
13188	    q
13189	  }
13190	  s/.*/./; q'`
13191  as_dir="$ac_dir"; as_fn_mkdir_p
13192  ac_builddir=.
13193
13194case "$ac_dir" in
13195.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13196*)
13197  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13198  # A ".." for each directory in $ac_dir_suffix.
13199  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13200  case $ac_top_builddir_sub in
13201  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13202  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13203  esac ;;
13204esac
13205ac_abs_top_builddir=$ac_pwd
13206ac_abs_builddir=$ac_pwd$ac_dir_suffix
13207# for backward compatibility:
13208ac_top_builddir=$ac_top_build_prefix
13209
13210case $srcdir in
13211  .)  # We are building in place.
13212    ac_srcdir=.
13213    ac_top_srcdir=$ac_top_builddir_sub
13214    ac_abs_top_srcdir=$ac_pwd ;;
13215  [\\/]* | ?:[\\/]* )  # Absolute name.
13216    ac_srcdir=$srcdir$ac_dir_suffix;
13217    ac_top_srcdir=$srcdir
13218    ac_abs_top_srcdir=$srcdir ;;
13219  *) # Relative name.
13220    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13221    ac_top_srcdir=$ac_top_build_prefix$srcdir
13222    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13223esac
13224ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13225
13226
13227  case $ac_mode in
13228  :F)
13229  #
13230  # CONFIG_FILE
13231  #
13232
13233  case $INSTALL in
13234  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13235  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13236  esac
13237  ac_MKDIR_P=$MKDIR_P
13238  case $MKDIR_P in
13239  [\\/$]* | ?:[\\/]* ) ;;
13240  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13241  esac
13242_ACEOF
13243
13244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13245# If the template does not know about datarootdir, expand it.
13246# FIXME: This hack should be removed a few years after 2.60.
13247ac_datarootdir_hack=; ac_datarootdir_seen=
13248ac_sed_dataroot='
13249/datarootdir/ {
13250  p
13251  q
13252}
13253/@datadir@/p
13254/@docdir@/p
13255/@infodir@/p
13256/@localedir@/p
13257/@mandir@/p'
13258case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13259*datarootdir*) ac_datarootdir_seen=yes;;
13260*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13261  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13262$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13263_ACEOF
13264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13265  ac_datarootdir_hack='
13266  s&@datadir@&$datadir&g
13267  s&@docdir@&$docdir&g
13268  s&@infodir@&$infodir&g
13269  s&@localedir@&$localedir&g
13270  s&@mandir@&$mandir&g
13271  s&\\\${datarootdir}&$datarootdir&g' ;;
13272esac
13273_ACEOF
13274
13275# Neutralize VPATH when `$srcdir' = `.'.
13276# Shell code in configure.ac might set extrasub.
13277# FIXME: do we really want to maintain this feature?
13278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13279ac_sed_extra="$ac_vpsub
13280$extrasub
13281_ACEOF
13282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13283:t
13284/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13285s|@configure_input@|$ac_sed_conf_input|;t t
13286s&@top_builddir@&$ac_top_builddir_sub&;t t
13287s&@top_build_prefix@&$ac_top_build_prefix&;t t
13288s&@srcdir@&$ac_srcdir&;t t
13289s&@abs_srcdir@&$ac_abs_srcdir&;t t
13290s&@top_srcdir@&$ac_top_srcdir&;t t
13291s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13292s&@builddir@&$ac_builddir&;t t
13293s&@abs_builddir@&$ac_abs_builddir&;t t
13294s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13295s&@INSTALL@&$ac_INSTALL&;t t
13296s&@MKDIR_P@&$ac_MKDIR_P&;t t
13297$ac_datarootdir_hack
13298"
13299eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13300  || as_fn_error "could not create $ac_file" "$LINENO" 5
13301
13302test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13303  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13304  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13305  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13306which seems to be undefined.  Please make sure it is defined." >&5
13307$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13308which seems to be undefined.  Please make sure it is defined." >&2;}
13309
13310  rm -f "$tmp/stdin"
13311  case $ac_file in
13312  -) cat "$tmp/out" && rm -f "$tmp/out";;
13313  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13314  esac \
13315  || as_fn_error "could not create $ac_file" "$LINENO" 5
13316 ;;
13317  :H)
13318  #
13319  # CONFIG_HEADER
13320  #
13321  if test x"$ac_file" != x-; then
13322    {
13323      $as_echo "/* $configure_input  */" \
13324      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13325    } >"$tmp/config.h" \
13326      || as_fn_error "could not create $ac_file" "$LINENO" 5
13327    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13328      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13329$as_echo "$as_me: $ac_file is unchanged" >&6;}
13330    else
13331      rm -f "$ac_file"
13332      mv "$tmp/config.h" "$ac_file" \
13333	|| as_fn_error "could not create $ac_file" "$LINENO" 5
13334    fi
13335  else
13336    $as_echo "/* $configure_input  */" \
13337      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13338      || as_fn_error "could not create -" "$LINENO" 5
13339  fi
13340# Compute "$ac_file"'s index in $config_headers.
13341_am_arg="$ac_file"
13342_am_stamp_count=1
13343for _am_header in $config_headers :; do
13344  case $_am_header in
13345    $_am_arg | $_am_arg:* )
13346      break ;;
13347    * )
13348      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13349  esac
13350done
13351echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13352$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13353	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13354	 X"$_am_arg" : 'X\(//\)$' \| \
13355	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13356$as_echo X"$_am_arg" |
13357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13358	    s//\1/
13359	    q
13360	  }
13361	  /^X\(\/\/\)[^/].*/{
13362	    s//\1/
13363	    q
13364	  }
13365	  /^X\(\/\/\)$/{
13366	    s//\1/
13367	    q
13368	  }
13369	  /^X\(\/\).*/{
13370	    s//\1/
13371	    q
13372	  }
13373	  s/.*/./; q'`/stamp-h$_am_stamp_count
13374 ;;
13375
13376  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13377$as_echo "$as_me: executing $ac_file commands" >&6;}
13378 ;;
13379  esac
13380
13381
13382  case $ac_file$ac_mode in
13383    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13384  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13385  # are listed without --file.  Let's play safe and only enable the eval
13386  # if we detect the quoting.
13387  case $CONFIG_FILES in
13388  *\'*) eval set x "$CONFIG_FILES" ;;
13389  *)   set x $CONFIG_FILES ;;
13390  esac
13391  shift
13392  for mf
13393  do
13394    # Strip MF so we end up with the name of the file.
13395    mf=`echo "$mf" | sed -e 's/:.*$//'`
13396    # Check whether this is an Automake generated Makefile or not.
13397    # We used to match only the files named `Makefile.in', but
13398    # some people rename them; so instead we look at the file content.
13399    # Grep'ing the first line is not enough: some people post-process
13400    # each Makefile.in and add a new line on top of each file to say so.
13401    # Grep'ing the whole file is not good either: AIX grep has a line
13402    # limit of 2048, but all sed's we know have understand at least 4000.
13403    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13404      dirpart=`$as_dirname -- "$mf" ||
13405$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13406	 X"$mf" : 'X\(//\)[^/]' \| \
13407	 X"$mf" : 'X\(//\)$' \| \
13408	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13409$as_echo X"$mf" |
13410    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13411	    s//\1/
13412	    q
13413	  }
13414	  /^X\(\/\/\)[^/].*/{
13415	    s//\1/
13416	    q
13417	  }
13418	  /^X\(\/\/\)$/{
13419	    s//\1/
13420	    q
13421	  }
13422	  /^X\(\/\).*/{
13423	    s//\1/
13424	    q
13425	  }
13426	  s/.*/./; q'`
13427    else
13428      continue
13429    fi
13430    # Extract the definition of DEPDIR, am__include, and am__quote
13431    # from the Makefile without running `make'.
13432    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13433    test -z "$DEPDIR" && continue
13434    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13435    test -z "am__include" && continue
13436    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13437    # When using ansi2knr, U may be empty or an underscore; expand it
13438    U=`sed -n 's/^U = //p' < "$mf"`
13439    # Find all dependency output files, they are included files with
13440    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13441    # simplest approach to changing $(DEPDIR) to its actual value in the
13442    # expansion.
13443    for file in `sed -n "
13444      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13445	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13446      # Make sure the directory exists.
13447      test -f "$dirpart/$file" && continue
13448      fdir=`$as_dirname -- "$file" ||
13449$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13450	 X"$file" : 'X\(//\)[^/]' \| \
13451	 X"$file" : 'X\(//\)$' \| \
13452	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13453$as_echo X"$file" |
13454    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13455	    s//\1/
13456	    q
13457	  }
13458	  /^X\(\/\/\)[^/].*/{
13459	    s//\1/
13460	    q
13461	  }
13462	  /^X\(\/\/\)$/{
13463	    s//\1/
13464	    q
13465	  }
13466	  /^X\(\/\).*/{
13467	    s//\1/
13468	    q
13469	  }
13470	  s/.*/./; q'`
13471      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13472      # echo "creating $dirpart/$file"
13473      echo '# dummy' > "$dirpart/$file"
13474    done
13475  done
13476}
13477 ;;
13478    "libtool":C)
13479
13480    # See if we are running on zsh, and set the options which allow our
13481    # commands through without removal of \ escapes.
13482    if test -n "${ZSH_VERSION+set}" ; then
13483      setopt NO_GLOB_SUBST
13484    fi
13485
13486    cfgfile="${ofile}T"
13487    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13488    $RM "$cfgfile"
13489
13490    cat <<_LT_EOF >> "$cfgfile"
13491#! $SHELL
13492
13493# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13494# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13495# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13496# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13497#
13498#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13499#                 2006, 2007, 2008 Free Software Foundation, Inc.
13500#   Written by Gordon Matzigkeit, 1996
13501#
13502#   This file is part of GNU Libtool.
13503#
13504# GNU Libtool is free software; you can redistribute it and/or
13505# modify it under the terms of the GNU General Public License as
13506# published by the Free Software Foundation; either version 2 of
13507# the License, or (at your option) any later version.
13508#
13509# As a special exception to the GNU General Public License,
13510# if you distribute this file as part of a program or library that
13511# is built using GNU Libtool, you may include this file under the
13512# same distribution terms that you use for the rest of that program.
13513#
13514# GNU Libtool is distributed in the hope that it will be useful,
13515# but WITHOUT ANY WARRANTY; without even the implied warranty of
13516# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13517# GNU General Public License for more details.
13518#
13519# You should have received a copy of the GNU General Public License
13520# along with GNU Libtool; see the file COPYING.  If not, a copy
13521# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13522# obtained by writing to the Free Software Foundation, Inc.,
13523# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13524
13525
13526# The names of the tagged configurations supported by this script.
13527available_tags=""
13528
13529# ### BEGIN LIBTOOL CONFIG
13530
13531# Which release of libtool.m4 was used?
13532macro_version=$macro_version
13533macro_revision=$macro_revision
13534
13535# Whether or not to build shared libraries.
13536build_libtool_libs=$enable_shared
13537
13538# Whether or not to build static libraries.
13539build_old_libs=$enable_static
13540
13541# What type of objects to build.
13542pic_mode=$pic_mode
13543
13544# Whether or not to optimize for fast installation.
13545fast_install=$enable_fast_install
13546
13547# The host system.
13548host_alias=$host_alias
13549host=$host
13550host_os=$host_os
13551
13552# The build system.
13553build_alias=$build_alias
13554build=$build
13555build_os=$build_os
13556
13557# A sed program that does not truncate output.
13558SED=$lt_SED
13559
13560# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13561Xsed="\$SED -e 1s/^X//"
13562
13563# A grep program that handles long lines.
13564GREP=$lt_GREP
13565
13566# An ERE matcher.
13567EGREP=$lt_EGREP
13568
13569# A literal string matcher.
13570FGREP=$lt_FGREP
13571
13572# A BSD- or MS-compatible name lister.
13573NM=$lt_NM
13574
13575# Whether we need soft or hard links.
13576LN_S=$lt_LN_S
13577
13578# What is the maximum length of a command?
13579max_cmd_len=$max_cmd_len
13580
13581# Object file suffix (normally "o").
13582objext=$ac_objext
13583
13584# Executable file suffix (normally "").
13585exeext=$exeext
13586
13587# whether the shell understands "unset".
13588lt_unset=$lt_unset
13589
13590# turn spaces into newlines.
13591SP2NL=$lt_lt_SP2NL
13592
13593# turn newlines into spaces.
13594NL2SP=$lt_lt_NL2SP
13595
13596# How to create reloadable object files.
13597reload_flag=$lt_reload_flag
13598reload_cmds=$lt_reload_cmds
13599
13600# An object symbol dumper.
13601OBJDUMP=$lt_OBJDUMP
13602
13603# Method to check whether dependent libraries are shared objects.
13604deplibs_check_method=$lt_deplibs_check_method
13605
13606# Command to use when deplibs_check_method == "file_magic".
13607file_magic_cmd=$lt_file_magic_cmd
13608
13609# The archiver.
13610AR=$lt_AR
13611AR_FLAGS=$lt_AR_FLAGS
13612
13613# A symbol stripping program.
13614STRIP=$lt_STRIP
13615
13616# Commands used to install an old-style archive.
13617RANLIB=$lt_RANLIB
13618old_postinstall_cmds=$lt_old_postinstall_cmds
13619old_postuninstall_cmds=$lt_old_postuninstall_cmds
13620
13621# A C compiler.
13622LTCC=$lt_CC
13623
13624# LTCC compiler flags.
13625LTCFLAGS=$lt_CFLAGS
13626
13627# Take the output of nm and produce a listing of raw symbols and C names.
13628global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13629
13630# Transform the output of nm in a proper C declaration.
13631global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13632
13633# Transform the output of nm in a C name address pair.
13634global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13635
13636# Transform the output of nm in a C name address pair when lib prefix is needed.
13637global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13638
13639# The name of the directory that contains temporary libtool files.
13640objdir=$objdir
13641
13642# Shell to use when invoking shell scripts.
13643SHELL=$lt_SHELL
13644
13645# An echo program that does not interpret backslashes.
13646ECHO=$lt_ECHO
13647
13648# Used to examine libraries when file_magic_cmd begins with "file".
13649MAGIC_CMD=$MAGIC_CMD
13650
13651# Must we lock files when doing compilation?
13652need_locks=$lt_need_locks
13653
13654# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13655DSYMUTIL=$lt_DSYMUTIL
13656
13657# Tool to change global to local symbols on Mac OS X.
13658NMEDIT=$lt_NMEDIT
13659
13660# Tool to manipulate fat objects and archives on Mac OS X.
13661LIPO=$lt_LIPO
13662
13663# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13664OTOOL=$lt_OTOOL
13665
13666# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13667OTOOL64=$lt_OTOOL64
13668
13669# Old archive suffix (normally "a").
13670libext=$libext
13671
13672# Shared library suffix (normally ".so").
13673shrext_cmds=$lt_shrext_cmds
13674
13675# The commands to extract the exported symbol list from a shared archive.
13676extract_expsyms_cmds=$lt_extract_expsyms_cmds
13677
13678# Variables whose values should be saved in libtool wrapper scripts and
13679# restored at link time.
13680variables_saved_for_relink=$lt_variables_saved_for_relink
13681
13682# Do we need the "lib" prefix for modules?
13683need_lib_prefix=$need_lib_prefix
13684
13685# Do we need a version for libraries?
13686need_version=$need_version
13687
13688# Library versioning type.
13689version_type=$version_type
13690
13691# Shared library runtime path variable.
13692runpath_var=$runpath_var
13693
13694# Shared library path variable.
13695shlibpath_var=$shlibpath_var
13696
13697# Is shlibpath searched before the hard-coded library search path?
13698shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13699
13700# Format of library name prefix.
13701libname_spec=$lt_libname_spec
13702
13703# List of archive names.  First name is the real one, the rest are links.
13704# The last name is the one that the linker finds with -lNAME
13705library_names_spec=$lt_library_names_spec
13706
13707# The coded name of the library, if different from the real name.
13708soname_spec=$lt_soname_spec
13709
13710# Command to use after installation of a shared archive.
13711postinstall_cmds=$lt_postinstall_cmds
13712
13713# Command to use after uninstallation of a shared archive.
13714postuninstall_cmds=$lt_postuninstall_cmds
13715
13716# Commands used to finish a libtool library installation in a directory.
13717finish_cmds=$lt_finish_cmds
13718
13719# As "finish_cmds", except a single script fragment to be evaled but
13720# not shown.
13721finish_eval=$lt_finish_eval
13722
13723# Whether we should hardcode library paths into libraries.
13724hardcode_into_libs=$hardcode_into_libs
13725
13726# Compile-time system search path for libraries.
13727sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13728
13729# Run-time system search path for libraries.
13730sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13731
13732# Whether dlopen is supported.
13733dlopen_support=$enable_dlopen
13734
13735# Whether dlopen of programs is supported.
13736dlopen_self=$enable_dlopen_self
13737
13738# Whether dlopen of statically linked programs is supported.
13739dlopen_self_static=$enable_dlopen_self_static
13740
13741# Commands to strip libraries.
13742old_striplib=$lt_old_striplib
13743striplib=$lt_striplib
13744
13745
13746# The linker used to build libraries.
13747LD=$lt_LD
13748
13749# Commands used to build an old-style archive.
13750old_archive_cmds=$lt_old_archive_cmds
13751
13752# A language specific compiler.
13753CC=$lt_compiler
13754
13755# Is the compiler the GNU compiler?
13756with_gcc=$GCC
13757
13758# Compiler flag to turn off builtin functions.
13759no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13760
13761# How to pass a linker flag through the compiler.
13762wl=$lt_lt_prog_compiler_wl
13763
13764# Additional compiler flags for building library objects.
13765pic_flag=$lt_lt_prog_compiler_pic
13766
13767# Compiler flag to prevent dynamic linking.
13768link_static_flag=$lt_lt_prog_compiler_static
13769
13770# Does compiler simultaneously support -c and -o options?
13771compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13772
13773# Whether or not to add -lc for building shared libraries.
13774build_libtool_need_lc=$archive_cmds_need_lc
13775
13776# Whether or not to disallow shared libs when runtime libs are static.
13777allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13778
13779# Compiler flag to allow reflexive dlopens.
13780export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13781
13782# Compiler flag to generate shared objects directly from archives.
13783whole_archive_flag_spec=$lt_whole_archive_flag_spec
13784
13785# Whether the compiler copes with passing no objects directly.
13786compiler_needs_object=$lt_compiler_needs_object
13787
13788# Create an old-style archive from a shared archive.
13789old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13790
13791# Create a temporary old-style archive to link instead of a shared archive.
13792old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13793
13794# Commands used to build a shared archive.
13795archive_cmds=$lt_archive_cmds
13796archive_expsym_cmds=$lt_archive_expsym_cmds
13797
13798# Commands used to build a loadable module if different from building
13799# a shared archive.
13800module_cmds=$lt_module_cmds
13801module_expsym_cmds=$lt_module_expsym_cmds
13802
13803# Whether we are building with GNU ld or not.
13804with_gnu_ld=$lt_with_gnu_ld
13805
13806# Flag that allows shared libraries with undefined symbols to be built.
13807allow_undefined_flag=$lt_allow_undefined_flag
13808
13809# Flag that enforces no undefined symbols.
13810no_undefined_flag=$lt_no_undefined_flag
13811
13812# Flag to hardcode \$libdir into a binary during linking.
13813# This must work even if \$libdir does not exist
13814hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13815
13816# If ld is used when linking, flag to hardcode \$libdir into a binary
13817# during linking.  This must work even if \$libdir does not exist.
13818hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13819
13820# Whether we need a single "-rpath" flag with a separated argument.
13821hardcode_libdir_separator=$lt_hardcode_libdir_separator
13822
13823# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13824# DIR into the resulting binary.
13825hardcode_direct=$hardcode_direct
13826
13827# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13828# DIR into the resulting binary and the resulting library dependency is
13829# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13830# library is relocated.
13831hardcode_direct_absolute=$hardcode_direct_absolute
13832
13833# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13834# into the resulting binary.
13835hardcode_minus_L=$hardcode_minus_L
13836
13837# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13838# into the resulting binary.
13839hardcode_shlibpath_var=$hardcode_shlibpath_var
13840
13841# Set to "yes" if building a shared library automatically hardcodes DIR
13842# into the library and all subsequent libraries and executables linked
13843# against it.
13844hardcode_automatic=$hardcode_automatic
13845
13846# Set to yes if linker adds runtime paths of dependent libraries
13847# to runtime path list.
13848inherit_rpath=$inherit_rpath
13849
13850# Whether libtool must link a program against all its dependency libraries.
13851link_all_deplibs=$link_all_deplibs
13852
13853# Fix the shell variable \$srcfile for the compiler.
13854fix_srcfile_path=$lt_fix_srcfile_path
13855
13856# Set to "yes" if exported symbols are required.
13857always_export_symbols=$always_export_symbols
13858
13859# The commands to list exported symbols.
13860export_symbols_cmds=$lt_export_symbols_cmds
13861
13862# Symbols that should not be listed in the preloaded symbols.
13863exclude_expsyms=$lt_exclude_expsyms
13864
13865# Symbols that must always be exported.
13866include_expsyms=$lt_include_expsyms
13867
13868# Commands necessary for linking programs (against libraries) with templates.
13869prelink_cmds=$lt_prelink_cmds
13870
13871# Specify filename containing input files.
13872file_list_spec=$lt_file_list_spec
13873
13874# How to hardcode a shared library path into an executable.
13875hardcode_action=$hardcode_action
13876
13877# ### END LIBTOOL CONFIG
13878
13879_LT_EOF
13880
13881  case $host_os in
13882  aix3*)
13883    cat <<\_LT_EOF >> "$cfgfile"
13884# AIX sometimes has problems with the GCC collect2 program.  For some
13885# reason, if we set the COLLECT_NAMES environment variable, the problems
13886# vanish in a puff of smoke.
13887if test "X${COLLECT_NAMES+set}" != Xset; then
13888  COLLECT_NAMES=
13889  export COLLECT_NAMES
13890fi
13891_LT_EOF
13892    ;;
13893  esac
13894
13895
13896ltmain="$ac_aux_dir/ltmain.sh"
13897
13898
13899  # We use sed instead of cat because bash on DJGPP gets confused if
13900  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13901  # text mode, it properly converts lines to CR/LF.  This bash problem
13902  # is reportedly fixed, but why not run on old versions too?
13903  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13904    || (rm -f "$cfgfile"; exit 1)
13905
13906  case $xsi_shell in
13907  yes)
13908    cat << \_LT_EOF >> "$cfgfile"
13909
13910# func_dirname file append nondir_replacement
13911# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13912# otherwise set result to NONDIR_REPLACEMENT.
13913func_dirname ()
13914{
13915  case ${1} in
13916    */*) func_dirname_result="${1%/*}${2}" ;;
13917    *  ) func_dirname_result="${3}" ;;
13918  esac
13919}
13920
13921# func_basename file
13922func_basename ()
13923{
13924  func_basename_result="${1##*/}"
13925}
13926
13927# func_dirname_and_basename file append nondir_replacement
13928# perform func_basename and func_dirname in a single function
13929# call:
13930#   dirname:  Compute the dirname of FILE.  If nonempty,
13931#             add APPEND to the result, otherwise set result
13932#             to NONDIR_REPLACEMENT.
13933#             value returned in "$func_dirname_result"
13934#   basename: Compute filename of FILE.
13935#             value retuned in "$func_basename_result"
13936# Implementation must be kept synchronized with func_dirname
13937# and func_basename. For efficiency, we do not delegate to
13938# those functions but instead duplicate the functionality here.
13939func_dirname_and_basename ()
13940{
13941  case ${1} in
13942    */*) func_dirname_result="${1%/*}${2}" ;;
13943    *  ) func_dirname_result="${3}" ;;
13944  esac
13945  func_basename_result="${1##*/}"
13946}
13947
13948# func_stripname prefix suffix name
13949# strip PREFIX and SUFFIX off of NAME.
13950# PREFIX and SUFFIX must not contain globbing or regex special
13951# characters, hashes, percent signs, but SUFFIX may contain a leading
13952# dot (in which case that matches only a dot).
13953func_stripname ()
13954{
13955  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13956  # positional parameters, so assign one to ordinary parameter first.
13957  func_stripname_result=${3}
13958  func_stripname_result=${func_stripname_result#"${1}"}
13959  func_stripname_result=${func_stripname_result%"${2}"}
13960}
13961
13962# func_opt_split
13963func_opt_split ()
13964{
13965  func_opt_split_opt=${1%%=*}
13966  func_opt_split_arg=${1#*=}
13967}
13968
13969# func_lo2o object
13970func_lo2o ()
13971{
13972  case ${1} in
13973    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13974    *)    func_lo2o_result=${1} ;;
13975  esac
13976}
13977
13978# func_xform libobj-or-source
13979func_xform ()
13980{
13981  func_xform_result=${1%.*}.lo
13982}
13983
13984# func_arith arithmetic-term...
13985func_arith ()
13986{
13987  func_arith_result=$(( $* ))
13988}
13989
13990# func_len string
13991# STRING may not start with a hyphen.
13992func_len ()
13993{
13994  func_len_result=${#1}
13995}
13996
13997_LT_EOF
13998    ;;
13999  *) # Bourne compatible functions.
14000    cat << \_LT_EOF >> "$cfgfile"
14001
14002# func_dirname file append nondir_replacement
14003# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14004# otherwise set result to NONDIR_REPLACEMENT.
14005func_dirname ()
14006{
14007  # Extract subdirectory from the argument.
14008  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14009  if test "X$func_dirname_result" = "X${1}"; then
14010    func_dirname_result="${3}"
14011  else
14012    func_dirname_result="$func_dirname_result${2}"
14013  fi
14014}
14015
14016# func_basename file
14017func_basename ()
14018{
14019  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14020}
14021
14022
14023# func_stripname prefix suffix name
14024# strip PREFIX and SUFFIX off of NAME.
14025# PREFIX and SUFFIX must not contain globbing or regex special
14026# characters, hashes, percent signs, but SUFFIX may contain a leading
14027# dot (in which case that matches only a dot).
14028# func_strip_suffix prefix name
14029func_stripname ()
14030{
14031  case ${2} in
14032    .*) func_stripname_result=`$ECHO "X${3}" \
14033           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14034    *)  func_stripname_result=`$ECHO "X${3}" \
14035           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14036  esac
14037}
14038
14039# sed scripts:
14040my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14041my_sed_long_arg='1s/^-[^=]*=//'
14042
14043# func_opt_split
14044func_opt_split ()
14045{
14046  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14047  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14048}
14049
14050# func_lo2o object
14051func_lo2o ()
14052{
14053  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14054}
14055
14056# func_xform libobj-or-source
14057func_xform ()
14058{
14059  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14060}
14061
14062# func_arith arithmetic-term...
14063func_arith ()
14064{
14065  func_arith_result=`expr "$@"`
14066}
14067
14068# func_len string
14069# STRING may not start with a hyphen.
14070func_len ()
14071{
14072  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14073}
14074
14075_LT_EOF
14076esac
14077
14078case $lt_shell_append in
14079  yes)
14080    cat << \_LT_EOF >> "$cfgfile"
14081
14082# func_append var value
14083# Append VALUE to the end of shell variable VAR.
14084func_append ()
14085{
14086  eval "$1+=\$2"
14087}
14088_LT_EOF
14089    ;;
14090  *)
14091    cat << \_LT_EOF >> "$cfgfile"
14092
14093# func_append var value
14094# Append VALUE to the end of shell variable VAR.
14095func_append ()
14096{
14097  eval "$1=\$$1\$2"
14098}
14099
14100_LT_EOF
14101    ;;
14102  esac
14103
14104
14105  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14106    || (rm -f "$cfgfile"; exit 1)
14107
14108  mv -f "$cfgfile" "$ofile" ||
14109    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14110  chmod +x "$ofile"
14111
14112 ;;
14113
14114  esac
14115done # for ac_tag
14116
14117
14118as_fn_exit 0
14119_ACEOF
14120ac_clean_files=$ac_clean_files_save
14121
14122test $ac_write_fail = 0 ||
14123  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14124
14125
14126# configure is writing to config.log, and then calls config.status.
14127# config.status does its own redirection, appending to config.log.
14128# Unfortunately, on DOS this fails, as config.log is still kept open
14129# by configure, so config.status won't be able to write to it; its
14130# output is simply discarded.  So we exec the FD to /dev/null,
14131# effectively closing config.log, so it can be properly (re)opened and
14132# appended to by config.status.  When coming back to configure, we
14133# need to make the FD available again.
14134if test "$no_create" != yes; then
14135  ac_cs_success=:
14136  ac_config_status_args=
14137  test "$silent" = yes &&
14138    ac_config_status_args="$ac_config_status_args --quiet"
14139  exec 5>/dev/null
14140  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14141  exec 5>>config.log
14142  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14143  # would make configure fail if this is the last instruction.
14144  $ac_cs_success || as_fn_exit $?
14145fi
14146if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14147  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14148$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14149fi
14150
14151
14152