configure revision 6cc2b21f
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libX11 1.4.4.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1
178
179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    PATH=/empty FPATH=/empty; export PATH FPATH
184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269# as_fn_unset VAR
270# ---------------
271# Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278# as_fn_set_status STATUS
279# -----------------------
280# Set $? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} # as_fn_set_status
285
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548SHELL=${CONFIG_SHELL-/bin/sh}
549
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='libX11'
633PACKAGE_TARNAME='libX11'
634PACKAGE_VERSION='1.4.4'
635PACKAGE_STRING='libX11 1.4.4'
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_header_list=
677ac_subst_vars='am__EXEEXT_FALSE
678am__EXEEXT_TRUE
679LTLIBOBJS
680LIBOBJS
681XTMALLOC_ZERO_CFLAGS
682XMALLOC_ZERO_CFLAGS
683MALLOC_ZERO_CFLAGS
684XERRORDB
685XKEYSYMDB
686X11_LOCALEDIR
687XLOCALEDIR
688X11_LOCALELIBDIR
689XLOCALELIBDIR
690X11_LOCALEDATADIR
691XLOCALEDATADIR
692X11_LIBS
693X11_CFLAGS
694X11_LIBDIR
695X11_DATADIR
696MAKE_LINT_LIB_FALSE
697MAKE_LINT_LIB_TRUE
698LINTLIB
699LINT_FALSE
700LINT_TRUE
701LINT_FLAGS
702LINT
703XKBPROTO_REQUIRES
704XKB_FALSE
705XKB_TRUE
706BIGFONT_LIBS
707BIGFONT_CFLAGS
708XLOCALE_FALSE
709XLOCALE_TRUE
710XCMS_FALSE
711XCMS_TRUE
712UDC_FALSE
713UDC_TRUE
714KEYSYMDEFS
715XTHREAD_CFLAGS
716XTHREADLIB
717THRSTUBS_FALSE
718THRSTUBS_TRUE
719LAUNCHD
720OS2_FALSE
721OS2_TRUE
722WCHAR32
723XLIB_LOADABLE_I18N_FALSE
724XLIB_LOADABLE_I18N_TRUE
725I18N_MODULE_LIBS
726X11_EXTRA_DEPS
727LDFLAGS_FOR_BUILD
728CFLAGS_FOR_BUILD
729CPPFLAGS_FOR_BUILD
730CC_FOR_BUILD
731HAVE_PERL_FALSE
732HAVE_PERL_TRUE
733PERL
734RAWCPPFLAGS
735RAWCPP
736HAVE_STYLESHEETS_FALSE
737HAVE_STYLESHEETS_TRUE
738XSL_STYLESHEET
739STYLESHEET_SRCDIR
740XORG_SGML_PATH
741HAVE_XSLTPROC_FALSE
742HAVE_XSLTPROC_TRUE
743XSLTPROC
744HAVE_FOP_FALSE
745HAVE_FOP_TRUE
746FOP
747HAVE_XMLTO_FALSE
748HAVE_XMLTO_TRUE
749HAVE_XMLTO_TEXT_FALSE
750HAVE_XMLTO_TEXT_TRUE
751XMLTO
752ENABLE_SPECS_FALSE
753ENABLE_SPECS_TRUE
754AM_BACKSLASH
755AM_DEFAULT_VERBOSITY
756MAN_SUBSTS
757XORG_MAN_PAGE
758ADMIN_MAN_DIR
759DRIVER_MAN_DIR
760MISC_MAN_DIR
761FILE_MAN_DIR
762LIB_MAN_DIR
763APP_MAN_DIR
764ADMIN_MAN_SUFFIX
765DRIVER_MAN_SUFFIX
766MISC_MAN_SUFFIX
767FILE_MAN_SUFFIX
768LIB_MAN_SUFFIX
769APP_MAN_SUFFIX
770INSTALL_CMD
771PKG_CONFIG
772CHANGELOG_CMD
773STRICT_CFLAGS
774CWARNFLAGS
775OTOOL64
776OTOOL
777LIPO
778NMEDIT
779DSYMUTIL
780MANIFEST_TOOL
781RANLIB
782ac_ct_AR
783AR
784DLLTOOL
785OBJDUMP
786LN_S
787NM
788ac_ct_DUMPBIN
789DUMPBIN
790LD
791FGREP
792SED
793LIBTOOL
794MAINT
795MAINTAINER_MODE_FALSE
796MAINTAINER_MODE_TRUE
797am__fastdepCC_FALSE
798am__fastdepCC_TRUE
799CCDEPMODE
800AMDEPBACKSLASH
801AMDEP_FALSE
802AMDEP_TRUE
803am__quote
804am__include
805DEPDIR
806am__untar
807am__tar
808AMTAR
809am__leading_dot
810SET_MAKE
811AWK
812mkdir_p
813MKDIR_P
814INSTALL_STRIP_PROGRAM
815STRIP
816install_sh
817MAKEINFO
818AUTOHEADER
819AUTOMAKE
820AUTOCONF
821ACLOCAL
822VERSION
823PACKAGE
824CYGPATH_W
825am__isrc
826INSTALL_DATA
827INSTALL_SCRIPT
828INSTALL_PROGRAM
829EGREP
830GREP
831CPP
832OBJEXT
833EXEEXT
834ac_ct_CC
835CPPFLAGS
836LDFLAGS
837CFLAGS
838CC
839host_os
840host_vendor
841host_cpu
842host
843build_os
844build_vendor
845build_cpu
846build
847target_alias
848host_alias
849build_alias
850LIBS
851ECHO_T
852ECHO_N
853ECHO_C
854DEFS
855mandir
856localedir
857libdir
858psdir
859pdfdir
860dvidir
861htmldir
862infodir
863docdir
864oldincludedir
865includedir
866localstatedir
867sharedstatedir
868sysconfdir
869datadir
870datarootdir
871libexecdir
872sbindir
873bindir
874program_transform_name
875prefix
876exec_prefix
877PACKAGE_URL
878PACKAGE_BUGREPORT
879PACKAGE_STRING
880PACKAGE_VERSION
881PACKAGE_TARNAME
882PACKAGE_NAME
883PATH_SEPARATOR
884SHELL'
885ac_subst_files=''
886ac_user_opts='
887enable_option_checking
888enable_dependency_tracking
889enable_maintainer_mode
890enable_shared
891enable_static
892with_pic
893enable_fast_install
894with_gnu_ld
895with_sysroot
896enable_libtool_lock
897enable_strict_compilation
898enable_silent_rules
899enable_specs
900with_xmlto
901with_fop
902with_xsltproc
903with_perl
904enable_unix_transport
905enable_tcp_transport
906enable_ipv6
907enable_local_transport
908enable_secure_rpc
909with_local_transport_order
910enable_loadable_i18n
911enable_loadable_xcursor
912with_launchd
913enable_xthreads
914enable_xcms
915enable_xlocale
916enable_xlocaledir
917enable_xf86bigfont
918enable_xkb
919enable_composecache
920with_lint
921enable_lint_library
922with_locale_lib_dir
923enable_malloc0returnsnull
924'
925      ac_precious_vars='build_alias
926host_alias
927target_alias
928CC
929CFLAGS
930LDFLAGS
931LIBS
932CPPFLAGS
933CPP
934PKG_CONFIG
935XMLTO
936FOP
937XSLTPROC
938PERL
939BIGFONT_CFLAGS
940BIGFONT_LIBS
941LINT
942LINT_FLAGS
943X11_CFLAGS
944X11_LIBS'
945
946
947# Initialize some variables set by options.
948ac_init_help=
949ac_init_version=false
950ac_unrecognized_opts=
951ac_unrecognized_sep=
952# The variables have the same names as the options, with
953# dashes changed to underlines.
954cache_file=/dev/null
955exec_prefix=NONE
956no_create=
957no_recursion=
958prefix=NONE
959program_prefix=NONE
960program_suffix=NONE
961program_transform_name=s,x,x,
962silent=
963site=
964srcdir=
965verbose=
966x_includes=NONE
967x_libraries=NONE
968
969# Installation directory options.
970# These are left unexpanded so users can "make install exec_prefix=/foo"
971# and all the variables that are supposed to be based on exec_prefix
972# by default will actually change.
973# Use braces instead of parens because sh, perl, etc. also accept them.
974# (The list follows the same order as the GNU Coding Standards.)
975bindir='${exec_prefix}/bin'
976sbindir='${exec_prefix}/sbin'
977libexecdir='${exec_prefix}/libexec'
978datarootdir='${prefix}/share'
979datadir='${datarootdir}'
980sysconfdir='${prefix}/etc'
981sharedstatedir='${prefix}/com'
982localstatedir='${prefix}/var'
983includedir='${prefix}/include'
984oldincludedir='/usr/include'
985docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
986infodir='${datarootdir}/info'
987htmldir='${docdir}'
988dvidir='${docdir}'
989pdfdir='${docdir}'
990psdir='${docdir}'
991libdir='${exec_prefix}/lib'
992localedir='${datarootdir}/locale'
993mandir='${datarootdir}/man'
994
995ac_prev=
996ac_dashdash=
997for ac_option
998do
999  # If the previous option needs an argument, assign it.
1000  if test -n "$ac_prev"; then
1001    eval $ac_prev=\$ac_option
1002    ac_prev=
1003    continue
1004  fi
1005
1006  case $ac_option in
1007  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008  *=)   ac_optarg= ;;
1009  *)    ac_optarg=yes ;;
1010  esac
1011
1012  # Accept the important Cygnus configure options, so we can diagnose typos.
1013
1014  case $ac_dashdash$ac_option in
1015  --)
1016    ac_dashdash=yes ;;
1017
1018  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019    ac_prev=bindir ;;
1020  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021    bindir=$ac_optarg ;;
1022
1023  -build | --build | --buil | --bui | --bu)
1024    ac_prev=build_alias ;;
1025  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026    build_alias=$ac_optarg ;;
1027
1028  -cache-file | --cache-file | --cache-fil | --cache-fi \
1029  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030    ac_prev=cache_file ;;
1031  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033    cache_file=$ac_optarg ;;
1034
1035  --config-cache | -C)
1036    cache_file=config.cache ;;
1037
1038  -datadir | --datadir | --datadi | --datad)
1039    ac_prev=datadir ;;
1040  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041    datadir=$ac_optarg ;;
1042
1043  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044  | --dataroo | --dataro | --datar)
1045    ac_prev=datarootdir ;;
1046  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048    datarootdir=$ac_optarg ;;
1049
1050  -disable-* | --disable-*)
1051    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052    # Reject names that are not valid shell variable names.
1053    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054      as_fn_error $? "invalid feature name: $ac_useropt"
1055    ac_useropt_orig=$ac_useropt
1056    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057    case $ac_user_opts in
1058      *"
1059"enable_$ac_useropt"
1060"*) ;;
1061      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062	 ac_unrecognized_sep=', ';;
1063    esac
1064    eval enable_$ac_useropt=no ;;
1065
1066  -docdir | --docdir | --docdi | --doc | --do)
1067    ac_prev=docdir ;;
1068  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069    docdir=$ac_optarg ;;
1070
1071  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072    ac_prev=dvidir ;;
1073  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074    dvidir=$ac_optarg ;;
1075
1076  -enable-* | --enable-*)
1077    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078    # Reject names that are not valid shell variable names.
1079    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080      as_fn_error $? "invalid feature name: $ac_useropt"
1081    ac_useropt_orig=$ac_useropt
1082    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083    case $ac_user_opts in
1084      *"
1085"enable_$ac_useropt"
1086"*) ;;
1087      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088	 ac_unrecognized_sep=', ';;
1089    esac
1090    eval enable_$ac_useropt=\$ac_optarg ;;
1091
1092  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094  | --exec | --exe | --ex)
1095    ac_prev=exec_prefix ;;
1096  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098  | --exec=* | --exe=* | --ex=*)
1099    exec_prefix=$ac_optarg ;;
1100
1101  -gas | --gas | --ga | --g)
1102    # Obsolete; use --with-gas.
1103    with_gas=yes ;;
1104
1105  -help | --help | --hel | --he | -h)
1106    ac_init_help=long ;;
1107  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108    ac_init_help=recursive ;;
1109  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110    ac_init_help=short ;;
1111
1112  -host | --host | --hos | --ho)
1113    ac_prev=host_alias ;;
1114  -host=* | --host=* | --hos=* | --ho=*)
1115    host_alias=$ac_optarg ;;
1116
1117  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118    ac_prev=htmldir ;;
1119  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120  | --ht=*)
1121    htmldir=$ac_optarg ;;
1122
1123  -includedir | --includedir | --includedi | --included | --include \
1124  | --includ | --inclu | --incl | --inc)
1125    ac_prev=includedir ;;
1126  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127  | --includ=* | --inclu=* | --incl=* | --inc=*)
1128    includedir=$ac_optarg ;;
1129
1130  -infodir | --infodir | --infodi | --infod | --info | --inf)
1131    ac_prev=infodir ;;
1132  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133    infodir=$ac_optarg ;;
1134
1135  -libdir | --libdir | --libdi | --libd)
1136    ac_prev=libdir ;;
1137  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138    libdir=$ac_optarg ;;
1139
1140  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141  | --libexe | --libex | --libe)
1142    ac_prev=libexecdir ;;
1143  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144  | --libexe=* | --libex=* | --libe=*)
1145    libexecdir=$ac_optarg ;;
1146
1147  -localedir | --localedir | --localedi | --localed | --locale)
1148    ac_prev=localedir ;;
1149  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150    localedir=$ac_optarg ;;
1151
1152  -localstatedir | --localstatedir | --localstatedi | --localstated \
1153  | --localstate | --localstat | --localsta | --localst | --locals)
1154    ac_prev=localstatedir ;;
1155  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157    localstatedir=$ac_optarg ;;
1158
1159  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160    ac_prev=mandir ;;
1161  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162    mandir=$ac_optarg ;;
1163
1164  -nfp | --nfp | --nf)
1165    # Obsolete; use --without-fp.
1166    with_fp=no ;;
1167
1168  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169  | --no-cr | --no-c | -n)
1170    no_create=yes ;;
1171
1172  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174    no_recursion=yes ;;
1175
1176  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178  | --oldin | --oldi | --old | --ol | --o)
1179    ac_prev=oldincludedir ;;
1180  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183    oldincludedir=$ac_optarg ;;
1184
1185  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186    ac_prev=prefix ;;
1187  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188    prefix=$ac_optarg ;;
1189
1190  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191  | --program-pre | --program-pr | --program-p)
1192    ac_prev=program_prefix ;;
1193  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195    program_prefix=$ac_optarg ;;
1196
1197  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198  | --program-suf | --program-su | --program-s)
1199    ac_prev=program_suffix ;;
1200  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202    program_suffix=$ac_optarg ;;
1203
1204  -program-transform-name | --program-transform-name \
1205  | --program-transform-nam | --program-transform-na \
1206  | --program-transform-n | --program-transform- \
1207  | --program-transform | --program-transfor \
1208  | --program-transfo | --program-transf \
1209  | --program-trans | --program-tran \
1210  | --progr-tra | --program-tr | --program-t)
1211    ac_prev=program_transform_name ;;
1212  -program-transform-name=* | --program-transform-name=* \
1213  | --program-transform-nam=* | --program-transform-na=* \
1214  | --program-transform-n=* | --program-transform-=* \
1215  | --program-transform=* | --program-transfor=* \
1216  | --program-transfo=* | --program-transf=* \
1217  | --program-trans=* | --program-tran=* \
1218  | --progr-tra=* | --program-tr=* | --program-t=*)
1219    program_transform_name=$ac_optarg ;;
1220
1221  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222    ac_prev=pdfdir ;;
1223  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224    pdfdir=$ac_optarg ;;
1225
1226  -psdir | --psdir | --psdi | --psd | --ps)
1227    ac_prev=psdir ;;
1228  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229    psdir=$ac_optarg ;;
1230
1231  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232  | -silent | --silent | --silen | --sile | --sil)
1233    silent=yes ;;
1234
1235  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236    ac_prev=sbindir ;;
1237  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238  | --sbi=* | --sb=*)
1239    sbindir=$ac_optarg ;;
1240
1241  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243  | --sharedst | --shareds | --shared | --share | --shar \
1244  | --sha | --sh)
1245    ac_prev=sharedstatedir ;;
1246  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249  | --sha=* | --sh=*)
1250    sharedstatedir=$ac_optarg ;;
1251
1252  -site | --site | --sit)
1253    ac_prev=site ;;
1254  -site=* | --site=* | --sit=*)
1255    site=$ac_optarg ;;
1256
1257  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258    ac_prev=srcdir ;;
1259  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260    srcdir=$ac_optarg ;;
1261
1262  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263  | --syscon | --sysco | --sysc | --sys | --sy)
1264    ac_prev=sysconfdir ;;
1265  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267    sysconfdir=$ac_optarg ;;
1268
1269  -target | --target | --targe | --targ | --tar | --ta | --t)
1270    ac_prev=target_alias ;;
1271  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272    target_alias=$ac_optarg ;;
1273
1274  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275    verbose=yes ;;
1276
1277  -version | --version | --versio | --versi | --vers | -V)
1278    ac_init_version=: ;;
1279
1280  -with-* | --with-*)
1281    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282    # Reject names that are not valid shell variable names.
1283    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284      as_fn_error $? "invalid package name: $ac_useropt"
1285    ac_useropt_orig=$ac_useropt
1286    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287    case $ac_user_opts in
1288      *"
1289"with_$ac_useropt"
1290"*) ;;
1291      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292	 ac_unrecognized_sep=', ';;
1293    esac
1294    eval with_$ac_useropt=\$ac_optarg ;;
1295
1296  -without-* | --without-*)
1297    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298    # Reject names that are not valid shell variable names.
1299    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300      as_fn_error $? "invalid package name: $ac_useropt"
1301    ac_useropt_orig=$ac_useropt
1302    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303    case $ac_user_opts in
1304      *"
1305"with_$ac_useropt"
1306"*) ;;
1307      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308	 ac_unrecognized_sep=', ';;
1309    esac
1310    eval with_$ac_useropt=no ;;
1311
1312  --x)
1313    # Obsolete; use --with-x.
1314    with_x=yes ;;
1315
1316  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317  | --x-incl | --x-inc | --x-in | --x-i)
1318    ac_prev=x_includes ;;
1319  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1321    x_includes=$ac_optarg ;;
1322
1323  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325    ac_prev=x_libraries ;;
1326  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1328    x_libraries=$ac_optarg ;;
1329
1330  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1331Try \`$0 --help' for more information"
1332    ;;
1333
1334  *=*)
1335    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336    # Reject names that are not valid shell variable names.
1337    case $ac_envvar in #(
1338      '' | [0-9]* | *[!_$as_cr_alnum]* )
1339      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1340    esac
1341    eval $ac_envvar=\$ac_optarg
1342    export $ac_envvar ;;
1343
1344  *)
1345    # FIXME: should be removed in autoconf 3.0.
1346    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1348      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1350    ;;
1351
1352  esac
1353done
1354
1355if test -n "$ac_prev"; then
1356  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1357  as_fn_error $? "missing argument to $ac_option"
1358fi
1359
1360if test -n "$ac_unrecognized_opts"; then
1361  case $enable_option_checking in
1362    no) ;;
1363    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1364    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365  esac
1366fi
1367
1368# Check all directory arguments for consistency.
1369for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370		datadir sysconfdir sharedstatedir localstatedir includedir \
1371		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372		libdir localedir mandir
1373do
1374  eval ac_val=\$$ac_var
1375  # Remove trailing slashes.
1376  case $ac_val in
1377    */ )
1378      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379      eval $ac_var=\$ac_val;;
1380  esac
1381  # Be sure to have absolute directory names.
1382  case $ac_val in
1383    [\\/$]* | ?:[\\/]* )  continue;;
1384    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385  esac
1386  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1387done
1388
1389# There might be people who depend on the old broken behavior: `$host'
1390# used to hold the argument of --host etc.
1391# FIXME: To remove some day.
1392build=$build_alias
1393host=$host_alias
1394target=$target_alias
1395
1396# FIXME: To remove some day.
1397if test "x$host_alias" != x; then
1398  if test "x$build_alias" = x; then
1399    cross_compiling=maybe
1400    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1401    If a cross compiler is detected then cross compile mode will be used" >&2
1402  elif test "x$build_alias" != "x$host_alias"; then
1403    cross_compiling=yes
1404  fi
1405fi
1406
1407ac_tool_prefix=
1408test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409
1410test "$silent" = yes && exec 6>/dev/null
1411
1412
1413ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414ac_ls_di=`ls -di .` &&
1415ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416  as_fn_error $? "working directory cannot be determined"
1417test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418  as_fn_error $? "pwd does not report name of working directory"
1419
1420
1421# Find the source files, if location was not specified.
1422if test -z "$srcdir"; then
1423  ac_srcdir_defaulted=yes
1424  # Try the directory containing this script, then the parent directory.
1425  ac_confdir=`$as_dirname -- "$as_myself" ||
1426$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427	 X"$as_myself" : 'X\(//\)[^/]' \| \
1428	 X"$as_myself" : 'X\(//\)$' \| \
1429	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430$as_echo X"$as_myself" |
1431    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432	    s//\1/
1433	    q
1434	  }
1435	  /^X\(\/\/\)[^/].*/{
1436	    s//\1/
1437	    q
1438	  }
1439	  /^X\(\/\/\)$/{
1440	    s//\1/
1441	    q
1442	  }
1443	  /^X\(\/\).*/{
1444	    s//\1/
1445	    q
1446	  }
1447	  s/.*/./; q'`
1448  srcdir=$ac_confdir
1449  if test ! -r "$srcdir/$ac_unique_file"; then
1450    srcdir=..
1451  fi
1452else
1453  ac_srcdir_defaulted=no
1454fi
1455if test ! -r "$srcdir/$ac_unique_file"; then
1456  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1457  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1458fi
1459ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460ac_abs_confdir=`(
1461	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1462	pwd)`
1463# When building in place, set srcdir=.
1464if test "$ac_abs_confdir" = "$ac_pwd"; then
1465  srcdir=.
1466fi
1467# Remove unnecessary trailing slashes from srcdir.
1468# Double slashes in file names in object file debugging info
1469# mess up M-x gdb in Emacs.
1470case $srcdir in
1471*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472esac
1473for ac_var in $ac_precious_vars; do
1474  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475  eval ac_env_${ac_var}_value=\$${ac_var}
1476  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478done
1479
1480#
1481# Report the --help message.
1482#
1483if test "$ac_init_help" = "long"; then
1484  # Omit some internal or obsolete options to make the list less imposing.
1485  # This message is too long to be a string in the A/UX 3.1 sh.
1486  cat <<_ACEOF
1487\`configure' configures libX11 1.4.4 to adapt to many kinds of systems.
1488
1489Usage: $0 [OPTION]... [VAR=VALUE]...
1490
1491To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492VAR=VALUE.  See below for descriptions of some of the useful variables.
1493
1494Defaults for the options are specified in brackets.
1495
1496Configuration:
1497  -h, --help              display this help and exit
1498      --help=short        display options specific to this package
1499      --help=recursive    display the short help of all the included packages
1500  -V, --version           display version information and exit
1501  -q, --quiet, --silent   do not print \`checking ...' messages
1502      --cache-file=FILE   cache test results in FILE [disabled]
1503  -C, --config-cache      alias for \`--cache-file=config.cache'
1504  -n, --no-create         do not create output files
1505      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1506
1507Installation directories:
1508  --prefix=PREFIX         install architecture-independent files in PREFIX
1509                          [$ac_default_prefix]
1510  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1511                          [PREFIX]
1512
1513By default, \`make install' will install all the files in
1514\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1515an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516for instance \`--prefix=\$HOME'.
1517
1518For better control, use the options below.
1519
1520Fine tuning of the installation directories:
1521  --bindir=DIR            user executables [EPREFIX/bin]
1522  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1523  --libexecdir=DIR        program executables [EPREFIX/libexec]
1524  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1525  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1526  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1527  --libdir=DIR            object code libraries [EPREFIX/lib]
1528  --includedir=DIR        C header files [PREFIX/include]
1529  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1530  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1531  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1532  --infodir=DIR           info documentation [DATAROOTDIR/info]
1533  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1534  --mandir=DIR            man documentation [DATAROOTDIR/man]
1535  --docdir=DIR            documentation root [DATAROOTDIR/doc/libX11]
1536  --htmldir=DIR           html documentation [DOCDIR]
1537  --dvidir=DIR            dvi documentation [DOCDIR]
1538  --pdfdir=DIR            pdf documentation [DOCDIR]
1539  --psdir=DIR             ps documentation [DOCDIR]
1540_ACEOF
1541
1542  cat <<\_ACEOF
1543
1544Program names:
1545  --program-prefix=PREFIX            prepend PREFIX to installed program names
1546  --program-suffix=SUFFIX            append SUFFIX to installed program names
1547  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1548
1549System types:
1550  --build=BUILD     configure for building on BUILD [guessed]
1551  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1552_ACEOF
1553fi
1554
1555if test -n "$ac_init_help"; then
1556  case $ac_init_help in
1557     short | recursive ) echo "Configuration of libX11 1.4.4:";;
1558   esac
1559  cat <<\_ACEOF
1560
1561Optional Features:
1562  --disable-option-checking  ignore unrecognized --enable/--with options
1563  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1564  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1565  --disable-dependency-tracking  speeds up one-time build
1566  --enable-dependency-tracking   do not reject slow dependency extractors
1567  --enable-maintainer-mode  enable make rules and dependencies not useful
1568			  (and sometimes confusing) to the casual installer
1569  --enable-shared[=PKGS]  build shared libraries [default=yes]
1570  --enable-static[=PKGS]  build static libraries [default=yes]
1571  --enable-fast-install[=PKGS]
1572                          optimize for fast installation [default=yes]
1573  --disable-libtool-lock  avoid locking (might break parallel builds)
1574  --enable-strict-compilation
1575                          Enable all warnings from compiler and make them
1576                          errors (default: disabled)
1577  --enable-silent-rules          less verbose build output (undo: `make V=1')
1578  --disable-silent-rules         verbose build output (undo: `make V=0')
1579  --enable-specs          Enable building the specs (default: yes)
1580  --enable-unix-transport Enable UNIX domain socket transport
1581  --enable-tcp-transport  Enable TCP socket transport
1582  --enable-ipv6           Enable IPv6 support
1583  --enable-local-transport
1584                          Enable os-specific local transport
1585  --enable-secure-rpc     Enable Secure RPC
1586  --enable-loadable-i18n  Controls loadable i18n module support
1587  --disable-loadable-xcursor
1588                          Controls loadable xcursor library support
1589  --disable-xthreads      Disable Xlib support for Multithreading
1590  --disable-xcms          Disable Xlib support for CMS *EXPERIMENTAL*
1591  --disable-xlocale       Disable Xlib locale implementation *EXPERIMENTAL*
1592  --enable-xlocaledir     Enable XLOCALEDIR environment variable support
1593  --disable-xf86bigfont   Disable XF86BigFont extension support
1594  --disable-xkb           Disable XKB support *EXPERIMENTAL*
1595  --disable-composecache  Disable compose table cache support
1596  --enable-lint-library   Create lint library (default: disabled)
1597  --enable-malloc0returnsnull
1598                          malloc(0) returns NULL (default: auto)
1599
1600Optional Packages:
1601  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1602  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1603  --with-pic              try to use only PIC/non-PIC objects [default=use
1604                          both]
1605  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1606  --with-sysroot=DIR Search for dependent libraries within DIR
1607                        (or the compiler's sysroot if not specified).
1608  --with-xmlto            Use xmlto to regenerate documentation (default:
1609                          auto)
1610  --with-fop              Use fop to regenerate documentation (default: no)
1611  --with-xsltproc         Use xsltproc for the transformation of XML documents
1612                          (default: auto)
1613  --with-perl             Use perl for extracting information from files
1614                          (default: auto)
1615  --with-local-transport-order=LIST
1616                          preference sorted list of transport types to try for
1617                          local connections
1618  --with-launchd          Build with support for Apple's launchd (default:
1619                          auto)
1620  --with-lint             Use a lint-style source code checker (default:
1621                          disabled)
1622  --with-locale-lib-dir=DIR
1623                          Directory where locale libraries files are installed
1624                          (default: $libdir/X11/locale)
1625
1626Some influential environment variables:
1627  CC          C compiler command
1628  CFLAGS      C compiler flags
1629  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1630              nonstandard directory <lib dir>
1631  LIBS        libraries to pass to the linker, e.g. -l<library>
1632  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633              you have headers in a nonstandard directory <include dir>
1634  CPP         C preprocessor
1635  PKG_CONFIG  path to pkg-config utility
1636  XMLTO       Path to xmlto command
1637  FOP         Path to fop command
1638  XSLTPROC    Path to xsltproc command
1639  PERL        Path to perl command
1640  BIGFONT_CFLAGS
1641              C compiler flags for BIGFONT, overriding pkg-config
1642  BIGFONT_LIBS
1643              linker flags for BIGFONT, overriding pkg-config
1644  LINT        Path to a lint-style command
1645  LINT_FLAGS  Flags for the lint-style command
1646  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1647  X11_LIBS    linker flags for X11, overriding pkg-config
1648
1649Use these variables to override the choices made by `configure' or to help
1650it to find libraries and programs with nonstandard names/locations.
1651
1652Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1653_ACEOF
1654ac_status=$?
1655fi
1656
1657if test "$ac_init_help" = "recursive"; then
1658  # If there are subdirs, report their specific --help.
1659  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1660    test -d "$ac_dir" ||
1661      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1662      continue
1663    ac_builddir=.
1664
1665case "$ac_dir" in
1666.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667*)
1668  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1669  # A ".." for each directory in $ac_dir_suffix.
1670  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1671  case $ac_top_builddir_sub in
1672  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1674  esac ;;
1675esac
1676ac_abs_top_builddir=$ac_pwd
1677ac_abs_builddir=$ac_pwd$ac_dir_suffix
1678# for backward compatibility:
1679ac_top_builddir=$ac_top_build_prefix
1680
1681case $srcdir in
1682  .)  # We are building in place.
1683    ac_srcdir=.
1684    ac_top_srcdir=$ac_top_builddir_sub
1685    ac_abs_top_srcdir=$ac_pwd ;;
1686  [\\/]* | ?:[\\/]* )  # Absolute name.
1687    ac_srcdir=$srcdir$ac_dir_suffix;
1688    ac_top_srcdir=$srcdir
1689    ac_abs_top_srcdir=$srcdir ;;
1690  *) # Relative name.
1691    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1692    ac_top_srcdir=$ac_top_build_prefix$srcdir
1693    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1694esac
1695ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1696
1697    cd "$ac_dir" || { ac_status=$?; continue; }
1698    # Check for guested configure.
1699    if test -f "$ac_srcdir/configure.gnu"; then
1700      echo &&
1701      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1702    elif test -f "$ac_srcdir/configure"; then
1703      echo &&
1704      $SHELL "$ac_srcdir/configure" --help=recursive
1705    else
1706      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1707    fi || ac_status=$?
1708    cd "$ac_pwd" || { ac_status=$?; break; }
1709  done
1710fi
1711
1712test -n "$ac_init_help" && exit $ac_status
1713if $ac_init_version; then
1714  cat <<\_ACEOF
1715libX11 configure 1.4.4
1716generated by GNU Autoconf 2.68
1717
1718Copyright (C) 2010 Free Software Foundation, Inc.
1719This configure script is free software; the Free Software Foundation
1720gives unlimited permission to copy, distribute and modify it.
1721_ACEOF
1722  exit
1723fi
1724
1725## ------------------------ ##
1726## Autoconf initialization. ##
1727## ------------------------ ##
1728
1729# ac_fn_c_try_compile LINENO
1730# --------------------------
1731# Try to compile conftest.$ac_ext, and return whether this succeeded.
1732ac_fn_c_try_compile ()
1733{
1734  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735  rm -f conftest.$ac_objext
1736  if { { ac_try="$ac_compile"
1737case "(($ac_try" in
1738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739  *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743  (eval "$ac_compile") 2>conftest.err
1744  ac_status=$?
1745  if test -s conftest.err; then
1746    grep -v '^ *+' conftest.err >conftest.er1
1747    cat conftest.er1 >&5
1748    mv -f conftest.er1 conftest.err
1749  fi
1750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751  test $ac_status = 0; } && {
1752	 test -z "$ac_c_werror_flag" ||
1753	 test ! -s conftest.err
1754       } && test -s conftest.$ac_objext; then :
1755  ac_retval=0
1756else
1757  $as_echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760	ac_retval=1
1761fi
1762  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763  as_fn_set_status $ac_retval
1764
1765} # ac_fn_c_try_compile
1766
1767# ac_fn_c_try_cpp LINENO
1768# ----------------------
1769# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1770ac_fn_c_try_cpp ()
1771{
1772  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773  if { { ac_try="$ac_cpp conftest.$ac_ext"
1774case "(($ac_try" in
1775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776  *) ac_try_echo=$ac_try;;
1777esac
1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779$as_echo "$ac_try_echo"; } >&5
1780  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1781  ac_status=$?
1782  if test -s conftest.err; then
1783    grep -v '^ *+' conftest.err >conftest.er1
1784    cat conftest.er1 >&5
1785    mv -f conftest.er1 conftest.err
1786  fi
1787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788  test $ac_status = 0; } > conftest.i && {
1789	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1790	 test ! -s conftest.err
1791       }; then :
1792  ac_retval=0
1793else
1794  $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
1796
1797    ac_retval=1
1798fi
1799  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800  as_fn_set_status $ac_retval
1801
1802} # ac_fn_c_try_cpp
1803
1804# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1805# -------------------------------------------------------
1806# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1807# the include files in INCLUDES and setting the cache variable VAR
1808# accordingly.
1809ac_fn_c_check_header_mongrel ()
1810{
1811  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812  if eval \${$3+:} false; then :
1813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814$as_echo_n "checking for $2... " >&6; }
1815if eval \${$3+:} false; then :
1816  $as_echo_n "(cached) " >&6
1817fi
1818eval ac_res=\$$3
1819	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820$as_echo "$ac_res" >&6; }
1821else
1822  # Is the header compilable?
1823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1824$as_echo_n "checking $2 usability... " >&6; }
1825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h.  */
1827$4
1828#include <$2>
1829_ACEOF
1830if ac_fn_c_try_compile "$LINENO"; then :
1831  ac_header_compiler=yes
1832else
1833  ac_header_compiler=no
1834fi
1835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1837$as_echo "$ac_header_compiler" >&6; }
1838
1839# Is the header present?
1840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1841$as_echo_n "checking $2 presence... " >&6; }
1842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h.  */
1844#include <$2>
1845_ACEOF
1846if ac_fn_c_try_cpp "$LINENO"; then :
1847  ac_header_preproc=yes
1848else
1849  ac_header_preproc=no
1850fi
1851rm -f conftest.err conftest.i conftest.$ac_ext
1852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1853$as_echo "$ac_header_preproc" >&6; }
1854
1855# So?  What about this header?
1856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1857  yes:no: )
1858    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1859$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1860    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862    ;;
1863  no:yes:* )
1864    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1865$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1866    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1867$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1868    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1869$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1870    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1871$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1872    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874( $as_echo "## ---------------------------------------------------------------------- ##
1875## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1876## ---------------------------------------------------------------------- ##"
1877     ) | sed "s/^/$as_me: WARNING:     /" >&2
1878    ;;
1879esac
1880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881$as_echo_n "checking for $2... " >&6; }
1882if eval \${$3+:} false; then :
1883  $as_echo_n "(cached) " >&6
1884else
1885  eval "$3=\$ac_header_compiler"
1886fi
1887eval ac_res=\$$3
1888	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889$as_echo "$ac_res" >&6; }
1890fi
1891  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892
1893} # ac_fn_c_check_header_mongrel
1894
1895# ac_fn_c_try_run LINENO
1896# ----------------------
1897# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1898# that executables *can* be run.
1899ac_fn_c_try_run ()
1900{
1901  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902  if { { ac_try="$ac_link"
1903case "(($ac_try" in
1904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905  *) ac_try_echo=$ac_try;;
1906esac
1907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908$as_echo "$ac_try_echo"; } >&5
1909  (eval "$ac_link") 2>&5
1910  ac_status=$?
1911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1913  { { case "(($ac_try" in
1914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915  *) ac_try_echo=$ac_try;;
1916esac
1917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918$as_echo "$ac_try_echo"; } >&5
1919  (eval "$ac_try") 2>&5
1920  ac_status=$?
1921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922  test $ac_status = 0; }; }; then :
1923  ac_retval=0
1924else
1925  $as_echo "$as_me: program exited with status $ac_status" >&5
1926       $as_echo "$as_me: failed program was:" >&5
1927sed 's/^/| /' conftest.$ac_ext >&5
1928
1929       ac_retval=$ac_status
1930fi
1931  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933  as_fn_set_status $ac_retval
1934
1935} # ac_fn_c_try_run
1936
1937# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1938# -------------------------------------------------------
1939# Tests whether HEADER exists and can be compiled using the include files in
1940# INCLUDES, setting the cache variable VAR accordingly.
1941ac_fn_c_check_header_compile ()
1942{
1943  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945$as_echo_n "checking for $2... " >&6; }
1946if eval \${$3+:} false; then :
1947  $as_echo_n "(cached) " >&6
1948else
1949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950/* end confdefs.h.  */
1951$4
1952#include <$2>
1953_ACEOF
1954if ac_fn_c_try_compile "$LINENO"; then :
1955  eval "$3=yes"
1956else
1957  eval "$3=no"
1958fi
1959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960fi
1961eval ac_res=\$$3
1962	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963$as_echo "$ac_res" >&6; }
1964  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965
1966} # ac_fn_c_check_header_compile
1967
1968# ac_fn_c_try_link LINENO
1969# -----------------------
1970# Try to link conftest.$ac_ext, and return whether this succeeded.
1971ac_fn_c_try_link ()
1972{
1973  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974  rm -f conftest.$ac_objext conftest$ac_exeext
1975  if { { ac_try="$ac_link"
1976case "(($ac_try" in
1977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978  *) ac_try_echo=$ac_try;;
1979esac
1980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981$as_echo "$ac_try_echo"; } >&5
1982  (eval "$ac_link") 2>conftest.err
1983  ac_status=$?
1984  if test -s conftest.err; then
1985    grep -v '^ *+' conftest.err >conftest.er1
1986    cat conftest.er1 >&5
1987    mv -f conftest.er1 conftest.err
1988  fi
1989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990  test $ac_status = 0; } && {
1991	 test -z "$ac_c_werror_flag" ||
1992	 test ! -s conftest.err
1993       } && test -s conftest$ac_exeext && {
1994	 test "$cross_compiling" = yes ||
1995	 $as_test_x conftest$ac_exeext
1996       }; then :
1997  ac_retval=0
1998else
1999  $as_echo "$as_me: failed program was:" >&5
2000sed 's/^/| /' conftest.$ac_ext >&5
2001
2002	ac_retval=1
2003fi
2004  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2005  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2006  # interfere with the next link command; also delete a directory that is
2007  # left behind by Apple's compiler.  We do this before executing the actions.
2008  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010  as_fn_set_status $ac_retval
2011
2012} # ac_fn_c_try_link
2013
2014# ac_fn_c_check_func LINENO FUNC VAR
2015# ----------------------------------
2016# Tests whether FUNC exists, setting the cache variable VAR accordingly
2017ac_fn_c_check_func ()
2018{
2019  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021$as_echo_n "checking for $2... " >&6; }
2022if eval \${$3+:} false; then :
2023  $as_echo_n "(cached) " >&6
2024else
2025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026/* end confdefs.h.  */
2027/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2028   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2029#define $2 innocuous_$2
2030
2031/* System header to define __stub macros and hopefully few prototypes,
2032    which can conflict with char $2 (); below.
2033    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2034    <limits.h> exists even on freestanding compilers.  */
2035
2036#ifdef __STDC__
2037# include <limits.h>
2038#else
2039# include <assert.h>
2040#endif
2041
2042#undef $2
2043
2044/* Override any GCC internal prototype to avoid an error.
2045   Use char because int might match the return type of a GCC
2046   builtin and then its argument prototype would still apply.  */
2047#ifdef __cplusplus
2048extern "C"
2049#endif
2050char $2 ();
2051/* The GNU C library defines this for functions which it implements
2052    to always fail with ENOSYS.  Some functions are actually named
2053    something starting with __ and the normal name is an alias.  */
2054#if defined __stub_$2 || defined __stub___$2
2055choke me
2056#endif
2057
2058int
2059main ()
2060{
2061return $2 ();
2062  ;
2063  return 0;
2064}
2065_ACEOF
2066if ac_fn_c_try_link "$LINENO"; then :
2067  eval "$3=yes"
2068else
2069  eval "$3=no"
2070fi
2071rm -f core conftest.err conftest.$ac_objext \
2072    conftest$ac_exeext conftest.$ac_ext
2073fi
2074eval ac_res=\$$3
2075	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076$as_echo "$ac_res" >&6; }
2077  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078
2079} # ac_fn_c_check_func
2080
2081# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2082# ---------------------------------------------
2083# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2084# accordingly.
2085ac_fn_c_check_decl ()
2086{
2087  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088  as_decl_name=`echo $2|sed 's/ *(.*//'`
2089  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2091$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2092if eval \${$3+:} false; then :
2093  $as_echo_n "(cached) " >&6
2094else
2095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096/* end confdefs.h.  */
2097$4
2098int
2099main ()
2100{
2101#ifndef $as_decl_name
2102#ifdef __cplusplus
2103  (void) $as_decl_use;
2104#else
2105  (void) $as_decl_name;
2106#endif
2107#endif
2108
2109  ;
2110  return 0;
2111}
2112_ACEOF
2113if ac_fn_c_try_compile "$LINENO"; then :
2114  eval "$3=yes"
2115else
2116  eval "$3=no"
2117fi
2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119fi
2120eval ac_res=\$$3
2121	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122$as_echo "$ac_res" >&6; }
2123  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124
2125} # ac_fn_c_check_decl
2126
2127# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2128# ----------------------------------------------------
2129# Tries to find if the field MEMBER exists in type AGGR, after including
2130# INCLUDES, setting cache variable VAR accordingly.
2131ac_fn_c_check_member ()
2132{
2133  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2135$as_echo_n "checking for $2.$3... " >&6; }
2136if eval \${$4+:} false; then :
2137  $as_echo_n "(cached) " >&6
2138else
2139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140/* end confdefs.h.  */
2141$5
2142int
2143main ()
2144{
2145static $2 ac_aggr;
2146if (ac_aggr.$3)
2147return 0;
2148  ;
2149  return 0;
2150}
2151_ACEOF
2152if ac_fn_c_try_compile "$LINENO"; then :
2153  eval "$4=yes"
2154else
2155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156/* end confdefs.h.  */
2157$5
2158int
2159main ()
2160{
2161static $2 ac_aggr;
2162if (sizeof ac_aggr.$3)
2163return 0;
2164  ;
2165  return 0;
2166}
2167_ACEOF
2168if ac_fn_c_try_compile "$LINENO"; then :
2169  eval "$4=yes"
2170else
2171  eval "$4=no"
2172fi
2173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174fi
2175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176fi
2177eval ac_res=\$$4
2178	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179$as_echo "$ac_res" >&6; }
2180  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181
2182} # ac_fn_c_check_member
2183
2184# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2185# -------------------------------------------
2186# Tests whether TYPE exists after having included INCLUDES, setting cache
2187# variable VAR accordingly.
2188ac_fn_c_check_type ()
2189{
2190  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192$as_echo_n "checking for $2... " >&6; }
2193if eval \${$3+:} false; then :
2194  $as_echo_n "(cached) " >&6
2195else
2196  eval "$3=no"
2197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198/* end confdefs.h.  */
2199$4
2200int
2201main ()
2202{
2203if (sizeof ($2))
2204	 return 0;
2205  ;
2206  return 0;
2207}
2208_ACEOF
2209if ac_fn_c_try_compile "$LINENO"; then :
2210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211/* end confdefs.h.  */
2212$4
2213int
2214main ()
2215{
2216if (sizeof (($2)))
2217	    return 0;
2218  ;
2219  return 0;
2220}
2221_ACEOF
2222if ac_fn_c_try_compile "$LINENO"; then :
2223
2224else
2225  eval "$3=yes"
2226fi
2227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228fi
2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230fi
2231eval ac_res=\$$3
2232	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233$as_echo "$ac_res" >&6; }
2234  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235
2236} # ac_fn_c_check_type
2237cat >config.log <<_ACEOF
2238This file contains any messages produced by compilers while
2239running configure, to aid debugging if configure makes a mistake.
2240
2241It was created by libX11 $as_me 1.4.4, which was
2242generated by GNU Autoconf 2.68.  Invocation command line was
2243
2244  $ $0 $@
2245
2246_ACEOF
2247exec 5>>config.log
2248{
2249cat <<_ASUNAME
2250## --------- ##
2251## Platform. ##
2252## --------- ##
2253
2254hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2255uname -m = `(uname -m) 2>/dev/null || echo unknown`
2256uname -r = `(uname -r) 2>/dev/null || echo unknown`
2257uname -s = `(uname -s) 2>/dev/null || echo unknown`
2258uname -v = `(uname -v) 2>/dev/null || echo unknown`
2259
2260/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2261/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2262
2263/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2264/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2265/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2266/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2267/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2268/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2269/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2270
2271_ASUNAME
2272
2273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274for as_dir in $PATH
2275do
2276  IFS=$as_save_IFS
2277  test -z "$as_dir" && as_dir=.
2278    $as_echo "PATH: $as_dir"
2279  done
2280IFS=$as_save_IFS
2281
2282} >&5
2283
2284cat >&5 <<_ACEOF
2285
2286
2287## ----------- ##
2288## Core tests. ##
2289## ----------- ##
2290
2291_ACEOF
2292
2293
2294# Keep a trace of the command line.
2295# Strip out --no-create and --no-recursion so they do not pile up.
2296# Strip out --silent because we don't want to record it for future runs.
2297# Also quote any args containing shell meta-characters.
2298# Make two passes to allow for proper duplicate-argument suppression.
2299ac_configure_args=
2300ac_configure_args0=
2301ac_configure_args1=
2302ac_must_keep_next=false
2303for ac_pass in 1 2
2304do
2305  for ac_arg
2306  do
2307    case $ac_arg in
2308    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2309    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2310    | -silent | --silent | --silen | --sile | --sil)
2311      continue ;;
2312    *\'*)
2313      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2314    esac
2315    case $ac_pass in
2316    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2317    2)
2318      as_fn_append ac_configure_args1 " '$ac_arg'"
2319      if test $ac_must_keep_next = true; then
2320	ac_must_keep_next=false # Got value, back to normal.
2321      else
2322	case $ac_arg in
2323	  *=* | --config-cache | -C | -disable-* | --disable-* \
2324	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2325	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2326	  | -with-* | --with-* | -without-* | --without-* | --x)
2327	    case "$ac_configure_args0 " in
2328	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2329	    esac
2330	    ;;
2331	  -* ) ac_must_keep_next=true ;;
2332	esac
2333      fi
2334      as_fn_append ac_configure_args " '$ac_arg'"
2335      ;;
2336    esac
2337  done
2338done
2339{ ac_configure_args0=; unset ac_configure_args0;}
2340{ ac_configure_args1=; unset ac_configure_args1;}
2341
2342# When interrupted or exit'd, cleanup temporary files, and complete
2343# config.log.  We remove comments because anyway the quotes in there
2344# would cause problems or look ugly.
2345# WARNING: Use '\'' to represent an apostrophe within the trap.
2346# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2347trap 'exit_status=$?
2348  # Save into config.log some information that might help in debugging.
2349  {
2350    echo
2351
2352    $as_echo "## ---------------- ##
2353## Cache variables. ##
2354## ---------------- ##"
2355    echo
2356    # The following way of writing the cache mishandles newlines in values,
2357(
2358  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2359    eval ac_val=\$$ac_var
2360    case $ac_val in #(
2361    *${as_nl}*)
2362      case $ac_var in #(
2363      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2364$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2365      esac
2366      case $ac_var in #(
2367      _ | IFS | as_nl) ;; #(
2368      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2369      *) { eval $ac_var=; unset $ac_var;} ;;
2370      esac ;;
2371    esac
2372  done
2373  (set) 2>&1 |
2374    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2375    *${as_nl}ac_space=\ *)
2376      sed -n \
2377	"s/'\''/'\''\\\\'\'''\''/g;
2378	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2379      ;; #(
2380    *)
2381      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2382      ;;
2383    esac |
2384    sort
2385)
2386    echo
2387
2388    $as_echo "## ----------------- ##
2389## Output variables. ##
2390## ----------------- ##"
2391    echo
2392    for ac_var in $ac_subst_vars
2393    do
2394      eval ac_val=\$$ac_var
2395      case $ac_val in
2396      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2397      esac
2398      $as_echo "$ac_var='\''$ac_val'\''"
2399    done | sort
2400    echo
2401
2402    if test -n "$ac_subst_files"; then
2403      $as_echo "## ------------------- ##
2404## File substitutions. ##
2405## ------------------- ##"
2406      echo
2407      for ac_var in $ac_subst_files
2408      do
2409	eval ac_val=\$$ac_var
2410	case $ac_val in
2411	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2412	esac
2413	$as_echo "$ac_var='\''$ac_val'\''"
2414      done | sort
2415      echo
2416    fi
2417
2418    if test -s confdefs.h; then
2419      $as_echo "## ----------- ##
2420## confdefs.h. ##
2421## ----------- ##"
2422      echo
2423      cat confdefs.h
2424      echo
2425    fi
2426    test "$ac_signal" != 0 &&
2427      $as_echo "$as_me: caught signal $ac_signal"
2428    $as_echo "$as_me: exit $exit_status"
2429  } >&5
2430  rm -f core *.core core.conftest.* &&
2431    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2432    exit $exit_status
2433' 0
2434for ac_signal in 1 2 13 15; do
2435  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2436done
2437ac_signal=0
2438
2439# confdefs.h avoids OS command line length limits that DEFS can exceed.
2440rm -f -r conftest* confdefs.h
2441
2442$as_echo "/* confdefs.h */" > confdefs.h
2443
2444# Predefined preprocessor variables.
2445
2446cat >>confdefs.h <<_ACEOF
2447#define PACKAGE_NAME "$PACKAGE_NAME"
2448_ACEOF
2449
2450cat >>confdefs.h <<_ACEOF
2451#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2452_ACEOF
2453
2454cat >>confdefs.h <<_ACEOF
2455#define PACKAGE_VERSION "$PACKAGE_VERSION"
2456_ACEOF
2457
2458cat >>confdefs.h <<_ACEOF
2459#define PACKAGE_STRING "$PACKAGE_STRING"
2460_ACEOF
2461
2462cat >>confdefs.h <<_ACEOF
2463#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2464_ACEOF
2465
2466cat >>confdefs.h <<_ACEOF
2467#define PACKAGE_URL "$PACKAGE_URL"
2468_ACEOF
2469
2470
2471# Let the site file select an alternate cache file if it wants to.
2472# Prefer an explicitly selected file to automatically selected ones.
2473ac_site_file1=NONE
2474ac_site_file2=NONE
2475if test -n "$CONFIG_SITE"; then
2476  # We do not want a PATH search for config.site.
2477  case $CONFIG_SITE in #((
2478    -*)  ac_site_file1=./$CONFIG_SITE;;
2479    */*) ac_site_file1=$CONFIG_SITE;;
2480    *)   ac_site_file1=./$CONFIG_SITE;;
2481  esac
2482elif test "x$prefix" != xNONE; then
2483  ac_site_file1=$prefix/share/config.site
2484  ac_site_file2=$prefix/etc/config.site
2485else
2486  ac_site_file1=$ac_default_prefix/share/config.site
2487  ac_site_file2=$ac_default_prefix/etc/config.site
2488fi
2489for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2490do
2491  test "x$ac_site_file" = xNONE && continue
2492  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2493    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2494$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2495    sed 's/^/| /' "$ac_site_file" >&5
2496    . "$ac_site_file" \
2497      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2499as_fn_error $? "failed to load site script $ac_site_file
2500See \`config.log' for more details" "$LINENO" 5; }
2501  fi
2502done
2503
2504if test -r "$cache_file"; then
2505  # Some versions of bash will fail to source /dev/null (special files
2506  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2507  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2508    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2509$as_echo "$as_me: loading cache $cache_file" >&6;}
2510    case $cache_file in
2511      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2512      *)                      . "./$cache_file";;
2513    esac
2514  fi
2515else
2516  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2517$as_echo "$as_me: creating cache $cache_file" >&6;}
2518  >$cache_file
2519fi
2520
2521as_fn_append ac_header_list " stdlib.h"
2522as_fn_append ac_header_list " unistd.h"
2523as_fn_append ac_header_list " sys/param.h"
2524# Check that the precious variables saved in the cache have kept the same
2525# value.
2526ac_cache_corrupted=false
2527for ac_var in $ac_precious_vars; do
2528  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2529  eval ac_new_set=\$ac_env_${ac_var}_set
2530  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2531  eval ac_new_val=\$ac_env_${ac_var}_value
2532  case $ac_old_set,$ac_new_set in
2533    set,)
2534      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2535$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2536      ac_cache_corrupted=: ;;
2537    ,set)
2538      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2539$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2540      ac_cache_corrupted=: ;;
2541    ,);;
2542    *)
2543      if test "x$ac_old_val" != "x$ac_new_val"; then
2544	# differences in whitespace do not lead to failure.
2545	ac_old_val_w=`echo x $ac_old_val`
2546	ac_new_val_w=`echo x $ac_new_val`
2547	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2548	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2549$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2550	  ac_cache_corrupted=:
2551	else
2552	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2553$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2554	  eval $ac_var=\$ac_old_val
2555	fi
2556	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2557$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2558	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2559$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2560      fi;;
2561  esac
2562  # Pass precious variables to config.status.
2563  if test "$ac_new_set" = set; then
2564    case $ac_new_val in
2565    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2566    *) ac_arg=$ac_var=$ac_new_val ;;
2567    esac
2568    case " $ac_configure_args " in
2569      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2570      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2571    esac
2572  fi
2573done
2574if $ac_cache_corrupted; then
2575  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2577  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2578$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2579  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2580fi
2581## -------------------- ##
2582## Main body of script. ##
2583## -------------------- ##
2584
2585ac_ext=c
2586ac_cpp='$CPP $CPPFLAGS'
2587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589ac_compiler_gnu=$ac_cv_c_compiler_gnu
2590
2591
2592
2593ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h"
2594
2595
2596ac_aux_dir=
2597for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2598  if test -f "$ac_dir/install-sh"; then
2599    ac_aux_dir=$ac_dir
2600    ac_install_sh="$ac_aux_dir/install-sh -c"
2601    break
2602  elif test -f "$ac_dir/install.sh"; then
2603    ac_aux_dir=$ac_dir
2604    ac_install_sh="$ac_aux_dir/install.sh -c"
2605    break
2606  elif test -f "$ac_dir/shtool"; then
2607    ac_aux_dir=$ac_dir
2608    ac_install_sh="$ac_aux_dir/shtool install -c"
2609    break
2610  fi
2611done
2612if test -z "$ac_aux_dir"; then
2613  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2614fi
2615
2616# These three variables are undocumented and unsupported,
2617# and are intended to be withdrawn in a future Autoconf release.
2618# They can cause serious problems if a builder's source tree is in a directory
2619# whose full name contains unusual characters.
2620ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2621ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2622ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2623
2624
2625# Make sure we can run config.sub.
2626$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2627  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2628
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2630$as_echo_n "checking build system type... " >&6; }
2631if ${ac_cv_build+:} false; then :
2632  $as_echo_n "(cached) " >&6
2633else
2634  ac_build_alias=$build_alias
2635test "x$ac_build_alias" = x &&
2636  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2637test "x$ac_build_alias" = x &&
2638  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2639ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2640  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2641
2642fi
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2644$as_echo "$ac_cv_build" >&6; }
2645case $ac_cv_build in
2646*-*-*) ;;
2647*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2648esac
2649build=$ac_cv_build
2650ac_save_IFS=$IFS; IFS='-'
2651set x $ac_cv_build
2652shift
2653build_cpu=$1
2654build_vendor=$2
2655shift; shift
2656# Remember, the first character of IFS is used to create $*,
2657# except with old shells:
2658build_os=$*
2659IFS=$ac_save_IFS
2660case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2661
2662
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2664$as_echo_n "checking host system type... " >&6; }
2665if ${ac_cv_host+:} false; then :
2666  $as_echo_n "(cached) " >&6
2667else
2668  if test "x$host_alias" = x; then
2669  ac_cv_host=$ac_cv_build
2670else
2671  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2672    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2673fi
2674
2675fi
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2677$as_echo "$ac_cv_host" >&6; }
2678case $ac_cv_host in
2679*-*-*) ;;
2680*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2681esac
2682host=$ac_cv_host
2683ac_save_IFS=$IFS; IFS='-'
2684set x $ac_cv_host
2685shift
2686host_cpu=$1
2687host_vendor=$2
2688shift; shift
2689# Remember, the first character of IFS is used to create $*,
2690# except with old shells:
2691host_os=$*
2692IFS=$ac_save_IFS
2693case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2694
2695
2696# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2697# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2698# to avoid autoconf errors.
2699ac_ext=c
2700ac_cpp='$CPP $CPPFLAGS'
2701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2703ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704if test -n "$ac_tool_prefix"; then
2705  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2706set dummy ${ac_tool_prefix}gcc; ac_word=$2
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708$as_echo_n "checking for $ac_word... " >&6; }
2709if ${ac_cv_prog_CC+:} false; then :
2710  $as_echo_n "(cached) " >&6
2711else
2712  if test -n "$CC"; then
2713  ac_cv_prog_CC="$CC" # Let the user override the test.
2714else
2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH
2717do
2718  IFS=$as_save_IFS
2719  test -z "$as_dir" && as_dir=.
2720    for ac_exec_ext in '' $ac_executable_extensions; do
2721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724    break 2
2725  fi
2726done
2727  done
2728IFS=$as_save_IFS
2729
2730fi
2731fi
2732CC=$ac_cv_prog_CC
2733if test -n "$CC"; then
2734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2735$as_echo "$CC" >&6; }
2736else
2737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738$as_echo "no" >&6; }
2739fi
2740
2741
2742fi
2743if test -z "$ac_cv_prog_CC"; then
2744  ac_ct_CC=$CC
2745  # Extract the first word of "gcc", so it can be a program name with args.
2746set dummy gcc; ac_word=$2
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748$as_echo_n "checking for $ac_word... " >&6; }
2749if ${ac_cv_prog_ac_ct_CC+:} false; then :
2750  $as_echo_n "(cached) " >&6
2751else
2752  if test -n "$ac_ct_CC"; then
2753  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2754else
2755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756for as_dir in $PATH
2757do
2758  IFS=$as_save_IFS
2759  test -z "$as_dir" && as_dir=.
2760    for ac_exec_ext in '' $ac_executable_extensions; do
2761  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762    ac_cv_prog_ac_ct_CC="gcc"
2763    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2764    break 2
2765  fi
2766done
2767  done
2768IFS=$as_save_IFS
2769
2770fi
2771fi
2772ac_ct_CC=$ac_cv_prog_ac_ct_CC
2773if test -n "$ac_ct_CC"; then
2774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2775$as_echo "$ac_ct_CC" >&6; }
2776else
2777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778$as_echo "no" >&6; }
2779fi
2780
2781  if test "x$ac_ct_CC" = x; then
2782    CC=""
2783  else
2784    case $cross_compiling:$ac_tool_warned in
2785yes:)
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2788ac_tool_warned=yes ;;
2789esac
2790    CC=$ac_ct_CC
2791  fi
2792else
2793  CC="$ac_cv_prog_CC"
2794fi
2795
2796if test -z "$CC"; then
2797          if test -n "$ac_tool_prefix"; then
2798    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2799set dummy ${ac_tool_prefix}cc; ac_word=$2
2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801$as_echo_n "checking for $ac_word... " >&6; }
2802if ${ac_cv_prog_CC+:} false; then :
2803  $as_echo_n "(cached) " >&6
2804else
2805  if test -n "$CC"; then
2806  ac_cv_prog_CC="$CC" # Let the user override the test.
2807else
2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809for as_dir in $PATH
2810do
2811  IFS=$as_save_IFS
2812  test -z "$as_dir" && as_dir=.
2813    for ac_exec_ext in '' $ac_executable_extensions; do
2814  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815    ac_cv_prog_CC="${ac_tool_prefix}cc"
2816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817    break 2
2818  fi
2819done
2820  done
2821IFS=$as_save_IFS
2822
2823fi
2824fi
2825CC=$ac_cv_prog_CC
2826if test -n "$CC"; then
2827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2828$as_echo "$CC" >&6; }
2829else
2830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831$as_echo "no" >&6; }
2832fi
2833
2834
2835  fi
2836fi
2837if test -z "$CC"; then
2838  # Extract the first word of "cc", so it can be a program name with args.
2839set dummy cc; ac_word=$2
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841$as_echo_n "checking for $ac_word... " >&6; }
2842if ${ac_cv_prog_CC+:} false; then :
2843  $as_echo_n "(cached) " >&6
2844else
2845  if test -n "$CC"; then
2846  ac_cv_prog_CC="$CC" # Let the user override the test.
2847else
2848  ac_prog_rejected=no
2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850for as_dir in $PATH
2851do
2852  IFS=$as_save_IFS
2853  test -z "$as_dir" && as_dir=.
2854    for ac_exec_ext in '' $ac_executable_extensions; do
2855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2857       ac_prog_rejected=yes
2858       continue
2859     fi
2860    ac_cv_prog_CC="cc"
2861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862    break 2
2863  fi
2864done
2865  done
2866IFS=$as_save_IFS
2867
2868if test $ac_prog_rejected = yes; then
2869  # We found a bogon in the path, so make sure we never use it.
2870  set dummy $ac_cv_prog_CC
2871  shift
2872  if test $# != 0; then
2873    # We chose a different compiler from the bogus one.
2874    # However, it has the same basename, so the bogon will be chosen
2875    # first if we set CC to just the basename; use the full file name.
2876    shift
2877    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2878  fi
2879fi
2880fi
2881fi
2882CC=$ac_cv_prog_CC
2883if test -n "$CC"; then
2884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885$as_echo "$CC" >&6; }
2886else
2887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888$as_echo "no" >&6; }
2889fi
2890
2891
2892fi
2893if test -z "$CC"; then
2894  if test -n "$ac_tool_prefix"; then
2895  for ac_prog in cl.exe
2896  do
2897    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2898set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900$as_echo_n "checking for $ac_word... " >&6; }
2901if ${ac_cv_prog_CC+:} false; then :
2902  $as_echo_n "(cached) " >&6
2903else
2904  if test -n "$CC"; then
2905  ac_cv_prog_CC="$CC" # Let the user override the test.
2906else
2907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908for as_dir in $PATH
2909do
2910  IFS=$as_save_IFS
2911  test -z "$as_dir" && as_dir=.
2912    for ac_exec_ext in '' $ac_executable_extensions; do
2913  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916    break 2
2917  fi
2918done
2919  done
2920IFS=$as_save_IFS
2921
2922fi
2923fi
2924CC=$ac_cv_prog_CC
2925if test -n "$CC"; then
2926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2927$as_echo "$CC" >&6; }
2928else
2929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930$as_echo "no" >&6; }
2931fi
2932
2933
2934    test -n "$CC" && break
2935  done
2936fi
2937if test -z "$CC"; then
2938  ac_ct_CC=$CC
2939  for ac_prog in cl.exe
2940do
2941  # Extract the first word of "$ac_prog", so it can be a program name with args.
2942set dummy $ac_prog; ac_word=$2
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
2945if ${ac_cv_prog_ac_ct_CC+:} false; then :
2946  $as_echo_n "(cached) " >&6
2947else
2948  if test -n "$ac_ct_CC"; then
2949  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954  IFS=$as_save_IFS
2955  test -z "$as_dir" && as_dir=.
2956    for ac_exec_ext in '' $ac_executable_extensions; do
2957  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958    ac_cv_prog_ac_ct_CC="$ac_prog"
2959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960    break 2
2961  fi
2962done
2963  done
2964IFS=$as_save_IFS
2965
2966fi
2967fi
2968ac_ct_CC=$ac_cv_prog_ac_ct_CC
2969if test -n "$ac_ct_CC"; then
2970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2971$as_echo "$ac_ct_CC" >&6; }
2972else
2973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
2975fi
2976
2977
2978  test -n "$ac_ct_CC" && break
2979done
2980
2981  if test "x$ac_ct_CC" = x; then
2982    CC=""
2983  else
2984    case $cross_compiling:$ac_tool_warned in
2985yes:)
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2988ac_tool_warned=yes ;;
2989esac
2990    CC=$ac_ct_CC
2991  fi
2992fi
2993
2994fi
2995
2996
2997test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999as_fn_error $? "no acceptable C compiler found in \$PATH
3000See \`config.log' for more details" "$LINENO" 5; }
3001
3002# Provide some information about the compiler.
3003$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3004set X $ac_compile
3005ac_compiler=$2
3006for ac_option in --version -v -V -qversion; do
3007  { { ac_try="$ac_compiler $ac_option >&5"
3008case "(($ac_try" in
3009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010  *) ac_try_echo=$ac_try;;
3011esac
3012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3013$as_echo "$ac_try_echo"; } >&5
3014  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3015  ac_status=$?
3016  if test -s conftest.err; then
3017    sed '10a\
3018... rest of stderr output deleted ...
3019         10q' conftest.err >conftest.er1
3020    cat conftest.er1 >&5
3021  fi
3022  rm -f conftest.er1 conftest.err
3023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3024  test $ac_status = 0; }
3025done
3026
3027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3028/* end confdefs.h.  */
3029
3030int
3031main ()
3032{
3033
3034  ;
3035  return 0;
3036}
3037_ACEOF
3038ac_clean_files_save=$ac_clean_files
3039ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3040# Try to create an executable without -o first, disregard a.out.
3041# It will help us diagnose broken compilers, and finding out an intuition
3042# of exeext.
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3044$as_echo_n "checking whether the C compiler works... " >&6; }
3045ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3046
3047# The possible output files:
3048ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3049
3050ac_rmfiles=
3051for ac_file in $ac_files
3052do
3053  case $ac_file in
3054    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3055    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3056  esac
3057done
3058rm -f $ac_rmfiles
3059
3060if { { ac_try="$ac_link_default"
3061case "(($ac_try" in
3062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063  *) ac_try_echo=$ac_try;;
3064esac
3065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066$as_echo "$ac_try_echo"; } >&5
3067  (eval "$ac_link_default") 2>&5
3068  ac_status=$?
3069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070  test $ac_status = 0; }; then :
3071  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3072# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3073# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3074# so that the user can short-circuit this test for compilers unknown to
3075# Autoconf.
3076for ac_file in $ac_files ''
3077do
3078  test -f "$ac_file" || continue
3079  case $ac_file in
3080    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3081	;;
3082    [ab].out )
3083	# We found the default executable, but exeext='' is most
3084	# certainly right.
3085	break;;
3086    *.* )
3087	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3088	then :; else
3089	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3090	fi
3091	# We set ac_cv_exeext here because the later test for it is not
3092	# safe: cross compilers may not add the suffix if given an `-o'
3093	# argument, so we may need to know it at that point already.
3094	# Even if this section looks crufty: it has the advantage of
3095	# actually working.
3096	break;;
3097    * )
3098	break;;
3099  esac
3100done
3101test "$ac_cv_exeext" = no && ac_cv_exeext=
3102
3103else
3104  ac_file=''
3105fi
3106if test -z "$ac_file"; then :
3107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108$as_echo "no" >&6; }
3109$as_echo "$as_me: failed program was:" >&5
3110sed 's/^/| /' conftest.$ac_ext >&5
3111
3112{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3114as_fn_error 77 "C compiler cannot create executables
3115See \`config.log' for more details" "$LINENO" 5; }
3116else
3117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3118$as_echo "yes" >&6; }
3119fi
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3121$as_echo_n "checking for C compiler default output file name... " >&6; }
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3123$as_echo "$ac_file" >&6; }
3124ac_exeext=$ac_cv_exeext
3125
3126rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3127ac_clean_files=$ac_clean_files_save
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3129$as_echo_n "checking for suffix of executables... " >&6; }
3130if { { ac_try="$ac_link"
3131case "(($ac_try" in
3132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133  *) ac_try_echo=$ac_try;;
3134esac
3135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3136$as_echo "$ac_try_echo"; } >&5
3137  (eval "$ac_link") 2>&5
3138  ac_status=$?
3139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3140  test $ac_status = 0; }; then :
3141  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3142# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3143# work properly (i.e., refer to `conftest.exe'), while it won't with
3144# `rm'.
3145for ac_file in conftest.exe conftest conftest.*; do
3146  test -f "$ac_file" || continue
3147  case $ac_file in
3148    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3149    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150	  break;;
3151    * ) break;;
3152  esac
3153done
3154else
3155  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3158See \`config.log' for more details" "$LINENO" 5; }
3159fi
3160rm -f conftest conftest$ac_cv_exeext
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3162$as_echo "$ac_cv_exeext" >&6; }
3163
3164rm -f conftest.$ac_ext
3165EXEEXT=$ac_cv_exeext
3166ac_exeext=$EXEEXT
3167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168/* end confdefs.h.  */
3169#include <stdio.h>
3170int
3171main ()
3172{
3173FILE *f = fopen ("conftest.out", "w");
3174 return ferror (f) || fclose (f) != 0;
3175
3176  ;
3177  return 0;
3178}
3179_ACEOF
3180ac_clean_files="$ac_clean_files conftest.out"
3181# Check that the compiler produces executables we can run.  If not, either
3182# the compiler is broken, or we cross compile.
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3184$as_echo_n "checking whether we are cross compiling... " >&6; }
3185if test "$cross_compiling" != yes; then
3186  { { ac_try="$ac_link"
3187case "(($ac_try" in
3188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189  *) ac_try_echo=$ac_try;;
3190esac
3191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192$as_echo "$ac_try_echo"; } >&5
3193  (eval "$ac_link") 2>&5
3194  ac_status=$?
3195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196  test $ac_status = 0; }
3197  if { ac_try='./conftest$ac_cv_exeext'
3198  { { case "(($ac_try" in
3199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200  *) ac_try_echo=$ac_try;;
3201esac
3202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203$as_echo "$ac_try_echo"; } >&5
3204  (eval "$ac_try") 2>&5
3205  ac_status=$?
3206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207  test $ac_status = 0; }; }; then
3208    cross_compiling=no
3209  else
3210    if test "$cross_compiling" = maybe; then
3211	cross_compiling=yes
3212    else
3213	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215as_fn_error $? "cannot run C compiled programs.
3216If you meant to cross compile, use \`--host'.
3217See \`config.log' for more details" "$LINENO" 5; }
3218    fi
3219  fi
3220fi
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3222$as_echo "$cross_compiling" >&6; }
3223
3224rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3225ac_clean_files=$ac_clean_files_save
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3227$as_echo_n "checking for suffix of object files... " >&6; }
3228if ${ac_cv_objext+:} false; then :
3229  $as_echo_n "(cached) " >&6
3230else
3231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232/* end confdefs.h.  */
3233
3234int
3235main ()
3236{
3237
3238  ;
3239  return 0;
3240}
3241_ACEOF
3242rm -f conftest.o conftest.obj
3243if { { ac_try="$ac_compile"
3244case "(($ac_try" in
3245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246  *) ac_try_echo=$ac_try;;
3247esac
3248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249$as_echo "$ac_try_echo"; } >&5
3250  (eval "$ac_compile") 2>&5
3251  ac_status=$?
3252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253  test $ac_status = 0; }; then :
3254  for ac_file in conftest.o conftest.obj conftest.*; do
3255  test -f "$ac_file" || continue;
3256  case $ac_file in
3257    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3258    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3259       break;;
3260  esac
3261done
3262else
3263  $as_echo "$as_me: failed program was:" >&5
3264sed 's/^/| /' conftest.$ac_ext >&5
3265
3266{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268as_fn_error $? "cannot compute suffix of object files: cannot compile
3269See \`config.log' for more details" "$LINENO" 5; }
3270fi
3271rm -f conftest.$ac_cv_objext conftest.$ac_ext
3272fi
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3274$as_echo "$ac_cv_objext" >&6; }
3275OBJEXT=$ac_cv_objext
3276ac_objext=$OBJEXT
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3278$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3279if ${ac_cv_c_compiler_gnu+:} false; then :
3280  $as_echo_n "(cached) " >&6
3281else
3282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283/* end confdefs.h.  */
3284
3285int
3286main ()
3287{
3288#ifndef __GNUC__
3289       choke me
3290#endif
3291
3292  ;
3293  return 0;
3294}
3295_ACEOF
3296if ac_fn_c_try_compile "$LINENO"; then :
3297  ac_compiler_gnu=yes
3298else
3299  ac_compiler_gnu=no
3300fi
3301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302ac_cv_c_compiler_gnu=$ac_compiler_gnu
3303
3304fi
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3306$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3307if test $ac_compiler_gnu = yes; then
3308  GCC=yes
3309else
3310  GCC=
3311fi
3312ac_test_CFLAGS=${CFLAGS+set}
3313ac_save_CFLAGS=$CFLAGS
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3315$as_echo_n "checking whether $CC accepts -g... " >&6; }
3316if ${ac_cv_prog_cc_g+:} false; then :
3317  $as_echo_n "(cached) " >&6
3318else
3319  ac_save_c_werror_flag=$ac_c_werror_flag
3320   ac_c_werror_flag=yes
3321   ac_cv_prog_cc_g=no
3322   CFLAGS="-g"
3323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324/* end confdefs.h.  */
3325
3326int
3327main ()
3328{
3329
3330  ;
3331  return 0;
3332}
3333_ACEOF
3334if ac_fn_c_try_compile "$LINENO"; then :
3335  ac_cv_prog_cc_g=yes
3336else
3337  CFLAGS=""
3338      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339/* end confdefs.h.  */
3340
3341int
3342main ()
3343{
3344
3345  ;
3346  return 0;
3347}
3348_ACEOF
3349if ac_fn_c_try_compile "$LINENO"; then :
3350
3351else
3352  ac_c_werror_flag=$ac_save_c_werror_flag
3353	 CFLAGS="-g"
3354	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355/* end confdefs.h.  */
3356
3357int
3358main ()
3359{
3360
3361  ;
3362  return 0;
3363}
3364_ACEOF
3365if ac_fn_c_try_compile "$LINENO"; then :
3366  ac_cv_prog_cc_g=yes
3367fi
3368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369fi
3370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371fi
3372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373   ac_c_werror_flag=$ac_save_c_werror_flag
3374fi
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3376$as_echo "$ac_cv_prog_cc_g" >&6; }
3377if test "$ac_test_CFLAGS" = set; then
3378  CFLAGS=$ac_save_CFLAGS
3379elif test $ac_cv_prog_cc_g = yes; then
3380  if test "$GCC" = yes; then
3381    CFLAGS="-g -O2"
3382  else
3383    CFLAGS="-g"
3384  fi
3385else
3386  if test "$GCC" = yes; then
3387    CFLAGS="-O2"
3388  else
3389    CFLAGS=
3390  fi
3391fi
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3393$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3394if ${ac_cv_prog_cc_c89+:} false; then :
3395  $as_echo_n "(cached) " >&6
3396else
3397  ac_cv_prog_cc_c89=no
3398ac_save_CC=$CC
3399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400/* end confdefs.h.  */
3401#include <stdarg.h>
3402#include <stdio.h>
3403#include <sys/types.h>
3404#include <sys/stat.h>
3405/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3406struct buf { int x; };
3407FILE * (*rcsopen) (struct buf *, struct stat *, int);
3408static char *e (p, i)
3409     char **p;
3410     int i;
3411{
3412  return p[i];
3413}
3414static char *f (char * (*g) (char **, int), char **p, ...)
3415{
3416  char *s;
3417  va_list v;
3418  va_start (v,p);
3419  s = g (p, va_arg (v,int));
3420  va_end (v);
3421  return s;
3422}
3423
3424/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3425   function prototypes and stuff, but not '\xHH' hex character constants.
3426   These don't provoke an error unfortunately, instead are silently treated
3427   as 'x'.  The following induces an error, until -std is added to get
3428   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3429   array size at least.  It's necessary to write '\x00'==0 to get something
3430   that's true only with -std.  */
3431int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3432
3433/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3434   inside strings and character constants.  */
3435#define FOO(x) 'x'
3436int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3437
3438int test (int i, double x);
3439struct s1 {int (*f) (int a);};
3440struct s2 {int (*f) (double a);};
3441int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3442int argc;
3443char **argv;
3444int
3445main ()
3446{
3447return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3448  ;
3449  return 0;
3450}
3451_ACEOF
3452for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3453	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3454do
3455  CC="$ac_save_CC $ac_arg"
3456  if ac_fn_c_try_compile "$LINENO"; then :
3457  ac_cv_prog_cc_c89=$ac_arg
3458fi
3459rm -f core conftest.err conftest.$ac_objext
3460  test "x$ac_cv_prog_cc_c89" != "xno" && break
3461done
3462rm -f conftest.$ac_ext
3463CC=$ac_save_CC
3464
3465fi
3466# AC_CACHE_VAL
3467case "x$ac_cv_prog_cc_c89" in
3468  x)
3469    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3470$as_echo "none needed" >&6; } ;;
3471  xno)
3472    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3473$as_echo "unsupported" >&6; } ;;
3474  *)
3475    CC="$CC $ac_cv_prog_cc_c89"
3476    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3477$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3478esac
3479if test "x$ac_cv_prog_cc_c89" != xno; then :
3480
3481fi
3482
3483ac_ext=c
3484ac_cpp='$CPP $CPPFLAGS'
3485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488
3489
3490ac_ext=c
3491ac_cpp='$CPP $CPPFLAGS'
3492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3496$as_echo_n "checking how to run the C preprocessor... " >&6; }
3497# On Suns, sometimes $CPP names a directory.
3498if test -n "$CPP" && test -d "$CPP"; then
3499  CPP=
3500fi
3501if test -z "$CPP"; then
3502  if ${ac_cv_prog_CPP+:} false; then :
3503  $as_echo_n "(cached) " >&6
3504else
3505      # Double quotes because CPP needs to be expanded
3506    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3507    do
3508      ac_preproc_ok=false
3509for ac_c_preproc_warn_flag in '' yes
3510do
3511  # Use a header file that comes with gcc, so configuring glibc
3512  # with a fresh cross-compiler works.
3513  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3514  # <limits.h> exists even on freestanding compilers.
3515  # On the NeXT, cc -E runs the code through the compiler's parser,
3516  # not just through cpp. "Syntax error" is here to catch this case.
3517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518/* end confdefs.h.  */
3519#ifdef __STDC__
3520# include <limits.h>
3521#else
3522# include <assert.h>
3523#endif
3524		     Syntax error
3525_ACEOF
3526if ac_fn_c_try_cpp "$LINENO"; then :
3527
3528else
3529  # Broken: fails on valid input.
3530continue
3531fi
3532rm -f conftest.err conftest.i conftest.$ac_ext
3533
3534  # OK, works on sane cases.  Now check whether nonexistent headers
3535  # can be detected and how.
3536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537/* end confdefs.h.  */
3538#include <ac_nonexistent.h>
3539_ACEOF
3540if ac_fn_c_try_cpp "$LINENO"; then :
3541  # Broken: success on invalid input.
3542continue
3543else
3544  # Passes both tests.
3545ac_preproc_ok=:
3546break
3547fi
3548rm -f conftest.err conftest.i conftest.$ac_ext
3549
3550done
3551# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3552rm -f conftest.i conftest.err conftest.$ac_ext
3553if $ac_preproc_ok; then :
3554  break
3555fi
3556
3557    done
3558    ac_cv_prog_CPP=$CPP
3559
3560fi
3561  CPP=$ac_cv_prog_CPP
3562else
3563  ac_cv_prog_CPP=$CPP
3564fi
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3566$as_echo "$CPP" >&6; }
3567ac_preproc_ok=false
3568for ac_c_preproc_warn_flag in '' yes
3569do
3570  # Use a header file that comes with gcc, so configuring glibc
3571  # with a fresh cross-compiler works.
3572  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3573  # <limits.h> exists even on freestanding compilers.
3574  # On the NeXT, cc -E runs the code through the compiler's parser,
3575  # not just through cpp. "Syntax error" is here to catch this case.
3576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577/* end confdefs.h.  */
3578#ifdef __STDC__
3579# include <limits.h>
3580#else
3581# include <assert.h>
3582#endif
3583		     Syntax error
3584_ACEOF
3585if ac_fn_c_try_cpp "$LINENO"; then :
3586
3587else
3588  # Broken: fails on valid input.
3589continue
3590fi
3591rm -f conftest.err conftest.i conftest.$ac_ext
3592
3593  # OK, works on sane cases.  Now check whether nonexistent headers
3594  # can be detected and how.
3595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596/* end confdefs.h.  */
3597#include <ac_nonexistent.h>
3598_ACEOF
3599if ac_fn_c_try_cpp "$LINENO"; then :
3600  # Broken: success on invalid input.
3601continue
3602else
3603  # Passes both tests.
3604ac_preproc_ok=:
3605break
3606fi
3607rm -f conftest.err conftest.i conftest.$ac_ext
3608
3609done
3610# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3611rm -f conftest.i conftest.err conftest.$ac_ext
3612if $ac_preproc_ok; then :
3613
3614else
3615  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3617as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3618See \`config.log' for more details" "$LINENO" 5; }
3619fi
3620
3621ac_ext=c
3622ac_cpp='$CPP $CPPFLAGS'
3623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626
3627
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3629$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3630if ${ac_cv_path_GREP+:} false; then :
3631  $as_echo_n "(cached) " >&6
3632else
3633  if test -z "$GREP"; then
3634  ac_path_GREP_found=false
3635  # Loop through the user's path and test for each of PROGNAME-LIST
3636  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3638do
3639  IFS=$as_save_IFS
3640  test -z "$as_dir" && as_dir=.
3641    for ac_prog in grep ggrep; do
3642    for ac_exec_ext in '' $ac_executable_extensions; do
3643      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3644      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3645# Check for GNU ac_path_GREP and select it if it is found.
3646  # Check for GNU $ac_path_GREP
3647case `"$ac_path_GREP" --version 2>&1` in
3648*GNU*)
3649  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3650*)
3651  ac_count=0
3652  $as_echo_n 0123456789 >"conftest.in"
3653  while :
3654  do
3655    cat "conftest.in" "conftest.in" >"conftest.tmp"
3656    mv "conftest.tmp" "conftest.in"
3657    cp "conftest.in" "conftest.nl"
3658    $as_echo 'GREP' >> "conftest.nl"
3659    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3660    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3661    as_fn_arith $ac_count + 1 && ac_count=$as_val
3662    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3663      # Best one so far, save it but keep looking for a better one
3664      ac_cv_path_GREP="$ac_path_GREP"
3665      ac_path_GREP_max=$ac_count
3666    fi
3667    # 10*(2^10) chars as input seems more than enough
3668    test $ac_count -gt 10 && break
3669  done
3670  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3671esac
3672
3673      $ac_path_GREP_found && break 3
3674    done
3675  done
3676  done
3677IFS=$as_save_IFS
3678  if test -z "$ac_cv_path_GREP"; then
3679    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3680  fi
3681else
3682  ac_cv_path_GREP=$GREP
3683fi
3684
3685fi
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3687$as_echo "$ac_cv_path_GREP" >&6; }
3688 GREP="$ac_cv_path_GREP"
3689
3690
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3692$as_echo_n "checking for egrep... " >&6; }
3693if ${ac_cv_path_EGREP+:} false; then :
3694  $as_echo_n "(cached) " >&6
3695else
3696  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3697   then ac_cv_path_EGREP="$GREP -E"
3698   else
3699     if test -z "$EGREP"; then
3700  ac_path_EGREP_found=false
3701  # Loop through the user's path and test for each of PROGNAME-LIST
3702  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3704do
3705  IFS=$as_save_IFS
3706  test -z "$as_dir" && as_dir=.
3707    for ac_prog in egrep; do
3708    for ac_exec_ext in '' $ac_executable_extensions; do
3709      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3710      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3711# Check for GNU ac_path_EGREP and select it if it is found.
3712  # Check for GNU $ac_path_EGREP
3713case `"$ac_path_EGREP" --version 2>&1` in
3714*GNU*)
3715  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3716*)
3717  ac_count=0
3718  $as_echo_n 0123456789 >"conftest.in"
3719  while :
3720  do
3721    cat "conftest.in" "conftest.in" >"conftest.tmp"
3722    mv "conftest.tmp" "conftest.in"
3723    cp "conftest.in" "conftest.nl"
3724    $as_echo 'EGREP' >> "conftest.nl"
3725    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3726    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3727    as_fn_arith $ac_count + 1 && ac_count=$as_val
3728    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3729      # Best one so far, save it but keep looking for a better one
3730      ac_cv_path_EGREP="$ac_path_EGREP"
3731      ac_path_EGREP_max=$ac_count
3732    fi
3733    # 10*(2^10) chars as input seems more than enough
3734    test $ac_count -gt 10 && break
3735  done
3736  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3737esac
3738
3739      $ac_path_EGREP_found && break 3
3740    done
3741  done
3742  done
3743IFS=$as_save_IFS
3744  if test -z "$ac_cv_path_EGREP"; then
3745    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3746  fi
3747else
3748  ac_cv_path_EGREP=$EGREP
3749fi
3750
3751   fi
3752fi
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3754$as_echo "$ac_cv_path_EGREP" >&6; }
3755 EGREP="$ac_cv_path_EGREP"
3756
3757
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3759$as_echo_n "checking for ANSI C header files... " >&6; }
3760if ${ac_cv_header_stdc+:} false; then :
3761  $as_echo_n "(cached) " >&6
3762else
3763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764/* end confdefs.h.  */
3765#include <stdlib.h>
3766#include <stdarg.h>
3767#include <string.h>
3768#include <float.h>
3769
3770int
3771main ()
3772{
3773
3774  ;
3775  return 0;
3776}
3777_ACEOF
3778if ac_fn_c_try_compile "$LINENO"; then :
3779  ac_cv_header_stdc=yes
3780else
3781  ac_cv_header_stdc=no
3782fi
3783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784
3785if test $ac_cv_header_stdc = yes; then
3786  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788/* end confdefs.h.  */
3789#include <string.h>
3790
3791_ACEOF
3792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3793  $EGREP "memchr" >/dev/null 2>&1; then :
3794
3795else
3796  ac_cv_header_stdc=no
3797fi
3798rm -f conftest*
3799
3800fi
3801
3802if test $ac_cv_header_stdc = yes; then
3803  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805/* end confdefs.h.  */
3806#include <stdlib.h>
3807
3808_ACEOF
3809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3810  $EGREP "free" >/dev/null 2>&1; then :
3811
3812else
3813  ac_cv_header_stdc=no
3814fi
3815rm -f conftest*
3816
3817fi
3818
3819if test $ac_cv_header_stdc = yes; then
3820  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3821  if test "$cross_compiling" = yes; then :
3822  :
3823else
3824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825/* end confdefs.h.  */
3826#include <ctype.h>
3827#include <stdlib.h>
3828#if ((' ' & 0x0FF) == 0x020)
3829# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3830# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3831#else
3832# define ISLOWER(c) \
3833		   (('a' <= (c) && (c) <= 'i') \
3834		     || ('j' <= (c) && (c) <= 'r') \
3835		     || ('s' <= (c) && (c) <= 'z'))
3836# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3837#endif
3838
3839#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3840int
3841main ()
3842{
3843  int i;
3844  for (i = 0; i < 256; i++)
3845    if (XOR (islower (i), ISLOWER (i))
3846	|| toupper (i) != TOUPPER (i))
3847      return 2;
3848  return 0;
3849}
3850_ACEOF
3851if ac_fn_c_try_run "$LINENO"; then :
3852
3853else
3854  ac_cv_header_stdc=no
3855fi
3856rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3857  conftest.$ac_objext conftest.beam conftest.$ac_ext
3858fi
3859
3860fi
3861fi
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3863$as_echo "$ac_cv_header_stdc" >&6; }
3864if test $ac_cv_header_stdc = yes; then
3865
3866$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3867
3868fi
3869
3870# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3871for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3872		  inttypes.h stdint.h unistd.h
3873do :
3874  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3875ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3876"
3877if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3878  cat >>confdefs.h <<_ACEOF
3879#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3880_ACEOF
3881
3882fi
3883
3884done
3885
3886
3887
3888  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3889if test "x$ac_cv_header_minix_config_h" = xyes; then :
3890  MINIX=yes
3891else
3892  MINIX=
3893fi
3894
3895
3896  if test "$MINIX" = yes; then
3897
3898$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3899
3900
3901$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3902
3903
3904$as_echo "#define _MINIX 1" >>confdefs.h
3905
3906  fi
3907
3908
3909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3910$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3911if ${ac_cv_safe_to_define___extensions__+:} false; then :
3912  $as_echo_n "(cached) " >&6
3913else
3914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915/* end confdefs.h.  */
3916
3917#	  define __EXTENSIONS__ 1
3918	  $ac_includes_default
3919int
3920main ()
3921{
3922
3923  ;
3924  return 0;
3925}
3926_ACEOF
3927if ac_fn_c_try_compile "$LINENO"; then :
3928  ac_cv_safe_to_define___extensions__=yes
3929else
3930  ac_cv_safe_to_define___extensions__=no
3931fi
3932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933fi
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3935$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3936  test $ac_cv_safe_to_define___extensions__ = yes &&
3937    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3938
3939  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3940
3941  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3942
3943  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3944
3945  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3946
3947
3948
3949# Initialize Automake
3950am__api_version='1.11'
3951
3952# Find a good install program.  We prefer a C program (faster),
3953# so one script is as good as another.  But avoid the broken or
3954# incompatible versions:
3955# SysV /etc/install, /usr/sbin/install
3956# SunOS /usr/etc/install
3957# IRIX /sbin/install
3958# AIX /bin/install
3959# AmigaOS /C/install, which installs bootblocks on floppy discs
3960# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3961# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3962# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3963# OS/2's system install, which has a completely different semantic
3964# ./install, which can be erroneously created by make from ./install.sh.
3965# Reject install programs that cannot install multiple files.
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3967$as_echo_n "checking for a BSD-compatible install... " >&6; }
3968if test -z "$INSTALL"; then
3969if ${ac_cv_path_install+:} false; then :
3970  $as_echo_n "(cached) " >&6
3971else
3972  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
3974do
3975  IFS=$as_save_IFS
3976  test -z "$as_dir" && as_dir=.
3977    # Account for people who put trailing slashes in PATH elements.
3978case $as_dir/ in #((
3979  ./ | .// | /[cC]/* | \
3980  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3981  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3982  /usr/ucb/* ) ;;
3983  *)
3984    # OSF1 and SCO ODT 3.0 have their own names for install.
3985    # Don't use installbsd from OSF since it installs stuff as root
3986    # by default.
3987    for ac_prog in ginstall scoinst install; do
3988      for ac_exec_ext in '' $ac_executable_extensions; do
3989	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3990	  if test $ac_prog = install &&
3991	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3992	    # AIX install.  It has an incompatible calling convention.
3993	    :
3994	  elif test $ac_prog = install &&
3995	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3996	    # program-specific install script used by HP pwplus--don't use.
3997	    :
3998	  else
3999	    rm -rf conftest.one conftest.two conftest.dir
4000	    echo one > conftest.one
4001	    echo two > conftest.two
4002	    mkdir conftest.dir
4003	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4004	      test -s conftest.one && test -s conftest.two &&
4005	      test -s conftest.dir/conftest.one &&
4006	      test -s conftest.dir/conftest.two
4007	    then
4008	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4009	      break 3
4010	    fi
4011	  fi
4012	fi
4013      done
4014    done
4015    ;;
4016esac
4017
4018  done
4019IFS=$as_save_IFS
4020
4021rm -rf conftest.one conftest.two conftest.dir
4022
4023fi
4024  if test "${ac_cv_path_install+set}" = set; then
4025    INSTALL=$ac_cv_path_install
4026  else
4027    # As a last resort, use the slow shell script.  Don't cache a
4028    # value for INSTALL within a source directory, because that will
4029    # break other packages using the cache if that directory is
4030    # removed, or if the value is a relative name.
4031    INSTALL=$ac_install_sh
4032  fi
4033fi
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4035$as_echo "$INSTALL" >&6; }
4036
4037# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4038# It thinks the first close brace ends the variable substitution.
4039test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4040
4041test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4042
4043test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4044
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4046$as_echo_n "checking whether build environment is sane... " >&6; }
4047# Just in case
4048sleep 1
4049echo timestamp > conftest.file
4050# Reject unsafe characters in $srcdir or the absolute working directory
4051# name.  Accept space and tab only in the latter.
4052am_lf='
4053'
4054case `pwd` in
4055  *[\\\"\#\$\&\'\`$am_lf]*)
4056    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4057esac
4058case $srcdir in
4059  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4060    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4061esac
4062
4063# Do `set' in a subshell so we don't clobber the current shell's
4064# arguments.  Must try -L first in case configure is actually a
4065# symlink; some systems play weird games with the mod time of symlinks
4066# (eg FreeBSD returns the mod time of the symlink's containing
4067# directory).
4068if (
4069   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4070   if test "$*" = "X"; then
4071      # -L didn't work.
4072      set X `ls -t "$srcdir/configure" conftest.file`
4073   fi
4074   rm -f conftest.file
4075   if test "$*" != "X $srcdir/configure conftest.file" \
4076      && test "$*" != "X conftest.file $srcdir/configure"; then
4077
4078      # If neither matched, then we have a broken ls.  This can happen
4079      # if, for instance, CONFIG_SHELL is bash and it inherits a
4080      # broken ls alias from the environment.  This has actually
4081      # happened.  Such a system could not be considered "sane".
4082      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4083alias in your environment" "$LINENO" 5
4084   fi
4085
4086   test "$2" = conftest.file
4087   )
4088then
4089   # Ok.
4090   :
4091else
4092   as_fn_error $? "newly created file is older than distributed files!
4093Check your system clock" "$LINENO" 5
4094fi
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4096$as_echo "yes" >&6; }
4097test "$program_prefix" != NONE &&
4098  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4099# Use a double $ so make ignores it.
4100test "$program_suffix" != NONE &&
4101  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4102# Double any \ or $.
4103# By default was `s,x,x', remove it if useless.
4104ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4105program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4106
4107# expand $ac_aux_dir to an absolute path
4108am_aux_dir=`cd $ac_aux_dir && pwd`
4109
4110if test x"${MISSING+set}" != xset; then
4111  case $am_aux_dir in
4112  *\ * | *\	*)
4113    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4114  *)
4115    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4116  esac
4117fi
4118# Use eval to expand $SHELL
4119if eval "$MISSING --run true"; then
4120  am_missing_run="$MISSING --run "
4121else
4122  am_missing_run=
4123  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4124$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4125fi
4126
4127if test x"${install_sh}" != xset; then
4128  case $am_aux_dir in
4129  *\ * | *\	*)
4130    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4131  *)
4132    install_sh="\${SHELL} $am_aux_dir/install-sh"
4133  esac
4134fi
4135
4136# Installed binaries are usually stripped using `strip' when the user
4137# run `make install-strip'.  However `strip' might not be the right
4138# tool to use in cross-compilation environments, therefore Automake
4139# will honor the `STRIP' environment variable to overrule this program.
4140if test "$cross_compiling" != no; then
4141  if test -n "$ac_tool_prefix"; then
4142  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4143set dummy ${ac_tool_prefix}strip; ac_word=$2
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145$as_echo_n "checking for $ac_word... " >&6; }
4146if ${ac_cv_prog_STRIP+:} false; then :
4147  $as_echo_n "(cached) " >&6
4148else
4149  if test -n "$STRIP"; then
4150  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4151else
4152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153for as_dir in $PATH
4154do
4155  IFS=$as_save_IFS
4156  test -z "$as_dir" && as_dir=.
4157    for ac_exec_ext in '' $ac_executable_extensions; do
4158  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4159    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161    break 2
4162  fi
4163done
4164  done
4165IFS=$as_save_IFS
4166
4167fi
4168fi
4169STRIP=$ac_cv_prog_STRIP
4170if test -n "$STRIP"; then
4171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4172$as_echo "$STRIP" >&6; }
4173else
4174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175$as_echo "no" >&6; }
4176fi
4177
4178
4179fi
4180if test -z "$ac_cv_prog_STRIP"; then
4181  ac_ct_STRIP=$STRIP
4182  # Extract the first word of "strip", so it can be a program name with args.
4183set dummy strip; ac_word=$2
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185$as_echo_n "checking for $ac_word... " >&6; }
4186if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4187  $as_echo_n "(cached) " >&6
4188else
4189  if test -n "$ac_ct_STRIP"; then
4190  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4191else
4192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193for as_dir in $PATH
4194do
4195  IFS=$as_save_IFS
4196  test -z "$as_dir" && as_dir=.
4197    for ac_exec_ext in '' $ac_executable_extensions; do
4198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4199    ac_cv_prog_ac_ct_STRIP="strip"
4200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201    break 2
4202  fi
4203done
4204  done
4205IFS=$as_save_IFS
4206
4207fi
4208fi
4209ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4210if test -n "$ac_ct_STRIP"; then
4211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4212$as_echo "$ac_ct_STRIP" >&6; }
4213else
4214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215$as_echo "no" >&6; }
4216fi
4217
4218  if test "x$ac_ct_STRIP" = x; then
4219    STRIP=":"
4220  else
4221    case $cross_compiling:$ac_tool_warned in
4222yes:)
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4225ac_tool_warned=yes ;;
4226esac
4227    STRIP=$ac_ct_STRIP
4228  fi
4229else
4230  STRIP="$ac_cv_prog_STRIP"
4231fi
4232
4233fi
4234INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4235
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4237$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4238if test -z "$MKDIR_P"; then
4239  if ${ac_cv_path_mkdir+:} false; then :
4240  $as_echo_n "(cached) " >&6
4241else
4242  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4244do
4245  IFS=$as_save_IFS
4246  test -z "$as_dir" && as_dir=.
4247    for ac_prog in mkdir gmkdir; do
4248	 for ac_exec_ext in '' $ac_executable_extensions; do
4249	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4250	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4251	     'mkdir (GNU coreutils) '* | \
4252	     'mkdir (coreutils) '* | \
4253	     'mkdir (fileutils) '4.1*)
4254	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4255	       break 3;;
4256	   esac
4257	 done
4258       done
4259  done
4260IFS=$as_save_IFS
4261
4262fi
4263
4264  test -d ./--version && rmdir ./--version
4265  if test "${ac_cv_path_mkdir+set}" = set; then
4266    MKDIR_P="$ac_cv_path_mkdir -p"
4267  else
4268    # As a last resort, use the slow shell script.  Don't cache a
4269    # value for MKDIR_P within a source directory, because that will
4270    # break other packages using the cache if that directory is
4271    # removed, or if the value is a relative name.
4272    MKDIR_P="$ac_install_sh -d"
4273  fi
4274fi
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4276$as_echo "$MKDIR_P" >&6; }
4277
4278mkdir_p="$MKDIR_P"
4279case $mkdir_p in
4280  [\\/$]* | ?:[\\/]*) ;;
4281  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4282esac
4283
4284for ac_prog in gawk mawk nawk awk
4285do
4286  # Extract the first word of "$ac_prog", so it can be a program name with args.
4287set dummy $ac_prog; ac_word=$2
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289$as_echo_n "checking for $ac_word... " >&6; }
4290if ${ac_cv_prog_AWK+:} false; then :
4291  $as_echo_n "(cached) " >&6
4292else
4293  if test -n "$AWK"; then
4294  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4295else
4296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297for as_dir in $PATH
4298do
4299  IFS=$as_save_IFS
4300  test -z "$as_dir" && as_dir=.
4301    for ac_exec_ext in '' $ac_executable_extensions; do
4302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4303    ac_cv_prog_AWK="$ac_prog"
4304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305    break 2
4306  fi
4307done
4308  done
4309IFS=$as_save_IFS
4310
4311fi
4312fi
4313AWK=$ac_cv_prog_AWK
4314if test -n "$AWK"; then
4315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4316$as_echo "$AWK" >&6; }
4317else
4318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319$as_echo "no" >&6; }
4320fi
4321
4322
4323  test -n "$AWK" && break
4324done
4325
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4327$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4328set x ${MAKE-make}
4329ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4330if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4331  $as_echo_n "(cached) " >&6
4332else
4333  cat >conftest.make <<\_ACEOF
4334SHELL = /bin/sh
4335all:
4336	@echo '@@@%%%=$(MAKE)=@@@%%%'
4337_ACEOF
4338# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4339case `${MAKE-make} -f conftest.make 2>/dev/null` in
4340  *@@@%%%=?*=@@@%%%*)
4341    eval ac_cv_prog_make_${ac_make}_set=yes;;
4342  *)
4343    eval ac_cv_prog_make_${ac_make}_set=no;;
4344esac
4345rm -f conftest.make
4346fi
4347if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4349$as_echo "yes" >&6; }
4350  SET_MAKE=
4351else
4352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353$as_echo "no" >&6; }
4354  SET_MAKE="MAKE=${MAKE-make}"
4355fi
4356
4357rm -rf .tst 2>/dev/null
4358mkdir .tst 2>/dev/null
4359if test -d .tst; then
4360  am__leading_dot=.
4361else
4362  am__leading_dot=_
4363fi
4364rmdir .tst 2>/dev/null
4365
4366DEPDIR="${am__leading_dot}deps"
4367
4368ac_config_commands="$ac_config_commands depfiles"
4369
4370
4371am_make=${MAKE-make}
4372cat > confinc << 'END'
4373am__doit:
4374	@echo this is the am__doit target
4375.PHONY: am__doit
4376END
4377# If we don't find an include directive, just comment out the code.
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4379$as_echo_n "checking for style of include used by $am_make... " >&6; }
4380am__include="#"
4381am__quote=
4382_am_result=none
4383# First try GNU make style include.
4384echo "include confinc" > confmf
4385# Ignore all kinds of additional output from `make'.
4386case `$am_make -s -f confmf 2> /dev/null` in #(
4387*the\ am__doit\ target*)
4388  am__include=include
4389  am__quote=
4390  _am_result=GNU
4391  ;;
4392esac
4393# Now try BSD make style include.
4394if test "$am__include" = "#"; then
4395   echo '.include "confinc"' > confmf
4396   case `$am_make -s -f confmf 2> /dev/null` in #(
4397   *the\ am__doit\ target*)
4398     am__include=.include
4399     am__quote="\""
4400     _am_result=BSD
4401     ;;
4402   esac
4403fi
4404
4405
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4407$as_echo "$_am_result" >&6; }
4408rm -f confinc confmf
4409
4410# Check whether --enable-dependency-tracking was given.
4411if test "${enable_dependency_tracking+set}" = set; then :
4412  enableval=$enable_dependency_tracking;
4413fi
4414
4415if test "x$enable_dependency_tracking" != xno; then
4416  am_depcomp="$ac_aux_dir/depcomp"
4417  AMDEPBACKSLASH='\'
4418fi
4419 if test "x$enable_dependency_tracking" != xno; then
4420  AMDEP_TRUE=
4421  AMDEP_FALSE='#'
4422else
4423  AMDEP_TRUE='#'
4424  AMDEP_FALSE=
4425fi
4426
4427
4428if test "`cd $srcdir && pwd`" != "`pwd`"; then
4429  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4430  # is not polluted with repeated "-I."
4431  am__isrc=' -I$(srcdir)'
4432  # test to see if srcdir already configured
4433  if test -f $srcdir/config.status; then
4434    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4435  fi
4436fi
4437
4438# test whether we have cygpath
4439if test -z "$CYGPATH_W"; then
4440  if (cygpath --version) >/dev/null 2>/dev/null; then
4441    CYGPATH_W='cygpath -w'
4442  else
4443    CYGPATH_W=echo
4444  fi
4445fi
4446
4447
4448# Define the identity of the package.
4449 PACKAGE='libX11'
4450 VERSION='1.4.4'
4451
4452
4453cat >>confdefs.h <<_ACEOF
4454#define PACKAGE "$PACKAGE"
4455_ACEOF
4456
4457
4458cat >>confdefs.h <<_ACEOF
4459#define VERSION "$VERSION"
4460_ACEOF
4461
4462# Some tools Automake needs.
4463
4464ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4465
4466
4467AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4468
4469
4470AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4471
4472
4473AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4474
4475
4476MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4477
4478# We need awk for the "check" target.  The system "awk" is bad on
4479# some platforms.
4480# Always define AMTAR for backward compatibility.
4481
4482AMTAR=${AMTAR-"${am_missing_run}tar"}
4483
4484am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4485
4486
4487
4488
4489depcc="$CC"   am_compiler_list=
4490
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4492$as_echo_n "checking dependency style of $depcc... " >&6; }
4493if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4494  $as_echo_n "(cached) " >&6
4495else
4496  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4497  # We make a subdir and do the tests there.  Otherwise we can end up
4498  # making bogus files that we don't know about and never remove.  For
4499  # instance it was reported that on HP-UX the gcc test will end up
4500  # making a dummy file named `D' -- because `-MD' means `put the output
4501  # in D'.
4502  mkdir conftest.dir
4503  # Copy depcomp to subdir because otherwise we won't find it if we're
4504  # using a relative directory.
4505  cp "$am_depcomp" conftest.dir
4506  cd conftest.dir
4507  # We will build objects and dependencies in a subdirectory because
4508  # it helps to detect inapplicable dependency modes.  For instance
4509  # both Tru64's cc and ICC support -MD to output dependencies as a
4510  # side effect of compilation, but ICC will put the dependencies in
4511  # the current directory while Tru64 will put them in the object
4512  # directory.
4513  mkdir sub
4514
4515  am_cv_CC_dependencies_compiler_type=none
4516  if test "$am_compiler_list" = ""; then
4517     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4518  fi
4519  am__universal=false
4520  case " $depcc " in #(
4521     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4522     esac
4523
4524  for depmode in $am_compiler_list; do
4525    # Setup a source with many dependencies, because some compilers
4526    # like to wrap large dependency lists on column 80 (with \), and
4527    # we should not choose a depcomp mode which is confused by this.
4528    #
4529    # We need to recreate these files for each test, as the compiler may
4530    # overwrite some of them when testing with obscure command lines.
4531    # This happens at least with the AIX C compiler.
4532    : > sub/conftest.c
4533    for i in 1 2 3 4 5 6; do
4534      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4535      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4536      # Solaris 8's {/usr,}/bin/sh.
4537      touch sub/conftst$i.h
4538    done
4539    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4540
4541    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4542    # mode.  It turns out that the SunPro C++ compiler does not properly
4543    # handle `-M -o', and we need to detect this.  Also, some Intel
4544    # versions had trouble with output in subdirs
4545    am__obj=sub/conftest.${OBJEXT-o}
4546    am__minus_obj="-o $am__obj"
4547    case $depmode in
4548    gcc)
4549      # This depmode causes a compiler race in universal mode.
4550      test "$am__universal" = false || continue
4551      ;;
4552    nosideeffect)
4553      # after this tag, mechanisms are not by side-effect, so they'll
4554      # only be used when explicitly requested
4555      if test "x$enable_dependency_tracking" = xyes; then
4556	continue
4557      else
4558	break
4559      fi
4560      ;;
4561    msvisualcpp | msvcmsys)
4562      # This compiler won't grok `-c -o', but also, the minuso test has
4563      # not run yet.  These depmodes are late enough in the game, and
4564      # so weak that their functioning should not be impacted.
4565      am__obj=conftest.${OBJEXT-o}
4566      am__minus_obj=
4567      ;;
4568    none) break ;;
4569    esac
4570    if depmode=$depmode \
4571       source=sub/conftest.c object=$am__obj \
4572       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4573       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4574         >/dev/null 2>conftest.err &&
4575       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4576       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4577       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4578       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4579      # icc doesn't choke on unknown options, it will just issue warnings
4580      # or remarks (even with -Werror).  So we grep stderr for any message
4581      # that says an option was ignored or not supported.
4582      # When given -MP, icc 7.0 and 7.1 complain thusly:
4583      #   icc: Command line warning: ignoring option '-M'; no argument required
4584      # The diagnosis changed in icc 8.0:
4585      #   icc: Command line remark: option '-MP' not supported
4586      if (grep 'ignoring option' conftest.err ||
4587          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4588        am_cv_CC_dependencies_compiler_type=$depmode
4589        break
4590      fi
4591    fi
4592  done
4593
4594  cd ..
4595  rm -rf conftest.dir
4596else
4597  am_cv_CC_dependencies_compiler_type=none
4598fi
4599
4600fi
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4602$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4603CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4604
4605 if
4606  test "x$enable_dependency_tracking" != xno \
4607  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4608  am__fastdepCC_TRUE=
4609  am__fastdepCC_FALSE='#'
4610else
4611  am__fastdepCC_TRUE='#'
4612  am__fastdepCC_FALSE=
4613fi
4614
4615
4616
4617
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4619$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4620    # Check whether --enable-maintainer-mode was given.
4621if test "${enable_maintainer_mode+set}" = set; then :
4622  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4623else
4624  USE_MAINTAINER_MODE=no
4625fi
4626
4627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4628$as_echo "$USE_MAINTAINER_MODE" >&6; }
4629   if test $USE_MAINTAINER_MODE = yes; then
4630  MAINTAINER_MODE_TRUE=
4631  MAINTAINER_MODE_FALSE='#'
4632else
4633  MAINTAINER_MODE_TRUE='#'
4634  MAINTAINER_MODE_FALSE=
4635fi
4636
4637  MAINT=$MAINTAINER_MODE_TRUE
4638
4639
4640
4641# Initialize libtool
4642case `pwd` in
4643  *\ * | *\	*)
4644    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4645$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4646esac
4647
4648
4649
4650macro_version='2.4'
4651macro_revision='1.3293'
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665ltmain="$ac_aux_dir/ltmain.sh"
4666
4667# Backslashify metacharacters that are still active within
4668# double-quoted strings.
4669sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4670
4671# Same as above, but do not quote variable references.
4672double_quote_subst='s/\(["`\\]\)/\\\1/g'
4673
4674# Sed substitution to delay expansion of an escaped shell variable in a
4675# double_quote_subst'ed string.
4676delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4677
4678# Sed substitution to delay expansion of an escaped single quote.
4679delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4680
4681# Sed substitution to avoid accidental globbing in evaled expressions
4682no_glob_subst='s/\*/\\\*/g'
4683
4684ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4685ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4686ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4687
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4689$as_echo_n "checking how to print strings... " >&6; }
4690# Test print first, because it will be a builtin if present.
4691if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4692   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4693  ECHO='print -r --'
4694elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4695  ECHO='printf %s\n'
4696else
4697  # Use this function as a fallback that always works.
4698  func_fallback_echo ()
4699  {
4700    eval 'cat <<_LTECHO_EOF
4701$1
4702_LTECHO_EOF'
4703  }
4704  ECHO='func_fallback_echo'
4705fi
4706
4707# func_echo_all arg...
4708# Invoke $ECHO with all args, space-separated.
4709func_echo_all ()
4710{
4711    $ECHO ""
4712}
4713
4714case "$ECHO" in
4715  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4716$as_echo "printf" >&6; } ;;
4717  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4718$as_echo "print -r" >&6; } ;;
4719  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4720$as_echo "cat" >&6; } ;;
4721esac
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4737$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4738if ${ac_cv_path_SED+:} false; then :
4739  $as_echo_n "(cached) " >&6
4740else
4741            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4742     for ac_i in 1 2 3 4 5 6 7; do
4743       ac_script="$ac_script$as_nl$ac_script"
4744     done
4745     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4746     { ac_script=; unset ac_script;}
4747     if test -z "$SED"; then
4748  ac_path_SED_found=false
4749  # Loop through the user's path and test for each of PROGNAME-LIST
4750  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751for as_dir in $PATH
4752do
4753  IFS=$as_save_IFS
4754  test -z "$as_dir" && as_dir=.
4755    for ac_prog in sed gsed; do
4756    for ac_exec_ext in '' $ac_executable_extensions; do
4757      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4758      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4759# Check for GNU ac_path_SED and select it if it is found.
4760  # Check for GNU $ac_path_SED
4761case `"$ac_path_SED" --version 2>&1` in
4762*GNU*)
4763  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4764*)
4765  ac_count=0
4766  $as_echo_n 0123456789 >"conftest.in"
4767  while :
4768  do
4769    cat "conftest.in" "conftest.in" >"conftest.tmp"
4770    mv "conftest.tmp" "conftest.in"
4771    cp "conftest.in" "conftest.nl"
4772    $as_echo '' >> "conftest.nl"
4773    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4774    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4775    as_fn_arith $ac_count + 1 && ac_count=$as_val
4776    if test $ac_count -gt ${ac_path_SED_max-0}; then
4777      # Best one so far, save it but keep looking for a better one
4778      ac_cv_path_SED="$ac_path_SED"
4779      ac_path_SED_max=$ac_count
4780    fi
4781    # 10*(2^10) chars as input seems more than enough
4782    test $ac_count -gt 10 && break
4783  done
4784  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4785esac
4786
4787      $ac_path_SED_found && break 3
4788    done
4789  done
4790  done
4791IFS=$as_save_IFS
4792  if test -z "$ac_cv_path_SED"; then
4793    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4794  fi
4795else
4796  ac_cv_path_SED=$SED
4797fi
4798
4799fi
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4801$as_echo "$ac_cv_path_SED" >&6; }
4802 SED="$ac_cv_path_SED"
4803  rm -f conftest.sed
4804
4805test -z "$SED" && SED=sed
4806Xsed="$SED -e 1s/^X//"
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4819$as_echo_n "checking for fgrep... " >&6; }
4820if ${ac_cv_path_FGREP+:} false; then :
4821  $as_echo_n "(cached) " >&6
4822else
4823  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4824   then ac_cv_path_FGREP="$GREP -F"
4825   else
4826     if test -z "$FGREP"; then
4827  ac_path_FGREP_found=false
4828  # Loop through the user's path and test for each of PROGNAME-LIST
4829  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4831do
4832  IFS=$as_save_IFS
4833  test -z "$as_dir" && as_dir=.
4834    for ac_prog in fgrep; do
4835    for ac_exec_ext in '' $ac_executable_extensions; do
4836      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4837      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4838# Check for GNU ac_path_FGREP and select it if it is found.
4839  # Check for GNU $ac_path_FGREP
4840case `"$ac_path_FGREP" --version 2>&1` in
4841*GNU*)
4842  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4843*)
4844  ac_count=0
4845  $as_echo_n 0123456789 >"conftest.in"
4846  while :
4847  do
4848    cat "conftest.in" "conftest.in" >"conftest.tmp"
4849    mv "conftest.tmp" "conftest.in"
4850    cp "conftest.in" "conftest.nl"
4851    $as_echo 'FGREP' >> "conftest.nl"
4852    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4853    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4854    as_fn_arith $ac_count + 1 && ac_count=$as_val
4855    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4856      # Best one so far, save it but keep looking for a better one
4857      ac_cv_path_FGREP="$ac_path_FGREP"
4858      ac_path_FGREP_max=$ac_count
4859    fi
4860    # 10*(2^10) chars as input seems more than enough
4861    test $ac_count -gt 10 && break
4862  done
4863  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4864esac
4865
4866      $ac_path_FGREP_found && break 3
4867    done
4868  done
4869  done
4870IFS=$as_save_IFS
4871  if test -z "$ac_cv_path_FGREP"; then
4872    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4873  fi
4874else
4875  ac_cv_path_FGREP=$FGREP
4876fi
4877
4878   fi
4879fi
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4881$as_echo "$ac_cv_path_FGREP" >&6; }
4882 FGREP="$ac_cv_path_FGREP"
4883
4884
4885test -z "$GREP" && GREP=grep
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905# Check whether --with-gnu-ld was given.
4906if test "${with_gnu_ld+set}" = set; then :
4907  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4908else
4909  with_gnu_ld=no
4910fi
4911
4912ac_prog=ld
4913if test "$GCC" = yes; then
4914  # Check if gcc -print-prog-name=ld gives a path.
4915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4916$as_echo_n "checking for ld used by $CC... " >&6; }
4917  case $host in
4918  *-*-mingw*)
4919    # gcc leaves a trailing carriage return which upsets mingw
4920    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4921  *)
4922    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4923  esac
4924  case $ac_prog in
4925    # Accept absolute paths.
4926    [\\/]* | ?:[\\/]*)
4927      re_direlt='/[^/][^/]*/\.\./'
4928      # Canonicalize the pathname of ld
4929      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4930      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4931	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4932      done
4933      test -z "$LD" && LD="$ac_prog"
4934      ;;
4935  "")
4936    # If it fails, then pretend we aren't using GCC.
4937    ac_prog=ld
4938    ;;
4939  *)
4940    # If it is relative, then search for the first ld in PATH.
4941    with_gnu_ld=unknown
4942    ;;
4943  esac
4944elif test "$with_gnu_ld" = yes; then
4945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4946$as_echo_n "checking for GNU ld... " >&6; }
4947else
4948  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4949$as_echo_n "checking for non-GNU ld... " >&6; }
4950fi
4951if ${lt_cv_path_LD+:} false; then :
4952  $as_echo_n "(cached) " >&6
4953else
4954  if test -z "$LD"; then
4955  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4956  for ac_dir in $PATH; do
4957    IFS="$lt_save_ifs"
4958    test -z "$ac_dir" && ac_dir=.
4959    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4960      lt_cv_path_LD="$ac_dir/$ac_prog"
4961      # Check to see if the program is GNU ld.  I'd rather use --version,
4962      # but apparently some variants of GNU ld only accept -v.
4963      # Break only if it was the GNU/non-GNU ld that we prefer.
4964      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4965      *GNU* | *'with BFD'*)
4966	test "$with_gnu_ld" != no && break
4967	;;
4968      *)
4969	test "$with_gnu_ld" != yes && break
4970	;;
4971      esac
4972    fi
4973  done
4974  IFS="$lt_save_ifs"
4975else
4976  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4977fi
4978fi
4979
4980LD="$lt_cv_path_LD"
4981if test -n "$LD"; then
4982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4983$as_echo "$LD" >&6; }
4984else
4985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986$as_echo "no" >&6; }
4987fi
4988test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4990$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4991if ${lt_cv_prog_gnu_ld+:} false; then :
4992  $as_echo_n "(cached) " >&6
4993else
4994  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4995case `$LD -v 2>&1 </dev/null` in
4996*GNU* | *'with BFD'*)
4997  lt_cv_prog_gnu_ld=yes
4998  ;;
4999*)
5000  lt_cv_prog_gnu_ld=no
5001  ;;
5002esac
5003fi
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5005$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5006with_gnu_ld=$lt_cv_prog_gnu_ld
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5017$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5018if ${lt_cv_path_NM+:} false; then :
5019  $as_echo_n "(cached) " >&6
5020else
5021  if test -n "$NM"; then
5022  # Let the user override the test.
5023  lt_cv_path_NM="$NM"
5024else
5025  lt_nm_to_check="${ac_tool_prefix}nm"
5026  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5027    lt_nm_to_check="$lt_nm_to_check nm"
5028  fi
5029  for lt_tmp_nm in $lt_nm_to_check; do
5030    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5031    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5032      IFS="$lt_save_ifs"
5033      test -z "$ac_dir" && ac_dir=.
5034      tmp_nm="$ac_dir/$lt_tmp_nm"
5035      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5036	# Check to see if the nm accepts a BSD-compat flag.
5037	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5038	#   nm: unknown option "B" ignored
5039	# Tru64's nm complains that /dev/null is an invalid object file
5040	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5041	*/dev/null* | *'Invalid file or object type'*)
5042	  lt_cv_path_NM="$tmp_nm -B"
5043	  break
5044	  ;;
5045	*)
5046	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5047	  */dev/null*)
5048	    lt_cv_path_NM="$tmp_nm -p"
5049	    break
5050	    ;;
5051	  *)
5052	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5053	    continue # so that we can try to find one that supports BSD flags
5054	    ;;
5055	  esac
5056	  ;;
5057	esac
5058      fi
5059    done
5060    IFS="$lt_save_ifs"
5061  done
5062  : ${lt_cv_path_NM=no}
5063fi
5064fi
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5066$as_echo "$lt_cv_path_NM" >&6; }
5067if test "$lt_cv_path_NM" != "no"; then
5068  NM="$lt_cv_path_NM"
5069else
5070  # Didn't find any BSD compatible name lister, look for dumpbin.
5071  if test -n "$DUMPBIN"; then :
5072    # Let the user override the test.
5073  else
5074    if test -n "$ac_tool_prefix"; then
5075  for ac_prog in dumpbin "link -dump"
5076  do
5077    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5078set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080$as_echo_n "checking for $ac_word... " >&6; }
5081if ${ac_cv_prog_DUMPBIN+:} false; then :
5082  $as_echo_n "(cached) " >&6
5083else
5084  if test -n "$DUMPBIN"; then
5085  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5086else
5087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088for as_dir in $PATH
5089do
5090  IFS=$as_save_IFS
5091  test -z "$as_dir" && as_dir=.
5092    for ac_exec_ext in '' $ac_executable_extensions; do
5093  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5094    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096    break 2
5097  fi
5098done
5099  done
5100IFS=$as_save_IFS
5101
5102fi
5103fi
5104DUMPBIN=$ac_cv_prog_DUMPBIN
5105if test -n "$DUMPBIN"; then
5106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5107$as_echo "$DUMPBIN" >&6; }
5108else
5109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110$as_echo "no" >&6; }
5111fi
5112
5113
5114    test -n "$DUMPBIN" && break
5115  done
5116fi
5117if test -z "$DUMPBIN"; then
5118  ac_ct_DUMPBIN=$DUMPBIN
5119  for ac_prog in dumpbin "link -dump"
5120do
5121  # Extract the first word of "$ac_prog", so it can be a program name with args.
5122set dummy $ac_prog; ac_word=$2
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124$as_echo_n "checking for $ac_word... " >&6; }
5125if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5126  $as_echo_n "(cached) " >&6
5127else
5128  if test -n "$ac_ct_DUMPBIN"; then
5129  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5130else
5131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132for as_dir in $PATH
5133do
5134  IFS=$as_save_IFS
5135  test -z "$as_dir" && as_dir=.
5136    for ac_exec_ext in '' $ac_executable_extensions; do
5137  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140    break 2
5141  fi
5142done
5143  done
5144IFS=$as_save_IFS
5145
5146fi
5147fi
5148ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5149if test -n "$ac_ct_DUMPBIN"; then
5150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5151$as_echo "$ac_ct_DUMPBIN" >&6; }
5152else
5153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154$as_echo "no" >&6; }
5155fi
5156
5157
5158  test -n "$ac_ct_DUMPBIN" && break
5159done
5160
5161  if test "x$ac_ct_DUMPBIN" = x; then
5162    DUMPBIN=":"
5163  else
5164    case $cross_compiling:$ac_tool_warned in
5165yes:)
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5168ac_tool_warned=yes ;;
5169esac
5170    DUMPBIN=$ac_ct_DUMPBIN
5171  fi
5172fi
5173
5174    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5175    *COFF*)
5176      DUMPBIN="$DUMPBIN -symbols"
5177      ;;
5178    *)
5179      DUMPBIN=:
5180      ;;
5181    esac
5182  fi
5183
5184  if test "$DUMPBIN" != ":"; then
5185    NM="$DUMPBIN"
5186  fi
5187fi
5188test -z "$NM" && NM=nm
5189
5190
5191
5192
5193
5194
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5196$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5197if ${lt_cv_nm_interface+:} false; then :
5198  $as_echo_n "(cached) " >&6
5199else
5200  lt_cv_nm_interface="BSD nm"
5201  echo "int some_variable = 0;" > conftest.$ac_ext
5202  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5203  (eval "$ac_compile" 2>conftest.err)
5204  cat conftest.err >&5
5205  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5206  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5207  cat conftest.err >&5
5208  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5209  cat conftest.out >&5
5210  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5211    lt_cv_nm_interface="MS dumpbin"
5212  fi
5213  rm -f conftest*
5214fi
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5216$as_echo "$lt_cv_nm_interface" >&6; }
5217
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5219$as_echo_n "checking whether ln -s works... " >&6; }
5220LN_S=$as_ln_s
5221if test "$LN_S" = "ln -s"; then
5222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5223$as_echo "yes" >&6; }
5224else
5225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5226$as_echo "no, using $LN_S" >&6; }
5227fi
5228
5229# find the maximum length of command line arguments
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5231$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5232if ${lt_cv_sys_max_cmd_len+:} false; then :
5233  $as_echo_n "(cached) " >&6
5234else
5235    i=0
5236  teststring="ABCD"
5237
5238  case $build_os in
5239  msdosdjgpp*)
5240    # On DJGPP, this test can blow up pretty badly due to problems in libc
5241    # (any single argument exceeding 2000 bytes causes a buffer overrun
5242    # during glob expansion).  Even if it were fixed, the result of this
5243    # check would be larger than it should be.
5244    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5245    ;;
5246
5247  gnu*)
5248    # Under GNU Hurd, this test is not required because there is
5249    # no limit to the length of command line arguments.
5250    # Libtool will interpret -1 as no limit whatsoever
5251    lt_cv_sys_max_cmd_len=-1;
5252    ;;
5253
5254  cygwin* | mingw* | cegcc*)
5255    # On Win9x/ME, this test blows up -- it succeeds, but takes
5256    # about 5 minutes as the teststring grows exponentially.
5257    # Worse, since 9x/ME are not pre-emptively multitasking,
5258    # you end up with a "frozen" computer, even though with patience
5259    # the test eventually succeeds (with a max line length of 256k).
5260    # Instead, let's just punt: use the minimum linelength reported by
5261    # all of the supported platforms: 8192 (on NT/2K/XP).
5262    lt_cv_sys_max_cmd_len=8192;
5263    ;;
5264
5265  mint*)
5266    # On MiNT this can take a long time and run out of memory.
5267    lt_cv_sys_max_cmd_len=8192;
5268    ;;
5269
5270  amigaos*)
5271    # On AmigaOS with pdksh, this test takes hours, literally.
5272    # So we just punt and use a minimum line length of 8192.
5273    lt_cv_sys_max_cmd_len=8192;
5274    ;;
5275
5276  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5277    # This has been around since 386BSD, at least.  Likely further.
5278    if test -x /sbin/sysctl; then
5279      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5280    elif test -x /usr/sbin/sysctl; then
5281      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5282    else
5283      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5284    fi
5285    # And add a safety zone
5286    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5287    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5288    ;;
5289
5290  interix*)
5291    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5292    lt_cv_sys_max_cmd_len=196608
5293    ;;
5294
5295  osf*)
5296    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5297    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5298    # nice to cause kernel panics so lets avoid the loop below.
5299    # First set a reasonable default.
5300    lt_cv_sys_max_cmd_len=16384
5301    #
5302    if test -x /sbin/sysconfig; then
5303      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5304        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5305      esac
5306    fi
5307    ;;
5308  sco3.2v5*)
5309    lt_cv_sys_max_cmd_len=102400
5310    ;;
5311  sysv5* | sco5v6* | sysv4.2uw2*)
5312    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5313    if test -n "$kargmax"; then
5314      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5315    else
5316      lt_cv_sys_max_cmd_len=32768
5317    fi
5318    ;;
5319  *)
5320    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5321    if test -n "$lt_cv_sys_max_cmd_len"; then
5322      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5323      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5324    else
5325      # Make teststring a little bigger before we do anything with it.
5326      # a 1K string should be a reasonable start.
5327      for i in 1 2 3 4 5 6 7 8 ; do
5328        teststring=$teststring$teststring
5329      done
5330      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5331      # If test is not a shell built-in, we'll probably end up computing a
5332      # maximum length that is only half of the actual maximum length, but
5333      # we can't tell.
5334      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5335	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5336	      test $i != 17 # 1/2 MB should be enough
5337      do
5338        i=`expr $i + 1`
5339        teststring=$teststring$teststring
5340      done
5341      # Only check the string length outside the loop.
5342      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5343      teststring=
5344      # Add a significant safety factor because C++ compilers can tack on
5345      # massive amounts of additional arguments before passing them to the
5346      # linker.  It appears as though 1/2 is a usable value.
5347      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5348    fi
5349    ;;
5350  esac
5351
5352fi
5353
5354if test -n $lt_cv_sys_max_cmd_len ; then
5355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5356$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5357else
5358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5359$as_echo "none" >&6; }
5360fi
5361max_cmd_len=$lt_cv_sys_max_cmd_len
5362
5363
5364
5365
5366
5367
5368: ${CP="cp -f"}
5369: ${MV="mv -f"}
5370: ${RM="rm -f"}
5371
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5373$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5374# Try some XSI features
5375xsi_shell=no
5376( _lt_dummy="a/b/c"
5377  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5378      = c,a/b,b/c, \
5379    && eval 'test $(( 1 + 1 )) -eq 2 \
5380    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5381  && xsi_shell=yes
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5383$as_echo "$xsi_shell" >&6; }
5384
5385
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5387$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5388lt_shell_append=no
5389( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5390    >/dev/null 2>&1 \
5391  && lt_shell_append=yes
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5393$as_echo "$lt_shell_append" >&6; }
5394
5395
5396if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5397  lt_unset=unset
5398else
5399  lt_unset=false
5400fi
5401
5402
5403
5404
5405
5406# test EBCDIC or ASCII
5407case `echo X|tr X '\101'` in
5408 A) # ASCII based system
5409    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5410  lt_SP2NL='tr \040 \012'
5411  lt_NL2SP='tr \015\012 \040\040'
5412  ;;
5413 *) # EBCDIC based system
5414  lt_SP2NL='tr \100 \n'
5415  lt_NL2SP='tr \r\n \100\100'
5416  ;;
5417esac
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5428$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5429if ${lt_cv_to_host_file_cmd+:} false; then :
5430  $as_echo_n "(cached) " >&6
5431else
5432  case $host in
5433  *-*-mingw* )
5434    case $build in
5435      *-*-mingw* ) # actually msys
5436        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5437        ;;
5438      *-*-cygwin* )
5439        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5440        ;;
5441      * ) # otherwise, assume *nix
5442        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5443        ;;
5444    esac
5445    ;;
5446  *-*-cygwin* )
5447    case $build in
5448      *-*-mingw* ) # actually msys
5449        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5450        ;;
5451      *-*-cygwin* )
5452        lt_cv_to_host_file_cmd=func_convert_file_noop
5453        ;;
5454      * ) # otherwise, assume *nix
5455        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5456        ;;
5457    esac
5458    ;;
5459  * ) # unhandled hosts (and "normal" native builds)
5460    lt_cv_to_host_file_cmd=func_convert_file_noop
5461    ;;
5462esac
5463
5464fi
5465
5466to_host_file_cmd=$lt_cv_to_host_file_cmd
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5468$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5469
5470
5471
5472
5473
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5475$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5476if ${lt_cv_to_tool_file_cmd+:} false; then :
5477  $as_echo_n "(cached) " >&6
5478else
5479  #assume ordinary cross tools, or native build.
5480lt_cv_to_tool_file_cmd=func_convert_file_noop
5481case $host in
5482  *-*-mingw* )
5483    case $build in
5484      *-*-mingw* ) # actually msys
5485        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5486        ;;
5487    esac
5488    ;;
5489esac
5490
5491fi
5492
5493to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5495$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5496
5497
5498
5499
5500
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5502$as_echo_n "checking for $LD option to reload object files... " >&6; }
5503if ${lt_cv_ld_reload_flag+:} false; then :
5504  $as_echo_n "(cached) " >&6
5505else
5506  lt_cv_ld_reload_flag='-r'
5507fi
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5509$as_echo "$lt_cv_ld_reload_flag" >&6; }
5510reload_flag=$lt_cv_ld_reload_flag
5511case $reload_flag in
5512"" | " "*) ;;
5513*) reload_flag=" $reload_flag" ;;
5514esac
5515reload_cmds='$LD$reload_flag -o $output$reload_objs'
5516case $host_os in
5517  cygwin* | mingw* | pw32* | cegcc*)
5518    if test "$GCC" != yes; then
5519      reload_cmds=false
5520    fi
5521    ;;
5522  darwin*)
5523    if test "$GCC" = yes; then
5524      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5525    else
5526      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5527    fi
5528    ;;
5529esac
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539if test -n "$ac_tool_prefix"; then
5540  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5541set dummy ${ac_tool_prefix}objdump; ac_word=$2
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543$as_echo_n "checking for $ac_word... " >&6; }
5544if ${ac_cv_prog_OBJDUMP+:} false; then :
5545  $as_echo_n "(cached) " >&6
5546else
5547  if test -n "$OBJDUMP"; then
5548  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5549else
5550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551for as_dir in $PATH
5552do
5553  IFS=$as_save_IFS
5554  test -z "$as_dir" && as_dir=.
5555    for ac_exec_ext in '' $ac_executable_extensions; do
5556  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5557    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559    break 2
5560  fi
5561done
5562  done
5563IFS=$as_save_IFS
5564
5565fi
5566fi
5567OBJDUMP=$ac_cv_prog_OBJDUMP
5568if test -n "$OBJDUMP"; then
5569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5570$as_echo "$OBJDUMP" >&6; }
5571else
5572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573$as_echo "no" >&6; }
5574fi
5575
5576
5577fi
5578if test -z "$ac_cv_prog_OBJDUMP"; then
5579  ac_ct_OBJDUMP=$OBJDUMP
5580  # Extract the first word of "objdump", so it can be a program name with args.
5581set dummy objdump; ac_word=$2
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583$as_echo_n "checking for $ac_word... " >&6; }
5584if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5585  $as_echo_n "(cached) " >&6
5586else
5587  if test -n "$ac_ct_OBJDUMP"; then
5588  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5589else
5590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591for as_dir in $PATH
5592do
5593  IFS=$as_save_IFS
5594  test -z "$as_dir" && as_dir=.
5595    for ac_exec_ext in '' $ac_executable_extensions; do
5596  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599    break 2
5600  fi
5601done
5602  done
5603IFS=$as_save_IFS
5604
5605fi
5606fi
5607ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5608if test -n "$ac_ct_OBJDUMP"; then
5609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5610$as_echo "$ac_ct_OBJDUMP" >&6; }
5611else
5612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613$as_echo "no" >&6; }
5614fi
5615
5616  if test "x$ac_ct_OBJDUMP" = x; then
5617    OBJDUMP="false"
5618  else
5619    case $cross_compiling:$ac_tool_warned in
5620yes:)
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5623ac_tool_warned=yes ;;
5624esac
5625    OBJDUMP=$ac_ct_OBJDUMP
5626  fi
5627else
5628  OBJDUMP="$ac_cv_prog_OBJDUMP"
5629fi
5630
5631test -z "$OBJDUMP" && OBJDUMP=objdump
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5642$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5643if ${lt_cv_deplibs_check_method+:} false; then :
5644  $as_echo_n "(cached) " >&6
5645else
5646  lt_cv_file_magic_cmd='$MAGIC_CMD'
5647lt_cv_file_magic_test_file=
5648lt_cv_deplibs_check_method='unknown'
5649# Need to set the preceding variable on all platforms that support
5650# interlibrary dependencies.
5651# 'none' -- dependencies not supported.
5652# `unknown' -- same as none, but documents that we really don't know.
5653# 'pass_all' -- all dependencies passed with no checks.
5654# 'test_compile' -- check by making test program.
5655# 'file_magic [[regex]]' -- check by looking for files in library path
5656# which responds to the $file_magic_cmd with a given extended regex.
5657# If you have `file' or equivalent on your system and you're not sure
5658# whether `pass_all' will *always* work, you probably want this one.
5659
5660case $host_os in
5661aix[4-9]*)
5662  lt_cv_deplibs_check_method=pass_all
5663  ;;
5664
5665beos*)
5666  lt_cv_deplibs_check_method=pass_all
5667  ;;
5668
5669bsdi[45]*)
5670  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5671  lt_cv_file_magic_cmd='/usr/bin/file -L'
5672  lt_cv_file_magic_test_file=/shlib/libc.so
5673  ;;
5674
5675cygwin*)
5676  # func_win32_libid is a shell function defined in ltmain.sh
5677  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5678  lt_cv_file_magic_cmd='func_win32_libid'
5679  ;;
5680
5681mingw* | pw32*)
5682  # Base MSYS/MinGW do not provide the 'file' command needed by
5683  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5684  # unless we find 'file', for example because we are cross-compiling.
5685  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5686  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5687    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5688    lt_cv_file_magic_cmd='func_win32_libid'
5689  else
5690    # Keep this pattern in sync with the one in func_win32_libid.
5691    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5692    lt_cv_file_magic_cmd='$OBJDUMP -f'
5693  fi
5694  ;;
5695
5696cegcc*)
5697  # use the weaker test based on 'objdump'. See mingw*.
5698  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5699  lt_cv_file_magic_cmd='$OBJDUMP -f'
5700  ;;
5701
5702darwin* | rhapsody*)
5703  lt_cv_deplibs_check_method=pass_all
5704  ;;
5705
5706freebsd* | dragonfly*)
5707  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5708    case $host_cpu in
5709    i*86 )
5710      # Not sure whether the presence of OpenBSD here was a mistake.
5711      # Let's accept both of them until this is cleared up.
5712      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5713      lt_cv_file_magic_cmd=/usr/bin/file
5714      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5715      ;;
5716    esac
5717  else
5718    lt_cv_deplibs_check_method=pass_all
5719  fi
5720  ;;
5721
5722gnu*)
5723  lt_cv_deplibs_check_method=pass_all
5724  ;;
5725
5726haiku*)
5727  lt_cv_deplibs_check_method=pass_all
5728  ;;
5729
5730hpux10.20* | hpux11*)
5731  lt_cv_file_magic_cmd=/usr/bin/file
5732  case $host_cpu in
5733  ia64*)
5734    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5735    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5736    ;;
5737  hppa*64*)
5738    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]'
5739    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5740    ;;
5741  *)
5742    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5743    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5744    ;;
5745  esac
5746  ;;
5747
5748interix[3-9]*)
5749  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5750  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5751  ;;
5752
5753irix5* | irix6* | nonstopux*)
5754  case $LD in
5755  *-32|*"-32 ") libmagic=32-bit;;
5756  *-n32|*"-n32 ") libmagic=N32;;
5757  *-64|*"-64 ") libmagic=64-bit;;
5758  *) libmagic=never-match;;
5759  esac
5760  lt_cv_deplibs_check_method=pass_all
5761  ;;
5762
5763# This must be Linux ELF.
5764linux* | k*bsd*-gnu | kopensolaris*-gnu)
5765  lt_cv_deplibs_check_method=pass_all
5766  ;;
5767
5768netbsd*)
5769  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5770    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5771  else
5772    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5773  fi
5774  ;;
5775
5776newos6*)
5777  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5778  lt_cv_file_magic_cmd=/usr/bin/file
5779  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5780  ;;
5781
5782*nto* | *qnx*)
5783  lt_cv_deplibs_check_method=pass_all
5784  ;;
5785
5786openbsd*)
5787  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5788    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5789  else
5790    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5791  fi
5792  ;;
5793
5794osf3* | osf4* | osf5*)
5795  lt_cv_deplibs_check_method=pass_all
5796  ;;
5797
5798rdos*)
5799  lt_cv_deplibs_check_method=pass_all
5800  ;;
5801
5802solaris*)
5803  lt_cv_deplibs_check_method=pass_all
5804  ;;
5805
5806sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5807  lt_cv_deplibs_check_method=pass_all
5808  ;;
5809
5810sysv4 | sysv4.3*)
5811  case $host_vendor in
5812  motorola)
5813    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]'
5814    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5815    ;;
5816  ncr)
5817    lt_cv_deplibs_check_method=pass_all
5818    ;;
5819  sequent)
5820    lt_cv_file_magic_cmd='/bin/file'
5821    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5822    ;;
5823  sni)
5824    lt_cv_file_magic_cmd='/bin/file'
5825    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5826    lt_cv_file_magic_test_file=/lib/libc.so
5827    ;;
5828  siemens)
5829    lt_cv_deplibs_check_method=pass_all
5830    ;;
5831  pc)
5832    lt_cv_deplibs_check_method=pass_all
5833    ;;
5834  esac
5835  ;;
5836
5837tpf*)
5838  lt_cv_deplibs_check_method=pass_all
5839  ;;
5840esac
5841
5842fi
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5844$as_echo "$lt_cv_deplibs_check_method" >&6; }
5845
5846file_magic_glob=
5847want_nocaseglob=no
5848if test "$build" = "$host"; then
5849  case $host_os in
5850  mingw* | pw32*)
5851    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5852      want_nocaseglob=yes
5853    else
5854      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5855    fi
5856    ;;
5857  esac
5858fi
5859
5860file_magic_cmd=$lt_cv_file_magic_cmd
5861deplibs_check_method=$lt_cv_deplibs_check_method
5862test -z "$deplibs_check_method" && deplibs_check_method=unknown
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885if test -n "$ac_tool_prefix"; then
5886  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5887set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889$as_echo_n "checking for $ac_word... " >&6; }
5890if ${ac_cv_prog_DLLTOOL+:} false; then :
5891  $as_echo_n "(cached) " >&6
5892else
5893  if test -n "$DLLTOOL"; then
5894  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5895else
5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH
5898do
5899  IFS=$as_save_IFS
5900  test -z "$as_dir" && as_dir=.
5901    for ac_exec_ext in '' $ac_executable_extensions; do
5902  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905    break 2
5906  fi
5907done
5908  done
5909IFS=$as_save_IFS
5910
5911fi
5912fi
5913DLLTOOL=$ac_cv_prog_DLLTOOL
5914if test -n "$DLLTOOL"; then
5915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5916$as_echo "$DLLTOOL" >&6; }
5917else
5918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919$as_echo "no" >&6; }
5920fi
5921
5922
5923fi
5924if test -z "$ac_cv_prog_DLLTOOL"; then
5925  ac_ct_DLLTOOL=$DLLTOOL
5926  # Extract the first word of "dlltool", so it can be a program name with args.
5927set dummy dlltool; ac_word=$2
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929$as_echo_n "checking for $ac_word... " >&6; }
5930if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5931  $as_echo_n "(cached) " >&6
5932else
5933  if test -n "$ac_ct_DLLTOOL"; then
5934  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5935else
5936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937for as_dir in $PATH
5938do
5939  IFS=$as_save_IFS
5940  test -z "$as_dir" && as_dir=.
5941    for ac_exec_ext in '' $ac_executable_extensions; do
5942  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5943    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945    break 2
5946  fi
5947done
5948  done
5949IFS=$as_save_IFS
5950
5951fi
5952fi
5953ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5954if test -n "$ac_ct_DLLTOOL"; then
5955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5956$as_echo "$ac_ct_DLLTOOL" >&6; }
5957else
5958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959$as_echo "no" >&6; }
5960fi
5961
5962  if test "x$ac_ct_DLLTOOL" = x; then
5963    DLLTOOL="false"
5964  else
5965    case $cross_compiling:$ac_tool_warned in
5966yes:)
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5969ac_tool_warned=yes ;;
5970esac
5971    DLLTOOL=$ac_ct_DLLTOOL
5972  fi
5973else
5974  DLLTOOL="$ac_cv_prog_DLLTOOL"
5975fi
5976
5977test -z "$DLLTOOL" && DLLTOOL=dlltool
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5989$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5990if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5991  $as_echo_n "(cached) " >&6
5992else
5993  lt_cv_sharedlib_from_linklib_cmd='unknown'
5994
5995case $host_os in
5996cygwin* | mingw* | pw32* | cegcc*)
5997  # two different shell functions defined in ltmain.sh
5998  # decide which to use based on capabilities of $DLLTOOL
5999  case `$DLLTOOL --help 2>&1` in
6000  *--identify-strict*)
6001    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6002    ;;
6003  *)
6004    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6005    ;;
6006  esac
6007  ;;
6008*)
6009  # fallback: assume linklib IS sharedlib
6010  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6011  ;;
6012esac
6013
6014fi
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6016$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6017sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6018test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6019
6020
6021
6022
6023
6024
6025
6026if test -n "$ac_tool_prefix"; then
6027  for ac_prog in ar
6028  do
6029    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6030set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032$as_echo_n "checking for $ac_word... " >&6; }
6033if ${ac_cv_prog_AR+:} false; then :
6034  $as_echo_n "(cached) " >&6
6035else
6036  if test -n "$AR"; then
6037  ac_cv_prog_AR="$AR" # Let the user override the test.
6038else
6039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040for as_dir in $PATH
6041do
6042  IFS=$as_save_IFS
6043  test -z "$as_dir" && as_dir=.
6044    for ac_exec_ext in '' $ac_executable_extensions; do
6045  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048    break 2
6049  fi
6050done
6051  done
6052IFS=$as_save_IFS
6053
6054fi
6055fi
6056AR=$ac_cv_prog_AR
6057if test -n "$AR"; then
6058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6059$as_echo "$AR" >&6; }
6060else
6061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062$as_echo "no" >&6; }
6063fi
6064
6065
6066    test -n "$AR" && break
6067  done
6068fi
6069if test -z "$AR"; then
6070  ac_ct_AR=$AR
6071  for ac_prog in ar
6072do
6073  # Extract the first word of "$ac_prog", so it can be a program name with args.
6074set dummy $ac_prog; ac_word=$2
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076$as_echo_n "checking for $ac_word... " >&6; }
6077if ${ac_cv_prog_ac_ct_AR+:} false; then :
6078  $as_echo_n "(cached) " >&6
6079else
6080  if test -n "$ac_ct_AR"; then
6081  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6082else
6083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084for as_dir in $PATH
6085do
6086  IFS=$as_save_IFS
6087  test -z "$as_dir" && as_dir=.
6088    for ac_exec_ext in '' $ac_executable_extensions; do
6089  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6090    ac_cv_prog_ac_ct_AR="$ac_prog"
6091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092    break 2
6093  fi
6094done
6095  done
6096IFS=$as_save_IFS
6097
6098fi
6099fi
6100ac_ct_AR=$ac_cv_prog_ac_ct_AR
6101if test -n "$ac_ct_AR"; then
6102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6103$as_echo "$ac_ct_AR" >&6; }
6104else
6105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106$as_echo "no" >&6; }
6107fi
6108
6109
6110  test -n "$ac_ct_AR" && break
6111done
6112
6113  if test "x$ac_ct_AR" = x; then
6114    AR="false"
6115  else
6116    case $cross_compiling:$ac_tool_warned in
6117yes:)
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6120ac_tool_warned=yes ;;
6121esac
6122    AR=$ac_ct_AR
6123  fi
6124fi
6125
6126: ${AR=ar}
6127: ${AR_FLAGS=cru}
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6140$as_echo_n "checking for archiver @FILE support... " >&6; }
6141if ${lt_cv_ar_at_file+:} false; then :
6142  $as_echo_n "(cached) " >&6
6143else
6144  lt_cv_ar_at_file=no
6145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146/* end confdefs.h.  */
6147
6148int
6149main ()
6150{
6151
6152  ;
6153  return 0;
6154}
6155_ACEOF
6156if ac_fn_c_try_compile "$LINENO"; then :
6157  echo conftest.$ac_objext > conftest.lst
6158      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6159      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6160  (eval $lt_ar_try) 2>&5
6161  ac_status=$?
6162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6163  test $ac_status = 0; }
6164      if test "$ac_status" -eq 0; then
6165	# Ensure the archiver fails upon bogus file names.
6166	rm -f conftest.$ac_objext libconftest.a
6167	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6168  (eval $lt_ar_try) 2>&5
6169  ac_status=$?
6170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6171  test $ac_status = 0; }
6172	if test "$ac_status" -ne 0; then
6173          lt_cv_ar_at_file=@
6174        fi
6175      fi
6176      rm -f conftest.* libconftest.a
6177
6178fi
6179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180
6181fi
6182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6183$as_echo "$lt_cv_ar_at_file" >&6; }
6184
6185if test "x$lt_cv_ar_at_file" = xno; then
6186  archiver_list_spec=
6187else
6188  archiver_list_spec=$lt_cv_ar_at_file
6189fi
6190
6191
6192
6193
6194
6195
6196
6197if test -n "$ac_tool_prefix"; then
6198  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6199set dummy ${ac_tool_prefix}strip; ac_word=$2
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201$as_echo_n "checking for $ac_word... " >&6; }
6202if ${ac_cv_prog_STRIP+:} false; then :
6203  $as_echo_n "(cached) " >&6
6204else
6205  if test -n "$STRIP"; then
6206  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6207else
6208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209for as_dir in $PATH
6210do
6211  IFS=$as_save_IFS
6212  test -z "$as_dir" && as_dir=.
6213    for ac_exec_ext in '' $ac_executable_extensions; do
6214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217    break 2
6218  fi
6219done
6220  done
6221IFS=$as_save_IFS
6222
6223fi
6224fi
6225STRIP=$ac_cv_prog_STRIP
6226if test -n "$STRIP"; then
6227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6228$as_echo "$STRIP" >&6; }
6229else
6230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231$as_echo "no" >&6; }
6232fi
6233
6234
6235fi
6236if test -z "$ac_cv_prog_STRIP"; then
6237  ac_ct_STRIP=$STRIP
6238  # Extract the first word of "strip", so it can be a program name with args.
6239set dummy strip; ac_word=$2
6240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241$as_echo_n "checking for $ac_word... " >&6; }
6242if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6243  $as_echo_n "(cached) " >&6
6244else
6245  if test -n "$ac_ct_STRIP"; then
6246  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6247else
6248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249for as_dir in $PATH
6250do
6251  IFS=$as_save_IFS
6252  test -z "$as_dir" && as_dir=.
6253    for ac_exec_ext in '' $ac_executable_extensions; do
6254  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6255    ac_cv_prog_ac_ct_STRIP="strip"
6256    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6257    break 2
6258  fi
6259done
6260  done
6261IFS=$as_save_IFS
6262
6263fi
6264fi
6265ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6266if test -n "$ac_ct_STRIP"; then
6267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6268$as_echo "$ac_ct_STRIP" >&6; }
6269else
6270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271$as_echo "no" >&6; }
6272fi
6273
6274  if test "x$ac_ct_STRIP" = x; then
6275    STRIP=":"
6276  else
6277    case $cross_compiling:$ac_tool_warned in
6278yes:)
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6281ac_tool_warned=yes ;;
6282esac
6283    STRIP=$ac_ct_STRIP
6284  fi
6285else
6286  STRIP="$ac_cv_prog_STRIP"
6287fi
6288
6289test -z "$STRIP" && STRIP=:
6290
6291
6292
6293
6294
6295
6296if test -n "$ac_tool_prefix"; then
6297  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6298set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300$as_echo_n "checking for $ac_word... " >&6; }
6301if ${ac_cv_prog_RANLIB+:} false; then :
6302  $as_echo_n "(cached) " >&6
6303else
6304  if test -n "$RANLIB"; then
6305  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6306else
6307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308for as_dir in $PATH
6309do
6310  IFS=$as_save_IFS
6311  test -z "$as_dir" && as_dir=.
6312    for ac_exec_ext in '' $ac_executable_extensions; do
6313  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316    break 2
6317  fi
6318done
6319  done
6320IFS=$as_save_IFS
6321
6322fi
6323fi
6324RANLIB=$ac_cv_prog_RANLIB
6325if test -n "$RANLIB"; then
6326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6327$as_echo "$RANLIB" >&6; }
6328else
6329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330$as_echo "no" >&6; }
6331fi
6332
6333
6334fi
6335if test -z "$ac_cv_prog_RANLIB"; then
6336  ac_ct_RANLIB=$RANLIB
6337  # Extract the first word of "ranlib", so it can be a program name with args.
6338set dummy ranlib; ac_word=$2
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340$as_echo_n "checking for $ac_word... " >&6; }
6341if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6342  $as_echo_n "(cached) " >&6
6343else
6344  if test -n "$ac_ct_RANLIB"; then
6345  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6346else
6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348for as_dir in $PATH
6349do
6350  IFS=$as_save_IFS
6351  test -z "$as_dir" && as_dir=.
6352    for ac_exec_ext in '' $ac_executable_extensions; do
6353  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354    ac_cv_prog_ac_ct_RANLIB="ranlib"
6355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356    break 2
6357  fi
6358done
6359  done
6360IFS=$as_save_IFS
6361
6362fi
6363fi
6364ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6365if test -n "$ac_ct_RANLIB"; then
6366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6367$as_echo "$ac_ct_RANLIB" >&6; }
6368else
6369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370$as_echo "no" >&6; }
6371fi
6372
6373  if test "x$ac_ct_RANLIB" = x; then
6374    RANLIB=":"
6375  else
6376    case $cross_compiling:$ac_tool_warned in
6377yes:)
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380ac_tool_warned=yes ;;
6381esac
6382    RANLIB=$ac_ct_RANLIB
6383  fi
6384else
6385  RANLIB="$ac_cv_prog_RANLIB"
6386fi
6387
6388test -z "$RANLIB" && RANLIB=:
6389
6390
6391
6392
6393
6394
6395# Determine commands to create old-style static archives.
6396old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6397old_postinstall_cmds='chmod 644 $oldlib'
6398old_postuninstall_cmds=
6399
6400if test -n "$RANLIB"; then
6401  case $host_os in
6402  openbsd*)
6403    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6404    ;;
6405  *)
6406    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6407    ;;
6408  esac
6409  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6410fi
6411
6412case $host_os in
6413  darwin*)
6414    lock_old_archive_extraction=yes ;;
6415  *)
6416    lock_old_archive_extraction=no ;;
6417esac
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457# If no C compiler was specified, use CC.
6458LTCC=${LTCC-"$CC"}
6459
6460# If no C compiler flags were specified, use CFLAGS.
6461LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6462
6463# Allow CC to be a program name with arguments.
6464compiler=$CC
6465
6466
6467# Check for command to grab the raw symbol name followed by C symbol from nm.
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6469$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6470if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6471  $as_echo_n "(cached) " >&6
6472else
6473
6474# These are sane defaults that work on at least a few old systems.
6475# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6476
6477# Character class describing NM global symbol codes.
6478symcode='[BCDEGRST]'
6479
6480# Regexp to match symbols that can be accessed directly from C.
6481sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6482
6483# Define system-specific variables.
6484case $host_os in
6485aix*)
6486  symcode='[BCDT]'
6487  ;;
6488cygwin* | mingw* | pw32* | cegcc*)
6489  symcode='[ABCDGISTW]'
6490  ;;
6491hpux*)
6492  if test "$host_cpu" = ia64; then
6493    symcode='[ABCDEGRST]'
6494  fi
6495  ;;
6496irix* | nonstopux*)
6497  symcode='[BCDEGRST]'
6498  ;;
6499osf*)
6500  symcode='[BCDEGQRST]'
6501  ;;
6502solaris*)
6503  symcode='[BDRT]'
6504  ;;
6505sco3.2v5*)
6506  symcode='[DT]'
6507  ;;
6508sysv4.2uw2*)
6509  symcode='[DT]'
6510  ;;
6511sysv5* | sco5v6* | unixware* | OpenUNIX*)
6512  symcode='[ABDT]'
6513  ;;
6514sysv4)
6515  symcode='[DFNSTU]'
6516  ;;
6517esac
6518
6519# If we're using GNU nm, then use its standard symbol codes.
6520case `$NM -V 2>&1` in
6521*GNU* | *'with BFD'*)
6522  symcode='[ABCDGIRSTW]' ;;
6523esac
6524
6525# Transform an extracted symbol line into a proper C declaration.
6526# Some systems (esp. on ia64) link data and code symbols differently,
6527# so use this general approach.
6528lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6529
6530# Transform an extracted symbol line into symbol name and symbol address
6531lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6532lt_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'"
6533
6534# Handle CRLF in mingw tool chain
6535opt_cr=
6536case $build_os in
6537mingw*)
6538  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6539  ;;
6540esac
6541
6542# Try without a prefix underscore, then with it.
6543for ac_symprfx in "" "_"; do
6544
6545  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6546  symxfrm="\\1 $ac_symprfx\\2 \\2"
6547
6548  # Write the raw and C identifiers.
6549  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6550    # Fake it for dumpbin and say T for any non-static function
6551    # and D for any global variable.
6552    # Also find C++ and __fastcall symbols from MSVC++,
6553    # which start with @ or ?.
6554    lt_cv_sys_global_symbol_pipe="$AWK '"\
6555"     {last_section=section; section=\$ 3};"\
6556"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6557"     \$ 0!~/External *\|/{next};"\
6558"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6559"     {if(hide[section]) next};"\
6560"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6561"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6562"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6563"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6564"     ' prfx=^$ac_symprfx"
6565  else
6566    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6567  fi
6568  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6569
6570  # Check to see that the pipe works correctly.
6571  pipe_works=no
6572
6573  rm -f conftest*
6574  cat > conftest.$ac_ext <<_LT_EOF
6575#ifdef __cplusplus
6576extern "C" {
6577#endif
6578char nm_test_var;
6579void nm_test_func(void);
6580void nm_test_func(void){}
6581#ifdef __cplusplus
6582}
6583#endif
6584int main(){nm_test_var='a';nm_test_func();return(0);}
6585_LT_EOF
6586
6587  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6588  (eval $ac_compile) 2>&5
6589  ac_status=$?
6590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591  test $ac_status = 0; }; then
6592    # Now try to grab the symbols.
6593    nlist=conftest.nm
6594    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6595  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6596  ac_status=$?
6597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6598  test $ac_status = 0; } && test -s "$nlist"; then
6599      # Try sorting and uniquifying the output.
6600      if sort "$nlist" | uniq > "$nlist"T; then
6601	mv -f "$nlist"T "$nlist"
6602      else
6603	rm -f "$nlist"T
6604      fi
6605
6606      # Make sure that we snagged all the symbols we need.
6607      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6608	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6609	  cat <<_LT_EOF > conftest.$ac_ext
6610/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6611#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6612/* DATA imports from DLLs on WIN32 con't be const, because runtime
6613   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6614# define LT_DLSYM_CONST
6615#elif defined(__osf__)
6616/* This system does not cope well with relocations in const data.  */
6617# define LT_DLSYM_CONST
6618#else
6619# define LT_DLSYM_CONST const
6620#endif
6621
6622#ifdef __cplusplus
6623extern "C" {
6624#endif
6625
6626_LT_EOF
6627	  # Now generate the symbol file.
6628	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6629
6630	  cat <<_LT_EOF >> conftest.$ac_ext
6631
6632/* The mapping between symbol names and symbols.  */
6633LT_DLSYM_CONST struct {
6634  const char *name;
6635  void       *address;
6636}
6637lt__PROGRAM__LTX_preloaded_symbols[] =
6638{
6639  { "@PROGRAM@", (void *) 0 },
6640_LT_EOF
6641	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6642	  cat <<\_LT_EOF >> conftest.$ac_ext
6643  {0, (void *) 0}
6644};
6645
6646/* This works around a problem in FreeBSD linker */
6647#ifdef FREEBSD_WORKAROUND
6648static const void *lt_preloaded_setup() {
6649  return lt__PROGRAM__LTX_preloaded_symbols;
6650}
6651#endif
6652
6653#ifdef __cplusplus
6654}
6655#endif
6656_LT_EOF
6657	  # Now try linking the two files.
6658	  mv conftest.$ac_objext conftstm.$ac_objext
6659	  lt_globsym_save_LIBS=$LIBS
6660	  lt_globsym_save_CFLAGS=$CFLAGS
6661	  LIBS="conftstm.$ac_objext"
6662	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6663	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6664  (eval $ac_link) 2>&5
6665  ac_status=$?
6666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6667  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6668	    pipe_works=yes
6669	  fi
6670	  LIBS=$lt_globsym_save_LIBS
6671	  CFLAGS=$lt_globsym_save_CFLAGS
6672	else
6673	  echo "cannot find nm_test_func in $nlist" >&5
6674	fi
6675      else
6676	echo "cannot find nm_test_var in $nlist" >&5
6677      fi
6678    else
6679      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6680    fi
6681  else
6682    echo "$progname: failed program was:" >&5
6683    cat conftest.$ac_ext >&5
6684  fi
6685  rm -rf conftest* conftst*
6686
6687  # Do not use the global_symbol_pipe unless it works.
6688  if test "$pipe_works" = yes; then
6689    break
6690  else
6691    lt_cv_sys_global_symbol_pipe=
6692  fi
6693done
6694
6695fi
6696
6697if test -z "$lt_cv_sys_global_symbol_pipe"; then
6698  lt_cv_sys_global_symbol_to_cdecl=
6699fi
6700if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6702$as_echo "failed" >&6; }
6703else
6704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6705$as_echo "ok" >&6; }
6706fi
6707
6708# Response file support.
6709if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6710  nm_file_list_spec='@'
6711elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6712  nm_file_list_spec='@'
6713fi
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6742$as_echo_n "checking for sysroot... " >&6; }
6743
6744# Check whether --with-sysroot was given.
6745if test "${with_sysroot+set}" = set; then :
6746  withval=$with_sysroot;
6747else
6748  with_sysroot=no
6749fi
6750
6751
6752lt_sysroot=
6753case ${with_sysroot} in #(
6754 yes)
6755   if test "$GCC" = yes; then
6756     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6757   fi
6758   ;; #(
6759 /*)
6760   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6761   ;; #(
6762 no|'')
6763   ;; #(
6764 *)
6765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6766$as_echo "${with_sysroot}" >&6; }
6767   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6768   ;;
6769esac
6770
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6772$as_echo "${lt_sysroot:-no}" >&6; }
6773
6774
6775
6776
6777
6778# Check whether --enable-libtool-lock was given.
6779if test "${enable_libtool_lock+set}" = set; then :
6780  enableval=$enable_libtool_lock;
6781fi
6782
6783test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6784
6785# Some flags need to be propagated to the compiler or linker for good
6786# libtool support.
6787case $host in
6788ia64-*-hpux*)
6789  # Find out which ABI we are using.
6790  echo 'int i;' > conftest.$ac_ext
6791  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6792  (eval $ac_compile) 2>&5
6793  ac_status=$?
6794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6795  test $ac_status = 0; }; then
6796    case `/usr/bin/file conftest.$ac_objext` in
6797      *ELF-32*)
6798	HPUX_IA64_MODE="32"
6799	;;
6800      *ELF-64*)
6801	HPUX_IA64_MODE="64"
6802	;;
6803    esac
6804  fi
6805  rm -rf conftest*
6806  ;;
6807*-*-irix6*)
6808  # Find out which ABI we are using.
6809  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6810  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6811  (eval $ac_compile) 2>&5
6812  ac_status=$?
6813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6814  test $ac_status = 0; }; then
6815    if test "$lt_cv_prog_gnu_ld" = yes; then
6816      case `/usr/bin/file conftest.$ac_objext` in
6817	*32-bit*)
6818	  LD="${LD-ld} -melf32bsmip"
6819	  ;;
6820	*N32*)
6821	  LD="${LD-ld} -melf32bmipn32"
6822	  ;;
6823	*64-bit*)
6824	  LD="${LD-ld} -melf64bmip"
6825	;;
6826      esac
6827    else
6828      case `/usr/bin/file conftest.$ac_objext` in
6829	*32-bit*)
6830	  LD="${LD-ld} -32"
6831	  ;;
6832	*N32*)
6833	  LD="${LD-ld} -n32"
6834	  ;;
6835	*64-bit*)
6836	  LD="${LD-ld} -64"
6837	  ;;
6838      esac
6839    fi
6840  fi
6841  rm -rf conftest*
6842  ;;
6843
6844x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6845s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6846  # Find out which ABI we are using.
6847  echo 'int i;' > conftest.$ac_ext
6848  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6849  (eval $ac_compile) 2>&5
6850  ac_status=$?
6851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852  test $ac_status = 0; }; then
6853    case `/usr/bin/file conftest.o` in
6854      *32-bit*)
6855	case $host in
6856	  x86_64-*kfreebsd*-gnu)
6857	    LD="${LD-ld} -m elf_i386_fbsd"
6858	    ;;
6859	  x86_64-*linux*)
6860	    LD="${LD-ld} -m elf_i386"
6861	    ;;
6862	  ppc64-*linux*|powerpc64-*linux*)
6863	    LD="${LD-ld} -m elf32ppclinux"
6864	    ;;
6865	  s390x-*linux*)
6866	    LD="${LD-ld} -m elf_s390"
6867	    ;;
6868	  sparc64-*linux*)
6869	    LD="${LD-ld} -m elf32_sparc"
6870	    ;;
6871	esac
6872	;;
6873      *64-bit*)
6874	case $host in
6875	  x86_64-*kfreebsd*-gnu)
6876	    LD="${LD-ld} -m elf_x86_64_fbsd"
6877	    ;;
6878	  x86_64-*linux*)
6879	    LD="${LD-ld} -m elf_x86_64"
6880	    ;;
6881	  ppc*-*linux*|powerpc*-*linux*)
6882	    LD="${LD-ld} -m elf64ppc"
6883	    ;;
6884	  s390*-*linux*|s390*-*tpf*)
6885	    LD="${LD-ld} -m elf64_s390"
6886	    ;;
6887	  sparc*-*linux*)
6888	    LD="${LD-ld} -m elf64_sparc"
6889	    ;;
6890	esac
6891	;;
6892    esac
6893  fi
6894  rm -rf conftest*
6895  ;;
6896
6897*-*-sco3.2v5*)
6898  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6899  SAVE_CFLAGS="$CFLAGS"
6900  CFLAGS="$CFLAGS -belf"
6901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6902$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6903if ${lt_cv_cc_needs_belf+:} false; then :
6904  $as_echo_n "(cached) " >&6
6905else
6906  ac_ext=c
6907ac_cpp='$CPP $CPPFLAGS'
6908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6910ac_compiler_gnu=$ac_cv_c_compiler_gnu
6911
6912     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913/* end confdefs.h.  */
6914
6915int
6916main ()
6917{
6918
6919  ;
6920  return 0;
6921}
6922_ACEOF
6923if ac_fn_c_try_link "$LINENO"; then :
6924  lt_cv_cc_needs_belf=yes
6925else
6926  lt_cv_cc_needs_belf=no
6927fi
6928rm -f core conftest.err conftest.$ac_objext \
6929    conftest$ac_exeext conftest.$ac_ext
6930     ac_ext=c
6931ac_cpp='$CPP $CPPFLAGS'
6932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6934ac_compiler_gnu=$ac_cv_c_compiler_gnu
6935
6936fi
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6938$as_echo "$lt_cv_cc_needs_belf" >&6; }
6939  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6940    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6941    CFLAGS="$SAVE_CFLAGS"
6942  fi
6943  ;;
6944sparc*-*solaris*)
6945  # Find out which ABI we are using.
6946  echo 'int i;' > conftest.$ac_ext
6947  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6948  (eval $ac_compile) 2>&5
6949  ac_status=$?
6950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6951  test $ac_status = 0; }; then
6952    case `/usr/bin/file conftest.o` in
6953    *64-bit*)
6954      case $lt_cv_prog_gnu_ld in
6955      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6956      *)
6957	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6958	  LD="${LD-ld} -64"
6959	fi
6960	;;
6961      esac
6962      ;;
6963    esac
6964  fi
6965  rm -rf conftest*
6966  ;;
6967esac
6968
6969need_locks="$enable_libtool_lock"
6970
6971if test -n "$ac_tool_prefix"; then
6972  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6973set dummy ${ac_tool_prefix}mt; ac_word=$2
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975$as_echo_n "checking for $ac_word... " >&6; }
6976if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6977  $as_echo_n "(cached) " >&6
6978else
6979  if test -n "$MANIFEST_TOOL"; then
6980  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6981else
6982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983for as_dir in $PATH
6984do
6985  IFS=$as_save_IFS
6986  test -z "$as_dir" && as_dir=.
6987    for ac_exec_ext in '' $ac_executable_extensions; do
6988  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6989    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991    break 2
6992  fi
6993done
6994  done
6995IFS=$as_save_IFS
6996
6997fi
6998fi
6999MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7000if test -n "$MANIFEST_TOOL"; then
7001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7002$as_echo "$MANIFEST_TOOL" >&6; }
7003else
7004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005$as_echo "no" >&6; }
7006fi
7007
7008
7009fi
7010if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7011  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7012  # Extract the first word of "mt", so it can be a program name with args.
7013set dummy mt; ac_word=$2
7014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015$as_echo_n "checking for $ac_word... " >&6; }
7016if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7017  $as_echo_n "(cached) " >&6
7018else
7019  if test -n "$ac_ct_MANIFEST_TOOL"; then
7020  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7021else
7022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023for as_dir in $PATH
7024do
7025  IFS=$as_save_IFS
7026  test -z "$as_dir" && as_dir=.
7027    for ac_exec_ext in '' $ac_executable_extensions; do
7028  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7029    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031    break 2
7032  fi
7033done
7034  done
7035IFS=$as_save_IFS
7036
7037fi
7038fi
7039ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7040if test -n "$ac_ct_MANIFEST_TOOL"; then
7041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7042$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7043else
7044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045$as_echo "no" >&6; }
7046fi
7047
7048  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7049    MANIFEST_TOOL=":"
7050  else
7051    case $cross_compiling:$ac_tool_warned in
7052yes:)
7053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7055ac_tool_warned=yes ;;
7056esac
7057    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7058  fi
7059else
7060  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7061fi
7062
7063test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7065$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7066if ${lt_cv_path_mainfest_tool+:} false; then :
7067  $as_echo_n "(cached) " >&6
7068else
7069  lt_cv_path_mainfest_tool=no
7070  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7071  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7072  cat conftest.err >&5
7073  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7074    lt_cv_path_mainfest_tool=yes
7075  fi
7076  rm -f conftest*
7077fi
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7079$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7080if test "x$lt_cv_path_mainfest_tool" != xyes; then
7081  MANIFEST_TOOL=:
7082fi
7083
7084
7085
7086
7087
7088
7089  case $host_os in
7090    rhapsody* | darwin*)
7091    if test -n "$ac_tool_prefix"; then
7092  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7093set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095$as_echo_n "checking for $ac_word... " >&6; }
7096if ${ac_cv_prog_DSYMUTIL+:} false; then :
7097  $as_echo_n "(cached) " >&6
7098else
7099  if test -n "$DSYMUTIL"; then
7100  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7101else
7102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103for as_dir in $PATH
7104do
7105  IFS=$as_save_IFS
7106  test -z "$as_dir" && as_dir=.
7107    for ac_exec_ext in '' $ac_executable_extensions; do
7108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111    break 2
7112  fi
7113done
7114  done
7115IFS=$as_save_IFS
7116
7117fi
7118fi
7119DSYMUTIL=$ac_cv_prog_DSYMUTIL
7120if test -n "$DSYMUTIL"; then
7121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7122$as_echo "$DSYMUTIL" >&6; }
7123else
7124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125$as_echo "no" >&6; }
7126fi
7127
7128
7129fi
7130if test -z "$ac_cv_prog_DSYMUTIL"; then
7131  ac_ct_DSYMUTIL=$DSYMUTIL
7132  # Extract the first word of "dsymutil", so it can be a program name with args.
7133set dummy dsymutil; ac_word=$2
7134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135$as_echo_n "checking for $ac_word... " >&6; }
7136if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7137  $as_echo_n "(cached) " >&6
7138else
7139  if test -n "$ac_ct_DSYMUTIL"; then
7140  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7141else
7142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143for as_dir in $PATH
7144do
7145  IFS=$as_save_IFS
7146  test -z "$as_dir" && as_dir=.
7147    for ac_exec_ext in '' $ac_executable_extensions; do
7148  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7151    break 2
7152  fi
7153done
7154  done
7155IFS=$as_save_IFS
7156
7157fi
7158fi
7159ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7160if test -n "$ac_ct_DSYMUTIL"; then
7161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7162$as_echo "$ac_ct_DSYMUTIL" >&6; }
7163else
7164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165$as_echo "no" >&6; }
7166fi
7167
7168  if test "x$ac_ct_DSYMUTIL" = x; then
7169    DSYMUTIL=":"
7170  else
7171    case $cross_compiling:$ac_tool_warned in
7172yes:)
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7175ac_tool_warned=yes ;;
7176esac
7177    DSYMUTIL=$ac_ct_DSYMUTIL
7178  fi
7179else
7180  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7181fi
7182
7183    if test -n "$ac_tool_prefix"; then
7184  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7185set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187$as_echo_n "checking for $ac_word... " >&6; }
7188if ${ac_cv_prog_NMEDIT+:} false; then :
7189  $as_echo_n "(cached) " >&6
7190else
7191  if test -n "$NMEDIT"; then
7192  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7193else
7194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH
7196do
7197  IFS=$as_save_IFS
7198  test -z "$as_dir" && as_dir=.
7199    for ac_exec_ext in '' $ac_executable_extensions; do
7200  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7201    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203    break 2
7204  fi
7205done
7206  done
7207IFS=$as_save_IFS
7208
7209fi
7210fi
7211NMEDIT=$ac_cv_prog_NMEDIT
7212if test -n "$NMEDIT"; then
7213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7214$as_echo "$NMEDIT" >&6; }
7215else
7216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217$as_echo "no" >&6; }
7218fi
7219
7220
7221fi
7222if test -z "$ac_cv_prog_NMEDIT"; then
7223  ac_ct_NMEDIT=$NMEDIT
7224  # Extract the first word of "nmedit", so it can be a program name with args.
7225set dummy nmedit; ac_word=$2
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7227$as_echo_n "checking for $ac_word... " >&6; }
7228if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7229  $as_echo_n "(cached) " >&6
7230else
7231  if test -n "$ac_ct_NMEDIT"; then
7232  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7233else
7234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in $PATH
7236do
7237  IFS=$as_save_IFS
7238  test -z "$as_dir" && as_dir=.
7239    for ac_exec_ext in '' $ac_executable_extensions; do
7240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7241    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7243    break 2
7244  fi
7245done
7246  done
7247IFS=$as_save_IFS
7248
7249fi
7250fi
7251ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7252if test -n "$ac_ct_NMEDIT"; then
7253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7254$as_echo "$ac_ct_NMEDIT" >&6; }
7255else
7256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257$as_echo "no" >&6; }
7258fi
7259
7260  if test "x$ac_ct_NMEDIT" = x; then
7261    NMEDIT=":"
7262  else
7263    case $cross_compiling:$ac_tool_warned in
7264yes:)
7265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7267ac_tool_warned=yes ;;
7268esac
7269    NMEDIT=$ac_ct_NMEDIT
7270  fi
7271else
7272  NMEDIT="$ac_cv_prog_NMEDIT"
7273fi
7274
7275    if test -n "$ac_tool_prefix"; then
7276  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7277set dummy ${ac_tool_prefix}lipo; ac_word=$2
7278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279$as_echo_n "checking for $ac_word... " >&6; }
7280if ${ac_cv_prog_LIPO+:} false; then :
7281  $as_echo_n "(cached) " >&6
7282else
7283  if test -n "$LIPO"; then
7284  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7285else
7286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287for as_dir in $PATH
7288do
7289  IFS=$as_save_IFS
7290  test -z "$as_dir" && as_dir=.
7291    for ac_exec_ext in '' $ac_executable_extensions; do
7292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7293    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7295    break 2
7296  fi
7297done
7298  done
7299IFS=$as_save_IFS
7300
7301fi
7302fi
7303LIPO=$ac_cv_prog_LIPO
7304if test -n "$LIPO"; then
7305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7306$as_echo "$LIPO" >&6; }
7307else
7308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309$as_echo "no" >&6; }
7310fi
7311
7312
7313fi
7314if test -z "$ac_cv_prog_LIPO"; then
7315  ac_ct_LIPO=$LIPO
7316  # Extract the first word of "lipo", so it can be a program name with args.
7317set dummy lipo; ac_word=$2
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319$as_echo_n "checking for $ac_word... " >&6; }
7320if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7321  $as_echo_n "(cached) " >&6
7322else
7323  if test -n "$ac_ct_LIPO"; then
7324  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7325else
7326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327for as_dir in $PATH
7328do
7329  IFS=$as_save_IFS
7330  test -z "$as_dir" && as_dir=.
7331    for ac_exec_ext in '' $ac_executable_extensions; do
7332  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7333    ac_cv_prog_ac_ct_LIPO="lipo"
7334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335    break 2
7336  fi
7337done
7338  done
7339IFS=$as_save_IFS
7340
7341fi
7342fi
7343ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7344if test -n "$ac_ct_LIPO"; then
7345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7346$as_echo "$ac_ct_LIPO" >&6; }
7347else
7348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349$as_echo "no" >&6; }
7350fi
7351
7352  if test "x$ac_ct_LIPO" = x; then
7353    LIPO=":"
7354  else
7355    case $cross_compiling:$ac_tool_warned in
7356yes:)
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7359ac_tool_warned=yes ;;
7360esac
7361    LIPO=$ac_ct_LIPO
7362  fi
7363else
7364  LIPO="$ac_cv_prog_LIPO"
7365fi
7366
7367    if test -n "$ac_tool_prefix"; then
7368  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7369set dummy ${ac_tool_prefix}otool; ac_word=$2
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371$as_echo_n "checking for $ac_word... " >&6; }
7372if ${ac_cv_prog_OTOOL+:} false; then :
7373  $as_echo_n "(cached) " >&6
7374else
7375  if test -n "$OTOOL"; then
7376  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7377else
7378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379for as_dir in $PATH
7380do
7381  IFS=$as_save_IFS
7382  test -z "$as_dir" && as_dir=.
7383    for ac_exec_ext in '' $ac_executable_extensions; do
7384  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387    break 2
7388  fi
7389done
7390  done
7391IFS=$as_save_IFS
7392
7393fi
7394fi
7395OTOOL=$ac_cv_prog_OTOOL
7396if test -n "$OTOOL"; then
7397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7398$as_echo "$OTOOL" >&6; }
7399else
7400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401$as_echo "no" >&6; }
7402fi
7403
7404
7405fi
7406if test -z "$ac_cv_prog_OTOOL"; then
7407  ac_ct_OTOOL=$OTOOL
7408  # Extract the first word of "otool", so it can be a program name with args.
7409set dummy otool; ac_word=$2
7410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411$as_echo_n "checking for $ac_word... " >&6; }
7412if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7413  $as_echo_n "(cached) " >&6
7414else
7415  if test -n "$ac_ct_OTOOL"; then
7416  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7417else
7418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419for as_dir in $PATH
7420do
7421  IFS=$as_save_IFS
7422  test -z "$as_dir" && as_dir=.
7423    for ac_exec_ext in '' $ac_executable_extensions; do
7424  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7425    ac_cv_prog_ac_ct_OTOOL="otool"
7426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427    break 2
7428  fi
7429done
7430  done
7431IFS=$as_save_IFS
7432
7433fi
7434fi
7435ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7436if test -n "$ac_ct_OTOOL"; then
7437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7438$as_echo "$ac_ct_OTOOL" >&6; }
7439else
7440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441$as_echo "no" >&6; }
7442fi
7443
7444  if test "x$ac_ct_OTOOL" = x; then
7445    OTOOL=":"
7446  else
7447    case $cross_compiling:$ac_tool_warned in
7448yes:)
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7451ac_tool_warned=yes ;;
7452esac
7453    OTOOL=$ac_ct_OTOOL
7454  fi
7455else
7456  OTOOL="$ac_cv_prog_OTOOL"
7457fi
7458
7459    if test -n "$ac_tool_prefix"; then
7460  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7461set dummy ${ac_tool_prefix}otool64; ac_word=$2
7462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463$as_echo_n "checking for $ac_word... " >&6; }
7464if ${ac_cv_prog_OTOOL64+:} false; then :
7465  $as_echo_n "(cached) " >&6
7466else
7467  if test -n "$OTOOL64"; then
7468  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7469else
7470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471for as_dir in $PATH
7472do
7473  IFS=$as_save_IFS
7474  test -z "$as_dir" && as_dir=.
7475    for ac_exec_ext in '' $ac_executable_extensions; do
7476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7477    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479    break 2
7480  fi
7481done
7482  done
7483IFS=$as_save_IFS
7484
7485fi
7486fi
7487OTOOL64=$ac_cv_prog_OTOOL64
7488if test -n "$OTOOL64"; then
7489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7490$as_echo "$OTOOL64" >&6; }
7491else
7492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493$as_echo "no" >&6; }
7494fi
7495
7496
7497fi
7498if test -z "$ac_cv_prog_OTOOL64"; then
7499  ac_ct_OTOOL64=$OTOOL64
7500  # Extract the first word of "otool64", so it can be a program name with args.
7501set dummy otool64; ac_word=$2
7502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503$as_echo_n "checking for $ac_word... " >&6; }
7504if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7505  $as_echo_n "(cached) " >&6
7506else
7507  if test -n "$ac_ct_OTOOL64"; then
7508  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7509else
7510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511for as_dir in $PATH
7512do
7513  IFS=$as_save_IFS
7514  test -z "$as_dir" && as_dir=.
7515    for ac_exec_ext in '' $ac_executable_extensions; do
7516  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517    ac_cv_prog_ac_ct_OTOOL64="otool64"
7518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519    break 2
7520  fi
7521done
7522  done
7523IFS=$as_save_IFS
7524
7525fi
7526fi
7527ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7528if test -n "$ac_ct_OTOOL64"; then
7529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7530$as_echo "$ac_ct_OTOOL64" >&6; }
7531else
7532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533$as_echo "no" >&6; }
7534fi
7535
7536  if test "x$ac_ct_OTOOL64" = x; then
7537    OTOOL64=":"
7538  else
7539    case $cross_compiling:$ac_tool_warned in
7540yes:)
7541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7543ac_tool_warned=yes ;;
7544esac
7545    OTOOL64=$ac_ct_OTOOL64
7546  fi
7547else
7548  OTOOL64="$ac_cv_prog_OTOOL64"
7549fi
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7578$as_echo_n "checking for -single_module linker flag... " >&6; }
7579if ${lt_cv_apple_cc_single_mod+:} false; then :
7580  $as_echo_n "(cached) " >&6
7581else
7582  lt_cv_apple_cc_single_mod=no
7583      if test -z "${LT_MULTI_MODULE}"; then
7584	# By default we will add the -single_module flag. You can override
7585	# by either setting the environment variable LT_MULTI_MODULE
7586	# non-empty at configure time, or by adding -multi_module to the
7587	# link flags.
7588	rm -rf libconftest.dylib*
7589	echo "int foo(void){return 1;}" > conftest.c
7590	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7591-dynamiclib -Wl,-single_module conftest.c" >&5
7592	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7593	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7594        _lt_result=$?
7595	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7596	  lt_cv_apple_cc_single_mod=yes
7597	else
7598	  cat conftest.err >&5
7599	fi
7600	rm -rf libconftest.dylib*
7601	rm -f conftest.*
7602      fi
7603fi
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7605$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7606    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7607$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7608if ${lt_cv_ld_exported_symbols_list+:} false; then :
7609  $as_echo_n "(cached) " >&6
7610else
7611  lt_cv_ld_exported_symbols_list=no
7612      save_LDFLAGS=$LDFLAGS
7613      echo "_main" > conftest.sym
7614      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7615      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616/* end confdefs.h.  */
7617
7618int
7619main ()
7620{
7621
7622  ;
7623  return 0;
7624}
7625_ACEOF
7626if ac_fn_c_try_link "$LINENO"; then :
7627  lt_cv_ld_exported_symbols_list=yes
7628else
7629  lt_cv_ld_exported_symbols_list=no
7630fi
7631rm -f core conftest.err conftest.$ac_objext \
7632    conftest$ac_exeext conftest.$ac_ext
7633	LDFLAGS="$save_LDFLAGS"
7634
7635fi
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7637$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7638    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7639$as_echo_n "checking for -force_load linker flag... " >&6; }
7640if ${lt_cv_ld_force_load+:} false; then :
7641  $as_echo_n "(cached) " >&6
7642else
7643  lt_cv_ld_force_load=no
7644      cat > conftest.c << _LT_EOF
7645int forced_loaded() { return 2;}
7646_LT_EOF
7647      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7648      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7649      echo "$AR cru libconftest.a conftest.o" >&5
7650      $AR cru libconftest.a conftest.o 2>&5
7651      echo "$RANLIB libconftest.a" >&5
7652      $RANLIB libconftest.a 2>&5
7653      cat > conftest.c << _LT_EOF
7654int main() { return 0;}
7655_LT_EOF
7656      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7657      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7658      _lt_result=$?
7659      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7660	lt_cv_ld_force_load=yes
7661      else
7662	cat conftest.err >&5
7663      fi
7664        rm -f conftest.err libconftest.a conftest conftest.c
7665        rm -rf conftest.dSYM
7666
7667fi
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7669$as_echo "$lt_cv_ld_force_load" >&6; }
7670    case $host_os in
7671    rhapsody* | darwin1.[012])
7672      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7673    darwin1.*)
7674      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7675    darwin*) # darwin 5.x on
7676      # if running on 10.5 or later, the deployment target defaults
7677      # to the OS version, if on x86, and 10.4, the deployment
7678      # target defaults to 10.4. Don't you love it?
7679      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7680	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7681	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7682	10.[012]*)
7683	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7684	10.*)
7685	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7686      esac
7687    ;;
7688  esac
7689    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7690      _lt_dar_single_mod='$single_module'
7691    fi
7692    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7693      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7694    else
7695      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7696    fi
7697    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7698      _lt_dsymutil='~$DSYMUTIL $lib || :'
7699    else
7700      _lt_dsymutil=
7701    fi
7702    ;;
7703  esac
7704
7705for ac_header in dlfcn.h
7706do :
7707  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7708"
7709if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7710  cat >>confdefs.h <<_ACEOF
7711#define HAVE_DLFCN_H 1
7712_ACEOF
7713
7714fi
7715
7716done
7717
7718
7719
7720
7721
7722# Set options
7723
7724
7725
7726        enable_dlopen=no
7727
7728
7729  enable_win32_dll=no
7730
7731
7732            # Check whether --enable-shared was given.
7733if test "${enable_shared+set}" = set; then :
7734  enableval=$enable_shared; p=${PACKAGE-default}
7735    case $enableval in
7736    yes) enable_shared=yes ;;
7737    no) enable_shared=no ;;
7738    *)
7739      enable_shared=no
7740      # Look at the argument we got.  We use all the common list separators.
7741      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7742      for pkg in $enableval; do
7743	IFS="$lt_save_ifs"
7744	if test "X$pkg" = "X$p"; then
7745	  enable_shared=yes
7746	fi
7747      done
7748      IFS="$lt_save_ifs"
7749      ;;
7750    esac
7751else
7752  enable_shared=yes
7753fi
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763  # Check whether --enable-static was given.
7764if test "${enable_static+set}" = set; then :
7765  enableval=$enable_static; p=${PACKAGE-default}
7766    case $enableval in
7767    yes) enable_static=yes ;;
7768    no) enable_static=no ;;
7769    *)
7770     enable_static=no
7771      # Look at the argument we got.  We use all the common list separators.
7772      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7773      for pkg in $enableval; do
7774	IFS="$lt_save_ifs"
7775	if test "X$pkg" = "X$p"; then
7776	  enable_static=yes
7777	fi
7778      done
7779      IFS="$lt_save_ifs"
7780      ;;
7781    esac
7782else
7783  enable_static=yes
7784fi
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795# Check whether --with-pic was given.
7796if test "${with_pic+set}" = set; then :
7797  withval=$with_pic; pic_mode="$withval"
7798else
7799  pic_mode=default
7800fi
7801
7802
7803test -z "$pic_mode" && pic_mode=default
7804
7805
7806
7807
7808
7809
7810
7811  # Check whether --enable-fast-install was given.
7812if test "${enable_fast_install+set}" = set; then :
7813  enableval=$enable_fast_install; p=${PACKAGE-default}
7814    case $enableval in
7815    yes) enable_fast_install=yes ;;
7816    no) enable_fast_install=no ;;
7817    *)
7818      enable_fast_install=no
7819      # Look at the argument we got.  We use all the common list separators.
7820      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7821      for pkg in $enableval; do
7822	IFS="$lt_save_ifs"
7823	if test "X$pkg" = "X$p"; then
7824	  enable_fast_install=yes
7825	fi
7826      done
7827      IFS="$lt_save_ifs"
7828      ;;
7829    esac
7830else
7831  enable_fast_install=yes
7832fi
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844# This can be used to rebuild libtool when needed
7845LIBTOOL_DEPS="$ltmain"
7846
7847# Always use our own libtool.
7848LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875test -z "$LN_S" && LN_S="ln -s"
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890if test -n "${ZSH_VERSION+set}" ; then
7891   setopt NO_GLOB_SUBST
7892fi
7893
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7895$as_echo_n "checking for objdir... " >&6; }
7896if ${lt_cv_objdir+:} false; then :
7897  $as_echo_n "(cached) " >&6
7898else
7899  rm -f .libs 2>/dev/null
7900mkdir .libs 2>/dev/null
7901if test -d .libs; then
7902  lt_cv_objdir=.libs
7903else
7904  # MS-DOS does not allow filenames that begin with a dot.
7905  lt_cv_objdir=_libs
7906fi
7907rmdir .libs 2>/dev/null
7908fi
7909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7910$as_echo "$lt_cv_objdir" >&6; }
7911objdir=$lt_cv_objdir
7912
7913
7914
7915
7916
7917cat >>confdefs.h <<_ACEOF
7918#define LT_OBJDIR "$lt_cv_objdir/"
7919_ACEOF
7920
7921
7922
7923
7924case $host_os in
7925aix3*)
7926  # AIX sometimes has problems with the GCC collect2 program.  For some
7927  # reason, if we set the COLLECT_NAMES environment variable, the problems
7928  # vanish in a puff of smoke.
7929  if test "X${COLLECT_NAMES+set}" != Xset; then
7930    COLLECT_NAMES=
7931    export COLLECT_NAMES
7932  fi
7933  ;;
7934esac
7935
7936# Global variables:
7937ofile=libtool
7938can_build_shared=yes
7939
7940# All known linkers require a `.a' archive for static linking (except MSVC,
7941# which needs '.lib').
7942libext=a
7943
7944with_gnu_ld="$lt_cv_prog_gnu_ld"
7945
7946old_CC="$CC"
7947old_CFLAGS="$CFLAGS"
7948
7949# Set sane defaults for various variables
7950test -z "$CC" && CC=cc
7951test -z "$LTCC" && LTCC=$CC
7952test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7953test -z "$LD" && LD=ld
7954test -z "$ac_objext" && ac_objext=o
7955
7956for cc_temp in $compiler""; do
7957  case $cc_temp in
7958    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7959    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7960    \-*) ;;
7961    *) break;;
7962  esac
7963done
7964cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7965
7966
7967# Only perform the check for file, if the check method requires it
7968test -z "$MAGIC_CMD" && MAGIC_CMD=file
7969case $deplibs_check_method in
7970file_magic*)
7971  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7972    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7973$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7974if ${lt_cv_path_MAGIC_CMD+:} false; then :
7975  $as_echo_n "(cached) " >&6
7976else
7977  case $MAGIC_CMD in
7978[\\/*] |  ?:[\\/]*)
7979  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7980  ;;
7981*)
7982  lt_save_MAGIC_CMD="$MAGIC_CMD"
7983  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7984  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7985  for ac_dir in $ac_dummy; do
7986    IFS="$lt_save_ifs"
7987    test -z "$ac_dir" && ac_dir=.
7988    if test -f $ac_dir/${ac_tool_prefix}file; then
7989      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7990      if test -n "$file_magic_test_file"; then
7991	case $deplibs_check_method in
7992	"file_magic "*)
7993	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7994	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7995	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7996	    $EGREP "$file_magic_regex" > /dev/null; then
7997	    :
7998	  else
7999	    cat <<_LT_EOF 1>&2
8000
8001*** Warning: the command libtool uses to detect shared libraries,
8002*** $file_magic_cmd, produces output that libtool cannot recognize.
8003*** The result is that libtool may fail to recognize shared libraries
8004*** as such.  This will affect the creation of libtool libraries that
8005*** depend on shared libraries, but programs linked with such libtool
8006*** libraries will work regardless of this problem.  Nevertheless, you
8007*** may want to report the problem to your system manager and/or to
8008*** bug-libtool@gnu.org
8009
8010_LT_EOF
8011	  fi ;;
8012	esac
8013      fi
8014      break
8015    fi
8016  done
8017  IFS="$lt_save_ifs"
8018  MAGIC_CMD="$lt_save_MAGIC_CMD"
8019  ;;
8020esac
8021fi
8022
8023MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8024if test -n "$MAGIC_CMD"; then
8025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8026$as_echo "$MAGIC_CMD" >&6; }
8027else
8028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029$as_echo "no" >&6; }
8030fi
8031
8032
8033
8034
8035
8036if test -z "$lt_cv_path_MAGIC_CMD"; then
8037  if test -n "$ac_tool_prefix"; then
8038    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8039$as_echo_n "checking for file... " >&6; }
8040if ${lt_cv_path_MAGIC_CMD+:} false; then :
8041  $as_echo_n "(cached) " >&6
8042else
8043  case $MAGIC_CMD in
8044[\\/*] |  ?:[\\/]*)
8045  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8046  ;;
8047*)
8048  lt_save_MAGIC_CMD="$MAGIC_CMD"
8049  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8050  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8051  for ac_dir in $ac_dummy; do
8052    IFS="$lt_save_ifs"
8053    test -z "$ac_dir" && ac_dir=.
8054    if test -f $ac_dir/file; then
8055      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8056      if test -n "$file_magic_test_file"; then
8057	case $deplibs_check_method in
8058	"file_magic "*)
8059	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8060	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8061	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8062	    $EGREP "$file_magic_regex" > /dev/null; then
8063	    :
8064	  else
8065	    cat <<_LT_EOF 1>&2
8066
8067*** Warning: the command libtool uses to detect shared libraries,
8068*** $file_magic_cmd, produces output that libtool cannot recognize.
8069*** The result is that libtool may fail to recognize shared libraries
8070*** as such.  This will affect the creation of libtool libraries that
8071*** depend on shared libraries, but programs linked with such libtool
8072*** libraries will work regardless of this problem.  Nevertheless, you
8073*** may want to report the problem to your system manager and/or to
8074*** bug-libtool@gnu.org
8075
8076_LT_EOF
8077	  fi ;;
8078	esac
8079      fi
8080      break
8081    fi
8082  done
8083  IFS="$lt_save_ifs"
8084  MAGIC_CMD="$lt_save_MAGIC_CMD"
8085  ;;
8086esac
8087fi
8088
8089MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8090if test -n "$MAGIC_CMD"; then
8091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8092$as_echo "$MAGIC_CMD" >&6; }
8093else
8094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095$as_echo "no" >&6; }
8096fi
8097
8098
8099  else
8100    MAGIC_CMD=:
8101  fi
8102fi
8103
8104  fi
8105  ;;
8106esac
8107
8108# Use C for the default configuration in the libtool script
8109
8110lt_save_CC="$CC"
8111ac_ext=c
8112ac_cpp='$CPP $CPPFLAGS'
8113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8115ac_compiler_gnu=$ac_cv_c_compiler_gnu
8116
8117
8118# Source file extension for C test sources.
8119ac_ext=c
8120
8121# Object file extension for compiled C test sources.
8122objext=o
8123objext=$objext
8124
8125# Code to be used in simple compile tests
8126lt_simple_compile_test_code="int some_variable = 0;"
8127
8128# Code to be used in simple link tests
8129lt_simple_link_test_code='int main(){return(0);}'
8130
8131
8132
8133
8134
8135
8136
8137# If no C compiler was specified, use CC.
8138LTCC=${LTCC-"$CC"}
8139
8140# If no C compiler flags were specified, use CFLAGS.
8141LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8142
8143# Allow CC to be a program name with arguments.
8144compiler=$CC
8145
8146# Save the default compiler, since it gets overwritten when the other
8147# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8148compiler_DEFAULT=$CC
8149
8150# save warnings/boilerplate of simple test code
8151ac_outfile=conftest.$ac_objext
8152echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8153eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8154_lt_compiler_boilerplate=`cat conftest.err`
8155$RM conftest*
8156
8157ac_outfile=conftest.$ac_objext
8158echo "$lt_simple_link_test_code" >conftest.$ac_ext
8159eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8160_lt_linker_boilerplate=`cat conftest.err`
8161$RM -r conftest*
8162
8163
8164if test -n "$compiler"; then
8165
8166lt_prog_compiler_no_builtin_flag=
8167
8168if test "$GCC" = yes; then
8169  case $cc_basename in
8170  nvcc*)
8171    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8172  *)
8173    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8174  esac
8175
8176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8177$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8178if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8179  $as_echo_n "(cached) " >&6
8180else
8181  lt_cv_prog_compiler_rtti_exceptions=no
8182   ac_outfile=conftest.$ac_objext
8183   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8184   lt_compiler_flag="-fno-rtti -fno-exceptions"
8185   # Insert the option either (1) after the last *FLAGS variable, or
8186   # (2) before a word containing "conftest.", or (3) at the end.
8187   # Note that $ac_compile itself does not contain backslashes and begins
8188   # with a dollar sign (not a hyphen), so the echo should work correctly.
8189   # The option is referenced via a variable to avoid confusing sed.
8190   lt_compile=`echo "$ac_compile" | $SED \
8191   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8192   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8193   -e 's:$: $lt_compiler_flag:'`
8194   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8195   (eval "$lt_compile" 2>conftest.err)
8196   ac_status=$?
8197   cat conftest.err >&5
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   if (exit $ac_status) && test -s "$ac_outfile"; then
8200     # The compiler can only warn and ignore the option if not recognized
8201     # So say no if there are warnings other than the usual output.
8202     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8203     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8204     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8205       lt_cv_prog_compiler_rtti_exceptions=yes
8206     fi
8207   fi
8208   $RM conftest*
8209
8210fi
8211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8212$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8213
8214if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8215    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8216else
8217    :
8218fi
8219
8220fi
8221
8222
8223
8224
8225
8226
8227  lt_prog_compiler_wl=
8228lt_prog_compiler_pic=
8229lt_prog_compiler_static=
8230
8231
8232  if test "$GCC" = yes; then
8233    lt_prog_compiler_wl='-Wl,'
8234    lt_prog_compiler_static='-static'
8235
8236    case $host_os in
8237      aix*)
8238      # All AIX code is PIC.
8239      if test "$host_cpu" = ia64; then
8240	# AIX 5 now supports IA64 processor
8241	lt_prog_compiler_static='-Bstatic'
8242      fi
8243      ;;
8244
8245    amigaos*)
8246      case $host_cpu in
8247      powerpc)
8248            # see comment about AmigaOS4 .so support
8249            lt_prog_compiler_pic='-fPIC'
8250        ;;
8251      m68k)
8252            # FIXME: we need at least 68020 code to build shared libraries, but
8253            # adding the `-m68020' flag to GCC prevents building anything better,
8254            # like `-m68040'.
8255            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8256        ;;
8257      esac
8258      ;;
8259
8260    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8261      # PIC is the default for these OSes.
8262      ;;
8263
8264    mingw* | cygwin* | pw32* | os2* | cegcc*)
8265      # This hack is so that the source file can tell whether it is being
8266      # built for inclusion in a dll (and should export symbols for example).
8267      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8268      # (--disable-auto-import) libraries
8269      lt_prog_compiler_pic='-DDLL_EXPORT'
8270      ;;
8271
8272    darwin* | rhapsody*)
8273      # PIC is the default on this platform
8274      # Common symbols not allowed in MH_DYLIB files
8275      lt_prog_compiler_pic='-fno-common'
8276      ;;
8277
8278    haiku*)
8279      # PIC is the default for Haiku.
8280      # The "-static" flag exists, but is broken.
8281      lt_prog_compiler_static=
8282      ;;
8283
8284    hpux*)
8285      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8286      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8287      # sets the default TLS model and affects inlining.
8288      case $host_cpu in
8289      hppa*64*)
8290	# +Z the default
8291	;;
8292      *)
8293	lt_prog_compiler_pic='-fPIC'
8294	;;
8295      esac
8296      ;;
8297
8298    interix[3-9]*)
8299      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8300      # Instead, we relocate shared libraries at runtime.
8301      ;;
8302
8303    msdosdjgpp*)
8304      # Just because we use GCC doesn't mean we suddenly get shared libraries
8305      # on systems that don't support them.
8306      lt_prog_compiler_can_build_shared=no
8307      enable_shared=no
8308      ;;
8309
8310    *nto* | *qnx*)
8311      # QNX uses GNU C++, but need to define -shared option too, otherwise
8312      # it will coredump.
8313      lt_prog_compiler_pic='-fPIC -shared'
8314      ;;
8315
8316    sysv4*MP*)
8317      if test -d /usr/nec; then
8318	lt_prog_compiler_pic=-Kconform_pic
8319      fi
8320      ;;
8321
8322    *)
8323      lt_prog_compiler_pic='-fPIC'
8324      ;;
8325    esac
8326
8327    case $cc_basename in
8328    nvcc*) # Cuda Compiler Driver 2.2
8329      lt_prog_compiler_wl='-Xlinker '
8330      lt_prog_compiler_pic='-Xcompiler -fPIC'
8331      ;;
8332    esac
8333  else
8334    # PORTME Check for flag to pass linker flags through the system compiler.
8335    case $host_os in
8336    aix*)
8337      lt_prog_compiler_wl='-Wl,'
8338      if test "$host_cpu" = ia64; then
8339	# AIX 5 now supports IA64 processor
8340	lt_prog_compiler_static='-Bstatic'
8341      else
8342	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8343      fi
8344      ;;
8345
8346    mingw* | cygwin* | pw32* | os2* | cegcc*)
8347      # This hack is so that the source file can tell whether it is being
8348      # built for inclusion in a dll (and should export symbols for example).
8349      lt_prog_compiler_pic='-DDLL_EXPORT'
8350      ;;
8351
8352    hpux9* | hpux10* | hpux11*)
8353      lt_prog_compiler_wl='-Wl,'
8354      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8355      # not for PA HP-UX.
8356      case $host_cpu in
8357      hppa*64*|ia64*)
8358	# +Z the default
8359	;;
8360      *)
8361	lt_prog_compiler_pic='+Z'
8362	;;
8363      esac
8364      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8365      lt_prog_compiler_static='${wl}-a ${wl}archive'
8366      ;;
8367
8368    irix5* | irix6* | nonstopux*)
8369      lt_prog_compiler_wl='-Wl,'
8370      # PIC (with -KPIC) is the default.
8371      lt_prog_compiler_static='-non_shared'
8372      ;;
8373
8374    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8375      case $cc_basename in
8376      # old Intel for x86_64 which still supported -KPIC.
8377      ecc*)
8378	lt_prog_compiler_wl='-Wl,'
8379	lt_prog_compiler_pic='-KPIC'
8380	lt_prog_compiler_static='-static'
8381        ;;
8382      # icc used to be incompatible with GCC.
8383      # ICC 10 doesn't accept -KPIC any more.
8384      icc* | ifort*)
8385	lt_prog_compiler_wl='-Wl,'
8386	lt_prog_compiler_pic='-fPIC'
8387	lt_prog_compiler_static='-static'
8388        ;;
8389      # Lahey Fortran 8.1.
8390      lf95*)
8391	lt_prog_compiler_wl='-Wl,'
8392	lt_prog_compiler_pic='--shared'
8393	lt_prog_compiler_static='--static'
8394	;;
8395      nagfor*)
8396	# NAG Fortran compiler
8397	lt_prog_compiler_wl='-Wl,-Wl,,'
8398	lt_prog_compiler_pic='-PIC'
8399	lt_prog_compiler_static='-Bstatic'
8400	;;
8401      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8402        # Portland Group compilers (*not* the Pentium gcc compiler,
8403	# which looks to be a dead project)
8404	lt_prog_compiler_wl='-Wl,'
8405	lt_prog_compiler_pic='-fpic'
8406	lt_prog_compiler_static='-Bstatic'
8407        ;;
8408      ccc*)
8409        lt_prog_compiler_wl='-Wl,'
8410        # All Alpha code is PIC.
8411        lt_prog_compiler_static='-non_shared'
8412        ;;
8413      xl* | bgxl* | bgf* | mpixl*)
8414	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8415	lt_prog_compiler_wl='-Wl,'
8416	lt_prog_compiler_pic='-qpic'
8417	lt_prog_compiler_static='-qstaticlink'
8418	;;
8419      *)
8420	case `$CC -V 2>&1 | sed 5q` in
8421	*Sun\ F* | *Sun*Fortran*)
8422	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8423	  lt_prog_compiler_pic='-KPIC'
8424	  lt_prog_compiler_static='-Bstatic'
8425	  lt_prog_compiler_wl=''
8426	  ;;
8427	*Sun\ C*)
8428	  # Sun C 5.9
8429	  lt_prog_compiler_pic='-KPIC'
8430	  lt_prog_compiler_static='-Bstatic'
8431	  lt_prog_compiler_wl='-Wl,'
8432	  ;;
8433	esac
8434	;;
8435      esac
8436      ;;
8437
8438    newsos6)
8439      lt_prog_compiler_pic='-KPIC'
8440      lt_prog_compiler_static='-Bstatic'
8441      ;;
8442
8443    *nto* | *qnx*)
8444      # QNX uses GNU C++, but need to define -shared option too, otherwise
8445      # it will coredump.
8446      lt_prog_compiler_pic='-fPIC -shared'
8447      ;;
8448
8449    osf3* | osf4* | osf5*)
8450      lt_prog_compiler_wl='-Wl,'
8451      # All OSF/1 code is PIC.
8452      lt_prog_compiler_static='-non_shared'
8453      ;;
8454
8455    rdos*)
8456      lt_prog_compiler_static='-non_shared'
8457      ;;
8458
8459    solaris*)
8460      lt_prog_compiler_pic='-KPIC'
8461      lt_prog_compiler_static='-Bstatic'
8462      case $cc_basename in
8463      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8464	lt_prog_compiler_wl='-Qoption ld ';;
8465      *)
8466	lt_prog_compiler_wl='-Wl,';;
8467      esac
8468      ;;
8469
8470    sunos4*)
8471      lt_prog_compiler_wl='-Qoption ld '
8472      lt_prog_compiler_pic='-PIC'
8473      lt_prog_compiler_static='-Bstatic'
8474      ;;
8475
8476    sysv4 | sysv4.2uw2* | sysv4.3*)
8477      lt_prog_compiler_wl='-Wl,'
8478      lt_prog_compiler_pic='-KPIC'
8479      lt_prog_compiler_static='-Bstatic'
8480      ;;
8481
8482    sysv4*MP*)
8483      if test -d /usr/nec ;then
8484	lt_prog_compiler_pic='-Kconform_pic'
8485	lt_prog_compiler_static='-Bstatic'
8486      fi
8487      ;;
8488
8489    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8490      lt_prog_compiler_wl='-Wl,'
8491      lt_prog_compiler_pic='-KPIC'
8492      lt_prog_compiler_static='-Bstatic'
8493      ;;
8494
8495    unicos*)
8496      lt_prog_compiler_wl='-Wl,'
8497      lt_prog_compiler_can_build_shared=no
8498      ;;
8499
8500    uts4*)
8501      lt_prog_compiler_pic='-pic'
8502      lt_prog_compiler_static='-Bstatic'
8503      ;;
8504
8505    *)
8506      lt_prog_compiler_can_build_shared=no
8507      ;;
8508    esac
8509  fi
8510
8511case $host_os in
8512  # For platforms which do not support PIC, -DPIC is meaningless:
8513  *djgpp*)
8514    lt_prog_compiler_pic=
8515    ;;
8516  *)
8517    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8518    ;;
8519esac
8520
8521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8522$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8523if ${lt_cv_prog_compiler_pic+:} false; then :
8524  $as_echo_n "(cached) " >&6
8525else
8526  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8527fi
8528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8529$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8530lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8531
8532#
8533# Check to make sure the PIC flag actually works.
8534#
8535if test -n "$lt_prog_compiler_pic"; then
8536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8537$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8538if ${lt_cv_prog_compiler_pic_works+:} false; then :
8539  $as_echo_n "(cached) " >&6
8540else
8541  lt_cv_prog_compiler_pic_works=no
8542   ac_outfile=conftest.$ac_objext
8543   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8544   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8545   # Insert the option either (1) after the last *FLAGS variable, or
8546   # (2) before a word containing "conftest.", or (3) at the end.
8547   # Note that $ac_compile itself does not contain backslashes and begins
8548   # with a dollar sign (not a hyphen), so the echo should work correctly.
8549   # The option is referenced via a variable to avoid confusing sed.
8550   lt_compile=`echo "$ac_compile" | $SED \
8551   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8552   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8553   -e 's:$: $lt_compiler_flag:'`
8554   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8555   (eval "$lt_compile" 2>conftest.err)
8556   ac_status=$?
8557   cat conftest.err >&5
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   if (exit $ac_status) && test -s "$ac_outfile"; then
8560     # The compiler can only warn and ignore the option if not recognized
8561     # So say no if there are warnings other than the usual output.
8562     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8563     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8564     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8565       lt_cv_prog_compiler_pic_works=yes
8566     fi
8567   fi
8568   $RM conftest*
8569
8570fi
8571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8572$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8573
8574if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8575    case $lt_prog_compiler_pic in
8576     "" | " "*) ;;
8577     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8578     esac
8579else
8580    lt_prog_compiler_pic=
8581     lt_prog_compiler_can_build_shared=no
8582fi
8583
8584fi
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596#
8597# Check to make sure the static flag actually works.
8598#
8599wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8601$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8602if ${lt_cv_prog_compiler_static_works+:} false; then :
8603  $as_echo_n "(cached) " >&6
8604else
8605  lt_cv_prog_compiler_static_works=no
8606   save_LDFLAGS="$LDFLAGS"
8607   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8608   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8609   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8610     # The linker can only warn and ignore the option if not recognized
8611     # So say no if there are warnings
8612     if test -s conftest.err; then
8613       # Append any errors to the config.log.
8614       cat conftest.err 1>&5
8615       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8616       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8617       if diff conftest.exp conftest.er2 >/dev/null; then
8618         lt_cv_prog_compiler_static_works=yes
8619       fi
8620     else
8621       lt_cv_prog_compiler_static_works=yes
8622     fi
8623   fi
8624   $RM -r conftest*
8625   LDFLAGS="$save_LDFLAGS"
8626
8627fi
8628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8629$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8630
8631if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8632    :
8633else
8634    lt_prog_compiler_static=
8635fi
8636
8637
8638
8639
8640
8641
8642
8643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8644$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8645if ${lt_cv_prog_compiler_c_o+:} false; then :
8646  $as_echo_n "(cached) " >&6
8647else
8648  lt_cv_prog_compiler_c_o=no
8649   $RM -r conftest 2>/dev/null
8650   mkdir conftest
8651   cd conftest
8652   mkdir out
8653   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8654
8655   lt_compiler_flag="-o out/conftest2.$ac_objext"
8656   # Insert the option either (1) after the last *FLAGS variable, or
8657   # (2) before a word containing "conftest.", or (3) at the end.
8658   # Note that $ac_compile itself does not contain backslashes and begins
8659   # with a dollar sign (not a hyphen), so the echo should work correctly.
8660   lt_compile=`echo "$ac_compile" | $SED \
8661   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8662   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8663   -e 's:$: $lt_compiler_flag:'`
8664   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8665   (eval "$lt_compile" 2>out/conftest.err)
8666   ac_status=$?
8667   cat out/conftest.err >&5
8668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8670   then
8671     # The compiler can only warn and ignore the option if not recognized
8672     # So say no if there are warnings
8673     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8674     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8675     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8676       lt_cv_prog_compiler_c_o=yes
8677     fi
8678   fi
8679   chmod u+w . 2>&5
8680   $RM conftest*
8681   # SGI C++ compiler will create directory out/ii_files/ for
8682   # template instantiation
8683   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8684   $RM out/* && rmdir out
8685   cd ..
8686   $RM -r conftest
8687   $RM conftest*
8688
8689fi
8690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8691$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8692
8693
8694
8695
8696
8697
8698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8699$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8700if ${lt_cv_prog_compiler_c_o+:} false; then :
8701  $as_echo_n "(cached) " >&6
8702else
8703  lt_cv_prog_compiler_c_o=no
8704   $RM -r conftest 2>/dev/null
8705   mkdir conftest
8706   cd conftest
8707   mkdir out
8708   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8709
8710   lt_compiler_flag="-o out/conftest2.$ac_objext"
8711   # Insert the option either (1) after the last *FLAGS variable, or
8712   # (2) before a word containing "conftest.", or (3) at the end.
8713   # Note that $ac_compile itself does not contain backslashes and begins
8714   # with a dollar sign (not a hyphen), so the echo should work correctly.
8715   lt_compile=`echo "$ac_compile" | $SED \
8716   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8717   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8718   -e 's:$: $lt_compiler_flag:'`
8719   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8720   (eval "$lt_compile" 2>out/conftest.err)
8721   ac_status=$?
8722   cat out/conftest.err >&5
8723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8725   then
8726     # The compiler can only warn and ignore the option if not recognized
8727     # So say no if there are warnings
8728     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8729     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8730     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8731       lt_cv_prog_compiler_c_o=yes
8732     fi
8733   fi
8734   chmod u+w . 2>&5
8735   $RM conftest*
8736   # SGI C++ compiler will create directory out/ii_files/ for
8737   # template instantiation
8738   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8739   $RM out/* && rmdir out
8740   cd ..
8741   $RM -r conftest
8742   $RM conftest*
8743
8744fi
8745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8746$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8747
8748
8749
8750
8751hard_links="nottested"
8752if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8753  # do not overwrite the value of need_locks provided by the user
8754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8755$as_echo_n "checking if we can lock with hard links... " >&6; }
8756  hard_links=yes
8757  $RM conftest*
8758  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8759  touch conftest.a
8760  ln conftest.a conftest.b 2>&5 || hard_links=no
8761  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8763$as_echo "$hard_links" >&6; }
8764  if test "$hard_links" = no; then
8765    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8766$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8767    need_locks=warn
8768  fi
8769else
8770  need_locks=no
8771fi
8772
8773
8774
8775
8776
8777
8778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8779$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8780
8781  runpath_var=
8782  allow_undefined_flag=
8783  always_export_symbols=no
8784  archive_cmds=
8785  archive_expsym_cmds=
8786  compiler_needs_object=no
8787  enable_shared_with_static_runtimes=no
8788  export_dynamic_flag_spec=
8789  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8790  hardcode_automatic=no
8791  hardcode_direct=no
8792  hardcode_direct_absolute=no
8793  hardcode_libdir_flag_spec=
8794  hardcode_libdir_flag_spec_ld=
8795  hardcode_libdir_separator=
8796  hardcode_minus_L=no
8797  hardcode_shlibpath_var=unsupported
8798  inherit_rpath=no
8799  link_all_deplibs=unknown
8800  module_cmds=
8801  module_expsym_cmds=
8802  old_archive_from_new_cmds=
8803  old_archive_from_expsyms_cmds=
8804  thread_safe_flag_spec=
8805  whole_archive_flag_spec=
8806  # include_expsyms should be a list of space-separated symbols to be *always*
8807  # included in the symbol list
8808  include_expsyms=
8809  # exclude_expsyms can be an extended regexp of symbols to exclude
8810  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8811  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8812  # as well as any symbol that contains `d'.
8813  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8814  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8815  # platforms (ab)use it in PIC code, but their linkers get confused if
8816  # the symbol is explicitly referenced.  Since portable code cannot
8817  # rely on this symbol name, it's probably fine to never include it in
8818  # preloaded symbol tables.
8819  # Exclude shared library initialization/finalization symbols.
8820  extract_expsyms_cmds=
8821
8822  case $host_os in
8823  cygwin* | mingw* | pw32* | cegcc*)
8824    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8825    # When not using gcc, we currently assume that we are using
8826    # Microsoft Visual C++.
8827    if test "$GCC" != yes; then
8828      with_gnu_ld=no
8829    fi
8830    ;;
8831  interix*)
8832    # we just hope/assume this is gcc and not c89 (= MSVC++)
8833    with_gnu_ld=yes
8834    ;;
8835  openbsd*)
8836    with_gnu_ld=no
8837    ;;
8838  esac
8839
8840  ld_shlibs=yes
8841
8842  # On some targets, GNU ld is compatible enough with the native linker
8843  # that we're better off using the native interface for both.
8844  lt_use_gnu_ld_interface=no
8845  if test "$with_gnu_ld" = yes; then
8846    case $host_os in
8847      aix*)
8848	# The AIX port of GNU ld has always aspired to compatibility
8849	# with the native linker.  However, as the warning in the GNU ld
8850	# block says, versions before 2.19.5* couldn't really create working
8851	# shared libraries, regardless of the interface used.
8852	case `$LD -v 2>&1` in
8853	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8854	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8855	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8856	  *)
8857	    lt_use_gnu_ld_interface=yes
8858	    ;;
8859	esac
8860	;;
8861      *)
8862	lt_use_gnu_ld_interface=yes
8863	;;
8864    esac
8865  fi
8866
8867  if test "$lt_use_gnu_ld_interface" = yes; then
8868    # If archive_cmds runs LD, not CC, wlarc should be empty
8869    wlarc='${wl}'
8870
8871    # Set some defaults for GNU ld with shared library support. These
8872    # are reset later if shared libraries are not supported. Putting them
8873    # here allows them to be overridden if necessary.
8874    runpath_var=LD_RUN_PATH
8875    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8876    export_dynamic_flag_spec='${wl}--export-dynamic'
8877    # ancient GNU ld didn't support --whole-archive et. al.
8878    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8879      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8880    else
8881      whole_archive_flag_spec=
8882    fi
8883    supports_anon_versioning=no
8884    case `$LD -v 2>&1` in
8885      *GNU\ gold*) supports_anon_versioning=yes ;;
8886      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8887      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8888      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8889      *\ 2.11.*) ;; # other 2.11 versions
8890      *) supports_anon_versioning=yes ;;
8891    esac
8892
8893    # See if GNU ld supports shared libraries.
8894    case $host_os in
8895    aix[3-9]*)
8896      # On AIX/PPC, the GNU linker is very broken
8897      if test "$host_cpu" != ia64; then
8898	ld_shlibs=no
8899	cat <<_LT_EOF 1>&2
8900
8901*** Warning: the GNU linker, at least up to release 2.19, is reported
8902*** to be unable to reliably create shared libraries on AIX.
8903*** Therefore, libtool is disabling shared libraries support.  If you
8904*** really care for shared libraries, you may want to install binutils
8905*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8906*** You will then need to restart the configuration process.
8907
8908_LT_EOF
8909      fi
8910      ;;
8911
8912    amigaos*)
8913      case $host_cpu in
8914      powerpc)
8915            # see comment about AmigaOS4 .so support
8916            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8917            archive_expsym_cmds=''
8918        ;;
8919      m68k)
8920            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)'
8921            hardcode_libdir_flag_spec='-L$libdir'
8922            hardcode_minus_L=yes
8923        ;;
8924      esac
8925      ;;
8926
8927    beos*)
8928      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8929	allow_undefined_flag=unsupported
8930	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8931	# support --undefined.  This deserves some investigation.  FIXME
8932	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8933      else
8934	ld_shlibs=no
8935      fi
8936      ;;
8937
8938    cygwin* | mingw* | pw32* | cegcc*)
8939      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8940      # as there is no search path for DLLs.
8941      hardcode_libdir_flag_spec='-L$libdir'
8942      export_dynamic_flag_spec='${wl}--export-all-symbols'
8943      allow_undefined_flag=unsupported
8944      always_export_symbols=no
8945      enable_shared_with_static_runtimes=yes
8946      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'
8947      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8948
8949      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8950        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8951	# If the export-symbols file already is a .def file (1st line
8952	# is EXPORTS), use it as is; otherwise, prepend...
8953	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8954	  cp $export_symbols $output_objdir/$soname.def;
8955	else
8956	  echo EXPORTS > $output_objdir/$soname.def;
8957	  cat $export_symbols >> $output_objdir/$soname.def;
8958	fi~
8959	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8960      else
8961	ld_shlibs=no
8962      fi
8963      ;;
8964
8965    haiku*)
8966      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8967      link_all_deplibs=yes
8968      ;;
8969
8970    interix[3-9]*)
8971      hardcode_direct=no
8972      hardcode_shlibpath_var=no
8973      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8974      export_dynamic_flag_spec='${wl}-E'
8975      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8976      # Instead, shared libraries are loaded at an image base (0x10000000 by
8977      # default) and relocated if they conflict, which is a slow very memory
8978      # consuming and fragmenting process.  To avoid this, we pick a random,
8979      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8980      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8981      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8982      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'
8983      ;;
8984
8985    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8986      tmp_diet=no
8987      if test "$host_os" = linux-dietlibc; then
8988	case $cc_basename in
8989	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8990	esac
8991      fi
8992      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8993	 && test "$tmp_diet" = no
8994      then
8995	tmp_addflag=' $pic_flag'
8996	tmp_sharedflag='-shared'
8997	case $cc_basename,$host_cpu in
8998        pgcc*)				# Portland Group C compiler
8999	  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'
9000	  tmp_addflag=' $pic_flag'
9001	  ;;
9002	pgf77* | pgf90* | pgf95* | pgfortran*)
9003					# Portland Group f77 and f90 compilers
9004	  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'
9005	  tmp_addflag=' $pic_flag -Mnomain' ;;
9006	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9007	  tmp_addflag=' -i_dynamic' ;;
9008	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9009	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9010	ifc* | ifort*)			# Intel Fortran compiler
9011	  tmp_addflag=' -nofor_main' ;;
9012	lf95*)				# Lahey Fortran 8.1
9013	  whole_archive_flag_spec=
9014	  tmp_sharedflag='--shared' ;;
9015	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9016	  tmp_sharedflag='-qmkshrobj'
9017	  tmp_addflag= ;;
9018	nvcc*)	# Cuda Compiler Driver 2.2
9019	  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'
9020	  compiler_needs_object=yes
9021	  ;;
9022	esac
9023	case `$CC -V 2>&1 | sed 5q` in
9024	*Sun\ C*)			# Sun C 5.9
9025	  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'
9026	  compiler_needs_object=yes
9027	  tmp_sharedflag='-G' ;;
9028	*Sun\ F*)			# Sun Fortran 8.3
9029	  tmp_sharedflag='-G' ;;
9030	esac
9031	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9032
9033        if test "x$supports_anon_versioning" = xyes; then
9034          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9035	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9036	    echo "local: *; };" >> $output_objdir/$libname.ver~
9037	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9038        fi
9039
9040	case $cc_basename in
9041	xlf* | bgf* | bgxlf* | mpixlf*)
9042	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9043	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9044	  hardcode_libdir_flag_spec=
9045	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9046	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9047	  if test "x$supports_anon_versioning" = xyes; then
9048	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9049	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9050	      echo "local: *; };" >> $output_objdir/$libname.ver~
9051	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9052	  fi
9053	  ;;
9054	esac
9055      else
9056        ld_shlibs=no
9057      fi
9058      ;;
9059
9060    netbsd*)
9061      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9062	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9063	wlarc=
9064      else
9065	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9066	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9067      fi
9068      ;;
9069
9070    solaris*)
9071      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9072	ld_shlibs=no
9073	cat <<_LT_EOF 1>&2
9074
9075*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9076*** create shared libraries on Solaris systems.  Therefore, libtool
9077*** is disabling shared libraries support.  We urge you to upgrade GNU
9078*** binutils to release 2.9.1 or newer.  Another option is to modify
9079*** your PATH or compiler configuration so that the native linker is
9080*** used, and then restart.
9081
9082_LT_EOF
9083      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9084	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9085	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9086      else
9087	ld_shlibs=no
9088      fi
9089      ;;
9090
9091    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9092      case `$LD -v 2>&1` in
9093        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9094	ld_shlibs=no
9095	cat <<_LT_EOF 1>&2
9096
9097*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9098*** reliably create shared libraries on SCO systems.  Therefore, libtool
9099*** is disabling shared libraries support.  We urge you to upgrade GNU
9100*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9101*** your PATH or compiler configuration so that the native linker is
9102*** used, and then restart.
9103
9104_LT_EOF
9105	;;
9106	*)
9107	  # For security reasons, it is highly recommended that you always
9108	  # use absolute paths for naming shared libraries, and exclude the
9109	  # DT_RUNPATH tag from executables and libraries.  But doing so
9110	  # requires that you compile everything twice, which is a pain.
9111	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9112	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9113	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9114	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9115	  else
9116	    ld_shlibs=no
9117	  fi
9118	;;
9119      esac
9120      ;;
9121
9122    sunos4*)
9123      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9124      wlarc=
9125      hardcode_direct=yes
9126      hardcode_shlibpath_var=no
9127      ;;
9128
9129    *)
9130      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9131	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9132	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9133      else
9134	ld_shlibs=no
9135      fi
9136      ;;
9137    esac
9138
9139    if test "$ld_shlibs" = no; then
9140      runpath_var=
9141      hardcode_libdir_flag_spec=
9142      export_dynamic_flag_spec=
9143      whole_archive_flag_spec=
9144    fi
9145  else
9146    # PORTME fill in a description of your system's linker (not GNU ld)
9147    case $host_os in
9148    aix3*)
9149      allow_undefined_flag=unsupported
9150      always_export_symbols=yes
9151      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'
9152      # Note: this linker hardcodes the directories in LIBPATH if there
9153      # are no directories specified by -L.
9154      hardcode_minus_L=yes
9155      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9156	# Neither direct hardcoding nor static linking is supported with a
9157	# broken collect2.
9158	hardcode_direct=unsupported
9159      fi
9160      ;;
9161
9162    aix[4-9]*)
9163      if test "$host_cpu" = ia64; then
9164	# On IA64, the linker does run time linking by default, so we don't
9165	# have to do anything special.
9166	aix_use_runtimelinking=no
9167	exp_sym_flag='-Bexport'
9168	no_entry_flag=""
9169      else
9170	# If we're using GNU nm, then we don't want the "-C" option.
9171	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9172	# Also, AIX nm treats weak defined symbols like other global
9173	# defined symbols, whereas GNU nm marks them as "W".
9174	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9175	  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'
9176	else
9177	  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'
9178	fi
9179	aix_use_runtimelinking=no
9180
9181	# Test if we are trying to use run time linking or normal
9182	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9183	# need to do runtime linking.
9184	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9185	  for ld_flag in $LDFLAGS; do
9186	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9187	    aix_use_runtimelinking=yes
9188	    break
9189	  fi
9190	  done
9191	  ;;
9192	esac
9193
9194	exp_sym_flag='-bexport'
9195	no_entry_flag='-bnoentry'
9196      fi
9197
9198      # When large executables or shared objects are built, AIX ld can
9199      # have problems creating the table of contents.  If linking a library
9200      # or program results in "error TOC overflow" add -mminimal-toc to
9201      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9202      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9203
9204      archive_cmds=''
9205      hardcode_direct=yes
9206      hardcode_direct_absolute=yes
9207      hardcode_libdir_separator=':'
9208      link_all_deplibs=yes
9209      file_list_spec='${wl}-f,'
9210
9211      if test "$GCC" = yes; then
9212	case $host_os in aix4.[012]|aix4.[012].*)
9213	# We only want to do this on AIX 4.2 and lower, the check
9214	# below for broken collect2 doesn't work under 4.3+
9215	  collect2name=`${CC} -print-prog-name=collect2`
9216	  if test -f "$collect2name" &&
9217	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9218	  then
9219	  # We have reworked collect2
9220	  :
9221	  else
9222	  # We have old collect2
9223	  hardcode_direct=unsupported
9224	  # It fails to find uninstalled libraries when the uninstalled
9225	  # path is not listed in the libpath.  Setting hardcode_minus_L
9226	  # to unsupported forces relinking
9227	  hardcode_minus_L=yes
9228	  hardcode_libdir_flag_spec='-L$libdir'
9229	  hardcode_libdir_separator=
9230	  fi
9231	  ;;
9232	esac
9233	shared_flag='-shared'
9234	if test "$aix_use_runtimelinking" = yes; then
9235	  shared_flag="$shared_flag "'${wl}-G'
9236	fi
9237      else
9238	# not using gcc
9239	if test "$host_cpu" = ia64; then
9240	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9241	# chokes on -Wl,-G. The following line is correct:
9242	  shared_flag='-G'
9243	else
9244	  if test "$aix_use_runtimelinking" = yes; then
9245	    shared_flag='${wl}-G'
9246	  else
9247	    shared_flag='${wl}-bM:SRE'
9248	  fi
9249	fi
9250      fi
9251
9252      export_dynamic_flag_spec='${wl}-bexpall'
9253      # It seems that -bexpall does not export symbols beginning with
9254      # underscore (_), so it is better to generate a list of symbols to export.
9255      always_export_symbols=yes
9256      if test "$aix_use_runtimelinking" = yes; then
9257	# Warning - without using the other runtime loading flags (-brtl),
9258	# -berok will link without error, but may produce a broken library.
9259	allow_undefined_flag='-berok'
9260        # Determine the default libpath from the value encoded in an
9261        # empty executable.
9262        if test "${lt_cv_aix_libpath+set}" = set; then
9263  aix_libpath=$lt_cv_aix_libpath
9264else
9265  if ${lt_cv_aix_libpath_+:} false; then :
9266  $as_echo_n "(cached) " >&6
9267else
9268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269/* end confdefs.h.  */
9270
9271int
9272main ()
9273{
9274
9275  ;
9276  return 0;
9277}
9278_ACEOF
9279if ac_fn_c_try_link "$LINENO"; then :
9280
9281  lt_aix_libpath_sed='
9282      /Import File Strings/,/^$/ {
9283	  /^0/ {
9284	      s/^0  *\([^ ]*\) *$/\1/
9285	      p
9286	  }
9287      }'
9288  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9289  # Check for a 64-bit object if we didn't find anything.
9290  if test -z "$lt_cv_aix_libpath_"; then
9291    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9292  fi
9293fi
9294rm -f core conftest.err conftest.$ac_objext \
9295    conftest$ac_exeext conftest.$ac_ext
9296  if test -z "$lt_cv_aix_libpath_"; then
9297    lt_cv_aix_libpath_="/usr/lib:/lib"
9298  fi
9299
9300fi
9301
9302  aix_libpath=$lt_cv_aix_libpath_
9303fi
9304
9305        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9306        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"
9307      else
9308	if test "$host_cpu" = ia64; then
9309	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9310	  allow_undefined_flag="-z nodefs"
9311	  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"
9312	else
9313	 # Determine the default libpath from the value encoded in an
9314	 # empty executable.
9315	 if test "${lt_cv_aix_libpath+set}" = set; then
9316  aix_libpath=$lt_cv_aix_libpath
9317else
9318  if ${lt_cv_aix_libpath_+:} false; then :
9319  $as_echo_n "(cached) " >&6
9320else
9321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h.  */
9323
9324int
9325main ()
9326{
9327
9328  ;
9329  return 0;
9330}
9331_ACEOF
9332if ac_fn_c_try_link "$LINENO"; then :
9333
9334  lt_aix_libpath_sed='
9335      /Import File Strings/,/^$/ {
9336	  /^0/ {
9337	      s/^0  *\([^ ]*\) *$/\1/
9338	      p
9339	  }
9340      }'
9341  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9342  # Check for a 64-bit object if we didn't find anything.
9343  if test -z "$lt_cv_aix_libpath_"; then
9344    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9345  fi
9346fi
9347rm -f core conftest.err conftest.$ac_objext \
9348    conftest$ac_exeext conftest.$ac_ext
9349  if test -z "$lt_cv_aix_libpath_"; then
9350    lt_cv_aix_libpath_="/usr/lib:/lib"
9351  fi
9352
9353fi
9354
9355  aix_libpath=$lt_cv_aix_libpath_
9356fi
9357
9358	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9359	  # Warning - without using the other run time loading flags,
9360	  # -berok will link without error, but may produce a broken library.
9361	  no_undefined_flag=' ${wl}-bernotok'
9362	  allow_undefined_flag=' ${wl}-berok'
9363	  if test "$with_gnu_ld" = yes; then
9364	    # We only use this code for GNU lds that support --whole-archive.
9365	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9366	  else
9367	    # Exported symbols can be pulled into shared objects from archives
9368	    whole_archive_flag_spec='$convenience'
9369	  fi
9370	  archive_cmds_need_lc=yes
9371	  # This is similar to how AIX traditionally builds its shared libraries.
9372	  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'
9373	fi
9374      fi
9375      ;;
9376
9377    amigaos*)
9378      case $host_cpu in
9379      powerpc)
9380            # see comment about AmigaOS4 .so support
9381            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9382            archive_expsym_cmds=''
9383        ;;
9384      m68k)
9385            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)'
9386            hardcode_libdir_flag_spec='-L$libdir'
9387            hardcode_minus_L=yes
9388        ;;
9389      esac
9390      ;;
9391
9392    bsdi[45]*)
9393      export_dynamic_flag_spec=-rdynamic
9394      ;;
9395
9396    cygwin* | mingw* | pw32* | cegcc*)
9397      # When not using gcc, we currently assume that we are using
9398      # Microsoft Visual C++.
9399      # hardcode_libdir_flag_spec is actually meaningless, as there is
9400      # no search path for DLLs.
9401      case $cc_basename in
9402      cl*)
9403	# Native MSVC
9404	hardcode_libdir_flag_spec=' '
9405	allow_undefined_flag=unsupported
9406	always_export_symbols=yes
9407	file_list_spec='@'
9408	# Tell ltmain to make .lib files, not .a files.
9409	libext=lib
9410	# Tell ltmain to make .dll files, not .so files.
9411	shrext_cmds=".dll"
9412	# FIXME: Setting linknames here is a bad hack.
9413	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9414	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9415	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9416	  else
9417	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9418	  fi~
9419	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9420	  linknames='
9421	# The linker will not automatically build a static lib if we build a DLL.
9422	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9423	enable_shared_with_static_runtimes=yes
9424	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9425	# Don't use ranlib
9426	old_postinstall_cmds='chmod 644 $oldlib'
9427	postlink_cmds='lt_outputfile="@OUTPUT@"~
9428	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9429	  case $lt_outputfile in
9430	    *.exe|*.EXE) ;;
9431	    *)
9432	      lt_outputfile="$lt_outputfile.exe"
9433	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9434	      ;;
9435	  esac~
9436	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9437	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9438	    $RM "$lt_outputfile.manifest";
9439	  fi'
9440	;;
9441      *)
9442	# Assume MSVC wrapper
9443	hardcode_libdir_flag_spec=' '
9444	allow_undefined_flag=unsupported
9445	# Tell ltmain to make .lib files, not .a files.
9446	libext=lib
9447	# Tell ltmain to make .dll files, not .so files.
9448	shrext_cmds=".dll"
9449	# FIXME: Setting linknames here is a bad hack.
9450	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9451	# The linker will automatically build a .lib file if we build a DLL.
9452	old_archive_from_new_cmds='true'
9453	# FIXME: Should let the user specify the lib program.
9454	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9455	enable_shared_with_static_runtimes=yes
9456	;;
9457      esac
9458      ;;
9459
9460    darwin* | rhapsody*)
9461
9462
9463  archive_cmds_need_lc=no
9464  hardcode_direct=no
9465  hardcode_automatic=yes
9466  hardcode_shlibpath_var=unsupported
9467  if test "$lt_cv_ld_force_load" = "yes"; then
9468    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\"`'
9469  else
9470    whole_archive_flag_spec=''
9471  fi
9472  link_all_deplibs=yes
9473  allow_undefined_flag="$_lt_dar_allow_undefined"
9474  case $cc_basename in
9475     ifort*) _lt_dar_can_shared=yes ;;
9476     *) _lt_dar_can_shared=$GCC ;;
9477  esac
9478  if test "$_lt_dar_can_shared" = "yes"; then
9479    output_verbose_link_cmd=func_echo_all
9480    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9481    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9482    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}"
9483    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}"
9484
9485  else
9486  ld_shlibs=no
9487  fi
9488
9489      ;;
9490
9491    dgux*)
9492      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9493      hardcode_libdir_flag_spec='-L$libdir'
9494      hardcode_shlibpath_var=no
9495      ;;
9496
9497    freebsd1*)
9498      ld_shlibs=no
9499      ;;
9500
9501    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9502    # support.  Future versions do this automatically, but an explicit c++rt0.o
9503    # does not break anything, and helps significantly (at the cost of a little
9504    # extra space).
9505    freebsd2.2*)
9506      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9507      hardcode_libdir_flag_spec='-R$libdir'
9508      hardcode_direct=yes
9509      hardcode_shlibpath_var=no
9510      ;;
9511
9512    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9513    freebsd2*)
9514      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9515      hardcode_direct=yes
9516      hardcode_minus_L=yes
9517      hardcode_shlibpath_var=no
9518      ;;
9519
9520    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9521    freebsd* | dragonfly*)
9522      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9523      hardcode_libdir_flag_spec='-R$libdir'
9524      hardcode_direct=yes
9525      hardcode_shlibpath_var=no
9526      ;;
9527
9528    hpux9*)
9529      if test "$GCC" = yes; then
9530	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'
9531      else
9532	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'
9533      fi
9534      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9535      hardcode_libdir_separator=:
9536      hardcode_direct=yes
9537
9538      # hardcode_minus_L: Not really in the search PATH,
9539      # but as the default location of the library.
9540      hardcode_minus_L=yes
9541      export_dynamic_flag_spec='${wl}-E'
9542      ;;
9543
9544    hpux10*)
9545      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9546	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9547      else
9548	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9549      fi
9550      if test "$with_gnu_ld" = no; then
9551	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9552	hardcode_libdir_flag_spec_ld='+b $libdir'
9553	hardcode_libdir_separator=:
9554	hardcode_direct=yes
9555	hardcode_direct_absolute=yes
9556	export_dynamic_flag_spec='${wl}-E'
9557	# hardcode_minus_L: Not really in the search PATH,
9558	# but as the default location of the library.
9559	hardcode_minus_L=yes
9560      fi
9561      ;;
9562
9563    hpux11*)
9564      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9565	case $host_cpu in
9566	hppa*64*)
9567	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9568	  ;;
9569	ia64*)
9570	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9571	  ;;
9572	*)
9573	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9574	  ;;
9575	esac
9576      else
9577	case $host_cpu in
9578	hppa*64*)
9579	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9580	  ;;
9581	ia64*)
9582	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9583	  ;;
9584	*)
9585
9586	  # Older versions of the 11.00 compiler do not understand -b yet
9587	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9588	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9589$as_echo_n "checking if $CC understands -b... " >&6; }
9590if ${lt_cv_prog_compiler__b+:} false; then :
9591  $as_echo_n "(cached) " >&6
9592else
9593  lt_cv_prog_compiler__b=no
9594   save_LDFLAGS="$LDFLAGS"
9595   LDFLAGS="$LDFLAGS -b"
9596   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9597   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9598     # The linker can only warn and ignore the option if not recognized
9599     # So say no if there are warnings
9600     if test -s conftest.err; then
9601       # Append any errors to the config.log.
9602       cat conftest.err 1>&5
9603       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9604       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9605       if diff conftest.exp conftest.er2 >/dev/null; then
9606         lt_cv_prog_compiler__b=yes
9607       fi
9608     else
9609       lt_cv_prog_compiler__b=yes
9610     fi
9611   fi
9612   $RM -r conftest*
9613   LDFLAGS="$save_LDFLAGS"
9614
9615fi
9616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9617$as_echo "$lt_cv_prog_compiler__b" >&6; }
9618
9619if test x"$lt_cv_prog_compiler__b" = xyes; then
9620    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9621else
9622    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9623fi
9624
9625	  ;;
9626	esac
9627      fi
9628      if test "$with_gnu_ld" = no; then
9629	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9630	hardcode_libdir_separator=:
9631
9632	case $host_cpu in
9633	hppa*64*|ia64*)
9634	  hardcode_direct=no
9635	  hardcode_shlibpath_var=no
9636	  ;;
9637	*)
9638	  hardcode_direct=yes
9639	  hardcode_direct_absolute=yes
9640	  export_dynamic_flag_spec='${wl}-E'
9641
9642	  # hardcode_minus_L: Not really in the search PATH,
9643	  # but as the default location of the library.
9644	  hardcode_minus_L=yes
9645	  ;;
9646	esac
9647      fi
9648      ;;
9649
9650    irix5* | irix6* | nonstopux*)
9651      if test "$GCC" = yes; then
9652	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'
9653	# Try to use the -exported_symbol ld option, if it does not
9654	# work, assume that -exports_file does not work either and
9655	# implicitly export all symbols.
9656	# This should be the same for all languages, so no per-tag cache variable.
9657	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9658$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9659if ${lt_cv_irix_exported_symbol+:} false; then :
9660  $as_echo_n "(cached) " >&6
9661else
9662  save_LDFLAGS="$LDFLAGS"
9663	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9664	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665/* end confdefs.h.  */
9666int foo (void) { return 0; }
9667_ACEOF
9668if ac_fn_c_try_link "$LINENO"; then :
9669  lt_cv_irix_exported_symbol=yes
9670else
9671  lt_cv_irix_exported_symbol=no
9672fi
9673rm -f core conftest.err conftest.$ac_objext \
9674    conftest$ac_exeext conftest.$ac_ext
9675           LDFLAGS="$save_LDFLAGS"
9676fi
9677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9678$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9679	if test "$lt_cv_irix_exported_symbol" = yes; then
9680          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'
9681	fi
9682      else
9683	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'
9684	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'
9685      fi
9686      archive_cmds_need_lc='no'
9687      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9688      hardcode_libdir_separator=:
9689      inherit_rpath=yes
9690      link_all_deplibs=yes
9691      ;;
9692
9693    netbsd*)
9694      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9695	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9696      else
9697	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9698      fi
9699      hardcode_libdir_flag_spec='-R$libdir'
9700      hardcode_direct=yes
9701      hardcode_shlibpath_var=no
9702      ;;
9703
9704    newsos6)
9705      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9706      hardcode_direct=yes
9707      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9708      hardcode_libdir_separator=:
9709      hardcode_shlibpath_var=no
9710      ;;
9711
9712    *nto* | *qnx*)
9713      ;;
9714
9715    openbsd*)
9716      if test -f /usr/libexec/ld.so; then
9717	hardcode_direct=yes
9718	hardcode_shlibpath_var=no
9719	hardcode_direct_absolute=yes
9720	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9721	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9722	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9723	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9724	  export_dynamic_flag_spec='${wl}-E'
9725	else
9726	  case $host_os in
9727	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9728	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9729	     hardcode_libdir_flag_spec='-R$libdir'
9730	     ;;
9731	   *)
9732	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9733	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9734	     ;;
9735	  esac
9736	fi
9737      else
9738	ld_shlibs=no
9739      fi
9740      ;;
9741
9742    os2*)
9743      hardcode_libdir_flag_spec='-L$libdir'
9744      hardcode_minus_L=yes
9745      allow_undefined_flag=unsupported
9746      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'
9747      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9748      ;;
9749
9750    osf3*)
9751      if test "$GCC" = yes; then
9752	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9753	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'
9754      else
9755	allow_undefined_flag=' -expect_unresolved \*'
9756	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'
9757      fi
9758      archive_cmds_need_lc='no'
9759      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9760      hardcode_libdir_separator=:
9761      ;;
9762
9763    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9764      if test "$GCC" = yes; then
9765	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9766	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'
9767	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9768      else
9769	allow_undefined_flag=' -expect_unresolved \*'
9770	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'
9771	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~
9772	$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'
9773
9774	# Both c and cxx compiler support -rpath directly
9775	hardcode_libdir_flag_spec='-rpath $libdir'
9776      fi
9777      archive_cmds_need_lc='no'
9778      hardcode_libdir_separator=:
9779      ;;
9780
9781    solaris*)
9782      no_undefined_flag=' -z defs'
9783      if test "$GCC" = yes; then
9784	wlarc='${wl}'
9785	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9786	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9787	  $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'
9788      else
9789	case `$CC -V 2>&1` in
9790	*"Compilers 5.0"*)
9791	  wlarc=''
9792	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9793	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9794	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9795	  ;;
9796	*)
9797	  wlarc='${wl}'
9798	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9799	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9800	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9801	  ;;
9802	esac
9803      fi
9804      hardcode_libdir_flag_spec='-R$libdir'
9805      hardcode_shlibpath_var=no
9806      case $host_os in
9807      solaris2.[0-5] | solaris2.[0-5].*) ;;
9808      *)
9809	# The compiler driver will combine and reorder linker options,
9810	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9811	# but is careful enough not to reorder.
9812	# Supported since Solaris 2.6 (maybe 2.5.1?)
9813	if test "$GCC" = yes; then
9814	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9815	else
9816	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9817	fi
9818	;;
9819      esac
9820      link_all_deplibs=yes
9821      ;;
9822
9823    sunos4*)
9824      if test "x$host_vendor" = xsequent; then
9825	# Use $CC to link under sequent, because it throws in some extra .o
9826	# files that make .init and .fini sections work.
9827	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9828      else
9829	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9830      fi
9831      hardcode_libdir_flag_spec='-L$libdir'
9832      hardcode_direct=yes
9833      hardcode_minus_L=yes
9834      hardcode_shlibpath_var=no
9835      ;;
9836
9837    sysv4)
9838      case $host_vendor in
9839	sni)
9840	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9841	  hardcode_direct=yes # is this really true???
9842	;;
9843	siemens)
9844	  ## LD is ld it makes a PLAMLIB
9845	  ## CC just makes a GrossModule.
9846	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9847	  reload_cmds='$CC -r -o $output$reload_objs'
9848	  hardcode_direct=no
9849        ;;
9850	motorola)
9851	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9852	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9853	;;
9854      esac
9855      runpath_var='LD_RUN_PATH'
9856      hardcode_shlibpath_var=no
9857      ;;
9858
9859    sysv4.3*)
9860      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9861      hardcode_shlibpath_var=no
9862      export_dynamic_flag_spec='-Bexport'
9863      ;;
9864
9865    sysv4*MP*)
9866      if test -d /usr/nec; then
9867	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9868	hardcode_shlibpath_var=no
9869	runpath_var=LD_RUN_PATH
9870	hardcode_runpath_var=yes
9871	ld_shlibs=yes
9872      fi
9873      ;;
9874
9875    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9876      no_undefined_flag='${wl}-z,text'
9877      archive_cmds_need_lc=no
9878      hardcode_shlibpath_var=no
9879      runpath_var='LD_RUN_PATH'
9880
9881      if test "$GCC" = yes; then
9882	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9883	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9884      else
9885	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9886	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9887      fi
9888      ;;
9889
9890    sysv5* | sco3.2v5* | sco5v6*)
9891      # Note: We can NOT use -z defs as we might desire, because we do not
9892      # link with -lc, and that would cause any symbols used from libc to
9893      # always be unresolved, which means just about no library would
9894      # ever link correctly.  If we're not using GNU ld we use -z text
9895      # though, which does catch some bad symbols but isn't as heavy-handed
9896      # as -z defs.
9897      no_undefined_flag='${wl}-z,text'
9898      allow_undefined_flag='${wl}-z,nodefs'
9899      archive_cmds_need_lc=no
9900      hardcode_shlibpath_var=no
9901      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9902      hardcode_libdir_separator=':'
9903      link_all_deplibs=yes
9904      export_dynamic_flag_spec='${wl}-Bexport'
9905      runpath_var='LD_RUN_PATH'
9906
9907      if test "$GCC" = yes; then
9908	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9909	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9910      else
9911	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9912	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9913      fi
9914      ;;
9915
9916    uts4*)
9917      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9918      hardcode_libdir_flag_spec='-L$libdir'
9919      hardcode_shlibpath_var=no
9920      ;;
9921
9922    *)
9923      ld_shlibs=no
9924      ;;
9925    esac
9926
9927    if test x$host_vendor = xsni; then
9928      case $host in
9929      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9930	export_dynamic_flag_spec='${wl}-Blargedynsym'
9931	;;
9932      esac
9933    fi
9934  fi
9935
9936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9937$as_echo "$ld_shlibs" >&6; }
9938test "$ld_shlibs" = no && can_build_shared=no
9939
9940with_gnu_ld=$with_gnu_ld
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956#
9957# Do we need to explicitly link libc?
9958#
9959case "x$archive_cmds_need_lc" in
9960x|xyes)
9961  # Assume -lc should be added
9962  archive_cmds_need_lc=yes
9963
9964  if test "$enable_shared" = yes && test "$GCC" = yes; then
9965    case $archive_cmds in
9966    *'~'*)
9967      # FIXME: we may have to deal with multi-command sequences.
9968      ;;
9969    '$CC '*)
9970      # Test whether the compiler implicitly links with -lc since on some
9971      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9972      # to ld, don't add -lc before -lgcc.
9973      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9974$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9975if ${lt_cv_archive_cmds_need_lc+:} false; then :
9976  $as_echo_n "(cached) " >&6
9977else
9978  $RM conftest*
9979	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9980
9981	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9982  (eval $ac_compile) 2>&5
9983  ac_status=$?
9984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9985  test $ac_status = 0; } 2>conftest.err; then
9986	  soname=conftest
9987	  lib=conftest
9988	  libobjs=conftest.$ac_objext
9989	  deplibs=
9990	  wl=$lt_prog_compiler_wl
9991	  pic_flag=$lt_prog_compiler_pic
9992	  compiler_flags=-v
9993	  linker_flags=-v
9994	  verstring=
9995	  output_objdir=.
9996	  libname=conftest
9997	  lt_save_allow_undefined_flag=$allow_undefined_flag
9998	  allow_undefined_flag=
9999	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10000  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10001  ac_status=$?
10002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10003  test $ac_status = 0; }
10004	  then
10005	    lt_cv_archive_cmds_need_lc=no
10006	  else
10007	    lt_cv_archive_cmds_need_lc=yes
10008	  fi
10009	  allow_undefined_flag=$lt_save_allow_undefined_flag
10010	else
10011	  cat conftest.err 1>&5
10012	fi
10013	$RM conftest*
10014
10015fi
10016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10017$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10018      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10019      ;;
10020    esac
10021  fi
10022  ;;
10023esac
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10182$as_echo_n "checking dynamic linker characteristics... " >&6; }
10183
10184if test "$GCC" = yes; then
10185  case $host_os in
10186    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10187    *) lt_awk_arg="/^libraries:/" ;;
10188  esac
10189  case $host_os in
10190    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10191    *) lt_sed_strip_eq="s,=/,/,g" ;;
10192  esac
10193  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10194  case $lt_search_path_spec in
10195  *\;*)
10196    # if the path contains ";" then we assume it to be the separator
10197    # otherwise default to the standard path separator (i.e. ":") - it is
10198    # assumed that no part of a normal pathname contains ";" but that should
10199    # okay in the real world where ";" in dirpaths is itself problematic.
10200    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10201    ;;
10202  *)
10203    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10204    ;;
10205  esac
10206  # Ok, now we have the path, separated by spaces, we can step through it
10207  # and add multilib dir if necessary.
10208  lt_tmp_lt_search_path_spec=
10209  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10210  for lt_sys_path in $lt_search_path_spec; do
10211    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10212      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10213    else
10214      test -d "$lt_sys_path" && \
10215	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10216    fi
10217  done
10218  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10219BEGIN {RS=" "; FS="/|\n";} {
10220  lt_foo="";
10221  lt_count=0;
10222  for (lt_i = NF; lt_i > 0; lt_i--) {
10223    if ($lt_i != "" && $lt_i != ".") {
10224      if ($lt_i == "..") {
10225        lt_count++;
10226      } else {
10227        if (lt_count == 0) {
10228          lt_foo="/" $lt_i lt_foo;
10229        } else {
10230          lt_count--;
10231        }
10232      }
10233    }
10234  }
10235  if (lt_foo != "") { lt_freq[lt_foo]++; }
10236  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10237}'`
10238  # AWK program above erroneously prepends '/' to C:/dos/paths
10239  # for these hosts.
10240  case $host_os in
10241    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10242      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10243  esac
10244  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10245else
10246  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10247fi
10248library_names_spec=
10249libname_spec='lib$name'
10250soname_spec=
10251shrext_cmds=".so"
10252postinstall_cmds=
10253postuninstall_cmds=
10254finish_cmds=
10255finish_eval=
10256shlibpath_var=
10257shlibpath_overrides_runpath=unknown
10258version_type=none
10259dynamic_linker="$host_os ld.so"
10260sys_lib_dlsearch_path_spec="/lib /usr/lib"
10261need_lib_prefix=unknown
10262hardcode_into_libs=no
10263
10264# when you set need_version to no, make sure it does not cause -set_version
10265# flags to be left without arguments
10266need_version=unknown
10267
10268case $host_os in
10269aix3*)
10270  version_type=linux
10271  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10272  shlibpath_var=LIBPATH
10273
10274  # AIX 3 has no versioning support, so we append a major version to the name.
10275  soname_spec='${libname}${release}${shared_ext}$major'
10276  ;;
10277
10278aix[4-9]*)
10279  version_type=linux
10280  need_lib_prefix=no
10281  need_version=no
10282  hardcode_into_libs=yes
10283  if test "$host_cpu" = ia64; then
10284    # AIX 5 supports IA64
10285    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10286    shlibpath_var=LD_LIBRARY_PATH
10287  else
10288    # With GCC up to 2.95.x, collect2 would create an import file
10289    # for dependence libraries.  The import file would start with
10290    # the line `#! .'.  This would cause the generated library to
10291    # depend on `.', always an invalid library.  This was fixed in
10292    # development snapshots of GCC prior to 3.0.
10293    case $host_os in
10294      aix4 | aix4.[01] | aix4.[01].*)
10295      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10296	   echo ' yes '
10297	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10298	:
10299      else
10300	can_build_shared=no
10301      fi
10302      ;;
10303    esac
10304    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10305    # soname into executable. Probably we can add versioning support to
10306    # collect2, so additional links can be useful in future.
10307    if test "$aix_use_runtimelinking" = yes; then
10308      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10309      # instead of lib<name>.a to let people know that these are not
10310      # typical AIX shared libraries.
10311      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10312    else
10313      # We preserve .a as extension for shared libraries through AIX4.2
10314      # and later when we are not doing run time linking.
10315      library_names_spec='${libname}${release}.a $libname.a'
10316      soname_spec='${libname}${release}${shared_ext}$major'
10317    fi
10318    shlibpath_var=LIBPATH
10319  fi
10320  ;;
10321
10322amigaos*)
10323  case $host_cpu in
10324  powerpc)
10325    # Since July 2007 AmigaOS4 officially supports .so libraries.
10326    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10327    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328    ;;
10329  m68k)
10330    library_names_spec='$libname.ixlibrary $libname.a'
10331    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10332    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'
10333    ;;
10334  esac
10335  ;;
10336
10337beos*)
10338  library_names_spec='${libname}${shared_ext}'
10339  dynamic_linker="$host_os ld.so"
10340  shlibpath_var=LIBRARY_PATH
10341  ;;
10342
10343bsdi[45]*)
10344  version_type=linux
10345  need_version=no
10346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347  soname_spec='${libname}${release}${shared_ext}$major'
10348  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10349  shlibpath_var=LD_LIBRARY_PATH
10350  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10351  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10352  # the default ld.so.conf also contains /usr/contrib/lib and
10353  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10354  # libtool to hard-code these into programs
10355  ;;
10356
10357cygwin* | mingw* | pw32* | cegcc*)
10358  version_type=windows
10359  shrext_cmds=".dll"
10360  need_version=no
10361  need_lib_prefix=no
10362
10363  case $GCC,$cc_basename in
10364  yes,*)
10365    # gcc
10366    library_names_spec='$libname.dll.a'
10367    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10368    postinstall_cmds='base_file=`basename \${file}`~
10369      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10370      dldir=$destdir/`dirname \$dlpath`~
10371      test -d \$dldir || mkdir -p \$dldir~
10372      $install_prog $dir/$dlname \$dldir/$dlname~
10373      chmod a+x \$dldir/$dlname~
10374      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10375        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10376      fi'
10377    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10378      dlpath=$dir/\$dldll~
10379       $RM \$dlpath'
10380    shlibpath_overrides_runpath=yes
10381
10382    case $host_os in
10383    cygwin*)
10384      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10385      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10386
10387      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10388      ;;
10389    mingw* | cegcc*)
10390      # MinGW DLLs use traditional 'lib' prefix
10391      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10392      ;;
10393    pw32*)
10394      # pw32 DLLs use 'pw' prefix rather than 'lib'
10395      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10396      ;;
10397    esac
10398    dynamic_linker='Win32 ld.exe'
10399    ;;
10400
10401  *,cl*)
10402    # Native MSVC
10403    libname_spec='$name'
10404    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10405    library_names_spec='${libname}.dll.lib'
10406
10407    case $build_os in
10408    mingw*)
10409      sys_lib_search_path_spec=
10410      lt_save_ifs=$IFS
10411      IFS=';'
10412      for lt_path in $LIB
10413      do
10414        IFS=$lt_save_ifs
10415        # Let DOS variable expansion print the short 8.3 style file name.
10416        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10417        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10418      done
10419      IFS=$lt_save_ifs
10420      # Convert to MSYS style.
10421      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10422      ;;
10423    cygwin*)
10424      # Convert to unix form, then to dos form, then back to unix form
10425      # but this time dos style (no spaces!) so that the unix form looks
10426      # like /cygdrive/c/PROGRA~1:/cygdr...
10427      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10428      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10429      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10430      ;;
10431    *)
10432      sys_lib_search_path_spec="$LIB"
10433      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10434        # It is most probably a Windows format PATH.
10435        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10436      else
10437        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10438      fi
10439      # FIXME: find the short name or the path components, as spaces are
10440      # common. (e.g. "Program Files" -> "PROGRA~1")
10441      ;;
10442    esac
10443
10444    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10445    postinstall_cmds='base_file=`basename \${file}`~
10446      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10447      dldir=$destdir/`dirname \$dlpath`~
10448      test -d \$dldir || mkdir -p \$dldir~
10449      $install_prog $dir/$dlname \$dldir/$dlname'
10450    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10451      dlpath=$dir/\$dldll~
10452       $RM \$dlpath'
10453    shlibpath_overrides_runpath=yes
10454    dynamic_linker='Win32 link.exe'
10455    ;;
10456
10457  *)
10458    # Assume MSVC wrapper
10459    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10460    dynamic_linker='Win32 ld.exe'
10461    ;;
10462  esac
10463  # FIXME: first we should search . and the directory the executable is in
10464  shlibpath_var=PATH
10465  ;;
10466
10467darwin* | rhapsody*)
10468  dynamic_linker="$host_os dyld"
10469  version_type=darwin
10470  need_lib_prefix=no
10471  need_version=no
10472  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10473  soname_spec='${libname}${release}${major}$shared_ext'
10474  shlibpath_overrides_runpath=yes
10475  shlibpath_var=DYLD_LIBRARY_PATH
10476  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10477
10478  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10479  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10480  ;;
10481
10482dgux*)
10483  version_type=linux
10484  need_lib_prefix=no
10485  need_version=no
10486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10487  soname_spec='${libname}${release}${shared_ext}$major'
10488  shlibpath_var=LD_LIBRARY_PATH
10489  ;;
10490
10491freebsd1*)
10492  dynamic_linker=no
10493  ;;
10494
10495freebsd* | dragonfly*)
10496  # DragonFly does not have aout.  When/if they implement a new
10497  # versioning mechanism, adjust this.
10498  if test -x /usr/bin/objformat; then
10499    objformat=`/usr/bin/objformat`
10500  else
10501    case $host_os in
10502    freebsd[123]*) objformat=aout ;;
10503    *) objformat=elf ;;
10504    esac
10505  fi
10506  version_type=freebsd-$objformat
10507  case $version_type in
10508    freebsd-elf*)
10509      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10510      need_version=no
10511      need_lib_prefix=no
10512      ;;
10513    freebsd-*)
10514      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10515      need_version=yes
10516      ;;
10517  esac
10518  shlibpath_var=LD_LIBRARY_PATH
10519  case $host_os in
10520  freebsd2*)
10521    shlibpath_overrides_runpath=yes
10522    ;;
10523  freebsd3.[01]* | freebsdelf3.[01]*)
10524    shlibpath_overrides_runpath=yes
10525    hardcode_into_libs=yes
10526    ;;
10527  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10528  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10529    shlibpath_overrides_runpath=no
10530    hardcode_into_libs=yes
10531    ;;
10532  *) # from 4.6 on, and DragonFly
10533    shlibpath_overrides_runpath=yes
10534    hardcode_into_libs=yes
10535    ;;
10536  esac
10537  ;;
10538
10539gnu*)
10540  version_type=linux
10541  need_lib_prefix=no
10542  need_version=no
10543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10544  soname_spec='${libname}${release}${shared_ext}$major'
10545  shlibpath_var=LD_LIBRARY_PATH
10546  hardcode_into_libs=yes
10547  ;;
10548
10549haiku*)
10550  version_type=linux
10551  need_lib_prefix=no
10552  need_version=no
10553  dynamic_linker="$host_os runtime_loader"
10554  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10555  soname_spec='${libname}${release}${shared_ext}$major'
10556  shlibpath_var=LIBRARY_PATH
10557  shlibpath_overrides_runpath=yes
10558  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10559  hardcode_into_libs=yes
10560  ;;
10561
10562hpux9* | hpux10* | hpux11*)
10563  # Give a soname corresponding to the major version so that dld.sl refuses to
10564  # link against other versions.
10565  version_type=sunos
10566  need_lib_prefix=no
10567  need_version=no
10568  case $host_cpu in
10569  ia64*)
10570    shrext_cmds='.so'
10571    hardcode_into_libs=yes
10572    dynamic_linker="$host_os dld.so"
10573    shlibpath_var=LD_LIBRARY_PATH
10574    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10575    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10576    soname_spec='${libname}${release}${shared_ext}$major'
10577    if test "X$HPUX_IA64_MODE" = X32; then
10578      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10579    else
10580      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10581    fi
10582    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10583    ;;
10584  hppa*64*)
10585    shrext_cmds='.sl'
10586    hardcode_into_libs=yes
10587    dynamic_linker="$host_os dld.sl"
10588    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10589    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10590    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10591    soname_spec='${libname}${release}${shared_ext}$major'
10592    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10593    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10594    ;;
10595  *)
10596    shrext_cmds='.sl'
10597    dynamic_linker="$host_os dld.sl"
10598    shlibpath_var=SHLIB_PATH
10599    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10600    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10601    soname_spec='${libname}${release}${shared_ext}$major'
10602    ;;
10603  esac
10604  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10605  postinstall_cmds='chmod 555 $lib'
10606  # or fails outright, so override atomically:
10607  install_override_mode=555
10608  ;;
10609
10610interix[3-9]*)
10611  version_type=linux
10612  need_lib_prefix=no
10613  need_version=no
10614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10615  soname_spec='${libname}${release}${shared_ext}$major'
10616  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10617  shlibpath_var=LD_LIBRARY_PATH
10618  shlibpath_overrides_runpath=no
10619  hardcode_into_libs=yes
10620  ;;
10621
10622irix5* | irix6* | nonstopux*)
10623  case $host_os in
10624    nonstopux*) version_type=nonstopux ;;
10625    *)
10626	if test "$lt_cv_prog_gnu_ld" = yes; then
10627		version_type=linux
10628	else
10629		version_type=irix
10630	fi ;;
10631  esac
10632  need_lib_prefix=no
10633  need_version=no
10634  soname_spec='${libname}${release}${shared_ext}$major'
10635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10636  case $host_os in
10637  irix5* | nonstopux*)
10638    libsuff= shlibsuff=
10639    ;;
10640  *)
10641    case $LD in # libtool.m4 will add one of these switches to LD
10642    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10643      libsuff= shlibsuff= libmagic=32-bit;;
10644    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10645      libsuff=32 shlibsuff=N32 libmagic=N32;;
10646    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10647      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10648    *) libsuff= shlibsuff= libmagic=never-match;;
10649    esac
10650    ;;
10651  esac
10652  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10653  shlibpath_overrides_runpath=no
10654  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10655  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10656  hardcode_into_libs=yes
10657  ;;
10658
10659# No shared lib support for Linux oldld, aout, or coff.
10660linux*oldld* | linux*aout* | linux*coff*)
10661  dynamic_linker=no
10662  ;;
10663
10664# This must be Linux ELF.
10665linux* | k*bsd*-gnu | kopensolaris*-gnu)
10666  version_type=linux
10667  need_lib_prefix=no
10668  need_version=no
10669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670  soname_spec='${libname}${release}${shared_ext}$major'
10671  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10672  shlibpath_var=LD_LIBRARY_PATH
10673  shlibpath_overrides_runpath=no
10674
10675  # Some binutils ld are patched to set DT_RUNPATH
10676  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10677  $as_echo_n "(cached) " >&6
10678else
10679  lt_cv_shlibpath_overrides_runpath=no
10680    save_LDFLAGS=$LDFLAGS
10681    save_libdir=$libdir
10682    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10683	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10684    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685/* end confdefs.h.  */
10686
10687int
10688main ()
10689{
10690
10691  ;
10692  return 0;
10693}
10694_ACEOF
10695if ac_fn_c_try_link "$LINENO"; then :
10696  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10697  lt_cv_shlibpath_overrides_runpath=yes
10698fi
10699fi
10700rm -f core conftest.err conftest.$ac_objext \
10701    conftest$ac_exeext conftest.$ac_ext
10702    LDFLAGS=$save_LDFLAGS
10703    libdir=$save_libdir
10704
10705fi
10706
10707  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10708
10709  # This implies no fast_install, which is unacceptable.
10710  # Some rework will be needed to allow for fast_install
10711  # before this can be enabled.
10712  hardcode_into_libs=yes
10713
10714  # Append ld.so.conf contents to the search path
10715  if test -f /etc/ld.so.conf; then
10716    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' ' '`
10717    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10718  fi
10719
10720  # We used to test for /lib/ld.so.1 and disable shared libraries on
10721  # powerpc, because MkLinux only supported shared libraries with the
10722  # GNU dynamic linker.  Since this was broken with cross compilers,
10723  # most powerpc-linux boxes support dynamic linking these days and
10724  # people can always --disable-shared, the test was removed, and we
10725  # assume the GNU/Linux dynamic linker is in use.
10726  dynamic_linker='GNU/Linux ld.so'
10727  ;;
10728
10729netbsd*)
10730  version_type=sunos
10731  need_lib_prefix=no
10732  need_version=no
10733  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10734    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10735    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10736    dynamic_linker='NetBSD (a.out) ld.so'
10737  else
10738    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10739    soname_spec='${libname}${release}${shared_ext}$major'
10740    dynamic_linker='NetBSD ld.elf_so'
10741  fi
10742  shlibpath_var=LD_LIBRARY_PATH
10743  shlibpath_overrides_runpath=yes
10744  hardcode_into_libs=yes
10745  ;;
10746
10747newsos6)
10748  version_type=linux
10749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10750  shlibpath_var=LD_LIBRARY_PATH
10751  shlibpath_overrides_runpath=yes
10752  ;;
10753
10754*nto* | *qnx*)
10755  version_type=qnx
10756  need_lib_prefix=no
10757  need_version=no
10758  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10759  soname_spec='${libname}${release}${shared_ext}$major'
10760  shlibpath_var=LD_LIBRARY_PATH
10761  shlibpath_overrides_runpath=no
10762  hardcode_into_libs=yes
10763  dynamic_linker='ldqnx.so'
10764  ;;
10765
10766openbsd*)
10767  version_type=sunos
10768  sys_lib_dlsearch_path_spec="/usr/lib"
10769  need_lib_prefix=no
10770  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10771  case $host_os in
10772    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10773    *)				need_version=no  ;;
10774  esac
10775  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10776  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10777  shlibpath_var=LD_LIBRARY_PATH
10778  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10779    case $host_os in
10780      openbsd2.[89] | openbsd2.[89].*)
10781	shlibpath_overrides_runpath=no
10782	;;
10783      *)
10784	shlibpath_overrides_runpath=yes
10785	;;
10786      esac
10787  else
10788    shlibpath_overrides_runpath=yes
10789  fi
10790  ;;
10791
10792os2*)
10793  libname_spec='$name'
10794  shrext_cmds=".dll"
10795  need_lib_prefix=no
10796  library_names_spec='$libname${shared_ext} $libname.a'
10797  dynamic_linker='OS/2 ld.exe'
10798  shlibpath_var=LIBPATH
10799  ;;
10800
10801osf3* | osf4* | osf5*)
10802  version_type=osf
10803  need_lib_prefix=no
10804  need_version=no
10805  soname_spec='${libname}${release}${shared_ext}$major'
10806  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10807  shlibpath_var=LD_LIBRARY_PATH
10808  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10809  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10810  ;;
10811
10812rdos*)
10813  dynamic_linker=no
10814  ;;
10815
10816solaris*)
10817  version_type=linux
10818  need_lib_prefix=no
10819  need_version=no
10820  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10821  soname_spec='${libname}${release}${shared_ext}$major'
10822  shlibpath_var=LD_LIBRARY_PATH
10823  shlibpath_overrides_runpath=yes
10824  hardcode_into_libs=yes
10825  # ldd complains unless libraries are executable
10826  postinstall_cmds='chmod +x $lib'
10827  ;;
10828
10829sunos4*)
10830  version_type=sunos
10831  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10832  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10833  shlibpath_var=LD_LIBRARY_PATH
10834  shlibpath_overrides_runpath=yes
10835  if test "$with_gnu_ld" = yes; then
10836    need_lib_prefix=no
10837  fi
10838  need_version=yes
10839  ;;
10840
10841sysv4 | sysv4.3*)
10842  version_type=linux
10843  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10844  soname_spec='${libname}${release}${shared_ext}$major'
10845  shlibpath_var=LD_LIBRARY_PATH
10846  case $host_vendor in
10847    sni)
10848      shlibpath_overrides_runpath=no
10849      need_lib_prefix=no
10850      runpath_var=LD_RUN_PATH
10851      ;;
10852    siemens)
10853      need_lib_prefix=no
10854      ;;
10855    motorola)
10856      need_lib_prefix=no
10857      need_version=no
10858      shlibpath_overrides_runpath=no
10859      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10860      ;;
10861  esac
10862  ;;
10863
10864sysv4*MP*)
10865  if test -d /usr/nec ;then
10866    version_type=linux
10867    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10868    soname_spec='$libname${shared_ext}.$major'
10869    shlibpath_var=LD_LIBRARY_PATH
10870  fi
10871  ;;
10872
10873sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10874  version_type=freebsd-elf
10875  need_lib_prefix=no
10876  need_version=no
10877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10878  soname_spec='${libname}${release}${shared_ext}$major'
10879  shlibpath_var=LD_LIBRARY_PATH
10880  shlibpath_overrides_runpath=yes
10881  hardcode_into_libs=yes
10882  if test "$with_gnu_ld" = yes; then
10883    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10884  else
10885    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10886    case $host_os in
10887      sco3.2v5*)
10888        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10889	;;
10890    esac
10891  fi
10892  sys_lib_dlsearch_path_spec='/usr/lib'
10893  ;;
10894
10895tpf*)
10896  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10897  version_type=linux
10898  need_lib_prefix=no
10899  need_version=no
10900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10901  shlibpath_var=LD_LIBRARY_PATH
10902  shlibpath_overrides_runpath=no
10903  hardcode_into_libs=yes
10904  ;;
10905
10906uts4*)
10907  version_type=linux
10908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10909  soname_spec='${libname}${release}${shared_ext}$major'
10910  shlibpath_var=LD_LIBRARY_PATH
10911  ;;
10912
10913*)
10914  dynamic_linker=no
10915  ;;
10916esac
10917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10918$as_echo "$dynamic_linker" >&6; }
10919test "$dynamic_linker" = no && can_build_shared=no
10920
10921variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10922if test "$GCC" = yes; then
10923  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10924fi
10925
10926if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10927  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10928fi
10929if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10930  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10931fi
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11025$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11026hardcode_action=
11027if test -n "$hardcode_libdir_flag_spec" ||
11028   test -n "$runpath_var" ||
11029   test "X$hardcode_automatic" = "Xyes" ; then
11030
11031  # We can hardcode non-existent directories.
11032  if test "$hardcode_direct" != no &&
11033     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11034     # have to relink, otherwise we might link with an installed library
11035     # when we should be linking with a yet-to-be-installed one
11036     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11037     test "$hardcode_minus_L" != no; then
11038    # Linking always hardcodes the temporary library directory.
11039    hardcode_action=relink
11040  else
11041    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11042    hardcode_action=immediate
11043  fi
11044else
11045  # We cannot hardcode anything, or else we can only hardcode existing
11046  # directories.
11047  hardcode_action=unsupported
11048fi
11049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11050$as_echo "$hardcode_action" >&6; }
11051
11052if test "$hardcode_action" = relink ||
11053   test "$inherit_rpath" = yes; then
11054  # Fast installation is not supported
11055  enable_fast_install=no
11056elif test "$shlibpath_overrides_runpath" = yes ||
11057     test "$enable_shared" = no; then
11058  # Fast installation is not necessary
11059  enable_fast_install=needless
11060fi
11061
11062
11063
11064
11065
11066
11067  if test "x$enable_dlopen" != xyes; then
11068  enable_dlopen=unknown
11069  enable_dlopen_self=unknown
11070  enable_dlopen_self_static=unknown
11071else
11072  lt_cv_dlopen=no
11073  lt_cv_dlopen_libs=
11074
11075  case $host_os in
11076  beos*)
11077    lt_cv_dlopen="load_add_on"
11078    lt_cv_dlopen_libs=
11079    lt_cv_dlopen_self=yes
11080    ;;
11081
11082  mingw* | pw32* | cegcc*)
11083    lt_cv_dlopen="LoadLibrary"
11084    lt_cv_dlopen_libs=
11085    ;;
11086
11087  cygwin*)
11088    lt_cv_dlopen="dlopen"
11089    lt_cv_dlopen_libs=
11090    ;;
11091
11092  darwin*)
11093  # if libdl is installed we need to link against it
11094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11095$as_echo_n "checking for dlopen in -ldl... " >&6; }
11096if ${ac_cv_lib_dl_dlopen+:} false; then :
11097  $as_echo_n "(cached) " >&6
11098else
11099  ac_check_lib_save_LIBS=$LIBS
11100LIBS="-ldl  $LIBS"
11101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102/* end confdefs.h.  */
11103
11104/* Override any GCC internal prototype to avoid an error.
11105   Use char because int might match the return type of a GCC
11106   builtin and then its argument prototype would still apply.  */
11107#ifdef __cplusplus
11108extern "C"
11109#endif
11110char dlopen ();
11111int
11112main ()
11113{
11114return dlopen ();
11115  ;
11116  return 0;
11117}
11118_ACEOF
11119if ac_fn_c_try_link "$LINENO"; then :
11120  ac_cv_lib_dl_dlopen=yes
11121else
11122  ac_cv_lib_dl_dlopen=no
11123fi
11124rm -f core conftest.err conftest.$ac_objext \
11125    conftest$ac_exeext conftest.$ac_ext
11126LIBS=$ac_check_lib_save_LIBS
11127fi
11128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11129$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11130if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11131  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11132else
11133
11134    lt_cv_dlopen="dyld"
11135    lt_cv_dlopen_libs=
11136    lt_cv_dlopen_self=yes
11137
11138fi
11139
11140    ;;
11141
11142  *)
11143    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11144if test "x$ac_cv_func_shl_load" = xyes; then :
11145  lt_cv_dlopen="shl_load"
11146else
11147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11148$as_echo_n "checking for shl_load in -ldld... " >&6; }
11149if ${ac_cv_lib_dld_shl_load+:} false; then :
11150  $as_echo_n "(cached) " >&6
11151else
11152  ac_check_lib_save_LIBS=$LIBS
11153LIBS="-ldld  $LIBS"
11154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155/* end confdefs.h.  */
11156
11157/* Override any GCC internal prototype to avoid an error.
11158   Use char because int might match the return type of a GCC
11159   builtin and then its argument prototype would still apply.  */
11160#ifdef __cplusplus
11161extern "C"
11162#endif
11163char shl_load ();
11164int
11165main ()
11166{
11167return shl_load ();
11168  ;
11169  return 0;
11170}
11171_ACEOF
11172if ac_fn_c_try_link "$LINENO"; then :
11173  ac_cv_lib_dld_shl_load=yes
11174else
11175  ac_cv_lib_dld_shl_load=no
11176fi
11177rm -f core conftest.err conftest.$ac_objext \
11178    conftest$ac_exeext conftest.$ac_ext
11179LIBS=$ac_check_lib_save_LIBS
11180fi
11181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11182$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11183if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11184  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11185else
11186  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11187if test "x$ac_cv_func_dlopen" = xyes; then :
11188  lt_cv_dlopen="dlopen"
11189else
11190  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11191$as_echo_n "checking for dlopen in -ldl... " >&6; }
11192if ${ac_cv_lib_dl_dlopen+:} false; then :
11193  $as_echo_n "(cached) " >&6
11194else
11195  ac_check_lib_save_LIBS=$LIBS
11196LIBS="-ldl  $LIBS"
11197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198/* end confdefs.h.  */
11199
11200/* Override any GCC internal prototype to avoid an error.
11201   Use char because int might match the return type of a GCC
11202   builtin and then its argument prototype would still apply.  */
11203#ifdef __cplusplus
11204extern "C"
11205#endif
11206char dlopen ();
11207int
11208main ()
11209{
11210return dlopen ();
11211  ;
11212  return 0;
11213}
11214_ACEOF
11215if ac_fn_c_try_link "$LINENO"; then :
11216  ac_cv_lib_dl_dlopen=yes
11217else
11218  ac_cv_lib_dl_dlopen=no
11219fi
11220rm -f core conftest.err conftest.$ac_objext \
11221    conftest$ac_exeext conftest.$ac_ext
11222LIBS=$ac_check_lib_save_LIBS
11223fi
11224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11225$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11226if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11227  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11228else
11229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11230$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11231if ${ac_cv_lib_svld_dlopen+:} false; then :
11232  $as_echo_n "(cached) " >&6
11233else
11234  ac_check_lib_save_LIBS=$LIBS
11235LIBS="-lsvld  $LIBS"
11236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237/* end confdefs.h.  */
11238
11239/* Override any GCC internal prototype to avoid an error.
11240   Use char because int might match the return type of a GCC
11241   builtin and then its argument prototype would still apply.  */
11242#ifdef __cplusplus
11243extern "C"
11244#endif
11245char dlopen ();
11246int
11247main ()
11248{
11249return dlopen ();
11250  ;
11251  return 0;
11252}
11253_ACEOF
11254if ac_fn_c_try_link "$LINENO"; then :
11255  ac_cv_lib_svld_dlopen=yes
11256else
11257  ac_cv_lib_svld_dlopen=no
11258fi
11259rm -f core conftest.err conftest.$ac_objext \
11260    conftest$ac_exeext conftest.$ac_ext
11261LIBS=$ac_check_lib_save_LIBS
11262fi
11263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11264$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11265if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11266  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11267else
11268  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11269$as_echo_n "checking for dld_link in -ldld... " >&6; }
11270if ${ac_cv_lib_dld_dld_link+:} false; then :
11271  $as_echo_n "(cached) " >&6
11272else
11273  ac_check_lib_save_LIBS=$LIBS
11274LIBS="-ldld  $LIBS"
11275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276/* end confdefs.h.  */
11277
11278/* Override any GCC internal prototype to avoid an error.
11279   Use char because int might match the return type of a GCC
11280   builtin and then its argument prototype would still apply.  */
11281#ifdef __cplusplus
11282extern "C"
11283#endif
11284char dld_link ();
11285int
11286main ()
11287{
11288return dld_link ();
11289  ;
11290  return 0;
11291}
11292_ACEOF
11293if ac_fn_c_try_link "$LINENO"; then :
11294  ac_cv_lib_dld_dld_link=yes
11295else
11296  ac_cv_lib_dld_dld_link=no
11297fi
11298rm -f core conftest.err conftest.$ac_objext \
11299    conftest$ac_exeext conftest.$ac_ext
11300LIBS=$ac_check_lib_save_LIBS
11301fi
11302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11303$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11304if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11305  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11306fi
11307
11308
11309fi
11310
11311
11312fi
11313
11314
11315fi
11316
11317
11318fi
11319
11320
11321fi
11322
11323    ;;
11324  esac
11325
11326  if test "x$lt_cv_dlopen" != xno; then
11327    enable_dlopen=yes
11328  else
11329    enable_dlopen=no
11330  fi
11331
11332  case $lt_cv_dlopen in
11333  dlopen)
11334    save_CPPFLAGS="$CPPFLAGS"
11335    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11336
11337    save_LDFLAGS="$LDFLAGS"
11338    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11339
11340    save_LIBS="$LIBS"
11341    LIBS="$lt_cv_dlopen_libs $LIBS"
11342
11343    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11344$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11345if ${lt_cv_dlopen_self+:} false; then :
11346  $as_echo_n "(cached) " >&6
11347else
11348  	  if test "$cross_compiling" = yes; then :
11349  lt_cv_dlopen_self=cross
11350else
11351  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11352  lt_status=$lt_dlunknown
11353  cat > conftest.$ac_ext <<_LT_EOF
11354#line $LINENO "configure"
11355#include "confdefs.h"
11356
11357#if HAVE_DLFCN_H
11358#include <dlfcn.h>
11359#endif
11360
11361#include <stdio.h>
11362
11363#ifdef RTLD_GLOBAL
11364#  define LT_DLGLOBAL		RTLD_GLOBAL
11365#else
11366#  ifdef DL_GLOBAL
11367#    define LT_DLGLOBAL		DL_GLOBAL
11368#  else
11369#    define LT_DLGLOBAL		0
11370#  endif
11371#endif
11372
11373/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11374   find out it does not work in some platform. */
11375#ifndef LT_DLLAZY_OR_NOW
11376#  ifdef RTLD_LAZY
11377#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11378#  else
11379#    ifdef DL_LAZY
11380#      define LT_DLLAZY_OR_NOW		DL_LAZY
11381#    else
11382#      ifdef RTLD_NOW
11383#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11384#      else
11385#        ifdef DL_NOW
11386#          define LT_DLLAZY_OR_NOW	DL_NOW
11387#        else
11388#          define LT_DLLAZY_OR_NOW	0
11389#        endif
11390#      endif
11391#    endif
11392#  endif
11393#endif
11394
11395/* When -fvisbility=hidden is used, assume the code has been annotated
11396   correspondingly for the symbols needed.  */
11397#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11398int fnord () __attribute__((visibility("default")));
11399#endif
11400
11401int fnord () { return 42; }
11402int main ()
11403{
11404  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11405  int status = $lt_dlunknown;
11406
11407  if (self)
11408    {
11409      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11410      else
11411        {
11412	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11413          else puts (dlerror ());
11414	}
11415      /* dlclose (self); */
11416    }
11417  else
11418    puts (dlerror ());
11419
11420  return status;
11421}
11422_LT_EOF
11423  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11424  (eval $ac_link) 2>&5
11425  ac_status=$?
11426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11427  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11428    (./conftest; exit; ) >&5 2>/dev/null
11429    lt_status=$?
11430    case x$lt_status in
11431      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11432      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11433      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11434    esac
11435  else :
11436    # compilation failed
11437    lt_cv_dlopen_self=no
11438  fi
11439fi
11440rm -fr conftest*
11441
11442
11443fi
11444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11445$as_echo "$lt_cv_dlopen_self" >&6; }
11446
11447    if test "x$lt_cv_dlopen_self" = xyes; then
11448      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11449      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11450$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11451if ${lt_cv_dlopen_self_static+:} false; then :
11452  $as_echo_n "(cached) " >&6
11453else
11454  	  if test "$cross_compiling" = yes; then :
11455  lt_cv_dlopen_self_static=cross
11456else
11457  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11458  lt_status=$lt_dlunknown
11459  cat > conftest.$ac_ext <<_LT_EOF
11460#line $LINENO "configure"
11461#include "confdefs.h"
11462
11463#if HAVE_DLFCN_H
11464#include <dlfcn.h>
11465#endif
11466
11467#include <stdio.h>
11468
11469#ifdef RTLD_GLOBAL
11470#  define LT_DLGLOBAL		RTLD_GLOBAL
11471#else
11472#  ifdef DL_GLOBAL
11473#    define LT_DLGLOBAL		DL_GLOBAL
11474#  else
11475#    define LT_DLGLOBAL		0
11476#  endif
11477#endif
11478
11479/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11480   find out it does not work in some platform. */
11481#ifndef LT_DLLAZY_OR_NOW
11482#  ifdef RTLD_LAZY
11483#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11484#  else
11485#    ifdef DL_LAZY
11486#      define LT_DLLAZY_OR_NOW		DL_LAZY
11487#    else
11488#      ifdef RTLD_NOW
11489#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11490#      else
11491#        ifdef DL_NOW
11492#          define LT_DLLAZY_OR_NOW	DL_NOW
11493#        else
11494#          define LT_DLLAZY_OR_NOW	0
11495#        endif
11496#      endif
11497#    endif
11498#  endif
11499#endif
11500
11501/* When -fvisbility=hidden is used, assume the code has been annotated
11502   correspondingly for the symbols needed.  */
11503#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11504int fnord () __attribute__((visibility("default")));
11505#endif
11506
11507int fnord () { return 42; }
11508int main ()
11509{
11510  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11511  int status = $lt_dlunknown;
11512
11513  if (self)
11514    {
11515      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11516      else
11517        {
11518	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11519          else puts (dlerror ());
11520	}
11521      /* dlclose (self); */
11522    }
11523  else
11524    puts (dlerror ());
11525
11526  return status;
11527}
11528_LT_EOF
11529  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11530  (eval $ac_link) 2>&5
11531  ac_status=$?
11532  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11533  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11534    (./conftest; exit; ) >&5 2>/dev/null
11535    lt_status=$?
11536    case x$lt_status in
11537      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11538      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11539      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11540    esac
11541  else :
11542    # compilation failed
11543    lt_cv_dlopen_self_static=no
11544  fi
11545fi
11546rm -fr conftest*
11547
11548
11549fi
11550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11551$as_echo "$lt_cv_dlopen_self_static" >&6; }
11552    fi
11553
11554    CPPFLAGS="$save_CPPFLAGS"
11555    LDFLAGS="$save_LDFLAGS"
11556    LIBS="$save_LIBS"
11557    ;;
11558  esac
11559
11560  case $lt_cv_dlopen_self in
11561  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11562  *) enable_dlopen_self=unknown ;;
11563  esac
11564
11565  case $lt_cv_dlopen_self_static in
11566  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11567  *) enable_dlopen_self_static=unknown ;;
11568  esac
11569fi
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587striplib=
11588old_striplib=
11589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11590$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11591if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11592  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11593  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11595$as_echo "yes" >&6; }
11596else
11597# FIXME - insert some real tests, host_os isn't really good enough
11598  case $host_os in
11599  darwin*)
11600    if test -n "$STRIP" ; then
11601      striplib="$STRIP -x"
11602      old_striplib="$STRIP -S"
11603      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11604$as_echo "yes" >&6; }
11605    else
11606      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11607$as_echo "no" >&6; }
11608    fi
11609    ;;
11610  *)
11611    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612$as_echo "no" >&6; }
11613    ;;
11614  esac
11615fi
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628  # Report which library types will actually be built
11629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11630$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11632$as_echo "$can_build_shared" >&6; }
11633
11634  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11635$as_echo_n "checking whether to build shared libraries... " >&6; }
11636  test "$can_build_shared" = "no" && enable_shared=no
11637
11638  # On AIX, shared libraries and static libraries use the same namespace, and
11639  # are all built from PIC.
11640  case $host_os in
11641  aix3*)
11642    test "$enable_shared" = yes && enable_static=no
11643    if test -n "$RANLIB"; then
11644      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11645      postinstall_cmds='$RANLIB $lib'
11646    fi
11647    ;;
11648
11649  aix[4-9]*)
11650    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11651      test "$enable_shared" = yes && enable_static=no
11652    fi
11653    ;;
11654  esac
11655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11656$as_echo "$enable_shared" >&6; }
11657
11658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11659$as_echo_n "checking whether to build static libraries... " >&6; }
11660  # Make sure either enable_shared or enable_static is yes.
11661  test "$enable_shared" = yes || enable_static=yes
11662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11663$as_echo "$enable_static" >&6; }
11664
11665
11666
11667
11668fi
11669ac_ext=c
11670ac_cpp='$CPP $CPPFLAGS'
11671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11673ac_compiler_gnu=$ac_cv_c_compiler_gnu
11674
11675CC="$lt_save_CC"
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689        ac_config_commands="$ac_config_commands libtool"
11690
11691
11692
11693
11694# Only expand once:
11695
11696
11697
11698# Require xorg-macros minimum of 1.15 for fop minimum version
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11711$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11712if ${ac_cv_prog_cc_c99+:} false; then :
11713  $as_echo_n "(cached) " >&6
11714else
11715  ac_cv_prog_cc_c99=no
11716ac_save_CC=$CC
11717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11718/* end confdefs.h.  */
11719#include <stdarg.h>
11720#include <stdbool.h>
11721#include <stdlib.h>
11722#include <wchar.h>
11723#include <stdio.h>
11724
11725// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11726#define debug(...) fprintf (stderr, __VA_ARGS__)
11727#define showlist(...) puts (#__VA_ARGS__)
11728#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11729static void
11730test_varargs_macros (void)
11731{
11732  int x = 1234;
11733  int y = 5678;
11734  debug ("Flag");
11735  debug ("X = %d\n", x);
11736  showlist (The first, second, and third items.);
11737  report (x>y, "x is %d but y is %d", x, y);
11738}
11739
11740// Check long long types.
11741#define BIG64 18446744073709551615ull
11742#define BIG32 4294967295ul
11743#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11744#if !BIG_OK
11745  your preprocessor is broken;
11746#endif
11747#if BIG_OK
11748#else
11749  your preprocessor is broken;
11750#endif
11751static long long int bignum = -9223372036854775807LL;
11752static unsigned long long int ubignum = BIG64;
11753
11754struct incomplete_array
11755{
11756  int datasize;
11757  double data[];
11758};
11759
11760struct named_init {
11761  int number;
11762  const wchar_t *name;
11763  double average;
11764};
11765
11766typedef const char *ccp;
11767
11768static inline int
11769test_restrict (ccp restrict text)
11770{
11771  // See if C++-style comments work.
11772  // Iterate through items via the restricted pointer.
11773  // Also check for declarations in for loops.
11774  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11775    continue;
11776  return 0;
11777}
11778
11779// Check varargs and va_copy.
11780static void
11781test_varargs (const char *format, ...)
11782{
11783  va_list args;
11784  va_start (args, format);
11785  va_list args_copy;
11786  va_copy (args_copy, args);
11787
11788  const char *str;
11789  int number;
11790  float fnumber;
11791
11792  while (*format)
11793    {
11794      switch (*format++)
11795	{
11796	case 's': // string
11797	  str = va_arg (args_copy, const char *);
11798	  break;
11799	case 'd': // int
11800	  number = va_arg (args_copy, int);
11801	  break;
11802	case 'f': // float
11803	  fnumber = va_arg (args_copy, double);
11804	  break;
11805	default:
11806	  break;
11807	}
11808    }
11809  va_end (args_copy);
11810  va_end (args);
11811}
11812
11813int
11814main ()
11815{
11816
11817  // Check bool.
11818  _Bool success = false;
11819
11820  // Check restrict.
11821  if (test_restrict ("String literal") == 0)
11822    success = true;
11823  char *restrict newvar = "Another string";
11824
11825  // Check varargs.
11826  test_varargs ("s, d' f .", "string", 65, 34.234);
11827  test_varargs_macros ();
11828
11829  // Check flexible array members.
11830  struct incomplete_array *ia =
11831    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11832  ia->datasize = 10;
11833  for (int i = 0; i < ia->datasize; ++i)
11834    ia->data[i] = i * 1.234;
11835
11836  // Check named initializers.
11837  struct named_init ni = {
11838    .number = 34,
11839    .name = L"Test wide string",
11840    .average = 543.34343,
11841  };
11842
11843  ni.number = 58;
11844
11845  int dynamic_array[ni.number];
11846  dynamic_array[ni.number - 1] = 543;
11847
11848  // work around unused variable warnings
11849  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11850	  || dynamic_array[ni.number - 1] != 543);
11851
11852  ;
11853  return 0;
11854}
11855_ACEOF
11856for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11857do
11858  CC="$ac_save_CC $ac_arg"
11859  if ac_fn_c_try_compile "$LINENO"; then :
11860  ac_cv_prog_cc_c99=$ac_arg
11861fi
11862rm -f core conftest.err conftest.$ac_objext
11863  test "x$ac_cv_prog_cc_c99" != "xno" && break
11864done
11865rm -f conftest.$ac_ext
11866CC=$ac_save_CC
11867
11868fi
11869# AC_CACHE_VAL
11870case "x$ac_cv_prog_cc_c99" in
11871  x)
11872    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11873$as_echo "none needed" >&6; } ;;
11874  xno)
11875    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11876$as_echo "unsupported" >&6; } ;;
11877  *)
11878    CC="$CC $ac_cv_prog_cc_c99"
11879    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11880$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11881esac
11882if test "x$ac_cv_prog_cc_c99" != xno; then :
11883
11884fi
11885
11886
11887
11888
11889ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11890if test "x$ac_cv_have_decl___clang__" = xyes; then :
11891  CLANGCC="yes"
11892else
11893  CLANGCC="no"
11894fi
11895
11896ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11897if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11898  INTELCC="yes"
11899else
11900  INTELCC="no"
11901fi
11902
11903ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11904if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11905  SUNCC="yes"
11906else
11907  SUNCC="no"
11908fi
11909
11910
11911
11912
11913if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11914	if test -n "$ac_tool_prefix"; then
11915  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11916set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11918$as_echo_n "checking for $ac_word... " >&6; }
11919if ${ac_cv_path_PKG_CONFIG+:} false; then :
11920  $as_echo_n "(cached) " >&6
11921else
11922  case $PKG_CONFIG in
11923  [\\/]* | ?:[\\/]*)
11924  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11925  ;;
11926  *)
11927  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928for as_dir in $PATH
11929do
11930  IFS=$as_save_IFS
11931  test -z "$as_dir" && as_dir=.
11932    for ac_exec_ext in '' $ac_executable_extensions; do
11933  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11934    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11936    break 2
11937  fi
11938done
11939  done
11940IFS=$as_save_IFS
11941
11942  ;;
11943esac
11944fi
11945PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11946if test -n "$PKG_CONFIG"; then
11947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11948$as_echo "$PKG_CONFIG" >&6; }
11949else
11950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951$as_echo "no" >&6; }
11952fi
11953
11954
11955fi
11956if test -z "$ac_cv_path_PKG_CONFIG"; then
11957  ac_pt_PKG_CONFIG=$PKG_CONFIG
11958  # Extract the first word of "pkg-config", so it can be a program name with args.
11959set dummy pkg-config; ac_word=$2
11960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11961$as_echo_n "checking for $ac_word... " >&6; }
11962if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11963  $as_echo_n "(cached) " >&6
11964else
11965  case $ac_pt_PKG_CONFIG in
11966  [\\/]* | ?:[\\/]*)
11967  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11968  ;;
11969  *)
11970  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11971for as_dir in $PATH
11972do
11973  IFS=$as_save_IFS
11974  test -z "$as_dir" && as_dir=.
11975    for ac_exec_ext in '' $ac_executable_extensions; do
11976  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11977    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11978    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11979    break 2
11980  fi
11981done
11982  done
11983IFS=$as_save_IFS
11984
11985  ;;
11986esac
11987fi
11988ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11989if test -n "$ac_pt_PKG_CONFIG"; then
11990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11991$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11992else
11993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994$as_echo "no" >&6; }
11995fi
11996
11997  if test "x$ac_pt_PKG_CONFIG" = x; then
11998    PKG_CONFIG=""
11999  else
12000    case $cross_compiling:$ac_tool_warned in
12001yes:)
12002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12004ac_tool_warned=yes ;;
12005esac
12006    PKG_CONFIG=$ac_pt_PKG_CONFIG
12007  fi
12008else
12009  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12010fi
12011
12012fi
12013if test -n "$PKG_CONFIG"; then
12014	_pkg_min_version=0.9.0
12015	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12016$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12017	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12018		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12019$as_echo "yes" >&6; }
12020	else
12021		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022$as_echo "no" >&6; }
12023		PKG_CONFIG=""
12024	fi
12025
12026fi
12027
12028
12029
12030
12031
12032if  test "x$GCC" = xyes ; then
12033    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
12034-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
12035-Wbad-function-cast -Wformat=2"
12036    case `$CC -dumpversion` in
12037    3.4.* | 4.*)
12038	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
12039	;;
12040    esac
12041else
12042    if test "x$SUNCC" = "xyes"; then
12043	CWARNFLAGS="-v"
12044    fi
12045fi
12046
12047
12048
12049# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
12050
12051
12052
12053
12054# Check whether --enable-strict-compilation was given.
12055if test "${enable_strict_compilation+set}" = set; then :
12056  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
12057else
12058  STRICT_COMPILE=no
12059fi
12060
12061if test "x$GCC" = xyes ; then
12062    STRICT_CFLAGS="-pedantic -Werror"
12063    # Add -Werror=attributes if supported (gcc 4.2 & later)
12064    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
12065$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
12066    save_CFLAGS="$CFLAGS"
12067    CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes"
12068    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069/* end confdefs.h.  */
12070return 0;
12071_ACEOF
12072if ac_fn_c_try_compile "$LINENO"; then :
12073  STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
12074		       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12075$as_echo "yes" >&6; }
12076else
12077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078$as_echo "no" >&6; }
12079fi
12080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12081    CFLAGS="$save_CFLAGS"
12082elif test "x$SUNCC" = "xyes"; then
12083    STRICT_CFLAGS="-errwarn"
12084elif test "x$INTELCC" = "xyes"; then
12085    STRICT_CFLAGS="-Werror"
12086fi
12087if test "x$STRICT_COMPILE" = "xyes"; then
12088    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
12089fi
12090
12091
12092
12093
12094
12095cat >>confdefs.h <<_ACEOF
12096#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12097_ACEOF
12098
12099	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12100	if test "x$PVM" = "x"; then
12101		PVM="0"
12102	fi
12103
12104cat >>confdefs.h <<_ACEOF
12105#define PACKAGE_VERSION_MINOR $PVM
12106_ACEOF
12107
12108	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12109	if test "x$PVP" = "x"; then
12110		PVP="0"
12111	fi
12112
12113cat >>confdefs.h <<_ACEOF
12114#define PACKAGE_VERSION_PATCHLEVEL $PVP
12115_ACEOF
12116
12117
12118
12119CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
12120mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
12121|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
12122echo 'git directory not found: installing possibly empty changelog.' >&2)"
12123
12124
12125
12126
12127macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
12128INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
12129mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
12130|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
12131echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
12132
12133
12134
12135
12136
12137
12138if test x$APP_MAN_SUFFIX = x    ; then
12139    APP_MAN_SUFFIX=1
12140fi
12141if test x$APP_MAN_DIR = x    ; then
12142    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12143fi
12144
12145if test x$LIB_MAN_SUFFIX = x    ; then
12146    LIB_MAN_SUFFIX=3
12147fi
12148if test x$LIB_MAN_DIR = x    ; then
12149    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12150fi
12151
12152if test x$FILE_MAN_SUFFIX = x    ; then
12153    case $host_os in
12154	solaris*)	FILE_MAN_SUFFIX=4  ;;
12155	*)		FILE_MAN_SUFFIX=5  ;;
12156    esac
12157fi
12158if test x$FILE_MAN_DIR = x    ; then
12159    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12160fi
12161
12162if test x$MISC_MAN_SUFFIX = x    ; then
12163    case $host_os in
12164	solaris*)	MISC_MAN_SUFFIX=5  ;;
12165	*)		MISC_MAN_SUFFIX=7  ;;
12166    esac
12167fi
12168if test x$MISC_MAN_DIR = x    ; then
12169    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12170fi
12171
12172if test x$DRIVER_MAN_SUFFIX = x    ; then
12173    case $host_os in
12174	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
12175	*)		DRIVER_MAN_SUFFIX=4  ;;
12176    esac
12177fi
12178if test x$DRIVER_MAN_DIR = x    ; then
12179    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12180fi
12181
12182if test x$ADMIN_MAN_SUFFIX = x    ; then
12183    case $host_os in
12184	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
12185	*)		ADMIN_MAN_SUFFIX=8  ;;
12186    esac
12187fi
12188if test x$ADMIN_MAN_DIR = x    ; then
12189    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12190fi
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206XORG_MAN_PAGE="X Version 11"
12207
12208MAN_SUBSTS="\
12209	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12210	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12211	-e 's|__xservername__|Xorg|g' \
12212	-e 's|__xconfigfile__|xorg.conf|g' \
12213	-e 's|__projectroot__|\$(prefix)|g' \
12214	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
12215	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
12216	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
12217	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
12218	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
12219	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
12220	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
12221
12222
12223
12224# Check whether --enable-silent-rules was given.
12225if test "${enable_silent_rules+set}" = set; then :
12226  enableval=$enable_silent_rules;
12227fi
12228
12229case $enable_silent_rules in
12230yes) AM_DEFAULT_VERBOSITY=0;;
12231no)  AM_DEFAULT_VERBOSITY=1;;
12232*)   AM_DEFAULT_VERBOSITY=0;;
12233esac
12234AM_BACKSLASH='\'
12235
12236
12237
12238
12239# Check whether --enable-specs was given.
12240if test "${enable_specs+set}" = set; then :
12241  enableval=$enable_specs; build_specs=$enableval
12242else
12243  build_specs=yes
12244fi
12245
12246
12247 if test x$build_specs = xyes; then
12248  ENABLE_SPECS_TRUE=
12249  ENABLE_SPECS_FALSE='#'
12250else
12251  ENABLE_SPECS_TRUE='#'
12252  ENABLE_SPECS_FALSE=
12253fi
12254
12255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
12256$as_echo_n "checking whether to build functional specifications... " >&6; }
12257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
12258$as_echo "$build_specs" >&6; }
12259
12260
12261
12262
12263
12264# Check whether --with-xmlto was given.
12265if test "${with_xmlto+set}" = set; then :
12266  withval=$with_xmlto; use_xmlto=$withval
12267else
12268  use_xmlto=auto
12269fi
12270
12271
12272
12273if test "x$use_xmlto" = x"auto"; then
12274   # Extract the first word of "xmlto", so it can be a program name with args.
12275set dummy xmlto; ac_word=$2
12276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12277$as_echo_n "checking for $ac_word... " >&6; }
12278if ${ac_cv_path_XMLTO+:} false; then :
12279  $as_echo_n "(cached) " >&6
12280else
12281  case $XMLTO in
12282  [\\/]* | ?:[\\/]*)
12283  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
12284  ;;
12285  *)
12286  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12287for as_dir in $PATH
12288do
12289  IFS=$as_save_IFS
12290  test -z "$as_dir" && as_dir=.
12291    for ac_exec_ext in '' $ac_executable_extensions; do
12292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12293    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
12294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12295    break 2
12296  fi
12297done
12298  done
12299IFS=$as_save_IFS
12300
12301  ;;
12302esac
12303fi
12304XMLTO=$ac_cv_path_XMLTO
12305if test -n "$XMLTO"; then
12306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
12307$as_echo "$XMLTO" >&6; }
12308else
12309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12310$as_echo "no" >&6; }
12311fi
12312
12313
12314   if test "x$XMLTO" = "x"; then
12315        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
12316$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
12317	have_xmlto=no
12318   else
12319        have_xmlto=yes
12320   fi
12321elif test "x$use_xmlto" = x"yes" ; then
12322   # Extract the first word of "xmlto", so it can be a program name with args.
12323set dummy xmlto; ac_word=$2
12324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12325$as_echo_n "checking for $ac_word... " >&6; }
12326if ${ac_cv_path_XMLTO+:} false; then :
12327  $as_echo_n "(cached) " >&6
12328else
12329  case $XMLTO in
12330  [\\/]* | ?:[\\/]*)
12331  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
12332  ;;
12333  *)
12334  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335for as_dir in $PATH
12336do
12337  IFS=$as_save_IFS
12338  test -z "$as_dir" && as_dir=.
12339    for ac_exec_ext in '' $ac_executable_extensions; do
12340  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12341    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
12342    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12343    break 2
12344  fi
12345done
12346  done
12347IFS=$as_save_IFS
12348
12349  ;;
12350esac
12351fi
12352XMLTO=$ac_cv_path_XMLTO
12353if test -n "$XMLTO"; then
12354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
12355$as_echo "$XMLTO" >&6; }
12356else
12357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358$as_echo "no" >&6; }
12359fi
12360
12361
12362   if test "x$XMLTO" = "x"; then
12363        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
12364   fi
12365   have_xmlto=yes
12366elif test "x$use_xmlto" = x"no" ; then
12367   if test "x$XMLTO" != "x"; then
12368      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
12369$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
12370   fi
12371   have_xmlto=no
12372else
12373   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
12374fi
12375
12376# Test for a minimum version of xmlto, if provided.
12377if test "$have_xmlto" = yes; then
12378    # scrape the xmlto version
12379    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
12380$as_echo_n "checking the xmlto version... " >&6; }
12381    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
12382    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
12383$as_echo "$xmlto_version" >&6; }
12384    as_arg_v1=$xmlto_version
12385as_arg_v2=0.0.22
12386awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12387case $? in #(
12388  1) :
12389    if test "x$use_xmlto" = xauto; then
12390            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
12391$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
12392            have_xmlto=no
12393        else
12394            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
12395        fi ;; #(
12396  0) :
12397     ;; #(
12398  2) :
12399     ;; #(
12400  *) :
12401     ;;
12402esac
12403fi
12404
12405# Test for the ability of xmlto to generate a text target
12406have_xmlto_text=no
12407cat > conftest.xml << "EOF"
12408EOF
12409if test "$have_xmlto" = yes; then :
12410  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
12411  have_xmlto_text=yes
12412else
12413  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
12414$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
12415fi
12416fi
12417rm -f conftest.xml
12418 if test $have_xmlto_text = yes; then
12419  HAVE_XMLTO_TEXT_TRUE=
12420  HAVE_XMLTO_TEXT_FALSE='#'
12421else
12422  HAVE_XMLTO_TEXT_TRUE='#'
12423  HAVE_XMLTO_TEXT_FALSE=
12424fi
12425
12426 if test "$have_xmlto" = yes; then
12427  HAVE_XMLTO_TRUE=
12428  HAVE_XMLTO_FALSE='#'
12429else
12430  HAVE_XMLTO_TRUE='#'
12431  HAVE_XMLTO_FALSE=
12432fi
12433
12434
12435
12436
12437
12438
12439# Check whether --with-fop was given.
12440if test "${with_fop+set}" = set; then :
12441  withval=$with_fop; use_fop=$withval
12442else
12443  use_fop=no
12444fi
12445
12446
12447
12448if test "x$use_fop" = x"auto"; then
12449   # Extract the first word of "fop", so it can be a program name with args.
12450set dummy fop; ac_word=$2
12451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452$as_echo_n "checking for $ac_word... " >&6; }
12453if ${ac_cv_path_FOP+:} false; then :
12454  $as_echo_n "(cached) " >&6
12455else
12456  case $FOP in
12457  [\\/]* | ?:[\\/]*)
12458  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
12459  ;;
12460  *)
12461  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12462for as_dir in $PATH
12463do
12464  IFS=$as_save_IFS
12465  test -z "$as_dir" && as_dir=.
12466    for ac_exec_ext in '' $ac_executable_extensions; do
12467  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12468    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
12469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12470    break 2
12471  fi
12472done
12473  done
12474IFS=$as_save_IFS
12475
12476  ;;
12477esac
12478fi
12479FOP=$ac_cv_path_FOP
12480if test -n "$FOP"; then
12481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
12482$as_echo "$FOP" >&6; }
12483else
12484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485$as_echo "no" >&6; }
12486fi
12487
12488
12489   if test "x$FOP" = "x"; then
12490        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
12491$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
12492	have_fop=no
12493   else
12494        have_fop=yes
12495   fi
12496elif test "x$use_fop" = x"yes" ; then
12497   # Extract the first word of "fop", so it can be a program name with args.
12498set dummy fop; ac_word=$2
12499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12500$as_echo_n "checking for $ac_word... " >&6; }
12501if ${ac_cv_path_FOP+:} false; then :
12502  $as_echo_n "(cached) " >&6
12503else
12504  case $FOP in
12505  [\\/]* | ?:[\\/]*)
12506  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
12507  ;;
12508  *)
12509  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12510for as_dir in $PATH
12511do
12512  IFS=$as_save_IFS
12513  test -z "$as_dir" && as_dir=.
12514    for ac_exec_ext in '' $ac_executable_extensions; do
12515  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12516    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
12517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12518    break 2
12519  fi
12520done
12521  done
12522IFS=$as_save_IFS
12523
12524  ;;
12525esac
12526fi
12527FOP=$ac_cv_path_FOP
12528if test -n "$FOP"; then
12529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
12530$as_echo "$FOP" >&6; }
12531else
12532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533$as_echo "no" >&6; }
12534fi
12535
12536
12537   if test "x$FOP" = "x"; then
12538        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
12539   fi
12540   have_fop=yes
12541elif test "x$use_fop" = x"no" ; then
12542   if test "x$FOP" != "x"; then
12543      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
12544$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
12545   fi
12546   have_fop=no
12547else
12548   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
12549fi
12550
12551# Test for a minimum version of fop, if provided.
12552
12553 if test "$have_fop" = yes; then
12554  HAVE_FOP_TRUE=
12555  HAVE_FOP_FALSE='#'
12556else
12557  HAVE_FOP_TRUE='#'
12558  HAVE_FOP_FALSE=
12559fi
12560
12561
12562
12563
12564# Preserves the interface, should it be implemented later
12565
12566
12567
12568# Check whether --with-xsltproc was given.
12569if test "${with_xsltproc+set}" = set; then :
12570  withval=$with_xsltproc; use_xsltproc=$withval
12571else
12572  use_xsltproc=auto
12573fi
12574
12575
12576
12577if test "x$use_xsltproc" = x"auto"; then
12578   # Extract the first word of "xsltproc", so it can be a program name with args.
12579set dummy xsltproc; ac_word=$2
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12581$as_echo_n "checking for $ac_word... " >&6; }
12582if ${ac_cv_path_XSLTPROC+:} false; then :
12583  $as_echo_n "(cached) " >&6
12584else
12585  case $XSLTPROC in
12586  [\\/]* | ?:[\\/]*)
12587  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
12588  ;;
12589  *)
12590  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12591for as_dir in $PATH
12592do
12593  IFS=$as_save_IFS
12594  test -z "$as_dir" && as_dir=.
12595    for ac_exec_ext in '' $ac_executable_extensions; do
12596  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12597    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
12598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12599    break 2
12600  fi
12601done
12602  done
12603IFS=$as_save_IFS
12604
12605  ;;
12606esac
12607fi
12608XSLTPROC=$ac_cv_path_XSLTPROC
12609if test -n "$XSLTPROC"; then
12610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12611$as_echo "$XSLTPROC" >&6; }
12612else
12613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614$as_echo "no" >&6; }
12615fi
12616
12617
12618   if test "x$XSLTPROC" = "x"; then
12619        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
12620$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
12621	have_xsltproc=no
12622   else
12623        have_xsltproc=yes
12624   fi
12625elif test "x$use_xsltproc" = x"yes" ; then
12626   # Extract the first word of "xsltproc", so it can be a program name with args.
12627set dummy xsltproc; ac_word=$2
12628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629$as_echo_n "checking for $ac_word... " >&6; }
12630if ${ac_cv_path_XSLTPROC+:} false; then :
12631  $as_echo_n "(cached) " >&6
12632else
12633  case $XSLTPROC in
12634  [\\/]* | ?:[\\/]*)
12635  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
12636  ;;
12637  *)
12638  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12639for as_dir in $PATH
12640do
12641  IFS=$as_save_IFS
12642  test -z "$as_dir" && as_dir=.
12643    for ac_exec_ext in '' $ac_executable_extensions; do
12644  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12645    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
12646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12647    break 2
12648  fi
12649done
12650  done
12651IFS=$as_save_IFS
12652
12653  ;;
12654esac
12655fi
12656XSLTPROC=$ac_cv_path_XSLTPROC
12657if test -n "$XSLTPROC"; then
12658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12659$as_echo "$XSLTPROC" >&6; }
12660else
12661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12662$as_echo "no" >&6; }
12663fi
12664
12665
12666   if test "x$XSLTPROC" = "x"; then
12667        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
12668   fi
12669   have_xsltproc=yes
12670elif test "x$use_xsltproc" = x"no" ; then
12671   if test "x$XSLTPROC" != "x"; then
12672      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
12673$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
12674   fi
12675   have_xsltproc=no
12676else
12677   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
12678fi
12679
12680 if test "$have_xsltproc" = yes; then
12681  HAVE_XSLTPROC_TRUE=
12682  HAVE_XSLTPROC_FALSE='#'
12683else
12684  HAVE_XSLTPROC_TRUE='#'
12685  HAVE_XSLTPROC_FALSE=
12686fi
12687
12688
12689
12690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
12691$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
12692XORG_SGML_PATH=
12693if test -n "$PKG_CONFIG" && \
12694    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
12695  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
12696  ac_status=$?
12697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12698  test $ac_status = 0; }; then
12699  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
12700else
12701  :
12702
12703fi
12704
12705# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
12706# the path and the name of the doc stylesheet
12707if test "x$XORG_SGML_PATH" != "x" ; then
12708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
12709$as_echo "$XORG_SGML_PATH" >&6; }
12710   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
12711   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
12712else
12713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714$as_echo "no" >&6; }
12715fi
12716
12717
12718
12719
12720 if test "x$XSL_STYLESHEET" != "x"; then
12721  HAVE_STYLESHEETS_TRUE=
12722  HAVE_STYLESHEETS_FALSE='#'
12723else
12724  HAVE_STYLESHEETS_TRUE='#'
12725  HAVE_STYLESHEETS_FALSE=
12726fi
12727
12728
12729
12730
12731for ac_prog in cpp
12732do
12733  # Extract the first word of "$ac_prog", so it can be a program name with args.
12734set dummy $ac_prog; ac_word=$2
12735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12736$as_echo_n "checking for $ac_word... " >&6; }
12737if ${ac_cv_path_RAWCPP+:} false; then :
12738  $as_echo_n "(cached) " >&6
12739else
12740  case $RAWCPP in
12741  [\\/]* | ?:[\\/]*)
12742  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
12743  ;;
12744  *)
12745  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12746as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
12747for as_dir in $as_dummy
12748do
12749  IFS=$as_save_IFS
12750  test -z "$as_dir" && as_dir=.
12751    for ac_exec_ext in '' $ac_executable_extensions; do
12752  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12753    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
12754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12755    break 2
12756  fi
12757done
12758  done
12759IFS=$as_save_IFS
12760
12761  ;;
12762esac
12763fi
12764RAWCPP=$ac_cv_path_RAWCPP
12765if test -n "$RAWCPP"; then
12766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
12767$as_echo "$RAWCPP" >&6; }
12768else
12769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770$as_echo "no" >&6; }
12771fi
12772
12773
12774  test -n "$RAWCPP" && break
12775done
12776test -n "$RAWCPP" || RAWCPP="${CPP}"
12777
12778
12779# Check for flag to avoid builtin definitions - assumes unix is predefined,
12780# which is not the best choice for supporting other OS'es, but covers most
12781# of the ones we need for now.
12782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
12783$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
12784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785/* end confdefs.h.  */
12786Does cpp redefine unix ?
12787_ACEOF
12788if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12789	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790$as_echo "no" >&6; }
12791else
12792	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12793		RAWCPPFLAGS=-undef
12794		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12795$as_echo "yes" >&6; }
12796	# under Cygwin unix is still defined even with -undef
12797	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12798		RAWCPPFLAGS="-undef -ansi"
12799		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
12800$as_echo "yes, with -ansi" >&6; }
12801	else
12802		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
12803	fi
12804fi
12805rm -f conftest.$ac_ext
12806
12807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
12808$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
12809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810/* end confdefs.h.  */
12811Does cpp preserve   "whitespace"?
12812_ACEOF
12813if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
12814	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815$as_echo "no" >&6; }
12816else
12817	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
12818		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
12819		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12820$as_echo "yes" >&6; }
12821	else
12822		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
12823	fi
12824fi
12825rm -f conftest.$ac_ext
12826
12827
12828
12829
12830# Preserves the interface, should it be implemented later
12831
12832
12833
12834# Check whether --with-perl was given.
12835if test "${with_perl+set}" = set; then :
12836  withval=$with_perl; use_perl=$withval
12837else
12838  use_perl=auto
12839fi
12840
12841
12842
12843if test "x$use_perl" = x"auto"; then
12844   # Extract the first word of "perl", so it can be a program name with args.
12845set dummy perl; ac_word=$2
12846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12847$as_echo_n "checking for $ac_word... " >&6; }
12848if ${ac_cv_path_PERL+:} false; then :
12849  $as_echo_n "(cached) " >&6
12850else
12851  case $PERL in
12852  [\\/]* | ?:[\\/]*)
12853  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12854  ;;
12855  *)
12856  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857for as_dir in $PATH
12858do
12859  IFS=$as_save_IFS
12860  test -z "$as_dir" && as_dir=.
12861    for ac_exec_ext in '' $ac_executable_extensions; do
12862  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12863    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12865    break 2
12866  fi
12867done
12868  done
12869IFS=$as_save_IFS
12870
12871  ;;
12872esac
12873fi
12874PERL=$ac_cv_path_PERL
12875if test -n "$PERL"; then
12876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12877$as_echo "$PERL" >&6; }
12878else
12879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880$as_echo "no" >&6; }
12881fi
12882
12883
12884   if test "x$PERL" = "x"; then
12885        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5
12886$as_echo "$as_me: WARNING: perl not found - cannot extract information and report" >&2;}
12887	have_perl=no
12888   else
12889        have_perl=yes
12890   fi
12891elif test "x$use_perl" = x"yes" ; then
12892   # Extract the first word of "perl", so it can be a program name with args.
12893set dummy perl; ac_word=$2
12894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12895$as_echo_n "checking for $ac_word... " >&6; }
12896if ${ac_cv_path_PERL+:} false; then :
12897  $as_echo_n "(cached) " >&6
12898else
12899  case $PERL in
12900  [\\/]* | ?:[\\/]*)
12901  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12902  ;;
12903  *)
12904  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12905for as_dir in $PATH
12906do
12907  IFS=$as_save_IFS
12908  test -z "$as_dir" && as_dir=.
12909    for ac_exec_ext in '' $ac_executable_extensions; do
12910  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12911    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12913    break 2
12914  fi
12915done
12916  done
12917IFS=$as_save_IFS
12918
12919  ;;
12920esac
12921fi
12922PERL=$ac_cv_path_PERL
12923if test -n "$PERL"; then
12924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12925$as_echo "$PERL" >&6; }
12926else
12927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928$as_echo "no" >&6; }
12929fi
12930
12931
12932   if test "x$PERL" = "x"; then
12933        as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5
12934   fi
12935   have_perl=yes
12936elif test "x$use_perl" = x"no" ; then
12937   if test "x$PERL" != "x"; then
12938      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5
12939$as_echo "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;}
12940   fi
12941   have_perl=no
12942else
12943   as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5
12944fi
12945
12946 if test "$have_perl" = yes; then
12947  HAVE_PERL_TRUE=
12948  HAVE_PERL_FALSE='#'
12949else
12950  HAVE_PERL_TRUE='#'
12951  HAVE_PERL_FALSE=
12952fi
12953
12954
12955
12956# Required when PKG_CHECK_MODULES called within an if statement
12957
12958
12959if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12960	if test -n "$ac_tool_prefix"; then
12961  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12962set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12964$as_echo_n "checking for $ac_word... " >&6; }
12965if ${ac_cv_path_PKG_CONFIG+:} false; then :
12966  $as_echo_n "(cached) " >&6
12967else
12968  case $PKG_CONFIG in
12969  [\\/]* | ?:[\\/]*)
12970  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12971  ;;
12972  *)
12973  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12974for as_dir in $PATH
12975do
12976  IFS=$as_save_IFS
12977  test -z "$as_dir" && as_dir=.
12978    for ac_exec_ext in '' $ac_executable_extensions; do
12979  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12980    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12982    break 2
12983  fi
12984done
12985  done
12986IFS=$as_save_IFS
12987
12988  ;;
12989esac
12990fi
12991PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12992if test -n "$PKG_CONFIG"; then
12993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12994$as_echo "$PKG_CONFIG" >&6; }
12995else
12996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12997$as_echo "no" >&6; }
12998fi
12999
13000
13001fi
13002if test -z "$ac_cv_path_PKG_CONFIG"; then
13003  ac_pt_PKG_CONFIG=$PKG_CONFIG
13004  # Extract the first word of "pkg-config", so it can be a program name with args.
13005set dummy pkg-config; ac_word=$2
13006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13007$as_echo_n "checking for $ac_word... " >&6; }
13008if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13009  $as_echo_n "(cached) " >&6
13010else
13011  case $ac_pt_PKG_CONFIG in
13012  [\\/]* | ?:[\\/]*)
13013  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13014  ;;
13015  *)
13016  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13017for as_dir in $PATH
13018do
13019  IFS=$as_save_IFS
13020  test -z "$as_dir" && as_dir=.
13021    for ac_exec_ext in '' $ac_executable_extensions; do
13022  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13023    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13025    break 2
13026  fi
13027done
13028  done
13029IFS=$as_save_IFS
13030
13031  ;;
13032esac
13033fi
13034ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13035if test -n "$ac_pt_PKG_CONFIG"; then
13036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13037$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13038else
13039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13040$as_echo "no" >&6; }
13041fi
13042
13043  if test "x$ac_pt_PKG_CONFIG" = x; then
13044    PKG_CONFIG=""
13045  else
13046    case $cross_compiling:$ac_tool_warned in
13047yes:)
13048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13050ac_tool_warned=yes ;;
13051esac
13052    PKG_CONFIG=$ac_pt_PKG_CONFIG
13053  fi
13054else
13055  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13056fi
13057
13058fi
13059if test -n "$PKG_CONFIG"; then
13060	_pkg_min_version=0.9.0
13061	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13062$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13063	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13064		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13065$as_echo "yes" >&6; }
13066	else
13067		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068$as_echo "no" >&6; }
13069		PKG_CONFIG=""
13070	fi
13071
13072fi
13073
13074if test x"$CC_FOR_BUILD" = x; then
13075	if test x"$cross_compiling" = xyes; then
13076	       for ac_prog in gcc cc
13077do
13078  # Extract the first word of "$ac_prog", so it can be a program name with args.
13079set dummy $ac_prog; ac_word=$2
13080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13081$as_echo_n "checking for $ac_word... " >&6; }
13082if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
13083  $as_echo_n "(cached) " >&6
13084else
13085  if test -n "$CC_FOR_BUILD"; then
13086  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
13087else
13088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089for as_dir in $PATH
13090do
13091  IFS=$as_save_IFS
13092  test -z "$as_dir" && as_dir=.
13093    for ac_exec_ext in '' $ac_executable_extensions; do
13094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13095    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
13096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13097    break 2
13098  fi
13099done
13100  done
13101IFS=$as_save_IFS
13102
13103fi
13104fi
13105CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
13106if test -n "$CC_FOR_BUILD"; then
13107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13108$as_echo "$CC_FOR_BUILD" >&6; }
13109else
13110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111$as_echo "no" >&6; }
13112fi
13113
13114
13115  test -n "$CC_FOR_BUILD" && break
13116done
13117
13118	else
13119	       CC_FOR_BUILD="$CC"
13120	fi
13121fi
13122
13123
13124if test x"$CPPFLAGS_FOR_BUILD" = x; then
13125	if test ! x"$cross_compiling" = xyes; then
13126		CPPFLAGS_FOR_BUILD=${CPPFLAGS}
13127	fi
13128fi
13129
13130
13131if test x"$CFLAGS_FOR_BUILD" = x; then
13132	if test ! x"$cross_compiling" = xyes; then
13133		CFLAGS_FOR_BUILD=${CFLAGS}
13134	fi
13135fi
13136
13137
13138if test x"$LDFLAGS_FOR_BUILD" = x; then
13139	if test ! x"$cross_compiling" = xyes; then
13140		LDFLAGS_FOR_BUILD=${LDFLAGS}
13141	fi
13142fi
13143
13144
13145# Checks for pkg-config packages
13146
13147# Always required
13148X11_REQUIRES='xproto >= 7.0.17 xextproto xtrans xcb >= 1.1.92'
13149X11_EXTRA_DEPS="xcb >= 1.1.92"
13150
13151
13152
13153if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13154	if test -n "$ac_tool_prefix"; then
13155  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13156set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13158$as_echo_n "checking for $ac_word... " >&6; }
13159if ${ac_cv_path_PKG_CONFIG+:} false; then :
13160  $as_echo_n "(cached) " >&6
13161else
13162  case $PKG_CONFIG in
13163  [\\/]* | ?:[\\/]*)
13164  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13165  ;;
13166  *)
13167  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13168for as_dir in $PATH
13169do
13170  IFS=$as_save_IFS
13171  test -z "$as_dir" && as_dir=.
13172    for ac_exec_ext in '' $ac_executable_extensions; do
13173  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13174    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13176    break 2
13177  fi
13178done
13179  done
13180IFS=$as_save_IFS
13181
13182  ;;
13183esac
13184fi
13185PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13186if test -n "$PKG_CONFIG"; then
13187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13188$as_echo "$PKG_CONFIG" >&6; }
13189else
13190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191$as_echo "no" >&6; }
13192fi
13193
13194
13195fi
13196if test -z "$ac_cv_path_PKG_CONFIG"; then
13197  ac_pt_PKG_CONFIG=$PKG_CONFIG
13198  # Extract the first word of "pkg-config", so it can be a program name with args.
13199set dummy pkg-config; ac_word=$2
13200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13201$as_echo_n "checking for $ac_word... " >&6; }
13202if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13203  $as_echo_n "(cached) " >&6
13204else
13205  case $ac_pt_PKG_CONFIG in
13206  [\\/]* | ?:[\\/]*)
13207  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13208  ;;
13209  *)
13210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211for as_dir in $PATH
13212do
13213  IFS=$as_save_IFS
13214  test -z "$as_dir" && as_dir=.
13215    for ac_exec_ext in '' $ac_executable_extensions; do
13216  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13217    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13219    break 2
13220  fi
13221done
13222  done
13223IFS=$as_save_IFS
13224
13225  ;;
13226esac
13227fi
13228ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13229if test -n "$ac_pt_PKG_CONFIG"; then
13230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13231$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13232else
13233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13234$as_echo "no" >&6; }
13235fi
13236
13237  if test "x$ac_pt_PKG_CONFIG" = x; then
13238    PKG_CONFIG=""
13239  else
13240    case $cross_compiling:$ac_tool_warned in
13241yes:)
13242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13244ac_tool_warned=yes ;;
13245esac
13246    PKG_CONFIG=$ac_pt_PKG_CONFIG
13247  fi
13248else
13249  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13250fi
13251
13252fi
13253if test -n "$PKG_CONFIG"; then
13254	_pkg_min_version=0.9.0
13255	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13256$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13257	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13258		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13259$as_echo "yes" >&6; }
13260	else
13261		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262$as_echo "no" >&6; }
13263		PKG_CONFIG=""
13264	fi
13265
13266fi
13267
13268
13269
13270# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
13271# was not expanded, since libX11 with no transport types is rather useless.
13272#
13273# If you're seeing an error here, be sure you installed the lib/xtrans module
13274# first and if it's not in the default location, that you set the ACLOCAL
13275# environment variable to find it, such as:
13276#	ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
13277
13278
13279# Transport selection macro from xtrans.m4
13280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13281$as_echo_n "checking return type of signal handlers... " >&6; }
13282if ${ac_cv_type_signal+:} false; then :
13283  $as_echo_n "(cached) " >&6
13284else
13285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286/* end confdefs.h.  */
13287#include <sys/types.h>
13288#include <signal.h>
13289
13290int
13291main ()
13292{
13293return *(signal (0, 0)) (0) == 1;
13294  ;
13295  return 0;
13296}
13297_ACEOF
13298if ac_fn_c_try_compile "$LINENO"; then :
13299  ac_cv_type_signal=int
13300else
13301  ac_cv_type_signal=void
13302fi
13303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13304fi
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13306$as_echo "$ac_cv_type_signal" >&6; }
13307
13308cat >>confdefs.h <<_ACEOF
13309#define RETSIGTYPE $ac_cv_type_signal
13310_ACEOF
13311
13312
13313
13314
13315
13316 case $host_os in
13317	mingw*)	unixdef="no"   ;;
13318	*)	unixdef="yes"  ;;
13319 esac
13320 # Check whether --enable-unix-transport was given.
13321if test "${enable_unix_transport+set}" = set; then :
13322  enableval=$enable_unix_transport; UNIXCONN=$enableval
13323else
13324  UNIXCONN=$unixdef
13325fi
13326
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
13328$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
13329 if test "$UNIXCONN" = "yes"; then
13330
13331$as_echo "#define UNIXCONN 1" >>confdefs.h
13332
13333 fi
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
13335$as_echo "$UNIXCONN" >&6; }
13336 # Check whether --enable-tcp-transport was given.
13337if test "${enable_tcp_transport+set}" = set; then :
13338  enableval=$enable_tcp_transport; TCPCONN=$enableval
13339else
13340  TCPCONN=yes
13341fi
13342
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
13344$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
13346$as_echo "$TCPCONN" >&6; }
13347 if test "$TCPCONN" = "yes"; then
13348
13349$as_echo "#define TCPCONN 1" >>confdefs.h
13350
13351
13352 # SVR4 hides these in libraries other than libc
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13354$as_echo_n "checking for library containing socket... " >&6; }
13355if ${ac_cv_search_socket+:} false; then :
13356  $as_echo_n "(cached) " >&6
13357else
13358  ac_func_search_save_LIBS=$LIBS
13359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360/* end confdefs.h.  */
13361
13362/* Override any GCC internal prototype to avoid an error.
13363   Use char because int might match the return type of a GCC
13364   builtin and then its argument prototype would still apply.  */
13365#ifdef __cplusplus
13366extern "C"
13367#endif
13368char socket ();
13369int
13370main ()
13371{
13372return socket ();
13373  ;
13374  return 0;
13375}
13376_ACEOF
13377for ac_lib in '' socket; do
13378  if test -z "$ac_lib"; then
13379    ac_res="none required"
13380  else
13381    ac_res=-l$ac_lib
13382    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13383  fi
13384  if ac_fn_c_try_link "$LINENO"; then :
13385  ac_cv_search_socket=$ac_res
13386fi
13387rm -f core conftest.err conftest.$ac_objext \
13388    conftest$ac_exeext
13389  if ${ac_cv_search_socket+:} false; then :
13390  break
13391fi
13392done
13393if ${ac_cv_search_socket+:} false; then :
13394
13395else
13396  ac_cv_search_socket=no
13397fi
13398rm conftest.$ac_ext
13399LIBS=$ac_func_search_save_LIBS
13400fi
13401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13402$as_echo "$ac_cv_search_socket" >&6; }
13403ac_res=$ac_cv_search_socket
13404if test "$ac_res" != no; then :
13405  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13406
13407fi
13408
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13410$as_echo_n "checking for library containing gethostbyname... " >&6; }
13411if ${ac_cv_search_gethostbyname+:} false; then :
13412  $as_echo_n "(cached) " >&6
13413else
13414  ac_func_search_save_LIBS=$LIBS
13415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13416/* end confdefs.h.  */
13417
13418/* Override any GCC internal prototype to avoid an error.
13419   Use char because int might match the return type of a GCC
13420   builtin and then its argument prototype would still apply.  */
13421#ifdef __cplusplus
13422extern "C"
13423#endif
13424char gethostbyname ();
13425int
13426main ()
13427{
13428return gethostbyname ();
13429  ;
13430  return 0;
13431}
13432_ACEOF
13433for ac_lib in '' nsl; do
13434  if test -z "$ac_lib"; then
13435    ac_res="none required"
13436  else
13437    ac_res=-l$ac_lib
13438    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13439  fi
13440  if ac_fn_c_try_link "$LINENO"; then :
13441  ac_cv_search_gethostbyname=$ac_res
13442fi
13443rm -f core conftest.err conftest.$ac_objext \
13444    conftest$ac_exeext
13445  if ${ac_cv_search_gethostbyname+:} false; then :
13446  break
13447fi
13448done
13449if ${ac_cv_search_gethostbyname+:} false; then :
13450
13451else
13452  ac_cv_search_gethostbyname=no
13453fi
13454rm conftest.$ac_ext
13455LIBS=$ac_func_search_save_LIBS
13456fi
13457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13458$as_echo "$ac_cv_search_gethostbyname" >&6; }
13459ac_res=$ac_cv_search_gethostbyname
13460if test "$ac_res" != no; then :
13461  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13462
13463fi
13464
13465 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
13466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
13467$as_echo_n "checking for main in -lws2_32... " >&6; }
13468if ${ac_cv_lib_ws2_32_main+:} false; then :
13469  $as_echo_n "(cached) " >&6
13470else
13471  ac_check_lib_save_LIBS=$LIBS
13472LIBS="-lws2_32  $LIBS"
13473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474/* end confdefs.h.  */
13475
13476
13477int
13478main ()
13479{
13480return main ();
13481  ;
13482  return 0;
13483}
13484_ACEOF
13485if ac_fn_c_try_link "$LINENO"; then :
13486  ac_cv_lib_ws2_32_main=yes
13487else
13488  ac_cv_lib_ws2_32_main=no
13489fi
13490rm -f core conftest.err conftest.$ac_objext \
13491    conftest$ac_exeext conftest.$ac_ext
13492LIBS=$ac_check_lib_save_LIBS
13493fi
13494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
13495$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
13496if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
13497  cat >>confdefs.h <<_ACEOF
13498#define HAVE_LIBWS2_32 1
13499_ACEOF
13500
13501  LIBS="-lws2_32 $LIBS"
13502
13503fi
13504ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
13505
13506 fi
13507
13508 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
13509 # Check whether --enable-ipv6 was given.
13510if test "${enable_ipv6+set}" = set; then :
13511  enableval=$enable_ipv6; IPV6CONN=$enableval
13512else
13513  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13514if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13515  IPV6CONN=yes
13516else
13517  IPV6CONN=no
13518fi
13519
13520fi
13521
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
13523$as_echo_n "checking if IPv6 support should be built... " >&6; }
13524 if test "$IPV6CONN" = "yes"; then
13525
13526$as_echo "#define IPv6 1" >>confdefs.h
13527
13528 fi
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
13530$as_echo "$IPV6CONN" >&6; }
13531
13532 # 4.3BSD-Reno added a new member to struct sockaddr_in
13533 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
13534#include <sys/types.h>
13535#include <sys/socket.h>
13536#include <netinet/in.h>
13537
13538"
13539if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13540
13541$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
13542
13543fi
13544
13545
13546 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
13547 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13548$ac_includes_default
13549#include <sys/socket.h>
13550"
13551if test "x$ac_cv_type_socklen_t" = xyes; then :
13552
13553cat >>confdefs.h <<_ACEOF
13554#define HAVE_SOCKLEN_T 1
13555_ACEOF
13556
13557
13558fi
13559
13560
13561
13562 fi
13563 case $host_os in
13564	solaris*|sco*|sysv4*)	localdef="yes" ;;
13565	*)			localdef="no"  ;;
13566 esac
13567 # Check whether --enable-local-transport was given.
13568if test "${enable_local_transport+set}" = set; then :
13569  enableval=$enable_local_transport; LOCALCONN=$enableval
13570else
13571  LOCALCONN=$localdef
13572fi
13573
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
13575$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
13577$as_echo "$LOCALCONN" >&6; }
13578 if test "$LOCALCONN" = "yes"; then
13579
13580$as_echo "#define LOCALCONN 1" >>confdefs.h
13581
13582 fi
13583
13584
13585
13586# Secure RPC detection macro from xtrans.m4
13587
13588 # Check whether --enable-secure-rpc was given.
13589if test "${enable_secure_rpc+set}" = set; then :
13590  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
13591else
13592  SECURE_RPC="try"
13593fi
13594
13595
13596 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
13597	FOUND_SECURE_RPC="no"
13598	for ac_func in authdes_seccreate authdes_create
13599do :
13600  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13601ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13602if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13603  cat >>confdefs.h <<_ACEOF
13604#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13605_ACEOF
13606 FOUND_SECURE_RPC="yes"
13607fi
13608done
13609
13610	if test "x$FOUND_SECURE_RPC" = "xno" ; then
13611		if test "x$SECURE_RPC" = "xyes" ; then
13612	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
13613		fi
13614		SECURE_RPC="no"
13615	else
13616				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
13617$as_echo_n "checking for library containing getsecretkey... " >&6; }
13618if ${ac_cv_search_getsecretkey+:} false; then :
13619  $as_echo_n "(cached) " >&6
13620else
13621  ac_func_search_save_LIBS=$LIBS
13622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623/* end confdefs.h.  */
13624
13625/* Override any GCC internal prototype to avoid an error.
13626   Use char because int might match the return type of a GCC
13627   builtin and then its argument prototype would still apply.  */
13628#ifdef __cplusplus
13629extern "C"
13630#endif
13631char getsecretkey ();
13632int
13633main ()
13634{
13635return getsecretkey ();
13636  ;
13637  return 0;
13638}
13639_ACEOF
13640for ac_lib in '' rpcsvc; do
13641  if test -z "$ac_lib"; then
13642    ac_res="none required"
13643  else
13644    ac_res=-l$ac_lib
13645    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13646  fi
13647  if ac_fn_c_try_link "$LINENO"; then :
13648  ac_cv_search_getsecretkey=$ac_res
13649fi
13650rm -f core conftest.err conftest.$ac_objext \
13651    conftest$ac_exeext
13652  if ${ac_cv_search_getsecretkey+:} false; then :
13653  break
13654fi
13655done
13656if ${ac_cv_search_getsecretkey+:} false; then :
13657
13658else
13659  ac_cv_search_getsecretkey=no
13660fi
13661rm conftest.$ac_ext
13662LIBS=$ac_func_search_save_LIBS
13663fi
13664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
13665$as_echo "$ac_cv_search_getsecretkey" >&6; }
13666ac_res=$ac_cv_search_getsecretkey
13667if test "$ac_res" != no; then :
13668  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13669
13670fi
13671
13672		SECURE_RPC="yes"
13673	fi
13674 fi
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
13676$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
13677 if test "x$SECURE_RPC" = "xyes" ; then
13678
13679$as_echo "#define SECURE_RPC 1" >>confdefs.h
13680
13681 fi
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
13683$as_echo "$SECURE_RPC" >&6; }
13684
13685
13686# Preferred order to try transports for local connections
13687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what order to try transports in for local connections" >&5
13688$as_echo_n "checking what order to try transports in for local connections... " >&6; }
13689DEFAULT_LOCAL_TRANS=""
13690case $host_os in
13691	solaris*)
13692		# On Solaris 2.6 through 9, named pipes (LOCAL_TRANS) were
13693		# faster than Unix domain sockets, but on Solaris 10 & later,
13694		# Unix domain sockets are faster now.
13695		if test "$UNIXCONN" = "yes" ; then
13696			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13697				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13698			fi
13699			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}UNIX_TRANS"
13700		fi
13701		if test "$LOCALCONN" = "yes" ; then
13702			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13703				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13704			fi
13705			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS"
13706		fi
13707		if test "$TCPCONN" = "yes" ; then
13708			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13709				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13710			fi
13711			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS"
13712		fi
13713		;;
13714	linux*)
13715		# LOCAL_TRANS is used for abstract sockets.
13716		if test "$UNIXCONN" = "yes" ; then
13717			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13718				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13719			fi
13720			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS,UNIX_TRANS"
13721		fi
13722		if test "$TCPCONN" = "yes" ; then
13723			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13724				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13725			fi
13726			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS"
13727		fi
13728		;;
13729	*)
13730		if test "$LOCALCONN" = "yes" ; then
13731			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13732				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13733			fi
13734			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS"
13735		fi
13736		if test "$UNIXCONN" = "yes" ; then
13737			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13738				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13739			fi
13740			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}UNIX_TRANS"
13741		fi
13742		if test "$TCPCONN" = "yes" ; then
13743			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13744				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13745			fi
13746			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS"
13747		fi
13748		;;
13749esac
13750
13751
13752# Check whether --with-local-transport-order was given.
13753if test "${with_local_transport_order+set}" = set; then :
13754  withval=$with_local_transport_order; LOCAL_TRANSPORT_LIST=$withval
13755else
13756  LOCAL_TRANSPORT_LIST=$DEFAULT_LOCAL_TRANS
13757fi
13758
13759
13760cat >>confdefs.h <<_ACEOF
13761#define LOCAL_TRANSPORT_LIST $LOCAL_TRANSPORT_LIST
13762_ACEOF
13763
13764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCAL_TRANSPORT_LIST" >&5
13765$as_echo "$LOCAL_TRANSPORT_LIST" >&6; }
13766
13767# Check for dlopen
13768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5
13769$as_echo_n "checking if run-time linking is supported... " >&6; }
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13771$as_echo_n "checking for library containing dlopen... " >&6; }
13772if ${ac_cv_search_dlopen+:} false; then :
13773  $as_echo_n "(cached) " >&6
13774else
13775  ac_func_search_save_LIBS=$LIBS
13776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777/* end confdefs.h.  */
13778
13779/* Override any GCC internal prototype to avoid an error.
13780   Use char because int might match the return type of a GCC
13781   builtin and then its argument prototype would still apply.  */
13782#ifdef __cplusplus
13783extern "C"
13784#endif
13785char dlopen ();
13786int
13787main ()
13788{
13789return dlopen ();
13790  ;
13791  return 0;
13792}
13793_ACEOF
13794for ac_lib in '' dl svld; do
13795  if test -z "$ac_lib"; then
13796    ac_res="none required"
13797  else
13798    ac_res=-l$ac_lib
13799    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13800  fi
13801  if ac_fn_c_try_link "$LINENO"; then :
13802  ac_cv_search_dlopen=$ac_res
13803fi
13804rm -f core conftest.err conftest.$ac_objext \
13805    conftest$ac_exeext
13806  if ${ac_cv_search_dlopen+:} false; then :
13807  break
13808fi
13809done
13810if ${ac_cv_search_dlopen+:} false; then :
13811
13812else
13813  ac_cv_search_dlopen=no
13814fi
13815rm conftest.$ac_ext
13816LIBS=$ac_func_search_save_LIBS
13817fi
13818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13819$as_echo "$ac_cv_search_dlopen" >&6; }
13820ac_res=$ac_cv_search_dlopen
13821if test "$ac_res" != no; then :
13822  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13823
13824fi
13825
13826if test "x$ac_cv_search_dlopen" = xno; then
13827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
13828$as_echo_n "checking for library containing shl_load... " >&6; }
13829if ${ac_cv_search_shl_load+:} false; then :
13830  $as_echo_n "(cached) " >&6
13831else
13832  ac_func_search_save_LIBS=$LIBS
13833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834/* end confdefs.h.  */
13835
13836/* Override any GCC internal prototype to avoid an error.
13837   Use char because int might match the return type of a GCC
13838   builtin and then its argument prototype would still apply.  */
13839#ifdef __cplusplus
13840extern "C"
13841#endif
13842char shl_load ();
13843int
13844main ()
13845{
13846return shl_load ();
13847  ;
13848  return 0;
13849}
13850_ACEOF
13851for ac_lib in '' dld; do
13852  if test -z "$ac_lib"; then
13853    ac_res="none required"
13854  else
13855    ac_res=-l$ac_lib
13856    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13857  fi
13858  if ac_fn_c_try_link "$LINENO"; then :
13859  ac_cv_search_shl_load=$ac_res
13860fi
13861rm -f core conftest.err conftest.$ac_objext \
13862    conftest$ac_exeext
13863  if ${ac_cv_search_shl_load+:} false; then :
13864  break
13865fi
13866done
13867if ${ac_cv_search_shl_load+:} false; then :
13868
13869else
13870  ac_cv_search_shl_load=no
13871fi
13872rm conftest.$ac_ext
13873LIBS=$ac_func_search_save_LIBS
13874fi
13875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
13876$as_echo "$ac_cv_search_shl_load" >&6; }
13877ac_res=$ac_cv_search_shl_load
13878if test "$ac_res" != no; then :
13879  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13880
13881fi
13882
13883	if test "x$ac_cv_search_shl_load" != xno; then
13884
13885$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
13886
13887		for ac_header in dl.h
13888do :
13889  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
13890if test "x$ac_cv_header_dl_h" = xyes; then :
13891  cat >>confdefs.h <<_ACEOF
13892#define HAVE_DL_H 1
13893_ACEOF
13894
13895fi
13896
13897done
13898
13899	fi
13900else
13901
13902$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13903
13904	for ac_header in dlfcn.h
13905do :
13906  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
13907if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13908  cat >>confdefs.h <<_ACEOF
13909#define HAVE_DLFCN_H 1
13910_ACEOF
13911
13912fi
13913
13914done
13915
13916fi
13917if test x$ac_cv_header_dlcfn_h -o x$ac_cv_header_dl_h; then
13918	HAVE_LOADABLE_MODULES=yes
13919else
13920	HAVE_LOADABLE_MODULES=no
13921fi
13922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5
13923$as_echo "$HAVE_LOADABLE_MODULES" >&6; }
13924
13925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5
13926$as_echo_n "checking if loadable i18n module support should be enabled... " >&6; }
13927# Check whether --enable-loadable-i18n was given.
13928if test "${enable_loadable_i18n+set}" = set; then :
13929  enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval
13930else
13931  XLIB_LOADABLE_I18N="no"
13932fi
13933
13934if test x$XLIB_LOADABLE_I18N = xyes; then
13935	if test x$HAVE_LOADABLE_MODULES = xno; then
13936		as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5
13937	fi
13938
13939$as_echo "#define USE_DYNAMIC_LC 1" >>confdefs.h
13940
13941	I18N_MODULE_LIBS='${top_builddir}/src/libX11.la'
13942
13943fi
13944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5
13945$as_echo "$XLIB_LOADABLE_I18N" >&6; }
13946
13947 if test x$XLIB_LOADABLE_I18N = xyes; then
13948  XLIB_LOADABLE_I18N_TRUE=
13949  XLIB_LOADABLE_I18N_FALSE='#'
13950else
13951  XLIB_LOADABLE_I18N_TRUE='#'
13952  XLIB_LOADABLE_I18N_FALSE=
13953fi
13954
13955
13956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5
13957$as_echo_n "checking if loadable Xcursor library support should be enabled... " >&6; }
13958# Check whether --enable-loadable-xcursor was given.
13959if test "${enable_loadable_xcursor+set}" = set; then :
13960  enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval
13961else
13962  XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES
13963fi
13964
13965if test x$XLIB_LOADABLE_XCURSOR = xyes; then
13966
13967$as_echo "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h
13968
13969fi
13970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5
13971$as_echo "$XLIB_LOADABLE_XCURSOR" >&6; }
13972
13973# Checks for header files.
13974for ac_header in sys/select.h
13975do :
13976  ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
13977if test "x$ac_cv_header_sys_select_h" = xyes; then :
13978  cat >>confdefs.h <<_ACEOF
13979#define HAVE_SYS_SELECT_H 1
13980_ACEOF
13981
13982fi
13983
13984done
13985
13986
13987# Checks for typedefs, structures, and compiler characteristics.
13988
13989# Checks for library functions.
13990for ac_func in strtol
13991do :
13992  ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
13993if test "x$ac_cv_func_strtol" = xyes; then :
13994  cat >>confdefs.h <<_ACEOF
13995#define HAVE_STRTOL 1
13996_ACEOF
13997
13998fi
13999done
14000
14001# Used in lcFile.c (see also --enable-xlocaledir settings below)
14002XLOCALEDIR_IS_SAFE="no"
14003ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
14004if test "x$ac_cv_func_issetugid" = xyes; then :
14005  XLOCALEDIR_IS_SAFE="yes"
14006
14007$as_echo "#define HASSETUGID 1" >>confdefs.h
14008
14009fi
14010
14011ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
14012if test "x$ac_cv_func_getresuid" = xyes; then :
14013  XLOCALEDIR_IS_SAFE="yes"
14014
14015$as_echo "#define HASGETRESUID 1" >>confdefs.h
14016
14017fi
14018
14019# Used in Font.c
14020ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
14021if test "x$ac_cv_func_shmat" = xyes; then :
14022
14023$as_echo "#define HAS_SHM 1" >>confdefs.h
14024
14025fi
14026
14027
14028# Checks for system services
14029# AC_PATH_XTRA
14030
14031# arch specific things
14032WCHAR32="1"
14033case $host_os in
14034  os2*) os2="true" ; WCHAR32="0" ;;
14035  *) ;;
14036esac
14037
14038
14039 if test x$os2 = xtrue; then
14040  OS2_TRUE=
14041  OS2_FALSE='#'
14042else
14043  OS2_TRUE='#'
14044  OS2_FALSE=
14045fi
14046
14047
14048
14049# Check whether --with-launchd was given.
14050if test "${with_launchd+set}" = set; then :
14051  withval=$with_launchd; LAUNCHD=$withval
14052else
14053  LAUNCHD=auto
14054fi
14055
14056if test "x$LAUNCHD" = xauto; then
14057	unset LAUNCHD
14058	# Extract the first word of "launchd", so it can be a program name with args.
14059set dummy launchd; ac_word=$2
14060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14061$as_echo_n "checking for $ac_word... " >&6; }
14062if ${ac_cv_prog_LAUNCHD+:} false; then :
14063  $as_echo_n "(cached) " >&6
14064else
14065  if test -n "$LAUNCHD"; then
14066  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
14067else
14068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14069for as_dir in $PATH$PATH_SEPARATOR/sbin
14070do
14071  IFS=$as_save_IFS
14072  test -z "$as_dir" && as_dir=.
14073    for ac_exec_ext in '' $ac_executable_extensions; do
14074  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14075    ac_cv_prog_LAUNCHD="yes"
14076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14077    break 2
14078  fi
14079done
14080  done
14081IFS=$as_save_IFS
14082
14083  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
14084fi
14085fi
14086LAUNCHD=$ac_cv_prog_LAUNCHD
14087if test -n "$LAUNCHD"; then
14088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
14089$as_echo "$LAUNCHD" >&6; }
14090else
14091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14092$as_echo "no" >&6; }
14093fi
14094
14095
14096fi
14097
14098if test "x$LAUNCHD" = xyes ; then
14099
14100$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
14101
14102
14103$as_echo "#define TRANS_REOPEN 1" >>confdefs.h
14104
14105fi
14106
14107# Check whether --enable-xthreads was given.
14108if test "${enable_xthreads+set}" = set; then :
14109  enableval=$enable_xthreads; xthreads=$enableval
14110else
14111  xthreads=yes
14112fi
14113
14114
14115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5
14116$as_echo_n "checking for getpwuid_r in -lc... " >&6; }
14117if ${ac_cv_lib_c_getpwuid_r+:} false; then :
14118  $as_echo_n "(cached) " >&6
14119else
14120  ac_check_lib_save_LIBS=$LIBS
14121LIBS="-lc  $LIBS"
14122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123/* end confdefs.h.  */
14124
14125/* Override any GCC internal prototype to avoid an error.
14126   Use char because int might match the return type of a GCC
14127   builtin and then its argument prototype would still apply.  */
14128#ifdef __cplusplus
14129extern "C"
14130#endif
14131char getpwuid_r ();
14132int
14133main ()
14134{
14135return getpwuid_r ();
14136  ;
14137  return 0;
14138}
14139_ACEOF
14140if ac_fn_c_try_link "$LINENO"; then :
14141  ac_cv_lib_c_getpwuid_r=yes
14142else
14143  ac_cv_lib_c_getpwuid_r=no
14144fi
14145rm -f core conftest.err conftest.$ac_objext \
14146    conftest$ac_exeext conftest.$ac_ext
14147LIBS=$ac_check_lib_save_LIBS
14148fi
14149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5
14150$as_echo "$ac_cv_lib_c_getpwuid_r" >&6; }
14151if test "x$ac_cv_lib_c_getpwuid_r" = xyes; then :
14152  mtsafeapi="yes"
14153else
14154  mtsafeapi="no"
14155fi
14156
14157
14158case x$xthreads in
14159xyes)
14160
14161$as_echo "#define XTHREADS 1" >>confdefs.h
14162
14163	if test x$mtsafeapi = xyes
14164	then
14165
14166$as_echo "#define XUSE_MTSAFE_API 1" >>confdefs.h
14167
14168	fi
14169	;;
14170*)
14171	;;
14172esac
14173
14174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5
14175$as_echo_n "checking for pthread_self in -lc... " >&6; }
14176if ${ac_cv_lib_c_pthread_self+:} false; then :
14177  $as_echo_n "(cached) " >&6
14178else
14179  ac_check_lib_save_LIBS=$LIBS
14180LIBS="-lc  $LIBS"
14181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182/* end confdefs.h.  */
14183
14184/* Override any GCC internal prototype to avoid an error.
14185   Use char because int might match the return type of a GCC
14186   builtin and then its argument prototype would still apply.  */
14187#ifdef __cplusplus
14188extern "C"
14189#endif
14190char pthread_self ();
14191int
14192main ()
14193{
14194return pthread_self ();
14195  ;
14196  return 0;
14197}
14198_ACEOF
14199if ac_fn_c_try_link "$LINENO"; then :
14200  ac_cv_lib_c_pthread_self=yes
14201else
14202  ac_cv_lib_c_pthread_self=no
14203fi
14204rm -f core conftest.err conftest.$ac_objext \
14205    conftest$ac_exeext conftest.$ac_ext
14206LIBS=$ac_check_lib_save_LIBS
14207fi
14208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5
14209$as_echo "$ac_cv_lib_c_pthread_self" >&6; }
14210if test "x$ac_cv_lib_c_pthread_self" = xyes; then :
14211  thrstubs="no"
14212else
14213  thrstubs="yes"
14214fi
14215
14216 if test x$thrstubs = xyes; then
14217  THRSTUBS_TRUE=
14218  THRSTUBS_FALSE='#'
14219else
14220  THRSTUBS_TRUE='#'
14221  THRSTUBS_FALSE=
14222fi
14223
14224
14225# XXX incomplete, please fill this in
14226if test x$xthreads = xyes ; then
14227    case $host_os in
14228    linux*|gnu*|k*bsd*-gnu)
14229        XTHREADLIB=-lpthread ;;
14230    netbsd*)
14231	XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
14232	XTHREADLIB="-lpthread" ;;
14233    freebsd*)
14234        XTHREAD_CFLAGS="-D_THREAD_SAFE"
14235        XTHREADLIB="-pthread" ;;
14236    dragonfly*|openbsd*)
14237        XTHREADLIB="-pthread" ;;
14238    solaris*)
14239	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
14240    esac
14241fi
14242
14243
14244
14245ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
14246if test "x$ac_cv_func_poll" = xyes; then :
14247
14248$as_echo "#define USE_POLL 1" >>confdefs.h
14249
14250fi
14251
14252
14253#
14254# Find keysymdef.h
14255#
14256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5
14257$as_echo_n "checking keysym definitions... " >&6; }
14258KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
14259FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
14260for i in $FILES; do
14261    if test -f "$KEYSYMDEFDIR/$i"; then
14262            KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i"
14263    elif test "x$i" = "xkeysymdef.h"; then
14264	    as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5
14265    fi
14266done
14267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5
14268$as_echo "$KEYSYMDEFS" >&6; }
14269
14270
14271 if test xfalse = xtrue; then
14272  UDC_TRUE=
14273  UDC_FALSE='#'
14274else
14275  UDC_TRUE='#'
14276  UDC_FALSE=
14277fi
14278
14279
14280# Check whether --enable-xcms was given.
14281if test "${enable_xcms+set}" = set; then :
14282  enableval=$enable_xcms; XCMS=$enableval
14283else
14284  XCMS=yes
14285fi
14286
14287 if test x$XCMS = xyes ; then
14288  XCMS_TRUE=
14289  XCMS_FALSE='#'
14290else
14291  XCMS_TRUE='#'
14292  XCMS_FALSE=
14293fi
14294
14295if test x"$XCMS" = "xyes"; then
14296
14297$as_echo "#define XCMS 1" >>confdefs.h
14298
14299fi
14300
14301# Check whether --enable-xlocale was given.
14302if test "${enable_xlocale+set}" = set; then :
14303  enableval=$enable_xlocale; XLOCALE=$enableval
14304else
14305  XLOCALE=yes
14306fi
14307
14308
14309 if  test x$XLOCALE = xyes ; then
14310  XLOCALE_TRUE=
14311  XLOCALE_FALSE='#'
14312else
14313  XLOCALE_TRUE='#'
14314  XLOCALE_FALSE=
14315fi
14316
14317if test x"$XLOCALE" = "xyes"; then
14318
14319$as_echo "#define XLOCALE 1" >>confdefs.h
14320
14321fi
14322
14323# This disables XLOCALEDIR.  Set it if you're using BuildLoadableXlibI18n,
14324# don't have either issetugid() or getresuid(), and you need to protect
14325# clients that are setgid or setuid to an id other than 0.
14326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5
14327$as_echo_n "checking if XLOCALEDIR support should be enabled... " >&6; }
14328# Check whether --enable-xlocaledir was given.
14329if test "${enable_xlocaledir+set}" = set; then :
14330  enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval
14331else
14332  ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE
14333fi
14334
14335if test "x$ENABLE_XLOCALEDIR" = "xno"; then
14336
14337$as_echo "#define NO_XLOCALEDIR 1" >>confdefs.h
14338
14339fi
14340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5
14341$as_echo "$ENABLE_XLOCALEDIR" >&6; }
14342
14343# Check whether --enable-xf86bigfont was given.
14344if test "${enable_xf86bigfont+set}" = set; then :
14345  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
14346else
14347  XF86BIGFONT="yes"
14348fi
14349
14350if test "x$XF86BIGFONT" = "xyes"; then
14351
14352pkg_failed=no
14353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5
14354$as_echo_n "checking for BIGFONT... " >&6; }
14355
14356if test -n "$BIGFONT_CFLAGS"; then
14357    pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS"
14358 elif test -n "$PKG_CONFIG"; then
14359    if test -n "$PKG_CONFIG" && \
14360    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
14361  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
14362  ac_status=$?
14363  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14364  test $ac_status = 0; }; then
14365  pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null`
14366else
14367  pkg_failed=yes
14368fi
14369 else
14370    pkg_failed=untried
14371fi
14372if test -n "$BIGFONT_LIBS"; then
14373    pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS"
14374 elif test -n "$PKG_CONFIG"; then
14375    if test -n "$PKG_CONFIG" && \
14376    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
14377  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
14378  ac_status=$?
14379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14380  test $ac_status = 0; }; then
14381  pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null`
14382else
14383  pkg_failed=yes
14384fi
14385 else
14386    pkg_failed=untried
14387fi
14388
14389
14390
14391if test $pkg_failed = yes; then
14392
14393if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14394        _pkg_short_errors_supported=yes
14395else
14396        _pkg_short_errors_supported=no
14397fi
14398        if test $_pkg_short_errors_supported = yes; then
14399	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xf86bigfontproto >= 1.2.0" 2>&1`
14400        else
14401	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xf86bigfontproto >= 1.2.0" 2>&1`
14402        fi
14403	# Put the nasty error message in config.log where it belongs
14404	echo "$BIGFONT_PKG_ERRORS" >&5
14405
14406	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14407$as_echo "no" >&6; }
14408                XF86BIGFONT="no"
14409elif test $pkg_failed = untried; then
14410	XF86BIGFONT="no"
14411else
14412	BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS
14413	BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS
14414        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14415$as_echo "yes" >&6; }
14416
14417$as_echo "#define XF86BIGFONT 1" >>confdefs.h
14418
14419fi
14420fi
14421
14422# Check whether --enable-xkb was given.
14423if test "${enable_xkb+set}" = set; then :
14424  enableval=$enable_xkb; XKB=$enableval
14425else
14426  XKB=yes
14427fi
14428
14429
14430 if  test x$XKB = xyes ; then
14431  XKB_TRUE=
14432  XKB_FALSE='#'
14433else
14434  XKB_TRUE='#'
14435  XKB_FALSE=
14436fi
14437
14438if test x"$XKB" = "xyes"; then
14439   XKBPROTO_REQUIRES="kbproto"
14440   X11_REQUIRES="${X11_REQUIRES} kbproto inputproto"
14441
14442$as_echo "#define XKB 1" >>confdefs.h
14443
14444else
14445   XKBPROTO_REQUIRES=""
14446fi
14447
14448
14449
14450
14451
14452  for ac_header in $ac_header_list
14453do :
14454  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14455ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14456"
14457if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14458  cat >>confdefs.h <<_ACEOF
14459#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14460_ACEOF
14461
14462fi
14463
14464done
14465
14466
14467
14468
14469
14470
14471
14472
14473for ac_func in getpagesize
14474do :
14475  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14476if test "x$ac_cv_func_getpagesize" = xyes; then :
14477  cat >>confdefs.h <<_ACEOF
14478#define HAVE_GETPAGESIZE 1
14479_ACEOF
14480
14481fi
14482done
14483
14484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14485$as_echo_n "checking for working mmap... " >&6; }
14486if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14487  $as_echo_n "(cached) " >&6
14488else
14489  if test "$cross_compiling" = yes; then :
14490  ac_cv_func_mmap_fixed_mapped=no
14491else
14492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14493/* end confdefs.h.  */
14494$ac_includes_default
14495/* malloc might have been renamed as rpl_malloc. */
14496#undef malloc
14497
14498/* Thanks to Mike Haertel and Jim Avera for this test.
14499   Here is a matrix of mmap possibilities:
14500	mmap private not fixed
14501	mmap private fixed at somewhere currently unmapped
14502	mmap private fixed at somewhere already mapped
14503	mmap shared not fixed
14504	mmap shared fixed at somewhere currently unmapped
14505	mmap shared fixed at somewhere already mapped
14506   For private mappings, we should verify that changes cannot be read()
14507   back from the file, nor mmap's back from the file at a different
14508   address.  (There have been systems where private was not correctly
14509   implemented like the infamous i386 svr4.0, and systems where the
14510   VM page cache was not coherent with the file system buffer cache
14511   like early versions of FreeBSD and possibly contemporary NetBSD.)
14512   For shared mappings, we should conversely verify that changes get
14513   propagated back to all the places they're supposed to be.
14514
14515   Grep wants private fixed already mapped.
14516   The main things grep needs to know about mmap are:
14517   * does it exist and is it safe to write into the mmap'd area
14518   * how to use it (BSD variants)  */
14519
14520#include <fcntl.h>
14521#include <sys/mman.h>
14522
14523#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14524char *malloc ();
14525#endif
14526
14527/* This mess was copied from the GNU getpagesize.h.  */
14528#ifndef HAVE_GETPAGESIZE
14529# ifdef _SC_PAGESIZE
14530#  define getpagesize() sysconf(_SC_PAGESIZE)
14531# else /* no _SC_PAGESIZE */
14532#  ifdef HAVE_SYS_PARAM_H
14533#   include <sys/param.h>
14534#   ifdef EXEC_PAGESIZE
14535#    define getpagesize() EXEC_PAGESIZE
14536#   else /* no EXEC_PAGESIZE */
14537#    ifdef NBPG
14538#     define getpagesize() NBPG * CLSIZE
14539#     ifndef CLSIZE
14540#      define CLSIZE 1
14541#     endif /* no CLSIZE */
14542#    else /* no NBPG */
14543#     ifdef NBPC
14544#      define getpagesize() NBPC
14545#     else /* no NBPC */
14546#      ifdef PAGESIZE
14547#       define getpagesize() PAGESIZE
14548#      endif /* PAGESIZE */
14549#     endif /* no NBPC */
14550#    endif /* no NBPG */
14551#   endif /* no EXEC_PAGESIZE */
14552#  else /* no HAVE_SYS_PARAM_H */
14553#   define getpagesize() 8192	/* punt totally */
14554#  endif /* no HAVE_SYS_PARAM_H */
14555# endif /* no _SC_PAGESIZE */
14556
14557#endif /* no HAVE_GETPAGESIZE */
14558
14559int
14560main ()
14561{
14562  char *data, *data2, *data3;
14563  const char *cdata2;
14564  int i, pagesize;
14565  int fd, fd2;
14566
14567  pagesize = getpagesize ();
14568
14569  /* First, make a file with some known garbage in it. */
14570  data = (char *) malloc (pagesize);
14571  if (!data)
14572    return 1;
14573  for (i = 0; i < pagesize; ++i)
14574    *(data + i) = rand ();
14575  umask (0);
14576  fd = creat ("conftest.mmap", 0600);
14577  if (fd < 0)
14578    return 2;
14579  if (write (fd, data, pagesize) != pagesize)
14580    return 3;
14581  close (fd);
14582
14583  /* Next, check that the tail of a page is zero-filled.  File must have
14584     non-zero length, otherwise we risk SIGBUS for entire page.  */
14585  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14586  if (fd2 < 0)
14587    return 4;
14588  cdata2 = "";
14589  if (write (fd2, cdata2, 1) != 1)
14590    return 5;
14591  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14592  if (data2 == MAP_FAILED)
14593    return 6;
14594  for (i = 0; i < pagesize; ++i)
14595    if (*(data2 + i))
14596      return 7;
14597  close (fd2);
14598  if (munmap (data2, pagesize))
14599    return 8;
14600
14601  /* Next, try to mmap the file at a fixed address which already has
14602     something else allocated at it.  If we can, also make sure that
14603     we see the same garbage.  */
14604  fd = open ("conftest.mmap", O_RDWR);
14605  if (fd < 0)
14606    return 9;
14607  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14608		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
14609    return 10;
14610  for (i = 0; i < pagesize; ++i)
14611    if (*(data + i) != *(data2 + i))
14612      return 11;
14613
14614  /* Finally, make sure that changes to the mapped area do not
14615     percolate back to the file as seen by read().  (This is a bug on
14616     some variants of i386 svr4.0.)  */
14617  for (i = 0; i < pagesize; ++i)
14618    *(data2 + i) = *(data2 + i) + 1;
14619  data3 = (char *) malloc (pagesize);
14620  if (!data3)
14621    return 12;
14622  if (read (fd, data3, pagesize) != pagesize)
14623    return 13;
14624  for (i = 0; i < pagesize; ++i)
14625    if (*(data + i) != *(data3 + i))
14626      return 14;
14627  close (fd);
14628  return 0;
14629}
14630_ACEOF
14631if ac_fn_c_try_run "$LINENO"; then :
14632  ac_cv_func_mmap_fixed_mapped=yes
14633else
14634  ac_cv_func_mmap_fixed_mapped=no
14635fi
14636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14637  conftest.$ac_objext conftest.beam conftest.$ac_ext
14638fi
14639
14640fi
14641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14642$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14643if test $ac_cv_func_mmap_fixed_mapped = yes; then
14644
14645$as_echo "#define HAVE_MMAP 1" >>confdefs.h
14646
14647fi
14648rm -f conftest.mmap conftest.txt
14649
14650composecache_default=$ac_cv_func_mmap_fixed_mapped
14651ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
14652if test "x$ac_cv_func_nl_langinfo" = xyes; then :
14653
14654else
14655  composecache_default=no
14656fi
14657
14658# Check whether --enable-composecache was given.
14659if test "${enable_composecache+set}" = set; then :
14660  enableval=$enable_composecache; COMPOSECACHE=$enableval
14661else
14662  COMPOSECACHE=$composecache_default
14663fi
14664
14665if test x"$COMPOSECACHE" = "xyes"; then
14666
14667$as_echo "#define COMPOSECACHE 1" >>confdefs.h
14668
14669fi
14670
14671# Allow checking code with lint, sparse, etc.
14672
14673
14674
14675
14676
14677# Check whether --with-lint was given.
14678if test "${with_lint+set}" = set; then :
14679  withval=$with_lint; use_lint=$withval
14680else
14681  use_lint=no
14682fi
14683
14684
14685# Obtain platform specific info like program name and options
14686# The lint program on FreeBSD and NetBSD is different from the one on Solaris
14687case $host_os in
14688  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
14689	lint_name=splint
14690	lint_options="-badflag"
14691	;;
14692  *freebsd* | *netbsd*)
14693	lint_name=lint
14694	lint_options="-u -b"
14695	;;
14696  *solaris*)
14697	lint_name=lint
14698	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
14699	;;
14700esac
14701
14702# Test for the presence of the program (either guessed by the code or spelled out by the user)
14703if test "x$use_lint" = x"yes" ; then
14704   # Extract the first word of "$lint_name", so it can be a program name with args.
14705set dummy $lint_name; ac_word=$2
14706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14707$as_echo_n "checking for $ac_word... " >&6; }
14708if ${ac_cv_path_LINT+:} false; then :
14709  $as_echo_n "(cached) " >&6
14710else
14711  case $LINT in
14712  [\\/]* | ?:[\\/]*)
14713  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
14714  ;;
14715  *)
14716  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14717for as_dir in $PATH
14718do
14719  IFS=$as_save_IFS
14720  test -z "$as_dir" && as_dir=.
14721    for ac_exec_ext in '' $ac_executable_extensions; do
14722  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14723    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
14724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14725    break 2
14726  fi
14727done
14728  done
14729IFS=$as_save_IFS
14730
14731  ;;
14732esac
14733fi
14734LINT=$ac_cv_path_LINT
14735if test -n "$LINT"; then
14736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
14737$as_echo "$LINT" >&6; }
14738else
14739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14740$as_echo "no" >&6; }
14741fi
14742
14743
14744   if test "x$LINT" = "x"; then
14745        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
14746   fi
14747elif test "x$use_lint" = x"no" ; then
14748   if test "x$LINT" != "x"; then
14749      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
14750$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
14751   fi
14752else
14753   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
14754fi
14755
14756# User supplied flags override default flags
14757if test "x$LINT_FLAGS" != "x"; then
14758   lint_options=$LINT_FLAGS
14759fi
14760
14761LINT_FLAGS=$lint_options
14762
14763 if test "x$LINT" != x; then
14764  LINT_TRUE=
14765  LINT_FALSE='#'
14766else
14767  LINT_TRUE='#'
14768  LINT_FALSE=
14769fi
14770
14771
14772
14773
14774
14775# Check whether --enable-lint-library was given.
14776if test "${enable_lint_library+set}" = set; then :
14777  enableval=$enable_lint_library; make_lint_lib=$enableval
14778else
14779  make_lint_lib=no
14780fi
14781
14782
14783if test "x$make_lint_lib" = x"yes" ; then
14784   LINTLIB=llib-lX11.ln
14785   if test "x$LINT" = "x"; then
14786        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
14787   fi
14788elif test "x$make_lint_lib" != x"no" ; then
14789   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
14790fi
14791
14792
14793 if test x$make_lint_lib != xno; then
14794  MAKE_LINT_LIB_TRUE=
14795  MAKE_LINT_LIB_FALSE='#'
14796else
14797  MAKE_LINT_LIB_TRUE='#'
14798  MAKE_LINT_LIB_FALSE=
14799fi
14800
14801
14802
14803
14804X11_DATADIR="${datadir}/X11"
14805
14806  prefix_NONE=
14807  exec_prefix_NONE=
14808  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14809  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14810  eval ax_define_dir="\"$X11_DATADIR\""
14811  eval ax_define_dir="\"$ax_define_dir\""
14812  X11_DATADIR="$ax_define_dir"
14813
14814
14815cat >>confdefs.h <<_ACEOF
14816#define X11_DATADIR "$ax_define_dir"
14817_ACEOF
14818
14819  test "$prefix_NONE" && prefix=NONE
14820  test "$exec_prefix_NONE" && exec_prefix=NONE
14821
14822
14823
14824X11_LIBDIR="${libdir}/X11"
14825
14826  prefix_NONE=
14827  exec_prefix_NONE=
14828  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14829  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14830  eval ax_define_dir="\"$X11_LIBDIR\""
14831  eval ax_define_dir="\"$ax_define_dir\""
14832  X11_LIBDIR="$ax_define_dir"
14833
14834
14835cat >>confdefs.h <<_ACEOF
14836#define X11_LIBDIR "$ax_define_dir"
14837_ACEOF
14838
14839  test "$prefix_NONE" && prefix=NONE
14840  test "$exec_prefix_NONE" && exec_prefix=NONE
14841
14842
14843
14844
14845pkg_failed=no
14846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
14847$as_echo_n "checking for X11... " >&6; }
14848
14849if test -n "$X11_CFLAGS"; then
14850    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
14851 elif test -n "$PKG_CONFIG"; then
14852    if test -n "$PKG_CONFIG" && \
14853    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
14854  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
14855  ac_status=$?
14856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14857  test $ac_status = 0; }; then
14858  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null`
14859else
14860  pkg_failed=yes
14861fi
14862 else
14863    pkg_failed=untried
14864fi
14865if test -n "$X11_LIBS"; then
14866    pkg_cv_X11_LIBS="$X11_LIBS"
14867 elif test -n "$PKG_CONFIG"; then
14868    if test -n "$PKG_CONFIG" && \
14869    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
14870  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
14871  ac_status=$?
14872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14873  test $ac_status = 0; }; then
14874  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null`
14875else
14876  pkg_failed=yes
14877fi
14878 else
14879    pkg_failed=untried
14880fi
14881
14882
14883
14884if test $pkg_failed = yes; then
14885
14886if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14887        _pkg_short_errors_supported=yes
14888else
14889        _pkg_short_errors_supported=no
14890fi
14891        if test $_pkg_short_errors_supported = yes; then
14892	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$X11_REQUIRES" 2>&1`
14893        else
14894	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "$X11_REQUIRES" 2>&1`
14895        fi
14896	# Put the nasty error message in config.log where it belongs
14897	echo "$X11_PKG_ERRORS" >&5
14898
14899	as_fn_error $? "Package requirements ($X11_REQUIRES) were not met:
14900
14901$X11_PKG_ERRORS
14902
14903Consider adjusting the PKG_CONFIG_PATH environment variable if you
14904installed software in a non-standard prefix.
14905
14906Alternatively, you may set the environment variables X11_CFLAGS
14907and X11_LIBS to avoid the need to call pkg-config.
14908See the pkg-config man page for more details.
14909" "$LINENO" 5
14910elif test $pkg_failed = untried; then
14911	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14913as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14914is in your PATH or set the PKG_CONFIG environment variable to the full
14915path to pkg-config.
14916
14917Alternatively, you may set the environment variables X11_CFLAGS
14918and X11_LIBS to avoid the need to call pkg-config.
14919See the pkg-config man page for more details.
14920
14921To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14922See \`config.log' for more details" "$LINENO" 5; }
14923else
14924	X11_CFLAGS=$pkg_cv_X11_CFLAGS
14925	X11_LIBS=$pkg_cv_X11_LIBS
14926        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14927$as_echo "yes" >&6; }
14928	:
14929fi
14930X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS"
14931
14932#
14933# Yes, it would be nice to put the locale data in
14934# /usr/share, but the locale stuff includes loadable
14935# libraries which must be located in the same directory
14936# as the other locale data, so for now, everything lives
14937# in ${libdir}
14938#
14939
14940X11_LOCALEDATADIR="${X11_DATADIR}/locale"
14941
14942  prefix_NONE=
14943  exec_prefix_NONE=
14944  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14945  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14946  eval ax_define_dir="\"$X11_LOCALEDATADIR\""
14947  eval ax_define_dir="\"$ax_define_dir\""
14948  XLOCALEDATADIR="$ax_define_dir"
14949
14950
14951cat >>confdefs.h <<_ACEOF
14952#define XLOCALEDATADIR "$ax_define_dir"
14953_ACEOF
14954
14955  test "$prefix_NONE" && prefix=NONE
14956  test "$exec_prefix_NONE" && exec_prefix=NONE
14957
14958
14959
14960
14961# Check whether --with-locale-lib-dir was given.
14962if test "${with_locale_lib_dir+set}" = set; then :
14963  withval=$with_locale_lib_dir;  X11_LOCALELIBDIR="$withval"
14964else
14965   X11_LOCALELIBDIR="${X11_LIBDIR}/locale"
14966fi
14967
14968
14969  prefix_NONE=
14970  exec_prefix_NONE=
14971  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14972  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14973  eval ax_define_dir="\"$X11_LOCALELIBDIR\""
14974  eval ax_define_dir="\"$ax_define_dir\""
14975  XLOCALELIBDIR="$ax_define_dir"
14976
14977
14978cat >>confdefs.h <<_ACEOF
14979#define XLOCALELIBDIR "$ax_define_dir"
14980_ACEOF
14981
14982  test "$prefix_NONE" && prefix=NONE
14983  test "$exec_prefix_NONE" && exec_prefix=NONE
14984
14985
14986
14987X11_LOCALEDIR="${X11_LOCALEDATADIR}"
14988
14989  prefix_NONE=
14990  exec_prefix_NONE=
14991  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14992  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14993  eval ax_define_dir="\"$X11_LOCALEDIR\""
14994  eval ax_define_dir="\"$ax_define_dir\""
14995  XLOCALEDIR="$ax_define_dir"
14996
14997
14998cat >>confdefs.h <<_ACEOF
14999#define XLOCALEDIR "$ax_define_dir"
15000_ACEOF
15001
15002  test "$prefix_NONE" && prefix=NONE
15003  test "$exec_prefix_NONE" && exec_prefix=NONE
15004
15005
15006
15007XKEYSYMDB="${X11_DATADIR}/XKeysymDB"
15008
15009  prefix_NONE=
15010  exec_prefix_NONE=
15011  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15012  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15013  eval ax_define_dir="\"$XKEYSYMDB\""
15014  eval ax_define_dir="\"$ax_define_dir\""
15015  XKEYSYMDB="$ax_define_dir"
15016
15017
15018cat >>confdefs.h <<_ACEOF
15019#define XKEYSYMDB "$ax_define_dir"
15020_ACEOF
15021
15022  test "$prefix_NONE" && prefix=NONE
15023  test "$exec_prefix_NONE" && exec_prefix=NONE
15024
15025
15026XERRORDB="${X11_DATADIR}/XErrorDB"
15027
15028  prefix_NONE=
15029  exec_prefix_NONE=
15030  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15031  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15032  eval ax_define_dir="\"$XERRORDB\""
15033  eval ax_define_dir="\"$ax_define_dir\""
15034  XERRORDB="$ax_define_dir"
15035
15036
15037cat >>confdefs.h <<_ACEOF
15038#define XERRORDB "$ax_define_dir"
15039_ACEOF
15040
15041  test "$prefix_NONE" && prefix=NONE
15042  test "$exec_prefix_NONE" && exec_prefix=NONE
15043
15044
15045
15046# Check whether --enable-malloc0returnsnull was given.
15047if test "${enable_malloc0returnsnull+set}" = set; then :
15048  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
15049else
15050  MALLOC_ZERO_RETURNS_NULL=auto
15051fi
15052
15053
15054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
15055$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
15056if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
15057	if test "$cross_compiling" = yes; then :
15058  MALLOC_ZERO_RETURNS_NULL=yes
15059else
15060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15061/* end confdefs.h.  */
15062
15063#include <stdlib.h>
15064
15065int
15066main ()
15067{
15068
15069    char *m0, *r0, *c0, *p;
15070    m0 = malloc(0);
15071    p = malloc(10);
15072    r0 = realloc(p,0);
15073    c0 = calloc(0,10);
15074    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
15075
15076  ;
15077  return 0;
15078}
15079_ACEOF
15080if ac_fn_c_try_run "$LINENO"; then :
15081  MALLOC_ZERO_RETURNS_NULL=yes
15082else
15083  MALLOC_ZERO_RETURNS_NULL=no
15084fi
15085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15086  conftest.$ac_objext conftest.beam conftest.$ac_ext
15087fi
15088
15089fi
15090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
15091$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
15092
15093if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
15094	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
15095	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
15096	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
15097else
15098	MALLOC_ZERO_CFLAGS=""
15099	XMALLOC_ZERO_CFLAGS=""
15100	XTMALLOC_ZERO_CFLAGS=""
15101fi
15102
15103
15104
15105
15106
15107
15108ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile man/xkb/Makefile src/Makefile src/util/Makefile src/xcms/Makefile src/xlibi18n/Makefile modules/Makefile modules/im/Makefile modules/im/ximcp/Makefile modules/lc/Makefile modules/lc/def/Makefile modules/lc/gen/Makefile modules/lc/Utf8/Makefile modules/lc/xlocale/Makefile modules/om/Makefile modules/om/generic/Makefile src/xkb/Makefile nls/Makefile specs/Makefile specs/i18n/Makefile specs/i18n/framework/Makefile specs/i18n/localedb/Makefile specs/i18n/trans/Makefile specs/libX11/Makefile specs/XIM/Makefile specs/XKB/Makefile x11.pc x11-xcb.pc"
15109
15110cat >confcache <<\_ACEOF
15111# This file is a shell script that caches the results of configure
15112# tests run on this system so they can be shared between configure
15113# scripts and configure runs, see configure's option --config-cache.
15114# It is not useful on other systems.  If it contains results you don't
15115# want to keep, you may remove or edit it.
15116#
15117# config.status only pays attention to the cache file if you give it
15118# the --recheck option to rerun configure.
15119#
15120# `ac_cv_env_foo' variables (set or unset) will be overridden when
15121# loading this file, other *unset* `ac_cv_foo' will be assigned the
15122# following values.
15123
15124_ACEOF
15125
15126# The following way of writing the cache mishandles newlines in values,
15127# but we know of no workaround that is simple, portable, and efficient.
15128# So, we kill variables containing newlines.
15129# Ultrix sh set writes to stderr and can't be redirected directly,
15130# and sets the high bit in the cache file unless we assign to the vars.
15131(
15132  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15133    eval ac_val=\$$ac_var
15134    case $ac_val in #(
15135    *${as_nl}*)
15136      case $ac_var in #(
15137      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15138$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15139      esac
15140      case $ac_var in #(
15141      _ | IFS | as_nl) ;; #(
15142      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15143      *) { eval $ac_var=; unset $ac_var;} ;;
15144      esac ;;
15145    esac
15146  done
15147
15148  (set) 2>&1 |
15149    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15150    *${as_nl}ac_space=\ *)
15151      # `set' does not quote correctly, so add quotes: double-quote
15152      # substitution turns \\\\ into \\, and sed turns \\ into \.
15153      sed -n \
15154	"s/'/'\\\\''/g;
15155	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15156      ;; #(
15157    *)
15158      # `set' quotes correctly as required by POSIX, so do not add quotes.
15159      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15160      ;;
15161    esac |
15162    sort
15163) |
15164  sed '
15165     /^ac_cv_env_/b end
15166     t clear
15167     :clear
15168     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15169     t end
15170     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15171     :end' >>confcache
15172if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15173  if test -w "$cache_file"; then
15174    if test "x$cache_file" != "x/dev/null"; then
15175      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15176$as_echo "$as_me: updating cache $cache_file" >&6;}
15177      if test ! -f "$cache_file" || test -h "$cache_file"; then
15178	cat confcache >"$cache_file"
15179      else
15180        case $cache_file in #(
15181        */* | ?:*)
15182	  mv -f confcache "$cache_file"$$ &&
15183	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15184        *)
15185	  mv -f confcache "$cache_file" ;;
15186	esac
15187      fi
15188    fi
15189  else
15190    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15191$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15192  fi
15193fi
15194rm -f confcache
15195
15196test "x$prefix" = xNONE && prefix=$ac_default_prefix
15197# Let make expand exec_prefix.
15198test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15199
15200DEFS=-DHAVE_CONFIG_H
15201
15202ac_libobjs=
15203ac_ltlibobjs=
15204U=
15205for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15206  # 1. Remove the extension, and $U if already installed.
15207  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15208  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15209  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15210  #    will be set to the directory where LIBOBJS objects are built.
15211  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15212  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15213done
15214LIBOBJS=$ac_libobjs
15215
15216LTLIBOBJS=$ac_ltlibobjs
15217
15218
15219if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15220  as_fn_error $? "conditional \"AMDEP\" was never defined.
15221Usually this means the macro was only invoked conditionally." "$LINENO" 5
15222fi
15223if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15224  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15225Usually this means the macro was only invoked conditionally." "$LINENO" 5
15226fi
15227 if test -n "$EXEEXT"; then
15228  am__EXEEXT_TRUE=
15229  am__EXEEXT_FALSE='#'
15230else
15231  am__EXEEXT_TRUE='#'
15232  am__EXEEXT_FALSE=
15233fi
15234
15235if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15236  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15237Usually this means the macro was only invoked conditionally." "$LINENO" 5
15238fi
15239if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
15240  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
15241Usually this means the macro was only invoked conditionally." "$LINENO" 5
15242fi
15243if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
15244  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
15245Usually this means the macro was only invoked conditionally." "$LINENO" 5
15246fi
15247if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
15248  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
15249Usually this means the macro was only invoked conditionally." "$LINENO" 5
15250fi
15251if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
15252  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
15253Usually this means the macro was only invoked conditionally." "$LINENO" 5
15254fi
15255if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
15256  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
15257Usually this means the macro was only invoked conditionally." "$LINENO" 5
15258fi
15259if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
15260  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
15261Usually this means the macro was only invoked conditionally." "$LINENO" 5
15262fi
15263if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
15264  as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
15265Usually this means the macro was only invoked conditionally." "$LINENO" 5
15266fi
15267if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then
15268  as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined.
15269Usually this means the macro was only invoked conditionally." "$LINENO" 5
15270fi
15271if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then
15272  as_fn_error $? "conditional \"OS2\" was never defined.
15273Usually this means the macro was only invoked conditionally." "$LINENO" 5
15274fi
15275if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then
15276  as_fn_error $? "conditional \"THRSTUBS\" was never defined.
15277Usually this means the macro was only invoked conditionally." "$LINENO" 5
15278fi
15279if test -z "${UDC_TRUE}" && test -z "${UDC_FALSE}"; then
15280  as_fn_error $? "conditional \"UDC\" was never defined.
15281Usually this means the macro was only invoked conditionally." "$LINENO" 5
15282fi
15283if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then
15284  as_fn_error $? "conditional \"XCMS\" was never defined.
15285Usually this means the macro was only invoked conditionally." "$LINENO" 5
15286fi
15287if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then
15288  as_fn_error $? "conditional \"XLOCALE\" was never defined.
15289Usually this means the macro was only invoked conditionally." "$LINENO" 5
15290fi
15291if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then
15292  as_fn_error $? "conditional \"XKB\" was never defined.
15293Usually this means the macro was only invoked conditionally." "$LINENO" 5
15294fi
15295if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
15296  as_fn_error $? "conditional \"LINT\" was never defined.
15297Usually this means the macro was only invoked conditionally." "$LINENO" 5
15298fi
15299if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
15300  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
15301Usually this means the macro was only invoked conditionally." "$LINENO" 5
15302fi
15303
15304: "${CONFIG_STATUS=./config.status}"
15305ac_write_fail=0
15306ac_clean_files_save=$ac_clean_files
15307ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15308{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15309$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15310as_write_fail=0
15311cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15312#! $SHELL
15313# Generated by $as_me.
15314# Run this file to recreate the current configuration.
15315# Compiler output produced by configure, useful for debugging
15316# configure, is in config.log if it exists.
15317
15318debug=false
15319ac_cs_recheck=false
15320ac_cs_silent=false
15321
15322SHELL=\${CONFIG_SHELL-$SHELL}
15323export SHELL
15324_ASEOF
15325cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15326## -------------------- ##
15327## M4sh Initialization. ##
15328## -------------------- ##
15329
15330# Be more Bourne compatible
15331DUALCASE=1; export DUALCASE # for MKS sh
15332if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15333  emulate sh
15334  NULLCMD=:
15335  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15336  # is contrary to our usage.  Disable this feature.
15337  alias -g '${1+"$@"}'='"$@"'
15338  setopt NO_GLOB_SUBST
15339else
15340  case `(set -o) 2>/dev/null` in #(
15341  *posix*) :
15342    set -o posix ;; #(
15343  *) :
15344     ;;
15345esac
15346fi
15347
15348
15349as_nl='
15350'
15351export as_nl
15352# Printing a long string crashes Solaris 7 /usr/bin/printf.
15353as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15354as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15355as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15356# Prefer a ksh shell builtin over an external printf program on Solaris,
15357# but without wasting forks for bash or zsh.
15358if test -z "$BASH_VERSION$ZSH_VERSION" \
15359    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15360  as_echo='print -r --'
15361  as_echo_n='print -rn --'
15362elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15363  as_echo='printf %s\n'
15364  as_echo_n='printf %s'
15365else
15366  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15367    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15368    as_echo_n='/usr/ucb/echo -n'
15369  else
15370    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15371    as_echo_n_body='eval
15372      arg=$1;
15373      case $arg in #(
15374      *"$as_nl"*)
15375	expr "X$arg" : "X\\(.*\\)$as_nl";
15376	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15377      esac;
15378      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15379    '
15380    export as_echo_n_body
15381    as_echo_n='sh -c $as_echo_n_body as_echo'
15382  fi
15383  export as_echo_body
15384  as_echo='sh -c $as_echo_body as_echo'
15385fi
15386
15387# The user is always right.
15388if test "${PATH_SEPARATOR+set}" != set; then
15389  PATH_SEPARATOR=:
15390  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15391    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15392      PATH_SEPARATOR=';'
15393  }
15394fi
15395
15396
15397# IFS
15398# We need space, tab and new line, in precisely that order.  Quoting is
15399# there to prevent editors from complaining about space-tab.
15400# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15401# splitting by setting IFS to empty value.)
15402IFS=" ""	$as_nl"
15403
15404# Find who we are.  Look in the path if we contain no directory separator.
15405as_myself=
15406case $0 in #((
15407  *[\\/]* ) as_myself=$0 ;;
15408  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15409for as_dir in $PATH
15410do
15411  IFS=$as_save_IFS
15412  test -z "$as_dir" && as_dir=.
15413    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15414  done
15415IFS=$as_save_IFS
15416
15417     ;;
15418esac
15419# We did not find ourselves, most probably we were run as `sh COMMAND'
15420# in which case we are not to be found in the path.
15421if test "x$as_myself" = x; then
15422  as_myself=$0
15423fi
15424if test ! -f "$as_myself"; then
15425  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15426  exit 1
15427fi
15428
15429# Unset variables that we do not need and which cause bugs (e.g. in
15430# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15431# suppresses any "Segmentation fault" message there.  '((' could
15432# trigger a bug in pdksh 5.2.14.
15433for as_var in BASH_ENV ENV MAIL MAILPATH
15434do eval test x\${$as_var+set} = xset \
15435  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15436done
15437PS1='$ '
15438PS2='> '
15439PS4='+ '
15440
15441# NLS nuisances.
15442LC_ALL=C
15443export LC_ALL
15444LANGUAGE=C
15445export LANGUAGE
15446
15447# CDPATH.
15448(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15449
15450
15451# as_fn_error STATUS ERROR [LINENO LOG_FD]
15452# ----------------------------------------
15453# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15454# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15455# script with STATUS, using 1 if that was 0.
15456as_fn_error ()
15457{
15458  as_status=$1; test $as_status -eq 0 && as_status=1
15459  if test "$4"; then
15460    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15461    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15462  fi
15463  $as_echo "$as_me: error: $2" >&2
15464  as_fn_exit $as_status
15465} # as_fn_error
15466
15467
15468# as_fn_set_status STATUS
15469# -----------------------
15470# Set $? to STATUS, without forking.
15471as_fn_set_status ()
15472{
15473  return $1
15474} # as_fn_set_status
15475
15476# as_fn_exit STATUS
15477# -----------------
15478# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15479as_fn_exit ()
15480{
15481  set +e
15482  as_fn_set_status $1
15483  exit $1
15484} # as_fn_exit
15485
15486# as_fn_unset VAR
15487# ---------------
15488# Portably unset VAR.
15489as_fn_unset ()
15490{
15491  { eval $1=; unset $1;}
15492}
15493as_unset=as_fn_unset
15494# as_fn_append VAR VALUE
15495# ----------------------
15496# Append the text in VALUE to the end of the definition contained in VAR. Take
15497# advantage of any shell optimizations that allow amortized linear growth over
15498# repeated appends, instead of the typical quadratic growth present in naive
15499# implementations.
15500if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15501  eval 'as_fn_append ()
15502  {
15503    eval $1+=\$2
15504  }'
15505else
15506  as_fn_append ()
15507  {
15508    eval $1=\$$1\$2
15509  }
15510fi # as_fn_append
15511
15512# as_fn_arith ARG...
15513# ------------------
15514# Perform arithmetic evaluation on the ARGs, and store the result in the
15515# global $as_val. Take advantage of shells that can avoid forks. The arguments
15516# must be portable across $(()) and expr.
15517if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15518  eval 'as_fn_arith ()
15519  {
15520    as_val=$(( $* ))
15521  }'
15522else
15523  as_fn_arith ()
15524  {
15525    as_val=`expr "$@" || test $? -eq 1`
15526  }
15527fi # as_fn_arith
15528
15529
15530if expr a : '\(a\)' >/dev/null 2>&1 &&
15531   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15532  as_expr=expr
15533else
15534  as_expr=false
15535fi
15536
15537if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15538  as_basename=basename
15539else
15540  as_basename=false
15541fi
15542
15543if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15544  as_dirname=dirname
15545else
15546  as_dirname=false
15547fi
15548
15549as_me=`$as_basename -- "$0" ||
15550$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15551	 X"$0" : 'X\(//\)$' \| \
15552	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15553$as_echo X/"$0" |
15554    sed '/^.*\/\([^/][^/]*\)\/*$/{
15555	    s//\1/
15556	    q
15557	  }
15558	  /^X\/\(\/\/\)$/{
15559	    s//\1/
15560	    q
15561	  }
15562	  /^X\/\(\/\).*/{
15563	    s//\1/
15564	    q
15565	  }
15566	  s/.*/./; q'`
15567
15568# Avoid depending upon Character Ranges.
15569as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15570as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15571as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15572as_cr_digits='0123456789'
15573as_cr_alnum=$as_cr_Letters$as_cr_digits
15574
15575ECHO_C= ECHO_N= ECHO_T=
15576case `echo -n x` in #(((((
15577-n*)
15578  case `echo 'xy\c'` in
15579  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15580  xy)  ECHO_C='\c';;
15581  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15582       ECHO_T='	';;
15583  esac;;
15584*)
15585  ECHO_N='-n';;
15586esac
15587
15588rm -f conf$$ conf$$.exe conf$$.file
15589if test -d conf$$.dir; then
15590  rm -f conf$$.dir/conf$$.file
15591else
15592  rm -f conf$$.dir
15593  mkdir conf$$.dir 2>/dev/null
15594fi
15595if (echo >conf$$.file) 2>/dev/null; then
15596  if ln -s conf$$.file conf$$ 2>/dev/null; then
15597    as_ln_s='ln -s'
15598    # ... but there are two gotchas:
15599    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15600    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15601    # In both cases, we have to default to `cp -p'.
15602    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15603      as_ln_s='cp -p'
15604  elif ln conf$$.file conf$$ 2>/dev/null; then
15605    as_ln_s=ln
15606  else
15607    as_ln_s='cp -p'
15608  fi
15609else
15610  as_ln_s='cp -p'
15611fi
15612rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15613rmdir conf$$.dir 2>/dev/null
15614
15615
15616# as_fn_mkdir_p
15617# -------------
15618# Create "$as_dir" as a directory, including parents if necessary.
15619as_fn_mkdir_p ()
15620{
15621
15622  case $as_dir in #(
15623  -*) as_dir=./$as_dir;;
15624  esac
15625  test -d "$as_dir" || eval $as_mkdir_p || {
15626    as_dirs=
15627    while :; do
15628      case $as_dir in #(
15629      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15630      *) as_qdir=$as_dir;;
15631      esac
15632      as_dirs="'$as_qdir' $as_dirs"
15633      as_dir=`$as_dirname -- "$as_dir" ||
15634$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15635	 X"$as_dir" : 'X\(//\)[^/]' \| \
15636	 X"$as_dir" : 'X\(//\)$' \| \
15637	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15638$as_echo X"$as_dir" |
15639    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15640	    s//\1/
15641	    q
15642	  }
15643	  /^X\(\/\/\)[^/].*/{
15644	    s//\1/
15645	    q
15646	  }
15647	  /^X\(\/\/\)$/{
15648	    s//\1/
15649	    q
15650	  }
15651	  /^X\(\/\).*/{
15652	    s//\1/
15653	    q
15654	  }
15655	  s/.*/./; q'`
15656      test -d "$as_dir" && break
15657    done
15658    test -z "$as_dirs" || eval "mkdir $as_dirs"
15659  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15660
15661
15662} # as_fn_mkdir_p
15663if mkdir -p . 2>/dev/null; then
15664  as_mkdir_p='mkdir -p "$as_dir"'
15665else
15666  test -d ./-p && rmdir ./-p
15667  as_mkdir_p=false
15668fi
15669
15670if test -x / >/dev/null 2>&1; then
15671  as_test_x='test -x'
15672else
15673  if ls -dL / >/dev/null 2>&1; then
15674    as_ls_L_option=L
15675  else
15676    as_ls_L_option=
15677  fi
15678  as_test_x='
15679    eval sh -c '\''
15680      if test -d "$1"; then
15681	test -d "$1/.";
15682      else
15683	case $1 in #(
15684	-*)set "./$1";;
15685	esac;
15686	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15687	???[sx]*):;;*)false;;esac;fi
15688    '\'' sh
15689  '
15690fi
15691as_executable_p=$as_test_x
15692
15693# Sed expression to map a string onto a valid CPP name.
15694as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15695
15696# Sed expression to map a string onto a valid variable name.
15697as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15698
15699
15700exec 6>&1
15701## ----------------------------------- ##
15702## Main body of $CONFIG_STATUS script. ##
15703## ----------------------------------- ##
15704_ASEOF
15705test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15706
15707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15708# Save the log message, to keep $0 and so on meaningful, and to
15709# report actual input values of CONFIG_FILES etc. instead of their
15710# values after options handling.
15711ac_log="
15712This file was extended by libX11 $as_me 1.4.4, which was
15713generated by GNU Autoconf 2.68.  Invocation command line was
15714
15715  CONFIG_FILES    = $CONFIG_FILES
15716  CONFIG_HEADERS  = $CONFIG_HEADERS
15717  CONFIG_LINKS    = $CONFIG_LINKS
15718  CONFIG_COMMANDS = $CONFIG_COMMANDS
15719  $ $0 $@
15720
15721on `(hostname || uname -n) 2>/dev/null | sed 1q`
15722"
15723
15724_ACEOF
15725
15726case $ac_config_files in *"
15727"*) set x $ac_config_files; shift; ac_config_files=$*;;
15728esac
15729
15730case $ac_config_headers in *"
15731"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15732esac
15733
15734
15735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15736# Files that config.status was made for.
15737config_files="$ac_config_files"
15738config_headers="$ac_config_headers"
15739config_commands="$ac_config_commands"
15740
15741_ACEOF
15742
15743cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15744ac_cs_usage="\
15745\`$as_me' instantiates files and other configuration actions
15746from templates according to the current configuration.  Unless the files
15747and actions are specified as TAGs, all are instantiated by default.
15748
15749Usage: $0 [OPTION]... [TAG]...
15750
15751  -h, --help       print this help, then exit
15752  -V, --version    print version number and configuration settings, then exit
15753      --config     print configuration, then exit
15754  -q, --quiet, --silent
15755                   do not print progress messages
15756  -d, --debug      don't remove temporary files
15757      --recheck    update $as_me by reconfiguring in the same conditions
15758      --file=FILE[:TEMPLATE]
15759                   instantiate the configuration file FILE
15760      --header=FILE[:TEMPLATE]
15761                   instantiate the configuration header FILE
15762
15763Configuration files:
15764$config_files
15765
15766Configuration headers:
15767$config_headers
15768
15769Configuration commands:
15770$config_commands
15771
15772Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
15773
15774_ACEOF
15775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15776ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15777ac_cs_version="\\
15778libX11 config.status 1.4.4
15779configured by $0, generated by GNU Autoconf 2.68,
15780  with options \\"\$ac_cs_config\\"
15781
15782Copyright (C) 2010 Free Software Foundation, Inc.
15783This config.status script is free software; the Free Software Foundation
15784gives unlimited permission to copy, distribute and modify it."
15785
15786ac_pwd='$ac_pwd'
15787srcdir='$srcdir'
15788INSTALL='$INSTALL'
15789MKDIR_P='$MKDIR_P'
15790AWK='$AWK'
15791test -n "\$AWK" || AWK=awk
15792_ACEOF
15793
15794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15795# The default lists apply if the user does not specify any file.
15796ac_need_defaults=:
15797while test $# != 0
15798do
15799  case $1 in
15800  --*=?*)
15801    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15802    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15803    ac_shift=:
15804    ;;
15805  --*=)
15806    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15807    ac_optarg=
15808    ac_shift=:
15809    ;;
15810  *)
15811    ac_option=$1
15812    ac_optarg=$2
15813    ac_shift=shift
15814    ;;
15815  esac
15816
15817  case $ac_option in
15818  # Handling of the options.
15819  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15820    ac_cs_recheck=: ;;
15821  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15822    $as_echo "$ac_cs_version"; exit ;;
15823  --config | --confi | --conf | --con | --co | --c )
15824    $as_echo "$ac_cs_config"; exit ;;
15825  --debug | --debu | --deb | --de | --d | -d )
15826    debug=: ;;
15827  --file | --fil | --fi | --f )
15828    $ac_shift
15829    case $ac_optarg in
15830    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15831    '') as_fn_error $? "missing file argument" ;;
15832    esac
15833    as_fn_append CONFIG_FILES " '$ac_optarg'"
15834    ac_need_defaults=false;;
15835  --header | --heade | --head | --hea )
15836    $ac_shift
15837    case $ac_optarg in
15838    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15839    esac
15840    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15841    ac_need_defaults=false;;
15842  --he | --h)
15843    # Conflict between --help and --header
15844    as_fn_error $? "ambiguous option: \`$1'
15845Try \`$0 --help' for more information.";;
15846  --help | --hel | -h )
15847    $as_echo "$ac_cs_usage"; exit ;;
15848  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15849  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15850    ac_cs_silent=: ;;
15851
15852  # This is an error.
15853  -*) as_fn_error $? "unrecognized option: \`$1'
15854Try \`$0 --help' for more information." ;;
15855
15856  *) as_fn_append ac_config_targets " $1"
15857     ac_need_defaults=false ;;
15858
15859  esac
15860  shift
15861done
15862
15863ac_configure_extra_args=
15864
15865if $ac_cs_silent; then
15866  exec 6>/dev/null
15867  ac_configure_extra_args="$ac_configure_extra_args --silent"
15868fi
15869
15870_ACEOF
15871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15872if \$ac_cs_recheck; then
15873  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15874  shift
15875  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15876  CONFIG_SHELL='$SHELL'
15877  export CONFIG_SHELL
15878  exec "\$@"
15879fi
15880
15881_ACEOF
15882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15883exec 5>>config.log
15884{
15885  echo
15886  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15887## Running $as_me. ##
15888_ASBOX
15889  $as_echo "$ac_log"
15890} >&5
15891
15892_ACEOF
15893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15894#
15895# INIT-COMMANDS
15896#
15897AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15898
15899
15900# The HP-UX ksh and POSIX shell print the target directory to stdout
15901# if CDPATH is set.
15902(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15903
15904sed_quote_subst='$sed_quote_subst'
15905double_quote_subst='$double_quote_subst'
15906delay_variable_subst='$delay_variable_subst'
15907macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15908macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15909enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15910enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15911pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15912enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15913SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15914ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15915host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15916host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15917host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15918build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15919build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15920build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15921SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15922Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15923GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15924EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15925FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15926LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15927NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15928LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15929max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15930ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15931exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15932lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15933lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15934lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15935lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15936lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15937reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15938reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15939OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15940deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15941file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15942file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15943want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15944DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15945sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15946AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15947AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15948archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15949STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15950RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15951old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15952old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15953old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15954lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15955CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15956CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15957compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15958GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15959lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15960lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15961lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15962lt_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"`'
15963nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15964lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15965objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15966MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15967lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15968lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15969lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15970lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15971lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15972need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15973MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15974DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15975NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15976LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15977OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15978OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15979libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15980shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15981extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15982archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15983enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15984export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15985whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15986compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15987old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15988old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15989archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15990archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15991module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15992module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15993with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15994allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15995no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15996hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15997hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15998hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15999hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16000hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16001hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16002hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16003hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16004inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16005link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16006always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16007export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16008exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16009include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16010prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16011postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16012file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16013variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16014need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16015need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16016version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16017runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16018shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16019shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16020libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16021library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16022soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16023install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16024postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16025postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16026finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16027finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16028hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16029sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16030sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16031hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16032enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16033enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16034enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16035old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16036striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16037
16038LTCC='$LTCC'
16039LTCFLAGS='$LTCFLAGS'
16040compiler='$compiler_DEFAULT'
16041
16042# A function that is used when there is no print builtin or printf.
16043func_fallback_echo ()
16044{
16045  eval 'cat <<_LTECHO_EOF
16046\$1
16047_LTECHO_EOF'
16048}
16049
16050# Quote evaled strings.
16051for var in SHELL \
16052ECHO \
16053SED \
16054GREP \
16055EGREP \
16056FGREP \
16057LD \
16058NM \
16059LN_S \
16060lt_SP2NL \
16061lt_NL2SP \
16062reload_flag \
16063OBJDUMP \
16064deplibs_check_method \
16065file_magic_cmd \
16066file_magic_glob \
16067want_nocaseglob \
16068DLLTOOL \
16069sharedlib_from_linklib_cmd \
16070AR \
16071AR_FLAGS \
16072archiver_list_spec \
16073STRIP \
16074RANLIB \
16075CC \
16076CFLAGS \
16077compiler \
16078lt_cv_sys_global_symbol_pipe \
16079lt_cv_sys_global_symbol_to_cdecl \
16080lt_cv_sys_global_symbol_to_c_name_address \
16081lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16082nm_file_list_spec \
16083lt_prog_compiler_no_builtin_flag \
16084lt_prog_compiler_pic \
16085lt_prog_compiler_wl \
16086lt_prog_compiler_static \
16087lt_cv_prog_compiler_c_o \
16088need_locks \
16089MANIFEST_TOOL \
16090DSYMUTIL \
16091NMEDIT \
16092LIPO \
16093OTOOL \
16094OTOOL64 \
16095shrext_cmds \
16096export_dynamic_flag_spec \
16097whole_archive_flag_spec \
16098compiler_needs_object \
16099with_gnu_ld \
16100allow_undefined_flag \
16101no_undefined_flag \
16102hardcode_libdir_flag_spec \
16103hardcode_libdir_flag_spec_ld \
16104hardcode_libdir_separator \
16105exclude_expsyms \
16106include_expsyms \
16107file_list_spec \
16108variables_saved_for_relink \
16109libname_spec \
16110library_names_spec \
16111soname_spec \
16112install_override_mode \
16113finish_eval \
16114old_striplib \
16115striplib; do
16116    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16117    *[\\\\\\\`\\"\\\$]*)
16118      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16119      ;;
16120    *)
16121      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16122      ;;
16123    esac
16124done
16125
16126# Double-quote double-evaled strings.
16127for var in reload_cmds \
16128old_postinstall_cmds \
16129old_postuninstall_cmds \
16130old_archive_cmds \
16131extract_expsyms_cmds \
16132old_archive_from_new_cmds \
16133old_archive_from_expsyms_cmds \
16134archive_cmds \
16135archive_expsym_cmds \
16136module_cmds \
16137module_expsym_cmds \
16138export_symbols_cmds \
16139prelink_cmds \
16140postlink_cmds \
16141postinstall_cmds \
16142postuninstall_cmds \
16143finish_cmds \
16144sys_lib_search_path_spec \
16145sys_lib_dlsearch_path_spec; do
16146    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16147    *[\\\\\\\`\\"\\\$]*)
16148      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16149      ;;
16150    *)
16151      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16152      ;;
16153    esac
16154done
16155
16156ac_aux_dir='$ac_aux_dir'
16157xsi_shell='$xsi_shell'
16158lt_shell_append='$lt_shell_append'
16159
16160# See if we are running on zsh, and set the options which allow our
16161# commands through without removal of \ escapes INIT.
16162if test -n "\${ZSH_VERSION+set}" ; then
16163   setopt NO_GLOB_SUBST
16164fi
16165
16166
16167    PACKAGE='$PACKAGE'
16168    VERSION='$VERSION'
16169    TIMESTAMP='$TIMESTAMP'
16170    RM='$RM'
16171    ofile='$ofile'
16172
16173
16174
16175
16176_ACEOF
16177
16178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16179
16180# Handling of arguments.
16181for ac_config_target in $ac_config_targets
16182do
16183  case $ac_config_target in
16184    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16185    "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;;
16186    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16187    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16188    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16189    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16190    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16191    "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;;
16192    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16193    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
16194    "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;;
16195    "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;;
16196    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
16197    "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;;
16198    "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;;
16199    "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;;
16200    "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;;
16201    "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;;
16202    "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;;
16203    "modules/lc/xlocale/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/xlocale/Makefile" ;;
16204    "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;;
16205    "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;;
16206    "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;;
16207    "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
16208    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
16209    "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;;
16210    "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;;
16211    "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;;
16212    "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;;
16213    "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;;
16214    "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;;
16215    "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;;
16216    "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;;
16217    "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;;
16218
16219  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16220  esac
16221done
16222
16223
16224# If the user did not use the arguments to specify the items to instantiate,
16225# then the envvar interface is used.  Set only those that are not.
16226# We use the long form for the default assignment because of an extremely
16227# bizarre bug on SunOS 4.1.3.
16228if $ac_need_defaults; then
16229  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16230  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16231  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16232fi
16233
16234# Have a temporary directory for convenience.  Make it in the build tree
16235# simply because there is no reason against having it here, and in addition,
16236# creating and moving files from /tmp can sometimes cause problems.
16237# Hook for its removal unless debugging.
16238# Note that there is a small window in which the directory will not be cleaned:
16239# after its creation but before its name has been assigned to `$tmp'.
16240$debug ||
16241{
16242  tmp= ac_tmp=
16243  trap 'exit_status=$?
16244  : "${ac_tmp:=$tmp}"
16245  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16246' 0
16247  trap 'as_fn_exit 1' 1 2 13 15
16248}
16249# Create a (secure) tmp directory for tmp files.
16250
16251{
16252  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16253  test -d "$tmp"
16254}  ||
16255{
16256  tmp=./conf$$-$RANDOM
16257  (umask 077 && mkdir "$tmp")
16258} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16259ac_tmp=$tmp
16260
16261# Set up the scripts for CONFIG_FILES section.
16262# No need to generate them if there are no CONFIG_FILES.
16263# This happens for instance with `./config.status config.h'.
16264if test -n "$CONFIG_FILES"; then
16265
16266
16267ac_cr=`echo X | tr X '\015'`
16268# On cygwin, bash can eat \r inside `` if the user requested igncr.
16269# But we know of no other shell where ac_cr would be empty at this
16270# point, so we can use a bashism as a fallback.
16271if test "x$ac_cr" = x; then
16272  eval ac_cr=\$\'\\r\'
16273fi
16274ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16275if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16276  ac_cs_awk_cr='\\r'
16277else
16278  ac_cs_awk_cr=$ac_cr
16279fi
16280
16281echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16282_ACEOF
16283
16284
16285{
16286  echo "cat >conf$$subs.awk <<_ACEOF" &&
16287  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16288  echo "_ACEOF"
16289} >conf$$subs.sh ||
16290  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16291ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16292ac_delim='%!_!# '
16293for ac_last_try in false false false false false :; do
16294  . ./conf$$subs.sh ||
16295    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16296
16297  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16298  if test $ac_delim_n = $ac_delim_num; then
16299    break
16300  elif $ac_last_try; then
16301    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16302  else
16303    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16304  fi
16305done
16306rm -f conf$$subs.sh
16307
16308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16309cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16310_ACEOF
16311sed -n '
16312h
16313s/^/S["/; s/!.*/"]=/
16314p
16315g
16316s/^[^!]*!//
16317:repl
16318t repl
16319s/'"$ac_delim"'$//
16320t delim
16321:nl
16322h
16323s/\(.\{148\}\)..*/\1/
16324t more1
16325s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16326p
16327n
16328b repl
16329:more1
16330s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16331p
16332g
16333s/.\{148\}//
16334t nl
16335:delim
16336h
16337s/\(.\{148\}\)..*/\1/
16338t more2
16339s/["\\]/\\&/g; s/^/"/; s/$/"/
16340p
16341b
16342:more2
16343s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16344p
16345g
16346s/.\{148\}//
16347t delim
16348' <conf$$subs.awk | sed '
16349/^[^""]/{
16350  N
16351  s/\n//
16352}
16353' >>$CONFIG_STATUS || ac_write_fail=1
16354rm -f conf$$subs.awk
16355cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16356_ACAWK
16357cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16358  for (key in S) S_is_set[key] = 1
16359  FS = ""
16360
16361}
16362{
16363  line = $ 0
16364  nfields = split(line, field, "@")
16365  substed = 0
16366  len = length(field[1])
16367  for (i = 2; i < nfields; i++) {
16368    key = field[i]
16369    keylen = length(key)
16370    if (S_is_set[key]) {
16371      value = S[key]
16372      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16373      len += length(value) + length(field[++i])
16374      substed = 1
16375    } else
16376      len += 1 + keylen
16377  }
16378
16379  print line
16380}
16381
16382_ACAWK
16383_ACEOF
16384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16385if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16386  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16387else
16388  cat
16389fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16390  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16391_ACEOF
16392
16393# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16394# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16395# trailing colons and then remove the whole line if VPATH becomes empty
16396# (actually we leave an empty line to preserve line numbers).
16397if test "x$srcdir" = x.; then
16398  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16399h
16400s///
16401s/^/:/
16402s/[	 ]*$/:/
16403s/:\$(srcdir):/:/g
16404s/:\${srcdir}:/:/g
16405s/:@srcdir@:/:/g
16406s/^:*//
16407s/:*$//
16408x
16409s/\(=[	 ]*\).*/\1/
16410G
16411s/\n//
16412s/^[^=]*=[	 ]*$//
16413}'
16414fi
16415
16416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16417fi # test -n "$CONFIG_FILES"
16418
16419# Set up the scripts for CONFIG_HEADERS section.
16420# No need to generate them if there are no CONFIG_HEADERS.
16421# This happens for instance with `./config.status Makefile'.
16422if test -n "$CONFIG_HEADERS"; then
16423cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16424BEGIN {
16425_ACEOF
16426
16427# Transform confdefs.h into an awk script `defines.awk', embedded as
16428# here-document in config.status, that substitutes the proper values into
16429# config.h.in to produce config.h.
16430
16431# Create a delimiter string that does not exist in confdefs.h, to ease
16432# handling of long lines.
16433ac_delim='%!_!# '
16434for ac_last_try in false false :; do
16435  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16436  if test -z "$ac_tt"; then
16437    break
16438  elif $ac_last_try; then
16439    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16440  else
16441    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16442  fi
16443done
16444
16445# For the awk script, D is an array of macro values keyed by name,
16446# likewise P contains macro parameters if any.  Preserve backslash
16447# newline sequences.
16448
16449ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16450sed -n '
16451s/.\{148\}/&'"$ac_delim"'/g
16452t rset
16453:rset
16454s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16455t def
16456d
16457:def
16458s/\\$//
16459t bsnl
16460s/["\\]/\\&/g
16461s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16462D["\1"]=" \3"/p
16463s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16464d
16465:bsnl
16466s/["\\]/\\&/g
16467s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16468D["\1"]=" \3\\\\\\n"\\/p
16469t cont
16470s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16471t cont
16472d
16473:cont
16474n
16475s/.\{148\}/&'"$ac_delim"'/g
16476t clear
16477:clear
16478s/\\$//
16479t bsnlc
16480s/["\\]/\\&/g; s/^/"/; s/$/"/p
16481d
16482:bsnlc
16483s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16484b cont
16485' <confdefs.h | sed '
16486s/'"$ac_delim"'/"\\\
16487"/g' >>$CONFIG_STATUS || ac_write_fail=1
16488
16489cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16490  for (key in D) D_is_set[key] = 1
16491  FS = ""
16492}
16493/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16494  line = \$ 0
16495  split(line, arg, " ")
16496  if (arg[1] == "#") {
16497    defundef = arg[2]
16498    mac1 = arg[3]
16499  } else {
16500    defundef = substr(arg[1], 2)
16501    mac1 = arg[2]
16502  }
16503  split(mac1, mac2, "(") #)
16504  macro = mac2[1]
16505  prefix = substr(line, 1, index(line, defundef) - 1)
16506  if (D_is_set[macro]) {
16507    # Preserve the white space surrounding the "#".
16508    print prefix "define", macro P[macro] D[macro]
16509    next
16510  } else {
16511    # Replace #undef with comments.  This is necessary, for example,
16512    # in the case of _POSIX_SOURCE, which is predefined and required
16513    # on some systems where configure will not decide to define it.
16514    if (defundef == "undef") {
16515      print "/*", prefix defundef, macro, "*/"
16516      next
16517    }
16518  }
16519}
16520{ print }
16521_ACAWK
16522_ACEOF
16523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16524  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16525fi # test -n "$CONFIG_HEADERS"
16526
16527
16528eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16529shift
16530for ac_tag
16531do
16532  case $ac_tag in
16533  :[FHLC]) ac_mode=$ac_tag; continue;;
16534  esac
16535  case $ac_mode$ac_tag in
16536  :[FHL]*:*);;
16537  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16538  :[FH]-) ac_tag=-:-;;
16539  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16540  esac
16541  ac_save_IFS=$IFS
16542  IFS=:
16543  set x $ac_tag
16544  IFS=$ac_save_IFS
16545  shift
16546  ac_file=$1
16547  shift
16548
16549  case $ac_mode in
16550  :L) ac_source=$1;;
16551  :[FH])
16552    ac_file_inputs=
16553    for ac_f
16554    do
16555      case $ac_f in
16556      -) ac_f="$ac_tmp/stdin";;
16557      *) # Look for the file first in the build tree, then in the source tree
16558	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16559	 # because $ac_f cannot contain `:'.
16560	 test -f "$ac_f" ||
16561	   case $ac_f in
16562	   [\\/$]*) false;;
16563	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16564	   esac ||
16565	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16566      esac
16567      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16568      as_fn_append ac_file_inputs " '$ac_f'"
16569    done
16570
16571    # Let's still pretend it is `configure' which instantiates (i.e., don't
16572    # use $as_me), people would be surprised to read:
16573    #    /* config.h.  Generated by config.status.  */
16574    configure_input='Generated from '`
16575	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16576	`' by configure.'
16577    if test x"$ac_file" != x-; then
16578      configure_input="$ac_file.  $configure_input"
16579      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16580$as_echo "$as_me: creating $ac_file" >&6;}
16581    fi
16582    # Neutralize special characters interpreted by sed in replacement strings.
16583    case $configure_input in #(
16584    *\&* | *\|* | *\\* )
16585       ac_sed_conf_input=`$as_echo "$configure_input" |
16586       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16587    *) ac_sed_conf_input=$configure_input;;
16588    esac
16589
16590    case $ac_tag in
16591    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16592      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16593    esac
16594    ;;
16595  esac
16596
16597  ac_dir=`$as_dirname -- "$ac_file" ||
16598$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16599	 X"$ac_file" : 'X\(//\)[^/]' \| \
16600	 X"$ac_file" : 'X\(//\)$' \| \
16601	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16602$as_echo X"$ac_file" |
16603    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16604	    s//\1/
16605	    q
16606	  }
16607	  /^X\(\/\/\)[^/].*/{
16608	    s//\1/
16609	    q
16610	  }
16611	  /^X\(\/\/\)$/{
16612	    s//\1/
16613	    q
16614	  }
16615	  /^X\(\/\).*/{
16616	    s//\1/
16617	    q
16618	  }
16619	  s/.*/./; q'`
16620  as_dir="$ac_dir"; as_fn_mkdir_p
16621  ac_builddir=.
16622
16623case "$ac_dir" in
16624.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16625*)
16626  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16627  # A ".." for each directory in $ac_dir_suffix.
16628  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16629  case $ac_top_builddir_sub in
16630  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16631  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16632  esac ;;
16633esac
16634ac_abs_top_builddir=$ac_pwd
16635ac_abs_builddir=$ac_pwd$ac_dir_suffix
16636# for backward compatibility:
16637ac_top_builddir=$ac_top_build_prefix
16638
16639case $srcdir in
16640  .)  # We are building in place.
16641    ac_srcdir=.
16642    ac_top_srcdir=$ac_top_builddir_sub
16643    ac_abs_top_srcdir=$ac_pwd ;;
16644  [\\/]* | ?:[\\/]* )  # Absolute name.
16645    ac_srcdir=$srcdir$ac_dir_suffix;
16646    ac_top_srcdir=$srcdir
16647    ac_abs_top_srcdir=$srcdir ;;
16648  *) # Relative name.
16649    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16650    ac_top_srcdir=$ac_top_build_prefix$srcdir
16651    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16652esac
16653ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16654
16655
16656  case $ac_mode in
16657  :F)
16658  #
16659  # CONFIG_FILE
16660  #
16661
16662  case $INSTALL in
16663  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16664  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16665  esac
16666  ac_MKDIR_P=$MKDIR_P
16667  case $MKDIR_P in
16668  [\\/$]* | ?:[\\/]* ) ;;
16669  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16670  esac
16671_ACEOF
16672
16673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16674# If the template does not know about datarootdir, expand it.
16675# FIXME: This hack should be removed a few years after 2.60.
16676ac_datarootdir_hack=; ac_datarootdir_seen=
16677ac_sed_dataroot='
16678/datarootdir/ {
16679  p
16680  q
16681}
16682/@datadir@/p
16683/@docdir@/p
16684/@infodir@/p
16685/@localedir@/p
16686/@mandir@/p'
16687case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16688*datarootdir*) ac_datarootdir_seen=yes;;
16689*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16690  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16691$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16692_ACEOF
16693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16694  ac_datarootdir_hack='
16695  s&@datadir@&$datadir&g
16696  s&@docdir@&$docdir&g
16697  s&@infodir@&$infodir&g
16698  s&@localedir@&$localedir&g
16699  s&@mandir@&$mandir&g
16700  s&\\\${datarootdir}&$datarootdir&g' ;;
16701esac
16702_ACEOF
16703
16704# Neutralize VPATH when `$srcdir' = `.'.
16705# Shell code in configure.ac might set extrasub.
16706# FIXME: do we really want to maintain this feature?
16707cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16708ac_sed_extra="$ac_vpsub
16709$extrasub
16710_ACEOF
16711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16712:t
16713/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16714s|@configure_input@|$ac_sed_conf_input|;t t
16715s&@top_builddir@&$ac_top_builddir_sub&;t t
16716s&@top_build_prefix@&$ac_top_build_prefix&;t t
16717s&@srcdir@&$ac_srcdir&;t t
16718s&@abs_srcdir@&$ac_abs_srcdir&;t t
16719s&@top_srcdir@&$ac_top_srcdir&;t t
16720s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16721s&@builddir@&$ac_builddir&;t t
16722s&@abs_builddir@&$ac_abs_builddir&;t t
16723s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16724s&@INSTALL@&$ac_INSTALL&;t t
16725s&@MKDIR_P@&$ac_MKDIR_P&;t t
16726$ac_datarootdir_hack
16727"
16728eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16729  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16730
16731test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16732  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16733  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16734      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16735  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16736which seems to be undefined.  Please make sure it is defined" >&5
16737$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16738which seems to be undefined.  Please make sure it is defined" >&2;}
16739
16740  rm -f "$ac_tmp/stdin"
16741  case $ac_file in
16742  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16743  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16744  esac \
16745  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16746 ;;
16747  :H)
16748  #
16749  # CONFIG_HEADER
16750  #
16751  if test x"$ac_file" != x-; then
16752    {
16753      $as_echo "/* $configure_input  */" \
16754      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16755    } >"$ac_tmp/config.h" \
16756      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16757    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16758      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16759$as_echo "$as_me: $ac_file is unchanged" >&6;}
16760    else
16761      rm -f "$ac_file"
16762      mv "$ac_tmp/config.h" "$ac_file" \
16763	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16764    fi
16765  else
16766    $as_echo "/* $configure_input  */" \
16767      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16768      || as_fn_error $? "could not create -" "$LINENO" 5
16769  fi
16770# Compute "$ac_file"'s index in $config_headers.
16771_am_arg="$ac_file"
16772_am_stamp_count=1
16773for _am_header in $config_headers :; do
16774  case $_am_header in
16775    $_am_arg | $_am_arg:* )
16776      break ;;
16777    * )
16778      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16779  esac
16780done
16781echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16782$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16783	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16784	 X"$_am_arg" : 'X\(//\)$' \| \
16785	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16786$as_echo X"$_am_arg" |
16787    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16788	    s//\1/
16789	    q
16790	  }
16791	  /^X\(\/\/\)[^/].*/{
16792	    s//\1/
16793	    q
16794	  }
16795	  /^X\(\/\/\)$/{
16796	    s//\1/
16797	    q
16798	  }
16799	  /^X\(\/\).*/{
16800	    s//\1/
16801	    q
16802	  }
16803	  s/.*/./; q'`/stamp-h$_am_stamp_count
16804 ;;
16805
16806  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16807$as_echo "$as_me: executing $ac_file commands" >&6;}
16808 ;;
16809  esac
16810
16811
16812  case $ac_file$ac_mode in
16813    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16814  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16815  # are listed without --file.  Let's play safe and only enable the eval
16816  # if we detect the quoting.
16817  case $CONFIG_FILES in
16818  *\'*) eval set x "$CONFIG_FILES" ;;
16819  *)   set x $CONFIG_FILES ;;
16820  esac
16821  shift
16822  for mf
16823  do
16824    # Strip MF so we end up with the name of the file.
16825    mf=`echo "$mf" | sed -e 's/:.*$//'`
16826    # Check whether this is an Automake generated Makefile or not.
16827    # We used to match only the files named `Makefile.in', but
16828    # some people rename them; so instead we look at the file content.
16829    # Grep'ing the first line is not enough: some people post-process
16830    # each Makefile.in and add a new line on top of each file to say so.
16831    # Grep'ing the whole file is not good either: AIX grep has a line
16832    # limit of 2048, but all sed's we know have understand at least 4000.
16833    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16834      dirpart=`$as_dirname -- "$mf" ||
16835$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16836	 X"$mf" : 'X\(//\)[^/]' \| \
16837	 X"$mf" : 'X\(//\)$' \| \
16838	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16839$as_echo X"$mf" |
16840    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16841	    s//\1/
16842	    q
16843	  }
16844	  /^X\(\/\/\)[^/].*/{
16845	    s//\1/
16846	    q
16847	  }
16848	  /^X\(\/\/\)$/{
16849	    s//\1/
16850	    q
16851	  }
16852	  /^X\(\/\).*/{
16853	    s//\1/
16854	    q
16855	  }
16856	  s/.*/./; q'`
16857    else
16858      continue
16859    fi
16860    # Extract the definition of DEPDIR, am__include, and am__quote
16861    # from the Makefile without running `make'.
16862    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16863    test -z "$DEPDIR" && continue
16864    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16865    test -z "am__include" && continue
16866    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16867    # When using ansi2knr, U may be empty or an underscore; expand it
16868    U=`sed -n 's/^U = //p' < "$mf"`
16869    # Find all dependency output files, they are included files with
16870    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16871    # simplest approach to changing $(DEPDIR) to its actual value in the
16872    # expansion.
16873    for file in `sed -n "
16874      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16875	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16876      # Make sure the directory exists.
16877      test -f "$dirpart/$file" && continue
16878      fdir=`$as_dirname -- "$file" ||
16879$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16880	 X"$file" : 'X\(//\)[^/]' \| \
16881	 X"$file" : 'X\(//\)$' \| \
16882	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16883$as_echo X"$file" |
16884    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16885	    s//\1/
16886	    q
16887	  }
16888	  /^X\(\/\/\)[^/].*/{
16889	    s//\1/
16890	    q
16891	  }
16892	  /^X\(\/\/\)$/{
16893	    s//\1/
16894	    q
16895	  }
16896	  /^X\(\/\).*/{
16897	    s//\1/
16898	    q
16899	  }
16900	  s/.*/./; q'`
16901      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16902      # echo "creating $dirpart/$file"
16903      echo '# dummy' > "$dirpart/$file"
16904    done
16905  done
16906}
16907 ;;
16908    "libtool":C)
16909
16910    # See if we are running on zsh, and set the options which allow our
16911    # commands through without removal of \ escapes.
16912    if test -n "${ZSH_VERSION+set}" ; then
16913      setopt NO_GLOB_SUBST
16914    fi
16915
16916    cfgfile="${ofile}T"
16917    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16918    $RM "$cfgfile"
16919
16920    cat <<_LT_EOF >> "$cfgfile"
16921#! $SHELL
16922
16923# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16924# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16925# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16926# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16927#
16928#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16929#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16930#                 Inc.
16931#   Written by Gordon Matzigkeit, 1996
16932#
16933#   This file is part of GNU Libtool.
16934#
16935# GNU Libtool is free software; you can redistribute it and/or
16936# modify it under the terms of the GNU General Public License as
16937# published by the Free Software Foundation; either version 2 of
16938# the License, or (at your option) any later version.
16939#
16940# As a special exception to the GNU General Public License,
16941# if you distribute this file as part of a program or library that
16942# is built using GNU Libtool, you may include this file under the
16943# same distribution terms that you use for the rest of that program.
16944#
16945# GNU Libtool is distributed in the hope that it will be useful,
16946# but WITHOUT ANY WARRANTY; without even the implied warranty of
16947# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16948# GNU General Public License for more details.
16949#
16950# You should have received a copy of the GNU General Public License
16951# along with GNU Libtool; see the file COPYING.  If not, a copy
16952# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16953# obtained by writing to the Free Software Foundation, Inc.,
16954# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16955
16956
16957# The names of the tagged configurations supported by this script.
16958available_tags=""
16959
16960# ### BEGIN LIBTOOL CONFIG
16961
16962# Which release of libtool.m4 was used?
16963macro_version=$macro_version
16964macro_revision=$macro_revision
16965
16966# Whether or not to build shared libraries.
16967build_libtool_libs=$enable_shared
16968
16969# Whether or not to build static libraries.
16970build_old_libs=$enable_static
16971
16972# What type of objects to build.
16973pic_mode=$pic_mode
16974
16975# Whether or not to optimize for fast installation.
16976fast_install=$enable_fast_install
16977
16978# Shell to use when invoking shell scripts.
16979SHELL=$lt_SHELL
16980
16981# An echo program that protects backslashes.
16982ECHO=$lt_ECHO
16983
16984# The host system.
16985host_alias=$host_alias
16986host=$host
16987host_os=$host_os
16988
16989# The build system.
16990build_alias=$build_alias
16991build=$build
16992build_os=$build_os
16993
16994# A sed program that does not truncate output.
16995SED=$lt_SED
16996
16997# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16998Xsed="\$SED -e 1s/^X//"
16999
17000# A grep program that handles long lines.
17001GREP=$lt_GREP
17002
17003# An ERE matcher.
17004EGREP=$lt_EGREP
17005
17006# A literal string matcher.
17007FGREP=$lt_FGREP
17008
17009# A BSD- or MS-compatible name lister.
17010NM=$lt_NM
17011
17012# Whether we need soft or hard links.
17013LN_S=$lt_LN_S
17014
17015# What is the maximum length of a command?
17016max_cmd_len=$max_cmd_len
17017
17018# Object file suffix (normally "o").
17019objext=$ac_objext
17020
17021# Executable file suffix (normally "").
17022exeext=$exeext
17023
17024# whether the shell understands "unset".
17025lt_unset=$lt_unset
17026
17027# turn spaces into newlines.
17028SP2NL=$lt_lt_SP2NL
17029
17030# turn newlines into spaces.
17031NL2SP=$lt_lt_NL2SP
17032
17033# convert \$build file names to \$host format.
17034to_host_file_cmd=$lt_cv_to_host_file_cmd
17035
17036# convert \$build files to toolchain format.
17037to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17038
17039# An object symbol dumper.
17040OBJDUMP=$lt_OBJDUMP
17041
17042# Method to check whether dependent libraries are shared objects.
17043deplibs_check_method=$lt_deplibs_check_method
17044
17045# Command to use when deplibs_check_method = "file_magic".
17046file_magic_cmd=$lt_file_magic_cmd
17047
17048# How to find potential files when deplibs_check_method = "file_magic".
17049file_magic_glob=$lt_file_magic_glob
17050
17051# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17052want_nocaseglob=$lt_want_nocaseglob
17053
17054# DLL creation program.
17055DLLTOOL=$lt_DLLTOOL
17056
17057# Command to associate shared and link libraries.
17058sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17059
17060# The archiver.
17061AR=$lt_AR
17062
17063# Flags to create an archive.
17064AR_FLAGS=$lt_AR_FLAGS
17065
17066# How to feed a file listing to the archiver.
17067archiver_list_spec=$lt_archiver_list_spec
17068
17069# A symbol stripping program.
17070STRIP=$lt_STRIP
17071
17072# Commands used to install an old-style archive.
17073RANLIB=$lt_RANLIB
17074old_postinstall_cmds=$lt_old_postinstall_cmds
17075old_postuninstall_cmds=$lt_old_postuninstall_cmds
17076
17077# Whether to use a lock for old archive extraction.
17078lock_old_archive_extraction=$lock_old_archive_extraction
17079
17080# A C compiler.
17081LTCC=$lt_CC
17082
17083# LTCC compiler flags.
17084LTCFLAGS=$lt_CFLAGS
17085
17086# Take the output of nm and produce a listing of raw symbols and C names.
17087global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17088
17089# Transform the output of nm in a proper C declaration.
17090global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17091
17092# Transform the output of nm in a C name address pair.
17093global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17094
17095# Transform the output of nm in a C name address pair when lib prefix is needed.
17096global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17097
17098# Specify filename containing input files for \$NM.
17099nm_file_list_spec=$lt_nm_file_list_spec
17100
17101# The root where to search for dependent libraries,and in which our libraries should be installed.
17102lt_sysroot=$lt_sysroot
17103
17104# The name of the directory that contains temporary libtool files.
17105objdir=$objdir
17106
17107# Used to examine libraries when file_magic_cmd begins with "file".
17108MAGIC_CMD=$MAGIC_CMD
17109
17110# Must we lock files when doing compilation?
17111need_locks=$lt_need_locks
17112
17113# Manifest tool.
17114MANIFEST_TOOL=$lt_MANIFEST_TOOL
17115
17116# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17117DSYMUTIL=$lt_DSYMUTIL
17118
17119# Tool to change global to local symbols on Mac OS X.
17120NMEDIT=$lt_NMEDIT
17121
17122# Tool to manipulate fat objects and archives on Mac OS X.
17123LIPO=$lt_LIPO
17124
17125# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17126OTOOL=$lt_OTOOL
17127
17128# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17129OTOOL64=$lt_OTOOL64
17130
17131# Old archive suffix (normally "a").
17132libext=$libext
17133
17134# Shared library suffix (normally ".so").
17135shrext_cmds=$lt_shrext_cmds
17136
17137# The commands to extract the exported symbol list from a shared archive.
17138extract_expsyms_cmds=$lt_extract_expsyms_cmds
17139
17140# Variables whose values should be saved in libtool wrapper scripts and
17141# restored at link time.
17142variables_saved_for_relink=$lt_variables_saved_for_relink
17143
17144# Do we need the "lib" prefix for modules?
17145need_lib_prefix=$need_lib_prefix
17146
17147# Do we need a version for libraries?
17148need_version=$need_version
17149
17150# Library versioning type.
17151version_type=$version_type
17152
17153# Shared library runtime path variable.
17154runpath_var=$runpath_var
17155
17156# Shared library path variable.
17157shlibpath_var=$shlibpath_var
17158
17159# Is shlibpath searched before the hard-coded library search path?
17160shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17161
17162# Format of library name prefix.
17163libname_spec=$lt_libname_spec
17164
17165# List of archive names.  First name is the real one, the rest are links.
17166# The last name is the one that the linker finds with -lNAME
17167library_names_spec=$lt_library_names_spec
17168
17169# The coded name of the library, if different from the real name.
17170soname_spec=$lt_soname_spec
17171
17172# Permission mode override for installation of shared libraries.
17173install_override_mode=$lt_install_override_mode
17174
17175# Command to use after installation of a shared archive.
17176postinstall_cmds=$lt_postinstall_cmds
17177
17178# Command to use after uninstallation of a shared archive.
17179postuninstall_cmds=$lt_postuninstall_cmds
17180
17181# Commands used to finish a libtool library installation in a directory.
17182finish_cmds=$lt_finish_cmds
17183
17184# As "finish_cmds", except a single script fragment to be evaled but
17185# not shown.
17186finish_eval=$lt_finish_eval
17187
17188# Whether we should hardcode library paths into libraries.
17189hardcode_into_libs=$hardcode_into_libs
17190
17191# Compile-time system search path for libraries.
17192sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17193
17194# Run-time system search path for libraries.
17195sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17196
17197# Whether dlopen is supported.
17198dlopen_support=$enable_dlopen
17199
17200# Whether dlopen of programs is supported.
17201dlopen_self=$enable_dlopen_self
17202
17203# Whether dlopen of statically linked programs is supported.
17204dlopen_self_static=$enable_dlopen_self_static
17205
17206# Commands to strip libraries.
17207old_striplib=$lt_old_striplib
17208striplib=$lt_striplib
17209
17210
17211# The linker used to build libraries.
17212LD=$lt_LD
17213
17214# How to create reloadable object files.
17215reload_flag=$lt_reload_flag
17216reload_cmds=$lt_reload_cmds
17217
17218# Commands used to build an old-style archive.
17219old_archive_cmds=$lt_old_archive_cmds
17220
17221# A language specific compiler.
17222CC=$lt_compiler
17223
17224# Is the compiler the GNU compiler?
17225with_gcc=$GCC
17226
17227# Compiler flag to turn off builtin functions.
17228no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17229
17230# Additional compiler flags for building library objects.
17231pic_flag=$lt_lt_prog_compiler_pic
17232
17233# How to pass a linker flag through the compiler.
17234wl=$lt_lt_prog_compiler_wl
17235
17236# Compiler flag to prevent dynamic linking.
17237link_static_flag=$lt_lt_prog_compiler_static
17238
17239# Does compiler simultaneously support -c and -o options?
17240compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17241
17242# Whether or not to add -lc for building shared libraries.
17243build_libtool_need_lc=$archive_cmds_need_lc
17244
17245# Whether or not to disallow shared libs when runtime libs are static.
17246allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17247
17248# Compiler flag to allow reflexive dlopens.
17249export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17250
17251# Compiler flag to generate shared objects directly from archives.
17252whole_archive_flag_spec=$lt_whole_archive_flag_spec
17253
17254# Whether the compiler copes with passing no objects directly.
17255compiler_needs_object=$lt_compiler_needs_object
17256
17257# Create an old-style archive from a shared archive.
17258old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17259
17260# Create a temporary old-style archive to link instead of a shared archive.
17261old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17262
17263# Commands used to build a shared archive.
17264archive_cmds=$lt_archive_cmds
17265archive_expsym_cmds=$lt_archive_expsym_cmds
17266
17267# Commands used to build a loadable module if different from building
17268# a shared archive.
17269module_cmds=$lt_module_cmds
17270module_expsym_cmds=$lt_module_expsym_cmds
17271
17272# Whether we are building with GNU ld or not.
17273with_gnu_ld=$lt_with_gnu_ld
17274
17275# Flag that allows shared libraries with undefined symbols to be built.
17276allow_undefined_flag=$lt_allow_undefined_flag
17277
17278# Flag that enforces no undefined symbols.
17279no_undefined_flag=$lt_no_undefined_flag
17280
17281# Flag to hardcode \$libdir into a binary during linking.
17282# This must work even if \$libdir does not exist
17283hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17284
17285# If ld is used when linking, flag to hardcode \$libdir into a binary
17286# during linking.  This must work even if \$libdir does not exist.
17287hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17288
17289# Whether we need a single "-rpath" flag with a separated argument.
17290hardcode_libdir_separator=$lt_hardcode_libdir_separator
17291
17292# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17293# DIR into the resulting binary.
17294hardcode_direct=$hardcode_direct
17295
17296# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17297# DIR into the resulting binary and the resulting library dependency is
17298# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17299# library is relocated.
17300hardcode_direct_absolute=$hardcode_direct_absolute
17301
17302# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17303# into the resulting binary.
17304hardcode_minus_L=$hardcode_minus_L
17305
17306# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17307# into the resulting binary.
17308hardcode_shlibpath_var=$hardcode_shlibpath_var
17309
17310# Set to "yes" if building a shared library automatically hardcodes DIR
17311# into the library and all subsequent libraries and executables linked
17312# against it.
17313hardcode_automatic=$hardcode_automatic
17314
17315# Set to yes if linker adds runtime paths of dependent libraries
17316# to runtime path list.
17317inherit_rpath=$inherit_rpath
17318
17319# Whether libtool must link a program against all its dependency libraries.
17320link_all_deplibs=$link_all_deplibs
17321
17322# Set to "yes" if exported symbols are required.
17323always_export_symbols=$always_export_symbols
17324
17325# The commands to list exported symbols.
17326export_symbols_cmds=$lt_export_symbols_cmds
17327
17328# Symbols that should not be listed in the preloaded symbols.
17329exclude_expsyms=$lt_exclude_expsyms
17330
17331# Symbols that must always be exported.
17332include_expsyms=$lt_include_expsyms
17333
17334# Commands necessary for linking programs (against libraries) with templates.
17335prelink_cmds=$lt_prelink_cmds
17336
17337# Commands necessary for finishing linking programs.
17338postlink_cmds=$lt_postlink_cmds
17339
17340# Specify filename containing input files.
17341file_list_spec=$lt_file_list_spec
17342
17343# How to hardcode a shared library path into an executable.
17344hardcode_action=$hardcode_action
17345
17346# ### END LIBTOOL CONFIG
17347
17348_LT_EOF
17349
17350  case $host_os in
17351  aix3*)
17352    cat <<\_LT_EOF >> "$cfgfile"
17353# AIX sometimes has problems with the GCC collect2 program.  For some
17354# reason, if we set the COLLECT_NAMES environment variable, the problems
17355# vanish in a puff of smoke.
17356if test "X${COLLECT_NAMES+set}" != Xset; then
17357  COLLECT_NAMES=
17358  export COLLECT_NAMES
17359fi
17360_LT_EOF
17361    ;;
17362  esac
17363
17364
17365ltmain="$ac_aux_dir/ltmain.sh"
17366
17367
17368  # We use sed instead of cat because bash on DJGPP gets confused if
17369  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17370  # text mode, it properly converts lines to CR/LF.  This bash problem
17371  # is reportedly fixed, but why not run on old versions too?
17372  sed '$q' "$ltmain" >> "$cfgfile" \
17373     || (rm -f "$cfgfile"; exit 1)
17374
17375  if test x"$xsi_shell" = xyes; then
17376  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17377func_dirname ()\
17378{\
17379\    case ${1} in\
17380\      */*) func_dirname_result="${1%/*}${2}" ;;\
17381\      *  ) func_dirname_result="${3}" ;;\
17382\    esac\
17383} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17384  && mv -f "$cfgfile.tmp" "$cfgfile" \
17385    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17386test 0 -eq $? || _lt_function_replace_fail=:
17387
17388
17389  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17390func_basename ()\
17391{\
17392\    func_basename_result="${1##*/}"\
17393} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17394  && mv -f "$cfgfile.tmp" "$cfgfile" \
17395    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17396test 0 -eq $? || _lt_function_replace_fail=:
17397
17398
17399  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17400func_dirname_and_basename ()\
17401{\
17402\    case ${1} in\
17403\      */*) func_dirname_result="${1%/*}${2}" ;;\
17404\      *  ) func_dirname_result="${3}" ;;\
17405\    esac\
17406\    func_basename_result="${1##*/}"\
17407} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17408  && mv -f "$cfgfile.tmp" "$cfgfile" \
17409    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17410test 0 -eq $? || _lt_function_replace_fail=:
17411
17412
17413  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17414func_stripname ()\
17415{\
17416\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17417\    # positional parameters, so assign one to ordinary parameter first.\
17418\    func_stripname_result=${3}\
17419\    func_stripname_result=${func_stripname_result#"${1}"}\
17420\    func_stripname_result=${func_stripname_result%"${2}"}\
17421} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17422  && mv -f "$cfgfile.tmp" "$cfgfile" \
17423    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17424test 0 -eq $? || _lt_function_replace_fail=:
17425
17426
17427  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17428func_split_long_opt ()\
17429{\
17430\    func_split_long_opt_name=${1%%=*}\
17431\    func_split_long_opt_arg=${1#*=}\
17432} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17433  && mv -f "$cfgfile.tmp" "$cfgfile" \
17434    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17435test 0 -eq $? || _lt_function_replace_fail=:
17436
17437
17438  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17439func_split_short_opt ()\
17440{\
17441\    func_split_short_opt_arg=${1#??}\
17442\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17443} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17444  && mv -f "$cfgfile.tmp" "$cfgfile" \
17445    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17446test 0 -eq $? || _lt_function_replace_fail=:
17447
17448
17449  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17450func_lo2o ()\
17451{\
17452\    case ${1} in\
17453\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17454\      *)    func_lo2o_result=${1} ;;\
17455\    esac\
17456} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17457  && mv -f "$cfgfile.tmp" "$cfgfile" \
17458    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17459test 0 -eq $? || _lt_function_replace_fail=:
17460
17461
17462  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17463func_xform ()\
17464{\
17465    func_xform_result=${1%.*}.lo\
17466} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17467  && mv -f "$cfgfile.tmp" "$cfgfile" \
17468    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17469test 0 -eq $? || _lt_function_replace_fail=:
17470
17471
17472  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17473func_arith ()\
17474{\
17475    func_arith_result=$(( $* ))\
17476} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17477  && mv -f "$cfgfile.tmp" "$cfgfile" \
17478    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17479test 0 -eq $? || _lt_function_replace_fail=:
17480
17481
17482  sed -e '/^func_len ()$/,/^} # func_len /c\
17483func_len ()\
17484{\
17485    func_len_result=${#1}\
17486} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17487  && mv -f "$cfgfile.tmp" "$cfgfile" \
17488    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17489test 0 -eq $? || _lt_function_replace_fail=:
17490
17491fi
17492
17493if test x"$lt_shell_append" = xyes; then
17494  sed -e '/^func_append ()$/,/^} # func_append /c\
17495func_append ()\
17496{\
17497    eval "${1}+=\\${2}"\
17498} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17499  && mv -f "$cfgfile.tmp" "$cfgfile" \
17500    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17501test 0 -eq $? || _lt_function_replace_fail=:
17502
17503
17504  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17505func_append_quoted ()\
17506{\
17507\    func_quote_for_eval "${2}"\
17508\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17509} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17510  && mv -f "$cfgfile.tmp" "$cfgfile" \
17511    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17512test 0 -eq $? || _lt_function_replace_fail=:
17513
17514
17515  # Save a `func_append' function call where possible by direct use of '+='
17516  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17517    && mv -f "$cfgfile.tmp" "$cfgfile" \
17518      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17519  test 0 -eq $? || _lt_function_replace_fail=:
17520else
17521  # Save a `func_append' function call even when '+=' is not available
17522  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17523    && mv -f "$cfgfile.tmp" "$cfgfile" \
17524      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17525  test 0 -eq $? || _lt_function_replace_fail=:
17526fi
17527
17528if test x"$_lt_function_replace_fail" = x":"; then
17529  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17530$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17531fi
17532
17533
17534   mv -f "$cfgfile" "$ofile" ||
17535    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17536  chmod +x "$ofile"
17537
17538 ;;
17539
17540  esac
17541done # for ac_tag
17542
17543
17544as_fn_exit 0
17545_ACEOF
17546ac_clean_files=$ac_clean_files_save
17547
17548test $ac_write_fail = 0 ||
17549  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17550
17551
17552# configure is writing to config.log, and then calls config.status.
17553# config.status does its own redirection, appending to config.log.
17554# Unfortunately, on DOS this fails, as config.log is still kept open
17555# by configure, so config.status won't be able to write to it; its
17556# output is simply discarded.  So we exec the FD to /dev/null,
17557# effectively closing config.log, so it can be properly (re)opened and
17558# appended to by config.status.  When coming back to configure, we
17559# need to make the FD available again.
17560if test "$no_create" != yes; then
17561  ac_cs_success=:
17562  ac_config_status_args=
17563  test "$silent" = yes &&
17564    ac_config_status_args="$ac_config_status_args --quiet"
17565  exec 5>/dev/null
17566  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17567  exec 5>>config.log
17568  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17569  # would make configure fail if this is the last instruction.
17570  $ac_cs_success || as_fn_exit 1
17571fi
17572if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17573  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17574$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17575fi
17576
17577
17578echo ""
17579echo "X11 will be built with the following settings:"
17580echo " Loadable i18n module support:            "$XLIB_LOADABLE_I18N
17581echo " Loadable xcursor library support:        "$XLIB_LOADABLE_XCURSOR
17582echo " Threading support:                       "$xthreads
17583echo " Use Threads safe API:                    "$mtsafeapi
17584echo " Threads stubs in libX11:                 "$thrstubs
17585echo " XCMS:                                    "$XCMS
17586echo " Internationalization support:            "$XLOCALE
17587echo " XF86BigFont support:                     "$XF86BIGFONT
17588echo " XKB support:                             "$XKB
17589echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR
17590echo " Compose table cache enabled:             "$COMPOSECACHE
17591echo " Functional specs building enabled:       "$build_specs
17592echo ""
17593