configure revision 0145ab54
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libXfont 1.5.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
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='libXfont'
633PACKAGE_TARNAME='libXfont'
634PACKAGE_VERSION='1.5.0'
635PACKAGE_STRING='libXfont 1.5.0'
636PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
637PACKAGE_URL=''
638
639ac_unique_file="Makefile.am"
640# Factoring default headers for most tests.
641ac_includes_default="\
642#include <stdio.h>
643#ifdef HAVE_SYS_TYPES_H
644# include <sys/types.h>
645#endif
646#ifdef HAVE_SYS_STAT_H
647# include <sys/stat.h>
648#endif
649#ifdef STDC_HEADERS
650# include <stdlib.h>
651# include <stddef.h>
652#else
653# ifdef HAVE_STDLIB_H
654#  include <stdlib.h>
655# endif
656#endif
657#ifdef HAVE_STRING_H
658# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
659#  include <memory.h>
660# endif
661# include <string.h>
662#endif
663#ifdef HAVE_STRINGS_H
664# include <strings.h>
665#endif
666#ifdef HAVE_INTTYPES_H
667# include <inttypes.h>
668#endif
669#ifdef HAVE_STDINT_H
670# include <stdint.h>
671#endif
672#ifdef HAVE_UNISTD_H
673# include <unistd.h>
674#endif"
675
676ac_subst_vars='am__EXEEXT_FALSE
677am__EXEEXT_TRUE
678LTLIBOBJS
679LIBOBJS
680OS_CFLAGS
681XFONT_LIBS
682XFONT_CFLAGS
683MATH_LIBS
684XFONT_FC_FALSE
685XFONT_FC_TRUE
686XFONT_FONTFILE_FALSE
687XFONT_FONTFILE_TRUE
688XFONT_BITMAP_FALSE
689XFONT_BITMAP_TRUE
690XFONT_SNFFORMAT_FALSE
691XFONT_SNFFORMAT_TRUE
692XFONT_BDFFORMAT_FALSE
693XFONT_BDFFORMAT_TRUE
694XFONT_PCF_OR_BUILTIN_FALSE
695XFONT_PCF_OR_BUILTIN_TRUE
696XFONT_PCFFORMAT_FALSE
697XFONT_PCFFORMAT_TRUE
698XFONT_BUILTINS_FALSE
699XFONT_BUILTINS_TRUE
700Z_LIBS
701X_BZIP2_FONT_COMPRESSION_FALSE
702X_BZIP2_FONT_COMPRESSION_TRUE
703X_GZIP_FONT_COMPRESSION
704FREETYPE_REQUIRES
705ft_config
706FREETYPE_LIBS
707FREETYPE_CFLAGS
708XFONT_FREETYPE_FALSE
709XFONT_FREETYPE_TRUE
710HAVE_STYLESHEETS_FALSE
711HAVE_STYLESHEETS_TRUE
712XSL_STYLESHEET
713STYLESHEET_SRCDIR
714XORG_SGML_PATH
715HAVE_FOP_FALSE
716HAVE_FOP_TRUE
717FOP
718HAVE_XMLTO_FALSE
719HAVE_XMLTO_TRUE
720HAVE_XMLTO_TEXT_FALSE
721HAVE_XMLTO_TEXT_TRUE
722XMLTO
723ENABLE_DEVEL_DOCS_FALSE
724ENABLE_DEVEL_DOCS_TRUE
725MAN_SUBSTS
726XORG_MAN_PAGE
727ADMIN_MAN_DIR
728DRIVER_MAN_DIR
729MISC_MAN_DIR
730FILE_MAN_DIR
731LIB_MAN_DIR
732APP_MAN_DIR
733ADMIN_MAN_SUFFIX
734DRIVER_MAN_SUFFIX
735MISC_MAN_SUFFIX
736FILE_MAN_SUFFIX
737LIB_MAN_SUFFIX
738APP_MAN_SUFFIX
739INSTALL_CMD
740PKG_CONFIG
741CHANGELOG_CMD
742STRICT_CFLAGS
743CWARNFLAGS
744BASE_CFLAGS
745OTOOL64
746OTOOL
747LIPO
748NMEDIT
749DSYMUTIL
750MANIFEST_TOOL
751RANLIB
752ac_ct_AR
753AR
754DLLTOOL
755OBJDUMP
756LN_S
757NM
758ac_ct_DUMPBIN
759DUMPBIN
760LD
761FGREP
762SED
763host_os
764host_vendor
765host_cpu
766host
767build_os
768build_vendor
769build_cpu
770build
771LIBTOOL
772EGREP
773GREP
774CPP
775am__fastdepCC_FALSE
776am__fastdepCC_TRUE
777CCDEPMODE
778am__nodep
779AMDEPBACKSLASH
780AMDEP_FALSE
781AMDEP_TRUE
782am__quote
783am__include
784DEPDIR
785OBJEXT
786EXEEXT
787ac_ct_CC
788CPPFLAGS
789LDFLAGS
790CFLAGS
791CC
792AM_BACKSLASH
793AM_DEFAULT_VERBOSITY
794AM_DEFAULT_V
795AM_V
796am__untar
797am__tar
798AMTAR
799am__leading_dot
800SET_MAKE
801AWK
802mkdir_p
803MKDIR_P
804INSTALL_STRIP_PROGRAM
805STRIP
806install_sh
807MAKEINFO
808AUTOHEADER
809AUTOMAKE
810AUTOCONF
811ACLOCAL
812VERSION
813PACKAGE
814CYGPATH_W
815am__isrc
816INSTALL_DATA
817INSTALL_SCRIPT
818INSTALL_PROGRAM
819target_alias
820host_alias
821build_alias
822LIBS
823ECHO_T
824ECHO_N
825ECHO_C
826DEFS
827mandir
828localedir
829libdir
830psdir
831pdfdir
832dvidir
833htmldir
834infodir
835docdir
836oldincludedir
837includedir
838localstatedir
839sharedstatedir
840sysconfdir
841datadir
842datarootdir
843libexecdir
844sbindir
845bindir
846program_transform_name
847prefix
848exec_prefix
849PACKAGE_URL
850PACKAGE_BUGREPORT
851PACKAGE_STRING
852PACKAGE_VERSION
853PACKAGE_TARNAME
854PACKAGE_NAME
855PATH_SEPARATOR
856SHELL'
857ac_subst_files=''
858ac_user_opts='
859enable_option_checking
860enable_silent_rules
861enable_dependency_tracking
862enable_shared
863enable_static
864with_pic
865enable_fast_install
866with_gnu_ld
867with_sysroot
868enable_libtool_lock
869enable_selective_werror
870enable_strict_compilation
871enable_devel_docs
872with_xmlto
873with_fop
874enable_freetype
875with_freetype_config
876with_bzip2
877enable_builtins
878enable_pcfformat
879enable_bdfformat
880enable_snfformat
881enable_fc
882enable_unix_transport
883enable_tcp_transport
884enable_ipv6
885enable_local_transport
886'
887      ac_precious_vars='build_alias
888host_alias
889target_alias
890CC
891CFLAGS
892LDFLAGS
893LIBS
894CPPFLAGS
895CPP
896PKG_CONFIG
897XMLTO
898FOP
899FREETYPE_CFLAGS
900FREETYPE_LIBS
901XFONT_CFLAGS
902XFONT_LIBS'
903
904
905# Initialize some variables set by options.
906ac_init_help=
907ac_init_version=false
908ac_unrecognized_opts=
909ac_unrecognized_sep=
910# The variables have the same names as the options, with
911# dashes changed to underlines.
912cache_file=/dev/null
913exec_prefix=NONE
914no_create=
915no_recursion=
916prefix=NONE
917program_prefix=NONE
918program_suffix=NONE
919program_transform_name=s,x,x,
920silent=
921site=
922srcdir=
923verbose=
924x_includes=NONE
925x_libraries=NONE
926
927# Installation directory options.
928# These are left unexpanded so users can "make install exec_prefix=/foo"
929# and all the variables that are supposed to be based on exec_prefix
930# by default will actually change.
931# Use braces instead of parens because sh, perl, etc. also accept them.
932# (The list follows the same order as the GNU Coding Standards.)
933bindir='${exec_prefix}/bin'
934sbindir='${exec_prefix}/sbin'
935libexecdir='${exec_prefix}/libexec'
936datarootdir='${prefix}/share'
937datadir='${datarootdir}'
938sysconfdir='${prefix}/etc'
939sharedstatedir='${prefix}/com'
940localstatedir='${prefix}/var'
941includedir='${prefix}/include'
942oldincludedir='/usr/include'
943docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
944infodir='${datarootdir}/info'
945htmldir='${docdir}'
946dvidir='${docdir}'
947pdfdir='${docdir}'
948psdir='${docdir}'
949libdir='${exec_prefix}/lib'
950localedir='${datarootdir}/locale'
951mandir='${datarootdir}/man'
952
953ac_prev=
954ac_dashdash=
955for ac_option
956do
957  # If the previous option needs an argument, assign it.
958  if test -n "$ac_prev"; then
959    eval $ac_prev=\$ac_option
960    ac_prev=
961    continue
962  fi
963
964  case $ac_option in
965  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966  *=)   ac_optarg= ;;
967  *)    ac_optarg=yes ;;
968  esac
969
970  # Accept the important Cygnus configure options, so we can diagnose typos.
971
972  case $ac_dashdash$ac_option in
973  --)
974    ac_dashdash=yes ;;
975
976  -bindir | --bindir | --bindi | --bind | --bin | --bi)
977    ac_prev=bindir ;;
978  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979    bindir=$ac_optarg ;;
980
981  -build | --build | --buil | --bui | --bu)
982    ac_prev=build_alias ;;
983  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984    build_alias=$ac_optarg ;;
985
986  -cache-file | --cache-file | --cache-fil | --cache-fi \
987  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988    ac_prev=cache_file ;;
989  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991    cache_file=$ac_optarg ;;
992
993  --config-cache | -C)
994    cache_file=config.cache ;;
995
996  -datadir | --datadir | --datadi | --datad)
997    ac_prev=datadir ;;
998  -datadir=* | --datadir=* | --datadi=* | --datad=*)
999    datadir=$ac_optarg ;;
1000
1001  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002  | --dataroo | --dataro | --datar)
1003    ac_prev=datarootdir ;;
1004  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006    datarootdir=$ac_optarg ;;
1007
1008  -disable-* | --disable-*)
1009    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010    # Reject names that are not valid shell variable names.
1011    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012      as_fn_error $? "invalid feature name: $ac_useropt"
1013    ac_useropt_orig=$ac_useropt
1014    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015    case $ac_user_opts in
1016      *"
1017"enable_$ac_useropt"
1018"*) ;;
1019      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020	 ac_unrecognized_sep=', ';;
1021    esac
1022    eval enable_$ac_useropt=no ;;
1023
1024  -docdir | --docdir | --docdi | --doc | --do)
1025    ac_prev=docdir ;;
1026  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027    docdir=$ac_optarg ;;
1028
1029  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030    ac_prev=dvidir ;;
1031  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032    dvidir=$ac_optarg ;;
1033
1034  -enable-* | --enable-*)
1035    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036    # Reject names that are not valid shell variable names.
1037    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038      as_fn_error $? "invalid feature name: $ac_useropt"
1039    ac_useropt_orig=$ac_useropt
1040    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041    case $ac_user_opts in
1042      *"
1043"enable_$ac_useropt"
1044"*) ;;
1045      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046	 ac_unrecognized_sep=', ';;
1047    esac
1048    eval enable_$ac_useropt=\$ac_optarg ;;
1049
1050  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052  | --exec | --exe | --ex)
1053    ac_prev=exec_prefix ;;
1054  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056  | --exec=* | --exe=* | --ex=*)
1057    exec_prefix=$ac_optarg ;;
1058
1059  -gas | --gas | --ga | --g)
1060    # Obsolete; use --with-gas.
1061    with_gas=yes ;;
1062
1063  -help | --help | --hel | --he | -h)
1064    ac_init_help=long ;;
1065  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066    ac_init_help=recursive ;;
1067  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068    ac_init_help=short ;;
1069
1070  -host | --host | --hos | --ho)
1071    ac_prev=host_alias ;;
1072  -host=* | --host=* | --hos=* | --ho=*)
1073    host_alias=$ac_optarg ;;
1074
1075  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076    ac_prev=htmldir ;;
1077  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078  | --ht=*)
1079    htmldir=$ac_optarg ;;
1080
1081  -includedir | --includedir | --includedi | --included | --include \
1082  | --includ | --inclu | --incl | --inc)
1083    ac_prev=includedir ;;
1084  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085  | --includ=* | --inclu=* | --incl=* | --inc=*)
1086    includedir=$ac_optarg ;;
1087
1088  -infodir | --infodir | --infodi | --infod | --info | --inf)
1089    ac_prev=infodir ;;
1090  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091    infodir=$ac_optarg ;;
1092
1093  -libdir | --libdir | --libdi | --libd)
1094    ac_prev=libdir ;;
1095  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096    libdir=$ac_optarg ;;
1097
1098  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099  | --libexe | --libex | --libe)
1100    ac_prev=libexecdir ;;
1101  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102  | --libexe=* | --libex=* | --libe=*)
1103    libexecdir=$ac_optarg ;;
1104
1105  -localedir | --localedir | --localedi | --localed | --locale)
1106    ac_prev=localedir ;;
1107  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108    localedir=$ac_optarg ;;
1109
1110  -localstatedir | --localstatedir | --localstatedi | --localstated \
1111  | --localstate | --localstat | --localsta | --localst | --locals)
1112    ac_prev=localstatedir ;;
1113  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115    localstatedir=$ac_optarg ;;
1116
1117  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118    ac_prev=mandir ;;
1119  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120    mandir=$ac_optarg ;;
1121
1122  -nfp | --nfp | --nf)
1123    # Obsolete; use --without-fp.
1124    with_fp=no ;;
1125
1126  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127  | --no-cr | --no-c | -n)
1128    no_create=yes ;;
1129
1130  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132    no_recursion=yes ;;
1133
1134  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136  | --oldin | --oldi | --old | --ol | --o)
1137    ac_prev=oldincludedir ;;
1138  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141    oldincludedir=$ac_optarg ;;
1142
1143  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144    ac_prev=prefix ;;
1145  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146    prefix=$ac_optarg ;;
1147
1148  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149  | --program-pre | --program-pr | --program-p)
1150    ac_prev=program_prefix ;;
1151  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153    program_prefix=$ac_optarg ;;
1154
1155  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156  | --program-suf | --program-su | --program-s)
1157    ac_prev=program_suffix ;;
1158  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160    program_suffix=$ac_optarg ;;
1161
1162  -program-transform-name | --program-transform-name \
1163  | --program-transform-nam | --program-transform-na \
1164  | --program-transform-n | --program-transform- \
1165  | --program-transform | --program-transfor \
1166  | --program-transfo | --program-transf \
1167  | --program-trans | --program-tran \
1168  | --progr-tra | --program-tr | --program-t)
1169    ac_prev=program_transform_name ;;
1170  -program-transform-name=* | --program-transform-name=* \
1171  | --program-transform-nam=* | --program-transform-na=* \
1172  | --program-transform-n=* | --program-transform-=* \
1173  | --program-transform=* | --program-transfor=* \
1174  | --program-transfo=* | --program-transf=* \
1175  | --program-trans=* | --program-tran=* \
1176  | --progr-tra=* | --program-tr=* | --program-t=*)
1177    program_transform_name=$ac_optarg ;;
1178
1179  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180    ac_prev=pdfdir ;;
1181  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182    pdfdir=$ac_optarg ;;
1183
1184  -psdir | --psdir | --psdi | --psd | --ps)
1185    ac_prev=psdir ;;
1186  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187    psdir=$ac_optarg ;;
1188
1189  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190  | -silent | --silent | --silen | --sile | --sil)
1191    silent=yes ;;
1192
1193  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194    ac_prev=sbindir ;;
1195  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196  | --sbi=* | --sb=*)
1197    sbindir=$ac_optarg ;;
1198
1199  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201  | --sharedst | --shareds | --shared | --share | --shar \
1202  | --sha | --sh)
1203    ac_prev=sharedstatedir ;;
1204  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207  | --sha=* | --sh=*)
1208    sharedstatedir=$ac_optarg ;;
1209
1210  -site | --site | --sit)
1211    ac_prev=site ;;
1212  -site=* | --site=* | --sit=*)
1213    site=$ac_optarg ;;
1214
1215  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216    ac_prev=srcdir ;;
1217  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218    srcdir=$ac_optarg ;;
1219
1220  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221  | --syscon | --sysco | --sysc | --sys | --sy)
1222    ac_prev=sysconfdir ;;
1223  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225    sysconfdir=$ac_optarg ;;
1226
1227  -target | --target | --targe | --targ | --tar | --ta | --t)
1228    ac_prev=target_alias ;;
1229  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230    target_alias=$ac_optarg ;;
1231
1232  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233    verbose=yes ;;
1234
1235  -version | --version | --versio | --versi | --vers | -V)
1236    ac_init_version=: ;;
1237
1238  -with-* | --with-*)
1239    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240    # Reject names that are not valid shell variable names.
1241    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242      as_fn_error $? "invalid package name: $ac_useropt"
1243    ac_useropt_orig=$ac_useropt
1244    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245    case $ac_user_opts in
1246      *"
1247"with_$ac_useropt"
1248"*) ;;
1249      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1250	 ac_unrecognized_sep=', ';;
1251    esac
1252    eval with_$ac_useropt=\$ac_optarg ;;
1253
1254  -without-* | --without-*)
1255    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256    # Reject names that are not valid shell variable names.
1257    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258      as_fn_error $? "invalid package name: $ac_useropt"
1259    ac_useropt_orig=$ac_useropt
1260    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261    case $ac_user_opts in
1262      *"
1263"with_$ac_useropt"
1264"*) ;;
1265      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1266	 ac_unrecognized_sep=', ';;
1267    esac
1268    eval with_$ac_useropt=no ;;
1269
1270  --x)
1271    # Obsolete; use --with-x.
1272    with_x=yes ;;
1273
1274  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1275  | --x-incl | --x-inc | --x-in | --x-i)
1276    ac_prev=x_includes ;;
1277  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1278  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1279    x_includes=$ac_optarg ;;
1280
1281  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1282  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1283    ac_prev=x_libraries ;;
1284  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1285  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1286    x_libraries=$ac_optarg ;;
1287
1288  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1289Try \`$0 --help' for more information"
1290    ;;
1291
1292  *=*)
1293    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1294    # Reject names that are not valid shell variable names.
1295    case $ac_envvar in #(
1296      '' | [0-9]* | *[!_$as_cr_alnum]* )
1297      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1298    esac
1299    eval $ac_envvar=\$ac_optarg
1300    export $ac_envvar ;;
1301
1302  *)
1303    # FIXME: should be removed in autoconf 3.0.
1304    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1305    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1307    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308    ;;
1309
1310  esac
1311done
1312
1313if test -n "$ac_prev"; then
1314  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1315  as_fn_error $? "missing argument to $ac_option"
1316fi
1317
1318if test -n "$ac_unrecognized_opts"; then
1319  case $enable_option_checking in
1320    no) ;;
1321    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1322    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323  esac
1324fi
1325
1326# Check all directory arguments for consistency.
1327for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328		datadir sysconfdir sharedstatedir localstatedir includedir \
1329		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330		libdir localedir mandir
1331do
1332  eval ac_val=\$$ac_var
1333  # Remove trailing slashes.
1334  case $ac_val in
1335    */ )
1336      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1337      eval $ac_var=\$ac_val;;
1338  esac
1339  # Be sure to have absolute directory names.
1340  case $ac_val in
1341    [\\/$]* | ?:[\\/]* )  continue;;
1342    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343  esac
1344  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1345done
1346
1347# There might be people who depend on the old broken behavior: `$host'
1348# used to hold the argument of --host etc.
1349# FIXME: To remove some day.
1350build=$build_alias
1351host=$host_alias
1352target=$target_alias
1353
1354# FIXME: To remove some day.
1355if test "x$host_alias" != x; then
1356  if test "x$build_alias" = x; then
1357    cross_compiling=maybe
1358    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1359    If a cross compiler is detected then cross compile mode will be used" >&2
1360  elif test "x$build_alias" != "x$host_alias"; then
1361    cross_compiling=yes
1362  fi
1363fi
1364
1365ac_tool_prefix=
1366test -n "$host_alias" && ac_tool_prefix=$host_alias-
1367
1368test "$silent" = yes && exec 6>/dev/null
1369
1370
1371ac_pwd=`pwd` && test -n "$ac_pwd" &&
1372ac_ls_di=`ls -di .` &&
1373ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1374  as_fn_error $? "working directory cannot be determined"
1375test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376  as_fn_error $? "pwd does not report name of working directory"
1377
1378
1379# Find the source files, if location was not specified.
1380if test -z "$srcdir"; then
1381  ac_srcdir_defaulted=yes
1382  # Try the directory containing this script, then the parent directory.
1383  ac_confdir=`$as_dirname -- "$as_myself" ||
1384$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1385	 X"$as_myself" : 'X\(//\)[^/]' \| \
1386	 X"$as_myself" : 'X\(//\)$' \| \
1387	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1388$as_echo X"$as_myself" |
1389    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390	    s//\1/
1391	    q
1392	  }
1393	  /^X\(\/\/\)[^/].*/{
1394	    s//\1/
1395	    q
1396	  }
1397	  /^X\(\/\/\)$/{
1398	    s//\1/
1399	    q
1400	  }
1401	  /^X\(\/\).*/{
1402	    s//\1/
1403	    q
1404	  }
1405	  s/.*/./; q'`
1406  srcdir=$ac_confdir
1407  if test ! -r "$srcdir/$ac_unique_file"; then
1408    srcdir=..
1409  fi
1410else
1411  ac_srcdir_defaulted=no
1412fi
1413if test ! -r "$srcdir/$ac_unique_file"; then
1414  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1415  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1416fi
1417ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1418ac_abs_confdir=`(
1419	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1420	pwd)`
1421# When building in place, set srcdir=.
1422if test "$ac_abs_confdir" = "$ac_pwd"; then
1423  srcdir=.
1424fi
1425# Remove unnecessary trailing slashes from srcdir.
1426# Double slashes in file names in object file debugging info
1427# mess up M-x gdb in Emacs.
1428case $srcdir in
1429*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1430esac
1431for ac_var in $ac_precious_vars; do
1432  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1433  eval ac_env_${ac_var}_value=\$${ac_var}
1434  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1435  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1436done
1437
1438#
1439# Report the --help message.
1440#
1441if test "$ac_init_help" = "long"; then
1442  # Omit some internal or obsolete options to make the list less imposing.
1443  # This message is too long to be a string in the A/UX 3.1 sh.
1444  cat <<_ACEOF
1445\`configure' configures libXfont 1.5.0 to adapt to many kinds of systems.
1446
1447Usage: $0 [OPTION]... [VAR=VALUE]...
1448
1449To assign environment variables (e.g., CC, CFLAGS...), specify them as
1450VAR=VALUE.  See below for descriptions of some of the useful variables.
1451
1452Defaults for the options are specified in brackets.
1453
1454Configuration:
1455  -h, --help              display this help and exit
1456      --help=short        display options specific to this package
1457      --help=recursive    display the short help of all the included packages
1458  -V, --version           display version information and exit
1459  -q, --quiet, --silent   do not print \`checking ...' messages
1460      --cache-file=FILE   cache test results in FILE [disabled]
1461  -C, --config-cache      alias for \`--cache-file=config.cache'
1462  -n, --no-create         do not create output files
1463      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1464
1465Installation directories:
1466  --prefix=PREFIX         install architecture-independent files in PREFIX
1467                          [$ac_default_prefix]
1468  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1469                          [PREFIX]
1470
1471By default, \`make install' will install all the files in
1472\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1473an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1474for instance \`--prefix=\$HOME'.
1475
1476For better control, use the options below.
1477
1478Fine tuning of the installation directories:
1479  --bindir=DIR            user executables [EPREFIX/bin]
1480  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1481  --libexecdir=DIR        program executables [EPREFIX/libexec]
1482  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1483  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1484  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1485  --libdir=DIR            object code libraries [EPREFIX/lib]
1486  --includedir=DIR        C header files [PREFIX/include]
1487  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1488  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1489  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1490  --infodir=DIR           info documentation [DATAROOTDIR/info]
1491  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1492  --mandir=DIR            man documentation [DATAROOTDIR/man]
1493  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXfont]
1494  --htmldir=DIR           html documentation [DOCDIR]
1495  --dvidir=DIR            dvi documentation [DOCDIR]
1496  --pdfdir=DIR            pdf documentation [DOCDIR]
1497  --psdir=DIR             ps documentation [DOCDIR]
1498_ACEOF
1499
1500  cat <<\_ACEOF
1501
1502Program names:
1503  --program-prefix=PREFIX            prepend PREFIX to installed program names
1504  --program-suffix=SUFFIX            append SUFFIX to installed program names
1505  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1506
1507System types:
1508  --build=BUILD     configure for building on BUILD [guessed]
1509  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1510_ACEOF
1511fi
1512
1513if test -n "$ac_init_help"; then
1514  case $ac_init_help in
1515     short | recursive ) echo "Configuration of libXfont 1.5.0:";;
1516   esac
1517  cat <<\_ACEOF
1518
1519Optional Features:
1520  --disable-option-checking  ignore unrecognized --enable/--with options
1521  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1522  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1523  --enable-silent-rules   less verbose build output (undo: "make V=1")
1524  --disable-silent-rules  verbose build output (undo: "make V=0")
1525  --enable-dependency-tracking
1526                          do not reject slow dependency extractors
1527  --disable-dependency-tracking
1528                          speeds up one-time build
1529  --enable-shared[=PKGS]  build shared libraries [default=yes]
1530  --enable-static[=PKGS]  build static libraries [default=yes]
1531  --enable-fast-install[=PKGS]
1532                          optimize for fast installation [default=yes]
1533  --disable-libtool-lock  avoid locking (might break parallel builds)
1534  --disable-selective-werror
1535                          Turn off selective compiler errors. (default:
1536                          enabled)
1537  --enable-strict-compilation
1538                          Enable all warnings from compiler and make them
1539                          errors (default: disabled)
1540  --enable-devel-docs     Enable building the developer documentation
1541                          (default: yes)
1542  --disable-freetype      Build freetype backend (default: enabled)
1543  --disable-builtins      Support builtin fonts (default: enabled)
1544  --disable-pcfformat     Support PCF format bitmap fonts (default: enabled)
1545  --disable-bdfformat     Support BDF format bitmap fonts (default: enabled)
1546  --enable-snfformat      Support SNF format bitmap fonts (default: disabled)
1547  --disable-fc            Support connections to xfs servers (default:
1548                          enabled)
1549  --enable-unix-transport Enable UNIX domain socket transport
1550  --enable-tcp-transport  Enable TCP socket transport
1551  --enable-ipv6           Enable IPv6 support
1552  --enable-local-transport
1553                          Enable os-specific local transport
1554
1555Optional Packages:
1556  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1557  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1558  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1559                          both]
1560  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1561  --with-sysroot=DIR Search for dependent libraries within DIR
1562                        (or the compiler's sysroot if not specified).
1563  --with-xmlto            Use xmlto to regenerate documentation (default:
1564                          auto)
1565  --with-fop              Use fop to regenerate documentation (default: auto)
1566  --with-freetype-config=PROG
1567                          Use FreeType configuration program PROG
1568  --with-bzip2            Use libbz2 to support bzip2 compressed bitmap fonts
1569                          (default: no)
1570
1571Some influential environment variables:
1572  CC          C compiler command
1573  CFLAGS      C compiler flags
1574  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1575              nonstandard directory <lib dir>
1576  LIBS        libraries to pass to the linker, e.g. -l<library>
1577  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1578              you have headers in a nonstandard directory <include dir>
1579  CPP         C preprocessor
1580  PKG_CONFIG  path to pkg-config utility
1581  XMLTO       Path to xmlto command
1582  FOP         Path to fop command
1583  FREETYPE_CFLAGS
1584              C compiler flags for FREETYPE, overriding pkg-config
1585  FREETYPE_LIBS
1586              linker flags for FREETYPE, overriding pkg-config
1587  XFONT_CFLAGS
1588              C compiler flags for XFONT, overriding pkg-config
1589  XFONT_LIBS  linker flags for XFONT, overriding pkg-config
1590
1591Use these variables to override the choices made by `configure' or to help
1592it to find libraries and programs with nonstandard names/locations.
1593
1594Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1595_ACEOF
1596ac_status=$?
1597fi
1598
1599if test "$ac_init_help" = "recursive"; then
1600  # If there are subdirs, report their specific --help.
1601  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602    test -d "$ac_dir" ||
1603      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604      continue
1605    ac_builddir=.
1606
1607case "$ac_dir" in
1608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609*)
1610  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611  # A ".." for each directory in $ac_dir_suffix.
1612  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613  case $ac_top_builddir_sub in
1614  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616  esac ;;
1617esac
1618ac_abs_top_builddir=$ac_pwd
1619ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620# for backward compatibility:
1621ac_top_builddir=$ac_top_build_prefix
1622
1623case $srcdir in
1624  .)  # We are building in place.
1625    ac_srcdir=.
1626    ac_top_srcdir=$ac_top_builddir_sub
1627    ac_abs_top_srcdir=$ac_pwd ;;
1628  [\\/]* | ?:[\\/]* )  # Absolute name.
1629    ac_srcdir=$srcdir$ac_dir_suffix;
1630    ac_top_srcdir=$srcdir
1631    ac_abs_top_srcdir=$srcdir ;;
1632  *) # Relative name.
1633    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634    ac_top_srcdir=$ac_top_build_prefix$srcdir
1635    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636esac
1637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1638
1639    cd "$ac_dir" || { ac_status=$?; continue; }
1640    # Check for guested configure.
1641    if test -f "$ac_srcdir/configure.gnu"; then
1642      echo &&
1643      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644    elif test -f "$ac_srcdir/configure"; then
1645      echo &&
1646      $SHELL "$ac_srcdir/configure" --help=recursive
1647    else
1648      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649    fi || ac_status=$?
1650    cd "$ac_pwd" || { ac_status=$?; break; }
1651  done
1652fi
1653
1654test -n "$ac_init_help" && exit $ac_status
1655if $ac_init_version; then
1656  cat <<\_ACEOF
1657libXfont configure 1.5.0
1658generated by GNU Autoconf 2.68
1659
1660Copyright (C) 2010 Free Software Foundation, Inc.
1661This configure script is free software; the Free Software Foundation
1662gives unlimited permission to copy, distribute and modify it.
1663_ACEOF
1664  exit
1665fi
1666
1667## ------------------------ ##
1668## Autoconf initialization. ##
1669## ------------------------ ##
1670
1671# ac_fn_c_try_compile LINENO
1672# --------------------------
1673# Try to compile conftest.$ac_ext, and return whether this succeeded.
1674ac_fn_c_try_compile ()
1675{
1676  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677  rm -f conftest.$ac_objext
1678  if { { ac_try="$ac_compile"
1679case "(($ac_try" in
1680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681  *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685  (eval "$ac_compile") 2>conftest.err
1686  ac_status=$?
1687  if test -s conftest.err; then
1688    grep -v '^ *+' conftest.err >conftest.er1
1689    cat conftest.er1 >&5
1690    mv -f conftest.er1 conftest.err
1691  fi
1692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693  test $ac_status = 0; } && {
1694	 test -z "$ac_c_werror_flag" ||
1695	 test ! -s conftest.err
1696       } && test -s conftest.$ac_objext; then :
1697  ac_retval=0
1698else
1699  $as_echo "$as_me: failed program was:" >&5
1700sed 's/^/| /' conftest.$ac_ext >&5
1701
1702	ac_retval=1
1703fi
1704  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705  as_fn_set_status $ac_retval
1706
1707} # ac_fn_c_try_compile
1708
1709# ac_fn_c_try_cpp LINENO
1710# ----------------------
1711# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1712ac_fn_c_try_cpp ()
1713{
1714  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715  if { { ac_try="$ac_cpp conftest.$ac_ext"
1716case "(($ac_try" in
1717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718  *) ac_try_echo=$ac_try;;
1719esac
1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721$as_echo "$ac_try_echo"; } >&5
1722  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1723  ac_status=$?
1724  if test -s conftest.err; then
1725    grep -v '^ *+' conftest.err >conftest.er1
1726    cat conftest.er1 >&5
1727    mv -f conftest.er1 conftest.err
1728  fi
1729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730  test $ac_status = 0; } > conftest.i && {
1731	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1732	 test ! -s conftest.err
1733       }; then :
1734  ac_retval=0
1735else
1736  $as_echo "$as_me: failed program was:" >&5
1737sed 's/^/| /' conftest.$ac_ext >&5
1738
1739    ac_retval=1
1740fi
1741  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742  as_fn_set_status $ac_retval
1743
1744} # ac_fn_c_try_cpp
1745
1746# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1747# -------------------------------------------------------
1748# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1749# the include files in INCLUDES and setting the cache variable VAR
1750# accordingly.
1751ac_fn_c_check_header_mongrel ()
1752{
1753  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754  if eval \${$3+:} false; then :
1755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756$as_echo_n "checking for $2... " >&6; }
1757if eval \${$3+:} false; then :
1758  $as_echo_n "(cached) " >&6
1759fi
1760eval ac_res=\$$3
1761	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762$as_echo "$ac_res" >&6; }
1763else
1764  # Is the header compilable?
1765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1766$as_echo_n "checking $2 usability... " >&6; }
1767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768/* end confdefs.h.  */
1769$4
1770#include <$2>
1771_ACEOF
1772if ac_fn_c_try_compile "$LINENO"; then :
1773  ac_header_compiler=yes
1774else
1775  ac_header_compiler=no
1776fi
1777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1779$as_echo "$ac_header_compiler" >&6; }
1780
1781# Is the header present?
1782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1783$as_echo_n "checking $2 presence... " >&6; }
1784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785/* end confdefs.h.  */
1786#include <$2>
1787_ACEOF
1788if ac_fn_c_try_cpp "$LINENO"; then :
1789  ac_header_preproc=yes
1790else
1791  ac_header_preproc=no
1792fi
1793rm -f conftest.err conftest.i conftest.$ac_ext
1794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1795$as_echo "$ac_header_preproc" >&6; }
1796
1797# So?  What about this header?
1798case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1799  yes:no: )
1800    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1801$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1802    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1803$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1804    ;;
1805  no:yes:* )
1806    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1807$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1808    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1809$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1810    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1811$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1812    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1813$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1814    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1815$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1816( $as_echo "## ---------------------------------------------------------------------- ##
1817## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1818## ---------------------------------------------------------------------- ##"
1819     ) | sed "s/^/$as_me: WARNING:     /" >&2
1820    ;;
1821esac
1822  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823$as_echo_n "checking for $2... " >&6; }
1824if eval \${$3+:} false; then :
1825  $as_echo_n "(cached) " >&6
1826else
1827  eval "$3=\$ac_header_compiler"
1828fi
1829eval ac_res=\$$3
1830	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831$as_echo "$ac_res" >&6; }
1832fi
1833  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834
1835} # ac_fn_c_check_header_mongrel
1836
1837# ac_fn_c_try_run LINENO
1838# ----------------------
1839# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1840# that executables *can* be run.
1841ac_fn_c_try_run ()
1842{
1843  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844  if { { ac_try="$ac_link"
1845case "(($ac_try" in
1846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847  *) ac_try_echo=$ac_try;;
1848esac
1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850$as_echo "$ac_try_echo"; } >&5
1851  (eval "$ac_link") 2>&5
1852  ac_status=$?
1853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1855  { { case "(($ac_try" in
1856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857  *) ac_try_echo=$ac_try;;
1858esac
1859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860$as_echo "$ac_try_echo"; } >&5
1861  (eval "$ac_try") 2>&5
1862  ac_status=$?
1863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864  test $ac_status = 0; }; }; then :
1865  ac_retval=0
1866else
1867  $as_echo "$as_me: program exited with status $ac_status" >&5
1868       $as_echo "$as_me: failed program was:" >&5
1869sed 's/^/| /' conftest.$ac_ext >&5
1870
1871       ac_retval=$ac_status
1872fi
1873  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875  as_fn_set_status $ac_retval
1876
1877} # ac_fn_c_try_run
1878
1879# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1880# -------------------------------------------------------
1881# Tests whether HEADER exists and can be compiled using the include files in
1882# INCLUDES, setting the cache variable VAR accordingly.
1883ac_fn_c_check_header_compile ()
1884{
1885  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887$as_echo_n "checking for $2... " >&6; }
1888if eval \${$3+:} false; then :
1889  $as_echo_n "(cached) " >&6
1890else
1891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892/* end confdefs.h.  */
1893$4
1894#include <$2>
1895_ACEOF
1896if ac_fn_c_try_compile "$LINENO"; then :
1897  eval "$3=yes"
1898else
1899  eval "$3=no"
1900fi
1901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902fi
1903eval ac_res=\$$3
1904	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905$as_echo "$ac_res" >&6; }
1906  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907
1908} # ac_fn_c_check_header_compile
1909
1910# ac_fn_c_try_link LINENO
1911# -----------------------
1912# Try to link conftest.$ac_ext, and return whether this succeeded.
1913ac_fn_c_try_link ()
1914{
1915  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916  rm -f conftest.$ac_objext conftest$ac_exeext
1917  if { { ac_try="$ac_link"
1918case "(($ac_try" in
1919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920  *) ac_try_echo=$ac_try;;
1921esac
1922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923$as_echo "$ac_try_echo"; } >&5
1924  (eval "$ac_link") 2>conftest.err
1925  ac_status=$?
1926  if test -s conftest.err; then
1927    grep -v '^ *+' conftest.err >conftest.er1
1928    cat conftest.er1 >&5
1929    mv -f conftest.er1 conftest.err
1930  fi
1931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932  test $ac_status = 0; } && {
1933	 test -z "$ac_c_werror_flag" ||
1934	 test ! -s conftest.err
1935       } && test -s conftest$ac_exeext && {
1936	 test "$cross_compiling" = yes ||
1937	 $as_test_x conftest$ac_exeext
1938       }; then :
1939  ac_retval=0
1940else
1941  $as_echo "$as_me: failed program was:" >&5
1942sed 's/^/| /' conftest.$ac_ext >&5
1943
1944	ac_retval=1
1945fi
1946  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1947  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1948  # interfere with the next link command; also delete a directory that is
1949  # left behind by Apple's compiler.  We do this before executing the actions.
1950  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1951  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952  as_fn_set_status $ac_retval
1953
1954} # ac_fn_c_try_link
1955
1956# ac_fn_c_check_func LINENO FUNC VAR
1957# ----------------------------------
1958# Tests whether FUNC exists, setting the cache variable VAR accordingly
1959ac_fn_c_check_func ()
1960{
1961  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963$as_echo_n "checking for $2... " >&6; }
1964if eval \${$3+:} false; then :
1965  $as_echo_n "(cached) " >&6
1966else
1967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968/* end confdefs.h.  */
1969/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1970   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1971#define $2 innocuous_$2
1972
1973/* System header to define __stub macros and hopefully few prototypes,
1974    which can conflict with char $2 (); below.
1975    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1976    <limits.h> exists even on freestanding compilers.  */
1977
1978#ifdef __STDC__
1979# include <limits.h>
1980#else
1981# include <assert.h>
1982#endif
1983
1984#undef $2
1985
1986/* Override any GCC internal prototype to avoid an error.
1987   Use char because int might match the return type of a GCC
1988   builtin and then its argument prototype would still apply.  */
1989#ifdef __cplusplus
1990extern "C"
1991#endif
1992char $2 ();
1993/* The GNU C library defines this for functions which it implements
1994    to always fail with ENOSYS.  Some functions are actually named
1995    something starting with __ and the normal name is an alias.  */
1996#if defined __stub_$2 || defined __stub___$2
1997choke me
1998#endif
1999
2000int
2001main ()
2002{
2003return $2 ();
2004  ;
2005  return 0;
2006}
2007_ACEOF
2008if ac_fn_c_try_link "$LINENO"; then :
2009  eval "$3=yes"
2010else
2011  eval "$3=no"
2012fi
2013rm -f core conftest.err conftest.$ac_objext \
2014    conftest$ac_exeext conftest.$ac_ext
2015fi
2016eval ac_res=\$$3
2017	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018$as_echo "$ac_res" >&6; }
2019  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020
2021} # ac_fn_c_check_func
2022
2023# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2024# ---------------------------------------------
2025# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2026# accordingly.
2027ac_fn_c_check_decl ()
2028{
2029  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030  as_decl_name=`echo $2|sed 's/ *(.*//'`
2031  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2032  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2033$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2034if eval \${$3+:} false; then :
2035  $as_echo_n "(cached) " >&6
2036else
2037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038/* end confdefs.h.  */
2039$4
2040int
2041main ()
2042{
2043#ifndef $as_decl_name
2044#ifdef __cplusplus
2045  (void) $as_decl_use;
2046#else
2047  (void) $as_decl_name;
2048#endif
2049#endif
2050
2051  ;
2052  return 0;
2053}
2054_ACEOF
2055if ac_fn_c_try_compile "$LINENO"; then :
2056  eval "$3=yes"
2057else
2058  eval "$3=no"
2059fi
2060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061fi
2062eval ac_res=\$$3
2063	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064$as_echo "$ac_res" >&6; }
2065  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066
2067} # ac_fn_c_check_decl
2068
2069# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2070# ----------------------------------------------------
2071# Tries to find if the field MEMBER exists in type AGGR, after including
2072# INCLUDES, setting cache variable VAR accordingly.
2073ac_fn_c_check_member ()
2074{
2075  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2077$as_echo_n "checking for $2.$3... " >&6; }
2078if eval \${$4+:} false; then :
2079  $as_echo_n "(cached) " >&6
2080else
2081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h.  */
2083$5
2084int
2085main ()
2086{
2087static $2 ac_aggr;
2088if (ac_aggr.$3)
2089return 0;
2090  ;
2091  return 0;
2092}
2093_ACEOF
2094if ac_fn_c_try_compile "$LINENO"; then :
2095  eval "$4=yes"
2096else
2097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098/* end confdefs.h.  */
2099$5
2100int
2101main ()
2102{
2103static $2 ac_aggr;
2104if (sizeof ac_aggr.$3)
2105return 0;
2106  ;
2107  return 0;
2108}
2109_ACEOF
2110if ac_fn_c_try_compile "$LINENO"; then :
2111  eval "$4=yes"
2112else
2113  eval "$4=no"
2114fi
2115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116fi
2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118fi
2119eval ac_res=\$$4
2120	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121$as_echo "$ac_res" >&6; }
2122  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123
2124} # ac_fn_c_check_member
2125
2126# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2127# -------------------------------------------
2128# Tests whether TYPE exists after having included INCLUDES, setting cache
2129# variable VAR accordingly.
2130ac_fn_c_check_type ()
2131{
2132  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2134$as_echo_n "checking for $2... " >&6; }
2135if eval \${$3+:} false; then :
2136  $as_echo_n "(cached) " >&6
2137else
2138  eval "$3=no"
2139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140/* end confdefs.h.  */
2141$4
2142int
2143main ()
2144{
2145if (sizeof ($2))
2146	 return 0;
2147  ;
2148  return 0;
2149}
2150_ACEOF
2151if ac_fn_c_try_compile "$LINENO"; then :
2152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h.  */
2154$4
2155int
2156main ()
2157{
2158if (sizeof (($2)))
2159	    return 0;
2160  ;
2161  return 0;
2162}
2163_ACEOF
2164if ac_fn_c_try_compile "$LINENO"; then :
2165
2166else
2167  eval "$3=yes"
2168fi
2169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170fi
2171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172fi
2173eval ac_res=\$$3
2174	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175$as_echo "$ac_res" >&6; }
2176  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177
2178} # ac_fn_c_check_type
2179cat >config.log <<_ACEOF
2180This file contains any messages produced by compilers while
2181running configure, to aid debugging if configure makes a mistake.
2182
2183It was created by libXfont $as_me 1.5.0, which was
2184generated by GNU Autoconf 2.68.  Invocation command line was
2185
2186  $ $0 $@
2187
2188_ACEOF
2189exec 5>>config.log
2190{
2191cat <<_ASUNAME
2192## --------- ##
2193## Platform. ##
2194## --------- ##
2195
2196hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2197uname -m = `(uname -m) 2>/dev/null || echo unknown`
2198uname -r = `(uname -r) 2>/dev/null || echo unknown`
2199uname -s = `(uname -s) 2>/dev/null || echo unknown`
2200uname -v = `(uname -v) 2>/dev/null || echo unknown`
2201
2202/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2203/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2204
2205/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2206/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2207/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2208/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2209/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2210/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2211/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2212
2213_ASUNAME
2214
2215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216for as_dir in $PATH
2217do
2218  IFS=$as_save_IFS
2219  test -z "$as_dir" && as_dir=.
2220    $as_echo "PATH: $as_dir"
2221  done
2222IFS=$as_save_IFS
2223
2224} >&5
2225
2226cat >&5 <<_ACEOF
2227
2228
2229## ----------- ##
2230## Core tests. ##
2231## ----------- ##
2232
2233_ACEOF
2234
2235
2236# Keep a trace of the command line.
2237# Strip out --no-create and --no-recursion so they do not pile up.
2238# Strip out --silent because we don't want to record it for future runs.
2239# Also quote any args containing shell meta-characters.
2240# Make two passes to allow for proper duplicate-argument suppression.
2241ac_configure_args=
2242ac_configure_args0=
2243ac_configure_args1=
2244ac_must_keep_next=false
2245for ac_pass in 1 2
2246do
2247  for ac_arg
2248  do
2249    case $ac_arg in
2250    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2251    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2252    | -silent | --silent | --silen | --sile | --sil)
2253      continue ;;
2254    *\'*)
2255      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2256    esac
2257    case $ac_pass in
2258    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2259    2)
2260      as_fn_append ac_configure_args1 " '$ac_arg'"
2261      if test $ac_must_keep_next = true; then
2262	ac_must_keep_next=false # Got value, back to normal.
2263      else
2264	case $ac_arg in
2265	  *=* | --config-cache | -C | -disable-* | --disable-* \
2266	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2267	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2268	  | -with-* | --with-* | -without-* | --without-* | --x)
2269	    case "$ac_configure_args0 " in
2270	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2271	    esac
2272	    ;;
2273	  -* ) ac_must_keep_next=true ;;
2274	esac
2275      fi
2276      as_fn_append ac_configure_args " '$ac_arg'"
2277      ;;
2278    esac
2279  done
2280done
2281{ ac_configure_args0=; unset ac_configure_args0;}
2282{ ac_configure_args1=; unset ac_configure_args1;}
2283
2284# When interrupted or exit'd, cleanup temporary files, and complete
2285# config.log.  We remove comments because anyway the quotes in there
2286# would cause problems or look ugly.
2287# WARNING: Use '\'' to represent an apostrophe within the trap.
2288# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2289trap 'exit_status=$?
2290  # Save into config.log some information that might help in debugging.
2291  {
2292    echo
2293
2294    $as_echo "## ---------------- ##
2295## Cache variables. ##
2296## ---------------- ##"
2297    echo
2298    # The following way of writing the cache mishandles newlines in values,
2299(
2300  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2301    eval ac_val=\$$ac_var
2302    case $ac_val in #(
2303    *${as_nl}*)
2304      case $ac_var in #(
2305      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2306$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2307      esac
2308      case $ac_var in #(
2309      _ | IFS | as_nl) ;; #(
2310      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2311      *) { eval $ac_var=; unset $ac_var;} ;;
2312      esac ;;
2313    esac
2314  done
2315  (set) 2>&1 |
2316    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2317    *${as_nl}ac_space=\ *)
2318      sed -n \
2319	"s/'\''/'\''\\\\'\'''\''/g;
2320	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2321      ;; #(
2322    *)
2323      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2324      ;;
2325    esac |
2326    sort
2327)
2328    echo
2329
2330    $as_echo "## ----------------- ##
2331## Output variables. ##
2332## ----------------- ##"
2333    echo
2334    for ac_var in $ac_subst_vars
2335    do
2336      eval ac_val=\$$ac_var
2337      case $ac_val in
2338      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2339      esac
2340      $as_echo "$ac_var='\''$ac_val'\''"
2341    done | sort
2342    echo
2343
2344    if test -n "$ac_subst_files"; then
2345      $as_echo "## ------------------- ##
2346## File substitutions. ##
2347## ------------------- ##"
2348      echo
2349      for ac_var in $ac_subst_files
2350      do
2351	eval ac_val=\$$ac_var
2352	case $ac_val in
2353	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2354	esac
2355	$as_echo "$ac_var='\''$ac_val'\''"
2356      done | sort
2357      echo
2358    fi
2359
2360    if test -s confdefs.h; then
2361      $as_echo "## ----------- ##
2362## confdefs.h. ##
2363## ----------- ##"
2364      echo
2365      cat confdefs.h
2366      echo
2367    fi
2368    test "$ac_signal" != 0 &&
2369      $as_echo "$as_me: caught signal $ac_signal"
2370    $as_echo "$as_me: exit $exit_status"
2371  } >&5
2372  rm -f core *.core core.conftest.* &&
2373    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2374    exit $exit_status
2375' 0
2376for ac_signal in 1 2 13 15; do
2377  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2378done
2379ac_signal=0
2380
2381# confdefs.h avoids OS command line length limits that DEFS can exceed.
2382rm -f -r conftest* confdefs.h
2383
2384$as_echo "/* confdefs.h */" > confdefs.h
2385
2386# Predefined preprocessor variables.
2387
2388cat >>confdefs.h <<_ACEOF
2389#define PACKAGE_NAME "$PACKAGE_NAME"
2390_ACEOF
2391
2392cat >>confdefs.h <<_ACEOF
2393#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2394_ACEOF
2395
2396cat >>confdefs.h <<_ACEOF
2397#define PACKAGE_VERSION "$PACKAGE_VERSION"
2398_ACEOF
2399
2400cat >>confdefs.h <<_ACEOF
2401#define PACKAGE_STRING "$PACKAGE_STRING"
2402_ACEOF
2403
2404cat >>confdefs.h <<_ACEOF
2405#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2406_ACEOF
2407
2408cat >>confdefs.h <<_ACEOF
2409#define PACKAGE_URL "$PACKAGE_URL"
2410_ACEOF
2411
2412
2413# Let the site file select an alternate cache file if it wants to.
2414# Prefer an explicitly selected file to automatically selected ones.
2415ac_site_file1=NONE
2416ac_site_file2=NONE
2417if test -n "$CONFIG_SITE"; then
2418  # We do not want a PATH search for config.site.
2419  case $CONFIG_SITE in #((
2420    -*)  ac_site_file1=./$CONFIG_SITE;;
2421    */*) ac_site_file1=$CONFIG_SITE;;
2422    *)   ac_site_file1=./$CONFIG_SITE;;
2423  esac
2424elif test "x$prefix" != xNONE; then
2425  ac_site_file1=$prefix/share/config.site
2426  ac_site_file2=$prefix/etc/config.site
2427else
2428  ac_site_file1=$ac_default_prefix/share/config.site
2429  ac_site_file2=$ac_default_prefix/etc/config.site
2430fi
2431for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2432do
2433  test "x$ac_site_file" = xNONE && continue
2434  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2435    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2436$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2437    sed 's/^/| /' "$ac_site_file" >&5
2438    . "$ac_site_file" \
2439      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2441as_fn_error $? "failed to load site script $ac_site_file
2442See \`config.log' for more details" "$LINENO" 5; }
2443  fi
2444done
2445
2446if test -r "$cache_file"; then
2447  # Some versions of bash will fail to source /dev/null (special files
2448  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2449  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2450    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2451$as_echo "$as_me: loading cache $cache_file" >&6;}
2452    case $cache_file in
2453      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2454      *)                      . "./$cache_file";;
2455    esac
2456  fi
2457else
2458  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2459$as_echo "$as_me: creating cache $cache_file" >&6;}
2460  >$cache_file
2461fi
2462
2463# Check that the precious variables saved in the cache have kept the same
2464# value.
2465ac_cache_corrupted=false
2466for ac_var in $ac_precious_vars; do
2467  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2468  eval ac_new_set=\$ac_env_${ac_var}_set
2469  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2470  eval ac_new_val=\$ac_env_${ac_var}_value
2471  case $ac_old_set,$ac_new_set in
2472    set,)
2473      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2474$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2475      ac_cache_corrupted=: ;;
2476    ,set)
2477      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2478$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2479      ac_cache_corrupted=: ;;
2480    ,);;
2481    *)
2482      if test "x$ac_old_val" != "x$ac_new_val"; then
2483	# differences in whitespace do not lead to failure.
2484	ac_old_val_w=`echo x $ac_old_val`
2485	ac_new_val_w=`echo x $ac_new_val`
2486	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2487	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2488$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2489	  ac_cache_corrupted=:
2490	else
2491	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2492$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2493	  eval $ac_var=\$ac_old_val
2494	fi
2495	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2496$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2497	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2498$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2499      fi;;
2500  esac
2501  # Pass precious variables to config.status.
2502  if test "$ac_new_set" = set; then
2503    case $ac_new_val in
2504    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2505    *) ac_arg=$ac_var=$ac_new_val ;;
2506    esac
2507    case " $ac_configure_args " in
2508      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2509      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2510    esac
2511  fi
2512done
2513if $ac_cache_corrupted; then
2514  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2517$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2518  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2519fi
2520## -------------------- ##
2521## Main body of script. ##
2522## -------------------- ##
2523
2524ac_ext=c
2525ac_cpp='$CPP $CPPFLAGS'
2526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529
2530
2531
2532ac_config_headers="$ac_config_headers config.h include/X11/fonts/fontconf.h"
2533
2534
2535# Initialize Automake
2536am__api_version='1.14'
2537
2538ac_aux_dir=
2539for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2540  if test -f "$ac_dir/install-sh"; then
2541    ac_aux_dir=$ac_dir
2542    ac_install_sh="$ac_aux_dir/install-sh -c"
2543    break
2544  elif test -f "$ac_dir/install.sh"; then
2545    ac_aux_dir=$ac_dir
2546    ac_install_sh="$ac_aux_dir/install.sh -c"
2547    break
2548  elif test -f "$ac_dir/shtool"; then
2549    ac_aux_dir=$ac_dir
2550    ac_install_sh="$ac_aux_dir/shtool install -c"
2551    break
2552  fi
2553done
2554if test -z "$ac_aux_dir"; then
2555  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2556fi
2557
2558# These three variables are undocumented and unsupported,
2559# and are intended to be withdrawn in a future Autoconf release.
2560# They can cause serious problems if a builder's source tree is in a directory
2561# whose full name contains unusual characters.
2562ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2563ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2564ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2565
2566
2567# Find a good install program.  We prefer a C program (faster),
2568# so one script is as good as another.  But avoid the broken or
2569# incompatible versions:
2570# SysV /etc/install, /usr/sbin/install
2571# SunOS /usr/etc/install
2572# IRIX /sbin/install
2573# AIX /bin/install
2574# AmigaOS /C/install, which installs bootblocks on floppy discs
2575# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2576# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2577# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2578# OS/2's system install, which has a completely different semantic
2579# ./install, which can be erroneously created by make from ./install.sh.
2580# Reject install programs that cannot install multiple files.
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2582$as_echo_n "checking for a BSD-compatible install... " >&6; }
2583if test -z "$INSTALL"; then
2584if ${ac_cv_path_install+:} false; then :
2585  $as_echo_n "(cached) " >&6
2586else
2587  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588for as_dir in $PATH
2589do
2590  IFS=$as_save_IFS
2591  test -z "$as_dir" && as_dir=.
2592    # Account for people who put trailing slashes in PATH elements.
2593case $as_dir/ in #((
2594  ./ | .// | /[cC]/* | \
2595  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2596  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2597  /usr/ucb/* ) ;;
2598  *)
2599    # OSF1 and SCO ODT 3.0 have their own names for install.
2600    # Don't use installbsd from OSF since it installs stuff as root
2601    # by default.
2602    for ac_prog in ginstall scoinst install; do
2603      for ac_exec_ext in '' $ac_executable_extensions; do
2604	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2605	  if test $ac_prog = install &&
2606	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2607	    # AIX install.  It has an incompatible calling convention.
2608	    :
2609	  elif test $ac_prog = install &&
2610	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2611	    # program-specific install script used by HP pwplus--don't use.
2612	    :
2613	  else
2614	    rm -rf conftest.one conftest.two conftest.dir
2615	    echo one > conftest.one
2616	    echo two > conftest.two
2617	    mkdir conftest.dir
2618	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2619	      test -s conftest.one && test -s conftest.two &&
2620	      test -s conftest.dir/conftest.one &&
2621	      test -s conftest.dir/conftest.two
2622	    then
2623	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2624	      break 3
2625	    fi
2626	  fi
2627	fi
2628      done
2629    done
2630    ;;
2631esac
2632
2633  done
2634IFS=$as_save_IFS
2635
2636rm -rf conftest.one conftest.two conftest.dir
2637
2638fi
2639  if test "${ac_cv_path_install+set}" = set; then
2640    INSTALL=$ac_cv_path_install
2641  else
2642    # As a last resort, use the slow shell script.  Don't cache a
2643    # value for INSTALL within a source directory, because that will
2644    # break other packages using the cache if that directory is
2645    # removed, or if the value is a relative name.
2646    INSTALL=$ac_install_sh
2647  fi
2648fi
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2650$as_echo "$INSTALL" >&6; }
2651
2652# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2653# It thinks the first close brace ends the variable substitution.
2654test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2655
2656test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2657
2658test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2659
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2661$as_echo_n "checking whether build environment is sane... " >&6; }
2662# Reject unsafe characters in $srcdir or the absolute working directory
2663# name.  Accept space and tab only in the latter.
2664am_lf='
2665'
2666case `pwd` in
2667  *[\\\"\#\$\&\'\`$am_lf]*)
2668    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2669esac
2670case $srcdir in
2671  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2672    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2673esac
2674
2675# Do 'set' in a subshell so we don't clobber the current shell's
2676# arguments.  Must try -L first in case configure is actually a
2677# symlink; some systems play weird games with the mod time of symlinks
2678# (eg FreeBSD returns the mod time of the symlink's containing
2679# directory).
2680if (
2681   am_has_slept=no
2682   for am_try in 1 2; do
2683     echo "timestamp, slept: $am_has_slept" > conftest.file
2684     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2685     if test "$*" = "X"; then
2686	# -L didn't work.
2687	set X `ls -t "$srcdir/configure" conftest.file`
2688     fi
2689     if test "$*" != "X $srcdir/configure conftest.file" \
2690	&& test "$*" != "X conftest.file $srcdir/configure"; then
2691
2692	# If neither matched, then we have a broken ls.  This can happen
2693	# if, for instance, CONFIG_SHELL is bash and it inherits a
2694	# broken ls alias from the environment.  This has actually
2695	# happened.  Such a system could not be considered "sane".
2696	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2697  alias in your environment" "$LINENO" 5
2698     fi
2699     if test "$2" = conftest.file || test $am_try -eq 2; then
2700       break
2701     fi
2702     # Just in case.
2703     sleep 1
2704     am_has_slept=yes
2705   done
2706   test "$2" = conftest.file
2707   )
2708then
2709   # Ok.
2710   :
2711else
2712   as_fn_error $? "newly created file is older than distributed files!
2713Check your system clock" "$LINENO" 5
2714fi
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2716$as_echo "yes" >&6; }
2717# If we didn't sleep, we still need to ensure time stamps of config.status and
2718# generated files are strictly newer.
2719am_sleep_pid=
2720if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2721  ( sleep 1 ) &
2722  am_sleep_pid=$!
2723fi
2724
2725rm -f conftest.file
2726
2727test "$program_prefix" != NONE &&
2728  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2729# Use a double $ so make ignores it.
2730test "$program_suffix" != NONE &&
2731  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2732# Double any \ or $.
2733# By default was `s,x,x', remove it if useless.
2734ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2735program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2736
2737# expand $ac_aux_dir to an absolute path
2738am_aux_dir=`cd $ac_aux_dir && pwd`
2739
2740if test x"${MISSING+set}" != xset; then
2741  case $am_aux_dir in
2742  *\ * | *\	*)
2743    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2744  *)
2745    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2746  esac
2747fi
2748# Use eval to expand $SHELL
2749if eval "$MISSING --is-lightweight"; then
2750  am_missing_run="$MISSING "
2751else
2752  am_missing_run=
2753  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2754$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2755fi
2756
2757if test x"${install_sh}" != xset; then
2758  case $am_aux_dir in
2759  *\ * | *\	*)
2760    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2761  *)
2762    install_sh="\${SHELL} $am_aux_dir/install-sh"
2763  esac
2764fi
2765
2766# Installed binaries are usually stripped using 'strip' when the user
2767# run "make install-strip".  However 'strip' might not be the right
2768# tool to use in cross-compilation environments, therefore Automake
2769# will honor the 'STRIP' environment variable to overrule this program.
2770if test "$cross_compiling" != no; then
2771  if test -n "$ac_tool_prefix"; then
2772  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2773set dummy ${ac_tool_prefix}strip; ac_word=$2
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775$as_echo_n "checking for $ac_word... " >&6; }
2776if ${ac_cv_prog_STRIP+:} false; then :
2777  $as_echo_n "(cached) " >&6
2778else
2779  if test -n "$STRIP"; then
2780  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2781else
2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783for as_dir in $PATH
2784do
2785  IFS=$as_save_IFS
2786  test -z "$as_dir" && as_dir=.
2787    for ac_exec_ext in '' $ac_executable_extensions; do
2788  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791    break 2
2792  fi
2793done
2794  done
2795IFS=$as_save_IFS
2796
2797fi
2798fi
2799STRIP=$ac_cv_prog_STRIP
2800if test -n "$STRIP"; then
2801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2802$as_echo "$STRIP" >&6; }
2803else
2804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805$as_echo "no" >&6; }
2806fi
2807
2808
2809fi
2810if test -z "$ac_cv_prog_STRIP"; then
2811  ac_ct_STRIP=$STRIP
2812  # Extract the first word of "strip", so it can be a program name with args.
2813set dummy strip; ac_word=$2
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815$as_echo_n "checking for $ac_word... " >&6; }
2816if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2817  $as_echo_n "(cached) " >&6
2818else
2819  if test -n "$ac_ct_STRIP"; then
2820  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2821else
2822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823for as_dir in $PATH
2824do
2825  IFS=$as_save_IFS
2826  test -z "$as_dir" && as_dir=.
2827    for ac_exec_ext in '' $ac_executable_extensions; do
2828  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2829    ac_cv_prog_ac_ct_STRIP="strip"
2830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831    break 2
2832  fi
2833done
2834  done
2835IFS=$as_save_IFS
2836
2837fi
2838fi
2839ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2840if test -n "$ac_ct_STRIP"; then
2841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2842$as_echo "$ac_ct_STRIP" >&6; }
2843else
2844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845$as_echo "no" >&6; }
2846fi
2847
2848  if test "x$ac_ct_STRIP" = x; then
2849    STRIP=":"
2850  else
2851    case $cross_compiling:$ac_tool_warned in
2852yes:)
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2855ac_tool_warned=yes ;;
2856esac
2857    STRIP=$ac_ct_STRIP
2858  fi
2859else
2860  STRIP="$ac_cv_prog_STRIP"
2861fi
2862
2863fi
2864INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2865
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2867$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2868if test -z "$MKDIR_P"; then
2869  if ${ac_cv_path_mkdir+:} false; then :
2870  $as_echo_n "(cached) " >&6
2871else
2872  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2874do
2875  IFS=$as_save_IFS
2876  test -z "$as_dir" && as_dir=.
2877    for ac_prog in mkdir gmkdir; do
2878	 for ac_exec_ext in '' $ac_executable_extensions; do
2879	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2880	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2881	     'mkdir (GNU coreutils) '* | \
2882	     'mkdir (coreutils) '* | \
2883	     'mkdir (fileutils) '4.1*)
2884	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2885	       break 3;;
2886	   esac
2887	 done
2888       done
2889  done
2890IFS=$as_save_IFS
2891
2892fi
2893
2894  test -d ./--version && rmdir ./--version
2895  if test "${ac_cv_path_mkdir+set}" = set; then
2896    MKDIR_P="$ac_cv_path_mkdir -p"
2897  else
2898    # As a last resort, use the slow shell script.  Don't cache a
2899    # value for MKDIR_P within a source directory, because that will
2900    # break other packages using the cache if that directory is
2901    # removed, or if the value is a relative name.
2902    MKDIR_P="$ac_install_sh -d"
2903  fi
2904fi
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2906$as_echo "$MKDIR_P" >&6; }
2907
2908for ac_prog in gawk mawk nawk awk
2909do
2910  # Extract the first word of "$ac_prog", so it can be a program name with args.
2911set dummy $ac_prog; ac_word=$2
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913$as_echo_n "checking for $ac_word... " >&6; }
2914if ${ac_cv_prog_AWK+:} false; then :
2915  $as_echo_n "(cached) " >&6
2916else
2917  if test -n "$AWK"; then
2918  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2919else
2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
2922do
2923  IFS=$as_save_IFS
2924  test -z "$as_dir" && as_dir=.
2925    for ac_exec_ext in '' $ac_executable_extensions; do
2926  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927    ac_cv_prog_AWK="$ac_prog"
2928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929    break 2
2930  fi
2931done
2932  done
2933IFS=$as_save_IFS
2934
2935fi
2936fi
2937AWK=$ac_cv_prog_AWK
2938if test -n "$AWK"; then
2939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2940$as_echo "$AWK" >&6; }
2941else
2942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943$as_echo "no" >&6; }
2944fi
2945
2946
2947  test -n "$AWK" && break
2948done
2949
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2951$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2952set x ${MAKE-make}
2953ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2954if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2955  $as_echo_n "(cached) " >&6
2956else
2957  cat >conftest.make <<\_ACEOF
2958SHELL = /bin/sh
2959all:
2960	@echo '@@@%%%=$(MAKE)=@@@%%%'
2961_ACEOF
2962# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2963case `${MAKE-make} -f conftest.make 2>/dev/null` in
2964  *@@@%%%=?*=@@@%%%*)
2965    eval ac_cv_prog_make_${ac_make}_set=yes;;
2966  *)
2967    eval ac_cv_prog_make_${ac_make}_set=no;;
2968esac
2969rm -f conftest.make
2970fi
2971if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2973$as_echo "yes" >&6; }
2974  SET_MAKE=
2975else
2976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977$as_echo "no" >&6; }
2978  SET_MAKE="MAKE=${MAKE-make}"
2979fi
2980
2981rm -rf .tst 2>/dev/null
2982mkdir .tst 2>/dev/null
2983if test -d .tst; then
2984  am__leading_dot=.
2985else
2986  am__leading_dot=_
2987fi
2988rmdir .tst 2>/dev/null
2989
2990# Check whether --enable-silent-rules was given.
2991if test "${enable_silent_rules+set}" = set; then :
2992  enableval=$enable_silent_rules;
2993fi
2994
2995case $enable_silent_rules in # (((
2996  yes) AM_DEFAULT_VERBOSITY=0;;
2997   no) AM_DEFAULT_VERBOSITY=1;;
2998    *) AM_DEFAULT_VERBOSITY=1;;
2999esac
3000am_make=${MAKE-make}
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3002$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3003if ${am_cv_make_support_nested_variables+:} false; then :
3004  $as_echo_n "(cached) " >&6
3005else
3006  if $as_echo 'TRUE=$(BAR$(V))
3007BAR0=false
3008BAR1=true
3009V=1
3010am__doit:
3011	@$(TRUE)
3012.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3013  am_cv_make_support_nested_variables=yes
3014else
3015  am_cv_make_support_nested_variables=no
3016fi
3017fi
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3019$as_echo "$am_cv_make_support_nested_variables" >&6; }
3020if test $am_cv_make_support_nested_variables = yes; then
3021    AM_V='$(V)'
3022  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3023else
3024  AM_V=$AM_DEFAULT_VERBOSITY
3025  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3026fi
3027AM_BACKSLASH='\'
3028
3029if test "`cd $srcdir && pwd`" != "`pwd`"; then
3030  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3031  # is not polluted with repeated "-I."
3032  am__isrc=' -I$(srcdir)'
3033  # test to see if srcdir already configured
3034  if test -f $srcdir/config.status; then
3035    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3036  fi
3037fi
3038
3039# test whether we have cygpath
3040if test -z "$CYGPATH_W"; then
3041  if (cygpath --version) >/dev/null 2>/dev/null; then
3042    CYGPATH_W='cygpath -w'
3043  else
3044    CYGPATH_W=echo
3045  fi
3046fi
3047
3048
3049# Define the identity of the package.
3050 PACKAGE='libXfont'
3051 VERSION='1.5.0'
3052
3053
3054cat >>confdefs.h <<_ACEOF
3055#define PACKAGE "$PACKAGE"
3056_ACEOF
3057
3058
3059cat >>confdefs.h <<_ACEOF
3060#define VERSION "$VERSION"
3061_ACEOF
3062
3063# Some tools Automake needs.
3064
3065ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3066
3067
3068AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3069
3070
3071AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3072
3073
3074AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3075
3076
3077MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3078
3079# For better backward compatibility.  To be removed once Automake 1.9.x
3080# dies out for good.  For more background, see:
3081# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3082# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3083mkdir_p='$(MKDIR_P)'
3084
3085# We need awk for the "check" target.  The system "awk" is bad on
3086# some platforms.
3087# Always define AMTAR for backward compatibility.  Yes, it's still used
3088# in the wild :-(  We should find a proper way to deprecate it ...
3089AMTAR='$${TAR-tar}'
3090
3091
3092# We'll loop over all known methods to create a tar archive until one works.
3093_am_tools='gnutar  pax cpio none'
3094
3095am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3096
3097
3098
3099
3100
3101
3102# POSIX will say in a future version that running "rm -f" with no argument
3103# is OK; and we want to be able to make that assumption in our Makefile
3104# recipes.  So use an aggressive probe to check that the usage we want is
3105# actually supported "in the wild" to an acceptable degree.
3106# See automake bug#10828.
3107# To make any issue more visible, cause the running configure to be aborted
3108# by default if the 'rm' program in use doesn't match our expectations; the
3109# user can still override this though.
3110if rm -f && rm -fr && rm -rf; then : OK; else
3111  cat >&2 <<'END'
3112Oops!
3113
3114Your 'rm' program seems unable to run without file operands specified
3115on the command line, even when the '-f' option is present.  This is contrary
3116to the behaviour of most rm programs out there, and not conforming with
3117the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3118
3119Please tell bug-automake@gnu.org about your system, including the value
3120of your $PATH and any error possibly output before this message.  This
3121can help us improve future automake versions.
3122
3123END
3124  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3125    echo 'Configuration will proceed anyway, since you have set the' >&2
3126    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3127    echo >&2
3128  else
3129    cat >&2 <<'END'
3130Aborting the configuration process, to ensure you take notice of the issue.
3131
3132You can download and install GNU coreutils to get an 'rm' implementation
3133that behaves properly: <http://www.gnu.org/software/coreutils/>.
3134
3135If you want to complete the configuration process using your problematic
3136'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3137to "yes", and re-run configure.
3138
3139END
3140    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3141  fi
3142fi
3143
3144# Set common system defines for POSIX extensions, such as _GNU_SOURCE
3145# Must be called before any macros that run the compiler (like
3146# AC_PROG_LIBTOOL) to avoid autoconf errors.
3147DEPDIR="${am__leading_dot}deps"
3148
3149ac_config_commands="$ac_config_commands depfiles"
3150
3151
3152am_make=${MAKE-make}
3153cat > confinc << 'END'
3154am__doit:
3155	@echo this is the am__doit target
3156.PHONY: am__doit
3157END
3158# If we don't find an include directive, just comment out the code.
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3160$as_echo_n "checking for style of include used by $am_make... " >&6; }
3161am__include="#"
3162am__quote=
3163_am_result=none
3164# First try GNU make style include.
3165echo "include confinc" > confmf
3166# Ignore all kinds of additional output from 'make'.
3167case `$am_make -s -f confmf 2> /dev/null` in #(
3168*the\ am__doit\ target*)
3169  am__include=include
3170  am__quote=
3171  _am_result=GNU
3172  ;;
3173esac
3174# Now try BSD make style include.
3175if test "$am__include" = "#"; then
3176   echo '.include "confinc"' > confmf
3177   case `$am_make -s -f confmf 2> /dev/null` in #(
3178   *the\ am__doit\ target*)
3179     am__include=.include
3180     am__quote="\""
3181     _am_result=BSD
3182     ;;
3183   esac
3184fi
3185
3186
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3188$as_echo "$_am_result" >&6; }
3189rm -f confinc confmf
3190
3191# Check whether --enable-dependency-tracking was given.
3192if test "${enable_dependency_tracking+set}" = set; then :
3193  enableval=$enable_dependency_tracking;
3194fi
3195
3196if test "x$enable_dependency_tracking" != xno; then
3197  am_depcomp="$ac_aux_dir/depcomp"
3198  AMDEPBACKSLASH='\'
3199  am__nodep='_no'
3200fi
3201 if test "x$enable_dependency_tracking" != xno; then
3202  AMDEP_TRUE=
3203  AMDEP_FALSE='#'
3204else
3205  AMDEP_TRUE='#'
3206  AMDEP_FALSE=
3207fi
3208
3209
3210ac_ext=c
3211ac_cpp='$CPP $CPPFLAGS'
3212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215if test -n "$ac_tool_prefix"; then
3216  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3217set dummy ${ac_tool_prefix}gcc; ac_word=$2
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219$as_echo_n "checking for $ac_word... " >&6; }
3220if ${ac_cv_prog_CC+:} false; then :
3221  $as_echo_n "(cached) " >&6
3222else
3223  if test -n "$CC"; then
3224  ac_cv_prog_CC="$CC" # Let the user override the test.
3225else
3226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227for as_dir in $PATH
3228do
3229  IFS=$as_save_IFS
3230  test -z "$as_dir" && as_dir=.
3231    for ac_exec_ext in '' $ac_executable_extensions; do
3232  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235    break 2
3236  fi
3237done
3238  done
3239IFS=$as_save_IFS
3240
3241fi
3242fi
3243CC=$ac_cv_prog_CC
3244if test -n "$CC"; then
3245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3246$as_echo "$CC" >&6; }
3247else
3248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249$as_echo "no" >&6; }
3250fi
3251
3252
3253fi
3254if test -z "$ac_cv_prog_CC"; then
3255  ac_ct_CC=$CC
3256  # Extract the first word of "gcc", so it can be a program name with args.
3257set dummy gcc; ac_word=$2
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259$as_echo_n "checking for $ac_word... " >&6; }
3260if ${ac_cv_prog_ac_ct_CC+:} false; then :
3261  $as_echo_n "(cached) " >&6
3262else
3263  if test -n "$ac_ct_CC"; then
3264  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3265else
3266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267for as_dir in $PATH
3268do
3269  IFS=$as_save_IFS
3270  test -z "$as_dir" && as_dir=.
3271    for ac_exec_ext in '' $ac_executable_extensions; do
3272  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273    ac_cv_prog_ac_ct_CC="gcc"
3274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275    break 2
3276  fi
3277done
3278  done
3279IFS=$as_save_IFS
3280
3281fi
3282fi
3283ac_ct_CC=$ac_cv_prog_ac_ct_CC
3284if test -n "$ac_ct_CC"; then
3285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3286$as_echo "$ac_ct_CC" >&6; }
3287else
3288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289$as_echo "no" >&6; }
3290fi
3291
3292  if test "x$ac_ct_CC" = x; then
3293    CC=""
3294  else
3295    case $cross_compiling:$ac_tool_warned in
3296yes:)
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3299ac_tool_warned=yes ;;
3300esac
3301    CC=$ac_ct_CC
3302  fi
3303else
3304  CC="$ac_cv_prog_CC"
3305fi
3306
3307if test -z "$CC"; then
3308          if test -n "$ac_tool_prefix"; then
3309    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3310set dummy ${ac_tool_prefix}cc; ac_word=$2
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312$as_echo_n "checking for $ac_word... " >&6; }
3313if ${ac_cv_prog_CC+:} false; then :
3314  $as_echo_n "(cached) " >&6
3315else
3316  if test -n "$CC"; then
3317  ac_cv_prog_CC="$CC" # Let the user override the test.
3318else
3319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320for as_dir in $PATH
3321do
3322  IFS=$as_save_IFS
3323  test -z "$as_dir" && as_dir=.
3324    for ac_exec_ext in '' $ac_executable_extensions; do
3325  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326    ac_cv_prog_CC="${ac_tool_prefix}cc"
3327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328    break 2
3329  fi
3330done
3331  done
3332IFS=$as_save_IFS
3333
3334fi
3335fi
3336CC=$ac_cv_prog_CC
3337if test -n "$CC"; then
3338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339$as_echo "$CC" >&6; }
3340else
3341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342$as_echo "no" >&6; }
3343fi
3344
3345
3346  fi
3347fi
3348if test -z "$CC"; then
3349  # Extract the first word of "cc", so it can be a program name with args.
3350set dummy cc; ac_word=$2
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352$as_echo_n "checking for $ac_word... " >&6; }
3353if ${ac_cv_prog_CC+:} false; then :
3354  $as_echo_n "(cached) " >&6
3355else
3356  if test -n "$CC"; then
3357  ac_cv_prog_CC="$CC" # Let the user override the test.
3358else
3359  ac_prog_rejected=no
3360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361for as_dir in $PATH
3362do
3363  IFS=$as_save_IFS
3364  test -z "$as_dir" && as_dir=.
3365    for ac_exec_ext in '' $ac_executable_extensions; do
3366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3368       ac_prog_rejected=yes
3369       continue
3370     fi
3371    ac_cv_prog_CC="cc"
3372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373    break 2
3374  fi
3375done
3376  done
3377IFS=$as_save_IFS
3378
3379if test $ac_prog_rejected = yes; then
3380  # We found a bogon in the path, so make sure we never use it.
3381  set dummy $ac_cv_prog_CC
3382  shift
3383  if test $# != 0; then
3384    # We chose a different compiler from the bogus one.
3385    # However, it has the same basename, so the bogon will be chosen
3386    # first if we set CC to just the basename; use the full file name.
3387    shift
3388    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3389  fi
3390fi
3391fi
3392fi
3393CC=$ac_cv_prog_CC
3394if test -n "$CC"; then
3395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3396$as_echo "$CC" >&6; }
3397else
3398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399$as_echo "no" >&6; }
3400fi
3401
3402
3403fi
3404if test -z "$CC"; then
3405  if test -n "$ac_tool_prefix"; then
3406  for ac_prog in cl.exe
3407  do
3408    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3409set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411$as_echo_n "checking for $ac_word... " >&6; }
3412if ${ac_cv_prog_CC+:} false; then :
3413  $as_echo_n "(cached) " >&6
3414else
3415  if test -n "$CC"; then
3416  ac_cv_prog_CC="$CC" # Let the user override the test.
3417else
3418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419for as_dir in $PATH
3420do
3421  IFS=$as_save_IFS
3422  test -z "$as_dir" && as_dir=.
3423    for ac_exec_ext in '' $ac_executable_extensions; do
3424  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427    break 2
3428  fi
3429done
3430  done
3431IFS=$as_save_IFS
3432
3433fi
3434fi
3435CC=$ac_cv_prog_CC
3436if test -n "$CC"; then
3437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438$as_echo "$CC" >&6; }
3439else
3440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441$as_echo "no" >&6; }
3442fi
3443
3444
3445    test -n "$CC" && break
3446  done
3447fi
3448if test -z "$CC"; then
3449  ac_ct_CC=$CC
3450  for ac_prog in cl.exe
3451do
3452  # Extract the first word of "$ac_prog", so it can be a program name with args.
3453set dummy $ac_prog; ac_word=$2
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455$as_echo_n "checking for $ac_word... " >&6; }
3456if ${ac_cv_prog_ac_ct_CC+:} false; then :
3457  $as_echo_n "(cached) " >&6
3458else
3459  if test -n "$ac_ct_CC"; then
3460  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3461else
3462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463for as_dir in $PATH
3464do
3465  IFS=$as_save_IFS
3466  test -z "$as_dir" && as_dir=.
3467    for ac_exec_ext in '' $ac_executable_extensions; do
3468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469    ac_cv_prog_ac_ct_CC="$ac_prog"
3470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471    break 2
3472  fi
3473done
3474  done
3475IFS=$as_save_IFS
3476
3477fi
3478fi
3479ac_ct_CC=$ac_cv_prog_ac_ct_CC
3480if test -n "$ac_ct_CC"; then
3481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3482$as_echo "$ac_ct_CC" >&6; }
3483else
3484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485$as_echo "no" >&6; }
3486fi
3487
3488
3489  test -n "$ac_ct_CC" && break
3490done
3491
3492  if test "x$ac_ct_CC" = x; then
3493    CC=""
3494  else
3495    case $cross_compiling:$ac_tool_warned in
3496yes:)
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3499ac_tool_warned=yes ;;
3500esac
3501    CC=$ac_ct_CC
3502  fi
3503fi
3504
3505fi
3506
3507
3508test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510as_fn_error $? "no acceptable C compiler found in \$PATH
3511See \`config.log' for more details" "$LINENO" 5; }
3512
3513# Provide some information about the compiler.
3514$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3515set X $ac_compile
3516ac_compiler=$2
3517for ac_option in --version -v -V -qversion; do
3518  { { ac_try="$ac_compiler $ac_option >&5"
3519case "(($ac_try" in
3520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521  *) ac_try_echo=$ac_try;;
3522esac
3523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524$as_echo "$ac_try_echo"; } >&5
3525  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3526  ac_status=$?
3527  if test -s conftest.err; then
3528    sed '10a\
3529... rest of stderr output deleted ...
3530         10q' conftest.err >conftest.er1
3531    cat conftest.er1 >&5
3532  fi
3533  rm -f conftest.er1 conftest.err
3534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535  test $ac_status = 0; }
3536done
3537
3538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539/* end confdefs.h.  */
3540
3541int
3542main ()
3543{
3544
3545  ;
3546  return 0;
3547}
3548_ACEOF
3549ac_clean_files_save=$ac_clean_files
3550ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3551# Try to create an executable without -o first, disregard a.out.
3552# It will help us diagnose broken compilers, and finding out an intuition
3553# of exeext.
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3555$as_echo_n "checking whether the C compiler works... " >&6; }
3556ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3557
3558# The possible output files:
3559ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3560
3561ac_rmfiles=
3562for ac_file in $ac_files
3563do
3564  case $ac_file in
3565    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3566    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3567  esac
3568done
3569rm -f $ac_rmfiles
3570
3571if { { ac_try="$ac_link_default"
3572case "(($ac_try" in
3573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574  *) ac_try_echo=$ac_try;;
3575esac
3576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577$as_echo "$ac_try_echo"; } >&5
3578  (eval "$ac_link_default") 2>&5
3579  ac_status=$?
3580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581  test $ac_status = 0; }; then :
3582  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3583# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3584# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3585# so that the user can short-circuit this test for compilers unknown to
3586# Autoconf.
3587for ac_file in $ac_files ''
3588do
3589  test -f "$ac_file" || continue
3590  case $ac_file in
3591    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3592	;;
3593    [ab].out )
3594	# We found the default executable, but exeext='' is most
3595	# certainly right.
3596	break;;
3597    *.* )
3598	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3599	then :; else
3600	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3601	fi
3602	# We set ac_cv_exeext here because the later test for it is not
3603	# safe: cross compilers may not add the suffix if given an `-o'
3604	# argument, so we may need to know it at that point already.
3605	# Even if this section looks crufty: it has the advantage of
3606	# actually working.
3607	break;;
3608    * )
3609	break;;
3610  esac
3611done
3612test "$ac_cv_exeext" = no && ac_cv_exeext=
3613
3614else
3615  ac_file=''
3616fi
3617if test -z "$ac_file"; then :
3618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619$as_echo "no" >&6; }
3620$as_echo "$as_me: failed program was:" >&5
3621sed 's/^/| /' conftest.$ac_ext >&5
3622
3623{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625as_fn_error 77 "C compiler cannot create executables
3626See \`config.log' for more details" "$LINENO" 5; }
3627else
3628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3629$as_echo "yes" >&6; }
3630fi
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3632$as_echo_n "checking for C compiler default output file name... " >&6; }
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3634$as_echo "$ac_file" >&6; }
3635ac_exeext=$ac_cv_exeext
3636
3637rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3638ac_clean_files=$ac_clean_files_save
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3640$as_echo_n "checking for suffix of executables... " >&6; }
3641if { { ac_try="$ac_link"
3642case "(($ac_try" in
3643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644  *) ac_try_echo=$ac_try;;
3645esac
3646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647$as_echo "$ac_try_echo"; } >&5
3648  (eval "$ac_link") 2>&5
3649  ac_status=$?
3650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651  test $ac_status = 0; }; then :
3652  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3653# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3654# work properly (i.e., refer to `conftest.exe'), while it won't with
3655# `rm'.
3656for ac_file in conftest.exe conftest conftest.*; do
3657  test -f "$ac_file" || continue
3658  case $ac_file in
3659    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3660    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3661	  break;;
3662    * ) break;;
3663  esac
3664done
3665else
3666  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3669See \`config.log' for more details" "$LINENO" 5; }
3670fi
3671rm -f conftest conftest$ac_cv_exeext
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3673$as_echo "$ac_cv_exeext" >&6; }
3674
3675rm -f conftest.$ac_ext
3676EXEEXT=$ac_cv_exeext
3677ac_exeext=$EXEEXT
3678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679/* end confdefs.h.  */
3680#include <stdio.h>
3681int
3682main ()
3683{
3684FILE *f = fopen ("conftest.out", "w");
3685 return ferror (f) || fclose (f) != 0;
3686
3687  ;
3688  return 0;
3689}
3690_ACEOF
3691ac_clean_files="$ac_clean_files conftest.out"
3692# Check that the compiler produces executables we can run.  If not, either
3693# the compiler is broken, or we cross compile.
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3695$as_echo_n "checking whether we are cross compiling... " >&6; }
3696if test "$cross_compiling" != yes; then
3697  { { ac_try="$ac_link"
3698case "(($ac_try" in
3699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700  *) ac_try_echo=$ac_try;;
3701esac
3702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703$as_echo "$ac_try_echo"; } >&5
3704  (eval "$ac_link") 2>&5
3705  ac_status=$?
3706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707  test $ac_status = 0; }
3708  if { ac_try='./conftest$ac_cv_exeext'
3709  { { case "(($ac_try" in
3710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711  *) ac_try_echo=$ac_try;;
3712esac
3713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714$as_echo "$ac_try_echo"; } >&5
3715  (eval "$ac_try") 2>&5
3716  ac_status=$?
3717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718  test $ac_status = 0; }; }; then
3719    cross_compiling=no
3720  else
3721    if test "$cross_compiling" = maybe; then
3722	cross_compiling=yes
3723    else
3724	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3725$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3726as_fn_error $? "cannot run C compiled programs.
3727If you meant to cross compile, use \`--host'.
3728See \`config.log' for more details" "$LINENO" 5; }
3729    fi
3730  fi
3731fi
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3733$as_echo "$cross_compiling" >&6; }
3734
3735rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3736ac_clean_files=$ac_clean_files_save
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3738$as_echo_n "checking for suffix of object files... " >&6; }
3739if ${ac_cv_objext+:} false; then :
3740  $as_echo_n "(cached) " >&6
3741else
3742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743/* end confdefs.h.  */
3744
3745int
3746main ()
3747{
3748
3749  ;
3750  return 0;
3751}
3752_ACEOF
3753rm -f conftest.o conftest.obj
3754if { { ac_try="$ac_compile"
3755case "(($ac_try" in
3756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757  *) ac_try_echo=$ac_try;;
3758esac
3759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760$as_echo "$ac_try_echo"; } >&5
3761  (eval "$ac_compile") 2>&5
3762  ac_status=$?
3763  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764  test $ac_status = 0; }; then :
3765  for ac_file in conftest.o conftest.obj conftest.*; do
3766  test -f "$ac_file" || continue;
3767  case $ac_file in
3768    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3769    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3770       break;;
3771  esac
3772done
3773else
3774  $as_echo "$as_me: failed program was:" >&5
3775sed 's/^/| /' conftest.$ac_ext >&5
3776
3777{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779as_fn_error $? "cannot compute suffix of object files: cannot compile
3780See \`config.log' for more details" "$LINENO" 5; }
3781fi
3782rm -f conftest.$ac_cv_objext conftest.$ac_ext
3783fi
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3785$as_echo "$ac_cv_objext" >&6; }
3786OBJEXT=$ac_cv_objext
3787ac_objext=$OBJEXT
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3789$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3790if ${ac_cv_c_compiler_gnu+:} false; then :
3791  $as_echo_n "(cached) " >&6
3792else
3793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794/* end confdefs.h.  */
3795
3796int
3797main ()
3798{
3799#ifndef __GNUC__
3800       choke me
3801#endif
3802
3803  ;
3804  return 0;
3805}
3806_ACEOF
3807if ac_fn_c_try_compile "$LINENO"; then :
3808  ac_compiler_gnu=yes
3809else
3810  ac_compiler_gnu=no
3811fi
3812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813ac_cv_c_compiler_gnu=$ac_compiler_gnu
3814
3815fi
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3817$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3818if test $ac_compiler_gnu = yes; then
3819  GCC=yes
3820else
3821  GCC=
3822fi
3823ac_test_CFLAGS=${CFLAGS+set}
3824ac_save_CFLAGS=$CFLAGS
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3826$as_echo_n "checking whether $CC accepts -g... " >&6; }
3827if ${ac_cv_prog_cc_g+:} false; then :
3828  $as_echo_n "(cached) " >&6
3829else
3830  ac_save_c_werror_flag=$ac_c_werror_flag
3831   ac_c_werror_flag=yes
3832   ac_cv_prog_cc_g=no
3833   CFLAGS="-g"
3834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h.  */
3836
3837int
3838main ()
3839{
3840
3841  ;
3842  return 0;
3843}
3844_ACEOF
3845if ac_fn_c_try_compile "$LINENO"; then :
3846  ac_cv_prog_cc_g=yes
3847else
3848  CFLAGS=""
3849      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850/* end confdefs.h.  */
3851
3852int
3853main ()
3854{
3855
3856  ;
3857  return 0;
3858}
3859_ACEOF
3860if ac_fn_c_try_compile "$LINENO"; then :
3861
3862else
3863  ac_c_werror_flag=$ac_save_c_werror_flag
3864	 CFLAGS="-g"
3865	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866/* end confdefs.h.  */
3867
3868int
3869main ()
3870{
3871
3872  ;
3873  return 0;
3874}
3875_ACEOF
3876if ac_fn_c_try_compile "$LINENO"; then :
3877  ac_cv_prog_cc_g=yes
3878fi
3879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880fi
3881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882fi
3883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884   ac_c_werror_flag=$ac_save_c_werror_flag
3885fi
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3887$as_echo "$ac_cv_prog_cc_g" >&6; }
3888if test "$ac_test_CFLAGS" = set; then
3889  CFLAGS=$ac_save_CFLAGS
3890elif test $ac_cv_prog_cc_g = yes; then
3891  if test "$GCC" = yes; then
3892    CFLAGS="-g -O2"
3893  else
3894    CFLAGS="-g"
3895  fi
3896else
3897  if test "$GCC" = yes; then
3898    CFLAGS="-O2"
3899  else
3900    CFLAGS=
3901  fi
3902fi
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3904$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3905if ${ac_cv_prog_cc_c89+:} false; then :
3906  $as_echo_n "(cached) " >&6
3907else
3908  ac_cv_prog_cc_c89=no
3909ac_save_CC=$CC
3910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911/* end confdefs.h.  */
3912#include <stdarg.h>
3913#include <stdio.h>
3914#include <sys/types.h>
3915#include <sys/stat.h>
3916/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3917struct buf { int x; };
3918FILE * (*rcsopen) (struct buf *, struct stat *, int);
3919static char *e (p, i)
3920     char **p;
3921     int i;
3922{
3923  return p[i];
3924}
3925static char *f (char * (*g) (char **, int), char **p, ...)
3926{
3927  char *s;
3928  va_list v;
3929  va_start (v,p);
3930  s = g (p, va_arg (v,int));
3931  va_end (v);
3932  return s;
3933}
3934
3935/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3936   function prototypes and stuff, but not '\xHH' hex character constants.
3937   These don't provoke an error unfortunately, instead are silently treated
3938   as 'x'.  The following induces an error, until -std is added to get
3939   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3940   array size at least.  It's necessary to write '\x00'==0 to get something
3941   that's true only with -std.  */
3942int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3943
3944/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3945   inside strings and character constants.  */
3946#define FOO(x) 'x'
3947int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3948
3949int test (int i, double x);
3950struct s1 {int (*f) (int a);};
3951struct s2 {int (*f) (double a);};
3952int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3953int argc;
3954char **argv;
3955int
3956main ()
3957{
3958return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3959  ;
3960  return 0;
3961}
3962_ACEOF
3963for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3964	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3965do
3966  CC="$ac_save_CC $ac_arg"
3967  if ac_fn_c_try_compile "$LINENO"; then :
3968  ac_cv_prog_cc_c89=$ac_arg
3969fi
3970rm -f core conftest.err conftest.$ac_objext
3971  test "x$ac_cv_prog_cc_c89" != "xno" && break
3972done
3973rm -f conftest.$ac_ext
3974CC=$ac_save_CC
3975
3976fi
3977# AC_CACHE_VAL
3978case "x$ac_cv_prog_cc_c89" in
3979  x)
3980    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3981$as_echo "none needed" >&6; } ;;
3982  xno)
3983    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3984$as_echo "unsupported" >&6; } ;;
3985  *)
3986    CC="$CC $ac_cv_prog_cc_c89"
3987    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3988$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3989esac
3990if test "x$ac_cv_prog_cc_c89" != xno; then :
3991
3992fi
3993
3994ac_ext=c
3995ac_cpp='$CPP $CPPFLAGS'
3996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999
4000ac_ext=c
4001ac_cpp='$CPP $CPPFLAGS'
4002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004ac_compiler_gnu=$ac_cv_c_compiler_gnu
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4006$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4007if ${am_cv_prog_cc_c_o+:} false; then :
4008  $as_echo_n "(cached) " >&6
4009else
4010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011/* end confdefs.h.  */
4012
4013int
4014main ()
4015{
4016
4017  ;
4018  return 0;
4019}
4020_ACEOF
4021  # Make sure it works both with $CC and with simple cc.
4022  # Following AC_PROG_CC_C_O, we do the test twice because some
4023  # compilers refuse to overwrite an existing .o file with -o,
4024  # though they will create one.
4025  am_cv_prog_cc_c_o=yes
4026  for am_i in 1 2; do
4027    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4028   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4029   ac_status=$?
4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); } \
4032         && test -f conftest2.$ac_objext; then
4033      : OK
4034    else
4035      am_cv_prog_cc_c_o=no
4036      break
4037    fi
4038  done
4039  rm -f core conftest*
4040  unset am_i
4041fi
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4043$as_echo "$am_cv_prog_cc_c_o" >&6; }
4044if test "$am_cv_prog_cc_c_o" != yes; then
4045   # Losing compiler, so override with the script.
4046   # FIXME: It is wrong to rewrite CC.
4047   # But if we don't then we get into trouble of one sort or another.
4048   # A longer-term fix would be to have automake use am__CC in this case,
4049   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4050   CC="$am_aux_dir/compile $CC"
4051fi
4052ac_ext=c
4053ac_cpp='$CPP $CPPFLAGS'
4054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057
4058
4059depcc="$CC"   am_compiler_list=
4060
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4062$as_echo_n "checking dependency style of $depcc... " >&6; }
4063if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4064  $as_echo_n "(cached) " >&6
4065else
4066  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4067  # We make a subdir and do the tests there.  Otherwise we can end up
4068  # making bogus files that we don't know about and never remove.  For
4069  # instance it was reported that on HP-UX the gcc test will end up
4070  # making a dummy file named 'D' -- because '-MD' means "put the output
4071  # in D".
4072  rm -rf conftest.dir
4073  mkdir conftest.dir
4074  # Copy depcomp to subdir because otherwise we won't find it if we're
4075  # using a relative directory.
4076  cp "$am_depcomp" conftest.dir
4077  cd conftest.dir
4078  # We will build objects and dependencies in a subdirectory because
4079  # it helps to detect inapplicable dependency modes.  For instance
4080  # both Tru64's cc and ICC support -MD to output dependencies as a
4081  # side effect of compilation, but ICC will put the dependencies in
4082  # the current directory while Tru64 will put them in the object
4083  # directory.
4084  mkdir sub
4085
4086  am_cv_CC_dependencies_compiler_type=none
4087  if test "$am_compiler_list" = ""; then
4088     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4089  fi
4090  am__universal=false
4091  case " $depcc " in #(
4092     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4093     esac
4094
4095  for depmode in $am_compiler_list; do
4096    # Setup a source with many dependencies, because some compilers
4097    # like to wrap large dependency lists on column 80 (with \), and
4098    # we should not choose a depcomp mode which is confused by this.
4099    #
4100    # We need to recreate these files for each test, as the compiler may
4101    # overwrite some of them when testing with obscure command lines.
4102    # This happens at least with the AIX C compiler.
4103    : > sub/conftest.c
4104    for i in 1 2 3 4 5 6; do
4105      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4106      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4107      # Solaris 10 /bin/sh.
4108      echo '/* dummy */' > sub/conftst$i.h
4109    done
4110    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4111
4112    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4113    # mode.  It turns out that the SunPro C++ compiler does not properly
4114    # handle '-M -o', and we need to detect this.  Also, some Intel
4115    # versions had trouble with output in subdirs.
4116    am__obj=sub/conftest.${OBJEXT-o}
4117    am__minus_obj="-o $am__obj"
4118    case $depmode in
4119    gcc)
4120      # This depmode causes a compiler race in universal mode.
4121      test "$am__universal" = false || continue
4122      ;;
4123    nosideeffect)
4124      # After this tag, mechanisms are not by side-effect, so they'll
4125      # only be used when explicitly requested.
4126      if test "x$enable_dependency_tracking" = xyes; then
4127	continue
4128      else
4129	break
4130      fi
4131      ;;
4132    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4133      # This compiler won't grok '-c -o', but also, the minuso test has
4134      # not run yet.  These depmodes are late enough in the game, and
4135      # so weak that their functioning should not be impacted.
4136      am__obj=conftest.${OBJEXT-o}
4137      am__minus_obj=
4138      ;;
4139    none) break ;;
4140    esac
4141    if depmode=$depmode \
4142       source=sub/conftest.c object=$am__obj \
4143       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4144       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4145         >/dev/null 2>conftest.err &&
4146       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4147       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4148       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4149       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4150      # icc doesn't choke on unknown options, it will just issue warnings
4151      # or remarks (even with -Werror).  So we grep stderr for any message
4152      # that says an option was ignored or not supported.
4153      # When given -MP, icc 7.0 and 7.1 complain thusly:
4154      #   icc: Command line warning: ignoring option '-M'; no argument required
4155      # The diagnosis changed in icc 8.0:
4156      #   icc: Command line remark: option '-MP' not supported
4157      if (grep 'ignoring option' conftest.err ||
4158          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4159        am_cv_CC_dependencies_compiler_type=$depmode
4160        break
4161      fi
4162    fi
4163  done
4164
4165  cd ..
4166  rm -rf conftest.dir
4167else
4168  am_cv_CC_dependencies_compiler_type=none
4169fi
4170
4171fi
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4173$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4174CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4175
4176 if
4177  test "x$enable_dependency_tracking" != xno \
4178  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4179  am__fastdepCC_TRUE=
4180  am__fastdepCC_FALSE='#'
4181else
4182  am__fastdepCC_TRUE='#'
4183  am__fastdepCC_FALSE=
4184fi
4185
4186
4187
4188ac_ext=c
4189ac_cpp='$CPP $CPPFLAGS'
4190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4194$as_echo_n "checking how to run the C preprocessor... " >&6; }
4195# On Suns, sometimes $CPP names a directory.
4196if test -n "$CPP" && test -d "$CPP"; then
4197  CPP=
4198fi
4199if test -z "$CPP"; then
4200  if ${ac_cv_prog_CPP+:} false; then :
4201  $as_echo_n "(cached) " >&6
4202else
4203      # Double quotes because CPP needs to be expanded
4204    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4205    do
4206      ac_preproc_ok=false
4207for ac_c_preproc_warn_flag in '' yes
4208do
4209  # Use a header file that comes with gcc, so configuring glibc
4210  # with a fresh cross-compiler works.
4211  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4212  # <limits.h> exists even on freestanding compilers.
4213  # On the NeXT, cc -E runs the code through the compiler's parser,
4214  # not just through cpp. "Syntax error" is here to catch this case.
4215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216/* end confdefs.h.  */
4217#ifdef __STDC__
4218# include <limits.h>
4219#else
4220# include <assert.h>
4221#endif
4222		     Syntax error
4223_ACEOF
4224if ac_fn_c_try_cpp "$LINENO"; then :
4225
4226else
4227  # Broken: fails on valid input.
4228continue
4229fi
4230rm -f conftest.err conftest.i conftest.$ac_ext
4231
4232  # OK, works on sane cases.  Now check whether nonexistent headers
4233  # can be detected and how.
4234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235/* end confdefs.h.  */
4236#include <ac_nonexistent.h>
4237_ACEOF
4238if ac_fn_c_try_cpp "$LINENO"; then :
4239  # Broken: success on invalid input.
4240continue
4241else
4242  # Passes both tests.
4243ac_preproc_ok=:
4244break
4245fi
4246rm -f conftest.err conftest.i conftest.$ac_ext
4247
4248done
4249# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250rm -f conftest.i conftest.err conftest.$ac_ext
4251if $ac_preproc_ok; then :
4252  break
4253fi
4254
4255    done
4256    ac_cv_prog_CPP=$CPP
4257
4258fi
4259  CPP=$ac_cv_prog_CPP
4260else
4261  ac_cv_prog_CPP=$CPP
4262fi
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4264$as_echo "$CPP" >&6; }
4265ac_preproc_ok=false
4266for ac_c_preproc_warn_flag in '' yes
4267do
4268  # Use a header file that comes with gcc, so configuring glibc
4269  # with a fresh cross-compiler works.
4270  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4271  # <limits.h> exists even on freestanding compilers.
4272  # On the NeXT, cc -E runs the code through the compiler's parser,
4273  # not just through cpp. "Syntax error" is here to catch this case.
4274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275/* end confdefs.h.  */
4276#ifdef __STDC__
4277# include <limits.h>
4278#else
4279# include <assert.h>
4280#endif
4281		     Syntax error
4282_ACEOF
4283if ac_fn_c_try_cpp "$LINENO"; then :
4284
4285else
4286  # Broken: fails on valid input.
4287continue
4288fi
4289rm -f conftest.err conftest.i conftest.$ac_ext
4290
4291  # OK, works on sane cases.  Now check whether nonexistent headers
4292  # can be detected and how.
4293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294/* end confdefs.h.  */
4295#include <ac_nonexistent.h>
4296_ACEOF
4297if ac_fn_c_try_cpp "$LINENO"; then :
4298  # Broken: success on invalid input.
4299continue
4300else
4301  # Passes both tests.
4302ac_preproc_ok=:
4303break
4304fi
4305rm -f conftest.err conftest.i conftest.$ac_ext
4306
4307done
4308# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4309rm -f conftest.i conftest.err conftest.$ac_ext
4310if $ac_preproc_ok; then :
4311
4312else
4313  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4315as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4316See \`config.log' for more details" "$LINENO" 5; }
4317fi
4318
4319ac_ext=c
4320ac_cpp='$CPP $CPPFLAGS'
4321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324
4325
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4327$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4328if ${ac_cv_path_GREP+:} false; then :
4329  $as_echo_n "(cached) " >&6
4330else
4331  if test -z "$GREP"; then
4332  ac_path_GREP_found=false
4333  # Loop through the user's path and test for each of PROGNAME-LIST
4334  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4336do
4337  IFS=$as_save_IFS
4338  test -z "$as_dir" && as_dir=.
4339    for ac_prog in grep ggrep; do
4340    for ac_exec_ext in '' $ac_executable_extensions; do
4341      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4342      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4343# Check for GNU ac_path_GREP and select it if it is found.
4344  # Check for GNU $ac_path_GREP
4345case `"$ac_path_GREP" --version 2>&1` in
4346*GNU*)
4347  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4348*)
4349  ac_count=0
4350  $as_echo_n 0123456789 >"conftest.in"
4351  while :
4352  do
4353    cat "conftest.in" "conftest.in" >"conftest.tmp"
4354    mv "conftest.tmp" "conftest.in"
4355    cp "conftest.in" "conftest.nl"
4356    $as_echo 'GREP' >> "conftest.nl"
4357    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4358    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4359    as_fn_arith $ac_count + 1 && ac_count=$as_val
4360    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4361      # Best one so far, save it but keep looking for a better one
4362      ac_cv_path_GREP="$ac_path_GREP"
4363      ac_path_GREP_max=$ac_count
4364    fi
4365    # 10*(2^10) chars as input seems more than enough
4366    test $ac_count -gt 10 && break
4367  done
4368  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4369esac
4370
4371      $ac_path_GREP_found && break 3
4372    done
4373  done
4374  done
4375IFS=$as_save_IFS
4376  if test -z "$ac_cv_path_GREP"; then
4377    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4378  fi
4379else
4380  ac_cv_path_GREP=$GREP
4381fi
4382
4383fi
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4385$as_echo "$ac_cv_path_GREP" >&6; }
4386 GREP="$ac_cv_path_GREP"
4387
4388
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4390$as_echo_n "checking for egrep... " >&6; }
4391if ${ac_cv_path_EGREP+:} false; then :
4392  $as_echo_n "(cached) " >&6
4393else
4394  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4395   then ac_cv_path_EGREP="$GREP -E"
4396   else
4397     if test -z "$EGREP"; then
4398  ac_path_EGREP_found=false
4399  # Loop through the user's path and test for each of PROGNAME-LIST
4400  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4402do
4403  IFS=$as_save_IFS
4404  test -z "$as_dir" && as_dir=.
4405    for ac_prog in egrep; do
4406    for ac_exec_ext in '' $ac_executable_extensions; do
4407      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4408      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4409# Check for GNU ac_path_EGREP and select it if it is found.
4410  # Check for GNU $ac_path_EGREP
4411case `"$ac_path_EGREP" --version 2>&1` in
4412*GNU*)
4413  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4414*)
4415  ac_count=0
4416  $as_echo_n 0123456789 >"conftest.in"
4417  while :
4418  do
4419    cat "conftest.in" "conftest.in" >"conftest.tmp"
4420    mv "conftest.tmp" "conftest.in"
4421    cp "conftest.in" "conftest.nl"
4422    $as_echo 'EGREP' >> "conftest.nl"
4423    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4424    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4425    as_fn_arith $ac_count + 1 && ac_count=$as_val
4426    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4427      # Best one so far, save it but keep looking for a better one
4428      ac_cv_path_EGREP="$ac_path_EGREP"
4429      ac_path_EGREP_max=$ac_count
4430    fi
4431    # 10*(2^10) chars as input seems more than enough
4432    test $ac_count -gt 10 && break
4433  done
4434  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4435esac
4436
4437      $ac_path_EGREP_found && break 3
4438    done
4439  done
4440  done
4441IFS=$as_save_IFS
4442  if test -z "$ac_cv_path_EGREP"; then
4443    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4444  fi
4445else
4446  ac_cv_path_EGREP=$EGREP
4447fi
4448
4449   fi
4450fi
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4452$as_echo "$ac_cv_path_EGREP" >&6; }
4453 EGREP="$ac_cv_path_EGREP"
4454
4455
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4457$as_echo_n "checking for ANSI C header files... " >&6; }
4458if ${ac_cv_header_stdc+:} false; then :
4459  $as_echo_n "(cached) " >&6
4460else
4461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462/* end confdefs.h.  */
4463#include <stdlib.h>
4464#include <stdarg.h>
4465#include <string.h>
4466#include <float.h>
4467
4468int
4469main ()
4470{
4471
4472  ;
4473  return 0;
4474}
4475_ACEOF
4476if ac_fn_c_try_compile "$LINENO"; then :
4477  ac_cv_header_stdc=yes
4478else
4479  ac_cv_header_stdc=no
4480fi
4481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482
4483if test $ac_cv_header_stdc = yes; then
4484  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486/* end confdefs.h.  */
4487#include <string.h>
4488
4489_ACEOF
4490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491  $EGREP "memchr" >/dev/null 2>&1; then :
4492
4493else
4494  ac_cv_header_stdc=no
4495fi
4496rm -f conftest*
4497
4498fi
4499
4500if test $ac_cv_header_stdc = yes; then
4501  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503/* end confdefs.h.  */
4504#include <stdlib.h>
4505
4506_ACEOF
4507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4508  $EGREP "free" >/dev/null 2>&1; then :
4509
4510else
4511  ac_cv_header_stdc=no
4512fi
4513rm -f conftest*
4514
4515fi
4516
4517if test $ac_cv_header_stdc = yes; then
4518  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4519  if test "$cross_compiling" = yes; then :
4520  :
4521else
4522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523/* end confdefs.h.  */
4524#include <ctype.h>
4525#include <stdlib.h>
4526#if ((' ' & 0x0FF) == 0x020)
4527# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4528# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4529#else
4530# define ISLOWER(c) \
4531		   (('a' <= (c) && (c) <= 'i') \
4532		     || ('j' <= (c) && (c) <= 'r') \
4533		     || ('s' <= (c) && (c) <= 'z'))
4534# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4535#endif
4536
4537#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4538int
4539main ()
4540{
4541  int i;
4542  for (i = 0; i < 256; i++)
4543    if (XOR (islower (i), ISLOWER (i))
4544	|| toupper (i) != TOUPPER (i))
4545      return 2;
4546  return 0;
4547}
4548_ACEOF
4549if ac_fn_c_try_run "$LINENO"; then :
4550
4551else
4552  ac_cv_header_stdc=no
4553fi
4554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4555  conftest.$ac_objext conftest.beam conftest.$ac_ext
4556fi
4557
4558fi
4559fi
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4561$as_echo "$ac_cv_header_stdc" >&6; }
4562if test $ac_cv_header_stdc = yes; then
4563
4564$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4565
4566fi
4567
4568# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4569for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4570		  inttypes.h stdint.h unistd.h
4571do :
4572  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4573ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4574"
4575if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4576  cat >>confdefs.h <<_ACEOF
4577#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4578_ACEOF
4579
4580fi
4581
4582done
4583
4584
4585
4586  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4587if test "x$ac_cv_header_minix_config_h" = xyes; then :
4588  MINIX=yes
4589else
4590  MINIX=
4591fi
4592
4593
4594  if test "$MINIX" = yes; then
4595
4596$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4597
4598
4599$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4600
4601
4602$as_echo "#define _MINIX 1" >>confdefs.h
4603
4604  fi
4605
4606
4607  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4608$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4609if ${ac_cv_safe_to_define___extensions__+:} false; then :
4610  $as_echo_n "(cached) " >&6
4611else
4612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613/* end confdefs.h.  */
4614
4615#	  define __EXTENSIONS__ 1
4616	  $ac_includes_default
4617int
4618main ()
4619{
4620
4621  ;
4622  return 0;
4623}
4624_ACEOF
4625if ac_fn_c_try_compile "$LINENO"; then :
4626  ac_cv_safe_to_define___extensions__=yes
4627else
4628  ac_cv_safe_to_define___extensions__=no
4629fi
4630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631fi
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4633$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4634  test $ac_cv_safe_to_define___extensions__ = yes &&
4635    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4636
4637  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4638
4639  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4640
4641  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4642
4643  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4644
4645
4646
4647# Initialize libtool
4648case `pwd` in
4649  *\ * | *\	*)
4650    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4651$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4652esac
4653
4654
4655
4656macro_version='2.4.2'
4657macro_revision='1.3337'
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671ltmain="$ac_aux_dir/ltmain.sh"
4672
4673# Make sure we can run config.sub.
4674$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4675  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4676
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4678$as_echo_n "checking build system type... " >&6; }
4679if ${ac_cv_build+:} false; then :
4680  $as_echo_n "(cached) " >&6
4681else
4682  ac_build_alias=$build_alias
4683test "x$ac_build_alias" = x &&
4684  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4685test "x$ac_build_alias" = x &&
4686  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4687ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4688  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4689
4690fi
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4692$as_echo "$ac_cv_build" >&6; }
4693case $ac_cv_build in
4694*-*-*) ;;
4695*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4696esac
4697build=$ac_cv_build
4698ac_save_IFS=$IFS; IFS='-'
4699set x $ac_cv_build
4700shift
4701build_cpu=$1
4702build_vendor=$2
4703shift; shift
4704# Remember, the first character of IFS is used to create $*,
4705# except with old shells:
4706build_os=$*
4707IFS=$ac_save_IFS
4708case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4709
4710
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4712$as_echo_n "checking host system type... " >&6; }
4713if ${ac_cv_host+:} false; then :
4714  $as_echo_n "(cached) " >&6
4715else
4716  if test "x$host_alias" = x; then
4717  ac_cv_host=$ac_cv_build
4718else
4719  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4720    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4721fi
4722
4723fi
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4725$as_echo "$ac_cv_host" >&6; }
4726case $ac_cv_host in
4727*-*-*) ;;
4728*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4729esac
4730host=$ac_cv_host
4731ac_save_IFS=$IFS; IFS='-'
4732set x $ac_cv_host
4733shift
4734host_cpu=$1
4735host_vendor=$2
4736shift; shift
4737# Remember, the first character of IFS is used to create $*,
4738# except with old shells:
4739host_os=$*
4740IFS=$ac_save_IFS
4741case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4742
4743
4744# Backslashify metacharacters that are still active within
4745# double-quoted strings.
4746sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4747
4748# Same as above, but do not quote variable references.
4749double_quote_subst='s/\(["`\\]\)/\\\1/g'
4750
4751# Sed substitution to delay expansion of an escaped shell variable in a
4752# double_quote_subst'ed string.
4753delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4754
4755# Sed substitution to delay expansion of an escaped single quote.
4756delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4757
4758# Sed substitution to avoid accidental globbing in evaled expressions
4759no_glob_subst='s/\*/\\\*/g'
4760
4761ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4762ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4763ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4764
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4766$as_echo_n "checking how to print strings... " >&6; }
4767# Test print first, because it will be a builtin if present.
4768if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4769   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4770  ECHO='print -r --'
4771elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4772  ECHO='printf %s\n'
4773else
4774  # Use this function as a fallback that always works.
4775  func_fallback_echo ()
4776  {
4777    eval 'cat <<_LTECHO_EOF
4778$1
4779_LTECHO_EOF'
4780  }
4781  ECHO='func_fallback_echo'
4782fi
4783
4784# func_echo_all arg...
4785# Invoke $ECHO with all args, space-separated.
4786func_echo_all ()
4787{
4788    $ECHO ""
4789}
4790
4791case "$ECHO" in
4792  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4793$as_echo "printf" >&6; } ;;
4794  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4795$as_echo "print -r" >&6; } ;;
4796  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4797$as_echo "cat" >&6; } ;;
4798esac
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4814$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4815if ${ac_cv_path_SED+:} false; then :
4816  $as_echo_n "(cached) " >&6
4817else
4818            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4819     for ac_i in 1 2 3 4 5 6 7; do
4820       ac_script="$ac_script$as_nl$ac_script"
4821     done
4822     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4823     { ac_script=; unset ac_script;}
4824     if test -z "$SED"; then
4825  ac_path_SED_found=false
4826  # Loop through the user's path and test for each of PROGNAME-LIST
4827  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828for as_dir in $PATH
4829do
4830  IFS=$as_save_IFS
4831  test -z "$as_dir" && as_dir=.
4832    for ac_prog in sed gsed; do
4833    for ac_exec_ext in '' $ac_executable_extensions; do
4834      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4835      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4836# Check for GNU ac_path_SED and select it if it is found.
4837  # Check for GNU $ac_path_SED
4838case `"$ac_path_SED" --version 2>&1` in
4839*GNU*)
4840  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4841*)
4842  ac_count=0
4843  $as_echo_n 0123456789 >"conftest.in"
4844  while :
4845  do
4846    cat "conftest.in" "conftest.in" >"conftest.tmp"
4847    mv "conftest.tmp" "conftest.in"
4848    cp "conftest.in" "conftest.nl"
4849    $as_echo '' >> "conftest.nl"
4850    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4851    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4852    as_fn_arith $ac_count + 1 && ac_count=$as_val
4853    if test $ac_count -gt ${ac_path_SED_max-0}; then
4854      # Best one so far, save it but keep looking for a better one
4855      ac_cv_path_SED="$ac_path_SED"
4856      ac_path_SED_max=$ac_count
4857    fi
4858    # 10*(2^10) chars as input seems more than enough
4859    test $ac_count -gt 10 && break
4860  done
4861  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4862esac
4863
4864      $ac_path_SED_found && break 3
4865    done
4866  done
4867  done
4868IFS=$as_save_IFS
4869  if test -z "$ac_cv_path_SED"; then
4870    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4871  fi
4872else
4873  ac_cv_path_SED=$SED
4874fi
4875
4876fi
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4878$as_echo "$ac_cv_path_SED" >&6; }
4879 SED="$ac_cv_path_SED"
4880  rm -f conftest.sed
4881
4882test -z "$SED" && SED=sed
4883Xsed="$SED -e 1s/^X//"
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4896$as_echo_n "checking for fgrep... " >&6; }
4897if ${ac_cv_path_FGREP+:} false; then :
4898  $as_echo_n "(cached) " >&6
4899else
4900  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4901   then ac_cv_path_FGREP="$GREP -F"
4902   else
4903     if test -z "$FGREP"; then
4904  ac_path_FGREP_found=false
4905  # Loop through the user's path and test for each of PROGNAME-LIST
4906  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4908do
4909  IFS=$as_save_IFS
4910  test -z "$as_dir" && as_dir=.
4911    for ac_prog in fgrep; do
4912    for ac_exec_ext in '' $ac_executable_extensions; do
4913      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4914      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4915# Check for GNU ac_path_FGREP and select it if it is found.
4916  # Check for GNU $ac_path_FGREP
4917case `"$ac_path_FGREP" --version 2>&1` in
4918*GNU*)
4919  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4920*)
4921  ac_count=0
4922  $as_echo_n 0123456789 >"conftest.in"
4923  while :
4924  do
4925    cat "conftest.in" "conftest.in" >"conftest.tmp"
4926    mv "conftest.tmp" "conftest.in"
4927    cp "conftest.in" "conftest.nl"
4928    $as_echo 'FGREP' >> "conftest.nl"
4929    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4930    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4931    as_fn_arith $ac_count + 1 && ac_count=$as_val
4932    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4933      # Best one so far, save it but keep looking for a better one
4934      ac_cv_path_FGREP="$ac_path_FGREP"
4935      ac_path_FGREP_max=$ac_count
4936    fi
4937    # 10*(2^10) chars as input seems more than enough
4938    test $ac_count -gt 10 && break
4939  done
4940  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4941esac
4942
4943      $ac_path_FGREP_found && break 3
4944    done
4945  done
4946  done
4947IFS=$as_save_IFS
4948  if test -z "$ac_cv_path_FGREP"; then
4949    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4950  fi
4951else
4952  ac_cv_path_FGREP=$FGREP
4953fi
4954
4955   fi
4956fi
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4958$as_echo "$ac_cv_path_FGREP" >&6; }
4959 FGREP="$ac_cv_path_FGREP"
4960
4961
4962test -z "$GREP" && GREP=grep
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982# Check whether --with-gnu-ld was given.
4983if test "${with_gnu_ld+set}" = set; then :
4984  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4985else
4986  with_gnu_ld=no
4987fi
4988
4989ac_prog=ld
4990if test "$GCC" = yes; then
4991  # Check if gcc -print-prog-name=ld gives a path.
4992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4993$as_echo_n "checking for ld used by $CC... " >&6; }
4994  case $host in
4995  *-*-mingw*)
4996    # gcc leaves a trailing carriage return which upsets mingw
4997    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4998  *)
4999    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5000  esac
5001  case $ac_prog in
5002    # Accept absolute paths.
5003    [\\/]* | ?:[\\/]*)
5004      re_direlt='/[^/][^/]*/\.\./'
5005      # Canonicalize the pathname of ld
5006      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5007      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5008	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5009      done
5010      test -z "$LD" && LD="$ac_prog"
5011      ;;
5012  "")
5013    # If it fails, then pretend we aren't using GCC.
5014    ac_prog=ld
5015    ;;
5016  *)
5017    # If it is relative, then search for the first ld in PATH.
5018    with_gnu_ld=unknown
5019    ;;
5020  esac
5021elif test "$with_gnu_ld" = yes; then
5022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5023$as_echo_n "checking for GNU ld... " >&6; }
5024else
5025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5026$as_echo_n "checking for non-GNU ld... " >&6; }
5027fi
5028if ${lt_cv_path_LD+:} false; then :
5029  $as_echo_n "(cached) " >&6
5030else
5031  if test -z "$LD"; then
5032  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5033  for ac_dir in $PATH; do
5034    IFS="$lt_save_ifs"
5035    test -z "$ac_dir" && ac_dir=.
5036    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5037      lt_cv_path_LD="$ac_dir/$ac_prog"
5038      # Check to see if the program is GNU ld.  I'd rather use --version,
5039      # but apparently some variants of GNU ld only accept -v.
5040      # Break only if it was the GNU/non-GNU ld that we prefer.
5041      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5042      *GNU* | *'with BFD'*)
5043	test "$with_gnu_ld" != no && break
5044	;;
5045      *)
5046	test "$with_gnu_ld" != yes && break
5047	;;
5048      esac
5049    fi
5050  done
5051  IFS="$lt_save_ifs"
5052else
5053  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5054fi
5055fi
5056
5057LD="$lt_cv_path_LD"
5058if test -n "$LD"; then
5059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5060$as_echo "$LD" >&6; }
5061else
5062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063$as_echo "no" >&6; }
5064fi
5065test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5067$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5068if ${lt_cv_prog_gnu_ld+:} false; then :
5069  $as_echo_n "(cached) " >&6
5070else
5071  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5072case `$LD -v 2>&1 </dev/null` in
5073*GNU* | *'with BFD'*)
5074  lt_cv_prog_gnu_ld=yes
5075  ;;
5076*)
5077  lt_cv_prog_gnu_ld=no
5078  ;;
5079esac
5080fi
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5082$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5083with_gnu_ld=$lt_cv_prog_gnu_ld
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5094$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5095if ${lt_cv_path_NM+:} false; then :
5096  $as_echo_n "(cached) " >&6
5097else
5098  if test -n "$NM"; then
5099  # Let the user override the test.
5100  lt_cv_path_NM="$NM"
5101else
5102  lt_nm_to_check="${ac_tool_prefix}nm"
5103  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5104    lt_nm_to_check="$lt_nm_to_check nm"
5105  fi
5106  for lt_tmp_nm in $lt_nm_to_check; do
5107    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5108    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5109      IFS="$lt_save_ifs"
5110      test -z "$ac_dir" && ac_dir=.
5111      tmp_nm="$ac_dir/$lt_tmp_nm"
5112      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5113	# Check to see if the nm accepts a BSD-compat flag.
5114	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5115	#   nm: unknown option "B" ignored
5116	# Tru64's nm complains that /dev/null is an invalid object file
5117	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5118	*/dev/null* | *'Invalid file or object type'*)
5119	  lt_cv_path_NM="$tmp_nm -B"
5120	  break
5121	  ;;
5122	*)
5123	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5124	  */dev/null*)
5125	    lt_cv_path_NM="$tmp_nm -p"
5126	    break
5127	    ;;
5128	  *)
5129	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5130	    continue # so that we can try to find one that supports BSD flags
5131	    ;;
5132	  esac
5133	  ;;
5134	esac
5135      fi
5136    done
5137    IFS="$lt_save_ifs"
5138  done
5139  : ${lt_cv_path_NM=no}
5140fi
5141fi
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5143$as_echo "$lt_cv_path_NM" >&6; }
5144if test "$lt_cv_path_NM" != "no"; then
5145  NM="$lt_cv_path_NM"
5146else
5147  # Didn't find any BSD compatible name lister, look for dumpbin.
5148  if test -n "$DUMPBIN"; then :
5149    # Let the user override the test.
5150  else
5151    if test -n "$ac_tool_prefix"; then
5152  for ac_prog in dumpbin "link -dump"
5153  do
5154    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5155set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157$as_echo_n "checking for $ac_word... " >&6; }
5158if ${ac_cv_prog_DUMPBIN+:} false; then :
5159  $as_echo_n "(cached) " >&6
5160else
5161  if test -n "$DUMPBIN"; then
5162  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5163else
5164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165for as_dir in $PATH
5166do
5167  IFS=$as_save_IFS
5168  test -z "$as_dir" && as_dir=.
5169    for ac_exec_ext in '' $ac_executable_extensions; do
5170  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173    break 2
5174  fi
5175done
5176  done
5177IFS=$as_save_IFS
5178
5179fi
5180fi
5181DUMPBIN=$ac_cv_prog_DUMPBIN
5182if test -n "$DUMPBIN"; then
5183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5184$as_echo "$DUMPBIN" >&6; }
5185else
5186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187$as_echo "no" >&6; }
5188fi
5189
5190
5191    test -n "$DUMPBIN" && break
5192  done
5193fi
5194if test -z "$DUMPBIN"; then
5195  ac_ct_DUMPBIN=$DUMPBIN
5196  for ac_prog in dumpbin "link -dump"
5197do
5198  # Extract the first word of "$ac_prog", so it can be a program name with args.
5199set dummy $ac_prog; ac_word=$2
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201$as_echo_n "checking for $ac_word... " >&6; }
5202if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5203  $as_echo_n "(cached) " >&6
5204else
5205  if test -n "$ac_ct_DUMPBIN"; then
5206  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5207else
5208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211  IFS=$as_save_IFS
5212  test -z "$as_dir" && as_dir=.
5213    for ac_exec_ext in '' $ac_executable_extensions; do
5214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217    break 2
5218  fi
5219done
5220  done
5221IFS=$as_save_IFS
5222
5223fi
5224fi
5225ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5226if test -n "$ac_ct_DUMPBIN"; then
5227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5228$as_echo "$ac_ct_DUMPBIN" >&6; }
5229else
5230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231$as_echo "no" >&6; }
5232fi
5233
5234
5235  test -n "$ac_ct_DUMPBIN" && break
5236done
5237
5238  if test "x$ac_ct_DUMPBIN" = x; then
5239    DUMPBIN=":"
5240  else
5241    case $cross_compiling:$ac_tool_warned in
5242yes:)
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5245ac_tool_warned=yes ;;
5246esac
5247    DUMPBIN=$ac_ct_DUMPBIN
5248  fi
5249fi
5250
5251    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5252    *COFF*)
5253      DUMPBIN="$DUMPBIN -symbols"
5254      ;;
5255    *)
5256      DUMPBIN=:
5257      ;;
5258    esac
5259  fi
5260
5261  if test "$DUMPBIN" != ":"; then
5262    NM="$DUMPBIN"
5263  fi
5264fi
5265test -z "$NM" && NM=nm
5266
5267
5268
5269
5270
5271
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5273$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5274if ${lt_cv_nm_interface+:} false; then :
5275  $as_echo_n "(cached) " >&6
5276else
5277  lt_cv_nm_interface="BSD nm"
5278  echo "int some_variable = 0;" > conftest.$ac_ext
5279  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5280  (eval "$ac_compile" 2>conftest.err)
5281  cat conftest.err >&5
5282  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5283  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5284  cat conftest.err >&5
5285  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5286  cat conftest.out >&5
5287  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5288    lt_cv_nm_interface="MS dumpbin"
5289  fi
5290  rm -f conftest*
5291fi
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5293$as_echo "$lt_cv_nm_interface" >&6; }
5294
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5296$as_echo_n "checking whether ln -s works... " >&6; }
5297LN_S=$as_ln_s
5298if test "$LN_S" = "ln -s"; then
5299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5300$as_echo "yes" >&6; }
5301else
5302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5303$as_echo "no, using $LN_S" >&6; }
5304fi
5305
5306# find the maximum length of command line arguments
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5308$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5309if ${lt_cv_sys_max_cmd_len+:} false; then :
5310  $as_echo_n "(cached) " >&6
5311else
5312    i=0
5313  teststring="ABCD"
5314
5315  case $build_os in
5316  msdosdjgpp*)
5317    # On DJGPP, this test can blow up pretty badly due to problems in libc
5318    # (any single argument exceeding 2000 bytes causes a buffer overrun
5319    # during glob expansion).  Even if it were fixed, the result of this
5320    # check would be larger than it should be.
5321    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5322    ;;
5323
5324  gnu*)
5325    # Under GNU Hurd, this test is not required because there is
5326    # no limit to the length of command line arguments.
5327    # Libtool will interpret -1 as no limit whatsoever
5328    lt_cv_sys_max_cmd_len=-1;
5329    ;;
5330
5331  cygwin* | mingw* | cegcc*)
5332    # On Win9x/ME, this test blows up -- it succeeds, but takes
5333    # about 5 minutes as the teststring grows exponentially.
5334    # Worse, since 9x/ME are not pre-emptively multitasking,
5335    # you end up with a "frozen" computer, even though with patience
5336    # the test eventually succeeds (with a max line length of 256k).
5337    # Instead, let's just punt: use the minimum linelength reported by
5338    # all of the supported platforms: 8192 (on NT/2K/XP).
5339    lt_cv_sys_max_cmd_len=8192;
5340    ;;
5341
5342  mint*)
5343    # On MiNT this can take a long time and run out of memory.
5344    lt_cv_sys_max_cmd_len=8192;
5345    ;;
5346
5347  amigaos*)
5348    # On AmigaOS with pdksh, this test takes hours, literally.
5349    # So we just punt and use a minimum line length of 8192.
5350    lt_cv_sys_max_cmd_len=8192;
5351    ;;
5352
5353  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5354    # This has been around since 386BSD, at least.  Likely further.
5355    if test -x /sbin/sysctl; then
5356      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5357    elif test -x /usr/sbin/sysctl; then
5358      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5359    else
5360      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5361    fi
5362    # And add a safety zone
5363    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5364    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5365    ;;
5366
5367  interix*)
5368    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5369    lt_cv_sys_max_cmd_len=196608
5370    ;;
5371
5372  os2*)
5373    # The test takes a long time on OS/2.
5374    lt_cv_sys_max_cmd_len=8192
5375    ;;
5376
5377  osf*)
5378    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5379    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5380    # nice to cause kernel panics so lets avoid the loop below.
5381    # First set a reasonable default.
5382    lt_cv_sys_max_cmd_len=16384
5383    #
5384    if test -x /sbin/sysconfig; then
5385      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5386        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5387      esac
5388    fi
5389    ;;
5390  sco3.2v5*)
5391    lt_cv_sys_max_cmd_len=102400
5392    ;;
5393  sysv5* | sco5v6* | sysv4.2uw2*)
5394    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5395    if test -n "$kargmax"; then
5396      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5397    else
5398      lt_cv_sys_max_cmd_len=32768
5399    fi
5400    ;;
5401  *)
5402    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5403    if test -n "$lt_cv_sys_max_cmd_len"; then
5404      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5405      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5406    else
5407      # Make teststring a little bigger before we do anything with it.
5408      # a 1K string should be a reasonable start.
5409      for i in 1 2 3 4 5 6 7 8 ; do
5410        teststring=$teststring$teststring
5411      done
5412      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5413      # If test is not a shell built-in, we'll probably end up computing a
5414      # maximum length that is only half of the actual maximum length, but
5415      # we can't tell.
5416      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5417	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5418	      test $i != 17 # 1/2 MB should be enough
5419      do
5420        i=`expr $i + 1`
5421        teststring=$teststring$teststring
5422      done
5423      # Only check the string length outside the loop.
5424      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5425      teststring=
5426      # Add a significant safety factor because C++ compilers can tack on
5427      # massive amounts of additional arguments before passing them to the
5428      # linker.  It appears as though 1/2 is a usable value.
5429      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5430    fi
5431    ;;
5432  esac
5433
5434fi
5435
5436if test -n $lt_cv_sys_max_cmd_len ; then
5437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5438$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5439else
5440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5441$as_echo "none" >&6; }
5442fi
5443max_cmd_len=$lt_cv_sys_max_cmd_len
5444
5445
5446
5447
5448
5449
5450: ${CP="cp -f"}
5451: ${MV="mv -f"}
5452: ${RM="rm -f"}
5453
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5455$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5456# Try some XSI features
5457xsi_shell=no
5458( _lt_dummy="a/b/c"
5459  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5460      = c,a/b,b/c, \
5461    && eval 'test $(( 1 + 1 )) -eq 2 \
5462    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5463  && xsi_shell=yes
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5465$as_echo "$xsi_shell" >&6; }
5466
5467
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5469$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5470lt_shell_append=no
5471( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5472    >/dev/null 2>&1 \
5473  && lt_shell_append=yes
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5475$as_echo "$lt_shell_append" >&6; }
5476
5477
5478if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5479  lt_unset=unset
5480else
5481  lt_unset=false
5482fi
5483
5484
5485
5486
5487
5488# test EBCDIC or ASCII
5489case `echo X|tr X '\101'` in
5490 A) # ASCII based system
5491    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5492  lt_SP2NL='tr \040 \012'
5493  lt_NL2SP='tr \015\012 \040\040'
5494  ;;
5495 *) # EBCDIC based system
5496  lt_SP2NL='tr \100 \n'
5497  lt_NL2SP='tr \r\n \100\100'
5498  ;;
5499esac
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5510$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5511if ${lt_cv_to_host_file_cmd+:} false; then :
5512  $as_echo_n "(cached) " >&6
5513else
5514  case $host in
5515  *-*-mingw* )
5516    case $build in
5517      *-*-mingw* ) # actually msys
5518        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5519        ;;
5520      *-*-cygwin* )
5521        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5522        ;;
5523      * ) # otherwise, assume *nix
5524        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5525        ;;
5526    esac
5527    ;;
5528  *-*-cygwin* )
5529    case $build in
5530      *-*-mingw* ) # actually msys
5531        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5532        ;;
5533      *-*-cygwin* )
5534        lt_cv_to_host_file_cmd=func_convert_file_noop
5535        ;;
5536      * ) # otherwise, assume *nix
5537        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5538        ;;
5539    esac
5540    ;;
5541  * ) # unhandled hosts (and "normal" native builds)
5542    lt_cv_to_host_file_cmd=func_convert_file_noop
5543    ;;
5544esac
5545
5546fi
5547
5548to_host_file_cmd=$lt_cv_to_host_file_cmd
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5550$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5551
5552
5553
5554
5555
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5557$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5558if ${lt_cv_to_tool_file_cmd+:} false; then :
5559  $as_echo_n "(cached) " >&6
5560else
5561  #assume ordinary cross tools, or native build.
5562lt_cv_to_tool_file_cmd=func_convert_file_noop
5563case $host in
5564  *-*-mingw* )
5565    case $build in
5566      *-*-mingw* ) # actually msys
5567        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5568        ;;
5569    esac
5570    ;;
5571esac
5572
5573fi
5574
5575to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5577$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5578
5579
5580
5581
5582
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5584$as_echo_n "checking for $LD option to reload object files... " >&6; }
5585if ${lt_cv_ld_reload_flag+:} false; then :
5586  $as_echo_n "(cached) " >&6
5587else
5588  lt_cv_ld_reload_flag='-r'
5589fi
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5591$as_echo "$lt_cv_ld_reload_flag" >&6; }
5592reload_flag=$lt_cv_ld_reload_flag
5593case $reload_flag in
5594"" | " "*) ;;
5595*) reload_flag=" $reload_flag" ;;
5596esac
5597reload_cmds='$LD$reload_flag -o $output$reload_objs'
5598case $host_os in
5599  cygwin* | mingw* | pw32* | cegcc*)
5600    if test "$GCC" != yes; then
5601      reload_cmds=false
5602    fi
5603    ;;
5604  darwin*)
5605    if test "$GCC" = yes; then
5606      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5607    else
5608      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5609    fi
5610    ;;
5611esac
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621if test -n "$ac_tool_prefix"; then
5622  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5623set dummy ${ac_tool_prefix}objdump; ac_word=$2
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625$as_echo_n "checking for $ac_word... " >&6; }
5626if ${ac_cv_prog_OBJDUMP+:} false; then :
5627  $as_echo_n "(cached) " >&6
5628else
5629  if test -n "$OBJDUMP"; then
5630  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5631else
5632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633for as_dir in $PATH
5634do
5635  IFS=$as_save_IFS
5636  test -z "$as_dir" && as_dir=.
5637    for ac_exec_ext in '' $ac_executable_extensions; do
5638  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5639    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641    break 2
5642  fi
5643done
5644  done
5645IFS=$as_save_IFS
5646
5647fi
5648fi
5649OBJDUMP=$ac_cv_prog_OBJDUMP
5650if test -n "$OBJDUMP"; then
5651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5652$as_echo "$OBJDUMP" >&6; }
5653else
5654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655$as_echo "no" >&6; }
5656fi
5657
5658
5659fi
5660if test -z "$ac_cv_prog_OBJDUMP"; then
5661  ac_ct_OBJDUMP=$OBJDUMP
5662  # Extract the first word of "objdump", so it can be a program name with args.
5663set dummy objdump; ac_word=$2
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665$as_echo_n "checking for $ac_word... " >&6; }
5666if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5667  $as_echo_n "(cached) " >&6
5668else
5669  if test -n "$ac_ct_OBJDUMP"; then
5670  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5671else
5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673for as_dir in $PATH
5674do
5675  IFS=$as_save_IFS
5676  test -z "$as_dir" && as_dir=.
5677    for ac_exec_ext in '' $ac_executable_extensions; do
5678  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5679    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681    break 2
5682  fi
5683done
5684  done
5685IFS=$as_save_IFS
5686
5687fi
5688fi
5689ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5690if test -n "$ac_ct_OBJDUMP"; then
5691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5692$as_echo "$ac_ct_OBJDUMP" >&6; }
5693else
5694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695$as_echo "no" >&6; }
5696fi
5697
5698  if test "x$ac_ct_OBJDUMP" = x; then
5699    OBJDUMP="false"
5700  else
5701    case $cross_compiling:$ac_tool_warned in
5702yes:)
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5705ac_tool_warned=yes ;;
5706esac
5707    OBJDUMP=$ac_ct_OBJDUMP
5708  fi
5709else
5710  OBJDUMP="$ac_cv_prog_OBJDUMP"
5711fi
5712
5713test -z "$OBJDUMP" && OBJDUMP=objdump
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5724$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5725if ${lt_cv_deplibs_check_method+:} false; then :
5726  $as_echo_n "(cached) " >&6
5727else
5728  lt_cv_file_magic_cmd='$MAGIC_CMD'
5729lt_cv_file_magic_test_file=
5730lt_cv_deplibs_check_method='unknown'
5731# Need to set the preceding variable on all platforms that support
5732# interlibrary dependencies.
5733# 'none' -- dependencies not supported.
5734# `unknown' -- same as none, but documents that we really don't know.
5735# 'pass_all' -- all dependencies passed with no checks.
5736# 'test_compile' -- check by making test program.
5737# 'file_magic [[regex]]' -- check by looking for files in library path
5738# which responds to the $file_magic_cmd with a given extended regex.
5739# If you have `file' or equivalent on your system and you're not sure
5740# whether `pass_all' will *always* work, you probably want this one.
5741
5742case $host_os in
5743aix[4-9]*)
5744  lt_cv_deplibs_check_method=pass_all
5745  ;;
5746
5747beos*)
5748  lt_cv_deplibs_check_method=pass_all
5749  ;;
5750
5751bsdi[45]*)
5752  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5753  lt_cv_file_magic_cmd='/usr/bin/file -L'
5754  lt_cv_file_magic_test_file=/shlib/libc.so
5755  ;;
5756
5757cygwin*)
5758  # func_win32_libid is a shell function defined in ltmain.sh
5759  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5760  lt_cv_file_magic_cmd='func_win32_libid'
5761  ;;
5762
5763mingw* | pw32*)
5764  # Base MSYS/MinGW do not provide the 'file' command needed by
5765  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5766  # unless we find 'file', for example because we are cross-compiling.
5767  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5768  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5769    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5770    lt_cv_file_magic_cmd='func_win32_libid'
5771  else
5772    # Keep this pattern in sync with the one in func_win32_libid.
5773    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5774    lt_cv_file_magic_cmd='$OBJDUMP -f'
5775  fi
5776  ;;
5777
5778cegcc*)
5779  # use the weaker test based on 'objdump'. See mingw*.
5780  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5781  lt_cv_file_magic_cmd='$OBJDUMP -f'
5782  ;;
5783
5784darwin* | rhapsody*)
5785  lt_cv_deplibs_check_method=pass_all
5786  ;;
5787
5788freebsd* | dragonfly*)
5789  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5790    case $host_cpu in
5791    i*86 )
5792      # Not sure whether the presence of OpenBSD here was a mistake.
5793      # Let's accept both of them until this is cleared up.
5794      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5795      lt_cv_file_magic_cmd=/usr/bin/file
5796      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5797      ;;
5798    esac
5799  else
5800    lt_cv_deplibs_check_method=pass_all
5801  fi
5802  ;;
5803
5804gnu*)
5805  lt_cv_deplibs_check_method=pass_all
5806  ;;
5807
5808haiku*)
5809  lt_cv_deplibs_check_method=pass_all
5810  ;;
5811
5812hpux10.20* | hpux11*)
5813  lt_cv_file_magic_cmd=/usr/bin/file
5814  case $host_cpu in
5815  ia64*)
5816    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5817    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5818    ;;
5819  hppa*64*)
5820    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]'
5821    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5822    ;;
5823  *)
5824    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5825    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5826    ;;
5827  esac
5828  ;;
5829
5830interix[3-9]*)
5831  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5832  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5833  ;;
5834
5835irix5* | irix6* | nonstopux*)
5836  case $LD in
5837  *-32|*"-32 ") libmagic=32-bit;;
5838  *-n32|*"-n32 ") libmagic=N32;;
5839  *-64|*"-64 ") libmagic=64-bit;;
5840  *) libmagic=never-match;;
5841  esac
5842  lt_cv_deplibs_check_method=pass_all
5843  ;;
5844
5845# This must be glibc/ELF.
5846linux* | k*bsd*-gnu | kopensolaris*-gnu)
5847  lt_cv_deplibs_check_method=pass_all
5848  ;;
5849
5850netbsd*)
5851  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5852    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5853  else
5854    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5855  fi
5856  ;;
5857
5858newos6*)
5859  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5860  lt_cv_file_magic_cmd=/usr/bin/file
5861  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5862  ;;
5863
5864*nto* | *qnx*)
5865  lt_cv_deplibs_check_method=pass_all
5866  ;;
5867
5868openbsd*)
5869  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5870    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5871  else
5872    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5873  fi
5874  ;;
5875
5876osf3* | osf4* | osf5*)
5877  lt_cv_deplibs_check_method=pass_all
5878  ;;
5879
5880rdos*)
5881  lt_cv_deplibs_check_method=pass_all
5882  ;;
5883
5884solaris*)
5885  lt_cv_deplibs_check_method=pass_all
5886  ;;
5887
5888sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5889  lt_cv_deplibs_check_method=pass_all
5890  ;;
5891
5892sysv4 | sysv4.3*)
5893  case $host_vendor in
5894  motorola)
5895    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]'
5896    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5897    ;;
5898  ncr)
5899    lt_cv_deplibs_check_method=pass_all
5900    ;;
5901  sequent)
5902    lt_cv_file_magic_cmd='/bin/file'
5903    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5904    ;;
5905  sni)
5906    lt_cv_file_magic_cmd='/bin/file'
5907    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5908    lt_cv_file_magic_test_file=/lib/libc.so
5909    ;;
5910  siemens)
5911    lt_cv_deplibs_check_method=pass_all
5912    ;;
5913  pc)
5914    lt_cv_deplibs_check_method=pass_all
5915    ;;
5916  esac
5917  ;;
5918
5919tpf*)
5920  lt_cv_deplibs_check_method=pass_all
5921  ;;
5922esac
5923
5924fi
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5926$as_echo "$lt_cv_deplibs_check_method" >&6; }
5927
5928file_magic_glob=
5929want_nocaseglob=no
5930if test "$build" = "$host"; then
5931  case $host_os in
5932  mingw* | pw32*)
5933    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5934      want_nocaseglob=yes
5935    else
5936      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5937    fi
5938    ;;
5939  esac
5940fi
5941
5942file_magic_cmd=$lt_cv_file_magic_cmd
5943deplibs_check_method=$lt_cv_deplibs_check_method
5944test -z "$deplibs_check_method" && deplibs_check_method=unknown
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967if test -n "$ac_tool_prefix"; then
5968  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5969set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971$as_echo_n "checking for $ac_word... " >&6; }
5972if ${ac_cv_prog_DLLTOOL+:} false; then :
5973  $as_echo_n "(cached) " >&6
5974else
5975  if test -n "$DLLTOOL"; then
5976  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5977else
5978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979for as_dir in $PATH
5980do
5981  IFS=$as_save_IFS
5982  test -z "$as_dir" && as_dir=.
5983    for ac_exec_ext in '' $ac_executable_extensions; do
5984  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987    break 2
5988  fi
5989done
5990  done
5991IFS=$as_save_IFS
5992
5993fi
5994fi
5995DLLTOOL=$ac_cv_prog_DLLTOOL
5996if test -n "$DLLTOOL"; then
5997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5998$as_echo "$DLLTOOL" >&6; }
5999else
6000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001$as_echo "no" >&6; }
6002fi
6003
6004
6005fi
6006if test -z "$ac_cv_prog_DLLTOOL"; then
6007  ac_ct_DLLTOOL=$DLLTOOL
6008  # Extract the first word of "dlltool", so it can be a program name with args.
6009set dummy dlltool; ac_word=$2
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011$as_echo_n "checking for $ac_word... " >&6; }
6012if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6013  $as_echo_n "(cached) " >&6
6014else
6015  if test -n "$ac_ct_DLLTOOL"; then
6016  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6017else
6018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019for as_dir in $PATH
6020do
6021  IFS=$as_save_IFS
6022  test -z "$as_dir" && as_dir=.
6023    for ac_exec_ext in '' $ac_executable_extensions; do
6024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6025    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027    break 2
6028  fi
6029done
6030  done
6031IFS=$as_save_IFS
6032
6033fi
6034fi
6035ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6036if test -n "$ac_ct_DLLTOOL"; then
6037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6038$as_echo "$ac_ct_DLLTOOL" >&6; }
6039else
6040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041$as_echo "no" >&6; }
6042fi
6043
6044  if test "x$ac_ct_DLLTOOL" = x; then
6045    DLLTOOL="false"
6046  else
6047    case $cross_compiling:$ac_tool_warned in
6048yes:)
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6051ac_tool_warned=yes ;;
6052esac
6053    DLLTOOL=$ac_ct_DLLTOOL
6054  fi
6055else
6056  DLLTOOL="$ac_cv_prog_DLLTOOL"
6057fi
6058
6059test -z "$DLLTOOL" && DLLTOOL=dlltool
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6071$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6072if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6073  $as_echo_n "(cached) " >&6
6074else
6075  lt_cv_sharedlib_from_linklib_cmd='unknown'
6076
6077case $host_os in
6078cygwin* | mingw* | pw32* | cegcc*)
6079  # two different shell functions defined in ltmain.sh
6080  # decide which to use based on capabilities of $DLLTOOL
6081  case `$DLLTOOL --help 2>&1` in
6082  *--identify-strict*)
6083    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6084    ;;
6085  *)
6086    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6087    ;;
6088  esac
6089  ;;
6090*)
6091  # fallback: assume linklib IS sharedlib
6092  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6093  ;;
6094esac
6095
6096fi
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6098$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6099sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6100test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6101
6102
6103
6104
6105
6106
6107
6108if test -n "$ac_tool_prefix"; then
6109  for ac_prog in ar
6110  do
6111    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6112set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114$as_echo_n "checking for $ac_word... " >&6; }
6115if ${ac_cv_prog_AR+:} false; then :
6116  $as_echo_n "(cached) " >&6
6117else
6118  if test -n "$AR"; then
6119  ac_cv_prog_AR="$AR" # Let the user override the test.
6120else
6121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122for as_dir in $PATH
6123do
6124  IFS=$as_save_IFS
6125  test -z "$as_dir" && as_dir=.
6126    for ac_exec_ext in '' $ac_executable_extensions; do
6127  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6128    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130    break 2
6131  fi
6132done
6133  done
6134IFS=$as_save_IFS
6135
6136fi
6137fi
6138AR=$ac_cv_prog_AR
6139if test -n "$AR"; then
6140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6141$as_echo "$AR" >&6; }
6142else
6143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144$as_echo "no" >&6; }
6145fi
6146
6147
6148    test -n "$AR" && break
6149  done
6150fi
6151if test -z "$AR"; then
6152  ac_ct_AR=$AR
6153  for ac_prog in ar
6154do
6155  # Extract the first word of "$ac_prog", so it can be a program name with args.
6156set dummy $ac_prog; ac_word=$2
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158$as_echo_n "checking for $ac_word... " >&6; }
6159if ${ac_cv_prog_ac_ct_AR+:} false; then :
6160  $as_echo_n "(cached) " >&6
6161else
6162  if test -n "$ac_ct_AR"; then
6163  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6164else
6165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166for as_dir in $PATH
6167do
6168  IFS=$as_save_IFS
6169  test -z "$as_dir" && as_dir=.
6170    for ac_exec_ext in '' $ac_executable_extensions; do
6171  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6172    ac_cv_prog_ac_ct_AR="$ac_prog"
6173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174    break 2
6175  fi
6176done
6177  done
6178IFS=$as_save_IFS
6179
6180fi
6181fi
6182ac_ct_AR=$ac_cv_prog_ac_ct_AR
6183if test -n "$ac_ct_AR"; then
6184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6185$as_echo "$ac_ct_AR" >&6; }
6186else
6187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188$as_echo "no" >&6; }
6189fi
6190
6191
6192  test -n "$ac_ct_AR" && break
6193done
6194
6195  if test "x$ac_ct_AR" = x; then
6196    AR="false"
6197  else
6198    case $cross_compiling:$ac_tool_warned in
6199yes:)
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6202ac_tool_warned=yes ;;
6203esac
6204    AR=$ac_ct_AR
6205  fi
6206fi
6207
6208: ${AR=ar}
6209: ${AR_FLAGS=cru}
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6222$as_echo_n "checking for archiver @FILE support... " >&6; }
6223if ${lt_cv_ar_at_file+:} false; then :
6224  $as_echo_n "(cached) " >&6
6225else
6226  lt_cv_ar_at_file=no
6227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228/* end confdefs.h.  */
6229
6230int
6231main ()
6232{
6233
6234  ;
6235  return 0;
6236}
6237_ACEOF
6238if ac_fn_c_try_compile "$LINENO"; then :
6239  echo conftest.$ac_objext > conftest.lst
6240      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6241      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6242  (eval $lt_ar_try) 2>&5
6243  ac_status=$?
6244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6245  test $ac_status = 0; }
6246      if test "$ac_status" -eq 0; then
6247	# Ensure the archiver fails upon bogus file names.
6248	rm -f conftest.$ac_objext libconftest.a
6249	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6250  (eval $lt_ar_try) 2>&5
6251  ac_status=$?
6252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6253  test $ac_status = 0; }
6254	if test "$ac_status" -ne 0; then
6255          lt_cv_ar_at_file=@
6256        fi
6257      fi
6258      rm -f conftest.* libconftest.a
6259
6260fi
6261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262
6263fi
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6265$as_echo "$lt_cv_ar_at_file" >&6; }
6266
6267if test "x$lt_cv_ar_at_file" = xno; then
6268  archiver_list_spec=
6269else
6270  archiver_list_spec=$lt_cv_ar_at_file
6271fi
6272
6273
6274
6275
6276
6277
6278
6279if test -n "$ac_tool_prefix"; then
6280  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6281set dummy ${ac_tool_prefix}strip; ac_word=$2
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283$as_echo_n "checking for $ac_word... " >&6; }
6284if ${ac_cv_prog_STRIP+:} false; then :
6285  $as_echo_n "(cached) " >&6
6286else
6287  if test -n "$STRIP"; then
6288  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6289else
6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293  IFS=$as_save_IFS
6294  test -z "$as_dir" && as_dir=.
6295    for ac_exec_ext in '' $ac_executable_extensions; do
6296  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299    break 2
6300  fi
6301done
6302  done
6303IFS=$as_save_IFS
6304
6305fi
6306fi
6307STRIP=$ac_cv_prog_STRIP
6308if test -n "$STRIP"; then
6309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6310$as_echo "$STRIP" >&6; }
6311else
6312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313$as_echo "no" >&6; }
6314fi
6315
6316
6317fi
6318if test -z "$ac_cv_prog_STRIP"; then
6319  ac_ct_STRIP=$STRIP
6320  # Extract the first word of "strip", so it can be a program name with args.
6321set dummy strip; ac_word=$2
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323$as_echo_n "checking for $ac_word... " >&6; }
6324if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6325  $as_echo_n "(cached) " >&6
6326else
6327  if test -n "$ac_ct_STRIP"; then
6328  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6329else
6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331for as_dir in $PATH
6332do
6333  IFS=$as_save_IFS
6334  test -z "$as_dir" && as_dir=.
6335    for ac_exec_ext in '' $ac_executable_extensions; do
6336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6337    ac_cv_prog_ac_ct_STRIP="strip"
6338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339    break 2
6340  fi
6341done
6342  done
6343IFS=$as_save_IFS
6344
6345fi
6346fi
6347ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6348if test -n "$ac_ct_STRIP"; then
6349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6350$as_echo "$ac_ct_STRIP" >&6; }
6351else
6352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353$as_echo "no" >&6; }
6354fi
6355
6356  if test "x$ac_ct_STRIP" = x; then
6357    STRIP=":"
6358  else
6359    case $cross_compiling:$ac_tool_warned in
6360yes:)
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6363ac_tool_warned=yes ;;
6364esac
6365    STRIP=$ac_ct_STRIP
6366  fi
6367else
6368  STRIP="$ac_cv_prog_STRIP"
6369fi
6370
6371test -z "$STRIP" && STRIP=:
6372
6373
6374
6375
6376
6377
6378if test -n "$ac_tool_prefix"; then
6379  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6380set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382$as_echo_n "checking for $ac_word... " >&6; }
6383if ${ac_cv_prog_RANLIB+:} false; then :
6384  $as_echo_n "(cached) " >&6
6385else
6386  if test -n "$RANLIB"; then
6387  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6388else
6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390for as_dir in $PATH
6391do
6392  IFS=$as_save_IFS
6393  test -z "$as_dir" && as_dir=.
6394    for ac_exec_ext in '' $ac_executable_extensions; do
6395  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398    break 2
6399  fi
6400done
6401  done
6402IFS=$as_save_IFS
6403
6404fi
6405fi
6406RANLIB=$ac_cv_prog_RANLIB
6407if test -n "$RANLIB"; then
6408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6409$as_echo "$RANLIB" >&6; }
6410else
6411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412$as_echo "no" >&6; }
6413fi
6414
6415
6416fi
6417if test -z "$ac_cv_prog_RANLIB"; then
6418  ac_ct_RANLIB=$RANLIB
6419  # Extract the first word of "ranlib", so it can be a program name with args.
6420set dummy ranlib; ac_word=$2
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422$as_echo_n "checking for $ac_word... " >&6; }
6423if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6424  $as_echo_n "(cached) " >&6
6425else
6426  if test -n "$ac_ct_RANLIB"; then
6427  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6428else
6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430for as_dir in $PATH
6431do
6432  IFS=$as_save_IFS
6433  test -z "$as_dir" && as_dir=.
6434    for ac_exec_ext in '' $ac_executable_extensions; do
6435  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436    ac_cv_prog_ac_ct_RANLIB="ranlib"
6437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438    break 2
6439  fi
6440done
6441  done
6442IFS=$as_save_IFS
6443
6444fi
6445fi
6446ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6447if test -n "$ac_ct_RANLIB"; then
6448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6449$as_echo "$ac_ct_RANLIB" >&6; }
6450else
6451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452$as_echo "no" >&6; }
6453fi
6454
6455  if test "x$ac_ct_RANLIB" = x; then
6456    RANLIB=":"
6457  else
6458    case $cross_compiling:$ac_tool_warned in
6459yes:)
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462ac_tool_warned=yes ;;
6463esac
6464    RANLIB=$ac_ct_RANLIB
6465  fi
6466else
6467  RANLIB="$ac_cv_prog_RANLIB"
6468fi
6469
6470test -z "$RANLIB" && RANLIB=:
6471
6472
6473
6474
6475
6476
6477# Determine commands to create old-style static archives.
6478old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6479old_postinstall_cmds='chmod 644 $oldlib'
6480old_postuninstall_cmds=
6481
6482if test -n "$RANLIB"; then
6483  case $host_os in
6484  openbsd*)
6485    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6486    ;;
6487  *)
6488    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6489    ;;
6490  esac
6491  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6492fi
6493
6494case $host_os in
6495  darwin*)
6496    lock_old_archive_extraction=yes ;;
6497  *)
6498    lock_old_archive_extraction=no ;;
6499esac
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539# If no C compiler was specified, use CC.
6540LTCC=${LTCC-"$CC"}
6541
6542# If no C compiler flags were specified, use CFLAGS.
6543LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6544
6545# Allow CC to be a program name with arguments.
6546compiler=$CC
6547
6548
6549# Check for command to grab the raw symbol name followed by C symbol from nm.
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6551$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6552if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6553  $as_echo_n "(cached) " >&6
6554else
6555
6556# These are sane defaults that work on at least a few old systems.
6557# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6558
6559# Character class describing NM global symbol codes.
6560symcode='[BCDEGRST]'
6561
6562# Regexp to match symbols that can be accessed directly from C.
6563sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6564
6565# Define system-specific variables.
6566case $host_os in
6567aix*)
6568  symcode='[BCDT]'
6569  ;;
6570cygwin* | mingw* | pw32* | cegcc*)
6571  symcode='[ABCDGISTW]'
6572  ;;
6573hpux*)
6574  if test "$host_cpu" = ia64; then
6575    symcode='[ABCDEGRST]'
6576  fi
6577  ;;
6578irix* | nonstopux*)
6579  symcode='[BCDEGRST]'
6580  ;;
6581osf*)
6582  symcode='[BCDEGQRST]'
6583  ;;
6584solaris*)
6585  symcode='[BDRT]'
6586  ;;
6587sco3.2v5*)
6588  symcode='[DT]'
6589  ;;
6590sysv4.2uw2*)
6591  symcode='[DT]'
6592  ;;
6593sysv5* | sco5v6* | unixware* | OpenUNIX*)
6594  symcode='[ABDT]'
6595  ;;
6596sysv4)
6597  symcode='[DFNSTU]'
6598  ;;
6599esac
6600
6601# If we're using GNU nm, then use its standard symbol codes.
6602case `$NM -V 2>&1` in
6603*GNU* | *'with BFD'*)
6604  symcode='[ABCDGIRSTW]' ;;
6605esac
6606
6607# Transform an extracted symbol line into a proper C declaration.
6608# Some systems (esp. on ia64) link data and code symbols differently,
6609# so use this general approach.
6610lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6611
6612# Transform an extracted symbol line into symbol name and symbol address
6613lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6614lt_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'"
6615
6616# Handle CRLF in mingw tool chain
6617opt_cr=
6618case $build_os in
6619mingw*)
6620  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6621  ;;
6622esac
6623
6624# Try without a prefix underscore, then with it.
6625for ac_symprfx in "" "_"; do
6626
6627  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6628  symxfrm="\\1 $ac_symprfx\\2 \\2"
6629
6630  # Write the raw and C identifiers.
6631  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6632    # Fake it for dumpbin and say T for any non-static function
6633    # and D for any global variable.
6634    # Also find C++ and __fastcall symbols from MSVC++,
6635    # which start with @ or ?.
6636    lt_cv_sys_global_symbol_pipe="$AWK '"\
6637"     {last_section=section; section=\$ 3};"\
6638"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6639"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6640"     \$ 0!~/External *\|/{next};"\
6641"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6642"     {if(hide[section]) next};"\
6643"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6644"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6645"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6646"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6647"     ' prfx=^$ac_symprfx"
6648  else
6649    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6650  fi
6651  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6652
6653  # Check to see that the pipe works correctly.
6654  pipe_works=no
6655
6656  rm -f conftest*
6657  cat > conftest.$ac_ext <<_LT_EOF
6658#ifdef __cplusplus
6659extern "C" {
6660#endif
6661char nm_test_var;
6662void nm_test_func(void);
6663void nm_test_func(void){}
6664#ifdef __cplusplus
6665}
6666#endif
6667int main(){nm_test_var='a';nm_test_func();return(0);}
6668_LT_EOF
6669
6670  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6671  (eval $ac_compile) 2>&5
6672  ac_status=$?
6673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6674  test $ac_status = 0; }; then
6675    # Now try to grab the symbols.
6676    nlist=conftest.nm
6677    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6678  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6679  ac_status=$?
6680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681  test $ac_status = 0; } && test -s "$nlist"; then
6682      # Try sorting and uniquifying the output.
6683      if sort "$nlist" | uniq > "$nlist"T; then
6684	mv -f "$nlist"T "$nlist"
6685      else
6686	rm -f "$nlist"T
6687      fi
6688
6689      # Make sure that we snagged all the symbols we need.
6690      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6691	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6692	  cat <<_LT_EOF > conftest.$ac_ext
6693/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6694#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6695/* DATA imports from DLLs on WIN32 con't be const, because runtime
6696   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6697# define LT_DLSYM_CONST
6698#elif defined(__osf__)
6699/* This system does not cope well with relocations in const data.  */
6700# define LT_DLSYM_CONST
6701#else
6702# define LT_DLSYM_CONST const
6703#endif
6704
6705#ifdef __cplusplus
6706extern "C" {
6707#endif
6708
6709_LT_EOF
6710	  # Now generate the symbol file.
6711	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6712
6713	  cat <<_LT_EOF >> conftest.$ac_ext
6714
6715/* The mapping between symbol names and symbols.  */
6716LT_DLSYM_CONST struct {
6717  const char *name;
6718  void       *address;
6719}
6720lt__PROGRAM__LTX_preloaded_symbols[] =
6721{
6722  { "@PROGRAM@", (void *) 0 },
6723_LT_EOF
6724	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6725	  cat <<\_LT_EOF >> conftest.$ac_ext
6726  {0, (void *) 0}
6727};
6728
6729/* This works around a problem in FreeBSD linker */
6730#ifdef FREEBSD_WORKAROUND
6731static const void *lt_preloaded_setup() {
6732  return lt__PROGRAM__LTX_preloaded_symbols;
6733}
6734#endif
6735
6736#ifdef __cplusplus
6737}
6738#endif
6739_LT_EOF
6740	  # Now try linking the two files.
6741	  mv conftest.$ac_objext conftstm.$ac_objext
6742	  lt_globsym_save_LIBS=$LIBS
6743	  lt_globsym_save_CFLAGS=$CFLAGS
6744	  LIBS="conftstm.$ac_objext"
6745	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6746	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6747  (eval $ac_link) 2>&5
6748  ac_status=$?
6749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6750  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6751	    pipe_works=yes
6752	  fi
6753	  LIBS=$lt_globsym_save_LIBS
6754	  CFLAGS=$lt_globsym_save_CFLAGS
6755	else
6756	  echo "cannot find nm_test_func in $nlist" >&5
6757	fi
6758      else
6759	echo "cannot find nm_test_var in $nlist" >&5
6760      fi
6761    else
6762      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6763    fi
6764  else
6765    echo "$progname: failed program was:" >&5
6766    cat conftest.$ac_ext >&5
6767  fi
6768  rm -rf conftest* conftst*
6769
6770  # Do not use the global_symbol_pipe unless it works.
6771  if test "$pipe_works" = yes; then
6772    break
6773  else
6774    lt_cv_sys_global_symbol_pipe=
6775  fi
6776done
6777
6778fi
6779
6780if test -z "$lt_cv_sys_global_symbol_pipe"; then
6781  lt_cv_sys_global_symbol_to_cdecl=
6782fi
6783if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6785$as_echo "failed" >&6; }
6786else
6787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6788$as_echo "ok" >&6; }
6789fi
6790
6791# Response file support.
6792if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6793  nm_file_list_spec='@'
6794elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6795  nm_file_list_spec='@'
6796fi
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6825$as_echo_n "checking for sysroot... " >&6; }
6826
6827# Check whether --with-sysroot was given.
6828if test "${with_sysroot+set}" = set; then :
6829  withval=$with_sysroot;
6830else
6831  with_sysroot=no
6832fi
6833
6834
6835lt_sysroot=
6836case ${with_sysroot} in #(
6837 yes)
6838   if test "$GCC" = yes; then
6839     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6840   fi
6841   ;; #(
6842 /*)
6843   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6844   ;; #(
6845 no|'')
6846   ;; #(
6847 *)
6848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6849$as_echo "${with_sysroot}" >&6; }
6850   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6851   ;;
6852esac
6853
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6855$as_echo "${lt_sysroot:-no}" >&6; }
6856
6857
6858
6859
6860
6861# Check whether --enable-libtool-lock was given.
6862if test "${enable_libtool_lock+set}" = set; then :
6863  enableval=$enable_libtool_lock;
6864fi
6865
6866test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6867
6868# Some flags need to be propagated to the compiler or linker for good
6869# libtool support.
6870case $host in
6871ia64-*-hpux*)
6872  # Find out which ABI we are using.
6873  echo 'int i;' > conftest.$ac_ext
6874  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6875  (eval $ac_compile) 2>&5
6876  ac_status=$?
6877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6878  test $ac_status = 0; }; then
6879    case `/usr/bin/file conftest.$ac_objext` in
6880      *ELF-32*)
6881	HPUX_IA64_MODE="32"
6882	;;
6883      *ELF-64*)
6884	HPUX_IA64_MODE="64"
6885	;;
6886    esac
6887  fi
6888  rm -rf conftest*
6889  ;;
6890*-*-irix6*)
6891  # Find out which ABI we are using.
6892  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6893  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6894  (eval $ac_compile) 2>&5
6895  ac_status=$?
6896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6897  test $ac_status = 0; }; then
6898    if test "$lt_cv_prog_gnu_ld" = yes; then
6899      case `/usr/bin/file conftest.$ac_objext` in
6900	*32-bit*)
6901	  LD="${LD-ld} -melf32bsmip"
6902	  ;;
6903	*N32*)
6904	  LD="${LD-ld} -melf32bmipn32"
6905	  ;;
6906	*64-bit*)
6907	  LD="${LD-ld} -melf64bmip"
6908	;;
6909      esac
6910    else
6911      case `/usr/bin/file conftest.$ac_objext` in
6912	*32-bit*)
6913	  LD="${LD-ld} -32"
6914	  ;;
6915	*N32*)
6916	  LD="${LD-ld} -n32"
6917	  ;;
6918	*64-bit*)
6919	  LD="${LD-ld} -64"
6920	  ;;
6921      esac
6922    fi
6923  fi
6924  rm -rf conftest*
6925  ;;
6926
6927x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6928s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6929  # Find out which ABI we are using.
6930  echo 'int i;' > conftest.$ac_ext
6931  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6932  (eval $ac_compile) 2>&5
6933  ac_status=$?
6934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6935  test $ac_status = 0; }; then
6936    case `/usr/bin/file conftest.o` in
6937      *32-bit*)
6938	case $host in
6939	  x86_64-*kfreebsd*-gnu)
6940	    LD="${LD-ld} -m elf_i386_fbsd"
6941	    ;;
6942	  x86_64-*linux*)
6943	    LD="${LD-ld} -m elf_i386"
6944	    ;;
6945	  ppc64-*linux*|powerpc64-*linux*)
6946	    LD="${LD-ld} -m elf32ppclinux"
6947	    ;;
6948	  s390x-*linux*)
6949	    LD="${LD-ld} -m elf_s390"
6950	    ;;
6951	  sparc64-*linux*)
6952	    LD="${LD-ld} -m elf32_sparc"
6953	    ;;
6954	esac
6955	;;
6956      *64-bit*)
6957	case $host in
6958	  x86_64-*kfreebsd*-gnu)
6959	    LD="${LD-ld} -m elf_x86_64_fbsd"
6960	    ;;
6961	  x86_64-*linux*)
6962	    LD="${LD-ld} -m elf_x86_64"
6963	    ;;
6964	  ppc*-*linux*|powerpc*-*linux*)
6965	    LD="${LD-ld} -m elf64ppc"
6966	    ;;
6967	  s390*-*linux*|s390*-*tpf*)
6968	    LD="${LD-ld} -m elf64_s390"
6969	    ;;
6970	  sparc*-*linux*)
6971	    LD="${LD-ld} -m elf64_sparc"
6972	    ;;
6973	esac
6974	;;
6975    esac
6976  fi
6977  rm -rf conftest*
6978  ;;
6979
6980*-*-sco3.2v5*)
6981  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6982  SAVE_CFLAGS="$CFLAGS"
6983  CFLAGS="$CFLAGS -belf"
6984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6985$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6986if ${lt_cv_cc_needs_belf+:} false; then :
6987  $as_echo_n "(cached) " >&6
6988else
6989  ac_ext=c
6990ac_cpp='$CPP $CPPFLAGS'
6991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6993ac_compiler_gnu=$ac_cv_c_compiler_gnu
6994
6995     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996/* end confdefs.h.  */
6997
6998int
6999main ()
7000{
7001
7002  ;
7003  return 0;
7004}
7005_ACEOF
7006if ac_fn_c_try_link "$LINENO"; then :
7007  lt_cv_cc_needs_belf=yes
7008else
7009  lt_cv_cc_needs_belf=no
7010fi
7011rm -f core conftest.err conftest.$ac_objext \
7012    conftest$ac_exeext conftest.$ac_ext
7013     ac_ext=c
7014ac_cpp='$CPP $CPPFLAGS'
7015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7017ac_compiler_gnu=$ac_cv_c_compiler_gnu
7018
7019fi
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7021$as_echo "$lt_cv_cc_needs_belf" >&6; }
7022  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7023    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7024    CFLAGS="$SAVE_CFLAGS"
7025  fi
7026  ;;
7027*-*solaris*)
7028  # Find out which ABI we are using.
7029  echo 'int i;' > conftest.$ac_ext
7030  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7031  (eval $ac_compile) 2>&5
7032  ac_status=$?
7033  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7034  test $ac_status = 0; }; then
7035    case `/usr/bin/file conftest.o` in
7036    *64-bit*)
7037      case $lt_cv_prog_gnu_ld in
7038      yes*)
7039        case $host in
7040        i?86-*-solaris*)
7041          LD="${LD-ld} -m elf_x86_64"
7042          ;;
7043        sparc*-*-solaris*)
7044          LD="${LD-ld} -m elf64_sparc"
7045          ;;
7046        esac
7047        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7048        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7049          LD="${LD-ld}_sol2"
7050        fi
7051        ;;
7052      *)
7053	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7054	  LD="${LD-ld} -64"
7055	fi
7056	;;
7057      esac
7058      ;;
7059    esac
7060  fi
7061  rm -rf conftest*
7062  ;;
7063esac
7064
7065need_locks="$enable_libtool_lock"
7066
7067if test -n "$ac_tool_prefix"; then
7068  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7069set dummy ${ac_tool_prefix}mt; ac_word=$2
7070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071$as_echo_n "checking for $ac_word... " >&6; }
7072if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7073  $as_echo_n "(cached) " >&6
7074else
7075  if test -n "$MANIFEST_TOOL"; then
7076  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7077else
7078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079for as_dir in $PATH
7080do
7081  IFS=$as_save_IFS
7082  test -z "$as_dir" && as_dir=.
7083    for ac_exec_ext in '' $ac_executable_extensions; do
7084  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7085    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087    break 2
7088  fi
7089done
7090  done
7091IFS=$as_save_IFS
7092
7093fi
7094fi
7095MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7096if test -n "$MANIFEST_TOOL"; then
7097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7098$as_echo "$MANIFEST_TOOL" >&6; }
7099else
7100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101$as_echo "no" >&6; }
7102fi
7103
7104
7105fi
7106if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7107  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7108  # Extract the first word of "mt", so it can be a program name with args.
7109set dummy mt; ac_word=$2
7110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111$as_echo_n "checking for $ac_word... " >&6; }
7112if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7113  $as_echo_n "(cached) " >&6
7114else
7115  if test -n "$ac_ct_MANIFEST_TOOL"; then
7116  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7117else
7118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119for as_dir in $PATH
7120do
7121  IFS=$as_save_IFS
7122  test -z "$as_dir" && as_dir=.
7123    for ac_exec_ext in '' $ac_executable_extensions; do
7124  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7125    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127    break 2
7128  fi
7129done
7130  done
7131IFS=$as_save_IFS
7132
7133fi
7134fi
7135ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7136if test -n "$ac_ct_MANIFEST_TOOL"; then
7137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7138$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7139else
7140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141$as_echo "no" >&6; }
7142fi
7143
7144  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7145    MANIFEST_TOOL=":"
7146  else
7147    case $cross_compiling:$ac_tool_warned in
7148yes:)
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7151ac_tool_warned=yes ;;
7152esac
7153    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7154  fi
7155else
7156  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7157fi
7158
7159test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7161$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7162if ${lt_cv_path_mainfest_tool+:} false; then :
7163  $as_echo_n "(cached) " >&6
7164else
7165  lt_cv_path_mainfest_tool=no
7166  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7167  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7168  cat conftest.err >&5
7169  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7170    lt_cv_path_mainfest_tool=yes
7171  fi
7172  rm -f conftest*
7173fi
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7175$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7176if test "x$lt_cv_path_mainfest_tool" != xyes; then
7177  MANIFEST_TOOL=:
7178fi
7179
7180
7181
7182
7183
7184
7185  case $host_os in
7186    rhapsody* | darwin*)
7187    if test -n "$ac_tool_prefix"; then
7188  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7189set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191$as_echo_n "checking for $ac_word... " >&6; }
7192if ${ac_cv_prog_DSYMUTIL+:} false; then :
7193  $as_echo_n "(cached) " >&6
7194else
7195  if test -n "$DSYMUTIL"; then
7196  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7197else
7198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199for as_dir in $PATH
7200do
7201  IFS=$as_save_IFS
7202  test -z "$as_dir" && as_dir=.
7203    for ac_exec_ext in '' $ac_executable_extensions; do
7204  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7205    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207    break 2
7208  fi
7209done
7210  done
7211IFS=$as_save_IFS
7212
7213fi
7214fi
7215DSYMUTIL=$ac_cv_prog_DSYMUTIL
7216if test -n "$DSYMUTIL"; then
7217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7218$as_echo "$DSYMUTIL" >&6; }
7219else
7220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221$as_echo "no" >&6; }
7222fi
7223
7224
7225fi
7226if test -z "$ac_cv_prog_DSYMUTIL"; then
7227  ac_ct_DSYMUTIL=$DSYMUTIL
7228  # Extract the first word of "dsymutil", so it can be a program name with args.
7229set dummy dsymutil; ac_word=$2
7230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231$as_echo_n "checking for $ac_word... " >&6; }
7232if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7233  $as_echo_n "(cached) " >&6
7234else
7235  if test -n "$ac_ct_DSYMUTIL"; then
7236  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7237else
7238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239for as_dir in $PATH
7240do
7241  IFS=$as_save_IFS
7242  test -z "$as_dir" && as_dir=.
7243    for ac_exec_ext in '' $ac_executable_extensions; do
7244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247    break 2
7248  fi
7249done
7250  done
7251IFS=$as_save_IFS
7252
7253fi
7254fi
7255ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7256if test -n "$ac_ct_DSYMUTIL"; then
7257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7258$as_echo "$ac_ct_DSYMUTIL" >&6; }
7259else
7260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261$as_echo "no" >&6; }
7262fi
7263
7264  if test "x$ac_ct_DSYMUTIL" = x; then
7265    DSYMUTIL=":"
7266  else
7267    case $cross_compiling:$ac_tool_warned in
7268yes:)
7269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7271ac_tool_warned=yes ;;
7272esac
7273    DSYMUTIL=$ac_ct_DSYMUTIL
7274  fi
7275else
7276  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7277fi
7278
7279    if test -n "$ac_tool_prefix"; then
7280  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7281set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283$as_echo_n "checking for $ac_word... " >&6; }
7284if ${ac_cv_prog_NMEDIT+:} false; then :
7285  $as_echo_n "(cached) " >&6
7286else
7287  if test -n "$NMEDIT"; then
7288  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7289else
7290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291for as_dir in $PATH
7292do
7293  IFS=$as_save_IFS
7294  test -z "$as_dir" && as_dir=.
7295    for ac_exec_ext in '' $ac_executable_extensions; do
7296  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299    break 2
7300  fi
7301done
7302  done
7303IFS=$as_save_IFS
7304
7305fi
7306fi
7307NMEDIT=$ac_cv_prog_NMEDIT
7308if test -n "$NMEDIT"; then
7309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7310$as_echo "$NMEDIT" >&6; }
7311else
7312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313$as_echo "no" >&6; }
7314fi
7315
7316
7317fi
7318if test -z "$ac_cv_prog_NMEDIT"; then
7319  ac_ct_NMEDIT=$NMEDIT
7320  # Extract the first word of "nmedit", so it can be a program name with args.
7321set dummy nmedit; ac_word=$2
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7323$as_echo_n "checking for $ac_word... " >&6; }
7324if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7325  $as_echo_n "(cached) " >&6
7326else
7327  if test -n "$ac_ct_NMEDIT"; then
7328  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7329else
7330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH
7332do
7333  IFS=$as_save_IFS
7334  test -z "$as_dir" && as_dir=.
7335    for ac_exec_ext in '' $ac_executable_extensions; do
7336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339    break 2
7340  fi
7341done
7342  done
7343IFS=$as_save_IFS
7344
7345fi
7346fi
7347ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7348if test -n "$ac_ct_NMEDIT"; then
7349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7350$as_echo "$ac_ct_NMEDIT" >&6; }
7351else
7352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353$as_echo "no" >&6; }
7354fi
7355
7356  if test "x$ac_ct_NMEDIT" = x; then
7357    NMEDIT=":"
7358  else
7359    case $cross_compiling:$ac_tool_warned in
7360yes:)
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7363ac_tool_warned=yes ;;
7364esac
7365    NMEDIT=$ac_ct_NMEDIT
7366  fi
7367else
7368  NMEDIT="$ac_cv_prog_NMEDIT"
7369fi
7370
7371    if test -n "$ac_tool_prefix"; then
7372  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7373set dummy ${ac_tool_prefix}lipo; ac_word=$2
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375$as_echo_n "checking for $ac_word... " >&6; }
7376if ${ac_cv_prog_LIPO+:} false; then :
7377  $as_echo_n "(cached) " >&6
7378else
7379  if test -n "$LIPO"; then
7380  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7381else
7382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH
7384do
7385  IFS=$as_save_IFS
7386  test -z "$as_dir" && as_dir=.
7387    for ac_exec_ext in '' $ac_executable_extensions; do
7388  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391    break 2
7392  fi
7393done
7394  done
7395IFS=$as_save_IFS
7396
7397fi
7398fi
7399LIPO=$ac_cv_prog_LIPO
7400if test -n "$LIPO"; then
7401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7402$as_echo "$LIPO" >&6; }
7403else
7404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405$as_echo "no" >&6; }
7406fi
7407
7408
7409fi
7410if test -z "$ac_cv_prog_LIPO"; then
7411  ac_ct_LIPO=$LIPO
7412  # Extract the first word of "lipo", so it can be a program name with args.
7413set dummy lipo; ac_word=$2
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7415$as_echo_n "checking for $ac_word... " >&6; }
7416if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7417  $as_echo_n "(cached) " >&6
7418else
7419  if test -n "$ac_ct_LIPO"; then
7420  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7421else
7422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423for as_dir in $PATH
7424do
7425  IFS=$as_save_IFS
7426  test -z "$as_dir" && as_dir=.
7427    for ac_exec_ext in '' $ac_executable_extensions; do
7428  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429    ac_cv_prog_ac_ct_LIPO="lipo"
7430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431    break 2
7432  fi
7433done
7434  done
7435IFS=$as_save_IFS
7436
7437fi
7438fi
7439ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7440if test -n "$ac_ct_LIPO"; then
7441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7442$as_echo "$ac_ct_LIPO" >&6; }
7443else
7444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445$as_echo "no" >&6; }
7446fi
7447
7448  if test "x$ac_ct_LIPO" = x; then
7449    LIPO=":"
7450  else
7451    case $cross_compiling:$ac_tool_warned in
7452yes:)
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7455ac_tool_warned=yes ;;
7456esac
7457    LIPO=$ac_ct_LIPO
7458  fi
7459else
7460  LIPO="$ac_cv_prog_LIPO"
7461fi
7462
7463    if test -n "$ac_tool_prefix"; then
7464  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7465set dummy ${ac_tool_prefix}otool; ac_word=$2
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467$as_echo_n "checking for $ac_word... " >&6; }
7468if ${ac_cv_prog_OTOOL+:} false; then :
7469  $as_echo_n "(cached) " >&6
7470else
7471  if test -n "$OTOOL"; then
7472  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7473else
7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477  IFS=$as_save_IFS
7478  test -z "$as_dir" && as_dir=.
7479    for ac_exec_ext in '' $ac_executable_extensions; do
7480  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7481    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483    break 2
7484  fi
7485done
7486  done
7487IFS=$as_save_IFS
7488
7489fi
7490fi
7491OTOOL=$ac_cv_prog_OTOOL
7492if test -n "$OTOOL"; then
7493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7494$as_echo "$OTOOL" >&6; }
7495else
7496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497$as_echo "no" >&6; }
7498fi
7499
7500
7501fi
7502if test -z "$ac_cv_prog_OTOOL"; then
7503  ac_ct_OTOOL=$OTOOL
7504  # Extract the first word of "otool", so it can be a program name with args.
7505set dummy otool; ac_word=$2
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507$as_echo_n "checking for $ac_word... " >&6; }
7508if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7509  $as_echo_n "(cached) " >&6
7510else
7511  if test -n "$ac_ct_OTOOL"; then
7512  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7513else
7514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515for as_dir in $PATH
7516do
7517  IFS=$as_save_IFS
7518  test -z "$as_dir" && as_dir=.
7519    for ac_exec_ext in '' $ac_executable_extensions; do
7520  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7521    ac_cv_prog_ac_ct_OTOOL="otool"
7522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523    break 2
7524  fi
7525done
7526  done
7527IFS=$as_save_IFS
7528
7529fi
7530fi
7531ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7532if test -n "$ac_ct_OTOOL"; then
7533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7534$as_echo "$ac_ct_OTOOL" >&6; }
7535else
7536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537$as_echo "no" >&6; }
7538fi
7539
7540  if test "x$ac_ct_OTOOL" = x; then
7541    OTOOL=":"
7542  else
7543    case $cross_compiling:$ac_tool_warned in
7544yes:)
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7547ac_tool_warned=yes ;;
7548esac
7549    OTOOL=$ac_ct_OTOOL
7550  fi
7551else
7552  OTOOL="$ac_cv_prog_OTOOL"
7553fi
7554
7555    if test -n "$ac_tool_prefix"; then
7556  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7557set dummy ${ac_tool_prefix}otool64; ac_word=$2
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559$as_echo_n "checking for $ac_word... " >&6; }
7560if ${ac_cv_prog_OTOOL64+:} false; then :
7561  $as_echo_n "(cached) " >&6
7562else
7563  if test -n "$OTOOL64"; then
7564  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7565else
7566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567for as_dir in $PATH
7568do
7569  IFS=$as_save_IFS
7570  test -z "$as_dir" && as_dir=.
7571    for ac_exec_ext in '' $ac_executable_extensions; do
7572  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7573    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575    break 2
7576  fi
7577done
7578  done
7579IFS=$as_save_IFS
7580
7581fi
7582fi
7583OTOOL64=$ac_cv_prog_OTOOL64
7584if test -n "$OTOOL64"; then
7585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7586$as_echo "$OTOOL64" >&6; }
7587else
7588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589$as_echo "no" >&6; }
7590fi
7591
7592
7593fi
7594if test -z "$ac_cv_prog_OTOOL64"; then
7595  ac_ct_OTOOL64=$OTOOL64
7596  # Extract the first word of "otool64", so it can be a program name with args.
7597set dummy otool64; ac_word=$2
7598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599$as_echo_n "checking for $ac_word... " >&6; }
7600if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7601  $as_echo_n "(cached) " >&6
7602else
7603  if test -n "$ac_ct_OTOOL64"; then
7604  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7605else
7606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607for as_dir in $PATH
7608do
7609  IFS=$as_save_IFS
7610  test -z "$as_dir" && as_dir=.
7611    for ac_exec_ext in '' $ac_executable_extensions; do
7612  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613    ac_cv_prog_ac_ct_OTOOL64="otool64"
7614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615    break 2
7616  fi
7617done
7618  done
7619IFS=$as_save_IFS
7620
7621fi
7622fi
7623ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7624if test -n "$ac_ct_OTOOL64"; then
7625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7626$as_echo "$ac_ct_OTOOL64" >&6; }
7627else
7628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629$as_echo "no" >&6; }
7630fi
7631
7632  if test "x$ac_ct_OTOOL64" = x; then
7633    OTOOL64=":"
7634  else
7635    case $cross_compiling:$ac_tool_warned in
7636yes:)
7637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7639ac_tool_warned=yes ;;
7640esac
7641    OTOOL64=$ac_ct_OTOOL64
7642  fi
7643else
7644  OTOOL64="$ac_cv_prog_OTOOL64"
7645fi
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7674$as_echo_n "checking for -single_module linker flag... " >&6; }
7675if ${lt_cv_apple_cc_single_mod+:} false; then :
7676  $as_echo_n "(cached) " >&6
7677else
7678  lt_cv_apple_cc_single_mod=no
7679      if test -z "${LT_MULTI_MODULE}"; then
7680	# By default we will add the -single_module flag. You can override
7681	# by either setting the environment variable LT_MULTI_MODULE
7682	# non-empty at configure time, or by adding -multi_module to the
7683	# link flags.
7684	rm -rf libconftest.dylib*
7685	echo "int foo(void){return 1;}" > conftest.c
7686	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7687-dynamiclib -Wl,-single_module conftest.c" >&5
7688	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7689	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7690        _lt_result=$?
7691	# If there is a non-empty error log, and "single_module"
7692	# appears in it, assume the flag caused a linker warning
7693        if test -s conftest.err && $GREP single_module conftest.err; then
7694	  cat conftest.err >&5
7695	# Otherwise, if the output was created with a 0 exit code from
7696	# the compiler, it worked.
7697	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7698	  lt_cv_apple_cc_single_mod=yes
7699	else
7700	  cat conftest.err >&5
7701	fi
7702	rm -rf libconftest.dylib*
7703	rm -f conftest.*
7704      fi
7705fi
7706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7707$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7708
7709    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7710$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7711if ${lt_cv_ld_exported_symbols_list+:} false; then :
7712  $as_echo_n "(cached) " >&6
7713else
7714  lt_cv_ld_exported_symbols_list=no
7715      save_LDFLAGS=$LDFLAGS
7716      echo "_main" > conftest.sym
7717      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7718      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719/* end confdefs.h.  */
7720
7721int
7722main ()
7723{
7724
7725  ;
7726  return 0;
7727}
7728_ACEOF
7729if ac_fn_c_try_link "$LINENO"; then :
7730  lt_cv_ld_exported_symbols_list=yes
7731else
7732  lt_cv_ld_exported_symbols_list=no
7733fi
7734rm -f core conftest.err conftest.$ac_objext \
7735    conftest$ac_exeext conftest.$ac_ext
7736	LDFLAGS="$save_LDFLAGS"
7737
7738fi
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7740$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7741
7742    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7743$as_echo_n "checking for -force_load linker flag... " >&6; }
7744if ${lt_cv_ld_force_load+:} false; then :
7745  $as_echo_n "(cached) " >&6
7746else
7747  lt_cv_ld_force_load=no
7748      cat > conftest.c << _LT_EOF
7749int forced_loaded() { return 2;}
7750_LT_EOF
7751      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7752      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7753      echo "$AR cru libconftest.a conftest.o" >&5
7754      $AR cru libconftest.a conftest.o 2>&5
7755      echo "$RANLIB libconftest.a" >&5
7756      $RANLIB libconftest.a 2>&5
7757      cat > conftest.c << _LT_EOF
7758int main() { return 0;}
7759_LT_EOF
7760      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7761      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7762      _lt_result=$?
7763      if test -s conftest.err && $GREP force_load conftest.err; then
7764	cat conftest.err >&5
7765      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7766	lt_cv_ld_force_load=yes
7767      else
7768	cat conftest.err >&5
7769      fi
7770        rm -f conftest.err libconftest.a conftest conftest.c
7771        rm -rf conftest.dSYM
7772
7773fi
7774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7775$as_echo "$lt_cv_ld_force_load" >&6; }
7776    case $host_os in
7777    rhapsody* | darwin1.[012])
7778      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7779    darwin1.*)
7780      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7781    darwin*) # darwin 5.x on
7782      # if running on 10.5 or later, the deployment target defaults
7783      # to the OS version, if on x86, and 10.4, the deployment
7784      # target defaults to 10.4. Don't you love it?
7785      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7786	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7787	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7788	10.[012]*)
7789	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7790	10.*)
7791	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7792      esac
7793    ;;
7794  esac
7795    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7796      _lt_dar_single_mod='$single_module'
7797    fi
7798    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7799      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7800    else
7801      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7802    fi
7803    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7804      _lt_dsymutil='~$DSYMUTIL $lib || :'
7805    else
7806      _lt_dsymutil=
7807    fi
7808    ;;
7809  esac
7810
7811for ac_header in dlfcn.h
7812do :
7813  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7814"
7815if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7816  cat >>confdefs.h <<_ACEOF
7817#define HAVE_DLFCN_H 1
7818_ACEOF
7819
7820fi
7821
7822done
7823
7824
7825
7826
7827
7828# Set options
7829
7830
7831
7832        enable_dlopen=no
7833
7834
7835  enable_win32_dll=no
7836
7837
7838            # Check whether --enable-shared was given.
7839if test "${enable_shared+set}" = set; then :
7840  enableval=$enable_shared; p=${PACKAGE-default}
7841    case $enableval in
7842    yes) enable_shared=yes ;;
7843    no) enable_shared=no ;;
7844    *)
7845      enable_shared=no
7846      # Look at the argument we got.  We use all the common list separators.
7847      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7848      for pkg in $enableval; do
7849	IFS="$lt_save_ifs"
7850	if test "X$pkg" = "X$p"; then
7851	  enable_shared=yes
7852	fi
7853      done
7854      IFS="$lt_save_ifs"
7855      ;;
7856    esac
7857else
7858  enable_shared=yes
7859fi
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869  # Check whether --enable-static was given.
7870if test "${enable_static+set}" = set; then :
7871  enableval=$enable_static; p=${PACKAGE-default}
7872    case $enableval in
7873    yes) enable_static=yes ;;
7874    no) enable_static=no ;;
7875    *)
7876     enable_static=no
7877      # Look at the argument we got.  We use all the common list separators.
7878      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7879      for pkg in $enableval; do
7880	IFS="$lt_save_ifs"
7881	if test "X$pkg" = "X$p"; then
7882	  enable_static=yes
7883	fi
7884      done
7885      IFS="$lt_save_ifs"
7886      ;;
7887    esac
7888else
7889  enable_static=yes
7890fi
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901# Check whether --with-pic was given.
7902if test "${with_pic+set}" = set; then :
7903  withval=$with_pic; lt_p=${PACKAGE-default}
7904    case $withval in
7905    yes|no) pic_mode=$withval ;;
7906    *)
7907      pic_mode=default
7908      # Look at the argument we got.  We use all the common list separators.
7909      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7910      for lt_pkg in $withval; do
7911	IFS="$lt_save_ifs"
7912	if test "X$lt_pkg" = "X$lt_p"; then
7913	  pic_mode=yes
7914	fi
7915      done
7916      IFS="$lt_save_ifs"
7917      ;;
7918    esac
7919else
7920  pic_mode=default
7921fi
7922
7923
7924test -z "$pic_mode" && pic_mode=default
7925
7926
7927
7928
7929
7930
7931
7932  # Check whether --enable-fast-install was given.
7933if test "${enable_fast_install+set}" = set; then :
7934  enableval=$enable_fast_install; p=${PACKAGE-default}
7935    case $enableval in
7936    yes) enable_fast_install=yes ;;
7937    no) enable_fast_install=no ;;
7938    *)
7939      enable_fast_install=no
7940      # Look at the argument we got.  We use all the common list separators.
7941      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7942      for pkg in $enableval; do
7943	IFS="$lt_save_ifs"
7944	if test "X$pkg" = "X$p"; then
7945	  enable_fast_install=yes
7946	fi
7947      done
7948      IFS="$lt_save_ifs"
7949      ;;
7950    esac
7951else
7952  enable_fast_install=yes
7953fi
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965# This can be used to rebuild libtool when needed
7966LIBTOOL_DEPS="$ltmain"
7967
7968# Always use our own libtool.
7969LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000test -z "$LN_S" && LN_S="ln -s"
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015if test -n "${ZSH_VERSION+set}" ; then
8016   setopt NO_GLOB_SUBST
8017fi
8018
8019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8020$as_echo_n "checking for objdir... " >&6; }
8021if ${lt_cv_objdir+:} false; then :
8022  $as_echo_n "(cached) " >&6
8023else
8024  rm -f .libs 2>/dev/null
8025mkdir .libs 2>/dev/null
8026if test -d .libs; then
8027  lt_cv_objdir=.libs
8028else
8029  # MS-DOS does not allow filenames that begin with a dot.
8030  lt_cv_objdir=_libs
8031fi
8032rmdir .libs 2>/dev/null
8033fi
8034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8035$as_echo "$lt_cv_objdir" >&6; }
8036objdir=$lt_cv_objdir
8037
8038
8039
8040
8041
8042cat >>confdefs.h <<_ACEOF
8043#define LT_OBJDIR "$lt_cv_objdir/"
8044_ACEOF
8045
8046
8047
8048
8049case $host_os in
8050aix3*)
8051  # AIX sometimes has problems with the GCC collect2 program.  For some
8052  # reason, if we set the COLLECT_NAMES environment variable, the problems
8053  # vanish in a puff of smoke.
8054  if test "X${COLLECT_NAMES+set}" != Xset; then
8055    COLLECT_NAMES=
8056    export COLLECT_NAMES
8057  fi
8058  ;;
8059esac
8060
8061# Global variables:
8062ofile=libtool
8063can_build_shared=yes
8064
8065# All known linkers require a `.a' archive for static linking (except MSVC,
8066# which needs '.lib').
8067libext=a
8068
8069with_gnu_ld="$lt_cv_prog_gnu_ld"
8070
8071old_CC="$CC"
8072old_CFLAGS="$CFLAGS"
8073
8074# Set sane defaults for various variables
8075test -z "$CC" && CC=cc
8076test -z "$LTCC" && LTCC=$CC
8077test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8078test -z "$LD" && LD=ld
8079test -z "$ac_objext" && ac_objext=o
8080
8081for cc_temp in $compiler""; do
8082  case $cc_temp in
8083    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8084    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8085    \-*) ;;
8086    *) break;;
8087  esac
8088done
8089cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8090
8091
8092# Only perform the check for file, if the check method requires it
8093test -z "$MAGIC_CMD" && MAGIC_CMD=file
8094case $deplibs_check_method in
8095file_magic*)
8096  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8097    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8098$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8099if ${lt_cv_path_MAGIC_CMD+:} false; then :
8100  $as_echo_n "(cached) " >&6
8101else
8102  case $MAGIC_CMD in
8103[\\/*] |  ?:[\\/]*)
8104  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8105  ;;
8106*)
8107  lt_save_MAGIC_CMD="$MAGIC_CMD"
8108  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8109  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8110  for ac_dir in $ac_dummy; do
8111    IFS="$lt_save_ifs"
8112    test -z "$ac_dir" && ac_dir=.
8113    if test -f $ac_dir/${ac_tool_prefix}file; then
8114      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8115      if test -n "$file_magic_test_file"; then
8116	case $deplibs_check_method in
8117	"file_magic "*)
8118	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8119	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8120	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8121	    $EGREP "$file_magic_regex" > /dev/null; then
8122	    :
8123	  else
8124	    cat <<_LT_EOF 1>&2
8125
8126*** Warning: the command libtool uses to detect shared libraries,
8127*** $file_magic_cmd, produces output that libtool cannot recognize.
8128*** The result is that libtool may fail to recognize shared libraries
8129*** as such.  This will affect the creation of libtool libraries that
8130*** depend on shared libraries, but programs linked with such libtool
8131*** libraries will work regardless of this problem.  Nevertheless, you
8132*** may want to report the problem to your system manager and/or to
8133*** bug-libtool@gnu.org
8134
8135_LT_EOF
8136	  fi ;;
8137	esac
8138      fi
8139      break
8140    fi
8141  done
8142  IFS="$lt_save_ifs"
8143  MAGIC_CMD="$lt_save_MAGIC_CMD"
8144  ;;
8145esac
8146fi
8147
8148MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8149if test -n "$MAGIC_CMD"; then
8150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8151$as_echo "$MAGIC_CMD" >&6; }
8152else
8153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154$as_echo "no" >&6; }
8155fi
8156
8157
8158
8159
8160
8161if test -z "$lt_cv_path_MAGIC_CMD"; then
8162  if test -n "$ac_tool_prefix"; then
8163    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8164$as_echo_n "checking for file... " >&6; }
8165if ${lt_cv_path_MAGIC_CMD+:} false; then :
8166  $as_echo_n "(cached) " >&6
8167else
8168  case $MAGIC_CMD in
8169[\\/*] |  ?:[\\/]*)
8170  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8171  ;;
8172*)
8173  lt_save_MAGIC_CMD="$MAGIC_CMD"
8174  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8175  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8176  for ac_dir in $ac_dummy; do
8177    IFS="$lt_save_ifs"
8178    test -z "$ac_dir" && ac_dir=.
8179    if test -f $ac_dir/file; then
8180      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8181      if test -n "$file_magic_test_file"; then
8182	case $deplibs_check_method in
8183	"file_magic "*)
8184	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8185	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8186	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8187	    $EGREP "$file_magic_regex" > /dev/null; then
8188	    :
8189	  else
8190	    cat <<_LT_EOF 1>&2
8191
8192*** Warning: the command libtool uses to detect shared libraries,
8193*** $file_magic_cmd, produces output that libtool cannot recognize.
8194*** The result is that libtool may fail to recognize shared libraries
8195*** as such.  This will affect the creation of libtool libraries that
8196*** depend on shared libraries, but programs linked with such libtool
8197*** libraries will work regardless of this problem.  Nevertheless, you
8198*** may want to report the problem to your system manager and/or to
8199*** bug-libtool@gnu.org
8200
8201_LT_EOF
8202	  fi ;;
8203	esac
8204      fi
8205      break
8206    fi
8207  done
8208  IFS="$lt_save_ifs"
8209  MAGIC_CMD="$lt_save_MAGIC_CMD"
8210  ;;
8211esac
8212fi
8213
8214MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8215if test -n "$MAGIC_CMD"; then
8216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8217$as_echo "$MAGIC_CMD" >&6; }
8218else
8219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220$as_echo "no" >&6; }
8221fi
8222
8223
8224  else
8225    MAGIC_CMD=:
8226  fi
8227fi
8228
8229  fi
8230  ;;
8231esac
8232
8233# Use C for the default configuration in the libtool script
8234
8235lt_save_CC="$CC"
8236ac_ext=c
8237ac_cpp='$CPP $CPPFLAGS'
8238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8240ac_compiler_gnu=$ac_cv_c_compiler_gnu
8241
8242
8243# Source file extension for C test sources.
8244ac_ext=c
8245
8246# Object file extension for compiled C test sources.
8247objext=o
8248objext=$objext
8249
8250# Code to be used in simple compile tests
8251lt_simple_compile_test_code="int some_variable = 0;"
8252
8253# Code to be used in simple link tests
8254lt_simple_link_test_code='int main(){return(0);}'
8255
8256
8257
8258
8259
8260
8261
8262# If no C compiler was specified, use CC.
8263LTCC=${LTCC-"$CC"}
8264
8265# If no C compiler flags were specified, use CFLAGS.
8266LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8267
8268# Allow CC to be a program name with arguments.
8269compiler=$CC
8270
8271# Save the default compiler, since it gets overwritten when the other
8272# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8273compiler_DEFAULT=$CC
8274
8275# save warnings/boilerplate of simple test code
8276ac_outfile=conftest.$ac_objext
8277echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8278eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8279_lt_compiler_boilerplate=`cat conftest.err`
8280$RM conftest*
8281
8282ac_outfile=conftest.$ac_objext
8283echo "$lt_simple_link_test_code" >conftest.$ac_ext
8284eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8285_lt_linker_boilerplate=`cat conftest.err`
8286$RM -r conftest*
8287
8288
8289if test -n "$compiler"; then
8290
8291lt_prog_compiler_no_builtin_flag=
8292
8293if test "$GCC" = yes; then
8294  case $cc_basename in
8295  nvcc*)
8296    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8297  *)
8298    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8299  esac
8300
8301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8302$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8303if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8304  $as_echo_n "(cached) " >&6
8305else
8306  lt_cv_prog_compiler_rtti_exceptions=no
8307   ac_outfile=conftest.$ac_objext
8308   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8309   lt_compiler_flag="-fno-rtti -fno-exceptions"
8310   # Insert the option either (1) after the last *FLAGS variable, or
8311   # (2) before a word containing "conftest.", or (3) at the end.
8312   # Note that $ac_compile itself does not contain backslashes and begins
8313   # with a dollar sign (not a hyphen), so the echo should work correctly.
8314   # The option is referenced via a variable to avoid confusing sed.
8315   lt_compile=`echo "$ac_compile" | $SED \
8316   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8317   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8318   -e 's:$: $lt_compiler_flag:'`
8319   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8320   (eval "$lt_compile" 2>conftest.err)
8321   ac_status=$?
8322   cat conftest.err >&5
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   if (exit $ac_status) && test -s "$ac_outfile"; then
8325     # The compiler can only warn and ignore the option if not recognized
8326     # So say no if there are warnings other than the usual output.
8327     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8328     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8329     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8330       lt_cv_prog_compiler_rtti_exceptions=yes
8331     fi
8332   fi
8333   $RM conftest*
8334
8335fi
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8337$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8338
8339if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8340    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8341else
8342    :
8343fi
8344
8345fi
8346
8347
8348
8349
8350
8351
8352  lt_prog_compiler_wl=
8353lt_prog_compiler_pic=
8354lt_prog_compiler_static=
8355
8356
8357  if test "$GCC" = yes; then
8358    lt_prog_compiler_wl='-Wl,'
8359    lt_prog_compiler_static='-static'
8360
8361    case $host_os in
8362      aix*)
8363      # All AIX code is PIC.
8364      if test "$host_cpu" = ia64; then
8365	# AIX 5 now supports IA64 processor
8366	lt_prog_compiler_static='-Bstatic'
8367      fi
8368      ;;
8369
8370    amigaos*)
8371      case $host_cpu in
8372      powerpc)
8373            # see comment about AmigaOS4 .so support
8374            lt_prog_compiler_pic='-fPIC'
8375        ;;
8376      m68k)
8377            # FIXME: we need at least 68020 code to build shared libraries, but
8378            # adding the `-m68020' flag to GCC prevents building anything better,
8379            # like `-m68040'.
8380            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8381        ;;
8382      esac
8383      ;;
8384
8385    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8386      # PIC is the default for these OSes.
8387      ;;
8388
8389    mingw* | cygwin* | pw32* | os2* | cegcc*)
8390      # This hack is so that the source file can tell whether it is being
8391      # built for inclusion in a dll (and should export symbols for example).
8392      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8393      # (--disable-auto-import) libraries
8394      lt_prog_compiler_pic='-DDLL_EXPORT'
8395      ;;
8396
8397    darwin* | rhapsody*)
8398      # PIC is the default on this platform
8399      # Common symbols not allowed in MH_DYLIB files
8400      lt_prog_compiler_pic='-fno-common'
8401      ;;
8402
8403    haiku*)
8404      # PIC is the default for Haiku.
8405      # The "-static" flag exists, but is broken.
8406      lt_prog_compiler_static=
8407      ;;
8408
8409    hpux*)
8410      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8411      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8412      # sets the default TLS model and affects inlining.
8413      case $host_cpu in
8414      hppa*64*)
8415	# +Z the default
8416	;;
8417      *)
8418	lt_prog_compiler_pic='-fPIC'
8419	;;
8420      esac
8421      ;;
8422
8423    interix[3-9]*)
8424      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8425      # Instead, we relocate shared libraries at runtime.
8426      ;;
8427
8428    msdosdjgpp*)
8429      # Just because we use GCC doesn't mean we suddenly get shared libraries
8430      # on systems that don't support them.
8431      lt_prog_compiler_can_build_shared=no
8432      enable_shared=no
8433      ;;
8434
8435    *nto* | *qnx*)
8436      # QNX uses GNU C++, but need to define -shared option too, otherwise
8437      # it will coredump.
8438      lt_prog_compiler_pic='-fPIC -shared'
8439      ;;
8440
8441    sysv4*MP*)
8442      if test -d /usr/nec; then
8443	lt_prog_compiler_pic=-Kconform_pic
8444      fi
8445      ;;
8446
8447    *)
8448      lt_prog_compiler_pic='-fPIC'
8449      ;;
8450    esac
8451
8452    case $cc_basename in
8453    nvcc*) # Cuda Compiler Driver 2.2
8454      lt_prog_compiler_wl='-Xlinker '
8455      if test -n "$lt_prog_compiler_pic"; then
8456        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8457      fi
8458      ;;
8459    esac
8460  else
8461    # PORTME Check for flag to pass linker flags through the system compiler.
8462    case $host_os in
8463    aix*)
8464      lt_prog_compiler_wl='-Wl,'
8465      if test "$host_cpu" = ia64; then
8466	# AIX 5 now supports IA64 processor
8467	lt_prog_compiler_static='-Bstatic'
8468      else
8469	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8470      fi
8471      ;;
8472
8473    mingw* | cygwin* | pw32* | os2* | cegcc*)
8474      # This hack is so that the source file can tell whether it is being
8475      # built for inclusion in a dll (and should export symbols for example).
8476      lt_prog_compiler_pic='-DDLL_EXPORT'
8477      ;;
8478
8479    hpux9* | hpux10* | hpux11*)
8480      lt_prog_compiler_wl='-Wl,'
8481      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8482      # not for PA HP-UX.
8483      case $host_cpu in
8484      hppa*64*|ia64*)
8485	# +Z the default
8486	;;
8487      *)
8488	lt_prog_compiler_pic='+Z'
8489	;;
8490      esac
8491      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8492      lt_prog_compiler_static='${wl}-a ${wl}archive'
8493      ;;
8494
8495    irix5* | irix6* | nonstopux*)
8496      lt_prog_compiler_wl='-Wl,'
8497      # PIC (with -KPIC) is the default.
8498      lt_prog_compiler_static='-non_shared'
8499      ;;
8500
8501    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8502      case $cc_basename in
8503      # old Intel for x86_64 which still supported -KPIC.
8504      ecc*)
8505	lt_prog_compiler_wl='-Wl,'
8506	lt_prog_compiler_pic='-KPIC'
8507	lt_prog_compiler_static='-static'
8508        ;;
8509      # icc used to be incompatible with GCC.
8510      # ICC 10 doesn't accept -KPIC any more.
8511      icc* | ifort*)
8512	lt_prog_compiler_wl='-Wl,'
8513	lt_prog_compiler_pic='-fPIC'
8514	lt_prog_compiler_static='-static'
8515        ;;
8516      # Lahey Fortran 8.1.
8517      lf95*)
8518	lt_prog_compiler_wl='-Wl,'
8519	lt_prog_compiler_pic='--shared'
8520	lt_prog_compiler_static='--static'
8521	;;
8522      nagfor*)
8523	# NAG Fortran compiler
8524	lt_prog_compiler_wl='-Wl,-Wl,,'
8525	lt_prog_compiler_pic='-PIC'
8526	lt_prog_compiler_static='-Bstatic'
8527	;;
8528      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8529        # Portland Group compilers (*not* the Pentium gcc compiler,
8530	# which looks to be a dead project)
8531	lt_prog_compiler_wl='-Wl,'
8532	lt_prog_compiler_pic='-fpic'
8533	lt_prog_compiler_static='-Bstatic'
8534        ;;
8535      ccc*)
8536        lt_prog_compiler_wl='-Wl,'
8537        # All Alpha code is PIC.
8538        lt_prog_compiler_static='-non_shared'
8539        ;;
8540      xl* | bgxl* | bgf* | mpixl*)
8541	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8542	lt_prog_compiler_wl='-Wl,'
8543	lt_prog_compiler_pic='-qpic'
8544	lt_prog_compiler_static='-qstaticlink'
8545	;;
8546      *)
8547	case `$CC -V 2>&1 | sed 5q` in
8548	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8549	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8550	  lt_prog_compiler_pic='-KPIC'
8551	  lt_prog_compiler_static='-Bstatic'
8552	  lt_prog_compiler_wl=''
8553	  ;;
8554	*Sun\ F* | *Sun*Fortran*)
8555	  lt_prog_compiler_pic='-KPIC'
8556	  lt_prog_compiler_static='-Bstatic'
8557	  lt_prog_compiler_wl='-Qoption ld '
8558	  ;;
8559	*Sun\ C*)
8560	  # Sun C 5.9
8561	  lt_prog_compiler_pic='-KPIC'
8562	  lt_prog_compiler_static='-Bstatic'
8563	  lt_prog_compiler_wl='-Wl,'
8564	  ;;
8565        *Intel*\ [CF]*Compiler*)
8566	  lt_prog_compiler_wl='-Wl,'
8567	  lt_prog_compiler_pic='-fPIC'
8568	  lt_prog_compiler_static='-static'
8569	  ;;
8570	*Portland\ Group*)
8571	  lt_prog_compiler_wl='-Wl,'
8572	  lt_prog_compiler_pic='-fpic'
8573	  lt_prog_compiler_static='-Bstatic'
8574	  ;;
8575	esac
8576	;;
8577      esac
8578      ;;
8579
8580    newsos6)
8581      lt_prog_compiler_pic='-KPIC'
8582      lt_prog_compiler_static='-Bstatic'
8583      ;;
8584
8585    *nto* | *qnx*)
8586      # QNX uses GNU C++, but need to define -shared option too, otherwise
8587      # it will coredump.
8588      lt_prog_compiler_pic='-fPIC -shared'
8589      ;;
8590
8591    osf3* | osf4* | osf5*)
8592      lt_prog_compiler_wl='-Wl,'
8593      # All OSF/1 code is PIC.
8594      lt_prog_compiler_static='-non_shared'
8595      ;;
8596
8597    rdos*)
8598      lt_prog_compiler_static='-non_shared'
8599      ;;
8600
8601    solaris*)
8602      lt_prog_compiler_pic='-KPIC'
8603      lt_prog_compiler_static='-Bstatic'
8604      case $cc_basename in
8605      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8606	lt_prog_compiler_wl='-Qoption ld ';;
8607      *)
8608	lt_prog_compiler_wl='-Wl,';;
8609      esac
8610      ;;
8611
8612    sunos4*)
8613      lt_prog_compiler_wl='-Qoption ld '
8614      lt_prog_compiler_pic='-PIC'
8615      lt_prog_compiler_static='-Bstatic'
8616      ;;
8617
8618    sysv4 | sysv4.2uw2* | sysv4.3*)
8619      lt_prog_compiler_wl='-Wl,'
8620      lt_prog_compiler_pic='-KPIC'
8621      lt_prog_compiler_static='-Bstatic'
8622      ;;
8623
8624    sysv4*MP*)
8625      if test -d /usr/nec ;then
8626	lt_prog_compiler_pic='-Kconform_pic'
8627	lt_prog_compiler_static='-Bstatic'
8628      fi
8629      ;;
8630
8631    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8632      lt_prog_compiler_wl='-Wl,'
8633      lt_prog_compiler_pic='-KPIC'
8634      lt_prog_compiler_static='-Bstatic'
8635      ;;
8636
8637    unicos*)
8638      lt_prog_compiler_wl='-Wl,'
8639      lt_prog_compiler_can_build_shared=no
8640      ;;
8641
8642    uts4*)
8643      lt_prog_compiler_pic='-pic'
8644      lt_prog_compiler_static='-Bstatic'
8645      ;;
8646
8647    *)
8648      lt_prog_compiler_can_build_shared=no
8649      ;;
8650    esac
8651  fi
8652
8653case $host_os in
8654  # For platforms which do not support PIC, -DPIC is meaningless:
8655  *djgpp*)
8656    lt_prog_compiler_pic=
8657    ;;
8658  *)
8659    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8660    ;;
8661esac
8662
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8664$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8665if ${lt_cv_prog_compiler_pic+:} false; then :
8666  $as_echo_n "(cached) " >&6
8667else
8668  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8669fi
8670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8671$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8672lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8673
8674#
8675# Check to make sure the PIC flag actually works.
8676#
8677if test -n "$lt_prog_compiler_pic"; then
8678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8679$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8680if ${lt_cv_prog_compiler_pic_works+:} false; then :
8681  $as_echo_n "(cached) " >&6
8682else
8683  lt_cv_prog_compiler_pic_works=no
8684   ac_outfile=conftest.$ac_objext
8685   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8686   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8687   # Insert the option either (1) after the last *FLAGS variable, or
8688   # (2) before a word containing "conftest.", or (3) at the end.
8689   # Note that $ac_compile itself does not contain backslashes and begins
8690   # with a dollar sign (not a hyphen), so the echo should work correctly.
8691   # The option is referenced via a variable to avoid confusing sed.
8692   lt_compile=`echo "$ac_compile" | $SED \
8693   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8694   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8695   -e 's:$: $lt_compiler_flag:'`
8696   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8697   (eval "$lt_compile" 2>conftest.err)
8698   ac_status=$?
8699   cat conftest.err >&5
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   if (exit $ac_status) && test -s "$ac_outfile"; then
8702     # The compiler can only warn and ignore the option if not recognized
8703     # So say no if there are warnings other than the usual output.
8704     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8705     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8706     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8707       lt_cv_prog_compiler_pic_works=yes
8708     fi
8709   fi
8710   $RM conftest*
8711
8712fi
8713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8714$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8715
8716if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8717    case $lt_prog_compiler_pic in
8718     "" | " "*) ;;
8719     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8720     esac
8721else
8722    lt_prog_compiler_pic=
8723     lt_prog_compiler_can_build_shared=no
8724fi
8725
8726fi
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738#
8739# Check to make sure the static flag actually works.
8740#
8741wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8743$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8744if ${lt_cv_prog_compiler_static_works+:} false; then :
8745  $as_echo_n "(cached) " >&6
8746else
8747  lt_cv_prog_compiler_static_works=no
8748   save_LDFLAGS="$LDFLAGS"
8749   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8750   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8751   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8752     # The linker can only warn and ignore the option if not recognized
8753     # So say no if there are warnings
8754     if test -s conftest.err; then
8755       # Append any errors to the config.log.
8756       cat conftest.err 1>&5
8757       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8758       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8759       if diff conftest.exp conftest.er2 >/dev/null; then
8760         lt_cv_prog_compiler_static_works=yes
8761       fi
8762     else
8763       lt_cv_prog_compiler_static_works=yes
8764     fi
8765   fi
8766   $RM -r conftest*
8767   LDFLAGS="$save_LDFLAGS"
8768
8769fi
8770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8771$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8772
8773if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8774    :
8775else
8776    lt_prog_compiler_static=
8777fi
8778
8779
8780
8781
8782
8783
8784
8785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8786$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8787if ${lt_cv_prog_compiler_c_o+:} false; then :
8788  $as_echo_n "(cached) " >&6
8789else
8790  lt_cv_prog_compiler_c_o=no
8791   $RM -r conftest 2>/dev/null
8792   mkdir conftest
8793   cd conftest
8794   mkdir out
8795   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8796
8797   lt_compiler_flag="-o out/conftest2.$ac_objext"
8798   # Insert the option either (1) after the last *FLAGS variable, or
8799   # (2) before a word containing "conftest.", or (3) at the end.
8800   # Note that $ac_compile itself does not contain backslashes and begins
8801   # with a dollar sign (not a hyphen), so the echo should work correctly.
8802   lt_compile=`echo "$ac_compile" | $SED \
8803   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8804   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8805   -e 's:$: $lt_compiler_flag:'`
8806   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8807   (eval "$lt_compile" 2>out/conftest.err)
8808   ac_status=$?
8809   cat out/conftest.err >&5
8810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8812   then
8813     # The compiler can only warn and ignore the option if not recognized
8814     # So say no if there are warnings
8815     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8816     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8817     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8818       lt_cv_prog_compiler_c_o=yes
8819     fi
8820   fi
8821   chmod u+w . 2>&5
8822   $RM conftest*
8823   # SGI C++ compiler will create directory out/ii_files/ for
8824   # template instantiation
8825   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8826   $RM out/* && rmdir out
8827   cd ..
8828   $RM -r conftest
8829   $RM conftest*
8830
8831fi
8832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8833$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8834
8835
8836
8837
8838
8839
8840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8841$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8842if ${lt_cv_prog_compiler_c_o+:} false; then :
8843  $as_echo_n "(cached) " >&6
8844else
8845  lt_cv_prog_compiler_c_o=no
8846   $RM -r conftest 2>/dev/null
8847   mkdir conftest
8848   cd conftest
8849   mkdir out
8850   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8851
8852   lt_compiler_flag="-o out/conftest2.$ac_objext"
8853   # Insert the option either (1) after the last *FLAGS variable, or
8854   # (2) before a word containing "conftest.", or (3) at the end.
8855   # Note that $ac_compile itself does not contain backslashes and begins
8856   # with a dollar sign (not a hyphen), so the echo should work correctly.
8857   lt_compile=`echo "$ac_compile" | $SED \
8858   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8859   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8860   -e 's:$: $lt_compiler_flag:'`
8861   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8862   (eval "$lt_compile" 2>out/conftest.err)
8863   ac_status=$?
8864   cat out/conftest.err >&5
8865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8867   then
8868     # The compiler can only warn and ignore the option if not recognized
8869     # So say no if there are warnings
8870     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8871     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8872     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8873       lt_cv_prog_compiler_c_o=yes
8874     fi
8875   fi
8876   chmod u+w . 2>&5
8877   $RM conftest*
8878   # SGI C++ compiler will create directory out/ii_files/ for
8879   # template instantiation
8880   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8881   $RM out/* && rmdir out
8882   cd ..
8883   $RM -r conftest
8884   $RM conftest*
8885
8886fi
8887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8888$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8889
8890
8891
8892
8893hard_links="nottested"
8894if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8895  # do not overwrite the value of need_locks provided by the user
8896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8897$as_echo_n "checking if we can lock with hard links... " >&6; }
8898  hard_links=yes
8899  $RM conftest*
8900  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8901  touch conftest.a
8902  ln conftest.a conftest.b 2>&5 || hard_links=no
8903  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8905$as_echo "$hard_links" >&6; }
8906  if test "$hard_links" = no; then
8907    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8908$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8909    need_locks=warn
8910  fi
8911else
8912  need_locks=no
8913fi
8914
8915
8916
8917
8918
8919
8920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8921$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8922
8923  runpath_var=
8924  allow_undefined_flag=
8925  always_export_symbols=no
8926  archive_cmds=
8927  archive_expsym_cmds=
8928  compiler_needs_object=no
8929  enable_shared_with_static_runtimes=no
8930  export_dynamic_flag_spec=
8931  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8932  hardcode_automatic=no
8933  hardcode_direct=no
8934  hardcode_direct_absolute=no
8935  hardcode_libdir_flag_spec=
8936  hardcode_libdir_separator=
8937  hardcode_minus_L=no
8938  hardcode_shlibpath_var=unsupported
8939  inherit_rpath=no
8940  link_all_deplibs=unknown
8941  module_cmds=
8942  module_expsym_cmds=
8943  old_archive_from_new_cmds=
8944  old_archive_from_expsyms_cmds=
8945  thread_safe_flag_spec=
8946  whole_archive_flag_spec=
8947  # include_expsyms should be a list of space-separated symbols to be *always*
8948  # included in the symbol list
8949  include_expsyms=
8950  # exclude_expsyms can be an extended regexp of symbols to exclude
8951  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8952  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8953  # as well as any symbol that contains `d'.
8954  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8955  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8956  # platforms (ab)use it in PIC code, but their linkers get confused if
8957  # the symbol is explicitly referenced.  Since portable code cannot
8958  # rely on this symbol name, it's probably fine to never include it in
8959  # preloaded symbol tables.
8960  # Exclude shared library initialization/finalization symbols.
8961  extract_expsyms_cmds=
8962
8963  case $host_os in
8964  cygwin* | mingw* | pw32* | cegcc*)
8965    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8966    # When not using gcc, we currently assume that we are using
8967    # Microsoft Visual C++.
8968    if test "$GCC" != yes; then
8969      with_gnu_ld=no
8970    fi
8971    ;;
8972  interix*)
8973    # we just hope/assume this is gcc and not c89 (= MSVC++)
8974    with_gnu_ld=yes
8975    ;;
8976  openbsd*)
8977    with_gnu_ld=no
8978    ;;
8979  esac
8980
8981  ld_shlibs=yes
8982
8983  # On some targets, GNU ld is compatible enough with the native linker
8984  # that we're better off using the native interface for both.
8985  lt_use_gnu_ld_interface=no
8986  if test "$with_gnu_ld" = yes; then
8987    case $host_os in
8988      aix*)
8989	# The AIX port of GNU ld has always aspired to compatibility
8990	# with the native linker.  However, as the warning in the GNU ld
8991	# block says, versions before 2.19.5* couldn't really create working
8992	# shared libraries, regardless of the interface used.
8993	case `$LD -v 2>&1` in
8994	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8995	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8996	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8997	  *)
8998	    lt_use_gnu_ld_interface=yes
8999	    ;;
9000	esac
9001	;;
9002      *)
9003	lt_use_gnu_ld_interface=yes
9004	;;
9005    esac
9006  fi
9007
9008  if test "$lt_use_gnu_ld_interface" = yes; then
9009    # If archive_cmds runs LD, not CC, wlarc should be empty
9010    wlarc='${wl}'
9011
9012    # Set some defaults for GNU ld with shared library support. These
9013    # are reset later if shared libraries are not supported. Putting them
9014    # here allows them to be overridden if necessary.
9015    runpath_var=LD_RUN_PATH
9016    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9017    export_dynamic_flag_spec='${wl}--export-dynamic'
9018    # ancient GNU ld didn't support --whole-archive et. al.
9019    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9020      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9021    else
9022      whole_archive_flag_spec=
9023    fi
9024    supports_anon_versioning=no
9025    case `$LD -v 2>&1` in
9026      *GNU\ gold*) supports_anon_versioning=yes ;;
9027      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9028      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9029      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9030      *\ 2.11.*) ;; # other 2.11 versions
9031      *) supports_anon_versioning=yes ;;
9032    esac
9033
9034    # See if GNU ld supports shared libraries.
9035    case $host_os in
9036    aix[3-9]*)
9037      # On AIX/PPC, the GNU linker is very broken
9038      if test "$host_cpu" != ia64; then
9039	ld_shlibs=no
9040	cat <<_LT_EOF 1>&2
9041
9042*** Warning: the GNU linker, at least up to release 2.19, is reported
9043*** to be unable to reliably create shared libraries on AIX.
9044*** Therefore, libtool is disabling shared libraries support.  If you
9045*** really care for shared libraries, you may want to install binutils
9046*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9047*** You will then need to restart the configuration process.
9048
9049_LT_EOF
9050      fi
9051      ;;
9052
9053    amigaos*)
9054      case $host_cpu in
9055      powerpc)
9056            # see comment about AmigaOS4 .so support
9057            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9058            archive_expsym_cmds=''
9059        ;;
9060      m68k)
9061            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)'
9062            hardcode_libdir_flag_spec='-L$libdir'
9063            hardcode_minus_L=yes
9064        ;;
9065      esac
9066      ;;
9067
9068    beos*)
9069      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9070	allow_undefined_flag=unsupported
9071	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9072	# support --undefined.  This deserves some investigation.  FIXME
9073	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9074      else
9075	ld_shlibs=no
9076      fi
9077      ;;
9078
9079    cygwin* | mingw* | pw32* | cegcc*)
9080      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9081      # as there is no search path for DLLs.
9082      hardcode_libdir_flag_spec='-L$libdir'
9083      export_dynamic_flag_spec='${wl}--export-all-symbols'
9084      allow_undefined_flag=unsupported
9085      always_export_symbols=no
9086      enable_shared_with_static_runtimes=yes
9087      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'
9088      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9089
9090      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9091        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9092	# If the export-symbols file already is a .def file (1st line
9093	# is EXPORTS), use it as is; otherwise, prepend...
9094	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9095	  cp $export_symbols $output_objdir/$soname.def;
9096	else
9097	  echo EXPORTS > $output_objdir/$soname.def;
9098	  cat $export_symbols >> $output_objdir/$soname.def;
9099	fi~
9100	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9101      else
9102	ld_shlibs=no
9103      fi
9104      ;;
9105
9106    haiku*)
9107      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9108      link_all_deplibs=yes
9109      ;;
9110
9111    interix[3-9]*)
9112      hardcode_direct=no
9113      hardcode_shlibpath_var=no
9114      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9115      export_dynamic_flag_spec='${wl}-E'
9116      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9117      # Instead, shared libraries are loaded at an image base (0x10000000 by
9118      # default) and relocated if they conflict, which is a slow very memory
9119      # consuming and fragmenting process.  To avoid this, we pick a random,
9120      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9121      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9122      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9123      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'
9124      ;;
9125
9126    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9127      tmp_diet=no
9128      if test "$host_os" = linux-dietlibc; then
9129	case $cc_basename in
9130	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9131	esac
9132      fi
9133      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9134	 && test "$tmp_diet" = no
9135      then
9136	tmp_addflag=' $pic_flag'
9137	tmp_sharedflag='-shared'
9138	case $cc_basename,$host_cpu in
9139        pgcc*)				# Portland Group C compiler
9140	  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'
9141	  tmp_addflag=' $pic_flag'
9142	  ;;
9143	pgf77* | pgf90* | pgf95* | pgfortran*)
9144					# Portland Group f77 and f90 compilers
9145	  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'
9146	  tmp_addflag=' $pic_flag -Mnomain' ;;
9147	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9148	  tmp_addflag=' -i_dynamic' ;;
9149	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9150	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9151	ifc* | ifort*)			# Intel Fortran compiler
9152	  tmp_addflag=' -nofor_main' ;;
9153	lf95*)				# Lahey Fortran 8.1
9154	  whole_archive_flag_spec=
9155	  tmp_sharedflag='--shared' ;;
9156	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9157	  tmp_sharedflag='-qmkshrobj'
9158	  tmp_addflag= ;;
9159	nvcc*)	# Cuda Compiler Driver 2.2
9160	  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'
9161	  compiler_needs_object=yes
9162	  ;;
9163	esac
9164	case `$CC -V 2>&1 | sed 5q` in
9165	*Sun\ C*)			# Sun C 5.9
9166	  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'
9167	  compiler_needs_object=yes
9168	  tmp_sharedflag='-G' ;;
9169	*Sun\ F*)			# Sun Fortran 8.3
9170	  tmp_sharedflag='-G' ;;
9171	esac
9172	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9173
9174        if test "x$supports_anon_versioning" = xyes; then
9175          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9176	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9177	    echo "local: *; };" >> $output_objdir/$libname.ver~
9178	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9179        fi
9180
9181	case $cc_basename in
9182	xlf* | bgf* | bgxlf* | mpixlf*)
9183	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9184	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9185	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9186	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9187	  if test "x$supports_anon_versioning" = xyes; then
9188	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9189	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9190	      echo "local: *; };" >> $output_objdir/$libname.ver~
9191	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9192	  fi
9193	  ;;
9194	esac
9195      else
9196        ld_shlibs=no
9197      fi
9198      ;;
9199
9200    netbsd*)
9201      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9202	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9203	wlarc=
9204      else
9205	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9206	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9207      fi
9208      ;;
9209
9210    solaris*)
9211      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9212	ld_shlibs=no
9213	cat <<_LT_EOF 1>&2
9214
9215*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9216*** create shared libraries on Solaris systems.  Therefore, libtool
9217*** is disabling shared libraries support.  We urge you to upgrade GNU
9218*** binutils to release 2.9.1 or newer.  Another option is to modify
9219*** your PATH or compiler configuration so that the native linker is
9220*** used, and then restart.
9221
9222_LT_EOF
9223      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9224	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9225	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9226      else
9227	ld_shlibs=no
9228      fi
9229      ;;
9230
9231    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9232      case `$LD -v 2>&1` in
9233        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9234	ld_shlibs=no
9235	cat <<_LT_EOF 1>&2
9236
9237*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9238*** reliably create shared libraries on SCO systems.  Therefore, libtool
9239*** is disabling shared libraries support.  We urge you to upgrade GNU
9240*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9241*** your PATH or compiler configuration so that the native linker is
9242*** used, and then restart.
9243
9244_LT_EOF
9245	;;
9246	*)
9247	  # For security reasons, it is highly recommended that you always
9248	  # use absolute paths for naming shared libraries, and exclude the
9249	  # DT_RUNPATH tag from executables and libraries.  But doing so
9250	  # requires that you compile everything twice, which is a pain.
9251	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9252	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9253	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9254	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9255	  else
9256	    ld_shlibs=no
9257	  fi
9258	;;
9259      esac
9260      ;;
9261
9262    sunos4*)
9263      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9264      wlarc=
9265      hardcode_direct=yes
9266      hardcode_shlibpath_var=no
9267      ;;
9268
9269    *)
9270      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9271	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9272	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9273      else
9274	ld_shlibs=no
9275      fi
9276      ;;
9277    esac
9278
9279    if test "$ld_shlibs" = no; then
9280      runpath_var=
9281      hardcode_libdir_flag_spec=
9282      export_dynamic_flag_spec=
9283      whole_archive_flag_spec=
9284    fi
9285  else
9286    # PORTME fill in a description of your system's linker (not GNU ld)
9287    case $host_os in
9288    aix3*)
9289      allow_undefined_flag=unsupported
9290      always_export_symbols=yes
9291      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'
9292      # Note: this linker hardcodes the directories in LIBPATH if there
9293      # are no directories specified by -L.
9294      hardcode_minus_L=yes
9295      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9296	# Neither direct hardcoding nor static linking is supported with a
9297	# broken collect2.
9298	hardcode_direct=unsupported
9299      fi
9300      ;;
9301
9302    aix[4-9]*)
9303      if test "$host_cpu" = ia64; then
9304	# On IA64, the linker does run time linking by default, so we don't
9305	# have to do anything special.
9306	aix_use_runtimelinking=no
9307	exp_sym_flag='-Bexport'
9308	no_entry_flag=""
9309      else
9310	# If we're using GNU nm, then we don't want the "-C" option.
9311	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9312	# Also, AIX nm treats weak defined symbols like other global
9313	# defined symbols, whereas GNU nm marks them as "W".
9314	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9315	  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'
9316	else
9317	  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'
9318	fi
9319	aix_use_runtimelinking=no
9320
9321	# Test if we are trying to use run time linking or normal
9322	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9323	# need to do runtime linking.
9324	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9325	  for ld_flag in $LDFLAGS; do
9326	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9327	    aix_use_runtimelinking=yes
9328	    break
9329	  fi
9330	  done
9331	  ;;
9332	esac
9333
9334	exp_sym_flag='-bexport'
9335	no_entry_flag='-bnoentry'
9336      fi
9337
9338      # When large executables or shared objects are built, AIX ld can
9339      # have problems creating the table of contents.  If linking a library
9340      # or program results in "error TOC overflow" add -mminimal-toc to
9341      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9342      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9343
9344      archive_cmds=''
9345      hardcode_direct=yes
9346      hardcode_direct_absolute=yes
9347      hardcode_libdir_separator=':'
9348      link_all_deplibs=yes
9349      file_list_spec='${wl}-f,'
9350
9351      if test "$GCC" = yes; then
9352	case $host_os in aix4.[012]|aix4.[012].*)
9353	# We only want to do this on AIX 4.2 and lower, the check
9354	# below for broken collect2 doesn't work under 4.3+
9355	  collect2name=`${CC} -print-prog-name=collect2`
9356	  if test -f "$collect2name" &&
9357	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9358	  then
9359	  # We have reworked collect2
9360	  :
9361	  else
9362	  # We have old collect2
9363	  hardcode_direct=unsupported
9364	  # It fails to find uninstalled libraries when the uninstalled
9365	  # path is not listed in the libpath.  Setting hardcode_minus_L
9366	  # to unsupported forces relinking
9367	  hardcode_minus_L=yes
9368	  hardcode_libdir_flag_spec='-L$libdir'
9369	  hardcode_libdir_separator=
9370	  fi
9371	  ;;
9372	esac
9373	shared_flag='-shared'
9374	if test "$aix_use_runtimelinking" = yes; then
9375	  shared_flag="$shared_flag "'${wl}-G'
9376	fi
9377      else
9378	# not using gcc
9379	if test "$host_cpu" = ia64; then
9380	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9381	# chokes on -Wl,-G. The following line is correct:
9382	  shared_flag='-G'
9383	else
9384	  if test "$aix_use_runtimelinking" = yes; then
9385	    shared_flag='${wl}-G'
9386	  else
9387	    shared_flag='${wl}-bM:SRE'
9388	  fi
9389	fi
9390      fi
9391
9392      export_dynamic_flag_spec='${wl}-bexpall'
9393      # It seems that -bexpall does not export symbols beginning with
9394      # underscore (_), so it is better to generate a list of symbols to export.
9395      always_export_symbols=yes
9396      if test "$aix_use_runtimelinking" = yes; then
9397	# Warning - without using the other runtime loading flags (-brtl),
9398	# -berok will link without error, but may produce a broken library.
9399	allow_undefined_flag='-berok'
9400        # Determine the default libpath from the value encoded in an
9401        # empty executable.
9402        if test "${lt_cv_aix_libpath+set}" = set; then
9403  aix_libpath=$lt_cv_aix_libpath
9404else
9405  if ${lt_cv_aix_libpath_+:} false; then :
9406  $as_echo_n "(cached) " >&6
9407else
9408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409/* end confdefs.h.  */
9410
9411int
9412main ()
9413{
9414
9415  ;
9416  return 0;
9417}
9418_ACEOF
9419if ac_fn_c_try_link "$LINENO"; then :
9420
9421  lt_aix_libpath_sed='
9422      /Import File Strings/,/^$/ {
9423	  /^0/ {
9424	      s/^0  *\([^ ]*\) *$/\1/
9425	      p
9426	  }
9427      }'
9428  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9429  # Check for a 64-bit object if we didn't find anything.
9430  if test -z "$lt_cv_aix_libpath_"; then
9431    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9432  fi
9433fi
9434rm -f core conftest.err conftest.$ac_objext \
9435    conftest$ac_exeext conftest.$ac_ext
9436  if test -z "$lt_cv_aix_libpath_"; then
9437    lt_cv_aix_libpath_="/usr/lib:/lib"
9438  fi
9439
9440fi
9441
9442  aix_libpath=$lt_cv_aix_libpath_
9443fi
9444
9445        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9446        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"
9447      else
9448	if test "$host_cpu" = ia64; then
9449	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9450	  allow_undefined_flag="-z nodefs"
9451	  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"
9452	else
9453	 # Determine the default libpath from the value encoded in an
9454	 # empty executable.
9455	 if test "${lt_cv_aix_libpath+set}" = set; then
9456  aix_libpath=$lt_cv_aix_libpath
9457else
9458  if ${lt_cv_aix_libpath_+:} false; then :
9459  $as_echo_n "(cached) " >&6
9460else
9461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462/* end confdefs.h.  */
9463
9464int
9465main ()
9466{
9467
9468  ;
9469  return 0;
9470}
9471_ACEOF
9472if ac_fn_c_try_link "$LINENO"; then :
9473
9474  lt_aix_libpath_sed='
9475      /Import File Strings/,/^$/ {
9476	  /^0/ {
9477	      s/^0  *\([^ ]*\) *$/\1/
9478	      p
9479	  }
9480      }'
9481  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9482  # Check for a 64-bit object if we didn't find anything.
9483  if test -z "$lt_cv_aix_libpath_"; then
9484    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9485  fi
9486fi
9487rm -f core conftest.err conftest.$ac_objext \
9488    conftest$ac_exeext conftest.$ac_ext
9489  if test -z "$lt_cv_aix_libpath_"; then
9490    lt_cv_aix_libpath_="/usr/lib:/lib"
9491  fi
9492
9493fi
9494
9495  aix_libpath=$lt_cv_aix_libpath_
9496fi
9497
9498	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9499	  # Warning - without using the other run time loading flags,
9500	  # -berok will link without error, but may produce a broken library.
9501	  no_undefined_flag=' ${wl}-bernotok'
9502	  allow_undefined_flag=' ${wl}-berok'
9503	  if test "$with_gnu_ld" = yes; then
9504	    # We only use this code for GNU lds that support --whole-archive.
9505	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9506	  else
9507	    # Exported symbols can be pulled into shared objects from archives
9508	    whole_archive_flag_spec='$convenience'
9509	  fi
9510	  archive_cmds_need_lc=yes
9511	  # This is similar to how AIX traditionally builds its shared libraries.
9512	  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'
9513	fi
9514      fi
9515      ;;
9516
9517    amigaos*)
9518      case $host_cpu in
9519      powerpc)
9520            # see comment about AmigaOS4 .so support
9521            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9522            archive_expsym_cmds=''
9523        ;;
9524      m68k)
9525            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)'
9526            hardcode_libdir_flag_spec='-L$libdir'
9527            hardcode_minus_L=yes
9528        ;;
9529      esac
9530      ;;
9531
9532    bsdi[45]*)
9533      export_dynamic_flag_spec=-rdynamic
9534      ;;
9535
9536    cygwin* | mingw* | pw32* | cegcc*)
9537      # When not using gcc, we currently assume that we are using
9538      # Microsoft Visual C++.
9539      # hardcode_libdir_flag_spec is actually meaningless, as there is
9540      # no search path for DLLs.
9541      case $cc_basename in
9542      cl*)
9543	# Native MSVC
9544	hardcode_libdir_flag_spec=' '
9545	allow_undefined_flag=unsupported
9546	always_export_symbols=yes
9547	file_list_spec='@'
9548	# Tell ltmain to make .lib files, not .a files.
9549	libext=lib
9550	# Tell ltmain to make .dll files, not .so files.
9551	shrext_cmds=".dll"
9552	# FIXME: Setting linknames here is a bad hack.
9553	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9554	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9555	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9556	  else
9557	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9558	  fi~
9559	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9560	  linknames='
9561	# The linker will not automatically build a static lib if we build a DLL.
9562	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9563	enable_shared_with_static_runtimes=yes
9564	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9565	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9566	# Don't use ranlib
9567	old_postinstall_cmds='chmod 644 $oldlib'
9568	postlink_cmds='lt_outputfile="@OUTPUT@"~
9569	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9570	  case $lt_outputfile in
9571	    *.exe|*.EXE) ;;
9572	    *)
9573	      lt_outputfile="$lt_outputfile.exe"
9574	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9575	      ;;
9576	  esac~
9577	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9578	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9579	    $RM "$lt_outputfile.manifest";
9580	  fi'
9581	;;
9582      *)
9583	# Assume MSVC wrapper
9584	hardcode_libdir_flag_spec=' '
9585	allow_undefined_flag=unsupported
9586	# Tell ltmain to make .lib files, not .a files.
9587	libext=lib
9588	# Tell ltmain to make .dll files, not .so files.
9589	shrext_cmds=".dll"
9590	# FIXME: Setting linknames here is a bad hack.
9591	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9592	# The linker will automatically build a .lib file if we build a DLL.
9593	old_archive_from_new_cmds='true'
9594	# FIXME: Should let the user specify the lib program.
9595	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9596	enable_shared_with_static_runtimes=yes
9597	;;
9598      esac
9599      ;;
9600
9601    darwin* | rhapsody*)
9602
9603
9604  archive_cmds_need_lc=no
9605  hardcode_direct=no
9606  hardcode_automatic=yes
9607  hardcode_shlibpath_var=unsupported
9608  if test "$lt_cv_ld_force_load" = "yes"; then
9609    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\"`'
9610
9611  else
9612    whole_archive_flag_spec=''
9613  fi
9614  link_all_deplibs=yes
9615  allow_undefined_flag="$_lt_dar_allow_undefined"
9616  case $cc_basename in
9617     ifort*) _lt_dar_can_shared=yes ;;
9618     *) _lt_dar_can_shared=$GCC ;;
9619  esac
9620  if test "$_lt_dar_can_shared" = "yes"; then
9621    output_verbose_link_cmd=func_echo_all
9622    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9623    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9624    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}"
9625    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}"
9626
9627  else
9628  ld_shlibs=no
9629  fi
9630
9631      ;;
9632
9633    dgux*)
9634      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635      hardcode_libdir_flag_spec='-L$libdir'
9636      hardcode_shlibpath_var=no
9637      ;;
9638
9639    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9640    # support.  Future versions do this automatically, but an explicit c++rt0.o
9641    # does not break anything, and helps significantly (at the cost of a little
9642    # extra space).
9643    freebsd2.2*)
9644      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9645      hardcode_libdir_flag_spec='-R$libdir'
9646      hardcode_direct=yes
9647      hardcode_shlibpath_var=no
9648      ;;
9649
9650    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9651    freebsd2.*)
9652      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9653      hardcode_direct=yes
9654      hardcode_minus_L=yes
9655      hardcode_shlibpath_var=no
9656      ;;
9657
9658    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9659    freebsd* | dragonfly*)
9660      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9661      hardcode_libdir_flag_spec='-R$libdir'
9662      hardcode_direct=yes
9663      hardcode_shlibpath_var=no
9664      ;;
9665
9666    hpux9*)
9667      if test "$GCC" = yes; then
9668	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'
9669      else
9670	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'
9671      fi
9672      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9673      hardcode_libdir_separator=:
9674      hardcode_direct=yes
9675
9676      # hardcode_minus_L: Not really in the search PATH,
9677      # but as the default location of the library.
9678      hardcode_minus_L=yes
9679      export_dynamic_flag_spec='${wl}-E'
9680      ;;
9681
9682    hpux10*)
9683      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9684	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9685      else
9686	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9687      fi
9688      if test "$with_gnu_ld" = no; then
9689	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9690	hardcode_libdir_separator=:
9691	hardcode_direct=yes
9692	hardcode_direct_absolute=yes
9693	export_dynamic_flag_spec='${wl}-E'
9694	# hardcode_minus_L: Not really in the search PATH,
9695	# but as the default location of the library.
9696	hardcode_minus_L=yes
9697      fi
9698      ;;
9699
9700    hpux11*)
9701      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9702	case $host_cpu in
9703	hppa*64*)
9704	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9705	  ;;
9706	ia64*)
9707	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9708	  ;;
9709	*)
9710	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9711	  ;;
9712	esac
9713      else
9714	case $host_cpu in
9715	hppa*64*)
9716	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9717	  ;;
9718	ia64*)
9719	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9720	  ;;
9721	*)
9722
9723	  # Older versions of the 11.00 compiler do not understand -b yet
9724	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9725	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9726$as_echo_n "checking if $CC understands -b... " >&6; }
9727if ${lt_cv_prog_compiler__b+:} false; then :
9728  $as_echo_n "(cached) " >&6
9729else
9730  lt_cv_prog_compiler__b=no
9731   save_LDFLAGS="$LDFLAGS"
9732   LDFLAGS="$LDFLAGS -b"
9733   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9734   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9735     # The linker can only warn and ignore the option if not recognized
9736     # So say no if there are warnings
9737     if test -s conftest.err; then
9738       # Append any errors to the config.log.
9739       cat conftest.err 1>&5
9740       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9741       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9742       if diff conftest.exp conftest.er2 >/dev/null; then
9743         lt_cv_prog_compiler__b=yes
9744       fi
9745     else
9746       lt_cv_prog_compiler__b=yes
9747     fi
9748   fi
9749   $RM -r conftest*
9750   LDFLAGS="$save_LDFLAGS"
9751
9752fi
9753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9754$as_echo "$lt_cv_prog_compiler__b" >&6; }
9755
9756if test x"$lt_cv_prog_compiler__b" = xyes; then
9757    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9758else
9759    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9760fi
9761
9762	  ;;
9763	esac
9764      fi
9765      if test "$with_gnu_ld" = no; then
9766	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9767	hardcode_libdir_separator=:
9768
9769	case $host_cpu in
9770	hppa*64*|ia64*)
9771	  hardcode_direct=no
9772	  hardcode_shlibpath_var=no
9773	  ;;
9774	*)
9775	  hardcode_direct=yes
9776	  hardcode_direct_absolute=yes
9777	  export_dynamic_flag_spec='${wl}-E'
9778
9779	  # hardcode_minus_L: Not really in the search PATH,
9780	  # but as the default location of the library.
9781	  hardcode_minus_L=yes
9782	  ;;
9783	esac
9784      fi
9785      ;;
9786
9787    irix5* | irix6* | nonstopux*)
9788      if test "$GCC" = yes; then
9789	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'
9790	# Try to use the -exported_symbol ld option, if it does not
9791	# work, assume that -exports_file does not work either and
9792	# implicitly export all symbols.
9793	# This should be the same for all languages, so no per-tag cache variable.
9794	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9795$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9796if ${lt_cv_irix_exported_symbol+:} false; then :
9797  $as_echo_n "(cached) " >&6
9798else
9799  save_LDFLAGS="$LDFLAGS"
9800	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9801	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802/* end confdefs.h.  */
9803int foo (void) { return 0; }
9804_ACEOF
9805if ac_fn_c_try_link "$LINENO"; then :
9806  lt_cv_irix_exported_symbol=yes
9807else
9808  lt_cv_irix_exported_symbol=no
9809fi
9810rm -f core conftest.err conftest.$ac_objext \
9811    conftest$ac_exeext conftest.$ac_ext
9812           LDFLAGS="$save_LDFLAGS"
9813fi
9814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9815$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9816	if test "$lt_cv_irix_exported_symbol" = yes; then
9817          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'
9818	fi
9819      else
9820	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'
9821	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'
9822      fi
9823      archive_cmds_need_lc='no'
9824      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9825      hardcode_libdir_separator=:
9826      inherit_rpath=yes
9827      link_all_deplibs=yes
9828      ;;
9829
9830    netbsd*)
9831      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9832	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9833      else
9834	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9835      fi
9836      hardcode_libdir_flag_spec='-R$libdir'
9837      hardcode_direct=yes
9838      hardcode_shlibpath_var=no
9839      ;;
9840
9841    newsos6)
9842      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9843      hardcode_direct=yes
9844      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9845      hardcode_libdir_separator=:
9846      hardcode_shlibpath_var=no
9847      ;;
9848
9849    *nto* | *qnx*)
9850      ;;
9851
9852    openbsd*)
9853      if test -f /usr/libexec/ld.so; then
9854	hardcode_direct=yes
9855	hardcode_shlibpath_var=no
9856	hardcode_direct_absolute=yes
9857	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9858	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9859	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9860	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9861	  export_dynamic_flag_spec='${wl}-E'
9862	else
9863	  case $host_os in
9864	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9865	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9866	     hardcode_libdir_flag_spec='-R$libdir'
9867	     ;;
9868	   *)
9869	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9870	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9871	     ;;
9872	  esac
9873	fi
9874      else
9875	ld_shlibs=no
9876      fi
9877      ;;
9878
9879    os2*)
9880      hardcode_libdir_flag_spec='-L$libdir'
9881      hardcode_minus_L=yes
9882      allow_undefined_flag=unsupported
9883      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'
9884      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9885      ;;
9886
9887    osf3*)
9888      if test "$GCC" = yes; then
9889	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9890	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'
9891      else
9892	allow_undefined_flag=' -expect_unresolved \*'
9893	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'
9894      fi
9895      archive_cmds_need_lc='no'
9896      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9897      hardcode_libdir_separator=:
9898      ;;
9899
9900    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9901      if test "$GCC" = yes; then
9902	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9903	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'
9904	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9905      else
9906	allow_undefined_flag=' -expect_unresolved \*'
9907	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'
9908	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~
9909	$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'
9910
9911	# Both c and cxx compiler support -rpath directly
9912	hardcode_libdir_flag_spec='-rpath $libdir'
9913      fi
9914      archive_cmds_need_lc='no'
9915      hardcode_libdir_separator=:
9916      ;;
9917
9918    solaris*)
9919      no_undefined_flag=' -z defs'
9920      if test "$GCC" = yes; then
9921	wlarc='${wl}'
9922	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9923	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9924	  $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'
9925      else
9926	case `$CC -V 2>&1` in
9927	*"Compilers 5.0"*)
9928	  wlarc=''
9929	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9930	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9931	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9932	  ;;
9933	*)
9934	  wlarc='${wl}'
9935	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9936	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9937	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9938	  ;;
9939	esac
9940      fi
9941      hardcode_libdir_flag_spec='-R$libdir'
9942      hardcode_shlibpath_var=no
9943      case $host_os in
9944      solaris2.[0-5] | solaris2.[0-5].*) ;;
9945      *)
9946	# The compiler driver will combine and reorder linker options,
9947	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9948	# but is careful enough not to reorder.
9949	# Supported since Solaris 2.6 (maybe 2.5.1?)
9950	if test "$GCC" = yes; then
9951	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9952	else
9953	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9954	fi
9955	;;
9956      esac
9957      link_all_deplibs=yes
9958      ;;
9959
9960    sunos4*)
9961      if test "x$host_vendor" = xsequent; then
9962	# Use $CC to link under sequent, because it throws in some extra .o
9963	# files that make .init and .fini sections work.
9964	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9965      else
9966	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9967      fi
9968      hardcode_libdir_flag_spec='-L$libdir'
9969      hardcode_direct=yes
9970      hardcode_minus_L=yes
9971      hardcode_shlibpath_var=no
9972      ;;
9973
9974    sysv4)
9975      case $host_vendor in
9976	sni)
9977	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9978	  hardcode_direct=yes # is this really true???
9979	;;
9980	siemens)
9981	  ## LD is ld it makes a PLAMLIB
9982	  ## CC just makes a GrossModule.
9983	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9984	  reload_cmds='$CC -r -o $output$reload_objs'
9985	  hardcode_direct=no
9986        ;;
9987	motorola)
9988	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9990	;;
9991      esac
9992      runpath_var='LD_RUN_PATH'
9993      hardcode_shlibpath_var=no
9994      ;;
9995
9996    sysv4.3*)
9997      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9998      hardcode_shlibpath_var=no
9999      export_dynamic_flag_spec='-Bexport'
10000      ;;
10001
10002    sysv4*MP*)
10003      if test -d /usr/nec; then
10004	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10005	hardcode_shlibpath_var=no
10006	runpath_var=LD_RUN_PATH
10007	hardcode_runpath_var=yes
10008	ld_shlibs=yes
10009      fi
10010      ;;
10011
10012    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10013      no_undefined_flag='${wl}-z,text'
10014      archive_cmds_need_lc=no
10015      hardcode_shlibpath_var=no
10016      runpath_var='LD_RUN_PATH'
10017
10018      if test "$GCC" = yes; then
10019	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10020	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10021      else
10022	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10023	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10024      fi
10025      ;;
10026
10027    sysv5* | sco3.2v5* | sco5v6*)
10028      # Note: We can NOT use -z defs as we might desire, because we do not
10029      # link with -lc, and that would cause any symbols used from libc to
10030      # always be unresolved, which means just about no library would
10031      # ever link correctly.  If we're not using GNU ld we use -z text
10032      # though, which does catch some bad symbols but isn't as heavy-handed
10033      # as -z defs.
10034      no_undefined_flag='${wl}-z,text'
10035      allow_undefined_flag='${wl}-z,nodefs'
10036      archive_cmds_need_lc=no
10037      hardcode_shlibpath_var=no
10038      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10039      hardcode_libdir_separator=':'
10040      link_all_deplibs=yes
10041      export_dynamic_flag_spec='${wl}-Bexport'
10042      runpath_var='LD_RUN_PATH'
10043
10044      if test "$GCC" = yes; then
10045	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10046	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10047      else
10048	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10049	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10050      fi
10051      ;;
10052
10053    uts4*)
10054      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10055      hardcode_libdir_flag_spec='-L$libdir'
10056      hardcode_shlibpath_var=no
10057      ;;
10058
10059    *)
10060      ld_shlibs=no
10061      ;;
10062    esac
10063
10064    if test x$host_vendor = xsni; then
10065      case $host in
10066      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10067	export_dynamic_flag_spec='${wl}-Blargedynsym'
10068	;;
10069      esac
10070    fi
10071  fi
10072
10073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10074$as_echo "$ld_shlibs" >&6; }
10075test "$ld_shlibs" = no && can_build_shared=no
10076
10077with_gnu_ld=$with_gnu_ld
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093#
10094# Do we need to explicitly link libc?
10095#
10096case "x$archive_cmds_need_lc" in
10097x|xyes)
10098  # Assume -lc should be added
10099  archive_cmds_need_lc=yes
10100
10101  if test "$enable_shared" = yes && test "$GCC" = yes; then
10102    case $archive_cmds in
10103    *'~'*)
10104      # FIXME: we may have to deal with multi-command sequences.
10105      ;;
10106    '$CC '*)
10107      # Test whether the compiler implicitly links with -lc since on some
10108      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10109      # to ld, don't add -lc before -lgcc.
10110      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10111$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10112if ${lt_cv_archive_cmds_need_lc+:} false; then :
10113  $as_echo_n "(cached) " >&6
10114else
10115  $RM conftest*
10116	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10117
10118	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10119  (eval $ac_compile) 2>&5
10120  ac_status=$?
10121  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10122  test $ac_status = 0; } 2>conftest.err; then
10123	  soname=conftest
10124	  lib=conftest
10125	  libobjs=conftest.$ac_objext
10126	  deplibs=
10127	  wl=$lt_prog_compiler_wl
10128	  pic_flag=$lt_prog_compiler_pic
10129	  compiler_flags=-v
10130	  linker_flags=-v
10131	  verstring=
10132	  output_objdir=.
10133	  libname=conftest
10134	  lt_save_allow_undefined_flag=$allow_undefined_flag
10135	  allow_undefined_flag=
10136	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10137  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10138  ac_status=$?
10139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10140  test $ac_status = 0; }
10141	  then
10142	    lt_cv_archive_cmds_need_lc=no
10143	  else
10144	    lt_cv_archive_cmds_need_lc=yes
10145	  fi
10146	  allow_undefined_flag=$lt_save_allow_undefined_flag
10147	else
10148	  cat conftest.err 1>&5
10149	fi
10150	$RM conftest*
10151
10152fi
10153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10154$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10155      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10156      ;;
10157    esac
10158  fi
10159  ;;
10160esac
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10314$as_echo_n "checking dynamic linker characteristics... " >&6; }
10315
10316if test "$GCC" = yes; then
10317  case $host_os in
10318    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10319    *) lt_awk_arg="/^libraries:/" ;;
10320  esac
10321  case $host_os in
10322    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10323    *) lt_sed_strip_eq="s,=/,/,g" ;;
10324  esac
10325  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10326  case $lt_search_path_spec in
10327  *\;*)
10328    # if the path contains ";" then we assume it to be the separator
10329    # otherwise default to the standard path separator (i.e. ":") - it is
10330    # assumed that no part of a normal pathname contains ";" but that should
10331    # okay in the real world where ";" in dirpaths is itself problematic.
10332    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10333    ;;
10334  *)
10335    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10336    ;;
10337  esac
10338  # Ok, now we have the path, separated by spaces, we can step through it
10339  # and add multilib dir if necessary.
10340  lt_tmp_lt_search_path_spec=
10341  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10342  for lt_sys_path in $lt_search_path_spec; do
10343    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10344      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10345    else
10346      test -d "$lt_sys_path" && \
10347	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10348    fi
10349  done
10350  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10351BEGIN {RS=" "; FS="/|\n";} {
10352  lt_foo="";
10353  lt_count=0;
10354  for (lt_i = NF; lt_i > 0; lt_i--) {
10355    if ($lt_i != "" && $lt_i != ".") {
10356      if ($lt_i == "..") {
10357        lt_count++;
10358      } else {
10359        if (lt_count == 0) {
10360          lt_foo="/" $lt_i lt_foo;
10361        } else {
10362          lt_count--;
10363        }
10364      }
10365    }
10366  }
10367  if (lt_foo != "") { lt_freq[lt_foo]++; }
10368  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10369}'`
10370  # AWK program above erroneously prepends '/' to C:/dos/paths
10371  # for these hosts.
10372  case $host_os in
10373    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10374      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10375  esac
10376  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10377else
10378  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10379fi
10380library_names_spec=
10381libname_spec='lib$name'
10382soname_spec=
10383shrext_cmds=".so"
10384postinstall_cmds=
10385postuninstall_cmds=
10386finish_cmds=
10387finish_eval=
10388shlibpath_var=
10389shlibpath_overrides_runpath=unknown
10390version_type=none
10391dynamic_linker="$host_os ld.so"
10392sys_lib_dlsearch_path_spec="/lib /usr/lib"
10393need_lib_prefix=unknown
10394hardcode_into_libs=no
10395
10396# when you set need_version to no, make sure it does not cause -set_version
10397# flags to be left without arguments
10398need_version=unknown
10399
10400case $host_os in
10401aix3*)
10402  version_type=linux # correct to gnu/linux during the next big refactor
10403  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10404  shlibpath_var=LIBPATH
10405
10406  # AIX 3 has no versioning support, so we append a major version to the name.
10407  soname_spec='${libname}${release}${shared_ext}$major'
10408  ;;
10409
10410aix[4-9]*)
10411  version_type=linux # correct to gnu/linux during the next big refactor
10412  need_lib_prefix=no
10413  need_version=no
10414  hardcode_into_libs=yes
10415  if test "$host_cpu" = ia64; then
10416    # AIX 5 supports IA64
10417    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10418    shlibpath_var=LD_LIBRARY_PATH
10419  else
10420    # With GCC up to 2.95.x, collect2 would create an import file
10421    # for dependence libraries.  The import file would start with
10422    # the line `#! .'.  This would cause the generated library to
10423    # depend on `.', always an invalid library.  This was fixed in
10424    # development snapshots of GCC prior to 3.0.
10425    case $host_os in
10426      aix4 | aix4.[01] | aix4.[01].*)
10427      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10428	   echo ' yes '
10429	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10430	:
10431      else
10432	can_build_shared=no
10433      fi
10434      ;;
10435    esac
10436    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10437    # soname into executable. Probably we can add versioning support to
10438    # collect2, so additional links can be useful in future.
10439    if test "$aix_use_runtimelinking" = yes; then
10440      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10441      # instead of lib<name>.a to let people know that these are not
10442      # typical AIX shared libraries.
10443      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444    else
10445      # We preserve .a as extension for shared libraries through AIX4.2
10446      # and later when we are not doing run time linking.
10447      library_names_spec='${libname}${release}.a $libname.a'
10448      soname_spec='${libname}${release}${shared_ext}$major'
10449    fi
10450    shlibpath_var=LIBPATH
10451  fi
10452  ;;
10453
10454amigaos*)
10455  case $host_cpu in
10456  powerpc)
10457    # Since July 2007 AmigaOS4 officially supports .so libraries.
10458    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10459    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10460    ;;
10461  m68k)
10462    library_names_spec='$libname.ixlibrary $libname.a'
10463    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10464    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'
10465    ;;
10466  esac
10467  ;;
10468
10469beos*)
10470  library_names_spec='${libname}${shared_ext}'
10471  dynamic_linker="$host_os ld.so"
10472  shlibpath_var=LIBRARY_PATH
10473  ;;
10474
10475bsdi[45]*)
10476  version_type=linux # correct to gnu/linux during the next big refactor
10477  need_version=no
10478  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479  soname_spec='${libname}${release}${shared_ext}$major'
10480  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10481  shlibpath_var=LD_LIBRARY_PATH
10482  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10483  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10484  # the default ld.so.conf also contains /usr/contrib/lib and
10485  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10486  # libtool to hard-code these into programs
10487  ;;
10488
10489cygwin* | mingw* | pw32* | cegcc*)
10490  version_type=windows
10491  shrext_cmds=".dll"
10492  need_version=no
10493  need_lib_prefix=no
10494
10495  case $GCC,$cc_basename in
10496  yes,*)
10497    # gcc
10498    library_names_spec='$libname.dll.a'
10499    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10500    postinstall_cmds='base_file=`basename \${file}`~
10501      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10502      dldir=$destdir/`dirname \$dlpath`~
10503      test -d \$dldir || mkdir -p \$dldir~
10504      $install_prog $dir/$dlname \$dldir/$dlname~
10505      chmod a+x \$dldir/$dlname~
10506      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10507        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10508      fi'
10509    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10510      dlpath=$dir/\$dldll~
10511       $RM \$dlpath'
10512    shlibpath_overrides_runpath=yes
10513
10514    case $host_os in
10515    cygwin*)
10516      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10517      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10518
10519      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10520      ;;
10521    mingw* | cegcc*)
10522      # MinGW DLLs use traditional 'lib' prefix
10523      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10524      ;;
10525    pw32*)
10526      # pw32 DLLs use 'pw' prefix rather than 'lib'
10527      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10528      ;;
10529    esac
10530    dynamic_linker='Win32 ld.exe'
10531    ;;
10532
10533  *,cl*)
10534    # Native MSVC
10535    libname_spec='$name'
10536    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10537    library_names_spec='${libname}.dll.lib'
10538
10539    case $build_os in
10540    mingw*)
10541      sys_lib_search_path_spec=
10542      lt_save_ifs=$IFS
10543      IFS=';'
10544      for lt_path in $LIB
10545      do
10546        IFS=$lt_save_ifs
10547        # Let DOS variable expansion print the short 8.3 style file name.
10548        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10549        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10550      done
10551      IFS=$lt_save_ifs
10552      # Convert to MSYS style.
10553      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10554      ;;
10555    cygwin*)
10556      # Convert to unix form, then to dos form, then back to unix form
10557      # but this time dos style (no spaces!) so that the unix form looks
10558      # like /cygdrive/c/PROGRA~1:/cygdr...
10559      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10560      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10561      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10562      ;;
10563    *)
10564      sys_lib_search_path_spec="$LIB"
10565      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10566        # It is most probably a Windows format PATH.
10567        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10568      else
10569        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10570      fi
10571      # FIXME: find the short name or the path components, as spaces are
10572      # common. (e.g. "Program Files" -> "PROGRA~1")
10573      ;;
10574    esac
10575
10576    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10577    postinstall_cmds='base_file=`basename \${file}`~
10578      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10579      dldir=$destdir/`dirname \$dlpath`~
10580      test -d \$dldir || mkdir -p \$dldir~
10581      $install_prog $dir/$dlname \$dldir/$dlname'
10582    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10583      dlpath=$dir/\$dldll~
10584       $RM \$dlpath'
10585    shlibpath_overrides_runpath=yes
10586    dynamic_linker='Win32 link.exe'
10587    ;;
10588
10589  *)
10590    # Assume MSVC wrapper
10591    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10592    dynamic_linker='Win32 ld.exe'
10593    ;;
10594  esac
10595  # FIXME: first we should search . and the directory the executable is in
10596  shlibpath_var=PATH
10597  ;;
10598
10599darwin* | rhapsody*)
10600  dynamic_linker="$host_os dyld"
10601  version_type=darwin
10602  need_lib_prefix=no
10603  need_version=no
10604  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10605  soname_spec='${libname}${release}${major}$shared_ext'
10606  shlibpath_overrides_runpath=yes
10607  shlibpath_var=DYLD_LIBRARY_PATH
10608  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10609
10610  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10611  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10612  ;;
10613
10614dgux*)
10615  version_type=linux # correct to gnu/linux during the next big refactor
10616  need_lib_prefix=no
10617  need_version=no
10618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10619  soname_spec='${libname}${release}${shared_ext}$major'
10620  shlibpath_var=LD_LIBRARY_PATH
10621  ;;
10622
10623freebsd* | dragonfly*)
10624  # DragonFly does not have aout.  When/if they implement a new
10625  # versioning mechanism, adjust this.
10626  if test -x /usr/bin/objformat; then
10627    objformat=`/usr/bin/objformat`
10628  else
10629    case $host_os in
10630    freebsd[23].*) objformat=aout ;;
10631    *) objformat=elf ;;
10632    esac
10633  fi
10634  version_type=freebsd-$objformat
10635  case $version_type in
10636    freebsd-elf*)
10637      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10638      need_version=no
10639      need_lib_prefix=no
10640      ;;
10641    freebsd-*)
10642      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10643      need_version=yes
10644      ;;
10645  esac
10646  shlibpath_var=LD_LIBRARY_PATH
10647  case $host_os in
10648  freebsd2.*)
10649    shlibpath_overrides_runpath=yes
10650    ;;
10651  freebsd3.[01]* | freebsdelf3.[01]*)
10652    shlibpath_overrides_runpath=yes
10653    hardcode_into_libs=yes
10654    ;;
10655  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10656  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10657    shlibpath_overrides_runpath=no
10658    hardcode_into_libs=yes
10659    ;;
10660  *) # from 4.6 on, and DragonFly
10661    shlibpath_overrides_runpath=yes
10662    hardcode_into_libs=yes
10663    ;;
10664  esac
10665  ;;
10666
10667gnu*)
10668  version_type=linux # correct to gnu/linux during the next big refactor
10669  need_lib_prefix=no
10670  need_version=no
10671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10672  soname_spec='${libname}${release}${shared_ext}$major'
10673  shlibpath_var=LD_LIBRARY_PATH
10674  shlibpath_overrides_runpath=no
10675  hardcode_into_libs=yes
10676  ;;
10677
10678haiku*)
10679  version_type=linux # correct to gnu/linux during the next big refactor
10680  need_lib_prefix=no
10681  need_version=no
10682  dynamic_linker="$host_os runtime_loader"
10683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10684  soname_spec='${libname}${release}${shared_ext}$major'
10685  shlibpath_var=LIBRARY_PATH
10686  shlibpath_overrides_runpath=yes
10687  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10688  hardcode_into_libs=yes
10689  ;;
10690
10691hpux9* | hpux10* | hpux11*)
10692  # Give a soname corresponding to the major version so that dld.sl refuses to
10693  # link against other versions.
10694  version_type=sunos
10695  need_lib_prefix=no
10696  need_version=no
10697  case $host_cpu in
10698  ia64*)
10699    shrext_cmds='.so'
10700    hardcode_into_libs=yes
10701    dynamic_linker="$host_os dld.so"
10702    shlibpath_var=LD_LIBRARY_PATH
10703    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10704    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10705    soname_spec='${libname}${release}${shared_ext}$major'
10706    if test "X$HPUX_IA64_MODE" = X32; then
10707      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10708    else
10709      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10710    fi
10711    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10712    ;;
10713  hppa*64*)
10714    shrext_cmds='.sl'
10715    hardcode_into_libs=yes
10716    dynamic_linker="$host_os dld.sl"
10717    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10718    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10719    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10720    soname_spec='${libname}${release}${shared_ext}$major'
10721    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10722    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10723    ;;
10724  *)
10725    shrext_cmds='.sl'
10726    dynamic_linker="$host_os dld.sl"
10727    shlibpath_var=SHLIB_PATH
10728    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10729    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10730    soname_spec='${libname}${release}${shared_ext}$major'
10731    ;;
10732  esac
10733  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10734  postinstall_cmds='chmod 555 $lib'
10735  # or fails outright, so override atomically:
10736  install_override_mode=555
10737  ;;
10738
10739interix[3-9]*)
10740  version_type=linux # correct to gnu/linux during the next big refactor
10741  need_lib_prefix=no
10742  need_version=no
10743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10744  soname_spec='${libname}${release}${shared_ext}$major'
10745  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10746  shlibpath_var=LD_LIBRARY_PATH
10747  shlibpath_overrides_runpath=no
10748  hardcode_into_libs=yes
10749  ;;
10750
10751irix5* | irix6* | nonstopux*)
10752  case $host_os in
10753    nonstopux*) version_type=nonstopux ;;
10754    *)
10755	if test "$lt_cv_prog_gnu_ld" = yes; then
10756		version_type=linux # correct to gnu/linux during the next big refactor
10757	else
10758		version_type=irix
10759	fi ;;
10760  esac
10761  need_lib_prefix=no
10762  need_version=no
10763  soname_spec='${libname}${release}${shared_ext}$major'
10764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10765  case $host_os in
10766  irix5* | nonstopux*)
10767    libsuff= shlibsuff=
10768    ;;
10769  *)
10770    case $LD in # libtool.m4 will add one of these switches to LD
10771    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10772      libsuff= shlibsuff= libmagic=32-bit;;
10773    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10774      libsuff=32 shlibsuff=N32 libmagic=N32;;
10775    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10776      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10777    *) libsuff= shlibsuff= libmagic=never-match;;
10778    esac
10779    ;;
10780  esac
10781  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10782  shlibpath_overrides_runpath=no
10783  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10784  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10785  hardcode_into_libs=yes
10786  ;;
10787
10788# No shared lib support for Linux oldld, aout, or coff.
10789linux*oldld* | linux*aout* | linux*coff*)
10790  dynamic_linker=no
10791  ;;
10792
10793# This must be glibc/ELF.
10794linux* | k*bsd*-gnu | kopensolaris*-gnu)
10795  version_type=linux # correct to gnu/linux during the next big refactor
10796  need_lib_prefix=no
10797  need_version=no
10798  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799  soname_spec='${libname}${release}${shared_ext}$major'
10800  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10801  shlibpath_var=LD_LIBRARY_PATH
10802  shlibpath_overrides_runpath=no
10803
10804  # Some binutils ld are patched to set DT_RUNPATH
10805  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10806  $as_echo_n "(cached) " >&6
10807else
10808  lt_cv_shlibpath_overrides_runpath=no
10809    save_LDFLAGS=$LDFLAGS
10810    save_libdir=$libdir
10811    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10812	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10813    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814/* end confdefs.h.  */
10815
10816int
10817main ()
10818{
10819
10820  ;
10821  return 0;
10822}
10823_ACEOF
10824if ac_fn_c_try_link "$LINENO"; then :
10825  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10826  lt_cv_shlibpath_overrides_runpath=yes
10827fi
10828fi
10829rm -f core conftest.err conftest.$ac_objext \
10830    conftest$ac_exeext conftest.$ac_ext
10831    LDFLAGS=$save_LDFLAGS
10832    libdir=$save_libdir
10833
10834fi
10835
10836  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10837
10838  # This implies no fast_install, which is unacceptable.
10839  # Some rework will be needed to allow for fast_install
10840  # before this can be enabled.
10841  hardcode_into_libs=yes
10842
10843  # Append ld.so.conf contents to the search path
10844  if test -f /etc/ld.so.conf; then
10845    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' ' '`
10846    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10847  fi
10848
10849  # We used to test for /lib/ld.so.1 and disable shared libraries on
10850  # powerpc, because MkLinux only supported shared libraries with the
10851  # GNU dynamic linker.  Since this was broken with cross compilers,
10852  # most powerpc-linux boxes support dynamic linking these days and
10853  # people can always --disable-shared, the test was removed, and we
10854  # assume the GNU/Linux dynamic linker is in use.
10855  dynamic_linker='GNU/Linux ld.so'
10856  ;;
10857
10858netbsd*)
10859  version_type=sunos
10860  need_lib_prefix=no
10861  need_version=no
10862  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10863    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10864    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10865    dynamic_linker='NetBSD (a.out) ld.so'
10866  else
10867    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10868    soname_spec='${libname}${release}${shared_ext}$major'
10869    dynamic_linker='NetBSD ld.elf_so'
10870  fi
10871  shlibpath_var=LD_LIBRARY_PATH
10872  shlibpath_overrides_runpath=yes
10873  hardcode_into_libs=yes
10874  ;;
10875
10876newsos6)
10877  version_type=linux # correct to gnu/linux during the next big refactor
10878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10879  shlibpath_var=LD_LIBRARY_PATH
10880  shlibpath_overrides_runpath=yes
10881  ;;
10882
10883*nto* | *qnx*)
10884  version_type=qnx
10885  need_lib_prefix=no
10886  need_version=no
10887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10888  soname_spec='${libname}${release}${shared_ext}$major'
10889  shlibpath_var=LD_LIBRARY_PATH
10890  shlibpath_overrides_runpath=no
10891  hardcode_into_libs=yes
10892  dynamic_linker='ldqnx.so'
10893  ;;
10894
10895openbsd*)
10896  version_type=sunos
10897  sys_lib_dlsearch_path_spec="/usr/lib"
10898  need_lib_prefix=no
10899  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10900  case $host_os in
10901    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10902    *)				need_version=no  ;;
10903  esac
10904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10905  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10906  shlibpath_var=LD_LIBRARY_PATH
10907  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10908    case $host_os in
10909      openbsd2.[89] | openbsd2.[89].*)
10910	shlibpath_overrides_runpath=no
10911	;;
10912      *)
10913	shlibpath_overrides_runpath=yes
10914	;;
10915      esac
10916  else
10917    shlibpath_overrides_runpath=yes
10918  fi
10919  ;;
10920
10921os2*)
10922  libname_spec='$name'
10923  shrext_cmds=".dll"
10924  need_lib_prefix=no
10925  library_names_spec='$libname${shared_ext} $libname.a'
10926  dynamic_linker='OS/2 ld.exe'
10927  shlibpath_var=LIBPATH
10928  ;;
10929
10930osf3* | osf4* | osf5*)
10931  version_type=osf
10932  need_lib_prefix=no
10933  need_version=no
10934  soname_spec='${libname}${release}${shared_ext}$major'
10935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10936  shlibpath_var=LD_LIBRARY_PATH
10937  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10938  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10939  ;;
10940
10941rdos*)
10942  dynamic_linker=no
10943  ;;
10944
10945solaris*)
10946  version_type=linux # correct to gnu/linux during the next big refactor
10947  need_lib_prefix=no
10948  need_version=no
10949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10950  soname_spec='${libname}${release}${shared_ext}$major'
10951  shlibpath_var=LD_LIBRARY_PATH
10952  shlibpath_overrides_runpath=yes
10953  hardcode_into_libs=yes
10954  # ldd complains unless libraries are executable
10955  postinstall_cmds='chmod +x $lib'
10956  ;;
10957
10958sunos4*)
10959  version_type=sunos
10960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10961  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10962  shlibpath_var=LD_LIBRARY_PATH
10963  shlibpath_overrides_runpath=yes
10964  if test "$with_gnu_ld" = yes; then
10965    need_lib_prefix=no
10966  fi
10967  need_version=yes
10968  ;;
10969
10970sysv4 | sysv4.3*)
10971  version_type=linux # correct to gnu/linux during the next big refactor
10972  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973  soname_spec='${libname}${release}${shared_ext}$major'
10974  shlibpath_var=LD_LIBRARY_PATH
10975  case $host_vendor in
10976    sni)
10977      shlibpath_overrides_runpath=no
10978      need_lib_prefix=no
10979      runpath_var=LD_RUN_PATH
10980      ;;
10981    siemens)
10982      need_lib_prefix=no
10983      ;;
10984    motorola)
10985      need_lib_prefix=no
10986      need_version=no
10987      shlibpath_overrides_runpath=no
10988      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10989      ;;
10990  esac
10991  ;;
10992
10993sysv4*MP*)
10994  if test -d /usr/nec ;then
10995    version_type=linux # correct to gnu/linux during the next big refactor
10996    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10997    soname_spec='$libname${shared_ext}.$major'
10998    shlibpath_var=LD_LIBRARY_PATH
10999  fi
11000  ;;
11001
11002sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11003  version_type=freebsd-elf
11004  need_lib_prefix=no
11005  need_version=no
11006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11007  soname_spec='${libname}${release}${shared_ext}$major'
11008  shlibpath_var=LD_LIBRARY_PATH
11009  shlibpath_overrides_runpath=yes
11010  hardcode_into_libs=yes
11011  if test "$with_gnu_ld" = yes; then
11012    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11013  else
11014    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11015    case $host_os in
11016      sco3.2v5*)
11017        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11018	;;
11019    esac
11020  fi
11021  sys_lib_dlsearch_path_spec='/usr/lib'
11022  ;;
11023
11024tpf*)
11025  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11026  version_type=linux # correct to gnu/linux during the next big refactor
11027  need_lib_prefix=no
11028  need_version=no
11029  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11030  shlibpath_var=LD_LIBRARY_PATH
11031  shlibpath_overrides_runpath=no
11032  hardcode_into_libs=yes
11033  ;;
11034
11035uts4*)
11036  version_type=linux # correct to gnu/linux during the next big refactor
11037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11038  soname_spec='${libname}${release}${shared_ext}$major'
11039  shlibpath_var=LD_LIBRARY_PATH
11040  ;;
11041
11042*)
11043  dynamic_linker=no
11044  ;;
11045esac
11046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11047$as_echo "$dynamic_linker" >&6; }
11048test "$dynamic_linker" = no && can_build_shared=no
11049
11050variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11051if test "$GCC" = yes; then
11052  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11053fi
11054
11055if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11056  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11057fi
11058if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11059  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11060fi
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11154$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11155hardcode_action=
11156if test -n "$hardcode_libdir_flag_spec" ||
11157   test -n "$runpath_var" ||
11158   test "X$hardcode_automatic" = "Xyes" ; then
11159
11160  # We can hardcode non-existent directories.
11161  if test "$hardcode_direct" != no &&
11162     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11163     # have to relink, otherwise we might link with an installed library
11164     # when we should be linking with a yet-to-be-installed one
11165     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11166     test "$hardcode_minus_L" != no; then
11167    # Linking always hardcodes the temporary library directory.
11168    hardcode_action=relink
11169  else
11170    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11171    hardcode_action=immediate
11172  fi
11173else
11174  # We cannot hardcode anything, or else we can only hardcode existing
11175  # directories.
11176  hardcode_action=unsupported
11177fi
11178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11179$as_echo "$hardcode_action" >&6; }
11180
11181if test "$hardcode_action" = relink ||
11182   test "$inherit_rpath" = yes; then
11183  # Fast installation is not supported
11184  enable_fast_install=no
11185elif test "$shlibpath_overrides_runpath" = yes ||
11186     test "$enable_shared" = no; then
11187  # Fast installation is not necessary
11188  enable_fast_install=needless
11189fi
11190
11191
11192
11193
11194
11195
11196  if test "x$enable_dlopen" != xyes; then
11197  enable_dlopen=unknown
11198  enable_dlopen_self=unknown
11199  enable_dlopen_self_static=unknown
11200else
11201  lt_cv_dlopen=no
11202  lt_cv_dlopen_libs=
11203
11204  case $host_os in
11205  beos*)
11206    lt_cv_dlopen="load_add_on"
11207    lt_cv_dlopen_libs=
11208    lt_cv_dlopen_self=yes
11209    ;;
11210
11211  mingw* | pw32* | cegcc*)
11212    lt_cv_dlopen="LoadLibrary"
11213    lt_cv_dlopen_libs=
11214    ;;
11215
11216  cygwin*)
11217    lt_cv_dlopen="dlopen"
11218    lt_cv_dlopen_libs=
11219    ;;
11220
11221  darwin*)
11222  # if libdl is installed we need to link against it
11223    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11224$as_echo_n "checking for dlopen in -ldl... " >&6; }
11225if ${ac_cv_lib_dl_dlopen+:} false; then :
11226  $as_echo_n "(cached) " >&6
11227else
11228  ac_check_lib_save_LIBS=$LIBS
11229LIBS="-ldl  $LIBS"
11230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11231/* end confdefs.h.  */
11232
11233/* Override any GCC internal prototype to avoid an error.
11234   Use char because int might match the return type of a GCC
11235   builtin and then its argument prototype would still apply.  */
11236#ifdef __cplusplus
11237extern "C"
11238#endif
11239char dlopen ();
11240int
11241main ()
11242{
11243return dlopen ();
11244  ;
11245  return 0;
11246}
11247_ACEOF
11248if ac_fn_c_try_link "$LINENO"; then :
11249  ac_cv_lib_dl_dlopen=yes
11250else
11251  ac_cv_lib_dl_dlopen=no
11252fi
11253rm -f core conftest.err conftest.$ac_objext \
11254    conftest$ac_exeext conftest.$ac_ext
11255LIBS=$ac_check_lib_save_LIBS
11256fi
11257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11258$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11259if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11260  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11261else
11262
11263    lt_cv_dlopen="dyld"
11264    lt_cv_dlopen_libs=
11265    lt_cv_dlopen_self=yes
11266
11267fi
11268
11269    ;;
11270
11271  *)
11272    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11273if test "x$ac_cv_func_shl_load" = xyes; then :
11274  lt_cv_dlopen="shl_load"
11275else
11276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11277$as_echo_n "checking for shl_load in -ldld... " >&6; }
11278if ${ac_cv_lib_dld_shl_load+:} false; then :
11279  $as_echo_n "(cached) " >&6
11280else
11281  ac_check_lib_save_LIBS=$LIBS
11282LIBS="-ldld  $LIBS"
11283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284/* end confdefs.h.  */
11285
11286/* Override any GCC internal prototype to avoid an error.
11287   Use char because int might match the return type of a GCC
11288   builtin and then its argument prototype would still apply.  */
11289#ifdef __cplusplus
11290extern "C"
11291#endif
11292char shl_load ();
11293int
11294main ()
11295{
11296return shl_load ();
11297  ;
11298  return 0;
11299}
11300_ACEOF
11301if ac_fn_c_try_link "$LINENO"; then :
11302  ac_cv_lib_dld_shl_load=yes
11303else
11304  ac_cv_lib_dld_shl_load=no
11305fi
11306rm -f core conftest.err conftest.$ac_objext \
11307    conftest$ac_exeext conftest.$ac_ext
11308LIBS=$ac_check_lib_save_LIBS
11309fi
11310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11311$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11312if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11313  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11314else
11315  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11316if test "x$ac_cv_func_dlopen" = xyes; then :
11317  lt_cv_dlopen="dlopen"
11318else
11319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11320$as_echo_n "checking for dlopen in -ldl... " >&6; }
11321if ${ac_cv_lib_dl_dlopen+:} false; then :
11322  $as_echo_n "(cached) " >&6
11323else
11324  ac_check_lib_save_LIBS=$LIBS
11325LIBS="-ldl  $LIBS"
11326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327/* end confdefs.h.  */
11328
11329/* Override any GCC internal prototype to avoid an error.
11330   Use char because int might match the return type of a GCC
11331   builtin and then its argument prototype would still apply.  */
11332#ifdef __cplusplus
11333extern "C"
11334#endif
11335char dlopen ();
11336int
11337main ()
11338{
11339return dlopen ();
11340  ;
11341  return 0;
11342}
11343_ACEOF
11344if ac_fn_c_try_link "$LINENO"; then :
11345  ac_cv_lib_dl_dlopen=yes
11346else
11347  ac_cv_lib_dl_dlopen=no
11348fi
11349rm -f core conftest.err conftest.$ac_objext \
11350    conftest$ac_exeext conftest.$ac_ext
11351LIBS=$ac_check_lib_save_LIBS
11352fi
11353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11354$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11355if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11356  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11357else
11358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11359$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11360if ${ac_cv_lib_svld_dlopen+:} false; then :
11361  $as_echo_n "(cached) " >&6
11362else
11363  ac_check_lib_save_LIBS=$LIBS
11364LIBS="-lsvld  $LIBS"
11365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366/* end confdefs.h.  */
11367
11368/* Override any GCC internal prototype to avoid an error.
11369   Use char because int might match the return type of a GCC
11370   builtin and then its argument prototype would still apply.  */
11371#ifdef __cplusplus
11372extern "C"
11373#endif
11374char dlopen ();
11375int
11376main ()
11377{
11378return dlopen ();
11379  ;
11380  return 0;
11381}
11382_ACEOF
11383if ac_fn_c_try_link "$LINENO"; then :
11384  ac_cv_lib_svld_dlopen=yes
11385else
11386  ac_cv_lib_svld_dlopen=no
11387fi
11388rm -f core conftest.err conftest.$ac_objext \
11389    conftest$ac_exeext conftest.$ac_ext
11390LIBS=$ac_check_lib_save_LIBS
11391fi
11392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11393$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11394if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11395  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11396else
11397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11398$as_echo_n "checking for dld_link in -ldld... " >&6; }
11399if ${ac_cv_lib_dld_dld_link+:} false; then :
11400  $as_echo_n "(cached) " >&6
11401else
11402  ac_check_lib_save_LIBS=$LIBS
11403LIBS="-ldld  $LIBS"
11404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405/* end confdefs.h.  */
11406
11407/* Override any GCC internal prototype to avoid an error.
11408   Use char because int might match the return type of a GCC
11409   builtin and then its argument prototype would still apply.  */
11410#ifdef __cplusplus
11411extern "C"
11412#endif
11413char dld_link ();
11414int
11415main ()
11416{
11417return dld_link ();
11418  ;
11419  return 0;
11420}
11421_ACEOF
11422if ac_fn_c_try_link "$LINENO"; then :
11423  ac_cv_lib_dld_dld_link=yes
11424else
11425  ac_cv_lib_dld_dld_link=no
11426fi
11427rm -f core conftest.err conftest.$ac_objext \
11428    conftest$ac_exeext conftest.$ac_ext
11429LIBS=$ac_check_lib_save_LIBS
11430fi
11431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11432$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11433if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11434  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11435fi
11436
11437
11438fi
11439
11440
11441fi
11442
11443
11444fi
11445
11446
11447fi
11448
11449
11450fi
11451
11452    ;;
11453  esac
11454
11455  if test "x$lt_cv_dlopen" != xno; then
11456    enable_dlopen=yes
11457  else
11458    enable_dlopen=no
11459  fi
11460
11461  case $lt_cv_dlopen in
11462  dlopen)
11463    save_CPPFLAGS="$CPPFLAGS"
11464    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11465
11466    save_LDFLAGS="$LDFLAGS"
11467    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11468
11469    save_LIBS="$LIBS"
11470    LIBS="$lt_cv_dlopen_libs $LIBS"
11471
11472    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11473$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11474if ${lt_cv_dlopen_self+:} false; then :
11475  $as_echo_n "(cached) " >&6
11476else
11477  	  if test "$cross_compiling" = yes; then :
11478  lt_cv_dlopen_self=cross
11479else
11480  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11481  lt_status=$lt_dlunknown
11482  cat > conftest.$ac_ext <<_LT_EOF
11483#line $LINENO "configure"
11484#include "confdefs.h"
11485
11486#if HAVE_DLFCN_H
11487#include <dlfcn.h>
11488#endif
11489
11490#include <stdio.h>
11491
11492#ifdef RTLD_GLOBAL
11493#  define LT_DLGLOBAL		RTLD_GLOBAL
11494#else
11495#  ifdef DL_GLOBAL
11496#    define LT_DLGLOBAL		DL_GLOBAL
11497#  else
11498#    define LT_DLGLOBAL		0
11499#  endif
11500#endif
11501
11502/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11503   find out it does not work in some platform. */
11504#ifndef LT_DLLAZY_OR_NOW
11505#  ifdef RTLD_LAZY
11506#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11507#  else
11508#    ifdef DL_LAZY
11509#      define LT_DLLAZY_OR_NOW		DL_LAZY
11510#    else
11511#      ifdef RTLD_NOW
11512#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11513#      else
11514#        ifdef DL_NOW
11515#          define LT_DLLAZY_OR_NOW	DL_NOW
11516#        else
11517#          define LT_DLLAZY_OR_NOW	0
11518#        endif
11519#      endif
11520#    endif
11521#  endif
11522#endif
11523
11524/* When -fvisbility=hidden is used, assume the code has been annotated
11525   correspondingly for the symbols needed.  */
11526#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11527int fnord () __attribute__((visibility("default")));
11528#endif
11529
11530int fnord () { return 42; }
11531int main ()
11532{
11533  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11534  int status = $lt_dlunknown;
11535
11536  if (self)
11537    {
11538      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11539      else
11540        {
11541	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11542          else puts (dlerror ());
11543	}
11544      /* dlclose (self); */
11545    }
11546  else
11547    puts (dlerror ());
11548
11549  return status;
11550}
11551_LT_EOF
11552  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11553  (eval $ac_link) 2>&5
11554  ac_status=$?
11555  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11556  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11557    (./conftest; exit; ) >&5 2>/dev/null
11558    lt_status=$?
11559    case x$lt_status in
11560      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11561      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11562      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11563    esac
11564  else :
11565    # compilation failed
11566    lt_cv_dlopen_self=no
11567  fi
11568fi
11569rm -fr conftest*
11570
11571
11572fi
11573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11574$as_echo "$lt_cv_dlopen_self" >&6; }
11575
11576    if test "x$lt_cv_dlopen_self" = xyes; then
11577      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11578      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11579$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11580if ${lt_cv_dlopen_self_static+:} false; then :
11581  $as_echo_n "(cached) " >&6
11582else
11583  	  if test "$cross_compiling" = yes; then :
11584  lt_cv_dlopen_self_static=cross
11585else
11586  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11587  lt_status=$lt_dlunknown
11588  cat > conftest.$ac_ext <<_LT_EOF
11589#line $LINENO "configure"
11590#include "confdefs.h"
11591
11592#if HAVE_DLFCN_H
11593#include <dlfcn.h>
11594#endif
11595
11596#include <stdio.h>
11597
11598#ifdef RTLD_GLOBAL
11599#  define LT_DLGLOBAL		RTLD_GLOBAL
11600#else
11601#  ifdef DL_GLOBAL
11602#    define LT_DLGLOBAL		DL_GLOBAL
11603#  else
11604#    define LT_DLGLOBAL		0
11605#  endif
11606#endif
11607
11608/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11609   find out it does not work in some platform. */
11610#ifndef LT_DLLAZY_OR_NOW
11611#  ifdef RTLD_LAZY
11612#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11613#  else
11614#    ifdef DL_LAZY
11615#      define LT_DLLAZY_OR_NOW		DL_LAZY
11616#    else
11617#      ifdef RTLD_NOW
11618#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11619#      else
11620#        ifdef DL_NOW
11621#          define LT_DLLAZY_OR_NOW	DL_NOW
11622#        else
11623#          define LT_DLLAZY_OR_NOW	0
11624#        endif
11625#      endif
11626#    endif
11627#  endif
11628#endif
11629
11630/* When -fvisbility=hidden is used, assume the code has been annotated
11631   correspondingly for the symbols needed.  */
11632#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11633int fnord () __attribute__((visibility("default")));
11634#endif
11635
11636int fnord () { return 42; }
11637int main ()
11638{
11639  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11640  int status = $lt_dlunknown;
11641
11642  if (self)
11643    {
11644      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11645      else
11646        {
11647	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11648          else puts (dlerror ());
11649	}
11650      /* dlclose (self); */
11651    }
11652  else
11653    puts (dlerror ());
11654
11655  return status;
11656}
11657_LT_EOF
11658  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11659  (eval $ac_link) 2>&5
11660  ac_status=$?
11661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11662  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11663    (./conftest; exit; ) >&5 2>/dev/null
11664    lt_status=$?
11665    case x$lt_status in
11666      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11667      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11668      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11669    esac
11670  else :
11671    # compilation failed
11672    lt_cv_dlopen_self_static=no
11673  fi
11674fi
11675rm -fr conftest*
11676
11677
11678fi
11679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11680$as_echo "$lt_cv_dlopen_self_static" >&6; }
11681    fi
11682
11683    CPPFLAGS="$save_CPPFLAGS"
11684    LDFLAGS="$save_LDFLAGS"
11685    LIBS="$save_LIBS"
11686    ;;
11687  esac
11688
11689  case $lt_cv_dlopen_self in
11690  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11691  *) enable_dlopen_self=unknown ;;
11692  esac
11693
11694  case $lt_cv_dlopen_self_static in
11695  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11696  *) enable_dlopen_self_static=unknown ;;
11697  esac
11698fi
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716striplib=
11717old_striplib=
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11719$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11720if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11721  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11722  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11724$as_echo "yes" >&6; }
11725else
11726# FIXME - insert some real tests, host_os isn't really good enough
11727  case $host_os in
11728  darwin*)
11729    if test -n "$STRIP" ; then
11730      striplib="$STRIP -x"
11731      old_striplib="$STRIP -S"
11732      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11733$as_echo "yes" >&6; }
11734    else
11735      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736$as_echo "no" >&6; }
11737    fi
11738    ;;
11739  *)
11740    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741$as_echo "no" >&6; }
11742    ;;
11743  esac
11744fi
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757  # Report which library types will actually be built
11758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11759$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11761$as_echo "$can_build_shared" >&6; }
11762
11763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11764$as_echo_n "checking whether to build shared libraries... " >&6; }
11765  test "$can_build_shared" = "no" && enable_shared=no
11766
11767  # On AIX, shared libraries and static libraries use the same namespace, and
11768  # are all built from PIC.
11769  case $host_os in
11770  aix3*)
11771    test "$enable_shared" = yes && enable_static=no
11772    if test -n "$RANLIB"; then
11773      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11774      postinstall_cmds='$RANLIB $lib'
11775    fi
11776    ;;
11777
11778  aix[4-9]*)
11779    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11780      test "$enable_shared" = yes && enable_static=no
11781    fi
11782    ;;
11783  esac
11784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11785$as_echo "$enable_shared" >&6; }
11786
11787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11788$as_echo_n "checking whether to build static libraries... " >&6; }
11789  # Make sure either enable_shared or enable_static is yes.
11790  test "$enable_shared" = yes || enable_static=yes
11791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11792$as_echo "$enable_static" >&6; }
11793
11794
11795
11796
11797fi
11798ac_ext=c
11799ac_cpp='$CPP $CPPFLAGS'
11800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11802ac_compiler_gnu=$ac_cv_c_compiler_gnu
11803
11804CC="$lt_save_CC"
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820        ac_config_commands="$ac_config_commands libtool"
11821
11822
11823
11824
11825# Only expand once:
11826
11827
11828
11829# Require xorg-macros minimum of 1.10 for DocBook XML documentation
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11842$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11843if ${ac_cv_prog_cc_c99+:} false; then :
11844  $as_echo_n "(cached) " >&6
11845else
11846  ac_cv_prog_cc_c99=no
11847ac_save_CC=$CC
11848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11849/* end confdefs.h.  */
11850#include <stdarg.h>
11851#include <stdbool.h>
11852#include <stdlib.h>
11853#include <wchar.h>
11854#include <stdio.h>
11855
11856// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11857#define debug(...) fprintf (stderr, __VA_ARGS__)
11858#define showlist(...) puts (#__VA_ARGS__)
11859#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11860static void
11861test_varargs_macros (void)
11862{
11863  int x = 1234;
11864  int y = 5678;
11865  debug ("Flag");
11866  debug ("X = %d\n", x);
11867  showlist (The first, second, and third items.);
11868  report (x>y, "x is %d but y is %d", x, y);
11869}
11870
11871// Check long long types.
11872#define BIG64 18446744073709551615ull
11873#define BIG32 4294967295ul
11874#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11875#if !BIG_OK
11876  your preprocessor is broken;
11877#endif
11878#if BIG_OK
11879#else
11880  your preprocessor is broken;
11881#endif
11882static long long int bignum = -9223372036854775807LL;
11883static unsigned long long int ubignum = BIG64;
11884
11885struct incomplete_array
11886{
11887  int datasize;
11888  double data[];
11889};
11890
11891struct named_init {
11892  int number;
11893  const wchar_t *name;
11894  double average;
11895};
11896
11897typedef const char *ccp;
11898
11899static inline int
11900test_restrict (ccp restrict text)
11901{
11902  // See if C++-style comments work.
11903  // Iterate through items via the restricted pointer.
11904  // Also check for declarations in for loops.
11905  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11906    continue;
11907  return 0;
11908}
11909
11910// Check varargs and va_copy.
11911static void
11912test_varargs (const char *format, ...)
11913{
11914  va_list args;
11915  va_start (args, format);
11916  va_list args_copy;
11917  va_copy (args_copy, args);
11918
11919  const char *str;
11920  int number;
11921  float fnumber;
11922
11923  while (*format)
11924    {
11925      switch (*format++)
11926	{
11927	case 's': // string
11928	  str = va_arg (args_copy, const char *);
11929	  break;
11930	case 'd': // int
11931	  number = va_arg (args_copy, int);
11932	  break;
11933	case 'f': // float
11934	  fnumber = va_arg (args_copy, double);
11935	  break;
11936	default:
11937	  break;
11938	}
11939    }
11940  va_end (args_copy);
11941  va_end (args);
11942}
11943
11944int
11945main ()
11946{
11947
11948  // Check bool.
11949  _Bool success = false;
11950
11951  // Check restrict.
11952  if (test_restrict ("String literal") == 0)
11953    success = true;
11954  char *restrict newvar = "Another string";
11955
11956  // Check varargs.
11957  test_varargs ("s, d' f .", "string", 65, 34.234);
11958  test_varargs_macros ();
11959
11960  // Check flexible array members.
11961  struct incomplete_array *ia =
11962    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11963  ia->datasize = 10;
11964  for (int i = 0; i < ia->datasize; ++i)
11965    ia->data[i] = i * 1.234;
11966
11967  // Check named initializers.
11968  struct named_init ni = {
11969    .number = 34,
11970    .name = L"Test wide string",
11971    .average = 543.34343,
11972  };
11973
11974  ni.number = 58;
11975
11976  int dynamic_array[ni.number];
11977  dynamic_array[ni.number - 1] = 543;
11978
11979  // work around unused variable warnings
11980  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11981	  || dynamic_array[ni.number - 1] != 543);
11982
11983  ;
11984  return 0;
11985}
11986_ACEOF
11987for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11988do
11989  CC="$ac_save_CC $ac_arg"
11990  if ac_fn_c_try_compile "$LINENO"; then :
11991  ac_cv_prog_cc_c99=$ac_arg
11992fi
11993rm -f core conftest.err conftest.$ac_objext
11994  test "x$ac_cv_prog_cc_c99" != "xno" && break
11995done
11996rm -f conftest.$ac_ext
11997CC=$ac_save_CC
11998
11999fi
12000# AC_CACHE_VAL
12001case "x$ac_cv_prog_cc_c99" in
12002  x)
12003    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12004$as_echo "none needed" >&6; } ;;
12005  xno)
12006    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12007$as_echo "unsupported" >&6; } ;;
12008  *)
12009    CC="$CC $ac_cv_prog_cc_c99"
12010    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12011$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12012esac
12013if test "x$ac_cv_prog_cc_c99" != xno; then :
12014
12015fi
12016
12017
12018
12019
12020
12021
12022ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12023if test "x$ac_cv_have_decl___clang__" = xyes; then :
12024  CLANGCC="yes"
12025else
12026  CLANGCC="no"
12027fi
12028
12029ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12030if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12031  INTELCC="yes"
12032else
12033  INTELCC="no"
12034fi
12035
12036ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12037if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12038  SUNCC="yes"
12039else
12040  SUNCC="no"
12041fi
12042
12043
12044
12045
12046if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12047	if test -n "$ac_tool_prefix"; then
12048  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12049set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051$as_echo_n "checking for $ac_word... " >&6; }
12052if ${ac_cv_path_PKG_CONFIG+:} false; then :
12053  $as_echo_n "(cached) " >&6
12054else
12055  case $PKG_CONFIG in
12056  [\\/]* | ?:[\\/]*)
12057  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12058  ;;
12059  *)
12060  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12061for as_dir in $PATH
12062do
12063  IFS=$as_save_IFS
12064  test -z "$as_dir" && as_dir=.
12065    for ac_exec_ext in '' $ac_executable_extensions; do
12066  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12067    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12068    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12069    break 2
12070  fi
12071done
12072  done
12073IFS=$as_save_IFS
12074
12075  ;;
12076esac
12077fi
12078PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12079if test -n "$PKG_CONFIG"; then
12080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12081$as_echo "$PKG_CONFIG" >&6; }
12082else
12083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084$as_echo "no" >&6; }
12085fi
12086
12087
12088fi
12089if test -z "$ac_cv_path_PKG_CONFIG"; then
12090  ac_pt_PKG_CONFIG=$PKG_CONFIG
12091  # Extract the first word of "pkg-config", so it can be a program name with args.
12092set dummy pkg-config; ac_word=$2
12093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12094$as_echo_n "checking for $ac_word... " >&6; }
12095if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12096  $as_echo_n "(cached) " >&6
12097else
12098  case $ac_pt_PKG_CONFIG in
12099  [\\/]* | ?:[\\/]*)
12100  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12101  ;;
12102  *)
12103  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104for as_dir in $PATH
12105do
12106  IFS=$as_save_IFS
12107  test -z "$as_dir" && as_dir=.
12108    for ac_exec_ext in '' $ac_executable_extensions; do
12109  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12110    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12112    break 2
12113  fi
12114done
12115  done
12116IFS=$as_save_IFS
12117
12118  ;;
12119esac
12120fi
12121ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12122if test -n "$ac_pt_PKG_CONFIG"; then
12123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12124$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12125else
12126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127$as_echo "no" >&6; }
12128fi
12129
12130  if test "x$ac_pt_PKG_CONFIG" = x; then
12131    PKG_CONFIG=""
12132  else
12133    case $cross_compiling:$ac_tool_warned in
12134yes:)
12135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12137ac_tool_warned=yes ;;
12138esac
12139    PKG_CONFIG=$ac_pt_PKG_CONFIG
12140  fi
12141else
12142  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12143fi
12144
12145fi
12146if test -n "$PKG_CONFIG"; then
12147	_pkg_min_version=0.9.0
12148	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12149$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12150	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12151		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12152$as_echo "yes" >&6; }
12153	else
12154		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155$as_echo "no" >&6; }
12156		PKG_CONFIG=""
12157	fi
12158
12159fi
12160
12161
12162
12163
12164
12165# Check whether --enable-selective-werror was given.
12166if test "${enable_selective_werror+set}" = set; then :
12167  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12168else
12169  SELECTIVE_WERROR=yes
12170fi
12171
12172
12173
12174
12175
12176# -v is too short to test reliably with XORG_TESTSET_CFLAG
12177if test "x$SUNCC" = "xyes"; then
12178    BASE_CFLAGS="-v"
12179else
12180    BASE_CFLAGS=""
12181fi
12182
12183# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197xorg_testset_save_CFLAGS="$CFLAGS"
12198
12199if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12200	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12201	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12202$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12203if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12204  $as_echo_n "(cached) " >&6
12205else
12206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207/* end confdefs.h.  */
12208int i;
12209_ACEOF
12210if ac_fn_c_try_compile "$LINENO"; then :
12211  xorg_cv_cc_flag_unknown_warning_option=yes
12212else
12213  xorg_cv_cc_flag_unknown_warning_option=no
12214fi
12215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12216fi
12217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12218$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12219	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12220	CFLAGS="$xorg_testset_save_CFLAGS"
12221fi
12222
12223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12224	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12225		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12226	fi
12227	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12228	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12229$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12230if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12231  $as_echo_n "(cached) " >&6
12232else
12233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12234/* end confdefs.h.  */
12235int i;
12236_ACEOF
12237if ac_fn_c_try_compile "$LINENO"; then :
12238  xorg_cv_cc_flag_unused_command_line_argument=yes
12239else
12240  xorg_cv_cc_flag_unused_command_line_argument=no
12241fi
12242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12243fi
12244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12245$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12246	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12247	CFLAGS="$xorg_testset_save_CFLAGS"
12248fi
12249
12250found="no"
12251
12252	if test $found = "no" ; then
12253		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12254			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12255		fi
12256
12257		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12258			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12259		fi
12260
12261		CFLAGS="$CFLAGS -Wall"
12262
12263		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12264$as_echo_n "checking if $CC supports -Wall... " >&6; }
12265		cacheid=xorg_cv_cc_flag__Wall
12266		if eval \${$cacheid+:} false; then :
12267  $as_echo_n "(cached) " >&6
12268else
12269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270/* end confdefs.h.  */
12271int i;
12272int
12273main ()
12274{
12275
12276  ;
12277  return 0;
12278}
12279_ACEOF
12280if ac_fn_c_try_link "$LINENO"; then :
12281  eval $cacheid=yes
12282else
12283  eval $cacheid=no
12284fi
12285rm -f core conftest.err conftest.$ac_objext \
12286    conftest$ac_exeext conftest.$ac_ext
12287fi
12288
12289
12290		CFLAGS="$xorg_testset_save_CFLAGS"
12291
12292		eval supported=\$$cacheid
12293		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12294$as_echo "$supported" >&6; }
12295		if test "$supported" = "yes" ; then
12296			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12297			found="yes"
12298		fi
12299	fi
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315xorg_testset_save_CFLAGS="$CFLAGS"
12316
12317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12318	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12319	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12320$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12321if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12322  $as_echo_n "(cached) " >&6
12323else
12324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325/* end confdefs.h.  */
12326int i;
12327_ACEOF
12328if ac_fn_c_try_compile "$LINENO"; then :
12329  xorg_cv_cc_flag_unknown_warning_option=yes
12330else
12331  xorg_cv_cc_flag_unknown_warning_option=no
12332fi
12333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12334fi
12335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12336$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12337	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12338	CFLAGS="$xorg_testset_save_CFLAGS"
12339fi
12340
12341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12342	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12343		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12344	fi
12345	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12346	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12347$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12348if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12349  $as_echo_n "(cached) " >&6
12350else
12351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352/* end confdefs.h.  */
12353int i;
12354_ACEOF
12355if ac_fn_c_try_compile "$LINENO"; then :
12356  xorg_cv_cc_flag_unused_command_line_argument=yes
12357else
12358  xorg_cv_cc_flag_unused_command_line_argument=no
12359fi
12360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12361fi
12362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12363$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12364	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12365	CFLAGS="$xorg_testset_save_CFLAGS"
12366fi
12367
12368found="no"
12369
12370	if test $found = "no" ; then
12371		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12372			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12373		fi
12374
12375		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12376			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12377		fi
12378
12379		CFLAGS="$CFLAGS -Wpointer-arith"
12380
12381		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12382$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12383		cacheid=xorg_cv_cc_flag__Wpointer_arith
12384		if eval \${$cacheid+:} false; then :
12385  $as_echo_n "(cached) " >&6
12386else
12387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388/* end confdefs.h.  */
12389int i;
12390int
12391main ()
12392{
12393
12394  ;
12395  return 0;
12396}
12397_ACEOF
12398if ac_fn_c_try_link "$LINENO"; then :
12399  eval $cacheid=yes
12400else
12401  eval $cacheid=no
12402fi
12403rm -f core conftest.err conftest.$ac_objext \
12404    conftest$ac_exeext conftest.$ac_ext
12405fi
12406
12407
12408		CFLAGS="$xorg_testset_save_CFLAGS"
12409
12410		eval supported=\$$cacheid
12411		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12412$as_echo "$supported" >&6; }
12413		if test "$supported" = "yes" ; then
12414			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12415			found="yes"
12416		fi
12417	fi
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433xorg_testset_save_CFLAGS="$CFLAGS"
12434
12435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12436	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12437	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12438$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12439if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12440  $as_echo_n "(cached) " >&6
12441else
12442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12443/* end confdefs.h.  */
12444int i;
12445_ACEOF
12446if ac_fn_c_try_compile "$LINENO"; then :
12447  xorg_cv_cc_flag_unknown_warning_option=yes
12448else
12449  xorg_cv_cc_flag_unknown_warning_option=no
12450fi
12451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12452fi
12453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12454$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12455	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12456	CFLAGS="$xorg_testset_save_CFLAGS"
12457fi
12458
12459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12460	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12461		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12462	fi
12463	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12464	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12465$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12466if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12467  $as_echo_n "(cached) " >&6
12468else
12469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470/* end confdefs.h.  */
12471int i;
12472_ACEOF
12473if ac_fn_c_try_compile "$LINENO"; then :
12474  xorg_cv_cc_flag_unused_command_line_argument=yes
12475else
12476  xorg_cv_cc_flag_unused_command_line_argument=no
12477fi
12478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479fi
12480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12481$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12482	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12483	CFLAGS="$xorg_testset_save_CFLAGS"
12484fi
12485
12486found="no"
12487
12488	if test $found = "no" ; then
12489		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12490			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12491		fi
12492
12493		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12494			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12495		fi
12496
12497		CFLAGS="$CFLAGS -Wmissing-declarations"
12498
12499		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12500$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12501		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12502		if eval \${$cacheid+:} false; then :
12503  $as_echo_n "(cached) " >&6
12504else
12505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506/* end confdefs.h.  */
12507int i;
12508int
12509main ()
12510{
12511
12512  ;
12513  return 0;
12514}
12515_ACEOF
12516if ac_fn_c_try_link "$LINENO"; then :
12517  eval $cacheid=yes
12518else
12519  eval $cacheid=no
12520fi
12521rm -f core conftest.err conftest.$ac_objext \
12522    conftest$ac_exeext conftest.$ac_ext
12523fi
12524
12525
12526		CFLAGS="$xorg_testset_save_CFLAGS"
12527
12528		eval supported=\$$cacheid
12529		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12530$as_echo "$supported" >&6; }
12531		if test "$supported" = "yes" ; then
12532			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12533			found="yes"
12534		fi
12535	fi
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551xorg_testset_save_CFLAGS="$CFLAGS"
12552
12553if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12554	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12556$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12557if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12558  $as_echo_n "(cached) " >&6
12559else
12560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12561/* end confdefs.h.  */
12562int i;
12563_ACEOF
12564if ac_fn_c_try_compile "$LINENO"; then :
12565  xorg_cv_cc_flag_unknown_warning_option=yes
12566else
12567  xorg_cv_cc_flag_unknown_warning_option=no
12568fi
12569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12570fi
12571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12572$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12573	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12574	CFLAGS="$xorg_testset_save_CFLAGS"
12575fi
12576
12577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12578	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12579		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12580	fi
12581	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12582	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12583$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12584if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12585  $as_echo_n "(cached) " >&6
12586else
12587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12588/* end confdefs.h.  */
12589int i;
12590_ACEOF
12591if ac_fn_c_try_compile "$LINENO"; then :
12592  xorg_cv_cc_flag_unused_command_line_argument=yes
12593else
12594  xorg_cv_cc_flag_unused_command_line_argument=no
12595fi
12596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12597fi
12598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12599$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12600	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12601	CFLAGS="$xorg_testset_save_CFLAGS"
12602fi
12603
12604found="no"
12605
12606	if test $found = "no" ; then
12607		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12608			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12609		fi
12610
12611		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12612			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12613		fi
12614
12615		CFLAGS="$CFLAGS -Wformat=2"
12616
12617		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12618$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12619		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12620		if eval \${$cacheid+:} false; then :
12621  $as_echo_n "(cached) " >&6
12622else
12623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624/* end confdefs.h.  */
12625int i;
12626int
12627main ()
12628{
12629
12630  ;
12631  return 0;
12632}
12633_ACEOF
12634if ac_fn_c_try_link "$LINENO"; then :
12635  eval $cacheid=yes
12636else
12637  eval $cacheid=no
12638fi
12639rm -f core conftest.err conftest.$ac_objext \
12640    conftest$ac_exeext conftest.$ac_ext
12641fi
12642
12643
12644		CFLAGS="$xorg_testset_save_CFLAGS"
12645
12646		eval supported=\$$cacheid
12647		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12648$as_echo "$supported" >&6; }
12649		if test "$supported" = "yes" ; then
12650			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12651			found="yes"
12652		fi
12653	fi
12654
12655	if test $found = "no" ; then
12656		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12657			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12658		fi
12659
12660		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12661			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12662		fi
12663
12664		CFLAGS="$CFLAGS -Wformat"
12665
12666		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12667$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12668		cacheid=xorg_cv_cc_flag__Wformat
12669		if eval \${$cacheid+:} false; then :
12670  $as_echo_n "(cached) " >&6
12671else
12672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673/* end confdefs.h.  */
12674int i;
12675int
12676main ()
12677{
12678
12679  ;
12680  return 0;
12681}
12682_ACEOF
12683if ac_fn_c_try_link "$LINENO"; then :
12684  eval $cacheid=yes
12685else
12686  eval $cacheid=no
12687fi
12688rm -f core conftest.err conftest.$ac_objext \
12689    conftest$ac_exeext conftest.$ac_ext
12690fi
12691
12692
12693		CFLAGS="$xorg_testset_save_CFLAGS"
12694
12695		eval supported=\$$cacheid
12696		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12697$as_echo "$supported" >&6; }
12698		if test "$supported" = "yes" ; then
12699			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12700			found="yes"
12701		fi
12702	fi
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720xorg_testset_save_CFLAGS="$CFLAGS"
12721
12722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12723	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12724	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12725$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12726if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12727  $as_echo_n "(cached) " >&6
12728else
12729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730/* end confdefs.h.  */
12731int i;
12732_ACEOF
12733if ac_fn_c_try_compile "$LINENO"; then :
12734  xorg_cv_cc_flag_unknown_warning_option=yes
12735else
12736  xorg_cv_cc_flag_unknown_warning_option=no
12737fi
12738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12739fi
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12741$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12742	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12743	CFLAGS="$xorg_testset_save_CFLAGS"
12744fi
12745
12746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12747	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12748		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12749	fi
12750	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12752$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12753if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12754  $as_echo_n "(cached) " >&6
12755else
12756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757/* end confdefs.h.  */
12758int i;
12759_ACEOF
12760if ac_fn_c_try_compile "$LINENO"; then :
12761  xorg_cv_cc_flag_unused_command_line_argument=yes
12762else
12763  xorg_cv_cc_flag_unused_command_line_argument=no
12764fi
12765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12766fi
12767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12768$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12769	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12770	CFLAGS="$xorg_testset_save_CFLAGS"
12771fi
12772
12773found="no"
12774
12775	if test $found = "no" ; then
12776		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12777			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12778		fi
12779
12780		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12781			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12782		fi
12783
12784		CFLAGS="$CFLAGS -Wstrict-prototypes"
12785
12786		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12787$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12788		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12789		if eval \${$cacheid+:} false; then :
12790  $as_echo_n "(cached) " >&6
12791else
12792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793/* end confdefs.h.  */
12794int i;
12795int
12796main ()
12797{
12798
12799  ;
12800  return 0;
12801}
12802_ACEOF
12803if ac_fn_c_try_link "$LINENO"; then :
12804  eval $cacheid=yes
12805else
12806  eval $cacheid=no
12807fi
12808rm -f core conftest.err conftest.$ac_objext \
12809    conftest$ac_exeext conftest.$ac_ext
12810fi
12811
12812
12813		CFLAGS="$xorg_testset_save_CFLAGS"
12814
12815		eval supported=\$$cacheid
12816		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12817$as_echo "$supported" >&6; }
12818		if test "$supported" = "yes" ; then
12819			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12820			found="yes"
12821		fi
12822	fi
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838xorg_testset_save_CFLAGS="$CFLAGS"
12839
12840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12841	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12842	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12843$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12844if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12845  $as_echo_n "(cached) " >&6
12846else
12847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848/* end confdefs.h.  */
12849int i;
12850_ACEOF
12851if ac_fn_c_try_compile "$LINENO"; then :
12852  xorg_cv_cc_flag_unknown_warning_option=yes
12853else
12854  xorg_cv_cc_flag_unknown_warning_option=no
12855fi
12856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12857fi
12858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12859$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12860	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12861	CFLAGS="$xorg_testset_save_CFLAGS"
12862fi
12863
12864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12865	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12866		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12867	fi
12868	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12870$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12871if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12872  $as_echo_n "(cached) " >&6
12873else
12874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875/* end confdefs.h.  */
12876int i;
12877_ACEOF
12878if ac_fn_c_try_compile "$LINENO"; then :
12879  xorg_cv_cc_flag_unused_command_line_argument=yes
12880else
12881  xorg_cv_cc_flag_unused_command_line_argument=no
12882fi
12883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12884fi
12885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12886$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12887	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12888	CFLAGS="$xorg_testset_save_CFLAGS"
12889fi
12890
12891found="no"
12892
12893	if test $found = "no" ; then
12894		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12895			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12896		fi
12897
12898		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12899			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12900		fi
12901
12902		CFLAGS="$CFLAGS -Wmissing-prototypes"
12903
12904		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12905$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12906		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12907		if eval \${$cacheid+:} false; then :
12908  $as_echo_n "(cached) " >&6
12909else
12910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911/* end confdefs.h.  */
12912int i;
12913int
12914main ()
12915{
12916
12917  ;
12918  return 0;
12919}
12920_ACEOF
12921if ac_fn_c_try_link "$LINENO"; then :
12922  eval $cacheid=yes
12923else
12924  eval $cacheid=no
12925fi
12926rm -f core conftest.err conftest.$ac_objext \
12927    conftest$ac_exeext conftest.$ac_ext
12928fi
12929
12930
12931		CFLAGS="$xorg_testset_save_CFLAGS"
12932
12933		eval supported=\$$cacheid
12934		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12935$as_echo "$supported" >&6; }
12936		if test "$supported" = "yes" ; then
12937			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12938			found="yes"
12939		fi
12940	fi
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956xorg_testset_save_CFLAGS="$CFLAGS"
12957
12958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12959	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12960	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12961$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12962if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12963  $as_echo_n "(cached) " >&6
12964else
12965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966/* end confdefs.h.  */
12967int i;
12968_ACEOF
12969if ac_fn_c_try_compile "$LINENO"; then :
12970  xorg_cv_cc_flag_unknown_warning_option=yes
12971else
12972  xorg_cv_cc_flag_unknown_warning_option=no
12973fi
12974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12975fi
12976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12977$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12978	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12979	CFLAGS="$xorg_testset_save_CFLAGS"
12980fi
12981
12982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12983	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12984		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12985	fi
12986	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12987	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12988$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12989if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12990  $as_echo_n "(cached) " >&6
12991else
12992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12993/* end confdefs.h.  */
12994int i;
12995_ACEOF
12996if ac_fn_c_try_compile "$LINENO"; then :
12997  xorg_cv_cc_flag_unused_command_line_argument=yes
12998else
12999  xorg_cv_cc_flag_unused_command_line_argument=no
13000fi
13001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13002fi
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13004$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13005	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13006	CFLAGS="$xorg_testset_save_CFLAGS"
13007fi
13008
13009found="no"
13010
13011	if test $found = "no" ; then
13012		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13013			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13014		fi
13015
13016		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13017			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13018		fi
13019
13020		CFLAGS="$CFLAGS -Wnested-externs"
13021
13022		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13023$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13024		cacheid=xorg_cv_cc_flag__Wnested_externs
13025		if eval \${$cacheid+:} false; then :
13026  $as_echo_n "(cached) " >&6
13027else
13028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029/* end confdefs.h.  */
13030int i;
13031int
13032main ()
13033{
13034
13035  ;
13036  return 0;
13037}
13038_ACEOF
13039if ac_fn_c_try_link "$LINENO"; then :
13040  eval $cacheid=yes
13041else
13042  eval $cacheid=no
13043fi
13044rm -f core conftest.err conftest.$ac_objext \
13045    conftest$ac_exeext conftest.$ac_ext
13046fi
13047
13048
13049		CFLAGS="$xorg_testset_save_CFLAGS"
13050
13051		eval supported=\$$cacheid
13052		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13053$as_echo "$supported" >&6; }
13054		if test "$supported" = "yes" ; then
13055			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13056			found="yes"
13057		fi
13058	fi
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074xorg_testset_save_CFLAGS="$CFLAGS"
13075
13076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13077	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13078	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13079$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13080if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13081  $as_echo_n "(cached) " >&6
13082else
13083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084/* end confdefs.h.  */
13085int i;
13086_ACEOF
13087if ac_fn_c_try_compile "$LINENO"; then :
13088  xorg_cv_cc_flag_unknown_warning_option=yes
13089else
13090  xorg_cv_cc_flag_unknown_warning_option=no
13091fi
13092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13093fi
13094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13095$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13096	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13097	CFLAGS="$xorg_testset_save_CFLAGS"
13098fi
13099
13100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13101	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13102		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13103	fi
13104	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13105	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13106$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13107if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13108  $as_echo_n "(cached) " >&6
13109else
13110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111/* end confdefs.h.  */
13112int i;
13113_ACEOF
13114if ac_fn_c_try_compile "$LINENO"; then :
13115  xorg_cv_cc_flag_unused_command_line_argument=yes
13116else
13117  xorg_cv_cc_flag_unused_command_line_argument=no
13118fi
13119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13120fi
13121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13122$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13123	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13124	CFLAGS="$xorg_testset_save_CFLAGS"
13125fi
13126
13127found="no"
13128
13129	if test $found = "no" ; then
13130		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13131			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13132		fi
13133
13134		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13135			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13136		fi
13137
13138		CFLAGS="$CFLAGS -Wbad-function-cast"
13139
13140		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13141$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13142		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13143		if eval \${$cacheid+:} false; then :
13144  $as_echo_n "(cached) " >&6
13145else
13146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147/* end confdefs.h.  */
13148int i;
13149int
13150main ()
13151{
13152
13153  ;
13154  return 0;
13155}
13156_ACEOF
13157if ac_fn_c_try_link "$LINENO"; then :
13158  eval $cacheid=yes
13159else
13160  eval $cacheid=no
13161fi
13162rm -f core conftest.err conftest.$ac_objext \
13163    conftest$ac_exeext conftest.$ac_ext
13164fi
13165
13166
13167		CFLAGS="$xorg_testset_save_CFLAGS"
13168
13169		eval supported=\$$cacheid
13170		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13171$as_echo "$supported" >&6; }
13172		if test "$supported" = "yes" ; then
13173			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13174			found="yes"
13175		fi
13176	fi
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192xorg_testset_save_CFLAGS="$CFLAGS"
13193
13194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13195	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13196	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13197$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13198if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13199  $as_echo_n "(cached) " >&6
13200else
13201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202/* end confdefs.h.  */
13203int i;
13204_ACEOF
13205if ac_fn_c_try_compile "$LINENO"; then :
13206  xorg_cv_cc_flag_unknown_warning_option=yes
13207else
13208  xorg_cv_cc_flag_unknown_warning_option=no
13209fi
13210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211fi
13212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13213$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13214	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13215	CFLAGS="$xorg_testset_save_CFLAGS"
13216fi
13217
13218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13219	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13220		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13221	fi
13222	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13223	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13224$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13225if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13226  $as_echo_n "(cached) " >&6
13227else
13228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229/* end confdefs.h.  */
13230int i;
13231_ACEOF
13232if ac_fn_c_try_compile "$LINENO"; then :
13233  xorg_cv_cc_flag_unused_command_line_argument=yes
13234else
13235  xorg_cv_cc_flag_unused_command_line_argument=no
13236fi
13237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13238fi
13239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13240$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13241	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13242	CFLAGS="$xorg_testset_save_CFLAGS"
13243fi
13244
13245found="no"
13246
13247	if test $found = "no" ; then
13248		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13249			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13250		fi
13251
13252		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13253			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13254		fi
13255
13256		CFLAGS="$CFLAGS -Wold-style-definition"
13257
13258		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13259$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13260		cacheid=xorg_cv_cc_flag__Wold_style_definition
13261		if eval \${$cacheid+:} false; then :
13262  $as_echo_n "(cached) " >&6
13263else
13264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13265/* end confdefs.h.  */
13266int i;
13267int
13268main ()
13269{
13270
13271  ;
13272  return 0;
13273}
13274_ACEOF
13275if ac_fn_c_try_link "$LINENO"; then :
13276  eval $cacheid=yes
13277else
13278  eval $cacheid=no
13279fi
13280rm -f core conftest.err conftest.$ac_objext \
13281    conftest$ac_exeext conftest.$ac_ext
13282fi
13283
13284
13285		CFLAGS="$xorg_testset_save_CFLAGS"
13286
13287		eval supported=\$$cacheid
13288		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13289$as_echo "$supported" >&6; }
13290		if test "$supported" = "yes" ; then
13291			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13292			found="yes"
13293		fi
13294	fi
13295
13296	if test $found = "no" ; then
13297		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13298			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13299		fi
13300
13301		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13302			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13303		fi
13304
13305		CFLAGS="$CFLAGS -fd"
13306
13307		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13308$as_echo_n "checking if $CC supports -fd... " >&6; }
13309		cacheid=xorg_cv_cc_flag__fd
13310		if eval \${$cacheid+:} false; then :
13311  $as_echo_n "(cached) " >&6
13312else
13313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314/* end confdefs.h.  */
13315int i;
13316int
13317main ()
13318{
13319
13320  ;
13321  return 0;
13322}
13323_ACEOF
13324if ac_fn_c_try_link "$LINENO"; then :
13325  eval $cacheid=yes
13326else
13327  eval $cacheid=no
13328fi
13329rm -f core conftest.err conftest.$ac_objext \
13330    conftest$ac_exeext conftest.$ac_ext
13331fi
13332
13333
13334		CFLAGS="$xorg_testset_save_CFLAGS"
13335
13336		eval supported=\$$cacheid
13337		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13338$as_echo "$supported" >&6; }
13339		if test "$supported" = "yes" ; then
13340			BASE_CFLAGS="$BASE_CFLAGS -fd"
13341			found="yes"
13342		fi
13343	fi
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359xorg_testset_save_CFLAGS="$CFLAGS"
13360
13361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13362	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13363	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13364$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13365if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13366  $as_echo_n "(cached) " >&6
13367else
13368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13369/* end confdefs.h.  */
13370int i;
13371_ACEOF
13372if ac_fn_c_try_compile "$LINENO"; then :
13373  xorg_cv_cc_flag_unknown_warning_option=yes
13374else
13375  xorg_cv_cc_flag_unknown_warning_option=no
13376fi
13377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378fi
13379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13380$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13381	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13382	CFLAGS="$xorg_testset_save_CFLAGS"
13383fi
13384
13385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13386	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13387		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13388	fi
13389	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13390	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13391$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13392if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13393  $as_echo_n "(cached) " >&6
13394else
13395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13396/* end confdefs.h.  */
13397int i;
13398_ACEOF
13399if ac_fn_c_try_compile "$LINENO"; then :
13400  xorg_cv_cc_flag_unused_command_line_argument=yes
13401else
13402  xorg_cv_cc_flag_unused_command_line_argument=no
13403fi
13404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13405fi
13406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13407$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13408	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13409	CFLAGS="$xorg_testset_save_CFLAGS"
13410fi
13411
13412found="no"
13413
13414	if test $found = "no" ; then
13415		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13416			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13417		fi
13418
13419		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13420			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13421		fi
13422
13423		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13424
13425		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13426$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13427		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13428		if eval \${$cacheid+:} false; then :
13429  $as_echo_n "(cached) " >&6
13430else
13431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432/* end confdefs.h.  */
13433int i;
13434int
13435main ()
13436{
13437
13438  ;
13439  return 0;
13440}
13441_ACEOF
13442if ac_fn_c_try_link "$LINENO"; then :
13443  eval $cacheid=yes
13444else
13445  eval $cacheid=no
13446fi
13447rm -f core conftest.err conftest.$ac_objext \
13448    conftest$ac_exeext conftest.$ac_ext
13449fi
13450
13451
13452		CFLAGS="$xorg_testset_save_CFLAGS"
13453
13454		eval supported=\$$cacheid
13455		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13456$as_echo "$supported" >&6; }
13457		if test "$supported" = "yes" ; then
13458			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13459			found="yes"
13460		fi
13461	fi
13462
13463
13464
13465
13466
13467# This chunk adds additional warnings that could catch undesired effects.
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481xorg_testset_save_CFLAGS="$CFLAGS"
13482
13483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13484	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13485	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13486$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13487if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13488  $as_echo_n "(cached) " >&6
13489else
13490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491/* end confdefs.h.  */
13492int i;
13493_ACEOF
13494if ac_fn_c_try_compile "$LINENO"; then :
13495  xorg_cv_cc_flag_unknown_warning_option=yes
13496else
13497  xorg_cv_cc_flag_unknown_warning_option=no
13498fi
13499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13500fi
13501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13502$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13503	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13504	CFLAGS="$xorg_testset_save_CFLAGS"
13505fi
13506
13507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13508	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13509		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13510	fi
13511	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13512	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13513$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13514if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13515  $as_echo_n "(cached) " >&6
13516else
13517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518/* end confdefs.h.  */
13519int i;
13520_ACEOF
13521if ac_fn_c_try_compile "$LINENO"; then :
13522  xorg_cv_cc_flag_unused_command_line_argument=yes
13523else
13524  xorg_cv_cc_flag_unused_command_line_argument=no
13525fi
13526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13527fi
13528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13529$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13530	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13531	CFLAGS="$xorg_testset_save_CFLAGS"
13532fi
13533
13534found="no"
13535
13536	if test $found = "no" ; then
13537		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13538			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13539		fi
13540
13541		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13542			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13543		fi
13544
13545		CFLAGS="$CFLAGS -Wunused"
13546
13547		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13548$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13549		cacheid=xorg_cv_cc_flag__Wunused
13550		if eval \${$cacheid+:} false; then :
13551  $as_echo_n "(cached) " >&6
13552else
13553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554/* end confdefs.h.  */
13555int i;
13556int
13557main ()
13558{
13559
13560  ;
13561  return 0;
13562}
13563_ACEOF
13564if ac_fn_c_try_link "$LINENO"; then :
13565  eval $cacheid=yes
13566else
13567  eval $cacheid=no
13568fi
13569rm -f core conftest.err conftest.$ac_objext \
13570    conftest$ac_exeext conftest.$ac_ext
13571fi
13572
13573
13574		CFLAGS="$xorg_testset_save_CFLAGS"
13575
13576		eval supported=\$$cacheid
13577		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13578$as_echo "$supported" >&6; }
13579		if test "$supported" = "yes" ; then
13580			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13581			found="yes"
13582		fi
13583	fi
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599xorg_testset_save_CFLAGS="$CFLAGS"
13600
13601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13602	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13603	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13604$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13605if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13606  $as_echo_n "(cached) " >&6
13607else
13608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609/* end confdefs.h.  */
13610int i;
13611_ACEOF
13612if ac_fn_c_try_compile "$LINENO"; then :
13613  xorg_cv_cc_flag_unknown_warning_option=yes
13614else
13615  xorg_cv_cc_flag_unknown_warning_option=no
13616fi
13617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13618fi
13619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13620$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13621	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13622	CFLAGS="$xorg_testset_save_CFLAGS"
13623fi
13624
13625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13626	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13627		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13628	fi
13629	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13630	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13631$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13632if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13633  $as_echo_n "(cached) " >&6
13634else
13635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13636/* end confdefs.h.  */
13637int i;
13638_ACEOF
13639if ac_fn_c_try_compile "$LINENO"; then :
13640  xorg_cv_cc_flag_unused_command_line_argument=yes
13641else
13642  xorg_cv_cc_flag_unused_command_line_argument=no
13643fi
13644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13645fi
13646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13647$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13648	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13649	CFLAGS="$xorg_testset_save_CFLAGS"
13650fi
13651
13652found="no"
13653
13654	if test $found = "no" ; then
13655		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13656			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13657		fi
13658
13659		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13660			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13661		fi
13662
13663		CFLAGS="$CFLAGS -Wuninitialized"
13664
13665		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13666$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13667		cacheid=xorg_cv_cc_flag__Wuninitialized
13668		if eval \${$cacheid+:} false; then :
13669  $as_echo_n "(cached) " >&6
13670else
13671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672/* end confdefs.h.  */
13673int i;
13674int
13675main ()
13676{
13677
13678  ;
13679  return 0;
13680}
13681_ACEOF
13682if ac_fn_c_try_link "$LINENO"; then :
13683  eval $cacheid=yes
13684else
13685  eval $cacheid=no
13686fi
13687rm -f core conftest.err conftest.$ac_objext \
13688    conftest$ac_exeext conftest.$ac_ext
13689fi
13690
13691
13692		CFLAGS="$xorg_testset_save_CFLAGS"
13693
13694		eval supported=\$$cacheid
13695		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13696$as_echo "$supported" >&6; }
13697		if test "$supported" = "yes" ; then
13698			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13699			found="yes"
13700		fi
13701	fi
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717xorg_testset_save_CFLAGS="$CFLAGS"
13718
13719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13720	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13721	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13722$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13723if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13724  $as_echo_n "(cached) " >&6
13725else
13726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727/* end confdefs.h.  */
13728int i;
13729_ACEOF
13730if ac_fn_c_try_compile "$LINENO"; then :
13731  xorg_cv_cc_flag_unknown_warning_option=yes
13732else
13733  xorg_cv_cc_flag_unknown_warning_option=no
13734fi
13735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13736fi
13737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13738$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13739	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13740	CFLAGS="$xorg_testset_save_CFLAGS"
13741fi
13742
13743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13744	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13745		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13746	fi
13747	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13748	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13749$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13750if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13751  $as_echo_n "(cached) " >&6
13752else
13753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754/* end confdefs.h.  */
13755int i;
13756_ACEOF
13757if ac_fn_c_try_compile "$LINENO"; then :
13758  xorg_cv_cc_flag_unused_command_line_argument=yes
13759else
13760  xorg_cv_cc_flag_unused_command_line_argument=no
13761fi
13762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763fi
13764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13765$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13766	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13767	CFLAGS="$xorg_testset_save_CFLAGS"
13768fi
13769
13770found="no"
13771
13772	if test $found = "no" ; then
13773		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13774			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13775		fi
13776
13777		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13778			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13779		fi
13780
13781		CFLAGS="$CFLAGS -Wshadow"
13782
13783		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13784$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13785		cacheid=xorg_cv_cc_flag__Wshadow
13786		if eval \${$cacheid+:} false; then :
13787  $as_echo_n "(cached) " >&6
13788else
13789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13790/* end confdefs.h.  */
13791int i;
13792int
13793main ()
13794{
13795
13796  ;
13797  return 0;
13798}
13799_ACEOF
13800if ac_fn_c_try_link "$LINENO"; then :
13801  eval $cacheid=yes
13802else
13803  eval $cacheid=no
13804fi
13805rm -f core conftest.err conftest.$ac_objext \
13806    conftest$ac_exeext conftest.$ac_ext
13807fi
13808
13809
13810		CFLAGS="$xorg_testset_save_CFLAGS"
13811
13812		eval supported=\$$cacheid
13813		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13814$as_echo "$supported" >&6; }
13815		if test "$supported" = "yes" ; then
13816			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13817			found="yes"
13818		fi
13819	fi
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835xorg_testset_save_CFLAGS="$CFLAGS"
13836
13837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13838	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13839	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13840$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13841if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13842  $as_echo_n "(cached) " >&6
13843else
13844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845/* end confdefs.h.  */
13846int i;
13847_ACEOF
13848if ac_fn_c_try_compile "$LINENO"; then :
13849  xorg_cv_cc_flag_unknown_warning_option=yes
13850else
13851  xorg_cv_cc_flag_unknown_warning_option=no
13852fi
13853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13854fi
13855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13856$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13857	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13858	CFLAGS="$xorg_testset_save_CFLAGS"
13859fi
13860
13861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13862	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13863		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13864	fi
13865	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13866	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13867$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13868if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13869  $as_echo_n "(cached) " >&6
13870else
13871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872/* end confdefs.h.  */
13873int i;
13874_ACEOF
13875if ac_fn_c_try_compile "$LINENO"; then :
13876  xorg_cv_cc_flag_unused_command_line_argument=yes
13877else
13878  xorg_cv_cc_flag_unused_command_line_argument=no
13879fi
13880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13881fi
13882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13883$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13884	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13885	CFLAGS="$xorg_testset_save_CFLAGS"
13886fi
13887
13888found="no"
13889
13890	if test $found = "no" ; then
13891		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13892			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13893		fi
13894
13895		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13896			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13897		fi
13898
13899		CFLAGS="$CFLAGS -Wmissing-noreturn"
13900
13901		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13902$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13903		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13904		if eval \${$cacheid+:} false; then :
13905  $as_echo_n "(cached) " >&6
13906else
13907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908/* end confdefs.h.  */
13909int i;
13910int
13911main ()
13912{
13913
13914  ;
13915  return 0;
13916}
13917_ACEOF
13918if ac_fn_c_try_link "$LINENO"; then :
13919  eval $cacheid=yes
13920else
13921  eval $cacheid=no
13922fi
13923rm -f core conftest.err conftest.$ac_objext \
13924    conftest$ac_exeext conftest.$ac_ext
13925fi
13926
13927
13928		CFLAGS="$xorg_testset_save_CFLAGS"
13929
13930		eval supported=\$$cacheid
13931		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13932$as_echo "$supported" >&6; }
13933		if test "$supported" = "yes" ; then
13934			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13935			found="yes"
13936		fi
13937	fi
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953xorg_testset_save_CFLAGS="$CFLAGS"
13954
13955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13956	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13957	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13958$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13959if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13960  $as_echo_n "(cached) " >&6
13961else
13962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963/* end confdefs.h.  */
13964int i;
13965_ACEOF
13966if ac_fn_c_try_compile "$LINENO"; then :
13967  xorg_cv_cc_flag_unknown_warning_option=yes
13968else
13969  xorg_cv_cc_flag_unknown_warning_option=no
13970fi
13971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972fi
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13974$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13975	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13976	CFLAGS="$xorg_testset_save_CFLAGS"
13977fi
13978
13979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13980	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13981		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13982	fi
13983	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13984	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13985$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13986if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13987  $as_echo_n "(cached) " >&6
13988else
13989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990/* end confdefs.h.  */
13991int i;
13992_ACEOF
13993if ac_fn_c_try_compile "$LINENO"; then :
13994  xorg_cv_cc_flag_unused_command_line_argument=yes
13995else
13996  xorg_cv_cc_flag_unused_command_line_argument=no
13997fi
13998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13999fi
14000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14001$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14002	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14003	CFLAGS="$xorg_testset_save_CFLAGS"
14004fi
14005
14006found="no"
14007
14008	if test $found = "no" ; then
14009		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14010			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14011		fi
14012
14013		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14014			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14015		fi
14016
14017		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14018
14019		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14020$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14021		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14022		if eval \${$cacheid+:} false; then :
14023  $as_echo_n "(cached) " >&6
14024else
14025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026/* end confdefs.h.  */
14027int i;
14028int
14029main ()
14030{
14031
14032  ;
14033  return 0;
14034}
14035_ACEOF
14036if ac_fn_c_try_link "$LINENO"; then :
14037  eval $cacheid=yes
14038else
14039  eval $cacheid=no
14040fi
14041rm -f core conftest.err conftest.$ac_objext \
14042    conftest$ac_exeext conftest.$ac_ext
14043fi
14044
14045
14046		CFLAGS="$xorg_testset_save_CFLAGS"
14047
14048		eval supported=\$$cacheid
14049		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14050$as_echo "$supported" >&6; }
14051		if test "$supported" = "yes" ; then
14052			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14053			found="yes"
14054		fi
14055	fi
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071xorg_testset_save_CFLAGS="$CFLAGS"
14072
14073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14074	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14075	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14076$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14077if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14078  $as_echo_n "(cached) " >&6
14079else
14080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081/* end confdefs.h.  */
14082int i;
14083_ACEOF
14084if ac_fn_c_try_compile "$LINENO"; then :
14085  xorg_cv_cc_flag_unknown_warning_option=yes
14086else
14087  xorg_cv_cc_flag_unknown_warning_option=no
14088fi
14089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14090fi
14091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14092$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14093	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14094	CFLAGS="$xorg_testset_save_CFLAGS"
14095fi
14096
14097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14098	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14099		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14100	fi
14101	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14102	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14103$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14104if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14105  $as_echo_n "(cached) " >&6
14106else
14107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108/* end confdefs.h.  */
14109int i;
14110_ACEOF
14111if ac_fn_c_try_compile "$LINENO"; then :
14112  xorg_cv_cc_flag_unused_command_line_argument=yes
14113else
14114  xorg_cv_cc_flag_unused_command_line_argument=no
14115fi
14116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14117fi
14118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14119$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14120	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14121	CFLAGS="$xorg_testset_save_CFLAGS"
14122fi
14123
14124found="no"
14125
14126	if test $found = "no" ; then
14127		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14128			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14129		fi
14130
14131		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14132			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14133		fi
14134
14135		CFLAGS="$CFLAGS -Wredundant-decls"
14136
14137		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14138$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14139		cacheid=xorg_cv_cc_flag__Wredundant_decls
14140		if eval \${$cacheid+:} false; then :
14141  $as_echo_n "(cached) " >&6
14142else
14143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144/* end confdefs.h.  */
14145int i;
14146int
14147main ()
14148{
14149
14150  ;
14151  return 0;
14152}
14153_ACEOF
14154if ac_fn_c_try_link "$LINENO"; then :
14155  eval $cacheid=yes
14156else
14157  eval $cacheid=no
14158fi
14159rm -f core conftest.err conftest.$ac_objext \
14160    conftest$ac_exeext conftest.$ac_ext
14161fi
14162
14163
14164		CFLAGS="$xorg_testset_save_CFLAGS"
14165
14166		eval supported=\$$cacheid
14167		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14168$as_echo "$supported" >&6; }
14169		if test "$supported" = "yes" ; then
14170			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14171			found="yes"
14172		fi
14173	fi
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189xorg_testset_save_CFLAGS="$CFLAGS"
14190
14191if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14192	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14193	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14194$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14195if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14196  $as_echo_n "(cached) " >&6
14197else
14198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199/* end confdefs.h.  */
14200int i;
14201_ACEOF
14202if ac_fn_c_try_compile "$LINENO"; then :
14203  xorg_cv_cc_flag_unknown_warning_option=yes
14204else
14205  xorg_cv_cc_flag_unknown_warning_option=no
14206fi
14207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14208fi
14209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14210$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14211	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14212	CFLAGS="$xorg_testset_save_CFLAGS"
14213fi
14214
14215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14216	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14217		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14218	fi
14219	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14220	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14221$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14222if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14223  $as_echo_n "(cached) " >&6
14224else
14225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226/* end confdefs.h.  */
14227int i;
14228_ACEOF
14229if ac_fn_c_try_compile "$LINENO"; then :
14230  xorg_cv_cc_flag_unused_command_line_argument=yes
14231else
14232  xorg_cv_cc_flag_unused_command_line_argument=no
14233fi
14234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14235fi
14236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14237$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14238	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14239	CFLAGS="$xorg_testset_save_CFLAGS"
14240fi
14241
14242found="no"
14243
14244	if test $found = "no" ; then
14245		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14246			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14247		fi
14248
14249		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14250			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14251		fi
14252
14253		CFLAGS="$CFLAGS -Wlogical-op"
14254
14255		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14256$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14257		cacheid=xorg_cv_cc_flag__Wlogical_op
14258		if eval \${$cacheid+:} false; then :
14259  $as_echo_n "(cached) " >&6
14260else
14261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262/* end confdefs.h.  */
14263int i;
14264int
14265main ()
14266{
14267
14268  ;
14269  return 0;
14270}
14271_ACEOF
14272if ac_fn_c_try_link "$LINENO"; then :
14273  eval $cacheid=yes
14274else
14275  eval $cacheid=no
14276fi
14277rm -f core conftest.err conftest.$ac_objext \
14278    conftest$ac_exeext conftest.$ac_ext
14279fi
14280
14281
14282		CFLAGS="$xorg_testset_save_CFLAGS"
14283
14284		eval supported=\$$cacheid
14285		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14286$as_echo "$supported" >&6; }
14287		if test "$supported" = "yes" ; then
14288			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14289			found="yes"
14290		fi
14291	fi
14292
14293
14294
14295# These are currently disabled because they are noisy.  They will be enabled
14296# in the future once the codebase is sufficiently modernized to silence
14297# them.  For now, I don't want them to drown out the other warnings.
14298# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14299# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14300# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14301
14302# Turn some warnings into errors, so we don't accidently get successful builds
14303# when there are problems that should be fixed.
14304
14305if test "x$SELECTIVE_WERROR" = "xyes" ; then
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319xorg_testset_save_CFLAGS="$CFLAGS"
14320
14321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14322	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14326  $as_echo_n "(cached) " >&6
14327else
14328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14329/* end confdefs.h.  */
14330int i;
14331_ACEOF
14332if ac_fn_c_try_compile "$LINENO"; then :
14333  xorg_cv_cc_flag_unknown_warning_option=yes
14334else
14335  xorg_cv_cc_flag_unknown_warning_option=no
14336fi
14337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14338fi
14339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14341	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14342	CFLAGS="$xorg_testset_save_CFLAGS"
14343fi
14344
14345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14346	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14347		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14348	fi
14349	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14350	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14353  $as_echo_n "(cached) " >&6
14354else
14355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14356/* end confdefs.h.  */
14357int i;
14358_ACEOF
14359if ac_fn_c_try_compile "$LINENO"; then :
14360  xorg_cv_cc_flag_unused_command_line_argument=yes
14361else
14362  xorg_cv_cc_flag_unused_command_line_argument=no
14363fi
14364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14365fi
14366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14368	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14369	CFLAGS="$xorg_testset_save_CFLAGS"
14370fi
14371
14372found="no"
14373
14374	if test $found = "no" ; then
14375		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14376			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14377		fi
14378
14379		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14380			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14381		fi
14382
14383		CFLAGS="$CFLAGS -Werror=implicit"
14384
14385		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14386$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14387		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
14388		if eval \${$cacheid+:} false; then :
14389  $as_echo_n "(cached) " >&6
14390else
14391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392/* end confdefs.h.  */
14393int i;
14394int
14395main ()
14396{
14397
14398  ;
14399  return 0;
14400}
14401_ACEOF
14402if ac_fn_c_try_link "$LINENO"; then :
14403  eval $cacheid=yes
14404else
14405  eval $cacheid=no
14406fi
14407rm -f core conftest.err conftest.$ac_objext \
14408    conftest$ac_exeext conftest.$ac_ext
14409fi
14410
14411
14412		CFLAGS="$xorg_testset_save_CFLAGS"
14413
14414		eval supported=\$$cacheid
14415		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14416$as_echo "$supported" >&6; }
14417		if test "$supported" = "yes" ; then
14418			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14419			found="yes"
14420		fi
14421	fi
14422
14423	if test $found = "no" ; then
14424		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14425			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14426		fi
14427
14428		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14429			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14430		fi
14431
14432		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14433
14434		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14435$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14436		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
14437		if eval \${$cacheid+:} false; then :
14438  $as_echo_n "(cached) " >&6
14439else
14440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14441/* end confdefs.h.  */
14442int i;
14443int
14444main ()
14445{
14446
14447  ;
14448  return 0;
14449}
14450_ACEOF
14451if ac_fn_c_try_link "$LINENO"; then :
14452  eval $cacheid=yes
14453else
14454  eval $cacheid=no
14455fi
14456rm -f core conftest.err conftest.$ac_objext \
14457    conftest$ac_exeext conftest.$ac_ext
14458fi
14459
14460
14461		CFLAGS="$xorg_testset_save_CFLAGS"
14462
14463		eval supported=\$$cacheid
14464		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14465$as_echo "$supported" >&6; }
14466		if test "$supported" = "yes" ; then
14467			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14468			found="yes"
14469		fi
14470	fi
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486xorg_testset_save_CFLAGS="$CFLAGS"
14487
14488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14493  $as_echo_n "(cached) " >&6
14494else
14495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496/* end confdefs.h.  */
14497int i;
14498_ACEOF
14499if ac_fn_c_try_compile "$LINENO"; then :
14500  xorg_cv_cc_flag_unknown_warning_option=yes
14501else
14502  xorg_cv_cc_flag_unknown_warning_option=no
14503fi
14504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14505fi
14506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14508	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14509	CFLAGS="$xorg_testset_save_CFLAGS"
14510fi
14511
14512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14513	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14514		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14515	fi
14516	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14517	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14520  $as_echo_n "(cached) " >&6
14521else
14522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523/* end confdefs.h.  */
14524int i;
14525_ACEOF
14526if ac_fn_c_try_compile "$LINENO"; then :
14527  xorg_cv_cc_flag_unused_command_line_argument=yes
14528else
14529  xorg_cv_cc_flag_unused_command_line_argument=no
14530fi
14531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532fi
14533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14535	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14536	CFLAGS="$xorg_testset_save_CFLAGS"
14537fi
14538
14539found="no"
14540
14541	if test $found = "no" ; then
14542		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14543			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14544		fi
14545
14546		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14547			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14548		fi
14549
14550		CFLAGS="$CFLAGS -Werror=nonnull"
14551
14552		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14553$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14554		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
14555		if eval \${$cacheid+:} false; then :
14556  $as_echo_n "(cached) " >&6
14557else
14558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559/* end confdefs.h.  */
14560int i;
14561int
14562main ()
14563{
14564
14565  ;
14566  return 0;
14567}
14568_ACEOF
14569if ac_fn_c_try_link "$LINENO"; then :
14570  eval $cacheid=yes
14571else
14572  eval $cacheid=no
14573fi
14574rm -f core conftest.err conftest.$ac_objext \
14575    conftest$ac_exeext conftest.$ac_ext
14576fi
14577
14578
14579		CFLAGS="$xorg_testset_save_CFLAGS"
14580
14581		eval supported=\$$cacheid
14582		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14583$as_echo "$supported" >&6; }
14584		if test "$supported" = "yes" ; then
14585			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14586			found="yes"
14587		fi
14588	fi
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604xorg_testset_save_CFLAGS="$CFLAGS"
14605
14606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14607	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14608	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14609$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14610if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14611  $as_echo_n "(cached) " >&6
14612else
14613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614/* end confdefs.h.  */
14615int i;
14616_ACEOF
14617if ac_fn_c_try_compile "$LINENO"; then :
14618  xorg_cv_cc_flag_unknown_warning_option=yes
14619else
14620  xorg_cv_cc_flag_unknown_warning_option=no
14621fi
14622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14623fi
14624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14625$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14626	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14627	CFLAGS="$xorg_testset_save_CFLAGS"
14628fi
14629
14630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14631	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14632		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14633	fi
14634	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14636$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14637if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14638  $as_echo_n "(cached) " >&6
14639else
14640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14641/* end confdefs.h.  */
14642int i;
14643_ACEOF
14644if ac_fn_c_try_compile "$LINENO"; then :
14645  xorg_cv_cc_flag_unused_command_line_argument=yes
14646else
14647  xorg_cv_cc_flag_unused_command_line_argument=no
14648fi
14649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14650fi
14651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14652$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14653	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14654	CFLAGS="$xorg_testset_save_CFLAGS"
14655fi
14656
14657found="no"
14658
14659	if test $found = "no" ; then
14660		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14661			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14662		fi
14663
14664		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14665			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14666		fi
14667
14668		CFLAGS="$CFLAGS -Werror=init-self"
14669
14670		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14671$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14672		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14673		if eval \${$cacheid+:} false; then :
14674  $as_echo_n "(cached) " >&6
14675else
14676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14677/* end confdefs.h.  */
14678int i;
14679int
14680main ()
14681{
14682
14683  ;
14684  return 0;
14685}
14686_ACEOF
14687if ac_fn_c_try_link "$LINENO"; then :
14688  eval $cacheid=yes
14689else
14690  eval $cacheid=no
14691fi
14692rm -f core conftest.err conftest.$ac_objext \
14693    conftest$ac_exeext conftest.$ac_ext
14694fi
14695
14696
14697		CFLAGS="$xorg_testset_save_CFLAGS"
14698
14699		eval supported=\$$cacheid
14700		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14701$as_echo "$supported" >&6; }
14702		if test "$supported" = "yes" ; then
14703			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14704			found="yes"
14705		fi
14706	fi
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722xorg_testset_save_CFLAGS="$CFLAGS"
14723
14724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14725	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14727$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14728if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14729  $as_echo_n "(cached) " >&6
14730else
14731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14732/* end confdefs.h.  */
14733int i;
14734_ACEOF
14735if ac_fn_c_try_compile "$LINENO"; then :
14736  xorg_cv_cc_flag_unknown_warning_option=yes
14737else
14738  xorg_cv_cc_flag_unknown_warning_option=no
14739fi
14740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14741fi
14742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14743$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14744	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14745	CFLAGS="$xorg_testset_save_CFLAGS"
14746fi
14747
14748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14749	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14750		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14751	fi
14752	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14753	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14754$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14755if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14756  $as_echo_n "(cached) " >&6
14757else
14758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14759/* end confdefs.h.  */
14760int i;
14761_ACEOF
14762if ac_fn_c_try_compile "$LINENO"; then :
14763  xorg_cv_cc_flag_unused_command_line_argument=yes
14764else
14765  xorg_cv_cc_flag_unused_command_line_argument=no
14766fi
14767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14768fi
14769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14770$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14772	CFLAGS="$xorg_testset_save_CFLAGS"
14773fi
14774
14775found="no"
14776
14777	if test $found = "no" ; then
14778		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14780		fi
14781
14782		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14784		fi
14785
14786		CFLAGS="$CFLAGS -Werror=main"
14787
14788		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14789$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14790		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14791		if eval \${$cacheid+:} false; then :
14792  $as_echo_n "(cached) " >&6
14793else
14794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14795/* end confdefs.h.  */
14796int i;
14797int
14798main ()
14799{
14800
14801  ;
14802  return 0;
14803}
14804_ACEOF
14805if ac_fn_c_try_link "$LINENO"; then :
14806  eval $cacheid=yes
14807else
14808  eval $cacheid=no
14809fi
14810rm -f core conftest.err conftest.$ac_objext \
14811    conftest$ac_exeext conftest.$ac_ext
14812fi
14813
14814
14815		CFLAGS="$xorg_testset_save_CFLAGS"
14816
14817		eval supported=\$$cacheid
14818		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14819$as_echo "$supported" >&6; }
14820		if test "$supported" = "yes" ; then
14821			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14822			found="yes"
14823		fi
14824	fi
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840xorg_testset_save_CFLAGS="$CFLAGS"
14841
14842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14843	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14844	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14845$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14846if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14847  $as_echo_n "(cached) " >&6
14848else
14849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14850/* end confdefs.h.  */
14851int i;
14852_ACEOF
14853if ac_fn_c_try_compile "$LINENO"; then :
14854  xorg_cv_cc_flag_unknown_warning_option=yes
14855else
14856  xorg_cv_cc_flag_unknown_warning_option=no
14857fi
14858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14859fi
14860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14861$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14862	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14863	CFLAGS="$xorg_testset_save_CFLAGS"
14864fi
14865
14866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14867	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14868		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14869	fi
14870	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14871	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14872$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14873if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14874  $as_echo_n "(cached) " >&6
14875else
14876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14877/* end confdefs.h.  */
14878int i;
14879_ACEOF
14880if ac_fn_c_try_compile "$LINENO"; then :
14881  xorg_cv_cc_flag_unused_command_line_argument=yes
14882else
14883  xorg_cv_cc_flag_unused_command_line_argument=no
14884fi
14885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14886fi
14887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14888$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14889	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14890	CFLAGS="$xorg_testset_save_CFLAGS"
14891fi
14892
14893found="no"
14894
14895	if test $found = "no" ; then
14896		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14897			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14898		fi
14899
14900		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14901			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14902		fi
14903
14904		CFLAGS="$CFLAGS -Werror=missing-braces"
14905
14906		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14907$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14908		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14909		if eval \${$cacheid+:} false; then :
14910  $as_echo_n "(cached) " >&6
14911else
14912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913/* end confdefs.h.  */
14914int i;
14915int
14916main ()
14917{
14918
14919  ;
14920  return 0;
14921}
14922_ACEOF
14923if ac_fn_c_try_link "$LINENO"; then :
14924  eval $cacheid=yes
14925else
14926  eval $cacheid=no
14927fi
14928rm -f core conftest.err conftest.$ac_objext \
14929    conftest$ac_exeext conftest.$ac_ext
14930fi
14931
14932
14933		CFLAGS="$xorg_testset_save_CFLAGS"
14934
14935		eval supported=\$$cacheid
14936		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14937$as_echo "$supported" >&6; }
14938		if test "$supported" = "yes" ; then
14939			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14940			found="yes"
14941		fi
14942	fi
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958xorg_testset_save_CFLAGS="$CFLAGS"
14959
14960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14961	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14962	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14963$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14964if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14965  $as_echo_n "(cached) " >&6
14966else
14967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968/* end confdefs.h.  */
14969int i;
14970_ACEOF
14971if ac_fn_c_try_compile "$LINENO"; then :
14972  xorg_cv_cc_flag_unknown_warning_option=yes
14973else
14974  xorg_cv_cc_flag_unknown_warning_option=no
14975fi
14976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14977fi
14978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14979$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14980	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14981	CFLAGS="$xorg_testset_save_CFLAGS"
14982fi
14983
14984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14985	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14986		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14987	fi
14988	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14989	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14990$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14991if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14992  $as_echo_n "(cached) " >&6
14993else
14994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14995/* end confdefs.h.  */
14996int i;
14997_ACEOF
14998if ac_fn_c_try_compile "$LINENO"; then :
14999  xorg_cv_cc_flag_unused_command_line_argument=yes
15000else
15001  xorg_cv_cc_flag_unused_command_line_argument=no
15002fi
15003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15004fi
15005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15006$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15007	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15008	CFLAGS="$xorg_testset_save_CFLAGS"
15009fi
15010
15011found="no"
15012
15013	if test $found = "no" ; then
15014		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15015			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15016		fi
15017
15018		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15019			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15020		fi
15021
15022		CFLAGS="$CFLAGS -Werror=sequence-point"
15023
15024		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15025$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15026		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
15027		if eval \${$cacheid+:} false; then :
15028  $as_echo_n "(cached) " >&6
15029else
15030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15031/* end confdefs.h.  */
15032int i;
15033int
15034main ()
15035{
15036
15037  ;
15038  return 0;
15039}
15040_ACEOF
15041if ac_fn_c_try_link "$LINENO"; then :
15042  eval $cacheid=yes
15043else
15044  eval $cacheid=no
15045fi
15046rm -f core conftest.err conftest.$ac_objext \
15047    conftest$ac_exeext conftest.$ac_ext
15048fi
15049
15050
15051		CFLAGS="$xorg_testset_save_CFLAGS"
15052
15053		eval supported=\$$cacheid
15054		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15055$as_echo "$supported" >&6; }
15056		if test "$supported" = "yes" ; then
15057			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15058			found="yes"
15059		fi
15060	fi
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076xorg_testset_save_CFLAGS="$CFLAGS"
15077
15078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15079	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15080	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15081$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15082if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15083  $as_echo_n "(cached) " >&6
15084else
15085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15086/* end confdefs.h.  */
15087int i;
15088_ACEOF
15089if ac_fn_c_try_compile "$LINENO"; then :
15090  xorg_cv_cc_flag_unknown_warning_option=yes
15091else
15092  xorg_cv_cc_flag_unknown_warning_option=no
15093fi
15094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095fi
15096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15097$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15098	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15099	CFLAGS="$xorg_testset_save_CFLAGS"
15100fi
15101
15102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15103	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15104		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15105	fi
15106	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15107	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15108$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15109if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15110  $as_echo_n "(cached) " >&6
15111else
15112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15113/* end confdefs.h.  */
15114int i;
15115_ACEOF
15116if ac_fn_c_try_compile "$LINENO"; then :
15117  xorg_cv_cc_flag_unused_command_line_argument=yes
15118else
15119  xorg_cv_cc_flag_unused_command_line_argument=no
15120fi
15121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15122fi
15123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15124$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15125	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15126	CFLAGS="$xorg_testset_save_CFLAGS"
15127fi
15128
15129found="no"
15130
15131	if test $found = "no" ; then
15132		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15133			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15134		fi
15135
15136		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15137			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15138		fi
15139
15140		CFLAGS="$CFLAGS -Werror=return-type"
15141
15142		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15143$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15144		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
15145		if eval \${$cacheid+:} false; then :
15146  $as_echo_n "(cached) " >&6
15147else
15148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15149/* end confdefs.h.  */
15150int i;
15151int
15152main ()
15153{
15154
15155  ;
15156  return 0;
15157}
15158_ACEOF
15159if ac_fn_c_try_link "$LINENO"; then :
15160  eval $cacheid=yes
15161else
15162  eval $cacheid=no
15163fi
15164rm -f core conftest.err conftest.$ac_objext \
15165    conftest$ac_exeext conftest.$ac_ext
15166fi
15167
15168
15169		CFLAGS="$xorg_testset_save_CFLAGS"
15170
15171		eval supported=\$$cacheid
15172		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15173$as_echo "$supported" >&6; }
15174		if test "$supported" = "yes" ; then
15175			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15176			found="yes"
15177		fi
15178	fi
15179
15180	if test $found = "no" ; then
15181		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15182			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15183		fi
15184
15185		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15186			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15187		fi
15188
15189		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15190
15191		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15192$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15193		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
15194		if eval \${$cacheid+:} false; then :
15195  $as_echo_n "(cached) " >&6
15196else
15197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15198/* end confdefs.h.  */
15199int i;
15200int
15201main ()
15202{
15203
15204  ;
15205  return 0;
15206}
15207_ACEOF
15208if ac_fn_c_try_link "$LINENO"; then :
15209  eval $cacheid=yes
15210else
15211  eval $cacheid=no
15212fi
15213rm -f core conftest.err conftest.$ac_objext \
15214    conftest$ac_exeext conftest.$ac_ext
15215fi
15216
15217
15218		CFLAGS="$xorg_testset_save_CFLAGS"
15219
15220		eval supported=\$$cacheid
15221		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15222$as_echo "$supported" >&6; }
15223		if test "$supported" = "yes" ; then
15224			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15225			found="yes"
15226		fi
15227	fi
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243xorg_testset_save_CFLAGS="$CFLAGS"
15244
15245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15246	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15247	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15250  $as_echo_n "(cached) " >&6
15251else
15252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15253/* end confdefs.h.  */
15254int i;
15255_ACEOF
15256if ac_fn_c_try_compile "$LINENO"; then :
15257  xorg_cv_cc_flag_unknown_warning_option=yes
15258else
15259  xorg_cv_cc_flag_unknown_warning_option=no
15260fi
15261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15262fi
15263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15265	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15266	CFLAGS="$xorg_testset_save_CFLAGS"
15267fi
15268
15269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15270	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15271		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15272	fi
15273	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15274	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15277  $as_echo_n "(cached) " >&6
15278else
15279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280/* end confdefs.h.  */
15281int i;
15282_ACEOF
15283if ac_fn_c_try_compile "$LINENO"; then :
15284  xorg_cv_cc_flag_unused_command_line_argument=yes
15285else
15286  xorg_cv_cc_flag_unused_command_line_argument=no
15287fi
15288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289fi
15290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15292	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15293	CFLAGS="$xorg_testset_save_CFLAGS"
15294fi
15295
15296found="no"
15297
15298	if test $found = "no" ; then
15299		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15300			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15301		fi
15302
15303		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15304			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15305		fi
15306
15307		CFLAGS="$CFLAGS -Werror=trigraphs"
15308
15309		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15310$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15311		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
15312		if eval \${$cacheid+:} false; then :
15313  $as_echo_n "(cached) " >&6
15314else
15315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316/* end confdefs.h.  */
15317int i;
15318int
15319main ()
15320{
15321
15322  ;
15323  return 0;
15324}
15325_ACEOF
15326if ac_fn_c_try_link "$LINENO"; then :
15327  eval $cacheid=yes
15328else
15329  eval $cacheid=no
15330fi
15331rm -f core conftest.err conftest.$ac_objext \
15332    conftest$ac_exeext conftest.$ac_ext
15333fi
15334
15335
15336		CFLAGS="$xorg_testset_save_CFLAGS"
15337
15338		eval supported=\$$cacheid
15339		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15340$as_echo "$supported" >&6; }
15341		if test "$supported" = "yes" ; then
15342			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15343			found="yes"
15344		fi
15345	fi
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361xorg_testset_save_CFLAGS="$CFLAGS"
15362
15363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15364	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15365	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15366$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15367if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15368  $as_echo_n "(cached) " >&6
15369else
15370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15371/* end confdefs.h.  */
15372int i;
15373_ACEOF
15374if ac_fn_c_try_compile "$LINENO"; then :
15375  xorg_cv_cc_flag_unknown_warning_option=yes
15376else
15377  xorg_cv_cc_flag_unknown_warning_option=no
15378fi
15379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15380fi
15381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15382$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15383	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15384	CFLAGS="$xorg_testset_save_CFLAGS"
15385fi
15386
15387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15388	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15389		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15390	fi
15391	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15392	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15393$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15394if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15395  $as_echo_n "(cached) " >&6
15396else
15397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15398/* end confdefs.h.  */
15399int i;
15400_ACEOF
15401if ac_fn_c_try_compile "$LINENO"; then :
15402  xorg_cv_cc_flag_unused_command_line_argument=yes
15403else
15404  xorg_cv_cc_flag_unused_command_line_argument=no
15405fi
15406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15407fi
15408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15409$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15410	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15411	CFLAGS="$xorg_testset_save_CFLAGS"
15412fi
15413
15414found="no"
15415
15416	if test $found = "no" ; then
15417		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15418			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15419		fi
15420
15421		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15422			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15423		fi
15424
15425		CFLAGS="$CFLAGS -Werror=array-bounds"
15426
15427		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15428$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15429		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
15430		if eval \${$cacheid+:} false; then :
15431  $as_echo_n "(cached) " >&6
15432else
15433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434/* end confdefs.h.  */
15435int i;
15436int
15437main ()
15438{
15439
15440  ;
15441  return 0;
15442}
15443_ACEOF
15444if ac_fn_c_try_link "$LINENO"; then :
15445  eval $cacheid=yes
15446else
15447  eval $cacheid=no
15448fi
15449rm -f core conftest.err conftest.$ac_objext \
15450    conftest$ac_exeext conftest.$ac_ext
15451fi
15452
15453
15454		CFLAGS="$xorg_testset_save_CFLAGS"
15455
15456		eval supported=\$$cacheid
15457		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15458$as_echo "$supported" >&6; }
15459		if test "$supported" = "yes" ; then
15460			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15461			found="yes"
15462		fi
15463	fi
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479xorg_testset_save_CFLAGS="$CFLAGS"
15480
15481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15482	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15483	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15484$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15485if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15486  $as_echo_n "(cached) " >&6
15487else
15488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489/* end confdefs.h.  */
15490int i;
15491_ACEOF
15492if ac_fn_c_try_compile "$LINENO"; then :
15493  xorg_cv_cc_flag_unknown_warning_option=yes
15494else
15495  xorg_cv_cc_flag_unknown_warning_option=no
15496fi
15497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15498fi
15499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15500$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15501	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15502	CFLAGS="$xorg_testset_save_CFLAGS"
15503fi
15504
15505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15506	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15507		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15508	fi
15509	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15510	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15511$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15512if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15513  $as_echo_n "(cached) " >&6
15514else
15515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15516/* end confdefs.h.  */
15517int i;
15518_ACEOF
15519if ac_fn_c_try_compile "$LINENO"; then :
15520  xorg_cv_cc_flag_unused_command_line_argument=yes
15521else
15522  xorg_cv_cc_flag_unused_command_line_argument=no
15523fi
15524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15525fi
15526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15527$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15528	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15529	CFLAGS="$xorg_testset_save_CFLAGS"
15530fi
15531
15532found="no"
15533
15534	if test $found = "no" ; then
15535		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15536			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15537		fi
15538
15539		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15540			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15541		fi
15542
15543		CFLAGS="$CFLAGS -Werror=write-strings"
15544
15545		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15546$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15547		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
15548		if eval \${$cacheid+:} false; then :
15549  $as_echo_n "(cached) " >&6
15550else
15551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15552/* end confdefs.h.  */
15553int i;
15554int
15555main ()
15556{
15557
15558  ;
15559  return 0;
15560}
15561_ACEOF
15562if ac_fn_c_try_link "$LINENO"; then :
15563  eval $cacheid=yes
15564else
15565  eval $cacheid=no
15566fi
15567rm -f core conftest.err conftest.$ac_objext \
15568    conftest$ac_exeext conftest.$ac_ext
15569fi
15570
15571
15572		CFLAGS="$xorg_testset_save_CFLAGS"
15573
15574		eval supported=\$$cacheid
15575		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15576$as_echo "$supported" >&6; }
15577		if test "$supported" = "yes" ; then
15578			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15579			found="yes"
15580		fi
15581	fi
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597xorg_testset_save_CFLAGS="$CFLAGS"
15598
15599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15600	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15601	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15602$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15603if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15604  $as_echo_n "(cached) " >&6
15605else
15606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15607/* end confdefs.h.  */
15608int i;
15609_ACEOF
15610if ac_fn_c_try_compile "$LINENO"; then :
15611  xorg_cv_cc_flag_unknown_warning_option=yes
15612else
15613  xorg_cv_cc_flag_unknown_warning_option=no
15614fi
15615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15616fi
15617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15618$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15619	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15620	CFLAGS="$xorg_testset_save_CFLAGS"
15621fi
15622
15623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15624	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15625		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15626	fi
15627	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15628	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15629$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15630if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15631  $as_echo_n "(cached) " >&6
15632else
15633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634/* end confdefs.h.  */
15635int i;
15636_ACEOF
15637if ac_fn_c_try_compile "$LINENO"; then :
15638  xorg_cv_cc_flag_unused_command_line_argument=yes
15639else
15640  xorg_cv_cc_flag_unused_command_line_argument=no
15641fi
15642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15643fi
15644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15645$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15646	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15647	CFLAGS="$xorg_testset_save_CFLAGS"
15648fi
15649
15650found="no"
15651
15652	if test $found = "no" ; then
15653		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15654			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15655		fi
15656
15657		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15658			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15659		fi
15660
15661		CFLAGS="$CFLAGS -Werror=address"
15662
15663		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15664$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15665		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15666		if eval \${$cacheid+:} false; then :
15667  $as_echo_n "(cached) " >&6
15668else
15669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670/* end confdefs.h.  */
15671int i;
15672int
15673main ()
15674{
15675
15676  ;
15677  return 0;
15678}
15679_ACEOF
15680if ac_fn_c_try_link "$LINENO"; then :
15681  eval $cacheid=yes
15682else
15683  eval $cacheid=no
15684fi
15685rm -f core conftest.err conftest.$ac_objext \
15686    conftest$ac_exeext conftest.$ac_ext
15687fi
15688
15689
15690		CFLAGS="$xorg_testset_save_CFLAGS"
15691
15692		eval supported=\$$cacheid
15693		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15694$as_echo "$supported" >&6; }
15695		if test "$supported" = "yes" ; then
15696			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15697			found="yes"
15698		fi
15699	fi
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715xorg_testset_save_CFLAGS="$CFLAGS"
15716
15717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15718	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15719	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15720$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15721if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15722  $as_echo_n "(cached) " >&6
15723else
15724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725/* end confdefs.h.  */
15726int i;
15727_ACEOF
15728if ac_fn_c_try_compile "$LINENO"; then :
15729  xorg_cv_cc_flag_unknown_warning_option=yes
15730else
15731  xorg_cv_cc_flag_unknown_warning_option=no
15732fi
15733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15734fi
15735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15736$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15737	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15738	CFLAGS="$xorg_testset_save_CFLAGS"
15739fi
15740
15741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15742	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15743		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15744	fi
15745	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15746	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15747$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15748if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15749  $as_echo_n "(cached) " >&6
15750else
15751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15752/* end confdefs.h.  */
15753int i;
15754_ACEOF
15755if ac_fn_c_try_compile "$LINENO"; then :
15756  xorg_cv_cc_flag_unused_command_line_argument=yes
15757else
15758  xorg_cv_cc_flag_unused_command_line_argument=no
15759fi
15760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15761fi
15762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15763$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15764	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15765	CFLAGS="$xorg_testset_save_CFLAGS"
15766fi
15767
15768found="no"
15769
15770	if test $found = "no" ; then
15771		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15772			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15773		fi
15774
15775		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15776			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15777		fi
15778
15779		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15780
15781		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15782$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15783		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15784		if eval \${$cacheid+:} false; then :
15785  $as_echo_n "(cached) " >&6
15786else
15787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15788/* end confdefs.h.  */
15789int i;
15790int
15791main ()
15792{
15793
15794  ;
15795  return 0;
15796}
15797_ACEOF
15798if ac_fn_c_try_link "$LINENO"; then :
15799  eval $cacheid=yes
15800else
15801  eval $cacheid=no
15802fi
15803rm -f core conftest.err conftest.$ac_objext \
15804    conftest$ac_exeext conftest.$ac_ext
15805fi
15806
15807
15808		CFLAGS="$xorg_testset_save_CFLAGS"
15809
15810		eval supported=\$$cacheid
15811		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15812$as_echo "$supported" >&6; }
15813		if test "$supported" = "yes" ; then
15814			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15815			found="yes"
15816		fi
15817	fi
15818
15819	if test $found = "no" ; then
15820		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15821			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15822		fi
15823
15824		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15825			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15826		fi
15827
15828		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15829
15830		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15831$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15832		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15833		if eval \${$cacheid+:} false; then :
15834  $as_echo_n "(cached) " >&6
15835else
15836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15837/* end confdefs.h.  */
15838int i;
15839int
15840main ()
15841{
15842
15843  ;
15844  return 0;
15845}
15846_ACEOF
15847if ac_fn_c_try_link "$LINENO"; then :
15848  eval $cacheid=yes
15849else
15850  eval $cacheid=no
15851fi
15852rm -f core conftest.err conftest.$ac_objext \
15853    conftest$ac_exeext conftest.$ac_ext
15854fi
15855
15856
15857		CFLAGS="$xorg_testset_save_CFLAGS"
15858
15859		eval supported=\$$cacheid
15860		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15861$as_echo "$supported" >&6; }
15862		if test "$supported" = "yes" ; then
15863			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15864			found="yes"
15865		fi
15866	fi
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882xorg_testset_save_CFLAGS="$CFLAGS"
15883
15884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15885	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15886	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15888if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15889  $as_echo_n "(cached) " >&6
15890else
15891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15892/* end confdefs.h.  */
15893int i;
15894_ACEOF
15895if ac_fn_c_try_compile "$LINENO"; then :
15896  xorg_cv_cc_flag_unknown_warning_option=yes
15897else
15898  xorg_cv_cc_flag_unknown_warning_option=no
15899fi
15900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15901fi
15902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15903$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15904	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15905	CFLAGS="$xorg_testset_save_CFLAGS"
15906fi
15907
15908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15909	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15910		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15911	fi
15912	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15913	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15914$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15915if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15916  $as_echo_n "(cached) " >&6
15917else
15918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15919/* end confdefs.h.  */
15920int i;
15921_ACEOF
15922if ac_fn_c_try_compile "$LINENO"; then :
15923  xorg_cv_cc_flag_unused_command_line_argument=yes
15924else
15925  xorg_cv_cc_flag_unused_command_line_argument=no
15926fi
15927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15928fi
15929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15930$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15931	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15932	CFLAGS="$xorg_testset_save_CFLAGS"
15933fi
15934
15935found="no"
15936
15937	if test $found = "no" ; then
15938		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15939			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15940		fi
15941
15942		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15943			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15944		fi
15945
15946		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15947
15948		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15949$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15950		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15951		if eval \${$cacheid+:} false; then :
15952  $as_echo_n "(cached) " >&6
15953else
15954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955/* end confdefs.h.  */
15956int i;
15957int
15958main ()
15959{
15960
15961  ;
15962  return 0;
15963}
15964_ACEOF
15965if ac_fn_c_try_link "$LINENO"; then :
15966  eval $cacheid=yes
15967else
15968  eval $cacheid=no
15969fi
15970rm -f core conftest.err conftest.$ac_objext \
15971    conftest$ac_exeext conftest.$ac_ext
15972fi
15973
15974
15975		CFLAGS="$xorg_testset_save_CFLAGS"
15976
15977		eval supported=\$$cacheid
15978		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15979$as_echo "$supported" >&6; }
15980		if test "$supported" = "yes" ; then
15981			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15982			found="yes"
15983		fi
15984	fi
15985
15986 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15987else
15988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
15989$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003xorg_testset_save_CFLAGS="$CFLAGS"
16004
16005if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16006	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16007	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16008$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16009if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16010  $as_echo_n "(cached) " >&6
16011else
16012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013/* end confdefs.h.  */
16014int i;
16015_ACEOF
16016if ac_fn_c_try_compile "$LINENO"; then :
16017  xorg_cv_cc_flag_unknown_warning_option=yes
16018else
16019  xorg_cv_cc_flag_unknown_warning_option=no
16020fi
16021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16022fi
16023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16024$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16025	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16026	CFLAGS="$xorg_testset_save_CFLAGS"
16027fi
16028
16029if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16030	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16031		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16032	fi
16033	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16034	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16035$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16036if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16037  $as_echo_n "(cached) " >&6
16038else
16039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040/* end confdefs.h.  */
16041int i;
16042_ACEOF
16043if ac_fn_c_try_compile "$LINENO"; then :
16044  xorg_cv_cc_flag_unused_command_line_argument=yes
16045else
16046  xorg_cv_cc_flag_unused_command_line_argument=no
16047fi
16048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16049fi
16050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16051$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16052	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16053	CFLAGS="$xorg_testset_save_CFLAGS"
16054fi
16055
16056found="no"
16057
16058	if test $found = "no" ; then
16059		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16060			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16061		fi
16062
16063		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16064			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16065		fi
16066
16067		CFLAGS="$CFLAGS -Wimplicit"
16068
16069		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16070$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16071		cacheid=xorg_cv_cc_flag__Wimplicit
16072		if eval \${$cacheid+:} false; then :
16073  $as_echo_n "(cached) " >&6
16074else
16075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076/* end confdefs.h.  */
16077int i;
16078int
16079main ()
16080{
16081
16082  ;
16083  return 0;
16084}
16085_ACEOF
16086if ac_fn_c_try_link "$LINENO"; then :
16087  eval $cacheid=yes
16088else
16089  eval $cacheid=no
16090fi
16091rm -f core conftest.err conftest.$ac_objext \
16092    conftest$ac_exeext conftest.$ac_ext
16093fi
16094
16095
16096		CFLAGS="$xorg_testset_save_CFLAGS"
16097
16098		eval supported=\$$cacheid
16099		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16100$as_echo "$supported" >&6; }
16101		if test "$supported" = "yes" ; then
16102			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16103			found="yes"
16104		fi
16105	fi
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121xorg_testset_save_CFLAGS="$CFLAGS"
16122
16123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16124	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16125	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16126$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16127if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16128  $as_echo_n "(cached) " >&6
16129else
16130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16131/* end confdefs.h.  */
16132int i;
16133_ACEOF
16134if ac_fn_c_try_compile "$LINENO"; then :
16135  xorg_cv_cc_flag_unknown_warning_option=yes
16136else
16137  xorg_cv_cc_flag_unknown_warning_option=no
16138fi
16139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16140fi
16141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16142$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16143	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16144	CFLAGS="$xorg_testset_save_CFLAGS"
16145fi
16146
16147if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16148	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16149		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16150	fi
16151	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16152	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16153$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16154if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16155  $as_echo_n "(cached) " >&6
16156else
16157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158/* end confdefs.h.  */
16159int i;
16160_ACEOF
16161if ac_fn_c_try_compile "$LINENO"; then :
16162  xorg_cv_cc_flag_unused_command_line_argument=yes
16163else
16164  xorg_cv_cc_flag_unused_command_line_argument=no
16165fi
16166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16167fi
16168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16169$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16170	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16171	CFLAGS="$xorg_testset_save_CFLAGS"
16172fi
16173
16174found="no"
16175
16176	if test $found = "no" ; then
16177		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16178			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16179		fi
16180
16181		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16182			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16183		fi
16184
16185		CFLAGS="$CFLAGS -Wnonnull"
16186
16187		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16188$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16189		cacheid=xorg_cv_cc_flag__Wnonnull
16190		if eval \${$cacheid+:} false; then :
16191  $as_echo_n "(cached) " >&6
16192else
16193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194/* end confdefs.h.  */
16195int i;
16196int
16197main ()
16198{
16199
16200  ;
16201  return 0;
16202}
16203_ACEOF
16204if ac_fn_c_try_link "$LINENO"; then :
16205  eval $cacheid=yes
16206else
16207  eval $cacheid=no
16208fi
16209rm -f core conftest.err conftest.$ac_objext \
16210    conftest$ac_exeext conftest.$ac_ext
16211fi
16212
16213
16214		CFLAGS="$xorg_testset_save_CFLAGS"
16215
16216		eval supported=\$$cacheid
16217		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16218$as_echo "$supported" >&6; }
16219		if test "$supported" = "yes" ; then
16220			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16221			found="yes"
16222		fi
16223	fi
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239xorg_testset_save_CFLAGS="$CFLAGS"
16240
16241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16242	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16243	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16244$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16245if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16246  $as_echo_n "(cached) " >&6
16247else
16248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249/* end confdefs.h.  */
16250int i;
16251_ACEOF
16252if ac_fn_c_try_compile "$LINENO"; then :
16253  xorg_cv_cc_flag_unknown_warning_option=yes
16254else
16255  xorg_cv_cc_flag_unknown_warning_option=no
16256fi
16257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16258fi
16259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16260$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16261	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16262	CFLAGS="$xorg_testset_save_CFLAGS"
16263fi
16264
16265if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16266	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16267		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16268	fi
16269	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16270	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16271$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16272if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16273  $as_echo_n "(cached) " >&6
16274else
16275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16276/* end confdefs.h.  */
16277int i;
16278_ACEOF
16279if ac_fn_c_try_compile "$LINENO"; then :
16280  xorg_cv_cc_flag_unused_command_line_argument=yes
16281else
16282  xorg_cv_cc_flag_unused_command_line_argument=no
16283fi
16284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16285fi
16286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16287$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16288	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16289	CFLAGS="$xorg_testset_save_CFLAGS"
16290fi
16291
16292found="no"
16293
16294	if test $found = "no" ; then
16295		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16296			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16297		fi
16298
16299		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16300			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16301		fi
16302
16303		CFLAGS="$CFLAGS -Winit-self"
16304
16305		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16306$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16307		cacheid=xorg_cv_cc_flag__Winit_self
16308		if eval \${$cacheid+:} false; then :
16309  $as_echo_n "(cached) " >&6
16310else
16311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16312/* end confdefs.h.  */
16313int i;
16314int
16315main ()
16316{
16317
16318  ;
16319  return 0;
16320}
16321_ACEOF
16322if ac_fn_c_try_link "$LINENO"; then :
16323  eval $cacheid=yes
16324else
16325  eval $cacheid=no
16326fi
16327rm -f core conftest.err conftest.$ac_objext \
16328    conftest$ac_exeext conftest.$ac_ext
16329fi
16330
16331
16332		CFLAGS="$xorg_testset_save_CFLAGS"
16333
16334		eval supported=\$$cacheid
16335		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16336$as_echo "$supported" >&6; }
16337		if test "$supported" = "yes" ; then
16338			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16339			found="yes"
16340		fi
16341	fi
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357xorg_testset_save_CFLAGS="$CFLAGS"
16358
16359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16360	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16361	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16362$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16363if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16364  $as_echo_n "(cached) " >&6
16365else
16366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16367/* end confdefs.h.  */
16368int i;
16369_ACEOF
16370if ac_fn_c_try_compile "$LINENO"; then :
16371  xorg_cv_cc_flag_unknown_warning_option=yes
16372else
16373  xorg_cv_cc_flag_unknown_warning_option=no
16374fi
16375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16376fi
16377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16378$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16379	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16380	CFLAGS="$xorg_testset_save_CFLAGS"
16381fi
16382
16383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16384	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16385		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16386	fi
16387	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16388	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16389$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16390if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16391  $as_echo_n "(cached) " >&6
16392else
16393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16394/* end confdefs.h.  */
16395int i;
16396_ACEOF
16397if ac_fn_c_try_compile "$LINENO"; then :
16398  xorg_cv_cc_flag_unused_command_line_argument=yes
16399else
16400  xorg_cv_cc_flag_unused_command_line_argument=no
16401fi
16402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16403fi
16404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16405$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16406	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16407	CFLAGS="$xorg_testset_save_CFLAGS"
16408fi
16409
16410found="no"
16411
16412	if test $found = "no" ; then
16413		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16414			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16415		fi
16416
16417		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16418			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16419		fi
16420
16421		CFLAGS="$CFLAGS -Wmain"
16422
16423		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16424$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16425		cacheid=xorg_cv_cc_flag__Wmain
16426		if eval \${$cacheid+:} false; then :
16427  $as_echo_n "(cached) " >&6
16428else
16429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16430/* end confdefs.h.  */
16431int i;
16432int
16433main ()
16434{
16435
16436  ;
16437  return 0;
16438}
16439_ACEOF
16440if ac_fn_c_try_link "$LINENO"; then :
16441  eval $cacheid=yes
16442else
16443  eval $cacheid=no
16444fi
16445rm -f core conftest.err conftest.$ac_objext \
16446    conftest$ac_exeext conftest.$ac_ext
16447fi
16448
16449
16450		CFLAGS="$xorg_testset_save_CFLAGS"
16451
16452		eval supported=\$$cacheid
16453		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16454$as_echo "$supported" >&6; }
16455		if test "$supported" = "yes" ; then
16456			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16457			found="yes"
16458		fi
16459	fi
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475xorg_testset_save_CFLAGS="$CFLAGS"
16476
16477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16478	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16479	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16480$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16481if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16482  $as_echo_n "(cached) " >&6
16483else
16484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16485/* end confdefs.h.  */
16486int i;
16487_ACEOF
16488if ac_fn_c_try_compile "$LINENO"; then :
16489  xorg_cv_cc_flag_unknown_warning_option=yes
16490else
16491  xorg_cv_cc_flag_unknown_warning_option=no
16492fi
16493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16494fi
16495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16496$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16497	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16498	CFLAGS="$xorg_testset_save_CFLAGS"
16499fi
16500
16501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16502	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16503		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16504	fi
16505	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16506	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16507$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16508if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16509  $as_echo_n "(cached) " >&6
16510else
16511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16512/* end confdefs.h.  */
16513int i;
16514_ACEOF
16515if ac_fn_c_try_compile "$LINENO"; then :
16516  xorg_cv_cc_flag_unused_command_line_argument=yes
16517else
16518  xorg_cv_cc_flag_unused_command_line_argument=no
16519fi
16520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16521fi
16522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16523$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16524	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16525	CFLAGS="$xorg_testset_save_CFLAGS"
16526fi
16527
16528found="no"
16529
16530	if test $found = "no" ; then
16531		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16532			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16533		fi
16534
16535		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16536			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16537		fi
16538
16539		CFLAGS="$CFLAGS -Wmissing-braces"
16540
16541		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16542$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16543		cacheid=xorg_cv_cc_flag__Wmissing_braces
16544		if eval \${$cacheid+:} false; then :
16545  $as_echo_n "(cached) " >&6
16546else
16547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16548/* end confdefs.h.  */
16549int i;
16550int
16551main ()
16552{
16553
16554  ;
16555  return 0;
16556}
16557_ACEOF
16558if ac_fn_c_try_link "$LINENO"; then :
16559  eval $cacheid=yes
16560else
16561  eval $cacheid=no
16562fi
16563rm -f core conftest.err conftest.$ac_objext \
16564    conftest$ac_exeext conftest.$ac_ext
16565fi
16566
16567
16568		CFLAGS="$xorg_testset_save_CFLAGS"
16569
16570		eval supported=\$$cacheid
16571		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16572$as_echo "$supported" >&6; }
16573		if test "$supported" = "yes" ; then
16574			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16575			found="yes"
16576		fi
16577	fi
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593xorg_testset_save_CFLAGS="$CFLAGS"
16594
16595if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16596	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16597	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16598$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16599if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16600  $as_echo_n "(cached) " >&6
16601else
16602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603/* end confdefs.h.  */
16604int i;
16605_ACEOF
16606if ac_fn_c_try_compile "$LINENO"; then :
16607  xorg_cv_cc_flag_unknown_warning_option=yes
16608else
16609  xorg_cv_cc_flag_unknown_warning_option=no
16610fi
16611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16612fi
16613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16614$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16615	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16616	CFLAGS="$xorg_testset_save_CFLAGS"
16617fi
16618
16619if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16620	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16621		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16622	fi
16623	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16624	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16625$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16626if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16627  $as_echo_n "(cached) " >&6
16628else
16629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630/* end confdefs.h.  */
16631int i;
16632_ACEOF
16633if ac_fn_c_try_compile "$LINENO"; then :
16634  xorg_cv_cc_flag_unused_command_line_argument=yes
16635else
16636  xorg_cv_cc_flag_unused_command_line_argument=no
16637fi
16638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16639fi
16640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16641$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16642	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16643	CFLAGS="$xorg_testset_save_CFLAGS"
16644fi
16645
16646found="no"
16647
16648	if test $found = "no" ; then
16649		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16650			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16651		fi
16652
16653		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16654			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16655		fi
16656
16657		CFLAGS="$CFLAGS -Wsequence-point"
16658
16659		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16660$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16661		cacheid=xorg_cv_cc_flag__Wsequence_point
16662		if eval \${$cacheid+:} false; then :
16663  $as_echo_n "(cached) " >&6
16664else
16665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666/* end confdefs.h.  */
16667int i;
16668int
16669main ()
16670{
16671
16672  ;
16673  return 0;
16674}
16675_ACEOF
16676if ac_fn_c_try_link "$LINENO"; then :
16677  eval $cacheid=yes
16678else
16679  eval $cacheid=no
16680fi
16681rm -f core conftest.err conftest.$ac_objext \
16682    conftest$ac_exeext conftest.$ac_ext
16683fi
16684
16685
16686		CFLAGS="$xorg_testset_save_CFLAGS"
16687
16688		eval supported=\$$cacheid
16689		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16690$as_echo "$supported" >&6; }
16691		if test "$supported" = "yes" ; then
16692			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16693			found="yes"
16694		fi
16695	fi
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711xorg_testset_save_CFLAGS="$CFLAGS"
16712
16713if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16714	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16715	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16716$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16717if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16718  $as_echo_n "(cached) " >&6
16719else
16720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721/* end confdefs.h.  */
16722int i;
16723_ACEOF
16724if ac_fn_c_try_compile "$LINENO"; then :
16725  xorg_cv_cc_flag_unknown_warning_option=yes
16726else
16727  xorg_cv_cc_flag_unknown_warning_option=no
16728fi
16729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16730fi
16731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16732$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16733	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16734	CFLAGS="$xorg_testset_save_CFLAGS"
16735fi
16736
16737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16738	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16739		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16740	fi
16741	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16743$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16744if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16745  $as_echo_n "(cached) " >&6
16746else
16747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748/* end confdefs.h.  */
16749int i;
16750_ACEOF
16751if ac_fn_c_try_compile "$LINENO"; then :
16752  xorg_cv_cc_flag_unused_command_line_argument=yes
16753else
16754  xorg_cv_cc_flag_unused_command_line_argument=no
16755fi
16756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16757fi
16758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16759$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16760	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16761	CFLAGS="$xorg_testset_save_CFLAGS"
16762fi
16763
16764found="no"
16765
16766	if test $found = "no" ; then
16767		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16768			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16769		fi
16770
16771		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16772			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16773		fi
16774
16775		CFLAGS="$CFLAGS -Wreturn-type"
16776
16777		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16778$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16779		cacheid=xorg_cv_cc_flag__Wreturn_type
16780		if eval \${$cacheid+:} false; then :
16781  $as_echo_n "(cached) " >&6
16782else
16783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16784/* end confdefs.h.  */
16785int i;
16786int
16787main ()
16788{
16789
16790  ;
16791  return 0;
16792}
16793_ACEOF
16794if ac_fn_c_try_link "$LINENO"; then :
16795  eval $cacheid=yes
16796else
16797  eval $cacheid=no
16798fi
16799rm -f core conftest.err conftest.$ac_objext \
16800    conftest$ac_exeext conftest.$ac_ext
16801fi
16802
16803
16804		CFLAGS="$xorg_testset_save_CFLAGS"
16805
16806		eval supported=\$$cacheid
16807		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16808$as_echo "$supported" >&6; }
16809		if test "$supported" = "yes" ; then
16810			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16811			found="yes"
16812		fi
16813	fi
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829xorg_testset_save_CFLAGS="$CFLAGS"
16830
16831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16832	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16833	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16834$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16835if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16836  $as_echo_n "(cached) " >&6
16837else
16838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16839/* end confdefs.h.  */
16840int i;
16841_ACEOF
16842if ac_fn_c_try_compile "$LINENO"; then :
16843  xorg_cv_cc_flag_unknown_warning_option=yes
16844else
16845  xorg_cv_cc_flag_unknown_warning_option=no
16846fi
16847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16848fi
16849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16850$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16851	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16852	CFLAGS="$xorg_testset_save_CFLAGS"
16853fi
16854
16855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16856	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16857		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16858	fi
16859	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16861$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16862if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16863  $as_echo_n "(cached) " >&6
16864else
16865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16866/* end confdefs.h.  */
16867int i;
16868_ACEOF
16869if ac_fn_c_try_compile "$LINENO"; then :
16870  xorg_cv_cc_flag_unused_command_line_argument=yes
16871else
16872  xorg_cv_cc_flag_unused_command_line_argument=no
16873fi
16874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16875fi
16876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16877$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16878	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16879	CFLAGS="$xorg_testset_save_CFLAGS"
16880fi
16881
16882found="no"
16883
16884	if test $found = "no" ; then
16885		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16886			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16887		fi
16888
16889		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16890			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16891		fi
16892
16893		CFLAGS="$CFLAGS -Wtrigraphs"
16894
16895		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16896$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16897		cacheid=xorg_cv_cc_flag__Wtrigraphs
16898		if eval \${$cacheid+:} false; then :
16899  $as_echo_n "(cached) " >&6
16900else
16901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902/* end confdefs.h.  */
16903int i;
16904int
16905main ()
16906{
16907
16908  ;
16909  return 0;
16910}
16911_ACEOF
16912if ac_fn_c_try_link "$LINENO"; then :
16913  eval $cacheid=yes
16914else
16915  eval $cacheid=no
16916fi
16917rm -f core conftest.err conftest.$ac_objext \
16918    conftest$ac_exeext conftest.$ac_ext
16919fi
16920
16921
16922		CFLAGS="$xorg_testset_save_CFLAGS"
16923
16924		eval supported=\$$cacheid
16925		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16926$as_echo "$supported" >&6; }
16927		if test "$supported" = "yes" ; then
16928			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16929			found="yes"
16930		fi
16931	fi
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947xorg_testset_save_CFLAGS="$CFLAGS"
16948
16949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16950	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16951	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16952$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16953if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16954  $as_echo_n "(cached) " >&6
16955else
16956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16957/* end confdefs.h.  */
16958int i;
16959_ACEOF
16960if ac_fn_c_try_compile "$LINENO"; then :
16961  xorg_cv_cc_flag_unknown_warning_option=yes
16962else
16963  xorg_cv_cc_flag_unknown_warning_option=no
16964fi
16965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16966fi
16967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16968$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16969	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16970	CFLAGS="$xorg_testset_save_CFLAGS"
16971fi
16972
16973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16974	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16976	fi
16977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16978	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16979$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16980if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16981  $as_echo_n "(cached) " >&6
16982else
16983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16984/* end confdefs.h.  */
16985int i;
16986_ACEOF
16987if ac_fn_c_try_compile "$LINENO"; then :
16988  xorg_cv_cc_flag_unused_command_line_argument=yes
16989else
16990  xorg_cv_cc_flag_unused_command_line_argument=no
16991fi
16992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16993fi
16994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16995$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16996	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16997	CFLAGS="$xorg_testset_save_CFLAGS"
16998fi
16999
17000found="no"
17001
17002	if test $found = "no" ; then
17003		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17004			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17005		fi
17006
17007		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17008			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17009		fi
17010
17011		CFLAGS="$CFLAGS -Warray-bounds"
17012
17013		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17014$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17015		cacheid=xorg_cv_cc_flag__Warray_bounds
17016		if eval \${$cacheid+:} false; then :
17017  $as_echo_n "(cached) " >&6
17018else
17019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020/* end confdefs.h.  */
17021int i;
17022int
17023main ()
17024{
17025
17026  ;
17027  return 0;
17028}
17029_ACEOF
17030if ac_fn_c_try_link "$LINENO"; then :
17031  eval $cacheid=yes
17032else
17033  eval $cacheid=no
17034fi
17035rm -f core conftest.err conftest.$ac_objext \
17036    conftest$ac_exeext conftest.$ac_ext
17037fi
17038
17039
17040		CFLAGS="$xorg_testset_save_CFLAGS"
17041
17042		eval supported=\$$cacheid
17043		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17044$as_echo "$supported" >&6; }
17045		if test "$supported" = "yes" ; then
17046			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17047			found="yes"
17048		fi
17049	fi
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065xorg_testset_save_CFLAGS="$CFLAGS"
17066
17067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17068	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17069	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17070$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17071if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17072  $as_echo_n "(cached) " >&6
17073else
17074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075/* end confdefs.h.  */
17076int i;
17077_ACEOF
17078if ac_fn_c_try_compile "$LINENO"; then :
17079  xorg_cv_cc_flag_unknown_warning_option=yes
17080else
17081  xorg_cv_cc_flag_unknown_warning_option=no
17082fi
17083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17084fi
17085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17086$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17087	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17088	CFLAGS="$xorg_testset_save_CFLAGS"
17089fi
17090
17091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17092	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17093		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17094	fi
17095	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17096	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17097$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17098if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17099  $as_echo_n "(cached) " >&6
17100else
17101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17102/* end confdefs.h.  */
17103int i;
17104_ACEOF
17105if ac_fn_c_try_compile "$LINENO"; then :
17106  xorg_cv_cc_flag_unused_command_line_argument=yes
17107else
17108  xorg_cv_cc_flag_unused_command_line_argument=no
17109fi
17110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17111fi
17112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17113$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17114	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17115	CFLAGS="$xorg_testset_save_CFLAGS"
17116fi
17117
17118found="no"
17119
17120	if test $found = "no" ; then
17121		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17122			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17123		fi
17124
17125		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17126			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17127		fi
17128
17129		CFLAGS="$CFLAGS -Wwrite-strings"
17130
17131		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17132$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17133		cacheid=xorg_cv_cc_flag__Wwrite_strings
17134		if eval \${$cacheid+:} false; then :
17135  $as_echo_n "(cached) " >&6
17136else
17137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138/* end confdefs.h.  */
17139int i;
17140int
17141main ()
17142{
17143
17144  ;
17145  return 0;
17146}
17147_ACEOF
17148if ac_fn_c_try_link "$LINENO"; then :
17149  eval $cacheid=yes
17150else
17151  eval $cacheid=no
17152fi
17153rm -f core conftest.err conftest.$ac_objext \
17154    conftest$ac_exeext conftest.$ac_ext
17155fi
17156
17157
17158		CFLAGS="$xorg_testset_save_CFLAGS"
17159
17160		eval supported=\$$cacheid
17161		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17162$as_echo "$supported" >&6; }
17163		if test "$supported" = "yes" ; then
17164			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17165			found="yes"
17166		fi
17167	fi
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183xorg_testset_save_CFLAGS="$CFLAGS"
17184
17185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17186	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17187	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17188$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17189if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17190  $as_echo_n "(cached) " >&6
17191else
17192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193/* end confdefs.h.  */
17194int i;
17195_ACEOF
17196if ac_fn_c_try_compile "$LINENO"; then :
17197  xorg_cv_cc_flag_unknown_warning_option=yes
17198else
17199  xorg_cv_cc_flag_unknown_warning_option=no
17200fi
17201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17202fi
17203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17204$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17205	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17206	CFLAGS="$xorg_testset_save_CFLAGS"
17207fi
17208
17209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17210	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17211		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17212	fi
17213	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17215$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17216if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17217  $as_echo_n "(cached) " >&6
17218else
17219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17220/* end confdefs.h.  */
17221int i;
17222_ACEOF
17223if ac_fn_c_try_compile "$LINENO"; then :
17224  xorg_cv_cc_flag_unused_command_line_argument=yes
17225else
17226  xorg_cv_cc_flag_unused_command_line_argument=no
17227fi
17228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17229fi
17230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17231$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17232	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17233	CFLAGS="$xorg_testset_save_CFLAGS"
17234fi
17235
17236found="no"
17237
17238	if test $found = "no" ; then
17239		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17240			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17241		fi
17242
17243		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17244			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17245		fi
17246
17247		CFLAGS="$CFLAGS -Waddress"
17248
17249		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17250$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17251		cacheid=xorg_cv_cc_flag__Waddress
17252		if eval \${$cacheid+:} false; then :
17253  $as_echo_n "(cached) " >&6
17254else
17255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256/* end confdefs.h.  */
17257int i;
17258int
17259main ()
17260{
17261
17262  ;
17263  return 0;
17264}
17265_ACEOF
17266if ac_fn_c_try_link "$LINENO"; then :
17267  eval $cacheid=yes
17268else
17269  eval $cacheid=no
17270fi
17271rm -f core conftest.err conftest.$ac_objext \
17272    conftest$ac_exeext conftest.$ac_ext
17273fi
17274
17275
17276		CFLAGS="$xorg_testset_save_CFLAGS"
17277
17278		eval supported=\$$cacheid
17279		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17280$as_echo "$supported" >&6; }
17281		if test "$supported" = "yes" ; then
17282			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17283			found="yes"
17284		fi
17285	fi
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301xorg_testset_save_CFLAGS="$CFLAGS"
17302
17303if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17304	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17305	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17306$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17307if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17308  $as_echo_n "(cached) " >&6
17309else
17310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17311/* end confdefs.h.  */
17312int i;
17313_ACEOF
17314if ac_fn_c_try_compile "$LINENO"; then :
17315  xorg_cv_cc_flag_unknown_warning_option=yes
17316else
17317  xorg_cv_cc_flag_unknown_warning_option=no
17318fi
17319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17320fi
17321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17322$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17323	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17324	CFLAGS="$xorg_testset_save_CFLAGS"
17325fi
17326
17327if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17328	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17329		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17330	fi
17331	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17332	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17333$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17334if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17335  $as_echo_n "(cached) " >&6
17336else
17337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338/* end confdefs.h.  */
17339int i;
17340_ACEOF
17341if ac_fn_c_try_compile "$LINENO"; then :
17342  xorg_cv_cc_flag_unused_command_line_argument=yes
17343else
17344  xorg_cv_cc_flag_unused_command_line_argument=no
17345fi
17346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17347fi
17348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17349$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17350	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17351	CFLAGS="$xorg_testset_save_CFLAGS"
17352fi
17353
17354found="no"
17355
17356	if test $found = "no" ; then
17357		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17358			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17359		fi
17360
17361		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17362			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17363		fi
17364
17365		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17366
17367		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17368$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17369		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17370		if eval \${$cacheid+:} false; then :
17371  $as_echo_n "(cached) " >&6
17372else
17373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374/* end confdefs.h.  */
17375int i;
17376int
17377main ()
17378{
17379
17380  ;
17381  return 0;
17382}
17383_ACEOF
17384if ac_fn_c_try_link "$LINENO"; then :
17385  eval $cacheid=yes
17386else
17387  eval $cacheid=no
17388fi
17389rm -f core conftest.err conftest.$ac_objext \
17390    conftest$ac_exeext conftest.$ac_ext
17391fi
17392
17393
17394		CFLAGS="$xorg_testset_save_CFLAGS"
17395
17396		eval supported=\$$cacheid
17397		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17398$as_echo "$supported" >&6; }
17399		if test "$supported" = "yes" ; then
17400			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17401			found="yes"
17402		fi
17403	fi
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419xorg_testset_save_CFLAGS="$CFLAGS"
17420
17421if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17422	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17423	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17424$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17425if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17426  $as_echo_n "(cached) " >&6
17427else
17428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17429/* end confdefs.h.  */
17430int i;
17431_ACEOF
17432if ac_fn_c_try_compile "$LINENO"; then :
17433  xorg_cv_cc_flag_unknown_warning_option=yes
17434else
17435  xorg_cv_cc_flag_unknown_warning_option=no
17436fi
17437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17438fi
17439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17440$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17441	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17442	CFLAGS="$xorg_testset_save_CFLAGS"
17443fi
17444
17445if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17446	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17447		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17448	fi
17449	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17450	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17451$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17452if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17453  $as_echo_n "(cached) " >&6
17454else
17455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17456/* end confdefs.h.  */
17457int i;
17458_ACEOF
17459if ac_fn_c_try_compile "$LINENO"; then :
17460  xorg_cv_cc_flag_unused_command_line_argument=yes
17461else
17462  xorg_cv_cc_flag_unused_command_line_argument=no
17463fi
17464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17465fi
17466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17467$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17468	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17469	CFLAGS="$xorg_testset_save_CFLAGS"
17470fi
17471
17472found="no"
17473
17474	if test $found = "no" ; then
17475		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17476			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17477		fi
17478
17479		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17480			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17481		fi
17482
17483		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17484
17485		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17486$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17487		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17488		if eval \${$cacheid+:} false; then :
17489  $as_echo_n "(cached) " >&6
17490else
17491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492/* end confdefs.h.  */
17493int i;
17494int
17495main ()
17496{
17497
17498  ;
17499  return 0;
17500}
17501_ACEOF
17502if ac_fn_c_try_link "$LINENO"; then :
17503  eval $cacheid=yes
17504else
17505  eval $cacheid=no
17506fi
17507rm -f core conftest.err conftest.$ac_objext \
17508    conftest$ac_exeext conftest.$ac_ext
17509fi
17510
17511
17512		CFLAGS="$xorg_testset_save_CFLAGS"
17513
17514		eval supported=\$$cacheid
17515		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17516$as_echo "$supported" >&6; }
17517		if test "$supported" = "yes" ; then
17518			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17519			found="yes"
17520		fi
17521	fi
17522
17523
17524fi
17525
17526
17527
17528
17529
17530
17531
17532		CWARNFLAGS="$BASE_CFLAGS"
17533		if  test "x$GCC" = xyes ; then
17534		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17535		fi
17536
17537
17538
17539
17540
17541
17542
17543
17544# Check whether --enable-strict-compilation was given.
17545if test "${enable_strict_compilation+set}" = set; then :
17546  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17547else
17548  STRICT_COMPILE=no
17549fi
17550
17551
17552
17553
17554
17555
17556STRICT_CFLAGS=""
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570xorg_testset_save_CFLAGS="$CFLAGS"
17571
17572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17573	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17574	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17575$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17576if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17577  $as_echo_n "(cached) " >&6
17578else
17579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580/* end confdefs.h.  */
17581int i;
17582_ACEOF
17583if ac_fn_c_try_compile "$LINENO"; then :
17584  xorg_cv_cc_flag_unknown_warning_option=yes
17585else
17586  xorg_cv_cc_flag_unknown_warning_option=no
17587fi
17588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17589fi
17590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17591$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17592	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17593	CFLAGS="$xorg_testset_save_CFLAGS"
17594fi
17595
17596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17597	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17598		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17599	fi
17600	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17601	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17602$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17603if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17604  $as_echo_n "(cached) " >&6
17605else
17606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17607/* end confdefs.h.  */
17608int i;
17609_ACEOF
17610if ac_fn_c_try_compile "$LINENO"; then :
17611  xorg_cv_cc_flag_unused_command_line_argument=yes
17612else
17613  xorg_cv_cc_flag_unused_command_line_argument=no
17614fi
17615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17616fi
17617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17618$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17619	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17620	CFLAGS="$xorg_testset_save_CFLAGS"
17621fi
17622
17623found="no"
17624
17625	if test $found = "no" ; then
17626		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17627			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17628		fi
17629
17630		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17631			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17632		fi
17633
17634		CFLAGS="$CFLAGS -pedantic"
17635
17636		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17637$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17638		cacheid=xorg_cv_cc_flag__pedantic
17639		if eval \${$cacheid+:} false; then :
17640  $as_echo_n "(cached) " >&6
17641else
17642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17643/* end confdefs.h.  */
17644int i;
17645int
17646main ()
17647{
17648
17649  ;
17650  return 0;
17651}
17652_ACEOF
17653if ac_fn_c_try_link "$LINENO"; then :
17654  eval $cacheid=yes
17655else
17656  eval $cacheid=no
17657fi
17658rm -f core conftest.err conftest.$ac_objext \
17659    conftest$ac_exeext conftest.$ac_ext
17660fi
17661
17662
17663		CFLAGS="$xorg_testset_save_CFLAGS"
17664
17665		eval supported=\$$cacheid
17666		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17667$as_echo "$supported" >&6; }
17668		if test "$supported" = "yes" ; then
17669			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17670			found="yes"
17671		fi
17672	fi
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688xorg_testset_save_CFLAGS="$CFLAGS"
17689
17690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17691	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17692	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17693$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17694if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17695  $as_echo_n "(cached) " >&6
17696else
17697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17698/* end confdefs.h.  */
17699int i;
17700_ACEOF
17701if ac_fn_c_try_compile "$LINENO"; then :
17702  xorg_cv_cc_flag_unknown_warning_option=yes
17703else
17704  xorg_cv_cc_flag_unknown_warning_option=no
17705fi
17706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17707fi
17708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17709$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17710	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17711	CFLAGS="$xorg_testset_save_CFLAGS"
17712fi
17713
17714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17715	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17716		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17717	fi
17718	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17719	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17720$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17721if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17722  $as_echo_n "(cached) " >&6
17723else
17724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17725/* end confdefs.h.  */
17726int i;
17727_ACEOF
17728if ac_fn_c_try_compile "$LINENO"; then :
17729  xorg_cv_cc_flag_unused_command_line_argument=yes
17730else
17731  xorg_cv_cc_flag_unused_command_line_argument=no
17732fi
17733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17734fi
17735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17736$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17737	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17738	CFLAGS="$xorg_testset_save_CFLAGS"
17739fi
17740
17741found="no"
17742
17743	if test $found = "no" ; then
17744		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17745			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17746		fi
17747
17748		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17749			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17750		fi
17751
17752		CFLAGS="$CFLAGS -Werror"
17753
17754		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17755$as_echo_n "checking if $CC supports -Werror... " >&6; }
17756		cacheid=xorg_cv_cc_flag__Werror
17757		if eval \${$cacheid+:} false; then :
17758  $as_echo_n "(cached) " >&6
17759else
17760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761/* end confdefs.h.  */
17762int i;
17763int
17764main ()
17765{
17766
17767  ;
17768  return 0;
17769}
17770_ACEOF
17771if ac_fn_c_try_link "$LINENO"; then :
17772  eval $cacheid=yes
17773else
17774  eval $cacheid=no
17775fi
17776rm -f core conftest.err conftest.$ac_objext \
17777    conftest$ac_exeext conftest.$ac_ext
17778fi
17779
17780
17781		CFLAGS="$xorg_testset_save_CFLAGS"
17782
17783		eval supported=\$$cacheid
17784		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17785$as_echo "$supported" >&6; }
17786		if test "$supported" = "yes" ; then
17787			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17788			found="yes"
17789		fi
17790	fi
17791
17792	if test $found = "no" ; then
17793		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17794			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17795		fi
17796
17797		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17798			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17799		fi
17800
17801		CFLAGS="$CFLAGS -errwarn"
17802
17803		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17804$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17805		cacheid=xorg_cv_cc_flag__errwarn
17806		if eval \${$cacheid+:} false; then :
17807  $as_echo_n "(cached) " >&6
17808else
17809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17810/* end confdefs.h.  */
17811int i;
17812int
17813main ()
17814{
17815
17816  ;
17817  return 0;
17818}
17819_ACEOF
17820if ac_fn_c_try_link "$LINENO"; then :
17821  eval $cacheid=yes
17822else
17823  eval $cacheid=no
17824fi
17825rm -f core conftest.err conftest.$ac_objext \
17826    conftest$ac_exeext conftest.$ac_ext
17827fi
17828
17829
17830		CFLAGS="$xorg_testset_save_CFLAGS"
17831
17832		eval supported=\$$cacheid
17833		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17834$as_echo "$supported" >&6; }
17835		if test "$supported" = "yes" ; then
17836			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17837			found="yes"
17838		fi
17839	fi
17840
17841
17842
17843# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17844# activate it with -Werror, so we add it here explicitly.
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858xorg_testset_save_CFLAGS="$CFLAGS"
17859
17860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17861	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17862	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17863$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17864if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17865  $as_echo_n "(cached) " >&6
17866else
17867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17868/* end confdefs.h.  */
17869int i;
17870_ACEOF
17871if ac_fn_c_try_compile "$LINENO"; then :
17872  xorg_cv_cc_flag_unknown_warning_option=yes
17873else
17874  xorg_cv_cc_flag_unknown_warning_option=no
17875fi
17876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17877fi
17878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17879$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17880	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17881	CFLAGS="$xorg_testset_save_CFLAGS"
17882fi
17883
17884if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17885	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17886		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17887	fi
17888	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17889	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17890$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17891if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17892  $as_echo_n "(cached) " >&6
17893else
17894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17895/* end confdefs.h.  */
17896int i;
17897_ACEOF
17898if ac_fn_c_try_compile "$LINENO"; then :
17899  xorg_cv_cc_flag_unused_command_line_argument=yes
17900else
17901  xorg_cv_cc_flag_unused_command_line_argument=no
17902fi
17903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17904fi
17905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17906$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17907	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17908	CFLAGS="$xorg_testset_save_CFLAGS"
17909fi
17910
17911found="no"
17912
17913	if test $found = "no" ; then
17914		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17915			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17916		fi
17917
17918		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17919			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17920		fi
17921
17922		CFLAGS="$CFLAGS -Werror=attributes"
17923
17924		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17925$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17926		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17927		if eval \${$cacheid+:} false; then :
17928  $as_echo_n "(cached) " >&6
17929else
17930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17931/* end confdefs.h.  */
17932int i;
17933int
17934main ()
17935{
17936
17937  ;
17938  return 0;
17939}
17940_ACEOF
17941if ac_fn_c_try_link "$LINENO"; then :
17942  eval $cacheid=yes
17943else
17944  eval $cacheid=no
17945fi
17946rm -f core conftest.err conftest.$ac_objext \
17947    conftest$ac_exeext conftest.$ac_ext
17948fi
17949
17950
17951		CFLAGS="$xorg_testset_save_CFLAGS"
17952
17953		eval supported=\$$cacheid
17954		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17955$as_echo "$supported" >&6; }
17956		if test "$supported" = "yes" ; then
17957			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17958			found="yes"
17959		fi
17960	fi
17961
17962
17963
17964if test "x$STRICT_COMPILE" = "xyes"; then
17965    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17966    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17967fi
17968
17969
17970
17971
17972
17973
17974cat >>confdefs.h <<_ACEOF
17975#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17976_ACEOF
17977
17978	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17979	if test "x$PVM" = "x"; then
17980		PVM="0"
17981	fi
17982
17983cat >>confdefs.h <<_ACEOF
17984#define PACKAGE_VERSION_MINOR $PVM
17985_ACEOF
17986
17987	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17988	if test "x$PVP" = "x"; then
17989		PVP="0"
17990	fi
17991
17992cat >>confdefs.h <<_ACEOF
17993#define PACKAGE_VERSION_PATCHLEVEL $PVP
17994_ACEOF
17995
17996
17997
17998CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17999mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18000|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18001echo 'git directory not found: installing possibly empty changelog.' >&2)"
18002
18003
18004
18005
18006macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18007INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18008mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18009|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18010echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18011
18012
18013
18014
18015
18016
18017if test x$APP_MAN_SUFFIX = x    ; then
18018    APP_MAN_SUFFIX=1
18019fi
18020if test x$APP_MAN_DIR = x    ; then
18021    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18022fi
18023
18024if test x$LIB_MAN_SUFFIX = x    ; then
18025    LIB_MAN_SUFFIX=3
18026fi
18027if test x$LIB_MAN_DIR = x    ; then
18028    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18029fi
18030
18031if test x$FILE_MAN_SUFFIX = x    ; then
18032    case $host_os in
18033	solaris*)	FILE_MAN_SUFFIX=4  ;;
18034	*)		FILE_MAN_SUFFIX=5  ;;
18035    esac
18036fi
18037if test x$FILE_MAN_DIR = x    ; then
18038    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18039fi
18040
18041if test x$MISC_MAN_SUFFIX = x    ; then
18042    case $host_os in
18043	solaris*)	MISC_MAN_SUFFIX=5  ;;
18044	*)		MISC_MAN_SUFFIX=7  ;;
18045    esac
18046fi
18047if test x$MISC_MAN_DIR = x    ; then
18048    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18049fi
18050
18051if test x$DRIVER_MAN_SUFFIX = x    ; then
18052    case $host_os in
18053	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
18054	*)		DRIVER_MAN_SUFFIX=4  ;;
18055    esac
18056fi
18057if test x$DRIVER_MAN_DIR = x    ; then
18058    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18059fi
18060
18061if test x$ADMIN_MAN_SUFFIX = x    ; then
18062    case $host_os in
18063	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
18064	*)		ADMIN_MAN_SUFFIX=8  ;;
18065    esac
18066fi
18067if test x$ADMIN_MAN_DIR = x    ; then
18068    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18069fi
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085XORG_MAN_PAGE="X Version 11"
18086
18087MAN_SUBSTS="\
18088	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18089	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18090	-e 's|__xservername__|Xorg|g' \
18091	-e 's|__xconfigfile__|xorg.conf|g' \
18092	-e 's|__projectroot__|\$(prefix)|g' \
18093	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18094	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18095	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18096	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18097	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18098	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18099	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18100
18101
18102
18103# Check whether --enable-silent-rules was given.
18104if test "${enable_silent_rules+set}" = set; then :
18105  enableval=$enable_silent_rules;
18106fi
18107
18108case $enable_silent_rules in # (((
18109  yes) AM_DEFAULT_VERBOSITY=0;;
18110   no) AM_DEFAULT_VERBOSITY=1;;
18111    *) AM_DEFAULT_VERBOSITY=0;;
18112esac
18113am_make=${MAKE-make}
18114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18115$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18116if ${am_cv_make_support_nested_variables+:} false; then :
18117  $as_echo_n "(cached) " >&6
18118else
18119  if $as_echo 'TRUE=$(BAR$(V))
18120BAR0=false
18121BAR1=true
18122V=1
18123am__doit:
18124	@$(TRUE)
18125.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18126  am_cv_make_support_nested_variables=yes
18127else
18128  am_cv_make_support_nested_variables=no
18129fi
18130fi
18131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18132$as_echo "$am_cv_make_support_nested_variables" >&6; }
18133if test $am_cv_make_support_nested_variables = yes; then
18134    AM_V='$(V)'
18135  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18136else
18137  AM_V=$AM_DEFAULT_VERBOSITY
18138  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18139fi
18140AM_BACKSLASH='\'
18141
18142
18143
18144
18145# Check whether --enable-devel-docs was given.
18146if test "${enable_devel_docs+set}" = set; then :
18147  enableval=$enable_devel_docs; build_devel_docs=$enableval
18148else
18149  build_devel_docs=yes
18150fi
18151
18152
18153 if test x$build_devel_docs = xyes; then
18154  ENABLE_DEVEL_DOCS_TRUE=
18155  ENABLE_DEVEL_DOCS_FALSE='#'
18156else
18157  ENABLE_DEVEL_DOCS_TRUE='#'
18158  ENABLE_DEVEL_DOCS_FALSE=
18159fi
18160
18161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
18162$as_echo_n "checking whether to build developer documentation... " >&6; }
18163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
18164$as_echo "$build_devel_docs" >&6; }
18165
18166
18167
18168
18169
18170# Check whether --with-xmlto was given.
18171if test "${with_xmlto+set}" = set; then :
18172  withval=$with_xmlto; use_xmlto=$withval
18173else
18174  use_xmlto=auto
18175fi
18176
18177
18178
18179if test "x$use_xmlto" = x"auto"; then
18180   # Extract the first word of "xmlto", so it can be a program name with args.
18181set dummy xmlto; ac_word=$2
18182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18183$as_echo_n "checking for $ac_word... " >&6; }
18184if ${ac_cv_path_XMLTO+:} false; then :
18185  $as_echo_n "(cached) " >&6
18186else
18187  case $XMLTO in
18188  [\\/]* | ?:[\\/]*)
18189  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18190  ;;
18191  *)
18192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18193for as_dir in $PATH
18194do
18195  IFS=$as_save_IFS
18196  test -z "$as_dir" && as_dir=.
18197    for ac_exec_ext in '' $ac_executable_extensions; do
18198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18199    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18201    break 2
18202  fi
18203done
18204  done
18205IFS=$as_save_IFS
18206
18207  ;;
18208esac
18209fi
18210XMLTO=$ac_cv_path_XMLTO
18211if test -n "$XMLTO"; then
18212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18213$as_echo "$XMLTO" >&6; }
18214else
18215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18216$as_echo "no" >&6; }
18217fi
18218
18219
18220   if test "x$XMLTO" = "x"; then
18221        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
18222$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18223	have_xmlto=no
18224   else
18225        have_xmlto=yes
18226   fi
18227elif test "x$use_xmlto" = x"yes" ; then
18228   # Extract the first word of "xmlto", so it can be a program name with args.
18229set dummy xmlto; ac_word=$2
18230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18231$as_echo_n "checking for $ac_word... " >&6; }
18232if ${ac_cv_path_XMLTO+:} false; then :
18233  $as_echo_n "(cached) " >&6
18234else
18235  case $XMLTO in
18236  [\\/]* | ?:[\\/]*)
18237  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18238  ;;
18239  *)
18240  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18241for as_dir in $PATH
18242do
18243  IFS=$as_save_IFS
18244  test -z "$as_dir" && as_dir=.
18245    for ac_exec_ext in '' $ac_executable_extensions; do
18246  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18247    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18248    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18249    break 2
18250  fi
18251done
18252  done
18253IFS=$as_save_IFS
18254
18255  ;;
18256esac
18257fi
18258XMLTO=$ac_cv_path_XMLTO
18259if test -n "$XMLTO"; then
18260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18261$as_echo "$XMLTO" >&6; }
18262else
18263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18264$as_echo "no" >&6; }
18265fi
18266
18267
18268   if test "x$XMLTO" = "x"; then
18269        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18270   fi
18271   have_xmlto=yes
18272elif test "x$use_xmlto" = x"no" ; then
18273   if test "x$XMLTO" != "x"; then
18274      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18275$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18276   fi
18277   have_xmlto=no
18278else
18279   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18280fi
18281
18282# Test for a minimum version of xmlto, if provided.
18283if test "$have_xmlto" = yes; then
18284    # scrape the xmlto version
18285    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18286$as_echo_n "checking the xmlto version... " >&6; }
18287    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18288    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18289$as_echo "$xmlto_version" >&6; }
18290    as_arg_v1=$xmlto_version
18291as_arg_v2=0.0.22
18292awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18293case $? in #(
18294  1) :
18295    if test "x$use_xmlto" = xauto; then
18296            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
18297$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
18298            have_xmlto=no
18299        else
18300            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
18301        fi ;; #(
18302  0) :
18303     ;; #(
18304  2) :
18305     ;; #(
18306  *) :
18307     ;;
18308esac
18309fi
18310
18311# Test for the ability of xmlto to generate a text target
18312have_xmlto_text=no
18313cat > conftest.xml << "EOF"
18314EOF
18315if test "$have_xmlto" = yes; then :
18316  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18317  have_xmlto_text=yes
18318else
18319  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18320$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18321fi
18322fi
18323rm -f conftest.xml
18324 if test $have_xmlto_text = yes; then
18325  HAVE_XMLTO_TEXT_TRUE=
18326  HAVE_XMLTO_TEXT_FALSE='#'
18327else
18328  HAVE_XMLTO_TEXT_TRUE='#'
18329  HAVE_XMLTO_TEXT_FALSE=
18330fi
18331
18332 if test "$have_xmlto" = yes; then
18333  HAVE_XMLTO_TRUE=
18334  HAVE_XMLTO_FALSE='#'
18335else
18336  HAVE_XMLTO_TRUE='#'
18337  HAVE_XMLTO_FALSE=
18338fi
18339
18340
18341
18342
18343
18344
18345# Check whether --with-fop was given.
18346if test "${with_fop+set}" = set; then :
18347  withval=$with_fop; use_fop=$withval
18348else
18349  use_fop=auto
18350fi
18351
18352
18353
18354if test "x$use_fop" = x"auto"; then
18355   # Extract the first word of "fop", so it can be a program name with args.
18356set dummy fop; ac_word=$2
18357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18358$as_echo_n "checking for $ac_word... " >&6; }
18359if ${ac_cv_path_FOP+:} false; then :
18360  $as_echo_n "(cached) " >&6
18361else
18362  case $FOP in
18363  [\\/]* | ?:[\\/]*)
18364  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18365  ;;
18366  *)
18367  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18368for as_dir in $PATH
18369do
18370  IFS=$as_save_IFS
18371  test -z "$as_dir" && as_dir=.
18372    for ac_exec_ext in '' $ac_executable_extensions; do
18373  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18374    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18376    break 2
18377  fi
18378done
18379  done
18380IFS=$as_save_IFS
18381
18382  ;;
18383esac
18384fi
18385FOP=$ac_cv_path_FOP
18386if test -n "$FOP"; then
18387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18388$as_echo "$FOP" >&6; }
18389else
18390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18391$as_echo "no" >&6; }
18392fi
18393
18394
18395   if test "x$FOP" = "x"; then
18396        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
18397$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
18398	have_fop=no
18399   else
18400        have_fop=yes
18401   fi
18402elif test "x$use_fop" = x"yes" ; then
18403   # Extract the first word of "fop", so it can be a program name with args.
18404set dummy fop; ac_word=$2
18405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18406$as_echo_n "checking for $ac_word... " >&6; }
18407if ${ac_cv_path_FOP+:} false; then :
18408  $as_echo_n "(cached) " >&6
18409else
18410  case $FOP in
18411  [\\/]* | ?:[\\/]*)
18412  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18413  ;;
18414  *)
18415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18416for as_dir in $PATH
18417do
18418  IFS=$as_save_IFS
18419  test -z "$as_dir" && as_dir=.
18420    for ac_exec_ext in '' $ac_executable_extensions; do
18421  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18422    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18424    break 2
18425  fi
18426done
18427  done
18428IFS=$as_save_IFS
18429
18430  ;;
18431esac
18432fi
18433FOP=$ac_cv_path_FOP
18434if test -n "$FOP"; then
18435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18436$as_echo "$FOP" >&6; }
18437else
18438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18439$as_echo "no" >&6; }
18440fi
18441
18442
18443   if test "x$FOP" = "x"; then
18444        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18445   fi
18446   have_fop=yes
18447elif test "x$use_fop" = x"no" ; then
18448   if test "x$FOP" != "x"; then
18449      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18450$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18451   fi
18452   have_fop=no
18453else
18454   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18455fi
18456
18457# Test for a minimum version of fop, if provided.
18458
18459 if test "$have_fop" = yes; then
18460  HAVE_FOP_TRUE=
18461  HAVE_FOP_FALSE='#'
18462else
18463  HAVE_FOP_TRUE='#'
18464  HAVE_FOP_FALSE=
18465fi
18466
18467
18468
18469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.7" >&5
18470$as_echo_n "checking for X.Org SGML entities >= 1.7... " >&6; }
18471XORG_SGML_PATH=
18472if test -n "$PKG_CONFIG" && \
18473    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.7\""; } >&5
18474  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.7") 2>&5
18475  ac_status=$?
18476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18477  test $ac_status = 0; }; then
18478  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18479else
18480  :
18481
18482fi
18483
18484# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18485# the path and the name of the doc stylesheet
18486if test "x$XORG_SGML_PATH" != "x" ; then
18487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18488$as_echo "$XORG_SGML_PATH" >&6; }
18489   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18490   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18491else
18492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18493$as_echo "no" >&6; }
18494fi
18495
18496
18497
18498
18499 if test "x$XSL_STYLESHEET" != "x"; then
18500  HAVE_STYLESHEETS_TRUE=
18501  HAVE_STYLESHEETS_FALSE='#'
18502else
18503  HAVE_STYLESHEETS_TRUE='#'
18504  HAVE_STYLESHEETS_FALSE=
18505fi
18506
18507
18508
18509# Checks for header files.
18510for ac_header in endian.h poll.h sys/poll.h
18511do :
18512  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18513ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18514if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18515  cat >>confdefs.h <<_ACEOF
18516#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18517_ACEOF
18518
18519fi
18520
18521done
18522
18523
18524# Checks for library functions.
18525for ac_func in poll readlink
18526do :
18527  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18528ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18529if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18530  cat >>confdefs.h <<_ACEOF
18531#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18532_ACEOF
18533
18534fi
18535done
18536
18537
18538# If the first PKG_CHECK_MODULES appears inside a conditional, pkg-config
18539# must first be located explicitly.
18540
18541
18542if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18543	if test -n "$ac_tool_prefix"; then
18544  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18545set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18547$as_echo_n "checking for $ac_word... " >&6; }
18548if ${ac_cv_path_PKG_CONFIG+:} false; then :
18549  $as_echo_n "(cached) " >&6
18550else
18551  case $PKG_CONFIG in
18552  [\\/]* | ?:[\\/]*)
18553  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18554  ;;
18555  *)
18556  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18557for as_dir in $PATH
18558do
18559  IFS=$as_save_IFS
18560  test -z "$as_dir" && as_dir=.
18561    for ac_exec_ext in '' $ac_executable_extensions; do
18562  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18563    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18565    break 2
18566  fi
18567done
18568  done
18569IFS=$as_save_IFS
18570
18571  ;;
18572esac
18573fi
18574PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18575if test -n "$PKG_CONFIG"; then
18576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18577$as_echo "$PKG_CONFIG" >&6; }
18578else
18579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18580$as_echo "no" >&6; }
18581fi
18582
18583
18584fi
18585if test -z "$ac_cv_path_PKG_CONFIG"; then
18586  ac_pt_PKG_CONFIG=$PKG_CONFIG
18587  # Extract the first word of "pkg-config", so it can be a program name with args.
18588set dummy pkg-config; ac_word=$2
18589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18590$as_echo_n "checking for $ac_word... " >&6; }
18591if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18592  $as_echo_n "(cached) " >&6
18593else
18594  case $ac_pt_PKG_CONFIG in
18595  [\\/]* | ?:[\\/]*)
18596  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18597  ;;
18598  *)
18599  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18600for as_dir in $PATH
18601do
18602  IFS=$as_save_IFS
18603  test -z "$as_dir" && as_dir=.
18604    for ac_exec_ext in '' $ac_executable_extensions; do
18605  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18606    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18608    break 2
18609  fi
18610done
18611  done
18612IFS=$as_save_IFS
18613
18614  ;;
18615esac
18616fi
18617ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18618if test -n "$ac_pt_PKG_CONFIG"; then
18619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18620$as_echo "$ac_pt_PKG_CONFIG" >&6; }
18621else
18622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18623$as_echo "no" >&6; }
18624fi
18625
18626  if test "x$ac_pt_PKG_CONFIG" = x; then
18627    PKG_CONFIG=""
18628  else
18629    case $cross_compiling:$ac_tool_warned in
18630yes:)
18631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18633ac_tool_warned=yes ;;
18634esac
18635    PKG_CONFIG=$ac_pt_PKG_CONFIG
18636  fi
18637else
18638  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18639fi
18640
18641fi
18642if test -n "$PKG_CONFIG"; then
18643	_pkg_min_version=0.9.0
18644	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18645$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18646	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18647		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18648$as_echo "yes" >&6; }
18649	else
18650		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18651$as_echo "no" >&6; }
18652		PKG_CONFIG=""
18653	fi
18654
18655fi
18656
18657#
18658# select libraries to include
18659#
18660
18661XFONT_FONTFILE=no
18662
18663#
18664# FreeType for all scalable (OpenType, TrueType, PostScript) and
18665# some bitmap formats (BDF & PCF)
18666#
18667# Check whether --enable-freetype was given.
18668if test "${enable_freetype+set}" = set; then :
18669  enableval=$enable_freetype; XFONT_FREETYPE=$enableval
18670else
18671  XFONT_FREETYPE=yes
18672fi
18673
18674 if test x$XFONT_FREETYPE = xyes; then
18675  XFONT_FREETYPE_TRUE=
18676  XFONT_FREETYPE_FALSE='#'
18677else
18678  XFONT_FREETYPE_TRUE='#'
18679  XFONT_FREETYPE_FALSE=
18680fi
18681
18682if test x$XFONT_FREETYPE = xyes; then
18683
18684$as_echo "#define XFONT_FREETYPE 1" >>confdefs.h
18685
18686
18687# Check whether --with-freetype-config was given.
18688if test "${with_freetype_config+set}" = set; then :
18689  withval=$with_freetype_config; freetype_config=$withval
18690else
18691  freetype_config=auto
18692fi
18693
18694
18695	if test "$freetype_config" = "auto" ; then
18696
18697pkg_failed=no
18698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
18699$as_echo_n "checking for FREETYPE... " >&6; }
18700
18701if test -n "$FREETYPE_CFLAGS"; then
18702    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
18703 elif test -n "$PKG_CONFIG"; then
18704    if test -n "$PKG_CONFIG" && \
18705    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
18706  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
18707  ac_status=$?
18708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18709  test $ac_status = 0; }; then
18710  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
18711else
18712  pkg_failed=yes
18713fi
18714 else
18715    pkg_failed=untried
18716fi
18717if test -n "$FREETYPE_LIBS"; then
18718    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
18719 elif test -n "$PKG_CONFIG"; then
18720    if test -n "$PKG_CONFIG" && \
18721    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
18722  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
18723  ac_status=$?
18724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18725  test $ac_status = 0; }; then
18726  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
18727else
18728  pkg_failed=yes
18729fi
18730 else
18731    pkg_failed=untried
18732fi
18733
18734
18735
18736if test $pkg_failed = yes; then
18737
18738if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18739        _pkg_short_errors_supported=yes
18740else
18741        _pkg_short_errors_supported=no
18742fi
18743        if test $_pkg_short_errors_supported = yes; then
18744	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
18745        else
18746	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
18747        fi
18748	# Put the nasty error message in config.log where it belongs
18749	echo "$FREETYPE_PKG_ERRORS" >&5
18750
18751	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18752$as_echo "no" >&6; }
18753                freetype_config=yes
18754elif test $pkg_failed = untried; then
18755	freetype_config=yes
18756else
18757	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
18758	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
18759        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18760$as_echo "yes" >&6; }
18761	freetype_config=no
18762fi
18763	fi
18764
18765	if test "$freetype_config" = "yes"; then
18766		# Extract the first word of "freetype-config", so it can be a program name with args.
18767set dummy freetype-config; ac_word=$2
18768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18769$as_echo_n "checking for $ac_word... " >&6; }
18770if ${ac_cv_path_ft_config+:} false; then :
18771  $as_echo_n "(cached) " >&6
18772else
18773  case $ft_config in
18774  [\\/]* | ?:[\\/]*)
18775  ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path.
18776  ;;
18777  *)
18778  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18779for as_dir in $PATH
18780do
18781  IFS=$as_save_IFS
18782  test -z "$as_dir" && as_dir=.
18783    for ac_exec_ext in '' $ac_executable_extensions; do
18784  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18785    ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext"
18786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18787    break 2
18788  fi
18789done
18790  done
18791IFS=$as_save_IFS
18792
18793  test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no"
18794  ;;
18795esac
18796fi
18797ft_config=$ac_cv_path_ft_config
18798if test -n "$ft_config"; then
18799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_config" >&5
18800$as_echo "$ft_config" >&6; }
18801else
18802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18803$as_echo "no" >&6; }
18804fi
18805
18806
18807		if test "$ft_config" = "no"; then
18808			as_fn_error $? "You must have freetype installed; see http://www.freetype.org/" "$LINENO" 5
18809		fi
18810	else
18811		ft_config="$freetype_config"
18812	fi
18813
18814	if test "$freetype_config" != "no"; then
18815		FREETYPE_CFLAGS="`$ft_config --cflags`"
18816		FREETYPE_LIBS="`$ft_config --libs`"
18817	fi
18818	FREETYPE_REQUIRES="freetype2"
18819	XFONT_FONTFILE=yes
18820else
18821	FREETYPE_CFLAGS=""
18822	FREETYPE_LIBS=""
18823	FREETYPE_REQUIRES=""
18824fi
18825
18826
18827
18828
18829#
18830# Bitmap fonts in files:
18831#	Builtins (gzipped pcf format in .text segment)
18832#	PCF
18833#	BDF
18834#	SNF
18835#
18836
18837
18838$as_echo "#define X_GZIP_FONT_COMPRESSION 1" >>confdefs.h
18839
18840X_GZIP_FONT_COMPRESSION=1
18841
18842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
18843$as_echo_n "checking for gzopen in -lz... " >&6; }
18844if ${ac_cv_lib_z_gzopen+:} false; then :
18845  $as_echo_n "(cached) " >&6
18846else
18847  ac_check_lib_save_LIBS=$LIBS
18848LIBS="-lz  $LIBS"
18849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18850/* end confdefs.h.  */
18851
18852/* Override any GCC internal prototype to avoid an error.
18853   Use char because int might match the return type of a GCC
18854   builtin and then its argument prototype would still apply.  */
18855#ifdef __cplusplus
18856extern "C"
18857#endif
18858char gzopen ();
18859int
18860main ()
18861{
18862return gzopen ();
18863  ;
18864  return 0;
18865}
18866_ACEOF
18867if ac_fn_c_try_link "$LINENO"; then :
18868  ac_cv_lib_z_gzopen=yes
18869else
18870  ac_cv_lib_z_gzopen=no
18871fi
18872rm -f core conftest.err conftest.$ac_objext \
18873    conftest$ac_exeext conftest.$ac_ext
18874LIBS=$ac_check_lib_save_LIBS
18875fi
18876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
18877$as_echo "$ac_cv_lib_z_gzopen" >&6; }
18878if test "x$ac_cv_lib_z_gzopen" = xyes; then :
18879  Z_LIBS=-lz
18880else
18881  as_fn_error $? "*** zlib is required" "$LINENO" 5
18882fi
18883
18884
18885
18886# Check whether --with-bzip2 was given.
18887if test "${with_bzip2+set}" = set; then :
18888  withval=$with_bzip2;
18889else
18890  with_bzip2=no
18891fi
18892
18893if test "x$with_bzip2" = xyes; then
18894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5
18895$as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; }
18896if ${ac_cv_lib_bz2_BZ2_bzopen+:} false; then :
18897  $as_echo_n "(cached) " >&6
18898else
18899  ac_check_lib_save_LIBS=$LIBS
18900LIBS="-lbz2  $LIBS"
18901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18902/* end confdefs.h.  */
18903
18904/* Override any GCC internal prototype to avoid an error.
18905   Use char because int might match the return type of a GCC
18906   builtin and then its argument prototype would still apply.  */
18907#ifdef __cplusplus
18908extern "C"
18909#endif
18910char BZ2_bzopen ();
18911int
18912main ()
18913{
18914return BZ2_bzopen ();
18915  ;
18916  return 0;
18917}
18918_ACEOF
18919if ac_fn_c_try_link "$LINENO"; then :
18920  ac_cv_lib_bz2_BZ2_bzopen=yes
18921else
18922  ac_cv_lib_bz2_BZ2_bzopen=no
18923fi
18924rm -f core conftest.err conftest.$ac_objext \
18925    conftest$ac_exeext conftest.$ac_ext
18926LIBS=$ac_check_lib_save_LIBS
18927fi
18928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
18929$as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
18930if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes; then :
18931  Z_LIBS="$Z_LIBS -lbz2"
18932else
18933  as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5
18934fi
18935
18936
18937$as_echo "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h
18938
18939fi
18940 if test "x$with_bzip2" = xyes ; then
18941  X_BZIP2_FONT_COMPRESSION_TRUE=
18942  X_BZIP2_FONT_COMPRESSION_FALSE='#'
18943else
18944  X_BZIP2_FONT_COMPRESSION_TRUE='#'
18945  X_BZIP2_FONT_COMPRESSION_FALSE=
18946fi
18947
18948
18949
18950# Check whether --enable-builtins was given.
18951if test "${enable_builtins+set}" = set; then :
18952  enableval=$enable_builtins; XFONT_BUILTINS=$enableval
18953else
18954  XFONT_BUILTINS=yes
18955fi
18956
18957 if test "x$XFONT_BUILTINS" = xyes ; then
18958  XFONT_BUILTINS_TRUE=
18959  XFONT_BUILTINS_FALSE='#'
18960else
18961  XFONT_BUILTINS_TRUE='#'
18962  XFONT_BUILTINS_FALSE=
18963fi
18964
18965if test "x$XFONT_BUILTINS" = xyes; then
18966
18967$as_echo "#define XFONT_BUILTINS 1" >>confdefs.h
18968
18969	XFONT_BITMAP=yes
18970fi
18971
18972# Check whether --enable-pcfformat was given.
18973if test "${enable_pcfformat+set}" = set; then :
18974  enableval=$enable_pcfformat; XFONT_PCFFORMAT=$enableval
18975else
18976  XFONT_PCFFORMAT=yes
18977fi
18978
18979 if test "x$XFONT_PCFFORMAT" = xyes; then
18980  XFONT_PCFFORMAT_TRUE=
18981  XFONT_PCFFORMAT_FALSE='#'
18982else
18983  XFONT_PCFFORMAT_TRUE='#'
18984  XFONT_PCFFORMAT_FALSE=
18985fi
18986
18987if test "x$XFONT_PCFFORMAT" = xyes; then
18988
18989$as_echo "#define XFONT_PCFFORMAT 1" >>confdefs.h
18990
18991	XFONT_BITMAP=yes
18992fi
18993
18994 if test "x$XFONT_PCFFORMAT" = xyes -o "x$XFONT_BUILTINS" = xyes; then
18995  XFONT_PCF_OR_BUILTIN_TRUE=
18996  XFONT_PCF_OR_BUILTIN_FALSE='#'
18997else
18998  XFONT_PCF_OR_BUILTIN_TRUE='#'
18999  XFONT_PCF_OR_BUILTIN_FALSE=
19000fi
19001
19002
19003# Check whether --enable-bdfformat was given.
19004if test "${enable_bdfformat+set}" = set; then :
19005  enableval=$enable_bdfformat; XFONT_BDFFORMAT=$enableval
19006else
19007  XFONT_BDFFORMAT=yes
19008fi
19009
19010 if test "x$XFONT_BDFFORMAT" = xyes; then
19011  XFONT_BDFFORMAT_TRUE=
19012  XFONT_BDFFORMAT_FALSE='#'
19013else
19014  XFONT_BDFFORMAT_TRUE='#'
19015  XFONT_BDFFORMAT_FALSE=
19016fi
19017
19018if test "x$XFONT_BDFFORMAT" = xyes; then
19019
19020$as_echo "#define XFONT_BDFFORMAT 1" >>confdefs.h
19021
19022	XFONT_BITMAP=yes
19023fi
19024
19025# Check whether --enable-snfformat was given.
19026if test "${enable_snfformat+set}" = set; then :
19027  enableval=$enable_snfformat; XFONT_SNFFORMAT=$enableval
19028else
19029  XFONT_SNFFORMAT=no
19030fi
19031
19032 if test "x$XFONT_SNFFORMAT" = xyes; then
19033  XFONT_SNFFORMAT_TRUE=
19034  XFONT_SNFFORMAT_FALSE='#'
19035else
19036  XFONT_SNFFORMAT_TRUE='#'
19037  XFONT_SNFFORMAT_FALSE=
19038fi
19039
19040if test "x$XFONT_SNFFORMAT" = xyes; then
19041
19042$as_echo "#define XFONT_SNFFORMAT 1" >>confdefs.h
19043
19044	XFONT_BITMAP=yes
19045fi
19046
19047 if test "x$XFONT_BITMAP" = xyes ; then
19048  XFONT_BITMAP_TRUE=
19049  XFONT_BITMAP_FALSE='#'
19050else
19051  XFONT_BITMAP_TRUE='#'
19052  XFONT_BITMAP_FALSE=
19053fi
19054
19055if test "x$XFONT_BITMAP" = xyes; then
19056
19057$as_echo "#define XFONT_BITMAP 1" >>confdefs.h
19058
19059	XFONT_FONTFILE=yes
19060fi
19061
19062 if test "x$XFONT_FONTFILE" = xyes; then
19063  XFONT_FONTFILE_TRUE=
19064  XFONT_FONTFILE_FALSE='#'
19065else
19066  XFONT_FONTFILE_TRUE='#'
19067  XFONT_FONTFILE_FALSE=
19068fi
19069
19070if test "x$XFONT_FONTFILE" = xyes; then
19071
19072$as_echo "#define XFONT_FONTFILE 1" >>confdefs.h
19073
19074fi
19075
19076#
19077# Support connection to font servers?
19078#
19079
19080# Check whether --enable-fc was given.
19081if test "${enable_fc+set}" = set; then :
19082  enableval=$enable_fc; XFONT_FC=$enableval
19083else
19084  XFONT_FC=yes
19085fi
19086
19087 if test "x$XFONT_FC" = xyes; then
19088  XFONT_FC_TRUE=
19089  XFONT_FC_FALSE='#'
19090else
19091  XFONT_FC_TRUE='#'
19092  XFONT_FC_FALSE=
19093fi
19094
19095if test "x$XFONT_FC" = xyes; then
19096
19097$as_echo "#define XFONT_FC 1" >>confdefs.h
19098
19099fi
19100
19101
19102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5
19103$as_echo_n "checking for hypot in -lm... " >&6; }
19104if ${ac_cv_lib_m_hypot+:} false; then :
19105  $as_echo_n "(cached) " >&6
19106else
19107  ac_check_lib_save_LIBS=$LIBS
19108LIBS="-lm  $LIBS"
19109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19110/* end confdefs.h.  */
19111
19112/* Override any GCC internal prototype to avoid an error.
19113   Use char because int might match the return type of a GCC
19114   builtin and then its argument prototype would still apply.  */
19115#ifdef __cplusplus
19116extern "C"
19117#endif
19118char hypot ();
19119int
19120main ()
19121{
19122return hypot ();
19123  ;
19124  return 0;
19125}
19126_ACEOF
19127if ac_fn_c_try_link "$LINENO"; then :
19128  ac_cv_lib_m_hypot=yes
19129else
19130  ac_cv_lib_m_hypot=no
19131fi
19132rm -f core conftest.err conftest.$ac_objext \
19133    conftest$ac_exeext conftest.$ac_ext
19134LIBS=$ac_check_lib_save_LIBS
19135fi
19136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypot" >&5
19137$as_echo "$ac_cv_lib_m_hypot" >&6; }
19138if test "x$ac_cv_lib_m_hypot" = xyes; then :
19139  MATH_LIBS=-lm
19140
19141else
19142  as_fn_error $? "*** libm is required" "$LINENO" 5
19143fi
19144
19145
19146
19147pkg_failed=no
19148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFONT" >&5
19149$as_echo_n "checking for XFONT... " >&6; }
19150
19151if test -n "$XFONT_CFLAGS"; then
19152    pkg_cv_XFONT_CFLAGS="$XFONT_CFLAGS"
19153 elif test -n "$PKG_CONFIG"; then
19154    if test -n "$PKG_CONFIG" && \
19155    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5
19156  ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5
19157  ac_status=$?
19158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19159  test $ac_status = 0; }; then
19160  pkg_cv_XFONT_CFLAGS=`$PKG_CONFIG --cflags "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null`
19161else
19162  pkg_failed=yes
19163fi
19164 else
19165    pkg_failed=untried
19166fi
19167if test -n "$XFONT_LIBS"; then
19168    pkg_cv_XFONT_LIBS="$XFONT_LIBS"
19169 elif test -n "$PKG_CONFIG"; then
19170    if test -n "$PKG_CONFIG" && \
19171    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5
19172  ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5
19173  ac_status=$?
19174  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19175  test $ac_status = 0; }; then
19176  pkg_cv_XFONT_LIBS=`$PKG_CONFIG --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null`
19177else
19178  pkg_failed=yes
19179fi
19180 else
19181    pkg_failed=untried
19182fi
19183
19184
19185
19186if test $pkg_failed = yes; then
19187
19188if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19189        _pkg_short_errors_supported=yes
19190else
19191        _pkg_short_errors_supported=no
19192fi
19193        if test $_pkg_short_errors_supported = yes; then
19194	        XFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1`
19195        else
19196	        XFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1`
19197        fi
19198	# Put the nasty error message in config.log where it belongs
19199	echo "$XFONT_PKG_ERRORS" >&5
19200
19201	as_fn_error $? "Package requirements (xproto xtrans fontsproto >= 2.1.3 fontenc) were not met:
19202
19203$XFONT_PKG_ERRORS
19204
19205Consider adjusting the PKG_CONFIG_PATH environment variable if you
19206installed software in a non-standard prefix.
19207
19208Alternatively, you may set the environment variables XFONT_CFLAGS
19209and XFONT_LIBS to avoid the need to call pkg-config.
19210See the pkg-config man page for more details.
19211" "$LINENO" 5
19212elif test $pkg_failed = untried; then
19213	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19215as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19216is in your PATH or set the PKG_CONFIG environment variable to the full
19217path to pkg-config.
19218
19219Alternatively, you may set the environment variables XFONT_CFLAGS
19220and XFONT_LIBS to avoid the need to call pkg-config.
19221See the pkg-config man page for more details.
19222
19223To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19224See \`config.log' for more details" "$LINENO" 5; }
19225else
19226	XFONT_CFLAGS=$pkg_cv_XFONT_CFLAGS
19227	XFONT_LIBS=$pkg_cv_XFONT_LIBS
19228        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19229$as_echo "yes" >&6; }
19230	:
19231fi
19232
19233# Transport selection macro from xtrans.m4
19234
19235
19236 case $host_os in
19237	mingw*)	unixdef="no"   ;;
19238	*)	unixdef="yes"  ;;
19239 esac
19240 # Check whether --enable-unix-transport was given.
19241if test "${enable_unix_transport+set}" = set; then :
19242  enableval=$enable_unix_transport; UNIXCONN=$enableval
19243else
19244  UNIXCONN=$unixdef
19245fi
19246
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
19248$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
19249 if test "$UNIXCONN" = "yes"; then
19250
19251$as_echo "#define UNIXCONN 1" >>confdefs.h
19252
19253 fi
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
19255$as_echo "$UNIXCONN" >&6; }
19256 # Check whether --enable-tcp-transport was given.
19257if test "${enable_tcp_transport+set}" = set; then :
19258  enableval=$enable_tcp_transport; TCPCONN=$enableval
19259else
19260  TCPCONN=yes
19261fi
19262
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
19264$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
19266$as_echo "$TCPCONN" >&6; }
19267 if test "$TCPCONN" = "yes"; then
19268
19269$as_echo "#define TCPCONN 1" >>confdefs.h
19270
19271
19272 # SVR4 hides these in libraries other than libc
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19274$as_echo_n "checking for library containing socket... " >&6; }
19275if ${ac_cv_search_socket+:} false; then :
19276  $as_echo_n "(cached) " >&6
19277else
19278  ac_func_search_save_LIBS=$LIBS
19279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19280/* end confdefs.h.  */
19281
19282/* Override any GCC internal prototype to avoid an error.
19283   Use char because int might match the return type of a GCC
19284   builtin and then its argument prototype would still apply.  */
19285#ifdef __cplusplus
19286extern "C"
19287#endif
19288char socket ();
19289int
19290main ()
19291{
19292return socket ();
19293  ;
19294  return 0;
19295}
19296_ACEOF
19297for ac_lib in '' socket; do
19298  if test -z "$ac_lib"; then
19299    ac_res="none required"
19300  else
19301    ac_res=-l$ac_lib
19302    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19303  fi
19304  if ac_fn_c_try_link "$LINENO"; then :
19305  ac_cv_search_socket=$ac_res
19306fi
19307rm -f core conftest.err conftest.$ac_objext \
19308    conftest$ac_exeext
19309  if ${ac_cv_search_socket+:} false; then :
19310  break
19311fi
19312done
19313if ${ac_cv_search_socket+:} false; then :
19314
19315else
19316  ac_cv_search_socket=no
19317fi
19318rm conftest.$ac_ext
19319LIBS=$ac_func_search_save_LIBS
19320fi
19321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19322$as_echo "$ac_cv_search_socket" >&6; }
19323ac_res=$ac_cv_search_socket
19324if test "$ac_res" != no; then :
19325  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19326
19327fi
19328
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19330$as_echo_n "checking for library containing gethostbyname... " >&6; }
19331if ${ac_cv_search_gethostbyname+:} false; then :
19332  $as_echo_n "(cached) " >&6
19333else
19334  ac_func_search_save_LIBS=$LIBS
19335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19336/* end confdefs.h.  */
19337
19338/* Override any GCC internal prototype to avoid an error.
19339   Use char because int might match the return type of a GCC
19340   builtin and then its argument prototype would still apply.  */
19341#ifdef __cplusplus
19342extern "C"
19343#endif
19344char gethostbyname ();
19345int
19346main ()
19347{
19348return gethostbyname ();
19349  ;
19350  return 0;
19351}
19352_ACEOF
19353for ac_lib in '' nsl; do
19354  if test -z "$ac_lib"; then
19355    ac_res="none required"
19356  else
19357    ac_res=-l$ac_lib
19358    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19359  fi
19360  if ac_fn_c_try_link "$LINENO"; then :
19361  ac_cv_search_gethostbyname=$ac_res
19362fi
19363rm -f core conftest.err conftest.$ac_objext \
19364    conftest$ac_exeext
19365  if ${ac_cv_search_gethostbyname+:} false; then :
19366  break
19367fi
19368done
19369if ${ac_cv_search_gethostbyname+:} false; then :
19370
19371else
19372  ac_cv_search_gethostbyname=no
19373fi
19374rm conftest.$ac_ext
19375LIBS=$ac_func_search_save_LIBS
19376fi
19377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19378$as_echo "$ac_cv_search_gethostbyname" >&6; }
19379ac_res=$ac_cv_search_gethostbyname
19380if test "$ac_res" != no; then :
19381  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19382
19383fi
19384
19385 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
19386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
19387$as_echo_n "checking for main in -lws2_32... " >&6; }
19388if ${ac_cv_lib_ws2_32_main+:} false; then :
19389  $as_echo_n "(cached) " >&6
19390else
19391  ac_check_lib_save_LIBS=$LIBS
19392LIBS="-lws2_32  $LIBS"
19393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19394/* end confdefs.h.  */
19395
19396
19397int
19398main ()
19399{
19400return main ();
19401  ;
19402  return 0;
19403}
19404_ACEOF
19405if ac_fn_c_try_link "$LINENO"; then :
19406  ac_cv_lib_ws2_32_main=yes
19407else
19408  ac_cv_lib_ws2_32_main=no
19409fi
19410rm -f core conftest.err conftest.$ac_objext \
19411    conftest$ac_exeext conftest.$ac_ext
19412LIBS=$ac_check_lib_save_LIBS
19413fi
19414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
19415$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
19416if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
19417  cat >>confdefs.h <<_ACEOF
19418#define HAVE_LIBWS2_32 1
19419_ACEOF
19420
19421  LIBS="-lws2_32 $LIBS"
19422
19423fi
19424
19425 fi
19426
19427 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
19428 # Check whether --enable-ipv6 was given.
19429if test "${enable_ipv6+set}" = set; then :
19430  enableval=$enable_ipv6; IPV6CONN=$enableval
19431else
19432  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
19433if test "x$ac_cv_func_getaddrinfo" = xyes; then :
19434  IPV6CONN=yes
19435else
19436  IPV6CONN=no
19437fi
19438
19439fi
19440
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
19442$as_echo_n "checking if IPv6 support should be built... " >&6; }
19443 if test "$IPV6CONN" = "yes"; then
19444
19445$as_echo "#define IPv6 1" >>confdefs.h
19446
19447 fi
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
19449$as_echo "$IPV6CONN" >&6; }
19450
19451 # 4.3BSD-Reno added a new member to struct sockaddr_in
19452 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
19453#include <sys/types.h>
19454#include <sys/socket.h>
19455#include <netinet/in.h>
19456
19457"
19458if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
19459
19460$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
19461
19462fi
19463
19464
19465 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
19466 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
19467$ac_includes_default
19468#include <sys/socket.h>
19469"
19470if test "x$ac_cv_type_socklen_t" = xyes; then :
19471
19472cat >>confdefs.h <<_ACEOF
19473#define HAVE_SOCKLEN_T 1
19474_ACEOF
19475
19476
19477fi
19478
19479
19480 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
19481 # _XOPEN_SOURCE to get it (such as on Solaris)
19482 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19483$ac_includes_default
19484#include <sys/socket.h>
19485
19486"
19487if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19488
19489fi
19490
19491 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
19492 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19493     unset ac_cv_member_struct_msghdr_msg_control
19494     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
19495$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
19496     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19497#define _XOPEN_SOURCE 600
19498$ac_includes_default
19499#include <sys/socket.h>
19500
19501"
19502if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19503
19504$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
19505
19506
19507fi
19508
19509 fi
19510 # If that didn't work, fall back to XPG5/UNIX98 with C89
19511 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19512     unset ac_cv_member_struct_msghdr_msg_control
19513     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
19514$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
19515     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19516#define _XOPEN_SOURCE 500
19517$ac_includes_default
19518#include <sys/socket.h>
19519
19520"
19521if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19522
19523$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
19524
19525
19526fi
19527
19528 fi
19529
19530
19531
19532 fi
19533 case $host_os in
19534	solaris*|sco*|sysv4*)	localdef="yes" ;;
19535	*)			localdef="no"  ;;
19536 esac
19537 # Check whether --enable-local-transport was given.
19538if test "${enable_local_transport+set}" = set; then :
19539  enableval=$enable_local_transport; LOCALCONN=$enableval
19540else
19541  LOCALCONN=$localdef
19542fi
19543
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
19545$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
19547$as_echo "$LOCALCONN" >&6; }
19548 if test "$LOCALCONN" = "yes"; then
19549
19550$as_echo "#define LOCALCONN 1" >>confdefs.h
19551
19552 fi
19553
19554
19555
19556case $host_os in
19557    linux*)
19558        OS_CFLAGS="-D_XOPEN_SOURCE"
19559        ;;
19560    darwin*)
19561        OS_CFLAGS="-Wl,-flat_namespace"
19562	;;
19563    *)
19564        OS_CFLAGS=
19565        ;;
19566esac
19567
19568
19569ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/fontfile/Makefile src/FreeType/Makefile src/builtins/Makefile src/bitmap/Makefile src/fc/Makefile src/util/Makefile src/stubs/Makefile xfont.pc"
19570
19571cat >confcache <<\_ACEOF
19572# This file is a shell script that caches the results of configure
19573# tests run on this system so they can be shared between configure
19574# scripts and configure runs, see configure's option --config-cache.
19575# It is not useful on other systems.  If it contains results you don't
19576# want to keep, you may remove or edit it.
19577#
19578# config.status only pays attention to the cache file if you give it
19579# the --recheck option to rerun configure.
19580#
19581# `ac_cv_env_foo' variables (set or unset) will be overridden when
19582# loading this file, other *unset* `ac_cv_foo' will be assigned the
19583# following values.
19584
19585_ACEOF
19586
19587# The following way of writing the cache mishandles newlines in values,
19588# but we know of no workaround that is simple, portable, and efficient.
19589# So, we kill variables containing newlines.
19590# Ultrix sh set writes to stderr and can't be redirected directly,
19591# and sets the high bit in the cache file unless we assign to the vars.
19592(
19593  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19594    eval ac_val=\$$ac_var
19595    case $ac_val in #(
19596    *${as_nl}*)
19597      case $ac_var in #(
19598      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19599$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19600      esac
19601      case $ac_var in #(
19602      _ | IFS | as_nl) ;; #(
19603      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19604      *) { eval $ac_var=; unset $ac_var;} ;;
19605      esac ;;
19606    esac
19607  done
19608
19609  (set) 2>&1 |
19610    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19611    *${as_nl}ac_space=\ *)
19612      # `set' does not quote correctly, so add quotes: double-quote
19613      # substitution turns \\\\ into \\, and sed turns \\ into \.
19614      sed -n \
19615	"s/'/'\\\\''/g;
19616	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19617      ;; #(
19618    *)
19619      # `set' quotes correctly as required by POSIX, so do not add quotes.
19620      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19621      ;;
19622    esac |
19623    sort
19624) |
19625  sed '
19626     /^ac_cv_env_/b end
19627     t clear
19628     :clear
19629     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19630     t end
19631     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19632     :end' >>confcache
19633if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19634  if test -w "$cache_file"; then
19635    if test "x$cache_file" != "x/dev/null"; then
19636      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19637$as_echo "$as_me: updating cache $cache_file" >&6;}
19638      if test ! -f "$cache_file" || test -h "$cache_file"; then
19639	cat confcache >"$cache_file"
19640      else
19641        case $cache_file in #(
19642        */* | ?:*)
19643	  mv -f confcache "$cache_file"$$ &&
19644	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19645        *)
19646	  mv -f confcache "$cache_file" ;;
19647	esac
19648      fi
19649    fi
19650  else
19651    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19652$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19653  fi
19654fi
19655rm -f confcache
19656
19657test "x$prefix" = xNONE && prefix=$ac_default_prefix
19658# Let make expand exec_prefix.
19659test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19660
19661DEFS=-DHAVE_CONFIG_H
19662
19663ac_libobjs=
19664ac_ltlibobjs=
19665U=
19666for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19667  # 1. Remove the extension, and $U if already installed.
19668  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19669  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19670  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19671  #    will be set to the directory where LIBOBJS objects are built.
19672  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19673  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19674done
19675LIBOBJS=$ac_libobjs
19676
19677LTLIBOBJS=$ac_ltlibobjs
19678
19679
19680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19681$as_echo_n "checking that generated files are newer than configure... " >&6; }
19682   if test -n "$am_sleep_pid"; then
19683     # Hide warnings about reused PIDs.
19684     wait $am_sleep_pid 2>/dev/null
19685   fi
19686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19687$as_echo "done" >&6; }
19688 if test -n "$EXEEXT"; then
19689  am__EXEEXT_TRUE=
19690  am__EXEEXT_FALSE='#'
19691else
19692  am__EXEEXT_TRUE='#'
19693  am__EXEEXT_FALSE=
19694fi
19695
19696if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19697  as_fn_error $? "conditional \"AMDEP\" was never defined.
19698Usually this means the macro was only invoked conditionally." "$LINENO" 5
19699fi
19700if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19701  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19702Usually this means the macro was only invoked conditionally." "$LINENO" 5
19703fi
19704if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
19705  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
19706Usually this means the macro was only invoked conditionally." "$LINENO" 5
19707fi
19708if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
19709  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
19710Usually this means the macro was only invoked conditionally." "$LINENO" 5
19711fi
19712if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
19713  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
19714Usually this means the macro was only invoked conditionally." "$LINENO" 5
19715fi
19716if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
19717  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
19718Usually this means the macro was only invoked conditionally." "$LINENO" 5
19719fi
19720if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
19721  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
19722Usually this means the macro was only invoked conditionally." "$LINENO" 5
19723fi
19724if test -z "${XFONT_FREETYPE_TRUE}" && test -z "${XFONT_FREETYPE_FALSE}"; then
19725  as_fn_error $? "conditional \"XFONT_FREETYPE\" was never defined.
19726Usually this means the macro was only invoked conditionally." "$LINENO" 5
19727fi
19728if test -z "${X_BZIP2_FONT_COMPRESSION_TRUE}" && test -z "${X_BZIP2_FONT_COMPRESSION_FALSE}"; then
19729  as_fn_error $? "conditional \"X_BZIP2_FONT_COMPRESSION\" was never defined.
19730Usually this means the macro was only invoked conditionally." "$LINENO" 5
19731fi
19732if test -z "${XFONT_BUILTINS_TRUE}" && test -z "${XFONT_BUILTINS_FALSE}"; then
19733  as_fn_error $? "conditional \"XFONT_BUILTINS\" was never defined.
19734Usually this means the macro was only invoked conditionally." "$LINENO" 5
19735fi
19736if test -z "${XFONT_PCFFORMAT_TRUE}" && test -z "${XFONT_PCFFORMAT_FALSE}"; then
19737  as_fn_error $? "conditional \"XFONT_PCFFORMAT\" was never defined.
19738Usually this means the macro was only invoked conditionally." "$LINENO" 5
19739fi
19740if test -z "${XFONT_PCF_OR_BUILTIN_TRUE}" && test -z "${XFONT_PCF_OR_BUILTIN_FALSE}"; then
19741  as_fn_error $? "conditional \"XFONT_PCF_OR_BUILTIN\" was never defined.
19742Usually this means the macro was only invoked conditionally." "$LINENO" 5
19743fi
19744if test -z "${XFONT_BDFFORMAT_TRUE}" && test -z "${XFONT_BDFFORMAT_FALSE}"; then
19745  as_fn_error $? "conditional \"XFONT_BDFFORMAT\" was never defined.
19746Usually this means the macro was only invoked conditionally." "$LINENO" 5
19747fi
19748if test -z "${XFONT_SNFFORMAT_TRUE}" && test -z "${XFONT_SNFFORMAT_FALSE}"; then
19749  as_fn_error $? "conditional \"XFONT_SNFFORMAT\" was never defined.
19750Usually this means the macro was only invoked conditionally." "$LINENO" 5
19751fi
19752if test -z "${XFONT_BITMAP_TRUE}" && test -z "${XFONT_BITMAP_FALSE}"; then
19753  as_fn_error $? "conditional \"XFONT_BITMAP\" was never defined.
19754Usually this means the macro was only invoked conditionally." "$LINENO" 5
19755fi
19756if test -z "${XFONT_FONTFILE_TRUE}" && test -z "${XFONT_FONTFILE_FALSE}"; then
19757  as_fn_error $? "conditional \"XFONT_FONTFILE\" was never defined.
19758Usually this means the macro was only invoked conditionally." "$LINENO" 5
19759fi
19760if test -z "${XFONT_FC_TRUE}" && test -z "${XFONT_FC_FALSE}"; then
19761  as_fn_error $? "conditional \"XFONT_FC\" was never defined.
19762Usually this means the macro was only invoked conditionally." "$LINENO" 5
19763fi
19764
19765: "${CONFIG_STATUS=./config.status}"
19766ac_write_fail=0
19767ac_clean_files_save=$ac_clean_files
19768ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19769{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19770$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19771as_write_fail=0
19772cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19773#! $SHELL
19774# Generated by $as_me.
19775# Run this file to recreate the current configuration.
19776# Compiler output produced by configure, useful for debugging
19777# configure, is in config.log if it exists.
19778
19779debug=false
19780ac_cs_recheck=false
19781ac_cs_silent=false
19782
19783SHELL=\${CONFIG_SHELL-$SHELL}
19784export SHELL
19785_ASEOF
19786cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19787## -------------------- ##
19788## M4sh Initialization. ##
19789## -------------------- ##
19790
19791# Be more Bourne compatible
19792DUALCASE=1; export DUALCASE # for MKS sh
19793if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19794  emulate sh
19795  NULLCMD=:
19796  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19797  # is contrary to our usage.  Disable this feature.
19798  alias -g '${1+"$@"}'='"$@"'
19799  setopt NO_GLOB_SUBST
19800else
19801  case `(set -o) 2>/dev/null` in #(
19802  *posix*) :
19803    set -o posix ;; #(
19804  *) :
19805     ;;
19806esac
19807fi
19808
19809
19810as_nl='
19811'
19812export as_nl
19813# Printing a long string crashes Solaris 7 /usr/bin/printf.
19814as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19815as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19816as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19817# Prefer a ksh shell builtin over an external printf program on Solaris,
19818# but without wasting forks for bash or zsh.
19819if test -z "$BASH_VERSION$ZSH_VERSION" \
19820    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19821  as_echo='print -r --'
19822  as_echo_n='print -rn --'
19823elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19824  as_echo='printf %s\n'
19825  as_echo_n='printf %s'
19826else
19827  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19828    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19829    as_echo_n='/usr/ucb/echo -n'
19830  else
19831    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19832    as_echo_n_body='eval
19833      arg=$1;
19834      case $arg in #(
19835      *"$as_nl"*)
19836	expr "X$arg" : "X\\(.*\\)$as_nl";
19837	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19838      esac;
19839      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19840    '
19841    export as_echo_n_body
19842    as_echo_n='sh -c $as_echo_n_body as_echo'
19843  fi
19844  export as_echo_body
19845  as_echo='sh -c $as_echo_body as_echo'
19846fi
19847
19848# The user is always right.
19849if test "${PATH_SEPARATOR+set}" != set; then
19850  PATH_SEPARATOR=:
19851  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19852    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19853      PATH_SEPARATOR=';'
19854  }
19855fi
19856
19857
19858# IFS
19859# We need space, tab and new line, in precisely that order.  Quoting is
19860# there to prevent editors from complaining about space-tab.
19861# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19862# splitting by setting IFS to empty value.)
19863IFS=" ""	$as_nl"
19864
19865# Find who we are.  Look in the path if we contain no directory separator.
19866as_myself=
19867case $0 in #((
19868  *[\\/]* ) as_myself=$0 ;;
19869  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19870for as_dir in $PATH
19871do
19872  IFS=$as_save_IFS
19873  test -z "$as_dir" && as_dir=.
19874    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19875  done
19876IFS=$as_save_IFS
19877
19878     ;;
19879esac
19880# We did not find ourselves, most probably we were run as `sh COMMAND'
19881# in which case we are not to be found in the path.
19882if test "x$as_myself" = x; then
19883  as_myself=$0
19884fi
19885if test ! -f "$as_myself"; then
19886  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19887  exit 1
19888fi
19889
19890# Unset variables that we do not need and which cause bugs (e.g. in
19891# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19892# suppresses any "Segmentation fault" message there.  '((' could
19893# trigger a bug in pdksh 5.2.14.
19894for as_var in BASH_ENV ENV MAIL MAILPATH
19895do eval test x\${$as_var+set} = xset \
19896  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19897done
19898PS1='$ '
19899PS2='> '
19900PS4='+ '
19901
19902# NLS nuisances.
19903LC_ALL=C
19904export LC_ALL
19905LANGUAGE=C
19906export LANGUAGE
19907
19908# CDPATH.
19909(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19910
19911
19912# as_fn_error STATUS ERROR [LINENO LOG_FD]
19913# ----------------------------------------
19914# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19915# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19916# script with STATUS, using 1 if that was 0.
19917as_fn_error ()
19918{
19919  as_status=$1; test $as_status -eq 0 && as_status=1
19920  if test "$4"; then
19921    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19922    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19923  fi
19924  $as_echo "$as_me: error: $2" >&2
19925  as_fn_exit $as_status
19926} # as_fn_error
19927
19928
19929# as_fn_set_status STATUS
19930# -----------------------
19931# Set $? to STATUS, without forking.
19932as_fn_set_status ()
19933{
19934  return $1
19935} # as_fn_set_status
19936
19937# as_fn_exit STATUS
19938# -----------------
19939# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19940as_fn_exit ()
19941{
19942  set +e
19943  as_fn_set_status $1
19944  exit $1
19945} # as_fn_exit
19946
19947# as_fn_unset VAR
19948# ---------------
19949# Portably unset VAR.
19950as_fn_unset ()
19951{
19952  { eval $1=; unset $1;}
19953}
19954as_unset=as_fn_unset
19955# as_fn_append VAR VALUE
19956# ----------------------
19957# Append the text in VALUE to the end of the definition contained in VAR. Take
19958# advantage of any shell optimizations that allow amortized linear growth over
19959# repeated appends, instead of the typical quadratic growth present in naive
19960# implementations.
19961if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19962  eval 'as_fn_append ()
19963  {
19964    eval $1+=\$2
19965  }'
19966else
19967  as_fn_append ()
19968  {
19969    eval $1=\$$1\$2
19970  }
19971fi # as_fn_append
19972
19973# as_fn_arith ARG...
19974# ------------------
19975# Perform arithmetic evaluation on the ARGs, and store the result in the
19976# global $as_val. Take advantage of shells that can avoid forks. The arguments
19977# must be portable across $(()) and expr.
19978if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19979  eval 'as_fn_arith ()
19980  {
19981    as_val=$(( $* ))
19982  }'
19983else
19984  as_fn_arith ()
19985  {
19986    as_val=`expr "$@" || test $? -eq 1`
19987  }
19988fi # as_fn_arith
19989
19990
19991if expr a : '\(a\)' >/dev/null 2>&1 &&
19992   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19993  as_expr=expr
19994else
19995  as_expr=false
19996fi
19997
19998if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19999  as_basename=basename
20000else
20001  as_basename=false
20002fi
20003
20004if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20005  as_dirname=dirname
20006else
20007  as_dirname=false
20008fi
20009
20010as_me=`$as_basename -- "$0" ||
20011$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20012	 X"$0" : 'X\(//\)$' \| \
20013	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20014$as_echo X/"$0" |
20015    sed '/^.*\/\([^/][^/]*\)\/*$/{
20016	    s//\1/
20017	    q
20018	  }
20019	  /^X\/\(\/\/\)$/{
20020	    s//\1/
20021	    q
20022	  }
20023	  /^X\/\(\/\).*/{
20024	    s//\1/
20025	    q
20026	  }
20027	  s/.*/./; q'`
20028
20029# Avoid depending upon Character Ranges.
20030as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20031as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20032as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20033as_cr_digits='0123456789'
20034as_cr_alnum=$as_cr_Letters$as_cr_digits
20035
20036ECHO_C= ECHO_N= ECHO_T=
20037case `echo -n x` in #(((((
20038-n*)
20039  case `echo 'xy\c'` in
20040  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20041  xy)  ECHO_C='\c';;
20042  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20043       ECHO_T='	';;
20044  esac;;
20045*)
20046  ECHO_N='-n';;
20047esac
20048
20049rm -f conf$$ conf$$.exe conf$$.file
20050if test -d conf$$.dir; then
20051  rm -f conf$$.dir/conf$$.file
20052else
20053  rm -f conf$$.dir
20054  mkdir conf$$.dir 2>/dev/null
20055fi
20056if (echo >conf$$.file) 2>/dev/null; then
20057  if ln -s conf$$.file conf$$ 2>/dev/null; then
20058    as_ln_s='ln -s'
20059    # ... but there are two gotchas:
20060    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20061    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20062    # In both cases, we have to default to `cp -p'.
20063    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20064      as_ln_s='cp -p'
20065  elif ln conf$$.file conf$$ 2>/dev/null; then
20066    as_ln_s=ln
20067  else
20068    as_ln_s='cp -p'
20069  fi
20070else
20071  as_ln_s='cp -p'
20072fi
20073rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20074rmdir conf$$.dir 2>/dev/null
20075
20076
20077# as_fn_mkdir_p
20078# -------------
20079# Create "$as_dir" as a directory, including parents if necessary.
20080as_fn_mkdir_p ()
20081{
20082
20083  case $as_dir in #(
20084  -*) as_dir=./$as_dir;;
20085  esac
20086  test -d "$as_dir" || eval $as_mkdir_p || {
20087    as_dirs=
20088    while :; do
20089      case $as_dir in #(
20090      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20091      *) as_qdir=$as_dir;;
20092      esac
20093      as_dirs="'$as_qdir' $as_dirs"
20094      as_dir=`$as_dirname -- "$as_dir" ||
20095$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20096	 X"$as_dir" : 'X\(//\)[^/]' \| \
20097	 X"$as_dir" : 'X\(//\)$' \| \
20098	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20099$as_echo X"$as_dir" |
20100    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20101	    s//\1/
20102	    q
20103	  }
20104	  /^X\(\/\/\)[^/].*/{
20105	    s//\1/
20106	    q
20107	  }
20108	  /^X\(\/\/\)$/{
20109	    s//\1/
20110	    q
20111	  }
20112	  /^X\(\/\).*/{
20113	    s//\1/
20114	    q
20115	  }
20116	  s/.*/./; q'`
20117      test -d "$as_dir" && break
20118    done
20119    test -z "$as_dirs" || eval "mkdir $as_dirs"
20120  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20121
20122
20123} # as_fn_mkdir_p
20124if mkdir -p . 2>/dev/null; then
20125  as_mkdir_p='mkdir -p "$as_dir"'
20126else
20127  test -d ./-p && rmdir ./-p
20128  as_mkdir_p=false
20129fi
20130
20131if test -x / >/dev/null 2>&1; then
20132  as_test_x='test -x'
20133else
20134  if ls -dL / >/dev/null 2>&1; then
20135    as_ls_L_option=L
20136  else
20137    as_ls_L_option=
20138  fi
20139  as_test_x='
20140    eval sh -c '\''
20141      if test -d "$1"; then
20142	test -d "$1/.";
20143      else
20144	case $1 in #(
20145	-*)set "./$1";;
20146	esac;
20147	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20148	???[sx]*):;;*)false;;esac;fi
20149    '\'' sh
20150  '
20151fi
20152as_executable_p=$as_test_x
20153
20154# Sed expression to map a string onto a valid CPP name.
20155as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20156
20157# Sed expression to map a string onto a valid variable name.
20158as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20159
20160
20161exec 6>&1
20162## ----------------------------------- ##
20163## Main body of $CONFIG_STATUS script. ##
20164## ----------------------------------- ##
20165_ASEOF
20166test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20167
20168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20169# Save the log message, to keep $0 and so on meaningful, and to
20170# report actual input values of CONFIG_FILES etc. instead of their
20171# values after options handling.
20172ac_log="
20173This file was extended by libXfont $as_me 1.5.0, which was
20174generated by GNU Autoconf 2.68.  Invocation command line was
20175
20176  CONFIG_FILES    = $CONFIG_FILES
20177  CONFIG_HEADERS  = $CONFIG_HEADERS
20178  CONFIG_LINKS    = $CONFIG_LINKS
20179  CONFIG_COMMANDS = $CONFIG_COMMANDS
20180  $ $0 $@
20181
20182on `(hostname || uname -n) 2>/dev/null | sed 1q`
20183"
20184
20185_ACEOF
20186
20187case $ac_config_files in *"
20188"*) set x $ac_config_files; shift; ac_config_files=$*;;
20189esac
20190
20191case $ac_config_headers in *"
20192"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20193esac
20194
20195
20196cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20197# Files that config.status was made for.
20198config_files="$ac_config_files"
20199config_headers="$ac_config_headers"
20200config_commands="$ac_config_commands"
20201
20202_ACEOF
20203
20204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20205ac_cs_usage="\
20206\`$as_me' instantiates files and other configuration actions
20207from templates according to the current configuration.  Unless the files
20208and actions are specified as TAGs, all are instantiated by default.
20209
20210Usage: $0 [OPTION]... [TAG]...
20211
20212  -h, --help       print this help, then exit
20213  -V, --version    print version number and configuration settings, then exit
20214      --config     print configuration, then exit
20215  -q, --quiet, --silent
20216                   do not print progress messages
20217  -d, --debug      don't remove temporary files
20218      --recheck    update $as_me by reconfiguring in the same conditions
20219      --file=FILE[:TEMPLATE]
20220                   instantiate the configuration file FILE
20221      --header=FILE[:TEMPLATE]
20222                   instantiate the configuration header FILE
20223
20224Configuration files:
20225$config_files
20226
20227Configuration headers:
20228$config_headers
20229
20230Configuration commands:
20231$config_commands
20232
20233Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
20234
20235_ACEOF
20236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20237ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20238ac_cs_version="\\
20239libXfont config.status 1.5.0
20240configured by $0, generated by GNU Autoconf 2.68,
20241  with options \\"\$ac_cs_config\\"
20242
20243Copyright (C) 2010 Free Software Foundation, Inc.
20244This config.status script is free software; the Free Software Foundation
20245gives unlimited permission to copy, distribute and modify it."
20246
20247ac_pwd='$ac_pwd'
20248srcdir='$srcdir'
20249INSTALL='$INSTALL'
20250MKDIR_P='$MKDIR_P'
20251AWK='$AWK'
20252test -n "\$AWK" || AWK=awk
20253_ACEOF
20254
20255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20256# The default lists apply if the user does not specify any file.
20257ac_need_defaults=:
20258while test $# != 0
20259do
20260  case $1 in
20261  --*=?*)
20262    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20263    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20264    ac_shift=:
20265    ;;
20266  --*=)
20267    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20268    ac_optarg=
20269    ac_shift=:
20270    ;;
20271  *)
20272    ac_option=$1
20273    ac_optarg=$2
20274    ac_shift=shift
20275    ;;
20276  esac
20277
20278  case $ac_option in
20279  # Handling of the options.
20280  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20281    ac_cs_recheck=: ;;
20282  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20283    $as_echo "$ac_cs_version"; exit ;;
20284  --config | --confi | --conf | --con | --co | --c )
20285    $as_echo "$ac_cs_config"; exit ;;
20286  --debug | --debu | --deb | --de | --d | -d )
20287    debug=: ;;
20288  --file | --fil | --fi | --f )
20289    $ac_shift
20290    case $ac_optarg in
20291    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20292    '') as_fn_error $? "missing file argument" ;;
20293    esac
20294    as_fn_append CONFIG_FILES " '$ac_optarg'"
20295    ac_need_defaults=false;;
20296  --header | --heade | --head | --hea )
20297    $ac_shift
20298    case $ac_optarg in
20299    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20300    esac
20301    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20302    ac_need_defaults=false;;
20303  --he | --h)
20304    # Conflict between --help and --header
20305    as_fn_error $? "ambiguous option: \`$1'
20306Try \`$0 --help' for more information.";;
20307  --help | --hel | -h )
20308    $as_echo "$ac_cs_usage"; exit ;;
20309  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20310  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20311    ac_cs_silent=: ;;
20312
20313  # This is an error.
20314  -*) as_fn_error $? "unrecognized option: \`$1'
20315Try \`$0 --help' for more information." ;;
20316
20317  *) as_fn_append ac_config_targets " $1"
20318     ac_need_defaults=false ;;
20319
20320  esac
20321  shift
20322done
20323
20324ac_configure_extra_args=
20325
20326if $ac_cs_silent; then
20327  exec 6>/dev/null
20328  ac_configure_extra_args="$ac_configure_extra_args --silent"
20329fi
20330
20331_ACEOF
20332cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20333if \$ac_cs_recheck; then
20334  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20335  shift
20336  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20337  CONFIG_SHELL='$SHELL'
20338  export CONFIG_SHELL
20339  exec "\$@"
20340fi
20341
20342_ACEOF
20343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20344exec 5>>config.log
20345{
20346  echo
20347  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20348## Running $as_me. ##
20349_ASBOX
20350  $as_echo "$ac_log"
20351} >&5
20352
20353_ACEOF
20354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20355#
20356# INIT-COMMANDS
20357#
20358AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20359
20360
20361# The HP-UX ksh and POSIX shell print the target directory to stdout
20362# if CDPATH is set.
20363(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20364
20365sed_quote_subst='$sed_quote_subst'
20366double_quote_subst='$double_quote_subst'
20367delay_variable_subst='$delay_variable_subst'
20368macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20369macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20370enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20371enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20372pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20373enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20374SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20375ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20376PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20377host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20378host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20379host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20380build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20381build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20382build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20383SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20384Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20385GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20386EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20387FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20388LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20389NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20390LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20391max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20392ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20393exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20394lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20395lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20396lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20397lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20398lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20399reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20400reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20401OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20402deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20403file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20404file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20405want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20406DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20407sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20408AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20409AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20410archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20411STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20412RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20413old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20414old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20415old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20416lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20417CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20418CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20419compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20420GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20421lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20422lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20423lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20424lt_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"`'
20425nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20426lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20427objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20428MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20429lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20430lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20431lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20432lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20433lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20434need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20435MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20436DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20437NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20438LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20439OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20440OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20441libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20442shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20443extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20444archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20445enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20446export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20447whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20448compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20449old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20450old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20451archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20452archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20453module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20454module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20455with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20456allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20457no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20458hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20459hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20460hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20461hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20462hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20463hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20464hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20465inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20466link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20467always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20468export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20469exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20470include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20471prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20472postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20473file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20474variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20475need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20476need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20477version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20478runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20479shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20480shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20481libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20482library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20483soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20484install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20485postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20486postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20487finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20488finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20489hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20490sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20491sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20492hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20493enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20494enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20495enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20496old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20497striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20498
20499LTCC='$LTCC'
20500LTCFLAGS='$LTCFLAGS'
20501compiler='$compiler_DEFAULT'
20502
20503# A function that is used when there is no print builtin or printf.
20504func_fallback_echo ()
20505{
20506  eval 'cat <<_LTECHO_EOF
20507\$1
20508_LTECHO_EOF'
20509}
20510
20511# Quote evaled strings.
20512for var in SHELL \
20513ECHO \
20514PATH_SEPARATOR \
20515SED \
20516GREP \
20517EGREP \
20518FGREP \
20519LD \
20520NM \
20521LN_S \
20522lt_SP2NL \
20523lt_NL2SP \
20524reload_flag \
20525OBJDUMP \
20526deplibs_check_method \
20527file_magic_cmd \
20528file_magic_glob \
20529want_nocaseglob \
20530DLLTOOL \
20531sharedlib_from_linklib_cmd \
20532AR \
20533AR_FLAGS \
20534archiver_list_spec \
20535STRIP \
20536RANLIB \
20537CC \
20538CFLAGS \
20539compiler \
20540lt_cv_sys_global_symbol_pipe \
20541lt_cv_sys_global_symbol_to_cdecl \
20542lt_cv_sys_global_symbol_to_c_name_address \
20543lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20544nm_file_list_spec \
20545lt_prog_compiler_no_builtin_flag \
20546lt_prog_compiler_pic \
20547lt_prog_compiler_wl \
20548lt_prog_compiler_static \
20549lt_cv_prog_compiler_c_o \
20550need_locks \
20551MANIFEST_TOOL \
20552DSYMUTIL \
20553NMEDIT \
20554LIPO \
20555OTOOL \
20556OTOOL64 \
20557shrext_cmds \
20558export_dynamic_flag_spec \
20559whole_archive_flag_spec \
20560compiler_needs_object \
20561with_gnu_ld \
20562allow_undefined_flag \
20563no_undefined_flag \
20564hardcode_libdir_flag_spec \
20565hardcode_libdir_separator \
20566exclude_expsyms \
20567include_expsyms \
20568file_list_spec \
20569variables_saved_for_relink \
20570libname_spec \
20571library_names_spec \
20572soname_spec \
20573install_override_mode \
20574finish_eval \
20575old_striplib \
20576striplib; do
20577    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20578    *[\\\\\\\`\\"\\\$]*)
20579      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20580      ;;
20581    *)
20582      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20583      ;;
20584    esac
20585done
20586
20587# Double-quote double-evaled strings.
20588for var in reload_cmds \
20589old_postinstall_cmds \
20590old_postuninstall_cmds \
20591old_archive_cmds \
20592extract_expsyms_cmds \
20593old_archive_from_new_cmds \
20594old_archive_from_expsyms_cmds \
20595archive_cmds \
20596archive_expsym_cmds \
20597module_cmds \
20598module_expsym_cmds \
20599export_symbols_cmds \
20600prelink_cmds \
20601postlink_cmds \
20602postinstall_cmds \
20603postuninstall_cmds \
20604finish_cmds \
20605sys_lib_search_path_spec \
20606sys_lib_dlsearch_path_spec; do
20607    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20608    *[\\\\\\\`\\"\\\$]*)
20609      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20610      ;;
20611    *)
20612      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20613      ;;
20614    esac
20615done
20616
20617ac_aux_dir='$ac_aux_dir'
20618xsi_shell='$xsi_shell'
20619lt_shell_append='$lt_shell_append'
20620
20621# See if we are running on zsh, and set the options which allow our
20622# commands through without removal of \ escapes INIT.
20623if test -n "\${ZSH_VERSION+set}" ; then
20624   setopt NO_GLOB_SUBST
20625fi
20626
20627
20628    PACKAGE='$PACKAGE'
20629    VERSION='$VERSION'
20630    TIMESTAMP='$TIMESTAMP'
20631    RM='$RM'
20632    ofile='$ofile'
20633
20634
20635
20636
20637_ACEOF
20638
20639cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20640
20641# Handling of arguments.
20642for ac_config_target in $ac_config_targets
20643do
20644  case $ac_config_target in
20645    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20646    "include/X11/fonts/fontconf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/fonts/fontconf.h" ;;
20647    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20648    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20649    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20650    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20651    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20652    "src/fontfile/Makefile") CONFIG_FILES="$CONFIG_FILES src/fontfile/Makefile" ;;
20653    "src/FreeType/Makefile") CONFIG_FILES="$CONFIG_FILES src/FreeType/Makefile" ;;
20654    "src/builtins/Makefile") CONFIG_FILES="$CONFIG_FILES src/builtins/Makefile" ;;
20655    "src/bitmap/Makefile") CONFIG_FILES="$CONFIG_FILES src/bitmap/Makefile" ;;
20656    "src/fc/Makefile") CONFIG_FILES="$CONFIG_FILES src/fc/Makefile" ;;
20657    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
20658    "src/stubs/Makefile") CONFIG_FILES="$CONFIG_FILES src/stubs/Makefile" ;;
20659    "xfont.pc") CONFIG_FILES="$CONFIG_FILES xfont.pc" ;;
20660
20661  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20662  esac
20663done
20664
20665
20666# If the user did not use the arguments to specify the items to instantiate,
20667# then the envvar interface is used.  Set only those that are not.
20668# We use the long form for the default assignment because of an extremely
20669# bizarre bug on SunOS 4.1.3.
20670if $ac_need_defaults; then
20671  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20672  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20673  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20674fi
20675
20676# Have a temporary directory for convenience.  Make it in the build tree
20677# simply because there is no reason against having it here, and in addition,
20678# creating and moving files from /tmp can sometimes cause problems.
20679# Hook for its removal unless debugging.
20680# Note that there is a small window in which the directory will not be cleaned:
20681# after its creation but before its name has been assigned to `$tmp'.
20682$debug ||
20683{
20684  tmp= ac_tmp=
20685  trap 'exit_status=$?
20686  : "${ac_tmp:=$tmp}"
20687  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20688' 0
20689  trap 'as_fn_exit 1' 1 2 13 15
20690}
20691# Create a (secure) tmp directory for tmp files.
20692
20693{
20694  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20695  test -d "$tmp"
20696}  ||
20697{
20698  tmp=./conf$$-$RANDOM
20699  (umask 077 && mkdir "$tmp")
20700} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20701ac_tmp=$tmp
20702
20703# Set up the scripts for CONFIG_FILES section.
20704# No need to generate them if there are no CONFIG_FILES.
20705# This happens for instance with `./config.status config.h'.
20706if test -n "$CONFIG_FILES"; then
20707
20708
20709ac_cr=`echo X | tr X '\015'`
20710# On cygwin, bash can eat \r inside `` if the user requested igncr.
20711# But we know of no other shell where ac_cr would be empty at this
20712# point, so we can use a bashism as a fallback.
20713if test "x$ac_cr" = x; then
20714  eval ac_cr=\$\'\\r\'
20715fi
20716ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20717if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20718  ac_cs_awk_cr='\\r'
20719else
20720  ac_cs_awk_cr=$ac_cr
20721fi
20722
20723echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20724_ACEOF
20725
20726
20727{
20728  echo "cat >conf$$subs.awk <<_ACEOF" &&
20729  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20730  echo "_ACEOF"
20731} >conf$$subs.sh ||
20732  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20733ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20734ac_delim='%!_!# '
20735for ac_last_try in false false false false false :; do
20736  . ./conf$$subs.sh ||
20737    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20738
20739  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20740  if test $ac_delim_n = $ac_delim_num; then
20741    break
20742  elif $ac_last_try; then
20743    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20744  else
20745    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20746  fi
20747done
20748rm -f conf$$subs.sh
20749
20750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20751cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20752_ACEOF
20753sed -n '
20754h
20755s/^/S["/; s/!.*/"]=/
20756p
20757g
20758s/^[^!]*!//
20759:repl
20760t repl
20761s/'"$ac_delim"'$//
20762t delim
20763:nl
20764h
20765s/\(.\{148\}\)..*/\1/
20766t more1
20767s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20768p
20769n
20770b repl
20771:more1
20772s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20773p
20774g
20775s/.\{148\}//
20776t nl
20777:delim
20778h
20779s/\(.\{148\}\)..*/\1/
20780t more2
20781s/["\\]/\\&/g; s/^/"/; s/$/"/
20782p
20783b
20784:more2
20785s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20786p
20787g
20788s/.\{148\}//
20789t delim
20790' <conf$$subs.awk | sed '
20791/^[^""]/{
20792  N
20793  s/\n//
20794}
20795' >>$CONFIG_STATUS || ac_write_fail=1
20796rm -f conf$$subs.awk
20797cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20798_ACAWK
20799cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20800  for (key in S) S_is_set[key] = 1
20801  FS = ""
20802
20803}
20804{
20805  line = $ 0
20806  nfields = split(line, field, "@")
20807  substed = 0
20808  len = length(field[1])
20809  for (i = 2; i < nfields; i++) {
20810    key = field[i]
20811    keylen = length(key)
20812    if (S_is_set[key]) {
20813      value = S[key]
20814      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20815      len += length(value) + length(field[++i])
20816      substed = 1
20817    } else
20818      len += 1 + keylen
20819  }
20820
20821  print line
20822}
20823
20824_ACAWK
20825_ACEOF
20826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20827if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20828  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20829else
20830  cat
20831fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20832  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20833_ACEOF
20834
20835# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20836# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20837# trailing colons and then remove the whole line if VPATH becomes empty
20838# (actually we leave an empty line to preserve line numbers).
20839if test "x$srcdir" = x.; then
20840  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20841h
20842s///
20843s/^/:/
20844s/[	 ]*$/:/
20845s/:\$(srcdir):/:/g
20846s/:\${srcdir}:/:/g
20847s/:@srcdir@:/:/g
20848s/^:*//
20849s/:*$//
20850x
20851s/\(=[	 ]*\).*/\1/
20852G
20853s/\n//
20854s/^[^=]*=[	 ]*$//
20855}'
20856fi
20857
20858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20859fi # test -n "$CONFIG_FILES"
20860
20861# Set up the scripts for CONFIG_HEADERS section.
20862# No need to generate them if there are no CONFIG_HEADERS.
20863# This happens for instance with `./config.status Makefile'.
20864if test -n "$CONFIG_HEADERS"; then
20865cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20866BEGIN {
20867_ACEOF
20868
20869# Transform confdefs.h into an awk script `defines.awk', embedded as
20870# here-document in config.status, that substitutes the proper values into
20871# config.h.in to produce config.h.
20872
20873# Create a delimiter string that does not exist in confdefs.h, to ease
20874# handling of long lines.
20875ac_delim='%!_!# '
20876for ac_last_try in false false :; do
20877  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20878  if test -z "$ac_tt"; then
20879    break
20880  elif $ac_last_try; then
20881    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20882  else
20883    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20884  fi
20885done
20886
20887# For the awk script, D is an array of macro values keyed by name,
20888# likewise P contains macro parameters if any.  Preserve backslash
20889# newline sequences.
20890
20891ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20892sed -n '
20893s/.\{148\}/&'"$ac_delim"'/g
20894t rset
20895:rset
20896s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20897t def
20898d
20899:def
20900s/\\$//
20901t bsnl
20902s/["\\]/\\&/g
20903s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20904D["\1"]=" \3"/p
20905s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20906d
20907:bsnl
20908s/["\\]/\\&/g
20909s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20910D["\1"]=" \3\\\\\\n"\\/p
20911t cont
20912s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20913t cont
20914d
20915:cont
20916n
20917s/.\{148\}/&'"$ac_delim"'/g
20918t clear
20919:clear
20920s/\\$//
20921t bsnlc
20922s/["\\]/\\&/g; s/^/"/; s/$/"/p
20923d
20924:bsnlc
20925s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20926b cont
20927' <confdefs.h | sed '
20928s/'"$ac_delim"'/"\\\
20929"/g' >>$CONFIG_STATUS || ac_write_fail=1
20930
20931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20932  for (key in D) D_is_set[key] = 1
20933  FS = ""
20934}
20935/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20936  line = \$ 0
20937  split(line, arg, " ")
20938  if (arg[1] == "#") {
20939    defundef = arg[2]
20940    mac1 = arg[3]
20941  } else {
20942    defundef = substr(arg[1], 2)
20943    mac1 = arg[2]
20944  }
20945  split(mac1, mac2, "(") #)
20946  macro = mac2[1]
20947  prefix = substr(line, 1, index(line, defundef) - 1)
20948  if (D_is_set[macro]) {
20949    # Preserve the white space surrounding the "#".
20950    print prefix "define", macro P[macro] D[macro]
20951    next
20952  } else {
20953    # Replace #undef with comments.  This is necessary, for example,
20954    # in the case of _POSIX_SOURCE, which is predefined and required
20955    # on some systems where configure will not decide to define it.
20956    if (defundef == "undef") {
20957      print "/*", prefix defundef, macro, "*/"
20958      next
20959    }
20960  }
20961}
20962{ print }
20963_ACAWK
20964_ACEOF
20965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20966  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20967fi # test -n "$CONFIG_HEADERS"
20968
20969
20970eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20971shift
20972for ac_tag
20973do
20974  case $ac_tag in
20975  :[FHLC]) ac_mode=$ac_tag; continue;;
20976  esac
20977  case $ac_mode$ac_tag in
20978  :[FHL]*:*);;
20979  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20980  :[FH]-) ac_tag=-:-;;
20981  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20982  esac
20983  ac_save_IFS=$IFS
20984  IFS=:
20985  set x $ac_tag
20986  IFS=$ac_save_IFS
20987  shift
20988  ac_file=$1
20989  shift
20990
20991  case $ac_mode in
20992  :L) ac_source=$1;;
20993  :[FH])
20994    ac_file_inputs=
20995    for ac_f
20996    do
20997      case $ac_f in
20998      -) ac_f="$ac_tmp/stdin";;
20999      *) # Look for the file first in the build tree, then in the source tree
21000	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21001	 # because $ac_f cannot contain `:'.
21002	 test -f "$ac_f" ||
21003	   case $ac_f in
21004	   [\\/$]*) false;;
21005	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21006	   esac ||
21007	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21008      esac
21009      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21010      as_fn_append ac_file_inputs " '$ac_f'"
21011    done
21012
21013    # Let's still pretend it is `configure' which instantiates (i.e., don't
21014    # use $as_me), people would be surprised to read:
21015    #    /* config.h.  Generated by config.status.  */
21016    configure_input='Generated from '`
21017	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21018	`' by configure.'
21019    if test x"$ac_file" != x-; then
21020      configure_input="$ac_file.  $configure_input"
21021      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21022$as_echo "$as_me: creating $ac_file" >&6;}
21023    fi
21024    # Neutralize special characters interpreted by sed in replacement strings.
21025    case $configure_input in #(
21026    *\&* | *\|* | *\\* )
21027       ac_sed_conf_input=`$as_echo "$configure_input" |
21028       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21029    *) ac_sed_conf_input=$configure_input;;
21030    esac
21031
21032    case $ac_tag in
21033    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21034      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21035    esac
21036    ;;
21037  esac
21038
21039  ac_dir=`$as_dirname -- "$ac_file" ||
21040$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21041	 X"$ac_file" : 'X\(//\)[^/]' \| \
21042	 X"$ac_file" : 'X\(//\)$' \| \
21043	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21044$as_echo X"$ac_file" |
21045    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21046	    s//\1/
21047	    q
21048	  }
21049	  /^X\(\/\/\)[^/].*/{
21050	    s//\1/
21051	    q
21052	  }
21053	  /^X\(\/\/\)$/{
21054	    s//\1/
21055	    q
21056	  }
21057	  /^X\(\/\).*/{
21058	    s//\1/
21059	    q
21060	  }
21061	  s/.*/./; q'`
21062  as_dir="$ac_dir"; as_fn_mkdir_p
21063  ac_builddir=.
21064
21065case "$ac_dir" in
21066.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21067*)
21068  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21069  # A ".." for each directory in $ac_dir_suffix.
21070  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21071  case $ac_top_builddir_sub in
21072  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21073  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21074  esac ;;
21075esac
21076ac_abs_top_builddir=$ac_pwd
21077ac_abs_builddir=$ac_pwd$ac_dir_suffix
21078# for backward compatibility:
21079ac_top_builddir=$ac_top_build_prefix
21080
21081case $srcdir in
21082  .)  # We are building in place.
21083    ac_srcdir=.
21084    ac_top_srcdir=$ac_top_builddir_sub
21085    ac_abs_top_srcdir=$ac_pwd ;;
21086  [\\/]* | ?:[\\/]* )  # Absolute name.
21087    ac_srcdir=$srcdir$ac_dir_suffix;
21088    ac_top_srcdir=$srcdir
21089    ac_abs_top_srcdir=$srcdir ;;
21090  *) # Relative name.
21091    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21092    ac_top_srcdir=$ac_top_build_prefix$srcdir
21093    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21094esac
21095ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21096
21097
21098  case $ac_mode in
21099  :F)
21100  #
21101  # CONFIG_FILE
21102  #
21103
21104  case $INSTALL in
21105  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21106  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21107  esac
21108  ac_MKDIR_P=$MKDIR_P
21109  case $MKDIR_P in
21110  [\\/$]* | ?:[\\/]* ) ;;
21111  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21112  esac
21113_ACEOF
21114
21115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21116# If the template does not know about datarootdir, expand it.
21117# FIXME: This hack should be removed a few years after 2.60.
21118ac_datarootdir_hack=; ac_datarootdir_seen=
21119ac_sed_dataroot='
21120/datarootdir/ {
21121  p
21122  q
21123}
21124/@datadir@/p
21125/@docdir@/p
21126/@infodir@/p
21127/@localedir@/p
21128/@mandir@/p'
21129case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21130*datarootdir*) ac_datarootdir_seen=yes;;
21131*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21132  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21133$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21134_ACEOF
21135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21136  ac_datarootdir_hack='
21137  s&@datadir@&$datadir&g
21138  s&@docdir@&$docdir&g
21139  s&@infodir@&$infodir&g
21140  s&@localedir@&$localedir&g
21141  s&@mandir@&$mandir&g
21142  s&\\\${datarootdir}&$datarootdir&g' ;;
21143esac
21144_ACEOF
21145
21146# Neutralize VPATH when `$srcdir' = `.'.
21147# Shell code in configure.ac might set extrasub.
21148# FIXME: do we really want to maintain this feature?
21149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21150ac_sed_extra="$ac_vpsub
21151$extrasub
21152_ACEOF
21153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21154:t
21155/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21156s|@configure_input@|$ac_sed_conf_input|;t t
21157s&@top_builddir@&$ac_top_builddir_sub&;t t
21158s&@top_build_prefix@&$ac_top_build_prefix&;t t
21159s&@srcdir@&$ac_srcdir&;t t
21160s&@abs_srcdir@&$ac_abs_srcdir&;t t
21161s&@top_srcdir@&$ac_top_srcdir&;t t
21162s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21163s&@builddir@&$ac_builddir&;t t
21164s&@abs_builddir@&$ac_abs_builddir&;t t
21165s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21166s&@INSTALL@&$ac_INSTALL&;t t
21167s&@MKDIR_P@&$ac_MKDIR_P&;t t
21168$ac_datarootdir_hack
21169"
21170eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21171  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21172
21173test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21174  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21175  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21176      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21177  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21178which seems to be undefined.  Please make sure it is defined" >&5
21179$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21180which seems to be undefined.  Please make sure it is defined" >&2;}
21181
21182  rm -f "$ac_tmp/stdin"
21183  case $ac_file in
21184  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21185  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21186  esac \
21187  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21188 ;;
21189  :H)
21190  #
21191  # CONFIG_HEADER
21192  #
21193  if test x"$ac_file" != x-; then
21194    {
21195      $as_echo "/* $configure_input  */" \
21196      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21197    } >"$ac_tmp/config.h" \
21198      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21199    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21200      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21201$as_echo "$as_me: $ac_file is unchanged" >&6;}
21202    else
21203      rm -f "$ac_file"
21204      mv "$ac_tmp/config.h" "$ac_file" \
21205	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21206    fi
21207  else
21208    $as_echo "/* $configure_input  */" \
21209      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21210      || as_fn_error $? "could not create -" "$LINENO" 5
21211  fi
21212# Compute "$ac_file"'s index in $config_headers.
21213_am_arg="$ac_file"
21214_am_stamp_count=1
21215for _am_header in $config_headers :; do
21216  case $_am_header in
21217    $_am_arg | $_am_arg:* )
21218      break ;;
21219    * )
21220      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21221  esac
21222done
21223echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21224$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21225	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21226	 X"$_am_arg" : 'X\(//\)$' \| \
21227	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21228$as_echo X"$_am_arg" |
21229    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21230	    s//\1/
21231	    q
21232	  }
21233	  /^X\(\/\/\)[^/].*/{
21234	    s//\1/
21235	    q
21236	  }
21237	  /^X\(\/\/\)$/{
21238	    s//\1/
21239	    q
21240	  }
21241	  /^X\(\/\).*/{
21242	    s//\1/
21243	    q
21244	  }
21245	  s/.*/./; q'`/stamp-h$_am_stamp_count
21246 ;;
21247
21248  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21249$as_echo "$as_me: executing $ac_file commands" >&6;}
21250 ;;
21251  esac
21252
21253
21254  case $ac_file$ac_mode in
21255    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21256  # Older Autoconf quotes --file arguments for eval, but not when files
21257  # are listed without --file.  Let's play safe and only enable the eval
21258  # if we detect the quoting.
21259  case $CONFIG_FILES in
21260  *\'*) eval set x "$CONFIG_FILES" ;;
21261  *)   set x $CONFIG_FILES ;;
21262  esac
21263  shift
21264  for mf
21265  do
21266    # Strip MF so we end up with the name of the file.
21267    mf=`echo "$mf" | sed -e 's/:.*$//'`
21268    # Check whether this is an Automake generated Makefile or not.
21269    # We used to match only the files named 'Makefile.in', but
21270    # some people rename them; so instead we look at the file content.
21271    # Grep'ing the first line is not enough: some people post-process
21272    # each Makefile.in and add a new line on top of each file to say so.
21273    # Grep'ing the whole file is not good either: AIX grep has a line
21274    # limit of 2048, but all sed's we know have understand at least 4000.
21275    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21276      dirpart=`$as_dirname -- "$mf" ||
21277$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21278	 X"$mf" : 'X\(//\)[^/]' \| \
21279	 X"$mf" : 'X\(//\)$' \| \
21280	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21281$as_echo X"$mf" |
21282    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21283	    s//\1/
21284	    q
21285	  }
21286	  /^X\(\/\/\)[^/].*/{
21287	    s//\1/
21288	    q
21289	  }
21290	  /^X\(\/\/\)$/{
21291	    s//\1/
21292	    q
21293	  }
21294	  /^X\(\/\).*/{
21295	    s//\1/
21296	    q
21297	  }
21298	  s/.*/./; q'`
21299    else
21300      continue
21301    fi
21302    # Extract the definition of DEPDIR, am__include, and am__quote
21303    # from the Makefile without running 'make'.
21304    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21305    test -z "$DEPDIR" && continue
21306    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21307    test -z "$am__include" && continue
21308    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21309    # Find all dependency output files, they are included files with
21310    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21311    # simplest approach to changing $(DEPDIR) to its actual value in the
21312    # expansion.
21313    for file in `sed -n "
21314      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21315	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21316      # Make sure the directory exists.
21317      test -f "$dirpart/$file" && continue
21318      fdir=`$as_dirname -- "$file" ||
21319$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21320	 X"$file" : 'X\(//\)[^/]' \| \
21321	 X"$file" : 'X\(//\)$' \| \
21322	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21323$as_echo X"$file" |
21324    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21325	    s//\1/
21326	    q
21327	  }
21328	  /^X\(\/\/\)[^/].*/{
21329	    s//\1/
21330	    q
21331	  }
21332	  /^X\(\/\/\)$/{
21333	    s//\1/
21334	    q
21335	  }
21336	  /^X\(\/\).*/{
21337	    s//\1/
21338	    q
21339	  }
21340	  s/.*/./; q'`
21341      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21342      # echo "creating $dirpart/$file"
21343      echo '# dummy' > "$dirpart/$file"
21344    done
21345  done
21346}
21347 ;;
21348    "libtool":C)
21349
21350    # See if we are running on zsh, and set the options which allow our
21351    # commands through without removal of \ escapes.
21352    if test -n "${ZSH_VERSION+set}" ; then
21353      setopt NO_GLOB_SUBST
21354    fi
21355
21356    cfgfile="${ofile}T"
21357    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21358    $RM "$cfgfile"
21359
21360    cat <<_LT_EOF >> "$cfgfile"
21361#! $SHELL
21362
21363# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21364# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21365# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21366# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21367#
21368#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21369#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21370#                 Foundation, Inc.
21371#   Written by Gordon Matzigkeit, 1996
21372#
21373#   This file is part of GNU Libtool.
21374#
21375# GNU Libtool is free software; you can redistribute it and/or
21376# modify it under the terms of the GNU General Public License as
21377# published by the Free Software Foundation; either version 2 of
21378# the License, or (at your option) any later version.
21379#
21380# As a special exception to the GNU General Public License,
21381# if you distribute this file as part of a program or library that
21382# is built using GNU Libtool, you may include this file under the
21383# same distribution terms that you use for the rest of that program.
21384#
21385# GNU Libtool is distributed in the hope that it will be useful,
21386# but WITHOUT ANY WARRANTY; without even the implied warranty of
21387# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21388# GNU General Public License for more details.
21389#
21390# You should have received a copy of the GNU General Public License
21391# along with GNU Libtool; see the file COPYING.  If not, a copy
21392# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21393# obtained by writing to the Free Software Foundation, Inc.,
21394# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21395
21396
21397# The names of the tagged configurations supported by this script.
21398available_tags=""
21399
21400# ### BEGIN LIBTOOL CONFIG
21401
21402# Which release of libtool.m4 was used?
21403macro_version=$macro_version
21404macro_revision=$macro_revision
21405
21406# Whether or not to build shared libraries.
21407build_libtool_libs=$enable_shared
21408
21409# Whether or not to build static libraries.
21410build_old_libs=$enable_static
21411
21412# What type of objects to build.
21413pic_mode=$pic_mode
21414
21415# Whether or not to optimize for fast installation.
21416fast_install=$enable_fast_install
21417
21418# Shell to use when invoking shell scripts.
21419SHELL=$lt_SHELL
21420
21421# An echo program that protects backslashes.
21422ECHO=$lt_ECHO
21423
21424# The PATH separator for the build system.
21425PATH_SEPARATOR=$lt_PATH_SEPARATOR
21426
21427# The host system.
21428host_alias=$host_alias
21429host=$host
21430host_os=$host_os
21431
21432# The build system.
21433build_alias=$build_alias
21434build=$build
21435build_os=$build_os
21436
21437# A sed program that does not truncate output.
21438SED=$lt_SED
21439
21440# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21441Xsed="\$SED -e 1s/^X//"
21442
21443# A grep program that handles long lines.
21444GREP=$lt_GREP
21445
21446# An ERE matcher.
21447EGREP=$lt_EGREP
21448
21449# A literal string matcher.
21450FGREP=$lt_FGREP
21451
21452# A BSD- or MS-compatible name lister.
21453NM=$lt_NM
21454
21455# Whether we need soft or hard links.
21456LN_S=$lt_LN_S
21457
21458# What is the maximum length of a command?
21459max_cmd_len=$max_cmd_len
21460
21461# Object file suffix (normally "o").
21462objext=$ac_objext
21463
21464# Executable file suffix (normally "").
21465exeext=$exeext
21466
21467# whether the shell understands "unset".
21468lt_unset=$lt_unset
21469
21470# turn spaces into newlines.
21471SP2NL=$lt_lt_SP2NL
21472
21473# turn newlines into spaces.
21474NL2SP=$lt_lt_NL2SP
21475
21476# convert \$build file names to \$host format.
21477to_host_file_cmd=$lt_cv_to_host_file_cmd
21478
21479# convert \$build files to toolchain format.
21480to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21481
21482# An object symbol dumper.
21483OBJDUMP=$lt_OBJDUMP
21484
21485# Method to check whether dependent libraries are shared objects.
21486deplibs_check_method=$lt_deplibs_check_method
21487
21488# Command to use when deplibs_check_method = "file_magic".
21489file_magic_cmd=$lt_file_magic_cmd
21490
21491# How to find potential files when deplibs_check_method = "file_magic".
21492file_magic_glob=$lt_file_magic_glob
21493
21494# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21495want_nocaseglob=$lt_want_nocaseglob
21496
21497# DLL creation program.
21498DLLTOOL=$lt_DLLTOOL
21499
21500# Command to associate shared and link libraries.
21501sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21502
21503# The archiver.
21504AR=$lt_AR
21505
21506# Flags to create an archive.
21507AR_FLAGS=$lt_AR_FLAGS
21508
21509# How to feed a file listing to the archiver.
21510archiver_list_spec=$lt_archiver_list_spec
21511
21512# A symbol stripping program.
21513STRIP=$lt_STRIP
21514
21515# Commands used to install an old-style archive.
21516RANLIB=$lt_RANLIB
21517old_postinstall_cmds=$lt_old_postinstall_cmds
21518old_postuninstall_cmds=$lt_old_postuninstall_cmds
21519
21520# Whether to use a lock for old archive extraction.
21521lock_old_archive_extraction=$lock_old_archive_extraction
21522
21523# A C compiler.
21524LTCC=$lt_CC
21525
21526# LTCC compiler flags.
21527LTCFLAGS=$lt_CFLAGS
21528
21529# Take the output of nm and produce a listing of raw symbols and C names.
21530global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21531
21532# Transform the output of nm in a proper C declaration.
21533global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21534
21535# Transform the output of nm in a C name address pair.
21536global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21537
21538# Transform the output of nm in a C name address pair when lib prefix is needed.
21539global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21540
21541# Specify filename containing input files for \$NM.
21542nm_file_list_spec=$lt_nm_file_list_spec
21543
21544# The root where to search for dependent libraries,and in which our libraries should be installed.
21545lt_sysroot=$lt_sysroot
21546
21547# The name of the directory that contains temporary libtool files.
21548objdir=$objdir
21549
21550# Used to examine libraries when file_magic_cmd begins with "file".
21551MAGIC_CMD=$MAGIC_CMD
21552
21553# Must we lock files when doing compilation?
21554need_locks=$lt_need_locks
21555
21556# Manifest tool.
21557MANIFEST_TOOL=$lt_MANIFEST_TOOL
21558
21559# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21560DSYMUTIL=$lt_DSYMUTIL
21561
21562# Tool to change global to local symbols on Mac OS X.
21563NMEDIT=$lt_NMEDIT
21564
21565# Tool to manipulate fat objects and archives on Mac OS X.
21566LIPO=$lt_LIPO
21567
21568# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21569OTOOL=$lt_OTOOL
21570
21571# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21572OTOOL64=$lt_OTOOL64
21573
21574# Old archive suffix (normally "a").
21575libext=$libext
21576
21577# Shared library suffix (normally ".so").
21578shrext_cmds=$lt_shrext_cmds
21579
21580# The commands to extract the exported symbol list from a shared archive.
21581extract_expsyms_cmds=$lt_extract_expsyms_cmds
21582
21583# Variables whose values should be saved in libtool wrapper scripts and
21584# restored at link time.
21585variables_saved_for_relink=$lt_variables_saved_for_relink
21586
21587# Do we need the "lib" prefix for modules?
21588need_lib_prefix=$need_lib_prefix
21589
21590# Do we need a version for libraries?
21591need_version=$need_version
21592
21593# Library versioning type.
21594version_type=$version_type
21595
21596# Shared library runtime path variable.
21597runpath_var=$runpath_var
21598
21599# Shared library path variable.
21600shlibpath_var=$shlibpath_var
21601
21602# Is shlibpath searched before the hard-coded library search path?
21603shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21604
21605# Format of library name prefix.
21606libname_spec=$lt_libname_spec
21607
21608# List of archive names.  First name is the real one, the rest are links.
21609# The last name is the one that the linker finds with -lNAME
21610library_names_spec=$lt_library_names_spec
21611
21612# The coded name of the library, if different from the real name.
21613soname_spec=$lt_soname_spec
21614
21615# Permission mode override for installation of shared libraries.
21616install_override_mode=$lt_install_override_mode
21617
21618# Command to use after installation of a shared archive.
21619postinstall_cmds=$lt_postinstall_cmds
21620
21621# Command to use after uninstallation of a shared archive.
21622postuninstall_cmds=$lt_postuninstall_cmds
21623
21624# Commands used to finish a libtool library installation in a directory.
21625finish_cmds=$lt_finish_cmds
21626
21627# As "finish_cmds", except a single script fragment to be evaled but
21628# not shown.
21629finish_eval=$lt_finish_eval
21630
21631# Whether we should hardcode library paths into libraries.
21632hardcode_into_libs=$hardcode_into_libs
21633
21634# Compile-time system search path for libraries.
21635sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21636
21637# Run-time system search path for libraries.
21638sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21639
21640# Whether dlopen is supported.
21641dlopen_support=$enable_dlopen
21642
21643# Whether dlopen of programs is supported.
21644dlopen_self=$enable_dlopen_self
21645
21646# Whether dlopen of statically linked programs is supported.
21647dlopen_self_static=$enable_dlopen_self_static
21648
21649# Commands to strip libraries.
21650old_striplib=$lt_old_striplib
21651striplib=$lt_striplib
21652
21653
21654# The linker used to build libraries.
21655LD=$lt_LD
21656
21657# How to create reloadable object files.
21658reload_flag=$lt_reload_flag
21659reload_cmds=$lt_reload_cmds
21660
21661# Commands used to build an old-style archive.
21662old_archive_cmds=$lt_old_archive_cmds
21663
21664# A language specific compiler.
21665CC=$lt_compiler
21666
21667# Is the compiler the GNU compiler?
21668with_gcc=$GCC
21669
21670# Compiler flag to turn off builtin functions.
21671no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21672
21673# Additional compiler flags for building library objects.
21674pic_flag=$lt_lt_prog_compiler_pic
21675
21676# How to pass a linker flag through the compiler.
21677wl=$lt_lt_prog_compiler_wl
21678
21679# Compiler flag to prevent dynamic linking.
21680link_static_flag=$lt_lt_prog_compiler_static
21681
21682# Does compiler simultaneously support -c and -o options?
21683compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21684
21685# Whether or not to add -lc for building shared libraries.
21686build_libtool_need_lc=$archive_cmds_need_lc
21687
21688# Whether or not to disallow shared libs when runtime libs are static.
21689allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21690
21691# Compiler flag to allow reflexive dlopens.
21692export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21693
21694# Compiler flag to generate shared objects directly from archives.
21695whole_archive_flag_spec=$lt_whole_archive_flag_spec
21696
21697# Whether the compiler copes with passing no objects directly.
21698compiler_needs_object=$lt_compiler_needs_object
21699
21700# Create an old-style archive from a shared archive.
21701old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21702
21703# Create a temporary old-style archive to link instead of a shared archive.
21704old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21705
21706# Commands used to build a shared archive.
21707archive_cmds=$lt_archive_cmds
21708archive_expsym_cmds=$lt_archive_expsym_cmds
21709
21710# Commands used to build a loadable module if different from building
21711# a shared archive.
21712module_cmds=$lt_module_cmds
21713module_expsym_cmds=$lt_module_expsym_cmds
21714
21715# Whether we are building with GNU ld or not.
21716with_gnu_ld=$lt_with_gnu_ld
21717
21718# Flag that allows shared libraries with undefined symbols to be built.
21719allow_undefined_flag=$lt_allow_undefined_flag
21720
21721# Flag that enforces no undefined symbols.
21722no_undefined_flag=$lt_no_undefined_flag
21723
21724# Flag to hardcode \$libdir into a binary during linking.
21725# This must work even if \$libdir does not exist
21726hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21727
21728# Whether we need a single "-rpath" flag with a separated argument.
21729hardcode_libdir_separator=$lt_hardcode_libdir_separator
21730
21731# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21732# DIR into the resulting binary.
21733hardcode_direct=$hardcode_direct
21734
21735# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21736# DIR into the resulting binary and the resulting library dependency is
21737# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21738# library is relocated.
21739hardcode_direct_absolute=$hardcode_direct_absolute
21740
21741# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21742# into the resulting binary.
21743hardcode_minus_L=$hardcode_minus_L
21744
21745# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21746# into the resulting binary.
21747hardcode_shlibpath_var=$hardcode_shlibpath_var
21748
21749# Set to "yes" if building a shared library automatically hardcodes DIR
21750# into the library and all subsequent libraries and executables linked
21751# against it.
21752hardcode_automatic=$hardcode_automatic
21753
21754# Set to yes if linker adds runtime paths of dependent libraries
21755# to runtime path list.
21756inherit_rpath=$inherit_rpath
21757
21758# Whether libtool must link a program against all its dependency libraries.
21759link_all_deplibs=$link_all_deplibs
21760
21761# Set to "yes" if exported symbols are required.
21762always_export_symbols=$always_export_symbols
21763
21764# The commands to list exported symbols.
21765export_symbols_cmds=$lt_export_symbols_cmds
21766
21767# Symbols that should not be listed in the preloaded symbols.
21768exclude_expsyms=$lt_exclude_expsyms
21769
21770# Symbols that must always be exported.
21771include_expsyms=$lt_include_expsyms
21772
21773# Commands necessary for linking programs (against libraries) with templates.
21774prelink_cmds=$lt_prelink_cmds
21775
21776# Commands necessary for finishing linking programs.
21777postlink_cmds=$lt_postlink_cmds
21778
21779# Specify filename containing input files.
21780file_list_spec=$lt_file_list_spec
21781
21782# How to hardcode a shared library path into an executable.
21783hardcode_action=$hardcode_action
21784
21785# ### END LIBTOOL CONFIG
21786
21787_LT_EOF
21788
21789  case $host_os in
21790  aix3*)
21791    cat <<\_LT_EOF >> "$cfgfile"
21792# AIX sometimes has problems with the GCC collect2 program.  For some
21793# reason, if we set the COLLECT_NAMES environment variable, the problems
21794# vanish in a puff of smoke.
21795if test "X${COLLECT_NAMES+set}" != Xset; then
21796  COLLECT_NAMES=
21797  export COLLECT_NAMES
21798fi
21799_LT_EOF
21800    ;;
21801  esac
21802
21803
21804ltmain="$ac_aux_dir/ltmain.sh"
21805
21806
21807  # We use sed instead of cat because bash on DJGPP gets confused if
21808  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21809  # text mode, it properly converts lines to CR/LF.  This bash problem
21810  # is reportedly fixed, but why not run on old versions too?
21811  sed '$q' "$ltmain" >> "$cfgfile" \
21812     || (rm -f "$cfgfile"; exit 1)
21813
21814  if test x"$xsi_shell" = xyes; then
21815  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21816func_dirname ()\
21817{\
21818\    case ${1} in\
21819\      */*) func_dirname_result="${1%/*}${2}" ;;\
21820\      *  ) func_dirname_result="${3}" ;;\
21821\    esac\
21822} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21823  && mv -f "$cfgfile.tmp" "$cfgfile" \
21824    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21825test 0 -eq $? || _lt_function_replace_fail=:
21826
21827
21828  sed -e '/^func_basename ()$/,/^} # func_basename /c\
21829func_basename ()\
21830{\
21831\    func_basename_result="${1##*/}"\
21832} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21833  && mv -f "$cfgfile.tmp" "$cfgfile" \
21834    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21835test 0 -eq $? || _lt_function_replace_fail=:
21836
21837
21838  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21839func_dirname_and_basename ()\
21840{\
21841\    case ${1} in\
21842\      */*) func_dirname_result="${1%/*}${2}" ;;\
21843\      *  ) func_dirname_result="${3}" ;;\
21844\    esac\
21845\    func_basename_result="${1##*/}"\
21846} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21847  && mv -f "$cfgfile.tmp" "$cfgfile" \
21848    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21849test 0 -eq $? || _lt_function_replace_fail=:
21850
21851
21852  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21853func_stripname ()\
21854{\
21855\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21856\    # positional parameters, so assign one to ordinary parameter first.\
21857\    func_stripname_result=${3}\
21858\    func_stripname_result=${func_stripname_result#"${1}"}\
21859\    func_stripname_result=${func_stripname_result%"${2}"}\
21860} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21861  && mv -f "$cfgfile.tmp" "$cfgfile" \
21862    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21863test 0 -eq $? || _lt_function_replace_fail=:
21864
21865
21866  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21867func_split_long_opt ()\
21868{\
21869\    func_split_long_opt_name=${1%%=*}\
21870\    func_split_long_opt_arg=${1#*=}\
21871} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21872  && mv -f "$cfgfile.tmp" "$cfgfile" \
21873    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21874test 0 -eq $? || _lt_function_replace_fail=:
21875
21876
21877  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21878func_split_short_opt ()\
21879{\
21880\    func_split_short_opt_arg=${1#??}\
21881\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21882} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21883  && mv -f "$cfgfile.tmp" "$cfgfile" \
21884    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21885test 0 -eq $? || _lt_function_replace_fail=:
21886
21887
21888  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21889func_lo2o ()\
21890{\
21891\    case ${1} in\
21892\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21893\      *)    func_lo2o_result=${1} ;;\
21894\    esac\
21895} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21896  && mv -f "$cfgfile.tmp" "$cfgfile" \
21897    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21898test 0 -eq $? || _lt_function_replace_fail=:
21899
21900
21901  sed -e '/^func_xform ()$/,/^} # func_xform /c\
21902func_xform ()\
21903{\
21904    func_xform_result=${1%.*}.lo\
21905} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21906  && mv -f "$cfgfile.tmp" "$cfgfile" \
21907    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21908test 0 -eq $? || _lt_function_replace_fail=:
21909
21910
21911  sed -e '/^func_arith ()$/,/^} # func_arith /c\
21912func_arith ()\
21913{\
21914    func_arith_result=$(( $* ))\
21915} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21916  && mv -f "$cfgfile.tmp" "$cfgfile" \
21917    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21918test 0 -eq $? || _lt_function_replace_fail=:
21919
21920
21921  sed -e '/^func_len ()$/,/^} # func_len /c\
21922func_len ()\
21923{\
21924    func_len_result=${#1}\
21925} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21926  && mv -f "$cfgfile.tmp" "$cfgfile" \
21927    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21928test 0 -eq $? || _lt_function_replace_fail=:
21929
21930fi
21931
21932if test x"$lt_shell_append" = xyes; then
21933  sed -e '/^func_append ()$/,/^} # func_append /c\
21934func_append ()\
21935{\
21936    eval "${1}+=\\${2}"\
21937} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21938  && mv -f "$cfgfile.tmp" "$cfgfile" \
21939    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21940test 0 -eq $? || _lt_function_replace_fail=:
21941
21942
21943  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21944func_append_quoted ()\
21945{\
21946\    func_quote_for_eval "${2}"\
21947\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21948} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21949  && mv -f "$cfgfile.tmp" "$cfgfile" \
21950    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21951test 0 -eq $? || _lt_function_replace_fail=:
21952
21953
21954  # Save a `func_append' function call where possible by direct use of '+='
21955  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21956    && mv -f "$cfgfile.tmp" "$cfgfile" \
21957      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21958  test 0 -eq $? || _lt_function_replace_fail=:
21959else
21960  # Save a `func_append' function call even when '+=' is not available
21961  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21962    && mv -f "$cfgfile.tmp" "$cfgfile" \
21963      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21964  test 0 -eq $? || _lt_function_replace_fail=:
21965fi
21966
21967if test x"$_lt_function_replace_fail" = x":"; then
21968  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21969$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21970fi
21971
21972
21973   mv -f "$cfgfile" "$ofile" ||
21974    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21975  chmod +x "$ofile"
21976
21977 ;;
21978
21979  esac
21980done # for ac_tag
21981
21982
21983as_fn_exit 0
21984_ACEOF
21985ac_clean_files=$ac_clean_files_save
21986
21987test $ac_write_fail = 0 ||
21988  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21989
21990
21991# configure is writing to config.log, and then calls config.status.
21992# config.status does its own redirection, appending to config.log.
21993# Unfortunately, on DOS this fails, as config.log is still kept open
21994# by configure, so config.status won't be able to write to it; its
21995# output is simply discarded.  So we exec the FD to /dev/null,
21996# effectively closing config.log, so it can be properly (re)opened and
21997# appended to by config.status.  When coming back to configure, we
21998# need to make the FD available again.
21999if test "$no_create" != yes; then
22000  ac_cs_success=:
22001  ac_config_status_args=
22002  test "$silent" = yes &&
22003    ac_config_status_args="$ac_config_status_args --quiet"
22004  exec 5>/dev/null
22005  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22006  exec 5>>config.log
22007  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22008  # would make configure fail if this is the last instruction.
22009  $ac_cs_success || as_fn_exit 1
22010fi
22011if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22012  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22013$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22014fi
22015
22016