configure revision a5602400
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libXext 1.3.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    PATH=/empty FPATH=/empty; export PATH FPATH
183    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185test \$(( 1 + 1 )) = 2 || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269# as_fn_unset VAR
270# ---------------
271# Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278# as_fn_set_status STATUS
279# -----------------------
280# Set $? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} # as_fn_set_status
285
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548SHELL=${CONFIG_SHELL-/bin/sh}
549
550as_awk_strverscmp='
551  # Use only awk features that work with 7th edition Unix awk (1978).
552  # My, what an old awk you have, Mr. Solaris!
553  END {
554    while (length(v1) && length(v2)) {
555      # Set d1 to be the next thing to compare from v1, and likewise for d2.
556      # Normally this is a single character, but if v1 and v2 contain digits,
557      # compare them as integers and fractions as strverscmp does.
558      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
559	# Split v1 and v2 into their leading digit string components d1 and d2,
560	# and advance v1 and v2 past the leading digit strings.
561	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
562	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
563	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
564	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
565	if (d1 ~ /^0/) {
566	  if (d2 ~ /^0/) {
567	    # Compare two fractions.
568	    while (d1 ~ /^0/ && d2 ~ /^0/) {
569	      d1 = substr(d1, 2); len1--
570	      d2 = substr(d2, 2); len2--
571	    }
572	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
573	      # The two components differ in length, and the common prefix
574	      # contains only leading zeros.  Consider the longer to be less.
575	      d1 = -len1
576	      d2 = -len2
577	    } else {
578	      # Otherwise, compare as strings.
579	      d1 = "x" d1
580	      d2 = "x" d2
581	    }
582	  } else {
583	    # A fraction is less than an integer.
584	    exit 1
585	  }
586	} else {
587	  if (d2 ~ /^0/) {
588	    # An integer is greater than a fraction.
589	    exit 2
590	  } else {
591	    # Compare two integers.
592	    d1 += 0
593	    d2 += 0
594	  }
595	}
596      } else {
597	# The normal case, without worrying about digits.
598	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
599	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
600      }
601      if (d1 < d2) exit 1
602      if (d1 > d2) exit 2
603    }
604    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
605    # which mishandles some comparisons of empty strings to integers.
606    if (length(v2)) exit 1
607    if (length(v1)) exit 2
608  }
609'
610
611test -n "$DJDIR" || exec 7<&0 </dev/null
612exec 6>&1
613
614# Name of the host.
615# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616# so uname gets run too.
617ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
618
619#
620# Initializations.
621#
622ac_default_prefix=/usr/local
623ac_clean_files=
624ac_config_libobj_dir=.
625LIBOBJS=
626cross_compiling=no
627subdirs=
628MFLAGS=
629MAKEFLAGS=
630
631# Identity of this package.
632PACKAGE_NAME='libXext'
633PACKAGE_TARNAME='libXext'
634PACKAGE_VERSION='1.3.0'
635PACKAGE_STRING='libXext 1.3.0'
636PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
637PACKAGE_URL=''
638
639ac_unique_file="Makefile.am"
640# Factoring default headers for most tests.
641ac_includes_default="\
642#include <stdio.h>
643#ifdef HAVE_SYS_TYPES_H
644# include <sys/types.h>
645#endif
646#ifdef HAVE_SYS_STAT_H
647# include <sys/stat.h>
648#endif
649#ifdef STDC_HEADERS
650# include <stdlib.h>
651# include <stddef.h>
652#else
653# ifdef HAVE_STDLIB_H
654#  include <stdlib.h>
655# endif
656#endif
657#ifdef HAVE_STRING_H
658# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
659#  include <memory.h>
660# endif
661# include <string.h>
662#endif
663#ifdef HAVE_STRINGS_H
664# include <strings.h>
665#endif
666#ifdef HAVE_INTTYPES_H
667# include <inttypes.h>
668#endif
669#ifdef HAVE_STDINT_H
670# include <stdint.h>
671#endif
672#ifdef HAVE_UNISTD_H
673# include <unistd.h>
674#endif"
675
676ac_subst_vars='am__EXEEXT_FALSE
677am__EXEEXT_TRUE
678LTLIBOBJS
679LIBOBJS
680MAKE_LINT_LIB_FALSE
681MAKE_LINT_LIB_TRUE
682LINTLIB
683LINT_FALSE
684LINT_TRUE
685LINT_FLAGS
686LINT
687XEXT_LIBS
688XEXT_CFLAGS
689XEXT_SOREV
690XTMALLOC_ZERO_CFLAGS
691XMALLOC_ZERO_CFLAGS
692MALLOC_ZERO_CFLAGS
693HAVE_STYLESHEETS_FALSE
694HAVE_STYLESHEETS_TRUE
695XSL_STYLESHEET
696STYLESHEET_SRCDIR
697XORG_SGML_PATH
698HAVE_XSLTPROC_FALSE
699HAVE_XSLTPROC_TRUE
700XSLTPROC
701HAVE_FOP_FALSE
702HAVE_FOP_TRUE
703FOP
704HAVE_XMLTO_FALSE
705HAVE_XMLTO_TRUE
706HAVE_XMLTO_TEXT_FALSE
707HAVE_XMLTO_TEXT_TRUE
708XMLTO
709ENABLE_SPECS_FALSE
710ENABLE_SPECS_TRUE
711AM_BACKSLASH
712AM_DEFAULT_VERBOSITY
713MAN_SUBSTS
714XORG_MAN_PAGE
715ADMIN_MAN_DIR
716DRIVER_MAN_DIR
717MISC_MAN_DIR
718FILE_MAN_DIR
719LIB_MAN_DIR
720APP_MAN_DIR
721ADMIN_MAN_SUFFIX
722DRIVER_MAN_SUFFIX
723MISC_MAN_SUFFIX
724FILE_MAN_SUFFIX
725LIB_MAN_SUFFIX
726APP_MAN_SUFFIX
727INSTALL_CMD
728PKG_CONFIG
729CHANGELOG_CMD
730STRICT_CFLAGS
731CWARNFLAGS
732CPP
733OTOOL64
734OTOOL
735LIPO
736NMEDIT
737DSYMUTIL
738MANIFEST_TOOL
739RANLIB
740ac_ct_AR
741AR
742DLLTOOL
743OBJDUMP
744LN_S
745NM
746ac_ct_DUMPBIN
747DUMPBIN
748LD
749FGREP
750EGREP
751GREP
752SED
753am__fastdepCC_FALSE
754am__fastdepCC_TRUE
755CCDEPMODE
756AMDEPBACKSLASH
757AMDEP_FALSE
758AMDEP_TRUE
759am__quote
760am__include
761DEPDIR
762OBJEXT
763EXEEXT
764ac_ct_CC
765CPPFLAGS
766LDFLAGS
767CFLAGS
768CC
769host_os
770host_vendor
771host_cpu
772host
773build_os
774build_vendor
775build_cpu
776build
777LIBTOOL
778MAINT
779MAINTAINER_MODE_FALSE
780MAINTAINER_MODE_TRUE
781am__untar
782am__tar
783AMTAR
784am__leading_dot
785SET_MAKE
786AWK
787mkdir_p
788MKDIR_P
789INSTALL_STRIP_PROGRAM
790STRIP
791install_sh
792MAKEINFO
793AUTOHEADER
794AUTOMAKE
795AUTOCONF
796ACLOCAL
797VERSION
798PACKAGE
799CYGPATH_W
800am__isrc
801INSTALL_DATA
802INSTALL_SCRIPT
803INSTALL_PROGRAM
804target_alias
805host_alias
806build_alias
807LIBS
808ECHO_T
809ECHO_N
810ECHO_C
811DEFS
812mandir
813localedir
814libdir
815psdir
816pdfdir
817dvidir
818htmldir
819infodir
820docdir
821oldincludedir
822includedir
823localstatedir
824sharedstatedir
825sysconfdir
826datadir
827datarootdir
828libexecdir
829sbindir
830bindir
831program_transform_name
832prefix
833exec_prefix
834PACKAGE_URL
835PACKAGE_BUGREPORT
836PACKAGE_STRING
837PACKAGE_VERSION
838PACKAGE_TARNAME
839PACKAGE_NAME
840PATH_SEPARATOR
841SHELL'
842ac_subst_files=''
843ac_user_opts='
844enable_option_checking
845enable_maintainer_mode
846enable_shared
847enable_static
848with_pic
849enable_fast_install
850enable_dependency_tracking
851with_gnu_ld
852with_sysroot
853enable_libtool_lock
854enable_strict_compilation
855enable_silent_rules
856enable_specs
857with_xmlto
858with_fop
859with_xsltproc
860enable_malloc0returnsnull
861with_lint
862enable_lint_library
863'
864      ac_precious_vars='build_alias
865host_alias
866target_alias
867CC
868CFLAGS
869LDFLAGS
870LIBS
871CPPFLAGS
872CPP
873PKG_CONFIG
874XMLTO
875FOP
876XSLTPROC
877XEXT_CFLAGS
878XEXT_LIBS
879LINT
880LINT_FLAGS'
881
882
883# Initialize some variables set by options.
884ac_init_help=
885ac_init_version=false
886ac_unrecognized_opts=
887ac_unrecognized_sep=
888# The variables have the same names as the options, with
889# dashes changed to underlines.
890cache_file=/dev/null
891exec_prefix=NONE
892no_create=
893no_recursion=
894prefix=NONE
895program_prefix=NONE
896program_suffix=NONE
897program_transform_name=s,x,x,
898silent=
899site=
900srcdir=
901verbose=
902x_includes=NONE
903x_libraries=NONE
904
905# Installation directory options.
906# These are left unexpanded so users can "make install exec_prefix=/foo"
907# and all the variables that are supposed to be based on exec_prefix
908# by default will actually change.
909# Use braces instead of parens because sh, perl, etc. also accept them.
910# (The list follows the same order as the GNU Coding Standards.)
911bindir='${exec_prefix}/bin'
912sbindir='${exec_prefix}/sbin'
913libexecdir='${exec_prefix}/libexec'
914datarootdir='${prefix}/share'
915datadir='${datarootdir}'
916sysconfdir='${prefix}/etc'
917sharedstatedir='${prefix}/com'
918localstatedir='${prefix}/var'
919includedir='${prefix}/include'
920oldincludedir='/usr/include'
921docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
922infodir='${datarootdir}/info'
923htmldir='${docdir}'
924dvidir='${docdir}'
925pdfdir='${docdir}'
926psdir='${docdir}'
927libdir='${exec_prefix}/lib'
928localedir='${datarootdir}/locale'
929mandir='${datarootdir}/man'
930
931ac_prev=
932ac_dashdash=
933for ac_option
934do
935  # If the previous option needs an argument, assign it.
936  if test -n "$ac_prev"; then
937    eval $ac_prev=\$ac_option
938    ac_prev=
939    continue
940  fi
941
942  case $ac_option in
943  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944  *=)   ac_optarg= ;;
945  *)    ac_optarg=yes ;;
946  esac
947
948  # Accept the important Cygnus configure options, so we can diagnose typos.
949
950  case $ac_dashdash$ac_option in
951  --)
952    ac_dashdash=yes ;;
953
954  -bindir | --bindir | --bindi | --bind | --bin | --bi)
955    ac_prev=bindir ;;
956  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
957    bindir=$ac_optarg ;;
958
959  -build | --build | --buil | --bui | --bu)
960    ac_prev=build_alias ;;
961  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
962    build_alias=$ac_optarg ;;
963
964  -cache-file | --cache-file | --cache-fil | --cache-fi \
965  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966    ac_prev=cache_file ;;
967  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
969    cache_file=$ac_optarg ;;
970
971  --config-cache | -C)
972    cache_file=config.cache ;;
973
974  -datadir | --datadir | --datadi | --datad)
975    ac_prev=datadir ;;
976  -datadir=* | --datadir=* | --datadi=* | --datad=*)
977    datadir=$ac_optarg ;;
978
979  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980  | --dataroo | --dataro | --datar)
981    ac_prev=datarootdir ;;
982  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984    datarootdir=$ac_optarg ;;
985
986  -disable-* | --disable-*)
987    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988    # Reject names that are not valid shell variable names.
989    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990      as_fn_error $? "invalid feature name: $ac_useropt"
991    ac_useropt_orig=$ac_useropt
992    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993    case $ac_user_opts in
994      *"
995"enable_$ac_useropt"
996"*) ;;
997      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
998	 ac_unrecognized_sep=', ';;
999    esac
1000    eval enable_$ac_useropt=no ;;
1001
1002  -docdir | --docdir | --docdi | --doc | --do)
1003    ac_prev=docdir ;;
1004  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005    docdir=$ac_optarg ;;
1006
1007  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008    ac_prev=dvidir ;;
1009  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010    dvidir=$ac_optarg ;;
1011
1012  -enable-* | --enable-*)
1013    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014    # Reject names that are not valid shell variable names.
1015    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016      as_fn_error $? "invalid feature name: $ac_useropt"
1017    ac_useropt_orig=$ac_useropt
1018    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019    case $ac_user_opts in
1020      *"
1021"enable_$ac_useropt"
1022"*) ;;
1023      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1024	 ac_unrecognized_sep=', ';;
1025    esac
1026    eval enable_$ac_useropt=\$ac_optarg ;;
1027
1028  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030  | --exec | --exe | --ex)
1031    ac_prev=exec_prefix ;;
1032  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034  | --exec=* | --exe=* | --ex=*)
1035    exec_prefix=$ac_optarg ;;
1036
1037  -gas | --gas | --ga | --g)
1038    # Obsolete; use --with-gas.
1039    with_gas=yes ;;
1040
1041  -help | --help | --hel | --he | -h)
1042    ac_init_help=long ;;
1043  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044    ac_init_help=recursive ;;
1045  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046    ac_init_help=short ;;
1047
1048  -host | --host | --hos | --ho)
1049    ac_prev=host_alias ;;
1050  -host=* | --host=* | --hos=* | --ho=*)
1051    host_alias=$ac_optarg ;;
1052
1053  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054    ac_prev=htmldir ;;
1055  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056  | --ht=*)
1057    htmldir=$ac_optarg ;;
1058
1059  -includedir | --includedir | --includedi | --included | --include \
1060  | --includ | --inclu | --incl | --inc)
1061    ac_prev=includedir ;;
1062  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063  | --includ=* | --inclu=* | --incl=* | --inc=*)
1064    includedir=$ac_optarg ;;
1065
1066  -infodir | --infodir | --infodi | --infod | --info | --inf)
1067    ac_prev=infodir ;;
1068  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069    infodir=$ac_optarg ;;
1070
1071  -libdir | --libdir | --libdi | --libd)
1072    ac_prev=libdir ;;
1073  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1074    libdir=$ac_optarg ;;
1075
1076  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077  | --libexe | --libex | --libe)
1078    ac_prev=libexecdir ;;
1079  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080  | --libexe=* | --libex=* | --libe=*)
1081    libexecdir=$ac_optarg ;;
1082
1083  -localedir | --localedir | --localedi | --localed | --locale)
1084    ac_prev=localedir ;;
1085  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086    localedir=$ac_optarg ;;
1087
1088  -localstatedir | --localstatedir | --localstatedi | --localstated \
1089  | --localstate | --localstat | --localsta | --localst | --locals)
1090    ac_prev=localstatedir ;;
1091  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1092  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1093    localstatedir=$ac_optarg ;;
1094
1095  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096    ac_prev=mandir ;;
1097  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098    mandir=$ac_optarg ;;
1099
1100  -nfp | --nfp | --nf)
1101    # Obsolete; use --without-fp.
1102    with_fp=no ;;
1103
1104  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105  | --no-cr | --no-c | -n)
1106    no_create=yes ;;
1107
1108  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110    no_recursion=yes ;;
1111
1112  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114  | --oldin | --oldi | --old | --ol | --o)
1115    ac_prev=oldincludedir ;;
1116  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119    oldincludedir=$ac_optarg ;;
1120
1121  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122    ac_prev=prefix ;;
1123  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124    prefix=$ac_optarg ;;
1125
1126  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127  | --program-pre | --program-pr | --program-p)
1128    ac_prev=program_prefix ;;
1129  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131    program_prefix=$ac_optarg ;;
1132
1133  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134  | --program-suf | --program-su | --program-s)
1135    ac_prev=program_suffix ;;
1136  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138    program_suffix=$ac_optarg ;;
1139
1140  -program-transform-name | --program-transform-name \
1141  | --program-transform-nam | --program-transform-na \
1142  | --program-transform-n | --program-transform- \
1143  | --program-transform | --program-transfor \
1144  | --program-transfo | --program-transf \
1145  | --program-trans | --program-tran \
1146  | --progr-tra | --program-tr | --program-t)
1147    ac_prev=program_transform_name ;;
1148  -program-transform-name=* | --program-transform-name=* \
1149  | --program-transform-nam=* | --program-transform-na=* \
1150  | --program-transform-n=* | --program-transform-=* \
1151  | --program-transform=* | --program-transfor=* \
1152  | --program-transfo=* | --program-transf=* \
1153  | --program-trans=* | --program-tran=* \
1154  | --progr-tra=* | --program-tr=* | --program-t=*)
1155    program_transform_name=$ac_optarg ;;
1156
1157  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158    ac_prev=pdfdir ;;
1159  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160    pdfdir=$ac_optarg ;;
1161
1162  -psdir | --psdir | --psdi | --psd | --ps)
1163    ac_prev=psdir ;;
1164  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165    psdir=$ac_optarg ;;
1166
1167  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168  | -silent | --silent | --silen | --sile | --sil)
1169    silent=yes ;;
1170
1171  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172    ac_prev=sbindir ;;
1173  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174  | --sbi=* | --sb=*)
1175    sbindir=$ac_optarg ;;
1176
1177  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179  | --sharedst | --shareds | --shared | --share | --shar \
1180  | --sha | --sh)
1181    ac_prev=sharedstatedir ;;
1182  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185  | --sha=* | --sh=*)
1186    sharedstatedir=$ac_optarg ;;
1187
1188  -site | --site | --sit)
1189    ac_prev=site ;;
1190  -site=* | --site=* | --sit=*)
1191    site=$ac_optarg ;;
1192
1193  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194    ac_prev=srcdir ;;
1195  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196    srcdir=$ac_optarg ;;
1197
1198  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199  | --syscon | --sysco | --sysc | --sys | --sy)
1200    ac_prev=sysconfdir ;;
1201  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203    sysconfdir=$ac_optarg ;;
1204
1205  -target | --target | --targe | --targ | --tar | --ta | --t)
1206    ac_prev=target_alias ;;
1207  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208    target_alias=$ac_optarg ;;
1209
1210  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211    verbose=yes ;;
1212
1213  -version | --version | --versio | --versi | --vers | -V)
1214    ac_init_version=: ;;
1215
1216  -with-* | --with-*)
1217    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218    # Reject names that are not valid shell variable names.
1219    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220      as_fn_error $? "invalid package name: $ac_useropt"
1221    ac_useropt_orig=$ac_useropt
1222    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223    case $ac_user_opts in
1224      *"
1225"with_$ac_useropt"
1226"*) ;;
1227      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1228	 ac_unrecognized_sep=', ';;
1229    esac
1230    eval with_$ac_useropt=\$ac_optarg ;;
1231
1232  -without-* | --without-*)
1233    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234    # Reject names that are not valid shell variable names.
1235    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236      as_fn_error $? "invalid package name: $ac_useropt"
1237    ac_useropt_orig=$ac_useropt
1238    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239    case $ac_user_opts in
1240      *"
1241"with_$ac_useropt"
1242"*) ;;
1243      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244	 ac_unrecognized_sep=', ';;
1245    esac
1246    eval with_$ac_useropt=no ;;
1247
1248  --x)
1249    # Obsolete; use --with-x.
1250    with_x=yes ;;
1251
1252  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253  | --x-incl | --x-inc | --x-in | --x-i)
1254    ac_prev=x_includes ;;
1255  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257    x_includes=$ac_optarg ;;
1258
1259  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261    ac_prev=x_libraries ;;
1262  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264    x_libraries=$ac_optarg ;;
1265
1266  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1267Try \`$0 --help' for more information"
1268    ;;
1269
1270  *=*)
1271    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272    # Reject names that are not valid shell variable names.
1273    case $ac_envvar in #(
1274      '' | [0-9]* | *[!_$as_cr_alnum]* )
1275      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1276    esac
1277    eval $ac_envvar=\$ac_optarg
1278    export $ac_envvar ;;
1279
1280  *)
1281    # FIXME: should be removed in autoconf 3.0.
1282    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1286    ;;
1287
1288  esac
1289done
1290
1291if test -n "$ac_prev"; then
1292  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293  as_fn_error $? "missing argument to $ac_option"
1294fi
1295
1296if test -n "$ac_unrecognized_opts"; then
1297  case $enable_option_checking in
1298    no) ;;
1299    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1300    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301  esac
1302fi
1303
1304# Check all directory arguments for consistency.
1305for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306		datadir sysconfdir sharedstatedir localstatedir includedir \
1307		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308		libdir localedir mandir
1309do
1310  eval ac_val=\$$ac_var
1311  # Remove trailing slashes.
1312  case $ac_val in
1313    */ )
1314      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315      eval $ac_var=\$ac_val;;
1316  esac
1317  # Be sure to have absolute directory names.
1318  case $ac_val in
1319    [\\/$]* | ?:[\\/]* )  continue;;
1320    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1321  esac
1322  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1323done
1324
1325# There might be people who depend on the old broken behavior: `$host'
1326# used to hold the argument of --host etc.
1327# FIXME: To remove some day.
1328build=$build_alias
1329host=$host_alias
1330target=$target_alias
1331
1332# FIXME: To remove some day.
1333if test "x$host_alias" != x; then
1334  if test "x$build_alias" = x; then
1335    cross_compiling=maybe
1336    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1337    If a cross compiler is detected then cross compile mode will be used" >&2
1338  elif test "x$build_alias" != "x$host_alias"; then
1339    cross_compiling=yes
1340  fi
1341fi
1342
1343ac_tool_prefix=
1344test -n "$host_alias" && ac_tool_prefix=$host_alias-
1345
1346test "$silent" = yes && exec 6>/dev/null
1347
1348
1349ac_pwd=`pwd` && test -n "$ac_pwd" &&
1350ac_ls_di=`ls -di .` &&
1351ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1352  as_fn_error $? "working directory cannot be determined"
1353test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1354  as_fn_error $? "pwd does not report name of working directory"
1355
1356
1357# Find the source files, if location was not specified.
1358if test -z "$srcdir"; then
1359  ac_srcdir_defaulted=yes
1360  # Try the directory containing this script, then the parent directory.
1361  ac_confdir=`$as_dirname -- "$as_myself" ||
1362$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1363	 X"$as_myself" : 'X\(//\)[^/]' \| \
1364	 X"$as_myself" : 'X\(//\)$' \| \
1365	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1366$as_echo X"$as_myself" |
1367    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1368	    s//\1/
1369	    q
1370	  }
1371	  /^X\(\/\/\)[^/].*/{
1372	    s//\1/
1373	    q
1374	  }
1375	  /^X\(\/\/\)$/{
1376	    s//\1/
1377	    q
1378	  }
1379	  /^X\(\/\).*/{
1380	    s//\1/
1381	    q
1382	  }
1383	  s/.*/./; q'`
1384  srcdir=$ac_confdir
1385  if test ! -r "$srcdir/$ac_unique_file"; then
1386    srcdir=..
1387  fi
1388else
1389  ac_srcdir_defaulted=no
1390fi
1391if test ! -r "$srcdir/$ac_unique_file"; then
1392  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1393  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1394fi
1395ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1396ac_abs_confdir=`(
1397	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1398	pwd)`
1399# When building in place, set srcdir=.
1400if test "$ac_abs_confdir" = "$ac_pwd"; then
1401  srcdir=.
1402fi
1403# Remove unnecessary trailing slashes from srcdir.
1404# Double slashes in file names in object file debugging info
1405# mess up M-x gdb in Emacs.
1406case $srcdir in
1407*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408esac
1409for ac_var in $ac_precious_vars; do
1410  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1411  eval ac_env_${ac_var}_value=\$${ac_var}
1412  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1413  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1414done
1415
1416#
1417# Report the --help message.
1418#
1419if test "$ac_init_help" = "long"; then
1420  # Omit some internal or obsolete options to make the list less imposing.
1421  # This message is too long to be a string in the A/UX 3.1 sh.
1422  cat <<_ACEOF
1423\`configure' configures libXext 1.3.0 to adapt to many kinds of systems.
1424
1425Usage: $0 [OPTION]... [VAR=VALUE]...
1426
1427To assign environment variables (e.g., CC, CFLAGS...), specify them as
1428VAR=VALUE.  See below for descriptions of some of the useful variables.
1429
1430Defaults for the options are specified in brackets.
1431
1432Configuration:
1433  -h, --help              display this help and exit
1434      --help=short        display options specific to this package
1435      --help=recursive    display the short help of all the included packages
1436  -V, --version           display version information and exit
1437  -q, --quiet, --silent   do not print \`checking ...' messages
1438      --cache-file=FILE   cache test results in FILE [disabled]
1439  -C, --config-cache      alias for \`--cache-file=config.cache'
1440  -n, --no-create         do not create output files
1441      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1442
1443Installation directories:
1444  --prefix=PREFIX         install architecture-independent files in PREFIX
1445                          [$ac_default_prefix]
1446  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1447                          [PREFIX]
1448
1449By default, \`make install' will install all the files in
1450\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1451an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1452for instance \`--prefix=\$HOME'.
1453
1454For better control, use the options below.
1455
1456Fine tuning of the installation directories:
1457  --bindir=DIR            user executables [EPREFIX/bin]
1458  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1459  --libexecdir=DIR        program executables [EPREFIX/libexec]
1460  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1461  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1462  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1463  --libdir=DIR            object code libraries [EPREFIX/lib]
1464  --includedir=DIR        C header files [PREFIX/include]
1465  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1466  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1467  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1468  --infodir=DIR           info documentation [DATAROOTDIR/info]
1469  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1470  --mandir=DIR            man documentation [DATAROOTDIR/man]
1471  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXext]
1472  --htmldir=DIR           html documentation [DOCDIR]
1473  --dvidir=DIR            dvi documentation [DOCDIR]
1474  --pdfdir=DIR            pdf documentation [DOCDIR]
1475  --psdir=DIR             ps documentation [DOCDIR]
1476_ACEOF
1477
1478  cat <<\_ACEOF
1479
1480Program names:
1481  --program-prefix=PREFIX            prepend PREFIX to installed program names
1482  --program-suffix=SUFFIX            append SUFFIX to installed program names
1483  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1484
1485System types:
1486  --build=BUILD     configure for building on BUILD [guessed]
1487  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1488_ACEOF
1489fi
1490
1491if test -n "$ac_init_help"; then
1492  case $ac_init_help in
1493     short | recursive ) echo "Configuration of libXext 1.3.0:";;
1494   esac
1495  cat <<\_ACEOF
1496
1497Optional Features:
1498  --disable-option-checking  ignore unrecognized --enable/--with options
1499  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1500  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1501  --enable-maintainer-mode  enable make rules and dependencies not useful
1502			  (and sometimes confusing) to the casual installer
1503  --enable-shared[=PKGS]  build shared libraries [default=yes]
1504  --enable-static[=PKGS]  build static libraries [default=yes]
1505  --enable-fast-install[=PKGS]
1506                          optimize for fast installation [default=yes]
1507  --disable-dependency-tracking  speeds up one-time build
1508  --enable-dependency-tracking   do not reject slow dependency extractors
1509  --disable-libtool-lock  avoid locking (might break parallel builds)
1510  --enable-strict-compilation
1511                          Enable all warnings from compiler and make them
1512                          errors (default: disabled)
1513  --enable-silent-rules          less verbose build output (undo: `make V=1')
1514  --disable-silent-rules         verbose build output (undo: `make V=0')
1515  --enable-specs          Enable building the specs (default: yes)
1516  --enable-malloc0returnsnull
1517                          malloc(0) returns NULL (default: auto)
1518  --enable-lint-library   Create lint library (default: disabled)
1519
1520Optional Packages:
1521  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1522  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1523  --with-pic              try to use only PIC/non-PIC objects [default=use
1524                          both]
1525  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1526  --with-sysroot=DIR Search for dependent libraries within DIR
1527                        (or the compiler's sysroot if not specified).
1528  --with-xmlto            Use xmlto to regenerate documentation (default:
1529                          auto)
1530  --with-fop              Use fop to regenerate documentation (default: auto)
1531  --with-xsltproc         Use xsltproc for the transformation of XML documents
1532                          (default: auto)
1533  --with-lint             Use a lint-style source code checker (default:
1534                          disabled)
1535
1536Some influential environment variables:
1537  CC          C compiler command
1538  CFLAGS      C compiler flags
1539  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1540              nonstandard directory <lib dir>
1541  LIBS        libraries to pass to the linker, e.g. -l<library>
1542  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1543              you have headers in a nonstandard directory <include dir>
1544  CPP         C preprocessor
1545  PKG_CONFIG  path to pkg-config utility
1546  XMLTO       Path to xmlto command
1547  FOP         Path to fop command
1548  XSLTPROC    Path to xsltproc command
1549  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1550  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1551  LINT        Path to a lint-style command
1552  LINT_FLAGS  Flags for the lint-style command
1553
1554Use these variables to override the choices made by `configure' or to help
1555it to find libraries and programs with nonstandard names/locations.
1556
1557Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1558_ACEOF
1559ac_status=$?
1560fi
1561
1562if test "$ac_init_help" = "recursive"; then
1563  # If there are subdirs, report their specific --help.
1564  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1565    test -d "$ac_dir" ||
1566      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1567      continue
1568    ac_builddir=.
1569
1570case "$ac_dir" in
1571.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572*)
1573  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1574  # A ".." for each directory in $ac_dir_suffix.
1575  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1576  case $ac_top_builddir_sub in
1577  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1579  esac ;;
1580esac
1581ac_abs_top_builddir=$ac_pwd
1582ac_abs_builddir=$ac_pwd$ac_dir_suffix
1583# for backward compatibility:
1584ac_top_builddir=$ac_top_build_prefix
1585
1586case $srcdir in
1587  .)  # We are building in place.
1588    ac_srcdir=.
1589    ac_top_srcdir=$ac_top_builddir_sub
1590    ac_abs_top_srcdir=$ac_pwd ;;
1591  [\\/]* | ?:[\\/]* )  # Absolute name.
1592    ac_srcdir=$srcdir$ac_dir_suffix;
1593    ac_top_srcdir=$srcdir
1594    ac_abs_top_srcdir=$srcdir ;;
1595  *) # Relative name.
1596    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1597    ac_top_srcdir=$ac_top_build_prefix$srcdir
1598    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1599esac
1600ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1601
1602    cd "$ac_dir" || { ac_status=$?; continue; }
1603    # Check for guested configure.
1604    if test -f "$ac_srcdir/configure.gnu"; then
1605      echo &&
1606      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1607    elif test -f "$ac_srcdir/configure"; then
1608      echo &&
1609      $SHELL "$ac_srcdir/configure" --help=recursive
1610    else
1611      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1612    fi || ac_status=$?
1613    cd "$ac_pwd" || { ac_status=$?; break; }
1614  done
1615fi
1616
1617test -n "$ac_init_help" && exit $ac_status
1618if $ac_init_version; then
1619  cat <<\_ACEOF
1620libXext configure 1.3.0
1621generated by GNU Autoconf 2.68
1622
1623Copyright (C) 2010 Free Software Foundation, Inc.
1624This configure script is free software; the Free Software Foundation
1625gives unlimited permission to copy, distribute and modify it.
1626_ACEOF
1627  exit
1628fi
1629
1630## ------------------------ ##
1631## Autoconf initialization. ##
1632## ------------------------ ##
1633
1634# ac_fn_c_try_compile LINENO
1635# --------------------------
1636# Try to compile conftest.$ac_ext, and return whether this succeeded.
1637ac_fn_c_try_compile ()
1638{
1639  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640  rm -f conftest.$ac_objext
1641  if { { ac_try="$ac_compile"
1642case "(($ac_try" in
1643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644  *) ac_try_echo=$ac_try;;
1645esac
1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647$as_echo "$ac_try_echo"; } >&5
1648  (eval "$ac_compile") 2>conftest.err
1649  ac_status=$?
1650  if test -s conftest.err; then
1651    grep -v '^ *+' conftest.err >conftest.er1
1652    cat conftest.er1 >&5
1653    mv -f conftest.er1 conftest.err
1654  fi
1655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656  test $ac_status = 0; } && {
1657	 test -z "$ac_c_werror_flag" ||
1658	 test ! -s conftest.err
1659       } && test -s conftest.$ac_objext; then :
1660  ac_retval=0
1661else
1662  $as_echo "$as_me: failed program was:" >&5
1663sed 's/^/| /' conftest.$ac_ext >&5
1664
1665	ac_retval=1
1666fi
1667  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668  as_fn_set_status $ac_retval
1669
1670} # ac_fn_c_try_compile
1671
1672# ac_fn_c_try_link LINENO
1673# -----------------------
1674# Try to link conftest.$ac_ext, and return whether this succeeded.
1675ac_fn_c_try_link ()
1676{
1677  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678  rm -f conftest.$ac_objext conftest$ac_exeext
1679  if { { ac_try="$ac_link"
1680case "(($ac_try" in
1681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682  *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
1686  (eval "$ac_link") 2>conftest.err
1687  ac_status=$?
1688  if test -s conftest.err; then
1689    grep -v '^ *+' conftest.err >conftest.er1
1690    cat conftest.er1 >&5
1691    mv -f conftest.er1 conftest.err
1692  fi
1693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694  test $ac_status = 0; } && {
1695	 test -z "$ac_c_werror_flag" ||
1696	 test ! -s conftest.err
1697       } && test -s conftest$ac_exeext && {
1698	 test "$cross_compiling" = yes ||
1699	 $as_test_x conftest$ac_exeext
1700       }; then :
1701  ac_retval=0
1702else
1703  $as_echo "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706	ac_retval=1
1707fi
1708  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1709  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1710  # interfere with the next link command; also delete a directory that is
1711  # left behind by Apple's compiler.  We do this before executing the actions.
1712  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714  as_fn_set_status $ac_retval
1715
1716} # ac_fn_c_try_link
1717
1718# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1719# -------------------------------------------------------
1720# Tests whether HEADER exists and can be compiled using the include files in
1721# INCLUDES, setting the cache variable VAR accordingly.
1722ac_fn_c_check_header_compile ()
1723{
1724  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726$as_echo_n "checking for $2... " >&6; }
1727if eval \${$3+:} false; then :
1728  $as_echo_n "(cached) " >&6
1729else
1730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731/* end confdefs.h.  */
1732$4
1733#include <$2>
1734_ACEOF
1735if ac_fn_c_try_compile "$LINENO"; then :
1736  eval "$3=yes"
1737else
1738  eval "$3=no"
1739fi
1740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1741fi
1742eval ac_res=\$$3
1743	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744$as_echo "$ac_res" >&6; }
1745  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746
1747} # ac_fn_c_check_header_compile
1748
1749# ac_fn_c_try_cpp LINENO
1750# ----------------------
1751# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1752ac_fn_c_try_cpp ()
1753{
1754  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755  if { { ac_try="$ac_cpp conftest.$ac_ext"
1756case "(($ac_try" in
1757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758  *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761$as_echo "$ac_try_echo"; } >&5
1762  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1763  ac_status=$?
1764  if test -s conftest.err; then
1765    grep -v '^ *+' conftest.err >conftest.er1
1766    cat conftest.er1 >&5
1767    mv -f conftest.er1 conftest.err
1768  fi
1769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770  test $ac_status = 0; } > conftest.i && {
1771	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1772	 test ! -s conftest.err
1773       }; then :
1774  ac_retval=0
1775else
1776  $as_echo "$as_me: failed program was:" >&5
1777sed 's/^/| /' conftest.$ac_ext >&5
1778
1779    ac_retval=1
1780fi
1781  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782  as_fn_set_status $ac_retval
1783
1784} # ac_fn_c_try_cpp
1785
1786# ac_fn_c_try_run LINENO
1787# ----------------------
1788# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1789# that executables *can* be run.
1790ac_fn_c_try_run ()
1791{
1792  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793  if { { ac_try="$ac_link"
1794case "(($ac_try" in
1795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796  *) ac_try_echo=$ac_try;;
1797esac
1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799$as_echo "$ac_try_echo"; } >&5
1800  (eval "$ac_link") 2>&5
1801  ac_status=$?
1802  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1804  { { case "(($ac_try" in
1805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806  *) ac_try_echo=$ac_try;;
1807esac
1808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809$as_echo "$ac_try_echo"; } >&5
1810  (eval "$ac_try") 2>&5
1811  ac_status=$?
1812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813  test $ac_status = 0; }; }; then :
1814  ac_retval=0
1815else
1816  $as_echo "$as_me: program exited with status $ac_status" >&5
1817       $as_echo "$as_me: failed program was:" >&5
1818sed 's/^/| /' conftest.$ac_ext >&5
1819
1820       ac_retval=$ac_status
1821fi
1822  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1823  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824  as_fn_set_status $ac_retval
1825
1826} # ac_fn_c_try_run
1827
1828# ac_fn_c_check_func LINENO FUNC VAR
1829# ----------------------------------
1830# Tests whether FUNC exists, setting the cache variable VAR accordingly
1831ac_fn_c_check_func ()
1832{
1833  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835$as_echo_n "checking for $2... " >&6; }
1836if eval \${$3+:} false; then :
1837  $as_echo_n "(cached) " >&6
1838else
1839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840/* end confdefs.h.  */
1841/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1842   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1843#define $2 innocuous_$2
1844
1845/* System header to define __stub macros and hopefully few prototypes,
1846    which can conflict with char $2 (); below.
1847    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1848    <limits.h> exists even on freestanding compilers.  */
1849
1850#ifdef __STDC__
1851# include <limits.h>
1852#else
1853# include <assert.h>
1854#endif
1855
1856#undef $2
1857
1858/* Override any GCC internal prototype to avoid an error.
1859   Use char because int might match the return type of a GCC
1860   builtin and then its argument prototype would still apply.  */
1861#ifdef __cplusplus
1862extern "C"
1863#endif
1864char $2 ();
1865/* The GNU C library defines this for functions which it implements
1866    to always fail with ENOSYS.  Some functions are actually named
1867    something starting with __ and the normal name is an alias.  */
1868#if defined __stub_$2 || defined __stub___$2
1869choke me
1870#endif
1871
1872int
1873main ()
1874{
1875return $2 ();
1876  ;
1877  return 0;
1878}
1879_ACEOF
1880if ac_fn_c_try_link "$LINENO"; then :
1881  eval "$3=yes"
1882else
1883  eval "$3=no"
1884fi
1885rm -f core conftest.err conftest.$ac_objext \
1886    conftest$ac_exeext conftest.$ac_ext
1887fi
1888eval ac_res=\$$3
1889	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890$as_echo "$ac_res" >&6; }
1891  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892
1893} # ac_fn_c_check_func
1894
1895# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1896# ---------------------------------------------
1897# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1898# accordingly.
1899ac_fn_c_check_decl ()
1900{
1901  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902  as_decl_name=`echo $2|sed 's/ *(.*//'`
1903  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1905$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1906if eval \${$3+:} false; then :
1907  $as_echo_n "(cached) " >&6
1908else
1909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h.  */
1911$4
1912int
1913main ()
1914{
1915#ifndef $as_decl_name
1916#ifdef __cplusplus
1917  (void) $as_decl_use;
1918#else
1919  (void) $as_decl_name;
1920#endif
1921#endif
1922
1923  ;
1924  return 0;
1925}
1926_ACEOF
1927if ac_fn_c_try_compile "$LINENO"; then :
1928  eval "$3=yes"
1929else
1930  eval "$3=no"
1931fi
1932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933fi
1934eval ac_res=\$$3
1935	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936$as_echo "$ac_res" >&6; }
1937  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938
1939} # ac_fn_c_check_decl
1940cat >config.log <<_ACEOF
1941This file contains any messages produced by compilers while
1942running configure, to aid debugging if configure makes a mistake.
1943
1944It was created by libXext $as_me 1.3.0, which was
1945generated by GNU Autoconf 2.68.  Invocation command line was
1946
1947  $ $0 $@
1948
1949_ACEOF
1950exec 5>>config.log
1951{
1952cat <<_ASUNAME
1953## --------- ##
1954## Platform. ##
1955## --------- ##
1956
1957hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1958uname -m = `(uname -m) 2>/dev/null || echo unknown`
1959uname -r = `(uname -r) 2>/dev/null || echo unknown`
1960uname -s = `(uname -s) 2>/dev/null || echo unknown`
1961uname -v = `(uname -v) 2>/dev/null || echo unknown`
1962
1963/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1964/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1965
1966/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1967/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1968/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1969/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1970/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1971/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1972/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1973
1974_ASUNAME
1975
1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979  IFS=$as_save_IFS
1980  test -z "$as_dir" && as_dir=.
1981    $as_echo "PATH: $as_dir"
1982  done
1983IFS=$as_save_IFS
1984
1985} >&5
1986
1987cat >&5 <<_ACEOF
1988
1989
1990## ----------- ##
1991## Core tests. ##
1992## ----------- ##
1993
1994_ACEOF
1995
1996
1997# Keep a trace of the command line.
1998# Strip out --no-create and --no-recursion so they do not pile up.
1999# Strip out --silent because we don't want to record it for future runs.
2000# Also quote any args containing shell meta-characters.
2001# Make two passes to allow for proper duplicate-argument suppression.
2002ac_configure_args=
2003ac_configure_args0=
2004ac_configure_args1=
2005ac_must_keep_next=false
2006for ac_pass in 1 2
2007do
2008  for ac_arg
2009  do
2010    case $ac_arg in
2011    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2012    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2013    | -silent | --silent | --silen | --sile | --sil)
2014      continue ;;
2015    *\'*)
2016      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2017    esac
2018    case $ac_pass in
2019    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2020    2)
2021      as_fn_append ac_configure_args1 " '$ac_arg'"
2022      if test $ac_must_keep_next = true; then
2023	ac_must_keep_next=false # Got value, back to normal.
2024      else
2025	case $ac_arg in
2026	  *=* | --config-cache | -C | -disable-* | --disable-* \
2027	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2028	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2029	  | -with-* | --with-* | -without-* | --without-* | --x)
2030	    case "$ac_configure_args0 " in
2031	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2032	    esac
2033	    ;;
2034	  -* ) ac_must_keep_next=true ;;
2035	esac
2036      fi
2037      as_fn_append ac_configure_args " '$ac_arg'"
2038      ;;
2039    esac
2040  done
2041done
2042{ ac_configure_args0=; unset ac_configure_args0;}
2043{ ac_configure_args1=; unset ac_configure_args1;}
2044
2045# When interrupted or exit'd, cleanup temporary files, and complete
2046# config.log.  We remove comments because anyway the quotes in there
2047# would cause problems or look ugly.
2048# WARNING: Use '\'' to represent an apostrophe within the trap.
2049# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2050trap 'exit_status=$?
2051  # Save into config.log some information that might help in debugging.
2052  {
2053    echo
2054
2055    $as_echo "## ---------------- ##
2056## Cache variables. ##
2057## ---------------- ##"
2058    echo
2059    # The following way of writing the cache mishandles newlines in values,
2060(
2061  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2062    eval ac_val=\$$ac_var
2063    case $ac_val in #(
2064    *${as_nl}*)
2065      case $ac_var in #(
2066      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2067$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2068      esac
2069      case $ac_var in #(
2070      _ | IFS | as_nl) ;; #(
2071      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2072      *) { eval $ac_var=; unset $ac_var;} ;;
2073      esac ;;
2074    esac
2075  done
2076  (set) 2>&1 |
2077    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2078    *${as_nl}ac_space=\ *)
2079      sed -n \
2080	"s/'\''/'\''\\\\'\'''\''/g;
2081	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2082      ;; #(
2083    *)
2084      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2085      ;;
2086    esac |
2087    sort
2088)
2089    echo
2090
2091    $as_echo "## ----------------- ##
2092## Output variables. ##
2093## ----------------- ##"
2094    echo
2095    for ac_var in $ac_subst_vars
2096    do
2097      eval ac_val=\$$ac_var
2098      case $ac_val in
2099      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2100      esac
2101      $as_echo "$ac_var='\''$ac_val'\''"
2102    done | sort
2103    echo
2104
2105    if test -n "$ac_subst_files"; then
2106      $as_echo "## ------------------- ##
2107## File substitutions. ##
2108## ------------------- ##"
2109      echo
2110      for ac_var in $ac_subst_files
2111      do
2112	eval ac_val=\$$ac_var
2113	case $ac_val in
2114	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2115	esac
2116	$as_echo "$ac_var='\''$ac_val'\''"
2117      done | sort
2118      echo
2119    fi
2120
2121    if test -s confdefs.h; then
2122      $as_echo "## ----------- ##
2123## confdefs.h. ##
2124## ----------- ##"
2125      echo
2126      cat confdefs.h
2127      echo
2128    fi
2129    test "$ac_signal" != 0 &&
2130      $as_echo "$as_me: caught signal $ac_signal"
2131    $as_echo "$as_me: exit $exit_status"
2132  } >&5
2133  rm -f core *.core core.conftest.* &&
2134    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2135    exit $exit_status
2136' 0
2137for ac_signal in 1 2 13 15; do
2138  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2139done
2140ac_signal=0
2141
2142# confdefs.h avoids OS command line length limits that DEFS can exceed.
2143rm -f -r conftest* confdefs.h
2144
2145$as_echo "/* confdefs.h */" > confdefs.h
2146
2147# Predefined preprocessor variables.
2148
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_NAME "$PACKAGE_NAME"
2151_ACEOF
2152
2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2155_ACEOF
2156
2157cat >>confdefs.h <<_ACEOF
2158#define PACKAGE_VERSION "$PACKAGE_VERSION"
2159_ACEOF
2160
2161cat >>confdefs.h <<_ACEOF
2162#define PACKAGE_STRING "$PACKAGE_STRING"
2163_ACEOF
2164
2165cat >>confdefs.h <<_ACEOF
2166#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2167_ACEOF
2168
2169cat >>confdefs.h <<_ACEOF
2170#define PACKAGE_URL "$PACKAGE_URL"
2171_ACEOF
2172
2173
2174# Let the site file select an alternate cache file if it wants to.
2175# Prefer an explicitly selected file to automatically selected ones.
2176ac_site_file1=NONE
2177ac_site_file2=NONE
2178if test -n "$CONFIG_SITE"; then
2179  # We do not want a PATH search for config.site.
2180  case $CONFIG_SITE in #((
2181    -*)  ac_site_file1=./$CONFIG_SITE;;
2182    */*) ac_site_file1=$CONFIG_SITE;;
2183    *)   ac_site_file1=./$CONFIG_SITE;;
2184  esac
2185elif test "x$prefix" != xNONE; then
2186  ac_site_file1=$prefix/share/config.site
2187  ac_site_file2=$prefix/etc/config.site
2188else
2189  ac_site_file1=$ac_default_prefix/share/config.site
2190  ac_site_file2=$ac_default_prefix/etc/config.site
2191fi
2192for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2193do
2194  test "x$ac_site_file" = xNONE && continue
2195  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2196    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2197$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2198    sed 's/^/| /' "$ac_site_file" >&5
2199    . "$ac_site_file" \
2200      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2202as_fn_error $? "failed to load site script $ac_site_file
2203See \`config.log' for more details" "$LINENO" 5; }
2204  fi
2205done
2206
2207if test -r "$cache_file"; then
2208  # Some versions of bash will fail to source /dev/null (special files
2209  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2210  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2211    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2212$as_echo "$as_me: loading cache $cache_file" >&6;}
2213    case $cache_file in
2214      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2215      *)                      . "./$cache_file";;
2216    esac
2217  fi
2218else
2219  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2220$as_echo "$as_me: creating cache $cache_file" >&6;}
2221  >$cache_file
2222fi
2223
2224# Check that the precious variables saved in the cache have kept the same
2225# value.
2226ac_cache_corrupted=false
2227for ac_var in $ac_precious_vars; do
2228  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2229  eval ac_new_set=\$ac_env_${ac_var}_set
2230  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2231  eval ac_new_val=\$ac_env_${ac_var}_value
2232  case $ac_old_set,$ac_new_set in
2233    set,)
2234      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2235$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2236      ac_cache_corrupted=: ;;
2237    ,set)
2238      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2239$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2240      ac_cache_corrupted=: ;;
2241    ,);;
2242    *)
2243      if test "x$ac_old_val" != "x$ac_new_val"; then
2244	# differences in whitespace do not lead to failure.
2245	ac_old_val_w=`echo x $ac_old_val`
2246	ac_new_val_w=`echo x $ac_new_val`
2247	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2248	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2249$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2250	  ac_cache_corrupted=:
2251	else
2252	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2253$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2254	  eval $ac_var=\$ac_old_val
2255	fi
2256	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2257$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2258	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2259$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2260      fi;;
2261  esac
2262  # Pass precious variables to config.status.
2263  if test "$ac_new_set" = set; then
2264    case $ac_new_val in
2265    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2266    *) ac_arg=$ac_var=$ac_new_val ;;
2267    esac
2268    case " $ac_configure_args " in
2269      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2270      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2271    esac
2272  fi
2273done
2274if $ac_cache_corrupted; then
2275  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2277  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2278$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2279  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2280fi
2281## -------------------- ##
2282## Main body of script. ##
2283## -------------------- ##
2284
2285ac_ext=c
2286ac_cpp='$CPP $CPPFLAGS'
2287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2289ac_compiler_gnu=$ac_cv_c_compiler_gnu
2290
2291
2292
2293ac_config_headers="$ac_config_headers config.h"
2294
2295
2296# Initialize Automake
2297am__api_version='1.11'
2298
2299ac_aux_dir=
2300for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2301  if test -f "$ac_dir/install-sh"; then
2302    ac_aux_dir=$ac_dir
2303    ac_install_sh="$ac_aux_dir/install-sh -c"
2304    break
2305  elif test -f "$ac_dir/install.sh"; then
2306    ac_aux_dir=$ac_dir
2307    ac_install_sh="$ac_aux_dir/install.sh -c"
2308    break
2309  elif test -f "$ac_dir/shtool"; then
2310    ac_aux_dir=$ac_dir
2311    ac_install_sh="$ac_aux_dir/shtool install -c"
2312    break
2313  fi
2314done
2315if test -z "$ac_aux_dir"; then
2316  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2317fi
2318
2319# These three variables are undocumented and unsupported,
2320# and are intended to be withdrawn in a future Autoconf release.
2321# They can cause serious problems if a builder's source tree is in a directory
2322# whose full name contains unusual characters.
2323ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2324ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2325ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2326
2327
2328# Find a good install program.  We prefer a C program (faster),
2329# so one script is as good as another.  But avoid the broken or
2330# incompatible versions:
2331# SysV /etc/install, /usr/sbin/install
2332# SunOS /usr/etc/install
2333# IRIX /sbin/install
2334# AIX /bin/install
2335# AmigaOS /C/install, which installs bootblocks on floppy discs
2336# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2337# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2338# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2339# OS/2's system install, which has a completely different semantic
2340# ./install, which can be erroneously created by make from ./install.sh.
2341# Reject install programs that cannot install multiple files.
2342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2343$as_echo_n "checking for a BSD-compatible install... " >&6; }
2344if test -z "$INSTALL"; then
2345if ${ac_cv_path_install+:} false; then :
2346  $as_echo_n "(cached) " >&6
2347else
2348  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349for as_dir in $PATH
2350do
2351  IFS=$as_save_IFS
2352  test -z "$as_dir" && as_dir=.
2353    # Account for people who put trailing slashes in PATH elements.
2354case $as_dir/ in #((
2355  ./ | .// | /[cC]/* | \
2356  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2357  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2358  /usr/ucb/* ) ;;
2359  *)
2360    # OSF1 and SCO ODT 3.0 have their own names for install.
2361    # Don't use installbsd from OSF since it installs stuff as root
2362    # by default.
2363    for ac_prog in ginstall scoinst install; do
2364      for ac_exec_ext in '' $ac_executable_extensions; do
2365	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2366	  if test $ac_prog = install &&
2367	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2368	    # AIX install.  It has an incompatible calling convention.
2369	    :
2370	  elif test $ac_prog = install &&
2371	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2372	    # program-specific install script used by HP pwplus--don't use.
2373	    :
2374	  else
2375	    rm -rf conftest.one conftest.two conftest.dir
2376	    echo one > conftest.one
2377	    echo two > conftest.two
2378	    mkdir conftest.dir
2379	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2380	      test -s conftest.one && test -s conftest.two &&
2381	      test -s conftest.dir/conftest.one &&
2382	      test -s conftest.dir/conftest.two
2383	    then
2384	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2385	      break 3
2386	    fi
2387	  fi
2388	fi
2389      done
2390    done
2391    ;;
2392esac
2393
2394  done
2395IFS=$as_save_IFS
2396
2397rm -rf conftest.one conftest.two conftest.dir
2398
2399fi
2400  if test "${ac_cv_path_install+set}" = set; then
2401    INSTALL=$ac_cv_path_install
2402  else
2403    # As a last resort, use the slow shell script.  Don't cache a
2404    # value for INSTALL within a source directory, because that will
2405    # break other packages using the cache if that directory is
2406    # removed, or if the value is a relative name.
2407    INSTALL=$ac_install_sh
2408  fi
2409fi
2410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2411$as_echo "$INSTALL" >&6; }
2412
2413# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2414# It thinks the first close brace ends the variable substitution.
2415test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2416
2417test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2418
2419test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2420
2421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2422$as_echo_n "checking whether build environment is sane... " >&6; }
2423# Just in case
2424sleep 1
2425echo timestamp > conftest.file
2426# Reject unsafe characters in $srcdir or the absolute working directory
2427# name.  Accept space and tab only in the latter.
2428am_lf='
2429'
2430case `pwd` in
2431  *[\\\"\#\$\&\'\`$am_lf]*)
2432    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2433esac
2434case $srcdir in
2435  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2436    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2437esac
2438
2439# Do `set' in a subshell so we don't clobber the current shell's
2440# arguments.  Must try -L first in case configure is actually a
2441# symlink; some systems play weird games with the mod time of symlinks
2442# (eg FreeBSD returns the mod time of the symlink's containing
2443# directory).
2444if (
2445   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2446   if test "$*" = "X"; then
2447      # -L didn't work.
2448      set X `ls -t "$srcdir/configure" conftest.file`
2449   fi
2450   rm -f conftest.file
2451   if test "$*" != "X $srcdir/configure conftest.file" \
2452      && test "$*" != "X conftest.file $srcdir/configure"; then
2453
2454      # If neither matched, then we have a broken ls.  This can happen
2455      # if, for instance, CONFIG_SHELL is bash and it inherits a
2456      # broken ls alias from the environment.  This has actually
2457      # happened.  Such a system could not be considered "sane".
2458      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2459alias in your environment" "$LINENO" 5
2460   fi
2461
2462   test "$2" = conftest.file
2463   )
2464then
2465   # Ok.
2466   :
2467else
2468   as_fn_error $? "newly created file is older than distributed files!
2469Check your system clock" "$LINENO" 5
2470fi
2471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2472$as_echo "yes" >&6; }
2473test "$program_prefix" != NONE &&
2474  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2475# Use a double $ so make ignores it.
2476test "$program_suffix" != NONE &&
2477  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2478# Double any \ or $.
2479# By default was `s,x,x', remove it if useless.
2480ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2481program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2482
2483# expand $ac_aux_dir to an absolute path
2484am_aux_dir=`cd $ac_aux_dir && pwd`
2485
2486if test x"${MISSING+set}" != xset; then
2487  case $am_aux_dir in
2488  *\ * | *\	*)
2489    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2490  *)
2491    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2492  esac
2493fi
2494# Use eval to expand $SHELL
2495if eval "$MISSING --run true"; then
2496  am_missing_run="$MISSING --run "
2497else
2498  am_missing_run=
2499  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2500$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2501fi
2502
2503if test x"${install_sh}" != xset; then
2504  case $am_aux_dir in
2505  *\ * | *\	*)
2506    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2507  *)
2508    install_sh="\${SHELL} $am_aux_dir/install-sh"
2509  esac
2510fi
2511
2512# Installed binaries are usually stripped using `strip' when the user
2513# run `make install-strip'.  However `strip' might not be the right
2514# tool to use in cross-compilation environments, therefore Automake
2515# will honor the `STRIP' environment variable to overrule this program.
2516if test "$cross_compiling" != no; then
2517  if test -n "$ac_tool_prefix"; then
2518  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2519set dummy ${ac_tool_prefix}strip; ac_word=$2
2520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2521$as_echo_n "checking for $ac_word... " >&6; }
2522if ${ac_cv_prog_STRIP+:} false; then :
2523  $as_echo_n "(cached) " >&6
2524else
2525  if test -n "$STRIP"; then
2526  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2527else
2528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529for as_dir in $PATH
2530do
2531  IFS=$as_save_IFS
2532  test -z "$as_dir" && as_dir=.
2533    for ac_exec_ext in '' $ac_executable_extensions; do
2534  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2536    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2537    break 2
2538  fi
2539done
2540  done
2541IFS=$as_save_IFS
2542
2543fi
2544fi
2545STRIP=$ac_cv_prog_STRIP
2546if test -n "$STRIP"; then
2547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2548$as_echo "$STRIP" >&6; }
2549else
2550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2551$as_echo "no" >&6; }
2552fi
2553
2554
2555fi
2556if test -z "$ac_cv_prog_STRIP"; then
2557  ac_ct_STRIP=$STRIP
2558  # Extract the first word of "strip", so it can be a program name with args.
2559set dummy strip; ac_word=$2
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561$as_echo_n "checking for $ac_word... " >&6; }
2562if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2563  $as_echo_n "(cached) " >&6
2564else
2565  if test -n "$ac_ct_STRIP"; then
2566  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2567else
2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569for as_dir in $PATH
2570do
2571  IFS=$as_save_IFS
2572  test -z "$as_dir" && as_dir=.
2573    for ac_exec_ext in '' $ac_executable_extensions; do
2574  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575    ac_cv_prog_ac_ct_STRIP="strip"
2576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577    break 2
2578  fi
2579done
2580  done
2581IFS=$as_save_IFS
2582
2583fi
2584fi
2585ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2586if test -n "$ac_ct_STRIP"; then
2587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2588$as_echo "$ac_ct_STRIP" >&6; }
2589else
2590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591$as_echo "no" >&6; }
2592fi
2593
2594  if test "x$ac_ct_STRIP" = x; then
2595    STRIP=":"
2596  else
2597    case $cross_compiling:$ac_tool_warned in
2598yes:)
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2601ac_tool_warned=yes ;;
2602esac
2603    STRIP=$ac_ct_STRIP
2604  fi
2605else
2606  STRIP="$ac_cv_prog_STRIP"
2607fi
2608
2609fi
2610INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2611
2612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2613$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2614if test -z "$MKDIR_P"; then
2615  if ${ac_cv_path_mkdir+:} false; then :
2616  $as_echo_n "(cached) " >&6
2617else
2618  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2620do
2621  IFS=$as_save_IFS
2622  test -z "$as_dir" && as_dir=.
2623    for ac_prog in mkdir gmkdir; do
2624	 for ac_exec_ext in '' $ac_executable_extensions; do
2625	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2626	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2627	     'mkdir (GNU coreutils) '* | \
2628	     'mkdir (coreutils) '* | \
2629	     'mkdir (fileutils) '4.1*)
2630	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2631	       break 3;;
2632	   esac
2633	 done
2634       done
2635  done
2636IFS=$as_save_IFS
2637
2638fi
2639
2640  test -d ./--version && rmdir ./--version
2641  if test "${ac_cv_path_mkdir+set}" = set; then
2642    MKDIR_P="$ac_cv_path_mkdir -p"
2643  else
2644    # As a last resort, use the slow shell script.  Don't cache a
2645    # value for MKDIR_P within a source directory, because that will
2646    # break other packages using the cache if that directory is
2647    # removed, or if the value is a relative name.
2648    MKDIR_P="$ac_install_sh -d"
2649  fi
2650fi
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2652$as_echo "$MKDIR_P" >&6; }
2653
2654mkdir_p="$MKDIR_P"
2655case $mkdir_p in
2656  [\\/$]* | ?:[\\/]*) ;;
2657  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2658esac
2659
2660for ac_prog in gawk mawk nawk awk
2661do
2662  # Extract the first word of "$ac_prog", so it can be a program name with args.
2663set dummy $ac_prog; ac_word=$2
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665$as_echo_n "checking for $ac_word... " >&6; }
2666if ${ac_cv_prog_AWK+:} false; then :
2667  $as_echo_n "(cached) " >&6
2668else
2669  if test -n "$AWK"; then
2670  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2671else
2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673for as_dir in $PATH
2674do
2675  IFS=$as_save_IFS
2676  test -z "$as_dir" && as_dir=.
2677    for ac_exec_ext in '' $ac_executable_extensions; do
2678  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679    ac_cv_prog_AWK="$ac_prog"
2680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681    break 2
2682  fi
2683done
2684  done
2685IFS=$as_save_IFS
2686
2687fi
2688fi
2689AWK=$ac_cv_prog_AWK
2690if test -n "$AWK"; then
2691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2692$as_echo "$AWK" >&6; }
2693else
2694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695$as_echo "no" >&6; }
2696fi
2697
2698
2699  test -n "$AWK" && break
2700done
2701
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2703$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2704set x ${MAKE-make}
2705ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2706if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2707  $as_echo_n "(cached) " >&6
2708else
2709  cat >conftest.make <<\_ACEOF
2710SHELL = /bin/sh
2711all:
2712	@echo '@@@%%%=$(MAKE)=@@@%%%'
2713_ACEOF
2714# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2715case `${MAKE-make} -f conftest.make 2>/dev/null` in
2716  *@@@%%%=?*=@@@%%%*)
2717    eval ac_cv_prog_make_${ac_make}_set=yes;;
2718  *)
2719    eval ac_cv_prog_make_${ac_make}_set=no;;
2720esac
2721rm -f conftest.make
2722fi
2723if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2725$as_echo "yes" >&6; }
2726  SET_MAKE=
2727else
2728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729$as_echo "no" >&6; }
2730  SET_MAKE="MAKE=${MAKE-make}"
2731fi
2732
2733rm -rf .tst 2>/dev/null
2734mkdir .tst 2>/dev/null
2735if test -d .tst; then
2736  am__leading_dot=.
2737else
2738  am__leading_dot=_
2739fi
2740rmdir .tst 2>/dev/null
2741
2742if test "`cd $srcdir && pwd`" != "`pwd`"; then
2743  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2744  # is not polluted with repeated "-I."
2745  am__isrc=' -I$(srcdir)'
2746  # test to see if srcdir already configured
2747  if test -f $srcdir/config.status; then
2748    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2749  fi
2750fi
2751
2752# test whether we have cygpath
2753if test -z "$CYGPATH_W"; then
2754  if (cygpath --version) >/dev/null 2>/dev/null; then
2755    CYGPATH_W='cygpath -w'
2756  else
2757    CYGPATH_W=echo
2758  fi
2759fi
2760
2761
2762# Define the identity of the package.
2763 PACKAGE='libXext'
2764 VERSION='1.3.0'
2765
2766
2767cat >>confdefs.h <<_ACEOF
2768#define PACKAGE "$PACKAGE"
2769_ACEOF
2770
2771
2772cat >>confdefs.h <<_ACEOF
2773#define VERSION "$VERSION"
2774_ACEOF
2775
2776# Some tools Automake needs.
2777
2778ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2779
2780
2781AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2782
2783
2784AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2785
2786
2787AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2788
2789
2790MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2791
2792# We need awk for the "check" target.  The system "awk" is bad on
2793# some platforms.
2794# Always define AMTAR for backward compatibility.
2795
2796AMTAR=${AMTAR-"${am_missing_run}tar"}
2797
2798am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2799
2800
2801
2802
2803
2804
2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2806$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2807    # Check whether --enable-maintainer-mode was given.
2808if test "${enable_maintainer_mode+set}" = set; then :
2809  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2810else
2811  USE_MAINTAINER_MODE=no
2812fi
2813
2814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2815$as_echo "$USE_MAINTAINER_MODE" >&6; }
2816   if test $USE_MAINTAINER_MODE = yes; then
2817  MAINTAINER_MODE_TRUE=
2818  MAINTAINER_MODE_FALSE='#'
2819else
2820  MAINTAINER_MODE_TRUE='#'
2821  MAINTAINER_MODE_FALSE=
2822fi
2823
2824  MAINT=$MAINTAINER_MODE_TRUE
2825
2826
2827
2828# Initialize libtool
2829case `pwd` in
2830  *\ * | *\	*)
2831    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2832$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2833esac
2834
2835
2836
2837macro_version='2.4'
2838macro_revision='1.3293'
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852ltmain="$ac_aux_dir/ltmain.sh"
2853
2854# Make sure we can run config.sub.
2855$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2856  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2857
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2859$as_echo_n "checking build system type... " >&6; }
2860if ${ac_cv_build+:} false; then :
2861  $as_echo_n "(cached) " >&6
2862else
2863  ac_build_alias=$build_alias
2864test "x$ac_build_alias" = x &&
2865  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2866test "x$ac_build_alias" = x &&
2867  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2868ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2869  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2870
2871fi
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2873$as_echo "$ac_cv_build" >&6; }
2874case $ac_cv_build in
2875*-*-*) ;;
2876*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2877esac
2878build=$ac_cv_build
2879ac_save_IFS=$IFS; IFS='-'
2880set x $ac_cv_build
2881shift
2882build_cpu=$1
2883build_vendor=$2
2884shift; shift
2885# Remember, the first character of IFS is used to create $*,
2886# except with old shells:
2887build_os=$*
2888IFS=$ac_save_IFS
2889case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2890
2891
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2893$as_echo_n "checking host system type... " >&6; }
2894if ${ac_cv_host+:} false; then :
2895  $as_echo_n "(cached) " >&6
2896else
2897  if test "x$host_alias" = x; then
2898  ac_cv_host=$ac_cv_build
2899else
2900  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2901    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2902fi
2903
2904fi
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2906$as_echo "$ac_cv_host" >&6; }
2907case $ac_cv_host in
2908*-*-*) ;;
2909*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2910esac
2911host=$ac_cv_host
2912ac_save_IFS=$IFS; IFS='-'
2913set x $ac_cv_host
2914shift
2915host_cpu=$1
2916host_vendor=$2
2917shift; shift
2918# Remember, the first character of IFS is used to create $*,
2919# except with old shells:
2920host_os=$*
2921IFS=$ac_save_IFS
2922case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2923
2924
2925# Backslashify metacharacters that are still active within
2926# double-quoted strings.
2927sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2928
2929# Same as above, but do not quote variable references.
2930double_quote_subst='s/\(["`\\]\)/\\\1/g'
2931
2932# Sed substitution to delay expansion of an escaped shell variable in a
2933# double_quote_subst'ed string.
2934delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2935
2936# Sed substitution to delay expansion of an escaped single quote.
2937delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2938
2939# Sed substitution to avoid accidental globbing in evaled expressions
2940no_glob_subst='s/\*/\\\*/g'
2941
2942ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2943ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2944ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2945
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2947$as_echo_n "checking how to print strings... " >&6; }
2948# Test print first, because it will be a builtin if present.
2949if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2950   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2951  ECHO='print -r --'
2952elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2953  ECHO='printf %s\n'
2954else
2955  # Use this function as a fallback that always works.
2956  func_fallback_echo ()
2957  {
2958    eval 'cat <<_LTECHO_EOF
2959$1
2960_LTECHO_EOF'
2961  }
2962  ECHO='func_fallback_echo'
2963fi
2964
2965# func_echo_all arg...
2966# Invoke $ECHO with all args, space-separated.
2967func_echo_all ()
2968{
2969    $ECHO ""
2970}
2971
2972case "$ECHO" in
2973  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2974$as_echo "printf" >&6; } ;;
2975  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2976$as_echo "print -r" >&6; } ;;
2977  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2978$as_echo "cat" >&6; } ;;
2979esac
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994DEPDIR="${am__leading_dot}deps"
2995
2996ac_config_commands="$ac_config_commands depfiles"
2997
2998
2999am_make=${MAKE-make}
3000cat > confinc << 'END'
3001am__doit:
3002	@echo this is the am__doit target
3003.PHONY: am__doit
3004END
3005# If we don't find an include directive, just comment out the code.
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3007$as_echo_n "checking for style of include used by $am_make... " >&6; }
3008am__include="#"
3009am__quote=
3010_am_result=none
3011# First try GNU make style include.
3012echo "include confinc" > confmf
3013# Ignore all kinds of additional output from `make'.
3014case `$am_make -s -f confmf 2> /dev/null` in #(
3015*the\ am__doit\ target*)
3016  am__include=include
3017  am__quote=
3018  _am_result=GNU
3019  ;;
3020esac
3021# Now try BSD make style include.
3022if test "$am__include" = "#"; then
3023   echo '.include "confinc"' > confmf
3024   case `$am_make -s -f confmf 2> /dev/null` in #(
3025   *the\ am__doit\ target*)
3026     am__include=.include
3027     am__quote="\""
3028     _am_result=BSD
3029     ;;
3030   esac
3031fi
3032
3033
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3035$as_echo "$_am_result" >&6; }
3036rm -f confinc confmf
3037
3038# Check whether --enable-dependency-tracking was given.
3039if test "${enable_dependency_tracking+set}" = set; then :
3040  enableval=$enable_dependency_tracking;
3041fi
3042
3043if test "x$enable_dependency_tracking" != xno; then
3044  am_depcomp="$ac_aux_dir/depcomp"
3045  AMDEPBACKSLASH='\'
3046fi
3047 if test "x$enable_dependency_tracking" != xno; then
3048  AMDEP_TRUE=
3049  AMDEP_FALSE='#'
3050else
3051  AMDEP_TRUE='#'
3052  AMDEP_FALSE=
3053fi
3054
3055
3056ac_ext=c
3057ac_cpp='$CPP $CPPFLAGS'
3058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3060ac_compiler_gnu=$ac_cv_c_compiler_gnu
3061if test -n "$ac_tool_prefix"; then
3062  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3063set dummy ${ac_tool_prefix}gcc; ac_word=$2
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065$as_echo_n "checking for $ac_word... " >&6; }
3066if ${ac_cv_prog_CC+:} false; then :
3067  $as_echo_n "(cached) " >&6
3068else
3069  if test -n "$CC"; then
3070  ac_cv_prog_CC="$CC" # Let the user override the test.
3071else
3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075  IFS=$as_save_IFS
3076  test -z "$as_dir" && as_dir=.
3077    for ac_exec_ext in '' $ac_executable_extensions; do
3078  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3079    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081    break 2
3082  fi
3083done
3084  done
3085IFS=$as_save_IFS
3086
3087fi
3088fi
3089CC=$ac_cv_prog_CC
3090if test -n "$CC"; then
3091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3092$as_echo "$CC" >&6; }
3093else
3094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095$as_echo "no" >&6; }
3096fi
3097
3098
3099fi
3100if test -z "$ac_cv_prog_CC"; then
3101  ac_ct_CC=$CC
3102  # Extract the first word of "gcc", so it can be a program name with args.
3103set dummy gcc; ac_word=$2
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105$as_echo_n "checking for $ac_word... " >&6; }
3106if ${ac_cv_prog_ac_ct_CC+:} false; then :
3107  $as_echo_n "(cached) " >&6
3108else
3109  if test -n "$ac_ct_CC"; then
3110  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3111else
3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115  IFS=$as_save_IFS
3116  test -z "$as_dir" && as_dir=.
3117    for ac_exec_ext in '' $ac_executable_extensions; do
3118  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119    ac_cv_prog_ac_ct_CC="gcc"
3120    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121    break 2
3122  fi
3123done
3124  done
3125IFS=$as_save_IFS
3126
3127fi
3128fi
3129ac_ct_CC=$ac_cv_prog_ac_ct_CC
3130if test -n "$ac_ct_CC"; then
3131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3132$as_echo "$ac_ct_CC" >&6; }
3133else
3134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135$as_echo "no" >&6; }
3136fi
3137
3138  if test "x$ac_ct_CC" = x; then
3139    CC=""
3140  else
3141    case $cross_compiling:$ac_tool_warned in
3142yes:)
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3145ac_tool_warned=yes ;;
3146esac
3147    CC=$ac_ct_CC
3148  fi
3149else
3150  CC="$ac_cv_prog_CC"
3151fi
3152
3153if test -z "$CC"; then
3154          if test -n "$ac_tool_prefix"; then
3155    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3156set dummy ${ac_tool_prefix}cc; ac_word=$2
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158$as_echo_n "checking for $ac_word... " >&6; }
3159if ${ac_cv_prog_CC+:} false; then :
3160  $as_echo_n "(cached) " >&6
3161else
3162  if test -n "$CC"; then
3163  ac_cv_prog_CC="$CC" # Let the user override the test.
3164else
3165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166for as_dir in $PATH
3167do
3168  IFS=$as_save_IFS
3169  test -z "$as_dir" && as_dir=.
3170    for ac_exec_ext in '' $ac_executable_extensions; do
3171  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3172    ac_cv_prog_CC="${ac_tool_prefix}cc"
3173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174    break 2
3175  fi
3176done
3177  done
3178IFS=$as_save_IFS
3179
3180fi
3181fi
3182CC=$ac_cv_prog_CC
3183if test -n "$CC"; then
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185$as_echo "$CC" >&6; }
3186else
3187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188$as_echo "no" >&6; }
3189fi
3190
3191
3192  fi
3193fi
3194if test -z "$CC"; then
3195  # Extract the first word of "cc", so it can be a program name with args.
3196set dummy cc; ac_word=$2
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198$as_echo_n "checking for $ac_word... " >&6; }
3199if ${ac_cv_prog_CC+:} false; then :
3200  $as_echo_n "(cached) " >&6
3201else
3202  if test -n "$CC"; then
3203  ac_cv_prog_CC="$CC" # Let the user override the test.
3204else
3205  ac_prog_rejected=no
3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH
3208do
3209  IFS=$as_save_IFS
3210  test -z "$as_dir" && as_dir=.
3211    for ac_exec_ext in '' $ac_executable_extensions; do
3212  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3214       ac_prog_rejected=yes
3215       continue
3216     fi
3217    ac_cv_prog_CC="cc"
3218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219    break 2
3220  fi
3221done
3222  done
3223IFS=$as_save_IFS
3224
3225if test $ac_prog_rejected = yes; then
3226  # We found a bogon in the path, so make sure we never use it.
3227  set dummy $ac_cv_prog_CC
3228  shift
3229  if test $# != 0; then
3230    # We chose a different compiler from the bogus one.
3231    # However, it has the same basename, so the bogon will be chosen
3232    # first if we set CC to just the basename; use the full file name.
3233    shift
3234    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3235  fi
3236fi
3237fi
3238fi
3239CC=$ac_cv_prog_CC
3240if test -n "$CC"; then
3241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3242$as_echo "$CC" >&6; }
3243else
3244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245$as_echo "no" >&6; }
3246fi
3247
3248
3249fi
3250if test -z "$CC"; then
3251  if test -n "$ac_tool_prefix"; then
3252  for ac_prog in cl.exe
3253  do
3254    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3255set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257$as_echo_n "checking for $ac_word... " >&6; }
3258if ${ac_cv_prog_CC+:} false; then :
3259  $as_echo_n "(cached) " >&6
3260else
3261  if test -n "$CC"; then
3262  ac_cv_prog_CC="$CC" # Let the user override the test.
3263else
3264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265for as_dir in $PATH
3266do
3267  IFS=$as_save_IFS
3268  test -z "$as_dir" && as_dir=.
3269    for ac_exec_ext in '' $ac_executable_extensions; do
3270  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3271    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273    break 2
3274  fi
3275done
3276  done
3277IFS=$as_save_IFS
3278
3279fi
3280fi
3281CC=$ac_cv_prog_CC
3282if test -n "$CC"; then
3283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284$as_echo "$CC" >&6; }
3285else
3286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287$as_echo "no" >&6; }
3288fi
3289
3290
3291    test -n "$CC" && break
3292  done
3293fi
3294if test -z "$CC"; then
3295  ac_ct_CC=$CC
3296  for ac_prog in cl.exe
3297do
3298  # Extract the first word of "$ac_prog", so it can be a program name with args.
3299set dummy $ac_prog; ac_word=$2
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301$as_echo_n "checking for $ac_word... " >&6; }
3302if ${ac_cv_prog_ac_ct_CC+:} false; then :
3303  $as_echo_n "(cached) " >&6
3304else
3305  if test -n "$ac_ct_CC"; then
3306  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3307else
3308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309for as_dir in $PATH
3310do
3311  IFS=$as_save_IFS
3312  test -z "$as_dir" && as_dir=.
3313    for ac_exec_ext in '' $ac_executable_extensions; do
3314  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3315    ac_cv_prog_ac_ct_CC="$ac_prog"
3316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317    break 2
3318  fi
3319done
3320  done
3321IFS=$as_save_IFS
3322
3323fi
3324fi
3325ac_ct_CC=$ac_cv_prog_ac_ct_CC
3326if test -n "$ac_ct_CC"; then
3327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3328$as_echo "$ac_ct_CC" >&6; }
3329else
3330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331$as_echo "no" >&6; }
3332fi
3333
3334
3335  test -n "$ac_ct_CC" && break
3336done
3337
3338  if test "x$ac_ct_CC" = x; then
3339    CC=""
3340  else
3341    case $cross_compiling:$ac_tool_warned in
3342yes:)
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3345ac_tool_warned=yes ;;
3346esac
3347    CC=$ac_ct_CC
3348  fi
3349fi
3350
3351fi
3352
3353
3354test -z "$CC" && { { $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 $? "no acceptable C compiler found in \$PATH
3357See \`config.log' for more details" "$LINENO" 5; }
3358
3359# Provide some information about the compiler.
3360$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3361set X $ac_compile
3362ac_compiler=$2
3363for ac_option in --version -v -V -qversion; do
3364  { { ac_try="$ac_compiler $ac_option >&5"
3365case "(($ac_try" in
3366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367  *) ac_try_echo=$ac_try;;
3368esac
3369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370$as_echo "$ac_try_echo"; } >&5
3371  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3372  ac_status=$?
3373  if test -s conftest.err; then
3374    sed '10a\
3375... rest of stderr output deleted ...
3376         10q' conftest.err >conftest.er1
3377    cat conftest.er1 >&5
3378  fi
3379  rm -f conftest.er1 conftest.err
3380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381  test $ac_status = 0; }
3382done
3383
3384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385/* end confdefs.h.  */
3386
3387int
3388main ()
3389{
3390
3391  ;
3392  return 0;
3393}
3394_ACEOF
3395ac_clean_files_save=$ac_clean_files
3396ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3397# Try to create an executable without -o first, disregard a.out.
3398# It will help us diagnose broken compilers, and finding out an intuition
3399# of exeext.
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3401$as_echo_n "checking whether the C compiler works... " >&6; }
3402ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3403
3404# The possible output files:
3405ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3406
3407ac_rmfiles=
3408for ac_file in $ac_files
3409do
3410  case $ac_file in
3411    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3412    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3413  esac
3414done
3415rm -f $ac_rmfiles
3416
3417if { { ac_try="$ac_link_default"
3418case "(($ac_try" in
3419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420  *) ac_try_echo=$ac_try;;
3421esac
3422eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423$as_echo "$ac_try_echo"; } >&5
3424  (eval "$ac_link_default") 2>&5
3425  ac_status=$?
3426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427  test $ac_status = 0; }; then :
3428  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3429# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3430# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3431# so that the user can short-circuit this test for compilers unknown to
3432# Autoconf.
3433for ac_file in $ac_files ''
3434do
3435  test -f "$ac_file" || continue
3436  case $ac_file in
3437    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3438	;;
3439    [ab].out )
3440	# We found the default executable, but exeext='' is most
3441	# certainly right.
3442	break;;
3443    *.* )
3444	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3445	then :; else
3446	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3447	fi
3448	# We set ac_cv_exeext here because the later test for it is not
3449	# safe: cross compilers may not add the suffix if given an `-o'
3450	# argument, so we may need to know it at that point already.
3451	# Even if this section looks crufty: it has the advantage of
3452	# actually working.
3453	break;;
3454    * )
3455	break;;
3456  esac
3457done
3458test "$ac_cv_exeext" = no && ac_cv_exeext=
3459
3460else
3461  ac_file=''
3462fi
3463if test -z "$ac_file"; then :
3464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465$as_echo "no" >&6; }
3466$as_echo "$as_me: failed program was:" >&5
3467sed 's/^/| /' conftest.$ac_ext >&5
3468
3469{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471as_fn_error 77 "C compiler cannot create executables
3472See \`config.log' for more details" "$LINENO" 5; }
3473else
3474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3475$as_echo "yes" >&6; }
3476fi
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3478$as_echo_n "checking for C compiler default output file name... " >&6; }
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3480$as_echo "$ac_file" >&6; }
3481ac_exeext=$ac_cv_exeext
3482
3483rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3484ac_clean_files=$ac_clean_files_save
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3486$as_echo_n "checking for suffix of executables... " >&6; }
3487if { { ac_try="$ac_link"
3488case "(($ac_try" in
3489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490  *) ac_try_echo=$ac_try;;
3491esac
3492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493$as_echo "$ac_try_echo"; } >&5
3494  (eval "$ac_link") 2>&5
3495  ac_status=$?
3496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497  test $ac_status = 0; }; then :
3498  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3499# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3500# work properly (i.e., refer to `conftest.exe'), while it won't with
3501# `rm'.
3502for ac_file in conftest.exe conftest conftest.*; do
3503  test -f "$ac_file" || continue
3504  case $ac_file in
3505    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3506    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3507	  break;;
3508    * ) break;;
3509  esac
3510done
3511else
3512  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3515See \`config.log' for more details" "$LINENO" 5; }
3516fi
3517rm -f conftest conftest$ac_cv_exeext
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3519$as_echo "$ac_cv_exeext" >&6; }
3520
3521rm -f conftest.$ac_ext
3522EXEEXT=$ac_cv_exeext
3523ac_exeext=$EXEEXT
3524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525/* end confdefs.h.  */
3526#include <stdio.h>
3527int
3528main ()
3529{
3530FILE *f = fopen ("conftest.out", "w");
3531 return ferror (f) || fclose (f) != 0;
3532
3533  ;
3534  return 0;
3535}
3536_ACEOF
3537ac_clean_files="$ac_clean_files conftest.out"
3538# Check that the compiler produces executables we can run.  If not, either
3539# the compiler is broken, or we cross compile.
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3541$as_echo_n "checking whether we are cross compiling... " >&6; }
3542if test "$cross_compiling" != yes; then
3543  { { ac_try="$ac_link"
3544case "(($ac_try" in
3545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546  *) ac_try_echo=$ac_try;;
3547esac
3548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3549$as_echo "$ac_try_echo"; } >&5
3550  (eval "$ac_link") 2>&5
3551  ac_status=$?
3552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3553  test $ac_status = 0; }
3554  if { ac_try='./conftest$ac_cv_exeext'
3555  { { case "(($ac_try" in
3556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557  *) ac_try_echo=$ac_try;;
3558esac
3559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3560$as_echo "$ac_try_echo"; } >&5
3561  (eval "$ac_try") 2>&5
3562  ac_status=$?
3563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564  test $ac_status = 0; }; }; then
3565    cross_compiling=no
3566  else
3567    if test "$cross_compiling" = maybe; then
3568	cross_compiling=yes
3569    else
3570	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572as_fn_error $? "cannot run C compiled programs.
3573If you meant to cross compile, use \`--host'.
3574See \`config.log' for more details" "$LINENO" 5; }
3575    fi
3576  fi
3577fi
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3579$as_echo "$cross_compiling" >&6; }
3580
3581rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3582ac_clean_files=$ac_clean_files_save
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3584$as_echo_n "checking for suffix of object files... " >&6; }
3585if ${ac_cv_objext+:} false; then :
3586  $as_echo_n "(cached) " >&6
3587else
3588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589/* end confdefs.h.  */
3590
3591int
3592main ()
3593{
3594
3595  ;
3596  return 0;
3597}
3598_ACEOF
3599rm -f conftest.o conftest.obj
3600if { { ac_try="$ac_compile"
3601case "(($ac_try" in
3602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603  *) ac_try_echo=$ac_try;;
3604esac
3605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606$as_echo "$ac_try_echo"; } >&5
3607  (eval "$ac_compile") 2>&5
3608  ac_status=$?
3609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610  test $ac_status = 0; }; then :
3611  for ac_file in conftest.o conftest.obj conftest.*; do
3612  test -f "$ac_file" || continue;
3613  case $ac_file in
3614    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3615    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3616       break;;
3617  esac
3618done
3619else
3620  $as_echo "$as_me: failed program was:" >&5
3621sed 's/^/| /' conftest.$ac_ext >&5
3622
3623{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625as_fn_error $? "cannot compute suffix of object files: cannot compile
3626See \`config.log' for more details" "$LINENO" 5; }
3627fi
3628rm -f conftest.$ac_cv_objext conftest.$ac_ext
3629fi
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3631$as_echo "$ac_cv_objext" >&6; }
3632OBJEXT=$ac_cv_objext
3633ac_objext=$OBJEXT
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3635$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3636if ${ac_cv_c_compiler_gnu+:} false; then :
3637  $as_echo_n "(cached) " >&6
3638else
3639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640/* end confdefs.h.  */
3641
3642int
3643main ()
3644{
3645#ifndef __GNUC__
3646       choke me
3647#endif
3648
3649  ;
3650  return 0;
3651}
3652_ACEOF
3653if ac_fn_c_try_compile "$LINENO"; then :
3654  ac_compiler_gnu=yes
3655else
3656  ac_compiler_gnu=no
3657fi
3658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659ac_cv_c_compiler_gnu=$ac_compiler_gnu
3660
3661fi
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3663$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3664if test $ac_compiler_gnu = yes; then
3665  GCC=yes
3666else
3667  GCC=
3668fi
3669ac_test_CFLAGS=${CFLAGS+set}
3670ac_save_CFLAGS=$CFLAGS
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3672$as_echo_n "checking whether $CC accepts -g... " >&6; }
3673if ${ac_cv_prog_cc_g+:} false; then :
3674  $as_echo_n "(cached) " >&6
3675else
3676  ac_save_c_werror_flag=$ac_c_werror_flag
3677   ac_c_werror_flag=yes
3678   ac_cv_prog_cc_g=no
3679   CFLAGS="-g"
3680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681/* end confdefs.h.  */
3682
3683int
3684main ()
3685{
3686
3687  ;
3688  return 0;
3689}
3690_ACEOF
3691if ac_fn_c_try_compile "$LINENO"; then :
3692  ac_cv_prog_cc_g=yes
3693else
3694  CFLAGS=""
3695      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696/* end confdefs.h.  */
3697
3698int
3699main ()
3700{
3701
3702  ;
3703  return 0;
3704}
3705_ACEOF
3706if ac_fn_c_try_compile "$LINENO"; then :
3707
3708else
3709  ac_c_werror_flag=$ac_save_c_werror_flag
3710	 CFLAGS="-g"
3711	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712/* end confdefs.h.  */
3713
3714int
3715main ()
3716{
3717
3718  ;
3719  return 0;
3720}
3721_ACEOF
3722if ac_fn_c_try_compile "$LINENO"; then :
3723  ac_cv_prog_cc_g=yes
3724fi
3725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726fi
3727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728fi
3729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730   ac_c_werror_flag=$ac_save_c_werror_flag
3731fi
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3733$as_echo "$ac_cv_prog_cc_g" >&6; }
3734if test "$ac_test_CFLAGS" = set; then
3735  CFLAGS=$ac_save_CFLAGS
3736elif test $ac_cv_prog_cc_g = yes; then
3737  if test "$GCC" = yes; then
3738    CFLAGS="-g -O2"
3739  else
3740    CFLAGS="-g"
3741  fi
3742else
3743  if test "$GCC" = yes; then
3744    CFLAGS="-O2"
3745  else
3746    CFLAGS=
3747  fi
3748fi
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3750$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3751if ${ac_cv_prog_cc_c89+:} false; then :
3752  $as_echo_n "(cached) " >&6
3753else
3754  ac_cv_prog_cc_c89=no
3755ac_save_CC=$CC
3756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757/* end confdefs.h.  */
3758#include <stdarg.h>
3759#include <stdio.h>
3760#include <sys/types.h>
3761#include <sys/stat.h>
3762/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3763struct buf { int x; };
3764FILE * (*rcsopen) (struct buf *, struct stat *, int);
3765static char *e (p, i)
3766     char **p;
3767     int i;
3768{
3769  return p[i];
3770}
3771static char *f (char * (*g) (char **, int), char **p, ...)
3772{
3773  char *s;
3774  va_list v;
3775  va_start (v,p);
3776  s = g (p, va_arg (v,int));
3777  va_end (v);
3778  return s;
3779}
3780
3781/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3782   function prototypes and stuff, but not '\xHH' hex character constants.
3783   These don't provoke an error unfortunately, instead are silently treated
3784   as 'x'.  The following induces an error, until -std is added to get
3785   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3786   array size at least.  It's necessary to write '\x00'==0 to get something
3787   that's true only with -std.  */
3788int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3789
3790/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3791   inside strings and character constants.  */
3792#define FOO(x) 'x'
3793int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3794
3795int test (int i, double x);
3796struct s1 {int (*f) (int a);};
3797struct s2 {int (*f) (double a);};
3798int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3799int argc;
3800char **argv;
3801int
3802main ()
3803{
3804return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3805  ;
3806  return 0;
3807}
3808_ACEOF
3809for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3810	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3811do
3812  CC="$ac_save_CC $ac_arg"
3813  if ac_fn_c_try_compile "$LINENO"; then :
3814  ac_cv_prog_cc_c89=$ac_arg
3815fi
3816rm -f core conftest.err conftest.$ac_objext
3817  test "x$ac_cv_prog_cc_c89" != "xno" && break
3818done
3819rm -f conftest.$ac_ext
3820CC=$ac_save_CC
3821
3822fi
3823# AC_CACHE_VAL
3824case "x$ac_cv_prog_cc_c89" in
3825  x)
3826    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3827$as_echo "none needed" >&6; } ;;
3828  xno)
3829    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3830$as_echo "unsupported" >&6; } ;;
3831  *)
3832    CC="$CC $ac_cv_prog_cc_c89"
3833    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3834$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3835esac
3836if test "x$ac_cv_prog_cc_c89" != xno; then :
3837
3838fi
3839
3840ac_ext=c
3841ac_cpp='$CPP $CPPFLAGS'
3842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3844ac_compiler_gnu=$ac_cv_c_compiler_gnu
3845
3846depcc="$CC"   am_compiler_list=
3847
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3849$as_echo_n "checking dependency style of $depcc... " >&6; }
3850if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3851  $as_echo_n "(cached) " >&6
3852else
3853  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3854  # We make a subdir and do the tests there.  Otherwise we can end up
3855  # making bogus files that we don't know about and never remove.  For
3856  # instance it was reported that on HP-UX the gcc test will end up
3857  # making a dummy file named `D' -- because `-MD' means `put the output
3858  # in D'.
3859  mkdir conftest.dir
3860  # Copy depcomp to subdir because otherwise we won't find it if we're
3861  # using a relative directory.
3862  cp "$am_depcomp" conftest.dir
3863  cd conftest.dir
3864  # We will build objects and dependencies in a subdirectory because
3865  # it helps to detect inapplicable dependency modes.  For instance
3866  # both Tru64's cc and ICC support -MD to output dependencies as a
3867  # side effect of compilation, but ICC will put the dependencies in
3868  # the current directory while Tru64 will put them in the object
3869  # directory.
3870  mkdir sub
3871
3872  am_cv_CC_dependencies_compiler_type=none
3873  if test "$am_compiler_list" = ""; then
3874     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3875  fi
3876  am__universal=false
3877  case " $depcc " in #(
3878     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3879     esac
3880
3881  for depmode in $am_compiler_list; do
3882    # Setup a source with many dependencies, because some compilers
3883    # like to wrap large dependency lists on column 80 (with \), and
3884    # we should not choose a depcomp mode which is confused by this.
3885    #
3886    # We need to recreate these files for each test, as the compiler may
3887    # overwrite some of them when testing with obscure command lines.
3888    # This happens at least with the AIX C compiler.
3889    : > sub/conftest.c
3890    for i in 1 2 3 4 5 6; do
3891      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3892      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3893      # Solaris 8's {/usr,}/bin/sh.
3894      touch sub/conftst$i.h
3895    done
3896    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3897
3898    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3899    # mode.  It turns out that the SunPro C++ compiler does not properly
3900    # handle `-M -o', and we need to detect this.  Also, some Intel
3901    # versions had trouble with output in subdirs
3902    am__obj=sub/conftest.${OBJEXT-o}
3903    am__minus_obj="-o $am__obj"
3904    case $depmode in
3905    gcc)
3906      # This depmode causes a compiler race in universal mode.
3907      test "$am__universal" = false || continue
3908      ;;
3909    nosideeffect)
3910      # after this tag, mechanisms are not by side-effect, so they'll
3911      # only be used when explicitly requested
3912      if test "x$enable_dependency_tracking" = xyes; then
3913	continue
3914      else
3915	break
3916      fi
3917      ;;
3918    msvisualcpp | msvcmsys)
3919      # This compiler won't grok `-c -o', but also, the minuso test has
3920      # not run yet.  These depmodes are late enough in the game, and
3921      # so weak that their functioning should not be impacted.
3922      am__obj=conftest.${OBJEXT-o}
3923      am__minus_obj=
3924      ;;
3925    none) break ;;
3926    esac
3927    if depmode=$depmode \
3928       source=sub/conftest.c object=$am__obj \
3929       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3930       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3931         >/dev/null 2>conftest.err &&
3932       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3933       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3934       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3935       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3936      # icc doesn't choke on unknown options, it will just issue warnings
3937      # or remarks (even with -Werror).  So we grep stderr for any message
3938      # that says an option was ignored or not supported.
3939      # When given -MP, icc 7.0 and 7.1 complain thusly:
3940      #   icc: Command line warning: ignoring option '-M'; no argument required
3941      # The diagnosis changed in icc 8.0:
3942      #   icc: Command line remark: option '-MP' not supported
3943      if (grep 'ignoring option' conftest.err ||
3944          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3945        am_cv_CC_dependencies_compiler_type=$depmode
3946        break
3947      fi
3948    fi
3949  done
3950
3951  cd ..
3952  rm -rf conftest.dir
3953else
3954  am_cv_CC_dependencies_compiler_type=none
3955fi
3956
3957fi
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3959$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3960CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3961
3962 if
3963  test "x$enable_dependency_tracking" != xno \
3964  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3965  am__fastdepCC_TRUE=
3966  am__fastdepCC_FALSE='#'
3967else
3968  am__fastdepCC_TRUE='#'
3969  am__fastdepCC_FALSE=
3970fi
3971
3972
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3974$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3975if ${ac_cv_path_SED+:} false; then :
3976  $as_echo_n "(cached) " >&6
3977else
3978            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3979     for ac_i in 1 2 3 4 5 6 7; do
3980       ac_script="$ac_script$as_nl$ac_script"
3981     done
3982     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3983     { ac_script=; unset ac_script;}
3984     if test -z "$SED"; then
3985  ac_path_SED_found=false
3986  # Loop through the user's path and test for each of PROGNAME-LIST
3987  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988for as_dir in $PATH
3989do
3990  IFS=$as_save_IFS
3991  test -z "$as_dir" && as_dir=.
3992    for ac_prog in sed gsed; do
3993    for ac_exec_ext in '' $ac_executable_extensions; do
3994      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3995      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3996# Check for GNU ac_path_SED and select it if it is found.
3997  # Check for GNU $ac_path_SED
3998case `"$ac_path_SED" --version 2>&1` in
3999*GNU*)
4000  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4001*)
4002  ac_count=0
4003  $as_echo_n 0123456789 >"conftest.in"
4004  while :
4005  do
4006    cat "conftest.in" "conftest.in" >"conftest.tmp"
4007    mv "conftest.tmp" "conftest.in"
4008    cp "conftest.in" "conftest.nl"
4009    $as_echo '' >> "conftest.nl"
4010    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4011    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4012    as_fn_arith $ac_count + 1 && ac_count=$as_val
4013    if test $ac_count -gt ${ac_path_SED_max-0}; then
4014      # Best one so far, save it but keep looking for a better one
4015      ac_cv_path_SED="$ac_path_SED"
4016      ac_path_SED_max=$ac_count
4017    fi
4018    # 10*(2^10) chars as input seems more than enough
4019    test $ac_count -gt 10 && break
4020  done
4021  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4022esac
4023
4024      $ac_path_SED_found && break 3
4025    done
4026  done
4027  done
4028IFS=$as_save_IFS
4029  if test -z "$ac_cv_path_SED"; then
4030    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4031  fi
4032else
4033  ac_cv_path_SED=$SED
4034fi
4035
4036fi
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4038$as_echo "$ac_cv_path_SED" >&6; }
4039 SED="$ac_cv_path_SED"
4040  rm -f conftest.sed
4041
4042test -z "$SED" && SED=sed
4043Xsed="$SED -e 1s/^X//"
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4056$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4057if ${ac_cv_path_GREP+:} false; then :
4058  $as_echo_n "(cached) " >&6
4059else
4060  if test -z "$GREP"; then
4061  ac_path_GREP_found=false
4062  # Loop through the user's path and test for each of PROGNAME-LIST
4063  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4065do
4066  IFS=$as_save_IFS
4067  test -z "$as_dir" && as_dir=.
4068    for ac_prog in grep ggrep; do
4069    for ac_exec_ext in '' $ac_executable_extensions; do
4070      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4071      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4072# Check for GNU ac_path_GREP and select it if it is found.
4073  # Check for GNU $ac_path_GREP
4074case `"$ac_path_GREP" --version 2>&1` in
4075*GNU*)
4076  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4077*)
4078  ac_count=0
4079  $as_echo_n 0123456789 >"conftest.in"
4080  while :
4081  do
4082    cat "conftest.in" "conftest.in" >"conftest.tmp"
4083    mv "conftest.tmp" "conftest.in"
4084    cp "conftest.in" "conftest.nl"
4085    $as_echo 'GREP' >> "conftest.nl"
4086    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4087    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4088    as_fn_arith $ac_count + 1 && ac_count=$as_val
4089    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4090      # Best one so far, save it but keep looking for a better one
4091      ac_cv_path_GREP="$ac_path_GREP"
4092      ac_path_GREP_max=$ac_count
4093    fi
4094    # 10*(2^10) chars as input seems more than enough
4095    test $ac_count -gt 10 && break
4096  done
4097  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4098esac
4099
4100      $ac_path_GREP_found && break 3
4101    done
4102  done
4103  done
4104IFS=$as_save_IFS
4105  if test -z "$ac_cv_path_GREP"; then
4106    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4107  fi
4108else
4109  ac_cv_path_GREP=$GREP
4110fi
4111
4112fi
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4114$as_echo "$ac_cv_path_GREP" >&6; }
4115 GREP="$ac_cv_path_GREP"
4116
4117
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4119$as_echo_n "checking for egrep... " >&6; }
4120if ${ac_cv_path_EGREP+:} false; then :
4121  $as_echo_n "(cached) " >&6
4122else
4123  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4124   then ac_cv_path_EGREP="$GREP -E"
4125   else
4126     if test -z "$EGREP"; then
4127  ac_path_EGREP_found=false
4128  # Loop through the user's path and test for each of PROGNAME-LIST
4129  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4131do
4132  IFS=$as_save_IFS
4133  test -z "$as_dir" && as_dir=.
4134    for ac_prog in egrep; do
4135    for ac_exec_ext in '' $ac_executable_extensions; do
4136      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4137      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4138# Check for GNU ac_path_EGREP and select it if it is found.
4139  # Check for GNU $ac_path_EGREP
4140case `"$ac_path_EGREP" --version 2>&1` in
4141*GNU*)
4142  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4143*)
4144  ac_count=0
4145  $as_echo_n 0123456789 >"conftest.in"
4146  while :
4147  do
4148    cat "conftest.in" "conftest.in" >"conftest.tmp"
4149    mv "conftest.tmp" "conftest.in"
4150    cp "conftest.in" "conftest.nl"
4151    $as_echo 'EGREP' >> "conftest.nl"
4152    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4153    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4154    as_fn_arith $ac_count + 1 && ac_count=$as_val
4155    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4156      # Best one so far, save it but keep looking for a better one
4157      ac_cv_path_EGREP="$ac_path_EGREP"
4158      ac_path_EGREP_max=$ac_count
4159    fi
4160    # 10*(2^10) chars as input seems more than enough
4161    test $ac_count -gt 10 && break
4162  done
4163  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4164esac
4165
4166      $ac_path_EGREP_found && break 3
4167    done
4168  done
4169  done
4170IFS=$as_save_IFS
4171  if test -z "$ac_cv_path_EGREP"; then
4172    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4173  fi
4174else
4175  ac_cv_path_EGREP=$EGREP
4176fi
4177
4178   fi
4179fi
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4181$as_echo "$ac_cv_path_EGREP" >&6; }
4182 EGREP="$ac_cv_path_EGREP"
4183
4184
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4186$as_echo_n "checking for fgrep... " >&6; }
4187if ${ac_cv_path_FGREP+:} false; then :
4188  $as_echo_n "(cached) " >&6
4189else
4190  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4191   then ac_cv_path_FGREP="$GREP -F"
4192   else
4193     if test -z "$FGREP"; then
4194  ac_path_FGREP_found=false
4195  # Loop through the user's path and test for each of PROGNAME-LIST
4196  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4198do
4199  IFS=$as_save_IFS
4200  test -z "$as_dir" && as_dir=.
4201    for ac_prog in fgrep; do
4202    for ac_exec_ext in '' $ac_executable_extensions; do
4203      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4204      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4205# Check for GNU ac_path_FGREP and select it if it is found.
4206  # Check for GNU $ac_path_FGREP
4207case `"$ac_path_FGREP" --version 2>&1` in
4208*GNU*)
4209  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4210*)
4211  ac_count=0
4212  $as_echo_n 0123456789 >"conftest.in"
4213  while :
4214  do
4215    cat "conftest.in" "conftest.in" >"conftest.tmp"
4216    mv "conftest.tmp" "conftest.in"
4217    cp "conftest.in" "conftest.nl"
4218    $as_echo 'FGREP' >> "conftest.nl"
4219    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4220    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4221    as_fn_arith $ac_count + 1 && ac_count=$as_val
4222    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4223      # Best one so far, save it but keep looking for a better one
4224      ac_cv_path_FGREP="$ac_path_FGREP"
4225      ac_path_FGREP_max=$ac_count
4226    fi
4227    # 10*(2^10) chars as input seems more than enough
4228    test $ac_count -gt 10 && break
4229  done
4230  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4231esac
4232
4233      $ac_path_FGREP_found && break 3
4234    done
4235  done
4236  done
4237IFS=$as_save_IFS
4238  if test -z "$ac_cv_path_FGREP"; then
4239    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4240  fi
4241else
4242  ac_cv_path_FGREP=$FGREP
4243fi
4244
4245   fi
4246fi
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4248$as_echo "$ac_cv_path_FGREP" >&6; }
4249 FGREP="$ac_cv_path_FGREP"
4250
4251
4252test -z "$GREP" && GREP=grep
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272# Check whether --with-gnu-ld was given.
4273if test "${with_gnu_ld+set}" = set; then :
4274  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4275else
4276  with_gnu_ld=no
4277fi
4278
4279ac_prog=ld
4280if test "$GCC" = yes; then
4281  # Check if gcc -print-prog-name=ld gives a path.
4282  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4283$as_echo_n "checking for ld used by $CC... " >&6; }
4284  case $host in
4285  *-*-mingw*)
4286    # gcc leaves a trailing carriage return which upsets mingw
4287    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4288  *)
4289    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4290  esac
4291  case $ac_prog in
4292    # Accept absolute paths.
4293    [\\/]* | ?:[\\/]*)
4294      re_direlt='/[^/][^/]*/\.\./'
4295      # Canonicalize the pathname of ld
4296      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4297      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4298	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4299      done
4300      test -z "$LD" && LD="$ac_prog"
4301      ;;
4302  "")
4303    # If it fails, then pretend we aren't using GCC.
4304    ac_prog=ld
4305    ;;
4306  *)
4307    # If it is relative, then search for the first ld in PATH.
4308    with_gnu_ld=unknown
4309    ;;
4310  esac
4311elif test "$with_gnu_ld" = yes; then
4312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4313$as_echo_n "checking for GNU ld... " >&6; }
4314else
4315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4316$as_echo_n "checking for non-GNU ld... " >&6; }
4317fi
4318if ${lt_cv_path_LD+:} false; then :
4319  $as_echo_n "(cached) " >&6
4320else
4321  if test -z "$LD"; then
4322  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4323  for ac_dir in $PATH; do
4324    IFS="$lt_save_ifs"
4325    test -z "$ac_dir" && ac_dir=.
4326    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4327      lt_cv_path_LD="$ac_dir/$ac_prog"
4328      # Check to see if the program is GNU ld.  I'd rather use --version,
4329      # but apparently some variants of GNU ld only accept -v.
4330      # Break only if it was the GNU/non-GNU ld that we prefer.
4331      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4332      *GNU* | *'with BFD'*)
4333	test "$with_gnu_ld" != no && break
4334	;;
4335      *)
4336	test "$with_gnu_ld" != yes && break
4337	;;
4338      esac
4339    fi
4340  done
4341  IFS="$lt_save_ifs"
4342else
4343  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4344fi
4345fi
4346
4347LD="$lt_cv_path_LD"
4348if test -n "$LD"; then
4349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4350$as_echo "$LD" >&6; }
4351else
4352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353$as_echo "no" >&6; }
4354fi
4355test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4357$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4358if ${lt_cv_prog_gnu_ld+:} false; then :
4359  $as_echo_n "(cached) " >&6
4360else
4361  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4362case `$LD -v 2>&1 </dev/null` in
4363*GNU* | *'with BFD'*)
4364  lt_cv_prog_gnu_ld=yes
4365  ;;
4366*)
4367  lt_cv_prog_gnu_ld=no
4368  ;;
4369esac
4370fi
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4372$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4373with_gnu_ld=$lt_cv_prog_gnu_ld
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4384$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4385if ${lt_cv_path_NM+:} false; then :
4386  $as_echo_n "(cached) " >&6
4387else
4388  if test -n "$NM"; then
4389  # Let the user override the test.
4390  lt_cv_path_NM="$NM"
4391else
4392  lt_nm_to_check="${ac_tool_prefix}nm"
4393  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4394    lt_nm_to_check="$lt_nm_to_check nm"
4395  fi
4396  for lt_tmp_nm in $lt_nm_to_check; do
4397    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4398    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4399      IFS="$lt_save_ifs"
4400      test -z "$ac_dir" && ac_dir=.
4401      tmp_nm="$ac_dir/$lt_tmp_nm"
4402      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4403	# Check to see if the nm accepts a BSD-compat flag.
4404	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4405	#   nm: unknown option "B" ignored
4406	# Tru64's nm complains that /dev/null is an invalid object file
4407	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4408	*/dev/null* | *'Invalid file or object type'*)
4409	  lt_cv_path_NM="$tmp_nm -B"
4410	  break
4411	  ;;
4412	*)
4413	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4414	  */dev/null*)
4415	    lt_cv_path_NM="$tmp_nm -p"
4416	    break
4417	    ;;
4418	  *)
4419	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4420	    continue # so that we can try to find one that supports BSD flags
4421	    ;;
4422	  esac
4423	  ;;
4424	esac
4425      fi
4426    done
4427    IFS="$lt_save_ifs"
4428  done
4429  : ${lt_cv_path_NM=no}
4430fi
4431fi
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4433$as_echo "$lt_cv_path_NM" >&6; }
4434if test "$lt_cv_path_NM" != "no"; then
4435  NM="$lt_cv_path_NM"
4436else
4437  # Didn't find any BSD compatible name lister, look for dumpbin.
4438  if test -n "$DUMPBIN"; then :
4439    # Let the user override the test.
4440  else
4441    if test -n "$ac_tool_prefix"; then
4442  for ac_prog in dumpbin "link -dump"
4443  do
4444    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4445set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4447$as_echo_n "checking for $ac_word... " >&6; }
4448if ${ac_cv_prog_DUMPBIN+:} false; then :
4449  $as_echo_n "(cached) " >&6
4450else
4451  if test -n "$DUMPBIN"; then
4452  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4453else
4454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455for as_dir in $PATH
4456do
4457  IFS=$as_save_IFS
4458  test -z "$as_dir" && as_dir=.
4459    for ac_exec_ext in '' $ac_executable_extensions; do
4460  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4461    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4463    break 2
4464  fi
4465done
4466  done
4467IFS=$as_save_IFS
4468
4469fi
4470fi
4471DUMPBIN=$ac_cv_prog_DUMPBIN
4472if test -n "$DUMPBIN"; then
4473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4474$as_echo "$DUMPBIN" >&6; }
4475else
4476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477$as_echo "no" >&6; }
4478fi
4479
4480
4481    test -n "$DUMPBIN" && break
4482  done
4483fi
4484if test -z "$DUMPBIN"; then
4485  ac_ct_DUMPBIN=$DUMPBIN
4486  for ac_prog in dumpbin "link -dump"
4487do
4488  # Extract the first word of "$ac_prog", so it can be a program name with args.
4489set dummy $ac_prog; ac_word=$2
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491$as_echo_n "checking for $ac_word... " >&6; }
4492if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4493  $as_echo_n "(cached) " >&6
4494else
4495  if test -n "$ac_ct_DUMPBIN"; then
4496  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4497else
4498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499for as_dir in $PATH
4500do
4501  IFS=$as_save_IFS
4502  test -z "$as_dir" && as_dir=.
4503    for ac_exec_ext in '' $ac_executable_extensions; do
4504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507    break 2
4508  fi
4509done
4510  done
4511IFS=$as_save_IFS
4512
4513fi
4514fi
4515ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4516if test -n "$ac_ct_DUMPBIN"; then
4517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4518$as_echo "$ac_ct_DUMPBIN" >&6; }
4519else
4520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521$as_echo "no" >&6; }
4522fi
4523
4524
4525  test -n "$ac_ct_DUMPBIN" && break
4526done
4527
4528  if test "x$ac_ct_DUMPBIN" = x; then
4529    DUMPBIN=":"
4530  else
4531    case $cross_compiling:$ac_tool_warned in
4532yes:)
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4535ac_tool_warned=yes ;;
4536esac
4537    DUMPBIN=$ac_ct_DUMPBIN
4538  fi
4539fi
4540
4541    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4542    *COFF*)
4543      DUMPBIN="$DUMPBIN -symbols"
4544      ;;
4545    *)
4546      DUMPBIN=:
4547      ;;
4548    esac
4549  fi
4550
4551  if test "$DUMPBIN" != ":"; then
4552    NM="$DUMPBIN"
4553  fi
4554fi
4555test -z "$NM" && NM=nm
4556
4557
4558
4559
4560
4561
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4563$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4564if ${lt_cv_nm_interface+:} false; then :
4565  $as_echo_n "(cached) " >&6
4566else
4567  lt_cv_nm_interface="BSD nm"
4568  echo "int some_variable = 0;" > conftest.$ac_ext
4569  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4570  (eval "$ac_compile" 2>conftest.err)
4571  cat conftest.err >&5
4572  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4573  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4574  cat conftest.err >&5
4575  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4576  cat conftest.out >&5
4577  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4578    lt_cv_nm_interface="MS dumpbin"
4579  fi
4580  rm -f conftest*
4581fi
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4583$as_echo "$lt_cv_nm_interface" >&6; }
4584
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4586$as_echo_n "checking whether ln -s works... " >&6; }
4587LN_S=$as_ln_s
4588if test "$LN_S" = "ln -s"; then
4589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4590$as_echo "yes" >&6; }
4591else
4592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4593$as_echo "no, using $LN_S" >&6; }
4594fi
4595
4596# find the maximum length of command line arguments
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4598$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4599if ${lt_cv_sys_max_cmd_len+:} false; then :
4600  $as_echo_n "(cached) " >&6
4601else
4602    i=0
4603  teststring="ABCD"
4604
4605  case $build_os in
4606  msdosdjgpp*)
4607    # On DJGPP, this test can blow up pretty badly due to problems in libc
4608    # (any single argument exceeding 2000 bytes causes a buffer overrun
4609    # during glob expansion).  Even if it were fixed, the result of this
4610    # check would be larger than it should be.
4611    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4612    ;;
4613
4614  gnu*)
4615    # Under GNU Hurd, this test is not required because there is
4616    # no limit to the length of command line arguments.
4617    # Libtool will interpret -1 as no limit whatsoever
4618    lt_cv_sys_max_cmd_len=-1;
4619    ;;
4620
4621  cygwin* | mingw* | cegcc*)
4622    # On Win9x/ME, this test blows up -- it succeeds, but takes
4623    # about 5 minutes as the teststring grows exponentially.
4624    # Worse, since 9x/ME are not pre-emptively multitasking,
4625    # you end up with a "frozen" computer, even though with patience
4626    # the test eventually succeeds (with a max line length of 256k).
4627    # Instead, let's just punt: use the minimum linelength reported by
4628    # all of the supported platforms: 8192 (on NT/2K/XP).
4629    lt_cv_sys_max_cmd_len=8192;
4630    ;;
4631
4632  mint*)
4633    # On MiNT this can take a long time and run out of memory.
4634    lt_cv_sys_max_cmd_len=8192;
4635    ;;
4636
4637  amigaos*)
4638    # On AmigaOS with pdksh, this test takes hours, literally.
4639    # So we just punt and use a minimum line length of 8192.
4640    lt_cv_sys_max_cmd_len=8192;
4641    ;;
4642
4643  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4644    # This has been around since 386BSD, at least.  Likely further.
4645    if test -x /sbin/sysctl; then
4646      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4647    elif test -x /usr/sbin/sysctl; then
4648      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4649    else
4650      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4651    fi
4652    # And add a safety zone
4653    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4654    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4655    ;;
4656
4657  interix*)
4658    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4659    lt_cv_sys_max_cmd_len=196608
4660    ;;
4661
4662  osf*)
4663    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4664    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4665    # nice to cause kernel panics so lets avoid the loop below.
4666    # First set a reasonable default.
4667    lt_cv_sys_max_cmd_len=16384
4668    #
4669    if test -x /sbin/sysconfig; then
4670      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4671        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4672      esac
4673    fi
4674    ;;
4675  sco3.2v5*)
4676    lt_cv_sys_max_cmd_len=102400
4677    ;;
4678  sysv5* | sco5v6* | sysv4.2uw2*)
4679    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4680    if test -n "$kargmax"; then
4681      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4682    else
4683      lt_cv_sys_max_cmd_len=32768
4684    fi
4685    ;;
4686  *)
4687    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4688    if test -n "$lt_cv_sys_max_cmd_len"; then
4689      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4690      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4691    else
4692      # Make teststring a little bigger before we do anything with it.
4693      # a 1K string should be a reasonable start.
4694      for i in 1 2 3 4 5 6 7 8 ; do
4695        teststring=$teststring$teststring
4696      done
4697      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4698      # If test is not a shell built-in, we'll probably end up computing a
4699      # maximum length that is only half of the actual maximum length, but
4700      # we can't tell.
4701      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4702	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4703	      test $i != 17 # 1/2 MB should be enough
4704      do
4705        i=`expr $i + 1`
4706        teststring=$teststring$teststring
4707      done
4708      # Only check the string length outside the loop.
4709      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4710      teststring=
4711      # Add a significant safety factor because C++ compilers can tack on
4712      # massive amounts of additional arguments before passing them to the
4713      # linker.  It appears as though 1/2 is a usable value.
4714      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4715    fi
4716    ;;
4717  esac
4718
4719fi
4720
4721if test -n $lt_cv_sys_max_cmd_len ; then
4722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4723$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4724else
4725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4726$as_echo "none" >&6; }
4727fi
4728max_cmd_len=$lt_cv_sys_max_cmd_len
4729
4730
4731
4732
4733
4734
4735: ${CP="cp -f"}
4736: ${MV="mv -f"}
4737: ${RM="rm -f"}
4738
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4740$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4741# Try some XSI features
4742xsi_shell=no
4743( _lt_dummy="a/b/c"
4744  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4745      = c,a/b,b/c, \
4746    && eval 'test $(( 1 + 1 )) -eq 2 \
4747    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4748  && xsi_shell=yes
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4750$as_echo "$xsi_shell" >&6; }
4751
4752
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4754$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4755lt_shell_append=no
4756( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4757    >/dev/null 2>&1 \
4758  && lt_shell_append=yes
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4760$as_echo "$lt_shell_append" >&6; }
4761
4762
4763if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4764  lt_unset=unset
4765else
4766  lt_unset=false
4767fi
4768
4769
4770
4771
4772
4773# test EBCDIC or ASCII
4774case `echo X|tr X '\101'` in
4775 A) # ASCII based system
4776    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4777  lt_SP2NL='tr \040 \012'
4778  lt_NL2SP='tr \015\012 \040\040'
4779  ;;
4780 *) # EBCDIC based system
4781  lt_SP2NL='tr \100 \n'
4782  lt_NL2SP='tr \r\n \100\100'
4783  ;;
4784esac
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4795$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4796if ${lt_cv_to_host_file_cmd+:} false; then :
4797  $as_echo_n "(cached) " >&6
4798else
4799  case $host in
4800  *-*-mingw* )
4801    case $build in
4802      *-*-mingw* ) # actually msys
4803        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4804        ;;
4805      *-*-cygwin* )
4806        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4807        ;;
4808      * ) # otherwise, assume *nix
4809        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4810        ;;
4811    esac
4812    ;;
4813  *-*-cygwin* )
4814    case $build in
4815      *-*-mingw* ) # actually msys
4816        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4817        ;;
4818      *-*-cygwin* )
4819        lt_cv_to_host_file_cmd=func_convert_file_noop
4820        ;;
4821      * ) # otherwise, assume *nix
4822        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4823        ;;
4824    esac
4825    ;;
4826  * ) # unhandled hosts (and "normal" native builds)
4827    lt_cv_to_host_file_cmd=func_convert_file_noop
4828    ;;
4829esac
4830
4831fi
4832
4833to_host_file_cmd=$lt_cv_to_host_file_cmd
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4835$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4836
4837
4838
4839
4840
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4842$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4843if ${lt_cv_to_tool_file_cmd+:} false; then :
4844  $as_echo_n "(cached) " >&6
4845else
4846  #assume ordinary cross tools, or native build.
4847lt_cv_to_tool_file_cmd=func_convert_file_noop
4848case $host in
4849  *-*-mingw* )
4850    case $build in
4851      *-*-mingw* ) # actually msys
4852        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4853        ;;
4854    esac
4855    ;;
4856esac
4857
4858fi
4859
4860to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4862$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4863
4864
4865
4866
4867
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4869$as_echo_n "checking for $LD option to reload object files... " >&6; }
4870if ${lt_cv_ld_reload_flag+:} false; then :
4871  $as_echo_n "(cached) " >&6
4872else
4873  lt_cv_ld_reload_flag='-r'
4874fi
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4876$as_echo "$lt_cv_ld_reload_flag" >&6; }
4877reload_flag=$lt_cv_ld_reload_flag
4878case $reload_flag in
4879"" | " "*) ;;
4880*) reload_flag=" $reload_flag" ;;
4881esac
4882reload_cmds='$LD$reload_flag -o $output$reload_objs'
4883case $host_os in
4884  cygwin* | mingw* | pw32* | cegcc*)
4885    if test "$GCC" != yes; then
4886      reload_cmds=false
4887    fi
4888    ;;
4889  darwin*)
4890    if test "$GCC" = yes; then
4891      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4892    else
4893      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4894    fi
4895    ;;
4896esac
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906if test -n "$ac_tool_prefix"; then
4907  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4908set dummy ${ac_tool_prefix}objdump; ac_word=$2
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910$as_echo_n "checking for $ac_word... " >&6; }
4911if ${ac_cv_prog_OBJDUMP+:} false; then :
4912  $as_echo_n "(cached) " >&6
4913else
4914  if test -n "$OBJDUMP"; then
4915  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4916else
4917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918for as_dir in $PATH
4919do
4920  IFS=$as_save_IFS
4921  test -z "$as_dir" && as_dir=.
4922    for ac_exec_ext in '' $ac_executable_extensions; do
4923  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926    break 2
4927  fi
4928done
4929  done
4930IFS=$as_save_IFS
4931
4932fi
4933fi
4934OBJDUMP=$ac_cv_prog_OBJDUMP
4935if test -n "$OBJDUMP"; then
4936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4937$as_echo "$OBJDUMP" >&6; }
4938else
4939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940$as_echo "no" >&6; }
4941fi
4942
4943
4944fi
4945if test -z "$ac_cv_prog_OBJDUMP"; then
4946  ac_ct_OBJDUMP=$OBJDUMP
4947  # Extract the first word of "objdump", so it can be a program name with args.
4948set dummy objdump; ac_word=$2
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950$as_echo_n "checking for $ac_word... " >&6; }
4951if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4952  $as_echo_n "(cached) " >&6
4953else
4954  if test -n "$ac_ct_OBJDUMP"; then
4955  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4956else
4957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958for as_dir in $PATH
4959do
4960  IFS=$as_save_IFS
4961  test -z "$as_dir" && as_dir=.
4962    for ac_exec_ext in '' $ac_executable_extensions; do
4963  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4964    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966    break 2
4967  fi
4968done
4969  done
4970IFS=$as_save_IFS
4971
4972fi
4973fi
4974ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4975if test -n "$ac_ct_OBJDUMP"; then
4976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4977$as_echo "$ac_ct_OBJDUMP" >&6; }
4978else
4979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980$as_echo "no" >&6; }
4981fi
4982
4983  if test "x$ac_ct_OBJDUMP" = x; then
4984    OBJDUMP="false"
4985  else
4986    case $cross_compiling:$ac_tool_warned in
4987yes:)
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4990ac_tool_warned=yes ;;
4991esac
4992    OBJDUMP=$ac_ct_OBJDUMP
4993  fi
4994else
4995  OBJDUMP="$ac_cv_prog_OBJDUMP"
4996fi
4997
4998test -z "$OBJDUMP" && OBJDUMP=objdump
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5009$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5010if ${lt_cv_deplibs_check_method+:} false; then :
5011  $as_echo_n "(cached) " >&6
5012else
5013  lt_cv_file_magic_cmd='$MAGIC_CMD'
5014lt_cv_file_magic_test_file=
5015lt_cv_deplibs_check_method='unknown'
5016# Need to set the preceding variable on all platforms that support
5017# interlibrary dependencies.
5018# 'none' -- dependencies not supported.
5019# `unknown' -- same as none, but documents that we really don't know.
5020# 'pass_all' -- all dependencies passed with no checks.
5021# 'test_compile' -- check by making test program.
5022# 'file_magic [[regex]]' -- check by looking for files in library path
5023# which responds to the $file_magic_cmd with a given extended regex.
5024# If you have `file' or equivalent on your system and you're not sure
5025# whether `pass_all' will *always* work, you probably want this one.
5026
5027case $host_os in
5028aix[4-9]*)
5029  lt_cv_deplibs_check_method=pass_all
5030  ;;
5031
5032beos*)
5033  lt_cv_deplibs_check_method=pass_all
5034  ;;
5035
5036bsdi[45]*)
5037  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5038  lt_cv_file_magic_cmd='/usr/bin/file -L'
5039  lt_cv_file_magic_test_file=/shlib/libc.so
5040  ;;
5041
5042cygwin*)
5043  # func_win32_libid is a shell function defined in ltmain.sh
5044  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5045  lt_cv_file_magic_cmd='func_win32_libid'
5046  ;;
5047
5048mingw* | pw32*)
5049  # Base MSYS/MinGW do not provide the 'file' command needed by
5050  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5051  # unless we find 'file', for example because we are cross-compiling.
5052  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5053  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5054    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5055    lt_cv_file_magic_cmd='func_win32_libid'
5056  else
5057    # Keep this pattern in sync with the one in func_win32_libid.
5058    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5059    lt_cv_file_magic_cmd='$OBJDUMP -f'
5060  fi
5061  ;;
5062
5063cegcc*)
5064  # use the weaker test based on 'objdump'. See mingw*.
5065  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5066  lt_cv_file_magic_cmd='$OBJDUMP -f'
5067  ;;
5068
5069darwin* | rhapsody*)
5070  lt_cv_deplibs_check_method=pass_all
5071  ;;
5072
5073freebsd* | dragonfly*)
5074  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5075    case $host_cpu in
5076    i*86 )
5077      # Not sure whether the presence of OpenBSD here was a mistake.
5078      # Let's accept both of them until this is cleared up.
5079      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5080      lt_cv_file_magic_cmd=/usr/bin/file
5081      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5082      ;;
5083    esac
5084  else
5085    lt_cv_deplibs_check_method=pass_all
5086  fi
5087  ;;
5088
5089gnu*)
5090  lt_cv_deplibs_check_method=pass_all
5091  ;;
5092
5093haiku*)
5094  lt_cv_deplibs_check_method=pass_all
5095  ;;
5096
5097hpux10.20* | hpux11*)
5098  lt_cv_file_magic_cmd=/usr/bin/file
5099  case $host_cpu in
5100  ia64*)
5101    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5102    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5103    ;;
5104  hppa*64*)
5105    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5106    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5107    ;;
5108  *)
5109    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5110    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5111    ;;
5112  esac
5113  ;;
5114
5115interix[3-9]*)
5116  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5117  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5118  ;;
5119
5120irix5* | irix6* | nonstopux*)
5121  case $LD in
5122  *-32|*"-32 ") libmagic=32-bit;;
5123  *-n32|*"-n32 ") libmagic=N32;;
5124  *-64|*"-64 ") libmagic=64-bit;;
5125  *) libmagic=never-match;;
5126  esac
5127  lt_cv_deplibs_check_method=pass_all
5128  ;;
5129
5130# This must be Linux ELF.
5131linux* | k*bsd*-gnu | kopensolaris*-gnu)
5132  lt_cv_deplibs_check_method=pass_all
5133  ;;
5134
5135netbsd*)
5136  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5137    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5138  else
5139    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5140  fi
5141  ;;
5142
5143newos6*)
5144  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5145  lt_cv_file_magic_cmd=/usr/bin/file
5146  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5147  ;;
5148
5149*nto* | *qnx*)
5150  lt_cv_deplibs_check_method=pass_all
5151  ;;
5152
5153openbsd*)
5154  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5155    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5156  else
5157    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5158  fi
5159  ;;
5160
5161osf3* | osf4* | osf5*)
5162  lt_cv_deplibs_check_method=pass_all
5163  ;;
5164
5165rdos*)
5166  lt_cv_deplibs_check_method=pass_all
5167  ;;
5168
5169solaris*)
5170  lt_cv_deplibs_check_method=pass_all
5171  ;;
5172
5173sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5174  lt_cv_deplibs_check_method=pass_all
5175  ;;
5176
5177sysv4 | sysv4.3*)
5178  case $host_vendor in
5179  motorola)
5180    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]'
5181    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5182    ;;
5183  ncr)
5184    lt_cv_deplibs_check_method=pass_all
5185    ;;
5186  sequent)
5187    lt_cv_file_magic_cmd='/bin/file'
5188    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5189    ;;
5190  sni)
5191    lt_cv_file_magic_cmd='/bin/file'
5192    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5193    lt_cv_file_magic_test_file=/lib/libc.so
5194    ;;
5195  siemens)
5196    lt_cv_deplibs_check_method=pass_all
5197    ;;
5198  pc)
5199    lt_cv_deplibs_check_method=pass_all
5200    ;;
5201  esac
5202  ;;
5203
5204tpf*)
5205  lt_cv_deplibs_check_method=pass_all
5206  ;;
5207esac
5208
5209fi
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5211$as_echo "$lt_cv_deplibs_check_method" >&6; }
5212
5213file_magic_glob=
5214want_nocaseglob=no
5215if test "$build" = "$host"; then
5216  case $host_os in
5217  mingw* | pw32*)
5218    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5219      want_nocaseglob=yes
5220    else
5221      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5222    fi
5223    ;;
5224  esac
5225fi
5226
5227file_magic_cmd=$lt_cv_file_magic_cmd
5228deplibs_check_method=$lt_cv_deplibs_check_method
5229test -z "$deplibs_check_method" && deplibs_check_method=unknown
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252if test -n "$ac_tool_prefix"; then
5253  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5254set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256$as_echo_n "checking for $ac_word... " >&6; }
5257if ${ac_cv_prog_DLLTOOL+:} false; then :
5258  $as_echo_n "(cached) " >&6
5259else
5260  if test -n "$DLLTOOL"; then
5261  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5262else
5263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264for as_dir in $PATH
5265do
5266  IFS=$as_save_IFS
5267  test -z "$as_dir" && as_dir=.
5268    for ac_exec_ext in '' $ac_executable_extensions; do
5269  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5270    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272    break 2
5273  fi
5274done
5275  done
5276IFS=$as_save_IFS
5277
5278fi
5279fi
5280DLLTOOL=$ac_cv_prog_DLLTOOL
5281if test -n "$DLLTOOL"; then
5282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5283$as_echo "$DLLTOOL" >&6; }
5284else
5285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286$as_echo "no" >&6; }
5287fi
5288
5289
5290fi
5291if test -z "$ac_cv_prog_DLLTOOL"; then
5292  ac_ct_DLLTOOL=$DLLTOOL
5293  # Extract the first word of "dlltool", so it can be a program name with args.
5294set dummy dlltool; ac_word=$2
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296$as_echo_n "checking for $ac_word... " >&6; }
5297if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5298  $as_echo_n "(cached) " >&6
5299else
5300  if test -n "$ac_ct_DLLTOOL"; then
5301  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5302else
5303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304for as_dir in $PATH
5305do
5306  IFS=$as_save_IFS
5307  test -z "$as_dir" && as_dir=.
5308    for ac_exec_ext in '' $ac_executable_extensions; do
5309  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312    break 2
5313  fi
5314done
5315  done
5316IFS=$as_save_IFS
5317
5318fi
5319fi
5320ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5321if test -n "$ac_ct_DLLTOOL"; then
5322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5323$as_echo "$ac_ct_DLLTOOL" >&6; }
5324else
5325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326$as_echo "no" >&6; }
5327fi
5328
5329  if test "x$ac_ct_DLLTOOL" = x; then
5330    DLLTOOL="false"
5331  else
5332    case $cross_compiling:$ac_tool_warned in
5333yes:)
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5336ac_tool_warned=yes ;;
5337esac
5338    DLLTOOL=$ac_ct_DLLTOOL
5339  fi
5340else
5341  DLLTOOL="$ac_cv_prog_DLLTOOL"
5342fi
5343
5344test -z "$DLLTOOL" && DLLTOOL=dlltool
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5356$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5357if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5358  $as_echo_n "(cached) " >&6
5359else
5360  lt_cv_sharedlib_from_linklib_cmd='unknown'
5361
5362case $host_os in
5363cygwin* | mingw* | pw32* | cegcc*)
5364  # two different shell functions defined in ltmain.sh
5365  # decide which to use based on capabilities of $DLLTOOL
5366  case `$DLLTOOL --help 2>&1` in
5367  *--identify-strict*)
5368    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5369    ;;
5370  *)
5371    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5372    ;;
5373  esac
5374  ;;
5375*)
5376  # fallback: assume linklib IS sharedlib
5377  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5378  ;;
5379esac
5380
5381fi
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5383$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5384sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5385test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5386
5387
5388
5389
5390
5391
5392
5393
5394if test -n "$ac_tool_prefix"; then
5395  for ac_prog in ar
5396  do
5397    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5398set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400$as_echo_n "checking for $ac_word... " >&6; }
5401if ${ac_cv_prog_AR+:} false; then :
5402  $as_echo_n "(cached) " >&6
5403else
5404  if test -n "$AR"; then
5405  ac_cv_prog_AR="$AR" # Let the user override the test.
5406else
5407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408for as_dir in $PATH
5409do
5410  IFS=$as_save_IFS
5411  test -z "$as_dir" && as_dir=.
5412    for ac_exec_ext in '' $ac_executable_extensions; do
5413  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416    break 2
5417  fi
5418done
5419  done
5420IFS=$as_save_IFS
5421
5422fi
5423fi
5424AR=$ac_cv_prog_AR
5425if test -n "$AR"; then
5426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5427$as_echo "$AR" >&6; }
5428else
5429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430$as_echo "no" >&6; }
5431fi
5432
5433
5434    test -n "$AR" && break
5435  done
5436fi
5437if test -z "$AR"; then
5438  ac_ct_AR=$AR
5439  for ac_prog in ar
5440do
5441  # Extract the first word of "$ac_prog", so it can be a program name with args.
5442set dummy $ac_prog; ac_word=$2
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444$as_echo_n "checking for $ac_word... " >&6; }
5445if ${ac_cv_prog_ac_ct_AR+:} false; then :
5446  $as_echo_n "(cached) " >&6
5447else
5448  if test -n "$ac_ct_AR"; then
5449  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5450else
5451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452for as_dir in $PATH
5453do
5454  IFS=$as_save_IFS
5455  test -z "$as_dir" && as_dir=.
5456    for ac_exec_ext in '' $ac_executable_extensions; do
5457  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458    ac_cv_prog_ac_ct_AR="$ac_prog"
5459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460    break 2
5461  fi
5462done
5463  done
5464IFS=$as_save_IFS
5465
5466fi
5467fi
5468ac_ct_AR=$ac_cv_prog_ac_ct_AR
5469if test -n "$ac_ct_AR"; then
5470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5471$as_echo "$ac_ct_AR" >&6; }
5472else
5473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474$as_echo "no" >&6; }
5475fi
5476
5477
5478  test -n "$ac_ct_AR" && break
5479done
5480
5481  if test "x$ac_ct_AR" = x; then
5482    AR="false"
5483  else
5484    case $cross_compiling:$ac_tool_warned in
5485yes:)
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5488ac_tool_warned=yes ;;
5489esac
5490    AR=$ac_ct_AR
5491  fi
5492fi
5493
5494: ${AR=ar}
5495: ${AR_FLAGS=cru}
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5508$as_echo_n "checking for archiver @FILE support... " >&6; }
5509if ${lt_cv_ar_at_file+:} false; then :
5510  $as_echo_n "(cached) " >&6
5511else
5512  lt_cv_ar_at_file=no
5513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514/* end confdefs.h.  */
5515
5516int
5517main ()
5518{
5519
5520  ;
5521  return 0;
5522}
5523_ACEOF
5524if ac_fn_c_try_compile "$LINENO"; then :
5525  echo conftest.$ac_objext > conftest.lst
5526      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5527      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5528  (eval $lt_ar_try) 2>&5
5529  ac_status=$?
5530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5531  test $ac_status = 0; }
5532      if test "$ac_status" -eq 0; then
5533	# Ensure the archiver fails upon bogus file names.
5534	rm -f conftest.$ac_objext libconftest.a
5535	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5536  (eval $lt_ar_try) 2>&5
5537  ac_status=$?
5538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5539  test $ac_status = 0; }
5540	if test "$ac_status" -ne 0; then
5541          lt_cv_ar_at_file=@
5542        fi
5543      fi
5544      rm -f conftest.* libconftest.a
5545
5546fi
5547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548
5549fi
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5551$as_echo "$lt_cv_ar_at_file" >&6; }
5552
5553if test "x$lt_cv_ar_at_file" = xno; then
5554  archiver_list_spec=
5555else
5556  archiver_list_spec=$lt_cv_ar_at_file
5557fi
5558
5559
5560
5561
5562
5563
5564
5565if test -n "$ac_tool_prefix"; then
5566  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5567set dummy ${ac_tool_prefix}strip; ac_word=$2
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569$as_echo_n "checking for $ac_word... " >&6; }
5570if ${ac_cv_prog_STRIP+:} false; then :
5571  $as_echo_n "(cached) " >&6
5572else
5573  if test -n "$STRIP"; then
5574  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5575else
5576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577for as_dir in $PATH
5578do
5579  IFS=$as_save_IFS
5580  test -z "$as_dir" && as_dir=.
5581    for ac_exec_ext in '' $ac_executable_extensions; do
5582  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5583    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585    break 2
5586  fi
5587done
5588  done
5589IFS=$as_save_IFS
5590
5591fi
5592fi
5593STRIP=$ac_cv_prog_STRIP
5594if test -n "$STRIP"; then
5595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5596$as_echo "$STRIP" >&6; }
5597else
5598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599$as_echo "no" >&6; }
5600fi
5601
5602
5603fi
5604if test -z "$ac_cv_prog_STRIP"; then
5605  ac_ct_STRIP=$STRIP
5606  # Extract the first word of "strip", so it can be a program name with args.
5607set dummy strip; ac_word=$2
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609$as_echo_n "checking for $ac_word... " >&6; }
5610if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5611  $as_echo_n "(cached) " >&6
5612else
5613  if test -n "$ac_ct_STRIP"; then
5614  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5615else
5616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617for as_dir in $PATH
5618do
5619  IFS=$as_save_IFS
5620  test -z "$as_dir" && as_dir=.
5621    for ac_exec_ext in '' $ac_executable_extensions; do
5622  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5623    ac_cv_prog_ac_ct_STRIP="strip"
5624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625    break 2
5626  fi
5627done
5628  done
5629IFS=$as_save_IFS
5630
5631fi
5632fi
5633ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5634if test -n "$ac_ct_STRIP"; then
5635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5636$as_echo "$ac_ct_STRIP" >&6; }
5637else
5638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639$as_echo "no" >&6; }
5640fi
5641
5642  if test "x$ac_ct_STRIP" = x; then
5643    STRIP=":"
5644  else
5645    case $cross_compiling:$ac_tool_warned in
5646yes:)
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5649ac_tool_warned=yes ;;
5650esac
5651    STRIP=$ac_ct_STRIP
5652  fi
5653else
5654  STRIP="$ac_cv_prog_STRIP"
5655fi
5656
5657test -z "$STRIP" && STRIP=:
5658
5659
5660
5661
5662
5663
5664if test -n "$ac_tool_prefix"; then
5665  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5666set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5668$as_echo_n "checking for $ac_word... " >&6; }
5669if ${ac_cv_prog_RANLIB+:} false; then :
5670  $as_echo_n "(cached) " >&6
5671else
5672  if test -n "$RANLIB"; then
5673  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5674else
5675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676for as_dir in $PATH
5677do
5678  IFS=$as_save_IFS
5679  test -z "$as_dir" && as_dir=.
5680    for ac_exec_ext in '' $ac_executable_extensions; do
5681  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5682    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5684    break 2
5685  fi
5686done
5687  done
5688IFS=$as_save_IFS
5689
5690fi
5691fi
5692RANLIB=$ac_cv_prog_RANLIB
5693if test -n "$RANLIB"; then
5694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5695$as_echo "$RANLIB" >&6; }
5696else
5697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698$as_echo "no" >&6; }
5699fi
5700
5701
5702fi
5703if test -z "$ac_cv_prog_RANLIB"; then
5704  ac_ct_RANLIB=$RANLIB
5705  # Extract the first word of "ranlib", so it can be a program name with args.
5706set dummy ranlib; ac_word=$2
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708$as_echo_n "checking for $ac_word... " >&6; }
5709if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5710  $as_echo_n "(cached) " >&6
5711else
5712  if test -n "$ac_ct_RANLIB"; then
5713  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5714else
5715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716for as_dir in $PATH
5717do
5718  IFS=$as_save_IFS
5719  test -z "$as_dir" && as_dir=.
5720    for ac_exec_ext in '' $ac_executable_extensions; do
5721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5722    ac_cv_prog_ac_ct_RANLIB="ranlib"
5723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724    break 2
5725  fi
5726done
5727  done
5728IFS=$as_save_IFS
5729
5730fi
5731fi
5732ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5733if test -n "$ac_ct_RANLIB"; then
5734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5735$as_echo "$ac_ct_RANLIB" >&6; }
5736else
5737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738$as_echo "no" >&6; }
5739fi
5740
5741  if test "x$ac_ct_RANLIB" = x; then
5742    RANLIB=":"
5743  else
5744    case $cross_compiling:$ac_tool_warned in
5745yes:)
5746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5748ac_tool_warned=yes ;;
5749esac
5750    RANLIB=$ac_ct_RANLIB
5751  fi
5752else
5753  RANLIB="$ac_cv_prog_RANLIB"
5754fi
5755
5756test -z "$RANLIB" && RANLIB=:
5757
5758
5759
5760
5761
5762
5763# Determine commands to create old-style static archives.
5764old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5765old_postinstall_cmds='chmod 644 $oldlib'
5766old_postuninstall_cmds=
5767
5768if test -n "$RANLIB"; then
5769  case $host_os in
5770  openbsd*)
5771    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5772    ;;
5773  *)
5774    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5775    ;;
5776  esac
5777  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5778fi
5779
5780case $host_os in
5781  darwin*)
5782    lock_old_archive_extraction=yes ;;
5783  *)
5784    lock_old_archive_extraction=no ;;
5785esac
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825# If no C compiler was specified, use CC.
5826LTCC=${LTCC-"$CC"}
5827
5828# If no C compiler flags were specified, use CFLAGS.
5829LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5830
5831# Allow CC to be a program name with arguments.
5832compiler=$CC
5833
5834
5835# Check for command to grab the raw symbol name followed by C symbol from nm.
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5837$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5838if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5839  $as_echo_n "(cached) " >&6
5840else
5841
5842# These are sane defaults that work on at least a few old systems.
5843# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5844
5845# Character class describing NM global symbol codes.
5846symcode='[BCDEGRST]'
5847
5848# Regexp to match symbols that can be accessed directly from C.
5849sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5850
5851# Define system-specific variables.
5852case $host_os in
5853aix*)
5854  symcode='[BCDT]'
5855  ;;
5856cygwin* | mingw* | pw32* | cegcc*)
5857  symcode='[ABCDGISTW]'
5858  ;;
5859hpux*)
5860  if test "$host_cpu" = ia64; then
5861    symcode='[ABCDEGRST]'
5862  fi
5863  ;;
5864irix* | nonstopux*)
5865  symcode='[BCDEGRST]'
5866  ;;
5867osf*)
5868  symcode='[BCDEGQRST]'
5869  ;;
5870solaris*)
5871  symcode='[BDRT]'
5872  ;;
5873sco3.2v5*)
5874  symcode='[DT]'
5875  ;;
5876sysv4.2uw2*)
5877  symcode='[DT]'
5878  ;;
5879sysv5* | sco5v6* | unixware* | OpenUNIX*)
5880  symcode='[ABDT]'
5881  ;;
5882sysv4)
5883  symcode='[DFNSTU]'
5884  ;;
5885esac
5886
5887# If we're using GNU nm, then use its standard symbol codes.
5888case `$NM -V 2>&1` in
5889*GNU* | *'with BFD'*)
5890  symcode='[ABCDGIRSTW]' ;;
5891esac
5892
5893# Transform an extracted symbol line into a proper C declaration.
5894# Some systems (esp. on ia64) link data and code symbols differently,
5895# so use this general approach.
5896lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5897
5898# Transform an extracted symbol line into symbol name and symbol address
5899lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5900lt_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'"
5901
5902# Handle CRLF in mingw tool chain
5903opt_cr=
5904case $build_os in
5905mingw*)
5906  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5907  ;;
5908esac
5909
5910# Try without a prefix underscore, then with it.
5911for ac_symprfx in "" "_"; do
5912
5913  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5914  symxfrm="\\1 $ac_symprfx\\2 \\2"
5915
5916  # Write the raw and C identifiers.
5917  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5918    # Fake it for dumpbin and say T for any non-static function
5919    # and D for any global variable.
5920    # Also find C++ and __fastcall symbols from MSVC++,
5921    # which start with @ or ?.
5922    lt_cv_sys_global_symbol_pipe="$AWK '"\
5923"     {last_section=section; section=\$ 3};"\
5924"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5925"     \$ 0!~/External *\|/{next};"\
5926"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5927"     {if(hide[section]) next};"\
5928"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5929"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5930"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5931"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5932"     ' prfx=^$ac_symprfx"
5933  else
5934    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5935  fi
5936  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5937
5938  # Check to see that the pipe works correctly.
5939  pipe_works=no
5940
5941  rm -f conftest*
5942  cat > conftest.$ac_ext <<_LT_EOF
5943#ifdef __cplusplus
5944extern "C" {
5945#endif
5946char nm_test_var;
5947void nm_test_func(void);
5948void nm_test_func(void){}
5949#ifdef __cplusplus
5950}
5951#endif
5952int main(){nm_test_var='a';nm_test_func();return(0);}
5953_LT_EOF
5954
5955  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5956  (eval $ac_compile) 2>&5
5957  ac_status=$?
5958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5959  test $ac_status = 0; }; then
5960    # Now try to grab the symbols.
5961    nlist=conftest.nm
5962    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5963  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5964  ac_status=$?
5965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5966  test $ac_status = 0; } && test -s "$nlist"; then
5967      # Try sorting and uniquifying the output.
5968      if sort "$nlist" | uniq > "$nlist"T; then
5969	mv -f "$nlist"T "$nlist"
5970      else
5971	rm -f "$nlist"T
5972      fi
5973
5974      # Make sure that we snagged all the symbols we need.
5975      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5976	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5977	  cat <<_LT_EOF > conftest.$ac_ext
5978/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5979#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5980/* DATA imports from DLLs on WIN32 con't be const, because runtime
5981   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5982# define LT_DLSYM_CONST
5983#elif defined(__osf__)
5984/* This system does not cope well with relocations in const data.  */
5985# define LT_DLSYM_CONST
5986#else
5987# define LT_DLSYM_CONST const
5988#endif
5989
5990#ifdef __cplusplus
5991extern "C" {
5992#endif
5993
5994_LT_EOF
5995	  # Now generate the symbol file.
5996	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5997
5998	  cat <<_LT_EOF >> conftest.$ac_ext
5999
6000/* The mapping between symbol names and symbols.  */
6001LT_DLSYM_CONST struct {
6002  const char *name;
6003  void       *address;
6004}
6005lt__PROGRAM__LTX_preloaded_symbols[] =
6006{
6007  { "@PROGRAM@", (void *) 0 },
6008_LT_EOF
6009	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6010	  cat <<\_LT_EOF >> conftest.$ac_ext
6011  {0, (void *) 0}
6012};
6013
6014/* This works around a problem in FreeBSD linker */
6015#ifdef FREEBSD_WORKAROUND
6016static const void *lt_preloaded_setup() {
6017  return lt__PROGRAM__LTX_preloaded_symbols;
6018}
6019#endif
6020
6021#ifdef __cplusplus
6022}
6023#endif
6024_LT_EOF
6025	  # Now try linking the two files.
6026	  mv conftest.$ac_objext conftstm.$ac_objext
6027	  lt_globsym_save_LIBS=$LIBS
6028	  lt_globsym_save_CFLAGS=$CFLAGS
6029	  LIBS="conftstm.$ac_objext"
6030	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6031	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6032  (eval $ac_link) 2>&5
6033  ac_status=$?
6034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6035  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6036	    pipe_works=yes
6037	  fi
6038	  LIBS=$lt_globsym_save_LIBS
6039	  CFLAGS=$lt_globsym_save_CFLAGS
6040	else
6041	  echo "cannot find nm_test_func in $nlist" >&5
6042	fi
6043      else
6044	echo "cannot find nm_test_var in $nlist" >&5
6045      fi
6046    else
6047      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6048    fi
6049  else
6050    echo "$progname: failed program was:" >&5
6051    cat conftest.$ac_ext >&5
6052  fi
6053  rm -rf conftest* conftst*
6054
6055  # Do not use the global_symbol_pipe unless it works.
6056  if test "$pipe_works" = yes; then
6057    break
6058  else
6059    lt_cv_sys_global_symbol_pipe=
6060  fi
6061done
6062
6063fi
6064
6065if test -z "$lt_cv_sys_global_symbol_pipe"; then
6066  lt_cv_sys_global_symbol_to_cdecl=
6067fi
6068if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6070$as_echo "failed" >&6; }
6071else
6072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6073$as_echo "ok" >&6; }
6074fi
6075
6076# Response file support.
6077if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6078  nm_file_list_spec='@'
6079elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6080  nm_file_list_spec='@'
6081fi
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6110$as_echo_n "checking for sysroot... " >&6; }
6111
6112# Check whether --with-sysroot was given.
6113if test "${with_sysroot+set}" = set; then :
6114  withval=$with_sysroot;
6115else
6116  with_sysroot=no
6117fi
6118
6119
6120lt_sysroot=
6121case ${with_sysroot} in #(
6122 yes)
6123   if test "$GCC" = yes; then
6124     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6125   fi
6126   ;; #(
6127 /*)
6128   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6129   ;; #(
6130 no|'')
6131   ;; #(
6132 *)
6133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6134$as_echo "${with_sysroot}" >&6; }
6135   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6136   ;;
6137esac
6138
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6140$as_echo "${lt_sysroot:-no}" >&6; }
6141
6142
6143
6144
6145
6146# Check whether --enable-libtool-lock was given.
6147if test "${enable_libtool_lock+set}" = set; then :
6148  enableval=$enable_libtool_lock;
6149fi
6150
6151test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6152
6153# Some flags need to be propagated to the compiler or linker for good
6154# libtool support.
6155case $host in
6156ia64-*-hpux*)
6157  # Find out which ABI we are using.
6158  echo 'int i;' > conftest.$ac_ext
6159  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6160  (eval $ac_compile) 2>&5
6161  ac_status=$?
6162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6163  test $ac_status = 0; }; then
6164    case `/usr/bin/file conftest.$ac_objext` in
6165      *ELF-32*)
6166	HPUX_IA64_MODE="32"
6167	;;
6168      *ELF-64*)
6169	HPUX_IA64_MODE="64"
6170	;;
6171    esac
6172  fi
6173  rm -rf conftest*
6174  ;;
6175*-*-irix6*)
6176  # Find out which ABI we are using.
6177  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6178  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6179  (eval $ac_compile) 2>&5
6180  ac_status=$?
6181  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6182  test $ac_status = 0; }; then
6183    if test "$lt_cv_prog_gnu_ld" = yes; then
6184      case `/usr/bin/file conftest.$ac_objext` in
6185	*32-bit*)
6186	  LD="${LD-ld} -melf32bsmip"
6187	  ;;
6188	*N32*)
6189	  LD="${LD-ld} -melf32bmipn32"
6190	  ;;
6191	*64-bit*)
6192	  LD="${LD-ld} -melf64bmip"
6193	;;
6194      esac
6195    else
6196      case `/usr/bin/file conftest.$ac_objext` in
6197	*32-bit*)
6198	  LD="${LD-ld} -32"
6199	  ;;
6200	*N32*)
6201	  LD="${LD-ld} -n32"
6202	  ;;
6203	*64-bit*)
6204	  LD="${LD-ld} -64"
6205	  ;;
6206      esac
6207    fi
6208  fi
6209  rm -rf conftest*
6210  ;;
6211
6212x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6213s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6214  # Find out which ABI we are using.
6215  echo 'int i;' > conftest.$ac_ext
6216  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6217  (eval $ac_compile) 2>&5
6218  ac_status=$?
6219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6220  test $ac_status = 0; }; then
6221    case `/usr/bin/file conftest.o` in
6222      *32-bit*)
6223	case $host in
6224	  x86_64-*kfreebsd*-gnu)
6225	    LD="${LD-ld} -m elf_i386_fbsd"
6226	    ;;
6227	  x86_64-*linux*)
6228	    LD="${LD-ld} -m elf_i386"
6229	    ;;
6230	  ppc64-*linux*|powerpc64-*linux*)
6231	    LD="${LD-ld} -m elf32ppclinux"
6232	    ;;
6233	  s390x-*linux*)
6234	    LD="${LD-ld} -m elf_s390"
6235	    ;;
6236	  sparc64-*linux*)
6237	    LD="${LD-ld} -m elf32_sparc"
6238	    ;;
6239	esac
6240	;;
6241      *64-bit*)
6242	case $host in
6243	  x86_64-*kfreebsd*-gnu)
6244	    LD="${LD-ld} -m elf_x86_64_fbsd"
6245	    ;;
6246	  x86_64-*linux*)
6247	    LD="${LD-ld} -m elf_x86_64"
6248	    ;;
6249	  ppc*-*linux*|powerpc*-*linux*)
6250	    LD="${LD-ld} -m elf64ppc"
6251	    ;;
6252	  s390*-*linux*|s390*-*tpf*)
6253	    LD="${LD-ld} -m elf64_s390"
6254	    ;;
6255	  sparc*-*linux*)
6256	    LD="${LD-ld} -m elf64_sparc"
6257	    ;;
6258	esac
6259	;;
6260    esac
6261  fi
6262  rm -rf conftest*
6263  ;;
6264
6265*-*-sco3.2v5*)
6266  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6267  SAVE_CFLAGS="$CFLAGS"
6268  CFLAGS="$CFLAGS -belf"
6269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6270$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6271if ${lt_cv_cc_needs_belf+:} false; then :
6272  $as_echo_n "(cached) " >&6
6273else
6274  ac_ext=c
6275ac_cpp='$CPP $CPPFLAGS'
6276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6278ac_compiler_gnu=$ac_cv_c_compiler_gnu
6279
6280     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281/* end confdefs.h.  */
6282
6283int
6284main ()
6285{
6286
6287  ;
6288  return 0;
6289}
6290_ACEOF
6291if ac_fn_c_try_link "$LINENO"; then :
6292  lt_cv_cc_needs_belf=yes
6293else
6294  lt_cv_cc_needs_belf=no
6295fi
6296rm -f core conftest.err conftest.$ac_objext \
6297    conftest$ac_exeext conftest.$ac_ext
6298     ac_ext=c
6299ac_cpp='$CPP $CPPFLAGS'
6300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6302ac_compiler_gnu=$ac_cv_c_compiler_gnu
6303
6304fi
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6306$as_echo "$lt_cv_cc_needs_belf" >&6; }
6307  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6308    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6309    CFLAGS="$SAVE_CFLAGS"
6310  fi
6311  ;;
6312sparc*-*solaris*)
6313  # Find out which ABI we are using.
6314  echo 'int i;' > conftest.$ac_ext
6315  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6316  (eval $ac_compile) 2>&5
6317  ac_status=$?
6318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6319  test $ac_status = 0; }; then
6320    case `/usr/bin/file conftest.o` in
6321    *64-bit*)
6322      case $lt_cv_prog_gnu_ld in
6323      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6324      *)
6325	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6326	  LD="${LD-ld} -64"
6327	fi
6328	;;
6329      esac
6330      ;;
6331    esac
6332  fi
6333  rm -rf conftest*
6334  ;;
6335esac
6336
6337need_locks="$enable_libtool_lock"
6338
6339if test -n "$ac_tool_prefix"; then
6340  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6341set dummy ${ac_tool_prefix}mt; ac_word=$2
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343$as_echo_n "checking for $ac_word... " >&6; }
6344if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6345  $as_echo_n "(cached) " >&6
6346else
6347  if test -n "$MANIFEST_TOOL"; then
6348  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6349else
6350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351for as_dir in $PATH
6352do
6353  IFS=$as_save_IFS
6354  test -z "$as_dir" && as_dir=.
6355    for ac_exec_ext in '' $ac_executable_extensions; do
6356  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6357    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359    break 2
6360  fi
6361done
6362  done
6363IFS=$as_save_IFS
6364
6365fi
6366fi
6367MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6368if test -n "$MANIFEST_TOOL"; then
6369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6370$as_echo "$MANIFEST_TOOL" >&6; }
6371else
6372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373$as_echo "no" >&6; }
6374fi
6375
6376
6377fi
6378if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6379  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6380  # Extract the first word of "mt", so it can be a program name with args.
6381set dummy mt; ac_word=$2
6382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383$as_echo_n "checking for $ac_word... " >&6; }
6384if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6385  $as_echo_n "(cached) " >&6
6386else
6387  if test -n "$ac_ct_MANIFEST_TOOL"; then
6388  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6389else
6390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391for as_dir in $PATH
6392do
6393  IFS=$as_save_IFS
6394  test -z "$as_dir" && as_dir=.
6395    for ac_exec_ext in '' $ac_executable_extensions; do
6396  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6397    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399    break 2
6400  fi
6401done
6402  done
6403IFS=$as_save_IFS
6404
6405fi
6406fi
6407ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6408if test -n "$ac_ct_MANIFEST_TOOL"; then
6409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6410$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6411else
6412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413$as_echo "no" >&6; }
6414fi
6415
6416  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6417    MANIFEST_TOOL=":"
6418  else
6419    case $cross_compiling:$ac_tool_warned in
6420yes:)
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6423ac_tool_warned=yes ;;
6424esac
6425    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6426  fi
6427else
6428  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6429fi
6430
6431test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6433$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6434if ${lt_cv_path_mainfest_tool+:} false; then :
6435  $as_echo_n "(cached) " >&6
6436else
6437  lt_cv_path_mainfest_tool=no
6438  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6439  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6440  cat conftest.err >&5
6441  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6442    lt_cv_path_mainfest_tool=yes
6443  fi
6444  rm -f conftest*
6445fi
6446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6447$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6448if test "x$lt_cv_path_mainfest_tool" != xyes; then
6449  MANIFEST_TOOL=:
6450fi
6451
6452
6453
6454
6455
6456
6457  case $host_os in
6458    rhapsody* | darwin*)
6459    if test -n "$ac_tool_prefix"; then
6460  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6461set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463$as_echo_n "checking for $ac_word... " >&6; }
6464if ${ac_cv_prog_DSYMUTIL+:} false; then :
6465  $as_echo_n "(cached) " >&6
6466else
6467  if test -n "$DSYMUTIL"; then
6468  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6469else
6470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471for as_dir in $PATH
6472do
6473  IFS=$as_save_IFS
6474  test -z "$as_dir" && as_dir=.
6475    for ac_exec_ext in '' $ac_executable_extensions; do
6476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6479    break 2
6480  fi
6481done
6482  done
6483IFS=$as_save_IFS
6484
6485fi
6486fi
6487DSYMUTIL=$ac_cv_prog_DSYMUTIL
6488if test -n "$DSYMUTIL"; then
6489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6490$as_echo "$DSYMUTIL" >&6; }
6491else
6492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493$as_echo "no" >&6; }
6494fi
6495
6496
6497fi
6498if test -z "$ac_cv_prog_DSYMUTIL"; then
6499  ac_ct_DSYMUTIL=$DSYMUTIL
6500  # Extract the first word of "dsymutil", so it can be a program name with args.
6501set dummy dsymutil; ac_word=$2
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503$as_echo_n "checking for $ac_word... " >&6; }
6504if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6505  $as_echo_n "(cached) " >&6
6506else
6507  if test -n "$ac_ct_DSYMUTIL"; then
6508  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6509else
6510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511for as_dir in $PATH
6512do
6513  IFS=$as_save_IFS
6514  test -z "$as_dir" && as_dir=.
6515    for ac_exec_ext in '' $ac_executable_extensions; do
6516  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6517    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519    break 2
6520  fi
6521done
6522  done
6523IFS=$as_save_IFS
6524
6525fi
6526fi
6527ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6528if test -n "$ac_ct_DSYMUTIL"; then
6529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6530$as_echo "$ac_ct_DSYMUTIL" >&6; }
6531else
6532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533$as_echo "no" >&6; }
6534fi
6535
6536  if test "x$ac_ct_DSYMUTIL" = x; then
6537    DSYMUTIL=":"
6538  else
6539    case $cross_compiling:$ac_tool_warned in
6540yes:)
6541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6543ac_tool_warned=yes ;;
6544esac
6545    DSYMUTIL=$ac_ct_DSYMUTIL
6546  fi
6547else
6548  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6549fi
6550
6551    if test -n "$ac_tool_prefix"; then
6552  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6553set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6555$as_echo_n "checking for $ac_word... " >&6; }
6556if ${ac_cv_prog_NMEDIT+:} false; then :
6557  $as_echo_n "(cached) " >&6
6558else
6559  if test -n "$NMEDIT"; then
6560  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6561else
6562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563for as_dir in $PATH
6564do
6565  IFS=$as_save_IFS
6566  test -z "$as_dir" && as_dir=.
6567    for ac_exec_ext in '' $ac_executable_extensions; do
6568  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6571    break 2
6572  fi
6573done
6574  done
6575IFS=$as_save_IFS
6576
6577fi
6578fi
6579NMEDIT=$ac_cv_prog_NMEDIT
6580if test -n "$NMEDIT"; then
6581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6582$as_echo "$NMEDIT" >&6; }
6583else
6584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585$as_echo "no" >&6; }
6586fi
6587
6588
6589fi
6590if test -z "$ac_cv_prog_NMEDIT"; then
6591  ac_ct_NMEDIT=$NMEDIT
6592  # Extract the first word of "nmedit", so it can be a program name with args.
6593set dummy nmedit; ac_word=$2
6594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6595$as_echo_n "checking for $ac_word... " >&6; }
6596if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6597  $as_echo_n "(cached) " >&6
6598else
6599  if test -n "$ac_ct_NMEDIT"; then
6600  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6601else
6602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603for as_dir in $PATH
6604do
6605  IFS=$as_save_IFS
6606  test -z "$as_dir" && as_dir=.
6607    for ac_exec_ext in '' $ac_executable_extensions; do
6608  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6609    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6610    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6611    break 2
6612  fi
6613done
6614  done
6615IFS=$as_save_IFS
6616
6617fi
6618fi
6619ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6620if test -n "$ac_ct_NMEDIT"; then
6621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6622$as_echo "$ac_ct_NMEDIT" >&6; }
6623else
6624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6625$as_echo "no" >&6; }
6626fi
6627
6628  if test "x$ac_ct_NMEDIT" = x; then
6629    NMEDIT=":"
6630  else
6631    case $cross_compiling:$ac_tool_warned in
6632yes:)
6633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6635ac_tool_warned=yes ;;
6636esac
6637    NMEDIT=$ac_ct_NMEDIT
6638  fi
6639else
6640  NMEDIT="$ac_cv_prog_NMEDIT"
6641fi
6642
6643    if test -n "$ac_tool_prefix"; then
6644  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6645set dummy ${ac_tool_prefix}lipo; ac_word=$2
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647$as_echo_n "checking for $ac_word... " >&6; }
6648if ${ac_cv_prog_LIPO+:} false; then :
6649  $as_echo_n "(cached) " >&6
6650else
6651  if test -n "$LIPO"; then
6652  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6653else
6654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655for as_dir in $PATH
6656do
6657  IFS=$as_save_IFS
6658  test -z "$as_dir" && as_dir=.
6659    for ac_exec_ext in '' $ac_executable_extensions; do
6660  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6661    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6663    break 2
6664  fi
6665done
6666  done
6667IFS=$as_save_IFS
6668
6669fi
6670fi
6671LIPO=$ac_cv_prog_LIPO
6672if test -n "$LIPO"; then
6673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6674$as_echo "$LIPO" >&6; }
6675else
6676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677$as_echo "no" >&6; }
6678fi
6679
6680
6681fi
6682if test -z "$ac_cv_prog_LIPO"; then
6683  ac_ct_LIPO=$LIPO
6684  # Extract the first word of "lipo", so it can be a program name with args.
6685set dummy lipo; ac_word=$2
6686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6687$as_echo_n "checking for $ac_word... " >&6; }
6688if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6689  $as_echo_n "(cached) " >&6
6690else
6691  if test -n "$ac_ct_LIPO"; then
6692  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6693else
6694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695for as_dir in $PATH
6696do
6697  IFS=$as_save_IFS
6698  test -z "$as_dir" && as_dir=.
6699    for ac_exec_ext in '' $ac_executable_extensions; do
6700  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6701    ac_cv_prog_ac_ct_LIPO="lipo"
6702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6703    break 2
6704  fi
6705done
6706  done
6707IFS=$as_save_IFS
6708
6709fi
6710fi
6711ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6712if test -n "$ac_ct_LIPO"; then
6713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6714$as_echo "$ac_ct_LIPO" >&6; }
6715else
6716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717$as_echo "no" >&6; }
6718fi
6719
6720  if test "x$ac_ct_LIPO" = x; then
6721    LIPO=":"
6722  else
6723    case $cross_compiling:$ac_tool_warned in
6724yes:)
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6727ac_tool_warned=yes ;;
6728esac
6729    LIPO=$ac_ct_LIPO
6730  fi
6731else
6732  LIPO="$ac_cv_prog_LIPO"
6733fi
6734
6735    if test -n "$ac_tool_prefix"; then
6736  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6737set dummy ${ac_tool_prefix}otool; ac_word=$2
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6739$as_echo_n "checking for $ac_word... " >&6; }
6740if ${ac_cv_prog_OTOOL+:} false; then :
6741  $as_echo_n "(cached) " >&6
6742else
6743  if test -n "$OTOOL"; then
6744  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6745else
6746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747for as_dir in $PATH
6748do
6749  IFS=$as_save_IFS
6750  test -z "$as_dir" && as_dir=.
6751    for ac_exec_ext in '' $ac_executable_extensions; do
6752  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6755    break 2
6756  fi
6757done
6758  done
6759IFS=$as_save_IFS
6760
6761fi
6762fi
6763OTOOL=$ac_cv_prog_OTOOL
6764if test -n "$OTOOL"; then
6765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6766$as_echo "$OTOOL" >&6; }
6767else
6768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769$as_echo "no" >&6; }
6770fi
6771
6772
6773fi
6774if test -z "$ac_cv_prog_OTOOL"; then
6775  ac_ct_OTOOL=$OTOOL
6776  # Extract the first word of "otool", so it can be a program name with args.
6777set dummy otool; ac_word=$2
6778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779$as_echo_n "checking for $ac_word... " >&6; }
6780if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6781  $as_echo_n "(cached) " >&6
6782else
6783  if test -n "$ac_ct_OTOOL"; then
6784  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6785else
6786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787for as_dir in $PATH
6788do
6789  IFS=$as_save_IFS
6790  test -z "$as_dir" && as_dir=.
6791    for ac_exec_ext in '' $ac_executable_extensions; do
6792  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793    ac_cv_prog_ac_ct_OTOOL="otool"
6794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795    break 2
6796  fi
6797done
6798  done
6799IFS=$as_save_IFS
6800
6801fi
6802fi
6803ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6804if test -n "$ac_ct_OTOOL"; then
6805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6806$as_echo "$ac_ct_OTOOL" >&6; }
6807else
6808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6809$as_echo "no" >&6; }
6810fi
6811
6812  if test "x$ac_ct_OTOOL" = x; then
6813    OTOOL=":"
6814  else
6815    case $cross_compiling:$ac_tool_warned in
6816yes:)
6817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6819ac_tool_warned=yes ;;
6820esac
6821    OTOOL=$ac_ct_OTOOL
6822  fi
6823else
6824  OTOOL="$ac_cv_prog_OTOOL"
6825fi
6826
6827    if test -n "$ac_tool_prefix"; then
6828  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6829set dummy ${ac_tool_prefix}otool64; ac_word=$2
6830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831$as_echo_n "checking for $ac_word... " >&6; }
6832if ${ac_cv_prog_OTOOL64+:} false; then :
6833  $as_echo_n "(cached) " >&6
6834else
6835  if test -n "$OTOOL64"; then
6836  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6837else
6838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839for as_dir in $PATH
6840do
6841  IFS=$as_save_IFS
6842  test -z "$as_dir" && as_dir=.
6843    for ac_exec_ext in '' $ac_executable_extensions; do
6844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847    break 2
6848  fi
6849done
6850  done
6851IFS=$as_save_IFS
6852
6853fi
6854fi
6855OTOOL64=$ac_cv_prog_OTOOL64
6856if test -n "$OTOOL64"; then
6857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6858$as_echo "$OTOOL64" >&6; }
6859else
6860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861$as_echo "no" >&6; }
6862fi
6863
6864
6865fi
6866if test -z "$ac_cv_prog_OTOOL64"; then
6867  ac_ct_OTOOL64=$OTOOL64
6868  # Extract the first word of "otool64", so it can be a program name with args.
6869set dummy otool64; ac_word=$2
6870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6871$as_echo_n "checking for $ac_word... " >&6; }
6872if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6873  $as_echo_n "(cached) " >&6
6874else
6875  if test -n "$ac_ct_OTOOL64"; then
6876  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6877else
6878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879for as_dir in $PATH
6880do
6881  IFS=$as_save_IFS
6882  test -z "$as_dir" && as_dir=.
6883    for ac_exec_ext in '' $ac_executable_extensions; do
6884  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6885    ac_cv_prog_ac_ct_OTOOL64="otool64"
6886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6887    break 2
6888  fi
6889done
6890  done
6891IFS=$as_save_IFS
6892
6893fi
6894fi
6895ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6896if test -n "$ac_ct_OTOOL64"; then
6897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6898$as_echo "$ac_ct_OTOOL64" >&6; }
6899else
6900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6901$as_echo "no" >&6; }
6902fi
6903
6904  if test "x$ac_ct_OTOOL64" = x; then
6905    OTOOL64=":"
6906  else
6907    case $cross_compiling:$ac_tool_warned in
6908yes:)
6909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6911ac_tool_warned=yes ;;
6912esac
6913    OTOOL64=$ac_ct_OTOOL64
6914  fi
6915else
6916  OTOOL64="$ac_cv_prog_OTOOL64"
6917fi
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6946$as_echo_n "checking for -single_module linker flag... " >&6; }
6947if ${lt_cv_apple_cc_single_mod+:} false; then :
6948  $as_echo_n "(cached) " >&6
6949else
6950  lt_cv_apple_cc_single_mod=no
6951      if test -z "${LT_MULTI_MODULE}"; then
6952	# By default we will add the -single_module flag. You can override
6953	# by either setting the environment variable LT_MULTI_MODULE
6954	# non-empty at configure time, or by adding -multi_module to the
6955	# link flags.
6956	rm -rf libconftest.dylib*
6957	echo "int foo(void){return 1;}" > conftest.c
6958	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6959-dynamiclib -Wl,-single_module conftest.c" >&5
6960	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6961	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6962        _lt_result=$?
6963	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6964	  lt_cv_apple_cc_single_mod=yes
6965	else
6966	  cat conftest.err >&5
6967	fi
6968	rm -rf libconftest.dylib*
6969	rm -f conftest.*
6970      fi
6971fi
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6973$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6974    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6975$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6976if ${lt_cv_ld_exported_symbols_list+:} false; then :
6977  $as_echo_n "(cached) " >&6
6978else
6979  lt_cv_ld_exported_symbols_list=no
6980      save_LDFLAGS=$LDFLAGS
6981      echo "_main" > conftest.sym
6982      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6983      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984/* end confdefs.h.  */
6985
6986int
6987main ()
6988{
6989
6990  ;
6991  return 0;
6992}
6993_ACEOF
6994if ac_fn_c_try_link "$LINENO"; then :
6995  lt_cv_ld_exported_symbols_list=yes
6996else
6997  lt_cv_ld_exported_symbols_list=no
6998fi
6999rm -f core conftest.err conftest.$ac_objext \
7000    conftest$ac_exeext conftest.$ac_ext
7001	LDFLAGS="$save_LDFLAGS"
7002
7003fi
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7005$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7006    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7007$as_echo_n "checking for -force_load linker flag... " >&6; }
7008if ${lt_cv_ld_force_load+:} false; then :
7009  $as_echo_n "(cached) " >&6
7010else
7011  lt_cv_ld_force_load=no
7012      cat > conftest.c << _LT_EOF
7013int forced_loaded() { return 2;}
7014_LT_EOF
7015      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7016      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7017      echo "$AR cru libconftest.a conftest.o" >&5
7018      $AR cru libconftest.a conftest.o 2>&5
7019      echo "$RANLIB libconftest.a" >&5
7020      $RANLIB libconftest.a 2>&5
7021      cat > conftest.c << _LT_EOF
7022int main() { return 0;}
7023_LT_EOF
7024      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7025      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7026      _lt_result=$?
7027      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7028	lt_cv_ld_force_load=yes
7029      else
7030	cat conftest.err >&5
7031      fi
7032        rm -f conftest.err libconftest.a conftest conftest.c
7033        rm -rf conftest.dSYM
7034
7035fi
7036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7037$as_echo "$lt_cv_ld_force_load" >&6; }
7038    case $host_os in
7039    rhapsody* | darwin1.[012])
7040      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7041    darwin1.*)
7042      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7043    darwin*) # darwin 5.x on
7044      # if running on 10.5 or later, the deployment target defaults
7045      # to the OS version, if on x86, and 10.4, the deployment
7046      # target defaults to 10.4. Don't you love it?
7047      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7048	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7049	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7050	10.[012]*)
7051	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7052	10.*)
7053	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7054      esac
7055    ;;
7056  esac
7057    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7058      _lt_dar_single_mod='$single_module'
7059    fi
7060    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7061      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7062    else
7063      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7064    fi
7065    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7066      _lt_dsymutil='~$DSYMUTIL $lib || :'
7067    else
7068      _lt_dsymutil=
7069    fi
7070    ;;
7071  esac
7072
7073ac_ext=c
7074ac_cpp='$CPP $CPPFLAGS'
7075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7077ac_compiler_gnu=$ac_cv_c_compiler_gnu
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7079$as_echo_n "checking how to run the C preprocessor... " >&6; }
7080# On Suns, sometimes $CPP names a directory.
7081if test -n "$CPP" && test -d "$CPP"; then
7082  CPP=
7083fi
7084if test -z "$CPP"; then
7085  if ${ac_cv_prog_CPP+:} false; then :
7086  $as_echo_n "(cached) " >&6
7087else
7088      # Double quotes because CPP needs to be expanded
7089    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7090    do
7091      ac_preproc_ok=false
7092for ac_c_preproc_warn_flag in '' yes
7093do
7094  # Use a header file that comes with gcc, so configuring glibc
7095  # with a fresh cross-compiler works.
7096  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7097  # <limits.h> exists even on freestanding compilers.
7098  # On the NeXT, cc -E runs the code through the compiler's parser,
7099  # not just through cpp. "Syntax error" is here to catch this case.
7100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101/* end confdefs.h.  */
7102#ifdef __STDC__
7103# include <limits.h>
7104#else
7105# include <assert.h>
7106#endif
7107		     Syntax error
7108_ACEOF
7109if ac_fn_c_try_cpp "$LINENO"; then :
7110
7111else
7112  # Broken: fails on valid input.
7113continue
7114fi
7115rm -f conftest.err conftest.i conftest.$ac_ext
7116
7117  # OK, works on sane cases.  Now check whether nonexistent headers
7118  # can be detected and how.
7119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120/* end confdefs.h.  */
7121#include <ac_nonexistent.h>
7122_ACEOF
7123if ac_fn_c_try_cpp "$LINENO"; then :
7124  # Broken: success on invalid input.
7125continue
7126else
7127  # Passes both tests.
7128ac_preproc_ok=:
7129break
7130fi
7131rm -f conftest.err conftest.i conftest.$ac_ext
7132
7133done
7134# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7135rm -f conftest.i conftest.err conftest.$ac_ext
7136if $ac_preproc_ok; then :
7137  break
7138fi
7139
7140    done
7141    ac_cv_prog_CPP=$CPP
7142
7143fi
7144  CPP=$ac_cv_prog_CPP
7145else
7146  ac_cv_prog_CPP=$CPP
7147fi
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7149$as_echo "$CPP" >&6; }
7150ac_preproc_ok=false
7151for ac_c_preproc_warn_flag in '' yes
7152do
7153  # Use a header file that comes with gcc, so configuring glibc
7154  # with a fresh cross-compiler works.
7155  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7156  # <limits.h> exists even on freestanding compilers.
7157  # On the NeXT, cc -E runs the code through the compiler's parser,
7158  # not just through cpp. "Syntax error" is here to catch this case.
7159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160/* end confdefs.h.  */
7161#ifdef __STDC__
7162# include <limits.h>
7163#else
7164# include <assert.h>
7165#endif
7166		     Syntax error
7167_ACEOF
7168if ac_fn_c_try_cpp "$LINENO"; then :
7169
7170else
7171  # Broken: fails on valid input.
7172continue
7173fi
7174rm -f conftest.err conftest.i conftest.$ac_ext
7175
7176  # OK, works on sane cases.  Now check whether nonexistent headers
7177  # can be detected and how.
7178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179/* end confdefs.h.  */
7180#include <ac_nonexistent.h>
7181_ACEOF
7182if ac_fn_c_try_cpp "$LINENO"; then :
7183  # Broken: success on invalid input.
7184continue
7185else
7186  # Passes both tests.
7187ac_preproc_ok=:
7188break
7189fi
7190rm -f conftest.err conftest.i conftest.$ac_ext
7191
7192done
7193# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7194rm -f conftest.i conftest.err conftest.$ac_ext
7195if $ac_preproc_ok; then :
7196
7197else
7198  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7200as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7201See \`config.log' for more details" "$LINENO" 5; }
7202fi
7203
7204ac_ext=c
7205ac_cpp='$CPP $CPPFLAGS'
7206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7208ac_compiler_gnu=$ac_cv_c_compiler_gnu
7209
7210
7211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7212$as_echo_n "checking for ANSI C header files... " >&6; }
7213if ${ac_cv_header_stdc+:} false; then :
7214  $as_echo_n "(cached) " >&6
7215else
7216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217/* end confdefs.h.  */
7218#include <stdlib.h>
7219#include <stdarg.h>
7220#include <string.h>
7221#include <float.h>
7222
7223int
7224main ()
7225{
7226
7227  ;
7228  return 0;
7229}
7230_ACEOF
7231if ac_fn_c_try_compile "$LINENO"; then :
7232  ac_cv_header_stdc=yes
7233else
7234  ac_cv_header_stdc=no
7235fi
7236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237
7238if test $ac_cv_header_stdc = yes; then
7239  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241/* end confdefs.h.  */
7242#include <string.h>
7243
7244_ACEOF
7245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7246  $EGREP "memchr" >/dev/null 2>&1; then :
7247
7248else
7249  ac_cv_header_stdc=no
7250fi
7251rm -f conftest*
7252
7253fi
7254
7255if test $ac_cv_header_stdc = yes; then
7256  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258/* end confdefs.h.  */
7259#include <stdlib.h>
7260
7261_ACEOF
7262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7263  $EGREP "free" >/dev/null 2>&1; then :
7264
7265else
7266  ac_cv_header_stdc=no
7267fi
7268rm -f conftest*
7269
7270fi
7271
7272if test $ac_cv_header_stdc = yes; then
7273  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7274  if test "$cross_compiling" = yes; then :
7275  :
7276else
7277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278/* end confdefs.h.  */
7279#include <ctype.h>
7280#include <stdlib.h>
7281#if ((' ' & 0x0FF) == 0x020)
7282# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7283# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7284#else
7285# define ISLOWER(c) \
7286		   (('a' <= (c) && (c) <= 'i') \
7287		     || ('j' <= (c) && (c) <= 'r') \
7288		     || ('s' <= (c) && (c) <= 'z'))
7289# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7290#endif
7291
7292#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7293int
7294main ()
7295{
7296  int i;
7297  for (i = 0; i < 256; i++)
7298    if (XOR (islower (i), ISLOWER (i))
7299	|| toupper (i) != TOUPPER (i))
7300      return 2;
7301  return 0;
7302}
7303_ACEOF
7304if ac_fn_c_try_run "$LINENO"; then :
7305
7306else
7307  ac_cv_header_stdc=no
7308fi
7309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7310  conftest.$ac_objext conftest.beam conftest.$ac_ext
7311fi
7312
7313fi
7314fi
7315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7316$as_echo "$ac_cv_header_stdc" >&6; }
7317if test $ac_cv_header_stdc = yes; then
7318
7319$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7320
7321fi
7322
7323# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7324for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7325		  inttypes.h stdint.h unistd.h
7326do :
7327  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7328ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7329"
7330if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7331  cat >>confdefs.h <<_ACEOF
7332#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7333_ACEOF
7334
7335fi
7336
7337done
7338
7339
7340for ac_header in dlfcn.h
7341do :
7342  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7343"
7344if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7345  cat >>confdefs.h <<_ACEOF
7346#define HAVE_DLFCN_H 1
7347_ACEOF
7348
7349fi
7350
7351done
7352
7353
7354
7355
7356
7357# Set options
7358
7359
7360
7361        enable_dlopen=no
7362
7363
7364  enable_win32_dll=no
7365
7366
7367            # Check whether --enable-shared was given.
7368if test "${enable_shared+set}" = set; then :
7369  enableval=$enable_shared; p=${PACKAGE-default}
7370    case $enableval in
7371    yes) enable_shared=yes ;;
7372    no) enable_shared=no ;;
7373    *)
7374      enable_shared=no
7375      # Look at the argument we got.  We use all the common list separators.
7376      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7377      for pkg in $enableval; do
7378	IFS="$lt_save_ifs"
7379	if test "X$pkg" = "X$p"; then
7380	  enable_shared=yes
7381	fi
7382      done
7383      IFS="$lt_save_ifs"
7384      ;;
7385    esac
7386else
7387  enable_shared=yes
7388fi
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398  # Check whether --enable-static was given.
7399if test "${enable_static+set}" = set; then :
7400  enableval=$enable_static; p=${PACKAGE-default}
7401    case $enableval in
7402    yes) enable_static=yes ;;
7403    no) enable_static=no ;;
7404    *)
7405     enable_static=no
7406      # Look at the argument we got.  We use all the common list separators.
7407      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7408      for pkg in $enableval; do
7409	IFS="$lt_save_ifs"
7410	if test "X$pkg" = "X$p"; then
7411	  enable_static=yes
7412	fi
7413      done
7414      IFS="$lt_save_ifs"
7415      ;;
7416    esac
7417else
7418  enable_static=yes
7419fi
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430# Check whether --with-pic was given.
7431if test "${with_pic+set}" = set; then :
7432  withval=$with_pic; pic_mode="$withval"
7433else
7434  pic_mode=default
7435fi
7436
7437
7438test -z "$pic_mode" && pic_mode=default
7439
7440
7441
7442
7443
7444
7445
7446  # Check whether --enable-fast-install was given.
7447if test "${enable_fast_install+set}" = set; then :
7448  enableval=$enable_fast_install; p=${PACKAGE-default}
7449    case $enableval in
7450    yes) enable_fast_install=yes ;;
7451    no) enable_fast_install=no ;;
7452    *)
7453      enable_fast_install=no
7454      # Look at the argument we got.  We use all the common list separators.
7455      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7456      for pkg in $enableval; do
7457	IFS="$lt_save_ifs"
7458	if test "X$pkg" = "X$p"; then
7459	  enable_fast_install=yes
7460	fi
7461      done
7462      IFS="$lt_save_ifs"
7463      ;;
7464    esac
7465else
7466  enable_fast_install=yes
7467fi
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479# This can be used to rebuild libtool when needed
7480LIBTOOL_DEPS="$ltmain"
7481
7482# Always use our own libtool.
7483LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510test -z "$LN_S" && LN_S="ln -s"
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525if test -n "${ZSH_VERSION+set}" ; then
7526   setopt NO_GLOB_SUBST
7527fi
7528
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7530$as_echo_n "checking for objdir... " >&6; }
7531if ${lt_cv_objdir+:} false; then :
7532  $as_echo_n "(cached) " >&6
7533else
7534  rm -f .libs 2>/dev/null
7535mkdir .libs 2>/dev/null
7536if test -d .libs; then
7537  lt_cv_objdir=.libs
7538else
7539  # MS-DOS does not allow filenames that begin with a dot.
7540  lt_cv_objdir=_libs
7541fi
7542rmdir .libs 2>/dev/null
7543fi
7544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7545$as_echo "$lt_cv_objdir" >&6; }
7546objdir=$lt_cv_objdir
7547
7548
7549
7550
7551
7552cat >>confdefs.h <<_ACEOF
7553#define LT_OBJDIR "$lt_cv_objdir/"
7554_ACEOF
7555
7556
7557
7558
7559case $host_os in
7560aix3*)
7561  # AIX sometimes has problems with the GCC collect2 program.  For some
7562  # reason, if we set the COLLECT_NAMES environment variable, the problems
7563  # vanish in a puff of smoke.
7564  if test "X${COLLECT_NAMES+set}" != Xset; then
7565    COLLECT_NAMES=
7566    export COLLECT_NAMES
7567  fi
7568  ;;
7569esac
7570
7571# Global variables:
7572ofile=libtool
7573can_build_shared=yes
7574
7575# All known linkers require a `.a' archive for static linking (except MSVC,
7576# which needs '.lib').
7577libext=a
7578
7579with_gnu_ld="$lt_cv_prog_gnu_ld"
7580
7581old_CC="$CC"
7582old_CFLAGS="$CFLAGS"
7583
7584# Set sane defaults for various variables
7585test -z "$CC" && CC=cc
7586test -z "$LTCC" && LTCC=$CC
7587test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7588test -z "$LD" && LD=ld
7589test -z "$ac_objext" && ac_objext=o
7590
7591for cc_temp in $compiler""; do
7592  case $cc_temp in
7593    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7594    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7595    \-*) ;;
7596    *) break;;
7597  esac
7598done
7599cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7600
7601
7602# Only perform the check for file, if the check method requires it
7603test -z "$MAGIC_CMD" && MAGIC_CMD=file
7604case $deplibs_check_method in
7605file_magic*)
7606  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7607    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7608$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7609if ${lt_cv_path_MAGIC_CMD+:} false; then :
7610  $as_echo_n "(cached) " >&6
7611else
7612  case $MAGIC_CMD in
7613[\\/*] |  ?:[\\/]*)
7614  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7615  ;;
7616*)
7617  lt_save_MAGIC_CMD="$MAGIC_CMD"
7618  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7619  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7620  for ac_dir in $ac_dummy; do
7621    IFS="$lt_save_ifs"
7622    test -z "$ac_dir" && ac_dir=.
7623    if test -f $ac_dir/${ac_tool_prefix}file; then
7624      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7625      if test -n "$file_magic_test_file"; then
7626	case $deplibs_check_method in
7627	"file_magic "*)
7628	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7629	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7630	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7631	    $EGREP "$file_magic_regex" > /dev/null; then
7632	    :
7633	  else
7634	    cat <<_LT_EOF 1>&2
7635
7636*** Warning: the command libtool uses to detect shared libraries,
7637*** $file_magic_cmd, produces output that libtool cannot recognize.
7638*** The result is that libtool may fail to recognize shared libraries
7639*** as such.  This will affect the creation of libtool libraries that
7640*** depend on shared libraries, but programs linked with such libtool
7641*** libraries will work regardless of this problem.  Nevertheless, you
7642*** may want to report the problem to your system manager and/or to
7643*** bug-libtool@gnu.org
7644
7645_LT_EOF
7646	  fi ;;
7647	esac
7648      fi
7649      break
7650    fi
7651  done
7652  IFS="$lt_save_ifs"
7653  MAGIC_CMD="$lt_save_MAGIC_CMD"
7654  ;;
7655esac
7656fi
7657
7658MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7659if test -n "$MAGIC_CMD"; then
7660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7661$as_echo "$MAGIC_CMD" >&6; }
7662else
7663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664$as_echo "no" >&6; }
7665fi
7666
7667
7668
7669
7670
7671if test -z "$lt_cv_path_MAGIC_CMD"; then
7672  if test -n "$ac_tool_prefix"; then
7673    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7674$as_echo_n "checking for file... " >&6; }
7675if ${lt_cv_path_MAGIC_CMD+:} false; then :
7676  $as_echo_n "(cached) " >&6
7677else
7678  case $MAGIC_CMD in
7679[\\/*] |  ?:[\\/]*)
7680  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7681  ;;
7682*)
7683  lt_save_MAGIC_CMD="$MAGIC_CMD"
7684  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7685  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7686  for ac_dir in $ac_dummy; do
7687    IFS="$lt_save_ifs"
7688    test -z "$ac_dir" && ac_dir=.
7689    if test -f $ac_dir/file; then
7690      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7691      if test -n "$file_magic_test_file"; then
7692	case $deplibs_check_method in
7693	"file_magic "*)
7694	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7695	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7696	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7697	    $EGREP "$file_magic_regex" > /dev/null; then
7698	    :
7699	  else
7700	    cat <<_LT_EOF 1>&2
7701
7702*** Warning: the command libtool uses to detect shared libraries,
7703*** $file_magic_cmd, produces output that libtool cannot recognize.
7704*** The result is that libtool may fail to recognize shared libraries
7705*** as such.  This will affect the creation of libtool libraries that
7706*** depend on shared libraries, but programs linked with such libtool
7707*** libraries will work regardless of this problem.  Nevertheless, you
7708*** may want to report the problem to your system manager and/or to
7709*** bug-libtool@gnu.org
7710
7711_LT_EOF
7712	  fi ;;
7713	esac
7714      fi
7715      break
7716    fi
7717  done
7718  IFS="$lt_save_ifs"
7719  MAGIC_CMD="$lt_save_MAGIC_CMD"
7720  ;;
7721esac
7722fi
7723
7724MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7725if test -n "$MAGIC_CMD"; then
7726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7727$as_echo "$MAGIC_CMD" >&6; }
7728else
7729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730$as_echo "no" >&6; }
7731fi
7732
7733
7734  else
7735    MAGIC_CMD=:
7736  fi
7737fi
7738
7739  fi
7740  ;;
7741esac
7742
7743# Use C for the default configuration in the libtool script
7744
7745lt_save_CC="$CC"
7746ac_ext=c
7747ac_cpp='$CPP $CPPFLAGS'
7748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7750ac_compiler_gnu=$ac_cv_c_compiler_gnu
7751
7752
7753# Source file extension for C test sources.
7754ac_ext=c
7755
7756# Object file extension for compiled C test sources.
7757objext=o
7758objext=$objext
7759
7760# Code to be used in simple compile tests
7761lt_simple_compile_test_code="int some_variable = 0;"
7762
7763# Code to be used in simple link tests
7764lt_simple_link_test_code='int main(){return(0);}'
7765
7766
7767
7768
7769
7770
7771
7772# If no C compiler was specified, use CC.
7773LTCC=${LTCC-"$CC"}
7774
7775# If no C compiler flags were specified, use CFLAGS.
7776LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7777
7778# Allow CC to be a program name with arguments.
7779compiler=$CC
7780
7781# Save the default compiler, since it gets overwritten when the other
7782# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7783compiler_DEFAULT=$CC
7784
7785# save warnings/boilerplate of simple test code
7786ac_outfile=conftest.$ac_objext
7787echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7788eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7789_lt_compiler_boilerplate=`cat conftest.err`
7790$RM conftest*
7791
7792ac_outfile=conftest.$ac_objext
7793echo "$lt_simple_link_test_code" >conftest.$ac_ext
7794eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7795_lt_linker_boilerplate=`cat conftest.err`
7796$RM -r conftest*
7797
7798
7799if test -n "$compiler"; then
7800
7801lt_prog_compiler_no_builtin_flag=
7802
7803if test "$GCC" = yes; then
7804  case $cc_basename in
7805  nvcc*)
7806    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7807  *)
7808    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7809  esac
7810
7811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7812$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7813if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7814  $as_echo_n "(cached) " >&6
7815else
7816  lt_cv_prog_compiler_rtti_exceptions=no
7817   ac_outfile=conftest.$ac_objext
7818   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7819   lt_compiler_flag="-fno-rtti -fno-exceptions"
7820   # Insert the option either (1) after the last *FLAGS variable, or
7821   # (2) before a word containing "conftest.", or (3) at the end.
7822   # Note that $ac_compile itself does not contain backslashes and begins
7823   # with a dollar sign (not a hyphen), so the echo should work correctly.
7824   # The option is referenced via a variable to avoid confusing sed.
7825   lt_compile=`echo "$ac_compile" | $SED \
7826   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7827   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7828   -e 's:$: $lt_compiler_flag:'`
7829   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7830   (eval "$lt_compile" 2>conftest.err)
7831   ac_status=$?
7832   cat conftest.err >&5
7833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834   if (exit $ac_status) && test -s "$ac_outfile"; then
7835     # The compiler can only warn and ignore the option if not recognized
7836     # So say no if there are warnings other than the usual output.
7837     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7838     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7839     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7840       lt_cv_prog_compiler_rtti_exceptions=yes
7841     fi
7842   fi
7843   $RM conftest*
7844
7845fi
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7847$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7848
7849if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7850    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7851else
7852    :
7853fi
7854
7855fi
7856
7857
7858
7859
7860
7861
7862  lt_prog_compiler_wl=
7863lt_prog_compiler_pic=
7864lt_prog_compiler_static=
7865
7866
7867  if test "$GCC" = yes; then
7868    lt_prog_compiler_wl='-Wl,'
7869    lt_prog_compiler_static='-static'
7870
7871    case $host_os in
7872      aix*)
7873      # All AIX code is PIC.
7874      if test "$host_cpu" = ia64; then
7875	# AIX 5 now supports IA64 processor
7876	lt_prog_compiler_static='-Bstatic'
7877      fi
7878      ;;
7879
7880    amigaos*)
7881      case $host_cpu in
7882      powerpc)
7883            # see comment about AmigaOS4 .so support
7884            lt_prog_compiler_pic='-fPIC'
7885        ;;
7886      m68k)
7887            # FIXME: we need at least 68020 code to build shared libraries, but
7888            # adding the `-m68020' flag to GCC prevents building anything better,
7889            # like `-m68040'.
7890            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7891        ;;
7892      esac
7893      ;;
7894
7895    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7896      # PIC is the default for these OSes.
7897      ;;
7898
7899    mingw* | cygwin* | pw32* | os2* | cegcc*)
7900      # This hack is so that the source file can tell whether it is being
7901      # built for inclusion in a dll (and should export symbols for example).
7902      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7903      # (--disable-auto-import) libraries
7904      lt_prog_compiler_pic='-DDLL_EXPORT'
7905      ;;
7906
7907    darwin* | rhapsody*)
7908      # PIC is the default on this platform
7909      # Common symbols not allowed in MH_DYLIB files
7910      lt_prog_compiler_pic='-fno-common'
7911      ;;
7912
7913    haiku*)
7914      # PIC is the default for Haiku.
7915      # The "-static" flag exists, but is broken.
7916      lt_prog_compiler_static=
7917      ;;
7918
7919    hpux*)
7920      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7921      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7922      # sets the default TLS model and affects inlining.
7923      case $host_cpu in
7924      hppa*64*)
7925	# +Z the default
7926	;;
7927      *)
7928	lt_prog_compiler_pic='-fPIC'
7929	;;
7930      esac
7931      ;;
7932
7933    interix[3-9]*)
7934      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7935      # Instead, we relocate shared libraries at runtime.
7936      ;;
7937
7938    msdosdjgpp*)
7939      # Just because we use GCC doesn't mean we suddenly get shared libraries
7940      # on systems that don't support them.
7941      lt_prog_compiler_can_build_shared=no
7942      enable_shared=no
7943      ;;
7944
7945    *nto* | *qnx*)
7946      # QNX uses GNU C++, but need to define -shared option too, otherwise
7947      # it will coredump.
7948      lt_prog_compiler_pic='-fPIC -shared'
7949      ;;
7950
7951    sysv4*MP*)
7952      if test -d /usr/nec; then
7953	lt_prog_compiler_pic=-Kconform_pic
7954      fi
7955      ;;
7956
7957    *)
7958      lt_prog_compiler_pic='-fPIC'
7959      ;;
7960    esac
7961
7962    case $cc_basename in
7963    nvcc*) # Cuda Compiler Driver 2.2
7964      lt_prog_compiler_wl='-Xlinker '
7965      lt_prog_compiler_pic='-Xcompiler -fPIC'
7966      ;;
7967    esac
7968  else
7969    # PORTME Check for flag to pass linker flags through the system compiler.
7970    case $host_os in
7971    aix*)
7972      lt_prog_compiler_wl='-Wl,'
7973      if test "$host_cpu" = ia64; then
7974	# AIX 5 now supports IA64 processor
7975	lt_prog_compiler_static='-Bstatic'
7976      else
7977	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7978      fi
7979      ;;
7980
7981    mingw* | cygwin* | pw32* | os2* | cegcc*)
7982      # This hack is so that the source file can tell whether it is being
7983      # built for inclusion in a dll (and should export symbols for example).
7984      lt_prog_compiler_pic='-DDLL_EXPORT'
7985      ;;
7986
7987    hpux9* | hpux10* | hpux11*)
7988      lt_prog_compiler_wl='-Wl,'
7989      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7990      # not for PA HP-UX.
7991      case $host_cpu in
7992      hppa*64*|ia64*)
7993	# +Z the default
7994	;;
7995      *)
7996	lt_prog_compiler_pic='+Z'
7997	;;
7998      esac
7999      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8000      lt_prog_compiler_static='${wl}-a ${wl}archive'
8001      ;;
8002
8003    irix5* | irix6* | nonstopux*)
8004      lt_prog_compiler_wl='-Wl,'
8005      # PIC (with -KPIC) is the default.
8006      lt_prog_compiler_static='-non_shared'
8007      ;;
8008
8009    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8010      case $cc_basename in
8011      # old Intel for x86_64 which still supported -KPIC.
8012      ecc*)
8013	lt_prog_compiler_wl='-Wl,'
8014	lt_prog_compiler_pic='-KPIC'
8015	lt_prog_compiler_static='-static'
8016        ;;
8017      # icc used to be incompatible with GCC.
8018      # ICC 10 doesn't accept -KPIC any more.
8019      icc* | ifort*)
8020	lt_prog_compiler_wl='-Wl,'
8021	lt_prog_compiler_pic='-fPIC'
8022	lt_prog_compiler_static='-static'
8023        ;;
8024      # Lahey Fortran 8.1.
8025      lf95*)
8026	lt_prog_compiler_wl='-Wl,'
8027	lt_prog_compiler_pic='--shared'
8028	lt_prog_compiler_static='--static'
8029	;;
8030      nagfor*)
8031	# NAG Fortran compiler
8032	lt_prog_compiler_wl='-Wl,-Wl,,'
8033	lt_prog_compiler_pic='-PIC'
8034	lt_prog_compiler_static='-Bstatic'
8035	;;
8036      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8037        # Portland Group compilers (*not* the Pentium gcc compiler,
8038	# which looks to be a dead project)
8039	lt_prog_compiler_wl='-Wl,'
8040	lt_prog_compiler_pic='-fpic'
8041	lt_prog_compiler_static='-Bstatic'
8042        ;;
8043      ccc*)
8044        lt_prog_compiler_wl='-Wl,'
8045        # All Alpha code is PIC.
8046        lt_prog_compiler_static='-non_shared'
8047        ;;
8048      xl* | bgxl* | bgf* | mpixl*)
8049	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8050	lt_prog_compiler_wl='-Wl,'
8051	lt_prog_compiler_pic='-qpic'
8052	lt_prog_compiler_static='-qstaticlink'
8053	;;
8054      *)
8055	case `$CC -V 2>&1 | sed 5q` in
8056	*Sun\ F* | *Sun*Fortran*)
8057	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8058	  lt_prog_compiler_pic='-KPIC'
8059	  lt_prog_compiler_static='-Bstatic'
8060	  lt_prog_compiler_wl=''
8061	  ;;
8062	*Sun\ C*)
8063	  # Sun C 5.9
8064	  lt_prog_compiler_pic='-KPIC'
8065	  lt_prog_compiler_static='-Bstatic'
8066	  lt_prog_compiler_wl='-Wl,'
8067	  ;;
8068	esac
8069	;;
8070      esac
8071      ;;
8072
8073    newsos6)
8074      lt_prog_compiler_pic='-KPIC'
8075      lt_prog_compiler_static='-Bstatic'
8076      ;;
8077
8078    *nto* | *qnx*)
8079      # QNX uses GNU C++, but need to define -shared option too, otherwise
8080      # it will coredump.
8081      lt_prog_compiler_pic='-fPIC -shared'
8082      ;;
8083
8084    osf3* | osf4* | osf5*)
8085      lt_prog_compiler_wl='-Wl,'
8086      # All OSF/1 code is PIC.
8087      lt_prog_compiler_static='-non_shared'
8088      ;;
8089
8090    rdos*)
8091      lt_prog_compiler_static='-non_shared'
8092      ;;
8093
8094    solaris*)
8095      lt_prog_compiler_pic='-KPIC'
8096      lt_prog_compiler_static='-Bstatic'
8097      case $cc_basename in
8098      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8099	lt_prog_compiler_wl='-Qoption ld ';;
8100      *)
8101	lt_prog_compiler_wl='-Wl,';;
8102      esac
8103      ;;
8104
8105    sunos4*)
8106      lt_prog_compiler_wl='-Qoption ld '
8107      lt_prog_compiler_pic='-PIC'
8108      lt_prog_compiler_static='-Bstatic'
8109      ;;
8110
8111    sysv4 | sysv4.2uw2* | sysv4.3*)
8112      lt_prog_compiler_wl='-Wl,'
8113      lt_prog_compiler_pic='-KPIC'
8114      lt_prog_compiler_static='-Bstatic'
8115      ;;
8116
8117    sysv4*MP*)
8118      if test -d /usr/nec ;then
8119	lt_prog_compiler_pic='-Kconform_pic'
8120	lt_prog_compiler_static='-Bstatic'
8121      fi
8122      ;;
8123
8124    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8125      lt_prog_compiler_wl='-Wl,'
8126      lt_prog_compiler_pic='-KPIC'
8127      lt_prog_compiler_static='-Bstatic'
8128      ;;
8129
8130    unicos*)
8131      lt_prog_compiler_wl='-Wl,'
8132      lt_prog_compiler_can_build_shared=no
8133      ;;
8134
8135    uts4*)
8136      lt_prog_compiler_pic='-pic'
8137      lt_prog_compiler_static='-Bstatic'
8138      ;;
8139
8140    *)
8141      lt_prog_compiler_can_build_shared=no
8142      ;;
8143    esac
8144  fi
8145
8146case $host_os in
8147  # For platforms which do not support PIC, -DPIC is meaningless:
8148  *djgpp*)
8149    lt_prog_compiler_pic=
8150    ;;
8151  *)
8152    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8153    ;;
8154esac
8155
8156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8157$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8158if ${lt_cv_prog_compiler_pic+:} false; then :
8159  $as_echo_n "(cached) " >&6
8160else
8161  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8162fi
8163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8164$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8165lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8166
8167#
8168# Check to make sure the PIC flag actually works.
8169#
8170if test -n "$lt_prog_compiler_pic"; then
8171  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8172$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8173if ${lt_cv_prog_compiler_pic_works+:} false; then :
8174  $as_echo_n "(cached) " >&6
8175else
8176  lt_cv_prog_compiler_pic_works=no
8177   ac_outfile=conftest.$ac_objext
8178   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8179   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8180   # Insert the option either (1) after the last *FLAGS variable, or
8181   # (2) before a word containing "conftest.", or (3) at the end.
8182   # Note that $ac_compile itself does not contain backslashes and begins
8183   # with a dollar sign (not a hyphen), so the echo should work correctly.
8184   # The option is referenced via a variable to avoid confusing sed.
8185   lt_compile=`echo "$ac_compile" | $SED \
8186   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8187   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8188   -e 's:$: $lt_compiler_flag:'`
8189   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8190   (eval "$lt_compile" 2>conftest.err)
8191   ac_status=$?
8192   cat conftest.err >&5
8193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194   if (exit $ac_status) && test -s "$ac_outfile"; then
8195     # The compiler can only warn and ignore the option if not recognized
8196     # So say no if there are warnings other than the usual output.
8197     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8198     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8199     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8200       lt_cv_prog_compiler_pic_works=yes
8201     fi
8202   fi
8203   $RM conftest*
8204
8205fi
8206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8207$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8208
8209if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8210    case $lt_prog_compiler_pic in
8211     "" | " "*) ;;
8212     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8213     esac
8214else
8215    lt_prog_compiler_pic=
8216     lt_prog_compiler_can_build_shared=no
8217fi
8218
8219fi
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231#
8232# Check to make sure the static flag actually works.
8233#
8234wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8236$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8237if ${lt_cv_prog_compiler_static_works+:} false; then :
8238  $as_echo_n "(cached) " >&6
8239else
8240  lt_cv_prog_compiler_static_works=no
8241   save_LDFLAGS="$LDFLAGS"
8242   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8243   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8244   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8245     # The linker can only warn and ignore the option if not recognized
8246     # So say no if there are warnings
8247     if test -s conftest.err; then
8248       # Append any errors to the config.log.
8249       cat conftest.err 1>&5
8250       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8251       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8252       if diff conftest.exp conftest.er2 >/dev/null; then
8253         lt_cv_prog_compiler_static_works=yes
8254       fi
8255     else
8256       lt_cv_prog_compiler_static_works=yes
8257     fi
8258   fi
8259   $RM -r conftest*
8260   LDFLAGS="$save_LDFLAGS"
8261
8262fi
8263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8264$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8265
8266if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8267    :
8268else
8269    lt_prog_compiler_static=
8270fi
8271
8272
8273
8274
8275
8276
8277
8278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8279$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8280if ${lt_cv_prog_compiler_c_o+:} false; then :
8281  $as_echo_n "(cached) " >&6
8282else
8283  lt_cv_prog_compiler_c_o=no
8284   $RM -r conftest 2>/dev/null
8285   mkdir conftest
8286   cd conftest
8287   mkdir out
8288   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8289
8290   lt_compiler_flag="-o out/conftest2.$ac_objext"
8291   # Insert the option either (1) after the last *FLAGS variable, or
8292   # (2) before a word containing "conftest.", or (3) at the end.
8293   # Note that $ac_compile itself does not contain backslashes and begins
8294   # with a dollar sign (not a hyphen), so the echo should work correctly.
8295   lt_compile=`echo "$ac_compile" | $SED \
8296   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8297   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8298   -e 's:$: $lt_compiler_flag:'`
8299   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8300   (eval "$lt_compile" 2>out/conftest.err)
8301   ac_status=$?
8302   cat out/conftest.err >&5
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8305   then
8306     # The compiler can only warn and ignore the option if not recognized
8307     # So say no if there are warnings
8308     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8309     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8310     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8311       lt_cv_prog_compiler_c_o=yes
8312     fi
8313   fi
8314   chmod u+w . 2>&5
8315   $RM conftest*
8316   # SGI C++ compiler will create directory out/ii_files/ for
8317   # template instantiation
8318   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8319   $RM out/* && rmdir out
8320   cd ..
8321   $RM -r conftest
8322   $RM conftest*
8323
8324fi
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8326$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8327
8328
8329
8330
8331
8332
8333  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8334$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8335if ${lt_cv_prog_compiler_c_o+:} false; then :
8336  $as_echo_n "(cached) " >&6
8337else
8338  lt_cv_prog_compiler_c_o=no
8339   $RM -r conftest 2>/dev/null
8340   mkdir conftest
8341   cd conftest
8342   mkdir out
8343   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8344
8345   lt_compiler_flag="-o out/conftest2.$ac_objext"
8346   # Insert the option either (1) after the last *FLAGS variable, or
8347   # (2) before a word containing "conftest.", or (3) at the end.
8348   # Note that $ac_compile itself does not contain backslashes and begins
8349   # with a dollar sign (not a hyphen), so the echo should work correctly.
8350   lt_compile=`echo "$ac_compile" | $SED \
8351   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8352   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8353   -e 's:$: $lt_compiler_flag:'`
8354   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8355   (eval "$lt_compile" 2>out/conftest.err)
8356   ac_status=$?
8357   cat out/conftest.err >&5
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8360   then
8361     # The compiler can only warn and ignore the option if not recognized
8362     # So say no if there are warnings
8363     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8364     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8365     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8366       lt_cv_prog_compiler_c_o=yes
8367     fi
8368   fi
8369   chmod u+w . 2>&5
8370   $RM conftest*
8371   # SGI C++ compiler will create directory out/ii_files/ for
8372   # template instantiation
8373   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8374   $RM out/* && rmdir out
8375   cd ..
8376   $RM -r conftest
8377   $RM conftest*
8378
8379fi
8380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8381$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8382
8383
8384
8385
8386hard_links="nottested"
8387if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8388  # do not overwrite the value of need_locks provided by the user
8389  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8390$as_echo_n "checking if we can lock with hard links... " >&6; }
8391  hard_links=yes
8392  $RM conftest*
8393  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8394  touch conftest.a
8395  ln conftest.a conftest.b 2>&5 || hard_links=no
8396  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8398$as_echo "$hard_links" >&6; }
8399  if test "$hard_links" = no; then
8400    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8401$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8402    need_locks=warn
8403  fi
8404else
8405  need_locks=no
8406fi
8407
8408
8409
8410
8411
8412
8413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8414$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8415
8416  runpath_var=
8417  allow_undefined_flag=
8418  always_export_symbols=no
8419  archive_cmds=
8420  archive_expsym_cmds=
8421  compiler_needs_object=no
8422  enable_shared_with_static_runtimes=no
8423  export_dynamic_flag_spec=
8424  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8425  hardcode_automatic=no
8426  hardcode_direct=no
8427  hardcode_direct_absolute=no
8428  hardcode_libdir_flag_spec=
8429  hardcode_libdir_flag_spec_ld=
8430  hardcode_libdir_separator=
8431  hardcode_minus_L=no
8432  hardcode_shlibpath_var=unsupported
8433  inherit_rpath=no
8434  link_all_deplibs=unknown
8435  module_cmds=
8436  module_expsym_cmds=
8437  old_archive_from_new_cmds=
8438  old_archive_from_expsyms_cmds=
8439  thread_safe_flag_spec=
8440  whole_archive_flag_spec=
8441  # include_expsyms should be a list of space-separated symbols to be *always*
8442  # included in the symbol list
8443  include_expsyms=
8444  # exclude_expsyms can be an extended regexp of symbols to exclude
8445  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8446  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8447  # as well as any symbol that contains `d'.
8448  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8449  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8450  # platforms (ab)use it in PIC code, but their linkers get confused if
8451  # the symbol is explicitly referenced.  Since portable code cannot
8452  # rely on this symbol name, it's probably fine to never include it in
8453  # preloaded symbol tables.
8454  # Exclude shared library initialization/finalization symbols.
8455  extract_expsyms_cmds=
8456
8457  case $host_os in
8458  cygwin* | mingw* | pw32* | cegcc*)
8459    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8460    # When not using gcc, we currently assume that we are using
8461    # Microsoft Visual C++.
8462    if test "$GCC" != yes; then
8463      with_gnu_ld=no
8464    fi
8465    ;;
8466  interix*)
8467    # we just hope/assume this is gcc and not c89 (= MSVC++)
8468    with_gnu_ld=yes
8469    ;;
8470  openbsd*)
8471    with_gnu_ld=no
8472    ;;
8473  esac
8474
8475  ld_shlibs=yes
8476
8477  # On some targets, GNU ld is compatible enough with the native linker
8478  # that we're better off using the native interface for both.
8479  lt_use_gnu_ld_interface=no
8480  if test "$with_gnu_ld" = yes; then
8481    case $host_os in
8482      aix*)
8483	# The AIX port of GNU ld has always aspired to compatibility
8484	# with the native linker.  However, as the warning in the GNU ld
8485	# block says, versions before 2.19.5* couldn't really create working
8486	# shared libraries, regardless of the interface used.
8487	case `$LD -v 2>&1` in
8488	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8489	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8490	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8491	  *)
8492	    lt_use_gnu_ld_interface=yes
8493	    ;;
8494	esac
8495	;;
8496      *)
8497	lt_use_gnu_ld_interface=yes
8498	;;
8499    esac
8500  fi
8501
8502  if test "$lt_use_gnu_ld_interface" = yes; then
8503    # If archive_cmds runs LD, not CC, wlarc should be empty
8504    wlarc='${wl}'
8505
8506    # Set some defaults for GNU ld with shared library support. These
8507    # are reset later if shared libraries are not supported. Putting them
8508    # here allows them to be overridden if necessary.
8509    runpath_var=LD_RUN_PATH
8510    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8511    export_dynamic_flag_spec='${wl}--export-dynamic'
8512    # ancient GNU ld didn't support --whole-archive et. al.
8513    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8514      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8515    else
8516      whole_archive_flag_spec=
8517    fi
8518    supports_anon_versioning=no
8519    case `$LD -v 2>&1` in
8520      *GNU\ gold*) supports_anon_versioning=yes ;;
8521      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8522      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8523      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8524      *\ 2.11.*) ;; # other 2.11 versions
8525      *) supports_anon_versioning=yes ;;
8526    esac
8527
8528    # See if GNU ld supports shared libraries.
8529    case $host_os in
8530    aix[3-9]*)
8531      # On AIX/PPC, the GNU linker is very broken
8532      if test "$host_cpu" != ia64; then
8533	ld_shlibs=no
8534	cat <<_LT_EOF 1>&2
8535
8536*** Warning: the GNU linker, at least up to release 2.19, is reported
8537*** to be unable to reliably create shared libraries on AIX.
8538*** Therefore, libtool is disabling shared libraries support.  If you
8539*** really care for shared libraries, you may want to install binutils
8540*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8541*** You will then need to restart the configuration process.
8542
8543_LT_EOF
8544      fi
8545      ;;
8546
8547    amigaos*)
8548      case $host_cpu in
8549      powerpc)
8550            # see comment about AmigaOS4 .so support
8551            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8552            archive_expsym_cmds=''
8553        ;;
8554      m68k)
8555            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)'
8556            hardcode_libdir_flag_spec='-L$libdir'
8557            hardcode_minus_L=yes
8558        ;;
8559      esac
8560      ;;
8561
8562    beos*)
8563      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8564	allow_undefined_flag=unsupported
8565	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8566	# support --undefined.  This deserves some investigation.  FIXME
8567	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8568      else
8569	ld_shlibs=no
8570      fi
8571      ;;
8572
8573    cygwin* | mingw* | pw32* | cegcc*)
8574      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8575      # as there is no search path for DLLs.
8576      hardcode_libdir_flag_spec='-L$libdir'
8577      export_dynamic_flag_spec='${wl}--export-all-symbols'
8578      allow_undefined_flag=unsupported
8579      always_export_symbols=no
8580      enable_shared_with_static_runtimes=yes
8581      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8582      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8583
8584      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8585        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8586	# If the export-symbols file already is a .def file (1st line
8587	# is EXPORTS), use it as is; otherwise, prepend...
8588	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8589	  cp $export_symbols $output_objdir/$soname.def;
8590	else
8591	  echo EXPORTS > $output_objdir/$soname.def;
8592	  cat $export_symbols >> $output_objdir/$soname.def;
8593	fi~
8594	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8595      else
8596	ld_shlibs=no
8597      fi
8598      ;;
8599
8600    haiku*)
8601      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8602      link_all_deplibs=yes
8603      ;;
8604
8605    interix[3-9]*)
8606      hardcode_direct=no
8607      hardcode_shlibpath_var=no
8608      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8609      export_dynamic_flag_spec='${wl}-E'
8610      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8611      # Instead, shared libraries are loaded at an image base (0x10000000 by
8612      # default) and relocated if they conflict, which is a slow very memory
8613      # consuming and fragmenting process.  To avoid this, we pick a random,
8614      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8615      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8616      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8617      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'
8618      ;;
8619
8620    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8621      tmp_diet=no
8622      if test "$host_os" = linux-dietlibc; then
8623	case $cc_basename in
8624	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8625	esac
8626      fi
8627      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8628	 && test "$tmp_diet" = no
8629      then
8630	tmp_addflag=' $pic_flag'
8631	tmp_sharedflag='-shared'
8632	case $cc_basename,$host_cpu in
8633        pgcc*)				# Portland Group C compiler
8634	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8635	  tmp_addflag=' $pic_flag'
8636	  ;;
8637	pgf77* | pgf90* | pgf95* | pgfortran*)
8638					# Portland Group f77 and f90 compilers
8639	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8640	  tmp_addflag=' $pic_flag -Mnomain' ;;
8641	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8642	  tmp_addflag=' -i_dynamic' ;;
8643	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8644	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8645	ifc* | ifort*)			# Intel Fortran compiler
8646	  tmp_addflag=' -nofor_main' ;;
8647	lf95*)				# Lahey Fortran 8.1
8648	  whole_archive_flag_spec=
8649	  tmp_sharedflag='--shared' ;;
8650	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8651	  tmp_sharedflag='-qmkshrobj'
8652	  tmp_addflag= ;;
8653	nvcc*)	# Cuda Compiler Driver 2.2
8654	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8655	  compiler_needs_object=yes
8656	  ;;
8657	esac
8658	case `$CC -V 2>&1 | sed 5q` in
8659	*Sun\ C*)			# Sun C 5.9
8660	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8661	  compiler_needs_object=yes
8662	  tmp_sharedflag='-G' ;;
8663	*Sun\ F*)			# Sun Fortran 8.3
8664	  tmp_sharedflag='-G' ;;
8665	esac
8666	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8667
8668        if test "x$supports_anon_versioning" = xyes; then
8669          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8670	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8671	    echo "local: *; };" >> $output_objdir/$libname.ver~
8672	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8673        fi
8674
8675	case $cc_basename in
8676	xlf* | bgf* | bgxlf* | mpixlf*)
8677	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8678	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8679	  hardcode_libdir_flag_spec=
8680	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8681	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8682	  if test "x$supports_anon_versioning" = xyes; then
8683	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8684	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8685	      echo "local: *; };" >> $output_objdir/$libname.ver~
8686	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8687	  fi
8688	  ;;
8689	esac
8690      else
8691        ld_shlibs=no
8692      fi
8693      ;;
8694
8695    netbsd*)
8696      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8697	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8698	wlarc=
8699      else
8700	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8701	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8702      fi
8703      ;;
8704
8705    solaris*)
8706      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8707	ld_shlibs=no
8708	cat <<_LT_EOF 1>&2
8709
8710*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8711*** create shared libraries on Solaris systems.  Therefore, libtool
8712*** is disabling shared libraries support.  We urge you to upgrade GNU
8713*** binutils to release 2.9.1 or newer.  Another option is to modify
8714*** your PATH or compiler configuration so that the native linker is
8715*** used, and then restart.
8716
8717_LT_EOF
8718      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8719	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8720	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8721      else
8722	ld_shlibs=no
8723      fi
8724      ;;
8725
8726    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8727      case `$LD -v 2>&1` in
8728        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8729	ld_shlibs=no
8730	cat <<_LT_EOF 1>&2
8731
8732*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8733*** reliably create shared libraries on SCO systems.  Therefore, libtool
8734*** is disabling shared libraries support.  We urge you to upgrade GNU
8735*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8736*** your PATH or compiler configuration so that the native linker is
8737*** used, and then restart.
8738
8739_LT_EOF
8740	;;
8741	*)
8742	  # For security reasons, it is highly recommended that you always
8743	  # use absolute paths for naming shared libraries, and exclude the
8744	  # DT_RUNPATH tag from executables and libraries.  But doing so
8745	  # requires that you compile everything twice, which is a pain.
8746	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8747	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8748	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8749	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8750	  else
8751	    ld_shlibs=no
8752	  fi
8753	;;
8754      esac
8755      ;;
8756
8757    sunos4*)
8758      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8759      wlarc=
8760      hardcode_direct=yes
8761      hardcode_shlibpath_var=no
8762      ;;
8763
8764    *)
8765      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8766	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8767	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8768      else
8769	ld_shlibs=no
8770      fi
8771      ;;
8772    esac
8773
8774    if test "$ld_shlibs" = no; then
8775      runpath_var=
8776      hardcode_libdir_flag_spec=
8777      export_dynamic_flag_spec=
8778      whole_archive_flag_spec=
8779    fi
8780  else
8781    # PORTME fill in a description of your system's linker (not GNU ld)
8782    case $host_os in
8783    aix3*)
8784      allow_undefined_flag=unsupported
8785      always_export_symbols=yes
8786      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'
8787      # Note: this linker hardcodes the directories in LIBPATH if there
8788      # are no directories specified by -L.
8789      hardcode_minus_L=yes
8790      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8791	# Neither direct hardcoding nor static linking is supported with a
8792	# broken collect2.
8793	hardcode_direct=unsupported
8794      fi
8795      ;;
8796
8797    aix[4-9]*)
8798      if test "$host_cpu" = ia64; then
8799	# On IA64, the linker does run time linking by default, so we don't
8800	# have to do anything special.
8801	aix_use_runtimelinking=no
8802	exp_sym_flag='-Bexport'
8803	no_entry_flag=""
8804      else
8805	# If we're using GNU nm, then we don't want the "-C" option.
8806	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8807	# Also, AIX nm treats weak defined symbols like other global
8808	# defined symbols, whereas GNU nm marks them as "W".
8809	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8810	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8811	else
8812	  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'
8813	fi
8814	aix_use_runtimelinking=no
8815
8816	# Test if we are trying to use run time linking or normal
8817	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8818	# need to do runtime linking.
8819	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8820	  for ld_flag in $LDFLAGS; do
8821	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8822	    aix_use_runtimelinking=yes
8823	    break
8824	  fi
8825	  done
8826	  ;;
8827	esac
8828
8829	exp_sym_flag='-bexport'
8830	no_entry_flag='-bnoentry'
8831      fi
8832
8833      # When large executables or shared objects are built, AIX ld can
8834      # have problems creating the table of contents.  If linking a library
8835      # or program results in "error TOC overflow" add -mminimal-toc to
8836      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8837      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8838
8839      archive_cmds=''
8840      hardcode_direct=yes
8841      hardcode_direct_absolute=yes
8842      hardcode_libdir_separator=':'
8843      link_all_deplibs=yes
8844      file_list_spec='${wl}-f,'
8845
8846      if test "$GCC" = yes; then
8847	case $host_os in aix4.[012]|aix4.[012].*)
8848	# We only want to do this on AIX 4.2 and lower, the check
8849	# below for broken collect2 doesn't work under 4.3+
8850	  collect2name=`${CC} -print-prog-name=collect2`
8851	  if test -f "$collect2name" &&
8852	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8853	  then
8854	  # We have reworked collect2
8855	  :
8856	  else
8857	  # We have old collect2
8858	  hardcode_direct=unsupported
8859	  # It fails to find uninstalled libraries when the uninstalled
8860	  # path is not listed in the libpath.  Setting hardcode_minus_L
8861	  # to unsupported forces relinking
8862	  hardcode_minus_L=yes
8863	  hardcode_libdir_flag_spec='-L$libdir'
8864	  hardcode_libdir_separator=
8865	  fi
8866	  ;;
8867	esac
8868	shared_flag='-shared'
8869	if test "$aix_use_runtimelinking" = yes; then
8870	  shared_flag="$shared_flag "'${wl}-G'
8871	fi
8872      else
8873	# not using gcc
8874	if test "$host_cpu" = ia64; then
8875	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8876	# chokes on -Wl,-G. The following line is correct:
8877	  shared_flag='-G'
8878	else
8879	  if test "$aix_use_runtimelinking" = yes; then
8880	    shared_flag='${wl}-G'
8881	  else
8882	    shared_flag='${wl}-bM:SRE'
8883	  fi
8884	fi
8885      fi
8886
8887      export_dynamic_flag_spec='${wl}-bexpall'
8888      # It seems that -bexpall does not export symbols beginning with
8889      # underscore (_), so it is better to generate a list of symbols to export.
8890      always_export_symbols=yes
8891      if test "$aix_use_runtimelinking" = yes; then
8892	# Warning - without using the other runtime loading flags (-brtl),
8893	# -berok will link without error, but may produce a broken library.
8894	allow_undefined_flag='-berok'
8895        # Determine the default libpath from the value encoded in an
8896        # empty executable.
8897        if test "${lt_cv_aix_libpath+set}" = set; then
8898  aix_libpath=$lt_cv_aix_libpath
8899else
8900  if ${lt_cv_aix_libpath_+:} false; then :
8901  $as_echo_n "(cached) " >&6
8902else
8903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904/* end confdefs.h.  */
8905
8906int
8907main ()
8908{
8909
8910  ;
8911  return 0;
8912}
8913_ACEOF
8914if ac_fn_c_try_link "$LINENO"; then :
8915
8916  lt_aix_libpath_sed='
8917      /Import File Strings/,/^$/ {
8918	  /^0/ {
8919	      s/^0  *\([^ ]*\) *$/\1/
8920	      p
8921	  }
8922      }'
8923  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8924  # Check for a 64-bit object if we didn't find anything.
8925  if test -z "$lt_cv_aix_libpath_"; then
8926    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8927  fi
8928fi
8929rm -f core conftest.err conftest.$ac_objext \
8930    conftest$ac_exeext conftest.$ac_ext
8931  if test -z "$lt_cv_aix_libpath_"; then
8932    lt_cv_aix_libpath_="/usr/lib:/lib"
8933  fi
8934
8935fi
8936
8937  aix_libpath=$lt_cv_aix_libpath_
8938fi
8939
8940        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8941        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8942      else
8943	if test "$host_cpu" = ia64; then
8944	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8945	  allow_undefined_flag="-z nodefs"
8946	  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"
8947	else
8948	 # Determine the default libpath from the value encoded in an
8949	 # empty executable.
8950	 if test "${lt_cv_aix_libpath+set}" = set; then
8951  aix_libpath=$lt_cv_aix_libpath
8952else
8953  if ${lt_cv_aix_libpath_+:} false; then :
8954  $as_echo_n "(cached) " >&6
8955else
8956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957/* end confdefs.h.  */
8958
8959int
8960main ()
8961{
8962
8963  ;
8964  return 0;
8965}
8966_ACEOF
8967if ac_fn_c_try_link "$LINENO"; then :
8968
8969  lt_aix_libpath_sed='
8970      /Import File Strings/,/^$/ {
8971	  /^0/ {
8972	      s/^0  *\([^ ]*\) *$/\1/
8973	      p
8974	  }
8975      }'
8976  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8977  # Check for a 64-bit object if we didn't find anything.
8978  if test -z "$lt_cv_aix_libpath_"; then
8979    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8980  fi
8981fi
8982rm -f core conftest.err conftest.$ac_objext \
8983    conftest$ac_exeext conftest.$ac_ext
8984  if test -z "$lt_cv_aix_libpath_"; then
8985    lt_cv_aix_libpath_="/usr/lib:/lib"
8986  fi
8987
8988fi
8989
8990  aix_libpath=$lt_cv_aix_libpath_
8991fi
8992
8993	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8994	  # Warning - without using the other run time loading flags,
8995	  # -berok will link without error, but may produce a broken library.
8996	  no_undefined_flag=' ${wl}-bernotok'
8997	  allow_undefined_flag=' ${wl}-berok'
8998	  if test "$with_gnu_ld" = yes; then
8999	    # We only use this code for GNU lds that support --whole-archive.
9000	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9001	  else
9002	    # Exported symbols can be pulled into shared objects from archives
9003	    whole_archive_flag_spec='$convenience'
9004	  fi
9005	  archive_cmds_need_lc=yes
9006	  # This is similar to how AIX traditionally builds its shared libraries.
9007	  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'
9008	fi
9009      fi
9010      ;;
9011
9012    amigaos*)
9013      case $host_cpu in
9014      powerpc)
9015            # see comment about AmigaOS4 .so support
9016            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9017            archive_expsym_cmds=''
9018        ;;
9019      m68k)
9020            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)'
9021            hardcode_libdir_flag_spec='-L$libdir'
9022            hardcode_minus_L=yes
9023        ;;
9024      esac
9025      ;;
9026
9027    bsdi[45]*)
9028      export_dynamic_flag_spec=-rdynamic
9029      ;;
9030
9031    cygwin* | mingw* | pw32* | cegcc*)
9032      # When not using gcc, we currently assume that we are using
9033      # Microsoft Visual C++.
9034      # hardcode_libdir_flag_spec is actually meaningless, as there is
9035      # no search path for DLLs.
9036      case $cc_basename in
9037      cl*)
9038	# Native MSVC
9039	hardcode_libdir_flag_spec=' '
9040	allow_undefined_flag=unsupported
9041	always_export_symbols=yes
9042	file_list_spec='@'
9043	# Tell ltmain to make .lib files, not .a files.
9044	libext=lib
9045	# Tell ltmain to make .dll files, not .so files.
9046	shrext_cmds=".dll"
9047	# FIXME: Setting linknames here is a bad hack.
9048	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9049	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9050	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9051	  else
9052	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9053	  fi~
9054	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9055	  linknames='
9056	# The linker will not automatically build a static lib if we build a DLL.
9057	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9058	enable_shared_with_static_runtimes=yes
9059	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9060	# Don't use ranlib
9061	old_postinstall_cmds='chmod 644 $oldlib'
9062	postlink_cmds='lt_outputfile="@OUTPUT@"~
9063	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9064	  case $lt_outputfile in
9065	    *.exe|*.EXE) ;;
9066	    *)
9067	      lt_outputfile="$lt_outputfile.exe"
9068	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9069	      ;;
9070	  esac~
9071	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9072	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9073	    $RM "$lt_outputfile.manifest";
9074	  fi'
9075	;;
9076      *)
9077	# Assume MSVC wrapper
9078	hardcode_libdir_flag_spec=' '
9079	allow_undefined_flag=unsupported
9080	# Tell ltmain to make .lib files, not .a files.
9081	libext=lib
9082	# Tell ltmain to make .dll files, not .so files.
9083	shrext_cmds=".dll"
9084	# FIXME: Setting linknames here is a bad hack.
9085	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9086	# The linker will automatically build a .lib file if we build a DLL.
9087	old_archive_from_new_cmds='true'
9088	# FIXME: Should let the user specify the lib program.
9089	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9090	enable_shared_with_static_runtimes=yes
9091	;;
9092      esac
9093      ;;
9094
9095    darwin* | rhapsody*)
9096
9097
9098  archive_cmds_need_lc=no
9099  hardcode_direct=no
9100  hardcode_automatic=yes
9101  hardcode_shlibpath_var=unsupported
9102  if test "$lt_cv_ld_force_load" = "yes"; then
9103    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9104  else
9105    whole_archive_flag_spec=''
9106  fi
9107  link_all_deplibs=yes
9108  allow_undefined_flag="$_lt_dar_allow_undefined"
9109  case $cc_basename in
9110     ifort*) _lt_dar_can_shared=yes ;;
9111     *) _lt_dar_can_shared=$GCC ;;
9112  esac
9113  if test "$_lt_dar_can_shared" = "yes"; then
9114    output_verbose_link_cmd=func_echo_all
9115    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9116    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9117    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}"
9118    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}"
9119
9120  else
9121  ld_shlibs=no
9122  fi
9123
9124      ;;
9125
9126    dgux*)
9127      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9128      hardcode_libdir_flag_spec='-L$libdir'
9129      hardcode_shlibpath_var=no
9130      ;;
9131
9132    freebsd1*)
9133      ld_shlibs=no
9134      ;;
9135
9136    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9137    # support.  Future versions do this automatically, but an explicit c++rt0.o
9138    # does not break anything, and helps significantly (at the cost of a little
9139    # extra space).
9140    freebsd2.2*)
9141      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9142      hardcode_libdir_flag_spec='-R$libdir'
9143      hardcode_direct=yes
9144      hardcode_shlibpath_var=no
9145      ;;
9146
9147    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9148    freebsd2*)
9149      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9150      hardcode_direct=yes
9151      hardcode_minus_L=yes
9152      hardcode_shlibpath_var=no
9153      ;;
9154
9155    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9156    freebsd* | dragonfly*)
9157      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9158      hardcode_libdir_flag_spec='-R$libdir'
9159      hardcode_direct=yes
9160      hardcode_shlibpath_var=no
9161      ;;
9162
9163    hpux9*)
9164      if test "$GCC" = yes; then
9165	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9166      else
9167	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'
9168      fi
9169      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9170      hardcode_libdir_separator=:
9171      hardcode_direct=yes
9172
9173      # hardcode_minus_L: Not really in the search PATH,
9174      # but as the default location of the library.
9175      hardcode_minus_L=yes
9176      export_dynamic_flag_spec='${wl}-E'
9177      ;;
9178
9179    hpux10*)
9180      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9181	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9182      else
9183	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9184      fi
9185      if test "$with_gnu_ld" = no; then
9186	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9187	hardcode_libdir_flag_spec_ld='+b $libdir'
9188	hardcode_libdir_separator=:
9189	hardcode_direct=yes
9190	hardcode_direct_absolute=yes
9191	export_dynamic_flag_spec='${wl}-E'
9192	# hardcode_minus_L: Not really in the search PATH,
9193	# but as the default location of the library.
9194	hardcode_minus_L=yes
9195      fi
9196      ;;
9197
9198    hpux11*)
9199      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9200	case $host_cpu in
9201	hppa*64*)
9202	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9203	  ;;
9204	ia64*)
9205	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9206	  ;;
9207	*)
9208	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9209	  ;;
9210	esac
9211      else
9212	case $host_cpu in
9213	hppa*64*)
9214	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9215	  ;;
9216	ia64*)
9217	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9218	  ;;
9219	*)
9220
9221	  # Older versions of the 11.00 compiler do not understand -b yet
9222	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9223	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9224$as_echo_n "checking if $CC understands -b... " >&6; }
9225if ${lt_cv_prog_compiler__b+:} false; then :
9226  $as_echo_n "(cached) " >&6
9227else
9228  lt_cv_prog_compiler__b=no
9229   save_LDFLAGS="$LDFLAGS"
9230   LDFLAGS="$LDFLAGS -b"
9231   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9232   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9233     # The linker can only warn and ignore the option if not recognized
9234     # So say no if there are warnings
9235     if test -s conftest.err; then
9236       # Append any errors to the config.log.
9237       cat conftest.err 1>&5
9238       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9239       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9240       if diff conftest.exp conftest.er2 >/dev/null; then
9241         lt_cv_prog_compiler__b=yes
9242       fi
9243     else
9244       lt_cv_prog_compiler__b=yes
9245     fi
9246   fi
9247   $RM -r conftest*
9248   LDFLAGS="$save_LDFLAGS"
9249
9250fi
9251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9252$as_echo "$lt_cv_prog_compiler__b" >&6; }
9253
9254if test x"$lt_cv_prog_compiler__b" = xyes; then
9255    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9256else
9257    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9258fi
9259
9260	  ;;
9261	esac
9262      fi
9263      if test "$with_gnu_ld" = no; then
9264	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9265	hardcode_libdir_separator=:
9266
9267	case $host_cpu in
9268	hppa*64*|ia64*)
9269	  hardcode_direct=no
9270	  hardcode_shlibpath_var=no
9271	  ;;
9272	*)
9273	  hardcode_direct=yes
9274	  hardcode_direct_absolute=yes
9275	  export_dynamic_flag_spec='${wl}-E'
9276
9277	  # hardcode_minus_L: Not really in the search PATH,
9278	  # but as the default location of the library.
9279	  hardcode_minus_L=yes
9280	  ;;
9281	esac
9282      fi
9283      ;;
9284
9285    irix5* | irix6* | nonstopux*)
9286      if test "$GCC" = yes; then
9287	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9288	# Try to use the -exported_symbol ld option, if it does not
9289	# work, assume that -exports_file does not work either and
9290	# implicitly export all symbols.
9291	# This should be the same for all languages, so no per-tag cache variable.
9292	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9293$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9294if ${lt_cv_irix_exported_symbol+:} false; then :
9295  $as_echo_n "(cached) " >&6
9296else
9297  save_LDFLAGS="$LDFLAGS"
9298	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9299	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300/* end confdefs.h.  */
9301int foo (void) { return 0; }
9302_ACEOF
9303if ac_fn_c_try_link "$LINENO"; then :
9304  lt_cv_irix_exported_symbol=yes
9305else
9306  lt_cv_irix_exported_symbol=no
9307fi
9308rm -f core conftest.err conftest.$ac_objext \
9309    conftest$ac_exeext conftest.$ac_ext
9310           LDFLAGS="$save_LDFLAGS"
9311fi
9312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9313$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9314	if test "$lt_cv_irix_exported_symbol" = yes; then
9315          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9316	fi
9317      else
9318	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9319	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9320      fi
9321      archive_cmds_need_lc='no'
9322      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9323      hardcode_libdir_separator=:
9324      inherit_rpath=yes
9325      link_all_deplibs=yes
9326      ;;
9327
9328    netbsd*)
9329      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9330	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9331      else
9332	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9333      fi
9334      hardcode_libdir_flag_spec='-R$libdir'
9335      hardcode_direct=yes
9336      hardcode_shlibpath_var=no
9337      ;;
9338
9339    newsos6)
9340      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9341      hardcode_direct=yes
9342      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9343      hardcode_libdir_separator=:
9344      hardcode_shlibpath_var=no
9345      ;;
9346
9347    *nto* | *qnx*)
9348      ;;
9349
9350    openbsd*)
9351      if test -f /usr/libexec/ld.so; then
9352	hardcode_direct=yes
9353	hardcode_shlibpath_var=no
9354	hardcode_direct_absolute=yes
9355	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9356	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9357	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9358	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9359	  export_dynamic_flag_spec='${wl}-E'
9360	else
9361	  case $host_os in
9362	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9363	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9364	     hardcode_libdir_flag_spec='-R$libdir'
9365	     ;;
9366	   *)
9367	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9368	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9369	     ;;
9370	  esac
9371	fi
9372      else
9373	ld_shlibs=no
9374      fi
9375      ;;
9376
9377    os2*)
9378      hardcode_libdir_flag_spec='-L$libdir'
9379      hardcode_minus_L=yes
9380      allow_undefined_flag=unsupported
9381      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'
9382      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9383      ;;
9384
9385    osf3*)
9386      if test "$GCC" = yes; then
9387	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9388	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9389      else
9390	allow_undefined_flag=' -expect_unresolved \*'
9391	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9392      fi
9393      archive_cmds_need_lc='no'
9394      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9395      hardcode_libdir_separator=:
9396      ;;
9397
9398    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9399      if test "$GCC" = yes; then
9400	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9401	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9402	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9403      else
9404	allow_undefined_flag=' -expect_unresolved \*'
9405	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9406	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~
9407	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9408
9409	# Both c and cxx compiler support -rpath directly
9410	hardcode_libdir_flag_spec='-rpath $libdir'
9411      fi
9412      archive_cmds_need_lc='no'
9413      hardcode_libdir_separator=:
9414      ;;
9415
9416    solaris*)
9417      no_undefined_flag=' -z defs'
9418      if test "$GCC" = yes; then
9419	wlarc='${wl}'
9420	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9421	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9422	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9423      else
9424	case `$CC -V 2>&1` in
9425	*"Compilers 5.0"*)
9426	  wlarc=''
9427	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9428	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9429	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9430	  ;;
9431	*)
9432	  wlarc='${wl}'
9433	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9434	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9435	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9436	  ;;
9437	esac
9438      fi
9439      hardcode_libdir_flag_spec='-R$libdir'
9440      hardcode_shlibpath_var=no
9441      case $host_os in
9442      solaris2.[0-5] | solaris2.[0-5].*) ;;
9443      *)
9444	# The compiler driver will combine and reorder linker options,
9445	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9446	# but is careful enough not to reorder.
9447	# Supported since Solaris 2.6 (maybe 2.5.1?)
9448	if test "$GCC" = yes; then
9449	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9450	else
9451	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9452	fi
9453	;;
9454      esac
9455      link_all_deplibs=yes
9456      ;;
9457
9458    sunos4*)
9459      if test "x$host_vendor" = xsequent; then
9460	# Use $CC to link under sequent, because it throws in some extra .o
9461	# files that make .init and .fini sections work.
9462	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9463      else
9464	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9465      fi
9466      hardcode_libdir_flag_spec='-L$libdir'
9467      hardcode_direct=yes
9468      hardcode_minus_L=yes
9469      hardcode_shlibpath_var=no
9470      ;;
9471
9472    sysv4)
9473      case $host_vendor in
9474	sni)
9475	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476	  hardcode_direct=yes # is this really true???
9477	;;
9478	siemens)
9479	  ## LD is ld it makes a PLAMLIB
9480	  ## CC just makes a GrossModule.
9481	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9482	  reload_cmds='$CC -r -o $output$reload_objs'
9483	  hardcode_direct=no
9484        ;;
9485	motorola)
9486	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9487	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9488	;;
9489      esac
9490      runpath_var='LD_RUN_PATH'
9491      hardcode_shlibpath_var=no
9492      ;;
9493
9494    sysv4.3*)
9495      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9496      hardcode_shlibpath_var=no
9497      export_dynamic_flag_spec='-Bexport'
9498      ;;
9499
9500    sysv4*MP*)
9501      if test -d /usr/nec; then
9502	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9503	hardcode_shlibpath_var=no
9504	runpath_var=LD_RUN_PATH
9505	hardcode_runpath_var=yes
9506	ld_shlibs=yes
9507      fi
9508      ;;
9509
9510    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9511      no_undefined_flag='${wl}-z,text'
9512      archive_cmds_need_lc=no
9513      hardcode_shlibpath_var=no
9514      runpath_var='LD_RUN_PATH'
9515
9516      if test "$GCC" = yes; then
9517	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9518	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9519      else
9520	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9521	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9522      fi
9523      ;;
9524
9525    sysv5* | sco3.2v5* | sco5v6*)
9526      # Note: We can NOT use -z defs as we might desire, because we do not
9527      # link with -lc, and that would cause any symbols used from libc to
9528      # always be unresolved, which means just about no library would
9529      # ever link correctly.  If we're not using GNU ld we use -z text
9530      # though, which does catch some bad symbols but isn't as heavy-handed
9531      # as -z defs.
9532      no_undefined_flag='${wl}-z,text'
9533      allow_undefined_flag='${wl}-z,nodefs'
9534      archive_cmds_need_lc=no
9535      hardcode_shlibpath_var=no
9536      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9537      hardcode_libdir_separator=':'
9538      link_all_deplibs=yes
9539      export_dynamic_flag_spec='${wl}-Bexport'
9540      runpath_var='LD_RUN_PATH'
9541
9542      if test "$GCC" = yes; then
9543	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9544	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9545      else
9546	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9547	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9548      fi
9549      ;;
9550
9551    uts4*)
9552      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9553      hardcode_libdir_flag_spec='-L$libdir'
9554      hardcode_shlibpath_var=no
9555      ;;
9556
9557    *)
9558      ld_shlibs=no
9559      ;;
9560    esac
9561
9562    if test x$host_vendor = xsni; then
9563      case $host in
9564      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9565	export_dynamic_flag_spec='${wl}-Blargedynsym'
9566	;;
9567      esac
9568    fi
9569  fi
9570
9571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9572$as_echo "$ld_shlibs" >&6; }
9573test "$ld_shlibs" = no && can_build_shared=no
9574
9575with_gnu_ld=$with_gnu_ld
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591#
9592# Do we need to explicitly link libc?
9593#
9594case "x$archive_cmds_need_lc" in
9595x|xyes)
9596  # Assume -lc should be added
9597  archive_cmds_need_lc=yes
9598
9599  if test "$enable_shared" = yes && test "$GCC" = yes; then
9600    case $archive_cmds in
9601    *'~'*)
9602      # FIXME: we may have to deal with multi-command sequences.
9603      ;;
9604    '$CC '*)
9605      # Test whether the compiler implicitly links with -lc since on some
9606      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9607      # to ld, don't add -lc before -lgcc.
9608      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9609$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9610if ${lt_cv_archive_cmds_need_lc+:} false; then :
9611  $as_echo_n "(cached) " >&6
9612else
9613  $RM conftest*
9614	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9615
9616	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9617  (eval $ac_compile) 2>&5
9618  ac_status=$?
9619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9620  test $ac_status = 0; } 2>conftest.err; then
9621	  soname=conftest
9622	  lib=conftest
9623	  libobjs=conftest.$ac_objext
9624	  deplibs=
9625	  wl=$lt_prog_compiler_wl
9626	  pic_flag=$lt_prog_compiler_pic
9627	  compiler_flags=-v
9628	  linker_flags=-v
9629	  verstring=
9630	  output_objdir=.
9631	  libname=conftest
9632	  lt_save_allow_undefined_flag=$allow_undefined_flag
9633	  allow_undefined_flag=
9634	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9635  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9636  ac_status=$?
9637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9638  test $ac_status = 0; }
9639	  then
9640	    lt_cv_archive_cmds_need_lc=no
9641	  else
9642	    lt_cv_archive_cmds_need_lc=yes
9643	  fi
9644	  allow_undefined_flag=$lt_save_allow_undefined_flag
9645	else
9646	  cat conftest.err 1>&5
9647	fi
9648	$RM conftest*
9649
9650fi
9651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9652$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9653      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9654      ;;
9655    esac
9656  fi
9657  ;;
9658esac
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9817$as_echo_n "checking dynamic linker characteristics... " >&6; }
9818
9819if test "$GCC" = yes; then
9820  case $host_os in
9821    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9822    *) lt_awk_arg="/^libraries:/" ;;
9823  esac
9824  case $host_os in
9825    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9826    *) lt_sed_strip_eq="s,=/,/,g" ;;
9827  esac
9828  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9829  case $lt_search_path_spec in
9830  *\;*)
9831    # if the path contains ";" then we assume it to be the separator
9832    # otherwise default to the standard path separator (i.e. ":") - it is
9833    # assumed that no part of a normal pathname contains ";" but that should
9834    # okay in the real world where ";" in dirpaths is itself problematic.
9835    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9836    ;;
9837  *)
9838    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9839    ;;
9840  esac
9841  # Ok, now we have the path, separated by spaces, we can step through it
9842  # and add multilib dir if necessary.
9843  lt_tmp_lt_search_path_spec=
9844  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9845  for lt_sys_path in $lt_search_path_spec; do
9846    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9847      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9848    else
9849      test -d "$lt_sys_path" && \
9850	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9851    fi
9852  done
9853  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9854BEGIN {RS=" "; FS="/|\n";} {
9855  lt_foo="";
9856  lt_count=0;
9857  for (lt_i = NF; lt_i > 0; lt_i--) {
9858    if ($lt_i != "" && $lt_i != ".") {
9859      if ($lt_i == "..") {
9860        lt_count++;
9861      } else {
9862        if (lt_count == 0) {
9863          lt_foo="/" $lt_i lt_foo;
9864        } else {
9865          lt_count--;
9866        }
9867      }
9868    }
9869  }
9870  if (lt_foo != "") { lt_freq[lt_foo]++; }
9871  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9872}'`
9873  # AWK program above erroneously prepends '/' to C:/dos/paths
9874  # for these hosts.
9875  case $host_os in
9876    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9877      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9878  esac
9879  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9880else
9881  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9882fi
9883library_names_spec=
9884libname_spec='lib$name'
9885soname_spec=
9886shrext_cmds=".so"
9887postinstall_cmds=
9888postuninstall_cmds=
9889finish_cmds=
9890finish_eval=
9891shlibpath_var=
9892shlibpath_overrides_runpath=unknown
9893version_type=none
9894dynamic_linker="$host_os ld.so"
9895sys_lib_dlsearch_path_spec="/lib /usr/lib"
9896need_lib_prefix=unknown
9897hardcode_into_libs=no
9898
9899# when you set need_version to no, make sure it does not cause -set_version
9900# flags to be left without arguments
9901need_version=unknown
9902
9903case $host_os in
9904aix3*)
9905  version_type=linux
9906  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9907  shlibpath_var=LIBPATH
9908
9909  # AIX 3 has no versioning support, so we append a major version to the name.
9910  soname_spec='${libname}${release}${shared_ext}$major'
9911  ;;
9912
9913aix[4-9]*)
9914  version_type=linux
9915  need_lib_prefix=no
9916  need_version=no
9917  hardcode_into_libs=yes
9918  if test "$host_cpu" = ia64; then
9919    # AIX 5 supports IA64
9920    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9921    shlibpath_var=LD_LIBRARY_PATH
9922  else
9923    # With GCC up to 2.95.x, collect2 would create an import file
9924    # for dependence libraries.  The import file would start with
9925    # the line `#! .'.  This would cause the generated library to
9926    # depend on `.', always an invalid library.  This was fixed in
9927    # development snapshots of GCC prior to 3.0.
9928    case $host_os in
9929      aix4 | aix4.[01] | aix4.[01].*)
9930      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9931	   echo ' yes '
9932	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9933	:
9934      else
9935	can_build_shared=no
9936      fi
9937      ;;
9938    esac
9939    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9940    # soname into executable. Probably we can add versioning support to
9941    # collect2, so additional links can be useful in future.
9942    if test "$aix_use_runtimelinking" = yes; then
9943      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9944      # instead of lib<name>.a to let people know that these are not
9945      # typical AIX shared libraries.
9946      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947    else
9948      # We preserve .a as extension for shared libraries through AIX4.2
9949      # and later when we are not doing run time linking.
9950      library_names_spec='${libname}${release}.a $libname.a'
9951      soname_spec='${libname}${release}${shared_ext}$major'
9952    fi
9953    shlibpath_var=LIBPATH
9954  fi
9955  ;;
9956
9957amigaos*)
9958  case $host_cpu in
9959  powerpc)
9960    # Since July 2007 AmigaOS4 officially supports .so libraries.
9961    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9962    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9963    ;;
9964  m68k)
9965    library_names_spec='$libname.ixlibrary $libname.a'
9966    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9967    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9968    ;;
9969  esac
9970  ;;
9971
9972beos*)
9973  library_names_spec='${libname}${shared_ext}'
9974  dynamic_linker="$host_os ld.so"
9975  shlibpath_var=LIBRARY_PATH
9976  ;;
9977
9978bsdi[45]*)
9979  version_type=linux
9980  need_version=no
9981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9982  soname_spec='${libname}${release}${shared_ext}$major'
9983  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9984  shlibpath_var=LD_LIBRARY_PATH
9985  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9986  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9987  # the default ld.so.conf also contains /usr/contrib/lib and
9988  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9989  # libtool to hard-code these into programs
9990  ;;
9991
9992cygwin* | mingw* | pw32* | cegcc*)
9993  version_type=windows
9994  shrext_cmds=".dll"
9995  need_version=no
9996  need_lib_prefix=no
9997
9998  case $GCC,$cc_basename in
9999  yes,*)
10000    # gcc
10001    library_names_spec='$libname.dll.a'
10002    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10003    postinstall_cmds='base_file=`basename \${file}`~
10004      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10005      dldir=$destdir/`dirname \$dlpath`~
10006      test -d \$dldir || mkdir -p \$dldir~
10007      $install_prog $dir/$dlname \$dldir/$dlname~
10008      chmod a+x \$dldir/$dlname~
10009      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10010        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10011      fi'
10012    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10013      dlpath=$dir/\$dldll~
10014       $RM \$dlpath'
10015    shlibpath_overrides_runpath=yes
10016
10017    case $host_os in
10018    cygwin*)
10019      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10020      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10021
10022      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10023      ;;
10024    mingw* | cegcc*)
10025      # MinGW DLLs use traditional 'lib' prefix
10026      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10027      ;;
10028    pw32*)
10029      # pw32 DLLs use 'pw' prefix rather than 'lib'
10030      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10031      ;;
10032    esac
10033    dynamic_linker='Win32 ld.exe'
10034    ;;
10035
10036  *,cl*)
10037    # Native MSVC
10038    libname_spec='$name'
10039    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10040    library_names_spec='${libname}.dll.lib'
10041
10042    case $build_os in
10043    mingw*)
10044      sys_lib_search_path_spec=
10045      lt_save_ifs=$IFS
10046      IFS=';'
10047      for lt_path in $LIB
10048      do
10049        IFS=$lt_save_ifs
10050        # Let DOS variable expansion print the short 8.3 style file name.
10051        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10052        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10053      done
10054      IFS=$lt_save_ifs
10055      # Convert to MSYS style.
10056      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10057      ;;
10058    cygwin*)
10059      # Convert to unix form, then to dos form, then back to unix form
10060      # but this time dos style (no spaces!) so that the unix form looks
10061      # like /cygdrive/c/PROGRA~1:/cygdr...
10062      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10063      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10064      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10065      ;;
10066    *)
10067      sys_lib_search_path_spec="$LIB"
10068      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10069        # It is most probably a Windows format PATH.
10070        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10071      else
10072        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10073      fi
10074      # FIXME: find the short name or the path components, as spaces are
10075      # common. (e.g. "Program Files" -> "PROGRA~1")
10076      ;;
10077    esac
10078
10079    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10080    postinstall_cmds='base_file=`basename \${file}`~
10081      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10082      dldir=$destdir/`dirname \$dlpath`~
10083      test -d \$dldir || mkdir -p \$dldir~
10084      $install_prog $dir/$dlname \$dldir/$dlname'
10085    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10086      dlpath=$dir/\$dldll~
10087       $RM \$dlpath'
10088    shlibpath_overrides_runpath=yes
10089    dynamic_linker='Win32 link.exe'
10090    ;;
10091
10092  *)
10093    # Assume MSVC wrapper
10094    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10095    dynamic_linker='Win32 ld.exe'
10096    ;;
10097  esac
10098  # FIXME: first we should search . and the directory the executable is in
10099  shlibpath_var=PATH
10100  ;;
10101
10102darwin* | rhapsody*)
10103  dynamic_linker="$host_os dyld"
10104  version_type=darwin
10105  need_lib_prefix=no
10106  need_version=no
10107  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10108  soname_spec='${libname}${release}${major}$shared_ext'
10109  shlibpath_overrides_runpath=yes
10110  shlibpath_var=DYLD_LIBRARY_PATH
10111  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10112
10113  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10114  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10115  ;;
10116
10117dgux*)
10118  version_type=linux
10119  need_lib_prefix=no
10120  need_version=no
10121  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10122  soname_spec='${libname}${release}${shared_ext}$major'
10123  shlibpath_var=LD_LIBRARY_PATH
10124  ;;
10125
10126freebsd1*)
10127  dynamic_linker=no
10128  ;;
10129
10130freebsd* | dragonfly*)
10131  # DragonFly does not have aout.  When/if they implement a new
10132  # versioning mechanism, adjust this.
10133  if test -x /usr/bin/objformat; then
10134    objformat=`/usr/bin/objformat`
10135  else
10136    case $host_os in
10137    freebsd[123]*) objformat=aout ;;
10138    *) objformat=elf ;;
10139    esac
10140  fi
10141  version_type=freebsd-$objformat
10142  case $version_type in
10143    freebsd-elf*)
10144      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10145      need_version=no
10146      need_lib_prefix=no
10147      ;;
10148    freebsd-*)
10149      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10150      need_version=yes
10151      ;;
10152  esac
10153  shlibpath_var=LD_LIBRARY_PATH
10154  case $host_os in
10155  freebsd2*)
10156    shlibpath_overrides_runpath=yes
10157    ;;
10158  freebsd3.[01]* | freebsdelf3.[01]*)
10159    shlibpath_overrides_runpath=yes
10160    hardcode_into_libs=yes
10161    ;;
10162  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10163  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10164    shlibpath_overrides_runpath=no
10165    hardcode_into_libs=yes
10166    ;;
10167  *) # from 4.6 on, and DragonFly
10168    shlibpath_overrides_runpath=yes
10169    hardcode_into_libs=yes
10170    ;;
10171  esac
10172  ;;
10173
10174gnu*)
10175  version_type=linux
10176  need_lib_prefix=no
10177  need_version=no
10178  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10179  soname_spec='${libname}${release}${shared_ext}$major'
10180  shlibpath_var=LD_LIBRARY_PATH
10181  hardcode_into_libs=yes
10182  ;;
10183
10184haiku*)
10185  version_type=linux
10186  need_lib_prefix=no
10187  need_version=no
10188  dynamic_linker="$host_os runtime_loader"
10189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10190  soname_spec='${libname}${release}${shared_ext}$major'
10191  shlibpath_var=LIBRARY_PATH
10192  shlibpath_overrides_runpath=yes
10193  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10194  hardcode_into_libs=yes
10195  ;;
10196
10197hpux9* | hpux10* | hpux11*)
10198  # Give a soname corresponding to the major version so that dld.sl refuses to
10199  # link against other versions.
10200  version_type=sunos
10201  need_lib_prefix=no
10202  need_version=no
10203  case $host_cpu in
10204  ia64*)
10205    shrext_cmds='.so'
10206    hardcode_into_libs=yes
10207    dynamic_linker="$host_os dld.so"
10208    shlibpath_var=LD_LIBRARY_PATH
10209    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10210    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211    soname_spec='${libname}${release}${shared_ext}$major'
10212    if test "X$HPUX_IA64_MODE" = X32; then
10213      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10214    else
10215      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10216    fi
10217    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10218    ;;
10219  hppa*64*)
10220    shrext_cmds='.sl'
10221    hardcode_into_libs=yes
10222    dynamic_linker="$host_os dld.sl"
10223    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10224    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10225    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226    soname_spec='${libname}${release}${shared_ext}$major'
10227    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10228    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10229    ;;
10230  *)
10231    shrext_cmds='.sl'
10232    dynamic_linker="$host_os dld.sl"
10233    shlibpath_var=SHLIB_PATH
10234    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10235    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236    soname_spec='${libname}${release}${shared_ext}$major'
10237    ;;
10238  esac
10239  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10240  postinstall_cmds='chmod 555 $lib'
10241  # or fails outright, so override atomically:
10242  install_override_mode=555
10243  ;;
10244
10245interix[3-9]*)
10246  version_type=linux
10247  need_lib_prefix=no
10248  need_version=no
10249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10250  soname_spec='${libname}${release}${shared_ext}$major'
10251  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10252  shlibpath_var=LD_LIBRARY_PATH
10253  shlibpath_overrides_runpath=no
10254  hardcode_into_libs=yes
10255  ;;
10256
10257irix5* | irix6* | nonstopux*)
10258  case $host_os in
10259    nonstopux*) version_type=nonstopux ;;
10260    *)
10261	if test "$lt_cv_prog_gnu_ld" = yes; then
10262		version_type=linux
10263	else
10264		version_type=irix
10265	fi ;;
10266  esac
10267  need_lib_prefix=no
10268  need_version=no
10269  soname_spec='${libname}${release}${shared_ext}$major'
10270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10271  case $host_os in
10272  irix5* | nonstopux*)
10273    libsuff= shlibsuff=
10274    ;;
10275  *)
10276    case $LD in # libtool.m4 will add one of these switches to LD
10277    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10278      libsuff= shlibsuff= libmagic=32-bit;;
10279    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10280      libsuff=32 shlibsuff=N32 libmagic=N32;;
10281    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10282      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10283    *) libsuff= shlibsuff= libmagic=never-match;;
10284    esac
10285    ;;
10286  esac
10287  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10288  shlibpath_overrides_runpath=no
10289  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10290  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10291  hardcode_into_libs=yes
10292  ;;
10293
10294# No shared lib support for Linux oldld, aout, or coff.
10295linux*oldld* | linux*aout* | linux*coff*)
10296  dynamic_linker=no
10297  ;;
10298
10299# This must be Linux ELF.
10300linux* | k*bsd*-gnu | kopensolaris*-gnu)
10301  version_type=linux
10302  need_lib_prefix=no
10303  need_version=no
10304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305  soname_spec='${libname}${release}${shared_ext}$major'
10306  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10307  shlibpath_var=LD_LIBRARY_PATH
10308  shlibpath_overrides_runpath=no
10309
10310  # Some binutils ld are patched to set DT_RUNPATH
10311  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10312  $as_echo_n "(cached) " >&6
10313else
10314  lt_cv_shlibpath_overrides_runpath=no
10315    save_LDFLAGS=$LDFLAGS
10316    save_libdir=$libdir
10317    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10318	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10319    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320/* end confdefs.h.  */
10321
10322int
10323main ()
10324{
10325
10326  ;
10327  return 0;
10328}
10329_ACEOF
10330if ac_fn_c_try_link "$LINENO"; then :
10331  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10332  lt_cv_shlibpath_overrides_runpath=yes
10333fi
10334fi
10335rm -f core conftest.err conftest.$ac_objext \
10336    conftest$ac_exeext conftest.$ac_ext
10337    LDFLAGS=$save_LDFLAGS
10338    libdir=$save_libdir
10339
10340fi
10341
10342  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10343
10344  # This implies no fast_install, which is unacceptable.
10345  # Some rework will be needed to allow for fast_install
10346  # before this can be enabled.
10347  hardcode_into_libs=yes
10348
10349  # Append ld.so.conf contents to the search path
10350  if test -f /etc/ld.so.conf; then
10351    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10352    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10353  fi
10354
10355  # We used to test for /lib/ld.so.1 and disable shared libraries on
10356  # powerpc, because MkLinux only supported shared libraries with the
10357  # GNU dynamic linker.  Since this was broken with cross compilers,
10358  # most powerpc-linux boxes support dynamic linking these days and
10359  # people can always --disable-shared, the test was removed, and we
10360  # assume the GNU/Linux dynamic linker is in use.
10361  dynamic_linker='GNU/Linux ld.so'
10362  ;;
10363
10364netbsd*)
10365  version_type=sunos
10366  need_lib_prefix=no
10367  need_version=no
10368  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10369    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10370    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10371    dynamic_linker='NetBSD (a.out) ld.so'
10372  else
10373    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10374    soname_spec='${libname}${release}${shared_ext}$major'
10375    dynamic_linker='NetBSD ld.elf_so'
10376  fi
10377  shlibpath_var=LD_LIBRARY_PATH
10378  shlibpath_overrides_runpath=yes
10379  hardcode_into_libs=yes
10380  ;;
10381
10382newsos6)
10383  version_type=linux
10384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385  shlibpath_var=LD_LIBRARY_PATH
10386  shlibpath_overrides_runpath=yes
10387  ;;
10388
10389*nto* | *qnx*)
10390  version_type=qnx
10391  need_lib_prefix=no
10392  need_version=no
10393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394  soname_spec='${libname}${release}${shared_ext}$major'
10395  shlibpath_var=LD_LIBRARY_PATH
10396  shlibpath_overrides_runpath=no
10397  hardcode_into_libs=yes
10398  dynamic_linker='ldqnx.so'
10399  ;;
10400
10401openbsd*)
10402  version_type=sunos
10403  sys_lib_dlsearch_path_spec="/usr/lib"
10404  need_lib_prefix=no
10405  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10406  case $host_os in
10407    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10408    *)				need_version=no  ;;
10409  esac
10410  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10411  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10412  shlibpath_var=LD_LIBRARY_PATH
10413  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10414    case $host_os in
10415      openbsd2.[89] | openbsd2.[89].*)
10416	shlibpath_overrides_runpath=no
10417	;;
10418      *)
10419	shlibpath_overrides_runpath=yes
10420	;;
10421      esac
10422  else
10423    shlibpath_overrides_runpath=yes
10424  fi
10425  ;;
10426
10427os2*)
10428  libname_spec='$name'
10429  shrext_cmds=".dll"
10430  need_lib_prefix=no
10431  library_names_spec='$libname${shared_ext} $libname.a'
10432  dynamic_linker='OS/2 ld.exe'
10433  shlibpath_var=LIBPATH
10434  ;;
10435
10436osf3* | osf4* | osf5*)
10437  version_type=osf
10438  need_lib_prefix=no
10439  need_version=no
10440  soname_spec='${libname}${release}${shared_ext}$major'
10441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442  shlibpath_var=LD_LIBRARY_PATH
10443  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10444  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10445  ;;
10446
10447rdos*)
10448  dynamic_linker=no
10449  ;;
10450
10451solaris*)
10452  version_type=linux
10453  need_lib_prefix=no
10454  need_version=no
10455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456  soname_spec='${libname}${release}${shared_ext}$major'
10457  shlibpath_var=LD_LIBRARY_PATH
10458  shlibpath_overrides_runpath=yes
10459  hardcode_into_libs=yes
10460  # ldd complains unless libraries are executable
10461  postinstall_cmds='chmod +x $lib'
10462  ;;
10463
10464sunos4*)
10465  version_type=sunos
10466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10467  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10468  shlibpath_var=LD_LIBRARY_PATH
10469  shlibpath_overrides_runpath=yes
10470  if test "$with_gnu_ld" = yes; then
10471    need_lib_prefix=no
10472  fi
10473  need_version=yes
10474  ;;
10475
10476sysv4 | sysv4.3*)
10477  version_type=linux
10478  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479  soname_spec='${libname}${release}${shared_ext}$major'
10480  shlibpath_var=LD_LIBRARY_PATH
10481  case $host_vendor in
10482    sni)
10483      shlibpath_overrides_runpath=no
10484      need_lib_prefix=no
10485      runpath_var=LD_RUN_PATH
10486      ;;
10487    siemens)
10488      need_lib_prefix=no
10489      ;;
10490    motorola)
10491      need_lib_prefix=no
10492      need_version=no
10493      shlibpath_overrides_runpath=no
10494      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10495      ;;
10496  esac
10497  ;;
10498
10499sysv4*MP*)
10500  if test -d /usr/nec ;then
10501    version_type=linux
10502    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10503    soname_spec='$libname${shared_ext}.$major'
10504    shlibpath_var=LD_LIBRARY_PATH
10505  fi
10506  ;;
10507
10508sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10509  version_type=freebsd-elf
10510  need_lib_prefix=no
10511  need_version=no
10512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10513  soname_spec='${libname}${release}${shared_ext}$major'
10514  shlibpath_var=LD_LIBRARY_PATH
10515  shlibpath_overrides_runpath=yes
10516  hardcode_into_libs=yes
10517  if test "$with_gnu_ld" = yes; then
10518    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10519  else
10520    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10521    case $host_os in
10522      sco3.2v5*)
10523        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10524	;;
10525    esac
10526  fi
10527  sys_lib_dlsearch_path_spec='/usr/lib'
10528  ;;
10529
10530tpf*)
10531  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10532  version_type=linux
10533  need_lib_prefix=no
10534  need_version=no
10535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536  shlibpath_var=LD_LIBRARY_PATH
10537  shlibpath_overrides_runpath=no
10538  hardcode_into_libs=yes
10539  ;;
10540
10541uts4*)
10542  version_type=linux
10543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544  soname_spec='${libname}${release}${shared_ext}$major'
10545  shlibpath_var=LD_LIBRARY_PATH
10546  ;;
10547
10548*)
10549  dynamic_linker=no
10550  ;;
10551esac
10552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10553$as_echo "$dynamic_linker" >&6; }
10554test "$dynamic_linker" = no && can_build_shared=no
10555
10556variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10557if test "$GCC" = yes; then
10558  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10559fi
10560
10561if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10562  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10563fi
10564if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10565  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10566fi
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10660$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10661hardcode_action=
10662if test -n "$hardcode_libdir_flag_spec" ||
10663   test -n "$runpath_var" ||
10664   test "X$hardcode_automatic" = "Xyes" ; then
10665
10666  # We can hardcode non-existent directories.
10667  if test "$hardcode_direct" != no &&
10668     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10669     # have to relink, otherwise we might link with an installed library
10670     # when we should be linking with a yet-to-be-installed one
10671     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10672     test "$hardcode_minus_L" != no; then
10673    # Linking always hardcodes the temporary library directory.
10674    hardcode_action=relink
10675  else
10676    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10677    hardcode_action=immediate
10678  fi
10679else
10680  # We cannot hardcode anything, or else we can only hardcode existing
10681  # directories.
10682  hardcode_action=unsupported
10683fi
10684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10685$as_echo "$hardcode_action" >&6; }
10686
10687if test "$hardcode_action" = relink ||
10688   test "$inherit_rpath" = yes; then
10689  # Fast installation is not supported
10690  enable_fast_install=no
10691elif test "$shlibpath_overrides_runpath" = yes ||
10692     test "$enable_shared" = no; then
10693  # Fast installation is not necessary
10694  enable_fast_install=needless
10695fi
10696
10697
10698
10699
10700
10701
10702  if test "x$enable_dlopen" != xyes; then
10703  enable_dlopen=unknown
10704  enable_dlopen_self=unknown
10705  enable_dlopen_self_static=unknown
10706else
10707  lt_cv_dlopen=no
10708  lt_cv_dlopen_libs=
10709
10710  case $host_os in
10711  beos*)
10712    lt_cv_dlopen="load_add_on"
10713    lt_cv_dlopen_libs=
10714    lt_cv_dlopen_self=yes
10715    ;;
10716
10717  mingw* | pw32* | cegcc*)
10718    lt_cv_dlopen="LoadLibrary"
10719    lt_cv_dlopen_libs=
10720    ;;
10721
10722  cygwin*)
10723    lt_cv_dlopen="dlopen"
10724    lt_cv_dlopen_libs=
10725    ;;
10726
10727  darwin*)
10728  # if libdl is installed we need to link against it
10729    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10730$as_echo_n "checking for dlopen in -ldl... " >&6; }
10731if ${ac_cv_lib_dl_dlopen+:} false; then :
10732  $as_echo_n "(cached) " >&6
10733else
10734  ac_check_lib_save_LIBS=$LIBS
10735LIBS="-ldl  $LIBS"
10736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737/* end confdefs.h.  */
10738
10739/* Override any GCC internal prototype to avoid an error.
10740   Use char because int might match the return type of a GCC
10741   builtin and then its argument prototype would still apply.  */
10742#ifdef __cplusplus
10743extern "C"
10744#endif
10745char dlopen ();
10746int
10747main ()
10748{
10749return dlopen ();
10750  ;
10751  return 0;
10752}
10753_ACEOF
10754if ac_fn_c_try_link "$LINENO"; then :
10755  ac_cv_lib_dl_dlopen=yes
10756else
10757  ac_cv_lib_dl_dlopen=no
10758fi
10759rm -f core conftest.err conftest.$ac_objext \
10760    conftest$ac_exeext conftest.$ac_ext
10761LIBS=$ac_check_lib_save_LIBS
10762fi
10763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10764$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10765if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10766  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10767else
10768
10769    lt_cv_dlopen="dyld"
10770    lt_cv_dlopen_libs=
10771    lt_cv_dlopen_self=yes
10772
10773fi
10774
10775    ;;
10776
10777  *)
10778    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10779if test "x$ac_cv_func_shl_load" = xyes; then :
10780  lt_cv_dlopen="shl_load"
10781else
10782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10783$as_echo_n "checking for shl_load in -ldld... " >&6; }
10784if ${ac_cv_lib_dld_shl_load+:} false; then :
10785  $as_echo_n "(cached) " >&6
10786else
10787  ac_check_lib_save_LIBS=$LIBS
10788LIBS="-ldld  $LIBS"
10789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790/* end confdefs.h.  */
10791
10792/* Override any GCC internal prototype to avoid an error.
10793   Use char because int might match the return type of a GCC
10794   builtin and then its argument prototype would still apply.  */
10795#ifdef __cplusplus
10796extern "C"
10797#endif
10798char shl_load ();
10799int
10800main ()
10801{
10802return shl_load ();
10803  ;
10804  return 0;
10805}
10806_ACEOF
10807if ac_fn_c_try_link "$LINENO"; then :
10808  ac_cv_lib_dld_shl_load=yes
10809else
10810  ac_cv_lib_dld_shl_load=no
10811fi
10812rm -f core conftest.err conftest.$ac_objext \
10813    conftest$ac_exeext conftest.$ac_ext
10814LIBS=$ac_check_lib_save_LIBS
10815fi
10816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10817$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10818if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10819  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10820else
10821  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10822if test "x$ac_cv_func_dlopen" = xyes; then :
10823  lt_cv_dlopen="dlopen"
10824else
10825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10826$as_echo_n "checking for dlopen in -ldl... " >&6; }
10827if ${ac_cv_lib_dl_dlopen+:} false; then :
10828  $as_echo_n "(cached) " >&6
10829else
10830  ac_check_lib_save_LIBS=$LIBS
10831LIBS="-ldl  $LIBS"
10832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833/* end confdefs.h.  */
10834
10835/* Override any GCC internal prototype to avoid an error.
10836   Use char because int might match the return type of a GCC
10837   builtin and then its argument prototype would still apply.  */
10838#ifdef __cplusplus
10839extern "C"
10840#endif
10841char dlopen ();
10842int
10843main ()
10844{
10845return dlopen ();
10846  ;
10847  return 0;
10848}
10849_ACEOF
10850if ac_fn_c_try_link "$LINENO"; then :
10851  ac_cv_lib_dl_dlopen=yes
10852else
10853  ac_cv_lib_dl_dlopen=no
10854fi
10855rm -f core conftest.err conftest.$ac_objext \
10856    conftest$ac_exeext conftest.$ac_ext
10857LIBS=$ac_check_lib_save_LIBS
10858fi
10859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10860$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10861if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10862  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10863else
10864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10865$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10866if ${ac_cv_lib_svld_dlopen+:} false; then :
10867  $as_echo_n "(cached) " >&6
10868else
10869  ac_check_lib_save_LIBS=$LIBS
10870LIBS="-lsvld  $LIBS"
10871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872/* end confdefs.h.  */
10873
10874/* Override any GCC internal prototype to avoid an error.
10875   Use char because int might match the return type of a GCC
10876   builtin and then its argument prototype would still apply.  */
10877#ifdef __cplusplus
10878extern "C"
10879#endif
10880char dlopen ();
10881int
10882main ()
10883{
10884return dlopen ();
10885  ;
10886  return 0;
10887}
10888_ACEOF
10889if ac_fn_c_try_link "$LINENO"; then :
10890  ac_cv_lib_svld_dlopen=yes
10891else
10892  ac_cv_lib_svld_dlopen=no
10893fi
10894rm -f core conftest.err conftest.$ac_objext \
10895    conftest$ac_exeext conftest.$ac_ext
10896LIBS=$ac_check_lib_save_LIBS
10897fi
10898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10899$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10900if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10901  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10902else
10903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10904$as_echo_n "checking for dld_link in -ldld... " >&6; }
10905if ${ac_cv_lib_dld_dld_link+:} false; then :
10906  $as_echo_n "(cached) " >&6
10907else
10908  ac_check_lib_save_LIBS=$LIBS
10909LIBS="-ldld  $LIBS"
10910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911/* end confdefs.h.  */
10912
10913/* Override any GCC internal prototype to avoid an error.
10914   Use char because int might match the return type of a GCC
10915   builtin and then its argument prototype would still apply.  */
10916#ifdef __cplusplus
10917extern "C"
10918#endif
10919char dld_link ();
10920int
10921main ()
10922{
10923return dld_link ();
10924  ;
10925  return 0;
10926}
10927_ACEOF
10928if ac_fn_c_try_link "$LINENO"; then :
10929  ac_cv_lib_dld_dld_link=yes
10930else
10931  ac_cv_lib_dld_dld_link=no
10932fi
10933rm -f core conftest.err conftest.$ac_objext \
10934    conftest$ac_exeext conftest.$ac_ext
10935LIBS=$ac_check_lib_save_LIBS
10936fi
10937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10938$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10939if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10940  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10941fi
10942
10943
10944fi
10945
10946
10947fi
10948
10949
10950fi
10951
10952
10953fi
10954
10955
10956fi
10957
10958    ;;
10959  esac
10960
10961  if test "x$lt_cv_dlopen" != xno; then
10962    enable_dlopen=yes
10963  else
10964    enable_dlopen=no
10965  fi
10966
10967  case $lt_cv_dlopen in
10968  dlopen)
10969    save_CPPFLAGS="$CPPFLAGS"
10970    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10971
10972    save_LDFLAGS="$LDFLAGS"
10973    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10974
10975    save_LIBS="$LIBS"
10976    LIBS="$lt_cv_dlopen_libs $LIBS"
10977
10978    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10979$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10980if ${lt_cv_dlopen_self+:} false; then :
10981  $as_echo_n "(cached) " >&6
10982else
10983  	  if test "$cross_compiling" = yes; then :
10984  lt_cv_dlopen_self=cross
10985else
10986  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10987  lt_status=$lt_dlunknown
10988  cat > conftest.$ac_ext <<_LT_EOF
10989#line $LINENO "configure"
10990#include "confdefs.h"
10991
10992#if HAVE_DLFCN_H
10993#include <dlfcn.h>
10994#endif
10995
10996#include <stdio.h>
10997
10998#ifdef RTLD_GLOBAL
10999#  define LT_DLGLOBAL		RTLD_GLOBAL
11000#else
11001#  ifdef DL_GLOBAL
11002#    define LT_DLGLOBAL		DL_GLOBAL
11003#  else
11004#    define LT_DLGLOBAL		0
11005#  endif
11006#endif
11007
11008/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11009   find out it does not work in some platform. */
11010#ifndef LT_DLLAZY_OR_NOW
11011#  ifdef RTLD_LAZY
11012#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11013#  else
11014#    ifdef DL_LAZY
11015#      define LT_DLLAZY_OR_NOW		DL_LAZY
11016#    else
11017#      ifdef RTLD_NOW
11018#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11019#      else
11020#        ifdef DL_NOW
11021#          define LT_DLLAZY_OR_NOW	DL_NOW
11022#        else
11023#          define LT_DLLAZY_OR_NOW	0
11024#        endif
11025#      endif
11026#    endif
11027#  endif
11028#endif
11029
11030/* When -fvisbility=hidden is used, assume the code has been annotated
11031   correspondingly for the symbols needed.  */
11032#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11033int fnord () __attribute__((visibility("default")));
11034#endif
11035
11036int fnord () { return 42; }
11037int main ()
11038{
11039  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11040  int status = $lt_dlunknown;
11041
11042  if (self)
11043    {
11044      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11045      else
11046        {
11047	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11048          else puts (dlerror ());
11049	}
11050      /* dlclose (self); */
11051    }
11052  else
11053    puts (dlerror ());
11054
11055  return status;
11056}
11057_LT_EOF
11058  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11059  (eval $ac_link) 2>&5
11060  ac_status=$?
11061  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11062  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11063    (./conftest; exit; ) >&5 2>/dev/null
11064    lt_status=$?
11065    case x$lt_status in
11066      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11067      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11068      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11069    esac
11070  else :
11071    # compilation failed
11072    lt_cv_dlopen_self=no
11073  fi
11074fi
11075rm -fr conftest*
11076
11077
11078fi
11079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11080$as_echo "$lt_cv_dlopen_self" >&6; }
11081
11082    if test "x$lt_cv_dlopen_self" = xyes; then
11083      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11084      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11085$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11086if ${lt_cv_dlopen_self_static+:} false; then :
11087  $as_echo_n "(cached) " >&6
11088else
11089  	  if test "$cross_compiling" = yes; then :
11090  lt_cv_dlopen_self_static=cross
11091else
11092  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11093  lt_status=$lt_dlunknown
11094  cat > conftest.$ac_ext <<_LT_EOF
11095#line $LINENO "configure"
11096#include "confdefs.h"
11097
11098#if HAVE_DLFCN_H
11099#include <dlfcn.h>
11100#endif
11101
11102#include <stdio.h>
11103
11104#ifdef RTLD_GLOBAL
11105#  define LT_DLGLOBAL		RTLD_GLOBAL
11106#else
11107#  ifdef DL_GLOBAL
11108#    define LT_DLGLOBAL		DL_GLOBAL
11109#  else
11110#    define LT_DLGLOBAL		0
11111#  endif
11112#endif
11113
11114/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11115   find out it does not work in some platform. */
11116#ifndef LT_DLLAZY_OR_NOW
11117#  ifdef RTLD_LAZY
11118#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11119#  else
11120#    ifdef DL_LAZY
11121#      define LT_DLLAZY_OR_NOW		DL_LAZY
11122#    else
11123#      ifdef RTLD_NOW
11124#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11125#      else
11126#        ifdef DL_NOW
11127#          define LT_DLLAZY_OR_NOW	DL_NOW
11128#        else
11129#          define LT_DLLAZY_OR_NOW	0
11130#        endif
11131#      endif
11132#    endif
11133#  endif
11134#endif
11135
11136/* When -fvisbility=hidden is used, assume the code has been annotated
11137   correspondingly for the symbols needed.  */
11138#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11139int fnord () __attribute__((visibility("default")));
11140#endif
11141
11142int fnord () { return 42; }
11143int main ()
11144{
11145  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11146  int status = $lt_dlunknown;
11147
11148  if (self)
11149    {
11150      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11151      else
11152        {
11153	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11154          else puts (dlerror ());
11155	}
11156      /* dlclose (self); */
11157    }
11158  else
11159    puts (dlerror ());
11160
11161  return status;
11162}
11163_LT_EOF
11164  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11165  (eval $ac_link) 2>&5
11166  ac_status=$?
11167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11168  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11169    (./conftest; exit; ) >&5 2>/dev/null
11170    lt_status=$?
11171    case x$lt_status in
11172      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11173      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11174      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11175    esac
11176  else :
11177    # compilation failed
11178    lt_cv_dlopen_self_static=no
11179  fi
11180fi
11181rm -fr conftest*
11182
11183
11184fi
11185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11186$as_echo "$lt_cv_dlopen_self_static" >&6; }
11187    fi
11188
11189    CPPFLAGS="$save_CPPFLAGS"
11190    LDFLAGS="$save_LDFLAGS"
11191    LIBS="$save_LIBS"
11192    ;;
11193  esac
11194
11195  case $lt_cv_dlopen_self in
11196  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11197  *) enable_dlopen_self=unknown ;;
11198  esac
11199
11200  case $lt_cv_dlopen_self_static in
11201  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11202  *) enable_dlopen_self_static=unknown ;;
11203  esac
11204fi
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222striplib=
11223old_striplib=
11224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11225$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11226if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11227  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11228  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11230$as_echo "yes" >&6; }
11231else
11232# FIXME - insert some real tests, host_os isn't really good enough
11233  case $host_os in
11234  darwin*)
11235    if test -n "$STRIP" ; then
11236      striplib="$STRIP -x"
11237      old_striplib="$STRIP -S"
11238      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11239$as_echo "yes" >&6; }
11240    else
11241      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242$as_echo "no" >&6; }
11243    fi
11244    ;;
11245  *)
11246    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247$as_echo "no" >&6; }
11248    ;;
11249  esac
11250fi
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263  # Report which library types will actually be built
11264  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11265$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11267$as_echo "$can_build_shared" >&6; }
11268
11269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11270$as_echo_n "checking whether to build shared libraries... " >&6; }
11271  test "$can_build_shared" = "no" && enable_shared=no
11272
11273  # On AIX, shared libraries and static libraries use the same namespace, and
11274  # are all built from PIC.
11275  case $host_os in
11276  aix3*)
11277    test "$enable_shared" = yes && enable_static=no
11278    if test -n "$RANLIB"; then
11279      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11280      postinstall_cmds='$RANLIB $lib'
11281    fi
11282    ;;
11283
11284  aix[4-9]*)
11285    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11286      test "$enable_shared" = yes && enable_static=no
11287    fi
11288    ;;
11289  esac
11290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11291$as_echo "$enable_shared" >&6; }
11292
11293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11294$as_echo_n "checking whether to build static libraries... " >&6; }
11295  # Make sure either enable_shared or enable_static is yes.
11296  test "$enable_shared" = yes || enable_static=yes
11297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11298$as_echo "$enable_static" >&6; }
11299
11300
11301
11302
11303fi
11304ac_ext=c
11305ac_cpp='$CPP $CPPFLAGS'
11306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11308ac_compiler_gnu=$ac_cv_c_compiler_gnu
11309
11310CC="$lt_save_CC"
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324        ac_config_commands="$ac_config_commands libtool"
11325
11326
11327
11328
11329# Only expand once:
11330
11331
11332
11333# Require xorg-macros minimum of 1.12 for DocBook external references
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11346$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11347if ${ac_cv_prog_cc_c99+:} false; then :
11348  $as_echo_n "(cached) " >&6
11349else
11350  ac_cv_prog_cc_c99=no
11351ac_save_CC=$CC
11352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353/* end confdefs.h.  */
11354#include <stdarg.h>
11355#include <stdbool.h>
11356#include <stdlib.h>
11357#include <wchar.h>
11358#include <stdio.h>
11359
11360// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11361#define debug(...) fprintf (stderr, __VA_ARGS__)
11362#define showlist(...) puts (#__VA_ARGS__)
11363#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11364static void
11365test_varargs_macros (void)
11366{
11367  int x = 1234;
11368  int y = 5678;
11369  debug ("Flag");
11370  debug ("X = %d\n", x);
11371  showlist (The first, second, and third items.);
11372  report (x>y, "x is %d but y is %d", x, y);
11373}
11374
11375// Check long long types.
11376#define BIG64 18446744073709551615ull
11377#define BIG32 4294967295ul
11378#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11379#if !BIG_OK
11380  your preprocessor is broken;
11381#endif
11382#if BIG_OK
11383#else
11384  your preprocessor is broken;
11385#endif
11386static long long int bignum = -9223372036854775807LL;
11387static unsigned long long int ubignum = BIG64;
11388
11389struct incomplete_array
11390{
11391  int datasize;
11392  double data[];
11393};
11394
11395struct named_init {
11396  int number;
11397  const wchar_t *name;
11398  double average;
11399};
11400
11401typedef const char *ccp;
11402
11403static inline int
11404test_restrict (ccp restrict text)
11405{
11406  // See if C++-style comments work.
11407  // Iterate through items via the restricted pointer.
11408  // Also check for declarations in for loops.
11409  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11410    continue;
11411  return 0;
11412}
11413
11414// Check varargs and va_copy.
11415static void
11416test_varargs (const char *format, ...)
11417{
11418  va_list args;
11419  va_start (args, format);
11420  va_list args_copy;
11421  va_copy (args_copy, args);
11422
11423  const char *str;
11424  int number;
11425  float fnumber;
11426
11427  while (*format)
11428    {
11429      switch (*format++)
11430	{
11431	case 's': // string
11432	  str = va_arg (args_copy, const char *);
11433	  break;
11434	case 'd': // int
11435	  number = va_arg (args_copy, int);
11436	  break;
11437	case 'f': // float
11438	  fnumber = va_arg (args_copy, double);
11439	  break;
11440	default:
11441	  break;
11442	}
11443    }
11444  va_end (args_copy);
11445  va_end (args);
11446}
11447
11448int
11449main ()
11450{
11451
11452  // Check bool.
11453  _Bool success = false;
11454
11455  // Check restrict.
11456  if (test_restrict ("String literal") == 0)
11457    success = true;
11458  char *restrict newvar = "Another string";
11459
11460  // Check varargs.
11461  test_varargs ("s, d' f .", "string", 65, 34.234);
11462  test_varargs_macros ();
11463
11464  // Check flexible array members.
11465  struct incomplete_array *ia =
11466    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11467  ia->datasize = 10;
11468  for (int i = 0; i < ia->datasize; ++i)
11469    ia->data[i] = i * 1.234;
11470
11471  // Check named initializers.
11472  struct named_init ni = {
11473    .number = 34,
11474    .name = L"Test wide string",
11475    .average = 543.34343,
11476  };
11477
11478  ni.number = 58;
11479
11480  int dynamic_array[ni.number];
11481  dynamic_array[ni.number - 1] = 543;
11482
11483  // work around unused variable warnings
11484  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11485	  || dynamic_array[ni.number - 1] != 543);
11486
11487  ;
11488  return 0;
11489}
11490_ACEOF
11491for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11492do
11493  CC="$ac_save_CC $ac_arg"
11494  if ac_fn_c_try_compile "$LINENO"; then :
11495  ac_cv_prog_cc_c99=$ac_arg
11496fi
11497rm -f core conftest.err conftest.$ac_objext
11498  test "x$ac_cv_prog_cc_c99" != "xno" && break
11499done
11500rm -f conftest.$ac_ext
11501CC=$ac_save_CC
11502
11503fi
11504# AC_CACHE_VAL
11505case "x$ac_cv_prog_cc_c99" in
11506  x)
11507    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11508$as_echo "none needed" >&6; } ;;
11509  xno)
11510    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11511$as_echo "unsupported" >&6; } ;;
11512  *)
11513    CC="$CC $ac_cv_prog_cc_c99"
11514    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11515$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11516esac
11517if test "x$ac_cv_prog_cc_c99" != xno; then :
11518
11519fi
11520
11521
11522
11523
11524ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11525if test "x$ac_cv_have_decl___clang__" = xyes; then :
11526  CLANGCC="yes"
11527else
11528  CLANGCC="no"
11529fi
11530
11531ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11532if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11533  INTELCC="yes"
11534else
11535  INTELCC="no"
11536fi
11537
11538ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11539if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11540  SUNCC="yes"
11541else
11542  SUNCC="no"
11543fi
11544
11545
11546
11547
11548if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11549	if test -n "$ac_tool_prefix"; then
11550  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11551set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553$as_echo_n "checking for $ac_word... " >&6; }
11554if ${ac_cv_path_PKG_CONFIG+:} false; then :
11555  $as_echo_n "(cached) " >&6
11556else
11557  case $PKG_CONFIG in
11558  [\\/]* | ?:[\\/]*)
11559  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11560  ;;
11561  *)
11562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563for as_dir in $PATH
11564do
11565  IFS=$as_save_IFS
11566  test -z "$as_dir" && as_dir=.
11567    for ac_exec_ext in '' $ac_executable_extensions; do
11568  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11569    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11571    break 2
11572  fi
11573done
11574  done
11575IFS=$as_save_IFS
11576
11577  ;;
11578esac
11579fi
11580PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11581if test -n "$PKG_CONFIG"; then
11582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11583$as_echo "$PKG_CONFIG" >&6; }
11584else
11585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586$as_echo "no" >&6; }
11587fi
11588
11589
11590fi
11591if test -z "$ac_cv_path_PKG_CONFIG"; then
11592  ac_pt_PKG_CONFIG=$PKG_CONFIG
11593  # Extract the first word of "pkg-config", so it can be a program name with args.
11594set dummy pkg-config; ac_word=$2
11595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11596$as_echo_n "checking for $ac_word... " >&6; }
11597if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11598  $as_echo_n "(cached) " >&6
11599else
11600  case $ac_pt_PKG_CONFIG in
11601  [\\/]* | ?:[\\/]*)
11602  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11603  ;;
11604  *)
11605  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606for as_dir in $PATH
11607do
11608  IFS=$as_save_IFS
11609  test -z "$as_dir" && as_dir=.
11610    for ac_exec_ext in '' $ac_executable_extensions; do
11611  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11612    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11614    break 2
11615  fi
11616done
11617  done
11618IFS=$as_save_IFS
11619
11620  ;;
11621esac
11622fi
11623ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11624if test -n "$ac_pt_PKG_CONFIG"; then
11625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11626$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11627else
11628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629$as_echo "no" >&6; }
11630fi
11631
11632  if test "x$ac_pt_PKG_CONFIG" = x; then
11633    PKG_CONFIG=""
11634  else
11635    case $cross_compiling:$ac_tool_warned in
11636yes:)
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11639ac_tool_warned=yes ;;
11640esac
11641    PKG_CONFIG=$ac_pt_PKG_CONFIG
11642  fi
11643else
11644  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11645fi
11646
11647fi
11648if test -n "$PKG_CONFIG"; then
11649	_pkg_min_version=0.9.0
11650	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11651$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11652	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11653		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11654$as_echo "yes" >&6; }
11655	else
11656		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657$as_echo "no" >&6; }
11658		PKG_CONFIG=""
11659	fi
11660
11661fi
11662
11663
11664
11665
11666
11667if  test "x$GCC" = xyes ; then
11668    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
11669-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
11670-Wbad-function-cast -Wformat=2"
11671    case `$CC -dumpversion` in
11672    3.4.* | 4.*)
11673	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
11674	;;
11675    esac
11676else
11677    if test "x$SUNCC" = "xyes"; then
11678	CWARNFLAGS="-v"
11679    fi
11680fi
11681
11682
11683
11684# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
11685
11686
11687
11688
11689# Check whether --enable-strict-compilation was given.
11690if test "${enable_strict_compilation+set}" = set; then :
11691  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11692else
11693  STRICT_COMPILE=no
11694fi
11695
11696if test "x$GCC" = xyes ; then
11697    STRICT_CFLAGS="-pedantic -Werror"
11698    # Add -Werror=attributes if supported (gcc 4.2 & later)
11699    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11700$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
11701    save_CFLAGS="$CFLAGS"
11702    CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes"
11703    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11704/* end confdefs.h.  */
11705return 0;
11706_ACEOF
11707if ac_fn_c_try_compile "$LINENO"; then :
11708  STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11709		       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11710$as_echo "yes" >&6; }
11711else
11712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713$as_echo "no" >&6; }
11714fi
11715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11716    CFLAGS="$save_CFLAGS"
11717elif test "x$SUNCC" = "xyes"; then
11718    STRICT_CFLAGS="-errwarn"
11719elif test "x$INTELCC" = "xyes"; then
11720    STRICT_CFLAGS="-Werror"
11721fi
11722if test "x$STRICT_COMPILE" = "xyes"; then
11723    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11724fi
11725
11726
11727
11728
11729
11730cat >>confdefs.h <<_ACEOF
11731#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11732_ACEOF
11733
11734	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11735	if test "x$PVM" = "x"; then
11736		PVM="0"
11737	fi
11738
11739cat >>confdefs.h <<_ACEOF
11740#define PACKAGE_VERSION_MINOR $PVM
11741_ACEOF
11742
11743	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11744	if test "x$PVP" = "x"; then
11745		PVP="0"
11746	fi
11747
11748cat >>confdefs.h <<_ACEOF
11749#define PACKAGE_VERSION_PATCHLEVEL $PVP
11750_ACEOF
11751
11752
11753
11754CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
11755mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11756|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
11757echo 'git directory not found: installing possibly empty changelog.' >&2)"
11758
11759
11760
11761
11762macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11763INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11764mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11765|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
11766echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
11767
11768
11769
11770
11771
11772
11773if test x$APP_MAN_SUFFIX = x    ; then
11774    APP_MAN_SUFFIX=1
11775fi
11776if test x$APP_MAN_DIR = x    ; then
11777    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11778fi
11779
11780if test x$LIB_MAN_SUFFIX = x    ; then
11781    LIB_MAN_SUFFIX=3
11782fi
11783if test x$LIB_MAN_DIR = x    ; then
11784    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11785fi
11786
11787if test x$FILE_MAN_SUFFIX = x    ; then
11788    case $host_os in
11789	solaris*)	FILE_MAN_SUFFIX=4  ;;
11790	*)		FILE_MAN_SUFFIX=5  ;;
11791    esac
11792fi
11793if test x$FILE_MAN_DIR = x    ; then
11794    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11795fi
11796
11797if test x$MISC_MAN_SUFFIX = x    ; then
11798    case $host_os in
11799	solaris*)	MISC_MAN_SUFFIX=5  ;;
11800	*)		MISC_MAN_SUFFIX=7  ;;
11801    esac
11802fi
11803if test x$MISC_MAN_DIR = x    ; then
11804    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11805fi
11806
11807if test x$DRIVER_MAN_SUFFIX = x    ; then
11808    case $host_os in
11809	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
11810	*)		DRIVER_MAN_SUFFIX=4  ;;
11811    esac
11812fi
11813if test x$DRIVER_MAN_DIR = x    ; then
11814    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11815fi
11816
11817if test x$ADMIN_MAN_SUFFIX = x    ; then
11818    case $host_os in
11819	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
11820	*)		ADMIN_MAN_SUFFIX=8  ;;
11821    esac
11822fi
11823if test x$ADMIN_MAN_DIR = x    ; then
11824    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11825fi
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841XORG_MAN_PAGE="X Version 11"
11842
11843MAN_SUBSTS="\
11844	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11845	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11846	-e 's|__xservername__|Xorg|g' \
11847	-e 's|__xconfigfile__|xorg.conf|g' \
11848	-e 's|__projectroot__|\$(prefix)|g' \
11849	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11850	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11851	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11852	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11853	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11854	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11855	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11856
11857
11858
11859# Check whether --enable-silent-rules was given.
11860if test "${enable_silent_rules+set}" = set; then :
11861  enableval=$enable_silent_rules;
11862fi
11863
11864case $enable_silent_rules in
11865yes) AM_DEFAULT_VERBOSITY=0;;
11866no)  AM_DEFAULT_VERBOSITY=1;;
11867*)   AM_DEFAULT_VERBOSITY=0;;
11868esac
11869AM_BACKSLASH='\'
11870
11871
11872
11873
11874# Check whether --enable-specs was given.
11875if test "${enable_specs+set}" = set; then :
11876  enableval=$enable_specs; build_specs=$enableval
11877else
11878  build_specs=yes
11879fi
11880
11881
11882 if test x$build_specs = xyes; then
11883  ENABLE_SPECS_TRUE=
11884  ENABLE_SPECS_FALSE='#'
11885else
11886  ENABLE_SPECS_TRUE='#'
11887  ENABLE_SPECS_FALSE=
11888fi
11889
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
11891$as_echo_n "checking whether to build functional specifications... " >&6; }
11892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
11893$as_echo "$build_specs" >&6; }
11894
11895
11896
11897
11898
11899# Check whether --with-xmlto was given.
11900if test "${with_xmlto+set}" = set; then :
11901  withval=$with_xmlto; use_xmlto=$withval
11902else
11903  use_xmlto=auto
11904fi
11905
11906
11907
11908if test "x$use_xmlto" = x"auto"; then
11909   # Extract the first word of "xmlto", so it can be a program name with args.
11910set dummy xmlto; ac_word=$2
11911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11912$as_echo_n "checking for $ac_word... " >&6; }
11913if ${ac_cv_path_XMLTO+:} false; then :
11914  $as_echo_n "(cached) " >&6
11915else
11916  case $XMLTO in
11917  [\\/]* | ?:[\\/]*)
11918  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
11919  ;;
11920  *)
11921  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922for as_dir in $PATH
11923do
11924  IFS=$as_save_IFS
11925  test -z "$as_dir" && as_dir=.
11926    for ac_exec_ext in '' $ac_executable_extensions; do
11927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11928    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
11929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11930    break 2
11931  fi
11932done
11933  done
11934IFS=$as_save_IFS
11935
11936  ;;
11937esac
11938fi
11939XMLTO=$ac_cv_path_XMLTO
11940if test -n "$XMLTO"; then
11941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
11942$as_echo "$XMLTO" >&6; }
11943else
11944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945$as_echo "no" >&6; }
11946fi
11947
11948
11949   if test "x$XMLTO" = "x"; then
11950        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
11951$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
11952	have_xmlto=no
11953   else
11954        have_xmlto=yes
11955   fi
11956elif test "x$use_xmlto" = x"yes" ; then
11957   # Extract the first word of "xmlto", so it can be a program name with args.
11958set dummy xmlto; ac_word=$2
11959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11960$as_echo_n "checking for $ac_word... " >&6; }
11961if ${ac_cv_path_XMLTO+:} false; then :
11962  $as_echo_n "(cached) " >&6
11963else
11964  case $XMLTO in
11965  [\\/]* | ?:[\\/]*)
11966  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
11967  ;;
11968  *)
11969  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11970for as_dir in $PATH
11971do
11972  IFS=$as_save_IFS
11973  test -z "$as_dir" && as_dir=.
11974    for ac_exec_ext in '' $ac_executable_extensions; do
11975  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11976    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
11977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11978    break 2
11979  fi
11980done
11981  done
11982IFS=$as_save_IFS
11983
11984  ;;
11985esac
11986fi
11987XMLTO=$ac_cv_path_XMLTO
11988if test -n "$XMLTO"; then
11989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
11990$as_echo "$XMLTO" >&6; }
11991else
11992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993$as_echo "no" >&6; }
11994fi
11995
11996
11997   if test "x$XMLTO" = "x"; then
11998        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
11999   fi
12000   have_xmlto=yes
12001elif test "x$use_xmlto" = x"no" ; then
12002   if test "x$XMLTO" != "x"; then
12003      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
12004$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
12005   fi
12006   have_xmlto=no
12007else
12008   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
12009fi
12010
12011# Test for a minimum version of xmlto, if provided.
12012if test "$have_xmlto" = yes; then
12013    # scrape the xmlto version
12014    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
12015$as_echo_n "checking the xmlto version... " >&6; }
12016    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
12017    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
12018$as_echo "$xmlto_version" >&6; }
12019    as_arg_v1=$xmlto_version
12020as_arg_v2=0.0.22
12021awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12022case $? in #(
12023  1) :
12024    if test "x$use_xmlto" = xauto; then
12025            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
12026$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
12027            have_xmlto=no
12028        else
12029            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
12030        fi ;; #(
12031  0) :
12032     ;; #(
12033  2) :
12034     ;; #(
12035  *) :
12036     ;;
12037esac
12038fi
12039
12040# Test for the ability of xmlto to generate a text target
12041have_xmlto_text=no
12042cat > conftest.xml << "EOF"
12043EOF
12044if test "$have_xmlto" = yes; then :
12045  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
12046  have_xmlto_text=yes
12047else
12048  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
12049$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
12050fi
12051fi
12052rm -f conftest.xml
12053 if test $have_xmlto_text = yes; then
12054  HAVE_XMLTO_TEXT_TRUE=
12055  HAVE_XMLTO_TEXT_FALSE='#'
12056else
12057  HAVE_XMLTO_TEXT_TRUE='#'
12058  HAVE_XMLTO_TEXT_FALSE=
12059fi
12060
12061 if test "$have_xmlto" = yes; then
12062  HAVE_XMLTO_TRUE=
12063  HAVE_XMLTO_FALSE='#'
12064else
12065  HAVE_XMLTO_TRUE='#'
12066  HAVE_XMLTO_FALSE=
12067fi
12068
12069
12070
12071
12072
12073
12074# Check whether --with-fop was given.
12075if test "${with_fop+set}" = set; then :
12076  withval=$with_fop; use_fop=$withval
12077else
12078  use_fop=auto
12079fi
12080
12081
12082
12083if test "x$use_fop" = x"auto"; then
12084   # Extract the first word of "fop", so it can be a program name with args.
12085set dummy fop; ac_word=$2
12086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087$as_echo_n "checking for $ac_word... " >&6; }
12088if ${ac_cv_path_FOP+:} false; then :
12089  $as_echo_n "(cached) " >&6
12090else
12091  case $FOP in
12092  [\\/]* | ?:[\\/]*)
12093  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
12094  ;;
12095  *)
12096  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12097for as_dir in $PATH
12098do
12099  IFS=$as_save_IFS
12100  test -z "$as_dir" && as_dir=.
12101    for ac_exec_ext in '' $ac_executable_extensions; do
12102  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12103    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
12104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12105    break 2
12106  fi
12107done
12108  done
12109IFS=$as_save_IFS
12110
12111  ;;
12112esac
12113fi
12114FOP=$ac_cv_path_FOP
12115if test -n "$FOP"; then
12116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
12117$as_echo "$FOP" >&6; }
12118else
12119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120$as_echo "no" >&6; }
12121fi
12122
12123
12124   if test "x$FOP" = "x"; then
12125        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
12126$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
12127	have_fop=no
12128   else
12129        have_fop=yes
12130   fi
12131elif test "x$use_fop" = x"yes" ; then
12132   # Extract the first word of "fop", so it can be a program name with args.
12133set dummy fop; ac_word=$2
12134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12135$as_echo_n "checking for $ac_word... " >&6; }
12136if ${ac_cv_path_FOP+:} false; then :
12137  $as_echo_n "(cached) " >&6
12138else
12139  case $FOP in
12140  [\\/]* | ?:[\\/]*)
12141  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
12142  ;;
12143  *)
12144  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145for as_dir in $PATH
12146do
12147  IFS=$as_save_IFS
12148  test -z "$as_dir" && as_dir=.
12149    for ac_exec_ext in '' $ac_executable_extensions; do
12150  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12151    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
12152    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12153    break 2
12154  fi
12155done
12156  done
12157IFS=$as_save_IFS
12158
12159  ;;
12160esac
12161fi
12162FOP=$ac_cv_path_FOP
12163if test -n "$FOP"; then
12164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
12165$as_echo "$FOP" >&6; }
12166else
12167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168$as_echo "no" >&6; }
12169fi
12170
12171
12172   if test "x$FOP" = "x"; then
12173        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
12174   fi
12175   have_fop=yes
12176elif test "x$use_fop" = x"no" ; then
12177   if test "x$FOP" != "x"; then
12178      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
12179$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
12180   fi
12181   have_fop=no
12182else
12183   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
12184fi
12185 if test "$have_fop" = yes; then
12186  HAVE_FOP_TRUE=
12187  HAVE_FOP_FALSE='#'
12188else
12189  HAVE_FOP_TRUE='#'
12190  HAVE_FOP_FALSE=
12191fi
12192
12193
12194
12195
12196
12197
12198# Check whether --with-xsltproc was given.
12199if test "${with_xsltproc+set}" = set; then :
12200  withval=$with_xsltproc; use_xsltproc=$withval
12201else
12202  use_xsltproc=auto
12203fi
12204
12205
12206
12207if test "x$use_xsltproc" = x"auto"; then
12208   # Extract the first word of "xsltproc", so it can be a program name with args.
12209set dummy xsltproc; ac_word=$2
12210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12211$as_echo_n "checking for $ac_word... " >&6; }
12212if ${ac_cv_path_XSLTPROC+:} false; then :
12213  $as_echo_n "(cached) " >&6
12214else
12215  case $XSLTPROC in
12216  [\\/]* | ?:[\\/]*)
12217  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
12218  ;;
12219  *)
12220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12221for as_dir in $PATH
12222do
12223  IFS=$as_save_IFS
12224  test -z "$as_dir" && as_dir=.
12225    for ac_exec_ext in '' $ac_executable_extensions; do
12226  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12227    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
12228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12229    break 2
12230  fi
12231done
12232  done
12233IFS=$as_save_IFS
12234
12235  ;;
12236esac
12237fi
12238XSLTPROC=$ac_cv_path_XSLTPROC
12239if test -n "$XSLTPROC"; then
12240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12241$as_echo "$XSLTPROC" >&6; }
12242else
12243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12244$as_echo "no" >&6; }
12245fi
12246
12247
12248   if test "x$XSLTPROC" = "x"; then
12249        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
12250$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
12251	have_xsltproc=no
12252   else
12253        have_xsltproc=yes
12254   fi
12255elif test "x$use_xsltproc" = x"yes" ; then
12256   # Extract the first word of "xsltproc", so it can be a program name with args.
12257set dummy xsltproc; ac_word=$2
12258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12259$as_echo_n "checking for $ac_word... " >&6; }
12260if ${ac_cv_path_XSLTPROC+:} false; then :
12261  $as_echo_n "(cached) " >&6
12262else
12263  case $XSLTPROC in
12264  [\\/]* | ?:[\\/]*)
12265  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
12266  ;;
12267  *)
12268  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12269for as_dir in $PATH
12270do
12271  IFS=$as_save_IFS
12272  test -z "$as_dir" && as_dir=.
12273    for ac_exec_ext in '' $ac_executable_extensions; do
12274  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12275    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
12276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12277    break 2
12278  fi
12279done
12280  done
12281IFS=$as_save_IFS
12282
12283  ;;
12284esac
12285fi
12286XSLTPROC=$ac_cv_path_XSLTPROC
12287if test -n "$XSLTPROC"; then
12288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12289$as_echo "$XSLTPROC" >&6; }
12290else
12291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292$as_echo "no" >&6; }
12293fi
12294
12295
12296   if test "x$XSLTPROC" = "x"; then
12297        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
12298   fi
12299   have_xsltproc=yes
12300elif test "x$use_xsltproc" = x"no" ; then
12301   if test "x$XSLTPROC" != "x"; then
12302      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
12303$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
12304   fi
12305   have_xsltproc=no
12306else
12307   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
12308fi
12309
12310# Checking for minimum version is not implemented
12311# but we want to keep the interface consistent with other commands
12312
12313
12314 if test "$have_xsltproc" = yes; then
12315  HAVE_XSLTPROC_TRUE=
12316  HAVE_XSLTPROC_FALSE='#'
12317else
12318  HAVE_XSLTPROC_TRUE='#'
12319  HAVE_XSLTPROC_FALSE=
12320fi
12321
12322
12323
12324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.7" >&5
12325$as_echo_n "checking for X.Org SGML entities >= 1.7... " >&6; }
12326XORG_SGML_PATH=
12327if test -n "$PKG_CONFIG" && \
12328    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.7\""; } >&5
12329  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.7") 2>&5
12330  ac_status=$?
12331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12332  test $ac_status = 0; }; then
12333  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
12334else
12335  :
12336
12337fi
12338
12339# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
12340# the path and the name of the doc stylesheet
12341if test "x$XORG_SGML_PATH" != "x" ; then
12342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
12343$as_echo "$XORG_SGML_PATH" >&6; }
12344   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
12345   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
12346else
12347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348$as_echo "no" >&6; }
12349fi
12350
12351
12352
12353
12354 if test "x$XSL_STYLESHEET" != "x"; then
12355  HAVE_STYLESHEETS_TRUE=
12356  HAVE_STYLESHEETS_FALSE='#'
12357else
12358  HAVE_STYLESHEETS_TRUE='#'
12359  HAVE_STYLESHEETS_FALSE=
12360fi
12361
12362
12363
12364# Check whether --enable-malloc0returnsnull was given.
12365if test "${enable_malloc0returnsnull+set}" = set; then :
12366  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
12367else
12368  MALLOC_ZERO_RETURNS_NULL=auto
12369fi
12370
12371
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
12373$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
12374if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
12375	if test "$cross_compiling" = yes; then :
12376  MALLOC_ZERO_RETURNS_NULL=yes
12377else
12378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379/* end confdefs.h.  */
12380
12381#include <stdlib.h>
12382
12383int
12384main ()
12385{
12386
12387    char *m0, *r0, *c0, *p;
12388    m0 = malloc(0);
12389    p = malloc(10);
12390    r0 = realloc(p,0);
12391    c0 = calloc(0,10);
12392    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
12393
12394  ;
12395  return 0;
12396}
12397_ACEOF
12398if ac_fn_c_try_run "$LINENO"; then :
12399  MALLOC_ZERO_RETURNS_NULL=yes
12400else
12401  MALLOC_ZERO_RETURNS_NULL=no
12402fi
12403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12404  conftest.$ac_objext conftest.beam conftest.$ac_ext
12405fi
12406
12407fi
12408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
12409$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
12410
12411if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
12412	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
12413	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
12414	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
12415else
12416	MALLOC_ZERO_CFLAGS=""
12417	XMALLOC_ZERO_CFLAGS=""
12418	XTMALLOC_ZERO_CFLAGS=""
12419fi
12420
12421
12422
12423
12424
12425
12426# Determine .so library version per platform
12427# based on SharedXextRev in monolith xc/config/cf/*Lib.tmpl
12428if test "x$XEXT_SOREV" = "x" ; then
12429    case $host_os in
12430	openbsd*)	XEXT_SOREV=8:0 		;;
12431	solaris*)       XEXT_SOREV=0 		;;
12432	*)              XEXT_SOREV=6:4:0 	;;
12433    esac
12434fi
12435
12436
12437# Obtain compiler/linker options for depedencies
12438
12439pkg_failed=no
12440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
12441$as_echo_n "checking for XEXT... " >&6; }
12442
12443if test -n "$XEXT_CFLAGS"; then
12444    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
12445 elif test -n "$PKG_CONFIG"; then
12446    if test -n "$PKG_CONFIG" && \
12447    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99\""; } >&5
12448  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99") 2>&5
12449  ac_status=$?
12450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12451  test $ac_status = 0; }; then
12452  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99" 2>/dev/null`
12453else
12454  pkg_failed=yes
12455fi
12456 else
12457    pkg_failed=untried
12458fi
12459if test -n "$XEXT_LIBS"; then
12460    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
12461 elif test -n "$PKG_CONFIG"; then
12462    if test -n "$PKG_CONFIG" && \
12463    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99\""; } >&5
12464  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99") 2>&5
12465  ac_status=$?
12466  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12467  test $ac_status = 0; }; then
12468  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99" 2>/dev/null`
12469else
12470  pkg_failed=yes
12471fi
12472 else
12473    pkg_failed=untried
12474fi
12475
12476
12477
12478if test $pkg_failed = yes; then
12479
12480if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12481        _pkg_short_errors_supported=yes
12482else
12483        _pkg_short_errors_supported=no
12484fi
12485        if test $_pkg_short_errors_supported = yes; then
12486	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99" 2>&1`
12487        else
12488	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99" 2>&1`
12489        fi
12490	# Put the nasty error message in config.log where it belongs
12491	echo "$XEXT_PKG_ERRORS" >&5
12492
12493	as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99) were not met:
12494
12495$XEXT_PKG_ERRORS
12496
12497Consider adjusting the PKG_CONFIG_PATH environment variable if you
12498installed software in a non-standard prefix.
12499
12500Alternatively, you may set the environment variables XEXT_CFLAGS
12501and XEXT_LIBS to avoid the need to call pkg-config.
12502See the pkg-config man page for more details.
12503" "$LINENO" 5
12504elif test $pkg_failed = untried; then
12505	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12507as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12508is in your PATH or set the PKG_CONFIG environment variable to the full
12509path to pkg-config.
12510
12511Alternatively, you may set the environment variables XEXT_CFLAGS
12512and XEXT_LIBS to avoid the need to call pkg-config.
12513See the pkg-config man page for more details.
12514
12515To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12516See \`config.log' for more details" "$LINENO" 5; }
12517else
12518	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
12519	XEXT_LIBS=$pkg_cv_XEXT_LIBS
12520        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12521$as_echo "yes" >&6; }
12522	:
12523fi
12524
12525# Allow checking code with lint, sparse, etc.
12526
12527
12528
12529
12530
12531# Check whether --with-lint was given.
12532if test "${with_lint+set}" = set; then :
12533  withval=$with_lint; use_lint=$withval
12534else
12535  use_lint=no
12536fi
12537
12538
12539# Obtain platform specific info like program name and options
12540# The lint program on FreeBSD and NetBSD is different from the one on Solaris
12541case $host_os in
12542  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
12543	lint_name=splint
12544	lint_options="-badflag"
12545	;;
12546  *freebsd* | *netbsd*)
12547	lint_name=lint
12548	lint_options="-u -b"
12549	;;
12550  *solaris*)
12551	lint_name=lint
12552	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
12553	;;
12554esac
12555
12556# Test for the presence of the program (either guessed by the code or spelled out by the user)
12557if test "x$use_lint" = x"yes" ; then
12558   # Extract the first word of "$lint_name", so it can be a program name with args.
12559set dummy $lint_name; ac_word=$2
12560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12561$as_echo_n "checking for $ac_word... " >&6; }
12562if ${ac_cv_path_LINT+:} false; then :
12563  $as_echo_n "(cached) " >&6
12564else
12565  case $LINT in
12566  [\\/]* | ?:[\\/]*)
12567  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
12568  ;;
12569  *)
12570  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12571for as_dir in $PATH
12572do
12573  IFS=$as_save_IFS
12574  test -z "$as_dir" && as_dir=.
12575    for ac_exec_ext in '' $ac_executable_extensions; do
12576  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12577    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
12578    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12579    break 2
12580  fi
12581done
12582  done
12583IFS=$as_save_IFS
12584
12585  ;;
12586esac
12587fi
12588LINT=$ac_cv_path_LINT
12589if test -n "$LINT"; then
12590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
12591$as_echo "$LINT" >&6; }
12592else
12593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594$as_echo "no" >&6; }
12595fi
12596
12597
12598   if test "x$LINT" = "x"; then
12599        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
12600   fi
12601elif test "x$use_lint" = x"no" ; then
12602   if test "x$LINT" != "x"; then
12603      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12604$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12605   fi
12606else
12607   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12608fi
12609
12610# User supplied flags override default flags
12611if test "x$LINT_FLAGS" != "x"; then
12612   lint_options=$LINT_FLAGS
12613fi
12614
12615LINT_FLAGS=$lint_options
12616
12617 if test "x$LINT" != x; then
12618  LINT_TRUE=
12619  LINT_FALSE='#'
12620else
12621  LINT_TRUE='#'
12622  LINT_FALSE=
12623fi
12624
12625
12626
12627
12628
12629# Check whether --enable-lint-library was given.
12630if test "${enable_lint_library+set}" = set; then :
12631  enableval=$enable_lint_library; make_lint_lib=$enableval
12632else
12633  make_lint_lib=no
12634fi
12635
12636
12637if test "x$make_lint_lib" = x"yes" ; then
12638   LINTLIB=llib-lXext.ln
12639   if test "x$LINT" = "x"; then
12640        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
12641   fi
12642elif test "x$make_lint_lib" != x"no" ; then
12643   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
12644fi
12645
12646
12647 if test x$make_lint_lib != xno; then
12648  MAKE_LINT_LIB_TRUE=
12649  MAKE_LINT_LIB_FALSE='#'
12650else
12651  MAKE_LINT_LIB_TRUE='#'
12652  MAKE_LINT_LIB_FALSE=
12653fi
12654
12655
12656
12657
12658ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile specs/Makefile xext.pc"
12659
12660cat >confcache <<\_ACEOF
12661# This file is a shell script that caches the results of configure
12662# tests run on this system so they can be shared between configure
12663# scripts and configure runs, see configure's option --config-cache.
12664# It is not useful on other systems.  If it contains results you don't
12665# want to keep, you may remove or edit it.
12666#
12667# config.status only pays attention to the cache file if you give it
12668# the --recheck option to rerun configure.
12669#
12670# `ac_cv_env_foo' variables (set or unset) will be overridden when
12671# loading this file, other *unset* `ac_cv_foo' will be assigned the
12672# following values.
12673
12674_ACEOF
12675
12676# The following way of writing the cache mishandles newlines in values,
12677# but we know of no workaround that is simple, portable, and efficient.
12678# So, we kill variables containing newlines.
12679# Ultrix sh set writes to stderr and can't be redirected directly,
12680# and sets the high bit in the cache file unless we assign to the vars.
12681(
12682  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12683    eval ac_val=\$$ac_var
12684    case $ac_val in #(
12685    *${as_nl}*)
12686      case $ac_var in #(
12687      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12688$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12689      esac
12690      case $ac_var in #(
12691      _ | IFS | as_nl) ;; #(
12692      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12693      *) { eval $ac_var=; unset $ac_var;} ;;
12694      esac ;;
12695    esac
12696  done
12697
12698  (set) 2>&1 |
12699    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12700    *${as_nl}ac_space=\ *)
12701      # `set' does not quote correctly, so add quotes: double-quote
12702      # substitution turns \\\\ into \\, and sed turns \\ into \.
12703      sed -n \
12704	"s/'/'\\\\''/g;
12705	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12706      ;; #(
12707    *)
12708      # `set' quotes correctly as required by POSIX, so do not add quotes.
12709      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12710      ;;
12711    esac |
12712    sort
12713) |
12714  sed '
12715     /^ac_cv_env_/b end
12716     t clear
12717     :clear
12718     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12719     t end
12720     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12721     :end' >>confcache
12722if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12723  if test -w "$cache_file"; then
12724    if test "x$cache_file" != "x/dev/null"; then
12725      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12726$as_echo "$as_me: updating cache $cache_file" >&6;}
12727      if test ! -f "$cache_file" || test -h "$cache_file"; then
12728	cat confcache >"$cache_file"
12729      else
12730        case $cache_file in #(
12731        */* | ?:*)
12732	  mv -f confcache "$cache_file"$$ &&
12733	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12734        *)
12735	  mv -f confcache "$cache_file" ;;
12736	esac
12737      fi
12738    fi
12739  else
12740    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12741$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12742  fi
12743fi
12744rm -f confcache
12745
12746test "x$prefix" = xNONE && prefix=$ac_default_prefix
12747# Let make expand exec_prefix.
12748test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12749
12750DEFS=-DHAVE_CONFIG_H
12751
12752ac_libobjs=
12753ac_ltlibobjs=
12754U=
12755for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12756  # 1. Remove the extension, and $U if already installed.
12757  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12758  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12759  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12760  #    will be set to the directory where LIBOBJS objects are built.
12761  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12762  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12763done
12764LIBOBJS=$ac_libobjs
12765
12766LTLIBOBJS=$ac_ltlibobjs
12767
12768
12769 if test -n "$EXEEXT"; then
12770  am__EXEEXT_TRUE=
12771  am__EXEEXT_FALSE='#'
12772else
12773  am__EXEEXT_TRUE='#'
12774  am__EXEEXT_FALSE=
12775fi
12776
12777if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12778  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12779Usually this means the macro was only invoked conditionally." "$LINENO" 5
12780fi
12781if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12782  as_fn_error $? "conditional \"AMDEP\" was never defined.
12783Usually this means the macro was only invoked conditionally." "$LINENO" 5
12784fi
12785if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12786  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12787Usually this means the macro was only invoked conditionally." "$LINENO" 5
12788fi
12789if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
12790  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
12791Usually this means the macro was only invoked conditionally." "$LINENO" 5
12792fi
12793if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
12794  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
12795Usually this means the macro was only invoked conditionally." "$LINENO" 5
12796fi
12797if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
12798  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
12799Usually this means the macro was only invoked conditionally." "$LINENO" 5
12800fi
12801if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
12802  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
12803Usually this means the macro was only invoked conditionally." "$LINENO" 5
12804fi
12805if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
12806  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
12807Usually this means the macro was only invoked conditionally." "$LINENO" 5
12808fi
12809if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
12810  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
12811Usually this means the macro was only invoked conditionally." "$LINENO" 5
12812fi
12813if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12814  as_fn_error $? "conditional \"LINT\" was never defined.
12815Usually this means the macro was only invoked conditionally." "$LINENO" 5
12816fi
12817if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
12818  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
12819Usually this means the macro was only invoked conditionally." "$LINENO" 5
12820fi
12821
12822: "${CONFIG_STATUS=./config.status}"
12823ac_write_fail=0
12824ac_clean_files_save=$ac_clean_files
12825ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12826{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12827$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12828as_write_fail=0
12829cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12830#! $SHELL
12831# Generated by $as_me.
12832# Run this file to recreate the current configuration.
12833# Compiler output produced by configure, useful for debugging
12834# configure, is in config.log if it exists.
12835
12836debug=false
12837ac_cs_recheck=false
12838ac_cs_silent=false
12839
12840SHELL=\${CONFIG_SHELL-$SHELL}
12841export SHELL
12842_ASEOF
12843cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12844## -------------------- ##
12845## M4sh Initialization. ##
12846## -------------------- ##
12847
12848# Be more Bourne compatible
12849DUALCASE=1; export DUALCASE # for MKS sh
12850if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12851  emulate sh
12852  NULLCMD=:
12853  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12854  # is contrary to our usage.  Disable this feature.
12855  alias -g '${1+"$@"}'='"$@"'
12856  setopt NO_GLOB_SUBST
12857else
12858  case `(set -o) 2>/dev/null` in #(
12859  *posix*) :
12860    set -o posix ;; #(
12861  *) :
12862     ;;
12863esac
12864fi
12865
12866
12867as_nl='
12868'
12869export as_nl
12870# Printing a long string crashes Solaris 7 /usr/bin/printf.
12871as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12872as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12873as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12874# Prefer a ksh shell builtin over an external printf program on Solaris,
12875# but without wasting forks for bash or zsh.
12876if test -z "$BASH_VERSION$ZSH_VERSION" \
12877    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12878  as_echo='print -r --'
12879  as_echo_n='print -rn --'
12880elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12881  as_echo='printf %s\n'
12882  as_echo_n='printf %s'
12883else
12884  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12885    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12886    as_echo_n='/usr/ucb/echo -n'
12887  else
12888    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12889    as_echo_n_body='eval
12890      arg=$1;
12891      case $arg in #(
12892      *"$as_nl"*)
12893	expr "X$arg" : "X\\(.*\\)$as_nl";
12894	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12895      esac;
12896      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12897    '
12898    export as_echo_n_body
12899    as_echo_n='sh -c $as_echo_n_body as_echo'
12900  fi
12901  export as_echo_body
12902  as_echo='sh -c $as_echo_body as_echo'
12903fi
12904
12905# The user is always right.
12906if test "${PATH_SEPARATOR+set}" != set; then
12907  PATH_SEPARATOR=:
12908  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12909    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12910      PATH_SEPARATOR=';'
12911  }
12912fi
12913
12914
12915# IFS
12916# We need space, tab and new line, in precisely that order.  Quoting is
12917# there to prevent editors from complaining about space-tab.
12918# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12919# splitting by setting IFS to empty value.)
12920IFS=" ""	$as_nl"
12921
12922# Find who we are.  Look in the path if we contain no directory separator.
12923as_myself=
12924case $0 in #((
12925  *[\\/]* ) as_myself=$0 ;;
12926  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927for as_dir in $PATH
12928do
12929  IFS=$as_save_IFS
12930  test -z "$as_dir" && as_dir=.
12931    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12932  done
12933IFS=$as_save_IFS
12934
12935     ;;
12936esac
12937# We did not find ourselves, most probably we were run as `sh COMMAND'
12938# in which case we are not to be found in the path.
12939if test "x$as_myself" = x; then
12940  as_myself=$0
12941fi
12942if test ! -f "$as_myself"; then
12943  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12944  exit 1
12945fi
12946
12947# Unset variables that we do not need and which cause bugs (e.g. in
12948# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12949# suppresses any "Segmentation fault" message there.  '((' could
12950# trigger a bug in pdksh 5.2.14.
12951for as_var in BASH_ENV ENV MAIL MAILPATH
12952do eval test x\${$as_var+set} = xset \
12953  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12954done
12955PS1='$ '
12956PS2='> '
12957PS4='+ '
12958
12959# NLS nuisances.
12960LC_ALL=C
12961export LC_ALL
12962LANGUAGE=C
12963export LANGUAGE
12964
12965# CDPATH.
12966(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12967
12968
12969# as_fn_error STATUS ERROR [LINENO LOG_FD]
12970# ----------------------------------------
12971# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12972# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12973# script with STATUS, using 1 if that was 0.
12974as_fn_error ()
12975{
12976  as_status=$1; test $as_status -eq 0 && as_status=1
12977  if test "$4"; then
12978    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12979    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12980  fi
12981  $as_echo "$as_me: error: $2" >&2
12982  as_fn_exit $as_status
12983} # as_fn_error
12984
12985
12986# as_fn_set_status STATUS
12987# -----------------------
12988# Set $? to STATUS, without forking.
12989as_fn_set_status ()
12990{
12991  return $1
12992} # as_fn_set_status
12993
12994# as_fn_exit STATUS
12995# -----------------
12996# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12997as_fn_exit ()
12998{
12999  set +e
13000  as_fn_set_status $1
13001  exit $1
13002} # as_fn_exit
13003
13004# as_fn_unset VAR
13005# ---------------
13006# Portably unset VAR.
13007as_fn_unset ()
13008{
13009  { eval $1=; unset $1;}
13010}
13011as_unset=as_fn_unset
13012# as_fn_append VAR VALUE
13013# ----------------------
13014# Append the text in VALUE to the end of the definition contained in VAR. Take
13015# advantage of any shell optimizations that allow amortized linear growth over
13016# repeated appends, instead of the typical quadratic growth present in naive
13017# implementations.
13018if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13019  eval 'as_fn_append ()
13020  {
13021    eval $1+=\$2
13022  }'
13023else
13024  as_fn_append ()
13025  {
13026    eval $1=\$$1\$2
13027  }
13028fi # as_fn_append
13029
13030# as_fn_arith ARG...
13031# ------------------
13032# Perform arithmetic evaluation on the ARGs, and store the result in the
13033# global $as_val. Take advantage of shells that can avoid forks. The arguments
13034# must be portable across $(()) and expr.
13035if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13036  eval 'as_fn_arith ()
13037  {
13038    as_val=$(( $* ))
13039  }'
13040else
13041  as_fn_arith ()
13042  {
13043    as_val=`expr "$@" || test $? -eq 1`
13044  }
13045fi # as_fn_arith
13046
13047
13048if expr a : '\(a\)' >/dev/null 2>&1 &&
13049   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13050  as_expr=expr
13051else
13052  as_expr=false
13053fi
13054
13055if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13056  as_basename=basename
13057else
13058  as_basename=false
13059fi
13060
13061if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13062  as_dirname=dirname
13063else
13064  as_dirname=false
13065fi
13066
13067as_me=`$as_basename -- "$0" ||
13068$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13069	 X"$0" : 'X\(//\)$' \| \
13070	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13071$as_echo X/"$0" |
13072    sed '/^.*\/\([^/][^/]*\)\/*$/{
13073	    s//\1/
13074	    q
13075	  }
13076	  /^X\/\(\/\/\)$/{
13077	    s//\1/
13078	    q
13079	  }
13080	  /^X\/\(\/\).*/{
13081	    s//\1/
13082	    q
13083	  }
13084	  s/.*/./; q'`
13085
13086# Avoid depending upon Character Ranges.
13087as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13088as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13089as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13090as_cr_digits='0123456789'
13091as_cr_alnum=$as_cr_Letters$as_cr_digits
13092
13093ECHO_C= ECHO_N= ECHO_T=
13094case `echo -n x` in #(((((
13095-n*)
13096  case `echo 'xy\c'` in
13097  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13098  xy)  ECHO_C='\c';;
13099  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13100       ECHO_T='	';;
13101  esac;;
13102*)
13103  ECHO_N='-n';;
13104esac
13105
13106rm -f conf$$ conf$$.exe conf$$.file
13107if test -d conf$$.dir; then
13108  rm -f conf$$.dir/conf$$.file
13109else
13110  rm -f conf$$.dir
13111  mkdir conf$$.dir 2>/dev/null
13112fi
13113if (echo >conf$$.file) 2>/dev/null; then
13114  if ln -s conf$$.file conf$$ 2>/dev/null; then
13115    as_ln_s='ln -s'
13116    # ... but there are two gotchas:
13117    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13118    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13119    # In both cases, we have to default to `cp -p'.
13120    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13121      as_ln_s='cp -p'
13122  elif ln conf$$.file conf$$ 2>/dev/null; then
13123    as_ln_s=ln
13124  else
13125    as_ln_s='cp -p'
13126  fi
13127else
13128  as_ln_s='cp -p'
13129fi
13130rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13131rmdir conf$$.dir 2>/dev/null
13132
13133
13134# as_fn_mkdir_p
13135# -------------
13136# Create "$as_dir" as a directory, including parents if necessary.
13137as_fn_mkdir_p ()
13138{
13139
13140  case $as_dir in #(
13141  -*) as_dir=./$as_dir;;
13142  esac
13143  test -d "$as_dir" || eval $as_mkdir_p || {
13144    as_dirs=
13145    while :; do
13146      case $as_dir in #(
13147      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13148      *) as_qdir=$as_dir;;
13149      esac
13150      as_dirs="'$as_qdir' $as_dirs"
13151      as_dir=`$as_dirname -- "$as_dir" ||
13152$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13153	 X"$as_dir" : 'X\(//\)[^/]' \| \
13154	 X"$as_dir" : 'X\(//\)$' \| \
13155	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13156$as_echo X"$as_dir" |
13157    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13158	    s//\1/
13159	    q
13160	  }
13161	  /^X\(\/\/\)[^/].*/{
13162	    s//\1/
13163	    q
13164	  }
13165	  /^X\(\/\/\)$/{
13166	    s//\1/
13167	    q
13168	  }
13169	  /^X\(\/\).*/{
13170	    s//\1/
13171	    q
13172	  }
13173	  s/.*/./; q'`
13174      test -d "$as_dir" && break
13175    done
13176    test -z "$as_dirs" || eval "mkdir $as_dirs"
13177  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13178
13179
13180} # as_fn_mkdir_p
13181if mkdir -p . 2>/dev/null; then
13182  as_mkdir_p='mkdir -p "$as_dir"'
13183else
13184  test -d ./-p && rmdir ./-p
13185  as_mkdir_p=false
13186fi
13187
13188if test -x / >/dev/null 2>&1; then
13189  as_test_x='test -x'
13190else
13191  if ls -dL / >/dev/null 2>&1; then
13192    as_ls_L_option=L
13193  else
13194    as_ls_L_option=
13195  fi
13196  as_test_x='
13197    eval sh -c '\''
13198      if test -d "$1"; then
13199	test -d "$1/.";
13200      else
13201	case $1 in #(
13202	-*)set "./$1";;
13203	esac;
13204	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13205	???[sx]*):;;*)false;;esac;fi
13206    '\'' sh
13207  '
13208fi
13209as_executable_p=$as_test_x
13210
13211# Sed expression to map a string onto a valid CPP name.
13212as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13213
13214# Sed expression to map a string onto a valid variable name.
13215as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13216
13217
13218exec 6>&1
13219## ----------------------------------- ##
13220## Main body of $CONFIG_STATUS script. ##
13221## ----------------------------------- ##
13222_ASEOF
13223test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13224
13225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13226# Save the log message, to keep $0 and so on meaningful, and to
13227# report actual input values of CONFIG_FILES etc. instead of their
13228# values after options handling.
13229ac_log="
13230This file was extended by libXext $as_me 1.3.0, which was
13231generated by GNU Autoconf 2.68.  Invocation command line was
13232
13233  CONFIG_FILES    = $CONFIG_FILES
13234  CONFIG_HEADERS  = $CONFIG_HEADERS
13235  CONFIG_LINKS    = $CONFIG_LINKS
13236  CONFIG_COMMANDS = $CONFIG_COMMANDS
13237  $ $0 $@
13238
13239on `(hostname || uname -n) 2>/dev/null | sed 1q`
13240"
13241
13242_ACEOF
13243
13244case $ac_config_files in *"
13245"*) set x $ac_config_files; shift; ac_config_files=$*;;
13246esac
13247
13248case $ac_config_headers in *"
13249"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13250esac
13251
13252
13253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13254# Files that config.status was made for.
13255config_files="$ac_config_files"
13256config_headers="$ac_config_headers"
13257config_commands="$ac_config_commands"
13258
13259_ACEOF
13260
13261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13262ac_cs_usage="\
13263\`$as_me' instantiates files and other configuration actions
13264from templates according to the current configuration.  Unless the files
13265and actions are specified as TAGs, all are instantiated by default.
13266
13267Usage: $0 [OPTION]... [TAG]...
13268
13269  -h, --help       print this help, then exit
13270  -V, --version    print version number and configuration settings, then exit
13271      --config     print configuration, then exit
13272  -q, --quiet, --silent
13273                   do not print progress messages
13274  -d, --debug      don't remove temporary files
13275      --recheck    update $as_me by reconfiguring in the same conditions
13276      --file=FILE[:TEMPLATE]
13277                   instantiate the configuration file FILE
13278      --header=FILE[:TEMPLATE]
13279                   instantiate the configuration header FILE
13280
13281Configuration files:
13282$config_files
13283
13284Configuration headers:
13285$config_headers
13286
13287Configuration commands:
13288$config_commands
13289
13290Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
13291
13292_ACEOF
13293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13294ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13295ac_cs_version="\\
13296libXext config.status 1.3.0
13297configured by $0, generated by GNU Autoconf 2.68,
13298  with options \\"\$ac_cs_config\\"
13299
13300Copyright (C) 2010 Free Software Foundation, Inc.
13301This config.status script is free software; the Free Software Foundation
13302gives unlimited permission to copy, distribute and modify it."
13303
13304ac_pwd='$ac_pwd'
13305srcdir='$srcdir'
13306INSTALL='$INSTALL'
13307MKDIR_P='$MKDIR_P'
13308AWK='$AWK'
13309test -n "\$AWK" || AWK=awk
13310_ACEOF
13311
13312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13313# The default lists apply if the user does not specify any file.
13314ac_need_defaults=:
13315while test $# != 0
13316do
13317  case $1 in
13318  --*=?*)
13319    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13320    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13321    ac_shift=:
13322    ;;
13323  --*=)
13324    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13325    ac_optarg=
13326    ac_shift=:
13327    ;;
13328  *)
13329    ac_option=$1
13330    ac_optarg=$2
13331    ac_shift=shift
13332    ;;
13333  esac
13334
13335  case $ac_option in
13336  # Handling of the options.
13337  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13338    ac_cs_recheck=: ;;
13339  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13340    $as_echo "$ac_cs_version"; exit ;;
13341  --config | --confi | --conf | --con | --co | --c )
13342    $as_echo "$ac_cs_config"; exit ;;
13343  --debug | --debu | --deb | --de | --d | -d )
13344    debug=: ;;
13345  --file | --fil | --fi | --f )
13346    $ac_shift
13347    case $ac_optarg in
13348    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13349    '') as_fn_error $? "missing file argument" ;;
13350    esac
13351    as_fn_append CONFIG_FILES " '$ac_optarg'"
13352    ac_need_defaults=false;;
13353  --header | --heade | --head | --hea )
13354    $ac_shift
13355    case $ac_optarg in
13356    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13357    esac
13358    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13359    ac_need_defaults=false;;
13360  --he | --h)
13361    # Conflict between --help and --header
13362    as_fn_error $? "ambiguous option: \`$1'
13363Try \`$0 --help' for more information.";;
13364  --help | --hel | -h )
13365    $as_echo "$ac_cs_usage"; exit ;;
13366  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13367  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13368    ac_cs_silent=: ;;
13369
13370  # This is an error.
13371  -*) as_fn_error $? "unrecognized option: \`$1'
13372Try \`$0 --help' for more information." ;;
13373
13374  *) as_fn_append ac_config_targets " $1"
13375     ac_need_defaults=false ;;
13376
13377  esac
13378  shift
13379done
13380
13381ac_configure_extra_args=
13382
13383if $ac_cs_silent; then
13384  exec 6>/dev/null
13385  ac_configure_extra_args="$ac_configure_extra_args --silent"
13386fi
13387
13388_ACEOF
13389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13390if \$ac_cs_recheck; then
13391  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13392  shift
13393  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13394  CONFIG_SHELL='$SHELL'
13395  export CONFIG_SHELL
13396  exec "\$@"
13397fi
13398
13399_ACEOF
13400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13401exec 5>>config.log
13402{
13403  echo
13404  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13405## Running $as_me. ##
13406_ASBOX
13407  $as_echo "$ac_log"
13408} >&5
13409
13410_ACEOF
13411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13412#
13413# INIT-COMMANDS
13414#
13415AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13416
13417
13418# The HP-UX ksh and POSIX shell print the target directory to stdout
13419# if CDPATH is set.
13420(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13421
13422sed_quote_subst='$sed_quote_subst'
13423double_quote_subst='$double_quote_subst'
13424delay_variable_subst='$delay_variable_subst'
13425macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13426macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13427enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13428enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13429pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13430enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13431SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13432ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13433host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13434host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13435host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13436build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13437build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13438build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13439SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13440Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13441GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13442EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13443FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13444LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13445NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13446LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13447max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13448ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13449exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13450lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13451lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13452lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13453lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13454lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13455reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13456reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13457OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13458deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13459file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13460file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13461want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13462DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13463sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13464AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13465AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13466archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13467STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13468RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13469old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13470old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13471old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13472lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13473CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13474CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13475compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13476GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13477lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13478lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13479lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13480lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13481nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13482lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13483objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13484MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13485lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13486lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13487lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13488lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13489lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13490need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13491MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13492DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13493NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13494LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13495OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13496OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13497libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13498shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13499extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13500archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13501enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13502export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13503whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13504compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13505old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13506old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13507archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13508archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13509module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13510module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13511with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13512allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13513no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13514hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13515hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13516hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13517hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13518hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13519hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13520hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13521hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13522inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13523link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13524always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13525export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13526exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13527include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13528prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13529postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13530file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13531variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13532need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13533need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13534version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13535runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13536shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13537shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13538libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13539library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13540soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13541install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13542postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13543postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13544finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13545finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13546hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13547sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13548sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13549hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13550enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13551enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13552enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13553old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13554striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13555
13556LTCC='$LTCC'
13557LTCFLAGS='$LTCFLAGS'
13558compiler='$compiler_DEFAULT'
13559
13560# A function that is used when there is no print builtin or printf.
13561func_fallback_echo ()
13562{
13563  eval 'cat <<_LTECHO_EOF
13564\$1
13565_LTECHO_EOF'
13566}
13567
13568# Quote evaled strings.
13569for var in SHELL \
13570ECHO \
13571SED \
13572GREP \
13573EGREP \
13574FGREP \
13575LD \
13576NM \
13577LN_S \
13578lt_SP2NL \
13579lt_NL2SP \
13580reload_flag \
13581OBJDUMP \
13582deplibs_check_method \
13583file_magic_cmd \
13584file_magic_glob \
13585want_nocaseglob \
13586DLLTOOL \
13587sharedlib_from_linklib_cmd \
13588AR \
13589AR_FLAGS \
13590archiver_list_spec \
13591STRIP \
13592RANLIB \
13593CC \
13594CFLAGS \
13595compiler \
13596lt_cv_sys_global_symbol_pipe \
13597lt_cv_sys_global_symbol_to_cdecl \
13598lt_cv_sys_global_symbol_to_c_name_address \
13599lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13600nm_file_list_spec \
13601lt_prog_compiler_no_builtin_flag \
13602lt_prog_compiler_pic \
13603lt_prog_compiler_wl \
13604lt_prog_compiler_static \
13605lt_cv_prog_compiler_c_o \
13606need_locks \
13607MANIFEST_TOOL \
13608DSYMUTIL \
13609NMEDIT \
13610LIPO \
13611OTOOL \
13612OTOOL64 \
13613shrext_cmds \
13614export_dynamic_flag_spec \
13615whole_archive_flag_spec \
13616compiler_needs_object \
13617with_gnu_ld \
13618allow_undefined_flag \
13619no_undefined_flag \
13620hardcode_libdir_flag_spec \
13621hardcode_libdir_flag_spec_ld \
13622hardcode_libdir_separator \
13623exclude_expsyms \
13624include_expsyms \
13625file_list_spec \
13626variables_saved_for_relink \
13627libname_spec \
13628library_names_spec \
13629soname_spec \
13630install_override_mode \
13631finish_eval \
13632old_striplib \
13633striplib; do
13634    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13635    *[\\\\\\\`\\"\\\$]*)
13636      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13637      ;;
13638    *)
13639      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13640      ;;
13641    esac
13642done
13643
13644# Double-quote double-evaled strings.
13645for var in reload_cmds \
13646old_postinstall_cmds \
13647old_postuninstall_cmds \
13648old_archive_cmds \
13649extract_expsyms_cmds \
13650old_archive_from_new_cmds \
13651old_archive_from_expsyms_cmds \
13652archive_cmds \
13653archive_expsym_cmds \
13654module_cmds \
13655module_expsym_cmds \
13656export_symbols_cmds \
13657prelink_cmds \
13658postlink_cmds \
13659postinstall_cmds \
13660postuninstall_cmds \
13661finish_cmds \
13662sys_lib_search_path_spec \
13663sys_lib_dlsearch_path_spec; do
13664    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13665    *[\\\\\\\`\\"\\\$]*)
13666      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13667      ;;
13668    *)
13669      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13670      ;;
13671    esac
13672done
13673
13674ac_aux_dir='$ac_aux_dir'
13675xsi_shell='$xsi_shell'
13676lt_shell_append='$lt_shell_append'
13677
13678# See if we are running on zsh, and set the options which allow our
13679# commands through without removal of \ escapes INIT.
13680if test -n "\${ZSH_VERSION+set}" ; then
13681   setopt NO_GLOB_SUBST
13682fi
13683
13684
13685    PACKAGE='$PACKAGE'
13686    VERSION='$VERSION'
13687    TIMESTAMP='$TIMESTAMP'
13688    RM='$RM'
13689    ofile='$ofile'
13690
13691
13692
13693
13694_ACEOF
13695
13696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13697
13698# Handling of arguments.
13699for ac_config_target in $ac_config_targets
13700do
13701  case $ac_config_target in
13702    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13703    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13704    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13705    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13706    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13707    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13708    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
13709    "xext.pc") CONFIG_FILES="$CONFIG_FILES xext.pc" ;;
13710
13711  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13712  esac
13713done
13714
13715
13716# If the user did not use the arguments to specify the items to instantiate,
13717# then the envvar interface is used.  Set only those that are not.
13718# We use the long form for the default assignment because of an extremely
13719# bizarre bug on SunOS 4.1.3.
13720if $ac_need_defaults; then
13721  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13722  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13723  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13724fi
13725
13726# Have a temporary directory for convenience.  Make it in the build tree
13727# simply because there is no reason against having it here, and in addition,
13728# creating and moving files from /tmp can sometimes cause problems.
13729# Hook for its removal unless debugging.
13730# Note that there is a small window in which the directory will not be cleaned:
13731# after its creation but before its name has been assigned to `$tmp'.
13732$debug ||
13733{
13734  tmp= ac_tmp=
13735  trap 'exit_status=$?
13736  : "${ac_tmp:=$tmp}"
13737  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13738' 0
13739  trap 'as_fn_exit 1' 1 2 13 15
13740}
13741# Create a (secure) tmp directory for tmp files.
13742
13743{
13744  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13745  test -d "$tmp"
13746}  ||
13747{
13748  tmp=./conf$$-$RANDOM
13749  (umask 077 && mkdir "$tmp")
13750} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13751ac_tmp=$tmp
13752
13753# Set up the scripts for CONFIG_FILES section.
13754# No need to generate them if there are no CONFIG_FILES.
13755# This happens for instance with `./config.status config.h'.
13756if test -n "$CONFIG_FILES"; then
13757
13758
13759ac_cr=`echo X | tr X '\015'`
13760# On cygwin, bash can eat \r inside `` if the user requested igncr.
13761# But we know of no other shell where ac_cr would be empty at this
13762# point, so we can use a bashism as a fallback.
13763if test "x$ac_cr" = x; then
13764  eval ac_cr=\$\'\\r\'
13765fi
13766ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13767if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13768  ac_cs_awk_cr='\\r'
13769else
13770  ac_cs_awk_cr=$ac_cr
13771fi
13772
13773echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13774_ACEOF
13775
13776
13777{
13778  echo "cat >conf$$subs.awk <<_ACEOF" &&
13779  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13780  echo "_ACEOF"
13781} >conf$$subs.sh ||
13782  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13783ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13784ac_delim='%!_!# '
13785for ac_last_try in false false false false false :; do
13786  . ./conf$$subs.sh ||
13787    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13788
13789  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13790  if test $ac_delim_n = $ac_delim_num; then
13791    break
13792  elif $ac_last_try; then
13793    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13794  else
13795    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13796  fi
13797done
13798rm -f conf$$subs.sh
13799
13800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13801cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13802_ACEOF
13803sed -n '
13804h
13805s/^/S["/; s/!.*/"]=/
13806p
13807g
13808s/^[^!]*!//
13809:repl
13810t repl
13811s/'"$ac_delim"'$//
13812t delim
13813:nl
13814h
13815s/\(.\{148\}\)..*/\1/
13816t more1
13817s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13818p
13819n
13820b repl
13821:more1
13822s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13823p
13824g
13825s/.\{148\}//
13826t nl
13827:delim
13828h
13829s/\(.\{148\}\)..*/\1/
13830t more2
13831s/["\\]/\\&/g; s/^/"/; s/$/"/
13832p
13833b
13834:more2
13835s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13836p
13837g
13838s/.\{148\}//
13839t delim
13840' <conf$$subs.awk | sed '
13841/^[^""]/{
13842  N
13843  s/\n//
13844}
13845' >>$CONFIG_STATUS || ac_write_fail=1
13846rm -f conf$$subs.awk
13847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13848_ACAWK
13849cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13850  for (key in S) S_is_set[key] = 1
13851  FS = ""
13852
13853}
13854{
13855  line = $ 0
13856  nfields = split(line, field, "@")
13857  substed = 0
13858  len = length(field[1])
13859  for (i = 2; i < nfields; i++) {
13860    key = field[i]
13861    keylen = length(key)
13862    if (S_is_set[key]) {
13863      value = S[key]
13864      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13865      len += length(value) + length(field[++i])
13866      substed = 1
13867    } else
13868      len += 1 + keylen
13869  }
13870
13871  print line
13872}
13873
13874_ACAWK
13875_ACEOF
13876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13877if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13878  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13879else
13880  cat
13881fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13882  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13883_ACEOF
13884
13885# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13886# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13887# trailing colons and then remove the whole line if VPATH becomes empty
13888# (actually we leave an empty line to preserve line numbers).
13889if test "x$srcdir" = x.; then
13890  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13891h
13892s///
13893s/^/:/
13894s/[	 ]*$/:/
13895s/:\$(srcdir):/:/g
13896s/:\${srcdir}:/:/g
13897s/:@srcdir@:/:/g
13898s/^:*//
13899s/:*$//
13900x
13901s/\(=[	 ]*\).*/\1/
13902G
13903s/\n//
13904s/^[^=]*=[	 ]*$//
13905}'
13906fi
13907
13908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13909fi # test -n "$CONFIG_FILES"
13910
13911# Set up the scripts for CONFIG_HEADERS section.
13912# No need to generate them if there are no CONFIG_HEADERS.
13913# This happens for instance with `./config.status Makefile'.
13914if test -n "$CONFIG_HEADERS"; then
13915cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13916BEGIN {
13917_ACEOF
13918
13919# Transform confdefs.h into an awk script `defines.awk', embedded as
13920# here-document in config.status, that substitutes the proper values into
13921# config.h.in to produce config.h.
13922
13923# Create a delimiter string that does not exist in confdefs.h, to ease
13924# handling of long lines.
13925ac_delim='%!_!# '
13926for ac_last_try in false false :; do
13927  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13928  if test -z "$ac_tt"; then
13929    break
13930  elif $ac_last_try; then
13931    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13932  else
13933    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13934  fi
13935done
13936
13937# For the awk script, D is an array of macro values keyed by name,
13938# likewise P contains macro parameters if any.  Preserve backslash
13939# newline sequences.
13940
13941ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13942sed -n '
13943s/.\{148\}/&'"$ac_delim"'/g
13944t rset
13945:rset
13946s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13947t def
13948d
13949:def
13950s/\\$//
13951t bsnl
13952s/["\\]/\\&/g
13953s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13954D["\1"]=" \3"/p
13955s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13956d
13957:bsnl
13958s/["\\]/\\&/g
13959s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13960D["\1"]=" \3\\\\\\n"\\/p
13961t cont
13962s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13963t cont
13964d
13965:cont
13966n
13967s/.\{148\}/&'"$ac_delim"'/g
13968t clear
13969:clear
13970s/\\$//
13971t bsnlc
13972s/["\\]/\\&/g; s/^/"/; s/$/"/p
13973d
13974:bsnlc
13975s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13976b cont
13977' <confdefs.h | sed '
13978s/'"$ac_delim"'/"\\\
13979"/g' >>$CONFIG_STATUS || ac_write_fail=1
13980
13981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13982  for (key in D) D_is_set[key] = 1
13983  FS = ""
13984}
13985/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13986  line = \$ 0
13987  split(line, arg, " ")
13988  if (arg[1] == "#") {
13989    defundef = arg[2]
13990    mac1 = arg[3]
13991  } else {
13992    defundef = substr(arg[1], 2)
13993    mac1 = arg[2]
13994  }
13995  split(mac1, mac2, "(") #)
13996  macro = mac2[1]
13997  prefix = substr(line, 1, index(line, defundef) - 1)
13998  if (D_is_set[macro]) {
13999    # Preserve the white space surrounding the "#".
14000    print prefix "define", macro P[macro] D[macro]
14001    next
14002  } else {
14003    # Replace #undef with comments.  This is necessary, for example,
14004    # in the case of _POSIX_SOURCE, which is predefined and required
14005    # on some systems where configure will not decide to define it.
14006    if (defundef == "undef") {
14007      print "/*", prefix defundef, macro, "*/"
14008      next
14009    }
14010  }
14011}
14012{ print }
14013_ACAWK
14014_ACEOF
14015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14016  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14017fi # test -n "$CONFIG_HEADERS"
14018
14019
14020eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14021shift
14022for ac_tag
14023do
14024  case $ac_tag in
14025  :[FHLC]) ac_mode=$ac_tag; continue;;
14026  esac
14027  case $ac_mode$ac_tag in
14028  :[FHL]*:*);;
14029  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14030  :[FH]-) ac_tag=-:-;;
14031  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14032  esac
14033  ac_save_IFS=$IFS
14034  IFS=:
14035  set x $ac_tag
14036  IFS=$ac_save_IFS
14037  shift
14038  ac_file=$1
14039  shift
14040
14041  case $ac_mode in
14042  :L) ac_source=$1;;
14043  :[FH])
14044    ac_file_inputs=
14045    for ac_f
14046    do
14047      case $ac_f in
14048      -) ac_f="$ac_tmp/stdin";;
14049      *) # Look for the file first in the build tree, then in the source tree
14050	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14051	 # because $ac_f cannot contain `:'.
14052	 test -f "$ac_f" ||
14053	   case $ac_f in
14054	   [\\/$]*) false;;
14055	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14056	   esac ||
14057	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14058      esac
14059      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14060      as_fn_append ac_file_inputs " '$ac_f'"
14061    done
14062
14063    # Let's still pretend it is `configure' which instantiates (i.e., don't
14064    # use $as_me), people would be surprised to read:
14065    #    /* config.h.  Generated by config.status.  */
14066    configure_input='Generated from '`
14067	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14068	`' by configure.'
14069    if test x"$ac_file" != x-; then
14070      configure_input="$ac_file.  $configure_input"
14071      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14072$as_echo "$as_me: creating $ac_file" >&6;}
14073    fi
14074    # Neutralize special characters interpreted by sed in replacement strings.
14075    case $configure_input in #(
14076    *\&* | *\|* | *\\* )
14077       ac_sed_conf_input=`$as_echo "$configure_input" |
14078       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14079    *) ac_sed_conf_input=$configure_input;;
14080    esac
14081
14082    case $ac_tag in
14083    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14084      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14085    esac
14086    ;;
14087  esac
14088
14089  ac_dir=`$as_dirname -- "$ac_file" ||
14090$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14091	 X"$ac_file" : 'X\(//\)[^/]' \| \
14092	 X"$ac_file" : 'X\(//\)$' \| \
14093	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14094$as_echo X"$ac_file" |
14095    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14096	    s//\1/
14097	    q
14098	  }
14099	  /^X\(\/\/\)[^/].*/{
14100	    s//\1/
14101	    q
14102	  }
14103	  /^X\(\/\/\)$/{
14104	    s//\1/
14105	    q
14106	  }
14107	  /^X\(\/\).*/{
14108	    s//\1/
14109	    q
14110	  }
14111	  s/.*/./; q'`
14112  as_dir="$ac_dir"; as_fn_mkdir_p
14113  ac_builddir=.
14114
14115case "$ac_dir" in
14116.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14117*)
14118  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14119  # A ".." for each directory in $ac_dir_suffix.
14120  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14121  case $ac_top_builddir_sub in
14122  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14123  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14124  esac ;;
14125esac
14126ac_abs_top_builddir=$ac_pwd
14127ac_abs_builddir=$ac_pwd$ac_dir_suffix
14128# for backward compatibility:
14129ac_top_builddir=$ac_top_build_prefix
14130
14131case $srcdir in
14132  .)  # We are building in place.
14133    ac_srcdir=.
14134    ac_top_srcdir=$ac_top_builddir_sub
14135    ac_abs_top_srcdir=$ac_pwd ;;
14136  [\\/]* | ?:[\\/]* )  # Absolute name.
14137    ac_srcdir=$srcdir$ac_dir_suffix;
14138    ac_top_srcdir=$srcdir
14139    ac_abs_top_srcdir=$srcdir ;;
14140  *) # Relative name.
14141    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14142    ac_top_srcdir=$ac_top_build_prefix$srcdir
14143    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14144esac
14145ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14146
14147
14148  case $ac_mode in
14149  :F)
14150  #
14151  # CONFIG_FILE
14152  #
14153
14154  case $INSTALL in
14155  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14156  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14157  esac
14158  ac_MKDIR_P=$MKDIR_P
14159  case $MKDIR_P in
14160  [\\/$]* | ?:[\\/]* ) ;;
14161  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14162  esac
14163_ACEOF
14164
14165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14166# If the template does not know about datarootdir, expand it.
14167# FIXME: This hack should be removed a few years after 2.60.
14168ac_datarootdir_hack=; ac_datarootdir_seen=
14169ac_sed_dataroot='
14170/datarootdir/ {
14171  p
14172  q
14173}
14174/@datadir@/p
14175/@docdir@/p
14176/@infodir@/p
14177/@localedir@/p
14178/@mandir@/p'
14179case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14180*datarootdir*) ac_datarootdir_seen=yes;;
14181*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14182  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14183$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14184_ACEOF
14185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14186  ac_datarootdir_hack='
14187  s&@datadir@&$datadir&g
14188  s&@docdir@&$docdir&g
14189  s&@infodir@&$infodir&g
14190  s&@localedir@&$localedir&g
14191  s&@mandir@&$mandir&g
14192  s&\\\${datarootdir}&$datarootdir&g' ;;
14193esac
14194_ACEOF
14195
14196# Neutralize VPATH when `$srcdir' = `.'.
14197# Shell code in configure.ac might set extrasub.
14198# FIXME: do we really want to maintain this feature?
14199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14200ac_sed_extra="$ac_vpsub
14201$extrasub
14202_ACEOF
14203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14204:t
14205/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14206s|@configure_input@|$ac_sed_conf_input|;t t
14207s&@top_builddir@&$ac_top_builddir_sub&;t t
14208s&@top_build_prefix@&$ac_top_build_prefix&;t t
14209s&@srcdir@&$ac_srcdir&;t t
14210s&@abs_srcdir@&$ac_abs_srcdir&;t t
14211s&@top_srcdir@&$ac_top_srcdir&;t t
14212s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14213s&@builddir@&$ac_builddir&;t t
14214s&@abs_builddir@&$ac_abs_builddir&;t t
14215s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14216s&@INSTALL@&$ac_INSTALL&;t t
14217s&@MKDIR_P@&$ac_MKDIR_P&;t t
14218$ac_datarootdir_hack
14219"
14220eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14221  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14222
14223test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14224  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14225  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14226      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14227  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14228which seems to be undefined.  Please make sure it is defined" >&5
14229$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14230which seems to be undefined.  Please make sure it is defined" >&2;}
14231
14232  rm -f "$ac_tmp/stdin"
14233  case $ac_file in
14234  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14235  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14236  esac \
14237  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14238 ;;
14239  :H)
14240  #
14241  # CONFIG_HEADER
14242  #
14243  if test x"$ac_file" != x-; then
14244    {
14245      $as_echo "/* $configure_input  */" \
14246      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14247    } >"$ac_tmp/config.h" \
14248      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14249    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14250      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14251$as_echo "$as_me: $ac_file is unchanged" >&6;}
14252    else
14253      rm -f "$ac_file"
14254      mv "$ac_tmp/config.h" "$ac_file" \
14255	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14256    fi
14257  else
14258    $as_echo "/* $configure_input  */" \
14259      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14260      || as_fn_error $? "could not create -" "$LINENO" 5
14261  fi
14262# Compute "$ac_file"'s index in $config_headers.
14263_am_arg="$ac_file"
14264_am_stamp_count=1
14265for _am_header in $config_headers :; do
14266  case $_am_header in
14267    $_am_arg | $_am_arg:* )
14268      break ;;
14269    * )
14270      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14271  esac
14272done
14273echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14274$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14275	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14276	 X"$_am_arg" : 'X\(//\)$' \| \
14277	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14278$as_echo X"$_am_arg" |
14279    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14280	    s//\1/
14281	    q
14282	  }
14283	  /^X\(\/\/\)[^/].*/{
14284	    s//\1/
14285	    q
14286	  }
14287	  /^X\(\/\/\)$/{
14288	    s//\1/
14289	    q
14290	  }
14291	  /^X\(\/\).*/{
14292	    s//\1/
14293	    q
14294	  }
14295	  s/.*/./; q'`/stamp-h$_am_stamp_count
14296 ;;
14297
14298  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14299$as_echo "$as_me: executing $ac_file commands" >&6;}
14300 ;;
14301  esac
14302
14303
14304  case $ac_file$ac_mode in
14305    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14306  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14307  # are listed without --file.  Let's play safe and only enable the eval
14308  # if we detect the quoting.
14309  case $CONFIG_FILES in
14310  *\'*) eval set x "$CONFIG_FILES" ;;
14311  *)   set x $CONFIG_FILES ;;
14312  esac
14313  shift
14314  for mf
14315  do
14316    # Strip MF so we end up with the name of the file.
14317    mf=`echo "$mf" | sed -e 's/:.*$//'`
14318    # Check whether this is an Automake generated Makefile or not.
14319    # We used to match only the files named `Makefile.in', but
14320    # some people rename them; so instead we look at the file content.
14321    # Grep'ing the first line is not enough: some people post-process
14322    # each Makefile.in and add a new line on top of each file to say so.
14323    # Grep'ing the whole file is not good either: AIX grep has a line
14324    # limit of 2048, but all sed's we know have understand at least 4000.
14325    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14326      dirpart=`$as_dirname -- "$mf" ||
14327$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14328	 X"$mf" : 'X\(//\)[^/]' \| \
14329	 X"$mf" : 'X\(//\)$' \| \
14330	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14331$as_echo X"$mf" |
14332    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14333	    s//\1/
14334	    q
14335	  }
14336	  /^X\(\/\/\)[^/].*/{
14337	    s//\1/
14338	    q
14339	  }
14340	  /^X\(\/\/\)$/{
14341	    s//\1/
14342	    q
14343	  }
14344	  /^X\(\/\).*/{
14345	    s//\1/
14346	    q
14347	  }
14348	  s/.*/./; q'`
14349    else
14350      continue
14351    fi
14352    # Extract the definition of DEPDIR, am__include, and am__quote
14353    # from the Makefile without running `make'.
14354    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14355    test -z "$DEPDIR" && continue
14356    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14357    test -z "am__include" && continue
14358    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14359    # When using ansi2knr, U may be empty or an underscore; expand it
14360    U=`sed -n 's/^U = //p' < "$mf"`
14361    # Find all dependency output files, they are included files with
14362    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14363    # simplest approach to changing $(DEPDIR) to its actual value in the
14364    # expansion.
14365    for file in `sed -n "
14366      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14367	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14368      # Make sure the directory exists.
14369      test -f "$dirpart/$file" && continue
14370      fdir=`$as_dirname -- "$file" ||
14371$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14372	 X"$file" : 'X\(//\)[^/]' \| \
14373	 X"$file" : 'X\(//\)$' \| \
14374	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14375$as_echo X"$file" |
14376    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14377	    s//\1/
14378	    q
14379	  }
14380	  /^X\(\/\/\)[^/].*/{
14381	    s//\1/
14382	    q
14383	  }
14384	  /^X\(\/\/\)$/{
14385	    s//\1/
14386	    q
14387	  }
14388	  /^X\(\/\).*/{
14389	    s//\1/
14390	    q
14391	  }
14392	  s/.*/./; q'`
14393      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14394      # echo "creating $dirpart/$file"
14395      echo '# dummy' > "$dirpart/$file"
14396    done
14397  done
14398}
14399 ;;
14400    "libtool":C)
14401
14402    # See if we are running on zsh, and set the options which allow our
14403    # commands through without removal of \ escapes.
14404    if test -n "${ZSH_VERSION+set}" ; then
14405      setopt NO_GLOB_SUBST
14406    fi
14407
14408    cfgfile="${ofile}T"
14409    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14410    $RM "$cfgfile"
14411
14412    cat <<_LT_EOF >> "$cfgfile"
14413#! $SHELL
14414
14415# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14416# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14417# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14418# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14419#
14420#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14421#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14422#                 Inc.
14423#   Written by Gordon Matzigkeit, 1996
14424#
14425#   This file is part of GNU Libtool.
14426#
14427# GNU Libtool is free software; you can redistribute it and/or
14428# modify it under the terms of the GNU General Public License as
14429# published by the Free Software Foundation; either version 2 of
14430# the License, or (at your option) any later version.
14431#
14432# As a special exception to the GNU General Public License,
14433# if you distribute this file as part of a program or library that
14434# is built using GNU Libtool, you may include this file under the
14435# same distribution terms that you use for the rest of that program.
14436#
14437# GNU Libtool is distributed in the hope that it will be useful,
14438# but WITHOUT ANY WARRANTY; without even the implied warranty of
14439# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14440# GNU General Public License for more details.
14441#
14442# You should have received a copy of the GNU General Public License
14443# along with GNU Libtool; see the file COPYING.  If not, a copy
14444# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14445# obtained by writing to the Free Software Foundation, Inc.,
14446# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14447
14448
14449# The names of the tagged configurations supported by this script.
14450available_tags=""
14451
14452# ### BEGIN LIBTOOL CONFIG
14453
14454# Which release of libtool.m4 was used?
14455macro_version=$macro_version
14456macro_revision=$macro_revision
14457
14458# Whether or not to build shared libraries.
14459build_libtool_libs=$enable_shared
14460
14461# Whether or not to build static libraries.
14462build_old_libs=$enable_static
14463
14464# What type of objects to build.
14465pic_mode=$pic_mode
14466
14467# Whether or not to optimize for fast installation.
14468fast_install=$enable_fast_install
14469
14470# Shell to use when invoking shell scripts.
14471SHELL=$lt_SHELL
14472
14473# An echo program that protects backslashes.
14474ECHO=$lt_ECHO
14475
14476# The host system.
14477host_alias=$host_alias
14478host=$host
14479host_os=$host_os
14480
14481# The build system.
14482build_alias=$build_alias
14483build=$build
14484build_os=$build_os
14485
14486# A sed program that does not truncate output.
14487SED=$lt_SED
14488
14489# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14490Xsed="\$SED -e 1s/^X//"
14491
14492# A grep program that handles long lines.
14493GREP=$lt_GREP
14494
14495# An ERE matcher.
14496EGREP=$lt_EGREP
14497
14498# A literal string matcher.
14499FGREP=$lt_FGREP
14500
14501# A BSD- or MS-compatible name lister.
14502NM=$lt_NM
14503
14504# Whether we need soft or hard links.
14505LN_S=$lt_LN_S
14506
14507# What is the maximum length of a command?
14508max_cmd_len=$max_cmd_len
14509
14510# Object file suffix (normally "o").
14511objext=$ac_objext
14512
14513# Executable file suffix (normally "").
14514exeext=$exeext
14515
14516# whether the shell understands "unset".
14517lt_unset=$lt_unset
14518
14519# turn spaces into newlines.
14520SP2NL=$lt_lt_SP2NL
14521
14522# turn newlines into spaces.
14523NL2SP=$lt_lt_NL2SP
14524
14525# convert \$build file names to \$host format.
14526to_host_file_cmd=$lt_cv_to_host_file_cmd
14527
14528# convert \$build files to toolchain format.
14529to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14530
14531# An object symbol dumper.
14532OBJDUMP=$lt_OBJDUMP
14533
14534# Method to check whether dependent libraries are shared objects.
14535deplibs_check_method=$lt_deplibs_check_method
14536
14537# Command to use when deplibs_check_method = "file_magic".
14538file_magic_cmd=$lt_file_magic_cmd
14539
14540# How to find potential files when deplibs_check_method = "file_magic".
14541file_magic_glob=$lt_file_magic_glob
14542
14543# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14544want_nocaseglob=$lt_want_nocaseglob
14545
14546# DLL creation program.
14547DLLTOOL=$lt_DLLTOOL
14548
14549# Command to associate shared and link libraries.
14550sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14551
14552# The archiver.
14553AR=$lt_AR
14554
14555# Flags to create an archive.
14556AR_FLAGS=$lt_AR_FLAGS
14557
14558# How to feed a file listing to the archiver.
14559archiver_list_spec=$lt_archiver_list_spec
14560
14561# A symbol stripping program.
14562STRIP=$lt_STRIP
14563
14564# Commands used to install an old-style archive.
14565RANLIB=$lt_RANLIB
14566old_postinstall_cmds=$lt_old_postinstall_cmds
14567old_postuninstall_cmds=$lt_old_postuninstall_cmds
14568
14569# Whether to use a lock for old archive extraction.
14570lock_old_archive_extraction=$lock_old_archive_extraction
14571
14572# A C compiler.
14573LTCC=$lt_CC
14574
14575# LTCC compiler flags.
14576LTCFLAGS=$lt_CFLAGS
14577
14578# Take the output of nm and produce a listing of raw symbols and C names.
14579global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14580
14581# Transform the output of nm in a proper C declaration.
14582global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14583
14584# Transform the output of nm in a C name address pair.
14585global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14586
14587# Transform the output of nm in a C name address pair when lib prefix is needed.
14588global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14589
14590# Specify filename containing input files for \$NM.
14591nm_file_list_spec=$lt_nm_file_list_spec
14592
14593# The root where to search for dependent libraries,and in which our libraries should be installed.
14594lt_sysroot=$lt_sysroot
14595
14596# The name of the directory that contains temporary libtool files.
14597objdir=$objdir
14598
14599# Used to examine libraries when file_magic_cmd begins with "file".
14600MAGIC_CMD=$MAGIC_CMD
14601
14602# Must we lock files when doing compilation?
14603need_locks=$lt_need_locks
14604
14605# Manifest tool.
14606MANIFEST_TOOL=$lt_MANIFEST_TOOL
14607
14608# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14609DSYMUTIL=$lt_DSYMUTIL
14610
14611# Tool to change global to local symbols on Mac OS X.
14612NMEDIT=$lt_NMEDIT
14613
14614# Tool to manipulate fat objects and archives on Mac OS X.
14615LIPO=$lt_LIPO
14616
14617# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14618OTOOL=$lt_OTOOL
14619
14620# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14621OTOOL64=$lt_OTOOL64
14622
14623# Old archive suffix (normally "a").
14624libext=$libext
14625
14626# Shared library suffix (normally ".so").
14627shrext_cmds=$lt_shrext_cmds
14628
14629# The commands to extract the exported symbol list from a shared archive.
14630extract_expsyms_cmds=$lt_extract_expsyms_cmds
14631
14632# Variables whose values should be saved in libtool wrapper scripts and
14633# restored at link time.
14634variables_saved_for_relink=$lt_variables_saved_for_relink
14635
14636# Do we need the "lib" prefix for modules?
14637need_lib_prefix=$need_lib_prefix
14638
14639# Do we need a version for libraries?
14640need_version=$need_version
14641
14642# Library versioning type.
14643version_type=$version_type
14644
14645# Shared library runtime path variable.
14646runpath_var=$runpath_var
14647
14648# Shared library path variable.
14649shlibpath_var=$shlibpath_var
14650
14651# Is shlibpath searched before the hard-coded library search path?
14652shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14653
14654# Format of library name prefix.
14655libname_spec=$lt_libname_spec
14656
14657# List of archive names.  First name is the real one, the rest are links.
14658# The last name is the one that the linker finds with -lNAME
14659library_names_spec=$lt_library_names_spec
14660
14661# The coded name of the library, if different from the real name.
14662soname_spec=$lt_soname_spec
14663
14664# Permission mode override for installation of shared libraries.
14665install_override_mode=$lt_install_override_mode
14666
14667# Command to use after installation of a shared archive.
14668postinstall_cmds=$lt_postinstall_cmds
14669
14670# Command to use after uninstallation of a shared archive.
14671postuninstall_cmds=$lt_postuninstall_cmds
14672
14673# Commands used to finish a libtool library installation in a directory.
14674finish_cmds=$lt_finish_cmds
14675
14676# As "finish_cmds", except a single script fragment to be evaled but
14677# not shown.
14678finish_eval=$lt_finish_eval
14679
14680# Whether we should hardcode library paths into libraries.
14681hardcode_into_libs=$hardcode_into_libs
14682
14683# Compile-time system search path for libraries.
14684sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14685
14686# Run-time system search path for libraries.
14687sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14688
14689# Whether dlopen is supported.
14690dlopen_support=$enable_dlopen
14691
14692# Whether dlopen of programs is supported.
14693dlopen_self=$enable_dlopen_self
14694
14695# Whether dlopen of statically linked programs is supported.
14696dlopen_self_static=$enable_dlopen_self_static
14697
14698# Commands to strip libraries.
14699old_striplib=$lt_old_striplib
14700striplib=$lt_striplib
14701
14702
14703# The linker used to build libraries.
14704LD=$lt_LD
14705
14706# How to create reloadable object files.
14707reload_flag=$lt_reload_flag
14708reload_cmds=$lt_reload_cmds
14709
14710# Commands used to build an old-style archive.
14711old_archive_cmds=$lt_old_archive_cmds
14712
14713# A language specific compiler.
14714CC=$lt_compiler
14715
14716# Is the compiler the GNU compiler?
14717with_gcc=$GCC
14718
14719# Compiler flag to turn off builtin functions.
14720no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14721
14722# Additional compiler flags for building library objects.
14723pic_flag=$lt_lt_prog_compiler_pic
14724
14725# How to pass a linker flag through the compiler.
14726wl=$lt_lt_prog_compiler_wl
14727
14728# Compiler flag to prevent dynamic linking.
14729link_static_flag=$lt_lt_prog_compiler_static
14730
14731# Does compiler simultaneously support -c and -o options?
14732compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14733
14734# Whether or not to add -lc for building shared libraries.
14735build_libtool_need_lc=$archive_cmds_need_lc
14736
14737# Whether or not to disallow shared libs when runtime libs are static.
14738allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14739
14740# Compiler flag to allow reflexive dlopens.
14741export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14742
14743# Compiler flag to generate shared objects directly from archives.
14744whole_archive_flag_spec=$lt_whole_archive_flag_spec
14745
14746# Whether the compiler copes with passing no objects directly.
14747compiler_needs_object=$lt_compiler_needs_object
14748
14749# Create an old-style archive from a shared archive.
14750old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14751
14752# Create a temporary old-style archive to link instead of a shared archive.
14753old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14754
14755# Commands used to build a shared archive.
14756archive_cmds=$lt_archive_cmds
14757archive_expsym_cmds=$lt_archive_expsym_cmds
14758
14759# Commands used to build a loadable module if different from building
14760# a shared archive.
14761module_cmds=$lt_module_cmds
14762module_expsym_cmds=$lt_module_expsym_cmds
14763
14764# Whether we are building with GNU ld or not.
14765with_gnu_ld=$lt_with_gnu_ld
14766
14767# Flag that allows shared libraries with undefined symbols to be built.
14768allow_undefined_flag=$lt_allow_undefined_flag
14769
14770# Flag that enforces no undefined symbols.
14771no_undefined_flag=$lt_no_undefined_flag
14772
14773# Flag to hardcode \$libdir into a binary during linking.
14774# This must work even if \$libdir does not exist
14775hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14776
14777# If ld is used when linking, flag to hardcode \$libdir into a binary
14778# during linking.  This must work even if \$libdir does not exist.
14779hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14780
14781# Whether we need a single "-rpath" flag with a separated argument.
14782hardcode_libdir_separator=$lt_hardcode_libdir_separator
14783
14784# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14785# DIR into the resulting binary.
14786hardcode_direct=$hardcode_direct
14787
14788# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14789# DIR into the resulting binary and the resulting library dependency is
14790# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14791# library is relocated.
14792hardcode_direct_absolute=$hardcode_direct_absolute
14793
14794# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14795# into the resulting binary.
14796hardcode_minus_L=$hardcode_minus_L
14797
14798# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14799# into the resulting binary.
14800hardcode_shlibpath_var=$hardcode_shlibpath_var
14801
14802# Set to "yes" if building a shared library automatically hardcodes DIR
14803# into the library and all subsequent libraries and executables linked
14804# against it.
14805hardcode_automatic=$hardcode_automatic
14806
14807# Set to yes if linker adds runtime paths of dependent libraries
14808# to runtime path list.
14809inherit_rpath=$inherit_rpath
14810
14811# Whether libtool must link a program against all its dependency libraries.
14812link_all_deplibs=$link_all_deplibs
14813
14814# Set to "yes" if exported symbols are required.
14815always_export_symbols=$always_export_symbols
14816
14817# The commands to list exported symbols.
14818export_symbols_cmds=$lt_export_symbols_cmds
14819
14820# Symbols that should not be listed in the preloaded symbols.
14821exclude_expsyms=$lt_exclude_expsyms
14822
14823# Symbols that must always be exported.
14824include_expsyms=$lt_include_expsyms
14825
14826# Commands necessary for linking programs (against libraries) with templates.
14827prelink_cmds=$lt_prelink_cmds
14828
14829# Commands necessary for finishing linking programs.
14830postlink_cmds=$lt_postlink_cmds
14831
14832# Specify filename containing input files.
14833file_list_spec=$lt_file_list_spec
14834
14835# How to hardcode a shared library path into an executable.
14836hardcode_action=$hardcode_action
14837
14838# ### END LIBTOOL CONFIG
14839
14840_LT_EOF
14841
14842  case $host_os in
14843  aix3*)
14844    cat <<\_LT_EOF >> "$cfgfile"
14845# AIX sometimes has problems with the GCC collect2 program.  For some
14846# reason, if we set the COLLECT_NAMES environment variable, the problems
14847# vanish in a puff of smoke.
14848if test "X${COLLECT_NAMES+set}" != Xset; then
14849  COLLECT_NAMES=
14850  export COLLECT_NAMES
14851fi
14852_LT_EOF
14853    ;;
14854  esac
14855
14856
14857ltmain="$ac_aux_dir/ltmain.sh"
14858
14859
14860  # We use sed instead of cat because bash on DJGPP gets confused if
14861  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14862  # text mode, it properly converts lines to CR/LF.  This bash problem
14863  # is reportedly fixed, but why not run on old versions too?
14864  sed '$q' "$ltmain" >> "$cfgfile" \
14865     || (rm -f "$cfgfile"; exit 1)
14866
14867  if test x"$xsi_shell" = xyes; then
14868  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14869func_dirname ()\
14870{\
14871\    case ${1} in\
14872\      */*) func_dirname_result="${1%/*}${2}" ;;\
14873\      *  ) func_dirname_result="${3}" ;;\
14874\    esac\
14875} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14876  && mv -f "$cfgfile.tmp" "$cfgfile" \
14877    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14878test 0 -eq $? || _lt_function_replace_fail=:
14879
14880
14881  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14882func_basename ()\
14883{\
14884\    func_basename_result="${1##*/}"\
14885} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14886  && mv -f "$cfgfile.tmp" "$cfgfile" \
14887    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14888test 0 -eq $? || _lt_function_replace_fail=:
14889
14890
14891  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14892func_dirname_and_basename ()\
14893{\
14894\    case ${1} in\
14895\      */*) func_dirname_result="${1%/*}${2}" ;;\
14896\      *  ) func_dirname_result="${3}" ;;\
14897\    esac\
14898\    func_basename_result="${1##*/}"\
14899} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14900  && mv -f "$cfgfile.tmp" "$cfgfile" \
14901    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14902test 0 -eq $? || _lt_function_replace_fail=:
14903
14904
14905  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14906func_stripname ()\
14907{\
14908\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14909\    # positional parameters, so assign one to ordinary parameter first.\
14910\    func_stripname_result=${3}\
14911\    func_stripname_result=${func_stripname_result#"${1}"}\
14912\    func_stripname_result=${func_stripname_result%"${2}"}\
14913} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14914  && mv -f "$cfgfile.tmp" "$cfgfile" \
14915    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14916test 0 -eq $? || _lt_function_replace_fail=:
14917
14918
14919  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14920func_split_long_opt ()\
14921{\
14922\    func_split_long_opt_name=${1%%=*}\
14923\    func_split_long_opt_arg=${1#*=}\
14924} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14925  && mv -f "$cfgfile.tmp" "$cfgfile" \
14926    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14927test 0 -eq $? || _lt_function_replace_fail=:
14928
14929
14930  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14931func_split_short_opt ()\
14932{\
14933\    func_split_short_opt_arg=${1#??}\
14934\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14935} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14936  && mv -f "$cfgfile.tmp" "$cfgfile" \
14937    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14938test 0 -eq $? || _lt_function_replace_fail=:
14939
14940
14941  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14942func_lo2o ()\
14943{\
14944\    case ${1} in\
14945\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14946\      *)    func_lo2o_result=${1} ;;\
14947\    esac\
14948} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14949  && mv -f "$cfgfile.tmp" "$cfgfile" \
14950    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14951test 0 -eq $? || _lt_function_replace_fail=:
14952
14953
14954  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14955func_xform ()\
14956{\
14957    func_xform_result=${1%.*}.lo\
14958} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14959  && mv -f "$cfgfile.tmp" "$cfgfile" \
14960    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14961test 0 -eq $? || _lt_function_replace_fail=:
14962
14963
14964  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14965func_arith ()\
14966{\
14967    func_arith_result=$(( $* ))\
14968} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14969  && mv -f "$cfgfile.tmp" "$cfgfile" \
14970    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14971test 0 -eq $? || _lt_function_replace_fail=:
14972
14973
14974  sed -e '/^func_len ()$/,/^} # func_len /c\
14975func_len ()\
14976{\
14977    func_len_result=${#1}\
14978} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14979  && mv -f "$cfgfile.tmp" "$cfgfile" \
14980    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14981test 0 -eq $? || _lt_function_replace_fail=:
14982
14983fi
14984
14985if test x"$lt_shell_append" = xyes; then
14986  sed -e '/^func_append ()$/,/^} # func_append /c\
14987func_append ()\
14988{\
14989    eval "${1}+=\\${2}"\
14990} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14991  && mv -f "$cfgfile.tmp" "$cfgfile" \
14992    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14993test 0 -eq $? || _lt_function_replace_fail=:
14994
14995
14996  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14997func_append_quoted ()\
14998{\
14999\    func_quote_for_eval "${2}"\
15000\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15001} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15002  && mv -f "$cfgfile.tmp" "$cfgfile" \
15003    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15004test 0 -eq $? || _lt_function_replace_fail=:
15005
15006
15007  # Save a `func_append' function call where possible by direct use of '+='
15008  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15009    && mv -f "$cfgfile.tmp" "$cfgfile" \
15010      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15011  test 0 -eq $? || _lt_function_replace_fail=:
15012else
15013  # Save a `func_append' function call even when '+=' is not available
15014  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15015    && mv -f "$cfgfile.tmp" "$cfgfile" \
15016      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15017  test 0 -eq $? || _lt_function_replace_fail=:
15018fi
15019
15020if test x"$_lt_function_replace_fail" = x":"; then
15021  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15022$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15023fi
15024
15025
15026   mv -f "$cfgfile" "$ofile" ||
15027    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15028  chmod +x "$ofile"
15029
15030 ;;
15031
15032  esac
15033done # for ac_tag
15034
15035
15036as_fn_exit 0
15037_ACEOF
15038ac_clean_files=$ac_clean_files_save
15039
15040test $ac_write_fail = 0 ||
15041  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15042
15043
15044# configure is writing to config.log, and then calls config.status.
15045# config.status does its own redirection, appending to config.log.
15046# Unfortunately, on DOS this fails, as config.log is still kept open
15047# by configure, so config.status won't be able to write to it; its
15048# output is simply discarded.  So we exec the FD to /dev/null,
15049# effectively closing config.log, so it can be properly (re)opened and
15050# appended to by config.status.  When coming back to configure, we
15051# need to make the FD available again.
15052if test "$no_create" != yes; then
15053  ac_cs_success=:
15054  ac_config_status_args=
15055  test "$silent" = yes &&
15056    ac_config_status_args="$ac_config_status_args --quiet"
15057  exec 5>/dev/null
15058  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15059  exec 5>>config.log
15060  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15061  # would make configure fail if this is the last instruction.
15062  $ac_cs_success || as_fn_exit 1
15063fi
15064if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15065  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15066$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15067fi
15068
15069